// Generated by the protocol buffer compiler. DO NOT EDIT! // source: phonenumber.proto #include "phonenumber.pb.h" #include #include #include #include #include // @@protoc_insertion_point(includes) #include namespace i18n { namespace phonenumbers { class PhoneNumberDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PhoneNumber_default_instance_; } // namespace phonenumbers } // namespace i18n static void InitDefaultsscc_info_PhoneNumber_phonenumber_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::i18n::phonenumbers::_PhoneNumber_default_instance_; new (ptr) ::i18n::phonenumbers::PhoneNumber(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::i18n::phonenumbers::PhoneNumber::InitAsDefaultInstance(); } ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PhoneNumber_phonenumber_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PhoneNumber_phonenumber_2eproto}, {}}; namespace i18n { namespace phonenumbers { bool PhoneNumber_CountryCodeSource_IsValid(int value) { switch (value) { case 0: case 1: case 5: case 10: case 20: return true; default: return false; } } static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PhoneNumber_CountryCodeSource_strings[5] = {}; static const char PhoneNumber_CountryCodeSource_names[] = "FROM_DEFAULT_COUNTRY" "FROM_NUMBER_WITHOUT_PLUS_SIGN" "FROM_NUMBER_WITH_IDD" "FROM_NUMBER_WITH_PLUS_SIGN" "UNSPECIFIED"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PhoneNumber_CountryCodeSource_entries[] = { { {PhoneNumber_CountryCodeSource_names + 0, 20}, 20 }, { {PhoneNumber_CountryCodeSource_names + 20, 29}, 10 }, { {PhoneNumber_CountryCodeSource_names + 49, 20}, 5 }, { {PhoneNumber_CountryCodeSource_names + 69, 26}, 1 }, { {PhoneNumber_CountryCodeSource_names + 95, 11}, 0 }, }; static const int PhoneNumber_CountryCodeSource_entries_by_number[] = { 4, // 0 -> UNSPECIFIED 3, // 1 -> FROM_NUMBER_WITH_PLUS_SIGN 2, // 5 -> FROM_NUMBER_WITH_IDD 1, // 10 -> FROM_NUMBER_WITHOUT_PLUS_SIGN 0, // 20 -> FROM_DEFAULT_COUNTRY }; const std::string& PhoneNumber_CountryCodeSource_Name( PhoneNumber_CountryCodeSource value) { static const bool dummy = ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( PhoneNumber_CountryCodeSource_entries, PhoneNumber_CountryCodeSource_entries_by_number, 5, PhoneNumber_CountryCodeSource_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( PhoneNumber_CountryCodeSource_entries, PhoneNumber_CountryCodeSource_entries_by_number, 5, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : PhoneNumber_CountryCodeSource_strings[idx].get(); } bool PhoneNumber_CountryCodeSource_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( PhoneNumber_CountryCodeSource_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr PhoneNumber_CountryCodeSource PhoneNumber::UNSPECIFIED; constexpr PhoneNumber_CountryCodeSource PhoneNumber::FROM_NUMBER_WITH_PLUS_SIGN; constexpr PhoneNumber_CountryCodeSource PhoneNumber::FROM_NUMBER_WITH_IDD; constexpr PhoneNumber_CountryCodeSource PhoneNumber::FROM_NUMBER_WITHOUT_PLUS_SIGN; constexpr PhoneNumber_CountryCodeSource PhoneNumber::FROM_DEFAULT_COUNTRY; constexpr PhoneNumber_CountryCodeSource PhoneNumber::CountryCodeSource_MIN; constexpr PhoneNumber_CountryCodeSource PhoneNumber::CountryCodeSource_MAX; constexpr int PhoneNumber::CountryCodeSource_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) // =================================================================== void PhoneNumber::InitAsDefaultInstance() { } class PhoneNumber::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_country_code(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_national_number(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_extension(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_italian_leading_zero(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_number_of_leading_zeros(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_raw_input(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_country_code_source(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_preferred_domestic_carrier_code(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000018) ^ 0x00000018) != 0; } }; PhoneNumber::PhoneNumber(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:i18n.phonenumbers.PhoneNumber) } PhoneNumber::PhoneNumber(const PhoneNumber& from) : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); extension_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_extension()) { extension_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_extension(), GetArena()); } raw_input_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_raw_input()) { raw_input_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_raw_input(), GetArena()); } preferred_domestic_carrier_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_preferred_domestic_carrier_code()) { preferred_domestic_carrier_code_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_preferred_domestic_carrier_code(), GetArena()); } ::memcpy(&national_number_, &from.national_number_, static_cast(reinterpret_cast(&number_of_leading_zeros_) - reinterpret_cast(&national_number_)) + sizeof(number_of_leading_zeros_)); // @@protoc_insertion_point(copy_constructor:i18n.phonenumbers.PhoneNumber) } void PhoneNumber::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PhoneNumber_phonenumber_2eproto.base); extension_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); raw_input_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); preferred_domestic_carrier_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&national_number_, 0, static_cast( reinterpret_cast(&country_code_source_) - reinterpret_cast(&national_number_)) + sizeof(country_code_source_)); number_of_leading_zeros_ = 1; } PhoneNumber::~PhoneNumber() { // @@protoc_insertion_point(destructor:i18n.phonenumbers.PhoneNumber) SharedDtor(); _internal_metadata_.Delete(); } void PhoneNumber::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); extension_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); raw_input_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); preferred_domestic_carrier_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void PhoneNumber::ArenaDtor(void* object) { PhoneNumber* _this = reinterpret_cast< PhoneNumber* >(object); (void)_this; } void PhoneNumber::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { } void PhoneNumber::SetCachedSize(int size) const { _cached_size_.Set(size); } const PhoneNumber& PhoneNumber::default_instance() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PhoneNumber_phonenumber_2eproto.base); return *internal_default_instance(); } void PhoneNumber::Clear() { // @@protoc_insertion_point(message_clear_start:i18n.phonenumbers.PhoneNumber) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { extension_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { raw_input_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { preferred_domestic_carrier_code_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x000000f8u) { ::memset(&national_number_, 0, static_cast( reinterpret_cast(&country_code_source_) - reinterpret_cast(&national_number_)) + sizeof(country_code_source_)); number_of_leading_zeros_ = 1; } _has_bits_.Clear(); _internal_metadata_.Clear(); } const char* PhoneNumber::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // required int32 country_code = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_country_code(&has_bits); country_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // required uint64 national_number = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { _Internal::set_has_national_number(&has_bits); national_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string extension = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_extension(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bool italian_leading_zero = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { _Internal::set_has_italian_leading_zero(&has_bits); italian_leading_zero_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string raw_input = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { auto str = _internal_mutable_raw_input(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .i18n.phonenumbers.PhoneNumber.CountryCodeSource country_code_source = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::i18n::phonenumbers::PhoneNumber_CountryCodeSource_IsValid(val))) { _internal_set_country_code_source(static_cast<::i18n::phonenumbers::PhoneNumber_CountryCodeSource>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional string preferred_domestic_carrier_code = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { auto str = _internal_mutable_preferred_domestic_carrier_code(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional int32 number_of_leading_zeros = 8 [default = 1]; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { _Internal::set_has_number_of_leading_zeros(&has_bits); number_of_leading_zeros_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* PhoneNumber::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:i18n.phonenumbers.PhoneNumber) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // required int32 country_code = 1; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_country_code(), target); } // required uint64 national_number = 2; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_national_number(), target); } // optional string extension = 3; if (cached_has_bits & 0x00000001u) { target = stream->WriteStringMaybeAliased( 3, this->_internal_extension(), target); } // optional bool italian_leading_zero = 4; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_italian_leading_zero(), target); } // optional string raw_input = 5; if (cached_has_bits & 0x00000002u) { target = stream->WriteStringMaybeAliased( 5, this->_internal_raw_input(), target); } // optional .i18n.phonenumbers.PhoneNumber.CountryCodeSource country_code_source = 6; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 6, this->_internal_country_code_source(), target); } // optional string preferred_domestic_carrier_code = 7; if (cached_has_bits & 0x00000004u) { target = stream->WriteStringMaybeAliased( 7, this->_internal_preferred_domestic_carrier_code(), target); } // optional int32 number_of_leading_zeros = 8 [default = 1]; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_number_of_leading_zeros(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); } // @@protoc_insertion_point(serialize_to_array_end:i18n.phonenumbers.PhoneNumber) return target; } size_t PhoneNumber::RequiredFieldsByteSizeFallback() const { // @@protoc_insertion_point(required_fields_byte_size_fallback_start:i18n.phonenumbers.PhoneNumber) size_t total_size = 0; if (_internal_has_national_number()) { // required uint64 national_number = 2; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_national_number()); } if (_internal_has_country_code()) { // required int32 country_code = 1; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_country_code()); } return total_size; } size_t PhoneNumber::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:i18n.phonenumbers.PhoneNumber) size_t total_size = 0; if (((_has_bits_[0] & 0x00000018) ^ 0x00000018) == 0) { // All required fields are present. // required uint64 national_number = 2; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_national_number()); // required int32 country_code = 1; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_country_code()); } else { total_size += RequiredFieldsByteSizeFallback(); } ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string extension = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_extension()); } // optional string raw_input = 5; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_raw_input()); } // optional string preferred_domestic_carrier_code = 7; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_preferred_domestic_carrier_code()); } } if (cached_has_bits & 0x000000e0u) { // optional bool italian_leading_zero = 4; if (cached_has_bits & 0x00000020u) { total_size += 1 + 1; } // optional .i18n.phonenumbers.PhoneNumber.CountryCodeSource country_code_source = 6; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_country_code_source()); } // optional int32 number_of_leading_zeros = 8 [default = 1]; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_number_of_leading_zeros()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PhoneNumber::CheckTypeAndMergeFrom( const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( &from)); } void PhoneNumber::MergeFrom(const PhoneNumber& from) { // @@protoc_insertion_point(class_specific_merge_from_start:i18n.phonenumbers.PhoneNumber) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_extension(from._internal_extension()); } if (cached_has_bits & 0x00000002u) { _internal_set_raw_input(from._internal_raw_input()); } if (cached_has_bits & 0x00000004u) { _internal_set_preferred_domestic_carrier_code(from._internal_preferred_domestic_carrier_code()); } if (cached_has_bits & 0x00000008u) { national_number_ = from.national_number_; } if (cached_has_bits & 0x00000010u) { country_code_ = from.country_code_; } if (cached_has_bits & 0x00000020u) { italian_leading_zero_ = from.italian_leading_zero_; } if (cached_has_bits & 0x00000040u) { country_code_source_ = from.country_code_source_; } if (cached_has_bits & 0x00000080u) { number_of_leading_zeros_ = from.number_of_leading_zeros_; } _has_bits_[0] |= cached_has_bits; } } void PhoneNumber::CopyFrom(const PhoneNumber& from) { // @@protoc_insertion_point(class_specific_copy_from_start:i18n.phonenumbers.PhoneNumber) if (&from == this) return; Clear(); MergeFrom(from); } bool PhoneNumber::IsInitialized() const { if (_Internal::MissingRequiredFields(_has_bits_)) return false; return true; } void PhoneNumber::InternalSwap(PhoneNumber* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); extension_.Swap(&other->extension_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); raw_input_.Swap(&other->raw_input_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); preferred_domestic_carrier_code_.Swap(&other->preferred_domestic_carrier_code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PhoneNumber, country_code_source_) + sizeof(PhoneNumber::country_code_source_) - PROTOBUF_FIELD_OFFSET(PhoneNumber, national_number_)>( reinterpret_cast(&national_number_), reinterpret_cast(&other->national_number_)); swap(number_of_leading_zeros_, other->number_of_leading_zeros_); } std::string PhoneNumber::GetTypeName() const { return "i18n.phonenumbers.PhoneNumber"; } // @@protoc_insertion_point(namespace_scope) } // namespace phonenumbers } // namespace i18n PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::i18n::phonenumbers::PhoneNumber* Arena::CreateMaybeMessage< ::i18n::phonenumbers::PhoneNumber >(Arena* arena) { return Arena::CreateMessageInternal< ::i18n::phonenumbers::PhoneNumber >(arena); } PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include