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  // @@protoc_insertion_point(class_scope:Sync.SyncState)
264  private:
265  inline void set_has_name();
266  inline void clear_has_name();
267  inline void set_has_type();
268  inline void clear_has_type();
269  inline void set_has_seqno();
270  inline void clear_has_seqno();
271 
272  ::google::protobuf::UnknownFieldSet _unknown_fields_;
273 
274  ::std::string* name_;
275  ::Sync::SyncState_SeqNo* seqno_;
276  int type_;
277 
278  mutable int _cached_size_;
279  ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
280 
281  friend void protobuf_AddDesc_sync_2dstate_2eproto();
282  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
283  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
284 
285  void InitAsDefaultInstance();
286  static SyncState* default_instance_;
287 };
288 // -------------------------------------------------------------------
289 
290 class SyncStateMsg : public ::google::protobuf::Message {
291  public:
292  SyncStateMsg();
293  virtual ~SyncStateMsg();
294 
295  SyncStateMsg(const SyncStateMsg& from);
296 
297  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
298  CopyFrom(from);
299  return *this;
300  }
301 
302  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
303  return _unknown_fields_;
304  }
305 
306  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
307  return &_unknown_fields_;
308  }
309 
310  static const ::google::protobuf::Descriptor* descriptor();
311  static const SyncStateMsg& default_instance();
312 
313  void Swap(SyncStateMsg* other);
314 
315  // implements Message ----------------------------------------------
316 
317  SyncStateMsg* New() const;
318  void CopyFrom(const ::google::protobuf::Message& from);
319  void MergeFrom(const ::google::protobuf::Message& from);
320  void CopyFrom(const SyncStateMsg& from);
321  void MergeFrom(const SyncStateMsg& from);
322  void Clear();
323  bool IsInitialized() const;
324 
325  int ByteSize() const;
326  bool MergePartialFromCodedStream(
327  ::google::protobuf::io::CodedInputStream* input);
328  void SerializeWithCachedSizes(
329  ::google::protobuf::io::CodedOutputStream* output) const;
330  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
331  int GetCachedSize() const { return _cached_size_; }
332  private:
333  void SharedCtor();
334  void SharedDtor();
335  void SetCachedSize(int size) const;
336  public:
337 
338  ::google::protobuf::Metadata GetMetadata() const;
339 
340  // nested types ----------------------------------------------------
341 
342  // accessors -------------------------------------------------------
343 
344  // repeated .Sync.SyncState ss = 1;
345  inline int ss_size() const;
346  inline void clear_ss();
347  static const int kSsFieldNumber = 1;
348  inline const ::Sync::SyncState& ss(int index) const;
349  inline ::Sync::SyncState* mutable_ss(int index);
350  inline ::Sync::SyncState* add_ss();
351  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
352  ss() const;
353  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
354  mutable_ss();
355 
356  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
357  private:
358 
359  ::google::protobuf::UnknownFieldSet _unknown_fields_;
360 
362 
363  mutable int _cached_size_;
364  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
365 
366  friend void protobuf_AddDesc_sync_2dstate_2eproto();
367  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
368  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
369 
370  void InitAsDefaultInstance();
371  static SyncStateMsg* default_instance_;
372 };
373 // ===================================================================
374 
375 
376 // ===================================================================
377 
378 // SyncState_SeqNo
379 
380 // required uint64 seq = 1;
381 inline bool SyncState_SeqNo::has_seq() const {
382  return (_has_bits_[0] & 0x00000001u) != 0;
383 }
384 inline void SyncState_SeqNo::set_has_seq() {
385  _has_bits_[0] |= 0x00000001u;
386 }
387 inline void SyncState_SeqNo::clear_has_seq() {
388  _has_bits_[0] &= ~0x00000001u;
389 }
390 inline void SyncState_SeqNo::clear_seq() {
391  seq_ = GOOGLE_ULONGLONG(0);
392  clear_has_seq();
393 }
394 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
395  return seq_;
396 }
397 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
398  set_has_seq();
399  seq_ = value;
400 }
401 
402 // required uint64 session = 2;
403 inline bool SyncState_SeqNo::has_session() const {
404  return (_has_bits_[0] & 0x00000002u) != 0;
405 }
406 inline void SyncState_SeqNo::set_has_session() {
407  _has_bits_[0] |= 0x00000002u;
408 }
409 inline void SyncState_SeqNo::clear_has_session() {
410  _has_bits_[0] &= ~0x00000002u;
411 }
412 inline void SyncState_SeqNo::clear_session() {
413  session_ = GOOGLE_ULONGLONG(0);
414  clear_has_session();
415 }
416 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
417  return session_;
418 }
419 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
420  set_has_session();
421  session_ = value;
422 }
423 
424 // -------------------------------------------------------------------
425 
426 // SyncState
427 
428 // required string name = 1;
429 inline bool SyncState::has_name() const {
430  return (_has_bits_[0] & 0x00000001u) != 0;
431 }
432 inline void SyncState::set_has_name() {
433  _has_bits_[0] |= 0x00000001u;
434 }
435 inline void SyncState::clear_has_name() {
436  _has_bits_[0] &= ~0x00000001u;
437 }
438 inline void SyncState::clear_name() {
439  if (name_ != &::google::protobuf::internal::kEmptyString) {
440  name_->clear();
441  }
442  clear_has_name();
443 }
444 inline const ::std::string& SyncState::name() const {
445  return *name_;
446 }
447 inline void SyncState::set_name(const ::std::string& value) {
448  set_has_name();
449  if (name_ == &::google::protobuf::internal::kEmptyString) {
450  name_ = new ::std::string;
451  }
452  name_->assign(value);
453 }
454 inline void SyncState::set_name(const char* value) {
455  set_has_name();
456  if (name_ == &::google::protobuf::internal::kEmptyString) {
457  name_ = new ::std::string;
458  }
459  name_->assign(value);
460 }
461 inline void SyncState::set_name(const char* value, size_t size) {
462  set_has_name();
463  if (name_ == &::google::protobuf::internal::kEmptyString) {
464  name_ = new ::std::string;
465  }
466  name_->assign(reinterpret_cast<const char*>(value), size);
467 }
468 inline ::std::string* SyncState::mutable_name() {
469  set_has_name();
470  if (name_ == &::google::protobuf::internal::kEmptyString) {
471  name_ = new ::std::string;
472  }
473  return name_;
474 }
475 inline ::std::string* SyncState::release_name() {
476  clear_has_name();
477  if (name_ == &::google::protobuf::internal::kEmptyString) {
478  return NULL;
479  } else {
480  ::std::string* temp = name_;
481  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
482  return temp;
483  }
484 }
485 
486 // required .Sync.SyncState.ActionType type = 2;
487 inline bool SyncState::has_type() const {
488  return (_has_bits_[0] & 0x00000002u) != 0;
489 }
490 inline void SyncState::set_has_type() {
491  _has_bits_[0] |= 0x00000002u;
492 }
493 inline void SyncState::clear_has_type() {
494  _has_bits_[0] &= ~0x00000002u;
495 }
496 inline void SyncState::clear_type() {
497  type_ = 0;
498  clear_has_type();
499 }
500 inline ::Sync::SyncState_ActionType SyncState::type() const {
501  return static_cast< ::Sync::SyncState_ActionType >(type_);
502 }
503 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
504  GOOGLE_DCHECK(::Sync::SyncState_ActionType_IsValid(value));
505  set_has_type();
506  type_ = value;
507 }
508 
509 // optional .Sync.SyncState.SeqNo seqno = 3;
510 inline bool SyncState::has_seqno() const {
511  return (_has_bits_[0] & 0x00000004u) != 0;
512 }
513 inline void SyncState::set_has_seqno() {
514  _has_bits_[0] |= 0x00000004u;
515 }
516 inline void SyncState::clear_has_seqno() {
517  _has_bits_[0] &= ~0x00000004u;
518 }
519 inline void SyncState::clear_seqno() {
520  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
521  clear_has_seqno();
522 }
523 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
524  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
525 }
526 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
527  set_has_seqno();
528  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
529  return seqno_;
530 }
531 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
532  clear_has_seqno();
533  ::Sync::SyncState_SeqNo* temp = seqno_;
534  seqno_ = NULL;
535  return temp;
536 }
537 
538 // -------------------------------------------------------------------
539 
540 // SyncStateMsg
541 
542 // repeated .Sync.SyncState ss = 1;
543 inline int SyncStateMsg::ss_size() const {
544  return ss_.size();
545 }
546 inline void SyncStateMsg::clear_ss() {
547  ss_.Clear();
548 }
549 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
550  return ss_.Get(index);
551 }
552 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
553  return ss_.Mutable(index);
554 }
555 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
556  return ss_.Add();
557 }
558 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
559 SyncStateMsg::ss() const {
560  return ss_;
561 }
562 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
563 SyncStateMsg::mutable_ss() {
564  return &ss_;
565 }
566 
567 
568 // @@protoc_insertion_point(namespace_scope)
569 
570 } // namespace Sync
571 
572 #ifndef SWIG
573 namespace google {
574 namespace protobuf {
575 
576 template <>
577 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
578  return ::Sync::SyncState_ActionType_descriptor();
579 }
580 
581 } // namespace google
582 } // namespace protobuf
583 #endif // SWIG
584 
585 // @@protoc_insertion_point(global_scope)
586 
587 #elif GOOGLE_PROTOBUF_VERSION < 2006000
588 
589 #if GOOGLE_PROTOBUF_VERSION < 2005000
590 #error This file was generated by a newer version of protoc which is
591 #error incompatible with your Protocol Buffer headers. Please update
592 #error your headers.
593 #endif
594 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
595 #error This file was generated by an older version of protoc which is
596 #error incompatible with your Protocol Buffer headers. Please
597 #error regenerate this file with a newer version of protoc.
598 #endif
599 
600 #include <google/protobuf/generated_message_util.h>
601 #include <google/protobuf/message.h>
602 #include <google/protobuf/repeated_field.h>
603 #include <google/protobuf/extension_set.h>
604 #include <google/protobuf/generated_enum_reflection.h>
605 #include <google/protobuf/unknown_field_set.h>
606 // @@protoc_insertion_point(includes)
607 
608 namespace Sync {
609 
610 // Internal implementation detail -- do not call these.
611 void protobuf_AddDesc_sync_2dstate_2eproto();
612 void protobuf_AssignDesc_sync_2dstate_2eproto();
613 void protobuf_ShutdownFile_sync_2dstate_2eproto();
614 
615 class SyncState;
616 class SyncState_SeqNo;
617 class SyncStateMsg;
618 
619 enum SyncState_ActionType {
620  SyncState_ActionType_UPDATE = 0,
621  SyncState_ActionType_DELETE = 1,
622  SyncState_ActionType_OTHER = 2
623 };
624 bool SyncState_ActionType_IsValid(int value);
625 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
626 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
627 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
628 
629 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
630 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
631  return ::google::protobuf::internal::NameOfEnum(
632  SyncState_ActionType_descriptor(), value);
633 }
634 inline bool SyncState_ActionType_Parse(
635  const ::std::string& name, SyncState_ActionType* value) {
636  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
637  SyncState_ActionType_descriptor(), name, value);
638 }
639 // ===================================================================
640 
641 class SyncState_SeqNo : public ::google::protobuf::Message {
642  public:
643  SyncState_SeqNo();
644  virtual ~SyncState_SeqNo();
645 
646  SyncState_SeqNo(const SyncState_SeqNo& from);
647 
648  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
649  CopyFrom(from);
650  return *this;
651  }
652 
653  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
654  return _unknown_fields_;
655  }
656 
657  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
658  return &_unknown_fields_;
659  }
660 
661  static const ::google::protobuf::Descriptor* descriptor();
662  static const SyncState_SeqNo& default_instance();
663 
664  void Swap(SyncState_SeqNo* other);
665 
666  // implements Message ----------------------------------------------
667 
668  SyncState_SeqNo* New() const;
669  void CopyFrom(const ::google::protobuf::Message& from);
670  void MergeFrom(const ::google::protobuf::Message& from);
671  void CopyFrom(const SyncState_SeqNo& from);
672  void MergeFrom(const SyncState_SeqNo& from);
673  void Clear();
674  bool IsInitialized() const;
675 
676  int ByteSize() const;
677  bool MergePartialFromCodedStream(
678  ::google::protobuf::io::CodedInputStream* input);
679  void SerializeWithCachedSizes(
680  ::google::protobuf::io::CodedOutputStream* output) const;
681  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
682  int GetCachedSize() const { return _cached_size_; }
683  private:
684  void SharedCtor();
685  void SharedDtor();
686  void SetCachedSize(int size) const;
687  public:
688 
689  ::google::protobuf::Metadata GetMetadata() const;
690 
691  // nested types ----------------------------------------------------
692 
693  // accessors -------------------------------------------------------
694 
695  // required uint64 seq = 1;
696  inline bool has_seq() const;
697  inline void clear_seq();
698  static const int kSeqFieldNumber = 1;
699  inline ::google::protobuf::uint64 seq() const;
700  inline void set_seq(::google::protobuf::uint64 value);
701 
702  // required uint64 session = 2;
703  inline bool has_session() const;
704  inline void clear_session();
705  static const int kSessionFieldNumber = 2;
706  inline ::google::protobuf::uint64 session() const;
707  inline void set_session(::google::protobuf::uint64 value);
708 
709  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
710  private:
711  inline void set_has_seq();
712  inline void clear_has_seq();
713  inline void set_has_session();
714  inline void clear_has_session();
715 
716  ::google::protobuf::UnknownFieldSet _unknown_fields_;
717 
718  ::google::protobuf::uint64 seq_;
719  ::google::protobuf::uint64 session_;
720 
721  mutable int _cached_size_;
722  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
723 
724  friend void protobuf_AddDesc_sync_2dstate_2eproto();
725  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
726  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
727 
728  void InitAsDefaultInstance();
729  static SyncState_SeqNo* default_instance_;
730 };
731 // -------------------------------------------------------------------
732 
733 class SyncState : public ::google::protobuf::Message {
734  public:
735  SyncState();
736  virtual ~SyncState();
737 
738  SyncState(const SyncState& from);
739 
740  inline SyncState& operator=(const SyncState& from) {
741  CopyFrom(from);
742  return *this;
743  }
744 
745  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
746  return _unknown_fields_;
747  }
748 
749  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
750  return &_unknown_fields_;
751  }
752 
753  static const ::google::protobuf::Descriptor* descriptor();
754  static const SyncState& default_instance();
755 
756  void Swap(SyncState* other);
757 
758  // implements Message ----------------------------------------------
759 
760  SyncState* New() const;
761  void CopyFrom(const ::google::protobuf::Message& from);
762  void MergeFrom(const ::google::protobuf::Message& from);
763  void CopyFrom(const SyncState& from);
764  void MergeFrom(const SyncState& from);
765  void Clear();
766  bool IsInitialized() const;
767 
768  int ByteSize() const;
769  bool MergePartialFromCodedStream(
770  ::google::protobuf::io::CodedInputStream* input);
771  void SerializeWithCachedSizes(
772  ::google::protobuf::io::CodedOutputStream* output) const;
773  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
774  int GetCachedSize() const { return _cached_size_; }
775  private:
776  void SharedCtor();
777  void SharedDtor();
778  void SetCachedSize(int size) const;
779  public:
780 
781  ::google::protobuf::Metadata GetMetadata() const;
782 
783  // nested types ----------------------------------------------------
784 
785  typedef SyncState_SeqNo SeqNo;
786 
787  typedef SyncState_ActionType ActionType;
788  static const ActionType UPDATE = SyncState_ActionType_UPDATE;
789  static const ActionType DELETE = SyncState_ActionType_DELETE;
790  static const ActionType OTHER = SyncState_ActionType_OTHER;
791  static inline bool ActionType_IsValid(int value) {
792  return SyncState_ActionType_IsValid(value);
793  }
794  static const ActionType ActionType_MIN =
795  SyncState_ActionType_ActionType_MIN;
796  static const ActionType ActionType_MAX =
797  SyncState_ActionType_ActionType_MAX;
798  static const int ActionType_ARRAYSIZE =
799  SyncState_ActionType_ActionType_ARRAYSIZE;
800  static inline const ::google::protobuf::EnumDescriptor*
801  ActionType_descriptor() {
802  return SyncState_ActionType_descriptor();
803  }
804  static inline const ::std::string& ActionType_Name(ActionType value) {
805  return SyncState_ActionType_Name(value);
806  }
807  static inline bool ActionType_Parse(const ::std::string& name,
808  ActionType* value) {
809  return SyncState_ActionType_Parse(name, value);
810  }
811 
812  // accessors -------------------------------------------------------
813 
814  // required string name = 1;
815  inline bool has_name() const;
816  inline void clear_name();
817  static const int kNameFieldNumber = 1;
818  inline const ::std::string& name() const;
819  inline void set_name(const ::std::string& value);
820  inline void set_name(const char* value);
821  inline void set_name(const char* value, size_t size);
822  inline ::std::string* mutable_name();
823  inline ::std::string* release_name();
824  inline void set_allocated_name(::std::string* name);
825 
826  // required .Sync.SyncState.ActionType type = 2;
827  inline bool has_type() const;
828  inline void clear_type();
829  static const int kTypeFieldNumber = 2;
830  inline ::Sync::SyncState_ActionType type() const;
831  inline void set_type(::Sync::SyncState_ActionType value);
832 
833  // optional .Sync.SyncState.SeqNo seqno = 3;
834  inline bool has_seqno() const;
835  inline void clear_seqno();
836  static const int kSeqnoFieldNumber = 3;
837  inline const ::Sync::SyncState_SeqNo& seqno() const;
838  inline ::Sync::SyncState_SeqNo* mutable_seqno();
839  inline ::Sync::SyncState_SeqNo* release_seqno();
840  inline void set_allocated_seqno(::Sync::SyncState_SeqNo* seqno);
841 
842  // @@protoc_insertion_point(class_scope:Sync.SyncState)
843  private:
844  inline void set_has_name();
845  inline void clear_has_name();
846  inline void set_has_type();
847  inline void clear_has_type();
848  inline void set_has_seqno();
849  inline void clear_has_seqno();
850 
851  ::google::protobuf::UnknownFieldSet _unknown_fields_;
852 
853  ::std::string* name_;
854  ::Sync::SyncState_SeqNo* seqno_;
855  int type_;
856 
857  mutable int _cached_size_;
858  ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
859 
860  friend void protobuf_AddDesc_sync_2dstate_2eproto();
861  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
862  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
863 
864  void InitAsDefaultInstance();
865  static SyncState* default_instance_;
866 };
867 // -------------------------------------------------------------------
868 
869 class SyncStateMsg : public ::google::protobuf::Message {
870  public:
871  SyncStateMsg();
872  virtual ~SyncStateMsg();
873 
874  SyncStateMsg(const SyncStateMsg& from);
875 
876  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
877  CopyFrom(from);
878  return *this;
879  }
880 
881  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
882  return _unknown_fields_;
883  }
884 
885  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
886  return &_unknown_fields_;
887  }
888 
889  static const ::google::protobuf::Descriptor* descriptor();
890  static const SyncStateMsg& default_instance();
891 
892  void Swap(SyncStateMsg* other);
893 
894  // implements Message ----------------------------------------------
895 
896  SyncStateMsg* New() const;
897  void CopyFrom(const ::google::protobuf::Message& from);
898  void MergeFrom(const ::google::protobuf::Message& from);
899  void CopyFrom(const SyncStateMsg& from);
900  void MergeFrom(const SyncStateMsg& from);
901  void Clear();
902  bool IsInitialized() const;
903 
904  int ByteSize() const;
905  bool MergePartialFromCodedStream(
906  ::google::protobuf::io::CodedInputStream* input);
907  void SerializeWithCachedSizes(
908  ::google::protobuf::io::CodedOutputStream* output) const;
909  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
910  int GetCachedSize() const { return _cached_size_; }
911  private:
912  void SharedCtor();
913  void SharedDtor();
914  void SetCachedSize(int size) const;
915  public:
916 
917  ::google::protobuf::Metadata GetMetadata() const;
918 
919  // nested types ----------------------------------------------------
920 
921  // accessors -------------------------------------------------------
922 
923  // repeated .Sync.SyncState ss = 1;
924  inline int ss_size() const;
925  inline void clear_ss();
926  static const int kSsFieldNumber = 1;
927  inline const ::Sync::SyncState& ss(int index) const;
928  inline ::Sync::SyncState* mutable_ss(int index);
929  inline ::Sync::SyncState* add_ss();
930  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
931  ss() const;
932  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
933  mutable_ss();
934 
935  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
936  private:
937 
938  ::google::protobuf::UnknownFieldSet _unknown_fields_;
939 
941 
942  mutable int _cached_size_;
943  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
944 
945  friend void protobuf_AddDesc_sync_2dstate_2eproto();
946  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
947  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
948 
949  void InitAsDefaultInstance();
950  static SyncStateMsg* default_instance_;
951 };
952 // ===================================================================
953 
954 
955 // ===================================================================
956 
957 // SyncState_SeqNo
958 
959 // required uint64 seq = 1;
960 inline bool SyncState_SeqNo::has_seq() const {
961  return (_has_bits_[0] & 0x00000001u) != 0;
962 }
963 inline void SyncState_SeqNo::set_has_seq() {
964  _has_bits_[0] |= 0x00000001u;
965 }
966 inline void SyncState_SeqNo::clear_has_seq() {
967  _has_bits_[0] &= ~0x00000001u;
968 }
969 inline void SyncState_SeqNo::clear_seq() {
970  seq_ = GOOGLE_ULONGLONG(0);
971  clear_has_seq();
972 }
973 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
974  return seq_;
975 }
976 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
977  set_has_seq();
978  seq_ = value;
979 }
980 
981 // required uint64 session = 2;
982 inline bool SyncState_SeqNo::has_session() const {
983  return (_has_bits_[0] & 0x00000002u) != 0;
984 }
985 inline void SyncState_SeqNo::set_has_session() {
986  _has_bits_[0] |= 0x00000002u;
987 }
988 inline void SyncState_SeqNo::clear_has_session() {
989  _has_bits_[0] &= ~0x00000002u;
990 }
991 inline void SyncState_SeqNo::clear_session() {
992  session_ = GOOGLE_ULONGLONG(0);
993  clear_has_session();
994 }
995 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
996  return session_;
997 }
998 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
999  set_has_session();
1000  session_ = value;
1001 }
1002 
1003 // -------------------------------------------------------------------
1004 
1005 // SyncState
1006 
1007 // required string name = 1;
1008 inline bool SyncState::has_name() const {
1009  return (_has_bits_[0] & 0x00000001u) != 0;
1010 }
1011 inline void SyncState::set_has_name() {
1012  _has_bits_[0] |= 0x00000001u;
1013 }
1014 inline void SyncState::clear_has_name() {
1015  _has_bits_[0] &= ~0x00000001u;
1016 }
1017 inline void SyncState::clear_name() {
1018  if (name_ != &::google::protobuf::internal::kEmptyString) {
1019  name_->clear();
1020  }
1021  clear_has_name();
1022 }
1023 inline const ::std::string& SyncState::name() const {
1024  return *name_;
1025 }
1026 inline void SyncState::set_name(const ::std::string& value) {
1027  set_has_name();
1028  if (name_ == &::google::protobuf::internal::kEmptyString) {
1029  name_ = new ::std::string;
1030  }
1031  name_->assign(value);
1032 }
1033 inline void SyncState::set_name(const char* value) {
1034  set_has_name();
1035  if (name_ == &::google::protobuf::internal::kEmptyString) {
1036  name_ = new ::std::string;
1037  }
1038  name_->assign(value);
1039 }
1040 inline void SyncState::set_name(const char* value, size_t size) {
1041  set_has_name();
1042  if (name_ == &::google::protobuf::internal::kEmptyString) {
1043  name_ = new ::std::string;
1044  }
1045  name_->assign(reinterpret_cast<const char*>(value), size);
1046 }
1047 inline ::std::string* SyncState::mutable_name() {
1048  set_has_name();
1049  if (name_ == &::google::protobuf::internal::kEmptyString) {
1050  name_ = new ::std::string;
1051  }
1052  return name_;
1053 }
1054 inline ::std::string* SyncState::release_name() {
1055  clear_has_name();
1056  if (name_ == &::google::protobuf::internal::kEmptyString) {
1057  return NULL;
1058  } else {
1059  ::std::string* temp = name_;
1060  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1061  return temp;
1062  }
1063 }
1064 inline void SyncState::set_allocated_name(::std::string* name) {
1065  if (name_ != &::google::protobuf::internal::kEmptyString) {
1066  delete name_;
1067  }
1068  if (name) {
1069  set_has_name();
1070  name_ = name;
1071  } else {
1072  clear_has_name();
1073  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1074  }
1075 }
1076 
1077 // required .Sync.SyncState.ActionType type = 2;
1078 inline bool SyncState::has_type() const {
1079  return (_has_bits_[0] & 0x00000002u) != 0;
1080 }
1081 inline void SyncState::set_has_type() {
1082  _has_bits_[0] |= 0x00000002u;
1083 }
1084 inline void SyncState::clear_has_type() {
1085  _has_bits_[0] &= ~0x00000002u;
1086 }
1087 inline void SyncState::clear_type() {
1088  type_ = 0;
1089  clear_has_type();
1090 }
1091 inline ::Sync::SyncState_ActionType SyncState::type() const {
1092  return static_cast< ::Sync::SyncState_ActionType >(type_);
1093 }
1094 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1095  assert(::Sync::SyncState_ActionType_IsValid(value));
1096  set_has_type();
1097  type_ = value;
1098 }
1099 
1100 // optional .Sync.SyncState.SeqNo seqno = 3;
1101 inline bool SyncState::has_seqno() const {
1102  return (_has_bits_[0] & 0x00000004u) != 0;
1103 }
1104 inline void SyncState::set_has_seqno() {
1105  _has_bits_[0] |= 0x00000004u;
1106 }
1107 inline void SyncState::clear_has_seqno() {
1108  _has_bits_[0] &= ~0x00000004u;
1109 }
1110 inline void SyncState::clear_seqno() {
1111  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1112  clear_has_seqno();
1113 }
1114 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
1115  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1116 }
1117 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1118  set_has_seqno();
1119  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1120  return seqno_;
1121 }
1122 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1123  clear_has_seqno();
1124  ::Sync::SyncState_SeqNo* temp = seqno_;
1125  seqno_ = NULL;
1126  return temp;
1127 }
1128 inline void SyncState::set_allocated_seqno(::Sync::SyncState_SeqNo* seqno) {
1129  delete seqno_;
1130  seqno_ = seqno;
1131  if (seqno) {
1132  set_has_seqno();
1133  } else {
1134  clear_has_seqno();
1135  }
1136 }
1137 
1138 // -------------------------------------------------------------------
1139 
1140 // SyncStateMsg
1141 
1142 // repeated .Sync.SyncState ss = 1;
1143 inline int SyncStateMsg::ss_size() const {
1144  return ss_.size();
1145 }
1146 inline void SyncStateMsg::clear_ss() {
1147  ss_.Clear();
1148 }
1149 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
1150  return ss_.Get(index);
1151 }
1152 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
1153  return ss_.Mutable(index);
1154 }
1155 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
1156  return ss_.Add();
1157 }
1158 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1159 SyncStateMsg::ss() const {
1160  return ss_;
1161 }
1162 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1163 SyncStateMsg::mutable_ss() {
1164  return &ss_;
1165 }
1166 
1167 
1168 // @@protoc_insertion_point(namespace_scope)
1169 
1170 } // namespace Sync
1171 
1172 #ifndef SWIG
1173 namespace google {
1174 namespace protobuf {
1175 
1176 template <>
1177 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
1178  return ::Sync::SyncState_ActionType_descriptor();
1179 }
1180 
1181 } // namespace google
1182 } // namespace protobuf
1183 #endif // SWIG
1184 
1185 // @@protoc_insertion_point(global_scope)
1186 
1187 #else // GOOGLE_PROTOBUF_VERSION < 2006000
1188 
1189 #if GOOGLE_PROTOBUF_VERSION < 2006000
1190 #error This file was generated by a newer version of protoc which is
1191 #error incompatible with your Protocol Buffer headers. Please update
1192 #error your headers.
1193 #endif
1194 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
1195 #error This file was generated by an older version of protoc which is
1196 #error incompatible with your Protocol Buffer headers. Please
1197 #error regenerate this file with a newer version of protoc.
1198 #endif
1199 
1200 #include <google/protobuf/generated_message_util.h>
1201 #include <google/protobuf/message.h>
1202 #include <google/protobuf/repeated_field.h>
1203 #include <google/protobuf/extension_set.h>
1204 #include <google/protobuf/generated_enum_reflection.h>
1205 #include <google/protobuf/unknown_field_set.h>
1206 // @@protoc_insertion_point(includes)
1207 
1208 namespace Sync {
1209 
1210 // Internal implementation detail -- do not call these.
1211 void protobuf_AddDesc_sync_2dstate_2eproto();
1212 void protobuf_AssignDesc_sync_2dstate_2eproto();
1213 void protobuf_ShutdownFile_sync_2dstate_2eproto();
1214 
1215 class SyncState;
1216 class SyncState_SeqNo;
1217 class SyncStateMsg;
1218 
1219 enum SyncState_ActionType {
1220  SyncState_ActionType_UPDATE = 0,
1221  SyncState_ActionType_DELETE = 1,
1222  SyncState_ActionType_OTHER = 2
1223 };
1224 bool SyncState_ActionType_IsValid(int value);
1225 const SyncState_ActionType SyncState_ActionType_ActionType_MIN = SyncState_ActionType_UPDATE;
1226 const SyncState_ActionType SyncState_ActionType_ActionType_MAX = SyncState_ActionType_OTHER;
1227 const int SyncState_ActionType_ActionType_ARRAYSIZE = SyncState_ActionType_ActionType_MAX + 1;
1228 
1229 const ::google::protobuf::EnumDescriptor* SyncState_ActionType_descriptor();
1230 inline const ::std::string& SyncState_ActionType_Name(SyncState_ActionType value) {
1231  return ::google::protobuf::internal::NameOfEnum(
1232  SyncState_ActionType_descriptor(), value);
1233 }
1234 inline bool SyncState_ActionType_Parse(
1235  const ::std::string& name, SyncState_ActionType* value) {
1236  return ::google::protobuf::internal::ParseNamedEnum<SyncState_ActionType>(
1237  SyncState_ActionType_descriptor(), name, value);
1238 }
1239 // ===================================================================
1240 
1241 class SyncState_SeqNo : public ::google::protobuf::Message {
1242  public:
1243  SyncState_SeqNo();
1244  virtual ~SyncState_SeqNo();
1245 
1246  SyncState_SeqNo(const SyncState_SeqNo& from);
1247 
1248  inline SyncState_SeqNo& operator=(const SyncState_SeqNo& from) {
1249  CopyFrom(from);
1250  return *this;
1251  }
1252 
1253  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1254  return _unknown_fields_;
1255  }
1256 
1257  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1258  return &_unknown_fields_;
1259  }
1260 
1261  static const ::google::protobuf::Descriptor* descriptor();
1262  static const SyncState_SeqNo& default_instance();
1263 
1264  void Swap(SyncState_SeqNo* other);
1265 
1266  // implements Message ----------------------------------------------
1267 
1268  SyncState_SeqNo* New() const;
1269  void CopyFrom(const ::google::protobuf::Message& from);
1270  void MergeFrom(const ::google::protobuf::Message& from);
1271  void CopyFrom(const SyncState_SeqNo& from);
1272  void MergeFrom(const SyncState_SeqNo& from);
1273  void Clear();
1274  bool IsInitialized() const;
1275 
1276  int ByteSize() const;
1277  bool MergePartialFromCodedStream(
1278  ::google::protobuf::io::CodedInputStream* input);
1279  void SerializeWithCachedSizes(
1280  ::google::protobuf::io::CodedOutputStream* output) const;
1281  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1282  int GetCachedSize() const { return _cached_size_; }
1283  private:
1284  void SharedCtor();
1285  void SharedDtor();
1286  void SetCachedSize(int size) const;
1287  public:
1288  ::google::protobuf::Metadata GetMetadata() const;
1289 
1290  // nested types ----------------------------------------------------
1291 
1292  // accessors -------------------------------------------------------
1293 
1294  // required uint64 seq = 1;
1295  inline bool has_seq() const;
1296  inline void clear_seq();
1297  static const int kSeqFieldNumber = 1;
1298  inline ::google::protobuf::uint64 seq() const;
1299  inline void set_seq(::google::protobuf::uint64 value);
1300 
1301  // required uint64 session = 2;
1302  inline bool has_session() const;
1303  inline void clear_session();
1304  static const int kSessionFieldNumber = 2;
1305  inline ::google::protobuf::uint64 session() const;
1306  inline void set_session(::google::protobuf::uint64 value);
1307 
1308  // @@protoc_insertion_point(class_scope:Sync.SyncState.SeqNo)
1309  private:
1310  inline void set_has_seq();
1311  inline void clear_has_seq();
1312  inline void set_has_session();
1313  inline void clear_has_session();
1314 
1315  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1316 
1317  ::google::protobuf::uint32 _has_bits_[1];
1318  mutable int _cached_size_;
1319  ::google::protobuf::uint64 seq_;
1320  ::google::protobuf::uint64 session_;
1321  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1322  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1323  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1324 
1325  void InitAsDefaultInstance();
1326  static SyncState_SeqNo* default_instance_;
1327 };
1328 // -------------------------------------------------------------------
1329 
1330 class SyncState : public ::google::protobuf::Message {
1331  public:
1332  SyncState();
1333  virtual ~SyncState();
1334 
1335  SyncState(const SyncState& from);
1336 
1337  inline SyncState& operator=(const SyncState& from) {
1338  CopyFrom(from);
1339  return *this;
1340  }
1341 
1342  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1343  return _unknown_fields_;
1344  }
1345 
1346  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1347  return &_unknown_fields_;
1348  }
1349 
1350  static const ::google::protobuf::Descriptor* descriptor();
1351  static const SyncState& default_instance();
1352 
1353  void Swap(SyncState* other);
1354 
1355  // implements Message ----------------------------------------------
1356 
1357  SyncState* New() const;
1358  void CopyFrom(const ::google::protobuf::Message& from);
1359  void MergeFrom(const ::google::protobuf::Message& from);
1360  void CopyFrom(const SyncState& from);
1361  void MergeFrom(const SyncState& from);
1362  void Clear();
1363  bool IsInitialized() const;
1364 
1365  int ByteSize() const;
1366  bool MergePartialFromCodedStream(
1367  ::google::protobuf::io::CodedInputStream* input);
1368  void SerializeWithCachedSizes(
1369  ::google::protobuf::io::CodedOutputStream* output) const;
1370  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1371  int GetCachedSize() const { return _cached_size_; }
1372  private:
1373  void SharedCtor();
1374  void SharedDtor();
1375  void SetCachedSize(int size) const;
1376  public:
1377  ::google::protobuf::Metadata GetMetadata() const;
1378 
1379  // nested types ----------------------------------------------------
1380 
1381  typedef SyncState_SeqNo SeqNo;
1382 
1383  typedef SyncState_ActionType ActionType;
1384  static const ActionType UPDATE = SyncState_ActionType_UPDATE;
1385  static const ActionType DELETE = SyncState_ActionType_DELETE;
1386  static const ActionType OTHER = SyncState_ActionType_OTHER;
1387  static inline bool ActionType_IsValid(int value) {
1388  return SyncState_ActionType_IsValid(value);
1389  }
1390  static const ActionType ActionType_MIN =
1391  SyncState_ActionType_ActionType_MIN;
1392  static const ActionType ActionType_MAX =
1393  SyncState_ActionType_ActionType_MAX;
1394  static const int ActionType_ARRAYSIZE =
1395  SyncState_ActionType_ActionType_ARRAYSIZE;
1396  static inline const ::google::protobuf::EnumDescriptor*
1397  ActionType_descriptor() {
1398  return SyncState_ActionType_descriptor();
1399  }
1400  static inline const ::std::string& ActionType_Name(ActionType value) {
1401  return SyncState_ActionType_Name(value);
1402  }
1403  static inline bool ActionType_Parse(const ::std::string& name,
1404  ActionType* value) {
1405  return SyncState_ActionType_Parse(name, value);
1406  }
1407 
1408  // accessors -------------------------------------------------------
1409 
1410  // required string name = 1;
1411  inline bool has_name() const;
1412  inline void clear_name();
1413  static const int kNameFieldNumber = 1;
1414  inline const ::std::string& name() const;
1415  inline void set_name(const ::std::string& value);
1416  inline void set_name(const char* value);
1417  inline void set_name(const char* value, size_t size);
1418  inline ::std::string* mutable_name();
1419  inline ::std::string* release_name();
1420  inline void set_allocated_name(::std::string* name);
1421 
1422  // required .Sync.SyncState.ActionType type = 2;
1423  inline bool has_type() const;
1424  inline void clear_type();
1425  static const int kTypeFieldNumber = 2;
1426  inline ::Sync::SyncState_ActionType type() const;
1427  inline void set_type(::Sync::SyncState_ActionType value);
1428 
1429  // optional .Sync.SyncState.SeqNo seqno = 3;
1430  inline bool has_seqno() const;
1431  inline void clear_seqno();
1432  static const int kSeqnoFieldNumber = 3;
1433  inline const ::Sync::SyncState_SeqNo& seqno() const;
1434  inline ::Sync::SyncState_SeqNo* mutable_seqno();
1435  inline ::Sync::SyncState_SeqNo* release_seqno();
1436  inline void set_allocated_seqno(::Sync::SyncState_SeqNo* seqno);
1437 
1438  // @@protoc_insertion_point(class_scope:Sync.SyncState)
1439  private:
1440  inline void set_has_name();
1441  inline void clear_has_name();
1442  inline void set_has_type();
1443  inline void clear_has_type();
1444  inline void set_has_seqno();
1445  inline void clear_has_seqno();
1446 
1447  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1448 
1449  ::google::protobuf::uint32 _has_bits_[1];
1450  mutable int _cached_size_;
1451  ::std::string* name_;
1452  ::Sync::SyncState_SeqNo* seqno_;
1453  int type_;
1454  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1455  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1456  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1457 
1458  void InitAsDefaultInstance();
1459  static SyncState* default_instance_;
1460 };
1461 // -------------------------------------------------------------------
1462 
1463 class SyncStateMsg : public ::google::protobuf::Message {
1464  public:
1465  SyncStateMsg();
1466  virtual ~SyncStateMsg();
1467 
1468  SyncStateMsg(const SyncStateMsg& from);
1469 
1470  inline SyncStateMsg& operator=(const SyncStateMsg& from) {
1471  CopyFrom(from);
1472  return *this;
1473  }
1474 
1475  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1476  return _unknown_fields_;
1477  }
1478 
1479  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1480  return &_unknown_fields_;
1481  }
1482 
1483  static const ::google::protobuf::Descriptor* descriptor();
1484  static const SyncStateMsg& default_instance();
1485 
1486  void Swap(SyncStateMsg* other);
1487 
1488  // implements Message ----------------------------------------------
1489 
1490  SyncStateMsg* New() const;
1491  void CopyFrom(const ::google::protobuf::Message& from);
1492  void MergeFrom(const ::google::protobuf::Message& from);
1493  void CopyFrom(const SyncStateMsg& from);
1494  void MergeFrom(const SyncStateMsg& from);
1495  void Clear();
1496  bool IsInitialized() const;
1497 
1498  int ByteSize() const;
1499  bool MergePartialFromCodedStream(
1500  ::google::protobuf::io::CodedInputStream* input);
1501  void SerializeWithCachedSizes(
1502  ::google::protobuf::io::CodedOutputStream* output) const;
1503  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1504  int GetCachedSize() const { return _cached_size_; }
1505  private:
1506  void SharedCtor();
1507  void SharedDtor();
1508  void SetCachedSize(int size) const;
1509  public:
1510  ::google::protobuf::Metadata GetMetadata() const;
1511 
1512  // nested types ----------------------------------------------------
1513 
1514  // accessors -------------------------------------------------------
1515 
1516  // repeated .Sync.SyncState ss = 1;
1517  inline int ss_size() const;
1518  inline void clear_ss();
1519  static const int kSsFieldNumber = 1;
1520  inline const ::Sync::SyncState& ss(int index) const;
1521  inline ::Sync::SyncState* mutable_ss(int index);
1522  inline ::Sync::SyncState* add_ss();
1523  inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1524  ss() const;
1525  inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1526  mutable_ss();
1527 
1528  // @@protoc_insertion_point(class_scope:Sync.SyncStateMsg)
1529  private:
1530 
1531  ::google::protobuf::UnknownFieldSet _unknown_fields_;
1532 
1533  ::google::protobuf::uint32 _has_bits_[1];
1534  mutable int _cached_size_;
1536  friend void protobuf_AddDesc_sync_2dstate_2eproto();
1537  friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1538  friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1539 
1540  void InitAsDefaultInstance();
1541  static SyncStateMsg* default_instance_;
1542 };
1543 // ===================================================================
1544 
1545 
1546 // ===================================================================
1547 
1548 // SyncState_SeqNo
1549 
1550 // required uint64 seq = 1;
1551 inline bool SyncState_SeqNo::has_seq() const {
1552  return (_has_bits_[0] & 0x00000001u) != 0;
1553 }
1554 inline void SyncState_SeqNo::set_has_seq() {
1555  _has_bits_[0] |= 0x00000001u;
1556 }
1557 inline void SyncState_SeqNo::clear_has_seq() {
1558  _has_bits_[0] &= ~0x00000001u;
1559 }
1560 inline void SyncState_SeqNo::clear_seq() {
1561  seq_ = GOOGLE_ULONGLONG(0);
1562  clear_has_seq();
1563 }
1564 inline ::google::protobuf::uint64 SyncState_SeqNo::seq() const {
1565  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.seq)
1566  return seq_;
1567 }
1568 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
1569  set_has_seq();
1570  seq_ = value;
1571  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.seq)
1572 }
1573 
1574 // required uint64 session = 2;
1575 inline bool SyncState_SeqNo::has_session() const {
1576  return (_has_bits_[0] & 0x00000002u) != 0;
1577 }
1578 inline void SyncState_SeqNo::set_has_session() {
1579  _has_bits_[0] |= 0x00000002u;
1580 }
1581 inline void SyncState_SeqNo::clear_has_session() {
1582  _has_bits_[0] &= ~0x00000002u;
1583 }
1584 inline void SyncState_SeqNo::clear_session() {
1585  session_ = GOOGLE_ULONGLONG(0);
1586  clear_has_session();
1587 }
1588 inline ::google::protobuf::uint64 SyncState_SeqNo::session() const {
1589  // @@protoc_insertion_point(field_get:Sync.SyncState.SeqNo.session)
1590  return session_;
1591 }
1592 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
1593  set_has_session();
1594  session_ = value;
1595  // @@protoc_insertion_point(field_set:Sync.SyncState.SeqNo.session)
1596 }
1597 
1598 // -------------------------------------------------------------------
1599 
1600 // SyncState
1601 
1602 // required string name = 1;
1603 inline bool SyncState::has_name() const {
1604  return (_has_bits_[0] & 0x00000001u) != 0;
1605 }
1606 inline void SyncState::set_has_name() {
1607  _has_bits_[0] |= 0x00000001u;
1608 }
1609 inline void SyncState::clear_has_name() {
1610  _has_bits_[0] &= ~0x00000001u;
1611 }
1612 inline void SyncState::clear_name() {
1613  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1614  name_->clear();
1615  }
1616  clear_has_name();
1617 }
1618 inline const ::std::string& SyncState::name() const {
1619  // @@protoc_insertion_point(field_get:Sync.SyncState.name)
1620  return *name_;
1621 }
1622 inline void SyncState::set_name(const ::std::string& value) {
1623  set_has_name();
1624  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1625  name_ = new ::std::string;
1626  }
1627  name_->assign(value);
1628  // @@protoc_insertion_point(field_set:Sync.SyncState.name)
1629 }
1630 inline void SyncState::set_name(const char* value) {
1631  set_has_name();
1632  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1633  name_ = new ::std::string;
1634  }
1635  name_->assign(value);
1636  // @@protoc_insertion_point(field_set_char:Sync.SyncState.name)
1637 }
1638 inline void SyncState::set_name(const char* value, size_t size) {
1639  set_has_name();
1640  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1641  name_ = new ::std::string;
1642  }
1643  name_->assign(reinterpret_cast<const char*>(value), size);
1644  // @@protoc_insertion_point(field_set_pointer:Sync.SyncState.name)
1645 }
1646 inline ::std::string* SyncState::mutable_name() {
1647  set_has_name();
1648  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1649  name_ = new ::std::string;
1650  }
1651  // @@protoc_insertion_point(field_mutable:Sync.SyncState.name)
1652  return name_;
1653 }
1654 inline ::std::string* SyncState::release_name() {
1655  clear_has_name();
1656  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1657  return NULL;
1658  } else {
1659  ::std::string* temp = name_;
1660  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1661  return temp;
1662  }
1663 }
1664 inline void SyncState::set_allocated_name(::std::string* name) {
1665  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1666  delete name_;
1667  }
1668  if (name) {
1669  set_has_name();
1670  name_ = name;
1671  } else {
1672  clear_has_name();
1673  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1674  }
1675  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.name)
1676 }
1677 
1678 // required .Sync.SyncState.ActionType type = 2;
1679 inline bool SyncState::has_type() const {
1680  return (_has_bits_[0] & 0x00000002u) != 0;
1681 }
1682 inline void SyncState::set_has_type() {
1683  _has_bits_[0] |= 0x00000002u;
1684 }
1685 inline void SyncState::clear_has_type() {
1686  _has_bits_[0] &= ~0x00000002u;
1687 }
1688 inline void SyncState::clear_type() {
1689  type_ = 0;
1690  clear_has_type();
1691 }
1692 inline ::Sync::SyncState_ActionType SyncState::type() const {
1693  // @@protoc_insertion_point(field_get:Sync.SyncState.type)
1694  return static_cast< ::Sync::SyncState_ActionType >(type_);
1695 }
1696 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1697  assert(::Sync::SyncState_ActionType_IsValid(value));
1698  set_has_type();
1699  type_ = value;
1700  // @@protoc_insertion_point(field_set:Sync.SyncState.type)
1701 }
1702 
1703 // optional .Sync.SyncState.SeqNo seqno = 3;
1704 inline bool SyncState::has_seqno() const {
1705  return (_has_bits_[0] & 0x00000004u) != 0;
1706 }
1707 inline void SyncState::set_has_seqno() {
1708  _has_bits_[0] |= 0x00000004u;
1709 }
1710 inline void SyncState::clear_has_seqno() {
1711  _has_bits_[0] &= ~0x00000004u;
1712 }
1713 inline void SyncState::clear_seqno() {
1714  if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1715  clear_has_seqno();
1716 }
1717 inline const ::Sync::SyncState_SeqNo& SyncState::seqno() const {
1718  // @@protoc_insertion_point(field_get:Sync.SyncState.seqno)
1719  return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1720 }
1721 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1722  set_has_seqno();
1723  if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1724  // @@protoc_insertion_point(field_mutable:Sync.SyncState.seqno)
1725  return seqno_;
1726 }
1727 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1728  clear_has_seqno();
1729  ::Sync::SyncState_SeqNo* temp = seqno_;
1730  seqno_ = NULL;
1731  return temp;
1732 }
1733 inline void SyncState::set_allocated_seqno(::Sync::SyncState_SeqNo* seqno) {
1734  delete seqno_;
1735  seqno_ = seqno;
1736  if (seqno) {
1737  set_has_seqno();
1738  } else {
1739  clear_has_seqno();
1740  }
1741  // @@protoc_insertion_point(field_set_allocated:Sync.SyncState.seqno)
1742 }
1743 
1744 // -------------------------------------------------------------------
1745 
1746 // SyncStateMsg
1747 
1748 // repeated .Sync.SyncState ss = 1;
1749 inline int SyncStateMsg::ss_size() const {
1750  return ss_.size();
1751 }
1752 inline void SyncStateMsg::clear_ss() {
1753  ss_.Clear();
1754 }
1755 inline const ::Sync::SyncState& SyncStateMsg::ss(int index) const {
1756  // @@protoc_insertion_point(field_get:Sync.SyncStateMsg.ss)
1757  return ss_.Get(index);
1758 }
1759 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(int index) {
1760  // @@protoc_insertion_point(field_mutable:Sync.SyncStateMsg.ss)
1761  return ss_.Mutable(index);
1762 }
1763 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
1764  // @@protoc_insertion_point(field_add:Sync.SyncStateMsg.ss)
1765  return ss_.Add();
1766 }
1767 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1768 SyncStateMsg::ss() const {
1769  // @@protoc_insertion_point(field_list:Sync.SyncStateMsg.ss)
1770  return ss_;
1771 }
1772 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1773 SyncStateMsg::mutable_ss() {
1774  // @@protoc_insertion_point(field_mutable_list:Sync.SyncStateMsg.ss)
1775  return &ss_;
1776 }
1777 
1778 
1779 // @@protoc_insertion_point(namespace_scope)
1780 
1781 } // namespace Sync
1782 
1783 #ifndef SWIG
1784 namespace google {
1785 namespace protobuf {
1786 
1787 template <> struct is_proto_enum< ::Sync::SyncState_ActionType> : ::google::protobuf::internal::true_type {};
1788 template <>
1789 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
1790  return ::Sync::SyncState_ActionType_descriptor();
1791 }
1792 
1793 } // namespace google
1794 } // namespace protobuf
1795 #endif // SWIG
1796 
1797 // @@protoc_insertion_point(global_scope)
1798 
1799 #endif // GOOGLE_PROTOBUF_VERSION < 2006000
1800 
1801 #endif // PROTOBUF_sync_2dstate_2eproto__INCLUDED
Definition: sync-state.pb.h:290
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-2016 Regents of the University of California.
Definition: channel-status.pb.h:315