1
// Generated by the protocol buffer compiler. DO NOT EDIT!
2
// source: net/instaweb/util/property_cache.proto
4
#ifndef PROTOBUF_net_2finstaweb_2futil_2fproperty_5fcache_2eproto__INCLUDED
5
#define PROTOBUF_net_2finstaweb_2futil_2fproperty_5fcache_2eproto__INCLUDED
9
#include <google/protobuf/stubs/common.h>
11
#if GOOGLE_PROTOBUF_VERSION < 2005000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers. Please update
16
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers. Please
19
#error regenerate this file with a newer version of protoc.
22
#include <google/protobuf/generated_message_util.h>
23
#include <google/protobuf/message_lite.h>
24
#include <google/protobuf/repeated_field.h>
25
#include <google/protobuf/extension_set.h>
26
// @@protoc_insertion_point(includes)
28
namespace net_instaweb {
30
// Internal implementation detail -- do not call these.
31
void protobuf_AddDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
32
void protobuf_AssignDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
33
void protobuf_ShutdownFile_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
35
class PropertyValueProtobuf;
36
class PropertyCacheValues;
38
// ===================================================================
40
class PropertyValueProtobuf : public ::google::protobuf::MessageLite {
42
PropertyValueProtobuf();
43
virtual ~PropertyValueProtobuf();
45
PropertyValueProtobuf(const PropertyValueProtobuf& from);
47
inline PropertyValueProtobuf& operator=(const PropertyValueProtobuf& from) {
52
static const PropertyValueProtobuf& default_instance();
54
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
55
// Returns the internal default instance pointer. This function can
56
// return NULL thus should not be used by the user. This is intended
57
// for Protobuf internal code. Please use default_instance() declared
59
static inline const PropertyValueProtobuf* internal_default_instance() {
60
return default_instance_;
64
void Swap(PropertyValueProtobuf* other);
66
// implements Message ----------------------------------------------
68
PropertyValueProtobuf* New() const;
69
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
70
void CopyFrom(const PropertyValueProtobuf& from);
71
void MergeFrom(const PropertyValueProtobuf& from);
73
bool IsInitialized() const;
76
bool MergePartialFromCodedStream(
77
::google::protobuf::io::CodedInputStream* input);
78
void SerializeWithCachedSizes(
79
::google::protobuf::io::CodedOutputStream* output) const;
80
int GetCachedSize() const { return _cached_size_; }
84
void SetCachedSize(int size) const;
87
::std::string GetTypeName() const;
89
// nested types ----------------------------------------------------
91
// accessors -------------------------------------------------------
93
// optional string name = 1;
94
inline bool has_name() const;
95
inline void clear_name();
96
static const int kNameFieldNumber = 1;
97
inline const ::std::string& name() const;
98
inline void set_name(const ::std::string& value);
99
inline void set_name(const char* value);
100
inline void set_name(const char* value, size_t size);
101
inline ::std::string* mutable_name();
102
inline ::std::string* release_name();
103
inline void set_allocated_name(::std::string* name);
105
// optional bytes body = 2;
106
inline bool has_body() const;
107
inline void clear_body();
108
static const int kBodyFieldNumber = 2;
109
inline const ::std::string& body() const;
110
inline void set_body(const ::std::string& value);
111
inline void set_body(const char* value);
112
inline void set_body(const void* value, size_t size);
113
inline ::std::string* mutable_body();
114
inline ::std::string* release_body();
115
inline void set_allocated_body(::std::string* body);
117
// optional int64 write_timestamp_ms = 3;
118
inline bool has_write_timestamp_ms() const;
119
inline void clear_write_timestamp_ms();
120
static const int kWriteTimestampMsFieldNumber = 3;
121
inline ::google::protobuf::int64 write_timestamp_ms() const;
122
inline void set_write_timestamp_ms(::google::protobuf::int64 value);
124
// optional uint64 update_mask = 4 [default = 0];
125
inline bool has_update_mask() const;
126
inline void clear_update_mask();
127
static const int kUpdateMaskFieldNumber = 4;
128
inline ::google::protobuf::uint64 update_mask() const;
129
inline void set_update_mask(::google::protobuf::uint64 value);
131
// optional int64 num_writes = 5 [default = 0];
132
inline bool has_num_writes() const;
133
inline void clear_num_writes();
134
static const int kNumWritesFieldNumber = 5;
135
inline ::google::protobuf::int64 num_writes() const;
136
inline void set_num_writes(::google::protobuf::int64 value);
138
// @@protoc_insertion_point(class_scope:net_instaweb.PropertyValueProtobuf)
140
inline void set_has_name();
141
inline void clear_has_name();
142
inline void set_has_body();
143
inline void clear_has_body();
144
inline void set_has_write_timestamp_ms();
145
inline void clear_has_write_timestamp_ms();
146
inline void set_has_update_mask();
147
inline void clear_has_update_mask();
148
inline void set_has_num_writes();
149
inline void clear_has_num_writes();
151
::std::string* name_;
152
::std::string* body_;
153
::google::protobuf::int64 write_timestamp_ms_;
154
::google::protobuf::uint64 update_mask_;
155
::google::protobuf::int64 num_writes_;
157
mutable int _cached_size_;
158
::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
160
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
161
friend void protobuf_AddDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto_impl();
163
friend void protobuf_AddDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
165
friend void protobuf_AssignDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
166
friend void protobuf_ShutdownFile_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
168
void InitAsDefaultInstance();
169
static PropertyValueProtobuf* default_instance_;
171
// -------------------------------------------------------------------
173
class PropertyCacheValues : public ::google::protobuf::MessageLite {
175
PropertyCacheValues();
176
virtual ~PropertyCacheValues();
178
PropertyCacheValues(const PropertyCacheValues& from);
180
inline PropertyCacheValues& operator=(const PropertyCacheValues& from) {
185
static const PropertyCacheValues& default_instance();
187
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
188
// Returns the internal default instance pointer. This function can
189
// return NULL thus should not be used by the user. This is intended
190
// for Protobuf internal code. Please use default_instance() declared
192
static inline const PropertyCacheValues* internal_default_instance() {
193
return default_instance_;
197
void Swap(PropertyCacheValues* other);
199
// implements Message ----------------------------------------------
201
PropertyCacheValues* New() const;
202
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
203
void CopyFrom(const PropertyCacheValues& from);
204
void MergeFrom(const PropertyCacheValues& from);
206
bool IsInitialized() const;
208
int ByteSize() const;
209
bool MergePartialFromCodedStream(
210
::google::protobuf::io::CodedInputStream* input);
211
void SerializeWithCachedSizes(
212
::google::protobuf::io::CodedOutputStream* output) const;
213
int GetCachedSize() const { return _cached_size_; }
217
void SetCachedSize(int size) const;
220
::std::string GetTypeName() const;
222
// nested types ----------------------------------------------------
224
// accessors -------------------------------------------------------
226
// repeated .net_instaweb.PropertyValueProtobuf value = 1;
227
inline int value_size() const;
228
inline void clear_value();
229
static const int kValueFieldNumber = 1;
230
inline const ::net_instaweb::PropertyValueProtobuf& value(int index) const;
231
inline ::net_instaweb::PropertyValueProtobuf* mutable_value(int index);
232
inline ::net_instaweb::PropertyValueProtobuf* add_value();
233
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::PropertyValueProtobuf >&
235
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::PropertyValueProtobuf >*
238
// @@protoc_insertion_point(class_scope:net_instaweb.PropertyCacheValues)
241
::google::protobuf::RepeatedPtrField< ::net_instaweb::PropertyValueProtobuf > value_;
243
mutable int _cached_size_;
244
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
246
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
247
friend void protobuf_AddDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto_impl();
249
friend void protobuf_AddDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
251
friend void protobuf_AssignDesc_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
252
friend void protobuf_ShutdownFile_net_2finstaweb_2futil_2fproperty_5fcache_2eproto();
254
void InitAsDefaultInstance();
255
static PropertyCacheValues* default_instance_;
257
// ===================================================================
260
// ===================================================================
262
// PropertyValueProtobuf
264
// optional string name = 1;
265
inline bool PropertyValueProtobuf::has_name() const {
266
return (_has_bits_[0] & 0x00000001u) != 0;
268
inline void PropertyValueProtobuf::set_has_name() {
269
_has_bits_[0] |= 0x00000001u;
271
inline void PropertyValueProtobuf::clear_has_name() {
272
_has_bits_[0] &= ~0x00000001u;
274
inline void PropertyValueProtobuf::clear_name() {
275
if (name_ != &::google::protobuf::internal::GetEmptyString()) {
280
inline const ::std::string& PropertyValueProtobuf::name() const {
283
inline void PropertyValueProtobuf::set_name(const ::std::string& value) {
285
if (name_ == &::google::protobuf::internal::GetEmptyString()) {
286
name_ = new ::std::string;
288
name_->assign(value);
290
inline void PropertyValueProtobuf::set_name(const char* value) {
292
if (name_ == &::google::protobuf::internal::GetEmptyString()) {
293
name_ = new ::std::string;
295
name_->assign(value);
297
inline void PropertyValueProtobuf::set_name(const char* value, size_t size) {
299
if (name_ == &::google::protobuf::internal::GetEmptyString()) {
300
name_ = new ::std::string;
302
name_->assign(reinterpret_cast<const char*>(value), size);
304
inline ::std::string* PropertyValueProtobuf::mutable_name() {
306
if (name_ == &::google::protobuf::internal::GetEmptyString()) {
307
name_ = new ::std::string;
311
inline ::std::string* PropertyValueProtobuf::release_name() {
313
if (name_ == &::google::protobuf::internal::GetEmptyString()) {
316
::std::string* temp = name_;
317
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
321
inline void PropertyValueProtobuf::set_allocated_name(::std::string* name) {
322
if (name_ != &::google::protobuf::internal::GetEmptyString()) {
330
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
334
// optional bytes body = 2;
335
inline bool PropertyValueProtobuf::has_body() const {
336
return (_has_bits_[0] & 0x00000002u) != 0;
338
inline void PropertyValueProtobuf::set_has_body() {
339
_has_bits_[0] |= 0x00000002u;
341
inline void PropertyValueProtobuf::clear_has_body() {
342
_has_bits_[0] &= ~0x00000002u;
344
inline void PropertyValueProtobuf::clear_body() {
345
if (body_ != &::google::protobuf::internal::GetEmptyString()) {
350
inline const ::std::string& PropertyValueProtobuf::body() const {
353
inline void PropertyValueProtobuf::set_body(const ::std::string& value) {
355
if (body_ == &::google::protobuf::internal::GetEmptyString()) {
356
body_ = new ::std::string;
358
body_->assign(value);
360
inline void PropertyValueProtobuf::set_body(const char* value) {
362
if (body_ == &::google::protobuf::internal::GetEmptyString()) {
363
body_ = new ::std::string;
365
body_->assign(value);
367
inline void PropertyValueProtobuf::set_body(const void* value, size_t size) {
369
if (body_ == &::google::protobuf::internal::GetEmptyString()) {
370
body_ = new ::std::string;
372
body_->assign(reinterpret_cast<const char*>(value), size);
374
inline ::std::string* PropertyValueProtobuf::mutable_body() {
376
if (body_ == &::google::protobuf::internal::GetEmptyString()) {
377
body_ = new ::std::string;
381
inline ::std::string* PropertyValueProtobuf::release_body() {
383
if (body_ == &::google::protobuf::internal::GetEmptyString()) {
386
::std::string* temp = body_;
387
body_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
391
inline void PropertyValueProtobuf::set_allocated_body(::std::string* body) {
392
if (body_ != &::google::protobuf::internal::GetEmptyString()) {
400
body_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyString());
404
// optional int64 write_timestamp_ms = 3;
405
inline bool PropertyValueProtobuf::has_write_timestamp_ms() const {
406
return (_has_bits_[0] & 0x00000004u) != 0;
408
inline void PropertyValueProtobuf::set_has_write_timestamp_ms() {
409
_has_bits_[0] |= 0x00000004u;
411
inline void PropertyValueProtobuf::clear_has_write_timestamp_ms() {
412
_has_bits_[0] &= ~0x00000004u;
414
inline void PropertyValueProtobuf::clear_write_timestamp_ms() {
415
write_timestamp_ms_ = GOOGLE_LONGLONG(0);
416
clear_has_write_timestamp_ms();
418
inline ::google::protobuf::int64 PropertyValueProtobuf::write_timestamp_ms() const {
419
return write_timestamp_ms_;
421
inline void PropertyValueProtobuf::set_write_timestamp_ms(::google::protobuf::int64 value) {
422
set_has_write_timestamp_ms();
423
write_timestamp_ms_ = value;
426
// optional uint64 update_mask = 4 [default = 0];
427
inline bool PropertyValueProtobuf::has_update_mask() const {
428
return (_has_bits_[0] & 0x00000008u) != 0;
430
inline void PropertyValueProtobuf::set_has_update_mask() {
431
_has_bits_[0] |= 0x00000008u;
433
inline void PropertyValueProtobuf::clear_has_update_mask() {
434
_has_bits_[0] &= ~0x00000008u;
436
inline void PropertyValueProtobuf::clear_update_mask() {
437
update_mask_ = GOOGLE_ULONGLONG(0);
438
clear_has_update_mask();
440
inline ::google::protobuf::uint64 PropertyValueProtobuf::update_mask() const {
443
inline void PropertyValueProtobuf::set_update_mask(::google::protobuf::uint64 value) {
444
set_has_update_mask();
445
update_mask_ = value;
448
// optional int64 num_writes = 5 [default = 0];
449
inline bool PropertyValueProtobuf::has_num_writes() const {
450
return (_has_bits_[0] & 0x00000010u) != 0;
452
inline void PropertyValueProtobuf::set_has_num_writes() {
453
_has_bits_[0] |= 0x00000010u;
455
inline void PropertyValueProtobuf::clear_has_num_writes() {
456
_has_bits_[0] &= ~0x00000010u;
458
inline void PropertyValueProtobuf::clear_num_writes() {
459
num_writes_ = GOOGLE_LONGLONG(0);
460
clear_has_num_writes();
462
inline ::google::protobuf::int64 PropertyValueProtobuf::num_writes() const {
465
inline void PropertyValueProtobuf::set_num_writes(::google::protobuf::int64 value) {
466
set_has_num_writes();
470
// -------------------------------------------------------------------
472
// PropertyCacheValues
474
// repeated .net_instaweb.PropertyValueProtobuf value = 1;
475
inline int PropertyCacheValues::value_size() const {
476
return value_.size();
478
inline void PropertyCacheValues::clear_value() {
481
inline const ::net_instaweb::PropertyValueProtobuf& PropertyCacheValues::value(int index) const {
482
return value_.Get(index);
484
inline ::net_instaweb::PropertyValueProtobuf* PropertyCacheValues::mutable_value(int index) {
485
return value_.Mutable(index);
487
inline ::net_instaweb::PropertyValueProtobuf* PropertyCacheValues::add_value() {
490
inline const ::google::protobuf::RepeatedPtrField< ::net_instaweb::PropertyValueProtobuf >&
491
PropertyCacheValues::value() const {
494
inline ::google::protobuf::RepeatedPtrField< ::net_instaweb::PropertyValueProtobuf >*
495
PropertyCacheValues::mutable_value() {
500
// @@protoc_insertion_point(namespace_scope)
502
} // namespace net_instaweb
504
// @@protoc_insertion_point(global_scope)
506
#endif // PROTOBUF_net_2finstaweb_2futil_2fproperty_5fcache_2eproto__INCLUDED