• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: phonenumber.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_phonenumber_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_phonenumber_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3014000 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_phonenumber_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_phonenumber_2eproto {
44   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
45     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
46   static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
47     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48   static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
49     PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50   static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
51   static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
52   static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
53 };
54 namespace i18n {
55 namespace phonenumbers {
56 class PhoneNumber;
57 class PhoneNumberDefaultTypeInternal;
58 extern PhoneNumberDefaultTypeInternal _PhoneNumber_default_instance_;
59 }  // namespace phonenumbers
60 }  // namespace i18n
61 PROTOBUF_NAMESPACE_OPEN
62 template<> ::i18n::phonenumbers::PhoneNumber* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneNumber>(Arena*);
63 PROTOBUF_NAMESPACE_CLOSE
64 namespace i18n {
65 namespace phonenumbers {
66 
67 enum PhoneNumber_CountryCodeSource : int {
68   PhoneNumber_CountryCodeSource_UNSPECIFIED = 0,
69   PhoneNumber_CountryCodeSource_FROM_NUMBER_WITH_PLUS_SIGN = 1,
70   PhoneNumber_CountryCodeSource_FROM_NUMBER_WITH_IDD = 5,
71   PhoneNumber_CountryCodeSource_FROM_NUMBER_WITHOUT_PLUS_SIGN = 10,
72   PhoneNumber_CountryCodeSource_FROM_DEFAULT_COUNTRY = 20
73 };
74 bool PhoneNumber_CountryCodeSource_IsValid(int value);
75 constexpr PhoneNumber_CountryCodeSource PhoneNumber_CountryCodeSource_CountryCodeSource_MIN = PhoneNumber_CountryCodeSource_UNSPECIFIED;
76 constexpr PhoneNumber_CountryCodeSource PhoneNumber_CountryCodeSource_CountryCodeSource_MAX = PhoneNumber_CountryCodeSource_FROM_DEFAULT_COUNTRY;
77 constexpr int PhoneNumber_CountryCodeSource_CountryCodeSource_ARRAYSIZE = PhoneNumber_CountryCodeSource_CountryCodeSource_MAX + 1;
78 
79 const std::string& PhoneNumber_CountryCodeSource_Name(PhoneNumber_CountryCodeSource value);
80 template<typename T>
PhoneNumber_CountryCodeSource_Name(T enum_t_value)81 inline const std::string& PhoneNumber_CountryCodeSource_Name(T enum_t_value) {
82   static_assert(::std::is_same<T, PhoneNumber_CountryCodeSource>::value ||
83     ::std::is_integral<T>::value,
84     "Incorrect type passed to function PhoneNumber_CountryCodeSource_Name.");
85   return PhoneNumber_CountryCodeSource_Name(static_cast<PhoneNumber_CountryCodeSource>(enum_t_value));
86 }
87 bool PhoneNumber_CountryCodeSource_Parse(
88     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PhoneNumber_CountryCodeSource* value);
89 // ===================================================================
90 
91 class PhoneNumber PROTOBUF_FINAL :
92     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneNumber) */ {
93  public:
PhoneNumber()94   inline PhoneNumber() : PhoneNumber(nullptr) {}
95   virtual ~PhoneNumber();
96 
97   PhoneNumber(const PhoneNumber& from);
PhoneNumber(PhoneNumber && from)98   PhoneNumber(PhoneNumber&& from) noexcept
99     : PhoneNumber() {
100     *this = ::std::move(from);
101   }
102 
103   inline PhoneNumber& operator=(const PhoneNumber& from) {
104     CopyFrom(from);
105     return *this;
106   }
107   inline PhoneNumber& operator=(PhoneNumber&& from) noexcept {
108     if (GetArena() == from.GetArena()) {
109       if (this != &from) InternalSwap(&from);
110     } else {
111       CopyFrom(from);
112     }
113     return *this;
114   }
115 
unknown_fields()116   inline const std::string& unknown_fields() const {
117     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
118   }
mutable_unknown_fields()119   inline std::string* mutable_unknown_fields() {
120     return _internal_metadata_.mutable_unknown_fields<std::string>();
121   }
122 
123   static const PhoneNumber& default_instance();
124 
internal_default_instance()125   static inline const PhoneNumber* internal_default_instance() {
126     return reinterpret_cast<const PhoneNumber*>(
127                &_PhoneNumber_default_instance_);
128   }
129   static constexpr int kIndexInFileMessages =
130     0;
131 
swap(PhoneNumber & a,PhoneNumber & b)132   friend void swap(PhoneNumber& a, PhoneNumber& b) {
133     a.Swap(&b);
134   }
Swap(PhoneNumber * other)135   inline void Swap(PhoneNumber* other) {
136     if (other == this) return;
137     if (GetArena() == other->GetArena()) {
138       InternalSwap(other);
139     } else {
140       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141     }
142   }
UnsafeArenaSwap(PhoneNumber * other)143   void UnsafeArenaSwap(PhoneNumber* other) {
144     if (other == this) return;
145     GOOGLE_DCHECK(GetArena() == other->GetArena());
146     InternalSwap(other);
147   }
148 
149   // implements Message ----------------------------------------------
150 
New()151   inline PhoneNumber* New() const final {
152     return CreateMaybeMessage<PhoneNumber>(nullptr);
153   }
154 
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)155   PhoneNumber* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
156     return CreateMaybeMessage<PhoneNumber>(arena);
157   }
158   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
159     final;
160   void CopyFrom(const PhoneNumber& from);
161   void MergeFrom(const PhoneNumber& from);
162   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
163   bool IsInitialized() const final;
164 
165   size_t ByteSizeLong() const final;
166   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
167   ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
168       ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169   void DiscardUnknownFields();
GetCachedSize()170   int GetCachedSize() const final { return _cached_size_.Get(); }
171 
172   private:
173   inline void SharedCtor();
174   inline void SharedDtor();
175   void SetCachedSize(int size) const;
176   void InternalSwap(PhoneNumber* other);
177   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()178   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
179     return "i18n.phonenumbers.PhoneNumber";
180   }
181   protected:
182   explicit PhoneNumber(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183   private:
184   static void ArenaDtor(void* object);
185   inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186   public:
187 
188   std::string GetTypeName() const final;
189 
190   // nested types ----------------------------------------------------
191 
192   typedef PhoneNumber_CountryCodeSource CountryCodeSource;
193   static constexpr CountryCodeSource UNSPECIFIED =
194     PhoneNumber_CountryCodeSource_UNSPECIFIED;
195   static constexpr CountryCodeSource FROM_NUMBER_WITH_PLUS_SIGN =
196     PhoneNumber_CountryCodeSource_FROM_NUMBER_WITH_PLUS_SIGN;
197   static constexpr CountryCodeSource FROM_NUMBER_WITH_IDD =
198     PhoneNumber_CountryCodeSource_FROM_NUMBER_WITH_IDD;
199   static constexpr CountryCodeSource FROM_NUMBER_WITHOUT_PLUS_SIGN =
200     PhoneNumber_CountryCodeSource_FROM_NUMBER_WITHOUT_PLUS_SIGN;
201   static constexpr CountryCodeSource FROM_DEFAULT_COUNTRY =
202     PhoneNumber_CountryCodeSource_FROM_DEFAULT_COUNTRY;
CountryCodeSource_IsValid(int value)203   static inline bool CountryCodeSource_IsValid(int value) {
204     return PhoneNumber_CountryCodeSource_IsValid(value);
205   }
206   static constexpr CountryCodeSource CountryCodeSource_MIN =
207     PhoneNumber_CountryCodeSource_CountryCodeSource_MIN;
208   static constexpr CountryCodeSource CountryCodeSource_MAX =
209     PhoneNumber_CountryCodeSource_CountryCodeSource_MAX;
210   static constexpr int CountryCodeSource_ARRAYSIZE =
211     PhoneNumber_CountryCodeSource_CountryCodeSource_ARRAYSIZE;
212   template<typename T>
CountryCodeSource_Name(T enum_t_value)213   static inline const std::string& CountryCodeSource_Name(T enum_t_value) {
214     static_assert(::std::is_same<T, CountryCodeSource>::value ||
215       ::std::is_integral<T>::value,
216       "Incorrect type passed to function CountryCodeSource_Name.");
217     return PhoneNumber_CountryCodeSource_Name(enum_t_value);
218   }
CountryCodeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CountryCodeSource * value)219   static inline bool CountryCodeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
220       CountryCodeSource* value) {
221     return PhoneNumber_CountryCodeSource_Parse(name, value);
222   }
223 
224   // accessors -------------------------------------------------------
225 
226   enum : int {
227     kExtensionFieldNumber = 3,
228     kRawInputFieldNumber = 5,
229     kPreferredDomesticCarrierCodeFieldNumber = 7,
230     kNationalNumberFieldNumber = 2,
231     kCountryCodeFieldNumber = 1,
232     kItalianLeadingZeroFieldNumber = 4,
233     kCountryCodeSourceFieldNumber = 6,
234     kNumberOfLeadingZerosFieldNumber = 8,
235   };
236   // optional string extension = 3;
237   bool has_extension() const;
238   private:
239   bool _internal_has_extension() const;
240   public:
241   void clear_extension();
242   const std::string& extension() const;
243   void set_extension(const std::string& value);
244   void set_extension(std::string&& value);
245   void set_extension(const char* value);
246   void set_extension(const char* value, size_t size);
247   std::string* mutable_extension();
248   std::string* release_extension();
249   void set_allocated_extension(std::string* extension);
250   private:
251   const std::string& _internal_extension() const;
252   void _internal_set_extension(const std::string& value);
253   std::string* _internal_mutable_extension();
254   public:
255 
256   // optional string raw_input = 5;
257   bool has_raw_input() const;
258   private:
259   bool _internal_has_raw_input() const;
260   public:
261   void clear_raw_input();
262   const std::string& raw_input() const;
263   void set_raw_input(const std::string& value);
264   void set_raw_input(std::string&& value);
265   void set_raw_input(const char* value);
266   void set_raw_input(const char* value, size_t size);
267   std::string* mutable_raw_input();
268   std::string* release_raw_input();
269   void set_allocated_raw_input(std::string* raw_input);
270   private:
271   const std::string& _internal_raw_input() const;
272   void _internal_set_raw_input(const std::string& value);
273   std::string* _internal_mutable_raw_input();
274   public:
275 
276   // optional string preferred_domestic_carrier_code = 7;
277   bool has_preferred_domestic_carrier_code() const;
278   private:
279   bool _internal_has_preferred_domestic_carrier_code() const;
280   public:
281   void clear_preferred_domestic_carrier_code();
282   const std::string& preferred_domestic_carrier_code() const;
283   void set_preferred_domestic_carrier_code(const std::string& value);
284   void set_preferred_domestic_carrier_code(std::string&& value);
285   void set_preferred_domestic_carrier_code(const char* value);
286   void set_preferred_domestic_carrier_code(const char* value, size_t size);
287   std::string* mutable_preferred_domestic_carrier_code();
288   std::string* release_preferred_domestic_carrier_code();
289   void set_allocated_preferred_domestic_carrier_code(std::string* preferred_domestic_carrier_code);
290   private:
291   const std::string& _internal_preferred_domestic_carrier_code() const;
292   void _internal_set_preferred_domestic_carrier_code(const std::string& value);
293   std::string* _internal_mutable_preferred_domestic_carrier_code();
294   public:
295 
296   // required uint64 national_number = 2;
297   bool has_national_number() const;
298   private:
299   bool _internal_has_national_number() const;
300   public:
301   void clear_national_number();
302   ::PROTOBUF_NAMESPACE_ID::uint64 national_number() const;
303   void set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value);
304   private:
305   ::PROTOBUF_NAMESPACE_ID::uint64 _internal_national_number() const;
306   void _internal_set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value);
307   public:
308 
309   // required int32 country_code = 1;
310   bool has_country_code() const;
311   private:
312   bool _internal_has_country_code() const;
313   public:
314   void clear_country_code();
315   ::PROTOBUF_NAMESPACE_ID::int32 country_code() const;
316   void set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value);
317   private:
318   ::PROTOBUF_NAMESPACE_ID::int32 _internal_country_code() const;
319   void _internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value);
320   public:
321 
322   // optional bool italian_leading_zero = 4;
323   bool has_italian_leading_zero() const;
324   private:
325   bool _internal_has_italian_leading_zero() const;
326   public:
327   void clear_italian_leading_zero();
328   bool italian_leading_zero() const;
329   void set_italian_leading_zero(bool value);
330   private:
331   bool _internal_italian_leading_zero() const;
332   void _internal_set_italian_leading_zero(bool value);
333   public:
334 
335   // optional .i18n.phonenumbers.PhoneNumber.CountryCodeSource country_code_source = 6;
336   bool has_country_code_source() const;
337   private:
338   bool _internal_has_country_code_source() const;
339   public:
340   void clear_country_code_source();
341   ::i18n::phonenumbers::PhoneNumber_CountryCodeSource country_code_source() const;
342   void set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value);
343   private:
344   ::i18n::phonenumbers::PhoneNumber_CountryCodeSource _internal_country_code_source() const;
345   void _internal_set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value);
346   public:
347 
348   // optional int32 number_of_leading_zeros = 8 [default = 1];
349   bool has_number_of_leading_zeros() const;
350   private:
351   bool _internal_has_number_of_leading_zeros() const;
352   public:
353   void clear_number_of_leading_zeros();
354   ::PROTOBUF_NAMESPACE_ID::int32 number_of_leading_zeros() const;
355   void set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value);
356   private:
357   ::PROTOBUF_NAMESPACE_ID::int32 _internal_number_of_leading_zeros() const;
358   void _internal_set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value);
359   public:
360 
361   // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneNumber)
362  private:
363   class _Internal;
364 
365   // helper for ByteSizeLong()
366   size_t RequiredFieldsByteSizeFallback() const;
367 
368   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
369   typedef void InternalArenaConstructable_;
370   typedef void DestructorSkippable_;
371   ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
372   mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
373   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extension_;
374   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_input_;
375   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr preferred_domestic_carrier_code_;
376   ::PROTOBUF_NAMESPACE_ID::uint64 national_number_;
377   ::PROTOBUF_NAMESPACE_ID::int32 country_code_;
378   bool italian_leading_zero_;
379   int country_code_source_;
380   ::PROTOBUF_NAMESPACE_ID::int32 number_of_leading_zeros_;
381   friend struct ::TableStruct_phonenumber_2eproto;
382 };
383 // ===================================================================
384 
385 
386 // ===================================================================
387 
388 #ifdef __GNUC__
389   #pragma GCC diagnostic push
390   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
391 #endif  // __GNUC__
392 // PhoneNumber
393 
394 // required int32 country_code = 1;
_internal_has_country_code()395 inline bool PhoneNumber::_internal_has_country_code() const {
396   bool value = (_has_bits_[0] & 0x00000010u) != 0;
397   return value;
398 }
has_country_code()399 inline bool PhoneNumber::has_country_code() const {
400   return _internal_has_country_code();
401 }
clear_country_code()402 inline void PhoneNumber::clear_country_code() {
403   country_code_ = 0;
404   _has_bits_[0] &= ~0x00000010u;
405 }
_internal_country_code()406 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumber::_internal_country_code() const {
407   return country_code_;
408 }
country_code()409 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumber::country_code() const {
410   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.country_code)
411   return _internal_country_code();
412 }
_internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value)413 inline void PhoneNumber::_internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value) {
414   _has_bits_[0] |= 0x00000010u;
415   country_code_ = value;
416 }
set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value)417 inline void PhoneNumber::set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value) {
418   _internal_set_country_code(value);
419   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.country_code)
420 }
421 
422 // required uint64 national_number = 2;
_internal_has_national_number()423 inline bool PhoneNumber::_internal_has_national_number() const {
424   bool value = (_has_bits_[0] & 0x00000008u) != 0;
425   return value;
426 }
has_national_number()427 inline bool PhoneNumber::has_national_number() const {
428   return _internal_has_national_number();
429 }
clear_national_number()430 inline void PhoneNumber::clear_national_number() {
431   national_number_ = PROTOBUF_ULONGLONG(0);
432   _has_bits_[0] &= ~0x00000008u;
433 }
_internal_national_number()434 inline ::PROTOBUF_NAMESPACE_ID::uint64 PhoneNumber::_internal_national_number() const {
435   return national_number_;
436 }
national_number()437 inline ::PROTOBUF_NAMESPACE_ID::uint64 PhoneNumber::national_number() const {
438   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.national_number)
439   return _internal_national_number();
440 }
_internal_set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value)441 inline void PhoneNumber::_internal_set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value) {
442   _has_bits_[0] |= 0x00000008u;
443   national_number_ = value;
444 }
set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value)445 inline void PhoneNumber::set_national_number(::PROTOBUF_NAMESPACE_ID::uint64 value) {
446   _internal_set_national_number(value);
447   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.national_number)
448 }
449 
450 // optional string extension = 3;
_internal_has_extension()451 inline bool PhoneNumber::_internal_has_extension() const {
452   bool value = (_has_bits_[0] & 0x00000001u) != 0;
453   return value;
454 }
has_extension()455 inline bool PhoneNumber::has_extension() const {
456   return _internal_has_extension();
457 }
clear_extension()458 inline void PhoneNumber::clear_extension() {
459   extension_.ClearToEmpty();
460   _has_bits_[0] &= ~0x00000001u;
461 }
extension()462 inline const std::string& PhoneNumber::extension() const {
463   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.extension)
464   return _internal_extension();
465 }
set_extension(const std::string & value)466 inline void PhoneNumber::set_extension(const std::string& value) {
467   _internal_set_extension(value);
468   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.extension)
469 }
mutable_extension()470 inline std::string* PhoneNumber::mutable_extension() {
471   // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumber.extension)
472   return _internal_mutable_extension();
473 }
_internal_extension()474 inline const std::string& PhoneNumber::_internal_extension() const {
475   return extension_.Get();
476 }
_internal_set_extension(const std::string & value)477 inline void PhoneNumber::_internal_set_extension(const std::string& value) {
478   _has_bits_[0] |= 0x00000001u;
479   extension_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
480 }
set_extension(std::string && value)481 inline void PhoneNumber::set_extension(std::string&& value) {
482   _has_bits_[0] |= 0x00000001u;
483   extension_.Set(
484     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
485   // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumber.extension)
486 }
set_extension(const char * value)487 inline void PhoneNumber::set_extension(const char* value) {
488   GOOGLE_DCHECK(value != nullptr);
489   _has_bits_[0] |= 0x00000001u;
490   extension_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
491   // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumber.extension)
492 }
set_extension(const char * value,size_t size)493 inline void PhoneNumber::set_extension(const char* value,
494     size_t size) {
495   _has_bits_[0] |= 0x00000001u;
496   extension_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
497       reinterpret_cast<const char*>(value), size), GetArena());
498   // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumber.extension)
499 }
_internal_mutable_extension()500 inline std::string* PhoneNumber::_internal_mutable_extension() {
501   _has_bits_[0] |= 0x00000001u;
502   return extension_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
503 }
release_extension()504 inline std::string* PhoneNumber::release_extension() {
505   // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumber.extension)
506   if (!_internal_has_extension()) {
507     return nullptr;
508   }
509   _has_bits_[0] &= ~0x00000001u;
510   return extension_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
511 }
set_allocated_extension(std::string * extension)512 inline void PhoneNumber::set_allocated_extension(std::string* extension) {
513   if (extension != nullptr) {
514     _has_bits_[0] |= 0x00000001u;
515   } else {
516     _has_bits_[0] &= ~0x00000001u;
517   }
518   extension_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extension,
519       GetArena());
520   // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumber.extension)
521 }
522 
523 // optional bool italian_leading_zero = 4;
_internal_has_italian_leading_zero()524 inline bool PhoneNumber::_internal_has_italian_leading_zero() const {
525   bool value = (_has_bits_[0] & 0x00000020u) != 0;
526   return value;
527 }
has_italian_leading_zero()528 inline bool PhoneNumber::has_italian_leading_zero() const {
529   return _internal_has_italian_leading_zero();
530 }
clear_italian_leading_zero()531 inline void PhoneNumber::clear_italian_leading_zero() {
532   italian_leading_zero_ = false;
533   _has_bits_[0] &= ~0x00000020u;
534 }
_internal_italian_leading_zero()535 inline bool PhoneNumber::_internal_italian_leading_zero() const {
536   return italian_leading_zero_;
537 }
italian_leading_zero()538 inline bool PhoneNumber::italian_leading_zero() const {
539   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.italian_leading_zero)
540   return _internal_italian_leading_zero();
541 }
_internal_set_italian_leading_zero(bool value)542 inline void PhoneNumber::_internal_set_italian_leading_zero(bool value) {
543   _has_bits_[0] |= 0x00000020u;
544   italian_leading_zero_ = value;
545 }
set_italian_leading_zero(bool value)546 inline void PhoneNumber::set_italian_leading_zero(bool value) {
547   _internal_set_italian_leading_zero(value);
548   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.italian_leading_zero)
549 }
550 
551 // optional int32 number_of_leading_zeros = 8 [default = 1];
_internal_has_number_of_leading_zeros()552 inline bool PhoneNumber::_internal_has_number_of_leading_zeros() const {
553   bool value = (_has_bits_[0] & 0x00000080u) != 0;
554   return value;
555 }
has_number_of_leading_zeros()556 inline bool PhoneNumber::has_number_of_leading_zeros() const {
557   return _internal_has_number_of_leading_zeros();
558 }
clear_number_of_leading_zeros()559 inline void PhoneNumber::clear_number_of_leading_zeros() {
560   number_of_leading_zeros_ = 1;
561   _has_bits_[0] &= ~0x00000080u;
562 }
_internal_number_of_leading_zeros()563 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumber::_internal_number_of_leading_zeros() const {
564   return number_of_leading_zeros_;
565 }
number_of_leading_zeros()566 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumber::number_of_leading_zeros() const {
567   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.number_of_leading_zeros)
568   return _internal_number_of_leading_zeros();
569 }
_internal_set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value)570 inline void PhoneNumber::_internal_set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value) {
571   _has_bits_[0] |= 0x00000080u;
572   number_of_leading_zeros_ = value;
573 }
set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value)574 inline void PhoneNumber::set_number_of_leading_zeros(::PROTOBUF_NAMESPACE_ID::int32 value) {
575   _internal_set_number_of_leading_zeros(value);
576   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.number_of_leading_zeros)
577 }
578 
579 // optional string raw_input = 5;
_internal_has_raw_input()580 inline bool PhoneNumber::_internal_has_raw_input() const {
581   bool value = (_has_bits_[0] & 0x00000002u) != 0;
582   return value;
583 }
has_raw_input()584 inline bool PhoneNumber::has_raw_input() const {
585   return _internal_has_raw_input();
586 }
clear_raw_input()587 inline void PhoneNumber::clear_raw_input() {
588   raw_input_.ClearToEmpty();
589   _has_bits_[0] &= ~0x00000002u;
590 }
raw_input()591 inline const std::string& PhoneNumber::raw_input() const {
592   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.raw_input)
593   return _internal_raw_input();
594 }
set_raw_input(const std::string & value)595 inline void PhoneNumber::set_raw_input(const std::string& value) {
596   _internal_set_raw_input(value);
597   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.raw_input)
598 }
mutable_raw_input()599 inline std::string* PhoneNumber::mutable_raw_input() {
600   // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumber.raw_input)
601   return _internal_mutable_raw_input();
602 }
_internal_raw_input()603 inline const std::string& PhoneNumber::_internal_raw_input() const {
604   return raw_input_.Get();
605 }
_internal_set_raw_input(const std::string & value)606 inline void PhoneNumber::_internal_set_raw_input(const std::string& value) {
607   _has_bits_[0] |= 0x00000002u;
608   raw_input_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
609 }
set_raw_input(std::string && value)610 inline void PhoneNumber::set_raw_input(std::string&& value) {
611   _has_bits_[0] |= 0x00000002u;
612   raw_input_.Set(
613     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
614   // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumber.raw_input)
615 }
set_raw_input(const char * value)616 inline void PhoneNumber::set_raw_input(const char* value) {
617   GOOGLE_DCHECK(value != nullptr);
618   _has_bits_[0] |= 0x00000002u;
619   raw_input_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
620   // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumber.raw_input)
621 }
set_raw_input(const char * value,size_t size)622 inline void PhoneNumber::set_raw_input(const char* value,
623     size_t size) {
624   _has_bits_[0] |= 0x00000002u;
625   raw_input_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
626       reinterpret_cast<const char*>(value), size), GetArena());
627   // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumber.raw_input)
628 }
_internal_mutable_raw_input()629 inline std::string* PhoneNumber::_internal_mutable_raw_input() {
630   _has_bits_[0] |= 0x00000002u;
631   return raw_input_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
632 }
release_raw_input()633 inline std::string* PhoneNumber::release_raw_input() {
634   // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumber.raw_input)
635   if (!_internal_has_raw_input()) {
636     return nullptr;
637   }
638   _has_bits_[0] &= ~0x00000002u;
639   return raw_input_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
640 }
set_allocated_raw_input(std::string * raw_input)641 inline void PhoneNumber::set_allocated_raw_input(std::string* raw_input) {
642   if (raw_input != nullptr) {
643     _has_bits_[0] |= 0x00000002u;
644   } else {
645     _has_bits_[0] &= ~0x00000002u;
646   }
647   raw_input_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), raw_input,
648       GetArena());
649   // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumber.raw_input)
650 }
651 
652 // optional .i18n.phonenumbers.PhoneNumber.CountryCodeSource country_code_source = 6;
_internal_has_country_code_source()653 inline bool PhoneNumber::_internal_has_country_code_source() const {
654   bool value = (_has_bits_[0] & 0x00000040u) != 0;
655   return value;
656 }
has_country_code_source()657 inline bool PhoneNumber::has_country_code_source() const {
658   return _internal_has_country_code_source();
659 }
clear_country_code_source()660 inline void PhoneNumber::clear_country_code_source() {
661   country_code_source_ = 0;
662   _has_bits_[0] &= ~0x00000040u;
663 }
_internal_country_code_source()664 inline ::i18n::phonenumbers::PhoneNumber_CountryCodeSource PhoneNumber::_internal_country_code_source() const {
665   return static_cast< ::i18n::phonenumbers::PhoneNumber_CountryCodeSource >(country_code_source_);
666 }
country_code_source()667 inline ::i18n::phonenumbers::PhoneNumber_CountryCodeSource PhoneNumber::country_code_source() const {
668   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.country_code_source)
669   return _internal_country_code_source();
670 }
_internal_set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value)671 inline void PhoneNumber::_internal_set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value) {
672   assert(::i18n::phonenumbers::PhoneNumber_CountryCodeSource_IsValid(value));
673   _has_bits_[0] |= 0x00000040u;
674   country_code_source_ = value;
675 }
set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value)676 inline void PhoneNumber::set_country_code_source(::i18n::phonenumbers::PhoneNumber_CountryCodeSource value) {
677   _internal_set_country_code_source(value);
678   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.country_code_source)
679 }
680 
681 // optional string preferred_domestic_carrier_code = 7;
_internal_has_preferred_domestic_carrier_code()682 inline bool PhoneNumber::_internal_has_preferred_domestic_carrier_code() const {
683   bool value = (_has_bits_[0] & 0x00000004u) != 0;
684   return value;
685 }
has_preferred_domestic_carrier_code()686 inline bool PhoneNumber::has_preferred_domestic_carrier_code() const {
687   return _internal_has_preferred_domestic_carrier_code();
688 }
clear_preferred_domestic_carrier_code()689 inline void PhoneNumber::clear_preferred_domestic_carrier_code() {
690   preferred_domestic_carrier_code_.ClearToEmpty();
691   _has_bits_[0] &= ~0x00000004u;
692 }
preferred_domestic_carrier_code()693 inline const std::string& PhoneNumber::preferred_domestic_carrier_code() const {
694   // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
695   return _internal_preferred_domestic_carrier_code();
696 }
set_preferred_domestic_carrier_code(const std::string & value)697 inline void PhoneNumber::set_preferred_domestic_carrier_code(const std::string& value) {
698   _internal_set_preferred_domestic_carrier_code(value);
699   // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
700 }
mutable_preferred_domestic_carrier_code()701 inline std::string* PhoneNumber::mutable_preferred_domestic_carrier_code() {
702   // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
703   return _internal_mutable_preferred_domestic_carrier_code();
704 }
_internal_preferred_domestic_carrier_code()705 inline const std::string& PhoneNumber::_internal_preferred_domestic_carrier_code() const {
706   return preferred_domestic_carrier_code_.Get();
707 }
_internal_set_preferred_domestic_carrier_code(const std::string & value)708 inline void PhoneNumber::_internal_set_preferred_domestic_carrier_code(const std::string& value) {
709   _has_bits_[0] |= 0x00000004u;
710   preferred_domestic_carrier_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
711 }
set_preferred_domestic_carrier_code(std::string && value)712 inline void PhoneNumber::set_preferred_domestic_carrier_code(std::string&& value) {
713   _has_bits_[0] |= 0x00000004u;
714   preferred_domestic_carrier_code_.Set(
715     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
716   // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
717 }
set_preferred_domestic_carrier_code(const char * value)718 inline void PhoneNumber::set_preferred_domestic_carrier_code(const char* value) {
719   GOOGLE_DCHECK(value != nullptr);
720   _has_bits_[0] |= 0x00000004u;
721   preferred_domestic_carrier_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
722   // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
723 }
set_preferred_domestic_carrier_code(const char * value,size_t size)724 inline void PhoneNumber::set_preferred_domestic_carrier_code(const char* value,
725     size_t size) {
726   _has_bits_[0] |= 0x00000004u;
727   preferred_domestic_carrier_code_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
728       reinterpret_cast<const char*>(value), size), GetArena());
729   // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
730 }
_internal_mutable_preferred_domestic_carrier_code()731 inline std::string* PhoneNumber::_internal_mutable_preferred_domestic_carrier_code() {
732   _has_bits_[0] |= 0x00000004u;
733   return preferred_domestic_carrier_code_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
734 }
release_preferred_domestic_carrier_code()735 inline std::string* PhoneNumber::release_preferred_domestic_carrier_code() {
736   // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
737   if (!_internal_has_preferred_domestic_carrier_code()) {
738     return nullptr;
739   }
740   _has_bits_[0] &= ~0x00000004u;
741   return preferred_domestic_carrier_code_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
742 }
set_allocated_preferred_domestic_carrier_code(std::string * preferred_domestic_carrier_code)743 inline void PhoneNumber::set_allocated_preferred_domestic_carrier_code(std::string* preferred_domestic_carrier_code) {
744   if (preferred_domestic_carrier_code != nullptr) {
745     _has_bits_[0] |= 0x00000004u;
746   } else {
747     _has_bits_[0] &= ~0x00000004u;
748   }
749   preferred_domestic_carrier_code_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), preferred_domestic_carrier_code,
750       GetArena());
751   // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumber.preferred_domestic_carrier_code)
752 }
753 
754 #ifdef __GNUC__
755   #pragma GCC diagnostic pop
756 #endif  // __GNUC__
757 
758 // @@protoc_insertion_point(namespace_scope)
759 
760 }  // namespace phonenumbers
761 }  // namespace i18n
762 
763 PROTOBUF_NAMESPACE_OPEN
764 
765 template <> struct is_proto_enum< ::i18n::phonenumbers::PhoneNumber_CountryCodeSource> : ::std::true_type {};
766 
767 PROTOBUF_NAMESPACE_CLOSE
768 
769 // @@protoc_insertion_point(global_scope)
770 
771 #include <google/protobuf/port_undef.inc>
772 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_phonenumber_2eproto
773