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