4 #ifndef PROTOBUF_sync_2dstate_2eproto__INCLUDED
5 #define PROTOBUF_sync_2dstate_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
12 #if GOOGLE_PROTOBUF_VERSION < 2005000
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
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.
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>
34 void protobuf_AddDesc_sync_2dstate_2eproto();
35 void protobuf_AssignDesc_sync_2dstate_2eproto();
36 void protobuf_ShutdownFile_sync_2dstate_2eproto();
39 class SyncState_SeqNo;
42 enum SyncState_ActionType {
43 SyncState_ActionType_UPDATE = 0,
44 SyncState_ActionType_DELETE = 1,
45 SyncState_ActionType_OTHER = 2
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;
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);
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);
76 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
77 return _unknown_fields_;
80 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
81 return &_unknown_fields_;
84 static const ::google::protobuf::Descriptor* descriptor();
92 void CopyFrom(const ::google::protobuf::Message& from);
93 void MergeFrom(const ::google::protobuf::Message& from);
97 bool IsInitialized()
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_; }
109 void SetCachedSize(
int size)
const;
112 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
134 inline void set_has_seq();
135 inline void clear_has_seq();
136 inline void set_has_session();
137 inline void clear_has_session();
139 ::google::protobuf::UnknownFieldSet _unknown_fields_;
141 ::google::protobuf::uint64 seq_;
142 ::google::protobuf::uint64 session_;
144 mutable int _cached_size_;
145 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
147 friend void protobuf_AddDesc_sync_2dstate_2eproto();
148 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
149 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
151 void InitAsDefaultInstance();
168 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
169 return _unknown_fields_;
172 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
173 return &_unknown_fields_;
176 static const ::google::protobuf::Descriptor* descriptor();
177 static const SyncState& default_instance();
184 void CopyFrom(const ::google::protobuf::Message& from);
185 void MergeFrom(const ::google::protobuf::Message& from);
189 bool IsInitialized()
const;
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_; }
201 void SetCachedSize(
int size)
const;
204 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
227 static inline const ::std::string& ActionType_Name(ActionType value) {
228 return SyncState_ActionType_Name(value);
230 static inline bool ActionType_Parse(const ::std::string& name,
232 return SyncState_ActionType_Parse(name, value);
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();
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);
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();
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();
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();
285 ::google::protobuf::UnknownFieldSet _unknown_fields_;
287 ::std::string* name_;
289 ::std::string* application_info_;
292 mutable int _cached_size_;
293 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
295 friend void protobuf_AddDesc_sync_2dstate_2eproto();
296 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
297 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
299 void InitAsDefaultInstance();
316 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
317 return _unknown_fields_;
320 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
321 return &_unknown_fields_;
324 static const ::google::protobuf::Descriptor* descriptor();
332 void CopyFrom(const ::google::protobuf::Message& from);
333 void MergeFrom(const ::google::protobuf::Message& from);
337 bool IsInitialized()
const;
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_; }
349 void SetCachedSize(
int size)
const;
352 ::google::protobuf::Metadata GetMetadata()
const;
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 >&
367 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
373 ::google::protobuf::UnknownFieldSet _unknown_fields_;
377 mutable int _cached_size_;
378 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
380 friend void protobuf_AddDesc_sync_2dstate_2eproto();
381 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
382 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
384 void InitAsDefaultInstance();
395 inline bool SyncState_SeqNo::has_seq()
const {
396 return (_has_bits_[0] & 0x00000001u) != 0;
398 inline void SyncState_SeqNo::set_has_seq() {
399 _has_bits_[0] |= 0x00000001u;
401 inline void SyncState_SeqNo::clear_has_seq() {
402 _has_bits_[0] &= ~0x00000001u;
404 inline void SyncState_SeqNo::clear_seq() {
405 seq_ = GOOGLE_ULONGLONG(0);
408 inline ::google::protobuf::uint64 SyncState_SeqNo::seq()
const {
411 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
417 inline bool SyncState_SeqNo::has_session()
const {
418 return (_has_bits_[0] & 0x00000002u) != 0;
420 inline void SyncState_SeqNo::set_has_session() {
421 _has_bits_[0] |= 0x00000002u;
423 inline void SyncState_SeqNo::clear_has_session() {
424 _has_bits_[0] &= ~0x00000002u;
426 inline void SyncState_SeqNo::clear_session() {
427 session_ = GOOGLE_ULONGLONG(0);
430 inline ::google::protobuf::uint64 SyncState_SeqNo::session()
const {
433 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
443 inline bool SyncState::has_name()
const {
444 return (_has_bits_[0] & 0x00000001u) != 0;
446 inline void SyncState::set_has_name() {
447 _has_bits_[0] |= 0x00000001u;
449 inline void SyncState::clear_has_name() {
450 _has_bits_[0] &= ~0x00000001u;
452 inline void SyncState::clear_name() {
453 if (name_ != &::google::protobuf::internal::kEmptyString) {
458 inline const ::std::string& SyncState::name()
const {
461 inline void SyncState::set_name(const ::std::string& value) {
463 if (name_ == &::google::protobuf::internal::kEmptyString) {
464 name_ = new ::std::string;
466 name_->assign(value);
468 inline void SyncState::set_name(
const char* value) {
470 if (name_ == &::google::protobuf::internal::kEmptyString) {
471 name_ = new ::std::string;
473 name_->assign(value);
475 inline void SyncState::set_name(
const char* value,
size_t size) {
477 if (name_ == &::google::protobuf::internal::kEmptyString) {
478 name_ = new ::std::string;
480 name_->assign(reinterpret_cast<const char*>(value), size);
482 inline ::std::string* SyncState::mutable_name() {
484 if (name_ == &::google::protobuf::internal::kEmptyString) {
485 name_ = new ::std::string;
489 inline ::std::string* SyncState::release_name() {
491 if (name_ == &::google::protobuf::internal::kEmptyString) {
494 ::std::string* temp = name_;
495 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
501 inline bool SyncState::has_type()
const {
502 return (_has_bits_[0] & 0x00000002u) != 0;
504 inline void SyncState::set_has_type() {
505 _has_bits_[0] |= 0x00000002u;
507 inline void SyncState::clear_has_type() {
508 _has_bits_[0] &= ~0x00000002u;
510 inline void SyncState::clear_type() {
514 inline ::Sync::SyncState_ActionType SyncState::type()
const {
515 return static_cast< ::Sync::SyncState_ActionType
>(type_);
517 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
518 GOOGLE_DCHECK(::Sync::SyncState_ActionType_IsValid(value));
524 inline bool SyncState::has_seqno()
const {
525 return (_has_bits_[0] & 0x00000004u) != 0;
527 inline void SyncState::set_has_seqno() {
528 _has_bits_[0] |= 0x00000004u;
530 inline void SyncState::clear_has_seqno() {
531 _has_bits_[0] &= ~0x00000004u;
533 inline void SyncState::clear_seqno() {
534 if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
537 inline const ::Sync::SyncState_SeqNo& SyncState::seqno()
const {
538 return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
540 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
542 if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
545 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
553 inline bool SyncState::has_application_info()
const {
554 return (_has_bits_[0] & 0x00000008u) != 0;
556 inline void SyncState::set_has_application_info() {
557 _has_bits_[0] |= 0x00000008u;
559 inline void SyncState::clear_has_application_info() {
560 _has_bits_[0] &= ~0x00000008u;
562 inline void SyncState::clear_application_info() {
563 if (application_info_ != &::google::protobuf::internal::kEmptyString) {
564 application_info_->clear();
566 clear_has_application_info();
568 inline const ::std::string& SyncState::application_info()
const {
569 return *application_info_;
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;
576 application_info_->assign(value);
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;
583 application_info_->assign(value);
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;
590 application_info_->assign(reinterpret_cast<const char*>(value), size);
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;
597 return application_info_;
599 inline ::std::string* SyncState::release_application_info() {
600 clear_has_application_info();
601 if (application_info_ == &::google::protobuf::internal::kEmptyString) {
604 ::std::string* temp = application_info_;
605 application_info_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
615 inline int SyncStateMsg::ss_size()
const {
618 inline void SyncStateMsg::clear_ss() {
621 inline const ::Sync::SyncState& SyncStateMsg::ss(
int index)
const {
622 return ss_.Get(index);
624 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(
int index) {
625 return ss_.Mutable(index);
627 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
630 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
631 SyncStateMsg::ss()
const {
634 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
635 SyncStateMsg::mutable_ss() {
649 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
650 return ::Sync::SyncState_ActionType_descriptor();
659 #elif GOOGLE_PROTOBUF_VERSION < 2006000
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
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.
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>
683 void protobuf_AddDesc_sync_2dstate_2eproto();
684 void protobuf_AssignDesc_sync_2dstate_2eproto();
685 void protobuf_ShutdownFile_sync_2dstate_2eproto();
688 class SyncState_SeqNo;
691 enum SyncState_ActionType {
692 SyncState_ActionType_UPDATE = 0,
693 SyncState_ActionType_DELETE = 1,
694 SyncState_ActionType_OTHER = 2
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;
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);
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);
713 class SyncState_SeqNo :
public ::google::protobuf::Message {
716 virtual ~SyncState_SeqNo();
718 SyncState_SeqNo(
const SyncState_SeqNo& from);
720 inline SyncState_SeqNo& operator=(
const SyncState_SeqNo& from) {
725 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
726 return _unknown_fields_;
729 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
730 return &_unknown_fields_;
733 static const ::google::protobuf::Descriptor* descriptor();
734 static const SyncState_SeqNo& default_instance();
736 void Swap(SyncState_SeqNo* other);
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);
746 bool IsInitialized()
const;
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_; }
758 void SetCachedSize(
int size)
const;
761 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
783 inline void set_has_seq();
784 inline void clear_has_seq();
785 inline void set_has_session();
786 inline void clear_has_session();
788 ::google::protobuf::UnknownFieldSet _unknown_fields_;
790 ::google::protobuf::uint64 seq_;
791 ::google::protobuf::uint64 session_;
793 mutable int _cached_size_;
794 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
796 friend void protobuf_AddDesc_sync_2dstate_2eproto();
797 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
798 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
800 void InitAsDefaultInstance();
801 static SyncState_SeqNo* default_instance_;
805 class SyncState :
public ::google::protobuf::Message {
808 virtual ~SyncState();
810 SyncState(
const SyncState& from);
812 inline SyncState& operator=(
const SyncState& from) {
817 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
818 return _unknown_fields_;
821 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
822 return &_unknown_fields_;
825 static const ::google::protobuf::Descriptor* descriptor();
826 static const SyncState& default_instance();
828 void Swap(SyncState* other);
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);
838 bool IsInitialized()
const;
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_; }
850 void SetCachedSize(
int size)
const;
853 ::google::protobuf::Metadata GetMetadata()
const;
857 typedef SyncState_SeqNo SeqNo;
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);
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();
876 static inline const ::std::string& ActionType_Name(ActionType value) {
877 return SyncState_ActionType_Name(value);
879 static inline bool ActionType_Parse(const ::std::string& name,
881 return SyncState_ActionType_Parse(name, value);
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);
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);
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();
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);
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();
937 ::google::protobuf::UnknownFieldSet _unknown_fields_;
939 ::std::string* name_;
941 ::std::string* application_info_;
944 mutable int _cached_size_;
945 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
947 friend void protobuf_AddDesc_sync_2dstate_2eproto();
948 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
949 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
951 void InitAsDefaultInstance();
952 static SyncState* default_instance_;
956 class SyncStateMsg :
public ::google::protobuf::Message {
959 virtual ~SyncStateMsg();
961 SyncStateMsg(
const SyncStateMsg& from);
963 inline SyncStateMsg& operator=(
const SyncStateMsg& from) {
968 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
969 return _unknown_fields_;
972 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
973 return &_unknown_fields_;
976 static const ::google::protobuf::Descriptor* descriptor();
977 static const SyncStateMsg& default_instance();
979 void Swap(SyncStateMsg* other);
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);
989 bool IsInitialized()
const;
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_; }
1001 void SetCachedSize(
int size)
const;
1004 ::google::protobuf::Metadata GetMetadata()
const;
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 >&
1019 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1025 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1029 mutable int _cached_size_;
1030 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
1032 friend void protobuf_AddDesc_sync_2dstate_2eproto();
1033 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1034 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1036 void InitAsDefaultInstance();
1037 static SyncStateMsg* default_instance_;
1047 inline bool SyncState_SeqNo::has_seq()
const {
1048 return (_has_bits_[0] & 0x00000001u) != 0;
1050 inline void SyncState_SeqNo::set_has_seq() {
1051 _has_bits_[0] |= 0x00000001u;
1053 inline void SyncState_SeqNo::clear_has_seq() {
1054 _has_bits_[0] &= ~0x00000001u;
1056 inline void SyncState_SeqNo::clear_seq() {
1057 seq_ = GOOGLE_ULONGLONG(0);
1060 inline ::google::protobuf::uint64 SyncState_SeqNo::seq()
const {
1063 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
1069 inline bool SyncState_SeqNo::has_session()
const {
1070 return (_has_bits_[0] & 0x00000002u) != 0;
1072 inline void SyncState_SeqNo::set_has_session() {
1073 _has_bits_[0] |= 0x00000002u;
1075 inline void SyncState_SeqNo::clear_has_session() {
1076 _has_bits_[0] &= ~0x00000002u;
1078 inline void SyncState_SeqNo::clear_session() {
1079 session_ = GOOGLE_ULONGLONG(0);
1080 clear_has_session();
1082 inline ::google::protobuf::uint64 SyncState_SeqNo::session()
const {
1085 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
1095 inline bool SyncState::has_name()
const {
1096 return (_has_bits_[0] & 0x00000001u) != 0;
1098 inline void SyncState::set_has_name() {
1099 _has_bits_[0] |= 0x00000001u;
1101 inline void SyncState::clear_has_name() {
1102 _has_bits_[0] &= ~0x00000001u;
1104 inline void SyncState::clear_name() {
1105 if (name_ != &::google::protobuf::internal::kEmptyString) {
1110 inline const ::std::string& SyncState::name()
const {
1113 inline void SyncState::set_name(const ::std::string& value) {
1115 if (name_ == &::google::protobuf::internal::kEmptyString) {
1116 name_ = new ::std::string;
1118 name_->assign(value);
1120 inline void SyncState::set_name(
const char* value) {
1122 if (name_ == &::google::protobuf::internal::kEmptyString) {
1123 name_ = new ::std::string;
1125 name_->assign(value);
1127 inline void SyncState::set_name(
const char* value,
size_t size) {
1129 if (name_ == &::google::protobuf::internal::kEmptyString) {
1130 name_ = new ::std::string;
1132 name_->assign(reinterpret_cast<const char*>(value), size);
1134 inline ::std::string* SyncState::mutable_name() {
1136 if (name_ == &::google::protobuf::internal::kEmptyString) {
1137 name_ = new ::std::string;
1141 inline ::std::string* SyncState::release_name() {
1143 if (name_ == &::google::protobuf::internal::kEmptyString) {
1146 ::std::string* temp = name_;
1147 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1151 inline void SyncState::set_allocated_name(::std::string* name) {
1152 if (name_ != &::google::protobuf::internal::kEmptyString) {
1160 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1165 inline bool SyncState::has_type()
const {
1166 return (_has_bits_[0] & 0x00000002u) != 0;
1168 inline void SyncState::set_has_type() {
1169 _has_bits_[0] |= 0x00000002u;
1171 inline void SyncState::clear_has_type() {
1172 _has_bits_[0] &= ~0x00000002u;
1174 inline void SyncState::clear_type() {
1178 inline ::Sync::SyncState_ActionType SyncState::type()
const {
1179 return static_cast< ::Sync::SyncState_ActionType
>(type_);
1181 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1182 assert(::Sync::SyncState_ActionType_IsValid(value));
1188 inline bool SyncState::has_seqno()
const {
1189 return (_has_bits_[0] & 0x00000004u) != 0;
1191 inline void SyncState::set_has_seqno() {
1192 _has_bits_[0] |= 0x00000004u;
1194 inline void SyncState::clear_has_seqno() {
1195 _has_bits_[0] &= ~0x00000004u;
1197 inline void SyncState::clear_seqno() {
1198 if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1201 inline const ::Sync::SyncState_SeqNo& SyncState::seqno()
const {
1202 return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1204 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1206 if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1209 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1226 inline bool SyncState::has_application_info()
const {
1227 return (_has_bits_[0] & 0x00000008u) != 0;
1229 inline void SyncState::set_has_application_info() {
1230 _has_bits_[0] |= 0x00000008u;
1232 inline void SyncState::clear_has_application_info() {
1233 _has_bits_[0] &= ~0x00000008u;
1235 inline void SyncState::clear_application_info() {
1236 if (application_info_ != &::google::protobuf::internal::kEmptyString) {
1237 application_info_->clear();
1239 clear_has_application_info();
1241 inline const ::std::string& SyncState::application_info()
const {
1242 return *application_info_;
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;
1249 application_info_->assign(value);
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;
1256 application_info_->assign(value);
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;
1263 application_info_->assign(reinterpret_cast<const char*>(value), size);
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;
1270 return application_info_;
1272 inline ::std::string* SyncState::release_application_info() {
1273 clear_has_application_info();
1274 if (application_info_ == &::google::protobuf::internal::kEmptyString) {
1277 ::std::string* temp = application_info_;
1278 application_info_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1282 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
1283 if (application_info_ != &::google::protobuf::internal::kEmptyString) {
1284 delete application_info_;
1286 if (application_info) {
1287 set_has_application_info();
1288 application_info_ = application_info;
1290 clear_has_application_info();
1291 application_info_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
1300 inline int SyncStateMsg::ss_size()
const {
1303 inline void SyncStateMsg::clear_ss() {
1306 inline const ::Sync::SyncState& SyncStateMsg::ss(
int index)
const {
1307 return ss_.Get(index);
1309 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(
int index) {
1310 return ss_.Mutable(index);
1312 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
1315 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
1316 SyncStateMsg::ss()
const {
1319 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1320 SyncStateMsg::mutable_ss() {
1331 namespace protobuf {
1334 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
1335 return ::Sync::SyncState_ActionType_descriptor();
1344 #elif GOOGLE_PROTOBUF_VERSION < 3000000
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.
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.
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>
1368 void protobuf_AddDesc_sync_2dstate_2eproto();
1369 void protobuf_AssignDesc_sync_2dstate_2eproto();
1370 void protobuf_ShutdownFile_sync_2dstate_2eproto();
1373 class SyncState_SeqNo;
1376 enum SyncState_ActionType {
1377 SyncState_ActionType_UPDATE = 0,
1378 SyncState_ActionType_DELETE = 1,
1379 SyncState_ActionType_OTHER = 2
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;
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);
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);
1398 class SyncState_SeqNo :
public ::google::protobuf::Message {
1401 virtual ~SyncState_SeqNo();
1403 SyncState_SeqNo(
const SyncState_SeqNo& from);
1405 inline SyncState_SeqNo& operator=(
const SyncState_SeqNo& from) {
1410 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1411 return _unknown_fields_;
1414 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1415 return &_unknown_fields_;
1418 static const ::google::protobuf::Descriptor* descriptor();
1419 static const SyncState_SeqNo& default_instance();
1421 void Swap(SyncState_SeqNo* other);
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);
1431 bool IsInitialized()
const;
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_; }
1443 void SetCachedSize(
int size)
const;
1445 ::google::protobuf::Metadata GetMetadata()
const;
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);
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);
1467 inline void set_has_seq();
1468 inline void clear_has_seq();
1469 inline void set_has_session();
1470 inline void clear_has_session();
1472 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
1482 void InitAsDefaultInstance();
1483 static SyncState_SeqNo* default_instance_;
1487 class SyncState :
public ::google::protobuf::Message {
1490 virtual ~SyncState();
1492 SyncState(
const SyncState& from);
1494 inline SyncState& operator=(
const SyncState& from) {
1499 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1500 return _unknown_fields_;
1503 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1504 return &_unknown_fields_;
1507 static const ::google::protobuf::Descriptor* descriptor();
1508 static const SyncState& default_instance();
1510 void Swap(SyncState* other);
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);
1520 bool IsInitialized()
const;
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_; }
1532 void SetCachedSize(
int size)
const;
1534 ::google::protobuf::Metadata GetMetadata()
const;
1538 typedef SyncState_SeqNo SeqNo;
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);
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();
1557 static inline const ::std::string& ActionType_Name(ActionType value) {
1558 return SyncState_ActionType_Name(value);
1560 static inline bool ActionType_Parse(const ::std::string& name,
1561 ActionType* value) {
1562 return SyncState_ActionType_Parse(name, value);
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);
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);
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();
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);
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();
1618 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1620 ::google::protobuf::uint32 _has_bits_[1];
1621 mutable int _cached_size_;
1622 ::std::string* name_;
1624 ::std::string* application_info_;
1626 friend void protobuf_AddDesc_sync_2dstate_2eproto();
1627 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
1628 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
1630 void InitAsDefaultInstance();
1631 static SyncState* default_instance_;
1635 class SyncStateMsg :
public ::google::protobuf::Message {
1638 virtual ~SyncStateMsg();
1640 SyncStateMsg(
const SyncStateMsg& from);
1642 inline SyncStateMsg& operator=(
const SyncStateMsg& from) {
1647 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
1648 return _unknown_fields_;
1651 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1652 return &_unknown_fields_;
1655 static const ::google::protobuf::Descriptor* descriptor();
1656 static const SyncStateMsg& default_instance();
1658 void Swap(SyncStateMsg* other);
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);
1668 bool IsInitialized()
const;
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_; }
1680 void SetCachedSize(
int size)
const;
1682 ::google::protobuf::Metadata GetMetadata()
const;
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 >&
1697 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
1703 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
1712 void InitAsDefaultInstance();
1713 static SyncStateMsg* default_instance_;
1723 inline bool SyncState_SeqNo::has_seq()
const {
1724 return (_has_bits_[0] & 0x00000001u) != 0;
1726 inline void SyncState_SeqNo::set_has_seq() {
1727 _has_bits_[0] |= 0x00000001u;
1729 inline void SyncState_SeqNo::clear_has_seq() {
1730 _has_bits_[0] &= ~0x00000001u;
1732 inline void SyncState_SeqNo::clear_seq() {
1733 seq_ = GOOGLE_ULONGLONG(0);
1736 inline ::google::protobuf::uint64 SyncState_SeqNo::seq()
const {
1740 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
1747 inline bool SyncState_SeqNo::has_session()
const {
1748 return (_has_bits_[0] & 0x00000002u) != 0;
1750 inline void SyncState_SeqNo::set_has_session() {
1751 _has_bits_[0] |= 0x00000002u;
1753 inline void SyncState_SeqNo::clear_has_session() {
1754 _has_bits_[0] &= ~0x00000002u;
1756 inline void SyncState_SeqNo::clear_session() {
1757 session_ = GOOGLE_ULONGLONG(0);
1758 clear_has_session();
1760 inline ::google::protobuf::uint64 SyncState_SeqNo::session()
const {
1764 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
1775 inline bool SyncState::has_name()
const {
1776 return (_has_bits_[0] & 0x00000001u) != 0;
1778 inline void SyncState::set_has_name() {
1779 _has_bits_[0] |= 0x00000001u;
1781 inline void SyncState::clear_has_name() {
1782 _has_bits_[0] &= ~0x00000001u;
1784 inline void SyncState::clear_name() {
1785 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1790 inline const ::std::string& SyncState::name()
const {
1794 inline void SyncState::set_name(const ::std::string& value) {
1796 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1797 name_ = new ::std::string;
1799 name_->assign(value);
1802 inline void SyncState::set_name(
const char* value) {
1804 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1805 name_ = new ::std::string;
1807 name_->assign(value);
1810 inline void SyncState::set_name(
const char* value,
size_t size) {
1812 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1813 name_ = new ::std::string;
1815 name_->assign(reinterpret_cast<const char*>(value), size);
1818 inline ::std::string* SyncState::mutable_name() {
1820 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1821 name_ = new ::std::string;
1826 inline ::std::string* SyncState::release_name() {
1828 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1831 ::std::string* temp = name_;
1832 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1836 inline void SyncState::set_allocated_name(::std::string* name) {
1837 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1845 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1851 inline bool SyncState::has_type()
const {
1852 return (_has_bits_[0] & 0x00000002u) != 0;
1854 inline void SyncState::set_has_type() {
1855 _has_bits_[0] |= 0x00000002u;
1857 inline void SyncState::clear_has_type() {
1858 _has_bits_[0] &= ~0x00000002u;
1860 inline void SyncState::clear_type() {
1864 inline ::Sync::SyncState_ActionType SyncState::type()
const {
1866 return static_cast< ::Sync::SyncState_ActionType
>(type_);
1868 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
1869 assert(::Sync::SyncState_ActionType_IsValid(value));
1876 inline bool SyncState::has_seqno()
const {
1877 return (_has_bits_[0] & 0x00000004u) != 0;
1879 inline void SyncState::set_has_seqno() {
1880 _has_bits_[0] |= 0x00000004u;
1882 inline void SyncState::clear_has_seqno() {
1883 _has_bits_[0] &= ~0x00000004u;
1885 inline void SyncState::clear_seqno() {
1886 if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
1889 inline const ::Sync::SyncState_SeqNo& SyncState::seqno()
const {
1891 return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
1893 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
1895 if (seqno_ == NULL) seqno_ = new ::Sync::SyncState_SeqNo;
1899 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
1917 inline bool SyncState::has_application_info()
const {
1918 return (_has_bits_[0] & 0x00000008u) != 0;
1920 inline void SyncState::set_has_application_info() {
1921 _has_bits_[0] |= 0x00000008u;
1923 inline void SyncState::clear_has_application_info() {
1924 _has_bits_[0] &= ~0x00000008u;
1926 inline void SyncState::clear_application_info() {
1927 if (application_info_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1928 application_info_->clear();
1930 clear_has_application_info();
1932 inline const ::std::string& SyncState::application_info()
const {
1934 return *application_info_;
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;
1941 application_info_->assign(value);
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;
1949 application_info_->assign(value);
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;
1957 application_info_->assign(reinterpret_cast<const char*>(value), size);
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;
1966 return application_info_;
1968 inline ::std::string* SyncState::release_application_info() {
1969 clear_has_application_info();
1970 if (application_info_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1973 ::std::string* temp = application_info_;
1974 application_info_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1978 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
1979 if (application_info_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1980 delete application_info_;
1982 if (application_info) {
1983 set_has_application_info();
1984 application_info_ = application_info;
1986 clear_has_application_info();
1987 application_info_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1997 inline int SyncStateMsg::ss_size()
const {
2000 inline void SyncStateMsg::clear_ss() {
2003 inline const ::Sync::SyncState& SyncStateMsg::ss(
int index)
const {
2005 return ss_.Get(index);
2007 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(
int index) {
2009 return ss_.Mutable(index);
2011 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
2015 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
2016 SyncStateMsg::ss()
const {
2020 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
2021 SyncStateMsg::mutable_ss() {
2033 namespace protobuf {
2035 template <>
struct is_proto_enum< ::Sync::SyncState_ActionType> : ::google::protobuf::internal::true_type {};
2037 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
2038 return ::Sync::SyncState_ActionType_descriptor();
2047 #else // GOOGLE_PROTOBUF_VERSION < 3000000
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.
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.
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>
2074 void protobuf_AddDesc_sync_2dstate_2eproto();
2075 void protobuf_AssignDesc_sync_2dstate_2eproto();
2076 void protobuf_ShutdownFile_sync_2dstate_2eproto();
2080 class SyncState_SeqNo;
2082 enum SyncState_ActionType {
2083 SyncState_ActionType_UPDATE = 0,
2084 SyncState_ActionType_DELETE = 1,
2085 SyncState_ActionType_OTHER = 2
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;
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);
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);
2104 class SyncState_SeqNo :
public ::google::protobuf::Message {
2107 virtual ~SyncState_SeqNo();
2109 SyncState_SeqNo(
const SyncState_SeqNo& from);
2111 inline SyncState_SeqNo& operator=(
const SyncState_SeqNo& from) {
2116 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
2117 return _internal_metadata_.unknown_fields();
2120 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2121 return _internal_metadata_.mutable_unknown_fields();
2124 static const ::google::protobuf::Descriptor* descriptor();
2125 static const SyncState_SeqNo& default_instance();
2127 void Swap(SyncState_SeqNo* other);
2131 inline SyncState_SeqNo* New()
const {
return New(NULL); }
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);
2139 bool IsInitialized()
const;
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);
2151 int GetCachedSize()
const {
return _cached_size_; }
2155 void SetCachedSize(
int size)
const;
2156 void InternalSwap(SyncState_SeqNo* other);
2158 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
2159 return _internal_metadata_.arena();
2161 inline void* MaybeArenaPtr()
const {
2162 return _internal_metadata_.raw_arena_ptr();
2166 ::google::protobuf::Metadata GetMetadata()
const;
2173 bool has_seq()
const;
2175 static const int kSeqFieldNumber = 1;
2176 ::google::protobuf::uint64 seq()
const;
2177 void set_seq(::google::protobuf::uint64 value);
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);
2188 inline void set_has_seq();
2189 inline void clear_has_seq();
2190 inline void set_has_session();
2191 inline void clear_has_session();
2194 int RequiredFieldsByteSizeFallback()
const;
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();
2205 void InitAsDefaultInstance();
2206 static SyncState_SeqNo* default_instance_;
2210 class SyncState :
public ::google::protobuf::Message {
2213 virtual ~SyncState();
2215 SyncState(
const SyncState& from);
2217 inline SyncState& operator=(
const SyncState& from) {
2222 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
2223 return _internal_metadata_.unknown_fields();
2226 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2227 return _internal_metadata_.mutable_unknown_fields();
2230 static const ::google::protobuf::Descriptor* descriptor();
2231 static const SyncState& default_instance();
2233 void Swap(SyncState* other);
2237 inline SyncState* New()
const {
return New(NULL); }
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);
2245 bool IsInitialized()
const;
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);
2257 int GetCachedSize()
const {
return _cached_size_; }
2261 void SetCachedSize(
int size)
const;
2262 void InternalSwap(SyncState* other);
2264 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
2265 return _internal_metadata_.arena();
2267 inline void* MaybeArenaPtr()
const {
2268 return _internal_metadata_.raw_arena_ptr();
2272 ::google::protobuf::Metadata GetMetadata()
const;
2276 typedef SyncState_SeqNo SeqNo;
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);
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();
2298 static inline const ::std::string& ActionType_Name(ActionType value) {
2299 return SyncState_ActionType_Name(value);
2301 static inline bool ActionType_Parse(const ::std::string& name,
2302 ActionType* value) {
2303 return SyncState_ActionType_Parse(name, value);
2309 bool has_name()
const;
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);
2321 bool has_type()
const;
2323 static const int kTypeFieldNumber = 2;
2324 ::Sync::SyncState_ActionType type()
const;
2325 void set_type(::Sync::SyncState_ActionType value);
2328 bool has_seqno()
const;
2330 static const int kSeqnoFieldNumber = 3;
2331 const ::Sync::SyncState_SeqNo& seqno()
const;
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);
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();
2360 int RequiredFieldsByteSizeFallback()
const;
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_;
2367 ::google::protobuf::internal::ArenaStringPtr application_info_;
2369 friend void protobuf_AddDesc_sync_2dstate_2eproto();
2370 friend void protobuf_AssignDesc_sync_2dstate_2eproto();
2371 friend void protobuf_ShutdownFile_sync_2dstate_2eproto();
2373 void InitAsDefaultInstance();
2374 static SyncState* default_instance_;
2378 class SyncStateMsg :
public ::google::protobuf::Message {
2381 virtual ~SyncStateMsg();
2383 SyncStateMsg(
const SyncStateMsg& from);
2385 inline SyncStateMsg& operator=(
const SyncStateMsg& from) {
2390 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
2391 return _internal_metadata_.unknown_fields();
2394 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
2395 return _internal_metadata_.mutable_unknown_fields();
2398 static const ::google::protobuf::Descriptor* descriptor();
2399 static const SyncStateMsg& default_instance();
2401 void Swap(SyncStateMsg* other);
2405 inline SyncStateMsg* New()
const {
return New(NULL); }
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);
2413 bool IsInitialized()
const;
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);
2425 int GetCachedSize()
const {
return _cached_size_; }
2429 void SetCachedSize(
int size)
const;
2430 void InternalSwap(SyncStateMsg* other);
2432 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
2433 return _internal_metadata_.arena();
2435 inline void* MaybeArenaPtr()
const {
2436 return _internal_metadata_.raw_arena_ptr();
2440 ::google::protobuf::Metadata GetMetadata()
const;
2447 int ss_size()
const;
2449 static const int kSsFieldNumber = 1;
2450 const ::Sync::SyncState& ss(
int index)
const;
2455 const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
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();
2469 void InitAsDefaultInstance();
2470 static SyncStateMsg* default_instance_;
2477 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
2481 inline bool SyncState_SeqNo::has_seq()
const {
2482 return (_has_bits_[0] & 0x00000001u) != 0;
2484 inline void SyncState_SeqNo::set_has_seq() {
2485 _has_bits_[0] |= 0x00000001u;
2487 inline void SyncState_SeqNo::clear_has_seq() {
2488 _has_bits_[0] &= ~0x00000001u;
2490 inline void SyncState_SeqNo::clear_seq() {
2491 seq_ = GOOGLE_ULONGLONG(0);
2494 inline ::google::protobuf::uint64 SyncState_SeqNo::seq()
const {
2498 inline void SyncState_SeqNo::set_seq(::google::protobuf::uint64 value) {
2505 inline bool SyncState_SeqNo::has_session()
const {
2506 return (_has_bits_[0] & 0x00000002u) != 0;
2508 inline void SyncState_SeqNo::set_has_session() {
2509 _has_bits_[0] |= 0x00000002u;
2511 inline void SyncState_SeqNo::clear_has_session() {
2512 _has_bits_[0] &= ~0x00000002u;
2514 inline void SyncState_SeqNo::clear_session() {
2515 session_ = GOOGLE_ULONGLONG(0);
2516 clear_has_session();
2518 inline ::google::protobuf::uint64 SyncState_SeqNo::session()
const {
2522 inline void SyncState_SeqNo::set_session(::google::protobuf::uint64 value) {
2533 inline bool SyncState::has_name()
const {
2534 return (_has_bits_[0] & 0x00000001u) != 0;
2536 inline void SyncState::set_has_name() {
2537 _has_bits_[0] |= 0x00000001u;
2539 inline void SyncState::clear_has_name() {
2540 _has_bits_[0] &= ~0x00000001u;
2542 inline void SyncState::clear_name() {
2543 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2546 inline const ::std::string& SyncState::name()
const {
2548 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2550 inline void SyncState::set_name(const ::std::string& value) {
2552 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2555 inline void SyncState::set_name(
const char* value) {
2557 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2560 inline void SyncState::set_name(
const char* value,
size_t size) {
2562 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2563 ::std::string(reinterpret_cast<const char*>(value), size));
2566 inline ::std::string* SyncState::mutable_name() {
2569 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2571 inline ::std::string* SyncState::release_name() {
2574 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2576 inline void SyncState::set_allocated_name(::std::string* name) {
2582 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
2587 inline bool SyncState::has_type()
const {
2588 return (_has_bits_[0] & 0x00000002u) != 0;
2590 inline void SyncState::set_has_type() {
2591 _has_bits_[0] |= 0x00000002u;
2593 inline void SyncState::clear_has_type() {
2594 _has_bits_[0] &= ~0x00000002u;
2596 inline void SyncState::clear_type() {
2600 inline ::Sync::SyncState_ActionType SyncState::type()
const {
2602 return static_cast< ::Sync::SyncState_ActionType
>(type_);
2604 inline void SyncState::set_type(::Sync::SyncState_ActionType value) {
2605 assert(::Sync::SyncState_ActionType_IsValid(value));
2612 inline bool SyncState::has_seqno()
const {
2613 return (_has_bits_[0] & 0x00000004u) != 0;
2615 inline void SyncState::set_has_seqno() {
2616 _has_bits_[0] |= 0x00000004u;
2618 inline void SyncState::clear_has_seqno() {
2619 _has_bits_[0] &= ~0x00000004u;
2621 inline void SyncState::clear_seqno() {
2622 if (seqno_ != NULL) seqno_->::Sync::SyncState_SeqNo::Clear();
2625 inline const ::Sync::SyncState_SeqNo& SyncState::seqno()
const {
2627 return seqno_ != NULL ? *seqno_ : *default_instance_->seqno_;
2629 inline ::Sync::SyncState_SeqNo* SyncState::mutable_seqno() {
2631 if (seqno_ == NULL) {
2632 seqno_ = new ::Sync::SyncState_SeqNo;
2637 inline ::Sync::SyncState_SeqNo* SyncState::release_seqno() {
2656 inline bool SyncState::has_application_info()
const {
2657 return (_has_bits_[0] & 0x00000008u) != 0;
2659 inline void SyncState::set_has_application_info() {
2660 _has_bits_[0] |= 0x00000008u;
2662 inline void SyncState::clear_has_application_info() {
2663 _has_bits_[0] &= ~0x00000008u;
2665 inline void SyncState::clear_application_info() {
2666 application_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2667 clear_has_application_info();
2669 inline const ::std::string& SyncState::application_info()
const {
2671 return application_info_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
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);
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));
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));
2689 inline ::std::string* SyncState::mutable_application_info() {
2690 set_has_application_info();
2692 return application_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2694 inline ::std::string* SyncState::release_application_info() {
2696 clear_has_application_info();
2697 return application_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2699 inline void SyncState::set_allocated_application_info(::std::string* application_info) {
2700 if (application_info != NULL) {
2701 set_has_application_info();
2703 clear_has_application_info();
2705 application_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), application_info);
2714 inline int SyncStateMsg::ss_size()
const {
2717 inline void SyncStateMsg::clear_ss() {
2720 inline const ::Sync::SyncState& SyncStateMsg::ss(
int index)
const {
2722 return ss_.Get(index);
2724 inline ::Sync::SyncState* SyncStateMsg::mutable_ss(
int index) {
2726 return ss_.Mutable(index);
2728 inline ::Sync::SyncState* SyncStateMsg::add_ss() {
2732 inline ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >*
2733 SyncStateMsg::mutable_ss() {
2737 inline const ::google::protobuf::RepeatedPtrField< ::Sync::SyncState >&
2738 SyncStateMsg::ss()
const {
2743 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
2755 namespace protobuf {
2757 template <>
struct is_proto_enum< ::Sync::SyncState_ActionType> : ::google::protobuf::internal::true_type {};
2759 inline const EnumDescriptor* GetEnumDescriptor< ::Sync::SyncState_ActionType>() {
2760 return ::Sync::SyncState_ActionType_descriptor();
2769 #endif // GOOGLE_PROTOBUF_VERSION < 3000000
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