1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: phonemetadata.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_phonemetadata_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_phonemetadata_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 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_phonemetadata_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_phonemetadata_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[4]
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 NumberFormat;
57 class NumberFormatDefaultTypeInternal;
58 extern NumberFormatDefaultTypeInternal _NumberFormat_default_instance_;
59 class PhoneMetadata;
60 class PhoneMetadataDefaultTypeInternal;
61 extern PhoneMetadataDefaultTypeInternal _PhoneMetadata_default_instance_;
62 class PhoneMetadataCollection;
63 class PhoneMetadataCollectionDefaultTypeInternal;
64 extern PhoneMetadataCollectionDefaultTypeInternal _PhoneMetadataCollection_default_instance_;
65 class PhoneNumberDesc;
66 class PhoneNumberDescDefaultTypeInternal;
67 extern PhoneNumberDescDefaultTypeInternal _PhoneNumberDesc_default_instance_;
68 } // namespace phonenumbers
69 } // namespace i18n
70 PROTOBUF_NAMESPACE_OPEN
71 template<> ::i18n::phonenumbers::NumberFormat* Arena::CreateMaybeMessage<::i18n::phonenumbers::NumberFormat>(Arena*);
72 template<> ::i18n::phonenumbers::PhoneMetadata* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadata>(Arena*);
73 template<> ::i18n::phonenumbers::PhoneMetadataCollection* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadataCollection>(Arena*);
74 template<> ::i18n::phonenumbers::PhoneNumberDesc* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(Arena*);
75 PROTOBUF_NAMESPACE_CLOSE
76 namespace i18n {
77 namespace phonenumbers {
78
79 // ===================================================================
80
81 class NumberFormat PROTOBUF_FINAL :
82 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.NumberFormat) */ {
83 public:
NumberFormat()84 inline NumberFormat() : NumberFormat(nullptr) {}
85 virtual ~NumberFormat();
86
87 NumberFormat(const NumberFormat& from);
NumberFormat(NumberFormat && from)88 NumberFormat(NumberFormat&& from) noexcept
89 : NumberFormat() {
90 *this = ::std::move(from);
91 }
92
93 inline NumberFormat& operator=(const NumberFormat& from) {
94 CopyFrom(from);
95 return *this;
96 }
97 inline NumberFormat& operator=(NumberFormat&& from) noexcept {
98 if (GetArena() == from.GetArena()) {
99 if (this != &from) InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
unknown_fields()106 inline const std::string& unknown_fields() const {
107 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
108 }
mutable_unknown_fields()109 inline std::string* mutable_unknown_fields() {
110 return _internal_metadata_.mutable_unknown_fields<std::string>();
111 }
112
113 static const NumberFormat& default_instance();
114
115 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()116 static inline const NumberFormat* internal_default_instance() {
117 return reinterpret_cast<const NumberFormat*>(
118 &_NumberFormat_default_instance_);
119 }
120 static constexpr int kIndexInFileMessages =
121 0;
122
swap(NumberFormat & a,NumberFormat & b)123 friend void swap(NumberFormat& a, NumberFormat& b) {
124 a.Swap(&b);
125 }
Swap(NumberFormat * other)126 inline void Swap(NumberFormat* other) {
127 if (other == this) return;
128 if (GetArena() == other->GetArena()) {
129 InternalSwap(other);
130 } else {
131 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
132 }
133 }
UnsafeArenaSwap(NumberFormat * other)134 void UnsafeArenaSwap(NumberFormat* other) {
135 if (other == this) return;
136 GOOGLE_DCHECK(GetArena() == other->GetArena());
137 InternalSwap(other);
138 }
139
140 // implements Message ----------------------------------------------
141
New()142 inline NumberFormat* New() const final {
143 return CreateMaybeMessage<NumberFormat>(nullptr);
144 }
145
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)146 NumberFormat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
147 return CreateMaybeMessage<NumberFormat>(arena);
148 }
149 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
150 final;
151 void CopyFrom(const NumberFormat& from);
152 void MergeFrom(const NumberFormat& from);
153 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
154 bool IsInitialized() const final;
155
156 size_t ByteSizeLong() const final;
157 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
158 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
159 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
160 void DiscardUnknownFields();
GetCachedSize()161 int GetCachedSize() const final { return _cached_size_.Get(); }
162
163 private:
164 inline void SharedCtor();
165 inline void SharedDtor();
166 void SetCachedSize(int size) const;
167 void InternalSwap(NumberFormat* other);
168 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()169 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
170 return "i18n.phonenumbers.NumberFormat";
171 }
172 protected:
173 explicit NumberFormat(::PROTOBUF_NAMESPACE_ID::Arena* arena);
174 private:
175 static void ArenaDtor(void* object);
176 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 public:
178
179 std::string GetTypeName() const final;
180
181 // nested types ----------------------------------------------------
182
183 // accessors -------------------------------------------------------
184
185 enum : int {
186 kLeadingDigitsPatternFieldNumber = 3,
187 kPatternFieldNumber = 1,
188 kFormatFieldNumber = 2,
189 kNationalPrefixFormattingRuleFieldNumber = 4,
190 kDomesticCarrierCodeFormattingRuleFieldNumber = 5,
191 kNationalPrefixOptionalWhenFormattingFieldNumber = 6,
192 };
193 // repeated string leading_digits_pattern = 3;
194 int leading_digits_pattern_size() const;
195 private:
196 int _internal_leading_digits_pattern_size() const;
197 public:
198 void clear_leading_digits_pattern();
199 const std::string& leading_digits_pattern(int index) const;
200 std::string* mutable_leading_digits_pattern(int index);
201 void set_leading_digits_pattern(int index, const std::string& value);
202 void set_leading_digits_pattern(int index, std::string&& value);
203 void set_leading_digits_pattern(int index, const char* value);
204 void set_leading_digits_pattern(int index, const char* value, size_t size);
205 std::string* add_leading_digits_pattern();
206 void add_leading_digits_pattern(const std::string& value);
207 void add_leading_digits_pattern(std::string&& value);
208 void add_leading_digits_pattern(const char* value);
209 void add_leading_digits_pattern(const char* value, size_t size);
210 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_digits_pattern() const;
211 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_digits_pattern();
212 private:
213 const std::string& _internal_leading_digits_pattern(int index) const;
214 std::string* _internal_add_leading_digits_pattern();
215 public:
216
217 // required string pattern = 1;
218 bool has_pattern() const;
219 private:
220 bool _internal_has_pattern() const;
221 public:
222 void clear_pattern();
223 const std::string& pattern() const;
224 void set_pattern(const std::string& value);
225 void set_pattern(std::string&& value);
226 void set_pattern(const char* value);
227 void set_pattern(const char* value, size_t size);
228 std::string* mutable_pattern();
229 std::string* release_pattern();
230 void set_allocated_pattern(std::string* pattern);
231 private:
232 const std::string& _internal_pattern() const;
233 void _internal_set_pattern(const std::string& value);
234 std::string* _internal_mutable_pattern();
235 public:
236
237 // required string format = 2;
238 bool has_format() const;
239 private:
240 bool _internal_has_format() const;
241 public:
242 void clear_format();
243 const std::string& format() const;
244 void set_format(const std::string& value);
245 void set_format(std::string&& value);
246 void set_format(const char* value);
247 void set_format(const char* value, size_t size);
248 std::string* mutable_format();
249 std::string* release_format();
250 void set_allocated_format(std::string* format);
251 private:
252 const std::string& _internal_format() const;
253 void _internal_set_format(const std::string& value);
254 std::string* _internal_mutable_format();
255 public:
256
257 // optional string national_prefix_formatting_rule = 4;
258 bool has_national_prefix_formatting_rule() const;
259 private:
260 bool _internal_has_national_prefix_formatting_rule() const;
261 public:
262 void clear_national_prefix_formatting_rule();
263 const std::string& national_prefix_formatting_rule() const;
264 void set_national_prefix_formatting_rule(const std::string& value);
265 void set_national_prefix_formatting_rule(std::string&& value);
266 void set_national_prefix_formatting_rule(const char* value);
267 void set_national_prefix_formatting_rule(const char* value, size_t size);
268 std::string* mutable_national_prefix_formatting_rule();
269 std::string* release_national_prefix_formatting_rule();
270 void set_allocated_national_prefix_formatting_rule(std::string* national_prefix_formatting_rule);
271 private:
272 const std::string& _internal_national_prefix_formatting_rule() const;
273 void _internal_set_national_prefix_formatting_rule(const std::string& value);
274 std::string* _internal_mutable_national_prefix_formatting_rule();
275 public:
276
277 // optional string domestic_carrier_code_formatting_rule = 5;
278 bool has_domestic_carrier_code_formatting_rule() const;
279 private:
280 bool _internal_has_domestic_carrier_code_formatting_rule() const;
281 public:
282 void clear_domestic_carrier_code_formatting_rule();
283 const std::string& domestic_carrier_code_formatting_rule() const;
284 void set_domestic_carrier_code_formatting_rule(const std::string& value);
285 void set_domestic_carrier_code_formatting_rule(std::string&& value);
286 void set_domestic_carrier_code_formatting_rule(const char* value);
287 void set_domestic_carrier_code_formatting_rule(const char* value, size_t size);
288 std::string* mutable_domestic_carrier_code_formatting_rule();
289 std::string* release_domestic_carrier_code_formatting_rule();
290 void set_allocated_domestic_carrier_code_formatting_rule(std::string* domestic_carrier_code_formatting_rule);
291 private:
292 const std::string& _internal_domestic_carrier_code_formatting_rule() const;
293 void _internal_set_domestic_carrier_code_formatting_rule(const std::string& value);
294 std::string* _internal_mutable_domestic_carrier_code_formatting_rule();
295 public:
296
297 // optional bool national_prefix_optional_when_formatting = 6 [default = false];
298 bool has_national_prefix_optional_when_formatting() const;
299 private:
300 bool _internal_has_national_prefix_optional_when_formatting() const;
301 public:
302 void clear_national_prefix_optional_when_formatting();
303 bool national_prefix_optional_when_formatting() const;
304 void set_national_prefix_optional_when_formatting(bool value);
305 private:
306 bool _internal_national_prefix_optional_when_formatting() const;
307 void _internal_set_national_prefix_optional_when_formatting(bool value);
308 public:
309
310 // @@protoc_insertion_point(class_scope:i18n.phonenumbers.NumberFormat)
311 private:
312 class _Internal;
313
314 // helper for ByteSizeLong()
315 size_t RequiredFieldsByteSizeFallback() const;
316
317 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
318 typedef void InternalArenaConstructable_;
319 typedef void DestructorSkippable_;
320 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
321 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
322 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_digits_pattern_;
323 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pattern_;
324 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr format_;
325 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_formatting_rule_;
326 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domestic_carrier_code_formatting_rule_;
327 bool national_prefix_optional_when_formatting_;
328 friend struct ::TableStruct_phonemetadata_2eproto;
329 };
330 // -------------------------------------------------------------------
331
332 class PhoneNumberDesc PROTOBUF_FINAL :
333 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneNumberDesc) */ {
334 public:
PhoneNumberDesc()335 inline PhoneNumberDesc() : PhoneNumberDesc(nullptr) {}
336 virtual ~PhoneNumberDesc();
337
338 PhoneNumberDesc(const PhoneNumberDesc& from);
PhoneNumberDesc(PhoneNumberDesc && from)339 PhoneNumberDesc(PhoneNumberDesc&& from) noexcept
340 : PhoneNumberDesc() {
341 *this = ::std::move(from);
342 }
343
344 inline PhoneNumberDesc& operator=(const PhoneNumberDesc& from) {
345 CopyFrom(from);
346 return *this;
347 }
348 inline PhoneNumberDesc& operator=(PhoneNumberDesc&& from) noexcept {
349 if (GetArena() == from.GetArena()) {
350 if (this != &from) InternalSwap(&from);
351 } else {
352 CopyFrom(from);
353 }
354 return *this;
355 }
356
unknown_fields()357 inline const std::string& unknown_fields() const {
358 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
359 }
mutable_unknown_fields()360 inline std::string* mutable_unknown_fields() {
361 return _internal_metadata_.mutable_unknown_fields<std::string>();
362 }
363
364 static const PhoneNumberDesc& default_instance();
365
366 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()367 static inline const PhoneNumberDesc* internal_default_instance() {
368 return reinterpret_cast<const PhoneNumberDesc*>(
369 &_PhoneNumberDesc_default_instance_);
370 }
371 static constexpr int kIndexInFileMessages =
372 1;
373
swap(PhoneNumberDesc & a,PhoneNumberDesc & b)374 friend void swap(PhoneNumberDesc& a, PhoneNumberDesc& b) {
375 a.Swap(&b);
376 }
Swap(PhoneNumberDesc * other)377 inline void Swap(PhoneNumberDesc* other) {
378 if (other == this) return;
379 if (GetArena() == other->GetArena()) {
380 InternalSwap(other);
381 } else {
382 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
383 }
384 }
UnsafeArenaSwap(PhoneNumberDesc * other)385 void UnsafeArenaSwap(PhoneNumberDesc* other) {
386 if (other == this) return;
387 GOOGLE_DCHECK(GetArena() == other->GetArena());
388 InternalSwap(other);
389 }
390
391 // implements Message ----------------------------------------------
392
New()393 inline PhoneNumberDesc* New() const final {
394 return CreateMaybeMessage<PhoneNumberDesc>(nullptr);
395 }
396
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)397 PhoneNumberDesc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
398 return CreateMaybeMessage<PhoneNumberDesc>(arena);
399 }
400 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
401 final;
402 void CopyFrom(const PhoneNumberDesc& from);
403 void MergeFrom(const PhoneNumberDesc& from);
404 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
405 bool IsInitialized() const final;
406
407 size_t ByteSizeLong() const final;
408 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
409 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
410 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
411 void DiscardUnknownFields();
GetCachedSize()412 int GetCachedSize() const final { return _cached_size_.Get(); }
413
414 private:
415 inline void SharedCtor();
416 inline void SharedDtor();
417 void SetCachedSize(int size) const;
418 void InternalSwap(PhoneNumberDesc* other);
419 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()420 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
421 return "i18n.phonenumbers.PhoneNumberDesc";
422 }
423 protected:
424 explicit PhoneNumberDesc(::PROTOBUF_NAMESPACE_ID::Arena* arena);
425 private:
426 static void ArenaDtor(void* object);
427 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
428 public:
429
430 std::string GetTypeName() const final;
431
432 // nested types ----------------------------------------------------
433
434 // accessors -------------------------------------------------------
435
436 enum : int {
437 kPossibleLengthFieldNumber = 9,
438 kPossibleLengthLocalOnlyFieldNumber = 10,
439 kNationalNumberPatternFieldNumber = 2,
440 kExampleNumberFieldNumber = 6,
441 };
442 // repeated int32 possible_length = 9;
443 int possible_length_size() const;
444 private:
445 int _internal_possible_length_size() const;
446 public:
447 void clear_possible_length();
448 private:
449 ::PROTOBUF_NAMESPACE_ID::int32 _internal_possible_length(int index) const;
450 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
451 _internal_possible_length() const;
452 void _internal_add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value);
453 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
454 _internal_mutable_possible_length();
455 public:
456 ::PROTOBUF_NAMESPACE_ID::int32 possible_length(int index) const;
457 void set_possible_length(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
458 void add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value);
459 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
460 possible_length() const;
461 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
462 mutable_possible_length();
463
464 // repeated int32 possible_length_local_only = 10;
465 int possible_length_local_only_size() const;
466 private:
467 int _internal_possible_length_local_only_size() const;
468 public:
469 void clear_possible_length_local_only();
470 private:
471 ::PROTOBUF_NAMESPACE_ID::int32 _internal_possible_length_local_only(int index) const;
472 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
473 _internal_possible_length_local_only() const;
474 void _internal_add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value);
475 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
476 _internal_mutable_possible_length_local_only();
477 public:
478 ::PROTOBUF_NAMESPACE_ID::int32 possible_length_local_only(int index) const;
479 void set_possible_length_local_only(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
480 void add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value);
481 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
482 possible_length_local_only() const;
483 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
484 mutable_possible_length_local_only();
485
486 // optional string national_number_pattern = 2;
487 bool has_national_number_pattern() const;
488 private:
489 bool _internal_has_national_number_pattern() const;
490 public:
491 void clear_national_number_pattern();
492 const std::string& national_number_pattern() const;
493 void set_national_number_pattern(const std::string& value);
494 void set_national_number_pattern(std::string&& value);
495 void set_national_number_pattern(const char* value);
496 void set_national_number_pattern(const char* value, size_t size);
497 std::string* mutable_national_number_pattern();
498 std::string* release_national_number_pattern();
499 void set_allocated_national_number_pattern(std::string* national_number_pattern);
500 private:
501 const std::string& _internal_national_number_pattern() const;
502 void _internal_set_national_number_pattern(const std::string& value);
503 std::string* _internal_mutable_national_number_pattern();
504 public:
505
506 // optional string example_number = 6;
507 bool has_example_number() const;
508 private:
509 bool _internal_has_example_number() const;
510 public:
511 void clear_example_number();
512 const std::string& example_number() const;
513 void set_example_number(const std::string& value);
514 void set_example_number(std::string&& value);
515 void set_example_number(const char* value);
516 void set_example_number(const char* value, size_t size);
517 std::string* mutable_example_number();
518 std::string* release_example_number();
519 void set_allocated_example_number(std::string* example_number);
520 private:
521 const std::string& _internal_example_number() const;
522 void _internal_set_example_number(const std::string& value);
523 std::string* _internal_mutable_example_number();
524 public:
525
526 // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneNumberDesc)
527 private:
528 class _Internal;
529
530 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
531 typedef void InternalArenaConstructable_;
532 typedef void DestructorSkippable_;
533 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
534 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
535 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > possible_length_;
536 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > possible_length_local_only_;
537 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_number_pattern_;
538 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr example_number_;
539 friend struct ::TableStruct_phonemetadata_2eproto;
540 };
541 // -------------------------------------------------------------------
542
543 class PhoneMetadata PROTOBUF_FINAL :
544 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadata) */ {
545 public:
PhoneMetadata()546 inline PhoneMetadata() : PhoneMetadata(nullptr) {}
547 virtual ~PhoneMetadata();
548
549 PhoneMetadata(const PhoneMetadata& from);
PhoneMetadata(PhoneMetadata && from)550 PhoneMetadata(PhoneMetadata&& from) noexcept
551 : PhoneMetadata() {
552 *this = ::std::move(from);
553 }
554
555 inline PhoneMetadata& operator=(const PhoneMetadata& from) {
556 CopyFrom(from);
557 return *this;
558 }
559 inline PhoneMetadata& operator=(PhoneMetadata&& from) noexcept {
560 if (GetArena() == from.GetArena()) {
561 if (this != &from) InternalSwap(&from);
562 } else {
563 CopyFrom(from);
564 }
565 return *this;
566 }
567
unknown_fields()568 inline const std::string& unknown_fields() const {
569 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
570 }
mutable_unknown_fields()571 inline std::string* mutable_unknown_fields() {
572 return _internal_metadata_.mutable_unknown_fields<std::string>();
573 }
574
575 static const PhoneMetadata& default_instance();
576
577 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()578 static inline const PhoneMetadata* internal_default_instance() {
579 return reinterpret_cast<const PhoneMetadata*>(
580 &_PhoneMetadata_default_instance_);
581 }
582 static constexpr int kIndexInFileMessages =
583 2;
584
swap(PhoneMetadata & a,PhoneMetadata & b)585 friend void swap(PhoneMetadata& a, PhoneMetadata& b) {
586 a.Swap(&b);
587 }
Swap(PhoneMetadata * other)588 inline void Swap(PhoneMetadata* other) {
589 if (other == this) return;
590 if (GetArena() == other->GetArena()) {
591 InternalSwap(other);
592 } else {
593 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
594 }
595 }
UnsafeArenaSwap(PhoneMetadata * other)596 void UnsafeArenaSwap(PhoneMetadata* other) {
597 if (other == this) return;
598 GOOGLE_DCHECK(GetArena() == other->GetArena());
599 InternalSwap(other);
600 }
601
602 // implements Message ----------------------------------------------
603
New()604 inline PhoneMetadata* New() const final {
605 return CreateMaybeMessage<PhoneMetadata>(nullptr);
606 }
607
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)608 PhoneMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
609 return CreateMaybeMessage<PhoneMetadata>(arena);
610 }
611 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
612 final;
613 void CopyFrom(const PhoneMetadata& from);
614 void MergeFrom(const PhoneMetadata& from);
615 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
616 bool IsInitialized() const final;
617
618 size_t ByteSizeLong() const final;
619 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
620 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
621 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
622 void DiscardUnknownFields();
GetCachedSize()623 int GetCachedSize() const final { return _cached_size_.Get(); }
624
625 private:
626 inline void SharedCtor();
627 inline void SharedDtor();
628 void SetCachedSize(int size) const;
629 void InternalSwap(PhoneMetadata* other);
630 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()631 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
632 return "i18n.phonenumbers.PhoneMetadata";
633 }
634 protected:
635 explicit PhoneMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena);
636 private:
637 static void ArenaDtor(void* object);
638 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
639 public:
640
641 std::string GetTypeName() const final;
642
643 // nested types ----------------------------------------------------
644
645 // accessors -------------------------------------------------------
646
647 enum : int {
648 kNumberFormatFieldNumber = 19,
649 kIntlNumberFormatFieldNumber = 20,
650 kIdFieldNumber = 9,
651 kInternationalPrefixFieldNumber = 11,
652 kNationalPrefixFieldNumber = 12,
653 kPreferredExtnPrefixFieldNumber = 13,
654 kNationalPrefixForParsingFieldNumber = 15,
655 kNationalPrefixTransformRuleFieldNumber = 16,
656 kPreferredInternationalPrefixFieldNumber = 17,
657 kLeadingDigitsFieldNumber = 23,
658 kGeneralDescFieldNumber = 1,
659 kFixedLineFieldNumber = 2,
660 kMobileFieldNumber = 3,
661 kTollFreeFieldNumber = 4,
662 kPremiumRateFieldNumber = 5,
663 kSharedCostFieldNumber = 6,
664 kPersonalNumberFieldNumber = 7,
665 kVoipFieldNumber = 8,
666 kPagerFieldNumber = 21,
667 kNoInternationalDiallingFieldNumber = 24,
668 kUanFieldNumber = 25,
669 kEmergencyFieldNumber = 27,
670 kVoicemailFieldNumber = 28,
671 kShortCodeFieldNumber = 29,
672 kStandardRateFieldNumber = 30,
673 kCarrierSpecificFieldNumber = 31,
674 kSmsServicesFieldNumber = 33,
675 kCountryCodeFieldNumber = 10,
676 kSameMobileAndFixedLinePatternFieldNumber = 18,
677 kMainCountryForCodeFieldNumber = 22,
678 kLeadingZeroPossibleFieldNumber = 26,
679 kMobileNumberPortableRegionFieldNumber = 32,
680 };
681 // repeated .i18n.phonenumbers.NumberFormat number_format = 19;
682 int number_format_size() const;
683 private:
684 int _internal_number_format_size() const;
685 public:
686 void clear_number_format();
687 ::i18n::phonenumbers::NumberFormat* mutable_number_format(int index);
688 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
689 mutable_number_format();
690 private:
691 const ::i18n::phonenumbers::NumberFormat& _internal_number_format(int index) const;
692 ::i18n::phonenumbers::NumberFormat* _internal_add_number_format();
693 public:
694 const ::i18n::phonenumbers::NumberFormat& number_format(int index) const;
695 ::i18n::phonenumbers::NumberFormat* add_number_format();
696 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
697 number_format() const;
698
699 // repeated .i18n.phonenumbers.NumberFormat intl_number_format = 20;
700 int intl_number_format_size() const;
701 private:
702 int _internal_intl_number_format_size() const;
703 public:
704 void clear_intl_number_format();
705 ::i18n::phonenumbers::NumberFormat* mutable_intl_number_format(int index);
706 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >*
707 mutable_intl_number_format();
708 private:
709 const ::i18n::phonenumbers::NumberFormat& _internal_intl_number_format(int index) const;
710 ::i18n::phonenumbers::NumberFormat* _internal_add_intl_number_format();
711 public:
712 const ::i18n::phonenumbers::NumberFormat& intl_number_format(int index) const;
713 ::i18n::phonenumbers::NumberFormat* add_intl_number_format();
714 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >&
715 intl_number_format() const;
716
717 // required string id = 9;
718 bool has_id() const;
719 private:
720 bool _internal_has_id() const;
721 public:
722 void clear_id();
723 const std::string& id() const;
724 void set_id(const std::string& value);
725 void set_id(std::string&& value);
726 void set_id(const char* value);
727 void set_id(const char* value, size_t size);
728 std::string* mutable_id();
729 std::string* release_id();
730 void set_allocated_id(std::string* id);
731 private:
732 const std::string& _internal_id() const;
733 void _internal_set_id(const std::string& value);
734 std::string* _internal_mutable_id();
735 public:
736
737 // optional string international_prefix = 11;
738 bool has_international_prefix() const;
739 private:
740 bool _internal_has_international_prefix() const;
741 public:
742 void clear_international_prefix();
743 const std::string& international_prefix() const;
744 void set_international_prefix(const std::string& value);
745 void set_international_prefix(std::string&& value);
746 void set_international_prefix(const char* value);
747 void set_international_prefix(const char* value, size_t size);
748 std::string* mutable_international_prefix();
749 std::string* release_international_prefix();
750 void set_allocated_international_prefix(std::string* international_prefix);
751 private:
752 const std::string& _internal_international_prefix() const;
753 void _internal_set_international_prefix(const std::string& value);
754 std::string* _internal_mutable_international_prefix();
755 public:
756
757 // optional string national_prefix = 12;
758 bool has_national_prefix() const;
759 private:
760 bool _internal_has_national_prefix() const;
761 public:
762 void clear_national_prefix();
763 const std::string& national_prefix() const;
764 void set_national_prefix(const std::string& value);
765 void set_national_prefix(std::string&& value);
766 void set_national_prefix(const char* value);
767 void set_national_prefix(const char* value, size_t size);
768 std::string* mutable_national_prefix();
769 std::string* release_national_prefix();
770 void set_allocated_national_prefix(std::string* national_prefix);
771 private:
772 const std::string& _internal_national_prefix() const;
773 void _internal_set_national_prefix(const std::string& value);
774 std::string* _internal_mutable_national_prefix();
775 public:
776
777 // optional string preferred_extn_prefix = 13;
778 bool has_preferred_extn_prefix() const;
779 private:
780 bool _internal_has_preferred_extn_prefix() const;
781 public:
782 void clear_preferred_extn_prefix();
783 const std::string& preferred_extn_prefix() const;
784 void set_preferred_extn_prefix(const std::string& value);
785 void set_preferred_extn_prefix(std::string&& value);
786 void set_preferred_extn_prefix(const char* value);
787 void set_preferred_extn_prefix(const char* value, size_t size);
788 std::string* mutable_preferred_extn_prefix();
789 std::string* release_preferred_extn_prefix();
790 void set_allocated_preferred_extn_prefix(std::string* preferred_extn_prefix);
791 private:
792 const std::string& _internal_preferred_extn_prefix() const;
793 void _internal_set_preferred_extn_prefix(const std::string& value);
794 std::string* _internal_mutable_preferred_extn_prefix();
795 public:
796
797 // optional string national_prefix_for_parsing = 15;
798 bool has_national_prefix_for_parsing() const;
799 private:
800 bool _internal_has_national_prefix_for_parsing() const;
801 public:
802 void clear_national_prefix_for_parsing();
803 const std::string& national_prefix_for_parsing() const;
804 void set_national_prefix_for_parsing(const std::string& value);
805 void set_national_prefix_for_parsing(std::string&& value);
806 void set_national_prefix_for_parsing(const char* value);
807 void set_national_prefix_for_parsing(const char* value, size_t size);
808 std::string* mutable_national_prefix_for_parsing();
809 std::string* release_national_prefix_for_parsing();
810 void set_allocated_national_prefix_for_parsing(std::string* national_prefix_for_parsing);
811 private:
812 const std::string& _internal_national_prefix_for_parsing() const;
813 void _internal_set_national_prefix_for_parsing(const std::string& value);
814 std::string* _internal_mutable_national_prefix_for_parsing();
815 public:
816
817 // optional string national_prefix_transform_rule = 16;
818 bool has_national_prefix_transform_rule() const;
819 private:
820 bool _internal_has_national_prefix_transform_rule() const;
821 public:
822 void clear_national_prefix_transform_rule();
823 const std::string& national_prefix_transform_rule() const;
824 void set_national_prefix_transform_rule(const std::string& value);
825 void set_national_prefix_transform_rule(std::string&& value);
826 void set_national_prefix_transform_rule(const char* value);
827 void set_national_prefix_transform_rule(const char* value, size_t size);
828 std::string* mutable_national_prefix_transform_rule();
829 std::string* release_national_prefix_transform_rule();
830 void set_allocated_national_prefix_transform_rule(std::string* national_prefix_transform_rule);
831 private:
832 const std::string& _internal_national_prefix_transform_rule() const;
833 void _internal_set_national_prefix_transform_rule(const std::string& value);
834 std::string* _internal_mutable_national_prefix_transform_rule();
835 public:
836
837 // optional string preferred_international_prefix = 17;
838 bool has_preferred_international_prefix() const;
839 private:
840 bool _internal_has_preferred_international_prefix() const;
841 public:
842 void clear_preferred_international_prefix();
843 const std::string& preferred_international_prefix() const;
844 void set_preferred_international_prefix(const std::string& value);
845 void set_preferred_international_prefix(std::string&& value);
846 void set_preferred_international_prefix(const char* value);
847 void set_preferred_international_prefix(const char* value, size_t size);
848 std::string* mutable_preferred_international_prefix();
849 std::string* release_preferred_international_prefix();
850 void set_allocated_preferred_international_prefix(std::string* preferred_international_prefix);
851 private:
852 const std::string& _internal_preferred_international_prefix() const;
853 void _internal_set_preferred_international_prefix(const std::string& value);
854 std::string* _internal_mutable_preferred_international_prefix();
855 public:
856
857 // optional string leading_digits = 23;
858 bool has_leading_digits() const;
859 private:
860 bool _internal_has_leading_digits() const;
861 public:
862 void clear_leading_digits();
863 const std::string& leading_digits() const;
864 void set_leading_digits(const std::string& value);
865 void set_leading_digits(std::string&& value);
866 void set_leading_digits(const char* value);
867 void set_leading_digits(const char* value, size_t size);
868 std::string* mutable_leading_digits();
869 std::string* release_leading_digits();
870 void set_allocated_leading_digits(std::string* leading_digits);
871 private:
872 const std::string& _internal_leading_digits() const;
873 void _internal_set_leading_digits(const std::string& value);
874 std::string* _internal_mutable_leading_digits();
875 public:
876
877 // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1;
878 bool has_general_desc() const;
879 private:
880 bool _internal_has_general_desc() const;
881 public:
882 void clear_general_desc();
883 const ::i18n::phonenumbers::PhoneNumberDesc& general_desc() const;
884 ::i18n::phonenumbers::PhoneNumberDesc* release_general_desc();
885 ::i18n::phonenumbers::PhoneNumberDesc* mutable_general_desc();
886 void set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc);
887 private:
888 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_general_desc() const;
889 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_general_desc();
890 public:
891 void unsafe_arena_set_allocated_general_desc(
892 ::i18n::phonenumbers::PhoneNumberDesc* general_desc);
893 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_general_desc();
894
895 // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2;
896 bool has_fixed_line() const;
897 private:
898 bool _internal_has_fixed_line() const;
899 public:
900 void clear_fixed_line();
901 const ::i18n::phonenumbers::PhoneNumberDesc& fixed_line() const;
902 ::i18n::phonenumbers::PhoneNumberDesc* release_fixed_line();
903 ::i18n::phonenumbers::PhoneNumberDesc* mutable_fixed_line();
904 void set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line);
905 private:
906 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_fixed_line() const;
907 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_fixed_line();
908 public:
909 void unsafe_arena_set_allocated_fixed_line(
910 ::i18n::phonenumbers::PhoneNumberDesc* fixed_line);
911 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_fixed_line();
912
913 // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3;
914 bool has_mobile() const;
915 private:
916 bool _internal_has_mobile() const;
917 public:
918 void clear_mobile();
919 const ::i18n::phonenumbers::PhoneNumberDesc& mobile() const;
920 ::i18n::phonenumbers::PhoneNumberDesc* release_mobile();
921 ::i18n::phonenumbers::PhoneNumberDesc* mutable_mobile();
922 void set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile);
923 private:
924 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_mobile() const;
925 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_mobile();
926 public:
927 void unsafe_arena_set_allocated_mobile(
928 ::i18n::phonenumbers::PhoneNumberDesc* mobile);
929 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_mobile();
930
931 // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4;
932 bool has_toll_free() const;
933 private:
934 bool _internal_has_toll_free() const;
935 public:
936 void clear_toll_free();
937 const ::i18n::phonenumbers::PhoneNumberDesc& toll_free() const;
938 ::i18n::phonenumbers::PhoneNumberDesc* release_toll_free();
939 ::i18n::phonenumbers::PhoneNumberDesc* mutable_toll_free();
940 void set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free);
941 private:
942 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_toll_free() const;
943 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_toll_free();
944 public:
945 void unsafe_arena_set_allocated_toll_free(
946 ::i18n::phonenumbers::PhoneNumberDesc* toll_free);
947 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_toll_free();
948
949 // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5;
950 bool has_premium_rate() const;
951 private:
952 bool _internal_has_premium_rate() const;
953 public:
954 void clear_premium_rate();
955 const ::i18n::phonenumbers::PhoneNumberDesc& premium_rate() const;
956 ::i18n::phonenumbers::PhoneNumberDesc* release_premium_rate();
957 ::i18n::phonenumbers::PhoneNumberDesc* mutable_premium_rate();
958 void set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate);
959 private:
960 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_premium_rate() const;
961 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_premium_rate();
962 public:
963 void unsafe_arena_set_allocated_premium_rate(
964 ::i18n::phonenumbers::PhoneNumberDesc* premium_rate);
965 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_premium_rate();
966
967 // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6;
968 bool has_shared_cost() const;
969 private:
970 bool _internal_has_shared_cost() const;
971 public:
972 void clear_shared_cost();
973 const ::i18n::phonenumbers::PhoneNumberDesc& shared_cost() const;
974 ::i18n::phonenumbers::PhoneNumberDesc* release_shared_cost();
975 ::i18n::phonenumbers::PhoneNumberDesc* mutable_shared_cost();
976 void set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost);
977 private:
978 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_shared_cost() const;
979 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_shared_cost();
980 public:
981 void unsafe_arena_set_allocated_shared_cost(
982 ::i18n::phonenumbers::PhoneNumberDesc* shared_cost);
983 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_shared_cost();
984
985 // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7;
986 bool has_personal_number() const;
987 private:
988 bool _internal_has_personal_number() const;
989 public:
990 void clear_personal_number();
991 const ::i18n::phonenumbers::PhoneNumberDesc& personal_number() const;
992 ::i18n::phonenumbers::PhoneNumberDesc* release_personal_number();
993 ::i18n::phonenumbers::PhoneNumberDesc* mutable_personal_number();
994 void set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number);
995 private:
996 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_personal_number() const;
997 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_personal_number();
998 public:
999 void unsafe_arena_set_allocated_personal_number(
1000 ::i18n::phonenumbers::PhoneNumberDesc* personal_number);
1001 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_personal_number();
1002
1003 // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8;
1004 bool has_voip() const;
1005 private:
1006 bool _internal_has_voip() const;
1007 public:
1008 void clear_voip();
1009 const ::i18n::phonenumbers::PhoneNumberDesc& voip() const;
1010 ::i18n::phonenumbers::PhoneNumberDesc* release_voip();
1011 ::i18n::phonenumbers::PhoneNumberDesc* mutable_voip();
1012 void set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip);
1013 private:
1014 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voip() const;
1015 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_voip();
1016 public:
1017 void unsafe_arena_set_allocated_voip(
1018 ::i18n::phonenumbers::PhoneNumberDesc* voip);
1019 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_voip();
1020
1021 // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21;
1022 bool has_pager() const;
1023 private:
1024 bool _internal_has_pager() const;
1025 public:
1026 void clear_pager();
1027 const ::i18n::phonenumbers::PhoneNumberDesc& pager() const;
1028 ::i18n::phonenumbers::PhoneNumberDesc* release_pager();
1029 ::i18n::phonenumbers::PhoneNumberDesc* mutable_pager();
1030 void set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager);
1031 private:
1032 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_pager() const;
1033 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_pager();
1034 public:
1035 void unsafe_arena_set_allocated_pager(
1036 ::i18n::phonenumbers::PhoneNumberDesc* pager);
1037 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_pager();
1038
1039 // optional .i18n.phonenumbers.PhoneNumberDesc no_international_dialling = 24;
1040 bool has_no_international_dialling() const;
1041 private:
1042 bool _internal_has_no_international_dialling() const;
1043 public:
1044 void clear_no_international_dialling();
1045 const ::i18n::phonenumbers::PhoneNumberDesc& no_international_dialling() const;
1046 ::i18n::phonenumbers::PhoneNumberDesc* release_no_international_dialling();
1047 ::i18n::phonenumbers::PhoneNumberDesc* mutable_no_international_dialling();
1048 void set_allocated_no_international_dialling(::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling);
1049 private:
1050 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_no_international_dialling() const;
1051 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_no_international_dialling();
1052 public:
1053 void unsafe_arena_set_allocated_no_international_dialling(
1054 ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling);
1055 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_no_international_dialling();
1056
1057 // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25;
1058 bool has_uan() const;
1059 private:
1060 bool _internal_has_uan() const;
1061 public:
1062 void clear_uan();
1063 const ::i18n::phonenumbers::PhoneNumberDesc& uan() const;
1064 ::i18n::phonenumbers::PhoneNumberDesc* release_uan();
1065 ::i18n::phonenumbers::PhoneNumberDesc* mutable_uan();
1066 void set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan);
1067 private:
1068 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_uan() const;
1069 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_uan();
1070 public:
1071 void unsafe_arena_set_allocated_uan(
1072 ::i18n::phonenumbers::PhoneNumberDesc* uan);
1073 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_uan();
1074
1075 // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27;
1076 bool has_emergency() const;
1077 private:
1078 bool _internal_has_emergency() const;
1079 public:
1080 void clear_emergency();
1081 const ::i18n::phonenumbers::PhoneNumberDesc& emergency() const;
1082 ::i18n::phonenumbers::PhoneNumberDesc* release_emergency();
1083 ::i18n::phonenumbers::PhoneNumberDesc* mutable_emergency();
1084 void set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency);
1085 private:
1086 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_emergency() const;
1087 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_emergency();
1088 public:
1089 void unsafe_arena_set_allocated_emergency(
1090 ::i18n::phonenumbers::PhoneNumberDesc* emergency);
1091 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_emergency();
1092
1093 // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28;
1094 bool has_voicemail() const;
1095 private:
1096 bool _internal_has_voicemail() const;
1097 public:
1098 void clear_voicemail();
1099 const ::i18n::phonenumbers::PhoneNumberDesc& voicemail() const;
1100 ::i18n::phonenumbers::PhoneNumberDesc* release_voicemail();
1101 ::i18n::phonenumbers::PhoneNumberDesc* mutable_voicemail();
1102 void set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail);
1103 private:
1104 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voicemail() const;
1105 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_voicemail();
1106 public:
1107 void unsafe_arena_set_allocated_voicemail(
1108 ::i18n::phonenumbers::PhoneNumberDesc* voicemail);
1109 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_voicemail();
1110
1111 // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29;
1112 bool has_short_code() const;
1113 private:
1114 bool _internal_has_short_code() const;
1115 public:
1116 void clear_short_code();
1117 const ::i18n::phonenumbers::PhoneNumberDesc& short_code() const;
1118 ::i18n::phonenumbers::PhoneNumberDesc* release_short_code();
1119 ::i18n::phonenumbers::PhoneNumberDesc* mutable_short_code();
1120 void set_allocated_short_code(::i18n::phonenumbers::PhoneNumberDesc* short_code);
1121 private:
1122 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_short_code() const;
1123 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_short_code();
1124 public:
1125 void unsafe_arena_set_allocated_short_code(
1126 ::i18n::phonenumbers::PhoneNumberDesc* short_code);
1127 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_short_code();
1128
1129 // optional .i18n.phonenumbers.PhoneNumberDesc standard_rate = 30;
1130 bool has_standard_rate() const;
1131 private:
1132 bool _internal_has_standard_rate() const;
1133 public:
1134 void clear_standard_rate();
1135 const ::i18n::phonenumbers::PhoneNumberDesc& standard_rate() const;
1136 ::i18n::phonenumbers::PhoneNumberDesc* release_standard_rate();
1137 ::i18n::phonenumbers::PhoneNumberDesc* mutable_standard_rate();
1138 void set_allocated_standard_rate(::i18n::phonenumbers::PhoneNumberDesc* standard_rate);
1139 private:
1140 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_standard_rate() const;
1141 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_standard_rate();
1142 public:
1143 void unsafe_arena_set_allocated_standard_rate(
1144 ::i18n::phonenumbers::PhoneNumberDesc* standard_rate);
1145 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_standard_rate();
1146
1147 // optional .i18n.phonenumbers.PhoneNumberDesc carrier_specific = 31;
1148 bool has_carrier_specific() const;
1149 private:
1150 bool _internal_has_carrier_specific() const;
1151 public:
1152 void clear_carrier_specific();
1153 const ::i18n::phonenumbers::PhoneNumberDesc& carrier_specific() const;
1154 ::i18n::phonenumbers::PhoneNumberDesc* release_carrier_specific();
1155 ::i18n::phonenumbers::PhoneNumberDesc* mutable_carrier_specific();
1156 void set_allocated_carrier_specific(::i18n::phonenumbers::PhoneNumberDesc* carrier_specific);
1157 private:
1158 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_carrier_specific() const;
1159 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_carrier_specific();
1160 public:
1161 void unsafe_arena_set_allocated_carrier_specific(
1162 ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific);
1163 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_carrier_specific();
1164
1165 // optional .i18n.phonenumbers.PhoneNumberDesc sms_services = 33;
1166 bool has_sms_services() const;
1167 private:
1168 bool _internal_has_sms_services() const;
1169 public:
1170 void clear_sms_services();
1171 const ::i18n::phonenumbers::PhoneNumberDesc& sms_services() const;
1172 ::i18n::phonenumbers::PhoneNumberDesc* release_sms_services();
1173 ::i18n::phonenumbers::PhoneNumberDesc* mutable_sms_services();
1174 void set_allocated_sms_services(::i18n::phonenumbers::PhoneNumberDesc* sms_services);
1175 private:
1176 const ::i18n::phonenumbers::PhoneNumberDesc& _internal_sms_services() const;
1177 ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_sms_services();
1178 public:
1179 void unsafe_arena_set_allocated_sms_services(
1180 ::i18n::phonenumbers::PhoneNumberDesc* sms_services);
1181 ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_sms_services();
1182
1183 // optional int32 country_code = 10;
1184 bool has_country_code() const;
1185 private:
1186 bool _internal_has_country_code() const;
1187 public:
1188 void clear_country_code();
1189 ::PROTOBUF_NAMESPACE_ID::int32 country_code() const;
1190 void set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value);
1191 private:
1192 ::PROTOBUF_NAMESPACE_ID::int32 _internal_country_code() const;
1193 void _internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value);
1194 public:
1195
1196 // optional bool same_mobile_and_fixed_line_pattern = 18 [default = false];
1197 bool has_same_mobile_and_fixed_line_pattern() const;
1198 private:
1199 bool _internal_has_same_mobile_and_fixed_line_pattern() const;
1200 public:
1201 void clear_same_mobile_and_fixed_line_pattern();
1202 bool same_mobile_and_fixed_line_pattern() const;
1203 void set_same_mobile_and_fixed_line_pattern(bool value);
1204 private:
1205 bool _internal_same_mobile_and_fixed_line_pattern() const;
1206 void _internal_set_same_mobile_and_fixed_line_pattern(bool value);
1207 public:
1208
1209 // optional bool main_country_for_code = 22 [default = false];
1210 bool has_main_country_for_code() const;
1211 private:
1212 bool _internal_has_main_country_for_code() const;
1213 public:
1214 void clear_main_country_for_code();
1215 bool main_country_for_code() const;
1216 void set_main_country_for_code(bool value);
1217 private:
1218 bool _internal_main_country_for_code() const;
1219 void _internal_set_main_country_for_code(bool value);
1220 public:
1221
1222 // optional bool leading_zero_possible = 26 [default = false];
1223 bool has_leading_zero_possible() const;
1224 private:
1225 bool _internal_has_leading_zero_possible() const;
1226 public:
1227 void clear_leading_zero_possible();
1228 bool leading_zero_possible() const;
1229 void set_leading_zero_possible(bool value);
1230 private:
1231 bool _internal_leading_zero_possible() const;
1232 void _internal_set_leading_zero_possible(bool value);
1233 public:
1234
1235 // optional bool mobile_number_portable_region = 32 [default = false];
1236 bool has_mobile_number_portable_region() const;
1237 private:
1238 bool _internal_has_mobile_number_portable_region() const;
1239 public:
1240 void clear_mobile_number_portable_region();
1241 bool mobile_number_portable_region() const;
1242 void set_mobile_number_portable_region(bool value);
1243 private:
1244 bool _internal_mobile_number_portable_region() const;
1245 void _internal_set_mobile_number_portable_region(bool value);
1246 public:
1247
1248 // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadata)
1249 private:
1250 class _Internal;
1251
1252 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1253 typedef void InternalArenaConstructable_;
1254 typedef void DestructorSkippable_;
1255 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1256 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1257 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > number_format_;
1258 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > intl_number_format_;
1259 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
1260 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr international_prefix_;
1261 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_;
1262 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr preferred_extn_prefix_;
1263 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_for_parsing_;
1264 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_transform_rule_;
1265 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr preferred_international_prefix_;
1266 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_digits_;
1267 ::i18n::phonenumbers::PhoneNumberDesc* general_desc_;
1268 ::i18n::phonenumbers::PhoneNumberDesc* fixed_line_;
1269 ::i18n::phonenumbers::PhoneNumberDesc* mobile_;
1270 ::i18n::phonenumbers::PhoneNumberDesc* toll_free_;
1271 ::i18n::phonenumbers::PhoneNumberDesc* premium_rate_;
1272 ::i18n::phonenumbers::PhoneNumberDesc* shared_cost_;
1273 ::i18n::phonenumbers::PhoneNumberDesc* personal_number_;
1274 ::i18n::phonenumbers::PhoneNumberDesc* voip_;
1275 ::i18n::phonenumbers::PhoneNumberDesc* pager_;
1276 ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling_;
1277 ::i18n::phonenumbers::PhoneNumberDesc* uan_;
1278 ::i18n::phonenumbers::PhoneNumberDesc* emergency_;
1279 ::i18n::phonenumbers::PhoneNumberDesc* voicemail_;
1280 ::i18n::phonenumbers::PhoneNumberDesc* short_code_;
1281 ::i18n::phonenumbers::PhoneNumberDesc* standard_rate_;
1282 ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific_;
1283 ::i18n::phonenumbers::PhoneNumberDesc* sms_services_;
1284 ::PROTOBUF_NAMESPACE_ID::int32 country_code_;
1285 bool same_mobile_and_fixed_line_pattern_;
1286 bool main_country_for_code_;
1287 bool leading_zero_possible_;
1288 bool mobile_number_portable_region_;
1289 friend struct ::TableStruct_phonemetadata_2eproto;
1290 };
1291 // -------------------------------------------------------------------
1292
1293 class PhoneMetadataCollection PROTOBUF_FINAL :
1294 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadataCollection) */ {
1295 public:
PhoneMetadataCollection()1296 inline PhoneMetadataCollection() : PhoneMetadataCollection(nullptr) {}
1297 virtual ~PhoneMetadataCollection();
1298
1299 PhoneMetadataCollection(const PhoneMetadataCollection& from);
PhoneMetadataCollection(PhoneMetadataCollection && from)1300 PhoneMetadataCollection(PhoneMetadataCollection&& from) noexcept
1301 : PhoneMetadataCollection() {
1302 *this = ::std::move(from);
1303 }
1304
1305 inline PhoneMetadataCollection& operator=(const PhoneMetadataCollection& from) {
1306 CopyFrom(from);
1307 return *this;
1308 }
1309 inline PhoneMetadataCollection& operator=(PhoneMetadataCollection&& from) noexcept {
1310 if (GetArena() == from.GetArena()) {
1311 if (this != &from) InternalSwap(&from);
1312 } else {
1313 CopyFrom(from);
1314 }
1315 return *this;
1316 }
1317
unknown_fields()1318 inline const std::string& unknown_fields() const {
1319 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1320 }
mutable_unknown_fields()1321 inline std::string* mutable_unknown_fields() {
1322 return _internal_metadata_.mutable_unknown_fields<std::string>();
1323 }
1324
1325 static const PhoneMetadataCollection& default_instance();
1326
1327 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()1328 static inline const PhoneMetadataCollection* internal_default_instance() {
1329 return reinterpret_cast<const PhoneMetadataCollection*>(
1330 &_PhoneMetadataCollection_default_instance_);
1331 }
1332 static constexpr int kIndexInFileMessages =
1333 3;
1334
swap(PhoneMetadataCollection & a,PhoneMetadataCollection & b)1335 friend void swap(PhoneMetadataCollection& a, PhoneMetadataCollection& b) {
1336 a.Swap(&b);
1337 }
Swap(PhoneMetadataCollection * other)1338 inline void Swap(PhoneMetadataCollection* other) {
1339 if (other == this) return;
1340 if (GetArena() == other->GetArena()) {
1341 InternalSwap(other);
1342 } else {
1343 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1344 }
1345 }
UnsafeArenaSwap(PhoneMetadataCollection * other)1346 void UnsafeArenaSwap(PhoneMetadataCollection* other) {
1347 if (other == this) return;
1348 GOOGLE_DCHECK(GetArena() == other->GetArena());
1349 InternalSwap(other);
1350 }
1351
1352 // implements Message ----------------------------------------------
1353
New()1354 inline PhoneMetadataCollection* New() const final {
1355 return CreateMaybeMessage<PhoneMetadataCollection>(nullptr);
1356 }
1357
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)1358 PhoneMetadataCollection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1359 return CreateMaybeMessage<PhoneMetadataCollection>(arena);
1360 }
1361 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
1362 final;
1363 void CopyFrom(const PhoneMetadataCollection& from);
1364 void MergeFrom(const PhoneMetadataCollection& from);
1365 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1366 bool IsInitialized() const final;
1367
1368 size_t ByteSizeLong() const final;
1369 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1370 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1371 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1372 void DiscardUnknownFields();
GetCachedSize()1373 int GetCachedSize() const final { return _cached_size_.Get(); }
1374
1375 private:
1376 inline void SharedCtor();
1377 inline void SharedDtor();
1378 void SetCachedSize(int size) const;
1379 void InternalSwap(PhoneMetadataCollection* other);
1380 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()1381 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1382 return "i18n.phonenumbers.PhoneMetadataCollection";
1383 }
1384 protected:
1385 explicit PhoneMetadataCollection(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1386 private:
1387 static void ArenaDtor(void* object);
1388 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1389 public:
1390
1391 std::string GetTypeName() const final;
1392
1393 // nested types ----------------------------------------------------
1394
1395 // accessors -------------------------------------------------------
1396
1397 enum : int {
1398 kMetadataFieldNumber = 1,
1399 };
1400 // repeated .i18n.phonenumbers.PhoneMetadata metadata = 1;
1401 int metadata_size() const;
1402 private:
1403 int _internal_metadata_size() const;
1404 public:
1405 void clear_metadata();
1406 ::i18n::phonenumbers::PhoneMetadata* mutable_metadata(int index);
1407 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >*
1408 mutable_metadata();
1409 private:
1410 const ::i18n::phonenumbers::PhoneMetadata& _internal_metadata(int index) const;
1411 ::i18n::phonenumbers::PhoneMetadata* _internal_add_metadata();
1412 public:
1413 const ::i18n::phonenumbers::PhoneMetadata& metadata(int index) const;
1414 ::i18n::phonenumbers::PhoneMetadata* add_metadata();
1415 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >&
1416 metadata() const;
1417
1418 // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadataCollection)
1419 private:
1420 class _Internal;
1421
1422 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1423 typedef void InternalArenaConstructable_;
1424 typedef void DestructorSkippable_;
1425 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata > metadata_;
1426 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1427 friend struct ::TableStruct_phonemetadata_2eproto;
1428 };
1429 // ===================================================================
1430
1431
1432 // ===================================================================
1433
1434 #ifdef __GNUC__
1435 #pragma GCC diagnostic push
1436 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1437 #endif // __GNUC__
1438 // NumberFormat
1439
1440 // required string pattern = 1;
_internal_has_pattern()1441 inline bool NumberFormat::_internal_has_pattern() const {
1442 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1443 return value;
1444 }
has_pattern()1445 inline bool NumberFormat::has_pattern() const {
1446 return _internal_has_pattern();
1447 }
clear_pattern()1448 inline void NumberFormat::clear_pattern() {
1449 pattern_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1450 _has_bits_[0] &= ~0x00000001u;
1451 }
pattern()1452 inline const std::string& NumberFormat::pattern() const {
1453 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.pattern)
1454 return _internal_pattern();
1455 }
set_pattern(const std::string & value)1456 inline void NumberFormat::set_pattern(const std::string& value) {
1457 _internal_set_pattern(value);
1458 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.pattern)
1459 }
mutable_pattern()1460 inline std::string* NumberFormat::mutable_pattern() {
1461 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.pattern)
1462 return _internal_mutable_pattern();
1463 }
_internal_pattern()1464 inline const std::string& NumberFormat::_internal_pattern() const {
1465 return pattern_.Get();
1466 }
_internal_set_pattern(const std::string & value)1467 inline void NumberFormat::_internal_set_pattern(const std::string& value) {
1468 _has_bits_[0] |= 0x00000001u;
1469 pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1470 }
set_pattern(std::string && value)1471 inline void NumberFormat::set_pattern(std::string&& value) {
1472 _has_bits_[0] |= 0x00000001u;
1473 pattern_.SetLite(
1474 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1475 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.pattern)
1476 }
set_pattern(const char * value)1477 inline void NumberFormat::set_pattern(const char* value) {
1478 GOOGLE_DCHECK(value != nullptr);
1479 _has_bits_[0] |= 0x00000001u;
1480 pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1481 GetArena());
1482 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.pattern)
1483 }
set_pattern(const char * value,size_t size)1484 inline void NumberFormat::set_pattern(const char* value,
1485 size_t size) {
1486 _has_bits_[0] |= 0x00000001u;
1487 pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1488 reinterpret_cast<const char*>(value), size), GetArena());
1489 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.pattern)
1490 }
_internal_mutable_pattern()1491 inline std::string* NumberFormat::_internal_mutable_pattern() {
1492 _has_bits_[0] |= 0x00000001u;
1493 return pattern_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1494 }
release_pattern()1495 inline std::string* NumberFormat::release_pattern() {
1496 // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.pattern)
1497 if (!_internal_has_pattern()) {
1498 return nullptr;
1499 }
1500 _has_bits_[0] &= ~0x00000001u;
1501 return pattern_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1502 }
set_allocated_pattern(std::string * pattern)1503 inline void NumberFormat::set_allocated_pattern(std::string* pattern) {
1504 if (pattern != nullptr) {
1505 _has_bits_[0] |= 0x00000001u;
1506 } else {
1507 _has_bits_[0] &= ~0x00000001u;
1508 }
1509 pattern_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pattern,
1510 GetArena());
1511 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.pattern)
1512 }
1513
1514 // required string format = 2;
_internal_has_format()1515 inline bool NumberFormat::_internal_has_format() const {
1516 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1517 return value;
1518 }
has_format()1519 inline bool NumberFormat::has_format() const {
1520 return _internal_has_format();
1521 }
clear_format()1522 inline void NumberFormat::clear_format() {
1523 format_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1524 _has_bits_[0] &= ~0x00000002u;
1525 }
format()1526 inline const std::string& NumberFormat::format() const {
1527 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.format)
1528 return _internal_format();
1529 }
set_format(const std::string & value)1530 inline void NumberFormat::set_format(const std::string& value) {
1531 _internal_set_format(value);
1532 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.format)
1533 }
mutable_format()1534 inline std::string* NumberFormat::mutable_format() {
1535 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.format)
1536 return _internal_mutable_format();
1537 }
_internal_format()1538 inline const std::string& NumberFormat::_internal_format() const {
1539 return format_.Get();
1540 }
_internal_set_format(const std::string & value)1541 inline void NumberFormat::_internal_set_format(const std::string& value) {
1542 _has_bits_[0] |= 0x00000002u;
1543 format_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1544 }
set_format(std::string && value)1545 inline void NumberFormat::set_format(std::string&& value) {
1546 _has_bits_[0] |= 0x00000002u;
1547 format_.SetLite(
1548 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1549 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.format)
1550 }
set_format(const char * value)1551 inline void NumberFormat::set_format(const char* value) {
1552 GOOGLE_DCHECK(value != nullptr);
1553 _has_bits_[0] |= 0x00000002u;
1554 format_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1555 GetArena());
1556 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.format)
1557 }
set_format(const char * value,size_t size)1558 inline void NumberFormat::set_format(const char* value,
1559 size_t size) {
1560 _has_bits_[0] |= 0x00000002u;
1561 format_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1562 reinterpret_cast<const char*>(value), size), GetArena());
1563 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.format)
1564 }
_internal_mutable_format()1565 inline std::string* NumberFormat::_internal_mutable_format() {
1566 _has_bits_[0] |= 0x00000002u;
1567 return format_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1568 }
release_format()1569 inline std::string* NumberFormat::release_format() {
1570 // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.format)
1571 if (!_internal_has_format()) {
1572 return nullptr;
1573 }
1574 _has_bits_[0] &= ~0x00000002u;
1575 return format_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1576 }
set_allocated_format(std::string * format)1577 inline void NumberFormat::set_allocated_format(std::string* format) {
1578 if (format != nullptr) {
1579 _has_bits_[0] |= 0x00000002u;
1580 } else {
1581 _has_bits_[0] &= ~0x00000002u;
1582 }
1583 format_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), format,
1584 GetArena());
1585 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.format)
1586 }
1587
1588 // repeated string leading_digits_pattern = 3;
_internal_leading_digits_pattern_size()1589 inline int NumberFormat::_internal_leading_digits_pattern_size() const {
1590 return leading_digits_pattern_.size();
1591 }
leading_digits_pattern_size()1592 inline int NumberFormat::leading_digits_pattern_size() const {
1593 return _internal_leading_digits_pattern_size();
1594 }
clear_leading_digits_pattern()1595 inline void NumberFormat::clear_leading_digits_pattern() {
1596 leading_digits_pattern_.Clear();
1597 }
add_leading_digits_pattern()1598 inline std::string* NumberFormat::add_leading_digits_pattern() {
1599 // @@protoc_insertion_point(field_add_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1600 return _internal_add_leading_digits_pattern();
1601 }
_internal_leading_digits_pattern(int index)1602 inline const std::string& NumberFormat::_internal_leading_digits_pattern(int index) const {
1603 return leading_digits_pattern_.Get(index);
1604 }
leading_digits_pattern(int index)1605 inline const std::string& NumberFormat::leading_digits_pattern(int index) const {
1606 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1607 return _internal_leading_digits_pattern(index);
1608 }
mutable_leading_digits_pattern(int index)1609 inline std::string* NumberFormat::mutable_leading_digits_pattern(int index) {
1610 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1611 return leading_digits_pattern_.Mutable(index);
1612 }
set_leading_digits_pattern(int index,const std::string & value)1613 inline void NumberFormat::set_leading_digits_pattern(int index, const std::string& value) {
1614 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1615 leading_digits_pattern_.Mutable(index)->assign(value);
1616 }
set_leading_digits_pattern(int index,std::string && value)1617 inline void NumberFormat::set_leading_digits_pattern(int index, std::string&& value) {
1618 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1619 leading_digits_pattern_.Mutable(index)->assign(std::move(value));
1620 }
set_leading_digits_pattern(int index,const char * value)1621 inline void NumberFormat::set_leading_digits_pattern(int index, const char* value) {
1622 GOOGLE_DCHECK(value != nullptr);
1623 leading_digits_pattern_.Mutable(index)->assign(value);
1624 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1625 }
set_leading_digits_pattern(int index,const char * value,size_t size)1626 inline void NumberFormat::set_leading_digits_pattern(int index, const char* value, size_t size) {
1627 leading_digits_pattern_.Mutable(index)->assign(
1628 reinterpret_cast<const char*>(value), size);
1629 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1630 }
_internal_add_leading_digits_pattern()1631 inline std::string* NumberFormat::_internal_add_leading_digits_pattern() {
1632 return leading_digits_pattern_.Add();
1633 }
add_leading_digits_pattern(const std::string & value)1634 inline void NumberFormat::add_leading_digits_pattern(const std::string& value) {
1635 leading_digits_pattern_.Add()->assign(value);
1636 // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1637 }
add_leading_digits_pattern(std::string && value)1638 inline void NumberFormat::add_leading_digits_pattern(std::string&& value) {
1639 leading_digits_pattern_.Add(std::move(value));
1640 // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1641 }
add_leading_digits_pattern(const char * value)1642 inline void NumberFormat::add_leading_digits_pattern(const char* value) {
1643 GOOGLE_DCHECK(value != nullptr);
1644 leading_digits_pattern_.Add()->assign(value);
1645 // @@protoc_insertion_point(field_add_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1646 }
add_leading_digits_pattern(const char * value,size_t size)1647 inline void NumberFormat::add_leading_digits_pattern(const char* value, size_t size) {
1648 leading_digits_pattern_.Add()->assign(reinterpret_cast<const char*>(value), size);
1649 // @@protoc_insertion_point(field_add_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1650 }
1651 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
leading_digits_pattern()1652 NumberFormat::leading_digits_pattern() const {
1653 // @@protoc_insertion_point(field_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1654 return leading_digits_pattern_;
1655 }
1656 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_leading_digits_pattern()1657 NumberFormat::mutable_leading_digits_pattern() {
1658 // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern)
1659 return &leading_digits_pattern_;
1660 }
1661
1662 // optional string national_prefix_formatting_rule = 4;
_internal_has_national_prefix_formatting_rule()1663 inline bool NumberFormat::_internal_has_national_prefix_formatting_rule() const {
1664 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1665 return value;
1666 }
has_national_prefix_formatting_rule()1667 inline bool NumberFormat::has_national_prefix_formatting_rule() const {
1668 return _internal_has_national_prefix_formatting_rule();
1669 }
clear_national_prefix_formatting_rule()1670 inline void NumberFormat::clear_national_prefix_formatting_rule() {
1671 national_prefix_formatting_rule_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1672 _has_bits_[0] &= ~0x00000004u;
1673 }
national_prefix_formatting_rule()1674 inline const std::string& NumberFormat::national_prefix_formatting_rule() const {
1675 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1676 return _internal_national_prefix_formatting_rule();
1677 }
set_national_prefix_formatting_rule(const std::string & value)1678 inline void NumberFormat::set_national_prefix_formatting_rule(const std::string& value) {
1679 _internal_set_national_prefix_formatting_rule(value);
1680 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1681 }
mutable_national_prefix_formatting_rule()1682 inline std::string* NumberFormat::mutable_national_prefix_formatting_rule() {
1683 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1684 return _internal_mutable_national_prefix_formatting_rule();
1685 }
_internal_national_prefix_formatting_rule()1686 inline const std::string& NumberFormat::_internal_national_prefix_formatting_rule() const {
1687 return national_prefix_formatting_rule_.Get();
1688 }
_internal_set_national_prefix_formatting_rule(const std::string & value)1689 inline void NumberFormat::_internal_set_national_prefix_formatting_rule(const std::string& value) {
1690 _has_bits_[0] |= 0x00000004u;
1691 national_prefix_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1692 }
set_national_prefix_formatting_rule(std::string && value)1693 inline void NumberFormat::set_national_prefix_formatting_rule(std::string&& value) {
1694 _has_bits_[0] |= 0x00000004u;
1695 national_prefix_formatting_rule_.SetLite(
1696 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1697 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1698 }
set_national_prefix_formatting_rule(const char * value)1699 inline void NumberFormat::set_national_prefix_formatting_rule(const char* value) {
1700 GOOGLE_DCHECK(value != nullptr);
1701 _has_bits_[0] |= 0x00000004u;
1702 national_prefix_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1703 GetArena());
1704 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1705 }
set_national_prefix_formatting_rule(const char * value,size_t size)1706 inline void NumberFormat::set_national_prefix_formatting_rule(const char* value,
1707 size_t size) {
1708 _has_bits_[0] |= 0x00000004u;
1709 national_prefix_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1710 reinterpret_cast<const char*>(value), size), GetArena());
1711 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1712 }
_internal_mutable_national_prefix_formatting_rule()1713 inline std::string* NumberFormat::_internal_mutable_national_prefix_formatting_rule() {
1714 _has_bits_[0] |= 0x00000004u;
1715 return national_prefix_formatting_rule_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1716 }
release_national_prefix_formatting_rule()1717 inline std::string* NumberFormat::release_national_prefix_formatting_rule() {
1718 // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1719 if (!_internal_has_national_prefix_formatting_rule()) {
1720 return nullptr;
1721 }
1722 _has_bits_[0] &= ~0x00000004u;
1723 return national_prefix_formatting_rule_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1724 }
set_allocated_national_prefix_formatting_rule(std::string * national_prefix_formatting_rule)1725 inline void NumberFormat::set_allocated_national_prefix_formatting_rule(std::string* national_prefix_formatting_rule) {
1726 if (national_prefix_formatting_rule != nullptr) {
1727 _has_bits_[0] |= 0x00000004u;
1728 } else {
1729 _has_bits_[0] &= ~0x00000004u;
1730 }
1731 national_prefix_formatting_rule_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_prefix_formatting_rule,
1732 GetArena());
1733 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule)
1734 }
1735
1736 // optional bool national_prefix_optional_when_formatting = 6 [default = false];
_internal_has_national_prefix_optional_when_formatting()1737 inline bool NumberFormat::_internal_has_national_prefix_optional_when_formatting() const {
1738 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1739 return value;
1740 }
has_national_prefix_optional_when_formatting()1741 inline bool NumberFormat::has_national_prefix_optional_when_formatting() const {
1742 return _internal_has_national_prefix_optional_when_formatting();
1743 }
clear_national_prefix_optional_when_formatting()1744 inline void NumberFormat::clear_national_prefix_optional_when_formatting() {
1745 national_prefix_optional_when_formatting_ = false;
1746 _has_bits_[0] &= ~0x00000010u;
1747 }
_internal_national_prefix_optional_when_formatting()1748 inline bool NumberFormat::_internal_national_prefix_optional_when_formatting() const {
1749 return national_prefix_optional_when_formatting_;
1750 }
national_prefix_optional_when_formatting()1751 inline bool NumberFormat::national_prefix_optional_when_formatting() const {
1752 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting)
1753 return _internal_national_prefix_optional_when_formatting();
1754 }
_internal_set_national_prefix_optional_when_formatting(bool value)1755 inline void NumberFormat::_internal_set_national_prefix_optional_when_formatting(bool value) {
1756 _has_bits_[0] |= 0x00000010u;
1757 national_prefix_optional_when_formatting_ = value;
1758 }
set_national_prefix_optional_when_formatting(bool value)1759 inline void NumberFormat::set_national_prefix_optional_when_formatting(bool value) {
1760 _internal_set_national_prefix_optional_when_formatting(value);
1761 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting)
1762 }
1763
1764 // optional string domestic_carrier_code_formatting_rule = 5;
_internal_has_domestic_carrier_code_formatting_rule()1765 inline bool NumberFormat::_internal_has_domestic_carrier_code_formatting_rule() const {
1766 bool value = (_has_bits_[0] & 0x00000008u) != 0;
1767 return value;
1768 }
has_domestic_carrier_code_formatting_rule()1769 inline bool NumberFormat::has_domestic_carrier_code_formatting_rule() const {
1770 return _internal_has_domestic_carrier_code_formatting_rule();
1771 }
clear_domestic_carrier_code_formatting_rule()1772 inline void NumberFormat::clear_domestic_carrier_code_formatting_rule() {
1773 domestic_carrier_code_formatting_rule_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1774 _has_bits_[0] &= ~0x00000008u;
1775 }
domestic_carrier_code_formatting_rule()1776 inline const std::string& NumberFormat::domestic_carrier_code_formatting_rule() const {
1777 // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1778 return _internal_domestic_carrier_code_formatting_rule();
1779 }
set_domestic_carrier_code_formatting_rule(const std::string & value)1780 inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const std::string& value) {
1781 _internal_set_domestic_carrier_code_formatting_rule(value);
1782 // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1783 }
mutable_domestic_carrier_code_formatting_rule()1784 inline std::string* NumberFormat::mutable_domestic_carrier_code_formatting_rule() {
1785 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1786 return _internal_mutable_domestic_carrier_code_formatting_rule();
1787 }
_internal_domestic_carrier_code_formatting_rule()1788 inline const std::string& NumberFormat::_internal_domestic_carrier_code_formatting_rule() const {
1789 return domestic_carrier_code_formatting_rule_.Get();
1790 }
_internal_set_domestic_carrier_code_formatting_rule(const std::string & value)1791 inline void NumberFormat::_internal_set_domestic_carrier_code_formatting_rule(const std::string& value) {
1792 _has_bits_[0] |= 0x00000008u;
1793 domestic_carrier_code_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1794 }
set_domestic_carrier_code_formatting_rule(std::string && value)1795 inline void NumberFormat::set_domestic_carrier_code_formatting_rule(std::string&& value) {
1796 _has_bits_[0] |= 0x00000008u;
1797 domestic_carrier_code_formatting_rule_.SetLite(
1798 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1799 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1800 }
set_domestic_carrier_code_formatting_rule(const char * value)1801 inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value) {
1802 GOOGLE_DCHECK(value != nullptr);
1803 _has_bits_[0] |= 0x00000008u;
1804 domestic_carrier_code_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1805 GetArena());
1806 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1807 }
set_domestic_carrier_code_formatting_rule(const char * value,size_t size)1808 inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value,
1809 size_t size) {
1810 _has_bits_[0] |= 0x00000008u;
1811 domestic_carrier_code_formatting_rule_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1812 reinterpret_cast<const char*>(value), size), GetArena());
1813 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1814 }
_internal_mutable_domestic_carrier_code_formatting_rule()1815 inline std::string* NumberFormat::_internal_mutable_domestic_carrier_code_formatting_rule() {
1816 _has_bits_[0] |= 0x00000008u;
1817 return domestic_carrier_code_formatting_rule_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1818 }
release_domestic_carrier_code_formatting_rule()1819 inline std::string* NumberFormat::release_domestic_carrier_code_formatting_rule() {
1820 // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1821 if (!_internal_has_domestic_carrier_code_formatting_rule()) {
1822 return nullptr;
1823 }
1824 _has_bits_[0] &= ~0x00000008u;
1825 return domestic_carrier_code_formatting_rule_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1826 }
set_allocated_domestic_carrier_code_formatting_rule(std::string * domestic_carrier_code_formatting_rule)1827 inline void NumberFormat::set_allocated_domestic_carrier_code_formatting_rule(std::string* domestic_carrier_code_formatting_rule) {
1828 if (domestic_carrier_code_formatting_rule != nullptr) {
1829 _has_bits_[0] |= 0x00000008u;
1830 } else {
1831 _has_bits_[0] &= ~0x00000008u;
1832 }
1833 domestic_carrier_code_formatting_rule_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domestic_carrier_code_formatting_rule,
1834 GetArena());
1835 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule)
1836 }
1837
1838 // -------------------------------------------------------------------
1839
1840 // PhoneNumberDesc
1841
1842 // optional string national_number_pattern = 2;
_internal_has_national_number_pattern()1843 inline bool PhoneNumberDesc::_internal_has_national_number_pattern() const {
1844 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1845 return value;
1846 }
has_national_number_pattern()1847 inline bool PhoneNumberDesc::has_national_number_pattern() const {
1848 return _internal_has_national_number_pattern();
1849 }
clear_national_number_pattern()1850 inline void PhoneNumberDesc::clear_national_number_pattern() {
1851 national_number_pattern_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1852 _has_bits_[0] &= ~0x00000001u;
1853 }
national_number_pattern()1854 inline const std::string& PhoneNumberDesc::national_number_pattern() const {
1855 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1856 return _internal_national_number_pattern();
1857 }
set_national_number_pattern(const std::string & value)1858 inline void PhoneNumberDesc::set_national_number_pattern(const std::string& value) {
1859 _internal_set_national_number_pattern(value);
1860 // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1861 }
mutable_national_number_pattern()1862 inline std::string* PhoneNumberDesc::mutable_national_number_pattern() {
1863 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1864 return _internal_mutable_national_number_pattern();
1865 }
_internal_national_number_pattern()1866 inline const std::string& PhoneNumberDesc::_internal_national_number_pattern() const {
1867 return national_number_pattern_.Get();
1868 }
_internal_set_national_number_pattern(const std::string & value)1869 inline void PhoneNumberDesc::_internal_set_national_number_pattern(const std::string& value) {
1870 _has_bits_[0] |= 0x00000001u;
1871 national_number_pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1872 }
set_national_number_pattern(std::string && value)1873 inline void PhoneNumberDesc::set_national_number_pattern(std::string&& value) {
1874 _has_bits_[0] |= 0x00000001u;
1875 national_number_pattern_.SetLite(
1876 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1877 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1878 }
set_national_number_pattern(const char * value)1879 inline void PhoneNumberDesc::set_national_number_pattern(const char* value) {
1880 GOOGLE_DCHECK(value != nullptr);
1881 _has_bits_[0] |= 0x00000001u;
1882 national_number_pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1883 GetArena());
1884 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1885 }
set_national_number_pattern(const char * value,size_t size)1886 inline void PhoneNumberDesc::set_national_number_pattern(const char* value,
1887 size_t size) {
1888 _has_bits_[0] |= 0x00000001u;
1889 national_number_pattern_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1890 reinterpret_cast<const char*>(value), size), GetArena());
1891 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1892 }
_internal_mutable_national_number_pattern()1893 inline std::string* PhoneNumberDesc::_internal_mutable_national_number_pattern() {
1894 _has_bits_[0] |= 0x00000001u;
1895 return national_number_pattern_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1896 }
release_national_number_pattern()1897 inline std::string* PhoneNumberDesc::release_national_number_pattern() {
1898 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1899 if (!_internal_has_national_number_pattern()) {
1900 return nullptr;
1901 }
1902 _has_bits_[0] &= ~0x00000001u;
1903 return national_number_pattern_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1904 }
set_allocated_national_number_pattern(std::string * national_number_pattern)1905 inline void PhoneNumberDesc::set_allocated_national_number_pattern(std::string* national_number_pattern) {
1906 if (national_number_pattern != nullptr) {
1907 _has_bits_[0] |= 0x00000001u;
1908 } else {
1909 _has_bits_[0] &= ~0x00000001u;
1910 }
1911 national_number_pattern_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_number_pattern,
1912 GetArena());
1913 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern)
1914 }
1915
1916 // repeated int32 possible_length = 9;
_internal_possible_length_size()1917 inline int PhoneNumberDesc::_internal_possible_length_size() const {
1918 return possible_length_.size();
1919 }
possible_length_size()1920 inline int PhoneNumberDesc::possible_length_size() const {
1921 return _internal_possible_length_size();
1922 }
clear_possible_length()1923 inline void PhoneNumberDesc::clear_possible_length() {
1924 possible_length_.Clear();
1925 }
_internal_possible_length(int index)1926 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::_internal_possible_length(int index) const {
1927 return possible_length_.Get(index);
1928 }
possible_length(int index)1929 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::possible_length(int index) const {
1930 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length)
1931 return _internal_possible_length(index);
1932 }
set_possible_length(int index,::PROTOBUF_NAMESPACE_ID::int32 value)1933 inline void PhoneNumberDesc::set_possible_length(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
1934 possible_length_.Set(index, value);
1935 // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length)
1936 }
_internal_add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value)1937 inline void PhoneNumberDesc::_internal_add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value) {
1938 possible_length_.Add(value);
1939 }
add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value)1940 inline void PhoneNumberDesc::add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value) {
1941 _internal_add_possible_length(value);
1942 // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length)
1943 }
1944 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
_internal_possible_length()1945 PhoneNumberDesc::_internal_possible_length() const {
1946 return possible_length_;
1947 }
1948 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
possible_length()1949 PhoneNumberDesc::possible_length() const {
1950 // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length)
1951 return _internal_possible_length();
1952 }
1953 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
_internal_mutable_possible_length()1954 PhoneNumberDesc::_internal_mutable_possible_length() {
1955 return &possible_length_;
1956 }
1957 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
mutable_possible_length()1958 PhoneNumberDesc::mutable_possible_length() {
1959 // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length)
1960 return _internal_mutable_possible_length();
1961 }
1962
1963 // repeated int32 possible_length_local_only = 10;
_internal_possible_length_local_only_size()1964 inline int PhoneNumberDesc::_internal_possible_length_local_only_size() const {
1965 return possible_length_local_only_.size();
1966 }
possible_length_local_only_size()1967 inline int PhoneNumberDesc::possible_length_local_only_size() const {
1968 return _internal_possible_length_local_only_size();
1969 }
clear_possible_length_local_only()1970 inline void PhoneNumberDesc::clear_possible_length_local_only() {
1971 possible_length_local_only_.Clear();
1972 }
_internal_possible_length_local_only(int index)1973 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::_internal_possible_length_local_only(int index) const {
1974 return possible_length_local_only_.Get(index);
1975 }
possible_length_local_only(int index)1976 inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::possible_length_local_only(int index) const {
1977 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
1978 return _internal_possible_length_local_only(index);
1979 }
set_possible_length_local_only(int index,::PROTOBUF_NAMESPACE_ID::int32 value)1980 inline void PhoneNumberDesc::set_possible_length_local_only(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
1981 possible_length_local_only_.Set(index, value);
1982 // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
1983 }
_internal_add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value)1984 inline void PhoneNumberDesc::_internal_add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value) {
1985 possible_length_local_only_.Add(value);
1986 }
add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value)1987 inline void PhoneNumberDesc::add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value) {
1988 _internal_add_possible_length_local_only(value);
1989 // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
1990 }
1991 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
_internal_possible_length_local_only()1992 PhoneNumberDesc::_internal_possible_length_local_only() const {
1993 return possible_length_local_only_;
1994 }
1995 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
possible_length_local_only()1996 PhoneNumberDesc::possible_length_local_only() const {
1997 // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
1998 return _internal_possible_length_local_only();
1999 }
2000 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
_internal_mutable_possible_length_local_only()2001 PhoneNumberDesc::_internal_mutable_possible_length_local_only() {
2002 return &possible_length_local_only_;
2003 }
2004 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
mutable_possible_length_local_only()2005 PhoneNumberDesc::mutable_possible_length_local_only() {
2006 // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only)
2007 return _internal_mutable_possible_length_local_only();
2008 }
2009
2010 // optional string example_number = 6;
_internal_has_example_number()2011 inline bool PhoneNumberDesc::_internal_has_example_number() const {
2012 bool value = (_has_bits_[0] & 0x00000002u) != 0;
2013 return value;
2014 }
has_example_number()2015 inline bool PhoneNumberDesc::has_example_number() const {
2016 return _internal_has_example_number();
2017 }
clear_example_number()2018 inline void PhoneNumberDesc::clear_example_number() {
2019 example_number_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2020 _has_bits_[0] &= ~0x00000002u;
2021 }
example_number()2022 inline const std::string& PhoneNumberDesc::example_number() const {
2023 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.example_number)
2024 return _internal_example_number();
2025 }
set_example_number(const std::string & value)2026 inline void PhoneNumberDesc::set_example_number(const std::string& value) {
2027 _internal_set_example_number(value);
2028 // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.example_number)
2029 }
mutable_example_number()2030 inline std::string* PhoneNumberDesc::mutable_example_number() {
2031 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.example_number)
2032 return _internal_mutable_example_number();
2033 }
_internal_example_number()2034 inline const std::string& PhoneNumberDesc::_internal_example_number() const {
2035 return example_number_.Get();
2036 }
_internal_set_example_number(const std::string & value)2037 inline void PhoneNumberDesc::_internal_set_example_number(const std::string& value) {
2038 _has_bits_[0] |= 0x00000002u;
2039 example_number_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
2040 }
set_example_number(std::string && value)2041 inline void PhoneNumberDesc::set_example_number(std::string&& value) {
2042 _has_bits_[0] |= 0x00000002u;
2043 example_number_.SetLite(
2044 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
2045 // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.example_number)
2046 }
set_example_number(const char * value)2047 inline void PhoneNumberDesc::set_example_number(const char* value) {
2048 GOOGLE_DCHECK(value != nullptr);
2049 _has_bits_[0] |= 0x00000002u;
2050 example_number_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2051 GetArena());
2052 // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.example_number)
2053 }
set_example_number(const char * value,size_t size)2054 inline void PhoneNumberDesc::set_example_number(const char* value,
2055 size_t size) {
2056 _has_bits_[0] |= 0x00000002u;
2057 example_number_.SetLite(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
2058 reinterpret_cast<const char*>(value), size), GetArena());
2059 // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.example_number)
2060 }
_internal_mutable_example_number()2061 inline std::string* PhoneNumberDesc::_internal_mutable_example_number() {
2062 _has_bits_[0] |= 0x00000002u;
2063 return example_number_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2064 }
release_example_number()2065 inline std::string* PhoneNumberDesc::release_example_number() {
2066 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.example_number)
2067 if (!_internal_has_example_number()) {
2068 return nullptr;
2069 }
2070 _has_bits_[0] &= ~0x00000002u;
2071 return example_number_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2072 }
set_allocated_example_number(std::string * example_number)2073 inline void PhoneNumberDesc::set_allocated_example_number(std::string* example_number) {
2074 if (example_number != nullptr) {
2075 _has_bits_[0] |= 0x00000002u;
2076 } else {
2077 _has_bits_[0] &= ~0x00000002u;
2078 }
2079 example_number_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), example_number,
2080 GetArena());
2081 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.example_number)
2082 }
2083
2084 // -------------------------------------------------------------------
2085
2086 // PhoneMetadata
2087
2088 // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1;
_internal_has_general_desc()2089 inline bool PhoneMetadata::_internal_has_general_desc() const {
2090 bool value = (_has_bits_[0] & 0x00000100u) != 0;
2091 PROTOBUF_ASSUME(!value || general_desc_ != nullptr);
2092 return value;
2093 }
has_general_desc()2094 inline bool PhoneMetadata::has_general_desc() const {
2095 return _internal_has_general_desc();
2096 }
clear_general_desc()2097 inline void PhoneMetadata::clear_general_desc() {
2098 if (general_desc_ != nullptr) general_desc_->Clear();
2099 _has_bits_[0] &= ~0x00000100u;
2100 }
_internal_general_desc()2101 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_general_desc() const {
2102 const ::i18n::phonenumbers::PhoneNumberDesc* p = general_desc_;
2103 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2104 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2105 }
general_desc()2106 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::general_desc() const {
2107 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.general_desc)
2108 return _internal_general_desc();
2109 }
unsafe_arena_set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc * general_desc)2110 inline void PhoneMetadata::unsafe_arena_set_allocated_general_desc(
2111 ::i18n::phonenumbers::PhoneNumberDesc* general_desc) {
2112 if (GetArena() == nullptr) {
2113 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(general_desc_);
2114 }
2115 general_desc_ = general_desc;
2116 if (general_desc) {
2117 _has_bits_[0] |= 0x00000100u;
2118 } else {
2119 _has_bits_[0] &= ~0x00000100u;
2120 }
2121 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.general_desc)
2122 }
release_general_desc()2123 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_general_desc() {
2124 _has_bits_[0] &= ~0x00000100u;
2125 ::i18n::phonenumbers::PhoneNumberDesc* temp = general_desc_;
2126 general_desc_ = nullptr;
2127 if (GetArena() != nullptr) {
2128 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2129 }
2130 return temp;
2131 }
unsafe_arena_release_general_desc()2132 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_general_desc() {
2133 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.general_desc)
2134 _has_bits_[0] &= ~0x00000100u;
2135 ::i18n::phonenumbers::PhoneNumberDesc* temp = general_desc_;
2136 general_desc_ = nullptr;
2137 return temp;
2138 }
_internal_mutable_general_desc()2139 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_general_desc() {
2140 _has_bits_[0] |= 0x00000100u;
2141 if (general_desc_ == nullptr) {
2142 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2143 general_desc_ = p;
2144 }
2145 return general_desc_;
2146 }
mutable_general_desc()2147 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_general_desc() {
2148 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.general_desc)
2149 return _internal_mutable_general_desc();
2150 }
set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc * general_desc)2151 inline void PhoneMetadata::set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc) {
2152 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2153 if (message_arena == nullptr) {
2154 delete general_desc_;
2155 }
2156 if (general_desc) {
2157 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2158 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(general_desc);
2159 if (message_arena != submessage_arena) {
2160 general_desc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2161 message_arena, general_desc, submessage_arena);
2162 }
2163 _has_bits_[0] |= 0x00000100u;
2164 } else {
2165 _has_bits_[0] &= ~0x00000100u;
2166 }
2167 general_desc_ = general_desc;
2168 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.general_desc)
2169 }
2170
2171 // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2;
_internal_has_fixed_line()2172 inline bool PhoneMetadata::_internal_has_fixed_line() const {
2173 bool value = (_has_bits_[0] & 0x00000200u) != 0;
2174 PROTOBUF_ASSUME(!value || fixed_line_ != nullptr);
2175 return value;
2176 }
has_fixed_line()2177 inline bool PhoneMetadata::has_fixed_line() const {
2178 return _internal_has_fixed_line();
2179 }
clear_fixed_line()2180 inline void PhoneMetadata::clear_fixed_line() {
2181 if (fixed_line_ != nullptr) fixed_line_->Clear();
2182 _has_bits_[0] &= ~0x00000200u;
2183 }
_internal_fixed_line()2184 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_fixed_line() const {
2185 const ::i18n::phonenumbers::PhoneNumberDesc* p = fixed_line_;
2186 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2187 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2188 }
fixed_line()2189 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::fixed_line() const {
2190 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.fixed_line)
2191 return _internal_fixed_line();
2192 }
unsafe_arena_set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc * fixed_line)2193 inline void PhoneMetadata::unsafe_arena_set_allocated_fixed_line(
2194 ::i18n::phonenumbers::PhoneNumberDesc* fixed_line) {
2195 if (GetArena() == nullptr) {
2196 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fixed_line_);
2197 }
2198 fixed_line_ = fixed_line;
2199 if (fixed_line) {
2200 _has_bits_[0] |= 0x00000200u;
2201 } else {
2202 _has_bits_[0] &= ~0x00000200u;
2203 }
2204 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.fixed_line)
2205 }
release_fixed_line()2206 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_fixed_line() {
2207 _has_bits_[0] &= ~0x00000200u;
2208 ::i18n::phonenumbers::PhoneNumberDesc* temp = fixed_line_;
2209 fixed_line_ = nullptr;
2210 if (GetArena() != nullptr) {
2211 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2212 }
2213 return temp;
2214 }
unsafe_arena_release_fixed_line()2215 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_fixed_line() {
2216 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.fixed_line)
2217 _has_bits_[0] &= ~0x00000200u;
2218 ::i18n::phonenumbers::PhoneNumberDesc* temp = fixed_line_;
2219 fixed_line_ = nullptr;
2220 return temp;
2221 }
_internal_mutable_fixed_line()2222 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_fixed_line() {
2223 _has_bits_[0] |= 0x00000200u;
2224 if (fixed_line_ == nullptr) {
2225 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2226 fixed_line_ = p;
2227 }
2228 return fixed_line_;
2229 }
mutable_fixed_line()2230 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_fixed_line() {
2231 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.fixed_line)
2232 return _internal_mutable_fixed_line();
2233 }
set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc * fixed_line)2234 inline void PhoneMetadata::set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line) {
2235 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2236 if (message_arena == nullptr) {
2237 delete fixed_line_;
2238 }
2239 if (fixed_line) {
2240 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2241 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_line);
2242 if (message_arena != submessage_arena) {
2243 fixed_line = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2244 message_arena, fixed_line, submessage_arena);
2245 }
2246 _has_bits_[0] |= 0x00000200u;
2247 } else {
2248 _has_bits_[0] &= ~0x00000200u;
2249 }
2250 fixed_line_ = fixed_line;
2251 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.fixed_line)
2252 }
2253
2254 // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3;
_internal_has_mobile()2255 inline bool PhoneMetadata::_internal_has_mobile() const {
2256 bool value = (_has_bits_[0] & 0x00000400u) != 0;
2257 PROTOBUF_ASSUME(!value || mobile_ != nullptr);
2258 return value;
2259 }
has_mobile()2260 inline bool PhoneMetadata::has_mobile() const {
2261 return _internal_has_mobile();
2262 }
clear_mobile()2263 inline void PhoneMetadata::clear_mobile() {
2264 if (mobile_ != nullptr) mobile_->Clear();
2265 _has_bits_[0] &= ~0x00000400u;
2266 }
_internal_mobile()2267 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_mobile() const {
2268 const ::i18n::phonenumbers::PhoneNumberDesc* p = mobile_;
2269 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2270 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2271 }
mobile()2272 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::mobile() const {
2273 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.mobile)
2274 return _internal_mobile();
2275 }
unsafe_arena_set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc * mobile)2276 inline void PhoneMetadata::unsafe_arena_set_allocated_mobile(
2277 ::i18n::phonenumbers::PhoneNumberDesc* mobile) {
2278 if (GetArena() == nullptr) {
2279 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mobile_);
2280 }
2281 mobile_ = mobile;
2282 if (mobile) {
2283 _has_bits_[0] |= 0x00000400u;
2284 } else {
2285 _has_bits_[0] &= ~0x00000400u;
2286 }
2287 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.mobile)
2288 }
release_mobile()2289 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_mobile() {
2290 _has_bits_[0] &= ~0x00000400u;
2291 ::i18n::phonenumbers::PhoneNumberDesc* temp = mobile_;
2292 mobile_ = nullptr;
2293 if (GetArena() != nullptr) {
2294 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2295 }
2296 return temp;
2297 }
unsafe_arena_release_mobile()2298 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_mobile() {
2299 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.mobile)
2300 _has_bits_[0] &= ~0x00000400u;
2301 ::i18n::phonenumbers::PhoneNumberDesc* temp = mobile_;
2302 mobile_ = nullptr;
2303 return temp;
2304 }
_internal_mutable_mobile()2305 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_mobile() {
2306 _has_bits_[0] |= 0x00000400u;
2307 if (mobile_ == nullptr) {
2308 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2309 mobile_ = p;
2310 }
2311 return mobile_;
2312 }
mutable_mobile()2313 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_mobile() {
2314 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.mobile)
2315 return _internal_mutable_mobile();
2316 }
set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc * mobile)2317 inline void PhoneMetadata::set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile) {
2318 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2319 if (message_arena == nullptr) {
2320 delete mobile_;
2321 }
2322 if (mobile) {
2323 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2324 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(mobile);
2325 if (message_arena != submessage_arena) {
2326 mobile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2327 message_arena, mobile, submessage_arena);
2328 }
2329 _has_bits_[0] |= 0x00000400u;
2330 } else {
2331 _has_bits_[0] &= ~0x00000400u;
2332 }
2333 mobile_ = mobile;
2334 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.mobile)
2335 }
2336
2337 // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4;
_internal_has_toll_free()2338 inline bool PhoneMetadata::_internal_has_toll_free() const {
2339 bool value = (_has_bits_[0] & 0x00000800u) != 0;
2340 PROTOBUF_ASSUME(!value || toll_free_ != nullptr);
2341 return value;
2342 }
has_toll_free()2343 inline bool PhoneMetadata::has_toll_free() const {
2344 return _internal_has_toll_free();
2345 }
clear_toll_free()2346 inline void PhoneMetadata::clear_toll_free() {
2347 if (toll_free_ != nullptr) toll_free_->Clear();
2348 _has_bits_[0] &= ~0x00000800u;
2349 }
_internal_toll_free()2350 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_toll_free() const {
2351 const ::i18n::phonenumbers::PhoneNumberDesc* p = toll_free_;
2352 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2353 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2354 }
toll_free()2355 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::toll_free() const {
2356 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.toll_free)
2357 return _internal_toll_free();
2358 }
unsafe_arena_set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc * toll_free)2359 inline void PhoneMetadata::unsafe_arena_set_allocated_toll_free(
2360 ::i18n::phonenumbers::PhoneNumberDesc* toll_free) {
2361 if (GetArena() == nullptr) {
2362 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(toll_free_);
2363 }
2364 toll_free_ = toll_free;
2365 if (toll_free) {
2366 _has_bits_[0] |= 0x00000800u;
2367 } else {
2368 _has_bits_[0] &= ~0x00000800u;
2369 }
2370 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.toll_free)
2371 }
release_toll_free()2372 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_toll_free() {
2373 _has_bits_[0] &= ~0x00000800u;
2374 ::i18n::phonenumbers::PhoneNumberDesc* temp = toll_free_;
2375 toll_free_ = nullptr;
2376 if (GetArena() != nullptr) {
2377 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2378 }
2379 return temp;
2380 }
unsafe_arena_release_toll_free()2381 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_toll_free() {
2382 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.toll_free)
2383 _has_bits_[0] &= ~0x00000800u;
2384 ::i18n::phonenumbers::PhoneNumberDesc* temp = toll_free_;
2385 toll_free_ = nullptr;
2386 return temp;
2387 }
_internal_mutable_toll_free()2388 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_toll_free() {
2389 _has_bits_[0] |= 0x00000800u;
2390 if (toll_free_ == nullptr) {
2391 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2392 toll_free_ = p;
2393 }
2394 return toll_free_;
2395 }
mutable_toll_free()2396 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_toll_free() {
2397 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.toll_free)
2398 return _internal_mutable_toll_free();
2399 }
set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc * toll_free)2400 inline void PhoneMetadata::set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free) {
2401 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2402 if (message_arena == nullptr) {
2403 delete toll_free_;
2404 }
2405 if (toll_free) {
2406 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2407 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(toll_free);
2408 if (message_arena != submessage_arena) {
2409 toll_free = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2410 message_arena, toll_free, submessage_arena);
2411 }
2412 _has_bits_[0] |= 0x00000800u;
2413 } else {
2414 _has_bits_[0] &= ~0x00000800u;
2415 }
2416 toll_free_ = toll_free;
2417 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.toll_free)
2418 }
2419
2420 // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5;
_internal_has_premium_rate()2421 inline bool PhoneMetadata::_internal_has_premium_rate() const {
2422 bool value = (_has_bits_[0] & 0x00001000u) != 0;
2423 PROTOBUF_ASSUME(!value || premium_rate_ != nullptr);
2424 return value;
2425 }
has_premium_rate()2426 inline bool PhoneMetadata::has_premium_rate() const {
2427 return _internal_has_premium_rate();
2428 }
clear_premium_rate()2429 inline void PhoneMetadata::clear_premium_rate() {
2430 if (premium_rate_ != nullptr) premium_rate_->Clear();
2431 _has_bits_[0] &= ~0x00001000u;
2432 }
_internal_premium_rate()2433 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_premium_rate() const {
2434 const ::i18n::phonenumbers::PhoneNumberDesc* p = premium_rate_;
2435 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2436 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2437 }
premium_rate()2438 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::premium_rate() const {
2439 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.premium_rate)
2440 return _internal_premium_rate();
2441 }
unsafe_arena_set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc * premium_rate)2442 inline void PhoneMetadata::unsafe_arena_set_allocated_premium_rate(
2443 ::i18n::phonenumbers::PhoneNumberDesc* premium_rate) {
2444 if (GetArena() == nullptr) {
2445 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(premium_rate_);
2446 }
2447 premium_rate_ = premium_rate;
2448 if (premium_rate) {
2449 _has_bits_[0] |= 0x00001000u;
2450 } else {
2451 _has_bits_[0] &= ~0x00001000u;
2452 }
2453 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.premium_rate)
2454 }
release_premium_rate()2455 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_premium_rate() {
2456 _has_bits_[0] &= ~0x00001000u;
2457 ::i18n::phonenumbers::PhoneNumberDesc* temp = premium_rate_;
2458 premium_rate_ = nullptr;
2459 if (GetArena() != nullptr) {
2460 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2461 }
2462 return temp;
2463 }
unsafe_arena_release_premium_rate()2464 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_premium_rate() {
2465 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.premium_rate)
2466 _has_bits_[0] &= ~0x00001000u;
2467 ::i18n::phonenumbers::PhoneNumberDesc* temp = premium_rate_;
2468 premium_rate_ = nullptr;
2469 return temp;
2470 }
_internal_mutable_premium_rate()2471 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_premium_rate() {
2472 _has_bits_[0] |= 0x00001000u;
2473 if (premium_rate_ == nullptr) {
2474 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2475 premium_rate_ = p;
2476 }
2477 return premium_rate_;
2478 }
mutable_premium_rate()2479 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_premium_rate() {
2480 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.premium_rate)
2481 return _internal_mutable_premium_rate();
2482 }
set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc * premium_rate)2483 inline void PhoneMetadata::set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate) {
2484 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2485 if (message_arena == nullptr) {
2486 delete premium_rate_;
2487 }
2488 if (premium_rate) {
2489 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2490 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(premium_rate);
2491 if (message_arena != submessage_arena) {
2492 premium_rate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2493 message_arena, premium_rate, submessage_arena);
2494 }
2495 _has_bits_[0] |= 0x00001000u;
2496 } else {
2497 _has_bits_[0] &= ~0x00001000u;
2498 }
2499 premium_rate_ = premium_rate;
2500 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.premium_rate)
2501 }
2502
2503 // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6;
_internal_has_shared_cost()2504 inline bool PhoneMetadata::_internal_has_shared_cost() const {
2505 bool value = (_has_bits_[0] & 0x00002000u) != 0;
2506 PROTOBUF_ASSUME(!value || shared_cost_ != nullptr);
2507 return value;
2508 }
has_shared_cost()2509 inline bool PhoneMetadata::has_shared_cost() const {
2510 return _internal_has_shared_cost();
2511 }
clear_shared_cost()2512 inline void PhoneMetadata::clear_shared_cost() {
2513 if (shared_cost_ != nullptr) shared_cost_->Clear();
2514 _has_bits_[0] &= ~0x00002000u;
2515 }
_internal_shared_cost()2516 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_shared_cost() const {
2517 const ::i18n::phonenumbers::PhoneNumberDesc* p = shared_cost_;
2518 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2519 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2520 }
shared_cost()2521 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::shared_cost() const {
2522 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.shared_cost)
2523 return _internal_shared_cost();
2524 }
unsafe_arena_set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc * shared_cost)2525 inline void PhoneMetadata::unsafe_arena_set_allocated_shared_cost(
2526 ::i18n::phonenumbers::PhoneNumberDesc* shared_cost) {
2527 if (GetArena() == nullptr) {
2528 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shared_cost_);
2529 }
2530 shared_cost_ = shared_cost;
2531 if (shared_cost) {
2532 _has_bits_[0] |= 0x00002000u;
2533 } else {
2534 _has_bits_[0] &= ~0x00002000u;
2535 }
2536 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.shared_cost)
2537 }
release_shared_cost()2538 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_shared_cost() {
2539 _has_bits_[0] &= ~0x00002000u;
2540 ::i18n::phonenumbers::PhoneNumberDesc* temp = shared_cost_;
2541 shared_cost_ = nullptr;
2542 if (GetArena() != nullptr) {
2543 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2544 }
2545 return temp;
2546 }
unsafe_arena_release_shared_cost()2547 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_shared_cost() {
2548 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.shared_cost)
2549 _has_bits_[0] &= ~0x00002000u;
2550 ::i18n::phonenumbers::PhoneNumberDesc* temp = shared_cost_;
2551 shared_cost_ = nullptr;
2552 return temp;
2553 }
_internal_mutable_shared_cost()2554 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_shared_cost() {
2555 _has_bits_[0] |= 0x00002000u;
2556 if (shared_cost_ == nullptr) {
2557 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2558 shared_cost_ = p;
2559 }
2560 return shared_cost_;
2561 }
mutable_shared_cost()2562 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_shared_cost() {
2563 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.shared_cost)
2564 return _internal_mutable_shared_cost();
2565 }
set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc * shared_cost)2566 inline void PhoneMetadata::set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost) {
2567 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2568 if (message_arena == nullptr) {
2569 delete shared_cost_;
2570 }
2571 if (shared_cost) {
2572 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2573 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(shared_cost);
2574 if (message_arena != submessage_arena) {
2575 shared_cost = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2576 message_arena, shared_cost, submessage_arena);
2577 }
2578 _has_bits_[0] |= 0x00002000u;
2579 } else {
2580 _has_bits_[0] &= ~0x00002000u;
2581 }
2582 shared_cost_ = shared_cost;
2583 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.shared_cost)
2584 }
2585
2586 // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7;
_internal_has_personal_number()2587 inline bool PhoneMetadata::_internal_has_personal_number() const {
2588 bool value = (_has_bits_[0] & 0x00004000u) != 0;
2589 PROTOBUF_ASSUME(!value || personal_number_ != nullptr);
2590 return value;
2591 }
has_personal_number()2592 inline bool PhoneMetadata::has_personal_number() const {
2593 return _internal_has_personal_number();
2594 }
clear_personal_number()2595 inline void PhoneMetadata::clear_personal_number() {
2596 if (personal_number_ != nullptr) personal_number_->Clear();
2597 _has_bits_[0] &= ~0x00004000u;
2598 }
_internal_personal_number()2599 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_personal_number() const {
2600 const ::i18n::phonenumbers::PhoneNumberDesc* p = personal_number_;
2601 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2602 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2603 }
personal_number()2604 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::personal_number() const {
2605 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.personal_number)
2606 return _internal_personal_number();
2607 }
unsafe_arena_set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc * personal_number)2608 inline void PhoneMetadata::unsafe_arena_set_allocated_personal_number(
2609 ::i18n::phonenumbers::PhoneNumberDesc* personal_number) {
2610 if (GetArena() == nullptr) {
2611 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(personal_number_);
2612 }
2613 personal_number_ = personal_number;
2614 if (personal_number) {
2615 _has_bits_[0] |= 0x00004000u;
2616 } else {
2617 _has_bits_[0] &= ~0x00004000u;
2618 }
2619 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.personal_number)
2620 }
release_personal_number()2621 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_personal_number() {
2622 _has_bits_[0] &= ~0x00004000u;
2623 ::i18n::phonenumbers::PhoneNumberDesc* temp = personal_number_;
2624 personal_number_ = nullptr;
2625 if (GetArena() != nullptr) {
2626 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2627 }
2628 return temp;
2629 }
unsafe_arena_release_personal_number()2630 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_personal_number() {
2631 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.personal_number)
2632 _has_bits_[0] &= ~0x00004000u;
2633 ::i18n::phonenumbers::PhoneNumberDesc* temp = personal_number_;
2634 personal_number_ = nullptr;
2635 return temp;
2636 }
_internal_mutable_personal_number()2637 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_personal_number() {
2638 _has_bits_[0] |= 0x00004000u;
2639 if (personal_number_ == nullptr) {
2640 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2641 personal_number_ = p;
2642 }
2643 return personal_number_;
2644 }
mutable_personal_number()2645 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_personal_number() {
2646 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.personal_number)
2647 return _internal_mutable_personal_number();
2648 }
set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc * personal_number)2649 inline void PhoneMetadata::set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number) {
2650 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2651 if (message_arena == nullptr) {
2652 delete personal_number_;
2653 }
2654 if (personal_number) {
2655 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2656 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(personal_number);
2657 if (message_arena != submessage_arena) {
2658 personal_number = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2659 message_arena, personal_number, submessage_arena);
2660 }
2661 _has_bits_[0] |= 0x00004000u;
2662 } else {
2663 _has_bits_[0] &= ~0x00004000u;
2664 }
2665 personal_number_ = personal_number;
2666 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.personal_number)
2667 }
2668
2669 // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8;
_internal_has_voip()2670 inline bool PhoneMetadata::_internal_has_voip() const {
2671 bool value = (_has_bits_[0] & 0x00008000u) != 0;
2672 PROTOBUF_ASSUME(!value || voip_ != nullptr);
2673 return value;
2674 }
has_voip()2675 inline bool PhoneMetadata::has_voip() const {
2676 return _internal_has_voip();
2677 }
clear_voip()2678 inline void PhoneMetadata::clear_voip() {
2679 if (voip_ != nullptr) voip_->Clear();
2680 _has_bits_[0] &= ~0x00008000u;
2681 }
_internal_voip()2682 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voip() const {
2683 const ::i18n::phonenumbers::PhoneNumberDesc* p = voip_;
2684 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2685 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2686 }
voip()2687 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voip() const {
2688 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voip)
2689 return _internal_voip();
2690 }
unsafe_arena_set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc * voip)2691 inline void PhoneMetadata::unsafe_arena_set_allocated_voip(
2692 ::i18n::phonenumbers::PhoneNumberDesc* voip) {
2693 if (GetArena() == nullptr) {
2694 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(voip_);
2695 }
2696 voip_ = voip;
2697 if (voip) {
2698 _has_bits_[0] |= 0x00008000u;
2699 } else {
2700 _has_bits_[0] &= ~0x00008000u;
2701 }
2702 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.voip)
2703 }
release_voip()2704 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voip() {
2705 _has_bits_[0] &= ~0x00008000u;
2706 ::i18n::phonenumbers::PhoneNumberDesc* temp = voip_;
2707 voip_ = nullptr;
2708 if (GetArena() != nullptr) {
2709 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2710 }
2711 return temp;
2712 }
unsafe_arena_release_voip()2713 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_voip() {
2714 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voip)
2715 _has_bits_[0] &= ~0x00008000u;
2716 ::i18n::phonenumbers::PhoneNumberDesc* temp = voip_;
2717 voip_ = nullptr;
2718 return temp;
2719 }
_internal_mutable_voip()2720 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_voip() {
2721 _has_bits_[0] |= 0x00008000u;
2722 if (voip_ == nullptr) {
2723 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2724 voip_ = p;
2725 }
2726 return voip_;
2727 }
mutable_voip()2728 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voip() {
2729 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voip)
2730 return _internal_mutable_voip();
2731 }
set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc * voip)2732 inline void PhoneMetadata::set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip) {
2733 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2734 if (message_arena == nullptr) {
2735 delete voip_;
2736 }
2737 if (voip) {
2738 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2739 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(voip);
2740 if (message_arena != submessage_arena) {
2741 voip = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2742 message_arena, voip, submessage_arena);
2743 }
2744 _has_bits_[0] |= 0x00008000u;
2745 } else {
2746 _has_bits_[0] &= ~0x00008000u;
2747 }
2748 voip_ = voip;
2749 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voip)
2750 }
2751
2752 // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21;
_internal_has_pager()2753 inline bool PhoneMetadata::_internal_has_pager() const {
2754 bool value = (_has_bits_[0] & 0x00010000u) != 0;
2755 PROTOBUF_ASSUME(!value || pager_ != nullptr);
2756 return value;
2757 }
has_pager()2758 inline bool PhoneMetadata::has_pager() const {
2759 return _internal_has_pager();
2760 }
clear_pager()2761 inline void PhoneMetadata::clear_pager() {
2762 if (pager_ != nullptr) pager_->Clear();
2763 _has_bits_[0] &= ~0x00010000u;
2764 }
_internal_pager()2765 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_pager() const {
2766 const ::i18n::phonenumbers::PhoneNumberDesc* p = pager_;
2767 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2768 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2769 }
pager()2770 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::pager() const {
2771 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.pager)
2772 return _internal_pager();
2773 }
unsafe_arena_set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc * pager)2774 inline void PhoneMetadata::unsafe_arena_set_allocated_pager(
2775 ::i18n::phonenumbers::PhoneNumberDesc* pager) {
2776 if (GetArena() == nullptr) {
2777 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pager_);
2778 }
2779 pager_ = pager;
2780 if (pager) {
2781 _has_bits_[0] |= 0x00010000u;
2782 } else {
2783 _has_bits_[0] &= ~0x00010000u;
2784 }
2785 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.pager)
2786 }
release_pager()2787 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_pager() {
2788 _has_bits_[0] &= ~0x00010000u;
2789 ::i18n::phonenumbers::PhoneNumberDesc* temp = pager_;
2790 pager_ = nullptr;
2791 if (GetArena() != nullptr) {
2792 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2793 }
2794 return temp;
2795 }
unsafe_arena_release_pager()2796 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_pager() {
2797 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.pager)
2798 _has_bits_[0] &= ~0x00010000u;
2799 ::i18n::phonenumbers::PhoneNumberDesc* temp = pager_;
2800 pager_ = nullptr;
2801 return temp;
2802 }
_internal_mutable_pager()2803 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_pager() {
2804 _has_bits_[0] |= 0x00010000u;
2805 if (pager_ == nullptr) {
2806 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2807 pager_ = p;
2808 }
2809 return pager_;
2810 }
mutable_pager()2811 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_pager() {
2812 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.pager)
2813 return _internal_mutable_pager();
2814 }
set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc * pager)2815 inline void PhoneMetadata::set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager) {
2816 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2817 if (message_arena == nullptr) {
2818 delete pager_;
2819 }
2820 if (pager) {
2821 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2822 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pager);
2823 if (message_arena != submessage_arena) {
2824 pager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2825 message_arena, pager, submessage_arena);
2826 }
2827 _has_bits_[0] |= 0x00010000u;
2828 } else {
2829 _has_bits_[0] &= ~0x00010000u;
2830 }
2831 pager_ = pager;
2832 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.pager)
2833 }
2834
2835 // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25;
_internal_has_uan()2836 inline bool PhoneMetadata::_internal_has_uan() const {
2837 bool value = (_has_bits_[0] & 0x00040000u) != 0;
2838 PROTOBUF_ASSUME(!value || uan_ != nullptr);
2839 return value;
2840 }
has_uan()2841 inline bool PhoneMetadata::has_uan() const {
2842 return _internal_has_uan();
2843 }
clear_uan()2844 inline void PhoneMetadata::clear_uan() {
2845 if (uan_ != nullptr) uan_->Clear();
2846 _has_bits_[0] &= ~0x00040000u;
2847 }
_internal_uan()2848 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_uan() const {
2849 const ::i18n::phonenumbers::PhoneNumberDesc* p = uan_;
2850 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2851 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2852 }
uan()2853 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::uan() const {
2854 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.uan)
2855 return _internal_uan();
2856 }
unsafe_arena_set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc * uan)2857 inline void PhoneMetadata::unsafe_arena_set_allocated_uan(
2858 ::i18n::phonenumbers::PhoneNumberDesc* uan) {
2859 if (GetArena() == nullptr) {
2860 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(uan_);
2861 }
2862 uan_ = uan;
2863 if (uan) {
2864 _has_bits_[0] |= 0x00040000u;
2865 } else {
2866 _has_bits_[0] &= ~0x00040000u;
2867 }
2868 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.uan)
2869 }
release_uan()2870 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_uan() {
2871 _has_bits_[0] &= ~0x00040000u;
2872 ::i18n::phonenumbers::PhoneNumberDesc* temp = uan_;
2873 uan_ = nullptr;
2874 if (GetArena() != nullptr) {
2875 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2876 }
2877 return temp;
2878 }
unsafe_arena_release_uan()2879 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_uan() {
2880 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.uan)
2881 _has_bits_[0] &= ~0x00040000u;
2882 ::i18n::phonenumbers::PhoneNumberDesc* temp = uan_;
2883 uan_ = nullptr;
2884 return temp;
2885 }
_internal_mutable_uan()2886 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_uan() {
2887 _has_bits_[0] |= 0x00040000u;
2888 if (uan_ == nullptr) {
2889 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2890 uan_ = p;
2891 }
2892 return uan_;
2893 }
mutable_uan()2894 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_uan() {
2895 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.uan)
2896 return _internal_mutable_uan();
2897 }
set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc * uan)2898 inline void PhoneMetadata::set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan) {
2899 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2900 if (message_arena == nullptr) {
2901 delete uan_;
2902 }
2903 if (uan) {
2904 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2905 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(uan);
2906 if (message_arena != submessage_arena) {
2907 uan = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2908 message_arena, uan, submessage_arena);
2909 }
2910 _has_bits_[0] |= 0x00040000u;
2911 } else {
2912 _has_bits_[0] &= ~0x00040000u;
2913 }
2914 uan_ = uan;
2915 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.uan)
2916 }
2917
2918 // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27;
_internal_has_emergency()2919 inline bool PhoneMetadata::_internal_has_emergency() const {
2920 bool value = (_has_bits_[0] & 0x00080000u) != 0;
2921 PROTOBUF_ASSUME(!value || emergency_ != nullptr);
2922 return value;
2923 }
has_emergency()2924 inline bool PhoneMetadata::has_emergency() const {
2925 return _internal_has_emergency();
2926 }
clear_emergency()2927 inline void PhoneMetadata::clear_emergency() {
2928 if (emergency_ != nullptr) emergency_->Clear();
2929 _has_bits_[0] &= ~0x00080000u;
2930 }
_internal_emergency()2931 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_emergency() const {
2932 const ::i18n::phonenumbers::PhoneNumberDesc* p = emergency_;
2933 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
2934 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
2935 }
emergency()2936 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::emergency() const {
2937 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.emergency)
2938 return _internal_emergency();
2939 }
unsafe_arena_set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc * emergency)2940 inline void PhoneMetadata::unsafe_arena_set_allocated_emergency(
2941 ::i18n::phonenumbers::PhoneNumberDesc* emergency) {
2942 if (GetArena() == nullptr) {
2943 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(emergency_);
2944 }
2945 emergency_ = emergency;
2946 if (emergency) {
2947 _has_bits_[0] |= 0x00080000u;
2948 } else {
2949 _has_bits_[0] &= ~0x00080000u;
2950 }
2951 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.emergency)
2952 }
release_emergency()2953 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_emergency() {
2954 _has_bits_[0] &= ~0x00080000u;
2955 ::i18n::phonenumbers::PhoneNumberDesc* temp = emergency_;
2956 emergency_ = nullptr;
2957 if (GetArena() != nullptr) {
2958 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2959 }
2960 return temp;
2961 }
unsafe_arena_release_emergency()2962 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_emergency() {
2963 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.emergency)
2964 _has_bits_[0] &= ~0x00080000u;
2965 ::i18n::phonenumbers::PhoneNumberDesc* temp = emergency_;
2966 emergency_ = nullptr;
2967 return temp;
2968 }
_internal_mutable_emergency()2969 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_emergency() {
2970 _has_bits_[0] |= 0x00080000u;
2971 if (emergency_ == nullptr) {
2972 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
2973 emergency_ = p;
2974 }
2975 return emergency_;
2976 }
mutable_emergency()2977 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_emergency() {
2978 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.emergency)
2979 return _internal_mutable_emergency();
2980 }
set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc * emergency)2981 inline void PhoneMetadata::set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency) {
2982 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2983 if (message_arena == nullptr) {
2984 delete emergency_;
2985 }
2986 if (emergency) {
2987 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2988 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(emergency);
2989 if (message_arena != submessage_arena) {
2990 emergency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2991 message_arena, emergency, submessage_arena);
2992 }
2993 _has_bits_[0] |= 0x00080000u;
2994 } else {
2995 _has_bits_[0] &= ~0x00080000u;
2996 }
2997 emergency_ = emergency;
2998 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.emergency)
2999 }
3000
3001 // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28;
_internal_has_voicemail()3002 inline bool PhoneMetadata::_internal_has_voicemail() const {
3003 bool value = (_has_bits_[0] & 0x00100000u) != 0;
3004 PROTOBUF_ASSUME(!value || voicemail_ != nullptr);
3005 return value;
3006 }
has_voicemail()3007 inline bool PhoneMetadata::has_voicemail() const {
3008 return _internal_has_voicemail();
3009 }
clear_voicemail()3010 inline void PhoneMetadata::clear_voicemail() {
3011 if (voicemail_ != nullptr) voicemail_->Clear();
3012 _has_bits_[0] &= ~0x00100000u;
3013 }
_internal_voicemail()3014 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voicemail() const {
3015 const ::i18n::phonenumbers::PhoneNumberDesc* p = voicemail_;
3016 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
3017 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
3018 }
voicemail()3019 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voicemail() const {
3020 // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voicemail)
3021 return _internal_voicemail();
3022 }
unsafe_arena_set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc * voicemail)3023 inline void PhoneMetadata::unsafe_arena_set_allocated_voicemail(
3024 ::i18n::phonenumbers::PhoneNumberDesc* voicemail) {
3025 if (GetArena() == nullptr) {
3026 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(voicemail_);
3027 }
3028 voicemail_ = voicemail;
3029 if (voicemail) {
3030 _has_bits_[0] |= 0x00100000u;
3031 } else {
3032 _has_bits_[0] &= ~0x00100000u;
3033 }
3034 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.voicemail)
3035 }
release_voicemail()3036 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voicemail() {
3037 _has_bits_[0] &= ~0x00100000u;
3038 ::i18n::phonenumbers::PhoneNumberDesc* temp = voicemail_;
3039 voicemail_ = nullptr;
3040 if (GetArena() != nullptr) {
3041 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3042 }
3043 return temp;
3044 }
unsafe_arena_release_voicemail()3045 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_voicemail() {
3046 // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voicemail)
3047 _has_bits_[0] &= ~0x00100000u;
3048 ::i18n::phonenumbers::PhoneNumberDesc* temp = voicemail_;
3049 voicemail_ = nullptr;
3050 return temp;
3051 }
_internal_mutable_voicemail()3052 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_voicemail() {
3053 _has_bits_[0] |= 0x00100000u;
3054 if (voicemail_ == nullptr) {
3055 auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena());
3056 voicemail_ = p;
3057 }
3058 return voicemail_;
3059 }
mutable_voicemail()3060 inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voicemail() {
3061 // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voicemail)
3062 return _internal_mutable_voicemail();
3063 }
set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc * voicemail)3064 inline void PhoneMetadata::set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail) {
3065 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
3066 if (message_arena == nullptr) {
3067 delete voicemail_;
3068 }
3069 if (voicemail) {
3070 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3071 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(voicemail);
3072 if (message_arena != submessage_arena) {
3073 voicemail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3074 message_arena, voicemail, submessage_arena);
3075 }
3076 _has_bits_[0] |= 0x00100000u;
3077 } else {
3078 _has_bits_[0] &= ~0x00100000u;
3079 }
3080 voicemail_ = voicemail;
3081 // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voicemail)
3082 }
3083
3084 // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29;
_internal_has_short_code()3085 inline bool PhoneMetadata::_internal_has_short_code() const {
3086 bool value = (_has_bits_[0] & 0x00200000u) != 0;
3087 PROTOBUF_ASSUME(!value || short_code_ != nullptr);
3088 return value;
3089 }
has_short_code()3090 inline bool PhoneMetadata::has_short_code() const {
3091 return _internal_has_short_code();
3092 }
clear_short_code()3093 inline void PhoneMetadata::clear_short_code() {
3094 if (short_code_ != nullptr) short_code_->Clear();
3095 _has_bits_[0] &= ~0x00200000u;
3096 }
_internal_short_code()3097 inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_short_code() const {
3098 const ::i18n::phonenumbers::PhoneNumberDesc* p = short_code_;
3099 return p != nullptr ? *p : *reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc*>(
3100 &::i18n::phonenumbers::_PhoneNumberDesc_default_instance_);
3101 }
short_code()3102