Index: chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/sync.pb.cc |
diff --git a/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/sync.pb.cc b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/sync.pb.cc |
new file mode 100755 |
index 0000000000000000000000000000000000000000..eda7f98f7c1be60acb0bc94ce3de31ac338708bc |
--- /dev/null |
+++ b/chrome/browser/sync/protocol/Debug/obj/global_intermediate/protoc_out/chrome/browser/sync/protocol/sync.pb.cc |
@@ -0,0 +1,6433 @@ |
+// Generated by the protocol buffer compiler. DO NOT EDIT! |
+ |
+#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
+#include "sync.pb.h" |
+ |
+#include <algorithm> |
+ |
+#include <google/protobuf/stubs/once.h> |
+#include <google/protobuf/io/coded_stream.h> |
+#include <google/protobuf/wire_format_lite_inl.h> |
+// @@protoc_insertion_point(includes) |
+ |
+namespace sync_pb { |
+ |
+void protobuf_ShutdownFile_sync_2eproto() { |
+ delete ProfilingData::default_instance_; |
+ delete EntitySpecifics::default_instance_; |
+ delete SyncEntity::default_instance_; |
+ delete SyncEntity_BookmarkData::default_instance_; |
+ delete ChromiumExtensionsActivity::default_instance_; |
+ delete CommitMessage::default_instance_; |
+ delete GetUpdatesCallerInfo::default_instance_; |
+ delete DataTypeProgressMarker::default_instance_; |
+ delete GetUpdatesMessage::default_instance_; |
+ delete AuthenticateMessage::default_instance_; |
+ delete ClearUserDataMessage::default_instance_; |
+ delete ClearUserDataResponse::default_instance_; |
+ delete ClientToServerMessage::default_instance_; |
+ delete CommitResponse::default_instance_; |
+ delete CommitResponse_EntryResponse::default_instance_; |
+ delete GetUpdatesResponse::default_instance_; |
+ delete UserIdentification::default_instance_; |
+ delete AuthenticateResponse::default_instance_; |
+ delete ThrottleParameters::default_instance_; |
+ delete ClientCommand::default_instance_; |
+ delete ClientToServerResponse::default_instance_; |
+} |
+ |
+void protobuf_AddDesc_sync_2eproto() { |
+ static bool already_here = false; |
+ if (already_here) return; |
+ already_here = true; |
+ GOOGLE_PROTOBUF_VERIFY_VERSION; |
+ |
+ ProfilingData::default_instance_ = new ProfilingData(); |
+ EntitySpecifics::default_instance_ = new EntitySpecifics(); |
+ SyncEntity::default_instance_ = new SyncEntity(); |
+ SyncEntity_BookmarkData::default_instance_ = new SyncEntity_BookmarkData(); |
+ ChromiumExtensionsActivity::default_instance_ = new ChromiumExtensionsActivity(); |
+ CommitMessage::default_instance_ = new CommitMessage(); |
+ GetUpdatesCallerInfo::default_instance_ = new GetUpdatesCallerInfo(); |
+ DataTypeProgressMarker::default_instance_ = new DataTypeProgressMarker(); |
+ GetUpdatesMessage::default_instance_ = new GetUpdatesMessage(); |
+ AuthenticateMessage::default_instance_ = new AuthenticateMessage(); |
+ ClearUserDataMessage::default_instance_ = new ClearUserDataMessage(); |
+ ClearUserDataResponse::default_instance_ = new ClearUserDataResponse(); |
+ ClientToServerMessage::default_instance_ = new ClientToServerMessage(); |
+ CommitResponse::default_instance_ = new CommitResponse(); |
+ CommitResponse_EntryResponse::default_instance_ = new CommitResponse_EntryResponse(); |
+ GetUpdatesResponse::default_instance_ = new GetUpdatesResponse(); |
+ UserIdentification::default_instance_ = new UserIdentification(); |
+ AuthenticateResponse::default_instance_ = new AuthenticateResponse(); |
+ ThrottleParameters::default_instance_ = new ThrottleParameters(); |
+ ClientCommand::default_instance_ = new ClientCommand(); |
+ ClientToServerResponse::default_instance_ = new ClientToServerResponse(); |
+ ProfilingData::default_instance_->InitAsDefaultInstance(); |
+ EntitySpecifics::default_instance_->InitAsDefaultInstance(); |
+ SyncEntity::default_instance_->InitAsDefaultInstance(); |
+ SyncEntity_BookmarkData::default_instance_->InitAsDefaultInstance(); |
+ ChromiumExtensionsActivity::default_instance_->InitAsDefaultInstance(); |
+ CommitMessage::default_instance_->InitAsDefaultInstance(); |
+ GetUpdatesCallerInfo::default_instance_->InitAsDefaultInstance(); |
+ DataTypeProgressMarker::default_instance_->InitAsDefaultInstance(); |
+ GetUpdatesMessage::default_instance_->InitAsDefaultInstance(); |
+ AuthenticateMessage::default_instance_->InitAsDefaultInstance(); |
+ ClearUserDataMessage::default_instance_->InitAsDefaultInstance(); |
+ ClearUserDataResponse::default_instance_->InitAsDefaultInstance(); |
+ ClientToServerMessage::default_instance_->InitAsDefaultInstance(); |
+ CommitResponse::default_instance_->InitAsDefaultInstance(); |
+ CommitResponse_EntryResponse::default_instance_->InitAsDefaultInstance(); |
+ GetUpdatesResponse::default_instance_->InitAsDefaultInstance(); |
+ UserIdentification::default_instance_->InitAsDefaultInstance(); |
+ AuthenticateResponse::default_instance_->InitAsDefaultInstance(); |
+ ThrottleParameters::default_instance_->InitAsDefaultInstance(); |
+ ClientCommand::default_instance_->InitAsDefaultInstance(); |
+ ClientToServerResponse::default_instance_->InitAsDefaultInstance(); |
+ ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_sync_2eproto); |
+} |
+ |
+// Force AddDescriptors() to be called at static initialization time. |
+struct StaticDescriptorInitializer_sync_2eproto { |
+ StaticDescriptorInitializer_sync_2eproto() { |
+ protobuf_AddDesc_sync_2eproto(); |
+ } |
+} static_descriptor_initializer_sync_2eproto_; |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int ProfilingData::kMetaDataWriteTimeFieldNumber; |
+const int ProfilingData::kFileDataWriteTimeFieldNumber; |
+const int ProfilingData::kUserLookupTimeFieldNumber; |
+const int ProfilingData::kMetaDataReadTimeFieldNumber; |
+const int ProfilingData::kFileDataReadTimeFieldNumber; |
+const int ProfilingData::kTotalRequestTimeFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ProfilingData::ProfilingData() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ProfilingData::InitAsDefaultInstance() { |
+} |
+ |
+ProfilingData::ProfilingData(const ProfilingData& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ProfilingData::SharedCtor() { |
+ _cached_size_ = 0; |
+ meta_data_write_time_ = GOOGLE_LONGLONG(0); |
+ file_data_write_time_ = GOOGLE_LONGLONG(0); |
+ user_lookup_time_ = GOOGLE_LONGLONG(0); |
+ meta_data_read_time_ = GOOGLE_LONGLONG(0); |
+ file_data_read_time_ = GOOGLE_LONGLONG(0); |
+ total_request_time_ = GOOGLE_LONGLONG(0); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ProfilingData::~ProfilingData() { |
+ SharedDtor(); |
+} |
+ |
+void ProfilingData::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ProfilingData::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ProfilingData& ProfilingData::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ProfilingData* ProfilingData::default_instance_ = NULL; |
+ |
+ProfilingData* ProfilingData::New() const { |
+ return new ProfilingData; |
+} |
+ |
+void ProfilingData::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ meta_data_write_time_ = GOOGLE_LONGLONG(0); |
+ file_data_write_time_ = GOOGLE_LONGLONG(0); |
+ user_lookup_time_ = GOOGLE_LONGLONG(0); |
+ meta_data_read_time_ = GOOGLE_LONGLONG(0); |
+ file_data_read_time_ = GOOGLE_LONGLONG(0); |
+ total_request_time_ = GOOGLE_LONGLONG(0); |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ProfilingData::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional int64 meta_data_write_time = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &meta_data_write_time_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(16)) goto parse_file_data_write_time; |
+ break; |
+ } |
+ |
+ // optional int64 file_data_write_time = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_file_data_write_time: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &file_data_write_time_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_user_lookup_time; |
+ break; |
+ } |
+ |
+ // optional int64 user_lookup_time = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_user_lookup_time: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &user_lookup_time_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(32)) goto parse_meta_data_read_time; |
+ break; |
+ } |
+ |
+ // optional int64 meta_data_read_time = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_meta_data_read_time: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &meta_data_read_time_))); |
+ _set_bit(3); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(40)) goto parse_file_data_read_time; |
+ break; |
+ } |
+ |
+ // optional int64 file_data_read_time = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_file_data_read_time: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &file_data_read_time_))); |
+ _set_bit(4); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(48)) goto parse_total_request_time; |
+ break; |
+ } |
+ |
+ // optional int64 total_request_time = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_total_request_time: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &total_request_time_))); |
+ _set_bit(5); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ProfilingData::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int64 meta_data_write_time = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->meta_data_write_time(), output); |
+ } |
+ |
+ // optional int64 file_data_write_time = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->file_data_write_time(), output); |
+ } |
+ |
+ // optional int64 user_lookup_time = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->user_lookup_time(), output); |
+ } |
+ |
+ // optional int64 meta_data_read_time = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->meta_data_read_time(), output); |
+ } |
+ |
+ // optional int64 file_data_read_time = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->file_data_read_time(), output); |
+ } |
+ |
+ // optional int64 total_request_time = 6; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->total_request_time(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ProfilingData::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int64 meta_data_write_time = 1; |
+ if (has_meta_data_write_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->meta_data_write_time()); |
+ } |
+ |
+ // optional int64 file_data_write_time = 2; |
+ if (has_file_data_write_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->file_data_write_time()); |
+ } |
+ |
+ // optional int64 user_lookup_time = 3; |
+ if (has_user_lookup_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->user_lookup_time()); |
+ } |
+ |
+ // optional int64 meta_data_read_time = 4; |
+ if (has_meta_data_read_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->meta_data_read_time()); |
+ } |
+ |
+ // optional int64 file_data_read_time = 5; |
+ if (has_file_data_read_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->file_data_read_time()); |
+ } |
+ |
+ // optional int64 total_request_time = 6; |
+ if (has_total_request_time()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->total_request_time()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ProfilingData::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ProfilingData*>(&from)); |
+} |
+ |
+void ProfilingData::MergeFrom(const ProfilingData& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_meta_data_write_time(from.meta_data_write_time()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_file_data_write_time(from.file_data_write_time()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_user_lookup_time(from.user_lookup_time()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_meta_data_read_time(from.meta_data_read_time()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_file_data_read_time(from.file_data_read_time()); |
+ } |
+ if (from._has_bit(5)) { |
+ set_total_request_time(from.total_request_time()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ProfilingData::CopyFrom(const ProfilingData& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ProfilingData::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void ProfilingData::Swap(ProfilingData* other) { |
+ if (other != this) { |
+ std::swap(meta_data_write_time_, other->meta_data_write_time_); |
+ std::swap(file_data_write_time_, other->file_data_write_time_); |
+ std::swap(user_lookup_time_, other->user_lookup_time_); |
+ std::swap(meta_data_read_time_, other->meta_data_read_time_); |
+ std::swap(file_data_read_time_, other->file_data_read_time_); |
+ std::swap(total_request_time_, other->total_request_time_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ProfilingData::GetTypeName() const { |
+ return "sync_pb.ProfilingData"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+#endif // !_MSC_VER |
+ |
+EntitySpecifics::EntitySpecifics() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void EntitySpecifics::InitAsDefaultInstance() { |
+} |
+ |
+EntitySpecifics::EntitySpecifics(const EntitySpecifics& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void EntitySpecifics::SharedCtor() { |
+ _cached_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+EntitySpecifics::~EntitySpecifics() { |
+ SharedDtor(); |
+} |
+ |
+void EntitySpecifics::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void EntitySpecifics::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const EntitySpecifics& EntitySpecifics::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+EntitySpecifics* EntitySpecifics::default_instance_ = NULL; |
+ |
+EntitySpecifics* EntitySpecifics::New() const { |
+ return new EntitySpecifics; |
+} |
+ |
+void EntitySpecifics::Clear() { |
+ _extensions_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool EntitySpecifics::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ if ((240000u <= tag)) { |
+ DO_(_extensions_.ParseField(tag, input, default_instance_, |
+ mutable_unknown_fields())); |
+ continue; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void EntitySpecifics::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // Extension range [30000, 536870912) |
+ _extensions_.SerializeWithCachedSizes( |
+ 30000, 536870912, output); |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int EntitySpecifics::ByteSize() const { |
+ int total_size = 0; |
+ |
+ total_size += _extensions_.ByteSize(); |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void EntitySpecifics::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const EntitySpecifics*>(&from)); |
+} |
+ |
+void EntitySpecifics::MergeFrom(const EntitySpecifics& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ _extensions_.MergeFrom(from._extensions_); |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void EntitySpecifics::CopyFrom(const EntitySpecifics& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool EntitySpecifics::IsInitialized() const { |
+ |
+ |
+ if (!_extensions_.IsInitialized()) return false; return true; |
+} |
+ |
+void EntitySpecifics::Swap(EntitySpecifics* other) { |
+ if (other != this) { |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ _extensions_.Swap(&other->_extensions_); |
+ } |
+} |
+ |
+::std::string EntitySpecifics::GetTypeName() const { |
+ return "sync_pb.EntitySpecifics"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string SyncEntity_BookmarkData::_default_bookmark_url_; |
+const ::std::string SyncEntity_BookmarkData::_default_bookmark_favicon_; |
+#ifndef _MSC_VER |
+const int SyncEntity_BookmarkData::kBookmarkFolderFieldNumber; |
+const int SyncEntity_BookmarkData::kBookmarkUrlFieldNumber; |
+const int SyncEntity_BookmarkData::kBookmarkFaviconFieldNumber; |
+#endif // !_MSC_VER |
+ |
+SyncEntity_BookmarkData::SyncEntity_BookmarkData() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void SyncEntity_BookmarkData::InitAsDefaultInstance() { |
+} |
+ |
+SyncEntity_BookmarkData::SyncEntity_BookmarkData(const SyncEntity_BookmarkData& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void SyncEntity_BookmarkData::SharedCtor() { |
+ _cached_size_ = 0; |
+ bookmark_folder_ = false; |
+ bookmark_url_ = const_cast< ::std::string*>(&_default_bookmark_url_); |
+ bookmark_favicon_ = const_cast< ::std::string*>(&_default_bookmark_favicon_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+SyncEntity_BookmarkData::~SyncEntity_BookmarkData() { |
+ SharedDtor(); |
+} |
+ |
+void SyncEntity_BookmarkData::SharedDtor() { |
+ if (bookmark_url_ != &_default_bookmark_url_) { |
+ delete bookmark_url_; |
+ } |
+ if (bookmark_favicon_ != &_default_bookmark_favicon_) { |
+ delete bookmark_favicon_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void SyncEntity_BookmarkData::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const SyncEntity_BookmarkData& SyncEntity_BookmarkData::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+SyncEntity_BookmarkData* SyncEntity_BookmarkData::default_instance_ = NULL; |
+ |
+SyncEntity_BookmarkData* SyncEntity_BookmarkData::New() const { |
+ return new SyncEntity_BookmarkData; |
+} |
+ |
+void SyncEntity_BookmarkData::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ bookmark_folder_ = false; |
+ if (_has_bit(1)) { |
+ if (bookmark_url_ != &_default_bookmark_url_) { |
+ bookmark_url_->clear(); |
+ } |
+ } |
+ if (_has_bit(2)) { |
+ if (bookmark_favicon_ != &_default_bookmark_favicon_) { |
+ bookmark_favicon_->clear(); |
+ } |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool SyncEntity_BookmarkData::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required bool bookmark_folder = 12; |
+ case 12: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &bookmark_folder_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(106)) goto parse_bookmark_url; |
+ break; |
+ } |
+ |
+ // optional string bookmark_url = 13; |
+ case 13: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_bookmark_url: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_bookmark_url())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(114)) goto parse_bookmark_favicon; |
+ break; |
+ } |
+ |
+ // optional bytes bookmark_favicon = 14; |
+ case 14: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_bookmark_favicon: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
+ input, this->mutable_bookmark_favicon())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void SyncEntity_BookmarkData::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required bool bookmark_folder = 12; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->bookmark_folder(), output); |
+ } |
+ |
+ // optional string bookmark_url = 13; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 13, this->bookmark_url(), output); |
+ } |
+ |
+ // optional bytes bookmark_favicon = 14; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBytes( |
+ 14, this->bookmark_favicon(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int SyncEntity_BookmarkData::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required bool bookmark_folder = 12; |
+ if (has_bookmark_folder()) { |
+ total_size += 1 + 1; |
+ } |
+ |
+ // optional string bookmark_url = 13; |
+ if (has_bookmark_url()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->bookmark_url()); |
+ } |
+ |
+ // optional bytes bookmark_favicon = 14; |
+ if (has_bookmark_favicon()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::BytesSize( |
+ this->bookmark_favicon()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void SyncEntity_BookmarkData::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const SyncEntity_BookmarkData*>(&from)); |
+} |
+ |
+void SyncEntity_BookmarkData::MergeFrom(const SyncEntity_BookmarkData& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_bookmark_folder(from.bookmark_folder()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_bookmark_url(from.bookmark_url()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_bookmark_favicon(from.bookmark_favicon()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void SyncEntity_BookmarkData::CopyFrom(const SyncEntity_BookmarkData& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool SyncEntity_BookmarkData::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
+ |
+ return true; |
+} |
+ |
+void SyncEntity_BookmarkData::Swap(SyncEntity_BookmarkData* other) { |
+ if (other != this) { |
+ std::swap(bookmark_folder_, other->bookmark_folder_); |
+ std::swap(bookmark_url_, other->bookmark_url_); |
+ std::swap(bookmark_favicon_, other->bookmark_favicon_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string SyncEntity_BookmarkData::GetTypeName() const { |
+ return "sync_pb.SyncEntity.BookmarkData"; |
+} |
+ |
+ |
+// ------------------------------------------------------------------- |
+ |
+const ::std::string SyncEntity::_default_id_string_; |
+const ::std::string SyncEntity::_default_parent_id_string_; |
+const ::std::string SyncEntity::_default_old_parent_id_; |
+const ::std::string SyncEntity::_default_name_; |
+const ::std::string SyncEntity::_default_non_unique_name_; |
+const ::std::string SyncEntity::_default_server_defined_unique_tag_; |
+const ::std::string SyncEntity::_default_insert_after_item_id_; |
+const ::std::string SyncEntity::_default_originator_cache_guid_; |
+const ::std::string SyncEntity::_default_originator_client_item_id_; |
+const ::std::string SyncEntity::_default_client_defined_unique_tag_; |
+#ifndef _MSC_VER |
+const int SyncEntity::kIdStringFieldNumber; |
+const int SyncEntity::kParentIdStringFieldNumber; |
+const int SyncEntity::kOldParentIdFieldNumber; |
+const int SyncEntity::kVersionFieldNumber; |
+const int SyncEntity::kMtimeFieldNumber; |
+const int SyncEntity::kCtimeFieldNumber; |
+const int SyncEntity::kNameFieldNumber; |
+const int SyncEntity::kNonUniqueNameFieldNumber; |
+const int SyncEntity::kSyncTimestampFieldNumber; |
+const int SyncEntity::kServerDefinedUniqueTagFieldNumber; |
+const int SyncEntity::kBookmarkdataFieldNumber; |
+const int SyncEntity::kPositionInParentFieldNumber; |
+const int SyncEntity::kInsertAfterItemIdFieldNumber; |
+const int SyncEntity::kDeletedFieldNumber; |
+const int SyncEntity::kOriginatorCacheGuidFieldNumber; |
+const int SyncEntity::kOriginatorClientItemIdFieldNumber; |
+const int SyncEntity::kSpecificsFieldNumber; |
+const int SyncEntity::kFolderFieldNumber; |
+const int SyncEntity::kClientDefinedUniqueTagFieldNumber; |
+#endif // !_MSC_VER |
+ |
+SyncEntity::SyncEntity() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void SyncEntity::InitAsDefaultInstance() { |
+ bookmarkdata_ = const_cast< ::sync_pb::SyncEntity_BookmarkData*>(&::sync_pb::SyncEntity_BookmarkData::default_instance()); |
+ specifics_ = const_cast< ::sync_pb::EntitySpecifics*>(&::sync_pb::EntitySpecifics::default_instance()); |
+} |
+ |
+SyncEntity::SyncEntity(const SyncEntity& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void SyncEntity::SharedCtor() { |
+ _cached_size_ = 0; |
+ id_string_ = const_cast< ::std::string*>(&_default_id_string_); |
+ parent_id_string_ = const_cast< ::std::string*>(&_default_parent_id_string_); |
+ old_parent_id_ = const_cast< ::std::string*>(&_default_old_parent_id_); |
+ version_ = GOOGLE_LONGLONG(0); |
+ mtime_ = GOOGLE_LONGLONG(0); |
+ ctime_ = GOOGLE_LONGLONG(0); |
+ name_ = const_cast< ::std::string*>(&_default_name_); |
+ non_unique_name_ = const_cast< ::std::string*>(&_default_non_unique_name_); |
+ sync_timestamp_ = GOOGLE_LONGLONG(0); |
+ server_defined_unique_tag_ = const_cast< ::std::string*>(&_default_server_defined_unique_tag_); |
+ bookmarkdata_ = NULL; |
+ position_in_parent_ = GOOGLE_LONGLONG(0); |
+ insert_after_item_id_ = const_cast< ::std::string*>(&_default_insert_after_item_id_); |
+ deleted_ = false; |
+ originator_cache_guid_ = const_cast< ::std::string*>(&_default_originator_cache_guid_); |
+ originator_client_item_id_ = const_cast< ::std::string*>(&_default_originator_client_item_id_); |
+ specifics_ = NULL; |
+ folder_ = false; |
+ client_defined_unique_tag_ = const_cast< ::std::string*>(&_default_client_defined_unique_tag_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+SyncEntity::~SyncEntity() { |
+ SharedDtor(); |
+} |
+ |
+void SyncEntity::SharedDtor() { |
+ if (id_string_ != &_default_id_string_) { |
+ delete id_string_; |
+ } |
+ if (parent_id_string_ != &_default_parent_id_string_) { |
+ delete parent_id_string_; |
+ } |
+ if (old_parent_id_ != &_default_old_parent_id_) { |
+ delete old_parent_id_; |
+ } |
+ if (name_ != &_default_name_) { |
+ delete name_; |
+ } |
+ if (non_unique_name_ != &_default_non_unique_name_) { |
+ delete non_unique_name_; |
+ } |
+ if (server_defined_unique_tag_ != &_default_server_defined_unique_tag_) { |
+ delete server_defined_unique_tag_; |
+ } |
+ if (insert_after_item_id_ != &_default_insert_after_item_id_) { |
+ delete insert_after_item_id_; |
+ } |
+ if (originator_cache_guid_ != &_default_originator_cache_guid_) { |
+ delete originator_cache_guid_; |
+ } |
+ if (originator_client_item_id_ != &_default_originator_client_item_id_) { |
+ delete originator_client_item_id_; |
+ } |
+ if (client_defined_unique_tag_ != &_default_client_defined_unique_tag_) { |
+ delete client_defined_unique_tag_; |
+ } |
+ if (this != default_instance_) { |
+ delete bookmarkdata_; |
+ delete specifics_; |
+ } |
+} |
+ |
+void SyncEntity::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const SyncEntity& SyncEntity::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+SyncEntity* SyncEntity::default_instance_ = NULL; |
+ |
+SyncEntity* SyncEntity::New() const { |
+ return new SyncEntity; |
+} |
+ |
+void SyncEntity::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (id_string_ != &_default_id_string_) { |
+ id_string_->clear(); |
+ } |
+ } |
+ if (_has_bit(1)) { |
+ if (parent_id_string_ != &_default_parent_id_string_) { |
+ parent_id_string_->clear(); |
+ } |
+ } |
+ if (_has_bit(2)) { |
+ if (old_parent_id_ != &_default_old_parent_id_) { |
+ old_parent_id_->clear(); |
+ } |
+ } |
+ version_ = GOOGLE_LONGLONG(0); |
+ mtime_ = GOOGLE_LONGLONG(0); |
+ ctime_ = GOOGLE_LONGLONG(0); |
+ if (_has_bit(6)) { |
+ if (name_ != &_default_name_) { |
+ name_->clear(); |
+ } |
+ } |
+ if (_has_bit(7)) { |
+ if (non_unique_name_ != &_default_non_unique_name_) { |
+ non_unique_name_->clear(); |
+ } |
+ } |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ sync_timestamp_ = GOOGLE_LONGLONG(0); |
+ if (_has_bit(9)) { |
+ if (server_defined_unique_tag_ != &_default_server_defined_unique_tag_) { |
+ server_defined_unique_tag_->clear(); |
+ } |
+ } |
+ if (_has_bit(10)) { |
+ if (bookmarkdata_ != NULL) bookmarkdata_->::sync_pb::SyncEntity_BookmarkData::Clear(); |
+ } |
+ position_in_parent_ = GOOGLE_LONGLONG(0); |
+ if (_has_bit(12)) { |
+ if (insert_after_item_id_ != &_default_insert_after_item_id_) { |
+ insert_after_item_id_->clear(); |
+ } |
+ } |
+ deleted_ = false; |
+ if (_has_bit(14)) { |
+ if (originator_cache_guid_ != &_default_originator_cache_guid_) { |
+ originator_cache_guid_->clear(); |
+ } |
+ } |
+ if (_has_bit(15)) { |
+ if (originator_client_item_id_ != &_default_originator_client_item_id_) { |
+ originator_client_item_id_->clear(); |
+ } |
+ } |
+ } |
+ if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { |
+ if (_has_bit(16)) { |
+ if (specifics_ != NULL) specifics_->::sync_pb::EntitySpecifics::Clear(); |
+ } |
+ folder_ = false; |
+ if (_has_bit(18)) { |
+ if (client_defined_unique_tag_ != &_default_client_defined_unique_tag_) { |
+ client_defined_unique_tag_->clear(); |
+ } |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool SyncEntity::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional string id_string = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_id_string())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_parent_id_string; |
+ break; |
+ } |
+ |
+ // optional string parent_id_string = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_parent_id_string: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_parent_id_string())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_old_parent_id; |
+ break; |
+ } |
+ |
+ // optional string old_parent_id = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_old_parent_id: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_old_parent_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(32)) goto parse_version; |
+ break; |
+ } |
+ |
+ // required int64 version = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_version: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &version_))); |
+ _set_bit(3); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(40)) goto parse_mtime; |
+ break; |
+ } |
+ |
+ // optional int64 mtime = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_mtime: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &mtime_))); |
+ _set_bit(4); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(48)) goto parse_ctime; |
+ break; |
+ } |
+ |
+ // optional int64 ctime = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_ctime: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &ctime_))); |
+ _set_bit(5); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(58)) goto parse_name; |
+ break; |
+ } |
+ |
+ // required string name = 7; |
+ case 7: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_name: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_name())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(66)) goto parse_non_unique_name; |
+ break; |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ case 8: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_non_unique_name: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_non_unique_name())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(72)) goto parse_sync_timestamp; |
+ break; |
+ } |
+ |
+ // optional int64 sync_timestamp = 9; |
+ case 9: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_sync_timestamp: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &sync_timestamp_))); |
+ _set_bit(8); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(82)) goto parse_server_defined_unique_tag; |
+ break; |
+ } |
+ |
+ // optional string server_defined_unique_tag = 10; |
+ case 10: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_server_defined_unique_tag: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_server_defined_unique_tag())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(91)) goto parse_bookmarkdata; |
+ break; |
+ } |
+ |
+ // optional group BookmarkData = 11 { |
+ case 11: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_START_GROUP) { |
+ parse_bookmarkdata: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual( |
+ 11, input, mutable_bookmarkdata())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(120)) goto parse_position_in_parent; |
+ break; |
+ } |
+ |
+ // optional int64 position_in_parent = 15; |
+ case 15: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_position_in_parent: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &position_in_parent_))); |
+ _set_bit(11); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(130)) goto parse_insert_after_item_id; |
+ break; |
+ } |
+ |
+ // optional string insert_after_item_id = 16; |
+ case 16: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_insert_after_item_id: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_insert_after_item_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(144)) goto parse_deleted; |
+ break; |
+ } |
+ |
+ // optional bool deleted = 18 [default = false]; |
+ case 18: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_deleted: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &deleted_))); |
+ _set_bit(13); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(154)) goto parse_originator_cache_guid; |
+ break; |
+ } |
+ |
+ // optional string originator_cache_guid = 19; |
+ case 19: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_originator_cache_guid: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_originator_cache_guid())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(162)) goto parse_originator_client_item_id; |
+ break; |
+ } |
+ |
+ // optional string originator_client_item_id = 20; |
+ case 20: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_originator_client_item_id: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_originator_client_item_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(170)) goto parse_specifics; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.EntitySpecifics specifics = 21; |
+ case 21: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_specifics: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_specifics())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(176)) goto parse_folder; |
+ break; |
+ } |
+ |
+ // optional bool folder = 22 [default = false]; |
+ case 22: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_folder: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &folder_))); |
+ _set_bit(17); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(186)) goto parse_client_defined_unique_tag; |
+ break; |
+ } |
+ |
+ // optional string client_defined_unique_tag = 23; |
+ case 23: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_client_defined_unique_tag: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_client_defined_unique_tag())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void SyncEntity::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional string id_string = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->id_string(), output); |
+ } |
+ |
+ // optional string parent_id_string = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 2, this->parent_id_string(), output); |
+ } |
+ |
+ // optional string old_parent_id = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 3, this->old_parent_id(), output); |
+ } |
+ |
+ // required int64 version = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->version(), output); |
+ } |
+ |
+ // optional int64 mtime = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->mtime(), output); |
+ } |
+ |
+ // optional int64 ctime = 6; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->ctime(), output); |
+ } |
+ |
+ // required string name = 7; |
+ if (_has_bit(6)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 7, this->name(), output); |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ if (_has_bit(7)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 8, this->non_unique_name(), output); |
+ } |
+ |
+ // optional int64 sync_timestamp = 9; |
+ if (_has_bit(8)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->sync_timestamp(), output); |
+ } |
+ |
+ // optional string server_defined_unique_tag = 10; |
+ if (_has_bit(9)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 10, this->server_defined_unique_tag(), output); |
+ } |
+ |
+ // optional group BookmarkData = 11 { |
+ if (_has_bit(10)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteGroup( |
+ 11, this->bookmarkdata(), output); |
+ } |
+ |
+ // optional int64 position_in_parent = 15; |
+ if (_has_bit(11)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(15, this->position_in_parent(), output); |
+ } |
+ |
+ // optional string insert_after_item_id = 16; |
+ if (_has_bit(12)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 16, this->insert_after_item_id(), output); |
+ } |
+ |
+ // optional bool deleted = 18 [default = false]; |
+ if (_has_bit(13)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->deleted(), output); |
+ } |
+ |
+ // optional string originator_cache_guid = 19; |
+ if (_has_bit(14)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 19, this->originator_cache_guid(), output); |
+ } |
+ |
+ // optional string originator_client_item_id = 20; |
+ if (_has_bit(15)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 20, this->originator_client_item_id(), output); |
+ } |
+ |
+ // optional .sync_pb.EntitySpecifics specifics = 21; |
+ if (_has_bit(16)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 21, this->specifics(), output); |
+ } |
+ |
+ // optional bool folder = 22 [default = false]; |
+ if (_has_bit(17)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->folder(), output); |
+ } |
+ |
+ // optional string client_defined_unique_tag = 23; |
+ if (_has_bit(18)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 23, this->client_defined_unique_tag(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int SyncEntity::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional string id_string = 1; |
+ if (has_id_string()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->id_string()); |
+ } |
+ |
+ // optional string parent_id_string = 2; |
+ if (has_parent_id_string()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->parent_id_string()); |
+ } |
+ |
+ // optional string old_parent_id = 3; |
+ if (has_old_parent_id()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->old_parent_id()); |
+ } |
+ |
+ // required int64 version = 4; |
+ if (has_version()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->version()); |
+ } |
+ |
+ // optional int64 mtime = 5; |
+ if (has_mtime()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->mtime()); |
+ } |
+ |
+ // optional int64 ctime = 6; |
+ if (has_ctime()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->ctime()); |
+ } |
+ |
+ // required string name = 7; |
+ if (has_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->name()); |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ if (has_non_unique_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->non_unique_name()); |
+ } |
+ |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ // optional int64 sync_timestamp = 9; |
+ if (has_sync_timestamp()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->sync_timestamp()); |
+ } |
+ |
+ // optional string server_defined_unique_tag = 10; |
+ if (has_server_defined_unique_tag()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->server_defined_unique_tag()); |
+ } |
+ |
+ // optional group BookmarkData = 11 { |
+ if (has_bookmarkdata()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::GroupSizeNoVirtual( |
+ this->bookmarkdata()); |
+ } |
+ |
+ // optional int64 position_in_parent = 15; |
+ if (has_position_in_parent()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->position_in_parent()); |
+ } |
+ |
+ // optional string insert_after_item_id = 16; |
+ if (has_insert_after_item_id()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->insert_after_item_id()); |
+ } |
+ |
+ // optional bool deleted = 18 [default = false]; |
+ if (has_deleted()) { |
+ total_size += 2 + 1; |
+ } |
+ |
+ // optional string originator_cache_guid = 19; |
+ if (has_originator_cache_guid()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->originator_cache_guid()); |
+ } |
+ |
+ // optional string originator_client_item_id = 20; |
+ if (has_originator_client_item_id()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->originator_client_item_id()); |
+ } |
+ |
+ } |
+ if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { |
+ // optional .sync_pb.EntitySpecifics specifics = 21; |
+ if (has_specifics()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->specifics()); |
+ } |
+ |
+ // optional bool folder = 22 [default = false]; |
+ if (has_folder()) { |
+ total_size += 2 + 1; |
+ } |
+ |
+ // optional string client_defined_unique_tag = 23; |
+ if (has_client_defined_unique_tag()) { |
+ total_size += 2 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->client_defined_unique_tag()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void SyncEntity::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const SyncEntity*>(&from)); |
+} |
+ |
+void SyncEntity::MergeFrom(const SyncEntity& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_id_string(from.id_string()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_parent_id_string(from.parent_id_string()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_old_parent_id(from.old_parent_id()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_version(from.version()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_mtime(from.mtime()); |
+ } |
+ if (from._has_bit(5)) { |
+ set_ctime(from.ctime()); |
+ } |
+ if (from._has_bit(6)) { |
+ set_name(from.name()); |
+ } |
+ if (from._has_bit(7)) { |
+ set_non_unique_name(from.non_unique_name()); |
+ } |
+ } |
+ if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ if (from._has_bit(8)) { |
+ set_sync_timestamp(from.sync_timestamp()); |
+ } |
+ if (from._has_bit(9)) { |
+ set_server_defined_unique_tag(from.server_defined_unique_tag()); |
+ } |
+ if (from._has_bit(10)) { |
+ mutable_bookmarkdata()->::sync_pb::SyncEntity_BookmarkData::MergeFrom(from.bookmarkdata()); |
+ } |
+ if (from._has_bit(11)) { |
+ set_position_in_parent(from.position_in_parent()); |
+ } |
+ if (from._has_bit(12)) { |
+ set_insert_after_item_id(from.insert_after_item_id()); |
+ } |
+ if (from._has_bit(13)) { |
+ set_deleted(from.deleted()); |
+ } |
+ if (from._has_bit(14)) { |
+ set_originator_cache_guid(from.originator_cache_guid()); |
+ } |
+ if (from._has_bit(15)) { |
+ set_originator_client_item_id(from.originator_client_item_id()); |
+ } |
+ } |
+ if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { |
+ if (from._has_bit(16)) { |
+ mutable_specifics()->::sync_pb::EntitySpecifics::MergeFrom(from.specifics()); |
+ } |
+ if (from._has_bit(17)) { |
+ set_folder(from.folder()); |
+ } |
+ if (from._has_bit(18)) { |
+ set_client_defined_unique_tag(from.client_defined_unique_tag()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void SyncEntity::CopyFrom(const SyncEntity& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool SyncEntity::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000048) != 0x00000048) return false; |
+ |
+ if (has_bookmarkdata()) { |
+ if (!this->bookmarkdata().IsInitialized()) return false; |
+ } |
+ if (has_specifics()) { |
+ if (!this->specifics().IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void SyncEntity::Swap(SyncEntity* other) { |
+ if (other != this) { |
+ std::swap(id_string_, other->id_string_); |
+ std::swap(parent_id_string_, other->parent_id_string_); |
+ std::swap(old_parent_id_, other->old_parent_id_); |
+ std::swap(version_, other->version_); |
+ std::swap(mtime_, other->mtime_); |
+ std::swap(ctime_, other->ctime_); |
+ std::swap(name_, other->name_); |
+ std::swap(non_unique_name_, other->non_unique_name_); |
+ std::swap(sync_timestamp_, other->sync_timestamp_); |
+ std::swap(server_defined_unique_tag_, other->server_defined_unique_tag_); |
+ std::swap(bookmarkdata_, other->bookmarkdata_); |
+ std::swap(position_in_parent_, other->position_in_parent_); |
+ std::swap(insert_after_item_id_, other->insert_after_item_id_); |
+ std::swap(deleted_, other->deleted_); |
+ std::swap(originator_cache_guid_, other->originator_cache_guid_); |
+ std::swap(originator_client_item_id_, other->originator_client_item_id_); |
+ std::swap(specifics_, other->specifics_); |
+ std::swap(folder_, other->folder_); |
+ std::swap(client_defined_unique_tag_, other->client_defined_unique_tag_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string SyncEntity::GetTypeName() const { |
+ return "sync_pb.SyncEntity"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string ChromiumExtensionsActivity::_default_extension_id_; |
+#ifndef _MSC_VER |
+const int ChromiumExtensionsActivity::kExtensionIdFieldNumber; |
+const int ChromiumExtensionsActivity::kBookmarkWritesSinceLastCommitFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ChromiumExtensionsActivity::ChromiumExtensionsActivity() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ChromiumExtensionsActivity::InitAsDefaultInstance() { |
+} |
+ |
+ChromiumExtensionsActivity::ChromiumExtensionsActivity(const ChromiumExtensionsActivity& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ChromiumExtensionsActivity::SharedCtor() { |
+ _cached_size_ = 0; |
+ extension_id_ = const_cast< ::std::string*>(&_default_extension_id_); |
+ bookmark_writes_since_last_commit_ = 0u; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ChromiumExtensionsActivity::~ChromiumExtensionsActivity() { |
+ SharedDtor(); |
+} |
+ |
+void ChromiumExtensionsActivity::SharedDtor() { |
+ if (extension_id_ != &_default_extension_id_) { |
+ delete extension_id_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ChromiumExtensionsActivity::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ChromiumExtensionsActivity& ChromiumExtensionsActivity::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ChromiumExtensionsActivity* ChromiumExtensionsActivity::default_instance_ = NULL; |
+ |
+ChromiumExtensionsActivity* ChromiumExtensionsActivity::New() const { |
+ return new ChromiumExtensionsActivity; |
+} |
+ |
+void ChromiumExtensionsActivity::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (extension_id_ != &_default_extension_id_) { |
+ extension_id_->clear(); |
+ } |
+ } |
+ bookmark_writes_since_last_commit_ = 0u; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ChromiumExtensionsActivity::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional string extension_id = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_extension_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(16)) goto parse_bookmark_writes_since_last_commit; |
+ break; |
+ } |
+ |
+ // optional uint32 bookmark_writes_since_last_commit = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_bookmark_writes_since_last_commit: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
+ input, &bookmark_writes_since_last_commit_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ChromiumExtensionsActivity::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional string extension_id = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->extension_id(), output); |
+ } |
+ |
+ // optional uint32 bookmark_writes_since_last_commit = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->bookmark_writes_since_last_commit(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ChromiumExtensionsActivity::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional string extension_id = 1; |
+ if (has_extension_id()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->extension_id()); |
+ } |
+ |
+ // optional uint32 bookmark_writes_since_last_commit = 2; |
+ if (has_bookmark_writes_since_last_commit()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::UInt32Size( |
+ this->bookmark_writes_since_last_commit()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ChromiumExtensionsActivity::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ChromiumExtensionsActivity*>(&from)); |
+} |
+ |
+void ChromiumExtensionsActivity::MergeFrom(const ChromiumExtensionsActivity& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_extension_id(from.extension_id()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_bookmark_writes_since_last_commit(from.bookmark_writes_since_last_commit()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ChromiumExtensionsActivity::CopyFrom(const ChromiumExtensionsActivity& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ChromiumExtensionsActivity::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void ChromiumExtensionsActivity::Swap(ChromiumExtensionsActivity* other) { |
+ if (other != this) { |
+ std::swap(extension_id_, other->extension_id_); |
+ std::swap(bookmark_writes_since_last_commit_, other->bookmark_writes_since_last_commit_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ChromiumExtensionsActivity::GetTypeName() const { |
+ return "sync_pb.ChromiumExtensionsActivity"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string CommitMessage::_default_cache_guid_; |
+#ifndef _MSC_VER |
+const int CommitMessage::kEntriesFieldNumber; |
+const int CommitMessage::kCacheGuidFieldNumber; |
+const int CommitMessage::kExtensionsActivityFieldNumber; |
+#endif // !_MSC_VER |
+ |
+CommitMessage::CommitMessage() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void CommitMessage::InitAsDefaultInstance() { |
+} |
+ |
+CommitMessage::CommitMessage(const CommitMessage& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void CommitMessage::SharedCtor() { |
+ _cached_size_ = 0; |
+ cache_guid_ = const_cast< ::std::string*>(&_default_cache_guid_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+CommitMessage::~CommitMessage() { |
+ SharedDtor(); |
+} |
+ |
+void CommitMessage::SharedDtor() { |
+ if (cache_guid_ != &_default_cache_guid_) { |
+ delete cache_guid_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void CommitMessage::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const CommitMessage& CommitMessage::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+CommitMessage* CommitMessage::default_instance_ = NULL; |
+ |
+CommitMessage* CommitMessage::New() const { |
+ return new CommitMessage; |
+} |
+ |
+void CommitMessage::Clear() { |
+ if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ if (_has_bit(1)) { |
+ if (cache_guid_ != &_default_cache_guid_) { |
+ cache_guid_->clear(); |
+ } |
+ } |
+ } |
+ entries_.Clear(); |
+ extensions_activity_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool CommitMessage::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_entries: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_entries())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(10)) goto parse_entries; |
+ if (input->ExpectTag(18)) goto parse_cache_guid; |
+ break; |
+ } |
+ |
+ // optional string cache_guid = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_cache_guid: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_cache_guid())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_extensions_activity; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.ChromiumExtensionsActivity extensions_activity = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_extensions_activity: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_extensions_activity())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_extensions_activity; |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void CommitMessage::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ for (int i = 0; i < this->entries_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 1, this->entries(i), output); |
+ } |
+ |
+ // optional string cache_guid = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 2, this->cache_guid(), output); |
+ } |
+ |
+ // repeated .sync_pb.ChromiumExtensionsActivity extensions_activity = 3; |
+ for (int i = 0; i < this->extensions_activity_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 3, this->extensions_activity(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int CommitMessage::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ // optional string cache_guid = 2; |
+ if (has_cache_guid()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->cache_guid()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ total_size += 1 * this->entries_size(); |
+ for (int i = 0; i < this->entries_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->entries(i)); |
+ } |
+ |
+ // repeated .sync_pb.ChromiumExtensionsActivity extensions_activity = 3; |
+ total_size += 1 * this->extensions_activity_size(); |
+ for (int i = 0; i < this->extensions_activity_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->extensions_activity(i)); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void CommitMessage::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const CommitMessage*>(&from)); |
+} |
+ |
+void CommitMessage::MergeFrom(const CommitMessage& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ entries_.MergeFrom(from.entries_); |
+ extensions_activity_.MergeFrom(from.extensions_activity_); |
+ if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ if (from._has_bit(1)) { |
+ set_cache_guid(from.cache_guid()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void CommitMessage::CopyFrom(const CommitMessage& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool CommitMessage::IsInitialized() const { |
+ |
+ for (int i = 0; i < entries_size(); i++) { |
+ if (!this->entries(i).IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void CommitMessage::Swap(CommitMessage* other) { |
+ if (other != this) { |
+ entries_.Swap(&other->entries_); |
+ std::swap(cache_guid_, other->cache_guid_); |
+ extensions_activity_.Swap(&other->extensions_activity_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string CommitMessage::GetTypeName() const { |
+ return "sync_pb.CommitMessage"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool GetUpdatesCallerInfo_GetUpdatesSource_IsValid(int value) { |
+ switch(value) { |
+ case 0: |
+ case 1: |
+ case 2: |
+ case 3: |
+ case 4: |
+ case 5: |
+ case 6: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::UNKNOWN; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::FIRST_UPDATE; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::LOCAL; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::NOTIFICATION; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::PERIODIC; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::SYNC_CYCLE_CONTINUATION; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::CLEAR_PRIVATE_DATA; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::GetUpdatesSource_MIN; |
+const GetUpdatesCallerInfo_GetUpdatesSource GetUpdatesCallerInfo::GetUpdatesSource_MAX; |
+const int GetUpdatesCallerInfo::GetUpdatesSource_ARRAYSIZE; |
+#endif // _MSC_VER |
+#ifndef _MSC_VER |
+const int GetUpdatesCallerInfo::kSourceFieldNumber; |
+const int GetUpdatesCallerInfo::kNotificationsEnabledFieldNumber; |
+#endif // !_MSC_VER |
+ |
+GetUpdatesCallerInfo::GetUpdatesCallerInfo() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void GetUpdatesCallerInfo::InitAsDefaultInstance() { |
+} |
+ |
+GetUpdatesCallerInfo::GetUpdatesCallerInfo(const GetUpdatesCallerInfo& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void GetUpdatesCallerInfo::SharedCtor() { |
+ _cached_size_ = 0; |
+ source_ = 0; |
+ notifications_enabled_ = false; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+GetUpdatesCallerInfo::~GetUpdatesCallerInfo() { |
+ SharedDtor(); |
+} |
+ |
+void GetUpdatesCallerInfo::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void GetUpdatesCallerInfo::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const GetUpdatesCallerInfo& GetUpdatesCallerInfo::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+GetUpdatesCallerInfo* GetUpdatesCallerInfo::default_instance_ = NULL; |
+ |
+GetUpdatesCallerInfo* GetUpdatesCallerInfo::New() const { |
+ return new GetUpdatesCallerInfo; |
+} |
+ |
+void GetUpdatesCallerInfo::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ source_ = 0; |
+ notifications_enabled_ = false; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool GetUpdatesCallerInfo::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required .sync_pb.GetUpdatesCallerInfo.GetUpdatesSource source = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::GetUpdatesCallerInfo_GetUpdatesSource_IsValid(value)) { |
+ set_source(static_cast< ::sync_pb::GetUpdatesCallerInfo_GetUpdatesSource >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(1, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(16)) goto parse_notifications_enabled; |
+ break; |
+ } |
+ |
+ // optional bool notifications_enabled = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_notifications_enabled: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, ¬ifications_enabled_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void GetUpdatesCallerInfo::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required .sync_pb.GetUpdatesCallerInfo.GetUpdatesSource source = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 1, this->source(), output); |
+ } |
+ |
+ // optional bool notifications_enabled = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->notifications_enabled(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int GetUpdatesCallerInfo::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required .sync_pb.GetUpdatesCallerInfo.GetUpdatesSource source = 1; |
+ if (has_source()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->source()); |
+ } |
+ |
+ // optional bool notifications_enabled = 2; |
+ if (has_notifications_enabled()) { |
+ total_size += 1 + 1; |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void GetUpdatesCallerInfo::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const GetUpdatesCallerInfo*>(&from)); |
+} |
+ |
+void GetUpdatesCallerInfo::MergeFrom(const GetUpdatesCallerInfo& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_source(from.source()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_notifications_enabled(from.notifications_enabled()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void GetUpdatesCallerInfo::CopyFrom(const GetUpdatesCallerInfo& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool GetUpdatesCallerInfo::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
+ |
+ return true; |
+} |
+ |
+void GetUpdatesCallerInfo::Swap(GetUpdatesCallerInfo* other) { |
+ if (other != this) { |
+ std::swap(source_, other->source_); |
+ std::swap(notifications_enabled_, other->notifications_enabled_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string GetUpdatesCallerInfo::GetTypeName() const { |
+ return "sync_pb.GetUpdatesCallerInfo"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string DataTypeProgressMarker::_default_token_; |
+#ifndef _MSC_VER |
+const int DataTypeProgressMarker::kDataTypeIdFieldNumber; |
+const int DataTypeProgressMarker::kTokenFieldNumber; |
+const int DataTypeProgressMarker::kTimestampTokenForMigrationFieldNumber; |
+#endif // !_MSC_VER |
+ |
+DataTypeProgressMarker::DataTypeProgressMarker() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void DataTypeProgressMarker::InitAsDefaultInstance() { |
+} |
+ |
+DataTypeProgressMarker::DataTypeProgressMarker(const DataTypeProgressMarker& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void DataTypeProgressMarker::SharedCtor() { |
+ _cached_size_ = 0; |
+ data_type_id_ = 0; |
+ token_ = const_cast< ::std::string*>(&_default_token_); |
+ timestamp_token_for_migration_ = GOOGLE_LONGLONG(0); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+DataTypeProgressMarker::~DataTypeProgressMarker() { |
+ SharedDtor(); |
+} |
+ |
+void DataTypeProgressMarker::SharedDtor() { |
+ if (token_ != &_default_token_) { |
+ delete token_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void DataTypeProgressMarker::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const DataTypeProgressMarker& DataTypeProgressMarker::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+DataTypeProgressMarker* DataTypeProgressMarker::default_instance_ = NULL; |
+ |
+DataTypeProgressMarker* DataTypeProgressMarker::New() const { |
+ return new DataTypeProgressMarker; |
+} |
+ |
+void DataTypeProgressMarker::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ data_type_id_ = 0; |
+ if (_has_bit(1)) { |
+ if (token_ != &_default_token_) { |
+ token_->clear(); |
+ } |
+ } |
+ timestamp_token_for_migration_ = GOOGLE_LONGLONG(0); |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool DataTypeProgressMarker::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional int32 data_type_id = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &data_type_id_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_token; |
+ break; |
+ } |
+ |
+ // optional bytes token = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_token: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
+ input, this->mutable_token())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_timestamp_token_for_migration; |
+ break; |
+ } |
+ |
+ // optional int64 timestamp_token_for_migration = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_timestamp_token_for_migration: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, ×tamp_token_for_migration_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void DataTypeProgressMarker::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int32 data_type_id = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->data_type_id(), output); |
+ } |
+ |
+ // optional bytes token = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBytes( |
+ 2, this->token(), output); |
+ } |
+ |
+ // optional int64 timestamp_token_for_migration = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->timestamp_token_for_migration(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int DataTypeProgressMarker::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int32 data_type_id = 1; |
+ if (has_data_type_id()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->data_type_id()); |
+ } |
+ |
+ // optional bytes token = 2; |
+ if (has_token()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::BytesSize( |
+ this->token()); |
+ } |
+ |
+ // optional int64 timestamp_token_for_migration = 3; |
+ if (has_timestamp_token_for_migration()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->timestamp_token_for_migration()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void DataTypeProgressMarker::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const DataTypeProgressMarker*>(&from)); |
+} |
+ |
+void DataTypeProgressMarker::MergeFrom(const DataTypeProgressMarker& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_data_type_id(from.data_type_id()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_token(from.token()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_timestamp_token_for_migration(from.timestamp_token_for_migration()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void DataTypeProgressMarker::CopyFrom(const DataTypeProgressMarker& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool DataTypeProgressMarker::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void DataTypeProgressMarker::Swap(DataTypeProgressMarker* other) { |
+ if (other != this) { |
+ std::swap(data_type_id_, other->data_type_id_); |
+ std::swap(token_, other->token_); |
+ std::swap(timestamp_token_for_migration_, other->timestamp_token_for_migration_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string DataTypeProgressMarker::GetTypeName() const { |
+ return "sync_pb.DataTypeProgressMarker"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int GetUpdatesMessage::kFromTimestampFieldNumber; |
+const int GetUpdatesMessage::kCallerInfoFieldNumber; |
+const int GetUpdatesMessage::kFetchFoldersFieldNumber; |
+const int GetUpdatesMessage::kRequestedTypesFieldNumber; |
+const int GetUpdatesMessage::kBatchSizeFieldNumber; |
+const int GetUpdatesMessage::kFromProgressMarkerFieldNumber; |
+#endif // !_MSC_VER |
+ |
+GetUpdatesMessage::GetUpdatesMessage() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void GetUpdatesMessage::InitAsDefaultInstance() { |
+ caller_info_ = const_cast< ::sync_pb::GetUpdatesCallerInfo*>(&::sync_pb::GetUpdatesCallerInfo::default_instance()); |
+ requested_types_ = const_cast< ::sync_pb::EntitySpecifics*>(&::sync_pb::EntitySpecifics::default_instance()); |
+} |
+ |
+GetUpdatesMessage::GetUpdatesMessage(const GetUpdatesMessage& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void GetUpdatesMessage::SharedCtor() { |
+ _cached_size_ = 0; |
+ from_timestamp_ = GOOGLE_LONGLONG(0); |
+ caller_info_ = NULL; |
+ fetch_folders_ = true; |
+ requested_types_ = NULL; |
+ batch_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+GetUpdatesMessage::~GetUpdatesMessage() { |
+ SharedDtor(); |
+} |
+ |
+void GetUpdatesMessage::SharedDtor() { |
+ if (this != default_instance_) { |
+ delete caller_info_; |
+ delete requested_types_; |
+ } |
+} |
+ |
+void GetUpdatesMessage::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const GetUpdatesMessage& GetUpdatesMessage::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+GetUpdatesMessage* GetUpdatesMessage::default_instance_ = NULL; |
+ |
+GetUpdatesMessage* GetUpdatesMessage::New() const { |
+ return new GetUpdatesMessage; |
+} |
+ |
+void GetUpdatesMessage::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ from_timestamp_ = GOOGLE_LONGLONG(0); |
+ if (_has_bit(1)) { |
+ if (caller_info_ != NULL) caller_info_->::sync_pb::GetUpdatesCallerInfo::Clear(); |
+ } |
+ fetch_folders_ = true; |
+ if (_has_bit(3)) { |
+ if (requested_types_ != NULL) requested_types_->::sync_pb::EntitySpecifics::Clear(); |
+ } |
+ batch_size_ = 0; |
+ } |
+ from_progress_marker_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool GetUpdatesMessage::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional int64 from_timestamp = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &from_timestamp_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_caller_info; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesCallerInfo caller_info = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_caller_info: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_caller_info())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_fetch_folders; |
+ break; |
+ } |
+ |
+ // optional bool fetch_folders = 3 [default = true]; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_fetch_folders: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &fetch_folders_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_requested_types; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.EntitySpecifics requested_types = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_requested_types: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_requested_types())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(40)) goto parse_batch_size; |
+ break; |
+ } |
+ |
+ // optional int32 batch_size = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_batch_size: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &batch_size_))); |
+ _set_bit(4); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_from_progress_marker; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.DataTypeProgressMarker from_progress_marker = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_from_progress_marker: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_from_progress_marker())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_from_progress_marker; |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void GetUpdatesMessage::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int64 from_timestamp = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->from_timestamp(), output); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesCallerInfo caller_info = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 2, this->caller_info(), output); |
+ } |
+ |
+ // optional bool fetch_folders = 3 [default = true]; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fetch_folders(), output); |
+ } |
+ |
+ // optional .sync_pb.EntitySpecifics requested_types = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 4, this->requested_types(), output); |
+ } |
+ |
+ // optional int32 batch_size = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->batch_size(), output); |
+ } |
+ |
+ // repeated .sync_pb.DataTypeProgressMarker from_progress_marker = 6; |
+ for (int i = 0; i < this->from_progress_marker_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 6, this->from_progress_marker(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int GetUpdatesMessage::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int64 from_timestamp = 1; |
+ if (has_from_timestamp()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->from_timestamp()); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesCallerInfo caller_info = 2; |
+ if (has_caller_info()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->caller_info()); |
+ } |
+ |
+ // optional bool fetch_folders = 3 [default = true]; |
+ if (has_fetch_folders()) { |
+ total_size += 1 + 1; |
+ } |
+ |
+ // optional .sync_pb.EntitySpecifics requested_types = 4; |
+ if (has_requested_types()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->requested_types()); |
+ } |
+ |
+ // optional int32 batch_size = 5; |
+ if (has_batch_size()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->batch_size()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.DataTypeProgressMarker from_progress_marker = 6; |
+ total_size += 1 * this->from_progress_marker_size(); |
+ for (int i = 0; i < this->from_progress_marker_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->from_progress_marker(i)); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void GetUpdatesMessage::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const GetUpdatesMessage*>(&from)); |
+} |
+ |
+void GetUpdatesMessage::MergeFrom(const GetUpdatesMessage& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ from_progress_marker_.MergeFrom(from.from_progress_marker_); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_from_timestamp(from.from_timestamp()); |
+ } |
+ if (from._has_bit(1)) { |
+ mutable_caller_info()->::sync_pb::GetUpdatesCallerInfo::MergeFrom(from.caller_info()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_fetch_folders(from.fetch_folders()); |
+ } |
+ if (from._has_bit(3)) { |
+ mutable_requested_types()->::sync_pb::EntitySpecifics::MergeFrom(from.requested_types()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_batch_size(from.batch_size()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void GetUpdatesMessage::CopyFrom(const GetUpdatesMessage& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool GetUpdatesMessage::IsInitialized() const { |
+ |
+ if (has_caller_info()) { |
+ if (!this->caller_info().IsInitialized()) return false; |
+ } |
+ if (has_requested_types()) { |
+ if (!this->requested_types().IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void GetUpdatesMessage::Swap(GetUpdatesMessage* other) { |
+ if (other != this) { |
+ std::swap(from_timestamp_, other->from_timestamp_); |
+ std::swap(caller_info_, other->caller_info_); |
+ std::swap(fetch_folders_, other->fetch_folders_); |
+ std::swap(requested_types_, other->requested_types_); |
+ std::swap(batch_size_, other->batch_size_); |
+ from_progress_marker_.Swap(&other->from_progress_marker_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string GetUpdatesMessage::GetTypeName() const { |
+ return "sync_pb.GetUpdatesMessage"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string AuthenticateMessage::_default_auth_token_; |
+#ifndef _MSC_VER |
+const int AuthenticateMessage::kAuthTokenFieldNumber; |
+#endif // !_MSC_VER |
+ |
+AuthenticateMessage::AuthenticateMessage() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void AuthenticateMessage::InitAsDefaultInstance() { |
+} |
+ |
+AuthenticateMessage::AuthenticateMessage(const AuthenticateMessage& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void AuthenticateMessage::SharedCtor() { |
+ _cached_size_ = 0; |
+ auth_token_ = const_cast< ::std::string*>(&_default_auth_token_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+AuthenticateMessage::~AuthenticateMessage() { |
+ SharedDtor(); |
+} |
+ |
+void AuthenticateMessage::SharedDtor() { |
+ if (auth_token_ != &_default_auth_token_) { |
+ delete auth_token_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void AuthenticateMessage::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const AuthenticateMessage& AuthenticateMessage::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+AuthenticateMessage* AuthenticateMessage::default_instance_ = NULL; |
+ |
+AuthenticateMessage* AuthenticateMessage::New() const { |
+ return new AuthenticateMessage; |
+} |
+ |
+void AuthenticateMessage::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (auth_token_ != &_default_auth_token_) { |
+ auth_token_->clear(); |
+ } |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool AuthenticateMessage::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required string auth_token = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_auth_token())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void AuthenticateMessage::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required string auth_token = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->auth_token(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int AuthenticateMessage::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required string auth_token = 1; |
+ if (has_auth_token()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->auth_token()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void AuthenticateMessage::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const AuthenticateMessage*>(&from)); |
+} |
+ |
+void AuthenticateMessage::MergeFrom(const AuthenticateMessage& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_auth_token(from.auth_token()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void AuthenticateMessage::CopyFrom(const AuthenticateMessage& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool AuthenticateMessage::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
+ |
+ return true; |
+} |
+ |
+void AuthenticateMessage::Swap(AuthenticateMessage* other) { |
+ if (other != this) { |
+ std::swap(auth_token_, other->auth_token_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string AuthenticateMessage::GetTypeName() const { |
+ return "sync_pb.AuthenticateMessage"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+#endif // !_MSC_VER |
+ |
+ClearUserDataMessage::ClearUserDataMessage() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ClearUserDataMessage::InitAsDefaultInstance() { |
+} |
+ |
+ClearUserDataMessage::ClearUserDataMessage(const ClearUserDataMessage& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ClearUserDataMessage::SharedCtor() { |
+ _cached_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ClearUserDataMessage::~ClearUserDataMessage() { |
+ SharedDtor(); |
+} |
+ |
+void ClearUserDataMessage::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ClearUserDataMessage::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ClearUserDataMessage& ClearUserDataMessage::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ClearUserDataMessage* ClearUserDataMessage::default_instance_ = NULL; |
+ |
+ClearUserDataMessage* ClearUserDataMessage::New() const { |
+ return new ClearUserDataMessage; |
+} |
+ |
+void ClearUserDataMessage::Clear() { |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ClearUserDataMessage::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ClearUserDataMessage::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ClearUserDataMessage::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ClearUserDataMessage::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ClearUserDataMessage*>(&from)); |
+} |
+ |
+void ClearUserDataMessage::MergeFrom(const ClearUserDataMessage& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ClearUserDataMessage::CopyFrom(const ClearUserDataMessage& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ClearUserDataMessage::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void ClearUserDataMessage::Swap(ClearUserDataMessage* other) { |
+ if (other != this) { |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ClearUserDataMessage::GetTypeName() const { |
+ return "sync_pb.ClearUserDataMessage"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+#endif // !_MSC_VER |
+ |
+ClearUserDataResponse::ClearUserDataResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ClearUserDataResponse::InitAsDefaultInstance() { |
+} |
+ |
+ClearUserDataResponse::ClearUserDataResponse(const ClearUserDataResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ClearUserDataResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ClearUserDataResponse::~ClearUserDataResponse() { |
+ SharedDtor(); |
+} |
+ |
+void ClearUserDataResponse::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ClearUserDataResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ClearUserDataResponse& ClearUserDataResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ClearUserDataResponse* ClearUserDataResponse::default_instance_ = NULL; |
+ |
+ClearUserDataResponse* ClearUserDataResponse::New() const { |
+ return new ClearUserDataResponse; |
+} |
+ |
+void ClearUserDataResponse::Clear() { |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ClearUserDataResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ClearUserDataResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ClearUserDataResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ClearUserDataResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ClearUserDataResponse*>(&from)); |
+} |
+ |
+void ClearUserDataResponse::MergeFrom(const ClearUserDataResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ClearUserDataResponse::CopyFrom(const ClearUserDataResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ClearUserDataResponse::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void ClearUserDataResponse::Swap(ClearUserDataResponse* other) { |
+ if (other != this) { |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ClearUserDataResponse::GetTypeName() const { |
+ return "sync_pb.ClearUserDataResponse"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool ClientToServerMessage_Contents_IsValid(int value) { |
+ switch(value) { |
+ case 1: |
+ case 2: |
+ case 3: |
+ case 4: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const ClientToServerMessage_Contents ClientToServerMessage::COMMIT; |
+const ClientToServerMessage_Contents ClientToServerMessage::GET_UPDATES; |
+const ClientToServerMessage_Contents ClientToServerMessage::AUTHENTICATE; |
+const ClientToServerMessage_Contents ClientToServerMessage::CLEAR_DATA; |
+const ClientToServerMessage_Contents ClientToServerMessage::Contents_MIN; |
+const ClientToServerMessage_Contents ClientToServerMessage::Contents_MAX; |
+const int ClientToServerMessage::Contents_ARRAYSIZE; |
+#endif // _MSC_VER |
+const ::std::string ClientToServerMessage::_default_share_; |
+const ::std::string ClientToServerMessage::_default_store_birthday_; |
+#ifndef _MSC_VER |
+const int ClientToServerMessage::kShareFieldNumber; |
+const int ClientToServerMessage::kProtocolVersionFieldNumber; |
+const int ClientToServerMessage::kMessageContentsFieldNumber; |
+const int ClientToServerMessage::kCommitFieldNumber; |
+const int ClientToServerMessage::kGetUpdatesFieldNumber; |
+const int ClientToServerMessage::kAuthenticateFieldNumber; |
+const int ClientToServerMessage::kClearUserDataFieldNumber; |
+const int ClientToServerMessage::kStoreBirthdayFieldNumber; |
+const int ClientToServerMessage::kSyncProblemDetectedFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ClientToServerMessage::ClientToServerMessage() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ClientToServerMessage::InitAsDefaultInstance() { |
+ commit_ = const_cast< ::sync_pb::CommitMessage*>(&::sync_pb::CommitMessage::default_instance()); |
+ get_updates_ = const_cast< ::sync_pb::GetUpdatesMessage*>(&::sync_pb::GetUpdatesMessage::default_instance()); |
+ authenticate_ = const_cast< ::sync_pb::AuthenticateMessage*>(&::sync_pb::AuthenticateMessage::default_instance()); |
+ clear_user_data_ = const_cast< ::sync_pb::ClearUserDataMessage*>(&::sync_pb::ClearUserDataMessage::default_instance()); |
+} |
+ |
+ClientToServerMessage::ClientToServerMessage(const ClientToServerMessage& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ClientToServerMessage::SharedCtor() { |
+ _cached_size_ = 0; |
+ share_ = const_cast< ::std::string*>(&_default_share_); |
+ protocol_version_ = 24; |
+ message_contents_ = 1; |
+ commit_ = NULL; |
+ get_updates_ = NULL; |
+ authenticate_ = NULL; |
+ clear_user_data_ = NULL; |
+ store_birthday_ = const_cast< ::std::string*>(&_default_store_birthday_); |
+ sync_problem_detected_ = false; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ClientToServerMessage::~ClientToServerMessage() { |
+ SharedDtor(); |
+} |
+ |
+void ClientToServerMessage::SharedDtor() { |
+ if (share_ != &_default_share_) { |
+ delete share_; |
+ } |
+ if (store_birthday_ != &_default_store_birthday_) { |
+ delete store_birthday_; |
+ } |
+ if (this != default_instance_) { |
+ delete commit_; |
+ delete get_updates_; |
+ delete authenticate_; |
+ delete clear_user_data_; |
+ } |
+} |
+ |
+void ClientToServerMessage::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ClientToServerMessage& ClientToServerMessage::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ClientToServerMessage* ClientToServerMessage::default_instance_ = NULL; |
+ |
+ClientToServerMessage* ClientToServerMessage::New() const { |
+ return new ClientToServerMessage; |
+} |
+ |
+void ClientToServerMessage::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (share_ != &_default_share_) { |
+ share_->clear(); |
+ } |
+ } |
+ protocol_version_ = 24; |
+ message_contents_ = 1; |
+ if (_has_bit(3)) { |
+ if (commit_ != NULL) commit_->::sync_pb::CommitMessage::Clear(); |
+ } |
+ if (_has_bit(4)) { |
+ if (get_updates_ != NULL) get_updates_->::sync_pb::GetUpdatesMessage::Clear(); |
+ } |
+ if (_has_bit(5)) { |
+ if (authenticate_ != NULL) authenticate_->::sync_pb::AuthenticateMessage::Clear(); |
+ } |
+ if (_has_bit(6)) { |
+ if (clear_user_data_ != NULL) clear_user_data_->::sync_pb::ClearUserDataMessage::Clear(); |
+ } |
+ if (_has_bit(7)) { |
+ if (store_birthday_ != &_default_store_birthday_) { |
+ store_birthday_->clear(); |
+ } |
+ } |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ sync_problem_detected_ = false; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ClientToServerMessage::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required string share = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_share())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(16)) goto parse_protocol_version; |
+ break; |
+ } |
+ |
+ // optional int32 protocol_version = 2 [default = 24]; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_protocol_version: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &protocol_version_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_message_contents; |
+ break; |
+ } |
+ |
+ // required .sync_pb.ClientToServerMessage.Contents message_contents = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_message_contents: |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::ClientToServerMessage_Contents_IsValid(value)) { |
+ set_message_contents(static_cast< ::sync_pb::ClientToServerMessage_Contents >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(3, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_commit; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.CommitMessage commit = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_commit: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_commit())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_get_updates; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesMessage get_updates = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_get_updates: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_get_updates())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_authenticate; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.AuthenticateMessage authenticate = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_authenticate: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_authenticate())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(58)) goto parse_store_birthday; |
+ break; |
+ } |
+ |
+ // optional string store_birthday = 7; |
+ case 7: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_store_birthday: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_store_birthday())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(64)) goto parse_sync_problem_detected; |
+ break; |
+ } |
+ |
+ // optional bool sync_problem_detected = 8 [default = false]; |
+ case 8: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_sync_problem_detected: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
+ input, &sync_problem_detected_))); |
+ _set_bit(8); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(74)) goto parse_clear_user_data; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataMessage clear_user_data = 9; |
+ case 9: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_clear_user_data: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_clear_user_data())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ClientToServerMessage::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required string share = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->share(), output); |
+ } |
+ |
+ // optional int32 protocol_version = 2 [default = 24]; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->protocol_version(), output); |
+ } |
+ |
+ // required .sync_pb.ClientToServerMessage.Contents message_contents = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 3, this->message_contents(), output); |
+ } |
+ |
+ // optional .sync_pb.CommitMessage commit = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 4, this->commit(), output); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesMessage get_updates = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 5, this->get_updates(), output); |
+ } |
+ |
+ // optional .sync_pb.AuthenticateMessage authenticate = 6; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 6, this->authenticate(), output); |
+ } |
+ |
+ // optional string store_birthday = 7; |
+ if (_has_bit(7)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 7, this->store_birthday(), output); |
+ } |
+ |
+ // optional bool sync_problem_detected = 8 [default = false]; |
+ if (_has_bit(8)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->sync_problem_detected(), output); |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataMessage clear_user_data = 9; |
+ if (_has_bit(6)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 9, this->clear_user_data(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ClientToServerMessage::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required string share = 1; |
+ if (has_share()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->share()); |
+ } |
+ |
+ // optional int32 protocol_version = 2 [default = 24]; |
+ if (has_protocol_version()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->protocol_version()); |
+ } |
+ |
+ // required .sync_pb.ClientToServerMessage.Contents message_contents = 3; |
+ if (has_message_contents()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->message_contents()); |
+ } |
+ |
+ // optional .sync_pb.CommitMessage commit = 4; |
+ if (has_commit()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->commit()); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesMessage get_updates = 5; |
+ if (has_get_updates()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->get_updates()); |
+ } |
+ |
+ // optional .sync_pb.AuthenticateMessage authenticate = 6; |
+ if (has_authenticate()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->authenticate()); |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataMessage clear_user_data = 9; |
+ if (has_clear_user_data()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->clear_user_data()); |
+ } |
+ |
+ // optional string store_birthday = 7; |
+ if (has_store_birthday()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->store_birthday()); |
+ } |
+ |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ // optional bool sync_problem_detected = 8 [default = false]; |
+ if (has_sync_problem_detected()) { |
+ total_size += 1 + 1; |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ClientToServerMessage::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ClientToServerMessage*>(&from)); |
+} |
+ |
+void ClientToServerMessage::MergeFrom(const ClientToServerMessage& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_share(from.share()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_protocol_version(from.protocol_version()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_message_contents(from.message_contents()); |
+ } |
+ if (from._has_bit(3)) { |
+ mutable_commit()->::sync_pb::CommitMessage::MergeFrom(from.commit()); |
+ } |
+ if (from._has_bit(4)) { |
+ mutable_get_updates()->::sync_pb::GetUpdatesMessage::MergeFrom(from.get_updates()); |
+ } |
+ if (from._has_bit(5)) { |
+ mutable_authenticate()->::sync_pb::AuthenticateMessage::MergeFrom(from.authenticate()); |
+ } |
+ if (from._has_bit(6)) { |
+ mutable_clear_user_data()->::sync_pb::ClearUserDataMessage::MergeFrom(from.clear_user_data()); |
+ } |
+ if (from._has_bit(7)) { |
+ set_store_birthday(from.store_birthday()); |
+ } |
+ } |
+ if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ if (from._has_bit(8)) { |
+ set_sync_problem_detected(from.sync_problem_detected()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ClientToServerMessage::CopyFrom(const ClientToServerMessage& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ClientToServerMessage::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; |
+ |
+ if (has_commit()) { |
+ if (!this->commit().IsInitialized()) return false; |
+ } |
+ if (has_get_updates()) { |
+ if (!this->get_updates().IsInitialized()) return false; |
+ } |
+ if (has_authenticate()) { |
+ if (!this->authenticate().IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void ClientToServerMessage::Swap(ClientToServerMessage* other) { |
+ if (other != this) { |
+ std::swap(share_, other->share_); |
+ std::swap(protocol_version_, other->protocol_version_); |
+ std::swap(message_contents_, other->message_contents_); |
+ std::swap(commit_, other->commit_); |
+ std::swap(get_updates_, other->get_updates_); |
+ std::swap(authenticate_, other->authenticate_); |
+ std::swap(clear_user_data_, other->clear_user_data_); |
+ std::swap(store_birthday_, other->store_birthday_); |
+ std::swap(sync_problem_detected_, other->sync_problem_detected_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ClientToServerMessage::GetTypeName() const { |
+ return "sync_pb.ClientToServerMessage"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool CommitResponse_ResponseType_IsValid(int value) { |
+ switch(value) { |
+ case 1: |
+ case 2: |
+ case 3: |
+ case 4: |
+ case 5: |
+ case 6: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const CommitResponse_ResponseType CommitResponse::SUCCESS; |
+const CommitResponse_ResponseType CommitResponse::CONFLICT; |
+const CommitResponse_ResponseType CommitResponse::RETRY; |
+const CommitResponse_ResponseType CommitResponse::INVALID_MESSAGE; |
+const CommitResponse_ResponseType CommitResponse::OVER_QUOTA; |
+const CommitResponse_ResponseType CommitResponse::TRANSIENT_ERROR; |
+const CommitResponse_ResponseType CommitResponse::ResponseType_MIN; |
+const CommitResponse_ResponseType CommitResponse::ResponseType_MAX; |
+const int CommitResponse::ResponseType_ARRAYSIZE; |
+#endif // _MSC_VER |
+const ::std::string CommitResponse_EntryResponse::_default_id_string_; |
+const ::std::string CommitResponse_EntryResponse::_default_parent_id_string_; |
+const ::std::string CommitResponse_EntryResponse::_default_name_; |
+const ::std::string CommitResponse_EntryResponse::_default_non_unique_name_; |
+const ::std::string CommitResponse_EntryResponse::_default_error_message_; |
+#ifndef _MSC_VER |
+const int CommitResponse_EntryResponse::kResponseTypeFieldNumber; |
+const int CommitResponse_EntryResponse::kIdStringFieldNumber; |
+const int CommitResponse_EntryResponse::kParentIdStringFieldNumber; |
+const int CommitResponse_EntryResponse::kPositionInParentFieldNumber; |
+const int CommitResponse_EntryResponse::kVersionFieldNumber; |
+const int CommitResponse_EntryResponse::kNameFieldNumber; |
+const int CommitResponse_EntryResponse::kNonUniqueNameFieldNumber; |
+const int CommitResponse_EntryResponse::kErrorMessageFieldNumber; |
+#endif // !_MSC_VER |
+ |
+CommitResponse_EntryResponse::CommitResponse_EntryResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void CommitResponse_EntryResponse::InitAsDefaultInstance() { |
+} |
+ |
+CommitResponse_EntryResponse::CommitResponse_EntryResponse(const CommitResponse_EntryResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void CommitResponse_EntryResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ response_type_ = 1; |
+ id_string_ = const_cast< ::std::string*>(&_default_id_string_); |
+ parent_id_string_ = const_cast< ::std::string*>(&_default_parent_id_string_); |
+ position_in_parent_ = GOOGLE_LONGLONG(0); |
+ version_ = GOOGLE_LONGLONG(0); |
+ name_ = const_cast< ::std::string*>(&_default_name_); |
+ non_unique_name_ = const_cast< ::std::string*>(&_default_non_unique_name_); |
+ error_message_ = const_cast< ::std::string*>(&_default_error_message_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+CommitResponse_EntryResponse::~CommitResponse_EntryResponse() { |
+ SharedDtor(); |
+} |
+ |
+void CommitResponse_EntryResponse::SharedDtor() { |
+ if (id_string_ != &_default_id_string_) { |
+ delete id_string_; |
+ } |
+ if (parent_id_string_ != &_default_parent_id_string_) { |
+ delete parent_id_string_; |
+ } |
+ if (name_ != &_default_name_) { |
+ delete name_; |
+ } |
+ if (non_unique_name_ != &_default_non_unique_name_) { |
+ delete non_unique_name_; |
+ } |
+ if (error_message_ != &_default_error_message_) { |
+ delete error_message_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void CommitResponse_EntryResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const CommitResponse_EntryResponse& CommitResponse_EntryResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+CommitResponse_EntryResponse* CommitResponse_EntryResponse::default_instance_ = NULL; |
+ |
+CommitResponse_EntryResponse* CommitResponse_EntryResponse::New() const { |
+ return new CommitResponse_EntryResponse; |
+} |
+ |
+void CommitResponse_EntryResponse::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ response_type_ = 1; |
+ if (_has_bit(1)) { |
+ if (id_string_ != &_default_id_string_) { |
+ id_string_->clear(); |
+ } |
+ } |
+ if (_has_bit(2)) { |
+ if (parent_id_string_ != &_default_parent_id_string_) { |
+ parent_id_string_->clear(); |
+ } |
+ } |
+ position_in_parent_ = GOOGLE_LONGLONG(0); |
+ version_ = GOOGLE_LONGLONG(0); |
+ if (_has_bit(5)) { |
+ if (name_ != &_default_name_) { |
+ name_->clear(); |
+ } |
+ } |
+ if (_has_bit(6)) { |
+ if (non_unique_name_ != &_default_non_unique_name_) { |
+ non_unique_name_->clear(); |
+ } |
+ } |
+ if (_has_bit(7)) { |
+ if (error_message_ != &_default_error_message_) { |
+ error_message_->clear(); |
+ } |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool CommitResponse_EntryResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required .sync_pb.CommitResponse.ResponseType response_type = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::CommitResponse_ResponseType_IsValid(value)) { |
+ set_response_type(static_cast< ::sync_pb::CommitResponse_ResponseType >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(2, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_id_string; |
+ break; |
+ } |
+ |
+ // optional string id_string = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_id_string: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_id_string())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(34)) goto parse_parent_id_string; |
+ break; |
+ } |
+ |
+ // optional string parent_id_string = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_parent_id_string: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_parent_id_string())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(40)) goto parse_position_in_parent; |
+ break; |
+ } |
+ |
+ // optional int64 position_in_parent = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_position_in_parent: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &position_in_parent_))); |
+ _set_bit(3); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(48)) goto parse_version; |
+ break; |
+ } |
+ |
+ // optional int64 version = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_version: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &version_))); |
+ _set_bit(4); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(58)) goto parse_name; |
+ break; |
+ } |
+ |
+ // optional string name = 7; |
+ case 7: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_name: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_name())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(66)) goto parse_non_unique_name; |
+ break; |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ case 8: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_non_unique_name: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_non_unique_name())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(74)) goto parse_error_message; |
+ break; |
+ } |
+ |
+ // optional string error_message = 9; |
+ case 9: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_error_message: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_error_message())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void CommitResponse_EntryResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required .sync_pb.CommitResponse.ResponseType response_type = 2; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 2, this->response_type(), output); |
+ } |
+ |
+ // optional string id_string = 3; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 3, this->id_string(), output); |
+ } |
+ |
+ // optional string parent_id_string = 4; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 4, this->parent_id_string(), output); |
+ } |
+ |
+ // optional int64 position_in_parent = 5; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->position_in_parent(), output); |
+ } |
+ |
+ // optional int64 version = 6; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(6, this->version(), output); |
+ } |
+ |
+ // optional string name = 7; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 7, this->name(), output); |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ if (_has_bit(6)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 8, this->non_unique_name(), output); |
+ } |
+ |
+ // optional string error_message = 9; |
+ if (_has_bit(7)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 9, this->error_message(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int CommitResponse_EntryResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required .sync_pb.CommitResponse.ResponseType response_type = 2; |
+ if (has_response_type()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->response_type()); |
+ } |
+ |
+ // optional string id_string = 3; |
+ if (has_id_string()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->id_string()); |
+ } |
+ |
+ // optional string parent_id_string = 4; |
+ if (has_parent_id_string()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->parent_id_string()); |
+ } |
+ |
+ // optional int64 position_in_parent = 5; |
+ if (has_position_in_parent()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->position_in_parent()); |
+ } |
+ |
+ // optional int64 version = 6; |
+ if (has_version()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->version()); |
+ } |
+ |
+ // optional string name = 7; |
+ if (has_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->name()); |
+ } |
+ |
+ // optional string non_unique_name = 8; |
+ if (has_non_unique_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->non_unique_name()); |
+ } |
+ |
+ // optional string error_message = 9; |
+ if (has_error_message()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->error_message()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void CommitResponse_EntryResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const CommitResponse_EntryResponse*>(&from)); |
+} |
+ |
+void CommitResponse_EntryResponse::MergeFrom(const CommitResponse_EntryResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_response_type(from.response_type()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_id_string(from.id_string()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_parent_id_string(from.parent_id_string()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_position_in_parent(from.position_in_parent()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_version(from.version()); |
+ } |
+ if (from._has_bit(5)) { |
+ set_name(from.name()); |
+ } |
+ if (from._has_bit(6)) { |
+ set_non_unique_name(from.non_unique_name()); |
+ } |
+ if (from._has_bit(7)) { |
+ set_error_message(from.error_message()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void CommitResponse_EntryResponse::CopyFrom(const CommitResponse_EntryResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool CommitResponse_EntryResponse::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
+ |
+ return true; |
+} |
+ |
+void CommitResponse_EntryResponse::Swap(CommitResponse_EntryResponse* other) { |
+ if (other != this) { |
+ std::swap(response_type_, other->response_type_); |
+ std::swap(id_string_, other->id_string_); |
+ std::swap(parent_id_string_, other->parent_id_string_); |
+ std::swap(position_in_parent_, other->position_in_parent_); |
+ std::swap(version_, other->version_); |
+ std::swap(name_, other->name_); |
+ std::swap(non_unique_name_, other->non_unique_name_); |
+ std::swap(error_message_, other->error_message_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string CommitResponse_EntryResponse::GetTypeName() const { |
+ return "sync_pb.CommitResponse.EntryResponse"; |
+} |
+ |
+ |
+// ------------------------------------------------------------------- |
+ |
+#ifndef _MSC_VER |
+const int CommitResponse::kEntryresponseFieldNumber; |
+#endif // !_MSC_VER |
+ |
+CommitResponse::CommitResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void CommitResponse::InitAsDefaultInstance() { |
+} |
+ |
+CommitResponse::CommitResponse(const CommitResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void CommitResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+CommitResponse::~CommitResponse() { |
+ SharedDtor(); |
+} |
+ |
+void CommitResponse::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void CommitResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const CommitResponse& CommitResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+CommitResponse* CommitResponse::default_instance_ = NULL; |
+ |
+CommitResponse* CommitResponse::New() const { |
+ return new CommitResponse; |
+} |
+ |
+void CommitResponse::Clear() { |
+ entryresponse_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool CommitResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // repeated group EntryResponse = 1 { |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_START_GROUP) { |
+ parse_entryresponse: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadGroupNoVirtual( |
+ 1, input, add_entryresponse())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(11)) goto parse_entryresponse; |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void CommitResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // repeated group EntryResponse = 1 { |
+ for (int i = 0; i < this->entryresponse_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteGroup( |
+ 1, this->entryresponse(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int CommitResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ // repeated group EntryResponse = 1 { |
+ total_size += 2 * this->entryresponse_size(); |
+ for (int i = 0; i < this->entryresponse_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::GroupSizeNoVirtual( |
+ this->entryresponse(i)); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void CommitResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const CommitResponse*>(&from)); |
+} |
+ |
+void CommitResponse::MergeFrom(const CommitResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ entryresponse_.MergeFrom(from.entryresponse_); |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void CommitResponse::CopyFrom(const CommitResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool CommitResponse::IsInitialized() const { |
+ |
+ for (int i = 0; i < entryresponse_size(); i++) { |
+ if (!this->entryresponse(i).IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void CommitResponse::Swap(CommitResponse* other) { |
+ if (other != this) { |
+ entryresponse_.Swap(&other->entryresponse_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string CommitResponse::GetTypeName() const { |
+ return "sync_pb.CommitResponse"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int GetUpdatesResponse::kEntriesFieldNumber; |
+const int GetUpdatesResponse::kNewTimestampFieldNumber; |
+const int GetUpdatesResponse::kDeprecatedNewestTimestampFieldNumber; |
+const int GetUpdatesResponse::kChangesRemainingFieldNumber; |
+const int GetUpdatesResponse::kNewProgressMarkerFieldNumber; |
+#endif // !_MSC_VER |
+ |
+GetUpdatesResponse::GetUpdatesResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void GetUpdatesResponse::InitAsDefaultInstance() { |
+} |
+ |
+GetUpdatesResponse::GetUpdatesResponse(const GetUpdatesResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void GetUpdatesResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ new_timestamp_ = GOOGLE_LONGLONG(0); |
+ deprecated_newest_timestamp_ = GOOGLE_LONGLONG(0); |
+ changes_remaining_ = GOOGLE_LONGLONG(0); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+GetUpdatesResponse::~GetUpdatesResponse() { |
+ SharedDtor(); |
+} |
+ |
+void GetUpdatesResponse::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void GetUpdatesResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const GetUpdatesResponse& GetUpdatesResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+GetUpdatesResponse* GetUpdatesResponse::default_instance_ = NULL; |
+ |
+GetUpdatesResponse* GetUpdatesResponse::New() const { |
+ return new GetUpdatesResponse; |
+} |
+ |
+void GetUpdatesResponse::Clear() { |
+ if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ new_timestamp_ = GOOGLE_LONGLONG(0); |
+ deprecated_newest_timestamp_ = GOOGLE_LONGLONG(0); |
+ changes_remaining_ = GOOGLE_LONGLONG(0); |
+ } |
+ entries_.Clear(); |
+ new_progress_marker_.Clear(); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool GetUpdatesResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_entries: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_entries())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(10)) goto parse_entries; |
+ if (input->ExpectTag(16)) goto parse_new_timestamp; |
+ break; |
+ } |
+ |
+ // optional int64 new_timestamp = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_new_timestamp: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &new_timestamp_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_deprecated_newest_timestamp; |
+ break; |
+ } |
+ |
+ // optional int64 deprecated_newest_timestamp = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_deprecated_newest_timestamp: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &deprecated_newest_timestamp_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(32)) goto parse_changes_remaining; |
+ break; |
+ } |
+ |
+ // optional int64 changes_remaining = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_changes_remaining: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
+ input, &changes_remaining_))); |
+ _set_bit(3); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_new_progress_marker; |
+ break; |
+ } |
+ |
+ // repeated .sync_pb.DataTypeProgressMarker new_progress_marker = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_new_progress_marker: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, add_new_progress_marker())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_new_progress_marker; |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void GetUpdatesResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ for (int i = 0; i < this->entries_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 1, this->entries(i), output); |
+ } |
+ |
+ // optional int64 new_timestamp = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->new_timestamp(), output); |
+ } |
+ |
+ // optional int64 deprecated_newest_timestamp = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->deprecated_newest_timestamp(), output); |
+ } |
+ |
+ // optional int64 changes_remaining = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->changes_remaining(), output); |
+ } |
+ |
+ // repeated .sync_pb.DataTypeProgressMarker new_progress_marker = 5; |
+ for (int i = 0; i < this->new_progress_marker_size(); i++) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 5, this->new_progress_marker(i), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int GetUpdatesResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ // optional int64 new_timestamp = 2; |
+ if (has_new_timestamp()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->new_timestamp()); |
+ } |
+ |
+ // optional int64 deprecated_newest_timestamp = 3; |
+ if (has_deprecated_newest_timestamp()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->deprecated_newest_timestamp()); |
+ } |
+ |
+ // optional int64 changes_remaining = 4; |
+ if (has_changes_remaining()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int64Size( |
+ this->changes_remaining()); |
+ } |
+ |
+ } |
+ // repeated .sync_pb.SyncEntity entries = 1; |
+ total_size += 1 * this->entries_size(); |
+ for (int i = 0; i < this->entries_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->entries(i)); |
+ } |
+ |
+ // repeated .sync_pb.DataTypeProgressMarker new_progress_marker = 5; |
+ total_size += 1 * this->new_progress_marker_size(); |
+ for (int i = 0; i < this->new_progress_marker_size(); i++) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->new_progress_marker(i)); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void GetUpdatesResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const GetUpdatesResponse*>(&from)); |
+} |
+ |
+void GetUpdatesResponse::MergeFrom(const GetUpdatesResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ entries_.MergeFrom(from.entries_); |
+ new_progress_marker_.MergeFrom(from.new_progress_marker_); |
+ if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
+ if (from._has_bit(1)) { |
+ set_new_timestamp(from.new_timestamp()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_deprecated_newest_timestamp(from.deprecated_newest_timestamp()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_changes_remaining(from.changes_remaining()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void GetUpdatesResponse::CopyFrom(const GetUpdatesResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool GetUpdatesResponse::IsInitialized() const { |
+ |
+ for (int i = 0; i < entries_size(); i++) { |
+ if (!this->entries(i).IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void GetUpdatesResponse::Swap(GetUpdatesResponse* other) { |
+ if (other != this) { |
+ entries_.Swap(&other->entries_); |
+ std::swap(new_timestamp_, other->new_timestamp_); |
+ std::swap(deprecated_newest_timestamp_, other->deprecated_newest_timestamp_); |
+ std::swap(changes_remaining_, other->changes_remaining_); |
+ new_progress_marker_.Swap(&other->new_progress_marker_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string GetUpdatesResponse::GetTypeName() const { |
+ return "sync_pb.GetUpdatesResponse"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+const ::std::string UserIdentification::_default_email_; |
+const ::std::string UserIdentification::_default_display_name_; |
+const ::std::string UserIdentification::_default_obfuscated_id_; |
+#ifndef _MSC_VER |
+const int UserIdentification::kEmailFieldNumber; |
+const int UserIdentification::kDisplayNameFieldNumber; |
+const int UserIdentification::kObfuscatedIdFieldNumber; |
+#endif // !_MSC_VER |
+ |
+UserIdentification::UserIdentification() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void UserIdentification::InitAsDefaultInstance() { |
+} |
+ |
+UserIdentification::UserIdentification(const UserIdentification& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void UserIdentification::SharedCtor() { |
+ _cached_size_ = 0; |
+ email_ = const_cast< ::std::string*>(&_default_email_); |
+ display_name_ = const_cast< ::std::string*>(&_default_display_name_); |
+ obfuscated_id_ = const_cast< ::std::string*>(&_default_obfuscated_id_); |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+UserIdentification::~UserIdentification() { |
+ SharedDtor(); |
+} |
+ |
+void UserIdentification::SharedDtor() { |
+ if (email_ != &_default_email_) { |
+ delete email_; |
+ } |
+ if (display_name_ != &_default_display_name_) { |
+ delete display_name_; |
+ } |
+ if (obfuscated_id_ != &_default_obfuscated_id_) { |
+ delete obfuscated_id_; |
+ } |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void UserIdentification::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const UserIdentification& UserIdentification::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+UserIdentification* UserIdentification::default_instance_ = NULL; |
+ |
+UserIdentification* UserIdentification::New() const { |
+ return new UserIdentification; |
+} |
+ |
+void UserIdentification::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (email_ != &_default_email_) { |
+ email_->clear(); |
+ } |
+ } |
+ if (_has_bit(1)) { |
+ if (display_name_ != &_default_display_name_) { |
+ display_name_->clear(); |
+ } |
+ } |
+ if (_has_bit(2)) { |
+ if (obfuscated_id_ != &_default_obfuscated_id_) { |
+ obfuscated_id_->clear(); |
+ } |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool UserIdentification::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required string email = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_email())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_display_name; |
+ break; |
+ } |
+ |
+ // optional string display_name = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_display_name: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_display_name())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_obfuscated_id; |
+ break; |
+ } |
+ |
+ // optional string obfuscated_id = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_obfuscated_id: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_obfuscated_id())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void UserIdentification::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required string email = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 1, this->email(), output); |
+ } |
+ |
+ // optional string display_name = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 2, this->display_name(), output); |
+ } |
+ |
+ // optional string obfuscated_id = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 3, this->obfuscated_id(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int UserIdentification::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required string email = 1; |
+ if (has_email()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->email()); |
+ } |
+ |
+ // optional string display_name = 2; |
+ if (has_display_name()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->display_name()); |
+ } |
+ |
+ // optional string obfuscated_id = 3; |
+ if (has_obfuscated_id()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->obfuscated_id()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void UserIdentification::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const UserIdentification*>(&from)); |
+} |
+ |
+void UserIdentification::MergeFrom(const UserIdentification& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_email(from.email()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_display_name(from.display_name()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_obfuscated_id(from.obfuscated_id()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void UserIdentification::CopyFrom(const UserIdentification& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool UserIdentification::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
+ |
+ return true; |
+} |
+ |
+void UserIdentification::Swap(UserIdentification* other) { |
+ if (other != this) { |
+ std::swap(email_, other->email_); |
+ std::swap(display_name_, other->display_name_); |
+ std::swap(obfuscated_id_, other->obfuscated_id_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string UserIdentification::GetTypeName() const { |
+ return "sync_pb.UserIdentification"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int AuthenticateResponse::kUserFieldNumber; |
+#endif // !_MSC_VER |
+ |
+AuthenticateResponse::AuthenticateResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void AuthenticateResponse::InitAsDefaultInstance() { |
+ user_ = const_cast< ::sync_pb::UserIdentification*>(&::sync_pb::UserIdentification::default_instance()); |
+} |
+ |
+AuthenticateResponse::AuthenticateResponse(const AuthenticateResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void AuthenticateResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ user_ = NULL; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+AuthenticateResponse::~AuthenticateResponse() { |
+ SharedDtor(); |
+} |
+ |
+void AuthenticateResponse::SharedDtor() { |
+ if (this != default_instance_) { |
+ delete user_; |
+ } |
+} |
+ |
+void AuthenticateResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const AuthenticateResponse& AuthenticateResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+AuthenticateResponse* AuthenticateResponse::default_instance_ = NULL; |
+ |
+AuthenticateResponse* AuthenticateResponse::New() const { |
+ return new AuthenticateResponse; |
+} |
+ |
+void AuthenticateResponse::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (user_ != NULL) user_->::sync_pb::UserIdentification::Clear(); |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool AuthenticateResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional .sync_pb.UserIdentification user = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_user())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void AuthenticateResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional .sync_pb.UserIdentification user = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 1, this->user(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int AuthenticateResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional .sync_pb.UserIdentification user = 1; |
+ if (has_user()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->user()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void AuthenticateResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const AuthenticateResponse*>(&from)); |
+} |
+ |
+void AuthenticateResponse::MergeFrom(const AuthenticateResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ mutable_user()->::sync_pb::UserIdentification::MergeFrom(from.user()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void AuthenticateResponse::CopyFrom(const AuthenticateResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool AuthenticateResponse::IsInitialized() const { |
+ |
+ if (has_user()) { |
+ if (!this->user().IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void AuthenticateResponse::Swap(AuthenticateResponse* other) { |
+ if (other != this) { |
+ std::swap(user_, other->user_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string AuthenticateResponse::GetTypeName() const { |
+ return "sync_pb.AuthenticateResponse"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int ThrottleParameters::kMinMeasurePayloadSizeFieldNumber; |
+const int ThrottleParameters::kTargetUtilizationFieldNumber; |
+const int ThrottleParameters::kMeasureIntervalMaxFieldNumber; |
+const int ThrottleParameters::kMeasureIntervalMinFieldNumber; |
+const int ThrottleParameters::kObservationWindowFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ThrottleParameters::ThrottleParameters() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ThrottleParameters::InitAsDefaultInstance() { |
+} |
+ |
+ThrottleParameters::ThrottleParameters(const ThrottleParameters& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ThrottleParameters::SharedCtor() { |
+ _cached_size_ = 0; |
+ min_measure_payload_size_ = 0; |
+ target_utilization_ = 0; |
+ measure_interval_max_ = 0; |
+ measure_interval_min_ = 0; |
+ observation_window_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ThrottleParameters::~ThrottleParameters() { |
+ SharedDtor(); |
+} |
+ |
+void ThrottleParameters::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ThrottleParameters::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ThrottleParameters& ThrottleParameters::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ThrottleParameters* ThrottleParameters::default_instance_ = NULL; |
+ |
+ThrottleParameters* ThrottleParameters::New() const { |
+ return new ThrottleParameters; |
+} |
+ |
+void ThrottleParameters::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ min_measure_payload_size_ = 0; |
+ target_utilization_ = 0; |
+ measure_interval_max_ = 0; |
+ measure_interval_min_ = 0; |
+ observation_window_ = 0; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ThrottleParameters::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // required int32 min_measure_payload_size = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &min_measure_payload_size_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(17)) goto parse_target_utilization; |
+ break; |
+ } |
+ |
+ // required double target_utilization = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { |
+ parse_target_utilization: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
+ input, &target_utilization_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(25)) goto parse_measure_interval_max; |
+ break; |
+ } |
+ |
+ // required double measure_interval_max = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { |
+ parse_measure_interval_max: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
+ input, &measure_interval_max_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(33)) goto parse_measure_interval_min; |
+ break; |
+ } |
+ |
+ // required double measure_interval_min = 4; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { |
+ parse_measure_interval_min: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
+ input, &measure_interval_min_))); |
+ _set_bit(3); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(41)) goto parse_observation_window; |
+ break; |
+ } |
+ |
+ // required double observation_window = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) { |
+ parse_observation_window: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
+ input, &observation_window_))); |
+ _set_bit(4); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ThrottleParameters::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // required int32 min_measure_payload_size = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->min_measure_payload_size(), output); |
+ } |
+ |
+ // required double target_utilization = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->target_utilization(), output); |
+ } |
+ |
+ // required double measure_interval_max = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->measure_interval_max(), output); |
+ } |
+ |
+ // required double measure_interval_min = 4; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->measure_interval_min(), output); |
+ } |
+ |
+ // required double observation_window = 5; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->observation_window(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ThrottleParameters::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // required int32 min_measure_payload_size = 1; |
+ if (has_min_measure_payload_size()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->min_measure_payload_size()); |
+ } |
+ |
+ // required double target_utilization = 2; |
+ if (has_target_utilization()) { |
+ total_size += 1 + 8; |
+ } |
+ |
+ // required double measure_interval_max = 3; |
+ if (has_measure_interval_max()) { |
+ total_size += 1 + 8; |
+ } |
+ |
+ // required double measure_interval_min = 4; |
+ if (has_measure_interval_min()) { |
+ total_size += 1 + 8; |
+ } |
+ |
+ // required double observation_window = 5; |
+ if (has_observation_window()) { |
+ total_size += 1 + 8; |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ThrottleParameters::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ThrottleParameters*>(&from)); |
+} |
+ |
+void ThrottleParameters::MergeFrom(const ThrottleParameters& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_min_measure_payload_size(from.min_measure_payload_size()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_target_utilization(from.target_utilization()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_measure_interval_max(from.measure_interval_max()); |
+ } |
+ if (from._has_bit(3)) { |
+ set_measure_interval_min(from.measure_interval_min()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_observation_window(from.observation_window()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ThrottleParameters::CopyFrom(const ThrottleParameters& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ThrottleParameters::IsInitialized() const { |
+ if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; |
+ |
+ return true; |
+} |
+ |
+void ThrottleParameters::Swap(ThrottleParameters* other) { |
+ if (other != this) { |
+ std::swap(min_measure_payload_size_, other->min_measure_payload_size_); |
+ std::swap(target_utilization_, other->target_utilization_); |
+ std::swap(measure_interval_max_, other->measure_interval_max_); |
+ std::swap(measure_interval_min_, other->measure_interval_min_); |
+ std::swap(observation_window_, other->observation_window_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ThrottleParameters::GetTypeName() const { |
+ return "sync_pb.ThrottleParameters"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+#ifndef _MSC_VER |
+const int ClientCommand::kSetSyncPollIntervalFieldNumber; |
+const int ClientCommand::kSetSyncLongPollIntervalFieldNumber; |
+const int ClientCommand::kMaxCommitBatchSizeFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ClientCommand::ClientCommand() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ClientCommand::InitAsDefaultInstance() { |
+} |
+ |
+ClientCommand::ClientCommand(const ClientCommand& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ClientCommand::SharedCtor() { |
+ _cached_size_ = 0; |
+ set_sync_poll_interval_ = 0; |
+ set_sync_long_poll_interval_ = 0; |
+ max_commit_batch_size_ = 0; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ClientCommand::~ClientCommand() { |
+ SharedDtor(); |
+} |
+ |
+void ClientCommand::SharedDtor() { |
+ if (this != default_instance_) { |
+ } |
+} |
+ |
+void ClientCommand::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ClientCommand& ClientCommand::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ClientCommand* ClientCommand::default_instance_ = NULL; |
+ |
+ClientCommand* ClientCommand::New() const { |
+ return new ClientCommand; |
+} |
+ |
+void ClientCommand::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ set_sync_poll_interval_ = 0; |
+ set_sync_long_poll_interval_ = 0; |
+ max_commit_batch_size_ = 0; |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ClientCommand::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional int32 set_sync_poll_interval = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &set_sync_poll_interval_))); |
+ _set_bit(0); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(16)) goto parse_set_sync_long_poll_interval; |
+ break; |
+ } |
+ |
+ // optional int32 set_sync_long_poll_interval = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_set_sync_long_poll_interval: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &set_sync_long_poll_interval_))); |
+ _set_bit(1); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(24)) goto parse_max_commit_batch_size; |
+ break; |
+ } |
+ |
+ // optional int32 max_commit_batch_size = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_max_commit_batch_size: |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
+ input, &max_commit_batch_size_))); |
+ _set_bit(2); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ClientCommand::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional int32 set_sync_poll_interval = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->set_sync_poll_interval(), output); |
+ } |
+ |
+ // optional int32 set_sync_long_poll_interval = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->set_sync_long_poll_interval(), output); |
+ } |
+ |
+ // optional int32 max_commit_batch_size = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_commit_batch_size(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ClientCommand::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional int32 set_sync_poll_interval = 1; |
+ if (has_set_sync_poll_interval()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->set_sync_poll_interval()); |
+ } |
+ |
+ // optional int32 set_sync_long_poll_interval = 2; |
+ if (has_set_sync_long_poll_interval()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->set_sync_long_poll_interval()); |
+ } |
+ |
+ // optional int32 max_commit_batch_size = 3; |
+ if (has_max_commit_batch_size()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::Int32Size( |
+ this->max_commit_batch_size()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ClientCommand::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ClientCommand*>(&from)); |
+} |
+ |
+void ClientCommand::MergeFrom(const ClientCommand& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ set_set_sync_poll_interval(from.set_sync_poll_interval()); |
+ } |
+ if (from._has_bit(1)) { |
+ set_set_sync_long_poll_interval(from.set_sync_long_poll_interval()); |
+ } |
+ if (from._has_bit(2)) { |
+ set_max_commit_batch_size(from.max_commit_batch_size()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ClientCommand::CopyFrom(const ClientCommand& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ClientCommand::IsInitialized() const { |
+ |
+ return true; |
+} |
+ |
+void ClientCommand::Swap(ClientCommand* other) { |
+ if (other != this) { |
+ std::swap(set_sync_poll_interval_, other->set_sync_poll_interval_); |
+ std::swap(set_sync_long_poll_interval_, other->set_sync_long_poll_interval_); |
+ std::swap(max_commit_batch_size_, other->max_commit_batch_size_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ClientCommand::GetTypeName() const { |
+ return "sync_pb.ClientCommand"; |
+} |
+ |
+ |
+// =================================================================== |
+ |
+bool ClientToServerResponse_ErrorType_IsValid(int value) { |
+ switch(value) { |
+ case 0: |
+ case 1: |
+ case 2: |
+ case 3: |
+ case 4: |
+ case 5: |
+ case 6: |
+ case 7: |
+ return true; |
+ default: |
+ return false; |
+ } |
+} |
+ |
+#ifndef _MSC_VER |
+const ClientToServerResponse_ErrorType ClientToServerResponse::SUCCESS; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::ACCESS_DENIED; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::NOT_MY_BIRTHDAY; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::THROTTLED; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::AUTH_EXPIRED; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::USER_NOT_ACTIVATED; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::AUTH_INVALID; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::CLEAR_PENDING; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::ErrorType_MIN; |
+const ClientToServerResponse_ErrorType ClientToServerResponse::ErrorType_MAX; |
+const int ClientToServerResponse::ErrorType_ARRAYSIZE; |
+#endif // _MSC_VER |
+const ::std::string ClientToServerResponse::_default_error_message_; |
+const ::std::string ClientToServerResponse::_default_store_birthday_; |
+#ifndef _MSC_VER |
+const int ClientToServerResponse::kCommitFieldNumber; |
+const int ClientToServerResponse::kGetUpdatesFieldNumber; |
+const int ClientToServerResponse::kAuthenticateFieldNumber; |
+const int ClientToServerResponse::kClearUserDataFieldNumber; |
+const int ClientToServerResponse::kErrorCodeFieldNumber; |
+const int ClientToServerResponse::kErrorMessageFieldNumber; |
+const int ClientToServerResponse::kStoreBirthdayFieldNumber; |
+const int ClientToServerResponse::kClientCommandFieldNumber; |
+const int ClientToServerResponse::kProfilingDataFieldNumber; |
+#endif // !_MSC_VER |
+ |
+ClientToServerResponse::ClientToServerResponse() |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+} |
+ |
+void ClientToServerResponse::InitAsDefaultInstance() { |
+ commit_ = const_cast< ::sync_pb::CommitResponse*>(&::sync_pb::CommitResponse::default_instance()); |
+ get_updates_ = const_cast< ::sync_pb::GetUpdatesResponse*>(&::sync_pb::GetUpdatesResponse::default_instance()); |
+ authenticate_ = const_cast< ::sync_pb::AuthenticateResponse*>(&::sync_pb::AuthenticateResponse::default_instance()); |
+ clear_user_data_ = const_cast< ::sync_pb::ClearUserDataResponse*>(&::sync_pb::ClearUserDataResponse::default_instance()); |
+ client_command_ = const_cast< ::sync_pb::ClientCommand*>(&::sync_pb::ClientCommand::default_instance()); |
+ profiling_data_ = const_cast< ::sync_pb::ProfilingData*>(&::sync_pb::ProfilingData::default_instance()); |
+} |
+ |
+ClientToServerResponse::ClientToServerResponse(const ClientToServerResponse& from) |
+ : ::google::protobuf::MessageLite() { |
+ SharedCtor(); |
+ MergeFrom(from); |
+} |
+ |
+void ClientToServerResponse::SharedCtor() { |
+ _cached_size_ = 0; |
+ commit_ = NULL; |
+ get_updates_ = NULL; |
+ authenticate_ = NULL; |
+ clear_user_data_ = NULL; |
+ error_code_ = 0; |
+ error_message_ = const_cast< ::std::string*>(&_default_error_message_); |
+ store_birthday_ = const_cast< ::std::string*>(&_default_store_birthday_); |
+ client_command_ = NULL; |
+ profiling_data_ = NULL; |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+} |
+ |
+ClientToServerResponse::~ClientToServerResponse() { |
+ SharedDtor(); |
+} |
+ |
+void ClientToServerResponse::SharedDtor() { |
+ if (error_message_ != &_default_error_message_) { |
+ delete error_message_; |
+ } |
+ if (store_birthday_ != &_default_store_birthday_) { |
+ delete store_birthday_; |
+ } |
+ if (this != default_instance_) { |
+ delete commit_; |
+ delete get_updates_; |
+ delete authenticate_; |
+ delete clear_user_data_; |
+ delete client_command_; |
+ delete profiling_data_; |
+ } |
+} |
+ |
+void ClientToServerResponse::SetCachedSize(int size) const { |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+} |
+const ClientToServerResponse& ClientToServerResponse::default_instance() { |
+ if (default_instance_ == NULL) protobuf_AddDesc_sync_2eproto(); return *default_instance_; |
+} |
+ |
+ClientToServerResponse* ClientToServerResponse::default_instance_ = NULL; |
+ |
+ClientToServerResponse* ClientToServerResponse::New() const { |
+ return new ClientToServerResponse; |
+} |
+ |
+void ClientToServerResponse::Clear() { |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (_has_bit(0)) { |
+ if (commit_ != NULL) commit_->::sync_pb::CommitResponse::Clear(); |
+ } |
+ if (_has_bit(1)) { |
+ if (get_updates_ != NULL) get_updates_->::sync_pb::GetUpdatesResponse::Clear(); |
+ } |
+ if (_has_bit(2)) { |
+ if (authenticate_ != NULL) authenticate_->::sync_pb::AuthenticateResponse::Clear(); |
+ } |
+ if (_has_bit(3)) { |
+ if (clear_user_data_ != NULL) clear_user_data_->::sync_pb::ClearUserDataResponse::Clear(); |
+ } |
+ error_code_ = 0; |
+ if (_has_bit(5)) { |
+ if (error_message_ != &_default_error_message_) { |
+ error_message_->clear(); |
+ } |
+ } |
+ if (_has_bit(6)) { |
+ if (store_birthday_ != &_default_store_birthday_) { |
+ store_birthday_->clear(); |
+ } |
+ } |
+ if (_has_bit(7)) { |
+ if (client_command_ != NULL) client_command_->::sync_pb::ClientCommand::Clear(); |
+ } |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ if (_has_bit(8)) { |
+ if (profiling_data_ != NULL) profiling_data_->::sync_pb::ProfilingData::Clear(); |
+ } |
+ } |
+ ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
+ mutable_unknown_fields()->Clear(); |
+} |
+ |
+bool ClientToServerResponse::MergePartialFromCodedStream( |
+ ::google::protobuf::io::CodedInputStream* input) { |
+#define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
+ ::google::protobuf::uint32 tag; |
+ while ((tag = input->ReadTag()) != 0) { |
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
+ // optional .sync_pb.CommitResponse commit = 1; |
+ case 1: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_commit())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(18)) goto parse_get_updates; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesResponse get_updates = 2; |
+ case 2: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_get_updates: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_get_updates())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(26)) goto parse_authenticate; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.AuthenticateResponse authenticate = 3; |
+ case 3: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_authenticate: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_authenticate())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(32)) goto parse_error_code; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.ClientToServerResponse.ErrorType error_code = 4 [default = SUCCESS]; |
+ case 4: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
+ parse_error_code: |
+ int value; |
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
+ int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
+ input, &value))); |
+ if (::sync_pb::ClientToServerResponse_ErrorType_IsValid(value)) { |
+ set_error_code(static_cast< ::sync_pb::ClientToServerResponse_ErrorType >(value)); |
+ } else { |
+ mutable_unknown_fields()->AddVarint(4, value); |
+ } |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(42)) goto parse_error_message; |
+ break; |
+ } |
+ |
+ // optional string error_message = 5; |
+ case 5: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_error_message: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_error_message())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(50)) goto parse_store_birthday; |
+ break; |
+ } |
+ |
+ // optional string store_birthday = 6; |
+ case 6: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_store_birthday: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
+ input, this->mutable_store_birthday())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(58)) goto parse_client_command; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.ClientCommand client_command = 7; |
+ case 7: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_client_command: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_client_command())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(66)) goto parse_profiling_data; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.ProfilingData profiling_data = 8; |
+ case 8: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_profiling_data: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_profiling_data())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectTag(74)) goto parse_clear_user_data; |
+ break; |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataResponse clear_user_data = 9; |
+ case 9: { |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
+ parse_clear_user_data: |
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
+ input, mutable_clear_user_data())); |
+ } else { |
+ goto handle_uninterpreted; |
+ } |
+ if (input->ExpectAtEnd()) return true; |
+ break; |
+ } |
+ |
+ default: { |
+ handle_uninterpreted: |
+ if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
+ return true; |
+ } |
+ DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, mutable_unknown_fields())); |
+ break; |
+ } |
+ } |
+ } |
+ return true; |
+#undef DO_ |
+} |
+ |
+void ClientToServerResponse::SerializeWithCachedSizes( |
+ ::google::protobuf::io::CodedOutputStream* output) const { |
+ // optional .sync_pb.CommitResponse commit = 1; |
+ if (_has_bit(0)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 1, this->commit(), output); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesResponse get_updates = 2; |
+ if (_has_bit(1)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 2, this->get_updates(), output); |
+ } |
+ |
+ // optional .sync_pb.AuthenticateResponse authenticate = 3; |
+ if (_has_bit(2)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 3, this->authenticate(), output); |
+ } |
+ |
+ // optional .sync_pb.ClientToServerResponse.ErrorType error_code = 4 [default = SUCCESS]; |
+ if (_has_bit(4)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteEnum( |
+ 4, this->error_code(), output); |
+ } |
+ |
+ // optional string error_message = 5; |
+ if (_has_bit(5)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 5, this->error_message(), output); |
+ } |
+ |
+ // optional string store_birthday = 6; |
+ if (_has_bit(6)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteString( |
+ 6, this->store_birthday(), output); |
+ } |
+ |
+ // optional .sync_pb.ClientCommand client_command = 7; |
+ if (_has_bit(7)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 7, this->client_command(), output); |
+ } |
+ |
+ // optional .sync_pb.ProfilingData profiling_data = 8; |
+ if (_has_bit(8)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 8, this->profiling_data(), output); |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataResponse clear_user_data = 9; |
+ if (_has_bit(3)) { |
+ ::google::protobuf::internal::WireFormatLite::WriteMessage( |
+ 9, this->clear_user_data(), output); |
+ } |
+ |
+ if (!unknown_fields().empty()) { |
+ ::google::protobuf::internal::WireFormatLite::SerializeUnknownFields( |
+ unknown_fields(), output); |
+ } |
+} |
+ |
+int ClientToServerResponse::ByteSize() const { |
+ int total_size = 0; |
+ |
+ if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ // optional .sync_pb.CommitResponse commit = 1; |
+ if (has_commit()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->commit()); |
+ } |
+ |
+ // optional .sync_pb.GetUpdatesResponse get_updates = 2; |
+ if (has_get_updates()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->get_updates()); |
+ } |
+ |
+ // optional .sync_pb.AuthenticateResponse authenticate = 3; |
+ if (has_authenticate()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->authenticate()); |
+ } |
+ |
+ // optional .sync_pb.ClearUserDataResponse clear_user_data = 9; |
+ if (has_clear_user_data()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->clear_user_data()); |
+ } |
+ |
+ // optional .sync_pb.ClientToServerResponse.ErrorType error_code = 4 [default = SUCCESS]; |
+ if (has_error_code()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); |
+ } |
+ |
+ // optional string error_message = 5; |
+ if (has_error_message()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->error_message()); |
+ } |
+ |
+ // optional string store_birthday = 6; |
+ if (has_store_birthday()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::StringSize( |
+ this->store_birthday()); |
+ } |
+ |
+ // optional .sync_pb.ClientCommand client_command = 7; |
+ if (has_client_command()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->client_command()); |
+ } |
+ |
+ } |
+ if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ // optional .sync_pb.ProfilingData profiling_data = 8; |
+ if (has_profiling_data()) { |
+ total_size += 1 + |
+ ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
+ this->profiling_data()); |
+ } |
+ |
+ } |
+ if (!unknown_fields().empty()) { |
+ total_size += |
+ ::google::protobuf::internal::WireFormatLite::ComputeUnknownFieldsSize( |
+ unknown_fields()); |
+ } |
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
+ _cached_size_ = total_size; |
+ GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
+ return total_size; |
+} |
+ |
+void ClientToServerResponse::CheckTypeAndMergeFrom( |
+ const ::google::protobuf::MessageLite& from) { |
+ MergeFrom(*::google::protobuf::down_cast<const ClientToServerResponse*>(&from)); |
+} |
+ |
+void ClientToServerResponse::MergeFrom(const ClientToServerResponse& from) { |
+ GOOGLE_CHECK_NE(&from, this); |
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
+ if (from._has_bit(0)) { |
+ mutable_commit()->::sync_pb::CommitResponse::MergeFrom(from.commit()); |
+ } |
+ if (from._has_bit(1)) { |
+ mutable_get_updates()->::sync_pb::GetUpdatesResponse::MergeFrom(from.get_updates()); |
+ } |
+ if (from._has_bit(2)) { |
+ mutable_authenticate()->::sync_pb::AuthenticateResponse::MergeFrom(from.authenticate()); |
+ } |
+ if (from._has_bit(3)) { |
+ mutable_clear_user_data()->::sync_pb::ClearUserDataResponse::MergeFrom(from.clear_user_data()); |
+ } |
+ if (from._has_bit(4)) { |
+ set_error_code(from.error_code()); |
+ } |
+ if (from._has_bit(5)) { |
+ set_error_message(from.error_message()); |
+ } |
+ if (from._has_bit(6)) { |
+ set_store_birthday(from.store_birthday()); |
+ } |
+ if (from._has_bit(7)) { |
+ mutable_client_command()->::sync_pb::ClientCommand::MergeFrom(from.client_command()); |
+ } |
+ } |
+ if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
+ if (from._has_bit(8)) { |
+ mutable_profiling_data()->::sync_pb::ProfilingData::MergeFrom(from.profiling_data()); |
+ } |
+ } |
+ mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
+} |
+ |
+void ClientToServerResponse::CopyFrom(const ClientToServerResponse& from) { |
+ if (&from == this) return; |
+ Clear(); |
+ MergeFrom(from); |
+} |
+ |
+bool ClientToServerResponse::IsInitialized() const { |
+ |
+ if (has_commit()) { |
+ if (!this->commit().IsInitialized()) return false; |
+ } |
+ if (has_get_updates()) { |
+ if (!this->get_updates().IsInitialized()) return false; |
+ } |
+ if (has_authenticate()) { |
+ if (!this->authenticate().IsInitialized()) return false; |
+ } |
+ return true; |
+} |
+ |
+void ClientToServerResponse::Swap(ClientToServerResponse* other) { |
+ if (other != this) { |
+ std::swap(commit_, other->commit_); |
+ std::swap(get_updates_, other->get_updates_); |
+ std::swap(authenticate_, other->authenticate_); |
+ std::swap(clear_user_data_, other->clear_user_data_); |
+ std::swap(error_code_, other->error_code_); |
+ std::swap(error_message_, other->error_message_); |
+ std::swap(store_birthday_, other->store_birthday_); |
+ std::swap(client_command_, other->client_command_); |
+ std::swap(profiling_data_, other->profiling_data_); |
+ std::swap(_has_bits_[0], other->_has_bits_[0]); |
+ _unknown_fields_.Swap(&other->_unknown_fields_); |
+ std::swap(_cached_size_, other->_cached_size_); |
+ } |
+} |
+ |
+::std::string ClientToServerResponse::GetTypeName() const { |
+ return "sync_pb.ClientToServerResponse"; |
+} |
+ |
+ |
+// @@protoc_insertion_point(namespace_scope) |
+ |
+} // namespace sync_pb |
+ |
+// @@protoc_insertion_point(global_scope) |