text: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: phonemetadata.proto
  
  #ifndef PROTOBUF_INCLUDED_phonemetadata_2eproto
  #define PROTOBUF_INCLUDED_phonemetadata_2eproto
  
  #include <string>
  
  #include <google/protobuf/stubs/common.h>
  
  #if GOOGLE_PROTOBUF_VERSION < 3006000
  #error This file was generated by a newer version of protoc which is
  #error incompatible with your Protocol Buffer headers.  Please update
  #error your headers.
  #endif
  #if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  #error This file was generated by an older version of protoc which is
  #error incompatible with your Protocol Buffer headers.  Please
  #error regenerate this file with a newer version of protoc.
  #endif
  
  #include <google/protobuf/io/coded_stream.h>
  #include <google/protobuf/arena.h>
  #include <google/protobuf/arenastring.h>
  #include <google/protobuf/generated_message_table_driven.h>
  #include <google/protobuf/generated_message_util.h>
  #include <google/protobuf/inlined_string_field.h>
  #include <google/protobuf/metadata_lite.h>
  #include <google/protobuf/message_lite.h>
  #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
  #include <google/protobuf/extension_set.h>  // IWYU pragma: export
  // @@protoc_insertion_point(includes)
  #define PROTOBUF_INTERNAL_EXPORT_protobuf_phonemetadata_2eproto 
  
  namespace protobuf_phonemetadata_2eproto {
  // Internal implementation detail -- do not use these members.
  struct TableStruct {
    static const ::google::protobuf::internal::ParseTableField entries[];
    static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
    static const ::google::protobuf::internal::ParseTable schema[4];
    static const ::google::protobuf::internal::FieldMetadata field_metadata[];
    static const ::google::protobuf::internal::SerializationTable serialization_table[];
    static const ::google::protobuf::uint32 offsets[];
  };
  }  // namespace protobuf_phonemetadata_2eproto
  namespace i18n {
  namespace phonenumbers {
  class NumberFormat;
  class NumberFormatDefaultTypeInternal;
  extern NumberFormatDefaultTypeInternal _NumberFormat_default_instance_;
  class PhoneMetadata;
  class PhoneMetadataDefaultTypeInternal;
  extern PhoneMetadataDefaultTypeInternal _PhoneMetadata_default_instance_;
  class PhoneMetadataCollection;
  class PhoneMetadataCollectionDefaultTypeInternal;
  extern PhoneMetadataCollectionDefaultTypeInternal _PhoneMetadataCollection_default_instance_;
  class PhoneNumberDesc;
  class PhoneNumberDescDefaultTypeInternal;
  extern PhoneNumberDescDefaultTypeInternal _PhoneNumberDesc_default_instance_;
  }  // namespace phonenumbers
  }  // namespace i18n
  namespace google {
  namespace protobuf {
  template<> ::i18n::phonenumbers::NumberFormat* Arena::CreateMaybeMessage<::i18n::phonenumbers::NumberFormat>(Arena*);
  template<> ::i18n::phonenumbers::PhoneMetadata* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadata>(Arena*);
  template<> ::i18n::phonenumbers::PhoneMetadataCollection* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadataCollection>(Arena*);
  template<> ::i18n::phonenumbers::PhoneNumberDesc* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(Arena*);
  }  // namespace protobuf
  }  // namespace google
  namespace i18n {
  namespace phonenumbers {
  
  // ===================================================================
  
  class NumberFormat : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.NumberFormat) */ {
   public:
    NumberFormat();
    virtual ~NumberFormat();
  
    NumberFormat(const NumberFormat& from);
  
    inline NumberFormat& operator=(const NumberFormat& from) {
      CopyFrom(from);
      return *this;
    }
    #if LANG_CXX11
    NumberFormat(NumberFormat&& from) noexcept
      : NumberFormat() {
      *this = ::std::move(from);
    }
  
    inline NumberFormat& operator=(NumberFormat&& from) noexcept {
      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
        if (this != &from) InternalSwap(&from);
      } else {
        CopyFrom(from);
      }
      return *this;
    }
    #endif
    inline const ::std::string& unknown_fields() const {
      return _internal_metadata_.unknown_fields();
    }
    inline ::std::string* mutable_unknown_fields() {
      return _internal_metadata_.mutable_unknown_fields();
    }
  
    static const NumberFormat& default_instance();
  
    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
    static inline const NumberFormat* internal_default_instance() {
      return reinterpret_cast<const NumberFormat*>(
                 &_NumberFormat_default_instance_);
    }
    static constexpr int kIndexInFileMessages =
      0;
  
    void Swap(NumberFormat* other);
    friend void swap(NumberFormat& a, NumberFormat& b) {
      a.Swap(&b);
    }
  
    // implements Message ----------------------------------------------
  
    inline NumberFormat* New() const final {
      return CreateMaybeMessage<NumberFormat>(NULL);
    }
  
    NumberFormat* New(::google::protobuf::Arena* arena) const final {
      return CreateMaybeMessage<NumberFormat>(arena);
    }
    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
      final;
    void CopyFrom(const NumberFormat& from);
    void MergeFrom(const NumberFormat& from);
    void Clear() final;
    bool IsInitialized() const final;
  
    size_t ByteSizeLong() const final;
    bool MergePartialFromCodedStream(
        ::google::protobuf::io::CodedInputStream* input) final;
    void SerializeWithCachedSizes(
        ::google::protobuf::io::CodedOutputStream* output) const final;
    void DiscardUnknownFields();
    int GetCachedSize() const final { return _cached_size_.Get(); }
  
    private:
    void SharedCtor();
    void SharedDtor();
    void SetCachedSize(int size) const;
    void InternalSwap(NumberFormat* other);
    private:
    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
      return NULL;
    }
    inline void* MaybeArenaPtr() const {
      return NULL;
    }
    public:
  
    ::std::string GetTypeName() const final;
  
    // nested types ----------------------------------------------------
  
    // accessors -------------------------------------------------------
  
    // repeated string leading_digits_pattern = 3;
    int leading_digits_pattern_size() const;
    void clear_leading_digits_pattern();
    static const int kLeadingDigitsPatternFieldNumber = 3;
    const ::std::string& leading_digits_pattern(int index) const;
    ::std::string* mutable_leading_digits_pattern(int index);
    void set_leading_digits_pattern(int index, const ::std::string& value);
    #if LANG_CXX11
    void set_leading_digits_pattern(int index, ::std::string&& value);
    #endif
    void set_leading_digits_pattern(int index, const char* value);
    void set_leading_digits_pattern(int index, const char* value, size_t size);
    ::std::string* add_leading_digits_pattern();
    void add_leading_digits_pattern(const ::std::string& value);
    #if LANG_CXX11
    void add_leading_digits_pattern(::std::string&& value);
    #endif
    void add_leading_digits_pattern(const char* value);
    void add_leading_digits_pattern(const char* value, size_t size);
    const ::google::protobuf::RepeatedPtrField< ::std::string>& leading_digits_pattern() const;
    ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_leading_digits_pattern();
  
    // required string pattern = 1;
    bool has_pattern() const;
    void clear_pattern();
    static const int kPatternFieldNumber = 1;
    const ::std::string& pattern() const;
    void set_pattern(const ::std::string& value);
    #if LANG_CXX11
    void set_pattern(::std::string&& value);
    #endif
    void set_pattern(const char* value);
    void set_pattern(const char* value, size_t size);
    ::std::string* mutable_pattern();
    ::std::string* release_pattern();
    void set_allocated_pattern(::std::string* pattern);
  
    // required string format = 2;
    bool has_format() const;
    void clear_format();
    static const int kFormatFieldNumber = 2;
    const ::std::string& format() const;
    void set_format(const ::std::string& value);
    #if LANG_CXX11
    void set_format(::std::string&& value);
    #endif
    void set_format(const char* value);
    void set_format(const char* value, size_t size);
    ::std::string* mutable_format();
    ::std::string* release_format();
    void set_allocated_format(::std::string* format);
  
    // optional string national_prefix_formatting_rule = 4;
    bool has_national_prefix_formatting_rule() const;
    void clear_national_prefix_formatting_rule();
    static const int kNationalPrefixFormattingRuleFieldNumber = 4;
    const ::std::string& national_prefix_formatting_rule() const;
    void set_national_prefix_formatting_rule(const ::std::string& value);
    #if LANG_CXX11
    void set_national_prefix_formatting_rule(::std::string&& value);
    #endif
    void set_national_prefix_formatting_rule(const char* value);
    void set_national_prefix_formatting_rule(const char* value, size_t size);
    ::std::string* mutable_national_prefix_formatting_rule();
    ::std::string* release_national_prefix_formatting_rule();
    void set_allocated_national_prefix_formatting_rule(::std::string* national_prefix_formatting_rule);
  
    // optional string domestic_carrier_code_formatting_rule = 5;
    bool has_domestic_carrier_code_formatting_rule() const;
    void clear_domestic_carrier_code_formatting_rule();
    static const int kDomesticCarrierCodeFormattingRuleFieldNumber = 5;
    const ::std::string& domestic_carrier_code_formatting_rule() const;
    void set_domestic_carrier_code_formatting_rule(const ::std::string& value);
    #if LANG_CXX11
    void set_domestic_carrier_code_formatting_rule(::std::string&& value);
    #endif
    void set_domestic_carrier_code_formatting_rule(const char* value);
    void set_domestic_carrier_code_formatting_rule(const char* value, size_t size);
    ::std::string* mutable_domestic_carrier_code_formatting_rule();
    ::std::string* release_domestic_carrier_code_formatting_rule();
    void set_allocated_domestic_carrier_code_formatting_rule(::std::string* domestic_carrier_code_formatting_rule);
  
    // optional bool national_prefix_optional_when_formatting = 6 [default = false];
    bool has_national_prefix_optional_when_formatting() const;
    void clear_national_prefix_optional_when_formatting();
    static const int kNationalPrefixOptionalWhenFormattingFieldNumber = 6;
    bool national_prefix_optional_when_formatting() const;
    void set_national_prefix_optional_when_formatting(bool value);
  
    // @@protoc_insertion_point(class_scope:i18n.phonenumbers.NumberFormat)
   private:
    void set_has_pattern();
    void clear_has_pattern();
    void set_has_format();
    void clear_has_format();
    void set_has_national_prefix_formatting_rule();
    void clear_has_national_prefix_formatting_rule();
    void set_has_national_prefix_optional_when_formatting();
    void clear_has_national_prefix_optional_when_formatting();
    void set_has_domestic_carrier_code_formatting_rule();
    void clear_has_domestic_carrier_code_formatting_rule();
  
    // helper for ByteSizeLong()
    size_t RequiredFieldsByteSizeFallback() const;
  
    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::std::string> leading_digits_pattern_;
    ::google::protobuf::internal::ArenaStringPtr pattern_;
    ::google::protobuf::internal::ArenaStringPtr format_;
    ::google::protobuf::internal::ArenaStringPtr national_prefix_formatting_rule_;
    ::google::protobuf::internal::ArenaStringPtr domestic_carrier_code_formatting_rule_;
    bool national_prefix_optional_when_formatting_;
    friend struct ::protobuf_phonemetadata_2eproto::TableStruct;
  };
  // -------------------------------------------------------------------
  
  class PhoneNumberDesc : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneNumberDesc) */ {
   public:
    PhoneNumberDesc();
    virtual ~PhoneNumberDesc();
  
    PhoneNumberDesc(const PhoneNumberDesc& from);
  
    inline PhoneNumberDesc& operator=(const PhoneNumberDesc& from) {
      CopyFrom(from);
      return *this;
    }
    #if LANG_CXX11
    PhoneNumberDesc(PhoneNumberDesc&& from) noexcept
      : PhoneNumberDesc() {
      *this = ::std::move(from);
    }
  
    inline PhoneNumberDesc& operator=(PhoneNumberDesc&& from) noexcept {
      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
        if (this != &from) InternalSwap(&from);
      } else {
        CopyFrom(from);
      }
      return *this;
    }
    #endif
    inline const ::std::string& unknown_fields() const {
      return _internal_metadata_.unknown_fields();
    }
    inline ::std::string* mutable_unknown_fields() {
      return _internal_metadata_.mutable_unknown_fields();
    }
  
    static const PhoneNumberDesc& default_instance();
  
    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
    static inline const PhoneNumberDesc* internal_default_instance() {
      return reinterpret_cast<const PhoneNumberDesc*>(
                 &_PhoneNumberDesc_default_instance_);
    }
    static constexpr int kIndexInFileMessages =
      1;
  
    void Swap(PhoneNumberDesc* other);
    friend void swap(PhoneNumberDesc& a, PhoneNumberDesc& b) {
      a.Swap(&b);
    }
  
    // implements Message ----------------------------------------------
  
    inline PhoneNumberDesc* New() const final {
      return CreateMaybeMessage<PhoneNumberDesc>(NULL);
    }
  
    PhoneNumberDesc* New(::google::protobuf::Arena* arena) const final {
      return CreateMaybeMessage<PhoneNumberDesc>(arena);
    }
    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
      final;
    void CopyFrom(const PhoneNumberDesc& from);
    void MergeFrom(const PhoneNumberDesc& from);
    void Clear() final;
    bool IsInitialized() const final;
  
    size_t ByteSizeLong() const final;
    bool MergePartialFromCodedStream(
        ::google::protobuf::io::CodedInputStream* input) final;
    void SerializeWithCachedSizes(
        ::google::protobuf::io::CodedOutputStream* output) const final;
    void DiscardUnknownFields();
    int GetCachedSize() const final { return _cached_size_.Get(); }
  
    private:
    void SharedCtor();
    void SharedDtor();
    void SetCachedSize(int size) const;
    void InternalSwap(PhoneNumberDesc* other);
    private:
    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
      return NULL;
    }
    inline void* MaybeArenaPtr() const {
      return NULL;
    }
    public:
  
    ::std::string GetTypeName() const final;
  
    // nested types ----------------------------------------------------
  
    // accessors -------------------------------------------------------
  
    // repeated int32 possible_length = 9;
    int possible_length_size() const;
    void clear_possible_length();
    static const int kPossibleLengthFieldNumber = 9;
    ::google::protobuf::int32 possible_length(int index) const;
    void set_possible_length(int index, ::google::protobuf::int32 value);
    void add_possible_length(::google::protobuf::int32 value);
    const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
        possible_length() const;
    ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
        mutable_possible_length();
  
    // repeated int32 possible_length_local_only = 10;
    int possible_length_local_only_size() const;
    void clear_possible_length_local_only();
    static const int kPossibleLengthLocalOnlyFieldNumber = 10;
    ::google::protobuf::int32 possible_length_local_only(int index) const;
    void set_possible_length_local_only(int index, ::google::protobuf::int32 value);
    void add_possible_length_local_only(::google::protobuf::int32 value);
    const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
        possible_length_local_only() const;
    ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
        mutable_possible_length_local_only();
  
    // optional string national_number_pattern = 2;
    bool has_national_number_pattern() const;
    void clear_national_number_pattern();
    static const int kNationalNumberPatternFieldNumber = 2;
    const ::std::string& national_number_pattern() const;
    void set_national_number_pattern(const ::std::string& value);
    #if LANG_CXX11
    void set_national_number_pattern(::std::string&& value);
    #endif
    void set_national_number_pattern(const char* value);
    void set_national_number_pattern(const char* value, size_t size);
    ::std::string* mutable_national_number_pattern();
    ::std::string* release_national_number_pattern();
    void set_allocated_national_number_pattern(::std::string* national_number_pattern);
  
    // optional string example_number = 6;
    bool has_example_number() const;
    void clear_example_number();
    static const int kExampleNumberFieldNumber = 6;
    const ::std::string& example_number() const;
    void set_example_number(const ::std::string& value);
    #if LANG_CXX11
    void set_example_number(::std::string&& value);
    #endif
    void set_example_number(const char* value);
    void set_example_number(const char* value, size_t size);
    ::std::string* mutable_example_number();
    ::std::string* release_example_number();
    void set_allocated_example_number(::std::string* example_number);
  
    // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneNumberDesc)
   private:
    void set_has_national_number_pattern();
    void clear_has_national_number_pattern();
    void set_has_example_number();
    void clear_has_example_number();
  
    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedField< ::google::protobuf::int32 > possible_length_;
    ::google::protobuf::RepeatedField< ::google::protobuf::int32 > possible_length_local_only_;
    ::google::protobuf::internal::ArenaStringPtr national_number_pattern_;
    ::google::protobuf::internal::ArenaStringPtr example_number_;
    friend struct ::protobuf_phonemetadata_2eproto::TableStruct;
  };
  // -------------------------------------------------------------------
  
  class PhoneMetadata : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadata) */ {
   public:
    PhoneMetadata();
    virtual ~PhoneMetadata();
  
    PhoneMetadata(const PhoneMetadata& from);
  
    inline PhoneMetadata& operator=(const PhoneMetadata& from) {
      CopyFrom(from);
      return *this;
    }
    #if LANG_CXX11
    PhoneMetadata(PhoneMetadata&& from) noexcept
      : PhoneMetadata() {
      *this = ::std::move(from);
    }
  
    inline PhoneMetadata& operator=(PhoneMetadata&& from) noexcept {
      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
        if (this != &from) InternalSwap(&from);
      } else {
        CopyFrom(from);
      }
      return *this;
    }
    #endif
    inline const ::std::string& unknown_fields() const {
      return _internal_metadata_.unknown_fields();
    }
    inline ::std::string* mutable_unknown_fields() {
      return _internal_metadata_.mutable_unknown_fields();
    }
  
    static const PhoneMetadata& default_instance();
  
    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
    static inline const PhoneMetadata* internal_default_instance() {
      return reinterpret_cast<const PhoneMetadata*>(
                 &_PhoneMetadata_default_instance_);
    }
    static constexpr int kIndexInFileMessages =
      2;
  
    void Swap(PhoneMetadata* other);
    friend void swap(PhoneMetadata& a, PhoneMetadata& b) {
      a.Swap(&b);
    }
  
    // implements Message ----------------------------------------------
  
    inline PhoneMetadata* New() const final {
      return CreateMaybeMessage<PhoneMetadata>(NULL);
    }
  
    PhoneMetadata* New(::google::protobuf::Arena* arena) const final {
      return CreateMaybeMessage<PhoneMetadata>(arena);
    }
    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
      final;
    void CopyFrom(const PhoneMetadata& from);
    void MergeFrom(const PhoneMetadata& from);
    void Clear() final;
    bool IsInitialized() const final;
  
    size_t ByteSizeLong() const final;
    bool MergePartialFromCodedStream(
        ::google::protobuf::io::CodedInputStream* input) final;
    void SerializeWithCachedSizes(
        ::google::protobuf::io::CodedOutputStream* output) const final;
    void DiscardUnknownFields();
    int GetCachedSize() const final { return _cached_size_.Get(); }
  
    private:
    void SharedCtor();
    void SharedDtor();
    void SetCachedSize(int size) const;
    void InternalSwap(PhoneMetadata* other);
    private:
    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
      return NULL;
    }
    inline void* MaybeArenaPtr() const {
      return NULL;
    }
    public:
  
    ::std::string GetTypeName() const final;
  
    // nested types ----------------------------------------------------
  
    // accessors -------------------------------------------------------
  
    // repeated .i18n.phonenumbers.NumberFormat number_format = 19;
    int number_format_size() const;
    void clear_number_format();
    static const int kNumberFormatFieldNumber = 19;
    ::i18n::phonenumbers::NumberFormat* mutable_number_format(int index);
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
        mutable_number_format();
    const ::i18n::phonenumbers::NumberFormat& number_format(int index) const;
    ::i18n::phonenumbers::NumberFormat* add_number_format();
    const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
        number_format() const;
  
    // repeated .i18n.phonenumbers.NumberFormat intl_number_format = 20;
    int intl_number_format_size() const;
    void clear_intl_number_format();
    static const int kIntlNumberFormatFieldNumber = 20;
    ::i18n::phonenumbers::NumberFormat* mutable_intl_number_format(int index);
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
        mutable_intl_number_format();
    const ::i18n::phonenumbers::NumberFormat& intl_number_format(int index) const;
    ::i18n::phonenumbers::NumberFormat* add_intl_number_format();
    const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
        intl_number_format() const;
  
    // required string id = 9;
    bool has_id() const;
    void clear_id();
    static const int kIdFieldNumber = 9;
    const ::std::string& id() const;
    void set_id(const ::std::string& value);
    #if LANG_CXX11
    void set_id(::std::string&& value);
    #endif
    void set_id(const char* value);
    void set_id(const char* value, size_t size);
    ::std::string* mutable_id();
    ::std::string* release_id();
    void set_allocated_id(::std::string* id);
  
    // optional string international_prefix = 11;
    bool has_international_prefix() const;
    void clear_international_prefix();
    static const int kInternationalPrefixFieldNumber = 11;
    const ::std::string& international_prefix() const;
    void set_international_prefix(const ::std::string& value);
    #if LANG_CXX11
    void set_international_prefix(::std::string&& value);
    #endif
    void set_international_prefix(const char* value);
    void set_international_prefix(const char* value, size_t size);
    ::std::string* mutable_international_prefix();
    ::std::string* release_international_prefix();
    void set_allocated_international_prefix(::std::string* international_prefix);
  
    // optional string national_prefix = 12;
    bool has_national_prefix() const;
    void clear_national_prefix();
    static const int kNationalPrefixFieldNumber = 12;
    const ::std::string& national_prefix() const;
    void set_national_prefix(const ::std::string& value);
    #if LANG_CXX11
    void set_national_prefix(::std::string&& value);
    #endif
    void set_national_prefix(const char* value);
    void set_national_prefix(const char* value, size_t size);
    ::std::string* mutable_national_prefix();
    ::std::string* release_national_prefix();
    void set_allocated_national_prefix(::std::string* national_prefix);
  
    // optional string preferred_extn_prefix = 13;
    bool has_preferred_extn_prefix() const;
    void clear_preferred_extn_prefix();
    static const int kPreferredExtnPrefixFieldNumber = 13;
    const ::std::string& preferred_extn_prefix() const;
    void set_preferred_extn_prefix(const ::std::string& value);
    #if LANG_CXX11
    void set_preferred_extn_prefix(::std::string&& value);
    #endif
    void set_preferred_extn_prefix(const char* value);
    void set_preferred_extn_prefix(const char* value, size_t size);
    ::std::string* mutable_preferred_extn_prefix();
    ::std::string* release_preferred_extn_prefix();
    void set_allocated_preferred_extn_prefix(::std::string* preferred_extn_prefix);
  
    // optional string national_prefix_for_parsing = 15;
    bool has_national_prefix_for_parsing() const;
    void clear_national_prefix_for_parsing();
    static const int kNationalPrefixForParsingFieldNumber = 15;
    const ::std::string& national_prefix_for_parsing() const;
    void set_national_prefix_for_parsing(const ::std::string& value);
    #if LANG_CXX11
    void set_national_prefix_for_parsing(::std::string&& value);
    #endif
    void set_national_prefix_for_parsing(const char* value);
    void set_national_prefix_for_parsing(const char* value, size_t size);
    ::std::string* mutable_national_prefix_for_parsing();
    ::std::string* release_national_prefix_for_parsing();
    void set_allocated_national_prefix_for_parsing(::std::string* national_prefix_for_parsing);
  
    // optional string national_prefix_transform_rule = 16;
    bool has_national_prefix_transform_rule() const;
    void clear_national_prefix_transform_rule();
    static const int kNationalPrefixTransformRuleFieldNumber = 16;
    const ::std::string& national_prefix_transform_rule() const;
    void set_national_prefix_transform_rule(const ::std::string& value);
    #if LANG_CXX11
    void set_national_prefix_transform_rule(::std::string&& value);
    #endif
    void set_national_prefix_transform_rule(const char* value);
    void set_national_prefix_transform_rule(const char* value, size_t size);
    ::std::string* mutable_national_prefix_transform_rule();
    ::std::string* release_national_prefix_transform_rule();
    void set_allocated_national_prefix_transform_rule(::std::string* national_prefix_transform_rule);
  
    // optional string preferred_international_prefix = 17;
    bool has_preferred_international_prefix() const;
    void clear_preferred_international_prefix();
    static const int kPreferredInternationalPrefixFieldNumber = 17;
    const ::std::string& preferred_international_prefix() const;
    void set_preferred_international_prefix(const ::std::string& value);
    #if LANG_CXX11
    void set_preferred_international_prefix(::std::string&& value);
    #endif
    void set_preferred_international_prefix(const char* value);
    void set_preferred_international_prefix(const char* value, size_t size);
    ::std::string* mutable_preferred_international_prefix();
    ::std::string* release_preferred_international_prefix();
    void set_allocated_preferred_international_prefix(::std::string* preferred_international_prefix);
  
    // optional string leading_digits = 23;
    bool has_leading_digits() const;
    void clear_leading_digits();
    static const int kLeadingDigitsFieldNumber = 23;
    const ::std::string& leading_digits() const;
    void set_leading_digits(const ::std::string& value);
    #if LANG_CXX11
    void set_leading_digits(::std::string&& value);
    #endif
    void set_leading_digits(const char* value);
    void set_leading_digits(const char* value, size_t size);
    ::std::string* mutable_leading_digits();
    ::std::string* release_leading_digits();
    void set_allocated_leading_digits(::std::string* leading_digits);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1;
    bool has_general_desc() const;
    void clear_general_desc();
    static const int kGeneralDescFieldNumber = 1;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_general_desc() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& general_desc() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_general_desc();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_general_desc();
    void set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2;
    bool has_fixed_line() const;
    void clear_fixed_line();
    static const int kFixedLineFieldNumber = 2;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_fixed_line() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& fixed_line() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_fixed_line();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_fixed_line();
    void set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3;
    bool has_mobile() const;
    void clear_mobile();
    static const int kMobileFieldNumber = 3;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_mobile() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& mobile() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_mobile();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_mobile();
    void set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4;
    bool has_toll_free() const;
    void clear_toll_free();
    static const int kTollFreeFieldNumber = 4;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_toll_free() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& toll_free() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_toll_free();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_toll_free();
    void set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5;
    bool has_premium_rate() const;
    void clear_premium_rate();
    static const int kPremiumRateFieldNumber = 5;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_premium_rate() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& premium_rate() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_premium_rate();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_premium_rate();
    void set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6;
    bool has_shared_cost() const;
    void clear_shared_cost();
    static const int kSharedCostFieldNumber = 6;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_shared_cost() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& shared_cost() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_shared_cost();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_shared_cost();
    void set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7;
    bool has_personal_number() const;
    void clear_personal_number();
    static const int kPersonalNumberFieldNumber = 7;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_personal_number() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& personal_number() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_personal_number();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_personal_number();
    void set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8;
    bool has_voip() const;
    void clear_voip();
    static const int kVoipFieldNumber = 8;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voip() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& voip() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_voip();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_voip();
    void set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21;
    bool has_pager() const;
    void clear_pager();
    static const int kPagerFieldNumber = 21;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_pager() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& pager() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_pager();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_pager();
    void set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc no_international_dialling = 24;
    bool has_no_international_dialling() const;
    void clear_no_international_dialling();
    static const int kNoInternationalDiallingFieldNumber = 24;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_no_international_dialling() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& no_international_dialling() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_no_international_dialling();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_no_international_dialling();
    void set_allocated_no_international_dialling(::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25;
    bool has_uan() const;
    void clear_uan();
    static const int kUanFieldNumber = 25;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_uan() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& uan() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_uan();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_uan();
    void set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27;
    bool has_emergency() const;
    void clear_emergency();
    static const int kEmergencyFieldNumber = 27;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_emergency() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& emergency() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_emergency();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_emergency();
    void set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28;
    bool has_voicemail() const;
    void clear_voicemail();
    static const int kVoicemailFieldNumber = 28;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voicemail() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& voicemail() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_voicemail();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_voicemail();
    void set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29;
    bool has_short_code() const;
    void clear_short_code();
    static const int kShortCodeFieldNumber = 29;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_short_code() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& short_code() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_short_code();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_short_code();
    void set_allocated_short_code(::i18n::phonenumbers::PhoneNumberDesc* short_code);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc standard_rate = 30;
    bool has_standard_rate() const;
    void clear_standard_rate();
    static const int kStandardRateFieldNumber = 30;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_standard_rate() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& standard_rate() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_standard_rate();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_standard_rate();
    void set_allocated_standard_rate(::i18n::phonenumbers::PhoneNumberDesc* standard_rate);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc carrier_specific = 31;
    bool has_carrier_specific() const;
    void clear_carrier_specific();
    static const int kCarrierSpecificFieldNumber = 31;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_carrier_specific() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& carrier_specific() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_carrier_specific();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_carrier_specific();
    void set_allocated_carrier_specific(::i18n::phonenumbers::PhoneNumberDesc* carrier_specific);
  
    // optional .i18n.phonenumbers.PhoneNumberDesc sms_services = 33;
    bool has_sms_services() const;
    void clear_sms_services();
    static const int kSmsServicesFieldNumber = 33;
    private:
    const ::i18n::phonenumbers::PhoneNumberDesc& _internal_sms_services() const;
    public:
    const ::i18n::phonenumbers::PhoneNumberDesc& sms_services() const;
    ::i18n::phonenumbers::PhoneNumberDesc* release_sms_services();
    ::i18n::phonenumbers::PhoneNumberDesc* mutable_sms_services();
    void set_allocated_sms_services(::i18n::phonenumbers::PhoneNumberDesc* sms_services);
  
    // optional int32 country_code = 10;
    bool has_country_code() const;
    void clear_country_code();
    static const int kCountryCodeFieldNumber = 10;
    ::google::protobuf::int32 country_code() const;
    void set_country_code(::google::protobuf::int32 value);
  
    // optional bool same_mobile_and_fixed_line_pattern = 18 [default = false];
    bool has_same_mobile_and_fixed_line_pattern() const;
    void clear_same_mobile_and_fixed_line_pattern();
    static const int kSameMobileAndFixedLinePatternFieldNumber = 18;
    bool same_mobile_and_fixed_line_pattern() const;
    void set_same_mobile_and_fixed_line_pattern(bool value);
  
    // optional bool main_country_for_code = 22 [default = false];
    bool has_main_country_for_code() const;
    void clear_main_country_for_code();
    static const int kMainCountryForCodeFieldNumber = 22;
    bool main_country_for_code() const;
    void set_main_country_for_code(bool value);
  
    // optional bool leading_zero_possible = 26 [default = false];
    bool has_leading_zero_possible() const;
    void clear_leading_zero_possible();
    static const int kLeadingZeroPossibleFieldNumber = 26;
    bool leading_zero_possible() const;
    void set_leading_zero_possible(bool value);
  
    // optional bool mobile_number_portable_region = 32 [default = false];
    bool has_mobile_number_portable_region() const;
    void clear_mobile_number_portable_region();
    static const int kMobileNumberPortableRegionFieldNumber = 32;
    bool mobile_number_portable_region() const;
    void set_mobile_number_portable_region(bool value);
  
    // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadata)
   private:
    void set_has_general_desc();
    void clear_has_general_desc();
    void set_has_fixed_line();
    void clear_has_fixed_line();
    void set_has_mobile();
    void clear_has_mobile();
    void set_has_toll_free();
    void clear_has_toll_free();
    void set_has_premium_rate();
    void clear_has_premium_rate();
    void set_has_shared_cost();
    void clear_has_shared_cost();
    void set_has_personal_number();
    void clear_has_personal_number();
    void set_has_voip();
    void clear_has_voip();
    void set_has_pager();
    void clear_has_pager();
    void set_has_uan();
    void clear_has_uan();
    void set_has_emergency();
    void clear_has_emergency();
    void set_has_voicemail();
    void clear_has_voicemail();
    void set_has_short_code();
    void clear_has_short_code();
    void set_has_standard_rate();
    void clear_has_standard_rate();
    void set_has_carrier_specific();
    void clear_has_carrier_specific();
    void set_has_sms_services();
    void clear_has_sms_services();
    void set_has_no_international_dialling();
    void clear_has_no_international_dialling();
    void set_has_id();
    void clear_has_id();
    void set_has_country_code();
    void clear_has_country_code();
    void set_has_international_prefix();
    void clear_has_international_prefix();
    void set_has_preferred_international_prefix();
    void clear_has_preferred_international_prefix();
    void set_has_national_prefix();
    void clear_has_national_prefix();
    void set_has_preferred_extn_prefix();
    void clear_has_preferred_extn_prefix();
    void set_has_national_prefix_for_parsing();
    void clear_has_national_prefix_for_parsing();
    void set_has_national_prefix_transform_rule();
    void clear_has_national_prefix_transform_rule();
    void set_has_same_mobile_and_fixed_line_pattern();
    void clear_has_same_mobile_and_fixed_line_pattern();
    void set_has_main_country_for_code();
    void clear_has_main_country_for_code();
    void set_has_leading_digits();
    void clear_has_leading_digits();
    void set_has_leading_zero_possible();
    void clear_has_leading_zero_possible();
    void set_has_mobile_number_portable_region();
    void clear_has_mobile_number_portable_region();
  
    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > number_format_;
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > intl_number_format_;
    ::google::protobuf::internal::ArenaStringPtr id_;
    ::google::protobuf::internal::ArenaStringPtr international_prefix_;
    ::google::protobuf::internal::ArenaStringPtr national_prefix_;
    ::google::protobuf::internal::ArenaStringPtr preferred_extn_prefix_;
    ::google::protobuf::internal::ArenaStringPtr national_prefix_for_parsing_;
    ::google::protobuf::internal::ArenaStringPtr national_prefix_transform_rule_;
    ::google::protobuf::internal::ArenaStringPtr preferred_international_prefix_;
    ::google::protobuf::internal::ArenaStringPtr leading_digits_;
    ::i18n::phonenumbers::PhoneNumberDesc* general_desc_;
    ::i18n::phonenumbers::PhoneNumberDesc* fixed_line_;
    ::i18n::phonenumbers::PhoneNumberDesc* mobile_;
    ::i18n::phonenumbers::PhoneNumberDesc* toll_free_;
    ::i18n::phonenumbers::PhoneNumberDesc* premium_rate_;
    ::i18n::phonenumbers::PhoneNumberDesc* shared_cost_;
    ::i18n::phonenumbers::PhoneNumberDesc* personal_number_;
    ::i18n::phonenumbers::PhoneNumberDesc* voip_;
    ::i18n::phonenumbers::PhoneNumberDesc* pager_;
    ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling_;
    ::i18n::phonenumbers::PhoneNumberDesc* uan_;
    ::i18n::phonenumbers::PhoneNumberDesc* emergency_;
    ::i18n::phonenumbers::PhoneNumberDesc* voicemail_;
    ::i18n::phonenumbers::PhoneNumberDesc* short_code_;
    ::i18n::phonenumbers::PhoneNumberDesc* standard_rate_;
    ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific_;
    ::i18n::phonenumbers::PhoneNumberDesc* sms_services_;
    ::google::protobuf::int32 country_code_;
    bool same_mobile_and_fixed_line_pattern_;
    bool main_country_for_code_;
    bool leading_zero_possible_;
    bool mobile_number_portable_region_;
    friend struct ::protobuf_phonemetadata_2eproto::TableStruct;
  };
  // -------------------------------------------------------------------
  
  class PhoneMetadataCollection : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadataCollection) */ {
   public:
    PhoneMetadataCollection();
    virtual ~PhoneMetadataCollection();
  
    PhoneMetadataCollection(const PhoneMetadataCollection& from);
  
    inline PhoneMetadataCollection& operator=(const PhoneMetadataCollection& from) {
      CopyFrom(from);
      return *this;
    }
    #if LANG_CXX11
    PhoneMetadataCollection(PhoneMetadataCollection&& from) noexcept
      : PhoneMetadataCollection() {
      *this = ::std::move(from);
    }
  
    inline PhoneMetadataCollection& operator=(PhoneMetadataCollection&& from) noexcept {
      if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
        if (this != &from) InternalSwap(&from);
      } else {
        CopyFrom(from);
      }
      return *this;
    }
    #endif
    inline const ::std::string& unknown_fields() const {
      return _internal_metadata_.unknown_fields();
    }
    inline ::std::string* mutable_unknown_fields() {
      return _internal_metadata_.mutable_unknown_fields();
    }
  
    static const PhoneMetadataCollection& default_instance();
  
    static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
    static inline const PhoneMetadataCollection* internal_default_instance() {
      return reinterpret_cast<const PhoneMetadataCollection*>(
                 &_PhoneMetadataCollection_default_instance_);
    }
    static constexpr int kIndexInFileMessages =
      3;
  
    void Swap(PhoneMetadataCollection* other);
    friend void swap(PhoneMetadataCollection& a, PhoneMetadataCollection& b) {
      a.Swap(&b);
    }
  
    // implements Message ----------------------------------------------
  
    inline PhoneMetadataCollection* New() const final {
      return CreateMaybeMessage<PhoneMetadataCollection>(NULL);
    }
  
    PhoneMetadataCollection* New(::google::protobuf::Arena* arena) const final {
      return CreateMaybeMessage<PhoneMetadataCollection>(arena);
    }
    void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
      final;
    void CopyFrom(const PhoneMetadataCollection& from);
    void MergeFrom(const PhoneMetadataCollection& from);
    void Clear() final;
    bool IsInitialized() const final;
  
    size_t ByteSizeLong() const final;
    bool MergePartialFromCodedStream(
        ::google::protobuf::io::CodedInputStream* input) final;
    void SerializeWithCachedSizes(
        ::google::protobuf::io::CodedOutputStream* output) const final;
    void DiscardUnknownFields();
    int GetCachedSize() const final { return _cached_size_.Get(); }
  
    private:
    void SharedCtor();
    void SharedDtor();
    void SetCachedSize(int size) const;
    void InternalSwap(PhoneMetadataCollection* other);
    private:
    inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
      return NULL;
    }
    inline void* MaybeArenaPtr() const {
      return NULL;
    }
    public:
  
    ::std::string GetTypeName() const final;
  
    // nested types ----------------------------------------------------
  
    // accessors -------------------------------------------------------
  
    // repeated .i18n.phonenumbers.PhoneMetadata metadata = 1;
    int metadata_size() const;
    void clear_metadata();
    static const int kMetadataFieldNumber = 1;
    ::i18n::phonenumbers::PhoneMetadata* mutable_metadata(int index);
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >*
        mutable_metadata();
    const ::i18n::phonenumbers::PhoneMetadata& metadata(int index) const;
    ::i18n::phonenumbers::PhoneMetadata* add_metadata();
    const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >&
        metadata() const;
  
    // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadataCollection)
   private:
  
    ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
    ::google::protobuf::internal::HasBits<1> _has_bits_;
    mutable ::google::protobuf::internal::CachedSize _cached_size_;
    ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata > metadata_;
    friend struct ::protobuf_phonemetadata_2eproto::TableStruct;
  };
  // ===================================================================
  
  
  // ===================================================================
  
  #ifdef __GNUC__
    #pragma GCC diagnostic push
    #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  #endif  // __GNUC__
  // NumberFormat
  
  // required string pattern = 1;
  inline bool NumberFormat::has_pattern() const {
    return (_has_bits_[0] & 0x00000001u) != 0;
  }
  inline void NumberFormat::set_has_pattern() {
    _has_bits_[0] |= 0x00000001u;
  }
  inline void NumberFormat::clear_has_pattern() {
    _has_bits_[0] &= ~0x00000001u;
  }
  inline void NumberFormat::clear_pattern() {
    pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_pattern();
  }
  inline const ::std::string& NumberFormat::pattern() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.pattern)
    return pattern_.GetNoArena();
  }
  inline void NumberFormat::set_pattern(const ::std::string& value) {
    set_has_pattern();
    pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.pattern)
  }
  #if LANG_CXX11
  inline void NumberFormat::set_pattern(::std::string&& value) {
    set_has_pattern();
    pattern_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.pattern)
  }
  #endif
  inline void NumberFormat::set_pattern(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_pattern();
    pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.pattern)
  }
  inline void NumberFormat::set_pattern(const char* value, size_t size) {
    set_has_pattern();
    pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.pattern)
  }
  inline ::std::string* NumberFormat::mutable_pattern() {
    set_has_pattern();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.pattern)
    return pattern_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* NumberFormat::release_pattern() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.pattern)
    if (!has_pattern()) {
      return NULL;
    }
    clear_has_pattern();
    return pattern_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void NumberFormat::set_allocated_pattern(::std::string* pattern) {
    if (pattern != NULL) {
      set_has_pattern();
    } else {
      clear_has_pattern();
    }
    pattern_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pattern);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.pattern)
  }
  
  // required string format = 2;
  inline bool NumberFormat::has_format() const {
    return (_has_bits_[0] & 0x00000002u) != 0;
  }
  inline void NumberFormat::set_has_format() {
    _has_bits_[0] |= 0x00000002u;
  }
  inline void NumberFormat::clear_has_format() {
    _has_bits_[0] &= ~0x00000002u;
  }
  inline void NumberFormat::clear_format() {
    format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_format();
  }
  inline const ::std::string& NumberFormat::format() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.format)
    return format_.GetNoArena();
  }
  inline void NumberFormat::set_format(const ::std::string& value) {
    set_has_format();
    format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.format)
  }
  #if LANG_CXX11
  inline void NumberFormat::set_format(::std::string&& value) {
    set_has_format();
    format_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.format)
  }
  #endif
  inline void NumberFormat::set_format(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_format();
    format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.format)
  }
  inline void NumberFormat::set_format(const char* value, size_t size) {
    set_has_format();
    format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.format)
  }
  inline ::std::string* NumberFormat::mutable_format() {
    set_has_format();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.format)
    return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* NumberFormat::release_format() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.format)
    if (!has_format()) {
      return NULL;
    }
    clear_has_format();
    return format_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void NumberFormat::set_allocated_format(::std::string* format) {
    if (format != NULL) {
      set_has_format();
    } else {
      clear_has_format();
    }
    format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.format)
  }
  
  // repeated string leading_digits_pattern = 3;
  inline int NumberFormat::leading_digits_pattern_size() const {
    return leading_digits_pattern_.size();
  }
  inline void NumberFormat::clear_leading_digits_pattern() {
    leading_digits_pattern_.Clear();
  }
  inline const ::std::string& NumberFormat::leading_digits_pattern(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    return leading_digits_pattern_.Get(index);
  }
  inline ::std::string* NumberFormat::mutable_leading_digits_pattern(int index) {
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    return leading_digits_pattern_.Mutable(index);
  }
  inline void NumberFormat::set_leading_digits_pattern(int index, const ::std::string& value) {
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    leading_digits_pattern_.Mutable(index)->assign(value);
  }
  #if LANG_CXX11
  inline void NumberFormat::set_leading_digits_pattern(int index, ::std::string&& value) {
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    leading_digits_pattern_.Mutable(index)->assign(std::move(value));
  }
  #endif
  inline void NumberFormat::set_leading_digits_pattern(int index, const char* value) {
    GOOGLE_DCHECK(value != NULL);
    leading_digits_pattern_.Mutable(index)->assign(value);
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  inline void NumberFormat::set_leading_digits_pattern(int index, const char* value, size_t size) {
    leading_digits_pattern_.Mutable(index)->assign(
      reinterpret_cast<const char*>(value), size);
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  inline ::std::string* NumberFormat::add_leading_digits_pattern() {
    // @@protoc_insertion_point(field_add_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    return leading_digits_pattern_.Add();
  }
  inline void NumberFormat::add_leading_digits_pattern(const ::std::string& value) {
    leading_digits_pattern_.Add()->assign(value);
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  #if LANG_CXX11
  inline void NumberFormat::add_leading_digits_pattern(::std::string&& value) {
    leading_digits_pattern_.Add(std::move(value));
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  #endif
  inline void NumberFormat::add_leading_digits_pattern(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    leading_digits_pattern_.Add()->assign(value);
    // @@protoc_insertion_point(field_add_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  inline void NumberFormat::add_leading_digits_pattern(const char* value, size_t size) {
    leading_digits_pattern_.Add()->assign(reinterpret_cast<const char*>(value), size);
    // @@protoc_insertion_point(field_add_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
  }
  inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  NumberFormat::leading_digits_pattern() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    return leading_digits_pattern_;
  }
  inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  NumberFormat::mutable_leading_digits_pattern() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
    return &leading_digits_pattern_;
  }
  
  // optional string national_prefix_formatting_rule = 4;
  inline bool NumberFormat::has_national_prefix_formatting_rule() const {
    return (_has_bits_[0] & 0x00000004u) != 0;
  }
  inline void NumberFormat::set_has_national_prefix_formatting_rule() {
    _has_bits_[0] |= 0x00000004u;
  }
  inline void NumberFormat::clear_has_national_prefix_formatting_rule() {
    _has_bits_[0] &= ~0x00000004u;
  }
  inline void NumberFormat::clear_national_prefix_formatting_rule() {
    national_prefix_formatting_rule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_national_prefix_formatting_rule();
  }
  inline const ::std::string& NumberFormat::national_prefix_formatting_rule() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
    return national_prefix_formatting_rule_.GetNoArena();
  }
  inline void NumberFormat::set_national_prefix_formatting_rule(const ::std::string& value) {
    set_has_national_prefix_formatting_rule();
    national_prefix_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
  }
  #if LANG_CXX11
  inline void NumberFormat::set_national_prefix_formatting_rule(::std::string&& value) {
    set_has_national_prefix_formatting_rule();
    national_prefix_formatting_rule_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
  }
  #endif
  inline void NumberFormat::set_national_prefix_formatting_rule(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_national_prefix_formatting_rule();
    national_prefix_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
  }
  inline void NumberFormat::set_national_prefix_formatting_rule(const char* value, size_t size) {
    set_has_national_prefix_formatting_rule();
    national_prefix_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
  }
  inline ::std::string* NumberFormat::mutable_national_prefix_formatting_rule() {
    set_has_national_prefix_formatting_rule();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
    return national_prefix_formatting_rule_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* NumberFormat::release_national_prefix_formatting_rule() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
    if (!has_national_prefix_formatting_rule()) {
      return NULL;
    }
    clear_has_national_prefix_formatting_rule();
    return national_prefix_formatting_rule_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void NumberFormat::set_allocated_national_prefix_formatting_rule(::std::string* national_prefix_formatting_rule) {
    if (national_prefix_formatting_rule != NULL) {
      set_has_national_prefix_formatting_rule();
    } else {
      clear_has_national_prefix_formatting_rule();
    }
    national_prefix_formatting_rule_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), national_prefix_formatting_rule);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
  }
  
  // optional bool national_prefix_optional_when_formatting = 6 [default = false];
  inline bool NumberFormat::has_national_prefix_optional_when_formatting() const {
    return (_has_bits_[0] & 0x00000010u) != 0;
  }
  inline void NumberFormat::set_has_national_prefix_optional_when_formatting() {
    _has_bits_[0] |= 0x00000010u;
  }
  inline void NumberFormat::clear_has_national_prefix_optional_when_formatting() {
    _has_bits_[0] &= ~0x00000010u;
  }
  inline void NumberFormat::clear_national_prefix_optional_when_formatting() {
    national_prefix_optional_when_formatting_ = false;
    clear_has_national_prefix_optional_when_formatting();
  }
  inline bool NumberFormat::national_prefix_optional_when_formatting() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting)
    return national_prefix_optional_when_formatting_;
  }
  inline void NumberFormat::set_national_prefix_optional_when_formatting(bool value) {
    set_has_national_prefix_optional_when_formatting();
    national_prefix_optional_when_formatting_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting)
  }
  
  // optional string domestic_carrier_code_formatting_rule = 5;
  inline bool NumberFormat::has_domestic_carrier_code_formatting_rule() const {
    return (_has_bits_[0] & 0x00000008u) != 0;
  }
  inline void NumberFormat::set_has_domestic_carrier_code_formatting_rule() {
    _has_bits_[0] |= 0x00000008u;
  }
  inline void NumberFormat::clear_has_domestic_carrier_code_formatting_rule() {
    _has_bits_[0] &= ~0x00000008u;
  }
  inline void NumberFormat::clear_domestic_carrier_code_formatting_rule() {
    domestic_carrier_code_formatting_rule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_domestic_carrier_code_formatting_rule();
  }
  inline const ::std::string& NumberFormat::domestic_carrier_code_formatting_rule() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
    return domestic_carrier_code_formatting_rule_.GetNoArena();
  }
  inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const ::std::string& value) {
    set_has_domestic_carrier_code_formatting_rule();
    domestic_carrier_code_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
  }
  #if LANG_CXX11
  inline void NumberFormat::set_domestic_carrier_code_formatting_rule(::std::string&& value) {
    set_has_domestic_carrier_code_formatting_rule();
    domestic_carrier_code_formatting_rule_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
  }
  #endif
  inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_domestic_carrier_code_formatting_rule();
    domestic_carrier_code_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
  }
  inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value, size_t size) {
    set_has_domestic_carrier_code_formatting_rule();
    domestic_carrier_code_formatting_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
  }
  inline ::std::string* NumberFormat::mutable_domestic_carrier_code_formatting_rule() {
    set_has_domestic_carrier_code_formatting_rule();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
    return domestic_carrier_code_formatting_rule_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* NumberFormat::release_domestic_carrier_code_formatting_rule() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
    if (!has_domestic_carrier_code_formatting_rule()) {
      return NULL;
    }
    clear_has_domestic_carrier_code_formatting_rule();
    return domestic_carrier_code_formatting_rule_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void NumberFormat::set_allocated_domestic_carrier_code_formatting_rule(::std::string* domestic_carrier_code_formatting_rule) {
    if (domestic_carrier_code_formatting_rule != NULL) {
      set_has_domestic_carrier_code_formatting_rule();
    } else {
      clear_has_domestic_carrier_code_formatting_rule();
    }
    domestic_carrier_code_formatting_rule_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domestic_carrier_code_formatting_rule);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
  }
  
  // -------------------------------------------------------------------
  
  // PhoneNumberDesc
  
  // optional string national_number_pattern = 2;
  inline bool PhoneNumberDesc::has_national_number_pattern() const {
    return (_has_bits_[0] & 0x00000001u) != 0;
  }
  inline void PhoneNumberDesc::set_has_national_number_pattern() {
    _has_bits_[0] |= 0x00000001u;
  }
  inline void PhoneNumberDesc::clear_has_national_number_pattern() {
    _has_bits_[0] &= ~0x00000001u;
  }
  inline void PhoneNumberDesc::clear_national_number_pattern() {
    national_number_pattern_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_national_number_pattern();
  }
  inline const ::std::string& PhoneNumberDesc::national_number_pattern() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
    return national_number_pattern_.GetNoArena();
  }
  inline void PhoneNumberDesc::set_national_number_pattern(const ::std::string& value) {
    set_has_national_number_pattern();
    national_number_pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
  }
  #if LANG_CXX11
  inline void PhoneNumberDesc::set_national_number_pattern(::std::string&& value) {
    set_has_national_number_pattern();
    national_number_pattern_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
  }
  #endif
  inline void PhoneNumberDesc::set_national_number_pattern(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_national_number_pattern();
    national_number_pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
  }
  inline void PhoneNumberDesc::set_national_number_pattern(const char* value, size_t size) {
    set_has_national_number_pattern();
    national_number_pattern_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
  }
  inline ::std::string* PhoneNumberDesc::mutable_national_number_pattern() {
    set_has_national_number_pattern();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
    return national_number_pattern_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneNumberDesc::release_national_number_pattern() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
    if (!has_national_number_pattern()) {
      return NULL;
    }
    clear_has_national_number_pattern();
    return national_number_pattern_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneNumberDesc::set_allocated_national_number_pattern(::std::string* national_number_pattern) {
    if (national_number_pattern != NULL) {
      set_has_national_number_pattern();
    } else {
      clear_has_national_number_pattern();
    }
    national_number_pattern_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), national_number_pattern);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
  }
  
  // repeated int32 possible_length = 9;
  inline int PhoneNumberDesc::possible_length_size() const {
    return possible_length_.size();
  }
  inline void PhoneNumberDesc::clear_possible_length() {
    possible_length_.Clear();
  }
  inline ::google::protobuf::int32 PhoneNumberDesc::possible_length(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length)
    return possible_length_.Get(index);
  }
  inline void PhoneNumberDesc::set_possible_length(int index, ::google::protobuf::int32 value) {
    possible_length_.Set(index, value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length)
  }
  inline void PhoneNumberDesc::add_possible_length(::google::protobuf::int32 value) {
    possible_length_.Add(value);
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length)
  }
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  PhoneNumberDesc::possible_length() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length)
    return possible_length_;
  }
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  PhoneNumberDesc::mutable_possible_length() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length)
    return &possible_length_;
  }
  
  // repeated int32 possible_length_local_only = 10;
  inline int PhoneNumberDesc::possible_length_local_only_size() const {
    return possible_length_local_only_.size();
  }
  inline void PhoneNumberDesc::clear_possible_length_local_only() {
    possible_length_local_only_.Clear();
  }
  inline ::google::protobuf::int32 PhoneNumberDesc::possible_length_local_only(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
    return possible_length_local_only_.Get(index);
  }
  inline void PhoneNumberDesc::set_possible_length_local_only(int index, ::google::protobuf::int32 value) {
    possible_length_local_only_.Set(index, value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
  }
  inline void PhoneNumberDesc::add_possible_length_local_only(::google::protobuf::int32 value) {
    possible_length_local_only_.Add(value);
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
  }
  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  PhoneNumberDesc::possible_length_local_only() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
    return possible_length_local_only_;
  }
  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  PhoneNumberDesc::mutable_possible_length_local_only() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
    return &possible_length_local_only_;
  }
  
  // optional string example_number = 6;
  inline bool PhoneNumberDesc::has_example_number() const {
    return (_has_bits_[0] & 0x00000002u) != 0;
  }
  inline void PhoneNumberDesc::set_has_example_number() {
    _has_bits_[0] |= 0x00000002u;
  }
  inline void PhoneNumberDesc::clear_has_example_number() {
    _has_bits_[0] &= ~0x00000002u;
  }
  inline void PhoneNumberDesc::clear_example_number() {
    example_number_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_example_number();
  }
  inline const ::std::string& PhoneNumberDesc::example_number() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.example_number)
    return example_number_.GetNoArena();
  }
  inline void PhoneNumberDesc::set_example_number(const ::std::string& value) {
    set_has_example_number();
    example_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.example_number)
  }
  #if LANG_CXX11
  inline void PhoneNumberDesc::set_example_number(::std::string&& value) {
    set_has_example_number();
    example_number_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.example_number)
  }
  #endif
  inline void PhoneNumberDesc::set_example_number(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_example_number();
    example_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.example_number)
  }
  inline void PhoneNumberDesc::set_example_number(const char* value, size_t size) {
    set_has_example_number();
    example_number_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.example_number)
  }
  inline ::std::string* PhoneNumberDesc::mutable_example_number() {
    set_has_example_number();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.example_number)
    return example_number_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneNumberDesc::release_example_number() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.example_number)
    if (!has_example_number()) {
      return NULL;
    }
    clear_has_example_number();
    return example_number_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneNumberDesc::set_allocated_example_number(::std::string* example_number) {
    if (example_number != NULL) {
      set_has_example_number();
    } else {
      clear_has_example_number();
    }
    example_number_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), example_number);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.example_number)
  }
  
  // -------------------------------------------------------------------
  
  // PhoneMetadata
  
  // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1;
  inline bool PhoneMetadata::has_general_desc() const {
    return (_has_bits_[0] & 0x00000100u) != 0;
  }
  inline void PhoneMetadata::set_has_general_desc() {
    _has_bits_[0] |= 0x00000100u;
  }
  inline void PhoneMetadata::clear_has_general_desc() {
    _has_bits_[0] &= ~0x00000100u;
  }
  inline void PhoneMetadata::clear_general_desc() {
    if (general_desc_ != NULL) general_desc_->Clear();
    clear_has_general_desc();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_general_desc() const {
    return *general_desc_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::general_desc() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = general_desc_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.general_desc)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_general_desc() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.general_desc)
    clear_has_general_desc();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = general_desc_;
    general_desc_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_general_desc() {
    set_has_general_desc();
    if (general_desc_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      general_desc_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.general_desc)
    return general_desc_;
  }
  inline void PhoneMetadata::set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete general_desc_;
    }
    if (general_desc) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        general_desc = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, general_desc, submessage_arena);
      }
      set_has_general_desc();
    } else {
      clear_has_general_desc();
    }
    general_desc_ = general_desc;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.general_desc)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2;
  inline bool PhoneMetadata::has_fixed_line() const {
    return (_has_bits_[0] & 0x00000200u) != 0;
  }
  inline void PhoneMetadata::set_has_fixed_line() {
    _has_bits_[0] |= 0x00000200u;
  }
  inline void PhoneMetadata::clear_has_fixed_line() {
    _has_bits_[0] &= ~0x00000200u;
  }
  inline void PhoneMetadata::clear_fixed_line() {
    if (fixed_line_ != NULL) fixed_line_->Clear();
    clear_has_fixed_line();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_fixed_line() const {
    return *fixed_line_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::fixed_line() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = fixed_line_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.fixed_line)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_fixed_line() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.fixed_line)
    clear_has_fixed_line();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = fixed_line_;
    fixed_line_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_fixed_line() {
    set_has_fixed_line();
    if (fixed_line_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      fixed_line_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.fixed_line)
    return fixed_line_;
  }
  inline void PhoneMetadata::set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete fixed_line_;
    }
    if (fixed_line) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        fixed_line = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, fixed_line, submessage_arena);
      }
      set_has_fixed_line();
    } else {
      clear_has_fixed_line();
    }
    fixed_line_ = fixed_line;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.fixed_line)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3;
  inline bool PhoneMetadata::has_mobile() const {
    return (_has_bits_[0] & 0x00000400u) != 0;
  }
  inline void PhoneMetadata::set_has_mobile() {
    _has_bits_[0] |= 0x00000400u;
  }
  inline void PhoneMetadata::clear_has_mobile() {
    _has_bits_[0] &= ~0x00000400u;
  }
  inline void PhoneMetadata::clear_mobile() {
    if (mobile_ != NULL) mobile_->Clear();
    clear_has_mobile();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_mobile() const {
    return *mobile_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::mobile() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = mobile_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.mobile)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_mobile() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.mobile)
    clear_has_mobile();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = mobile_;
    mobile_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_mobile() {
    set_has_mobile();
    if (mobile_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      mobile_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.mobile)
    return mobile_;
  }
  inline void PhoneMetadata::set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete mobile_;
    }
    if (mobile) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        mobile = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, mobile, submessage_arena);
      }
      set_has_mobile();
    } else {
      clear_has_mobile();
    }
    mobile_ = mobile;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.mobile)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4;
  inline bool PhoneMetadata::has_toll_free() const {
    return (_has_bits_[0] & 0x00000800u) != 0;
  }
  inline void PhoneMetadata::set_has_toll_free() {
    _has_bits_[0] |= 0x00000800u;
  }
  inline void PhoneMetadata::clear_has_toll_free() {
    _has_bits_[0] &= ~0x00000800u;
  }
  inline void PhoneMetadata::clear_toll_free() {
    if (toll_free_ != NULL) toll_free_->Clear();
    clear_has_toll_free();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_toll_free() const {
    return *toll_free_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::toll_free() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = toll_free_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.toll_free)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_toll_free() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.toll_free)
    clear_has_toll_free();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = toll_free_;
    toll_free_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_toll_free() {
    set_has_toll_free();
    if (toll_free_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      toll_free_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.toll_free)
    return toll_free_;
  }
  inline void PhoneMetadata::set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete toll_free_;
    }
    if (toll_free) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        toll_free = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, toll_free, submessage_arena);
      }
      set_has_toll_free();
    } else {
      clear_has_toll_free();
    }
    toll_free_ = toll_free;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.toll_free)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5;
  inline bool PhoneMetadata::has_premium_rate() const {
    return (_has_bits_[0] & 0x00001000u) != 0;
  }
  inline void PhoneMetadata::set_has_premium_rate() {
    _has_bits_[0] |= 0x00001000u;
  }
  inline void PhoneMetadata::clear_has_premium_rate() {
    _has_bits_[0] &= ~0x00001000u;
  }
  inline void PhoneMetadata::clear_premium_rate() {
    if (premium_rate_ != NULL) premium_rate_->Clear();
    clear_has_premium_rate();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_premium_rate() const {
    return *premium_rate_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::premium_rate() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = premium_rate_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.premium_rate)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_premium_rate() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.premium_rate)
    clear_has_premium_rate();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = premium_rate_;
    premium_rate_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_premium_rate() {
    set_has_premium_rate();
    if (premium_rate_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      premium_rate_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.premium_rate)
    return premium_rate_;
  }
  inline void PhoneMetadata::set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete premium_rate_;
    }
    if (premium_rate) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        premium_rate = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, premium_rate, submessage_arena);
      }
      set_has_premium_rate();
    } else {
      clear_has_premium_rate();
    }
    premium_rate_ = premium_rate;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.premium_rate)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6;
  inline bool PhoneMetadata::has_shared_cost() const {
    return (_has_bits_[0] & 0x00002000u) != 0;
  }
  inline void PhoneMetadata::set_has_shared_cost() {
    _has_bits_[0] |= 0x00002000u;
  }
  inline void PhoneMetadata::clear_has_shared_cost() {
    _has_bits_[0] &= ~0x00002000u;
  }
  inline void PhoneMetadata::clear_shared_cost() {
    if (shared_cost_ != NULL) shared_cost_->Clear();
    clear_has_shared_cost();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_shared_cost() const {
    return *shared_cost_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::shared_cost() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = shared_cost_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.shared_cost)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_shared_cost() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.shared_cost)
    clear_has_shared_cost();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = shared_cost_;
    shared_cost_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_shared_cost() {
    set_has_shared_cost();
    if (shared_cost_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      shared_cost_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.shared_cost)
    return shared_cost_;
  }
  inline void PhoneMetadata::set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete shared_cost_;
    }
    if (shared_cost) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        shared_cost = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, shared_cost, submessage_arena);
      }
      set_has_shared_cost();
    } else {
      clear_has_shared_cost();
    }
    shared_cost_ = shared_cost;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.shared_cost)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7;
  inline bool PhoneMetadata::has_personal_number() const {
    return (_has_bits_[0] & 0x00004000u) != 0;
  }
  inline void PhoneMetadata::set_has_personal_number() {
    _has_bits_[0] |= 0x00004000u;
  }
  inline void PhoneMetadata::clear_has_personal_number() {
    _has_bits_[0] &= ~0x00004000u;
  }
  inline void PhoneMetadata::clear_personal_number() {
    if (personal_number_ != NULL) personal_number_->Clear();
    clear_has_personal_number();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_personal_number() const {
    return *personal_number_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::personal_number() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = personal_number_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.personal_number)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_personal_number() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.personal_number)
    clear_has_personal_number();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = personal_number_;
    personal_number_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_personal_number() {
    set_has_personal_number();
    if (personal_number_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      personal_number_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.personal_number)
    return personal_number_;
  }
  inline void PhoneMetadata::set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete personal_number_;
    }
    if (personal_number) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        personal_number = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, personal_number, submessage_arena);
      }
      set_has_personal_number();
    } else {
      clear_has_personal_number();
    }
    personal_number_ = personal_number;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.personal_number)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8;
  inline bool PhoneMetadata::has_voip() const {
    return (_has_bits_[0] & 0x00008000u) != 0;
  }
  inline void PhoneMetadata::set_has_voip() {
    _has_bits_[0] |= 0x00008000u;
  }
  inline void PhoneMetadata::clear_has_voip() {
    _has_bits_[0] &= ~0x00008000u;
  }
  inline void PhoneMetadata::clear_voip() {
    if (voip_ != NULL) voip_->Clear();
    clear_has_voip();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voip() const {
    return *voip_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voip() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = voip_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voip)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voip() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voip)
    clear_has_voip();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = voip_;
    voip_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voip() {
    set_has_voip();
    if (voip_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      voip_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voip)
    return voip_;
  }
  inline void PhoneMetadata::set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete voip_;
    }
    if (voip) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        voip = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, voip, submessage_arena);
      }
      set_has_voip();
    } else {
      clear_has_voip();
    }
    voip_ = voip;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voip)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21;
  inline bool PhoneMetadata::has_pager() const {
    return (_has_bits_[0] & 0x00010000u) != 0;
  }
  inline void PhoneMetadata::set_has_pager() {
    _has_bits_[0] |= 0x00010000u;
  }
  inline void PhoneMetadata::clear_has_pager() {
    _has_bits_[0] &= ~0x00010000u;
  }
  inline void PhoneMetadata::clear_pager() {
    if (pager_ != NULL) pager_->Clear();
    clear_has_pager();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_pager() const {
    return *pager_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::pager() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = pager_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.pager)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_pager() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.pager)
    clear_has_pager();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = pager_;
    pager_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_pager() {
    set_has_pager();
    if (pager_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      pager_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.pager)
    return pager_;
  }
  inline void PhoneMetadata::set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete pager_;
    }
    if (pager) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        pager = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, pager, submessage_arena);
      }
      set_has_pager();
    } else {
      clear_has_pager();
    }
    pager_ = pager;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.pager)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25;
  inline bool PhoneMetadata::has_uan() const {
    return (_has_bits_[0] & 0x00040000u) != 0;
  }
  inline void PhoneMetadata::set_has_uan() {
    _has_bits_[0] |= 0x00040000u;
  }
  inline void PhoneMetadata::clear_has_uan() {
    _has_bits_[0] &= ~0x00040000u;
  }
  inline void PhoneMetadata::clear_uan() {
    if (uan_ != NULL) uan_->Clear();
    clear_has_uan();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_uan() const {
    return *uan_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::uan() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = uan_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.uan)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_uan() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.uan)
    clear_has_uan();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = uan_;
    uan_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_uan() {
    set_has_uan();
    if (uan_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      uan_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.uan)
    return uan_;
  }
  inline void PhoneMetadata::set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete uan_;
    }
    if (uan) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        uan = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, uan, submessage_arena);
      }
      set_has_uan();
    } else {
      clear_has_uan();
    }
    uan_ = uan;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.uan)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27;
  inline bool PhoneMetadata::has_emergency() const {
    return (_has_bits_[0] & 0x00080000u) != 0;
  }
  inline void PhoneMetadata::set_has_emergency() {
    _has_bits_[0] |= 0x00080000u;
  }
  inline void PhoneMetadata::clear_has_emergency() {
    _has_bits_[0] &= ~0x00080000u;
  }
  inline void PhoneMetadata::clear_emergency() {
    if (emergency_ != NULL) emergency_->Clear();
    clear_has_emergency();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_emergency() const {
    return *emergency_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::emergency() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = emergency_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.emergency)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_emergency() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.emergency)
    clear_has_emergency();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = emergency_;
    emergency_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_emergency() {
    set_has_emergency();
    if (emergency_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      emergency_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.emergency)
    return emergency_;
  }
  inline void PhoneMetadata::set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete emergency_;
    }
    if (emergency) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        emergency = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, emergency, submessage_arena);
      }
      set_has_emergency();
    } else {
      clear_has_emergency();
    }
    emergency_ = emergency;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.emergency)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28;
  inline bool PhoneMetadata::has_voicemail() const {
    return (_has_bits_[0] & 0x00100000u) != 0;
  }
  inline void PhoneMetadata::set_has_voicemail() {
    _has_bits_[0] |= 0x00100000u;
  }
  inline void PhoneMetadata::clear_has_voicemail() {
    _has_bits_[0] &= ~0x00100000u;
  }
  inline void PhoneMetadata::clear_voicemail() {
    if (voicemail_ != NULL) voicemail_->Clear();
    clear_has_voicemail();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voicemail() const {
    return *voicemail_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voicemail() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = voicemail_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voicemail)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voicemail() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voicemail)
    clear_has_voicemail();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = voicemail_;
    voicemail_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voicemail() {
    set_has_voicemail();
    if (voicemail_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      voicemail_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voicemail)
    return voicemail_;
  }
  inline void PhoneMetadata::set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete voicemail_;
    }
    if (voicemail) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        voicemail = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, voicemail, submessage_arena);
      }
      set_has_voicemail();
    } else {
      clear_has_voicemail();
    }
    voicemail_ = voicemail;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voicemail)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29;
  inline bool PhoneMetadata::has_short_code() const {
    return (_has_bits_[0] & 0x00200000u) != 0;
  }
  inline void PhoneMetadata::set_has_short_code() {
    _has_bits_[0] |= 0x00200000u;
  }
  inline void PhoneMetadata::clear_has_short_code() {
    _has_bits_[0] &= ~0x00200000u;
  }
  inline void PhoneMetadata::clear_short_code() {
    if (short_code_ != NULL) short_code_->Clear();
    clear_has_short_code();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_short_code() const {
    return *short_code_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::short_code() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = short_code_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.short_code)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_short_code() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.short_code)
    clear_has_short_code();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = short_code_;
    short_code_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_short_code() {
    set_has_short_code();
    if (short_code_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      short_code_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.short_code)
    return short_code_;
  }
  inline void PhoneMetadata::set_allocated_short_code(::i18n::phonenumbers::PhoneNumberDesc* short_code) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete short_code_;
    }
    if (short_code) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        short_code = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, short_code, submessage_arena);
      }
      set_has_short_code();
    } else {
      clear_has_short_code();
    }
    short_code_ = short_code;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.short_code)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc standard_rate = 30;
  inline bool PhoneMetadata::has_standard_rate() const {
    return (_has_bits_[0] & 0x00400000u) != 0;
  }
  inline void PhoneMetadata::set_has_standard_rate() {
    _has_bits_[0] |= 0x00400000u;
  }
  inline void PhoneMetadata::clear_has_standard_rate() {
    _has_bits_[0] &= ~0x00400000u;
  }
  inline void PhoneMetadata::clear_standard_rate() {
    if (standard_rate_ != NULL) standard_rate_->Clear();
    clear_has_standard_rate();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_standard_rate() const {
    return *standard_rate_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::standard_rate() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = standard_rate_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.standard_rate)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_standard_rate() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.standard_rate)
    clear_has_standard_rate();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = standard_rate_;
    standard_rate_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_standard_rate() {
    set_has_standard_rate();
    if (standard_rate_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      standard_rate_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.standard_rate)
    return standard_rate_;
  }
  inline void PhoneMetadata::set_allocated_standard_rate(::i18n::phonenumbers::PhoneNumberDesc* standard_rate) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete standard_rate_;
    }
    if (standard_rate) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        standard_rate = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, standard_rate, submessage_arena);
      }
      set_has_standard_rate();
    } else {
      clear_has_standard_rate();
    }
    standard_rate_ = standard_rate;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.standard_rate)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc carrier_specific = 31;
  inline bool PhoneMetadata::has_carrier_specific() const {
    return (_has_bits_[0] & 0x00800000u) != 0;
  }
  inline void PhoneMetadata::set_has_carrier_specific() {
    _has_bits_[0] |= 0x00800000u;
  }
  inline void PhoneMetadata::clear_has_carrier_specific() {
    _has_bits_[0] &= ~0x00800000u;
  }
  inline void PhoneMetadata::clear_carrier_specific() {
    if (carrier_specific_ != NULL) carrier_specific_->Clear();
    clear_has_carrier_specific();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_carrier_specific() const {
    return *carrier_specific_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::carrier_specific() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = carrier_specific_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.carrier_specific)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_carrier_specific() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.carrier_specific)
    clear_has_carrier_specific();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = carrier_specific_;
    carrier_specific_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_carrier_specific() {
    set_has_carrier_specific();
    if (carrier_specific_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      carrier_specific_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.carrier_specific)
    return carrier_specific_;
  }
  inline void PhoneMetadata::set_allocated_carrier_specific(::i18n::phonenumbers::PhoneNumberDesc* carrier_specific) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete carrier_specific_;
    }
    if (carrier_specific) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        carrier_specific = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, carrier_specific, submessage_arena);
      }
      set_has_carrier_specific();
    } else {
      clear_has_carrier_specific();
    }
    carrier_specific_ = carrier_specific;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.carrier_specific)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc sms_services = 33;
  inline bool PhoneMetadata::has_sms_services() const {
    return (_has_bits_[0] & 0x01000000u) != 0;
  }
  inline void PhoneMetadata::set_has_sms_services() {
    _has_bits_[0] |= 0x01000000u;
  }
  inline void PhoneMetadata::clear_has_sms_services() {
    _has_bits_[0] &= ~0x01000000u;
  }
  inline void PhoneMetadata::clear_sms_services() {
    if (sms_services_ != NULL) sms_services_->Clear();
    clear_has_sms_services();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_sms_services() const {
    return *sms_services_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::sms_services() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = sms_services_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.sms_services)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_sms_services() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.sms_services)
    clear_has_sms_services();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = sms_services_;
    sms_services_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_sms_services() {
    set_has_sms_services();
    if (sms_services_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      sms_services_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.sms_services)
    return sms_services_;
  }
  inline void PhoneMetadata::set_allocated_sms_services(::i18n::phonenumbers::PhoneNumberDesc* sms_services) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete sms_services_;
    }
    if (sms_services) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        sms_services = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, sms_services, submessage_arena);
      }
      set_has_sms_services();
    } else {
      clear_has_sms_services();
    }
    sms_services_ = sms_services;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.sms_services)
  }
  
  // optional .i18n.phonenumbers.PhoneNumberDesc no_international_dialling = 24;
  inline bool PhoneMetadata::has_no_international_dialling() const {
    return (_has_bits_[0] & 0x00020000u) != 0;
  }
  inline void PhoneMetadata::set_has_no_international_dialling() {
    _has_bits_[0] |= 0x00020000u;
  }
  inline void PhoneMetadata::clear_has_no_international_dialling() {
    _has_bits_[0] &= ~0x00020000u;
  }
  inline void PhoneMetadata::clear_no_international_dialling() {
    if (no_international_dialling_ != NULL) no_international_dialling_->Clear();
    clear_has_no_international_dialling();
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_no_international_dialling() const {
    return *no_international_dialling_;
  }
  inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::no_international_dialling() const {
    const ::i18n::phonenumbers::PhoneNumberDesc* p = no_international_dialling_;
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.no_international_dialling)
    return p != NULL ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
        &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_no_international_dialling() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.no_international_dialling)
    clear_has_no_international_dialling();
    ::i18n::phonenumbers::PhoneNumberDesc* temp = no_international_dialling_;
    no_international_dialling_ = NULL;
    return temp;
  }
  inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_no_international_dialling() {
    set_has_no_international_dialling();
    if (no_international_dialling_ == NULL) {
      auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArenaNoVirtual());
      no_international_dialling_ = p;
    }
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.no_international_dialling)
    return no_international_dialling_;
  }
  inline void PhoneMetadata::set_allocated_no_international_dialling(::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling) {
    ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
    if (message_arena == NULL) {
      delete no_international_dialling_;
    }
    if (no_international_dialling) {
      ::google::protobuf::Arena* submessage_arena = NULL;
      if (message_arena != submessage_arena) {
        no_international_dialling = ::google::protobuf::internal::GetOwnedMessage(
            message_arena, no_international_dialling, submessage_arena);
      }
      set_has_no_international_dialling();
    } else {
      clear_has_no_international_dialling();
    }
    no_international_dialling_ = no_international_dialling;
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.no_international_dialling)
  }
  
  // required string id = 9;
  inline bool PhoneMetadata::has_id() const {
    return (_has_bits_[0] & 0x00000001u) != 0;
  }
  inline void PhoneMetadata::set_has_id() {
    _has_bits_[0] |= 0x00000001u;
  }
  inline void PhoneMetadata::clear_has_id() {
    _has_bits_[0] &= ~0x00000001u;
  }
  inline void PhoneMetadata::clear_id() {
    id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_id();
  }
  inline const ::std::string& PhoneMetadata::id() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.id)
    return id_.GetNoArena();
  }
  inline void PhoneMetadata::set_id(const ::std::string& value) {
    set_has_id();
    id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.id)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_id(::std::string&& value) {
    set_has_id();
    id_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.id)
  }
  #endif
  inline void PhoneMetadata::set_id(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_id();
    id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.id)
  }
  inline void PhoneMetadata::set_id(const char* value, size_t size) {
    set_has_id();
    id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.id)
  }
  inline ::std::string* PhoneMetadata::mutable_id() {
    set_has_id();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.id)
    return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_id() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.id)
    if (!has_id()) {
      return NULL;
    }
    clear_has_id();
    return id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_id(::std::string* id) {
    if (id != NULL) {
      set_has_id();
    } else {
      clear_has_id();
    }
    id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.id)
  }
  
  // optional int32 country_code = 10;
  inline bool PhoneMetadata::has_country_code() const {
    return (_has_bits_[0] & 0x02000000u) != 0;
  }
  inline void PhoneMetadata::set_has_country_code() {
    _has_bits_[0] |= 0x02000000u;
  }
  inline void PhoneMetadata::clear_has_country_code() {
    _has_bits_[0] &= ~0x02000000u;
  }
  inline void PhoneMetadata::clear_country_code() {
    country_code_ = 0;
    clear_has_country_code();
  }
  inline ::google::protobuf::int32 PhoneMetadata::country_code() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.country_code)
    return country_code_;
  }
  inline void PhoneMetadata::set_country_code(::google::protobuf::int32 value) {
    set_has_country_code();
    country_code_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.country_code)
  }
  
  // optional string international_prefix = 11;
  inline bool PhoneMetadata::has_international_prefix() const {
    return (_has_bits_[0] & 0x00000002u) != 0;
  }
  inline void PhoneMetadata::set_has_international_prefix() {
    _has_bits_[0] |= 0x00000002u;
  }
  inline void PhoneMetadata::clear_has_international_prefix() {
    _has_bits_[0] &= ~0x00000002u;
  }
  inline void PhoneMetadata::clear_international_prefix() {
    international_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_international_prefix();
  }
  inline const ::std::string& PhoneMetadata::international_prefix() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.international_prefix)
    return international_prefix_.GetNoArena();
  }
  inline void PhoneMetadata::set_international_prefix(const ::std::string& value) {
    set_has_international_prefix();
    international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.international_prefix)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_international_prefix(::std::string&& value) {
    set_has_international_prefix();
    international_prefix_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.international_prefix)
  }
  #endif
  inline void PhoneMetadata::set_international_prefix(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_international_prefix();
    international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.international_prefix)
  }
  inline void PhoneMetadata::set_international_prefix(const char* value, size_t size) {
    set_has_international_prefix();
    international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.international_prefix)
  }
  inline ::std::string* PhoneMetadata::mutable_international_prefix() {
    set_has_international_prefix();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.international_prefix)
    return international_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_international_prefix() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.international_prefix)
    if (!has_international_prefix()) {
      return NULL;
    }
    clear_has_international_prefix();
    return international_prefix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_international_prefix(::std::string* international_prefix) {
    if (international_prefix != NULL) {
      set_has_international_prefix();
    } else {
      clear_has_international_prefix();
    }
    international_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), international_prefix);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.international_prefix)
  }
  
  // optional string preferred_international_prefix = 17;
  inline bool PhoneMetadata::has_preferred_international_prefix() const {
    return (_has_bits_[0] & 0x00000040u) != 0;
  }
  inline void PhoneMetadata::set_has_preferred_international_prefix() {
    _has_bits_[0] |= 0x00000040u;
  }
  inline void PhoneMetadata::clear_has_preferred_international_prefix() {
    _has_bits_[0] &= ~0x00000040u;
  }
  inline void PhoneMetadata::clear_preferred_international_prefix() {
    preferred_international_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_preferred_international_prefix();
  }
  inline const ::std::string& PhoneMetadata::preferred_international_prefix() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
    return preferred_international_prefix_.GetNoArena();
  }
  inline void PhoneMetadata::set_preferred_international_prefix(const ::std::string& value) {
    set_has_preferred_international_prefix();
    preferred_international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_preferred_international_prefix(::std::string&& value) {
    set_has_preferred_international_prefix();
    preferred_international_prefix_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
  }
  #endif
  inline void PhoneMetadata::set_preferred_international_prefix(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_preferred_international_prefix();
    preferred_international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
  }
  inline void PhoneMetadata::set_preferred_international_prefix(const char* value, size_t size) {
    set_has_preferred_international_prefix();
    preferred_international_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
  }
  inline ::std::string* PhoneMetadata::mutable_preferred_international_prefix() {
    set_has_preferred_international_prefix();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
    return preferred_international_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_preferred_international_prefix() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
    if (!has_preferred_international_prefix()) {
      return NULL;
    }
    clear_has_preferred_international_prefix();
    return preferred_international_prefix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_preferred_international_prefix(::std::string* preferred_international_prefix) {
    if (preferred_international_prefix != NULL) {
      set_has_preferred_international_prefix();
    } else {
      clear_has_preferred_international_prefix();
    }
    preferred_international_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), preferred_international_prefix);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix)
  }
  
  // optional string national_prefix = 12;
  inline bool PhoneMetadata::has_national_prefix() const {
    return (_has_bits_[0] & 0x00000004u) != 0;
  }
  inline void PhoneMetadata::set_has_national_prefix() {
    _has_bits_[0] |= 0x00000004u;
  }
  inline void PhoneMetadata::clear_has_national_prefix() {
    _has_bits_[0] &= ~0x00000004u;
  }
  inline void PhoneMetadata::clear_national_prefix() {
    national_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_national_prefix();
  }
  inline const ::std::string& PhoneMetadata::national_prefix() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix)
    return national_prefix_.GetNoArena();
  }
  inline void PhoneMetadata::set_national_prefix(const ::std::string& value) {
    set_has_national_prefix();
    national_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_national_prefix(::std::string&& value) {
    set_has_national_prefix();
    national_prefix_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix)
  }
  #endif
  inline void PhoneMetadata::set_national_prefix(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_national_prefix();
    national_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix)
  }
  inline void PhoneMetadata::set_national_prefix(const char* value, size_t size) {
    set_has_national_prefix();
    national_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix)
  }
  inline ::std::string* PhoneMetadata::mutable_national_prefix() {
    set_has_national_prefix();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix)
    return national_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_national_prefix() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix)
    if (!has_national_prefix()) {
      return NULL;
    }
    clear_has_national_prefix();
    return national_prefix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_national_prefix(::std::string* national_prefix) {
    if (national_prefix != NULL) {
      set_has_national_prefix();
    } else {
      clear_has_national_prefix();
    }
    national_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), national_prefix);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix)
  }
  
  // optional string preferred_extn_prefix = 13;
  inline bool PhoneMetadata::has_preferred_extn_prefix() const {
    return (_has_bits_[0] & 0x00000008u) != 0;
  }
  inline void PhoneMetadata::set_has_preferred_extn_prefix() {
    _has_bits_[0] |= 0x00000008u;
  }
  inline void PhoneMetadata::clear_has_preferred_extn_prefix() {
    _has_bits_[0] &= ~0x00000008u;
  }
  inline void PhoneMetadata::clear_preferred_extn_prefix() {
    preferred_extn_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_preferred_extn_prefix();
  }
  inline const ::std::string& PhoneMetadata::preferred_extn_prefix() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
    return preferred_extn_prefix_.GetNoArena();
  }
  inline void PhoneMetadata::set_preferred_extn_prefix(const ::std::string& value) {
    set_has_preferred_extn_prefix();
    preferred_extn_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_preferred_extn_prefix(::std::string&& value) {
    set_has_preferred_extn_prefix();
    preferred_extn_prefix_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
  }
  #endif
  inline void PhoneMetadata::set_preferred_extn_prefix(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_preferred_extn_prefix();
    preferred_extn_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
  }
  inline void PhoneMetadata::set_preferred_extn_prefix(const char* value, size_t size) {
    set_has_preferred_extn_prefix();
    preferred_extn_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
  }
  inline ::std::string* PhoneMetadata::mutable_preferred_extn_prefix() {
    set_has_preferred_extn_prefix();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
    return preferred_extn_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_preferred_extn_prefix() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
    if (!has_preferred_extn_prefix()) {
      return NULL;
    }
    clear_has_preferred_extn_prefix();
    return preferred_extn_prefix_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_preferred_extn_prefix(::std::string* preferred_extn_prefix) {
    if (preferred_extn_prefix != NULL) {
      set_has_preferred_extn_prefix();
    } else {
      clear_has_preferred_extn_prefix();
    }
    preferred_extn_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), preferred_extn_prefix);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix)
  }
  
  // optional string national_prefix_for_parsing = 15;
  inline bool PhoneMetadata::has_national_prefix_for_parsing() const {
    return (_has_bits_[0] & 0x00000010u) != 0;
  }
  inline void PhoneMetadata::set_has_national_prefix_for_parsing() {
    _has_bits_[0] |= 0x00000010u;
  }
  inline void PhoneMetadata::clear_has_national_prefix_for_parsing() {
    _has_bits_[0] &= ~0x00000010u;
  }
  inline void PhoneMetadata::clear_national_prefix_for_parsing() {
    national_prefix_for_parsing_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_national_prefix_for_parsing();
  }
  inline const ::std::string& PhoneMetadata::national_prefix_for_parsing() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
    return national_prefix_for_parsing_.GetNoArena();
  }
  inline void PhoneMetadata::set_national_prefix_for_parsing(const ::std::string& value) {
    set_has_national_prefix_for_parsing();
    national_prefix_for_parsing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_national_prefix_for_parsing(::std::string&& value) {
    set_has_national_prefix_for_parsing();
    national_prefix_for_parsing_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
  }
  #endif
  inline void PhoneMetadata::set_national_prefix_for_parsing(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_national_prefix_for_parsing();
    national_prefix_for_parsing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
  }
  inline void PhoneMetadata::set_national_prefix_for_parsing(const char* value, size_t size) {
    set_has_national_prefix_for_parsing();
    national_prefix_for_parsing_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
  }
  inline ::std::string* PhoneMetadata::mutable_national_prefix_for_parsing() {
    set_has_national_prefix_for_parsing();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
    return national_prefix_for_parsing_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_national_prefix_for_parsing() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
    if (!has_national_prefix_for_parsing()) {
      return NULL;
    }
    clear_has_national_prefix_for_parsing();
    return national_prefix_for_parsing_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_national_prefix_for_parsing(::std::string* national_prefix_for_parsing) {
    if (national_prefix_for_parsing != NULL) {
      set_has_national_prefix_for_parsing();
    } else {
      clear_has_national_prefix_for_parsing();
    }
    national_prefix_for_parsing_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), national_prefix_for_parsing);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing)
  }
  
  // optional string national_prefix_transform_rule = 16;
  inline bool PhoneMetadata::has_national_prefix_transform_rule() const {
    return (_has_bits_[0] & 0x00000020u) != 0;
  }
  inline void PhoneMetadata::set_has_national_prefix_transform_rule() {
    _has_bits_[0] |= 0x00000020u;
  }
  inline void PhoneMetadata::clear_has_national_prefix_transform_rule() {
    _has_bits_[0] &= ~0x00000020u;
  }
  inline void PhoneMetadata::clear_national_prefix_transform_rule() {
    national_prefix_transform_rule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_national_prefix_transform_rule();
  }
  inline const ::std::string& PhoneMetadata::national_prefix_transform_rule() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
    return national_prefix_transform_rule_.GetNoArena();
  }
  inline void PhoneMetadata::set_national_prefix_transform_rule(const ::std::string& value) {
    set_has_national_prefix_transform_rule();
    national_prefix_transform_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_national_prefix_transform_rule(::std::string&& value) {
    set_has_national_prefix_transform_rule();
    national_prefix_transform_rule_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
  }
  #endif
  inline void PhoneMetadata::set_national_prefix_transform_rule(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_national_prefix_transform_rule();
    national_prefix_transform_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
  }
  inline void PhoneMetadata::set_national_prefix_transform_rule(const char* value, size_t size) {
    set_has_national_prefix_transform_rule();
    national_prefix_transform_rule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
  }
  inline ::std::string* PhoneMetadata::mutable_national_prefix_transform_rule() {
    set_has_national_prefix_transform_rule();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
    return national_prefix_transform_rule_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_national_prefix_transform_rule() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
    if (!has_national_prefix_transform_rule()) {
      return NULL;
    }
    clear_has_national_prefix_transform_rule();
    return national_prefix_transform_rule_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_national_prefix_transform_rule(::std::string* national_prefix_transform_rule) {
    if (national_prefix_transform_rule != NULL) {
      set_has_national_prefix_transform_rule();
    } else {
      clear_has_national_prefix_transform_rule();
    }
    national_prefix_transform_rule_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), national_prefix_transform_rule);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule)
  }
  
  // optional bool same_mobile_and_fixed_line_pattern = 18 [default = false];
  inline bool PhoneMetadata::has_same_mobile_and_fixed_line_pattern() const {
    return (_has_bits_[0] & 0x04000000u) != 0;
  }
  inline void PhoneMetadata::set_has_same_mobile_and_fixed_line_pattern() {
    _has_bits_[0] |= 0x04000000u;
  }
  inline void PhoneMetadata::clear_has_same_mobile_and_fixed_line_pattern() {
    _has_bits_[0] &= ~0x04000000u;
  }
  inline void PhoneMetadata::clear_same_mobile_and_fixed_line_pattern() {
    same_mobile_and_fixed_line_pattern_ = false;
    clear_has_same_mobile_and_fixed_line_pattern();
  }
  inline bool PhoneMetadata::same_mobile_and_fixed_line_pattern() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.same_mobile_and_fixed_line_pattern)
    return same_mobile_and_fixed_line_pattern_;
  }
  inline void PhoneMetadata::set_same_mobile_and_fixed_line_pattern(bool value) {
    set_has_same_mobile_and_fixed_line_pattern();
    same_mobile_and_fixed_line_pattern_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.same_mobile_and_fixed_line_pattern)
  }
  
  // repeated .i18n.phonenumbers.NumberFormat number_format = 19;
  inline int PhoneMetadata::number_format_size() const {
    return number_format_.size();
  }
  inline void PhoneMetadata::clear_number_format() {
    number_format_.Clear();
  }
  inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::mutable_number_format(int index) {
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.number_format)
    return number_format_.Mutable(index);
  }
  inline ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
  PhoneMetadata::mutable_number_format() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadata.number_format)
    return &number_format_;
  }
  inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::number_format(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.number_format)
    return number_format_.Get(index);
  }
  inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::add_number_format() {
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadata.number_format)
    return number_format_.Add();
  }
  inline const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
  PhoneMetadata::number_format() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadata.number_format)
    return number_format_;
  }
  
  // repeated .i18n.phonenumbers.NumberFormat intl_number_format = 20;
  inline int PhoneMetadata::intl_number_format_size() const {
    return intl_number_format_.size();
  }
  inline void PhoneMetadata::clear_intl_number_format() {
    intl_number_format_.Clear();
  }
  inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::mutable_intl_number_format(int index) {
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.intl_number_format)
    return intl_number_format_.Mutable(index);
  }
  inline ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
  PhoneMetadata::mutable_intl_number_format() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadata.intl_number_format)
    return &intl_number_format_;
  }
  inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::intl_number_format(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.intl_number_format)
    return intl_number_format_.Get(index);
  }
  inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::add_intl_number_format() {
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadata.intl_number_format)
    return intl_number_format_.Add();
  }
  inline const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
  PhoneMetadata::intl_number_format() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadata.intl_number_format)
    return intl_number_format_;
  }
  
  // optional bool main_country_for_code = 22 [default = false];
  inline bool PhoneMetadata::has_main_country_for_code() const {
    return (_has_bits_[0] & 0x08000000u) != 0;
  }
  inline void PhoneMetadata::set_has_main_country_for_code() {
    _has_bits_[0] |= 0x08000000u;
  }
  inline void PhoneMetadata::clear_has_main_country_for_code() {
    _has_bits_[0] &= ~0x08000000u;
  }
  inline void PhoneMetadata::clear_main_country_for_code() {
    main_country_for_code_ = false;
    clear_has_main_country_for_code();
  }
  inline bool PhoneMetadata::main_country_for_code() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.main_country_for_code)
    return main_country_for_code_;
  }
  inline void PhoneMetadata::set_main_country_for_code(bool value) {
    set_has_main_country_for_code();
    main_country_for_code_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.main_country_for_code)
  }
  
  // optional string leading_digits = 23;
  inline bool PhoneMetadata::has_leading_digits() const {
    return (_has_bits_[0] & 0x00000080u) != 0;
  }
  inline void PhoneMetadata::set_has_leading_digits() {
    _has_bits_[0] |= 0x00000080u;
  }
  inline void PhoneMetadata::clear_has_leading_digits() {
    _has_bits_[0] &= ~0x00000080u;
  }
  inline void PhoneMetadata::clear_leading_digits() {
    leading_digits_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    clear_has_leading_digits();
  }
  inline const ::std::string& PhoneMetadata::leading_digits() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.leading_digits)
    return leading_digits_.GetNoArena();
  }
  inline void PhoneMetadata::set_leading_digits(const ::std::string& value) {
    set_has_leading_digits();
    leading_digits_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.leading_digits)
  }
  #if LANG_CXX11
  inline void PhoneMetadata::set_leading_digits(::std::string&& value) {
    set_has_leading_digits();
    leading_digits_.SetNoArena(
      &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
    // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.leading_digits)
  }
  #endif
  inline void PhoneMetadata::set_leading_digits(const char* value) {
    GOOGLE_DCHECK(value != NULL);
    set_has_leading_digits();
    leading_digits_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
    // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.leading_digits)
  }
  inline void PhoneMetadata::set_leading_digits(const char* value, size_t size) {
    set_has_leading_digits();
    leading_digits_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
        ::std::string(reinterpret_cast<const char*>(value), size));
    // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.leading_digits)
  }
  inline ::std::string* PhoneMetadata::mutable_leading_digits() {
    set_has_leading_digits();
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.leading_digits)
    return leading_digits_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline ::std::string* PhoneMetadata::release_leading_digits() {
    // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.leading_digits)
    if (!has_leading_digits()) {
      return NULL;
    }
    clear_has_leading_digits();
    return leading_digits_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  inline void PhoneMetadata::set_allocated_leading_digits(::std::string* leading_digits) {
    if (leading_digits != NULL) {
      set_has_leading_digits();
    } else {
      clear_has_leading_digits();
    }
    leading_digits_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_digits);
    // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.leading_digits)
  }
  
  // optional bool leading_zero_possible = 26 [default = false];
  inline bool PhoneMetadata::has_leading_zero_possible() const {
    return (_has_bits_[0] & 0x10000000u) != 0;
  }
  inline void PhoneMetadata::set_has_leading_zero_possible() {
    _has_bits_[0] |= 0x10000000u;
  }
  inline void PhoneMetadata::clear_has_leading_zero_possible() {
    _has_bits_[0] &= ~0x10000000u;
  }
  inline void PhoneMetadata::clear_leading_zero_possible() {
    leading_zero_possible_ = false;
    clear_has_leading_zero_possible();
  }
  inline bool PhoneMetadata::leading_zero_possible() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.leading_zero_possible)
    return leading_zero_possible_;
  }
  inline void PhoneMetadata::set_leading_zero_possible(bool value) {
    set_has_leading_zero_possible();
    leading_zero_possible_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.leading_zero_possible)
  }
  
  // optional bool mobile_number_portable_region = 32 [default = false];
  inline bool PhoneMetadata::has_mobile_number_portable_region() const {
    return (_has_bits_[0] & 0x20000000u) != 0;
  }
  inline void PhoneMetadata::set_has_mobile_number_portable_region() {
    _has_bits_[0] |= 0x20000000u;
  }
  inline void PhoneMetadata::clear_has_mobile_number_portable_region() {
    _has_bits_[0] &= ~0x20000000u;
  }
  inline void PhoneMetadata::clear_mobile_number_portable_region() {
    mobile_number_portable_region_ = false;
    clear_has_mobile_number_portable_region();
  }
  inline bool PhoneMetadata::mobile_number_portable_region() const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.mobile_number_portable_region)
    return mobile_number_portable_region_;
  }
  inline void PhoneMetadata::set_mobile_number_portable_region(bool value) {
    set_has_mobile_number_portable_region();
    mobile_number_portable_region_ = value;
    // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.mobile_number_portable_region)
  }
  
  // -------------------------------------------------------------------
  
  // PhoneMetadataCollection
  
  // repeated .i18n.phonenumbers.PhoneMetadata metadata = 1;
  inline int PhoneMetadataCollection::metadata_size() const {
    return metadata_.size();
  }
  inline void PhoneMetadataCollection::clear_metadata() {
    metadata_.Clear();
  }
  inline ::i18n::phonenumbers::PhoneMetadata* PhoneMetadataCollection::mutable_metadata(int index) {
    // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadataCollection.metadata)
    return metadata_.Mutable(index);
  }
  inline ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >*
  PhoneMetadataCollection::mutable_metadata() {
    // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadataCollection.metadata)
    return &metadata_;
  }
  inline const ::i18n::phonenumbers::PhoneMetadata& PhoneMetadataCollection::metadata(int index) const {
    // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadataCollection.metadata)
    return metadata_.Get(index);
  }
  inline ::i18n::phonenumbers::PhoneMetadata* PhoneMetadataCollection::add_metadata() {
    // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadataCollection.metadata)
    return metadata_.Add();
  }
  inline const ::google::protobuf::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >&
  PhoneMetadataCollection::metadata() const {
    // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadataCollection.metadata)
    return metadata_;
  }
  
  #ifdef __GNUC__
    #pragma GCC diagnostic pop
  #endif  // __GNUC__
  // -------------------------------------------------------------------
  
  // -------------------------------------------------------------------
  
  // -------------------------------------------------------------------
  
  
  // @@protoc_insertion_point(namespace_scope)
  
  }  // namespace phonenumbers
  }  // namespace i18n
  
  // @@protoc_insertion_point(global_scope)
  
  #endif  // PROTOBUF_INCLUDED_phonemetadata_2eproto
  