/src/libphonenumber/cpp/src/phonenumbers/phonemetadata.pb.h
Line | Count | Source |
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 < 3014000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3014000 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_table_driven.h> |
27 | | #include <google/protobuf/generated_message_util.h> |
28 | | #include <google/protobuf/metadata_lite.h> |
29 | | #include <google/protobuf/message_lite.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | // @@protoc_insertion_point(includes) |
33 | | #include <google/protobuf/port_def.inc> |
34 | | #define PROTOBUF_INTERNAL_EXPORT_phonemetadata_2eproto |
35 | | PROTOBUF_NAMESPACE_OPEN |
36 | | namespace internal { |
37 | | class AnyMetadata; |
38 | | } // namespace internal |
39 | | PROTOBUF_NAMESPACE_CLOSE |
40 | | |
41 | | // Internal implementation detail -- do not use these members. |
42 | | struct TableStruct_phonemetadata_2eproto { |
43 | | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
44 | | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
45 | | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] |
46 | | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
47 | | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] |
48 | | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
50 | | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
51 | | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
52 | | }; |
53 | | namespace i18n { |
54 | | namespace phonenumbers { |
55 | | class NumberFormat; |
56 | | class NumberFormatDefaultTypeInternal; |
57 | | extern NumberFormatDefaultTypeInternal _NumberFormat_default_instance_; |
58 | | class PhoneMetadata; |
59 | | class PhoneMetadataDefaultTypeInternal; |
60 | | extern PhoneMetadataDefaultTypeInternal _PhoneMetadata_default_instance_; |
61 | | class PhoneMetadataCollection; |
62 | | class PhoneMetadataCollectionDefaultTypeInternal; |
63 | | extern PhoneMetadataCollectionDefaultTypeInternal _PhoneMetadataCollection_default_instance_; |
64 | | class PhoneNumberDesc; |
65 | | class PhoneNumberDescDefaultTypeInternal; |
66 | | extern PhoneNumberDescDefaultTypeInternal _PhoneNumberDesc_default_instance_; |
67 | | } // namespace phonenumbers |
68 | | } // namespace i18n |
69 | | PROTOBUF_NAMESPACE_OPEN |
70 | | template<> ::i18n::phonenumbers::NumberFormat* Arena::CreateMaybeMessage<::i18n::phonenumbers::NumberFormat>(Arena*); |
71 | | template<> ::i18n::phonenumbers::PhoneMetadata* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadata>(Arena*); |
72 | | template<> ::i18n::phonenumbers::PhoneMetadataCollection* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneMetadataCollection>(Arena*); |
73 | | template<> ::i18n::phonenumbers::PhoneNumberDesc* Arena::CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(Arena*); |
74 | | PROTOBUF_NAMESPACE_CLOSE |
75 | | namespace i18n { |
76 | | namespace phonenumbers { |
77 | | |
78 | | // =================================================================== |
79 | | |
80 | | class NumberFormat PROTOBUF_FINAL : |
81 | | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.NumberFormat) */ { |
82 | | public: |
83 | 379k | inline NumberFormat() : NumberFormat(nullptr) {} |
84 | | virtual ~NumberFormat(); |
85 | | |
86 | | NumberFormat(const NumberFormat& from); |
87 | | NumberFormat(NumberFormat&& from) noexcept |
88 | 0 | : NumberFormat() { |
89 | 0 | *this = ::std::move(from); |
90 | 0 | } |
91 | | |
92 | 0 | inline NumberFormat& operator=(const NumberFormat& from) { |
93 | 0 | CopyFrom(from); |
94 | 0 | return *this; |
95 | 0 | } |
96 | 0 | inline NumberFormat& operator=(NumberFormat&& from) noexcept { |
97 | 0 | if (GetArena() == from.GetArena()) { |
98 | 0 | if (this != &from) InternalSwap(&from); |
99 | 0 | } else { |
100 | 0 | CopyFrom(from); |
101 | 0 | } |
102 | 0 | return *this; |
103 | 0 | } |
104 | | |
105 | 0 | inline const std::string& unknown_fields() const { |
106 | 0 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
107 | 0 | } |
108 | 0 | inline std::string* mutable_unknown_fields() { |
109 | 0 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
110 | 0 | } |
111 | | |
112 | | static const NumberFormat& default_instance(); |
113 | | |
114 | 0 | static inline const NumberFormat* internal_default_instance() { |
115 | 0 | return reinterpret_cast<const NumberFormat*>( |
116 | 0 | &_NumberFormat_default_instance_); |
117 | 0 | } |
118 | | static constexpr int kIndexInFileMessages = |
119 | | 0; |
120 | | |
121 | 0 | friend void swap(NumberFormat& a, NumberFormat& b) { |
122 | 0 | a.Swap(&b); |
123 | 0 | } |
124 | 0 | inline void Swap(NumberFormat* other) { |
125 | 0 | if (other == this) return; |
126 | 0 | if (GetArena() == other->GetArena()) { |
127 | 0 | InternalSwap(other); |
128 | 0 | } else { |
129 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
130 | 0 | } |
131 | 0 | } |
132 | 0 | void UnsafeArenaSwap(NumberFormat* other) { |
133 | 0 | if (other == this) return; |
134 | 0 | GOOGLE_DCHECK(GetArena() == other->GetArena()); |
135 | 0 | InternalSwap(other); |
136 | 0 | } |
137 | | |
138 | | // implements Message ---------------------------------------------- |
139 | | |
140 | 0 | inline NumberFormat* New() const final { |
141 | 0 | return CreateMaybeMessage<NumberFormat>(nullptr); |
142 | 0 | } |
143 | | |
144 | 0 | NumberFormat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
145 | 0 | return CreateMaybeMessage<NumberFormat>(arena); |
146 | 0 | } |
147 | | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) |
148 | | final; |
149 | | void CopyFrom(const NumberFormat& from); |
150 | | void MergeFrom(const NumberFormat& from); |
151 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
152 | | bool IsInitialized() const final; |
153 | | |
154 | | size_t ByteSizeLong() const final; |
155 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
156 | | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
157 | | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
158 | | void DiscardUnknownFields(); |
159 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
160 | | |
161 | | private: |
162 | | inline void SharedCtor(); |
163 | | inline void SharedDtor(); |
164 | | void SetCachedSize(int size) const; |
165 | | void InternalSwap(NumberFormat* other); |
166 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
167 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
168 | 0 | return "i18n.phonenumbers.NumberFormat"; |
169 | 0 | } |
170 | | protected: |
171 | | explicit NumberFormat(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
172 | | private: |
173 | | static void ArenaDtor(void* object); |
174 | | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
175 | | public: |
176 | | |
177 | | std::string GetTypeName() const final; |
178 | | |
179 | | // nested types ---------------------------------------------------- |
180 | | |
181 | | // accessors ------------------------------------------------------- |
182 | | |
183 | | enum : int { |
184 | | kLeadingDigitsPatternFieldNumber = 3, |
185 | | kPatternFieldNumber = 1, |
186 | | kFormatFieldNumber = 2, |
187 | | kNationalPrefixFormattingRuleFieldNumber = 4, |
188 | | kDomesticCarrierCodeFormattingRuleFieldNumber = 5, |
189 | | kNationalPrefixOptionalWhenFormattingFieldNumber = 6, |
190 | | }; |
191 | | // repeated string leading_digits_pattern = 3; |
192 | | int leading_digits_pattern_size() const; |
193 | | private: |
194 | | int _internal_leading_digits_pattern_size() const; |
195 | | public: |
196 | | void clear_leading_digits_pattern(); |
197 | | const std::string& leading_digits_pattern(int index) const; |
198 | | std::string* mutable_leading_digits_pattern(int index); |
199 | | void set_leading_digits_pattern(int index, const std::string& value); |
200 | | void set_leading_digits_pattern(int index, std::string&& value); |
201 | | void set_leading_digits_pattern(int index, const char* value); |
202 | | void set_leading_digits_pattern(int index, const char* value, size_t size); |
203 | | std::string* add_leading_digits_pattern(); |
204 | | void add_leading_digits_pattern(const std::string& value); |
205 | | void add_leading_digits_pattern(std::string&& value); |
206 | | void add_leading_digits_pattern(const char* value); |
207 | | void add_leading_digits_pattern(const char* value, size_t size); |
208 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_digits_pattern() const; |
209 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_digits_pattern(); |
210 | | private: |
211 | | const std::string& _internal_leading_digits_pattern(int index) const; |
212 | | std::string* _internal_add_leading_digits_pattern(); |
213 | | public: |
214 | | |
215 | | // required string pattern = 1; |
216 | | bool has_pattern() const; |
217 | | private: |
218 | | bool _internal_has_pattern() const; |
219 | | public: |
220 | | void clear_pattern(); |
221 | | const std::string& pattern() const; |
222 | | void set_pattern(const std::string& value); |
223 | | void set_pattern(std::string&& value); |
224 | | void set_pattern(const char* value); |
225 | | void set_pattern(const char* value, size_t size); |
226 | | std::string* mutable_pattern(); |
227 | | std::string* release_pattern(); |
228 | | void set_allocated_pattern(std::string* pattern); |
229 | | private: |
230 | | const std::string& _internal_pattern() const; |
231 | | void _internal_set_pattern(const std::string& value); |
232 | | std::string* _internal_mutable_pattern(); |
233 | | public: |
234 | | |
235 | | // required string format = 2; |
236 | | bool has_format() const; |
237 | | private: |
238 | | bool _internal_has_format() const; |
239 | | public: |
240 | | void clear_format(); |
241 | | const std::string& format() const; |
242 | | void set_format(const std::string& value); |
243 | | void set_format(std::string&& value); |
244 | | void set_format(const char* value); |
245 | | void set_format(const char* value, size_t size); |
246 | | std::string* mutable_format(); |
247 | | std::string* release_format(); |
248 | | void set_allocated_format(std::string* format); |
249 | | private: |
250 | | const std::string& _internal_format() const; |
251 | | void _internal_set_format(const std::string& value); |
252 | | std::string* _internal_mutable_format(); |
253 | | public: |
254 | | |
255 | | // optional string national_prefix_formatting_rule = 4; |
256 | | bool has_national_prefix_formatting_rule() const; |
257 | | private: |
258 | | bool _internal_has_national_prefix_formatting_rule() const; |
259 | | public: |
260 | | void clear_national_prefix_formatting_rule(); |
261 | | const std::string& national_prefix_formatting_rule() const; |
262 | | void set_national_prefix_formatting_rule(const std::string& value); |
263 | | void set_national_prefix_formatting_rule(std::string&& value); |
264 | | void set_national_prefix_formatting_rule(const char* value); |
265 | | void set_national_prefix_formatting_rule(const char* value, size_t size); |
266 | | std::string* mutable_national_prefix_formatting_rule(); |
267 | | std::string* release_national_prefix_formatting_rule(); |
268 | | void set_allocated_national_prefix_formatting_rule(std::string* national_prefix_formatting_rule); |
269 | | private: |
270 | | const std::string& _internal_national_prefix_formatting_rule() const; |
271 | | void _internal_set_national_prefix_formatting_rule(const std::string& value); |
272 | | std::string* _internal_mutable_national_prefix_formatting_rule(); |
273 | | public: |
274 | | |
275 | | // optional string domestic_carrier_code_formatting_rule = 5; |
276 | | bool has_domestic_carrier_code_formatting_rule() const; |
277 | | private: |
278 | | bool _internal_has_domestic_carrier_code_formatting_rule() const; |
279 | | public: |
280 | | void clear_domestic_carrier_code_formatting_rule(); |
281 | | const std::string& domestic_carrier_code_formatting_rule() const; |
282 | | void set_domestic_carrier_code_formatting_rule(const std::string& value); |
283 | | void set_domestic_carrier_code_formatting_rule(std::string&& value); |
284 | | void set_domestic_carrier_code_formatting_rule(const char* value); |
285 | | void set_domestic_carrier_code_formatting_rule(const char* value, size_t size); |
286 | | std::string* mutable_domestic_carrier_code_formatting_rule(); |
287 | | std::string* release_domestic_carrier_code_formatting_rule(); |
288 | | void set_allocated_domestic_carrier_code_formatting_rule(std::string* domestic_carrier_code_formatting_rule); |
289 | | private: |
290 | | const std::string& _internal_domestic_carrier_code_formatting_rule() const; |
291 | | void _internal_set_domestic_carrier_code_formatting_rule(const std::string& value); |
292 | | std::string* _internal_mutable_domestic_carrier_code_formatting_rule(); |
293 | | public: |
294 | | |
295 | | // optional bool national_prefix_optional_when_formatting = 6 [default = false]; |
296 | | bool has_national_prefix_optional_when_formatting() const; |
297 | | private: |
298 | | bool _internal_has_national_prefix_optional_when_formatting() const; |
299 | | public: |
300 | | void clear_national_prefix_optional_when_formatting(); |
301 | | bool national_prefix_optional_when_formatting() const; |
302 | | void set_national_prefix_optional_when_formatting(bool value); |
303 | | private: |
304 | | bool _internal_national_prefix_optional_when_formatting() const; |
305 | | void _internal_set_national_prefix_optional_when_formatting(bool value); |
306 | | public: |
307 | | |
308 | | // @@protoc_insertion_point(class_scope:i18n.phonenumbers.NumberFormat) |
309 | | private: |
310 | | class _Internal; |
311 | | |
312 | | // helper for ByteSizeLong() |
313 | | size_t RequiredFieldsByteSizeFallback() const; |
314 | | |
315 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
316 | | typedef void InternalArenaConstructable_; |
317 | | typedef void DestructorSkippable_; |
318 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
319 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
320 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_digits_pattern_; |
321 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pattern_; |
322 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr format_; |
323 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_formatting_rule_; |
324 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr domestic_carrier_code_formatting_rule_; |
325 | | bool national_prefix_optional_when_formatting_; |
326 | | friend struct ::TableStruct_phonemetadata_2eproto; |
327 | | }; |
328 | | // ------------------------------------------------------------------- |
329 | | |
330 | | class PhoneNumberDesc PROTOBUF_FINAL : |
331 | | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneNumberDesc) */ { |
332 | | public: |
333 | 6.01M | inline PhoneNumberDesc() : PhoneNumberDesc(nullptr) {} |
334 | | virtual ~PhoneNumberDesc(); |
335 | | |
336 | | PhoneNumberDesc(const PhoneNumberDesc& from); |
337 | | PhoneNumberDesc(PhoneNumberDesc&& from) noexcept |
338 | 0 | : PhoneNumberDesc() { |
339 | 0 | *this = ::std::move(from); |
340 | 0 | } |
341 | | |
342 | 0 | inline PhoneNumberDesc& operator=(const PhoneNumberDesc& from) { |
343 | 0 | CopyFrom(from); |
344 | 0 | return *this; |
345 | 0 | } |
346 | 0 | inline PhoneNumberDesc& operator=(PhoneNumberDesc&& from) noexcept { |
347 | 0 | if (GetArena() == from.GetArena()) { |
348 | 0 | if (this != &from) InternalSwap(&from); |
349 | 0 | } else { |
350 | 0 | CopyFrom(from); |
351 | 0 | } |
352 | 0 | return *this; |
353 | 0 | } |
354 | | |
355 | 0 | inline const std::string& unknown_fields() const { |
356 | 0 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
357 | 0 | } |
358 | 0 | inline std::string* mutable_unknown_fields() { |
359 | 0 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
360 | 0 | } |
361 | | |
362 | | static const PhoneNumberDesc& default_instance(); |
363 | | |
364 | 0 | static inline const PhoneNumberDesc* internal_default_instance() { |
365 | 0 | return reinterpret_cast<const PhoneNumberDesc*>( |
366 | 0 | &_PhoneNumberDesc_default_instance_); |
367 | 0 | } |
368 | | static constexpr int kIndexInFileMessages = |
369 | | 1; |
370 | | |
371 | 0 | friend void swap(PhoneNumberDesc& a, PhoneNumberDesc& b) { |
372 | 0 | a.Swap(&b); |
373 | 0 | } |
374 | 0 | inline void Swap(PhoneNumberDesc* other) { |
375 | 0 | if (other == this) return; |
376 | 0 | if (GetArena() == other->GetArena()) { |
377 | 0 | InternalSwap(other); |
378 | 0 | } else { |
379 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
380 | 0 | } |
381 | 0 | } |
382 | 0 | void UnsafeArenaSwap(PhoneNumberDesc* other) { |
383 | 0 | if (other == this) return; |
384 | 0 | GOOGLE_DCHECK(GetArena() == other->GetArena()); |
385 | 0 | InternalSwap(other); |
386 | 0 | } |
387 | | |
388 | | // implements Message ---------------------------------------------- |
389 | | |
390 | 0 | inline PhoneNumberDesc* New() const final { |
391 | 0 | return CreateMaybeMessage<PhoneNumberDesc>(nullptr); |
392 | 0 | } |
393 | | |
394 | 0 | PhoneNumberDesc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
395 | 0 | return CreateMaybeMessage<PhoneNumberDesc>(arena); |
396 | 0 | } |
397 | | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) |
398 | | final; |
399 | | void CopyFrom(const PhoneNumberDesc& from); |
400 | | void MergeFrom(const PhoneNumberDesc& from); |
401 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
402 | | bool IsInitialized() const final; |
403 | | |
404 | | size_t ByteSizeLong() const final; |
405 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
406 | | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
407 | | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
408 | | void DiscardUnknownFields(); |
409 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
410 | | |
411 | | private: |
412 | | inline void SharedCtor(); |
413 | | inline void SharedDtor(); |
414 | | void SetCachedSize(int size) const; |
415 | | void InternalSwap(PhoneNumberDesc* other); |
416 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
417 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
418 | 0 | return "i18n.phonenumbers.PhoneNumberDesc"; |
419 | 0 | } |
420 | | protected: |
421 | | explicit PhoneNumberDesc(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
422 | | private: |
423 | | static void ArenaDtor(void* object); |
424 | | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
425 | | public: |
426 | | |
427 | | std::string GetTypeName() const final; |
428 | | |
429 | | // nested types ---------------------------------------------------- |
430 | | |
431 | | // accessors ------------------------------------------------------- |
432 | | |
433 | | enum : int { |
434 | | kPossibleLengthFieldNumber = 9, |
435 | | kPossibleLengthLocalOnlyFieldNumber = 10, |
436 | | kNationalNumberPatternFieldNumber = 2, |
437 | | kExampleNumberFieldNumber = 6, |
438 | | }; |
439 | | // repeated int32 possible_length = 9; |
440 | | int possible_length_size() const; |
441 | | private: |
442 | | int _internal_possible_length_size() const; |
443 | | public: |
444 | | void clear_possible_length(); |
445 | | private: |
446 | | ::PROTOBUF_NAMESPACE_ID::int32 _internal_possible_length(int index) const; |
447 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
448 | | _internal_possible_length() const; |
449 | | void _internal_add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value); |
450 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
451 | | _internal_mutable_possible_length(); |
452 | | public: |
453 | | ::PROTOBUF_NAMESPACE_ID::int32 possible_length(int index) const; |
454 | | void set_possible_length(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
455 | | void add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value); |
456 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
457 | | possible_length() const; |
458 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
459 | | mutable_possible_length(); |
460 | | |
461 | | // repeated int32 possible_length_local_only = 10; |
462 | | int possible_length_local_only_size() const; |
463 | | private: |
464 | | int _internal_possible_length_local_only_size() const; |
465 | | public: |
466 | | void clear_possible_length_local_only(); |
467 | | private: |
468 | | ::PROTOBUF_NAMESPACE_ID::int32 _internal_possible_length_local_only(int index) const; |
469 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
470 | | _internal_possible_length_local_only() const; |
471 | | void _internal_add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value); |
472 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
473 | | _internal_mutable_possible_length_local_only(); |
474 | | public: |
475 | | ::PROTOBUF_NAMESPACE_ID::int32 possible_length_local_only(int index) const; |
476 | | void set_possible_length_local_only(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
477 | | void add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value); |
478 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
479 | | possible_length_local_only() const; |
480 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
481 | | mutable_possible_length_local_only(); |
482 | | |
483 | | // optional string national_number_pattern = 2; |
484 | | bool has_national_number_pattern() const; |
485 | | private: |
486 | | bool _internal_has_national_number_pattern() const; |
487 | | public: |
488 | | void clear_national_number_pattern(); |
489 | | const std::string& national_number_pattern() const; |
490 | | void set_national_number_pattern(const std::string& value); |
491 | | void set_national_number_pattern(std::string&& value); |
492 | | void set_national_number_pattern(const char* value); |
493 | | void set_national_number_pattern(const char* value, size_t size); |
494 | | std::string* mutable_national_number_pattern(); |
495 | | std::string* release_national_number_pattern(); |
496 | | void set_allocated_national_number_pattern(std::string* national_number_pattern); |
497 | | private: |
498 | | const std::string& _internal_national_number_pattern() const; |
499 | | void _internal_set_national_number_pattern(const std::string& value); |
500 | | std::string* _internal_mutable_national_number_pattern(); |
501 | | public: |
502 | | |
503 | | // optional string example_number = 6; |
504 | | bool has_example_number() const; |
505 | | private: |
506 | | bool _internal_has_example_number() const; |
507 | | public: |
508 | | void clear_example_number(); |
509 | | const std::string& example_number() const; |
510 | | void set_example_number(const std::string& value); |
511 | | void set_example_number(std::string&& value); |
512 | | void set_example_number(const char* value); |
513 | | void set_example_number(const char* value, size_t size); |
514 | | std::string* mutable_example_number(); |
515 | | std::string* release_example_number(); |
516 | | void set_allocated_example_number(std::string* example_number); |
517 | | private: |
518 | | const std::string& _internal_example_number() const; |
519 | | void _internal_set_example_number(const std::string& value); |
520 | | std::string* _internal_mutable_example_number(); |
521 | | public: |
522 | | |
523 | | // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneNumberDesc) |
524 | | private: |
525 | | class _Internal; |
526 | | |
527 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
528 | | typedef void InternalArenaConstructable_; |
529 | | typedef void DestructorSkippable_; |
530 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
531 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
532 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > possible_length_; |
533 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > possible_length_local_only_; |
534 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_number_pattern_; |
535 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr example_number_; |
536 | | friend struct ::TableStruct_phonemetadata_2eproto; |
537 | | }; |
538 | | // ------------------------------------------------------------------- |
539 | | |
540 | | class PhoneMetadata PROTOBUF_FINAL : |
541 | | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadata) */ { |
542 | | public: |
543 | 2.88M | inline PhoneMetadata() : PhoneMetadata(nullptr) {} |
544 | | virtual ~PhoneMetadata(); |
545 | | |
546 | | PhoneMetadata(const PhoneMetadata& from); |
547 | | PhoneMetadata(PhoneMetadata&& from) noexcept |
548 | 2.13M | : PhoneMetadata() { |
549 | 2.13M | *this = ::std::move(from); |
550 | 2.13M | } |
551 | | |
552 | 0 | inline PhoneMetadata& operator=(const PhoneMetadata& from) { |
553 | 0 | CopyFrom(from); |
554 | 0 | return *this; |
555 | 0 | } |
556 | 2.13M | inline PhoneMetadata& operator=(PhoneMetadata&& from) noexcept { |
557 | 2.13M | if (GetArena() == from.GetArena()) { |
558 | 2.13M | if (this != &from) InternalSwap(&from); |
559 | 2.13M | } else { |
560 | 0 | CopyFrom(from); |
561 | 0 | } |
562 | 2.13M | return *this; |
563 | 2.13M | } |
564 | | |
565 | 0 | inline const std::string& unknown_fields() const { |
566 | 0 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
567 | 0 | } |
568 | 0 | inline std::string* mutable_unknown_fields() { |
569 | 0 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
570 | 0 | } |
571 | | |
572 | | static const PhoneMetadata& default_instance(); |
573 | | |
574 | 49.0M | static inline const PhoneMetadata* internal_default_instance() { |
575 | 49.0M | return reinterpret_cast<const PhoneMetadata*>( |
576 | 49.0M | &_PhoneMetadata_default_instance_); |
577 | 49.0M | } |
578 | | static constexpr int kIndexInFileMessages = |
579 | | 2; |
580 | | |
581 | 0 | friend void swap(PhoneMetadata& a, PhoneMetadata& b) { |
582 | 0 | a.Swap(&b); |
583 | 0 | } |
584 | 0 | inline void Swap(PhoneMetadata* other) { |
585 | 0 | if (other == this) return; |
586 | 0 | if (GetArena() == other->GetArena()) { |
587 | 0 | InternalSwap(other); |
588 | 0 | } else { |
589 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
590 | 0 | } |
591 | 0 | } |
592 | 0 | void UnsafeArenaSwap(PhoneMetadata* other) { |
593 | 0 | if (other == this) return; |
594 | 0 | GOOGLE_DCHECK(GetArena() == other->GetArena()); |
595 | 0 | InternalSwap(other); |
596 | 0 | } |
597 | | |
598 | | // implements Message ---------------------------------------------- |
599 | | |
600 | 0 | inline PhoneMetadata* New() const final { |
601 | 0 | return CreateMaybeMessage<PhoneMetadata>(nullptr); |
602 | 0 | } |
603 | | |
604 | 0 | PhoneMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
605 | 0 | return CreateMaybeMessage<PhoneMetadata>(arena); |
606 | 0 | } |
607 | | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) |
608 | | final; |
609 | | void CopyFrom(const PhoneMetadata& from); |
610 | | void MergeFrom(const PhoneMetadata& from); |
611 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
612 | | bool IsInitialized() const final; |
613 | | |
614 | | size_t ByteSizeLong() const final; |
615 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
616 | | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
617 | | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
618 | | void DiscardUnknownFields(); |
619 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
620 | | |
621 | | private: |
622 | | inline void SharedCtor(); |
623 | | inline void SharedDtor(); |
624 | | void SetCachedSize(int size) const; |
625 | | void InternalSwap(PhoneMetadata* other); |
626 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
627 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
628 | 0 | return "i18n.phonenumbers.PhoneMetadata"; |
629 | 0 | } |
630 | | protected: |
631 | | explicit PhoneMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
632 | | private: |
633 | | static void ArenaDtor(void* object); |
634 | | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
635 | | public: |
636 | | |
637 | | std::string GetTypeName() const final; |
638 | | |
639 | | // nested types ---------------------------------------------------- |
640 | | |
641 | | // accessors ------------------------------------------------------- |
642 | | |
643 | | enum : int { |
644 | | kNumberFormatFieldNumber = 19, |
645 | | kIntlNumberFormatFieldNumber = 20, |
646 | | kIdFieldNumber = 9, |
647 | | kInternationalPrefixFieldNumber = 11, |
648 | | kNationalPrefixFieldNumber = 12, |
649 | | kPreferredExtnPrefixFieldNumber = 13, |
650 | | kNationalPrefixForParsingFieldNumber = 15, |
651 | | kNationalPrefixTransformRuleFieldNumber = 16, |
652 | | kPreferredInternationalPrefixFieldNumber = 17, |
653 | | kLeadingDigitsFieldNumber = 23, |
654 | | kGeneralDescFieldNumber = 1, |
655 | | kFixedLineFieldNumber = 2, |
656 | | kMobileFieldNumber = 3, |
657 | | kTollFreeFieldNumber = 4, |
658 | | kPremiumRateFieldNumber = 5, |
659 | | kSharedCostFieldNumber = 6, |
660 | | kPersonalNumberFieldNumber = 7, |
661 | | kVoipFieldNumber = 8, |
662 | | kPagerFieldNumber = 21, |
663 | | kNoInternationalDiallingFieldNumber = 24, |
664 | | kUanFieldNumber = 25, |
665 | | kEmergencyFieldNumber = 27, |
666 | | kVoicemailFieldNumber = 28, |
667 | | kShortCodeFieldNumber = 29, |
668 | | kStandardRateFieldNumber = 30, |
669 | | kCarrierSpecificFieldNumber = 31, |
670 | | kSmsServicesFieldNumber = 33, |
671 | | kCountryCodeFieldNumber = 10, |
672 | | kSameMobileAndFixedLinePatternFieldNumber = 18, |
673 | | kMainCountryForCodeFieldNumber = 22, |
674 | | kMobileNumberPortableRegionFieldNumber = 32, |
675 | | }; |
676 | | // repeated .i18n.phonenumbers.NumberFormat number_format = 19; |
677 | | int number_format_size() const; |
678 | | private: |
679 | | int _internal_number_format_size() const; |
680 | | public: |
681 | | void clear_number_format(); |
682 | | ::i18n::phonenumbers::NumberFormat* mutable_number_format(int index); |
683 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >* |
684 | | mutable_number_format(); |
685 | | private: |
686 | | const ::i18n::phonenumbers::NumberFormat& _internal_number_format(int index) const; |
687 | | ::i18n::phonenumbers::NumberFormat* _internal_add_number_format(); |
688 | | public: |
689 | | const ::i18n::phonenumbers::NumberFormat& number_format(int index) const; |
690 | | ::i18n::phonenumbers::NumberFormat* add_number_format(); |
691 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >& |
692 | | number_format() const; |
693 | | |
694 | | // repeated .i18n.phonenumbers.NumberFormat intl_number_format = 20; |
695 | | int intl_number_format_size() const; |
696 | | private: |
697 | | int _internal_intl_number_format_size() const; |
698 | | public: |
699 | | void clear_intl_number_format(); |
700 | | ::i18n::phonenumbers::NumberFormat* mutable_intl_number_format(int index); |
701 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >* |
702 | | mutable_intl_number_format(); |
703 | | private: |
704 | | const ::i18n::phonenumbers::NumberFormat& _internal_intl_number_format(int index) const; |
705 | | ::i18n::phonenumbers::NumberFormat* _internal_add_intl_number_format(); |
706 | | public: |
707 | | const ::i18n::phonenumbers::NumberFormat& intl_number_format(int index) const; |
708 | | ::i18n::phonenumbers::NumberFormat* add_intl_number_format(); |
709 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >& |
710 | | intl_number_format() const; |
711 | | |
712 | | // required string id = 9; |
713 | | bool has_id() const; |
714 | | private: |
715 | | bool _internal_has_id() const; |
716 | | public: |
717 | | void clear_id(); |
718 | | const std::string& id() const; |
719 | | void set_id(const std::string& value); |
720 | | void set_id(std::string&& value); |
721 | | void set_id(const char* value); |
722 | | void set_id(const char* value, size_t size); |
723 | | std::string* mutable_id(); |
724 | | std::string* release_id(); |
725 | | void set_allocated_id(std::string* id); |
726 | | private: |
727 | | const std::string& _internal_id() const; |
728 | | void _internal_set_id(const std::string& value); |
729 | | std::string* _internal_mutable_id(); |
730 | | public: |
731 | | |
732 | | // optional string international_prefix = 11; |
733 | | bool has_international_prefix() const; |
734 | | private: |
735 | | bool _internal_has_international_prefix() const; |
736 | | public: |
737 | | void clear_international_prefix(); |
738 | | const std::string& international_prefix() const; |
739 | | void set_international_prefix(const std::string& value); |
740 | | void set_international_prefix(std::string&& value); |
741 | | void set_international_prefix(const char* value); |
742 | | void set_international_prefix(const char* value, size_t size); |
743 | | std::string* mutable_international_prefix(); |
744 | | std::string* release_international_prefix(); |
745 | | void set_allocated_international_prefix(std::string* international_prefix); |
746 | | private: |
747 | | const std::string& _internal_international_prefix() const; |
748 | | void _internal_set_international_prefix(const std::string& value); |
749 | | std::string* _internal_mutable_international_prefix(); |
750 | | public: |
751 | | |
752 | | // optional string national_prefix = 12; |
753 | | bool has_national_prefix() const; |
754 | | private: |
755 | | bool _internal_has_national_prefix() const; |
756 | | public: |
757 | | void clear_national_prefix(); |
758 | | const std::string& national_prefix() const; |
759 | | void set_national_prefix(const std::string& value); |
760 | | void set_national_prefix(std::string&& value); |
761 | | void set_national_prefix(const char* value); |
762 | | void set_national_prefix(const char* value, size_t size); |
763 | | std::string* mutable_national_prefix(); |
764 | | std::string* release_national_prefix(); |
765 | | void set_allocated_national_prefix(std::string* national_prefix); |
766 | | private: |
767 | | const std::string& _internal_national_prefix() const; |
768 | | void _internal_set_national_prefix(const std::string& value); |
769 | | std::string* _internal_mutable_national_prefix(); |
770 | | public: |
771 | | |
772 | | // optional string preferred_extn_prefix = 13; |
773 | | bool has_preferred_extn_prefix() const; |
774 | | private: |
775 | | bool _internal_has_preferred_extn_prefix() const; |
776 | | public: |
777 | | void clear_preferred_extn_prefix(); |
778 | | const std::string& preferred_extn_prefix() const; |
779 | | void set_preferred_extn_prefix(const std::string& value); |
780 | | void set_preferred_extn_prefix(std::string&& value); |
781 | | void set_preferred_extn_prefix(const char* value); |
782 | | void set_preferred_extn_prefix(const char* value, size_t size); |
783 | | std::string* mutable_preferred_extn_prefix(); |
784 | | std::string* release_preferred_extn_prefix(); |
785 | | void set_allocated_preferred_extn_prefix(std::string* preferred_extn_prefix); |
786 | | private: |
787 | | const std::string& _internal_preferred_extn_prefix() const; |
788 | | void _internal_set_preferred_extn_prefix(const std::string& value); |
789 | | std::string* _internal_mutable_preferred_extn_prefix(); |
790 | | public: |
791 | | |
792 | | // optional string national_prefix_for_parsing = 15; |
793 | | bool has_national_prefix_for_parsing() const; |
794 | | private: |
795 | | bool _internal_has_national_prefix_for_parsing() const; |
796 | | public: |
797 | | void clear_national_prefix_for_parsing(); |
798 | | const std::string& national_prefix_for_parsing() const; |
799 | | void set_national_prefix_for_parsing(const std::string& value); |
800 | | void set_national_prefix_for_parsing(std::string&& value); |
801 | | void set_national_prefix_for_parsing(const char* value); |
802 | | void set_national_prefix_for_parsing(const char* value, size_t size); |
803 | | std::string* mutable_national_prefix_for_parsing(); |
804 | | std::string* release_national_prefix_for_parsing(); |
805 | | void set_allocated_national_prefix_for_parsing(std::string* national_prefix_for_parsing); |
806 | | private: |
807 | | const std::string& _internal_national_prefix_for_parsing() const; |
808 | | void _internal_set_national_prefix_for_parsing(const std::string& value); |
809 | | std::string* _internal_mutable_national_prefix_for_parsing(); |
810 | | public: |
811 | | |
812 | | // optional string national_prefix_transform_rule = 16; |
813 | | bool has_national_prefix_transform_rule() const; |
814 | | private: |
815 | | bool _internal_has_national_prefix_transform_rule() const; |
816 | | public: |
817 | | void clear_national_prefix_transform_rule(); |
818 | | const std::string& national_prefix_transform_rule() const; |
819 | | void set_national_prefix_transform_rule(const std::string& value); |
820 | | void set_national_prefix_transform_rule(std::string&& value); |
821 | | void set_national_prefix_transform_rule(const char* value); |
822 | | void set_national_prefix_transform_rule(const char* value, size_t size); |
823 | | std::string* mutable_national_prefix_transform_rule(); |
824 | | std::string* release_national_prefix_transform_rule(); |
825 | | void set_allocated_national_prefix_transform_rule(std::string* national_prefix_transform_rule); |
826 | | private: |
827 | | const std::string& _internal_national_prefix_transform_rule() const; |
828 | | void _internal_set_national_prefix_transform_rule(const std::string& value); |
829 | | std::string* _internal_mutable_national_prefix_transform_rule(); |
830 | | public: |
831 | | |
832 | | // optional string preferred_international_prefix = 17; |
833 | | bool has_preferred_international_prefix() const; |
834 | | private: |
835 | | bool _internal_has_preferred_international_prefix() const; |
836 | | public: |
837 | | void clear_preferred_international_prefix(); |
838 | | const std::string& preferred_international_prefix() const; |
839 | | void set_preferred_international_prefix(const std::string& value); |
840 | | void set_preferred_international_prefix(std::string&& value); |
841 | | void set_preferred_international_prefix(const char* value); |
842 | | void set_preferred_international_prefix(const char* value, size_t size); |
843 | | std::string* mutable_preferred_international_prefix(); |
844 | | std::string* release_preferred_international_prefix(); |
845 | | void set_allocated_preferred_international_prefix(std::string* preferred_international_prefix); |
846 | | private: |
847 | | const std::string& _internal_preferred_international_prefix() const; |
848 | | void _internal_set_preferred_international_prefix(const std::string& value); |
849 | | std::string* _internal_mutable_preferred_international_prefix(); |
850 | | public: |
851 | | |
852 | | // optional string leading_digits = 23; |
853 | | bool has_leading_digits() const; |
854 | | private: |
855 | | bool _internal_has_leading_digits() const; |
856 | | public: |
857 | | void clear_leading_digits(); |
858 | | const std::string& leading_digits() const; |
859 | | void set_leading_digits(const std::string& value); |
860 | | void set_leading_digits(std::string&& value); |
861 | | void set_leading_digits(const char* value); |
862 | | void set_leading_digits(const char* value, size_t size); |
863 | | std::string* mutable_leading_digits(); |
864 | | std::string* release_leading_digits(); |
865 | | void set_allocated_leading_digits(std::string* leading_digits); |
866 | | private: |
867 | | const std::string& _internal_leading_digits() const; |
868 | | void _internal_set_leading_digits(const std::string& value); |
869 | | std::string* _internal_mutable_leading_digits(); |
870 | | public: |
871 | | |
872 | | // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1; |
873 | | bool has_general_desc() const; |
874 | | private: |
875 | | bool _internal_has_general_desc() const; |
876 | | public: |
877 | | void clear_general_desc(); |
878 | | const ::i18n::phonenumbers::PhoneNumberDesc& general_desc() const; |
879 | | ::i18n::phonenumbers::PhoneNumberDesc* release_general_desc(); |
880 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_general_desc(); |
881 | | void set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc); |
882 | | private: |
883 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_general_desc() const; |
884 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_general_desc(); |
885 | | public: |
886 | | void unsafe_arena_set_allocated_general_desc( |
887 | | ::i18n::phonenumbers::PhoneNumberDesc* general_desc); |
888 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_general_desc(); |
889 | | |
890 | | // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2; |
891 | | bool has_fixed_line() const; |
892 | | private: |
893 | | bool _internal_has_fixed_line() const; |
894 | | public: |
895 | | void clear_fixed_line(); |
896 | | const ::i18n::phonenumbers::PhoneNumberDesc& fixed_line() const; |
897 | | ::i18n::phonenumbers::PhoneNumberDesc* release_fixed_line(); |
898 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_fixed_line(); |
899 | | void set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line); |
900 | | private: |
901 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_fixed_line() const; |
902 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_fixed_line(); |
903 | | public: |
904 | | void unsafe_arena_set_allocated_fixed_line( |
905 | | ::i18n::phonenumbers::PhoneNumberDesc* fixed_line); |
906 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_fixed_line(); |
907 | | |
908 | | // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3; |
909 | | bool has_mobile() const; |
910 | | private: |
911 | | bool _internal_has_mobile() const; |
912 | | public: |
913 | | void clear_mobile(); |
914 | | const ::i18n::phonenumbers::PhoneNumberDesc& mobile() const; |
915 | | ::i18n::phonenumbers::PhoneNumberDesc* release_mobile(); |
916 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_mobile(); |
917 | | void set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile); |
918 | | private: |
919 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_mobile() const; |
920 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_mobile(); |
921 | | public: |
922 | | void unsafe_arena_set_allocated_mobile( |
923 | | ::i18n::phonenumbers::PhoneNumberDesc* mobile); |
924 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_mobile(); |
925 | | |
926 | | // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4; |
927 | | bool has_toll_free() const; |
928 | | private: |
929 | | bool _internal_has_toll_free() const; |
930 | | public: |
931 | | void clear_toll_free(); |
932 | | const ::i18n::phonenumbers::PhoneNumberDesc& toll_free() const; |
933 | | ::i18n::phonenumbers::PhoneNumberDesc* release_toll_free(); |
934 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_toll_free(); |
935 | | void set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free); |
936 | | private: |
937 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_toll_free() const; |
938 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_toll_free(); |
939 | | public: |
940 | | void unsafe_arena_set_allocated_toll_free( |
941 | | ::i18n::phonenumbers::PhoneNumberDesc* toll_free); |
942 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_toll_free(); |
943 | | |
944 | | // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5; |
945 | | bool has_premium_rate() const; |
946 | | private: |
947 | | bool _internal_has_premium_rate() const; |
948 | | public: |
949 | | void clear_premium_rate(); |
950 | | const ::i18n::phonenumbers::PhoneNumberDesc& premium_rate() const; |
951 | | ::i18n::phonenumbers::PhoneNumberDesc* release_premium_rate(); |
952 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_premium_rate(); |
953 | | void set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate); |
954 | | private: |
955 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_premium_rate() const; |
956 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_premium_rate(); |
957 | | public: |
958 | | void unsafe_arena_set_allocated_premium_rate( |
959 | | ::i18n::phonenumbers::PhoneNumberDesc* premium_rate); |
960 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_premium_rate(); |
961 | | |
962 | | // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6; |
963 | | bool has_shared_cost() const; |
964 | | private: |
965 | | bool _internal_has_shared_cost() const; |
966 | | public: |
967 | | void clear_shared_cost(); |
968 | | const ::i18n::phonenumbers::PhoneNumberDesc& shared_cost() const; |
969 | | ::i18n::phonenumbers::PhoneNumberDesc* release_shared_cost(); |
970 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_shared_cost(); |
971 | | void set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost); |
972 | | private: |
973 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_shared_cost() const; |
974 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_shared_cost(); |
975 | | public: |
976 | | void unsafe_arena_set_allocated_shared_cost( |
977 | | ::i18n::phonenumbers::PhoneNumberDesc* shared_cost); |
978 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_shared_cost(); |
979 | | |
980 | | // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7; |
981 | | bool has_personal_number() const; |
982 | | private: |
983 | | bool _internal_has_personal_number() const; |
984 | | public: |
985 | | void clear_personal_number(); |
986 | | const ::i18n::phonenumbers::PhoneNumberDesc& personal_number() const; |
987 | | ::i18n::phonenumbers::PhoneNumberDesc* release_personal_number(); |
988 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_personal_number(); |
989 | | void set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number); |
990 | | private: |
991 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_personal_number() const; |
992 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_personal_number(); |
993 | | public: |
994 | | void unsafe_arena_set_allocated_personal_number( |
995 | | ::i18n::phonenumbers::PhoneNumberDesc* personal_number); |
996 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_personal_number(); |
997 | | |
998 | | // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8; |
999 | | bool has_voip() const; |
1000 | | private: |
1001 | | bool _internal_has_voip() const; |
1002 | | public: |
1003 | | void clear_voip(); |
1004 | | const ::i18n::phonenumbers::PhoneNumberDesc& voip() const; |
1005 | | ::i18n::phonenumbers::PhoneNumberDesc* release_voip(); |
1006 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_voip(); |
1007 | | void set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip); |
1008 | | private: |
1009 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voip() const; |
1010 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_voip(); |
1011 | | public: |
1012 | | void unsafe_arena_set_allocated_voip( |
1013 | | ::i18n::phonenumbers::PhoneNumberDesc* voip); |
1014 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_voip(); |
1015 | | |
1016 | | // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21; |
1017 | | bool has_pager() const; |
1018 | | private: |
1019 | | bool _internal_has_pager() const; |
1020 | | public: |
1021 | | void clear_pager(); |
1022 | | const ::i18n::phonenumbers::PhoneNumberDesc& pager() const; |
1023 | | ::i18n::phonenumbers::PhoneNumberDesc* release_pager(); |
1024 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_pager(); |
1025 | | void set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager); |
1026 | | private: |
1027 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_pager() const; |
1028 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_pager(); |
1029 | | public: |
1030 | | void unsafe_arena_set_allocated_pager( |
1031 | | ::i18n::phonenumbers::PhoneNumberDesc* pager); |
1032 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_pager(); |
1033 | | |
1034 | | // optional .i18n.phonenumbers.PhoneNumberDesc no_international_dialling = 24; |
1035 | | bool has_no_international_dialling() const; |
1036 | | private: |
1037 | | bool _internal_has_no_international_dialling() const; |
1038 | | public: |
1039 | | void clear_no_international_dialling(); |
1040 | | const ::i18n::phonenumbers::PhoneNumberDesc& no_international_dialling() const; |
1041 | | ::i18n::phonenumbers::PhoneNumberDesc* release_no_international_dialling(); |
1042 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_no_international_dialling(); |
1043 | | void set_allocated_no_international_dialling(::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling); |
1044 | | private: |
1045 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_no_international_dialling() const; |
1046 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_no_international_dialling(); |
1047 | | public: |
1048 | | void unsafe_arena_set_allocated_no_international_dialling( |
1049 | | ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling); |
1050 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_no_international_dialling(); |
1051 | | |
1052 | | // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25; |
1053 | | bool has_uan() const; |
1054 | | private: |
1055 | | bool _internal_has_uan() const; |
1056 | | public: |
1057 | | void clear_uan(); |
1058 | | const ::i18n::phonenumbers::PhoneNumberDesc& uan() const; |
1059 | | ::i18n::phonenumbers::PhoneNumberDesc* release_uan(); |
1060 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_uan(); |
1061 | | void set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan); |
1062 | | private: |
1063 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_uan() const; |
1064 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_uan(); |
1065 | | public: |
1066 | | void unsafe_arena_set_allocated_uan( |
1067 | | ::i18n::phonenumbers::PhoneNumberDesc* uan); |
1068 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_uan(); |
1069 | | |
1070 | | // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27; |
1071 | | bool has_emergency() const; |
1072 | | private: |
1073 | | bool _internal_has_emergency() const; |
1074 | | public: |
1075 | | void clear_emergency(); |
1076 | | const ::i18n::phonenumbers::PhoneNumberDesc& emergency() const; |
1077 | | ::i18n::phonenumbers::PhoneNumberDesc* release_emergency(); |
1078 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_emergency(); |
1079 | | void set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency); |
1080 | | private: |
1081 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_emergency() const; |
1082 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_emergency(); |
1083 | | public: |
1084 | | void unsafe_arena_set_allocated_emergency( |
1085 | | ::i18n::phonenumbers::PhoneNumberDesc* emergency); |
1086 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_emergency(); |
1087 | | |
1088 | | // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28; |
1089 | | bool has_voicemail() const; |
1090 | | private: |
1091 | | bool _internal_has_voicemail() const; |
1092 | | public: |
1093 | | void clear_voicemail(); |
1094 | | const ::i18n::phonenumbers::PhoneNumberDesc& voicemail() const; |
1095 | | ::i18n::phonenumbers::PhoneNumberDesc* release_voicemail(); |
1096 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_voicemail(); |
1097 | | void set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail); |
1098 | | private: |
1099 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_voicemail() const; |
1100 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_voicemail(); |
1101 | | public: |
1102 | | void unsafe_arena_set_allocated_voicemail( |
1103 | | ::i18n::phonenumbers::PhoneNumberDesc* voicemail); |
1104 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_voicemail(); |
1105 | | |
1106 | | // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29; |
1107 | | bool has_short_code() const; |
1108 | | private: |
1109 | | bool _internal_has_short_code() const; |
1110 | | public: |
1111 | | void clear_short_code(); |
1112 | | const ::i18n::phonenumbers::PhoneNumberDesc& short_code() const; |
1113 | | ::i18n::phonenumbers::PhoneNumberDesc* release_short_code(); |
1114 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_short_code(); |
1115 | | void set_allocated_short_code(::i18n::phonenumbers::PhoneNumberDesc* short_code); |
1116 | | private: |
1117 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_short_code() const; |
1118 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_short_code(); |
1119 | | public: |
1120 | | void unsafe_arena_set_allocated_short_code( |
1121 | | ::i18n::phonenumbers::PhoneNumberDesc* short_code); |
1122 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_short_code(); |
1123 | | |
1124 | | // optional .i18n.phonenumbers.PhoneNumberDesc standard_rate = 30; |
1125 | | bool has_standard_rate() const; |
1126 | | private: |
1127 | | bool _internal_has_standard_rate() const; |
1128 | | public: |
1129 | | void clear_standard_rate(); |
1130 | | const ::i18n::phonenumbers::PhoneNumberDesc& standard_rate() const; |
1131 | | ::i18n::phonenumbers::PhoneNumberDesc* release_standard_rate(); |
1132 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_standard_rate(); |
1133 | | void set_allocated_standard_rate(::i18n::phonenumbers::PhoneNumberDesc* standard_rate); |
1134 | | private: |
1135 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_standard_rate() const; |
1136 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_standard_rate(); |
1137 | | public: |
1138 | | void unsafe_arena_set_allocated_standard_rate( |
1139 | | ::i18n::phonenumbers::PhoneNumberDesc* standard_rate); |
1140 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_standard_rate(); |
1141 | | |
1142 | | // optional .i18n.phonenumbers.PhoneNumberDesc carrier_specific = 31; |
1143 | | bool has_carrier_specific() const; |
1144 | | private: |
1145 | | bool _internal_has_carrier_specific() const; |
1146 | | public: |
1147 | | void clear_carrier_specific(); |
1148 | | const ::i18n::phonenumbers::PhoneNumberDesc& carrier_specific() const; |
1149 | | ::i18n::phonenumbers::PhoneNumberDesc* release_carrier_specific(); |
1150 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_carrier_specific(); |
1151 | | void set_allocated_carrier_specific(::i18n::phonenumbers::PhoneNumberDesc* carrier_specific); |
1152 | | private: |
1153 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_carrier_specific() const; |
1154 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_carrier_specific(); |
1155 | | public: |
1156 | | void unsafe_arena_set_allocated_carrier_specific( |
1157 | | ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific); |
1158 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_carrier_specific(); |
1159 | | |
1160 | | // optional .i18n.phonenumbers.PhoneNumberDesc sms_services = 33; |
1161 | | bool has_sms_services() const; |
1162 | | private: |
1163 | | bool _internal_has_sms_services() const; |
1164 | | public: |
1165 | | void clear_sms_services(); |
1166 | | const ::i18n::phonenumbers::PhoneNumberDesc& sms_services() const; |
1167 | | ::i18n::phonenumbers::PhoneNumberDesc* release_sms_services(); |
1168 | | ::i18n::phonenumbers::PhoneNumberDesc* mutable_sms_services(); |
1169 | | void set_allocated_sms_services(::i18n::phonenumbers::PhoneNumberDesc* sms_services); |
1170 | | private: |
1171 | | const ::i18n::phonenumbers::PhoneNumberDesc& _internal_sms_services() const; |
1172 | | ::i18n::phonenumbers::PhoneNumberDesc* _internal_mutable_sms_services(); |
1173 | | public: |
1174 | | void unsafe_arena_set_allocated_sms_services( |
1175 | | ::i18n::phonenumbers::PhoneNumberDesc* sms_services); |
1176 | | ::i18n::phonenumbers::PhoneNumberDesc* unsafe_arena_release_sms_services(); |
1177 | | |
1178 | | // optional int32 country_code = 10; |
1179 | | bool has_country_code() const; |
1180 | | private: |
1181 | | bool _internal_has_country_code() const; |
1182 | | public: |
1183 | | void clear_country_code(); |
1184 | | ::PROTOBUF_NAMESPACE_ID::int32 country_code() const; |
1185 | | void set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value); |
1186 | | private: |
1187 | | ::PROTOBUF_NAMESPACE_ID::int32 _internal_country_code() const; |
1188 | | void _internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value); |
1189 | | public: |
1190 | | |
1191 | | // optional bool same_mobile_and_fixed_line_pattern = 18 [default = false]; |
1192 | | bool has_same_mobile_and_fixed_line_pattern() const; |
1193 | | private: |
1194 | | bool _internal_has_same_mobile_and_fixed_line_pattern() const; |
1195 | | public: |
1196 | | void clear_same_mobile_and_fixed_line_pattern(); |
1197 | | bool same_mobile_and_fixed_line_pattern() const; |
1198 | | void set_same_mobile_and_fixed_line_pattern(bool value); |
1199 | | private: |
1200 | | bool _internal_same_mobile_and_fixed_line_pattern() const; |
1201 | | void _internal_set_same_mobile_and_fixed_line_pattern(bool value); |
1202 | | public: |
1203 | | |
1204 | | // optional bool main_country_for_code = 22 [default = false]; |
1205 | | bool has_main_country_for_code() const; |
1206 | | private: |
1207 | | bool _internal_has_main_country_for_code() const; |
1208 | | public: |
1209 | | void clear_main_country_for_code(); |
1210 | | bool main_country_for_code() const; |
1211 | | void set_main_country_for_code(bool value); |
1212 | | private: |
1213 | | bool _internal_main_country_for_code() const; |
1214 | | void _internal_set_main_country_for_code(bool value); |
1215 | | public: |
1216 | | |
1217 | | // optional bool mobile_number_portable_region = 32 [default = false]; |
1218 | | bool has_mobile_number_portable_region() const; |
1219 | | private: |
1220 | | bool _internal_has_mobile_number_portable_region() const; |
1221 | | public: |
1222 | | void clear_mobile_number_portable_region(); |
1223 | | bool mobile_number_portable_region() const; |
1224 | | void set_mobile_number_portable_region(bool value); |
1225 | | private: |
1226 | | bool _internal_mobile_number_portable_region() const; |
1227 | | void _internal_set_mobile_number_portable_region(bool value); |
1228 | | public: |
1229 | | |
1230 | | // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadata) |
1231 | | private: |
1232 | | class _Internal; |
1233 | | |
1234 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1235 | | typedef void InternalArenaConstructable_; |
1236 | | typedef void DestructorSkippable_; |
1237 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
1238 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1239 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > number_format_; |
1240 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat > intl_number_format_; |
1241 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; |
1242 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr international_prefix_; |
1243 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_; |
1244 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr preferred_extn_prefix_; |
1245 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_for_parsing_; |
1246 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr national_prefix_transform_rule_; |
1247 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr preferred_international_prefix_; |
1248 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_digits_; |
1249 | | ::i18n::phonenumbers::PhoneNumberDesc* general_desc_; |
1250 | | ::i18n::phonenumbers::PhoneNumberDesc* fixed_line_; |
1251 | | ::i18n::phonenumbers::PhoneNumberDesc* mobile_; |
1252 | | ::i18n::phonenumbers::PhoneNumberDesc* toll_free_; |
1253 | | ::i18n::phonenumbers::PhoneNumberDesc* premium_rate_; |
1254 | | ::i18n::phonenumbers::PhoneNumberDesc* shared_cost_; |
1255 | | ::i18n::phonenumbers::PhoneNumberDesc* personal_number_; |
1256 | | ::i18n::phonenumbers::PhoneNumberDesc* voip_; |
1257 | | ::i18n::phonenumbers::PhoneNumberDesc* pager_; |
1258 | | ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling_; |
1259 | | ::i18n::phonenumbers::PhoneNumberDesc* uan_; |
1260 | | ::i18n::phonenumbers::PhoneNumberDesc* emergency_; |
1261 | | ::i18n::phonenumbers::PhoneNumberDesc* voicemail_; |
1262 | | ::i18n::phonenumbers::PhoneNumberDesc* short_code_; |
1263 | | ::i18n::phonenumbers::PhoneNumberDesc* standard_rate_; |
1264 | | ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific_; |
1265 | | ::i18n::phonenumbers::PhoneNumberDesc* sms_services_; |
1266 | | ::PROTOBUF_NAMESPACE_ID::int32 country_code_; |
1267 | | bool same_mobile_and_fixed_line_pattern_; |
1268 | | bool main_country_for_code_; |
1269 | | bool mobile_number_portable_region_; |
1270 | | friend struct ::TableStruct_phonemetadata_2eproto; |
1271 | | }; |
1272 | | // ------------------------------------------------------------------- |
1273 | | |
1274 | | class PhoneMetadataCollection PROTOBUF_FINAL : |
1275 | | public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:i18n.phonenumbers.PhoneMetadataCollection) */ { |
1276 | | public: |
1277 | 3.12k | inline PhoneMetadataCollection() : PhoneMetadataCollection(nullptr) {} |
1278 | | virtual ~PhoneMetadataCollection(); |
1279 | | |
1280 | | PhoneMetadataCollection(const PhoneMetadataCollection& from); |
1281 | | PhoneMetadataCollection(PhoneMetadataCollection&& from) noexcept |
1282 | 0 | : PhoneMetadataCollection() { |
1283 | 0 | *this = ::std::move(from); |
1284 | 0 | } |
1285 | | |
1286 | 0 | inline PhoneMetadataCollection& operator=(const PhoneMetadataCollection& from) { |
1287 | 0 | CopyFrom(from); |
1288 | 0 | return *this; |
1289 | 0 | } |
1290 | 0 | inline PhoneMetadataCollection& operator=(PhoneMetadataCollection&& from) noexcept { |
1291 | 0 | if (GetArena() == from.GetArena()) { |
1292 | 0 | if (this != &from) InternalSwap(&from); |
1293 | 0 | } else { |
1294 | 0 | CopyFrom(from); |
1295 | 0 | } |
1296 | 0 | return *this; |
1297 | 0 | } |
1298 | | |
1299 | 0 | inline const std::string& unknown_fields() const { |
1300 | 0 | return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); |
1301 | 0 | } |
1302 | 0 | inline std::string* mutable_unknown_fields() { |
1303 | 0 | return _internal_metadata_.mutable_unknown_fields<std::string>(); |
1304 | 0 | } |
1305 | | |
1306 | | static const PhoneMetadataCollection& default_instance(); |
1307 | | |
1308 | 0 | static inline const PhoneMetadataCollection* internal_default_instance() { |
1309 | 0 | return reinterpret_cast<const PhoneMetadataCollection*>( |
1310 | 0 | &_PhoneMetadataCollection_default_instance_); |
1311 | 0 | } |
1312 | | static constexpr int kIndexInFileMessages = |
1313 | | 3; |
1314 | | |
1315 | 0 | friend void swap(PhoneMetadataCollection& a, PhoneMetadataCollection& b) { |
1316 | 0 | a.Swap(&b); |
1317 | 0 | } |
1318 | 0 | inline void Swap(PhoneMetadataCollection* other) { |
1319 | 0 | if (other == this) return; |
1320 | 0 | if (GetArena() == other->GetArena()) { |
1321 | 0 | InternalSwap(other); |
1322 | 0 | } else { |
1323 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1324 | 0 | } |
1325 | 0 | } |
1326 | 0 | void UnsafeArenaSwap(PhoneMetadataCollection* other) { |
1327 | 0 | if (other == this) return; |
1328 | 0 | GOOGLE_DCHECK(GetArena() == other->GetArena()); |
1329 | 0 | InternalSwap(other); |
1330 | 0 | } |
1331 | | |
1332 | | // implements Message ---------------------------------------------- |
1333 | | |
1334 | 0 | inline PhoneMetadataCollection* New() const final { |
1335 | 0 | return CreateMaybeMessage<PhoneMetadataCollection>(nullptr); |
1336 | 0 | } |
1337 | | |
1338 | 0 | PhoneMetadataCollection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1339 | 0 | return CreateMaybeMessage<PhoneMetadataCollection>(arena); |
1340 | 0 | } |
1341 | | void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) |
1342 | | final; |
1343 | | void CopyFrom(const PhoneMetadataCollection& from); |
1344 | | void MergeFrom(const PhoneMetadataCollection& from); |
1345 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1346 | | bool IsInitialized() const final; |
1347 | | |
1348 | | size_t ByteSizeLong() const final; |
1349 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1350 | | ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( |
1351 | | ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1352 | | void DiscardUnknownFields(); |
1353 | 0 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1354 | | |
1355 | | private: |
1356 | | inline void SharedCtor(); |
1357 | | inline void SharedDtor(); |
1358 | | void SetCachedSize(int size) const; |
1359 | | void InternalSwap(PhoneMetadataCollection* other); |
1360 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1361 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1362 | 0 | return "i18n.phonenumbers.PhoneMetadataCollection"; |
1363 | 0 | } |
1364 | | protected: |
1365 | | explicit PhoneMetadataCollection(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1366 | | private: |
1367 | | static void ArenaDtor(void* object); |
1368 | | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1369 | | public: |
1370 | | |
1371 | | std::string GetTypeName() const final; |
1372 | | |
1373 | | // nested types ---------------------------------------------------- |
1374 | | |
1375 | | // accessors ------------------------------------------------------- |
1376 | | |
1377 | | enum : int { |
1378 | | kMetadataFieldNumber = 1, |
1379 | | }; |
1380 | | // repeated .i18n.phonenumbers.PhoneMetadata metadata = 1; |
1381 | | int metadata_size() const; |
1382 | | private: |
1383 | | int _internal_metadata_size() const; |
1384 | | public: |
1385 | | void clear_metadata(); |
1386 | | ::i18n::phonenumbers::PhoneMetadata* mutable_metadata(int index); |
1387 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >* |
1388 | | mutable_metadata(); |
1389 | | private: |
1390 | | const ::i18n::phonenumbers::PhoneMetadata& _internal_metadata(int index) const; |
1391 | | ::i18n::phonenumbers::PhoneMetadata* _internal_add_metadata(); |
1392 | | public: |
1393 | | const ::i18n::phonenumbers::PhoneMetadata& metadata(int index) const; |
1394 | | ::i18n::phonenumbers::PhoneMetadata* add_metadata(); |
1395 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >& |
1396 | | metadata() const; |
1397 | | |
1398 | | // @@protoc_insertion_point(class_scope:i18n.phonenumbers.PhoneMetadataCollection) |
1399 | | private: |
1400 | | class _Internal; |
1401 | | |
1402 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1403 | | typedef void InternalArenaConstructable_; |
1404 | | typedef void DestructorSkippable_; |
1405 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata > metadata_; |
1406 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1407 | | friend struct ::TableStruct_phonemetadata_2eproto; |
1408 | | }; |
1409 | | // =================================================================== |
1410 | | |
1411 | | |
1412 | | // =================================================================== |
1413 | | |
1414 | | #ifdef __GNUC__ |
1415 | | #pragma GCC diagnostic push |
1416 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1417 | | #endif // __GNUC__ |
1418 | | // NumberFormat |
1419 | | |
1420 | | // required string pattern = 1; |
1421 | 0 | inline bool NumberFormat::_internal_has_pattern() const { |
1422 | 0 | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
1423 | 0 | return value; |
1424 | 0 | } |
1425 | 0 | inline bool NumberFormat::has_pattern() const { |
1426 | 0 | return _internal_has_pattern(); |
1427 | 0 | } |
1428 | 0 | inline void NumberFormat::clear_pattern() { |
1429 | 0 | pattern_.ClearToEmpty(); |
1430 | 0 | _has_bits_[0] &= ~0x00000001u; |
1431 | 0 | } |
1432 | 158k | inline const std::string& NumberFormat::pattern() const { |
1433 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.pattern) |
1434 | 158k | return _internal_pattern(); |
1435 | 158k | } |
1436 | 8.83k | inline void NumberFormat::set_pattern(const std::string& value) { |
1437 | 8.83k | _internal_set_pattern(value); |
1438 | | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.pattern) |
1439 | 8.83k | } |
1440 | 0 | inline std::string* NumberFormat::mutable_pattern() { |
1441 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.pattern) |
1442 | 0 | return _internal_mutable_pattern(); |
1443 | 0 | } |
1444 | 524k | inline const std::string& NumberFormat::_internal_pattern() const { |
1445 | 524k | return pattern_.Get(); |
1446 | 524k | } |
1447 | 375k | inline void NumberFormat::_internal_set_pattern(const std::string& value) { |
1448 | 375k | _has_bits_[0] |= 0x00000001u; |
1449 | 375k | pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
1450 | 375k | } |
1451 | 0 | inline void NumberFormat::set_pattern(std::string&& value) { |
1452 | 0 | _has_bits_[0] |= 0x00000001u; |
1453 | 0 | pattern_.Set( |
1454 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
1455 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.pattern) |
1456 | 0 | } |
1457 | 187 | inline void NumberFormat::set_pattern(const char* value) { |
1458 | 187 | GOOGLE_DCHECK(value != nullptr); |
1459 | 187 | _has_bits_[0] |= 0x00000001u; |
1460 | 187 | pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
1461 | | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.pattern) |
1462 | 187 | } |
1463 | | inline void NumberFormat::set_pattern(const char* value, |
1464 | 0 | size_t size) { |
1465 | 0 | _has_bits_[0] |= 0x00000001u; |
1466 | 0 | pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
1467 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
1468 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.pattern) |
1469 | 0 | } |
1470 | 4.01k | inline std::string* NumberFormat::_internal_mutable_pattern() { |
1471 | 4.01k | _has_bits_[0] |= 0x00000001u; |
1472 | 4.01k | return pattern_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
1473 | 4.01k | } |
1474 | 0 | inline std::string* NumberFormat::release_pattern() { |
1475 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.pattern) |
1476 | 0 | if (!_internal_has_pattern()) { |
1477 | 0 | return nullptr; |
1478 | 0 | } |
1479 | 0 | _has_bits_[0] &= ~0x00000001u; |
1480 | 0 | return pattern_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
1481 | 0 | } |
1482 | 0 | inline void NumberFormat::set_allocated_pattern(std::string* pattern) { |
1483 | 0 | if (pattern != nullptr) { |
1484 | 0 | _has_bits_[0] |= 0x00000001u; |
1485 | 0 | } else { |
1486 | 0 | _has_bits_[0] &= ~0x00000001u; |
1487 | 0 | } |
1488 | 0 | pattern_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pattern, |
1489 | 0 | GetArena()); |
1490 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.pattern) |
1491 | 0 | } |
1492 | | |
1493 | | // required string format = 2; |
1494 | 0 | inline bool NumberFormat::_internal_has_format() const { |
1495 | 0 | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
1496 | 0 | return value; |
1497 | 0 | } |
1498 | 0 | inline bool NumberFormat::has_format() const { |
1499 | 0 | return _internal_has_format(); |
1500 | 0 | } |
1501 | 0 | inline void NumberFormat::clear_format() { |
1502 | 0 | format_.ClearToEmpty(); |
1503 | 0 | _has_bits_[0] &= ~0x00000002u; |
1504 | 0 | } |
1505 | 63.0k | inline const std::string& NumberFormat::format() const { |
1506 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.format) |
1507 | 63.0k | return _internal_format(); |
1508 | 63.0k | } |
1509 | 8.83k | inline void NumberFormat::set_format(const std::string& value) { |
1510 | 8.83k | _internal_set_format(value); |
1511 | | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.format) |
1512 | 8.83k | } |
1513 | 0 | inline std::string* NumberFormat::mutable_format() { |
1514 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.format) |
1515 | 0 | return _internal_mutable_format(); |
1516 | 0 | } |
1517 | 429k | inline const std::string& NumberFormat::_internal_format() const { |
1518 | 429k | return format_.Get(); |
1519 | 429k | } |
1520 | 375k | inline void NumberFormat::_internal_set_format(const std::string& value) { |
1521 | 375k | _has_bits_[0] |= 0x00000002u; |
1522 | 375k | format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
1523 | 375k | } |
1524 | 0 | inline void NumberFormat::set_format(std::string&& value) { |
1525 | 0 | _has_bits_[0] |= 0x00000002u; |
1526 | 0 | format_.Set( |
1527 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
1528 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.format) |
1529 | 0 | } |
1530 | 187 | inline void NumberFormat::set_format(const char* value) { |
1531 | 187 | GOOGLE_DCHECK(value != nullptr); |
1532 | 187 | _has_bits_[0] |= 0x00000002u; |
1533 | 187 | format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
1534 | | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.format) |
1535 | 187 | } |
1536 | | inline void NumberFormat::set_format(const char* value, |
1537 | 0 | size_t size) { |
1538 | 0 | _has_bits_[0] |= 0x00000002u; |
1539 | 0 | format_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
1540 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
1541 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.format) |
1542 | 0 | } |
1543 | 4.01k | inline std::string* NumberFormat::_internal_mutable_format() { |
1544 | 4.01k | _has_bits_[0] |= 0x00000002u; |
1545 | 4.01k | return format_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
1546 | 4.01k | } |
1547 | 0 | inline std::string* NumberFormat::release_format() { |
1548 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.format) |
1549 | 0 | if (!_internal_has_format()) { |
1550 | 0 | return nullptr; |
1551 | 0 | } |
1552 | 0 | _has_bits_[0] &= ~0x00000002u; |
1553 | 0 | return format_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
1554 | 0 | } |
1555 | 0 | inline void NumberFormat::set_allocated_format(std::string* format) { |
1556 | 0 | if (format != nullptr) { |
1557 | 0 | _has_bits_[0] |= 0x00000002u; |
1558 | 0 | } else { |
1559 | 0 | _has_bits_[0] &= ~0x00000002u; |
1560 | 0 | } |
1561 | 0 | format_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), format, |
1562 | 0 | GetArena()); |
1563 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.format) |
1564 | 0 | } |
1565 | | |
1566 | | // repeated string leading_digits_pattern = 3; |
1567 | 500k | inline int NumberFormat::_internal_leading_digits_pattern_size() const { |
1568 | 500k | return leading_digits_pattern_.size(); |
1569 | 500k | } |
1570 | 500k | inline int NumberFormat::leading_digits_pattern_size() const { |
1571 | 500k | return _internal_leading_digits_pattern_size(); |
1572 | 500k | } |
1573 | 0 | inline void NumberFormat::clear_leading_digits_pattern() { |
1574 | 0 | leading_digits_pattern_.Clear(); |
1575 | 0 | } |
1576 | 0 | inline std::string* NumberFormat::add_leading_digits_pattern() { |
1577 | 0 | // @@protoc_insertion_point(field_add_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1578 | 0 | return _internal_add_leading_digits_pattern(); |
1579 | 0 | } |
1580 | 427k | inline const std::string& NumberFormat::_internal_leading_digits_pattern(int index) const { |
1581 | 427k | return leading_digits_pattern_.Get(index); |
1582 | 427k | } |
1583 | 427k | inline const std::string& NumberFormat::leading_digits_pattern(int index) const { |
1584 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1585 | 427k | return _internal_leading_digits_pattern(index); |
1586 | 427k | } |
1587 | 0 | inline std::string* NumberFormat::mutable_leading_digits_pattern(int index) { |
1588 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1589 | 0 | return leading_digits_pattern_.Mutable(index); |
1590 | 0 | } |
1591 | 0 | inline void NumberFormat::set_leading_digits_pattern(int index, const std::string& value) { |
1592 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1593 | 0 | leading_digits_pattern_.Mutable(index)->assign(value); |
1594 | 0 | } |
1595 | 0 | inline void NumberFormat::set_leading_digits_pattern(int index, std::string&& value) { |
1596 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1597 | 0 | leading_digits_pattern_.Mutable(index)->assign(std::move(value)); |
1598 | 0 | } |
1599 | 0 | inline void NumberFormat::set_leading_digits_pattern(int index, const char* value) { |
1600 | 0 | GOOGLE_DCHECK(value != nullptr); |
1601 | 0 | leading_digits_pattern_.Mutable(index)->assign(value); |
1602 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1603 | 0 | } |
1604 | 0 | inline void NumberFormat::set_leading_digits_pattern(int index, const char* value, size_t size) { |
1605 | 0 | leading_digits_pattern_.Mutable(index)->assign( |
1606 | 0 | reinterpret_cast<const char*>(value), size); |
1607 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1608 | 0 | } |
1609 | 4.62k | inline std::string* NumberFormat::_internal_add_leading_digits_pattern() { |
1610 | 4.62k | return leading_digits_pattern_.Add(); |
1611 | 4.62k | } |
1612 | 0 | inline void NumberFormat::add_leading_digits_pattern(const std::string& value) { |
1613 | 0 | leading_digits_pattern_.Add()->assign(value); |
1614 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1615 | 0 | } |
1616 | 0 | inline void NumberFormat::add_leading_digits_pattern(std::string&& value) { |
1617 | 0 | leading_digits_pattern_.Add(std::move(value)); |
1618 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1619 | 0 | } |
1620 | 0 | inline void NumberFormat::add_leading_digits_pattern(const char* value) { |
1621 | 0 | GOOGLE_DCHECK(value != nullptr); |
1622 | 0 | leading_digits_pattern_.Add()->assign(value); |
1623 | 0 | // @@protoc_insertion_point(field_add_char:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1624 | 0 | } |
1625 | 0 | inline void NumberFormat::add_leading_digits_pattern(const char* value, size_t size) { |
1626 | 0 | leading_digits_pattern_.Add()->assign(reinterpret_cast<const char*>(value), size); |
1627 | 0 | // @@protoc_insertion_point(field_add_pointer:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1628 | 0 | } |
1629 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
1630 | 33.0k | NumberFormat::leading_digits_pattern() const { |
1631 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1632 | 33.0k | return leading_digits_pattern_; |
1633 | 33.0k | } |
1634 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
1635 | 0 | NumberFormat::mutable_leading_digits_pattern() { |
1636 | 0 | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.NumberFormat.leading_digits_pattern) |
1637 | 0 | return &leading_digits_pattern_; |
1638 | 0 | } |
1639 | | |
1640 | | // optional string national_prefix_formatting_rule = 4; |
1641 | 0 | inline bool NumberFormat::_internal_has_national_prefix_formatting_rule() const { |
1642 | 0 | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
1643 | 0 | return value; |
1644 | 0 | } |
1645 | 0 | inline bool NumberFormat::has_national_prefix_formatting_rule() const { |
1646 | 0 | return _internal_has_national_prefix_formatting_rule(); |
1647 | 0 | } |
1648 | 123 | inline void NumberFormat::clear_national_prefix_formatting_rule() { |
1649 | 123 | national_prefix_formatting_rule_.ClearToEmpty(); |
1650 | 123 | _has_bits_[0] &= ~0x00000004u; |
1651 | 123 | } |
1652 | 51.6k | inline const std::string& NumberFormat::national_prefix_formatting_rule() const { |
1653 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1654 | 51.6k | return _internal_national_prefix_formatting_rule(); |
1655 | 51.6k | } |
1656 | 0 | inline void NumberFormat::set_national_prefix_formatting_rule(const std::string& value) { |
1657 | 0 | _internal_set_national_prefix_formatting_rule(value); |
1658 | | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1659 | 0 | } |
1660 | 0 | inline std::string* NumberFormat::mutable_national_prefix_formatting_rule() { |
1661 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1662 | 0 | return _internal_mutable_national_prefix_formatting_rule(); |
1663 | 0 | } |
1664 | 232k | inline const std::string& NumberFormat::_internal_national_prefix_formatting_rule() const { |
1665 | 232k | return national_prefix_formatting_rule_.Get(); |
1666 | 232k | } |
1667 | 180k | inline void NumberFormat::_internal_set_national_prefix_formatting_rule(const std::string& value) { |
1668 | 180k | _has_bits_[0] |= 0x00000004u; |
1669 | 180k | national_prefix_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
1670 | 180k | } |
1671 | 0 | inline void NumberFormat::set_national_prefix_formatting_rule(std::string&& value) { |
1672 | 0 | _has_bits_[0] |= 0x00000004u; |
1673 | 0 | national_prefix_formatting_rule_.Set( |
1674 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
1675 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1676 | 0 | } |
1677 | 0 | inline void NumberFormat::set_national_prefix_formatting_rule(const char* value) { |
1678 | 0 | GOOGLE_DCHECK(value != nullptr); |
1679 | 0 | _has_bits_[0] |= 0x00000004u; |
1680 | 0 | national_prefix_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
1681 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1682 | 0 | } |
1683 | | inline void NumberFormat::set_national_prefix_formatting_rule(const char* value, |
1684 | 0 | size_t size) { |
1685 | 0 | _has_bits_[0] |= 0x00000004u; |
1686 | 0 | national_prefix_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
1687 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
1688 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1689 | 0 | } |
1690 | 2.16k | inline std::string* NumberFormat::_internal_mutable_national_prefix_formatting_rule() { |
1691 | 2.16k | _has_bits_[0] |= 0x00000004u; |
1692 | 2.16k | return national_prefix_formatting_rule_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
1693 | 2.16k | } |
1694 | 0 | inline std::string* NumberFormat::release_national_prefix_formatting_rule() { |
1695 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1696 | 0 | if (!_internal_has_national_prefix_formatting_rule()) { |
1697 | 0 | return nullptr; |
1698 | 0 | } |
1699 | 0 | _has_bits_[0] &= ~0x00000004u; |
1700 | 0 | return national_prefix_formatting_rule_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
1701 | 0 | } |
1702 | 0 | inline void NumberFormat::set_allocated_national_prefix_formatting_rule(std::string* national_prefix_formatting_rule) { |
1703 | 0 | if (national_prefix_formatting_rule != nullptr) { |
1704 | 0 | _has_bits_[0] |= 0x00000004u; |
1705 | 0 | } else { |
1706 | 0 | _has_bits_[0] &= ~0x00000004u; |
1707 | 0 | } |
1708 | 0 | national_prefix_formatting_rule_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_prefix_formatting_rule, |
1709 | 0 | GetArena()); |
1710 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.national_prefix_formatting_rule) |
1711 | 0 | } |
1712 | | |
1713 | | // optional bool national_prefix_optional_when_formatting = 6 [default = false]; |
1714 | 0 | inline bool NumberFormat::_internal_has_national_prefix_optional_when_formatting() const { |
1715 | 0 | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
1716 | 0 | return value; |
1717 | 0 | } |
1718 | 0 | inline bool NumberFormat::has_national_prefix_optional_when_formatting() const { |
1719 | 0 | return _internal_has_national_prefix_optional_when_formatting(); |
1720 | 0 | } |
1721 | 0 | inline void NumberFormat::clear_national_prefix_optional_when_formatting() { |
1722 | 0 | national_prefix_optional_when_formatting_ = false; |
1723 | 0 | _has_bits_[0] &= ~0x00000010u; |
1724 | 0 | } |
1725 | 4.67k | inline bool NumberFormat::_internal_national_prefix_optional_when_formatting() const { |
1726 | 4.67k | return national_prefix_optional_when_formatting_; |
1727 | 4.67k | } |
1728 | 4.67k | inline bool NumberFormat::national_prefix_optional_when_formatting() const { |
1729 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting) |
1730 | 4.67k | return _internal_national_prefix_optional_when_formatting(); |
1731 | 4.67k | } |
1732 | 0 | inline void NumberFormat::_internal_set_national_prefix_optional_when_formatting(bool value) { |
1733 | 0 | _has_bits_[0] |= 0x00000010u; |
1734 | 0 | national_prefix_optional_when_formatting_ = value; |
1735 | 0 | } |
1736 | 0 | inline void NumberFormat::set_national_prefix_optional_when_formatting(bool value) { |
1737 | 0 | _internal_set_national_prefix_optional_when_formatting(value); |
1738 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.national_prefix_optional_when_formatting) |
1739 | 0 | } |
1740 | | |
1741 | | // optional string domestic_carrier_code_formatting_rule = 5; |
1742 | 2.25k | inline bool NumberFormat::_internal_has_domestic_carrier_code_formatting_rule() const { |
1743 | 2.25k | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
1744 | 2.25k | return value; |
1745 | 2.25k | } |
1746 | 2.25k | inline bool NumberFormat::has_domestic_carrier_code_formatting_rule() const { |
1747 | 2.25k | return _internal_has_domestic_carrier_code_formatting_rule(); |
1748 | 2.25k | } |
1749 | 0 | inline void NumberFormat::clear_domestic_carrier_code_formatting_rule() { |
1750 | 0 | domestic_carrier_code_formatting_rule_.ClearToEmpty(); |
1751 | 0 | _has_bits_[0] &= ~0x00000008u; |
1752 | 0 | } |
1753 | 1.40k | inline const std::string& NumberFormat::domestic_carrier_code_formatting_rule() const { |
1754 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1755 | 1.40k | return _internal_domestic_carrier_code_formatting_rule(); |
1756 | 1.40k | } |
1757 | 0 | inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const std::string& value) { |
1758 | 0 | _internal_set_domestic_carrier_code_formatting_rule(value); |
1759 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1760 | 0 | } |
1761 | 0 | inline std::string* NumberFormat::mutable_domestic_carrier_code_formatting_rule() { |
1762 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1763 | 0 | return _internal_mutable_domestic_carrier_code_formatting_rule(); |
1764 | 0 | } |
1765 | 101k | inline const std::string& NumberFormat::_internal_domestic_carrier_code_formatting_rule() const { |
1766 | 101k | return domestic_carrier_code_formatting_rule_.Get(); |
1767 | 101k | } |
1768 | 100k | inline void NumberFormat::_internal_set_domestic_carrier_code_formatting_rule(const std::string& value) { |
1769 | 100k | _has_bits_[0] |= 0x00000008u; |
1770 | 100k | domestic_carrier_code_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
1771 | 100k | } |
1772 | 0 | inline void NumberFormat::set_domestic_carrier_code_formatting_rule(std::string&& value) { |
1773 | 0 | _has_bits_[0] |= 0x00000008u; |
1774 | 0 | domestic_carrier_code_formatting_rule_.Set( |
1775 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
1776 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1777 | 0 | } |
1778 | 0 | inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value) { |
1779 | 0 | GOOGLE_DCHECK(value != nullptr); |
1780 | 0 | _has_bits_[0] |= 0x00000008u; |
1781 | 0 | domestic_carrier_code_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
1782 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1783 | 0 | } |
1784 | | inline void NumberFormat::set_domestic_carrier_code_formatting_rule(const char* value, |
1785 | 0 | size_t size) { |
1786 | 0 | _has_bits_[0] |= 0x00000008u; |
1787 | 0 | domestic_carrier_code_formatting_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
1788 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
1789 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1790 | 0 | } |
1791 | 228 | inline std::string* NumberFormat::_internal_mutable_domestic_carrier_code_formatting_rule() { |
1792 | 228 | _has_bits_[0] |= 0x00000008u; |
1793 | 228 | return domestic_carrier_code_formatting_rule_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
1794 | 228 | } |
1795 | 0 | inline std::string* NumberFormat::release_domestic_carrier_code_formatting_rule() { |
1796 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1797 | 0 | if (!_internal_has_domestic_carrier_code_formatting_rule()) { |
1798 | 0 | return nullptr; |
1799 | 0 | } |
1800 | 0 | _has_bits_[0] &= ~0x00000008u; |
1801 | 0 | return domestic_carrier_code_formatting_rule_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
1802 | 0 | } |
1803 | 0 | inline void NumberFormat::set_allocated_domestic_carrier_code_formatting_rule(std::string* domestic_carrier_code_formatting_rule) { |
1804 | 0 | if (domestic_carrier_code_formatting_rule != nullptr) { |
1805 | 0 | _has_bits_[0] |= 0x00000008u; |
1806 | 0 | } else { |
1807 | 0 | _has_bits_[0] &= ~0x00000008u; |
1808 | 0 | } |
1809 | 0 | domestic_carrier_code_formatting_rule_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), domestic_carrier_code_formatting_rule, |
1810 | 0 | GetArena()); |
1811 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.NumberFormat.domestic_carrier_code_formatting_rule) |
1812 | 0 | } |
1813 | | |
1814 | | // ------------------------------------------------------------------- |
1815 | | |
1816 | | // PhoneNumberDesc |
1817 | | |
1818 | | // optional string national_number_pattern = 2; |
1819 | 12.3k | inline bool PhoneNumberDesc::_internal_has_national_number_pattern() const { |
1820 | 12.3k | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
1821 | 12.3k | return value; |
1822 | 12.3k | } |
1823 | 0 | inline bool PhoneNumberDesc::has_national_number_pattern() const { |
1824 | 0 | return _internal_has_national_number_pattern(); |
1825 | 0 | } |
1826 | 0 | inline void PhoneNumberDesc::clear_national_number_pattern() { |
1827 | 0 | national_number_pattern_.ClearToEmpty(); |
1828 | 0 | _has_bits_[0] &= ~0x00000001u; |
1829 | 0 | } |
1830 | 266k | inline const std::string& PhoneNumberDesc::national_number_pattern() const { |
1831 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1832 | 266k | return _internal_national_number_pattern(); |
1833 | 266k | } |
1834 | 0 | inline void PhoneNumberDesc::set_national_number_pattern(const std::string& value) { |
1835 | 0 | _internal_set_national_number_pattern(value); |
1836 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1837 | 0 | } |
1838 | 0 | inline std::string* PhoneNumberDesc::mutable_national_number_pattern() { |
1839 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1840 | 0 | return _internal_mutable_national_number_pattern(); |
1841 | 0 | } |
1842 | 272k | inline const std::string& PhoneNumberDesc::_internal_national_number_pattern() const { |
1843 | 272k | return national_number_pattern_.Get(); |
1844 | 272k | } |
1845 | 0 | inline void PhoneNumberDesc::_internal_set_national_number_pattern(const std::string& value) { |
1846 | 0 | _has_bits_[0] |= 0x00000001u; |
1847 | 0 | national_number_pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
1848 | 0 | } |
1849 | 0 | inline void PhoneNumberDesc::set_national_number_pattern(std::string&& value) { |
1850 | 0 | _has_bits_[0] |= 0x00000001u; |
1851 | 0 | national_number_pattern_.Set( |
1852 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
1853 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1854 | 0 | } |
1855 | 0 | inline void PhoneNumberDesc::set_national_number_pattern(const char* value) { |
1856 | 0 | GOOGLE_DCHECK(value != nullptr); |
1857 | 0 | _has_bits_[0] |= 0x00000001u; |
1858 | 0 | national_number_pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
1859 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1860 | 0 | } |
1861 | | inline void PhoneNumberDesc::set_national_number_pattern(const char* value, |
1862 | 0 | size_t size) { |
1863 | 0 | _has_bits_[0] |= 0x00000001u; |
1864 | 0 | national_number_pattern_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
1865 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
1866 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1867 | 0 | } |
1868 | 3.74M | inline std::string* PhoneNumberDesc::_internal_mutable_national_number_pattern() { |
1869 | 3.74M | _has_bits_[0] |= 0x00000001u; |
1870 | 3.74M | return national_number_pattern_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
1871 | 3.74M | } |
1872 | 0 | inline std::string* PhoneNumberDesc::release_national_number_pattern() { |
1873 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1874 | 0 | if (!_internal_has_national_number_pattern()) { |
1875 | 0 | return nullptr; |
1876 | 0 | } |
1877 | 0 | _has_bits_[0] &= ~0x00000001u; |
1878 | 0 | return national_number_pattern_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
1879 | 0 | } |
1880 | 0 | inline void PhoneNumberDesc::set_allocated_national_number_pattern(std::string* national_number_pattern) { |
1881 | 0 | if (national_number_pattern != nullptr) { |
1882 | 0 | _has_bits_[0] |= 0x00000001u; |
1883 | 0 | } else { |
1884 | 0 | _has_bits_[0] &= ~0x00000001u; |
1885 | 0 | } |
1886 | 0 | national_number_pattern_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_number_pattern, |
1887 | 0 | GetArena()); |
1888 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.national_number_pattern) |
1889 | 0 | } |
1890 | | |
1891 | | // repeated int32 possible_length = 9; |
1892 | 603k | inline int PhoneNumberDesc::_internal_possible_length_size() const { |
1893 | 603k | return possible_length_.size(); |
1894 | 603k | } |
1895 | 603k | inline int PhoneNumberDesc::possible_length_size() const { |
1896 | 603k | return _internal_possible_length_size(); |
1897 | 603k | } |
1898 | 0 | inline void PhoneNumberDesc::clear_possible_length() { |
1899 | 0 | possible_length_.Clear(); |
1900 | 0 | } |
1901 | 256 | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::_internal_possible_length(int index) const { |
1902 | 256 | return possible_length_.Get(index); |
1903 | 256 | } |
1904 | 256 | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::possible_length(int index) const { |
1905 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length) |
1906 | 256 | return _internal_possible_length(index); |
1907 | 256 | } |
1908 | 0 | inline void PhoneNumberDesc::set_possible_length(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
1909 | 0 | possible_length_.Set(index, value); |
1910 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length) |
1911 | 0 | } |
1912 | 5.94M | inline void PhoneNumberDesc::_internal_add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1913 | 5.94M | possible_length_.Add(value); |
1914 | 5.94M | } |
1915 | 0 | inline void PhoneNumberDesc::add_possible_length(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1916 | 0 | _internal_add_possible_length(value); |
1917 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length) |
1918 | 0 | } |
1919 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1920 | 1.42M | PhoneNumberDesc::_internal_possible_length() const { |
1921 | 1.42M | return possible_length_; |
1922 | 1.42M | } |
1923 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1924 | 1.42M | PhoneNumberDesc::possible_length() const { |
1925 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length) |
1926 | 1.42M | return _internal_possible_length(); |
1927 | 1.42M | } |
1928 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1929 | 0 | PhoneNumberDesc::_internal_mutable_possible_length() { |
1930 | 0 | return &possible_length_; |
1931 | 0 | } |
1932 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1933 | 0 | PhoneNumberDesc::mutable_possible_length() { |
1934 | 0 | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length) |
1935 | 0 | return _internal_mutable_possible_length(); |
1936 | 0 | } |
1937 | | |
1938 | | // repeated int32 possible_length_local_only = 10; |
1939 | 0 | inline int PhoneNumberDesc::_internal_possible_length_local_only_size() const { |
1940 | 0 | return possible_length_local_only_.size(); |
1941 | 0 | } |
1942 | 0 | inline int PhoneNumberDesc::possible_length_local_only_size() const { |
1943 | 0 | return _internal_possible_length_local_only_size(); |
1944 | 0 | } |
1945 | 0 | inline void PhoneNumberDesc::clear_possible_length_local_only() { |
1946 | 0 | possible_length_local_only_.Clear(); |
1947 | 0 | } |
1948 | 0 | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::_internal_possible_length_local_only(int index) const { |
1949 | 0 | return possible_length_local_only_.Get(index); |
1950 | 0 | } |
1951 | 0 | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneNumberDesc::possible_length_local_only(int index) const { |
1952 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only) |
1953 | 0 | return _internal_possible_length_local_only(index); |
1954 | 0 | } |
1955 | 0 | inline void PhoneNumberDesc::set_possible_length_local_only(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
1956 | 0 | possible_length_local_only_.Set(index, value); |
1957 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only) |
1958 | 0 | } |
1959 | 1.40k | inline void PhoneNumberDesc::_internal_add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1960 | 1.40k | possible_length_local_only_.Add(value); |
1961 | 1.40k | } |
1962 | 0 | inline void PhoneNumberDesc::add_possible_length_local_only(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1963 | 0 | _internal_add_possible_length_local_only(value); |
1964 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only) |
1965 | 0 | } |
1966 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1967 | 112k | PhoneNumberDesc::_internal_possible_length_local_only() const { |
1968 | 112k | return possible_length_local_only_; |
1969 | 112k | } |
1970 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1971 | 112k | PhoneNumberDesc::possible_length_local_only() const { |
1972 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only) |
1973 | 112k | return _internal_possible_length_local_only(); |
1974 | 112k | } |
1975 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1976 | 0 | PhoneNumberDesc::_internal_mutable_possible_length_local_only() { |
1977 | 0 | return &possible_length_local_only_; |
1978 | 0 | } |
1979 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1980 | 0 | PhoneNumberDesc::mutable_possible_length_local_only() { |
1981 | 0 | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneNumberDesc.possible_length_local_only) |
1982 | 0 | return _internal_mutable_possible_length_local_only(); |
1983 | 0 | } |
1984 | | |
1985 | | // optional string example_number = 6; |
1986 | 187k | inline bool PhoneNumberDesc::_internal_has_example_number() const { |
1987 | 187k | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
1988 | 187k | return value; |
1989 | 187k | } |
1990 | 175k | inline bool PhoneNumberDesc::has_example_number() const { |
1991 | 175k | return _internal_has_example_number(); |
1992 | 175k | } |
1993 | 0 | inline void PhoneNumberDesc::clear_example_number() { |
1994 | 0 | example_number_.ClearToEmpty(); |
1995 | 0 | _has_bits_[0] &= ~0x00000002u; |
1996 | 0 | } |
1997 | 21.3k | inline const std::string& PhoneNumberDesc::example_number() const { |
1998 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneNumberDesc.example_number) |
1999 | 21.3k | return _internal_example_number(); |
2000 | 21.3k | } |
2001 | 0 | inline void PhoneNumberDesc::set_example_number(const std::string& value) { |
2002 | 0 | _internal_set_example_number(value); |
2003 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2004 | 0 | } |
2005 | 0 | inline std::string* PhoneNumberDesc::mutable_example_number() { |
2006 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2007 | 0 | return _internal_mutable_example_number(); |
2008 | 0 | } |
2009 | 25.9k | inline const std::string& PhoneNumberDesc::_internal_example_number() const { |
2010 | 25.9k | return example_number_.Get(); |
2011 | 25.9k | } |
2012 | 0 | inline void PhoneNumberDesc::_internal_set_example_number(const std::string& value) { |
2013 | 0 | _has_bits_[0] |= 0x00000002u; |
2014 | 0 | example_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
2015 | 0 | } |
2016 | 0 | inline void PhoneNumberDesc::set_example_number(std::string&& value) { |
2017 | 0 | _has_bits_[0] |= 0x00000002u; |
2018 | 0 | example_number_.Set( |
2019 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
2020 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2021 | 0 | } |
2022 | 0 | inline void PhoneNumberDesc::set_example_number(const char* value) { |
2023 | 0 | GOOGLE_DCHECK(value != nullptr); |
2024 | 0 | _has_bits_[0] |= 0x00000002u; |
2025 | 0 | example_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
2026 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2027 | 0 | } |
2028 | | inline void PhoneNumberDesc::set_example_number(const char* value, |
2029 | 0 | size_t size) { |
2030 | 0 | _has_bits_[0] |= 0x00000002u; |
2031 | 0 | example_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
2032 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
2033 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2034 | 0 | } |
2035 | 2.99M | inline std::string* PhoneNumberDesc::_internal_mutable_example_number() { |
2036 | 2.99M | _has_bits_[0] |= 0x00000002u; |
2037 | 2.99M | return example_number_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
2038 | 2.99M | } |
2039 | 0 | inline std::string* PhoneNumberDesc::release_example_number() { |
2040 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2041 | 0 | if (!_internal_has_example_number()) { |
2042 | 0 | return nullptr; |
2043 | 0 | } |
2044 | 0 | _has_bits_[0] &= ~0x00000002u; |
2045 | 0 | return example_number_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
2046 | 0 | } |
2047 | 0 | inline void PhoneNumberDesc::set_allocated_example_number(std::string* example_number) { |
2048 | 0 | if (example_number != nullptr) { |
2049 | 0 | _has_bits_[0] |= 0x00000002u; |
2050 | 0 | } else { |
2051 | 0 | _has_bits_[0] &= ~0x00000002u; |
2052 | 0 | } |
2053 | 0 | example_number_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), example_number, |
2054 | 0 | GetArena()); |
2055 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneNumberDesc.example_number) |
2056 | 0 | } |
2057 | | |
2058 | | // ------------------------------------------------------------------- |
2059 | | |
2060 | | // PhoneMetadata |
2061 | | |
2062 | | // optional .i18n.phonenumbers.PhoneNumberDesc general_desc = 1; |
2063 | 1.01k | inline bool PhoneMetadata::_internal_has_general_desc() const { |
2064 | 1.01k | bool value = (_has_bits_[0] & 0x00000100u) != 0; |
2065 | 1.01k | PROTOBUF_ASSUME(!value || general_desc_ != nullptr); |
2066 | 1.01k | return value; |
2067 | 1.01k | } |
2068 | 0 | inline bool PhoneMetadata::has_general_desc() const { |
2069 | 0 | return _internal_has_general_desc(); |
2070 | 0 | } |
2071 | 0 | inline void PhoneMetadata::clear_general_desc() { |
2072 | 0 | if (general_desc_ != nullptr) general_desc_->Clear(); |
2073 | 0 | _has_bits_[0] &= ~0x00000100u; |
2074 | 0 | } |
2075 | 420k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_general_desc() const { |
2076 | 420k | const ::i18n::phonenumbers::PhoneNumberDesc* p = general_desc_; |
2077 | 420k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2078 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2079 | 420k | } |
2080 | 420k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::general_desc() const { |
2081 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.general_desc) |
2082 | 420k | return _internal_general_desc(); |
2083 | 420k | } |
2084 | | inline void PhoneMetadata::unsafe_arena_set_allocated_general_desc( |
2085 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* general_desc) { |
2086 | 0 | if (GetArena() == nullptr) { |
2087 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(general_desc_); |
2088 | 0 | } |
2089 | 0 | general_desc_ = general_desc; |
2090 | 0 | if (general_desc) { |
2091 | 0 | _has_bits_[0] |= 0x00000100u; |
2092 | 0 | } else { |
2093 | 0 | _has_bits_[0] &= ~0x00000100u; |
2094 | 0 | } |
2095 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.general_desc) |
2096 | 0 | } |
2097 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_general_desc() { |
2098 | 0 | _has_bits_[0] &= ~0x00000100u; |
2099 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = general_desc_; |
2100 | 0 | general_desc_ = nullptr; |
2101 | 0 | if (GetArena() != nullptr) { |
2102 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2103 | 0 | } |
2104 | 0 | return temp; |
2105 | 0 | } |
2106 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_general_desc() { |
2107 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.general_desc) |
2108 | 0 | _has_bits_[0] &= ~0x00000100u; |
2109 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = general_desc_; |
2110 | 0 | general_desc_ = nullptr; |
2111 | 0 | return temp; |
2112 | 0 | } |
2113 | 750k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_general_desc() { |
2114 | 750k | _has_bits_[0] |= 0x00000100u; |
2115 | 750k | if (general_desc_ == nullptr) { |
2116 | 750k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2117 | 750k | general_desc_ = p; |
2118 | 750k | } |
2119 | 750k | return general_desc_; |
2120 | 750k | } |
2121 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_general_desc() { |
2122 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.general_desc) |
2123 | 0 | return _internal_mutable_general_desc(); |
2124 | 0 | } |
2125 | 0 | inline void PhoneMetadata::set_allocated_general_desc(::i18n::phonenumbers::PhoneNumberDesc* general_desc) { |
2126 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2127 | 0 | if (message_arena == nullptr) { |
2128 | 0 | delete general_desc_; |
2129 | 0 | } |
2130 | 0 | if (general_desc) { |
2131 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2132 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(general_desc); |
2133 | 0 | if (message_arena != submessage_arena) { |
2134 | 0 | general_desc = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2135 | 0 | message_arena, general_desc, submessage_arena); |
2136 | 0 | } |
2137 | 0 | _has_bits_[0] |= 0x00000100u; |
2138 | 0 | } else { |
2139 | 0 | _has_bits_[0] &= ~0x00000100u; |
2140 | 0 | } |
2141 | 0 | general_desc_ = general_desc; |
2142 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.general_desc) |
2143 | 0 | } |
2144 | | |
2145 | | // optional .i18n.phonenumbers.PhoneNumberDesc fixed_line = 2; |
2146 | 1.01k | inline bool PhoneMetadata::_internal_has_fixed_line() const { |
2147 | 1.01k | bool value = (_has_bits_[0] & 0x00000200u) != 0; |
2148 | 1.01k | PROTOBUF_ASSUME(!value || fixed_line_ != nullptr); |
2149 | 1.01k | return value; |
2150 | 1.01k | } |
2151 | 0 | inline bool PhoneMetadata::has_fixed_line() const { |
2152 | 0 | return _internal_has_fixed_line(); |
2153 | 0 | } |
2154 | 0 | inline void PhoneMetadata::clear_fixed_line() { |
2155 | 0 | if (fixed_line_ != nullptr) fixed_line_->Clear(); |
2156 | 0 | _has_bits_[0] &= ~0x00000200u; |
2157 | 0 | } |
2158 | 54.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_fixed_line() const { |
2159 | 54.4k | const ::i18n::phonenumbers::PhoneNumberDesc* p = fixed_line_; |
2160 | 54.4k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2161 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2162 | 54.4k | } |
2163 | 54.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::fixed_line() const { |
2164 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.fixed_line) |
2165 | 54.4k | return _internal_fixed_line(); |
2166 | 54.4k | } |
2167 | | inline void PhoneMetadata::unsafe_arena_set_allocated_fixed_line( |
2168 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* fixed_line) { |
2169 | 0 | if (GetArena() == nullptr) { |
2170 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fixed_line_); |
2171 | 0 | } |
2172 | 0 | fixed_line_ = fixed_line; |
2173 | 0 | if (fixed_line) { |
2174 | 0 | _has_bits_[0] |= 0x00000200u; |
2175 | 0 | } else { |
2176 | 0 | _has_bits_[0] &= ~0x00000200u; |
2177 | 0 | } |
2178 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.fixed_line) |
2179 | 0 | } |
2180 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_fixed_line() { |
2181 | 0 | _has_bits_[0] &= ~0x00000200u; |
2182 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = fixed_line_; |
2183 | 0 | fixed_line_ = nullptr; |
2184 | 0 | if (GetArena() != nullptr) { |
2185 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2186 | 0 | } |
2187 | 0 | return temp; |
2188 | 0 | } |
2189 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_fixed_line() { |
2190 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.fixed_line) |
2191 | 0 | _has_bits_[0] &= ~0x00000200u; |
2192 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = fixed_line_; |
2193 | 0 | fixed_line_ = nullptr; |
2194 | 0 | return temp; |
2195 | 0 | } |
2196 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_fixed_line() { |
2197 | 1.01k | _has_bits_[0] |= 0x00000200u; |
2198 | 1.01k | if (fixed_line_ == nullptr) { |
2199 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2200 | 1.01k | fixed_line_ = p; |
2201 | 1.01k | } |
2202 | 1.01k | return fixed_line_; |
2203 | 1.01k | } |
2204 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_fixed_line() { |
2205 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.fixed_line) |
2206 | 0 | return _internal_mutable_fixed_line(); |
2207 | 0 | } |
2208 | 0 | inline void PhoneMetadata::set_allocated_fixed_line(::i18n::phonenumbers::PhoneNumberDesc* fixed_line) { |
2209 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2210 | 0 | if (message_arena == nullptr) { |
2211 | 0 | delete fixed_line_; |
2212 | 0 | } |
2213 | 0 | if (fixed_line) { |
2214 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2215 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_line); |
2216 | 0 | if (message_arena != submessage_arena) { |
2217 | 0 | fixed_line = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2218 | 0 | message_arena, fixed_line, submessage_arena); |
2219 | 0 | } |
2220 | 0 | _has_bits_[0] |= 0x00000200u; |
2221 | 0 | } else { |
2222 | 0 | _has_bits_[0] &= ~0x00000200u; |
2223 | 0 | } |
2224 | 0 | fixed_line_ = fixed_line; |
2225 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.fixed_line) |
2226 | 0 | } |
2227 | | |
2228 | | // optional .i18n.phonenumbers.PhoneNumberDesc mobile = 3; |
2229 | 1.01k | inline bool PhoneMetadata::_internal_has_mobile() const { |
2230 | 1.01k | bool value = (_has_bits_[0] & 0x00000400u) != 0; |
2231 | 1.01k | PROTOBUF_ASSUME(!value || mobile_ != nullptr); |
2232 | 1.01k | return value; |
2233 | 1.01k | } |
2234 | 0 | inline bool PhoneMetadata::has_mobile() const { |
2235 | 0 | return _internal_has_mobile(); |
2236 | 0 | } |
2237 | 0 | inline void PhoneMetadata::clear_mobile() { |
2238 | 0 | if (mobile_ != nullptr) mobile_->Clear(); |
2239 | 0 | _has_bits_[0] &= ~0x00000400u; |
2240 | 0 | } |
2241 | 34.6k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_mobile() const { |
2242 | 34.6k | const ::i18n::phonenumbers::PhoneNumberDesc* p = mobile_; |
2243 | 34.6k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2244 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2245 | 34.6k | } |
2246 | 34.6k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::mobile() const { |
2247 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.mobile) |
2248 | 34.6k | return _internal_mobile(); |
2249 | 34.6k | } |
2250 | | inline void PhoneMetadata::unsafe_arena_set_allocated_mobile( |
2251 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* mobile) { |
2252 | 0 | if (GetArena() == nullptr) { |
2253 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(mobile_); |
2254 | 0 | } |
2255 | 0 | mobile_ = mobile; |
2256 | 0 | if (mobile) { |
2257 | 0 | _has_bits_[0] |= 0x00000400u; |
2258 | 0 | } else { |
2259 | 0 | _has_bits_[0] &= ~0x00000400u; |
2260 | 0 | } |
2261 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.mobile) |
2262 | 0 | } |
2263 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_mobile() { |
2264 | 0 | _has_bits_[0] &= ~0x00000400u; |
2265 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = mobile_; |
2266 | 0 | mobile_ = nullptr; |
2267 | 0 | if (GetArena() != nullptr) { |
2268 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2269 | 0 | } |
2270 | 0 | return temp; |
2271 | 0 | } |
2272 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_mobile() { |
2273 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.mobile) |
2274 | 0 | _has_bits_[0] &= ~0x00000400u; |
2275 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = mobile_; |
2276 | 0 | mobile_ = nullptr; |
2277 | 0 | return temp; |
2278 | 0 | } |
2279 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_mobile() { |
2280 | 1.01k | _has_bits_[0] |= 0x00000400u; |
2281 | 1.01k | if (mobile_ == nullptr) { |
2282 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2283 | 1.01k | mobile_ = p; |
2284 | 1.01k | } |
2285 | 1.01k | return mobile_; |
2286 | 1.01k | } |
2287 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_mobile() { |
2288 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.mobile) |
2289 | 0 | return _internal_mutable_mobile(); |
2290 | 0 | } |
2291 | 0 | inline void PhoneMetadata::set_allocated_mobile(::i18n::phonenumbers::PhoneNumberDesc* mobile) { |
2292 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2293 | 0 | if (message_arena == nullptr) { |
2294 | 0 | delete mobile_; |
2295 | 0 | } |
2296 | 0 | if (mobile) { |
2297 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2298 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(mobile); |
2299 | 0 | if (message_arena != submessage_arena) { |
2300 | 0 | mobile = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2301 | 0 | message_arena, mobile, submessage_arena); |
2302 | 0 | } |
2303 | 0 | _has_bits_[0] |= 0x00000400u; |
2304 | 0 | } else { |
2305 | 0 | _has_bits_[0] &= ~0x00000400u; |
2306 | 0 | } |
2307 | 0 | mobile_ = mobile; |
2308 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.mobile) |
2309 | 0 | } |
2310 | | |
2311 | | // optional .i18n.phonenumbers.PhoneNumberDesc toll_free = 4; |
2312 | 1.01k | inline bool PhoneMetadata::_internal_has_toll_free() const { |
2313 | 1.01k | bool value = (_has_bits_[0] & 0x00000800u) != 0; |
2314 | 1.01k | PROTOBUF_ASSUME(!value || toll_free_ != nullptr); |
2315 | 1.01k | return value; |
2316 | 1.01k | } |
2317 | 0 | inline bool PhoneMetadata::has_toll_free() const { |
2318 | 0 | return _internal_has_toll_free(); |
2319 | 0 | } |
2320 | 0 | inline void PhoneMetadata::clear_toll_free() { |
2321 | 0 | if (toll_free_ != nullptr) toll_free_->Clear(); |
2322 | 0 | _has_bits_[0] &= ~0x00000800u; |
2323 | 0 | } |
2324 | 42.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_toll_free() const { |
2325 | 42.4k | const ::i18n::phonenumbers::PhoneNumberDesc* p = toll_free_; |
2326 | 42.4k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2327 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2328 | 42.4k | } |
2329 | 42.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::toll_free() const { |
2330 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.toll_free) |
2331 | 42.4k | return _internal_toll_free(); |
2332 | 42.4k | } |
2333 | | inline void PhoneMetadata::unsafe_arena_set_allocated_toll_free( |
2334 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* toll_free) { |
2335 | 0 | if (GetArena() == nullptr) { |
2336 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(toll_free_); |
2337 | 0 | } |
2338 | 0 | toll_free_ = toll_free; |
2339 | 0 | if (toll_free) { |
2340 | 0 | _has_bits_[0] |= 0x00000800u; |
2341 | 0 | } else { |
2342 | 0 | _has_bits_[0] &= ~0x00000800u; |
2343 | 0 | } |
2344 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.toll_free) |
2345 | 0 | } |
2346 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_toll_free() { |
2347 | 0 | _has_bits_[0] &= ~0x00000800u; |
2348 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = toll_free_; |
2349 | 0 | toll_free_ = nullptr; |
2350 | 0 | if (GetArena() != nullptr) { |
2351 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2352 | 0 | } |
2353 | 0 | return temp; |
2354 | 0 | } |
2355 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_toll_free() { |
2356 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.toll_free) |
2357 | 0 | _has_bits_[0] &= ~0x00000800u; |
2358 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = toll_free_; |
2359 | 0 | toll_free_ = nullptr; |
2360 | 0 | return temp; |
2361 | 0 | } |
2362 | 750k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_toll_free() { |
2363 | 750k | _has_bits_[0] |= 0x00000800u; |
2364 | 750k | if (toll_free_ == nullptr) { |
2365 | 750k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2366 | 750k | toll_free_ = p; |
2367 | 750k | } |
2368 | 750k | return toll_free_; |
2369 | 750k | } |
2370 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_toll_free() { |
2371 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.toll_free) |
2372 | 0 | return _internal_mutable_toll_free(); |
2373 | 0 | } |
2374 | 0 | inline void PhoneMetadata::set_allocated_toll_free(::i18n::phonenumbers::PhoneNumberDesc* toll_free) { |
2375 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2376 | 0 | if (message_arena == nullptr) { |
2377 | 0 | delete toll_free_; |
2378 | 0 | } |
2379 | 0 | if (toll_free) { |
2380 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2381 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(toll_free); |
2382 | 0 | if (message_arena != submessage_arena) { |
2383 | 0 | toll_free = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2384 | 0 | message_arena, toll_free, submessage_arena); |
2385 | 0 | } |
2386 | 0 | _has_bits_[0] |= 0x00000800u; |
2387 | 0 | } else { |
2388 | 0 | _has_bits_[0] &= ~0x00000800u; |
2389 | 0 | } |
2390 | 0 | toll_free_ = toll_free; |
2391 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.toll_free) |
2392 | 0 | } |
2393 | | |
2394 | | // optional .i18n.phonenumbers.PhoneNumberDesc premium_rate = 5; |
2395 | 1.01k | inline bool PhoneMetadata::_internal_has_premium_rate() const { |
2396 | 1.01k | bool value = (_has_bits_[0] & 0x00001000u) != 0; |
2397 | 1.01k | PROTOBUF_ASSUME(!value || premium_rate_ != nullptr); |
2398 | 1.01k | return value; |
2399 | 1.01k | } |
2400 | 0 | inline bool PhoneMetadata::has_premium_rate() const { |
2401 | 0 | return _internal_has_premium_rate(); |
2402 | 0 | } |
2403 | 0 | inline void PhoneMetadata::clear_premium_rate() { |
2404 | 0 | if (premium_rate_ != nullptr) premium_rate_->Clear(); |
2405 | 0 | _has_bits_[0] &= ~0x00001000u; |
2406 | 0 | } |
2407 | 40.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_premium_rate() const { |
2408 | 40.8k | const ::i18n::phonenumbers::PhoneNumberDesc* p = premium_rate_; |
2409 | 40.8k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2410 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2411 | 40.8k | } |
2412 | 40.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::premium_rate() const { |
2413 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.premium_rate) |
2414 | 40.8k | return _internal_premium_rate(); |
2415 | 40.8k | } |
2416 | | inline void PhoneMetadata::unsafe_arena_set_allocated_premium_rate( |
2417 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* premium_rate) { |
2418 | 0 | if (GetArena() == nullptr) { |
2419 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(premium_rate_); |
2420 | 0 | } |
2421 | 0 | premium_rate_ = premium_rate; |
2422 | 0 | if (premium_rate) { |
2423 | 0 | _has_bits_[0] |= 0x00001000u; |
2424 | 0 | } else { |
2425 | 0 | _has_bits_[0] &= ~0x00001000u; |
2426 | 0 | } |
2427 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.premium_rate) |
2428 | 0 | } |
2429 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_premium_rate() { |
2430 | 0 | _has_bits_[0] &= ~0x00001000u; |
2431 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = premium_rate_; |
2432 | 0 | premium_rate_ = nullptr; |
2433 | 0 | if (GetArena() != nullptr) { |
2434 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2435 | 0 | } |
2436 | 0 | return temp; |
2437 | 0 | } |
2438 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_premium_rate() { |
2439 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.premium_rate) |
2440 | 0 | _has_bits_[0] &= ~0x00001000u; |
2441 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = premium_rate_; |
2442 | 0 | premium_rate_ = nullptr; |
2443 | 0 | return temp; |
2444 | 0 | } |
2445 | 750k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_premium_rate() { |
2446 | 750k | _has_bits_[0] |= 0x00001000u; |
2447 | 750k | if (premium_rate_ == nullptr) { |
2448 | 750k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2449 | 750k | premium_rate_ = p; |
2450 | 750k | } |
2451 | 750k | return premium_rate_; |
2452 | 750k | } |
2453 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_premium_rate() { |
2454 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.premium_rate) |
2455 | 0 | return _internal_mutable_premium_rate(); |
2456 | 0 | } |
2457 | 0 | inline void PhoneMetadata::set_allocated_premium_rate(::i18n::phonenumbers::PhoneNumberDesc* premium_rate) { |
2458 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2459 | 0 | if (message_arena == nullptr) { |
2460 | 0 | delete premium_rate_; |
2461 | 0 | } |
2462 | 0 | if (premium_rate) { |
2463 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2464 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(premium_rate); |
2465 | 0 | if (message_arena != submessage_arena) { |
2466 | 0 | premium_rate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2467 | 0 | message_arena, premium_rate, submessage_arena); |
2468 | 0 | } |
2469 | 0 | _has_bits_[0] |= 0x00001000u; |
2470 | 0 | } else { |
2471 | 0 | _has_bits_[0] &= ~0x00001000u; |
2472 | 0 | } |
2473 | 0 | premium_rate_ = premium_rate; |
2474 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.premium_rate) |
2475 | 0 | } |
2476 | | |
2477 | | // optional .i18n.phonenumbers.PhoneNumberDesc shared_cost = 6; |
2478 | 1.01k | inline bool PhoneMetadata::_internal_has_shared_cost() const { |
2479 | 1.01k | bool value = (_has_bits_[0] & 0x00002000u) != 0; |
2480 | 1.01k | PROTOBUF_ASSUME(!value || shared_cost_ != nullptr); |
2481 | 1.01k | return value; |
2482 | 1.01k | } |
2483 | 0 | inline bool PhoneMetadata::has_shared_cost() const { |
2484 | 0 | return _internal_has_shared_cost(); |
2485 | 0 | } |
2486 | 0 | inline void PhoneMetadata::clear_shared_cost() { |
2487 | 0 | if (shared_cost_ != nullptr) shared_cost_->Clear(); |
2488 | 0 | _has_bits_[0] &= ~0x00002000u; |
2489 | 0 | } |
2490 | 39.2k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_shared_cost() const { |
2491 | 39.2k | const ::i18n::phonenumbers::PhoneNumberDesc* p = shared_cost_; |
2492 | 39.2k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2493 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2494 | 39.2k | } |
2495 | 39.2k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::shared_cost() const { |
2496 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.shared_cost) |
2497 | 39.2k | return _internal_shared_cost(); |
2498 | 39.2k | } |
2499 | | inline void PhoneMetadata::unsafe_arena_set_allocated_shared_cost( |
2500 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* shared_cost) { |
2501 | 0 | if (GetArena() == nullptr) { |
2502 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shared_cost_); |
2503 | 0 | } |
2504 | 0 | shared_cost_ = shared_cost; |
2505 | 0 | if (shared_cost) { |
2506 | 0 | _has_bits_[0] |= 0x00002000u; |
2507 | 0 | } else { |
2508 | 0 | _has_bits_[0] &= ~0x00002000u; |
2509 | 0 | } |
2510 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.shared_cost) |
2511 | 0 | } |
2512 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_shared_cost() { |
2513 | 0 | _has_bits_[0] &= ~0x00002000u; |
2514 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = shared_cost_; |
2515 | 0 | shared_cost_ = nullptr; |
2516 | 0 | if (GetArena() != nullptr) { |
2517 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2518 | 0 | } |
2519 | 0 | return temp; |
2520 | 0 | } |
2521 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_shared_cost() { |
2522 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.shared_cost) |
2523 | 0 | _has_bits_[0] &= ~0x00002000u; |
2524 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = shared_cost_; |
2525 | 0 | shared_cost_ = nullptr; |
2526 | 0 | return temp; |
2527 | 0 | } |
2528 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_shared_cost() { |
2529 | 1.01k | _has_bits_[0] |= 0x00002000u; |
2530 | 1.01k | if (shared_cost_ == nullptr) { |
2531 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2532 | 1.01k | shared_cost_ = p; |
2533 | 1.01k | } |
2534 | 1.01k | return shared_cost_; |
2535 | 1.01k | } |
2536 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_shared_cost() { |
2537 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.shared_cost) |
2538 | 0 | return _internal_mutable_shared_cost(); |
2539 | 0 | } |
2540 | 0 | inline void PhoneMetadata::set_allocated_shared_cost(::i18n::phonenumbers::PhoneNumberDesc* shared_cost) { |
2541 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2542 | 0 | if (message_arena == nullptr) { |
2543 | 0 | delete shared_cost_; |
2544 | 0 | } |
2545 | 0 | if (shared_cost) { |
2546 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2547 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(shared_cost); |
2548 | 0 | if (message_arena != submessage_arena) { |
2549 | 0 | shared_cost = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2550 | 0 | message_arena, shared_cost, submessage_arena); |
2551 | 0 | } |
2552 | 0 | _has_bits_[0] |= 0x00002000u; |
2553 | 0 | } else { |
2554 | 0 | _has_bits_[0] &= ~0x00002000u; |
2555 | 0 | } |
2556 | 0 | shared_cost_ = shared_cost; |
2557 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.shared_cost) |
2558 | 0 | } |
2559 | | |
2560 | | // optional .i18n.phonenumbers.PhoneNumberDesc personal_number = 7; |
2561 | 1.01k | inline bool PhoneMetadata::_internal_has_personal_number() const { |
2562 | 1.01k | bool value = (_has_bits_[0] & 0x00004000u) != 0; |
2563 | 1.01k | PROTOBUF_ASSUME(!value || personal_number_ != nullptr); |
2564 | 1.01k | return value; |
2565 | 1.01k | } |
2566 | 0 | inline bool PhoneMetadata::has_personal_number() const { |
2567 | 0 | return _internal_has_personal_number(); |
2568 | 0 | } |
2569 | 0 | inline void PhoneMetadata::clear_personal_number() { |
2570 | 0 | if (personal_number_ != nullptr) personal_number_->Clear(); |
2571 | 0 | _has_bits_[0] &= ~0x00004000u; |
2572 | 0 | } |
2573 | 39.0k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_personal_number() const { |
2574 | 39.0k | const ::i18n::phonenumbers::PhoneNumberDesc* p = personal_number_; |
2575 | 39.0k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2576 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2577 | 39.0k | } |
2578 | 39.0k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::personal_number() const { |
2579 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.personal_number) |
2580 | 39.0k | return _internal_personal_number(); |
2581 | 39.0k | } |
2582 | | inline void PhoneMetadata::unsafe_arena_set_allocated_personal_number( |
2583 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* personal_number) { |
2584 | 0 | if (GetArena() == nullptr) { |
2585 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(personal_number_); |
2586 | 0 | } |
2587 | 0 | personal_number_ = personal_number; |
2588 | 0 | if (personal_number) { |
2589 | 0 | _has_bits_[0] |= 0x00004000u; |
2590 | 0 | } else { |
2591 | 0 | _has_bits_[0] &= ~0x00004000u; |
2592 | 0 | } |
2593 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.personal_number) |
2594 | 0 | } |
2595 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_personal_number() { |
2596 | 0 | _has_bits_[0] &= ~0x00004000u; |
2597 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = personal_number_; |
2598 | 0 | personal_number_ = nullptr; |
2599 | 0 | if (GetArena() != nullptr) { |
2600 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2601 | 0 | } |
2602 | 0 | return temp; |
2603 | 0 | } |
2604 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_personal_number() { |
2605 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.personal_number) |
2606 | 0 | _has_bits_[0] &= ~0x00004000u; |
2607 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = personal_number_; |
2608 | 0 | personal_number_ = nullptr; |
2609 | 0 | return temp; |
2610 | 0 | } |
2611 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_personal_number() { |
2612 | 1.01k | _has_bits_[0] |= 0x00004000u; |
2613 | 1.01k | if (personal_number_ == nullptr) { |
2614 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2615 | 1.01k | personal_number_ = p; |
2616 | 1.01k | } |
2617 | 1.01k | return personal_number_; |
2618 | 1.01k | } |
2619 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_personal_number() { |
2620 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.personal_number) |
2621 | 0 | return _internal_mutable_personal_number(); |
2622 | 0 | } |
2623 | 0 | inline void PhoneMetadata::set_allocated_personal_number(::i18n::phonenumbers::PhoneNumberDesc* personal_number) { |
2624 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2625 | 0 | if (message_arena == nullptr) { |
2626 | 0 | delete personal_number_; |
2627 | 0 | } |
2628 | 0 | if (personal_number) { |
2629 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2630 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(personal_number); |
2631 | 0 | if (message_arena != submessage_arena) { |
2632 | 0 | personal_number = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2633 | 0 | message_arena, personal_number, submessage_arena); |
2634 | 0 | } |
2635 | 0 | _has_bits_[0] |= 0x00004000u; |
2636 | 0 | } else { |
2637 | 0 | _has_bits_[0] &= ~0x00004000u; |
2638 | 0 | } |
2639 | 0 | personal_number_ = personal_number; |
2640 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.personal_number) |
2641 | 0 | } |
2642 | | |
2643 | | // optional .i18n.phonenumbers.PhoneNumberDesc voip = 8; |
2644 | 1.01k | inline bool PhoneMetadata::_internal_has_voip() const { |
2645 | 1.01k | bool value = (_has_bits_[0] & 0x00008000u) != 0; |
2646 | 1.01k | PROTOBUF_ASSUME(!value || voip_ != nullptr); |
2647 | 1.01k | return value; |
2648 | 1.01k | } |
2649 | 0 | inline bool PhoneMetadata::has_voip() const { |
2650 | 0 | return _internal_has_voip(); |
2651 | 0 | } |
2652 | 0 | inline void PhoneMetadata::clear_voip() { |
2653 | 0 | if (voip_ != nullptr) voip_->Clear(); |
2654 | 0 | _has_bits_[0] &= ~0x00008000u; |
2655 | 0 | } |
2656 | 39.3k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voip() const { |
2657 | 39.3k | const ::i18n::phonenumbers::PhoneNumberDesc* p = voip_; |
2658 | 39.3k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2659 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2660 | 39.3k | } |
2661 | 39.3k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voip() const { |
2662 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voip) |
2663 | 39.3k | return _internal_voip(); |
2664 | 39.3k | } |
2665 | | inline void PhoneMetadata::unsafe_arena_set_allocated_voip( |
2666 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* voip) { |
2667 | 0 | if (GetArena() == nullptr) { |
2668 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(voip_); |
2669 | 0 | } |
2670 | 0 | voip_ = voip; |
2671 | 0 | if (voip) { |
2672 | 0 | _has_bits_[0] |= 0x00008000u; |
2673 | 0 | } else { |
2674 | 0 | _has_bits_[0] &= ~0x00008000u; |
2675 | 0 | } |
2676 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.voip) |
2677 | 0 | } |
2678 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voip() { |
2679 | 0 | _has_bits_[0] &= ~0x00008000u; |
2680 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = voip_; |
2681 | 0 | voip_ = nullptr; |
2682 | 0 | if (GetArena() != nullptr) { |
2683 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2684 | 0 | } |
2685 | 0 | return temp; |
2686 | 0 | } |
2687 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_voip() { |
2688 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voip) |
2689 | 0 | _has_bits_[0] &= ~0x00008000u; |
2690 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = voip_; |
2691 | 0 | voip_ = nullptr; |
2692 | 0 | return temp; |
2693 | 0 | } |
2694 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_voip() { |
2695 | 1.01k | _has_bits_[0] |= 0x00008000u; |
2696 | 1.01k | if (voip_ == nullptr) { |
2697 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2698 | 1.01k | voip_ = p; |
2699 | 1.01k | } |
2700 | 1.01k | return voip_; |
2701 | 1.01k | } |
2702 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voip() { |
2703 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voip) |
2704 | 0 | return _internal_mutable_voip(); |
2705 | 0 | } |
2706 | 0 | inline void PhoneMetadata::set_allocated_voip(::i18n::phonenumbers::PhoneNumberDesc* voip) { |
2707 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2708 | 0 | if (message_arena == nullptr) { |
2709 | 0 | delete voip_; |
2710 | 0 | } |
2711 | 0 | if (voip) { |
2712 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2713 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(voip); |
2714 | 0 | if (message_arena != submessage_arena) { |
2715 | 0 | voip = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2716 | 0 | message_arena, voip, submessage_arena); |
2717 | 0 | } |
2718 | 0 | _has_bits_[0] |= 0x00008000u; |
2719 | 0 | } else { |
2720 | 0 | _has_bits_[0] &= ~0x00008000u; |
2721 | 0 | } |
2722 | 0 | voip_ = voip; |
2723 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voip) |
2724 | 0 | } |
2725 | | |
2726 | | // optional .i18n.phonenumbers.PhoneNumberDesc pager = 21; |
2727 | 1.01k | inline bool PhoneMetadata::_internal_has_pager() const { |
2728 | 1.01k | bool value = (_has_bits_[0] & 0x00010000u) != 0; |
2729 | 1.01k | PROTOBUF_ASSUME(!value || pager_ != nullptr); |
2730 | 1.01k | return value; |
2731 | 1.01k | } |
2732 | 0 | inline bool PhoneMetadata::has_pager() const { |
2733 | 0 | return _internal_has_pager(); |
2734 | 0 | } |
2735 | 0 | inline void PhoneMetadata::clear_pager() { |
2736 | 0 | if (pager_ != nullptr) pager_->Clear(); |
2737 | 0 | _has_bits_[0] &= ~0x00010000u; |
2738 | 0 | } |
2739 | 41.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_pager() const { |
2740 | 41.4k | const ::i18n::phonenumbers::PhoneNumberDesc* p = pager_; |
2741 | 41.4k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2742 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2743 | 41.4k | } |
2744 | 41.4k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::pager() const { |
2745 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.pager) |
2746 | 41.4k | return _internal_pager(); |
2747 | 41.4k | } |
2748 | | inline void PhoneMetadata::unsafe_arena_set_allocated_pager( |
2749 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* pager) { |
2750 | 0 | if (GetArena() == nullptr) { |
2751 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pager_); |
2752 | 0 | } |
2753 | 0 | pager_ = pager; |
2754 | 0 | if (pager) { |
2755 | 0 | _has_bits_[0] |= 0x00010000u; |
2756 | 0 | } else { |
2757 | 0 | _has_bits_[0] &= ~0x00010000u; |
2758 | 0 | } |
2759 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.pager) |
2760 | 0 | } |
2761 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_pager() { |
2762 | 0 | _has_bits_[0] &= ~0x00010000u; |
2763 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = pager_; |
2764 | 0 | pager_ = nullptr; |
2765 | 0 | if (GetArena() != nullptr) { |
2766 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2767 | 0 | } |
2768 | 0 | return temp; |
2769 | 0 | } |
2770 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_pager() { |
2771 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.pager) |
2772 | 0 | _has_bits_[0] &= ~0x00010000u; |
2773 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = pager_; |
2774 | 0 | pager_ = nullptr; |
2775 | 0 | return temp; |
2776 | 0 | } |
2777 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_pager() { |
2778 | 1.01k | _has_bits_[0] |= 0x00010000u; |
2779 | 1.01k | if (pager_ == nullptr) { |
2780 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2781 | 1.01k | pager_ = p; |
2782 | 1.01k | } |
2783 | 1.01k | return pager_; |
2784 | 1.01k | } |
2785 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_pager() { |
2786 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.pager) |
2787 | 0 | return _internal_mutable_pager(); |
2788 | 0 | } |
2789 | 0 | inline void PhoneMetadata::set_allocated_pager(::i18n::phonenumbers::PhoneNumberDesc* pager) { |
2790 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2791 | 0 | if (message_arena == nullptr) { |
2792 | 0 | delete pager_; |
2793 | 0 | } |
2794 | 0 | if (pager) { |
2795 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2796 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pager); |
2797 | 0 | if (message_arena != submessage_arena) { |
2798 | 0 | pager = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2799 | 0 | message_arena, pager, submessage_arena); |
2800 | 0 | } |
2801 | 0 | _has_bits_[0] |= 0x00010000u; |
2802 | 0 | } else { |
2803 | 0 | _has_bits_[0] &= ~0x00010000u; |
2804 | 0 | } |
2805 | 0 | pager_ = pager; |
2806 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.pager) |
2807 | 0 | } |
2808 | | |
2809 | | // optional .i18n.phonenumbers.PhoneNumberDesc uan = 25; |
2810 | 1.01k | inline bool PhoneMetadata::_internal_has_uan() const { |
2811 | 1.01k | bool value = (_has_bits_[0] & 0x00040000u) != 0; |
2812 | 1.01k | PROTOBUF_ASSUME(!value || uan_ != nullptr); |
2813 | 1.01k | return value; |
2814 | 1.01k | } |
2815 | 0 | inline bool PhoneMetadata::has_uan() const { |
2816 | 0 | return _internal_has_uan(); |
2817 | 0 | } |
2818 | 0 | inline void PhoneMetadata::clear_uan() { |
2819 | 0 | if (uan_ != nullptr) uan_->Clear(); |
2820 | 0 | _has_bits_[0] &= ~0x00040000u; |
2821 | 0 | } |
2822 | 37.5k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_uan() const { |
2823 | 37.5k | const ::i18n::phonenumbers::PhoneNumberDesc* p = uan_; |
2824 | 37.5k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2825 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2826 | 37.5k | } |
2827 | 37.5k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::uan() const { |
2828 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.uan) |
2829 | 37.5k | return _internal_uan(); |
2830 | 37.5k | } |
2831 | | inline void PhoneMetadata::unsafe_arena_set_allocated_uan( |
2832 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* uan) { |
2833 | 0 | if (GetArena() == nullptr) { |
2834 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(uan_); |
2835 | 0 | } |
2836 | 0 | uan_ = uan; |
2837 | 0 | if (uan) { |
2838 | 0 | _has_bits_[0] |= 0x00040000u; |
2839 | 0 | } else { |
2840 | 0 | _has_bits_[0] &= ~0x00040000u; |
2841 | 0 | } |
2842 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.uan) |
2843 | 0 | } |
2844 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_uan() { |
2845 | 0 | _has_bits_[0] &= ~0x00040000u; |
2846 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = uan_; |
2847 | 0 | uan_ = nullptr; |
2848 | 0 | if (GetArena() != nullptr) { |
2849 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2850 | 0 | } |
2851 | 0 | return temp; |
2852 | 0 | } |
2853 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_uan() { |
2854 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.uan) |
2855 | 0 | _has_bits_[0] &= ~0x00040000u; |
2856 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = uan_; |
2857 | 0 | uan_ = nullptr; |
2858 | 0 | return temp; |
2859 | 0 | } |
2860 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_uan() { |
2861 | 1.01k | _has_bits_[0] |= 0x00040000u; |
2862 | 1.01k | if (uan_ == nullptr) { |
2863 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2864 | 1.01k | uan_ = p; |
2865 | 1.01k | } |
2866 | 1.01k | return uan_; |
2867 | 1.01k | } |
2868 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_uan() { |
2869 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.uan) |
2870 | 0 | return _internal_mutable_uan(); |
2871 | 0 | } |
2872 | 0 | inline void PhoneMetadata::set_allocated_uan(::i18n::phonenumbers::PhoneNumberDesc* uan) { |
2873 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2874 | 0 | if (message_arena == nullptr) { |
2875 | 0 | delete uan_; |
2876 | 0 | } |
2877 | 0 | if (uan) { |
2878 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2879 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(uan); |
2880 | 0 | if (message_arena != submessage_arena) { |
2881 | 0 | uan = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2882 | 0 | message_arena, uan, submessage_arena); |
2883 | 0 | } |
2884 | 0 | _has_bits_[0] |= 0x00040000u; |
2885 | 0 | } else { |
2886 | 0 | _has_bits_[0] &= ~0x00040000u; |
2887 | 0 | } |
2888 | 0 | uan_ = uan; |
2889 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.uan) |
2890 | 0 | } |
2891 | | |
2892 | | // optional .i18n.phonenumbers.PhoneNumberDesc emergency = 27; |
2893 | 2.33k | inline bool PhoneMetadata::_internal_has_emergency() const { |
2894 | 2.33k | bool value = (_has_bits_[0] & 0x00080000u) != 0; |
2895 | 2.33k | PROTOBUF_ASSUME(!value || emergency_ != nullptr); |
2896 | 2.33k | return value; |
2897 | 2.33k | } |
2898 | 1.31k | inline bool PhoneMetadata::has_emergency() const { |
2899 | 1.31k | return _internal_has_emergency(); |
2900 | 1.31k | } |
2901 | 0 | inline void PhoneMetadata::clear_emergency() { |
2902 | 0 | if (emergency_ != nullptr) emergency_->Clear(); |
2903 | 0 | _has_bits_[0] &= ~0x00080000u; |
2904 | 0 | } |
2905 | 1.31k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_emergency() const { |
2906 | 1.31k | const ::i18n::phonenumbers::PhoneNumberDesc* p = emergency_; |
2907 | 1.31k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2908 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2909 | 1.31k | } |
2910 | 1.31k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::emergency() const { |
2911 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.emergency) |
2912 | 1.31k | return _internal_emergency(); |
2913 | 1.31k | } |
2914 | | inline void PhoneMetadata::unsafe_arena_set_allocated_emergency( |
2915 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* emergency) { |
2916 | 0 | if (GetArena() == nullptr) { |
2917 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(emergency_); |
2918 | 0 | } |
2919 | 0 | emergency_ = emergency; |
2920 | 0 | if (emergency) { |
2921 | 0 | _has_bits_[0] |= 0x00080000u; |
2922 | 0 | } else { |
2923 | 0 | _has_bits_[0] &= ~0x00080000u; |
2924 | 0 | } |
2925 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.emergency) |
2926 | 0 | } |
2927 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_emergency() { |
2928 | 0 | _has_bits_[0] &= ~0x00080000u; |
2929 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = emergency_; |
2930 | 0 | emergency_ = nullptr; |
2931 | 0 | if (GetArena() != nullptr) { |
2932 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
2933 | 0 | } |
2934 | 0 | return temp; |
2935 | 0 | } |
2936 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_emergency() { |
2937 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.emergency) |
2938 | 0 | _has_bits_[0] &= ~0x00080000u; |
2939 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = emergency_; |
2940 | 0 | emergency_ = nullptr; |
2941 | 0 | return temp; |
2942 | 0 | } |
2943 | 749k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_emergency() { |
2944 | 749k | _has_bits_[0] |= 0x00080000u; |
2945 | 749k | if (emergency_ == nullptr) { |
2946 | 749k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
2947 | 749k | emergency_ = p; |
2948 | 749k | } |
2949 | 749k | return emergency_; |
2950 | 749k | } |
2951 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_emergency() { |
2952 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.emergency) |
2953 | 0 | return _internal_mutable_emergency(); |
2954 | 0 | } |
2955 | 0 | inline void PhoneMetadata::set_allocated_emergency(::i18n::phonenumbers::PhoneNumberDesc* emergency) { |
2956 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
2957 | 0 | if (message_arena == nullptr) { |
2958 | 0 | delete emergency_; |
2959 | 0 | } |
2960 | 0 | if (emergency) { |
2961 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
2962 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(emergency); |
2963 | 0 | if (message_arena != submessage_arena) { |
2964 | 0 | emergency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
2965 | 0 | message_arena, emergency, submessage_arena); |
2966 | 0 | } |
2967 | 0 | _has_bits_[0] |= 0x00080000u; |
2968 | 0 | } else { |
2969 | 0 | _has_bits_[0] &= ~0x00080000u; |
2970 | 0 | } |
2971 | 0 | emergency_ = emergency; |
2972 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.emergency) |
2973 | 0 | } |
2974 | | |
2975 | | // optional .i18n.phonenumbers.PhoneNumberDesc voicemail = 28; |
2976 | 1.01k | inline bool PhoneMetadata::_internal_has_voicemail() const { |
2977 | 1.01k | bool value = (_has_bits_[0] & 0x00100000u) != 0; |
2978 | 1.01k | PROTOBUF_ASSUME(!value || voicemail_ != nullptr); |
2979 | 1.01k | return value; |
2980 | 1.01k | } |
2981 | 0 | inline bool PhoneMetadata::has_voicemail() const { |
2982 | 0 | return _internal_has_voicemail(); |
2983 | 0 | } |
2984 | 0 | inline void PhoneMetadata::clear_voicemail() { |
2985 | 0 | if (voicemail_ != nullptr) voicemail_->Clear(); |
2986 | 0 | _has_bits_[0] &= ~0x00100000u; |
2987 | 0 | } |
2988 | 51.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_voicemail() const { |
2989 | 51.8k | const ::i18n::phonenumbers::PhoneNumberDesc* p = voicemail_; |
2990 | 51.8k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
2991 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
2992 | 51.8k | } |
2993 | 51.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::voicemail() const { |
2994 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.voicemail) |
2995 | 51.8k | return _internal_voicemail(); |
2996 | 51.8k | } |
2997 | | inline void PhoneMetadata::unsafe_arena_set_allocated_voicemail( |
2998 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* voicemail) { |
2999 | 0 | if (GetArena() == nullptr) { |
3000 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(voicemail_); |
3001 | 0 | } |
3002 | 0 | voicemail_ = voicemail; |
3003 | 0 | if (voicemail) { |
3004 | 0 | _has_bits_[0] |= 0x00100000u; |
3005 | 0 | } else { |
3006 | 0 | _has_bits_[0] &= ~0x00100000u; |
3007 | 0 | } |
3008 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.voicemail) |
3009 | 0 | } |
3010 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_voicemail() { |
3011 | 0 | _has_bits_[0] &= ~0x00100000u; |
3012 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = voicemail_; |
3013 | 0 | voicemail_ = nullptr; |
3014 | 0 | if (GetArena() != nullptr) { |
3015 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3016 | 0 | } |
3017 | 0 | return temp; |
3018 | 0 | } |
3019 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_voicemail() { |
3020 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.voicemail) |
3021 | 0 | _has_bits_[0] &= ~0x00100000u; |
3022 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = voicemail_; |
3023 | 0 | voicemail_ = nullptr; |
3024 | 0 | return temp; |
3025 | 0 | } |
3026 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_voicemail() { |
3027 | 1.01k | _has_bits_[0] |= 0x00100000u; |
3028 | 1.01k | if (voicemail_ == nullptr) { |
3029 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3030 | 1.01k | voicemail_ = p; |
3031 | 1.01k | } |
3032 | 1.01k | return voicemail_; |
3033 | 1.01k | } |
3034 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_voicemail() { |
3035 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.voicemail) |
3036 | 0 | return _internal_mutable_voicemail(); |
3037 | 0 | } |
3038 | 0 | inline void PhoneMetadata::set_allocated_voicemail(::i18n::phonenumbers::PhoneNumberDesc* voicemail) { |
3039 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3040 | 0 | if (message_arena == nullptr) { |
3041 | 0 | delete voicemail_; |
3042 | 0 | } |
3043 | 0 | if (voicemail) { |
3044 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3045 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(voicemail); |
3046 | 0 | if (message_arena != submessage_arena) { |
3047 | 0 | voicemail = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3048 | 0 | message_arena, voicemail, submessage_arena); |
3049 | 0 | } |
3050 | 0 | _has_bits_[0] |= 0x00100000u; |
3051 | 0 | } else { |
3052 | 0 | _has_bits_[0] &= ~0x00100000u; |
3053 | 0 | } |
3054 | 0 | voicemail_ = voicemail; |
3055 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.voicemail) |
3056 | 0 | } |
3057 | | |
3058 | | // optional .i18n.phonenumbers.PhoneNumberDesc short_code = 29; |
3059 | 1.01k | inline bool PhoneMetadata::_internal_has_short_code() const { |
3060 | 1.01k | bool value = (_has_bits_[0] & 0x00200000u) != 0; |
3061 | 1.01k | PROTOBUF_ASSUME(!value || short_code_ != nullptr); |
3062 | 1.01k | return value; |
3063 | 1.01k | } |
3064 | 0 | inline bool PhoneMetadata::has_short_code() const { |
3065 | 0 | return _internal_has_short_code(); |
3066 | 0 | } |
3067 | 0 | inline void PhoneMetadata::clear_short_code() { |
3068 | 0 | if (short_code_ != nullptr) short_code_->Clear(); |
3069 | 0 | _has_bits_[0] &= ~0x00200000u; |
3070 | 0 | } |
3071 | 15.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_short_code() const { |
3072 | 15.8k | const ::i18n::phonenumbers::PhoneNumberDesc* p = short_code_; |
3073 | 15.8k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
3074 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
3075 | 15.8k | } |
3076 | 15.8k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::short_code() const { |
3077 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.short_code) |
3078 | 15.8k | return _internal_short_code(); |
3079 | 15.8k | } |
3080 | | inline void PhoneMetadata::unsafe_arena_set_allocated_short_code( |
3081 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* short_code) { |
3082 | 0 | if (GetArena() == nullptr) { |
3083 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(short_code_); |
3084 | 0 | } |
3085 | 0 | short_code_ = short_code; |
3086 | 0 | if (short_code) { |
3087 | 0 | _has_bits_[0] |= 0x00200000u; |
3088 | 0 | } else { |
3089 | 0 | _has_bits_[0] &= ~0x00200000u; |
3090 | 0 | } |
3091 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.short_code) |
3092 | 0 | } |
3093 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_short_code() { |
3094 | 0 | _has_bits_[0] &= ~0x00200000u; |
3095 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = short_code_; |
3096 | 0 | short_code_ = nullptr; |
3097 | 0 | if (GetArena() != nullptr) { |
3098 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3099 | 0 | } |
3100 | 0 | return temp; |
3101 | 0 | } |
3102 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_short_code() { |
3103 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.short_code) |
3104 | 0 | _has_bits_[0] &= ~0x00200000u; |
3105 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = short_code_; |
3106 | 0 | short_code_ = nullptr; |
3107 | 0 | return temp; |
3108 | 0 | } |
3109 | 749k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_short_code() { |
3110 | 749k | _has_bits_[0] |= 0x00200000u; |
3111 | 749k | if (short_code_ == nullptr) { |
3112 | 749k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3113 | 749k | short_code_ = p; |
3114 | 749k | } |
3115 | 749k | return short_code_; |
3116 | 749k | } |
3117 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_short_code() { |
3118 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.short_code) |
3119 | 0 | return _internal_mutable_short_code(); |
3120 | 0 | } |
3121 | 0 | inline void PhoneMetadata::set_allocated_short_code(::i18n::phonenumbers::PhoneNumberDesc* short_code) { |
3122 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3123 | 0 | if (message_arena == nullptr) { |
3124 | 0 | delete short_code_; |
3125 | 0 | } |
3126 | 0 | if (short_code) { |
3127 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3128 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(short_code); |
3129 | 0 | if (message_arena != submessage_arena) { |
3130 | 0 | short_code = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3131 | 0 | message_arena, short_code, submessage_arena); |
3132 | 0 | } |
3133 | 0 | _has_bits_[0] |= 0x00200000u; |
3134 | 0 | } else { |
3135 | 0 | _has_bits_[0] &= ~0x00200000u; |
3136 | 0 | } |
3137 | 0 | short_code_ = short_code; |
3138 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.short_code) |
3139 | 0 | } |
3140 | | |
3141 | | // optional .i18n.phonenumbers.PhoneNumberDesc standard_rate = 30; |
3142 | 1.01k | inline bool PhoneMetadata::_internal_has_standard_rate() const { |
3143 | 1.01k | bool value = (_has_bits_[0] & 0x00400000u) != 0; |
3144 | 1.01k | PROTOBUF_ASSUME(!value || standard_rate_ != nullptr); |
3145 | 1.01k | return value; |
3146 | 1.01k | } |
3147 | 0 | inline bool PhoneMetadata::has_standard_rate() const { |
3148 | 0 | return _internal_has_standard_rate(); |
3149 | 0 | } |
3150 | 0 | inline void PhoneMetadata::clear_standard_rate() { |
3151 | 0 | if (standard_rate_ != nullptr) standard_rate_->Clear(); |
3152 | 0 | _has_bits_[0] &= ~0x00400000u; |
3153 | 0 | } |
3154 | 1.03k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_standard_rate() const { |
3155 | 1.03k | const ::i18n::phonenumbers::PhoneNumberDesc* p = standard_rate_; |
3156 | 1.03k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
3157 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
3158 | 1.03k | } |
3159 | 1.03k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::standard_rate() const { |
3160 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.standard_rate) |
3161 | 1.03k | return _internal_standard_rate(); |
3162 | 1.03k | } |
3163 | | inline void PhoneMetadata::unsafe_arena_set_allocated_standard_rate( |
3164 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* standard_rate) { |
3165 | 0 | if (GetArena() == nullptr) { |
3166 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(standard_rate_); |
3167 | 0 | } |
3168 | 0 | standard_rate_ = standard_rate; |
3169 | 0 | if (standard_rate) { |
3170 | 0 | _has_bits_[0] |= 0x00400000u; |
3171 | 0 | } else { |
3172 | 0 | _has_bits_[0] &= ~0x00400000u; |
3173 | 0 | } |
3174 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.standard_rate) |
3175 | 0 | } |
3176 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_standard_rate() { |
3177 | 0 | _has_bits_[0] &= ~0x00400000u; |
3178 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = standard_rate_; |
3179 | 0 | standard_rate_ = nullptr; |
3180 | 0 | if (GetArena() != nullptr) { |
3181 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3182 | 0 | } |
3183 | 0 | return temp; |
3184 | 0 | } |
3185 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_standard_rate() { |
3186 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.standard_rate) |
3187 | 0 | _has_bits_[0] &= ~0x00400000u; |
3188 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = standard_rate_; |
3189 | 0 | standard_rate_ = nullptr; |
3190 | 0 | return temp; |
3191 | 0 | } |
3192 | 749k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_standard_rate() { |
3193 | 749k | _has_bits_[0] |= 0x00400000u; |
3194 | 749k | if (standard_rate_ == nullptr) { |
3195 | 749k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3196 | 749k | standard_rate_ = p; |
3197 | 749k | } |
3198 | 749k | return standard_rate_; |
3199 | 749k | } |
3200 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_standard_rate() { |
3201 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.standard_rate) |
3202 | 0 | return _internal_mutable_standard_rate(); |
3203 | 0 | } |
3204 | 0 | inline void PhoneMetadata::set_allocated_standard_rate(::i18n::phonenumbers::PhoneNumberDesc* standard_rate) { |
3205 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3206 | 0 | if (message_arena == nullptr) { |
3207 | 0 | delete standard_rate_; |
3208 | 0 | } |
3209 | 0 | if (standard_rate) { |
3210 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3211 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(standard_rate); |
3212 | 0 | if (message_arena != submessage_arena) { |
3213 | 0 | standard_rate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3214 | 0 | message_arena, standard_rate, submessage_arena); |
3215 | 0 | } |
3216 | 0 | _has_bits_[0] |= 0x00400000u; |
3217 | 0 | } else { |
3218 | 0 | _has_bits_[0] &= ~0x00400000u; |
3219 | 0 | } |
3220 | 0 | standard_rate_ = standard_rate; |
3221 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.standard_rate) |
3222 | 0 | } |
3223 | | |
3224 | | // optional .i18n.phonenumbers.PhoneNumberDesc carrier_specific = 31; |
3225 | 1.01k | inline bool PhoneMetadata::_internal_has_carrier_specific() const { |
3226 | 1.01k | bool value = (_has_bits_[0] & 0x00800000u) != 0; |
3227 | 1.01k | PROTOBUF_ASSUME(!value || carrier_specific_ != nullptr); |
3228 | 1.01k | return value; |
3229 | 1.01k | } |
3230 | 0 | inline bool PhoneMetadata::has_carrier_specific() const { |
3231 | 0 | return _internal_has_carrier_specific(); |
3232 | 0 | } |
3233 | 0 | inline void PhoneMetadata::clear_carrier_specific() { |
3234 | 0 | if (carrier_specific_ != nullptr) carrier_specific_->Clear(); |
3235 | 0 | _has_bits_[0] &= ~0x00800000u; |
3236 | 0 | } |
3237 | 744 | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_carrier_specific() const { |
3238 | 744 | const ::i18n::phonenumbers::PhoneNumberDesc* p = carrier_specific_; |
3239 | 744 | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
3240 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
3241 | 744 | } |
3242 | 744 | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::carrier_specific() const { |
3243 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.carrier_specific) |
3244 | 744 | return _internal_carrier_specific(); |
3245 | 744 | } |
3246 | | inline void PhoneMetadata::unsafe_arena_set_allocated_carrier_specific( |
3247 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* carrier_specific) { |
3248 | 0 | if (GetArena() == nullptr) { |
3249 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(carrier_specific_); |
3250 | 0 | } |
3251 | 0 | carrier_specific_ = carrier_specific; |
3252 | 0 | if (carrier_specific) { |
3253 | 0 | _has_bits_[0] |= 0x00800000u; |
3254 | 0 | } else { |
3255 | 0 | _has_bits_[0] &= ~0x00800000u; |
3256 | 0 | } |
3257 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.carrier_specific) |
3258 | 0 | } |
3259 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_carrier_specific() { |
3260 | 0 | _has_bits_[0] &= ~0x00800000u; |
3261 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = carrier_specific_; |
3262 | 0 | carrier_specific_ = nullptr; |
3263 | 0 | if (GetArena() != nullptr) { |
3264 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3265 | 0 | } |
3266 | 0 | return temp; |
3267 | 0 | } |
3268 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_carrier_specific() { |
3269 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.carrier_specific) |
3270 | 0 | _has_bits_[0] &= ~0x00800000u; |
3271 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = carrier_specific_; |
3272 | 0 | carrier_specific_ = nullptr; |
3273 | 0 | return temp; |
3274 | 0 | } |
3275 | 749k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_carrier_specific() { |
3276 | 749k | _has_bits_[0] |= 0x00800000u; |
3277 | 749k | if (carrier_specific_ == nullptr) { |
3278 | 749k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3279 | 749k | carrier_specific_ = p; |
3280 | 749k | } |
3281 | 749k | return carrier_specific_; |
3282 | 749k | } |
3283 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_carrier_specific() { |
3284 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.carrier_specific) |
3285 | 0 | return _internal_mutable_carrier_specific(); |
3286 | 0 | } |
3287 | 0 | inline void PhoneMetadata::set_allocated_carrier_specific(::i18n::phonenumbers::PhoneNumberDesc* carrier_specific) { |
3288 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3289 | 0 | if (message_arena == nullptr) { |
3290 | 0 | delete carrier_specific_; |
3291 | 0 | } |
3292 | 0 | if (carrier_specific) { |
3293 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3294 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(carrier_specific); |
3295 | 0 | if (message_arena != submessage_arena) { |
3296 | 0 | carrier_specific = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3297 | 0 | message_arena, carrier_specific, submessage_arena); |
3298 | 0 | } |
3299 | 0 | _has_bits_[0] |= 0x00800000u; |
3300 | 0 | } else { |
3301 | 0 | _has_bits_[0] &= ~0x00800000u; |
3302 | 0 | } |
3303 | 0 | carrier_specific_ = carrier_specific; |
3304 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.carrier_specific) |
3305 | 0 | } |
3306 | | |
3307 | | // optional .i18n.phonenumbers.PhoneNumberDesc sms_services = 33; |
3308 | 1.01k | inline bool PhoneMetadata::_internal_has_sms_services() const { |
3309 | 1.01k | bool value = (_has_bits_[0] & 0x01000000u) != 0; |
3310 | 1.01k | PROTOBUF_ASSUME(!value || sms_services_ != nullptr); |
3311 | 1.01k | return value; |
3312 | 1.01k | } |
3313 | 0 | inline bool PhoneMetadata::has_sms_services() const { |
3314 | 0 | return _internal_has_sms_services(); |
3315 | 0 | } |
3316 | 0 | inline void PhoneMetadata::clear_sms_services() { |
3317 | 0 | if (sms_services_ != nullptr) sms_services_->Clear(); |
3318 | 0 | _has_bits_[0] &= ~0x01000000u; |
3319 | 0 | } |
3320 | 248 | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_sms_services() const { |
3321 | 248 | const ::i18n::phonenumbers::PhoneNumberDesc* p = sms_services_; |
3322 | 248 | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
3323 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
3324 | 248 | } |
3325 | 248 | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::sms_services() const { |
3326 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.sms_services) |
3327 | 248 | return _internal_sms_services(); |
3328 | 248 | } |
3329 | | inline void PhoneMetadata::unsafe_arena_set_allocated_sms_services( |
3330 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* sms_services) { |
3331 | 0 | if (GetArena() == nullptr) { |
3332 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sms_services_); |
3333 | 0 | } |
3334 | 0 | sms_services_ = sms_services; |
3335 | 0 | if (sms_services) { |
3336 | 0 | _has_bits_[0] |= 0x01000000u; |
3337 | 0 | } else { |
3338 | 0 | _has_bits_[0] &= ~0x01000000u; |
3339 | 0 | } |
3340 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.sms_services) |
3341 | 0 | } |
3342 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_sms_services() { |
3343 | 0 | _has_bits_[0] &= ~0x01000000u; |
3344 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = sms_services_; |
3345 | 0 | sms_services_ = nullptr; |
3346 | 0 | if (GetArena() != nullptr) { |
3347 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3348 | 0 | } |
3349 | 0 | return temp; |
3350 | 0 | } |
3351 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_sms_services() { |
3352 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.sms_services) |
3353 | 0 | _has_bits_[0] &= ~0x01000000u; |
3354 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = sms_services_; |
3355 | 0 | sms_services_ = nullptr; |
3356 | 0 | return temp; |
3357 | 0 | } |
3358 | 749k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_sms_services() { |
3359 | 749k | _has_bits_[0] |= 0x01000000u; |
3360 | 749k | if (sms_services_ == nullptr) { |
3361 | 749k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3362 | 749k | sms_services_ = p; |
3363 | 749k | } |
3364 | 749k | return sms_services_; |
3365 | 749k | } |
3366 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_sms_services() { |
3367 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.sms_services) |
3368 | 0 | return _internal_mutable_sms_services(); |
3369 | 0 | } |
3370 | 0 | inline void PhoneMetadata::set_allocated_sms_services(::i18n::phonenumbers::PhoneNumberDesc* sms_services) { |
3371 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3372 | 0 | if (message_arena == nullptr) { |
3373 | 0 | delete sms_services_; |
3374 | 0 | } |
3375 | 0 | if (sms_services) { |
3376 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3377 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(sms_services); |
3378 | 0 | if (message_arena != submessage_arena) { |
3379 | 0 | sms_services = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3380 | 0 | message_arena, sms_services, submessage_arena); |
3381 | 0 | } |
3382 | 0 | _has_bits_[0] |= 0x01000000u; |
3383 | 0 | } else { |
3384 | 0 | _has_bits_[0] &= ~0x01000000u; |
3385 | 0 | } |
3386 | 0 | sms_services_ = sms_services; |
3387 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.sms_services) |
3388 | 0 | } |
3389 | | |
3390 | | // optional .i18n.phonenumbers.PhoneNumberDesc no_international_dialling = 24; |
3391 | 1.01k | inline bool PhoneMetadata::_internal_has_no_international_dialling() const { |
3392 | 1.01k | bool value = (_has_bits_[0] & 0x00020000u) != 0; |
3393 | 1.01k | PROTOBUF_ASSUME(!value || no_international_dialling_ != nullptr); |
3394 | 1.01k | return value; |
3395 | 1.01k | } |
3396 | 0 | inline bool PhoneMetadata::has_no_international_dialling() const { |
3397 | 0 | return _internal_has_no_international_dialling(); |
3398 | 0 | } |
3399 | 0 | inline void PhoneMetadata::clear_no_international_dialling() { |
3400 | 0 | if (no_international_dialling_ != nullptr) no_international_dialling_->Clear(); |
3401 | 0 | _has_bits_[0] &= ~0x00020000u; |
3402 | 0 | } |
3403 | 5.22k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::_internal_no_international_dialling() const { |
3404 | 5.22k | const ::i18n::phonenumbers::PhoneNumberDesc* p = no_international_dialling_; |
3405 | 5.22k | return p != nullptr ? *p : reinterpret_cast<const ::i18n::phonenumbers::PhoneNumberDesc&>( |
3406 | 0 | ::i18n::phonenumbers::_PhoneNumberDesc_default_instance_); |
3407 | 5.22k | } |
3408 | 5.22k | inline const ::i18n::phonenumbers::PhoneNumberDesc& PhoneMetadata::no_international_dialling() const { |
3409 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.no_international_dialling) |
3410 | 5.22k | return _internal_no_international_dialling(); |
3411 | 5.22k | } |
3412 | | inline void PhoneMetadata::unsafe_arena_set_allocated_no_international_dialling( |
3413 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling) { |
3414 | 0 | if (GetArena() == nullptr) { |
3415 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(no_international_dialling_); |
3416 | 0 | } |
3417 | 0 | no_international_dialling_ = no_international_dialling; |
3418 | 0 | if (no_international_dialling) { |
3419 | 0 | _has_bits_[0] |= 0x00020000u; |
3420 | 0 | } else { |
3421 | 0 | _has_bits_[0] &= ~0x00020000u; |
3422 | 0 | } |
3423 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:i18n.phonenumbers.PhoneMetadata.no_international_dialling) |
3424 | 0 | } |
3425 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::release_no_international_dialling() { |
3426 | 0 | _has_bits_[0] &= ~0x00020000u; |
3427 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = no_international_dialling_; |
3428 | 0 | no_international_dialling_ = nullptr; |
3429 | 0 | if (GetArena() != nullptr) { |
3430 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3431 | 0 | } |
3432 | 0 | return temp; |
3433 | 0 | } |
3434 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::unsafe_arena_release_no_international_dialling() { |
3435 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.no_international_dialling) |
3436 | 0 | _has_bits_[0] &= ~0x00020000u; |
3437 | 0 | ::i18n::phonenumbers::PhoneNumberDesc* temp = no_international_dialling_; |
3438 | 0 | no_international_dialling_ = nullptr; |
3439 | 0 | return temp; |
3440 | 0 | } |
3441 | 1.01k | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::_internal_mutable_no_international_dialling() { |
3442 | 1.01k | _has_bits_[0] |= 0x00020000u; |
3443 | 1.01k | if (no_international_dialling_ == nullptr) { |
3444 | 1.01k | auto* p = CreateMaybeMessage<::i18n::phonenumbers::PhoneNumberDesc>(GetArena()); |
3445 | 1.01k | no_international_dialling_ = p; |
3446 | 1.01k | } |
3447 | 1.01k | return no_international_dialling_; |
3448 | 1.01k | } |
3449 | 0 | inline ::i18n::phonenumbers::PhoneNumberDesc* PhoneMetadata::mutable_no_international_dialling() { |
3450 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.no_international_dialling) |
3451 | 0 | return _internal_mutable_no_international_dialling(); |
3452 | 0 | } |
3453 | 0 | inline void PhoneMetadata::set_allocated_no_international_dialling(::i18n::phonenumbers::PhoneNumberDesc* no_international_dialling) { |
3454 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); |
3455 | 0 | if (message_arena == nullptr) { |
3456 | 0 | delete no_international_dialling_; |
3457 | 0 | } |
3458 | 0 | if (no_international_dialling) { |
3459 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3460 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(no_international_dialling); |
3461 | 0 | if (message_arena != submessage_arena) { |
3462 | 0 | no_international_dialling = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3463 | 0 | message_arena, no_international_dialling, submessage_arena); |
3464 | 0 | } |
3465 | 0 | _has_bits_[0] |= 0x00020000u; |
3466 | 0 | } else { |
3467 | 0 | _has_bits_[0] &= ~0x00020000u; |
3468 | 0 | } |
3469 | 0 | no_international_dialling_ = no_international_dialling; |
3470 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.no_international_dialling) |
3471 | 0 | } |
3472 | | |
3473 | | // required string id = 9; |
3474 | 1.01k | inline bool PhoneMetadata::_internal_has_id() const { |
3475 | 1.01k | bool value = (_has_bits_[0] & 0x00000001u) != 0; |
3476 | 1.01k | return value; |
3477 | 1.01k | } |
3478 | 0 | inline bool PhoneMetadata::has_id() const { |
3479 | 0 | return _internal_has_id(); |
3480 | 0 | } |
3481 | 0 | inline void PhoneMetadata::clear_id() { |
3482 | 0 | id_.ClearToEmpty(); |
3483 | 0 | _has_bits_[0] &= ~0x00000001u; |
3484 | 0 | } |
3485 | 750k | inline const std::string& PhoneMetadata::id() const { |
3486 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.id) |
3487 | 750k | return _internal_id(); |
3488 | 750k | } |
3489 | 0 | inline void PhoneMetadata::set_id(const std::string& value) { |
3490 | 0 | _internal_set_id(value); |
3491 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.id) |
3492 | 0 | } |
3493 | 0 | inline std::string* PhoneMetadata::mutable_id() { |
3494 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.id) |
3495 | 0 | return _internal_mutable_id(); |
3496 | 0 | } |
3497 | 751k | inline const std::string& PhoneMetadata::_internal_id() const { |
3498 | 751k | return id_.Get(); |
3499 | 751k | } |
3500 | 0 | inline void PhoneMetadata::_internal_set_id(const std::string& value) { |
3501 | 0 | _has_bits_[0] |= 0x00000001u; |
3502 | 0 | id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3503 | 0 | } |
3504 | 0 | inline void PhoneMetadata::set_id(std::string&& value) { |
3505 | 0 | _has_bits_[0] |= 0x00000001u; |
3506 | 0 | id_.Set( |
3507 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3508 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.id) |
3509 | 0 | } |
3510 | 0 | inline void PhoneMetadata::set_id(const char* value) { |
3511 | 0 | GOOGLE_DCHECK(value != nullptr); |
3512 | 0 | _has_bits_[0] |= 0x00000001u; |
3513 | 0 | id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3514 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.id) |
3515 | 0 | } |
3516 | | inline void PhoneMetadata::set_id(const char* value, |
3517 | 0 | size_t size) { |
3518 | 0 | _has_bits_[0] |= 0x00000001u; |
3519 | 0 | id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3520 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3521 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.id) |
3522 | 0 | } |
3523 | 750k | inline std::string* PhoneMetadata::_internal_mutable_id() { |
3524 | 750k | _has_bits_[0] |= 0x00000001u; |
3525 | 750k | return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3526 | 750k | } |
3527 | 0 | inline std::string* PhoneMetadata::release_id() { |
3528 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.id) |
3529 | 0 | if (!_internal_has_id()) { |
3530 | 0 | return nullptr; |
3531 | 0 | } |
3532 | 0 | _has_bits_[0] &= ~0x00000001u; |
3533 | 0 | return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3534 | 0 | } |
3535 | 0 | inline void PhoneMetadata::set_allocated_id(std::string* id) { |
3536 | 0 | if (id != nullptr) { |
3537 | 0 | _has_bits_[0] |= 0x00000001u; |
3538 | 0 | } else { |
3539 | 0 | _has_bits_[0] &= ~0x00000001u; |
3540 | 0 | } |
3541 | 0 | id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, |
3542 | 0 | GetArena()); |
3543 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.id) |
3544 | 0 | } |
3545 | | |
3546 | | // optional int32 country_code = 10; |
3547 | 0 | inline bool PhoneMetadata::_internal_has_country_code() const { |
3548 | 0 | bool value = (_has_bits_[0] & 0x02000000u) != 0; |
3549 | 0 | return value; |
3550 | 0 | } |
3551 | 0 | inline bool PhoneMetadata::has_country_code() const { |
3552 | 0 | return _internal_has_country_code(); |
3553 | 0 | } |
3554 | 0 | inline void PhoneMetadata::clear_country_code() { |
3555 | 0 | country_code_ = 0; |
3556 | 0 | _has_bits_[0] &= ~0x02000000u; |
3557 | 0 | } |
3558 | 218k | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneMetadata::_internal_country_code() const { |
3559 | 218k | return country_code_; |
3560 | 218k | } |
3561 | 218k | inline ::PROTOBUF_NAMESPACE_ID::int32 PhoneMetadata::country_code() const { |
3562 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.country_code) |
3563 | 218k | return _internal_country_code(); |
3564 | 218k | } |
3565 | 0 | inline void PhoneMetadata::_internal_set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value) { |
3566 | 0 | _has_bits_[0] |= 0x02000000u; |
3567 | 0 | country_code_ = value; |
3568 | 0 | } |
3569 | 0 | inline void PhoneMetadata::set_country_code(::PROTOBUF_NAMESPACE_ID::int32 value) { |
3570 | 0 | _internal_set_country_code(value); |
3571 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.country_code) |
3572 | 0 | } |
3573 | | |
3574 | | // optional string international_prefix = 11; |
3575 | 1.01k | inline bool PhoneMetadata::_internal_has_international_prefix() const { |
3576 | 1.01k | bool value = (_has_bits_[0] & 0x00000002u) != 0; |
3577 | 1.01k | return value; |
3578 | 1.01k | } |
3579 | 0 | inline bool PhoneMetadata::has_international_prefix() const { |
3580 | 0 | return _internal_has_international_prefix(); |
3581 | 0 | } |
3582 | 0 | inline void PhoneMetadata::clear_international_prefix() { |
3583 | 0 | international_prefix_.ClearToEmpty(); |
3584 | 0 | _has_bits_[0] &= ~0x00000002u; |
3585 | 0 | } |
3586 | 91.3k | inline const std::string& PhoneMetadata::international_prefix() const { |
3587 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3588 | 91.3k | return _internal_international_prefix(); |
3589 | 91.3k | } |
3590 | 0 | inline void PhoneMetadata::set_international_prefix(const std::string& value) { |
3591 | 0 | _internal_set_international_prefix(value); |
3592 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3593 | 0 | } |
3594 | 0 | inline std::string* PhoneMetadata::mutable_international_prefix() { |
3595 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3596 | 0 | return _internal_mutable_international_prefix(); |
3597 | 0 | } |
3598 | 92.3k | inline const std::string& PhoneMetadata::_internal_international_prefix() const { |
3599 | 92.3k | return international_prefix_.Get(); |
3600 | 92.3k | } |
3601 | 0 | inline void PhoneMetadata::_internal_set_international_prefix(const std::string& value) { |
3602 | 0 | _has_bits_[0] |= 0x00000002u; |
3603 | 0 | international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3604 | 0 | } |
3605 | 0 | inline void PhoneMetadata::set_international_prefix(std::string&& value) { |
3606 | 0 | _has_bits_[0] |= 0x00000002u; |
3607 | 0 | international_prefix_.Set( |
3608 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3609 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3610 | 0 | } |
3611 | 1.72k | inline void PhoneMetadata::set_international_prefix(const char* value) { |
3612 | 1.72k | GOOGLE_DCHECK(value != nullptr); |
3613 | 1.72k | _has_bits_[0] |= 0x00000002u; |
3614 | 1.72k | international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3615 | | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3616 | 1.72k | } |
3617 | | inline void PhoneMetadata::set_international_prefix(const char* value, |
3618 | 0 | size_t size) { |
3619 | 0 | _has_bits_[0] |= 0x00000002u; |
3620 | 0 | international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3621 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3622 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3623 | 0 | } |
3624 | 980 | inline std::string* PhoneMetadata::_internal_mutable_international_prefix() { |
3625 | 980 | _has_bits_[0] |= 0x00000002u; |
3626 | 980 | return international_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3627 | 980 | } |
3628 | 0 | inline std::string* PhoneMetadata::release_international_prefix() { |
3629 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3630 | 0 | if (!_internal_has_international_prefix()) { |
3631 | 0 | return nullptr; |
3632 | 0 | } |
3633 | 0 | _has_bits_[0] &= ~0x00000002u; |
3634 | 0 | return international_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3635 | 0 | } |
3636 | 0 | inline void PhoneMetadata::set_allocated_international_prefix(std::string* international_prefix) { |
3637 | 0 | if (international_prefix != nullptr) { |
3638 | 0 | _has_bits_[0] |= 0x00000002u; |
3639 | 0 | } else { |
3640 | 0 | _has_bits_[0] &= ~0x00000002u; |
3641 | 0 | } |
3642 | 0 | international_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), international_prefix, |
3643 | 0 | GetArena()); |
3644 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.international_prefix) |
3645 | 0 | } |
3646 | | |
3647 | | // optional string preferred_international_prefix = 17; |
3648 | 1.15k | inline bool PhoneMetadata::_internal_has_preferred_international_prefix() const { |
3649 | 1.15k | bool value = (_has_bits_[0] & 0x00000040u) != 0; |
3650 | 1.15k | return value; |
3651 | 1.15k | } |
3652 | 135 | inline bool PhoneMetadata::has_preferred_international_prefix() const { |
3653 | 135 | return _internal_has_preferred_international_prefix(); |
3654 | 135 | } |
3655 | 0 | inline void PhoneMetadata::clear_preferred_international_prefix() { |
3656 | 0 | preferred_international_prefix_.ClearToEmpty(); |
3657 | 0 | _has_bits_[0] &= ~0x00000040u; |
3658 | 0 | } |
3659 | 59 | inline const std::string& PhoneMetadata::preferred_international_prefix() const { |
3660 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3661 | 59 | return _internal_preferred_international_prefix(); |
3662 | 59 | } |
3663 | 0 | inline void PhoneMetadata::set_preferred_international_prefix(const std::string& value) { |
3664 | 0 | _internal_set_preferred_international_prefix(value); |
3665 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3666 | 0 | } |
3667 | 0 | inline std::string* PhoneMetadata::mutable_preferred_international_prefix() { |
3668 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3669 | 0 | return _internal_mutable_preferred_international_prefix(); |
3670 | 0 | } |
3671 | 159 | inline const std::string& PhoneMetadata::_internal_preferred_international_prefix() const { |
3672 | 159 | return preferred_international_prefix_.Get(); |
3673 | 159 | } |
3674 | 0 | inline void PhoneMetadata::_internal_set_preferred_international_prefix(const std::string& value) { |
3675 | 0 | _has_bits_[0] |= 0x00000040u; |
3676 | 0 | preferred_international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3677 | 0 | } |
3678 | 0 | inline void PhoneMetadata::set_preferred_international_prefix(std::string&& value) { |
3679 | 0 | _has_bits_[0] |= 0x00000040u; |
3680 | 0 | preferred_international_prefix_.Set( |
3681 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3682 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3683 | 0 | } |
3684 | 0 | inline void PhoneMetadata::set_preferred_international_prefix(const char* value) { |
3685 | 0 | GOOGLE_DCHECK(value != nullptr); |
3686 | 0 | _has_bits_[0] |= 0x00000040u; |
3687 | 0 | preferred_international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3688 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3689 | 0 | } |
3690 | | inline void PhoneMetadata::set_preferred_international_prefix(const char* value, |
3691 | 0 | size_t size) { |
3692 | 0 | _has_bits_[0] |= 0x00000040u; |
3693 | 0 | preferred_international_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3694 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3695 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3696 | 0 | } |
3697 | 100 | inline std::string* PhoneMetadata::_internal_mutable_preferred_international_prefix() { |
3698 | 100 | _has_bits_[0] |= 0x00000040u; |
3699 | 100 | return preferred_international_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3700 | 100 | } |
3701 | 0 | inline std::string* PhoneMetadata::release_preferred_international_prefix() { |
3702 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3703 | 0 | if (!_internal_has_preferred_international_prefix()) { |
3704 | 0 | return nullptr; |
3705 | 0 | } |
3706 | 0 | _has_bits_[0] &= ~0x00000040u; |
3707 | 0 | return preferred_international_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3708 | 0 | } |
3709 | 0 | inline void PhoneMetadata::set_allocated_preferred_international_prefix(std::string* preferred_international_prefix) { |
3710 | 0 | if (preferred_international_prefix != nullptr) { |
3711 | 0 | _has_bits_[0] |= 0x00000040u; |
3712 | 0 | } else { |
3713 | 0 | _has_bits_[0] &= ~0x00000040u; |
3714 | 0 | } |
3715 | 0 | preferred_international_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), preferred_international_prefix, |
3716 | 0 | GetArena()); |
3717 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.preferred_international_prefix) |
3718 | 0 | } |
3719 | | |
3720 | | // optional string national_prefix = 12; |
3721 | 5.95k | inline bool PhoneMetadata::_internal_has_national_prefix() const { |
3722 | 5.95k | bool value = (_has_bits_[0] & 0x00000004u) != 0; |
3723 | 5.95k | return value; |
3724 | 5.95k | } |
3725 | 4.94k | inline bool PhoneMetadata::has_national_prefix() const { |
3726 | 4.94k | return _internal_has_national_prefix(); |
3727 | 4.94k | } |
3728 | 0 | inline void PhoneMetadata::clear_national_prefix() { |
3729 | 0 | national_prefix_.ClearToEmpty(); |
3730 | 0 | _has_bits_[0] &= ~0x00000004u; |
3731 | 0 | } |
3732 | 17.5k | inline const std::string& PhoneMetadata::national_prefix() const { |
3733 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3734 | 17.5k | return _internal_national_prefix(); |
3735 | 17.5k | } |
3736 | 0 | inline void PhoneMetadata::set_national_prefix(const std::string& value) { |
3737 | 0 | _internal_set_national_prefix(value); |
3738 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3739 | 0 | } |
3740 | 0 | inline std::string* PhoneMetadata::mutable_national_prefix() { |
3741 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3742 | 0 | return _internal_mutable_national_prefix(); |
3743 | 0 | } |
3744 | 18.1k | inline const std::string& PhoneMetadata::_internal_national_prefix() const { |
3745 | 18.1k | return national_prefix_.Get(); |
3746 | 18.1k | } |
3747 | 0 | inline void PhoneMetadata::_internal_set_national_prefix(const std::string& value) { |
3748 | 0 | _has_bits_[0] |= 0x00000004u; |
3749 | 0 | national_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3750 | 0 | } |
3751 | 0 | inline void PhoneMetadata::set_national_prefix(std::string&& value) { |
3752 | 0 | _has_bits_[0] |= 0x00000004u; |
3753 | 0 | national_prefix_.Set( |
3754 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3755 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3756 | 0 | } |
3757 | 0 | inline void PhoneMetadata::set_national_prefix(const char* value) { |
3758 | 0 | GOOGLE_DCHECK(value != nullptr); |
3759 | 0 | _has_bits_[0] |= 0x00000004u; |
3760 | 0 | national_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3761 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3762 | 0 | } |
3763 | | inline void PhoneMetadata::set_national_prefix(const char* value, |
3764 | 0 | size_t size) { |
3765 | 0 | _has_bits_[0] |= 0x00000004u; |
3766 | 0 | national_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3767 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3768 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3769 | 0 | } |
3770 | 576 | inline std::string* PhoneMetadata::_internal_mutable_national_prefix() { |
3771 | 576 | _has_bits_[0] |= 0x00000004u; |
3772 | 576 | return national_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3773 | 576 | } |
3774 | 0 | inline std::string* PhoneMetadata::release_national_prefix() { |
3775 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3776 | 0 | if (!_internal_has_national_prefix()) { |
3777 | 0 | return nullptr; |
3778 | 0 | } |
3779 | 0 | _has_bits_[0] &= ~0x00000004u; |
3780 | 0 | return national_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3781 | 0 | } |
3782 | 0 | inline void PhoneMetadata::set_allocated_national_prefix(std::string* national_prefix) { |
3783 | 0 | if (national_prefix != nullptr) { |
3784 | 0 | _has_bits_[0] |= 0x00000004u; |
3785 | 0 | } else { |
3786 | 0 | _has_bits_[0] &= ~0x00000004u; |
3787 | 0 | } |
3788 | 0 | national_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_prefix, |
3789 | 0 | GetArena()); |
3790 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix) |
3791 | 0 | } |
3792 | | |
3793 | | // optional string preferred_extn_prefix = 13; |
3794 | 2.19k | inline bool PhoneMetadata::_internal_has_preferred_extn_prefix() const { |
3795 | 2.19k | bool value = (_has_bits_[0] & 0x00000008u) != 0; |
3796 | 2.19k | return value; |
3797 | 2.19k | } |
3798 | 1.18k | inline bool PhoneMetadata::has_preferred_extn_prefix() const { |
3799 | 1.18k | return _internal_has_preferred_extn_prefix(); |
3800 | 1.18k | } |
3801 | 0 | inline void PhoneMetadata::clear_preferred_extn_prefix() { |
3802 | 0 | preferred_extn_prefix_.ClearToEmpty(); |
3803 | 0 | _has_bits_[0] &= ~0x00000008u; |
3804 | 0 | } |
3805 | 188 | inline const std::string& PhoneMetadata::preferred_extn_prefix() const { |
3806 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3807 | 188 | return _internal_preferred_extn_prefix(); |
3808 | 188 | } |
3809 | 0 | inline void PhoneMetadata::set_preferred_extn_prefix(const std::string& value) { |
3810 | 0 | _internal_set_preferred_extn_prefix(value); |
3811 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3812 | 0 | } |
3813 | 0 | inline std::string* PhoneMetadata::mutable_preferred_extn_prefix() { |
3814 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3815 | 0 | return _internal_mutable_preferred_extn_prefix(); |
3816 | 0 | } |
3817 | 208 | inline const std::string& PhoneMetadata::_internal_preferred_extn_prefix() const { |
3818 | 208 | return preferred_extn_prefix_.Get(); |
3819 | 208 | } |
3820 | 0 | inline void PhoneMetadata::_internal_set_preferred_extn_prefix(const std::string& value) { |
3821 | 0 | _has_bits_[0] |= 0x00000008u; |
3822 | 0 | preferred_extn_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3823 | 0 | } |
3824 | 0 | inline void PhoneMetadata::set_preferred_extn_prefix(std::string&& value) { |
3825 | 0 | _has_bits_[0] |= 0x00000008u; |
3826 | 0 | preferred_extn_prefix_.Set( |
3827 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3828 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3829 | 0 | } |
3830 | 0 | inline void PhoneMetadata::set_preferred_extn_prefix(const char* value) { |
3831 | 0 | GOOGLE_DCHECK(value != nullptr); |
3832 | 0 | _has_bits_[0] |= 0x00000008u; |
3833 | 0 | preferred_extn_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3834 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3835 | 0 | } |
3836 | | inline void PhoneMetadata::set_preferred_extn_prefix(const char* value, |
3837 | 0 | size_t size) { |
3838 | 0 | _has_bits_[0] |= 0x00000008u; |
3839 | 0 | preferred_extn_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3840 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3841 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3842 | 0 | } |
3843 | 20 | inline std::string* PhoneMetadata::_internal_mutable_preferred_extn_prefix() { |
3844 | 20 | _has_bits_[0] |= 0x00000008u; |
3845 | 20 | return preferred_extn_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3846 | 20 | } |
3847 | 0 | inline std::string* PhoneMetadata::release_preferred_extn_prefix() { |
3848 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3849 | 0 | if (!_internal_has_preferred_extn_prefix()) { |
3850 | 0 | return nullptr; |
3851 | 0 | } |
3852 | 0 | _has_bits_[0] &= ~0x00000008u; |
3853 | 0 | return preferred_extn_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3854 | 0 | } |
3855 | 0 | inline void PhoneMetadata::set_allocated_preferred_extn_prefix(std::string* preferred_extn_prefix) { |
3856 | 0 | if (preferred_extn_prefix != nullptr) { |
3857 | 0 | _has_bits_[0] |= 0x00000008u; |
3858 | 0 | } else { |
3859 | 0 | _has_bits_[0] &= ~0x00000008u; |
3860 | 0 | } |
3861 | 0 | preferred_extn_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), preferred_extn_prefix, |
3862 | 0 | GetArena()); |
3863 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.preferred_extn_prefix) |
3864 | 0 | } |
3865 | | |
3866 | | // optional string national_prefix_for_parsing = 15; |
3867 | 3.59k | inline bool PhoneMetadata::_internal_has_national_prefix_for_parsing() const { |
3868 | 3.59k | bool value = (_has_bits_[0] & 0x00000010u) != 0; |
3869 | 3.59k | return value; |
3870 | 3.59k | } |
3871 | 2.57k | inline bool PhoneMetadata::has_national_prefix_for_parsing() const { |
3872 | 2.57k | return _internal_has_national_prefix_for_parsing(); |
3873 | 2.57k | } |
3874 | 0 | inline void PhoneMetadata::clear_national_prefix_for_parsing() { |
3875 | 0 | national_prefix_for_parsing_.ClearToEmpty(); |
3876 | 0 | _has_bits_[0] &= ~0x00000010u; |
3877 | 0 | } |
3878 | 92.7k | inline const std::string& PhoneMetadata::national_prefix_for_parsing() const { |
3879 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3880 | 92.7k | return _internal_national_prefix_for_parsing(); |
3881 | 92.7k | } |
3882 | 0 | inline void PhoneMetadata::set_national_prefix_for_parsing(const std::string& value) { |
3883 | 0 | _internal_set_national_prefix_for_parsing(value); |
3884 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3885 | 0 | } |
3886 | 0 | inline std::string* PhoneMetadata::mutable_national_prefix_for_parsing() { |
3887 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3888 | 0 | return _internal_mutable_national_prefix_for_parsing(); |
3889 | 0 | } |
3890 | 93.3k | inline const std::string& PhoneMetadata::_internal_national_prefix_for_parsing() const { |
3891 | 93.3k | return national_prefix_for_parsing_.Get(); |
3892 | 93.3k | } |
3893 | 0 | inline void PhoneMetadata::_internal_set_national_prefix_for_parsing(const std::string& value) { |
3894 | 0 | _has_bits_[0] |= 0x00000010u; |
3895 | 0 | national_prefix_for_parsing_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3896 | 0 | } |
3897 | 0 | inline void PhoneMetadata::set_national_prefix_for_parsing(std::string&& value) { |
3898 | 0 | _has_bits_[0] |= 0x00000010u; |
3899 | 0 | national_prefix_for_parsing_.Set( |
3900 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3901 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3902 | 0 | } |
3903 | 0 | inline void PhoneMetadata::set_national_prefix_for_parsing(const char* value) { |
3904 | 0 | GOOGLE_DCHECK(value != nullptr); |
3905 | 0 | _has_bits_[0] |= 0x00000010u; |
3906 | 0 | national_prefix_for_parsing_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3907 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3908 | 0 | } |
3909 | | inline void PhoneMetadata::set_national_prefix_for_parsing(const char* value, |
3910 | 0 | size_t size) { |
3911 | 0 | _has_bits_[0] |= 0x00000010u; |
3912 | 0 | national_prefix_for_parsing_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3913 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3914 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3915 | 0 | } |
3916 | 600 | inline std::string* PhoneMetadata::_internal_mutable_national_prefix_for_parsing() { |
3917 | 600 | _has_bits_[0] |= 0x00000010u; |
3918 | 600 | return national_prefix_for_parsing_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3919 | 600 | } |
3920 | 0 | inline std::string* PhoneMetadata::release_national_prefix_for_parsing() { |
3921 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3922 | 0 | if (!_internal_has_national_prefix_for_parsing()) { |
3923 | 0 | return nullptr; |
3924 | 0 | } |
3925 | 0 | _has_bits_[0] &= ~0x00000010u; |
3926 | 0 | return national_prefix_for_parsing_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
3927 | 0 | } |
3928 | 0 | inline void PhoneMetadata::set_allocated_national_prefix_for_parsing(std::string* national_prefix_for_parsing) { |
3929 | 0 | if (national_prefix_for_parsing != nullptr) { |
3930 | 0 | _has_bits_[0] |= 0x00000010u; |
3931 | 0 | } else { |
3932 | 0 | _has_bits_[0] &= ~0x00000010u; |
3933 | 0 | } |
3934 | 0 | national_prefix_for_parsing_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_prefix_for_parsing, |
3935 | 0 | GetArena()); |
3936 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix_for_parsing) |
3937 | 0 | } |
3938 | | |
3939 | | // optional string national_prefix_transform_rule = 16; |
3940 | 1.01k | inline bool PhoneMetadata::_internal_has_national_prefix_transform_rule() const { |
3941 | 1.01k | bool value = (_has_bits_[0] & 0x00000020u) != 0; |
3942 | 1.01k | return value; |
3943 | 1.01k | } |
3944 | 0 | inline bool PhoneMetadata::has_national_prefix_transform_rule() const { |
3945 | 0 | return _internal_has_national_prefix_transform_rule(); |
3946 | 0 | } |
3947 | 0 | inline void PhoneMetadata::clear_national_prefix_transform_rule() { |
3948 | 0 | national_prefix_transform_rule_.ClearToEmpty(); |
3949 | 0 | _has_bits_[0] &= ~0x00000020u; |
3950 | 0 | } |
3951 | 72.6k | inline const std::string& PhoneMetadata::national_prefix_transform_rule() const { |
3952 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3953 | 72.6k | return _internal_national_prefix_transform_rule(); |
3954 | 72.6k | } |
3955 | 0 | inline void PhoneMetadata::set_national_prefix_transform_rule(const std::string& value) { |
3956 | 0 | _internal_set_national_prefix_transform_rule(value); |
3957 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3958 | 0 | } |
3959 | 0 | inline std::string* PhoneMetadata::mutable_national_prefix_transform_rule() { |
3960 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3961 | 0 | return _internal_mutable_national_prefix_transform_rule(); |
3962 | 0 | } |
3963 | 72.7k | inline const std::string& PhoneMetadata::_internal_national_prefix_transform_rule() const { |
3964 | 72.7k | return national_prefix_transform_rule_.Get(); |
3965 | 72.7k | } |
3966 | 0 | inline void PhoneMetadata::_internal_set_national_prefix_transform_rule(const std::string& value) { |
3967 | 0 | _has_bits_[0] |= 0x00000020u; |
3968 | 0 | national_prefix_transform_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
3969 | 0 | } |
3970 | 0 | inline void PhoneMetadata::set_national_prefix_transform_rule(std::string&& value) { |
3971 | 0 | _has_bits_[0] |= 0x00000020u; |
3972 | 0 | national_prefix_transform_rule_.Set( |
3973 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
3974 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3975 | 0 | } |
3976 | 0 | inline void PhoneMetadata::set_national_prefix_transform_rule(const char* value) { |
3977 | 0 | GOOGLE_DCHECK(value != nullptr); |
3978 | 0 | _has_bits_[0] |= 0x00000020u; |
3979 | 0 | national_prefix_transform_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
3980 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3981 | 0 | } |
3982 | | inline void PhoneMetadata::set_national_prefix_transform_rule(const char* value, |
3983 | 0 | size_t size) { |
3984 | 0 | _has_bits_[0] |= 0x00000020u; |
3985 | 0 | national_prefix_transform_rule_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
3986 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
3987 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3988 | 0 | } |
3989 | 128 | inline std::string* PhoneMetadata::_internal_mutable_national_prefix_transform_rule() { |
3990 | 128 | _has_bits_[0] |= 0x00000020u; |
3991 | 128 | return national_prefix_transform_rule_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
3992 | 128 | } |
3993 | 0 | inline std::string* PhoneMetadata::release_national_prefix_transform_rule() { |
3994 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
3995 | 0 | if (!_internal_has_national_prefix_transform_rule()) { |
3996 | 0 | return nullptr; |
3997 | 0 | } |
3998 | 0 | _has_bits_[0] &= ~0x00000020u; |
3999 | 0 | return national_prefix_transform_rule_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
4000 | 0 | } |
4001 | 0 | inline void PhoneMetadata::set_allocated_national_prefix_transform_rule(std::string* national_prefix_transform_rule) { |
4002 | 0 | if (national_prefix_transform_rule != nullptr) { |
4003 | 0 | _has_bits_[0] |= 0x00000020u; |
4004 | 0 | } else { |
4005 | 0 | _has_bits_[0] &= ~0x00000020u; |
4006 | 0 | } |
4007 | 0 | national_prefix_transform_rule_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), national_prefix_transform_rule, |
4008 | 0 | GetArena()); |
4009 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.national_prefix_transform_rule) |
4010 | 0 | } |
4011 | | |
4012 | | // optional bool same_mobile_and_fixed_line_pattern = 18 [default = false]; |
4013 | 0 | inline bool PhoneMetadata::_internal_has_same_mobile_and_fixed_line_pattern() const { |
4014 | 0 | bool value = (_has_bits_[0] & 0x04000000u) != 0; |
4015 | 0 | return value; |
4016 | 0 | } |
4017 | 0 | inline bool PhoneMetadata::has_same_mobile_and_fixed_line_pattern() const { |
4018 | 0 | return _internal_has_same_mobile_and_fixed_line_pattern(); |
4019 | 0 | } |
4020 | 0 | inline void PhoneMetadata::clear_same_mobile_and_fixed_line_pattern() { |
4021 | 0 | same_mobile_and_fixed_line_pattern_ = false; |
4022 | 0 | _has_bits_[0] &= ~0x04000000u; |
4023 | 0 | } |
4024 | 36.2k | inline bool PhoneMetadata::_internal_same_mobile_and_fixed_line_pattern() const { |
4025 | 36.2k | return same_mobile_and_fixed_line_pattern_; |
4026 | 36.2k | } |
4027 | 36.2k | inline bool PhoneMetadata::same_mobile_and_fixed_line_pattern() const { |
4028 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.same_mobile_and_fixed_line_pattern) |
4029 | 36.2k | return _internal_same_mobile_and_fixed_line_pattern(); |
4030 | 36.2k | } |
4031 | 0 | inline void PhoneMetadata::_internal_set_same_mobile_and_fixed_line_pattern(bool value) { |
4032 | 0 | _has_bits_[0] |= 0x04000000u; |
4033 | 0 | same_mobile_and_fixed_line_pattern_ = value; |
4034 | 0 | } |
4035 | 0 | inline void PhoneMetadata::set_same_mobile_and_fixed_line_pattern(bool value) { |
4036 | 0 | _internal_set_same_mobile_and_fixed_line_pattern(value); |
4037 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.same_mobile_and_fixed_line_pattern) |
4038 | 0 | } |
4039 | | |
4040 | | // repeated .i18n.phonenumbers.NumberFormat number_format = 19; |
4041 | 0 | inline int PhoneMetadata::_internal_number_format_size() const { |
4042 | 0 | return number_format_.size(); |
4043 | 0 | } |
4044 | 0 | inline int PhoneMetadata::number_format_size() const { |
4045 | 0 | return _internal_number_format_size(); |
4046 | 0 | } |
4047 | 0 | inline void PhoneMetadata::clear_number_format() { |
4048 | 0 | number_format_.Clear(); |
4049 | 0 | } |
4050 | 0 | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::mutable_number_format(int index) { |
4051 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.number_format) |
4052 | 0 | return number_format_.Mutable(index); |
4053 | 0 | } |
4054 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >* |
4055 | 0 | PhoneMetadata::mutable_number_format() { |
4056 | 0 | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadata.number_format) |
4057 | 0 | return &number_format_; |
4058 | 0 | } |
4059 | 0 | inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::_internal_number_format(int index) const { |
4060 | 0 | return number_format_.Get(index); |
4061 | 0 | } |
4062 | 0 | inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::number_format(int index) const { |
4063 | 0 | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.number_format) |
4064 | 0 | return _internal_number_format(index); |
4065 | 0 | } |
4066 | 3.19k | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::_internal_add_number_format() { |
4067 | 3.19k | return number_format_.Add(); |
4068 | 3.19k | } |
4069 | 0 | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::add_number_format() { |
4070 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadata.number_format) |
4071 | 0 | return _internal_add_number_format(); |
4072 | 0 | } |
4073 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >& |
4074 | 128k | PhoneMetadata::number_format() const { |
4075 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadata.number_format) |
4076 | 128k | return number_format_; |
4077 | 128k | } |
4078 | | |
4079 | | // repeated .i18n.phonenumbers.NumberFormat intl_number_format = 20; |
4080 | 48.2k | inline int PhoneMetadata::_internal_intl_number_format_size() const { |
4081 | 48.2k | return intl_number_format_.size(); |
4082 | 48.2k | } |
4083 | 48.2k | inline int PhoneMetadata::intl_number_format_size() const { |
4084 | 48.2k | return _internal_intl_number_format_size(); |
4085 | 48.2k | } |
4086 | 0 | inline void PhoneMetadata::clear_intl_number_format() { |
4087 | 0 | intl_number_format_.Clear(); |
4088 | 0 | } |
4089 | 0 | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::mutable_intl_number_format(int index) { |
4090 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.intl_number_format) |
4091 | 0 | return intl_number_format_.Mutable(index); |
4092 | 0 | } |
4093 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >* |
4094 | 0 | PhoneMetadata::mutable_intl_number_format() { |
4095 | 0 | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadata.intl_number_format) |
4096 | 0 | return &intl_number_format_; |
4097 | 0 | } |
4098 | 0 | inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::_internal_intl_number_format(int index) const { |
4099 | 0 | return intl_number_format_.Get(index); |
4100 | 0 | } |
4101 | 0 | inline const ::i18n::phonenumbers::NumberFormat& PhoneMetadata::intl_number_format(int index) const { |
4102 | 0 | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.intl_number_format) |
4103 | 0 | return _internal_intl_number_format(index); |
4104 | 0 | } |
4105 | 824 | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::_internal_add_intl_number_format() { |
4106 | 824 | return intl_number_format_.Add(); |
4107 | 824 | } |
4108 | 0 | inline ::i18n::phonenumbers::NumberFormat* PhoneMetadata::add_intl_number_format() { |
4109 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadata.intl_number_format) |
4110 | 0 | return _internal_add_intl_number_format(); |
4111 | 0 | } |
4112 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::NumberFormat >& |
4113 | 11.2k | PhoneMetadata::intl_number_format() const { |
4114 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadata.intl_number_format) |
4115 | 11.2k | return intl_number_format_; |
4116 | 11.2k | } |
4117 | | |
4118 | | // optional bool main_country_for_code = 22 [default = false]; |
4119 | 0 | inline bool PhoneMetadata::_internal_has_main_country_for_code() const { |
4120 | 0 | bool value = (_has_bits_[0] & 0x08000000u) != 0; |
4121 | 0 | return value; |
4122 | 0 | } |
4123 | 0 | inline bool PhoneMetadata::has_main_country_for_code() const { |
4124 | 0 | return _internal_has_main_country_for_code(); |
4125 | 0 | } |
4126 | 0 | inline void PhoneMetadata::clear_main_country_for_code() { |
4127 | 0 | main_country_for_code_ = false; |
4128 | 0 | _has_bits_[0] &= ~0x08000000u; |
4129 | 0 | } |
4130 | 156 | inline bool PhoneMetadata::_internal_main_country_for_code() const { |
4131 | 156 | return main_country_for_code_; |
4132 | 156 | } |
4133 | 156 | inline bool PhoneMetadata::main_country_for_code() const { |
4134 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.main_country_for_code) |
4135 | 156 | return _internal_main_country_for_code(); |
4136 | 156 | } |
4137 | 0 | inline void PhoneMetadata::_internal_set_main_country_for_code(bool value) { |
4138 | 0 | _has_bits_[0] |= 0x08000000u; |
4139 | 0 | main_country_for_code_ = value; |
4140 | 0 | } |
4141 | 0 | inline void PhoneMetadata::set_main_country_for_code(bool value) { |
4142 | 0 | _internal_set_main_country_for_code(value); |
4143 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.main_country_for_code) |
4144 | 0 | } |
4145 | | |
4146 | | // optional string leading_digits = 23; |
4147 | 185k | inline bool PhoneMetadata::_internal_has_leading_digits() const { |
4148 | 185k | bool value = (_has_bits_[0] & 0x00000080u) != 0; |
4149 | 185k | return value; |
4150 | 185k | } |
4151 | 184k | inline bool PhoneMetadata::has_leading_digits() const { |
4152 | 184k | return _internal_has_leading_digits(); |
4153 | 184k | } |
4154 | 0 | inline void PhoneMetadata::clear_leading_digits() { |
4155 | 0 | leading_digits_.ClearToEmpty(); |
4156 | 0 | _has_bits_[0] &= ~0x00000080u; |
4157 | 0 | } |
4158 | 152k | inline const std::string& PhoneMetadata::leading_digits() const { |
4159 | | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4160 | 152k | return _internal_leading_digits(); |
4161 | 152k | } |
4162 | 0 | inline void PhoneMetadata::set_leading_digits(const std::string& value) { |
4163 | 0 | _internal_set_leading_digits(value); |
4164 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4165 | 0 | } |
4166 | 0 | inline std::string* PhoneMetadata::mutable_leading_digits() { |
4167 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4168 | 0 | return _internal_mutable_leading_digits(); |
4169 | 0 | } |
4170 | 152k | inline const std::string& PhoneMetadata::_internal_leading_digits() const { |
4171 | 152k | return leading_digits_.Get(); |
4172 | 152k | } |
4173 | 0 | inline void PhoneMetadata::_internal_set_leading_digits(const std::string& value) { |
4174 | 0 | _has_bits_[0] |= 0x00000080u; |
4175 | 0 | leading_digits_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); |
4176 | 0 | } |
4177 | 0 | inline void PhoneMetadata::set_leading_digits(std::string&& value) { |
4178 | 0 | _has_bits_[0] |= 0x00000080u; |
4179 | 0 | leading_digits_.Set( |
4180 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); |
4181 | 0 | // @@protoc_insertion_point(field_set_rvalue:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4182 | 0 | } |
4183 | 0 | inline void PhoneMetadata::set_leading_digits(const char* value) { |
4184 | 0 | GOOGLE_DCHECK(value != nullptr); |
4185 | 0 | _has_bits_[0] |= 0x00000080u; |
4186 | 0 | leading_digits_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); |
4187 | 0 | // @@protoc_insertion_point(field_set_char:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4188 | 0 | } |
4189 | | inline void PhoneMetadata::set_leading_digits(const char* value, |
4190 | 0 | size_t size) { |
4191 | 0 | _has_bits_[0] |= 0x00000080u; |
4192 | 0 | leading_digits_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( |
4193 | 0 | reinterpret_cast<const char*>(value), size), GetArena()); |
4194 | 0 | // @@protoc_insertion_point(field_set_pointer:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4195 | 0 | } |
4196 | 144 | inline std::string* PhoneMetadata::_internal_mutable_leading_digits() { |
4197 | 144 | _has_bits_[0] |= 0x00000080u; |
4198 | 144 | return leading_digits_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); |
4199 | 144 | } |
4200 | 0 | inline std::string* PhoneMetadata::release_leading_digits() { |
4201 | 0 | // @@protoc_insertion_point(field_release:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4202 | 0 | if (!_internal_has_leading_digits()) { |
4203 | 0 | return nullptr; |
4204 | 0 | } |
4205 | 0 | _has_bits_[0] &= ~0x00000080u; |
4206 | 0 | return leading_digits_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
4207 | 0 | } |
4208 | 0 | inline void PhoneMetadata::set_allocated_leading_digits(std::string* leading_digits) { |
4209 | 0 | if (leading_digits != nullptr) { |
4210 | 0 | _has_bits_[0] |= 0x00000080u; |
4211 | 0 | } else { |
4212 | 0 | _has_bits_[0] &= ~0x00000080u; |
4213 | 0 | } |
4214 | 0 | leading_digits_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), leading_digits, |
4215 | 0 | GetArena()); |
4216 | 0 | // @@protoc_insertion_point(field_set_allocated:i18n.phonenumbers.PhoneMetadata.leading_digits) |
4217 | 0 | } |
4218 | | |
4219 | | // optional bool mobile_number_portable_region = 32 [default = false]; |
4220 | 0 | inline bool PhoneMetadata::_internal_has_mobile_number_portable_region() const { |
4221 | 0 | bool value = (_has_bits_[0] & 0x10000000u) != 0; |
4222 | 0 | return value; |
4223 | 0 | } |
4224 | 0 | inline bool PhoneMetadata::has_mobile_number_portable_region() const { |
4225 | 0 | return _internal_has_mobile_number_portable_region(); |
4226 | 0 | } |
4227 | 0 | inline void PhoneMetadata::clear_mobile_number_portable_region() { |
4228 | 0 | mobile_number_portable_region_ = false; |
4229 | 0 | _has_bits_[0] &= ~0x10000000u; |
4230 | 0 | } |
4231 | 0 | inline bool PhoneMetadata::_internal_mobile_number_portable_region() const { |
4232 | 0 | return mobile_number_portable_region_; |
4233 | 0 | } |
4234 | 0 | inline bool PhoneMetadata::mobile_number_portable_region() const { |
4235 | 0 | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadata.mobile_number_portable_region) |
4236 | 0 | return _internal_mobile_number_portable_region(); |
4237 | 0 | } |
4238 | 0 | inline void PhoneMetadata::_internal_set_mobile_number_portable_region(bool value) { |
4239 | 0 | _has_bits_[0] |= 0x10000000u; |
4240 | 0 | mobile_number_portable_region_ = value; |
4241 | 0 | } |
4242 | 0 | inline void PhoneMetadata::set_mobile_number_portable_region(bool value) { |
4243 | 0 | _internal_set_mobile_number_portable_region(value); |
4244 | 0 | // @@protoc_insertion_point(field_set:i18n.phonenumbers.PhoneMetadata.mobile_number_portable_region) |
4245 | 0 | } |
4246 | | |
4247 | | // ------------------------------------------------------------------- |
4248 | | |
4249 | | // PhoneMetadataCollection |
4250 | | |
4251 | | // repeated .i18n.phonenumbers.PhoneMetadata metadata = 1; |
4252 | 0 | inline int PhoneMetadataCollection::_internal_metadata_size() const { |
4253 | 0 | return metadata_.size(); |
4254 | 0 | } |
4255 | 0 | inline int PhoneMetadataCollection::metadata_size() const { |
4256 | 0 | return _internal_metadata_size(); |
4257 | 0 | } |
4258 | 0 | inline void PhoneMetadataCollection::clear_metadata() { |
4259 | 0 | metadata_.Clear(); |
4260 | 0 | } |
4261 | 0 | inline ::i18n::phonenumbers::PhoneMetadata* PhoneMetadataCollection::mutable_metadata(int index) { |
4262 | 0 | // @@protoc_insertion_point(field_mutable:i18n.phonenumbers.PhoneMetadataCollection.metadata) |
4263 | 0 | return metadata_.Mutable(index); |
4264 | 0 | } |
4265 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >* |
4266 | 3.11k | PhoneMetadataCollection::mutable_metadata() { |
4267 | | // @@protoc_insertion_point(field_mutable_list:i18n.phonenumbers.PhoneMetadataCollection.metadata) |
4268 | 3.11k | return &metadata_; |
4269 | 3.11k | } |
4270 | 0 | inline const ::i18n::phonenumbers::PhoneMetadata& PhoneMetadataCollection::_internal_metadata(int index) const { |
4271 | 0 | return metadata_.Get(index); |
4272 | 0 | } |
4273 | 0 | inline const ::i18n::phonenumbers::PhoneMetadata& PhoneMetadataCollection::metadata(int index) const { |
4274 | 0 | // @@protoc_insertion_point(field_get:i18n.phonenumbers.PhoneMetadataCollection.metadata) |
4275 | 0 | return _internal_metadata(index); |
4276 | 0 | } |
4277 | 750k | inline ::i18n::phonenumbers::PhoneMetadata* PhoneMetadataCollection::_internal_add_metadata() { |
4278 | 750k | return metadata_.Add(); |
4279 | 750k | } |
4280 | 0 | inline ::i18n::phonenumbers::PhoneMetadata* PhoneMetadataCollection::add_metadata() { |
4281 | 0 | // @@protoc_insertion_point(field_add:i18n.phonenumbers.PhoneMetadataCollection.metadata) |
4282 | 0 | return _internal_add_metadata(); |
4283 | 0 | } |
4284 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::i18n::phonenumbers::PhoneMetadata >& |
4285 | 1.07k | PhoneMetadataCollection::metadata() const { |
4286 | | // @@protoc_insertion_point(field_list:i18n.phonenumbers.PhoneMetadataCollection.metadata) |
4287 | 1.07k | return metadata_; |
4288 | 1.07k | } |
4289 | | |
4290 | | #ifdef __GNUC__ |
4291 | | #pragma GCC diagnostic pop |
4292 | | #endif // __GNUC__ |
4293 | | // ------------------------------------------------------------------- |
4294 | | |
4295 | | // ------------------------------------------------------------------- |
4296 | | |
4297 | | // ------------------------------------------------------------------- |
4298 | | |
4299 | | |
4300 | | // @@protoc_insertion_point(namespace_scope) |
4301 | | |
4302 | | } // namespace phonenumbers |
4303 | | } // namespace i18n |
4304 | | |
4305 | | // @@protoc_insertion_point(global_scope) |
4306 | | |
4307 | | #include <google/protobuf/port_undef.inc> |
4308 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_phonemetadata_2eproto |