// Generated by the protocol buffer compiler. DO NOT EDIT! // source: preference_specifics.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "preference_specifics.pb.h" #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace sync_pb { class PreferenceSpecificsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PreferenceSpecifics_default_instance_; namespace protobuf_preference_5fspecifics_2eproto { PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField const TableStruct::entries[] = { {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField const TableStruct::aux[] = { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] = { { NULL, NULL, 0, -1, -1, false }, }; void TableStruct::Shutdown() { _PreferenceSpecifics_default_instance_.Shutdown(); } void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); _PreferenceSpecifics_default_instance_.DefaultConstruct(); } void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } void AddDescriptorsImpl() { InitDefaults(); ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); } void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } } // namespace protobuf_preference_5fspecifics_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PreferenceSpecifics::kNameFieldNumber; const int PreferenceSpecifics::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PreferenceSpecifics::PreferenceSpecifics() : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_preference_5fspecifics_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:sync_pb.PreferenceSpecifics) } PreferenceSpecifics::PreferenceSpecifics(const PreferenceSpecifics& from) : ::google::protobuf::MessageLite(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_name()) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_value()) { value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } // @@protoc_insertion_point(copy_constructor:sync_pb.PreferenceSpecifics) } void PreferenceSpecifics::SharedCtor() { _cached_size_ = 0; name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } PreferenceSpecifics::~PreferenceSpecifics() { // @@protoc_insertion_point(destructor:sync_pb.PreferenceSpecifics) SharedDtor(); } void PreferenceSpecifics::SharedDtor() { name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void PreferenceSpecifics::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const PreferenceSpecifics& PreferenceSpecifics::default_instance() { protobuf_preference_5fspecifics_2eproto::InitDefaults(); return *internal_default_instance(); } PreferenceSpecifics* PreferenceSpecifics::New(::google::protobuf::Arena* arena) const { PreferenceSpecifics* n = new PreferenceSpecifics; if (arena != NULL) { arena->Own(n); } return n; } void PreferenceSpecifics::Clear() { // @@protoc_insertion_point(message_clear_start:sync_pb.PreferenceSpecifics) if (_has_bits_[0 / 32] & 3u) { if (has_name()) { GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*name_.UnsafeRawStringPointer())->clear(); } if (has_value()) { GOOGLE_DCHECK(!value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*value_.UnsafeRawStringPointer())->clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool PreferenceSpecifics::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( ::google::protobuf::NewPermanentCallback(&_internal_metadata_, &::google::protobuf::internal::InternalMetadataWithArenaLite:: mutable_unknown_fields)); ::google::protobuf::io::CodedOutputStream unknown_fields_stream( &unknown_fields_string, false); // @@protoc_insertion_point(parse_start:sync_pb.PreferenceSpecifics) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); } else { goto handle_unusual; } break; } // optional string value = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_value())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( input, tag, &unknown_fields_stream)); break; } } } success: // @@protoc_insertion_point(parse_success:sync_pb.PreferenceSpecifics) return true; failure: // @@protoc_insertion_point(parse_failure:sync_pb.PreferenceSpecifics) return false; #undef DO_ } void PreferenceSpecifics::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:sync_pb.PreferenceSpecifics) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string name = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // optional string value = 2; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->value(), output); } output->WriteRaw(unknown_fields().data(), static_cast(unknown_fields().size())); // @@protoc_insertion_point(serialize_end:sync_pb.PreferenceSpecifics) } size_t PreferenceSpecifics::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:sync_pb.PreferenceSpecifics) size_t total_size = 0; total_size += unknown_fields().size(); if (_has_bits_[0 / 32] & 3u) { // optional string name = 1; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // optional string value = 2; if (has_value()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->value()); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void PreferenceSpecifics::CheckTypeAndMergeFrom( const ::google::protobuf::MessageLite& from) { MergeFrom(*::google::protobuf::down_cast(&from)); } void PreferenceSpecifics::MergeFrom(const PreferenceSpecifics& from) { // @@protoc_insertion_point(class_specific_merge_from_start:sync_pb.PreferenceSpecifics) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 3u) { if (cached_has_bits & 0x00000001u) { set_has_name(); name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (cached_has_bits & 0x00000002u) { set_has_value(); value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } } } void PreferenceSpecifics::CopyFrom(const PreferenceSpecifics& from) { // @@protoc_insertion_point(class_specific_copy_from_start:sync_pb.PreferenceSpecifics) if (&from == this) return; Clear(); MergeFrom(from); } bool PreferenceSpecifics::IsInitialized() const { return true; } void PreferenceSpecifics::Swap(PreferenceSpecifics* other) { if (other == this) return; InternalSwap(other); } void PreferenceSpecifics::InternalSwap(PreferenceSpecifics* other) { name_.Swap(&other->name_); value_.Swap(&other->value_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::std::string PreferenceSpecifics::GetTypeName() const { return "sync_pb.PreferenceSpecifics"; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // PreferenceSpecifics // optional string name = 1; bool PreferenceSpecifics::has_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } void PreferenceSpecifics::set_has_name() { _has_bits_[0] |= 0x00000001u; } void PreferenceSpecifics::clear_has_name() { _has_bits_[0] &= ~0x00000001u; } void PreferenceSpecifics::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_name(); } const ::std::string& PreferenceSpecifics::name() const { // @@protoc_insertion_point(field_get:sync_pb.PreferenceSpecifics.name) return name_.GetNoArena(); } void PreferenceSpecifics::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:sync_pb.PreferenceSpecifics.name) } #if LANG_CXX11 void PreferenceSpecifics::set_name(::std::string&& value) { set_has_name(); name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:sync_pb.PreferenceSpecifics.name) } #endif void PreferenceSpecifics::set_name(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:sync_pb.PreferenceSpecifics.name) } void PreferenceSpecifics::set_name(const char* value, size_t size) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:sync_pb.PreferenceSpecifics.name) } ::std::string* PreferenceSpecifics::mutable_name() { set_has_name(); // @@protoc_insertion_point(field_mutable:sync_pb.PreferenceSpecifics.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* PreferenceSpecifics::release_name() { // @@protoc_insertion_point(field_release:sync_pb.PreferenceSpecifics.name) clear_has_name(); return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void PreferenceSpecifics::set_allocated_name(::std::string* name) { if (name != NULL) { set_has_name(); } else { clear_has_name(); } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:sync_pb.PreferenceSpecifics.name) } // optional string value = 2; bool PreferenceSpecifics::has_value() const { return (_has_bits_[0] & 0x00000002u) != 0; } void PreferenceSpecifics::set_has_value() { _has_bits_[0] |= 0x00000002u; } void PreferenceSpecifics::clear_has_value() { _has_bits_[0] &= ~0x00000002u; } void PreferenceSpecifics::clear_value() { value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_value(); } const ::std::string& PreferenceSpecifics::value() const { // @@protoc_insertion_point(field_get:sync_pb.PreferenceSpecifics.value) return value_.GetNoArena(); } void PreferenceSpecifics::set_value(const ::std::string& value) { set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:sync_pb.PreferenceSpecifics.value) } #if LANG_CXX11 void PreferenceSpecifics::set_value(::std::string&& value) { set_has_value(); value_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:sync_pb.PreferenceSpecifics.value) } #endif void PreferenceSpecifics::set_value(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:sync_pb.PreferenceSpecifics.value) } void PreferenceSpecifics::set_value(const char* value, size_t size) { set_has_value(); value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:sync_pb.PreferenceSpecifics.value) } ::std::string* PreferenceSpecifics::mutable_value() { set_has_value(); // @@protoc_insertion_point(field_mutable:sync_pb.PreferenceSpecifics.value) return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* PreferenceSpecifics::release_value() { // @@protoc_insertion_point(field_release:sync_pb.PreferenceSpecifics.value) clear_has_value(); return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void PreferenceSpecifics::set_allocated_value(::std::string* value) { if (value != NULL) { set_has_value(); } else { clear_has_value(); } value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set_allocated:sync_pb.PreferenceSpecifics.value) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace sync_pb // @@protoc_insertion_point(global_scope)