sync-state.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: sync-state.proto
3 
4 #ifndef PROTOBUF_sync_2dstate_2eproto__INCLUDED
5 #define PROTOBUF_sync_2dstate_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 // For backwards compatibility with systems that install an older Protobuf (e.g. Ubuntu)),
11 // include the older output from protoc so that the sample program compiles.
12 #if GOOGLE_PROTOBUF_VERSION < 2005000
13 
14 #if GOOGLE_PROTOBUF_VERSION < 2004000
15 #error This file was generated by a newer version of protoc which is
16 #error incompatible with your Protocol Buffer headers. Please update
17 #error your headers.
18 #endif
19 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
20 #error This file was generated by an older version of protoc which is
21 #error incompatible with your Protocol Buffer headers. Please
22 #error regenerate this file with a newer version of protoc.
23 #endif
24 
25 #include <google/protobuf/generated_message_util.h>
26 #include <google/protobuf/repeated_field.h>
27 #include <google/protobuf/extension_set.h>
28 #include <google/protobuf/generated_message_reflection.h>
29 // @@protoc_insertion_point(includes)
30 
31 namespace Sync {
32 
33 // Internal implementation detail -- do not call these.
34 void protobuf_AddDesc_sync_2dstate_2eproto();
35 void protobuf_AssignDesc_sync_2dstate_2eproto();
36 void protobuf_ShutdownFile_sync_2dstate_2eproto();
37 
38 class SyncState;
39 class SyncState_SeqNo;
40 class SyncStateMsg;
41 
42 enum SyncState_ActionType {
43  SyncState_ActionType_UPDATE = 0,
44  SyncState_ActionType_DELETE = 1,
45  SyncState_ActionType_OTHER = 2
46 };
47 bool SyncState_ActionType_IsValid(int value);
48 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
49 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
50 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
51 
52 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
53 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
54  return ::google::protobuf::internal::NameOfEnum(
55  SyncState_ActionType_descriptor(), value);
56 }
57 inline bool SyncState_ActionType_Parse(
58  const ::std::string& name, SyncState_ActionType* value) {
59  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
60  SyncState_ActionType_descriptor(), name, value);
61 }
62 // ===================================================================
63 
64 class SyncState_SeqNo : public ::google::protobuf::Message {
65  public:
67  virtual ~SyncState_SeqNo();
68 
69  SyncState_SeqNo(const SyncState_SeqNo& from);
70 
71  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
72  CopyFrom(from);
73  return *this;
74  }
75 
76  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
77  return _unknown_fields_;
78  }
79 
80  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
81  return &_unknown_fields_;
82  }
83 
84  static const ::google::protobuf::Descriptor* descriptor();
85  static const SyncState_SeqNo& default_instance();
86 
87  void Swap(SyncState_SeqNo* other);
88 
89  // implements Message ----------------------------------------------
90 
91  SyncState_SeqNo* New() const;
92  void CopyFrom(const ::google::protobuf::Message& from);
93  void MergeFrom(const ::google::protobuf::Message& from);
94  void CopyFrom(const SyncState_SeqNo& from);
95  void MergeFrom(const SyncState_SeqNo& from);
96  void Clear();
97  bool IsInitialized() const;
98 
99  int ByteSize() const;
100  bool MergePartialFromCodedStream(
101  ::google::protobuf::io::CodedInputStream* input);
102  void SerializeWithCachedSizes(
103  ::google::protobuf::io::CodedOutputStream* output) const;
104  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
105  int GetCachedSize() const { return _cached_size_; }
106  private:
107  void SharedCtor();
108  void SharedDtor();
109  void SetCachedSize(int size) const;
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // required uint64 seq = 1;
119  inline bool has_seq() const;
120  inline void clear_seq();
121  static const int kSeqFieldNumber = 1;
122  inline ::google::protobuf::uint64 seq() const;
123  inline void set_seq(::google::protobuf::uint64 value);
124 
125  // required uint64 session = 2;
126  inline bool has_session() const;
127  inline void clear_session();
128  static const int kSessionFieldNumber = 2;
129  inline ::google::protobuf::uint64 session() const;
130  inline void set_session(::google::protobuf::uint64 value);
131 
132  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
133  private:
134  inline void set_has_seq();
135  inline void clear_has_seq();
136  inline void set_has_session();
137  inline void clear_has_session();
138 
139  ::google::protobuf::UnknownFieldSet _unknown_fields_;
140 
141  ::google::protobuf::uint64 seq_;
142  ::google::protobuf::uint64 session_;
143 
144  mutable int _cached_size_;
145  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
146 
147  friend void protobuf_AddDesc_sync_2dstate_2eproto();
148  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
149  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
150 
151  void InitAsDefaultInstance();
152  static SyncState_SeqNo* default_instance_;
153 };
154 // -------------------------------------------------------------------
155 
156 class SyncState : public ::google::protobuf::Message {
157  public:
158  SyncState();
159  virtual ~SyncState();
160 
161  SyncState(const SyncState& from);
162 
163  inline SyncState& operator=(const SyncState& from) {
164  CopyFrom(from);
165  return *this;
166  }
167 
168  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
169  return _unknown_fields_;
170  }
171 
172  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
173  return &_unknown_fields_;
174  }
175 
176  static const ::google::protobuf::Descriptor* descriptor();
177  static const SyncState& default_instance();
178 
179  void Swap(SyncState* other);
180 
181  // implements Message ----------------------------------------------
182 
183  SyncState* New() const;
184  void CopyFrom(const ::google::protobuf::Message& from);
185  void MergeFrom(const ::google::protobuf::Message& from);
186  void CopyFrom(const SyncState& from);
187  void MergeFrom(const SyncState& from);
188  void Clear();
189  bool IsInitialized() const;
190 
191  int ByteSize() const;
192  bool MergePartialFromCodedStream(
193  ::google::protobuf::io::CodedInputStream* input);
194  void SerializeWithCachedSizes(
195  ::google::protobuf::io::CodedOutputStream* output) const;
196  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
197  int GetCachedSize() const { return _cached_size_; }
198  private:
199  void SharedCtor();
200  void SharedDtor();
201  void SetCachedSize(int size) const;
202  public:
203 
204  ::google::protobuf::Metadata GetMetadata() const;
205 
206  // nested types ----------------------------------------------------
207 
208  typedef SyncState_SeqNo SeqNo;
209 
210  typedef SyncState_ActionType ActionType;
211  static const ActionType UPDATE = SyncState_ActionType_UPDATE;
212  static const ActionType DELETE = SyncState_ActionType_DELETE;
213  static const ActionType OTHER = SyncState_ActionType_OTHER;
214  static inline bool ActionType_IsValid(int value) {
215  return SyncState_ActionType_IsValid(value);
216  }
217  static const ActionType ActionType_MIN =
218  SyncState_ActionType_ActionType_MIN;
219  static const ActionType ActionType_MAX =
220  SyncState_ActionType_ActionType_MAX;
221  static const int ActionType_ARRAYSIZE =
222  SyncState_ActionType_ActionType_ARRAYSIZE;
223  static inline const ::google::protobuf::EnumDescriptor*
224  ActionType_descriptor() {
225  return SyncState_ActionType_descriptor();
226  }
227  static inline const ::std::string& ActionType_Name(ActionType value) {
228  return SyncState_ActionType_Name(value);
229  }
230  static inline bool ActionType_Parse(const ::std::string& name,
231  ActionType* value) {
232  return SyncState_ActionType_Parse(name, value);
233  }
234 
235  // accessors -------------------------------------------------------
236 
237  // required string name = 1;
238  inline bool has_name() const;
239  inline void clear_name();
240  static const int kNameFieldNumber = 1;
241  inline const ::std::string& name() const;
242  inline void set_name(const ::std::string& value);
243  inline void set_name(const char* value);
244  inline void set_name(const char* value, size_t size);
245  inline ::std::string* mutable_name();
246  inline ::std::string* release_name();
247 
248  // required .Sync.SyncState.ActionType type = 2;
249  inline bool has_type() const;
250  inline void clear_type();
251  static const int kTypeFieldNumber = 2;
252  inline ::Sync::SyncState_ActionType type() const;
253  inline void set_type(::Sync::SyncState_ActionType value);
254 
255  // optional .Sync.SyncState.SeqNo seqno = 3;
256  inline bool has_seqno() const;
257  inline void clear_seqno();
258  static const int kSeqnoFieldNumber = 3;
259  inline const ::Sync::SyncState_SeqNo& seqno() const;
260  inline ::Sync::SyncState_SeqNo* mutable_seqno();
261  inline ::Sync::SyncState_SeqNo* release_seqno();
262 
263  // optional bytes application_info = 4;
264  inline bool has_application_info() const;
265  inline void clear_application_info();
266  static const int kApplicationInfoFieldNumber = 4;
267  inline const ::std::string& application_info() const;
268  inline void set_application_info(const ::std::string& value);
269  inline void set_application_info(const char* value);
270  inline void set_application_info(const void* value, size_t size);
271  inline ::std::string* mutable_application_info();
272  inline ::std::string* release_application_info();
273 
274  // @@protoc_insertion_point(class_scope:Sync.SyncState)
275  private:
276  inline void set_has_name();
277  inline void clear_has_name();
278  inline void set_has_type();
279  inline void clear_has_type();
280  inline void set_has_seqno();
281  inline void clear_has_seqno();
282  inline void set_has_application_info();
283  inline void clear_has_application_info();
284 
285  ::google::protobuf::UnknownFieldSet _unknown_fields_;
286 
287  ::std::string* name_;
288  ::Sync::SyncState_SeqNo* seqno_;
289  ::std::string* application_info_;
290  int type_;
291 
292  mutable int _cached_size_;
293  ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
294 
295  friend void protobuf_AddDesc_sync_2dstate_2eproto();
296  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
297  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
298 
299  void InitAsDefaultInstance();
300  static SyncState* default_instance_;
301 };
302 // -------------------------------------------------------------------
303 
304 class SyncStateMsg : public ::google::protobuf::Message {
305  public:
306  SyncStateMsg();
307  virtual ~SyncStateMsg();
308 
309  SyncStateMsg(const SyncStateMsg& from);
310 
311  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
312  CopyFrom(from);
313  return *this;
314  }
315 
316  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
317  return _unknown_fields_;
318  }
319 
320  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
321  return &_unknown_fields_;
322  }
323 
324  static const ::google::protobuf::Descriptor* descriptor();
325  static const SyncStateMsg& default_instance();
326 
327  void Swap(SyncStateMsg* other);
328 
329  // implements Message ----------------------------------------------
330 
331  SyncStateMsg* New() const;
332  void CopyFrom(const ::google::protobuf::Message& from);
333  void MergeFrom(const ::google::protobuf::Message& from);
334  void CopyFrom(const SyncStateMsg& from);
335  void MergeFrom(const SyncStateMsg& from);
336  void Clear();
337  bool IsInitialized() const;
338 
339  int ByteSize() const;
340  bool MergePartialFromCodedStream(
341  ::google::protobuf::io::CodedInputStream* input);
342  void SerializeWithCachedSizes(
343  ::google::protobuf::io::CodedOutputStream* output) const;
344  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
345  int GetCachedSize() const { return _cached_size_; }
346  private:
347  void SharedCtor();
348  void SharedDtor();
349  void SetCachedSize(int size) const;
350  public:
351 
352  ::google::protobuf::Metadata GetMetadata() const;
353 
354  // nested types ----------------------------------------------------
355 
356  // accessors -------------------------------------------------------
357 
358  // repeated .Sync.SyncState ss = 1;
359  inline int ss_size() const;
360  inline void clear_ss();
361  static const int kSsFieldNumber = 1;
362  inline const ::Sync::SyncState& ss(int index) const;
363  inline ::Sync::SyncState* mutable_ss(int index);
364  inline ::Sync::SyncState* add_ss();
365  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
366  ss() const;
367  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
368  mutable_ss();
369 
370  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
371  private:
372 
373  ::google::protobuf::UnknownFieldSet _unknown_fields_;
374 
376 
377  mutable int _cached_size_;
378  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
379 
380  friend void protobuf_AddDesc_sync_2dstate_2eproto();
381  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
382  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
383 
384  void InitAsDefaultInstance();
385  static SyncStateMsg* default_instance_;
386 };
387 // ===================================================================
388 
389 
390 // ===================================================================
391 
392 // SyncState_SeqNo
393 
394 // required uint64 seq = 1;
395 inline bool SyncState_SeqNo::has_seq() const {
396  return (_has_bits_[0] & 0x00000001u) != 0;
397 }
398 inline void SyncState_SeqNo::set_has_seq() {
399  _has_bits_[0] |= 0x00000001u;
400 }
401 inline void SyncState_SeqNo::clear_has_seq() {
402  _has_bits_[0] &= ~0x00000001u;
403 }
404 inline void SyncState_SeqNo::clear_seq() {
405  seq_ = GOOGLE_ULONGLONG(0);
406  clear_has_seq();
407 }
408 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
409  return seq_;
410 }
411 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
412  set_has_seq();
413  seq_ = value;
414 }
415 
416 // required uint64 session = 2;
417 inline bool SyncState_SeqNo::has_session() const {
418  return (_has_bits_[0] & 0x00000002u) != 0;
419 }
420 inline void SyncState_SeqNo::set_has_session() {
421  _has_bits_[0] |= 0x00000002u;
422 }
423 inline void SyncState_SeqNo::clear_has_session() {
424  _has_bits_[0] &= ~0x00000002u;
425 }
426 inline void SyncState_SeqNo::clear_session() {
427  session_ = GOOGLE_ULONGLONG(0);
428  clear_has_session();
429 }
430 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
431  return session_;
432 }
433 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
434  set_has_session();
435  session_ = value;
436 }
437 
438 // -------------------------------------------------------------------
439 
440 // SyncState
441 
442 // required string name = 1;
443 inline bool SyncState::has_name() const {
444  return (_has_bits_[0] & 0x00000001u) != 0;
445 }
446 inline void SyncState::set_has_name() {
447  _has_bits_[0] |= 0x00000001u;
448 }
449 inline void SyncState::clear_has_name() {
450  _has_bits_[0] &= ~0x00000001u;
451 }
452 inline void SyncState::clear_name() {
453  if (name_ != &::google::protobuf::internal::kEmptyString) {
454  name_->clear();
455  }
456  clear_has_name();
457 }
458 inline const ::std::string& SyncState::name() const {
459  return *name_;
460 }
461 inline void SyncState::set_name(const ::std::string& value) {
462  set_has_name();
463  if (name_ == &::google::protobuf::internal::kEmptyString) {
464  name_ = new ::std::string;
465  }
466  name_->assign(value);
467 }
468 inline void SyncState::set_name(const char* value) {
469  set_has_name();
470  if (name_ == &::google::protobuf::internal::kEmptyString) {
471  name_ = new ::std::string;
472  }
473  name_->assign(value);
474 }
475 inline void SyncState::set_name(const char* value, size_t size) {
476  set_has_name();
477  if (name_ == &::google::protobuf::internal::kEmptyString) {
478  name_ = new ::std::string;
479  }
480  name_->assign(reinterpret_cast<const char*>(value), size);
481 }
482 inline ::std::string* SyncState::mutable_name() {
483  set_has_name();
484  if (name_ == &::google::protobuf::internal::kEmptyString) {
485  name_ = new ::std::string;
486  }
487  return name_;
488 }
489 inline ::std::string* SyncState::release_name() {
490  clear_has_name();
491  if (name_ == &::google::protobuf::internal::kEmptyString) {
492  return NULL;
493  } else {
494  ::std::string* temp = name_;
495  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
496  return temp;
497  }
498 }
499 
500 // required .Sync.SyncState.ActionType type = 2;
501 inline bool SyncState::has_type() const {
502  return (_has_bits_[0] & 0x00000002u) != 0;
503 }
504 inline void SyncState::set_has_type() {
505  _has_bits_[0] |= 0x00000002u;
506 }
507 inline void SyncState::clear_has_type() {
508  _has_bits_[0] &= ~0x00000002u;
509 }
510 inline void SyncState::clear_type() {
511  type_ = 0;
512  clear_has_type();
513 }
514 inline ::Sync::SyncState_ActionType SyncState::type() const {
515  return static_cast< ::Sync::SyncState_ActionType >(type_);
516 }
517 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
518  GOOGLE_DCHECK(::Sync::SyncState_ActionType_IsValid(value));
519  set_has_type();
520  type_ = value;
521 }
522 
523 // optional .Sync.SyncState.SeqNo seqno = 3;
524 inline bool SyncState::has_seqno() const {
525  return (_has_bits_[0] & 0x00000004u) != 0;
526 }
527 inline void SyncState::set_has_seqno() {
528  _has_bits_[0] |= 0x00000004u;
529 }
530 inline void SyncState::clear_has_seqno() {
531  _has_bits_[0] &= ~0x00000004u;
532 }
533 inline void SyncState::clear_seqno() {
534  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
535  clear_has_seqno();
536 }
537 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
538  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
539 }
540 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
541  set_has_seqno();
542  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
543  return seqno_;
544 }
545 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
546  clear_has_seqno();
547  ::Sync::SyncState_SeqNo* temp = seqno_;
548  seqno_ = NULL;
549  return temp;
550 }
551 
552 // optional bytes application_info = 4;
553 inline bool SyncState::has_application_info() const {
554  return (_has_bits_[0] & 0x00000008u) != 0;
555 }
556 inline void SyncState::set_has_application_info() {
557  _has_bits_[0] |= 0x00000008u;
558 }
559 inline void SyncState::clear_has_application_info() {
560  _has_bits_[0] &= ~0x00000008u;
561 }
562 inline void SyncState::clear_application_info() {
563  if (application_info_ != &::google::protobuf::internal::kEmptyString) {
564  application_info_->clear();
565  }
566  clear_has_application_info();
567 }
568 inline const ::std::string& SyncState::application_info() const {
569  return *application_info_;
570 }
571 inline void SyncState::set_application_info(const ::std::string& value) {
572  set_has_application_info();
573  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
574  application_info_ = new ::std::string;
575  }
576  application_info_->assign(value);
577 }
578 inline void SyncState::set_application_info(const char* value) {
579  set_has_application_info();
580  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
581  application_info_ = new ::std::string;
582  }
583  application_info_->assign(value);
584 }
585 inline void SyncState::set_application_info(const void* value, size_t size) {
586  set_has_application_info();
587  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
588  application_info_ = new ::std::string;
589  }
590  application_info_->assign(reinterpret_cast<const char*>(value), size);
591 }
592 inline ::std::string* SyncState::mutable_application_info() {
593  set_has_application_info();
594  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
595  application_info_ = new ::std::string;
596  }
597  return application_info_;
598 }
599 inline ::std::string* SyncState::release_application_info() {
600  clear_has_application_info();
601  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
602  return NULL;
603  } else {
604  ::std::string* temp = application_info_;
605  application_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
606  return temp;
607  }
608 }
609 
610 // -------------------------------------------------------------------
611 
612 // SyncStateMsg
613 
614 // repeated .Sync.SyncState ss = 1;
615 inline int SyncStateMsg::ss_size() const {
616  return ss_.size();
617 }
618 inline void SyncStateMsg::clear_ss() {
619  ss_.Clear();
620 }
621 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
622  return ss_.Get(index);
623 }
624 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
625  return ss_.Mutable(index);
626 }
627 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
628  return ss_.Add();
629 }
630 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
631 SyncStateMsg::ss() const {
632  return ss_;
633 }
634 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
635 SyncStateMsg::mutable_ss() {
636  return &ss_;
637 }
638 
639 
640 // @@protoc_insertion_point(namespace_scope)
641 
642 } // namespace Sync
643 
644 #ifndef SWIG
645 namespace google {
646 namespace protobuf {
647 
648 template <>
649 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
650  return ::Sync::SyncState_ActionType_descriptor();
651 }
652 
653 } // namespace google
654 } // namespace protobuf
655 #endif // SWIG
656 
657 // @@protoc_insertion_point(global_scope)
658 
659 #elif GOOGLE_PROTOBUF_VERSION < 2006000
660 
661 #if GOOGLE_PROTOBUF_VERSION < 2005000
662 #error This file was generated by a newer version of protoc which is
663 #error incompatible with your Protocol Buffer headers. Please update
664 #error your headers.
665 #endif
666 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
667 #error This file was generated by an older version of protoc which is
668 #error incompatible with your Protocol Buffer headers. Please
669 #error regenerate this file with a newer version of protoc.
670 #endif
671 
672 #include <google/protobuf/generated_message_util.h>
673 #include <google/protobuf/message.h>
674 #include <google/protobuf/repeated_field.h>
675 #include <google/protobuf/extension_set.h>
676 #include <google/protobuf/generated_enum_reflection.h>
677 #include <google/protobuf/unknown_field_set.h>
678 // @@protoc_insertion_point(includes)
679 
680 namespace Sync {
681 
682 // Internal implementation detail -- do not call these.
683 void protobuf_AddDesc_sync_2dstate_2eproto();
684 void protobuf_AssignDesc_sync_2dstate_2eproto();
685 void protobuf_ShutdownFile_sync_2dstate_2eproto();
686 
687 class SyncState;
688 class SyncState_SeqNo;
689 class SyncStateMsg;
690 
691 enum SyncState_ActionType {
692  SyncState_ActionType_UPDATE = 0,
693  SyncState_ActionType_DELETE = 1,
694  SyncState_ActionType_OTHER = 2
695 };
696 bool SyncState_ActionType_IsValid(int value);
697 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
698 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
699 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
700 
701 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
702 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
703  return ::google::protobuf::internal::NameOfEnum(
704  SyncState_ActionType_descriptor(), value);
705 }
706 inline bool SyncState_ActionType_Parse(
707  const ::std::string& name, SyncState_ActionType* value) {
708  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
709  SyncState_ActionType_descriptor(), name, value);
710 }
711 // ===================================================================
712 
713 class SyncState_SeqNo : public ::google::protobuf::Message {
714  public:
715  SyncState_SeqNo();
716  virtual ~SyncState_SeqNo();
717 
718  SyncState_SeqNo(const SyncState_SeqNo& from);
719 
720  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
721  CopyFrom(from);
722  return *this;
723  }
724 
725  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
726  return _unknown_fields_;
727  }
728 
729  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
730  return &_unknown_fields_;
731  }
732 
733  static const ::google::protobuf::Descriptor* descriptor();
734  static const SyncState_SeqNo& default_instance();
735 
736  void Swap(SyncState_SeqNo* other);
737 
738  // implements Message ----------------------------------------------
739 
740  SyncState_SeqNo* New() const;
741  void CopyFrom(const ::google::protobuf::Message& from);
742  void MergeFrom(const ::google::protobuf::Message& from);
743  void CopyFrom(const SyncState_SeqNo& from);
744  void MergeFrom(const SyncState_SeqNo& from);
745  void Clear();
746  bool IsInitialized() const;
747 
748  int ByteSize() const;
749  bool MergePartialFromCodedStream(
750  ::google::protobuf::io::CodedInputStream* input);
751  void SerializeWithCachedSizes(
752  ::google::protobuf::io::CodedOutputStream* output) const;
753  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
754  int GetCachedSize() const { return _cached_size_; }
755  private:
756  void SharedCtor();
757  void SharedDtor();
758  void SetCachedSize(int size) const;
759  public:
760 
761  ::google::protobuf::Metadata GetMetadata() const;
762 
763  // nested types ----------------------------------------------------
764 
765  // accessors -------------------------------------------------------
766 
767  // required uint64 seq = 1;
768  inline bool has_seq() const;
769  inline void clear_seq();
770  static const int kSeqFieldNumber = 1;
771  inline ::google::protobuf::uint64 seq() const;
772  inline void set_seq(::google::protobuf::uint64 value);
773 
774  // required uint64 session = 2;
775  inline bool has_session() const;
776  inline void clear_session();
777  static const int kSessionFieldNumber = 2;
778  inline ::google::protobuf::uint64 session() const;
779  inline void set_session(::google::protobuf::uint64 value);
780 
781  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
782  private:
783  inline void set_has_seq();
784  inline void clear_has_seq();
785  inline void set_has_session();
786  inline void clear_has_session();
787 
788  ::google::protobuf::UnknownFieldSet _unknown_fields_;
789 
790  ::google::protobuf::uint64 seq_;
791  ::google::protobuf::uint64 session_;
792 
793  mutable int _cached_size_;
794  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
795 
796  friend void protobuf_AddDesc_sync_2dstate_2eproto();
797  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
798  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
799 
800  void InitAsDefaultInstance();
801  static SyncState_SeqNo* default_instance_;
802 };
803 // -------------------------------------------------------------------
804 
805 class SyncState : public ::google::protobuf::Message {
806  public:
807  SyncState();
808  virtual ~SyncState();
809 
810  SyncState(const SyncState& from);
811 
812  inline SyncState& operator=(const SyncState& from) {
813  CopyFrom(from);
814  return *this;
815  }
816 
817  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
818  return _unknown_fields_;
819  }
820 
821  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
822  return &_unknown_fields_;
823  }
824 
825  static const ::google::protobuf::Descriptor* descriptor();
826  static const SyncState& default_instance();
827 
828  void Swap(SyncState* other);
829 
830  // implements Message ----------------------------------------------
831 
832  SyncState* New() const;
833  void CopyFrom(const ::google::protobuf::Message& from);
834  void MergeFrom(const ::google::protobuf::Message& from);
835  void CopyFrom(const SyncState& from);
836  void MergeFrom(const SyncState& from);
837  void Clear();
838  bool IsInitialized() const;
839 
840  int ByteSize() const;
841  bool MergePartialFromCodedStream(
842  ::google::protobuf::io::CodedInputStream* input);
843  void SerializeWithCachedSizes(
844  ::google::protobuf::io::CodedOutputStream* output) const;
845  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
846  int GetCachedSize() const { return _cached_size_; }
847  private:
848  void SharedCtor();
849  void SharedDtor();
850  void SetCachedSize(int size) const;
851  public:
852 
853  ::google::protobuf::Metadata GetMetadata() const;
854 
855  // nested types ----------------------------------------------------
856 
857  typedef SyncState_SeqNo SeqNo;
858 
859  typedef SyncState_ActionType ActionType;
860  static const ActionType UPDATE = SyncState_ActionType_UPDATE;
861  static const ActionType DELETE = SyncState_ActionType_DELETE;
862  static const ActionType OTHER = SyncState_ActionType_OTHER;
863  static inline bool ActionType_IsValid(int value) {
864  return SyncState_ActionType_IsValid(value);
865  }
866  static const ActionType ActionType_MIN =
867  SyncState_ActionType_ActionType_MIN;
868  static const ActionType ActionType_MAX =
869  SyncState_ActionType_ActionType_MAX;
870  static const int ActionType_ARRAYSIZE =
871  SyncState_ActionType_ActionType_ARRAYSIZE;
872  static inline const ::google::protobuf::EnumDescriptor*
873  ActionType_descriptor() {
874  return SyncState_ActionType_descriptor();
875  }
876  static inline const ::std::string& ActionType_Name(ActionType value) {
877  return SyncState_ActionType_Name(value);
878  }
879  static inline bool ActionType_Parse(const ::std::string& name,
880  ActionType* value) {
881  return SyncState_ActionType_Parse(name, value);
882  }
883 
884  // accessors -------------------------------------------------------
885 
886  // required string name = 1;
887  inline bool has_name() const;
888  inline void clear_name();
889  static const int kNameFieldNumber = 1;
890  inline const ::std::string& name() const;
891  inline void set_name(const ::std::string& value);
892  inline void set_name(const char* value);
893  inline void set_name(const char* value, size_t size);
894  inline ::std::string* mutable_name();
895  inline ::std::string* release_name();
896  inline void set_allocated_name(::std::string* name);
897 
898  // required .Sync.SyncState.ActionType type = 2;
899  inline bool has_type() const;
900  inline void clear_type();
901  static const int kTypeFieldNumber = 2;
902  inline ::Sync::SyncState_ActionType type() const;
903  inline void set_type(::Sync::SyncState_ActionType value);
904 
905  // optional .Sync.SyncState.SeqNo seqno = 3;
906  inline bool has_seqno() const;
907  inline void clear_seqno();
908  static const int kSeqnoFieldNumber = 3;
909  inline const ::Sync::SyncState_SeqNo& seqno() const;
910  inline ::Sync::SyncState_SeqNo* mutable_seqno();
911  inline ::Sync::SyncState_SeqNo* release_seqno();
912  inline void set_allocated_seqno(::Sync::SyncState_SeqNo* seqno);
913 
914  // optional bytes application_info = 4;
915  inline bool has_application_info() const;
916  inline void clear_application_info();
917  static const int kApplicationInfoFieldNumber = 4;
918  inline const ::std::string& application_info() const;
919  inline void set_application_info(const ::std::string& value);
920  inline void set_application_info(const char* value);
921  inline void set_application_info(const void* value, size_t size);
922  inline ::std::string* mutable_application_info();
923  inline ::std::string* release_application_info();
924  inline void set_allocated_application_info(::std::string* application_info);
925 
926  // @@protoc_insertion_point(class_scope:Sync.SyncState)
927  private:
928  inline void set_has_name();
929  inline void clear_has_name();
930  inline void set_has_type();
931  inline void clear_has_type();
932  inline void set_has_seqno();
933  inline void clear_has_seqno();
934  inline void set_has_application_info();
935  inline void clear_has_application_info();
936 
937  ::google::protobuf::UnknownFieldSet _unknown_fields_;
938 
939  ::std::string* name_;
940  ::Sync::SyncState_SeqNo* seqno_;
941  ::std::string* application_info_;
942  int type_;
943 
944  mutable int _cached_size_;
945  ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
946 
947  friend void protobuf_AddDesc_sync_2dstate_2eproto();
948  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
949  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
950 
951  void InitAsDefaultInstance();
952  static SyncState* default_instance_;
953 };
954 // -------------------------------------------------------------------
955 
956 class SyncStateMsg : public ::google::protobuf::Message {
957  public:
958  SyncStateMsg();
959  virtual ~SyncStateMsg();
960 
961  SyncStateMsg(const SyncStateMsg& from);
962 
963  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
964  CopyFrom(from);
965  return *this;
966  }
967 
968  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
969  return _unknown_fields_;
970  }
971 
972  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
973  return &_unknown_fields_;
974  }
975 
976  static const ::google::protobuf::Descriptor* descriptor();
977  static const SyncStateMsg& default_instance();
978 
979  void Swap(SyncStateMsg* other);
980 
981  // implements Message ----------------------------------------------
982 
983  SyncStateMsg* New() const;
984  void CopyFrom(const ::google::protobuf::Message& from);
985  void MergeFrom(const ::google::protobuf::Message& from);
986  void CopyFrom(const SyncStateMsg& from);
987  void MergeFrom(const SyncStateMsg& from);
988  void Clear();
989  bool IsInitialized() const;
990 
991  int ByteSize() const;
992  bool MergePartialFromCodedStream(
993  ::google::protobuf::io::CodedInputStream* input);
994  void SerializeWithCachedSizes(
995  ::google::protobuf::io::CodedOutputStream* output) const;
996  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
997  int GetCachedSize() const { return _cached_size_; }
998  private:
999  void SharedCtor();
1000  void SharedDtor();
1001  void SetCachedSize(int size) const;
1002  public:
1003 
1004  ::google::protobuf::Metadata GetMetadata() const;
1005 
1006  // nested types ----------------------------------------------------
1007 
1008  // accessors -------------------------------------------------------
1009 
1010  // repeated .Sync.SyncState ss = 1;
1011  inline int ss_size() const;
1012  inline void clear_ss();
1013  static const int kSsFieldNumber = 1;
1014  inline const ::Sync::SyncState& ss(int index) const;
1015  inline ::Sync::SyncState* mutable_ss(int index);
1016  inline ::Sync::SyncState* add_ss();
1017  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1018  ss() const;
1019  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1020  mutable_ss();
1021 
1022  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
1023  private:
1024 
1025  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1026 
1028 
1029  mutable int _cached_size_;
1030  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1031 
1032  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1033  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1034  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1035 
1036  void InitAsDefaultInstance();
1037  static SyncStateMsg* default_instance_;
1038 };
1039 // ===================================================================
1040 
1041 
1042 // ===================================================================
1043 
1044 // SyncState_SeqNo
1045 
1046 // required uint64 seq = 1;
1047 inline bool SyncState_SeqNo::has_seq() const {
1048  return (_has_bits_[0] & 0x00000001u) != 0;
1049 }
1050 inline void SyncState_SeqNo::set_has_seq() {
1051  _has_bits_[0] |= 0x00000001u;
1052 }
1053 inline void SyncState_SeqNo::clear_has_seq() {
1054  _has_bits_[0] &= ~0x00000001u;
1055 }
1056 inline void SyncState_SeqNo::clear_seq() {
1057  seq_ = GOOGLE_ULONGLONG(0);
1058  clear_has_seq();
1059 }
1060 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
1061  return seq_;
1062 }
1063 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
1064  set_has_seq();
1065  seq_ = value;
1066 }
1067 
1068 // required uint64 session = 2;
1069 inline bool SyncState_SeqNo::has_session() const {
1070  return (_has_bits_[0] & 0x00000002u) != 0;
1071 }
1072 inline void SyncState_SeqNo::set_has_session() {
1073  _has_bits_[0] |= 0x00000002u;
1074 }
1075 inline void SyncState_SeqNo::clear_has_session() {
1076  _has_bits_[0] &= ~0x00000002u;
1077 }
1078 inline void SyncState_SeqNo::clear_session() {
1079  session_ = GOOGLE_ULONGLONG(0);
1080  clear_has_session();
1081 }
1082 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
1083  return session_;
1084 }
1085 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
1086  set_has_session();
1087  session_ = value;
1088 }
1089 
1090 // -------------------------------------------------------------------
1091 
1092 // SyncState
1093 
1094 // required string name = 1;
1095 inline bool SyncState::has_name() const {
1096  return (_has_bits_[0] & 0x00000001u) != 0;
1097 }
1098 inline void SyncState::set_has_name() {
1099  _has_bits_[0] |= 0x00000001u;
1100 }
1101 inline void SyncState::clear_has_name() {
1102  _has_bits_[0] &= ~0x00000001u;
1103 }
1104 inline void SyncState::clear_name() {
1105  if (name_ != &::google::protobuf::internal::kEmptyString) {
1106  name_->clear();
1107  }
1108  clear_has_name();
1109 }
1110 inline const ::std::string& SyncState::name() const {
1111  return *name_;
1112 }
1113 inline void SyncState::set_name(const ::std::string& value) {
1114  set_has_name();
1115  if (name_ == &::google::protobuf::internal::kEmptyString) {
1116  name_ = new ::std::string;
1117  }
1118  name_->assign(value);
1119 }
1120 inline void SyncState::set_name(const char* value) {
1121  set_has_name();
1122  if (name_ == &::google::protobuf::internal::kEmptyString) {
1123  name_ = new ::std::string;
1124  }
1125  name_->assign(value);
1126 }
1127 inline void SyncState::set_name(const char* value, size_t size) {
1128  set_has_name();
1129  if (name_ == &::google::protobuf::internal::kEmptyString) {
1130  name_ = new ::std::string;
1131  }
1132  name_->assign(reinterpret_cast<const char*>(value), size);
1133 }
1134 inline ::std::string* SyncState::mutable_name() {
1135  set_has_name();
1136  if (name_ == &::google::protobuf::internal::kEmptyString) {
1137  name_ = new ::std::string;
1138  }
1139  return name_;
1140 }
1141 inline ::std::string* SyncState::release_name() {
1142  clear_has_name();
1143  if (name_ == &::google::protobuf::internal::kEmptyString) {
1144  return NULL;
1145  } else {
1146  ::std::string* temp = name_;
1147  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1148  return temp;
1149  }
1150 }
1151 inline void SyncState::set_allocated_name(::std::string* name) {
1152  if (name_ != &::google::protobuf::internal::kEmptyString) {
1153  delete name_;
1154  }
1155  if (name) {
1156  set_has_name();
1157  name_ = name;
1158  } else {
1159  clear_has_name();
1160  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1161  }
1162 }
1163 
1164 // required .Sync.SyncState.ActionType type = 2;
1165 inline bool SyncState::has_type() const {
1166  return (_has_bits_[0] & 0x00000002u) != 0;
1167 }
1168 inline void SyncState::set_has_type() {
1169  _has_bits_[0] |= 0x00000002u;
1170 }
1171 inline void SyncState::clear_has_type() {
1172  _has_bits_[0] &= ~0x00000002u;
1173 }
1174 inline void SyncState::clear_type() {
1175  type_ = 0;
1176  clear_has_type();
1177 }
1178 inline ::Sync::SyncState_ActionType SyncState::type() const {
1179  return static_cast< ::Sync::SyncState_ActionType >(type_);
1180 }
1181 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1182  assert(::Sync::SyncState_ActionType_IsValid(value));
1183  set_has_type();
1184  type_ = value;
1185 }
1186 
1187 // optional .Sync.SyncState.SeqNo seqno = 3;
1188 inline bool SyncState::has_seqno() const {
1189  return (_has_bits_[0] & 0x00000004u) != 0;
1190 }
1191 inline void SyncState::set_has_seqno() {
1192  _has_bits_[0] |= 0x00000004u;
1193 }
1194 inline void SyncState::clear_has_seqno() {
1195  _has_bits_[0] &= ~0x00000004u;
1196 }
1197 inline void SyncState::clear_seqno() {
1198  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1199  clear_has_seqno();
1200 }
1201 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
1202  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1203 }
1204 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1205  set_has_seqno();
1206  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1207  return seqno_;
1208 }
1209 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1210  clear_has_seqno();
1211  ::Sync::SyncState_SeqNo* temp = seqno_;
1212  seqno_ = NULL;
1213  return temp;
1214 }
1215 inline void SyncState::set_allocated_seqno(::Sync::SyncState_SeqNo* seqno) {
1216  delete seqno_;
1217  seqno_ = seqno;
1218  if (seqno) {
1219  set_has_seqno();
1220  } else {
1221  clear_has_seqno();
1222  }
1223 }
1224 
1225 // optional bytes application_info = 4;
1226 inline bool SyncState::has_application_info() const {
1227  return (_has_bits_[0] & 0x00000008u) != 0;
1228 }
1229 inline void SyncState::set_has_application_info() {
1230  _has_bits_[0] |= 0x00000008u;
1231 }
1232 inline void SyncState::clear_has_application_info() {
1233  _has_bits_[0] &= ~0x00000008u;
1234 }
1235 inline void SyncState::clear_application_info() {
1236  if (application_info_ != &::google::protobuf::internal::kEmptyString) {
1237  application_info_->clear();
1238  }
1239  clear_has_application_info();
1240 }
1241 inline const ::std::string& SyncState::application_info() const {
1242  return *application_info_;
1243 }
1244 inline void SyncState::set_application_info(const ::std::string& value) {
1245  set_has_application_info();
1246  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1247  application_info_ = new ::std::string;
1248  }
1249  application_info_->assign(value);
1250 }
1251 inline void SyncState::set_application_info(const char* value) {
1252  set_has_application_info();
1253  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1254  application_info_ = new ::std::string;
1255  }
1256  application_info_->assign(value);
1257 }
1258 inline void SyncState::set_application_info(const void* value, size_t size) {
1259  set_has_application_info();
1260  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1261  application_info_ = new ::std::string;
1262  }
1263  application_info_->assign(reinterpret_cast<const char*>(value), size);
1264 }
1265 inline ::std::string* SyncState::mutable_application_info() {
1266  set_has_application_info();
1267  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1268  application_info_ = new ::std::string;
1269  }
1270  return application_info_;
1271 }
1272 inline ::std::string* SyncState::release_application_info() {
1273  clear_has_application_info();
1274  if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1275  return NULL;
1276  } else {
1277  ::std::string* temp = application_info_;
1278  application_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1279  return temp;
1280  }
1281 }
1282 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
1283  if (application_info_ != &::google::protobuf::internal::kEmptyString) {
1284  delete application_info_;
1285  }
1286  if (application_info) {
1287  set_has_application_info();
1288  application_info_ = application_info;
1289  } else {
1290  clear_has_application_info();
1291  application_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1292  }
1293 }
1294 
1295 // -------------------------------------------------------------------
1296 
1297 // SyncStateMsg
1298 
1299 // repeated .Sync.SyncState ss = 1;
1300 inline int SyncStateMsg::ss_size() const {
1301  return ss_.size();
1302 }
1303 inline void SyncStateMsg::clear_ss() {
1304  ss_.Clear();
1305 }
1306 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
1307  return ss_.Get(index);
1308 }
1309 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
1310  return ss_.Mutable(index);
1311 }
1312 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
1313  return ss_.Add();
1314 }
1315 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1316 SyncStateMsg::ss() const {
1317  return ss_;
1318 }
1319 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1320 SyncStateMsg::mutable_ss() {
1321  return &ss_;
1322 }
1323 
1324 
1325 // @@protoc_insertion_point(namespace_scope)
1326 
1327 } // namespace Sync
1328 
1329 #ifndef SWIG
1330 namespace google {
1331 namespace protobuf {
1332 
1333 template <>
1334 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
1335  return ::Sync::SyncState_ActionType_descriptor();
1336 }
1337 
1338 } // namespace google
1339 } // namespace protobuf
1340 #endif // SWIG
1341 
1342 // @@protoc_insertion_point(global_scope)
1343 
1344 #elif GOOGLE_PROTOBUF_VERSION < 3000000
1345 
1346 #if GOOGLE_PROTOBUF_VERSION < 2006000
1347 #error This file was generated by a newer version of protoc which is
1348 #error incompatible with your Protocol Buffer headers. Please update
1349 #error your headers.
1350 #endif
1351 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
1352 #error This file was generated by an older version of protoc which is
1353 #error incompatible with your Protocol Buffer headers. Please
1354 #error regenerate this file with a newer version of protoc.
1355 #endif
1356 
1357 #include <google/protobuf/generated_message_util.h>
1358 #include <google/protobuf/message.h>
1359 #include <google/protobuf/repeated_field.h>
1360 #include <google/protobuf/extension_set.h>
1361 #include <google/protobuf/generated_enum_reflection.h>
1362 #include <google/protobuf/unknown_field_set.h>
1363 // @@protoc_insertion_point(includes)
1364 
1365 namespace Sync {
1366 
1367 // Internal implementation detail -- do not call these.
1368 void protobuf_AddDesc_sync_2dstate_2eproto();
1369 void protobuf_AssignDesc_sync_2dstate_2eproto();
1370 void protobuf_ShutdownFile_sync_2dstate_2eproto();
1371 
1372 class SyncState;
1373 class SyncState_SeqNo;
1374 class SyncStateMsg;
1375 
1376 enum SyncState_ActionType {
1377  SyncState_ActionType_UPDATE = 0,
1378  SyncState_ActionType_DELETE = 1,
1379  SyncState_ActionType_OTHER = 2
1380 };
1381 bool SyncState_ActionType_IsValid(int value);
1382 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
1383 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
1384 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
1385 
1386 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
1387 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
1388  return ::google::protobuf::internal::NameOfEnum(
1389  SyncState_ActionType_descriptor(), value);
1390 }
1391 inline bool SyncState_ActionType_Parse(
1392  const ::std::string& name, SyncState_ActionType* value) {
1393  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
1394  SyncState_ActionType_descriptor(), name, value);
1395 }
1396 // ===================================================================
1397 
1398 class SyncState_SeqNo : public ::google::protobuf::Message {
1399  public:
1400  SyncState_SeqNo();
1401  virtual ~SyncState_SeqNo();
1402 
1403  SyncState_SeqNo(const SyncState_SeqNo& from);
1404 
1405  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
1406  CopyFrom(from);
1407  return *this;
1408  }
1409 
1410  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1411  return _unknown_fields_;
1412  }
1413 
1414  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1415  return &_unknown_fields_;
1416  }
1417 
1418  static const ::google::protobuf::Descriptor* descriptor();
1419  static const SyncState_SeqNo& default_instance();
1420 
1421  void Swap(SyncState_SeqNo* other);
1422 
1423  // implements Message ----------------------------------------------
1424 
1425  SyncState_SeqNo* New() const;
1426  void CopyFrom(const ::google::protobuf::Message& from);
1427  void MergeFrom(const ::google::protobuf::Message& from);
1428  void CopyFrom(const SyncState_SeqNo& from);
1429  void MergeFrom(const SyncState_SeqNo& from);
1430  void Clear();
1431  bool IsInitialized() const;
1432 
1433  int ByteSize() const;
1434  bool MergePartialFromCodedStream(
1435  ::google::protobuf::io::CodedInputStream* input);
1436  void SerializeWithCachedSizes(
1437  ::google::protobuf::io::CodedOutputStream* output) const;
1438  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1439  int GetCachedSize() const { return _cached_size_; }
1440  private:
1441  void SharedCtor();
1442  void SharedDtor();
1443  void SetCachedSize(int size) const;
1444  public:
1445  ::google::protobuf::Metadata GetMetadata() const;
1446 
1447  // nested types ----------------------------------------------------
1448 
1449  // accessors -------------------------------------------------------
1450 
1451  // required uint64 seq = 1;
1452  inline bool has_seq() const;
1453  inline void clear_seq();
1454  static const int kSeqFieldNumber = 1;
1455  inline ::google::protobuf::uint64 seq() const;
1456  inline void set_seq(::google::protobuf::uint64 value);
1457 
1458  // required uint64 session = 2;
1459  inline bool has_session() const;
1460  inline void clear_session();
1461  static const int kSessionFieldNumber = 2;
1462  inline ::google::protobuf::uint64 session() const;
1463  inline void set_session(::google::protobuf::uint64 value);
1464 
1465  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
1466  private:
1467  inline void set_has_seq();
1468  inline void clear_has_seq();
1469  inline void set_has_session();
1470  inline void clear_has_session();
1471 
1472  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1473 
1474  ::google::protobuf::uint32 _has_bits_[1];
1475  mutable int _cached_size_;
1476  ::google::protobuf::uint64 seq_;
1477  ::google::protobuf::uint64 session_;
1478  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1479  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1480  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1481 
1482  void InitAsDefaultInstance();
1483  static SyncState_SeqNo* default_instance_;
1484 };
1485 // -------------------------------------------------------------------
1486 
1487 class SyncState : public ::google::protobuf::Message {
1488  public:
1489  SyncState();
1490  virtual ~SyncState();
1491 
1492  SyncState(const SyncState& from);
1493 
1494  inline SyncState& operator=(const SyncState& from) {
1495  CopyFrom(from);
1496  return *this;
1497  }
1498 
1499  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1500  return _unknown_fields_;
1501  }
1502 
1503  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1504  return &_unknown_fields_;
1505  }
1506 
1507  static const ::google::protobuf::Descriptor* descriptor();
1508  static const SyncState& default_instance();
1509 
1510  void Swap(SyncState* other);
1511 
1512  // implements Message ----------------------------------------------
1513 
1514  SyncState* New() const;
1515  void CopyFrom(const ::google::protobuf::Message& from);
1516  void MergeFrom(const ::google::protobuf::Message& from);
1517  void CopyFrom(const SyncState& from);
1518  void MergeFrom(const SyncState& from);
1519  void Clear();
1520  bool IsInitialized() const;
1521 
1522  int ByteSize() const;
1523  bool MergePartialFromCodedStream(
1524  ::google::protobuf::io::CodedInputStream* input);
1525  void SerializeWithCachedSizes(
1526  ::google::protobuf::io::CodedOutputStream* output) const;
1527  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1528  int GetCachedSize() const { return _cached_size_; }
1529  private:
1530  void SharedCtor();
1531  void SharedDtor();
1532  void SetCachedSize(int size) const;
1533  public:
1534  ::google::protobuf::Metadata GetMetadata() const;
1535 
1536  // nested types ----------------------------------------------------
1537 
1538  typedef SyncState_SeqNo SeqNo;
1539 
1540  typedef SyncState_ActionType ActionType;
1541  static const ActionType UPDATE = SyncState_ActionType_UPDATE;
1542  static const ActionType DELETE = SyncState_ActionType_DELETE;
1543  static const ActionType OTHER = SyncState_ActionType_OTHER;
1544  static inline bool ActionType_IsValid(int value) {
1545  return SyncState_ActionType_IsValid(value);
1546  }
1547  static const ActionType ActionType_MIN =
1548  SyncState_ActionType_ActionType_MIN;
1549  static const ActionType ActionType_MAX =
1550  SyncState_ActionType_ActionType_MAX;
1551  static const int ActionType_ARRAYSIZE =
1552  SyncState_ActionType_ActionType_ARRAYSIZE;
1553  static inline const ::google::protobuf::EnumDescriptor*
1554  ActionType_descriptor() {
1555  return SyncState_ActionType_descriptor();
1556  }
1557  static inline const ::std::string& ActionType_Name(ActionType value) {
1558  return SyncState_ActionType_Name(value);
1559  }
1560  static inline bool ActionType_Parse(const ::std::string& name,
1561  ActionType* value) {
1562  return SyncState_ActionType_Parse(name, value);
1563  }
1564 
1565  // accessors -------------------------------------------------------
1566 
1567  // required string name = 1;
1568  inline bool has_name() const;
1569  inline void clear_name();
1570  static const int kNameFieldNumber = 1;
1571  inline const ::std::string& name() const;
1572  inline void set_name(const ::std::string& value);
1573  inline void set_name(const char* value);
1574  inline void set_name(const char* value, size_t size);
1575  inline ::std::string* mutable_name();
1576  inline ::std::string* release_name();
1577  inline void set_allocated_name(::std::string* name);
1578 
1579  // required .Sync.SyncState.ActionType type = 2;
1580  inline bool has_type() const;
1581  inline void clear_type();
1582  static const int kTypeFieldNumber = 2;
1583  inline ::Sync::SyncState_ActionType type() const;
1584  inline void set_type(::Sync::SyncState_ActionType value);
1585 
1586  // optional .Sync.SyncState.SeqNo seqno = 3;
1587  inline bool has_seqno() const;
1588  inline void clear_seqno();
1589  static const int kSeqnoFieldNumber = 3;
1590  inline const ::Sync::SyncState_SeqNo& seqno() const;
1591  inline ::Sync::SyncState_SeqNo* mutable_seqno();
1592  inline ::Sync::SyncState_SeqNo* release_seqno();
1593  inline void set_allocated_seqno(::Sync::SyncState_SeqNo* seqno);
1594 
1595  // optional bytes application_info = 4;
1596  inline bool has_application_info() const;
1597  inline void clear_application_info();
1598  static const int kApplicationInfoFieldNumber = 4;
1599  inline const ::std::string& application_info() const;
1600  inline void set_application_info(const ::std::string& value);
1601  inline void set_application_info(const char* value);
1602  inline void set_application_info(const void* value, size_t size);
1603  inline ::std::string* mutable_application_info();
1604  inline ::std::string* release_application_info();
1605  inline void set_allocated_application_info(::std::string* application_info);
1606 
1607  // @@protoc_insertion_point(class_scope:Sync.SyncState)
1608  private:
1609  inline void set_has_name();
1610  inline void clear_has_name();
1611  inline void set_has_type();
1612  inline void clear_has_type();
1613  inline void set_has_seqno();
1614  inline void clear_has_seqno();
1615  inline void set_has_application_info();
1616  inline void clear_has_application_info();
1617 
1618  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1619 
1620  ::google::protobuf::uint32 _has_bits_[1];
1621  mutable int _cached_size_;
1622  ::std::string* name_;
1623  ::Sync::SyncState_SeqNo* seqno_;
1624  ::std::string* application_info_;
1625  int type_;
1626  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1627  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1628  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1629 
1630  void InitAsDefaultInstance();
1631  static SyncState* default_instance_;
1632 };
1633 // -------------------------------------------------------------------
1634 
1635 class SyncStateMsg : public ::google::protobuf::Message {
1636  public:
1637  SyncStateMsg();
1638  virtual ~SyncStateMsg();
1639 
1640  SyncStateMsg(const SyncStateMsg& from);
1641 
1642  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
1643  CopyFrom(from);
1644  return *this;
1645  }
1646 
1647  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1648  return _unknown_fields_;
1649  }
1650 
1651  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1652  return &_unknown_fields_;
1653  }
1654 
1655  static const ::google::protobuf::Descriptor* descriptor();
1656  static const SyncStateMsg& default_instance();
1657 
1658  void Swap(SyncStateMsg* other);
1659 
1660  // implements Message ----------------------------------------------
1661 
1662  SyncStateMsg* New() const;
1663  void CopyFrom(const ::google::protobuf::Message& from);
1664  void MergeFrom(const ::google::protobuf::Message& from);
1665  void CopyFrom(const SyncStateMsg& from);
1666  void MergeFrom(const SyncStateMsg& from);
1667  void Clear();
1668  bool IsInitialized() const;
1669 
1670  int ByteSize() const;
1671  bool MergePartialFromCodedStream(
1672  ::google::protobuf::io::CodedInputStream* input);
1673  void SerializeWithCachedSizes(
1674  ::google::protobuf::io::CodedOutputStream* output) const;
1675  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1676  int GetCachedSize() const { return _cached_size_; }
1677  private:
1678  void SharedCtor();
1679  void SharedDtor();
1680  void SetCachedSize(int size) const;
1681  public:
1682  ::google::protobuf::Metadata GetMetadata() const;
1683 
1684  // nested types ----------------------------------------------------
1685 
1686  // accessors -------------------------------------------------------
1687 
1688  // repeated .Sync.SyncState ss = 1;
1689  inline int ss_size() const;
1690  inline void clear_ss();
1691  static const int kSsFieldNumber = 1;
1692  inline const ::Sync::SyncState& ss(int index) const;
1693  inline ::Sync::SyncState* mutable_ss(int index);
1694  inline ::Sync::SyncState* add_ss();
1695  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1696  ss() const;
1697  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1698  mutable_ss();
1699 
1700  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
1701  private:
1702 
1703  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1704 
1705  ::google::protobuf::uint32 _has_bits_[1];
1706  mutable int _cached_size_;
1708  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1709  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1710  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1711 
1712  void InitAsDefaultInstance();
1713  static SyncStateMsg* default_instance_;
1714 };
1715 // ===================================================================
1716 
1717 
1718 // ===================================================================
1719 
1720 // SyncState_SeqNo
1721 
1722 // required uint64 seq = 1;
1723 inline bool SyncState_SeqNo::has_seq() const {
1724  return (_has_bits_[0] & 0x00000001u) != 0;
1725 }
1726 inline void SyncState_SeqNo::set_has_seq() {
1727  _has_bits_[0] |= 0x00000001u;
1728 }
1729 inline void SyncState_SeqNo::clear_has_seq() {
1730  _has_bits_[0] &= ~0x00000001u;
1731 }
1732 inline void SyncState_SeqNo::clear_seq() {
1733  seq_ = GOOGLE_ULONGLONG(0);
1734  clear_has_seq();
1735 }
1736 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
1737  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.seq)
1738  return seq_;
1739 }
1740 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
1741  set_has_seq();
1742  seq_ = value;
1743  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.seq)
1744 }
1745 
1746 // required uint64 session = 2;
1747 inline bool SyncState_SeqNo::has_session() const {
1748  return (_has_bits_[0] & 0x00000002u) != 0;
1749 }
1750 inline void SyncState_SeqNo::set_has_session() {
1751  _has_bits_[0] |= 0x00000002u;
1752 }
1753 inline void SyncState_SeqNo::clear_has_session() {
1754  _has_bits_[0] &= ~0x00000002u;
1755 }
1756 inline void SyncState_SeqNo::clear_session() {
1757  session_ = GOOGLE_ULONGLONG(0);
1758  clear_has_session();
1759 }
1760 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
1761  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.session)
1762  return session_;
1763 }
1764 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
1765  set_has_session();
1766  session_ = value;
1767  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.session)
1768 }
1769 
1770 // -------------------------------------------------------------------
1771 
1772 // SyncState
1773 
1774 // required string name = 1;
1775 inline bool SyncState::has_name() const {
1776  return (_has_bits_[0] & 0x00000001u) != 0;
1777 }
1778 inline void SyncState::set_has_name() {
1779  _has_bits_[0] |= 0x00000001u;
1780 }
1781 inline void SyncState::clear_has_name() {
1782  _has_bits_[0] &= ~0x00000001u;
1783 }
1784 inline void SyncState::clear_name() {
1785  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1786  name_->clear();
1787  }
1788  clear_has_name();
1789 }
1790 inline const ::std::string& SyncState::name() const {
1791  // @@protoc_insertion_point(field_get:Sync.SyncState.name)
1792  return *name_;
1793 }
1794 inline void SyncState::set_name(const ::std::string& value) {
1795  set_has_name();
1796  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1797  name_ = new ::std::string;
1798  }
1799  name_->assign(value);
1800  // @@protoc_insertion_point(field_set:Sync.SyncState.name)
1801 }
1802 inline void SyncState::set_name(const char* value) {
1803  set_has_name();
1804  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1805  name_ = new ::std::string;
1806  }
1807  name_->assign(value);
1808  // @@protoc_insertion_point(field_set_char:Sync.SyncState.name)
1809 }
1810 inline void SyncState::set_name(const char* value, size_t size) {
1811  set_has_name();
1812  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1813  name_ = new ::std::string;
1814  }
1815  name_->assign(reinterpret_cast<const char*>(value), size);
1816  // @@protoc_insertion_point(field_set_pointer:Sync.SyncState.name)
1817 }
1818 inline ::std::string* SyncState::mutable_name() {
1819  set_has_name();
1820  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1821  name_ = new ::std::string;
1822  }
1823  // @@protoc_insertion_point(field_mutable:Sync.SyncState.name)
1824  return name_;
1825 }
1826 inline ::std::string* SyncState::release_name() {
1827  clear_has_name();
1828  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1829  return NULL;
1830  } else {
1831  ::std::string* temp = name_;
1832  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1833  return temp;
1834  }
1835 }
1836 inline void SyncState::set_allocated_name(::std::string* name) {
1837  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1838  delete name_;
1839  }
1840  if (name) {
1841  set_has_name();
1842  name_ = name;
1843  } else {
1844  clear_has_name();
1845  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1846  }
1847  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.name)
1848 }
1849 
1850 // required .Sync.SyncState.ActionType type = 2;
1851 inline bool SyncState::has_type() const {
1852  return (_has_bits_[0] & 0x00000002u) != 0;
1853 }
1854 inline void SyncState::set_has_type() {
1855  _has_bits_[0] |= 0x00000002u;
1856 }
1857 inline void SyncState::clear_has_type() {
1858  _has_bits_[0] &= ~0x00000002u;
1859 }
1860 inline void SyncState::clear_type() {
1861  type_ = 0;
1862  clear_has_type();
1863 }
1864 inline ::Sync::SyncState_ActionType SyncState::type() const {
1865  // @@protoc_insertion_point(field_get:Sync.SyncState.type)
1866  return static_cast< ::Sync::SyncState_ActionType >(type_);
1867 }
1868 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1869  assert(::Sync::SyncState_ActionType_IsValid(value));
1870  set_has_type();
1871  type_ = value;
1872  // @@protoc_insertion_point(field_set:Sync.SyncState.type)
1873 }
1874 
1875 // optional .Sync.SyncState.SeqNo seqno = 3;
1876 inline bool SyncState::has_seqno() const {
1877  return (_has_bits_[0] & 0x00000004u) != 0;
1878 }
1879 inline void SyncState::set_has_seqno() {
1880  _has_bits_[0] |= 0x00000004u;
1881 }
1882 inline void SyncState::clear_has_seqno() {
1883  _has_bits_[0] &= ~0x00000004u;
1884 }
1885 inline void SyncState::clear_seqno() {
1886  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1887  clear_has_seqno();
1888 }
1889 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
1890  // @@protoc_insertion_point(field_get:Sync.SyncState.seqno)
1891  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1892 }
1893 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1894  set_has_seqno();
1895  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1896  // @@protoc_insertion_point(field_mutable:Sync.SyncState.seqno)
1897  return seqno_;
1898 }
1899 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1900  clear_has_seqno();
1901  ::Sync::SyncState_SeqNo* temp = seqno_;
1902  seqno_ = NULL;
1903  return temp;
1904 }
1905 inline void SyncState::set_allocated_seqno(::Sync::SyncState_SeqNo* seqno) {
1906  delete seqno_;
1907  seqno_ = seqno;
1908  if (seqno) {
1909  set_has_seqno();
1910  } else {
1911  clear_has_seqno();
1912  }
1913  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.seqno)
1914 }
1915 
1916 // optional bytes application_info = 4;
1917 inline bool SyncState::has_application_info() const {
1918  return (_has_bits_[0] & 0x00000008u) != 0;
1919 }
1920 inline void SyncState::set_has_application_info() {
1921  _has_bits_[0] |= 0x00000008u;
1922 }
1923 inline void SyncState::clear_has_application_info() {
1924  _has_bits_[0] &= ~0x00000008u;
1925 }
1926 inline void SyncState::clear_application_info() {
1927  if (application_info_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1928  application_info_->clear();
1929  }
1930  clear_has_application_info();
1931 }
1932 inline const ::std::string& SyncState::application_info() const {
1933  // @@protoc_insertion_point(field_get:Sync.SyncState.application_info)
1934  return *application_info_;
1935 }
1936 inline void SyncState::set_application_info(const ::std::string& value) {
1937  set_has_application_info();
1938  if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1939  application_info_ = new ::std::string;
1940  }
1941  application_info_->assign(value);
1942  // @@protoc_insertion_point(field_set:Sync.SyncState.application_info)
1943 }
1944 inline void SyncState::set_application_info(const char* value) {
1945  set_has_application_info();
1946  if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1947  application_info_ = new ::std::string;
1948  }
1949  application_info_->assign(value);
1950  // @@protoc_insertion_point(field_set_char:Sync.SyncState.application_info)
1951 }
1952 inline void SyncState::set_application_info(const void* value, size_t size) {
1953  set_has_application_info();
1954  if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1955  application_info_ = new ::std::string;
1956  }
1957  application_info_->assign(reinterpret_cast<const char*>(value), size);
1958  // @@protoc_insertion_point(field_set_pointer:Sync.SyncState.application_info)
1959 }
1960 inline ::std::string* SyncState::mutable_application_info() {
1961  set_has_application_info();
1962  if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1963  application_info_ = new ::std::string;
1964  }
1965  // @@protoc_insertion_point(field_mutable:Sync.SyncState.application_info)
1966  return application_info_;
1967 }
1968 inline ::std::string* SyncState::release_application_info() {
1969  clear_has_application_info();
1970  if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1971  return NULL;
1972  } else {
1973  ::std::string* temp = application_info_;
1974  application_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1975  return temp;
1976  }
1977 }
1978 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
1979  if (application_info_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1980  delete application_info_;
1981  }
1982  if (application_info) {
1983  set_has_application_info();
1984  application_info_ = application_info;
1985  } else {
1986  clear_has_application_info();
1987  application_info_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1988  }
1989  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.application_info)
1990 }
1991 
1992 // -------------------------------------------------------------------
1993 
1994 // SyncStateMsg
1995 
1996 // repeated .Sync.SyncState ss = 1;
1997 inline int SyncStateMsg::ss_size() const {
1998  return ss_.size();
1999 }
2000 inline void SyncStateMsg::clear_ss() {
2001  ss_.Clear();
2002 }
2003 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
2004  // @@protoc_insertion_point(field_get:Sync.SyncStateMsg.ss)
2005  return ss_.Get(index);
2006 }
2007 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
2008  // @@protoc_insertion_point(field_mutable:Sync.SyncStateMsg.ss)
2009  return ss_.Mutable(index);
2010 }
2011 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
2012  // @@protoc_insertion_point(field_add:Sync.SyncStateMsg.ss)
2013  return ss_.Add();
2014 }
2015 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
2016 SyncStateMsg::ss() const {
2017  // @@protoc_insertion_point(field_list:Sync.SyncStateMsg.ss)
2018  return ss_;
2019 }
2020 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
2021 SyncStateMsg::mutable_ss() {
2022  // @@protoc_insertion_point(field_mutable_list:Sync.SyncStateMsg.ss)
2023  return &ss_;
2024 }
2025 
2026 
2027 // @@protoc_insertion_point(namespace_scope)
2028 
2029 } // namespace Sync
2030 
2031 #ifndef SWIG
2032 namespace google {
2033 namespace protobuf {
2034 
2035 template <> struct is_proto_enum< ::Sync::SyncState_ActionType> : ::google::protobuf::internal::true_type {};
2036 template <>
2037 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
2038  return ::Sync::SyncState_ActionType_descriptor();
2039 }
2040 
2041 } // namespace google
2042 } // namespace protobuf
2043 #endif // SWIG
2044 
2045 // @@protoc_insertion_point(global_scope)
2046 
2047 #else // GOOGLE_PROTOBUF_VERSION < 3000000
2048 
2049 #if GOOGLE_PROTOBUF_VERSION < 3000000
2050 #error This file was generated by a newer version of protoc which is
2051 #error incompatible with your Protocol Buffer headers. Please update
2052 #error your headers.
2053 #endif
2054 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
2055 #error This file was generated by an older version of protoc which is
2056 #error incompatible with your Protocol Buffer headers. Please
2057 #error regenerate this file with a newer version of protoc.
2058 #endif
2059 
2060 #include <google/protobuf/arena.h>
2061 #include <google/protobuf/arenastring.h>
2062 #include <google/protobuf/generated_message_util.h>
2063 #include <google/protobuf/metadata.h>
2064 #include <google/protobuf/message.h>
2065 #include <google/protobuf/repeated_field.h>
2066 #include <google/protobuf/extension_set.h>
2067 #include <google/protobuf/generated_enum_reflection.h>
2068 #include <google/protobuf/unknown_field_set.h>
2069 // @@protoc_insertion_point(includes)
2070 
2071 namespace Sync {
2072 
2073 // Internal implementation detail -- do not call these.
2074 void protobuf_AddDesc_sync_2dstate_2eproto();
2075 void protobuf_AssignDesc_sync_2dstate_2eproto();
2076 void protobuf_ShutdownFile_sync_2dstate_2eproto();
2077 
2078 class SyncState;
2079 class SyncStateMsg;
2080 class SyncState_SeqNo;
2081 
2082 enum SyncState_ActionType {
2083  SyncState_ActionType_UPDATE = 0,
2084  SyncState_ActionType_DELETE = 1,
2085  SyncState_ActionType_OTHER = 2
2086 };
2087 bool SyncState_ActionType_IsValid(int value);
2088 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
2089 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
2090 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
2091 
2092 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
2093 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
2094  return ::google::protobuf::internal::NameOfEnum(
2095  SyncState_ActionType_descriptor(), value);
2096 }
2097 inline bool SyncState_ActionType_Parse(
2098  const ::std::string& name, SyncState_ActionType* value) {
2099  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
2100  SyncState_ActionType_descriptor(), name, value);
2101 }
2102 // ===================================================================
2103 
2104 class SyncState_SeqNo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Sync.SyncState.SeqNo) */ {
2105  public:
2106  SyncState_SeqNo();
2107  virtual ~SyncState_SeqNo();
2108 
2109  SyncState_SeqNo(const SyncState_SeqNo& from);
2110 
2111  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
2112  CopyFrom(from);
2113  return *this;
2114  }
2115 
2116  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2117  return _internal_metadata_.unknown_fields();
2118  }
2119 
2120  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2121  return _internal_metadata_.mutable_unknown_fields();
2122  }
2123 
2124  static const ::google::protobuf::Descriptor* descriptor();
2125  static const SyncState_SeqNo& default_instance();
2126 
2127  void Swap(SyncState_SeqNo* other);
2128 
2129  // implements Message ----------------------------------------------
2130 
2131  inline SyncState_SeqNo* New() const { return New(NULL); }
2132 
2133  SyncState_SeqNo* New(::google::protobuf::Arena* arena) const;
2134  void CopyFrom(const ::google::protobuf::Message& from);
2135  void MergeFrom(const ::google::protobuf::Message& from);
2136  void CopyFrom(const SyncState_SeqNo& from);
2137  void MergeFrom(const SyncState_SeqNo& from);
2138  void Clear();
2139  bool IsInitialized() const;
2140 
2141  int ByteSize() const;
2142  bool MergePartialFromCodedStream(
2143  ::google::protobuf::io::CodedInputStream* input);
2144  void SerializeWithCachedSizes(
2145  ::google::protobuf::io::CodedOutputStream* output) const;
2146  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2147  bool deterministic, ::google::protobuf::uint8* output) const;
2148  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2149  return InternalSerializeWithCachedSizesToArray(false, output);
2150  }
2151  int GetCachedSize() const { return _cached_size_; }
2152  private:
2153  void SharedCtor();
2154  void SharedDtor();
2155  void SetCachedSize(int size) const;
2156  void InternalSwap(SyncState_SeqNo* other);
2157  private:
2158  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2159  return _internal_metadata_.arena();
2160  }
2161  inline void* MaybeArenaPtr() const {
2162  return _internal_metadata_.raw_arena_ptr();
2163  }
2164  public:
2165 
2166  ::google::protobuf::Metadata GetMetadata() const;
2167 
2168  // nested types ----------------------------------------------------
2169 
2170  // accessors -------------------------------------------------------
2171 
2172  // required uint64 seq = 1;
2173  bool has_seq() const;
2174  void clear_seq();
2175  static const int kSeqFieldNumber = 1;
2176  ::google::protobuf::uint64 seq() const;
2177  void set_seq(::google::protobuf::uint64 value);
2178 
2179  // required uint64 session = 2;
2180  bool has_session() const;
2181  void clear_session();
2182  static const int kSessionFieldNumber = 2;
2183  ::google::protobuf::uint64 session() const;
2184  void set_session(::google::protobuf::uint64 value);
2185 
2186  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
2187  private:
2188  inline void set_has_seq();
2189  inline void clear_has_seq();
2190  inline void set_has_session();
2191  inline void clear_has_session();
2192 
2193  // helper for ByteSize()
2194  int RequiredFieldsByteSizeFallback() const;
2195 
2196  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2197  ::google::protobuf::uint32 _has_bits_[1];
2198  mutable int _cached_size_;
2199  ::google::protobuf::uint64 seq_;
2200  ::google::protobuf::uint64 session_;
2201  friend void protobuf_AddDesc_sync_2dstate_2eproto();
2202  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
2203  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
2204 
2205  void InitAsDefaultInstance();
2206  static SyncState_SeqNo* default_instance_;
2207 };
2208 // -------------------------------------------------------------------
2209 
2210 class SyncState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Sync.SyncState) */ {
2211  public:
2212  SyncState();
2213  virtual ~SyncState();
2214 
2215  SyncState(const SyncState& from);
2216 
2217  inline SyncState& operator=(const SyncState& from) {
2218  CopyFrom(from);
2219  return *this;
2220  }
2221 
2222  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2223  return _internal_metadata_.unknown_fields();
2224  }
2225 
2226  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2227  return _internal_metadata_.mutable_unknown_fields();
2228  }
2229 
2230  static const ::google::protobuf::Descriptor* descriptor();
2231  static const SyncState& default_instance();
2232 
2233  void Swap(SyncState* other);
2234 
2235  // implements Message ----------------------------------------------
2236 
2237  inline SyncState* New() const { return New(NULL); }
2238 
2239  SyncState* New(::google::protobuf::Arena* arena) const;
2240  void CopyFrom(const ::google::protobuf::Message& from);
2241  void MergeFrom(const ::google::protobuf::Message& from);
2242  void CopyFrom(const SyncState& from);
2243  void MergeFrom(const SyncState& from);
2244  void Clear();
2245  bool IsInitialized() const;
2246 
2247  int ByteSize() const;
2248  bool MergePartialFromCodedStream(
2249  ::google::protobuf::io::CodedInputStream* input);
2250  void SerializeWithCachedSizes(
2251  ::google::protobuf::io::CodedOutputStream* output) const;
2252  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2253  bool deterministic, ::google::protobuf::uint8* output) const;
2254  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2255  return InternalSerializeWithCachedSizesToArray(false, output);
2256  }
2257  int GetCachedSize() const { return _cached_size_; }
2258  private:
2259  void SharedCtor();
2260  void SharedDtor();
2261  void SetCachedSize(int size) const;
2262  void InternalSwap(SyncState* other);
2263  private:
2264  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2265  return _internal_metadata_.arena();
2266  }
2267  inline void* MaybeArenaPtr() const {
2268  return _internal_metadata_.raw_arena_ptr();
2269  }
2270  public:
2271 
2272  ::google::protobuf::Metadata GetMetadata() const;
2273 
2274  // nested types ----------------------------------------------------
2275 
2276  typedef SyncState_SeqNo SeqNo;
2277 
2278  typedef SyncState_ActionType ActionType;
2279  static const ActionType UPDATE =
2280  SyncState_ActionType_UPDATE;
2281  static const ActionType DELETE =
2282  SyncState_ActionType_DELETE;
2283  static const ActionType OTHER =
2284  SyncState_ActionType_OTHER;
2285  static inline bool ActionType_IsValid(int value) {
2286  return SyncState_ActionType_IsValid(value);
2287  }
2288  static const ActionType ActionType_MIN =
2289  SyncState_ActionType_ActionType_MIN;
2290  static const ActionType ActionType_MAX =
2291  SyncState_ActionType_ActionType_MAX;
2292  static const int ActionType_ARRAYSIZE =
2293  SyncState_ActionType_ActionType_ARRAYSIZE;
2294  static inline const ::google::protobuf::EnumDescriptor*
2295  ActionType_descriptor() {
2296  return SyncState_ActionType_descriptor();
2297  }
2298  static inline const ::std::string& ActionType_Name(ActionType value) {
2299  return SyncState_ActionType_Name(value);
2300  }
2301  static inline bool ActionType_Parse(const ::std::string& name,
2302  ActionType* value) {
2303  return SyncState_ActionType_Parse(name, value);
2304  }
2305 
2306  // accessors -------------------------------------------------------
2307 
2308  // required string name = 1;
2309  bool has_name() const;
2310  void clear_name();
2311  static const int kNameFieldNumber = 1;
2312  const ::std::string& name() const;
2313  void set_name(const ::std::string& value);
2314  void set_name(const char* value);
2315  void set_name(const char* value, size_t size);
2316  ::std::string* mutable_name();
2317  ::std::string* release_name();
2318  void set_allocated_name(::std::string* name);
2319 
2320  // required .Sync.SyncState.ActionType type = 2;
2321  bool has_type() const;
2322  void clear_type();
2323  static const int kTypeFieldNumber = 2;
2324  ::Sync::SyncState_ActionType type() const;
2325  void set_type(::Sync::SyncState_ActionType value);
2326 
2327  // optional .Sync.SyncState.SeqNo seqno = 3;
2328  bool has_seqno() const;
2329  void clear_seqno();
2330  static const int kSeqnoFieldNumber = 3;
2331  const ::Sync::SyncState_SeqNo& seqno() const;
2332  ::Sync::SyncState_SeqNo* mutable_seqno();
2333  ::Sync::SyncState_SeqNo* release_seqno();
2334  void set_allocated_seqno(::Sync::SyncState_SeqNo* seqno);
2335 
2336  // optional bytes application_info = 4;
2337  bool has_application_info() const;
2338  void clear_application_info();
2339  static const int kApplicationInfoFieldNumber = 4;
2340  const ::std::string& application_info() const;
2341  void set_application_info(const ::std::string& value);
2342  void set_application_info(const char* value);
2343  void set_application_info(const void* value, size_t size);
2344  ::std::string* mutable_application_info();
2345  ::std::string* release_application_info();
2346  void set_allocated_application_info(::std::string* application_info);
2347 
2348  // @@protoc_insertion_point(class_scope:Sync.SyncState)
2349  private:
2350  inline void set_has_name();
2351  inline void clear_has_name();
2352  inline void set_has_type();
2353  inline void clear_has_type();
2354  inline void set_has_seqno();
2355  inline void clear_has_seqno();
2356  inline void set_has_application_info();
2357  inline void clear_has_application_info();
2358 
2359  // helper for ByteSize()
2360  int RequiredFieldsByteSizeFallback() const;
2361 
2362  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2363  ::google::protobuf::uint32 _has_bits_[1];
2364  mutable int _cached_size_;
2365  ::google::protobuf::internal::ArenaStringPtr name_;
2366  ::Sync::SyncState_SeqNo* seqno_;
2367  ::google::protobuf::internal::ArenaStringPtr application_info_;
2368  int type_;
2369  friend void protobuf_AddDesc_sync_2dstate_2eproto();
2370  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
2371  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
2372 
2373  void InitAsDefaultInstance();
2374  static SyncState* default_instance_;
2375 };
2376 // -------------------------------------------------------------------
2377 
2378 class SyncStateMsg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Sync.SyncStateMsg) */ {
2379  public:
2380  SyncStateMsg();
2381  virtual ~SyncStateMsg();
2382 
2383  SyncStateMsg(const SyncStateMsg& from);
2384 
2385  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
2386  CopyFrom(from);
2387  return *this;
2388  }
2389 
2390  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
2391  return _internal_metadata_.unknown_fields();
2392  }
2393 
2394  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2395  return _internal_metadata_.mutable_unknown_fields();
2396  }
2397 
2398  static const ::google::protobuf::Descriptor* descriptor();
2399  static const SyncStateMsg& default_instance();
2400 
2401  void Swap(SyncStateMsg* other);
2402 
2403  // implements Message ----------------------------------------------
2404 
2405  inline SyncStateMsg* New() const { return New(NULL); }
2406 
2407  SyncStateMsg* New(::google::protobuf::Arena* arena) const;
2408  void CopyFrom(const ::google::protobuf::Message& from);
2409  void MergeFrom(const ::google::protobuf::Message& from);
2410  void CopyFrom(const SyncStateMsg& from);
2411  void MergeFrom(const SyncStateMsg& from);
2412  void Clear();
2413  bool IsInitialized() const;
2414 
2415  int ByteSize() const;
2416  bool MergePartialFromCodedStream(
2417  ::google::protobuf::io::CodedInputStream* input);
2418  void SerializeWithCachedSizes(
2419  ::google::protobuf::io::CodedOutputStream* output) const;
2420  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2421  bool deterministic, ::google::protobuf::uint8* output) const;
2422  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
2423  return InternalSerializeWithCachedSizesToArray(false, output);
2424  }
2425  int GetCachedSize() const { return _cached_size_; }
2426  private:
2427  void SharedCtor();
2428  void SharedDtor();
2429  void SetCachedSize(int size) const;
2430  void InternalSwap(SyncStateMsg* other);
2431  private:
2432  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2433  return _internal_metadata_.arena();
2434  }
2435  inline void* MaybeArenaPtr() const {
2436  return _internal_metadata_.raw_arena_ptr();
2437  }
2438  public:
2439 
2440  ::google::protobuf::Metadata GetMetadata() const;
2441 
2442  // nested types ----------------------------------------------------
2443 
2444  // accessors -------------------------------------------------------
2445 
2446  // repeated .Sync.SyncState ss = 1;
2447  int ss_size() const;
2448  void clear_ss();
2449  static const int kSsFieldNumber = 1;
2450  const ::Sync::SyncState& ss(int index) const;
2451  ::Sync::SyncState* mutable_ss(int index);
2452  ::Sync::SyncState* add_ss();
2454  mutable_ss();
2455  const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
2456  ss() const;
2457 
2458  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
2459  private:
2460 
2461  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2462  ::google::protobuf::uint32 _has_bits_[1];
2463  mutable int _cached_size_;
2465  friend void protobuf_AddDesc_sync_2dstate_2eproto();
2466  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
2467  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
2468 
2469  void InitAsDefaultInstance();
2470  static SyncStateMsg* default_instance_;
2471 };
2472 // ===================================================================
2473 
2474 
2475 // ===================================================================
2476 
2477 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
2478 // SyncState_SeqNo
2479 
2480 // required uint64 seq = 1;
2481 inline bool SyncState_SeqNo::has_seq() const {
2482  return (_has_bits_[0] & 0x00000001u) != 0;
2483 }
2484 inline void SyncState_SeqNo::set_has_seq() {
2485  _has_bits_[0] |= 0x00000001u;
2486 }
2487 inline void SyncState_SeqNo::clear_has_seq() {
2488  _has_bits_[0] &= ~0x00000001u;
2489 }
2490 inline void SyncState_SeqNo::clear_seq() {
2491  seq_ = GOOGLE_ULONGLONG(0);
2492  clear_has_seq();
2493 }
2494 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
2495  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.seq)
2496  return seq_;
2497 }
2498 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
2499  set_has_seq();
2500  seq_ = value;
2501  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.seq)
2502 }
2503 
2504 // required uint64 session = 2;
2505 inline bool SyncState_SeqNo::has_session() const {
2506  return (_has_bits_[0] & 0x00000002u) != 0;
2507 }
2508 inline void SyncState_SeqNo::set_has_session() {
2509  _has_bits_[0] |= 0x00000002u;
2510 }
2511 inline void SyncState_SeqNo::clear_has_session() {
2512  _has_bits_[0] &= ~0x00000002u;
2513 }
2514 inline void SyncState_SeqNo::clear_session() {
2515  session_ = GOOGLE_ULONGLONG(0);
2516  clear_has_session();
2517 }
2518 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
2519  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.session)
2520  return session_;
2521 }
2522 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
2523  set_has_session();
2524  session_ = value;
2525  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.session)
2526 }
2527 
2528 // -------------------------------------------------------------------
2529 
2530 // SyncState
2531 
2532 // required string name = 1;
2533 inline bool SyncState::has_name() const {
2534  return (_has_bits_[0] & 0x00000001u) != 0;
2535 }
2536 inline void SyncState::set_has_name() {
2537  _has_bits_[0] |= 0x00000001u;
2538 }
2539 inline void SyncState::clear_has_name() {
2540  _has_bits_[0] &= ~0x00000001u;
2541 }
2542 inline void SyncState::clear_name() {
2543  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2544  clear_has_name();
2545 }
2546 inline const ::std::string& SyncState::name() const {
2547  // @@protoc_insertion_point(field_get:Sync.SyncState.name)
2548  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2549 }
2550 inline void SyncState::set_name(const ::std::string& value) {
2551  set_has_name();
2552  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2553  // @@protoc_insertion_point(field_set:Sync.SyncState.name)
2554 }
2555 inline void SyncState::set_name(const char* value) {
2556  set_has_name();
2557  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2558  // @@protoc_insertion_point(field_set_char:Sync.SyncState.name)
2559 }
2560 inline void SyncState::set_name(const char* value, size_t size) {
2561  set_has_name();
2562  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2563  ::std::string(reinterpret_cast<const char*>(value), size));
2564  // @@protoc_insertion_point(field_set_pointer:Sync.SyncState.name)
2565 }
2566 inline ::std::string* SyncState::mutable_name() {
2567  set_has_name();
2568  // @@protoc_insertion_point(field_mutable:Sync.SyncState.name)
2569  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2570 }
2571 inline ::std::string* SyncState::release_name() {
2572  // @@protoc_insertion_point(field_release:Sync.SyncState.name)
2573  clear_has_name();
2574  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2575 }
2576 inline void SyncState::set_allocated_name(::std::string* name) {
2577  if (name != NULL) {
2578  set_has_name();
2579  } else {
2580  clear_has_name();
2581  }
2582  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2583  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.name)
2584 }
2585 
2586 // required .Sync.SyncState.ActionType type = 2;
2587 inline bool SyncState::has_type() const {
2588  return (_has_bits_[0] & 0x00000002u) != 0;
2589 }
2590 inline void SyncState::set_has_type() {
2591  _has_bits_[0] |= 0x00000002u;
2592 }
2593 inline void SyncState::clear_has_type() {
2594  _has_bits_[0] &= ~0x00000002u;
2595 }
2596 inline void SyncState::clear_type() {
2597  type_ = 0;
2598  clear_has_type();
2599 }
2600 inline ::Sync::SyncState_ActionType SyncState::type() const {
2601  // @@protoc_insertion_point(field_get:Sync.SyncState.type)
2602  return static_cast< ::Sync::SyncState_ActionType >(type_);
2603 }
2604 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
2605  assert(::Sync::SyncState_ActionType_IsValid(value));
2606  set_has_type();
2607  type_ = value;
2608  // @@protoc_insertion_point(field_set:Sync.SyncState.type)
2609 }
2610 
2611 // optional .Sync.SyncState.SeqNo seqno = 3;
2612 inline bool SyncState::has_seqno() const {
2613  return (_has_bits_[0] & 0x00000004u) != 0;
2614 }
2615 inline void SyncState::set_has_seqno() {
2616  _has_bits_[0] |= 0x00000004u;
2617 }
2618 inline void SyncState::clear_has_seqno() {
2619  _has_bits_[0] &= ~0x00000004u;
2620 }
2621 inline void SyncState::clear_seqno() {
2622  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
2623  clear_has_seqno();
2624 }
2625 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
2626  // @@protoc_insertion_point(field_get:Sync.SyncState.seqno)
2627  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
2628 }
2629 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
2630  set_has_seqno();
2631  if (seqno_ == NULL) {
2632  seqno_ = new ::Sync::SyncState_SeqNo;
2633  }
2634  // @@protoc_insertion_point(field_mutable:Sync.SyncState.seqno)
2635  return seqno_;
2636 }
2637 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
2638  // @@protoc_insertion_point(field_release:Sync.SyncState.seqno)
2639  clear_has_seqno();
2640  ::Sync::SyncState_SeqNo* temp = seqno_;
2641  seqno_ = NULL;
2642  return temp;
2643 }
2644 inline void SyncState::set_allocated_seqno(::Sync::SyncState_SeqNo* seqno) {
2645  delete seqno_;
2646  seqno_ = seqno;
2647  if (seqno) {
2648  set_has_seqno();
2649  } else {
2650  clear_has_seqno();
2651  }
2652  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.seqno)
2653 }
2654 
2655 // optional bytes application_info = 4;
2656 inline bool SyncState::has_application_info() const {
2657  return (_has_bits_[0] & 0x00000008u) != 0;
2658 }
2659 inline void SyncState::set_has_application_info() {
2660  _has_bits_[0] |= 0x00000008u;
2661 }
2662 inline void SyncState::clear_has_application_info() {
2663  _has_bits_[0] &= ~0x00000008u;
2664 }
2665 inline void SyncState::clear_application_info() {
2666  application_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2667  clear_has_application_info();
2668 }
2669 inline const ::std::string& SyncState::application_info() const {
2670  // @@protoc_insertion_point(field_get:Sync.SyncState.application_info)
2671  return application_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2672 }
2673 inline void SyncState::set_application_info(const ::std::string& value) {
2674  set_has_application_info();
2675  application_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2676  // @@protoc_insertion_point(field_set:Sync.SyncState.application_info)
2677 }
2678 inline void SyncState::set_application_info(const char* value) {
2679  set_has_application_info();
2680  application_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2681  // @@protoc_insertion_point(field_set_char:Sync.SyncState.application_info)
2682 }
2683 inline void SyncState::set_application_info(const void* value, size_t size) {
2684  set_has_application_info();
2685  application_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2686  ::std::string(reinterpret_cast<const char*>(value), size));
2687  // @@protoc_insertion_point(field_set_pointer:Sync.SyncState.application_info)
2688 }
2689 inline ::std::string* SyncState::mutable_application_info() {
2690  set_has_application_info();
2691  // @@protoc_insertion_point(field_mutable:Sync.SyncState.application_info)
2692  return application_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2693 }
2694 inline ::std::string* SyncState::release_application_info() {
2695  // @@protoc_insertion_point(field_release:Sync.SyncState.application_info)
2696  clear_has_application_info();
2697  return application_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2698 }
2699 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
2700  if (application_info != NULL) {
2701  set_has_application_info();
2702  } else {
2703  clear_has_application_info();
2704  }
2705  application_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), application_info);
2706  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.application_info)
2707 }
2708 
2709 // -------------------------------------------------------------------
2710 
2711 // SyncStateMsg
2712 
2713 // repeated .Sync.SyncState ss = 1;
2714 inline int SyncStateMsg::ss_size() const {
2715  return ss_.size();
2716 }
2717 inline void SyncStateMsg::clear_ss() {
2718  ss_.Clear();
2719 }
2720 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
2721  // @@protoc_insertion_point(field_get:Sync.SyncStateMsg.ss)
2722  return ss_.Get(index);
2723 }
2724 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
2725  // @@protoc_insertion_point(field_mutable:Sync.SyncStateMsg.ss)
2726  return ss_.Mutable(index);
2727 }
2728 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
2729  // @@protoc_insertion_point(field_add:Sync.SyncStateMsg.ss)
2730  return ss_.Add();
2731 }
2732 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
2733 SyncStateMsg::mutable_ss() {
2734  // @@protoc_insertion_point(field_mutable_list:Sync.SyncStateMsg.ss)
2735  return &ss_;
2736 }
2737 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
2738 SyncStateMsg::ss() const {
2739  // @@protoc_insertion_point(field_list:Sync.SyncStateMsg.ss)
2740  return ss_;
2741 }
2742 
2743 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
2744 // -------------------------------------------------------------------
2745 
2746 // -------------------------------------------------------------------
2747 
2748 
2749 // @@protoc_insertion_point(namespace_scope)
2750 
2751 } // namespace Sync
2752 
2753 #ifndef SWIG
2754 namespace google {
2755 namespace protobuf {
2756 
2757 template <> struct is_proto_enum< ::Sync::SyncState_ActionType> : ::google::protobuf::internal::true_type {};
2758 template <>
2759 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
2760  return ::Sync::SyncState_ActionType_descriptor();
2761 }
2762 
2763 } // namespace protobuf
2764 } // namespace google
2765 #endif // SWIG
2766 
2767 // @@protoc_insertion_point(global_scope)
2768 
2769 #endif // GOOGLE_PROTOBUF_VERSION < 3000000
2770 
2771 #endif // PROTOBUF_sync_2dstate_2eproto__INCLUDED
Definition: sync-state.pb.h:304
Definition: chrono-sync2013.hpp:32
Definition: chrono-sync2013.hpp:31
Definition: sync-state.pb.h:156
Definition: sync-state.pb.h:64
Copyright (C) 2014-2017 Regents of the University of California.
Definition: channel-status.pb.h:315