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