• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * @license
3 * Protocol Buffer 2 Copyright 2008 Google Inc.
4 * All other code copyright its respective owners.
5 * Copyright (C) 2010 The Libphonenumber Authors
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/**
21 * @fileoverview Generated Protocol Buffer code for file
22 * phonemetadata.proto.
23 */
24goog.provide('i18n.phonenumbers.NumberFormat');
25goog.provide('i18n.phonenumbers.PhoneNumberDesc');
26goog.provide('i18n.phonenumbers.PhoneMetadata');
27goog.provide('i18n.phonenumbers.PhoneMetadataCollection');
28
29goog.require('goog.proto2.Message');
30goog.require('goog.proto2.Descriptor');
31
32
33
34/**
35 * Message NumberFormat.
36 * @constructor
37 * @extends {goog.proto2.Message}
38 * @final
39 */
40i18n.phonenumbers.NumberFormat = function() {
41  goog.proto2.Message.call(this);
42};
43goog.inherits(i18n.phonenumbers.NumberFormat, goog.proto2.Message);
44
45
46/**
47 * Descriptor for this message, deserialized lazily in getDescriptor().
48 * @private {?goog.proto2.Descriptor}
49 */
50i18n.phonenumbers.NumberFormat.descriptor_ = null;
51
52
53/**
54 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
55 * @return {!i18n.phonenumbers.NumberFormat} The cloned message.
56 * @override
57 */
58i18n.phonenumbers.NumberFormat.prototype.clone;
59
60
61/**
62 * Gets the value of the pattern field.
63 * @return {?string} The value.
64 */
65i18n.phonenumbers.NumberFormat.prototype.getPattern = function() {
66  return /** @type {?string} */ (this.get$Value(1));
67};
68
69
70/**
71 * Gets the value of the pattern field or the default value if not set.
72 * @return {string} The value.
73 */
74i18n.phonenumbers.NumberFormat.prototype.getPatternOrDefault = function() {
75  return /** @type {string} */ (this.get$ValueOrDefault(1));
76};
77
78
79/**
80 * Sets the value of the pattern field.
81 * @param {string} value The value.
82 */
83i18n.phonenumbers.NumberFormat.prototype.setPattern = function(value) {
84  this.set$Value(1, value);
85};
86
87
88/**
89 * @return {boolean} Whether the pattern field has a value.
90 */
91i18n.phonenumbers.NumberFormat.prototype.hasPattern = function() {
92  return this.has$Value(1);
93};
94
95
96/**
97 * @return {number} The number of values in the pattern field.
98 */
99i18n.phonenumbers.NumberFormat.prototype.patternCount = function() {
100  return this.count$Values(1);
101};
102
103
104/**
105 * Clears the values in the pattern field.
106 */
107i18n.phonenumbers.NumberFormat.prototype.clearPattern = function() {
108  this.clear$Field(1);
109};
110
111
112/**
113 * Gets the value of the format field.
114 * @return {?string} The value.
115 */
116i18n.phonenumbers.NumberFormat.prototype.getFormat = function() {
117  return /** @type {?string} */ (this.get$Value(2));
118};
119
120
121/**
122 * Gets the value of the format field or the default value if not set.
123 * @return {string} The value.
124 */
125i18n.phonenumbers.NumberFormat.prototype.getFormatOrDefault = function() {
126  return /** @type {string} */ (this.get$ValueOrDefault(2));
127};
128
129
130/**
131 * Sets the value of the format field.
132 * @param {string} value The value.
133 */
134i18n.phonenumbers.NumberFormat.prototype.setFormat = function(value) {
135  this.set$Value(2, value);
136};
137
138
139/**
140 * @return {boolean} Whether the format field has a value.
141 */
142i18n.phonenumbers.NumberFormat.prototype.hasFormat = function() {
143  return this.has$Value(2);
144};
145
146
147/**
148 * @return {number} The number of values in the format field.
149 */
150i18n.phonenumbers.NumberFormat.prototype.formatCount = function() {
151  return this.count$Values(2);
152};
153
154
155/**
156 * Clears the values in the format field.
157 */
158i18n.phonenumbers.NumberFormat.prototype.clearFormat = function() {
159  this.clear$Field(2);
160};
161
162
163/**
164 * Gets the value of the leading_digits_pattern field at the index given.
165 * @param {number} index The index to lookup.
166 * @return {?string} The value.
167 */
168i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPattern = function(index) {
169  return /** @type {?string} */ (this.get$Value(3, index));
170};
171
172
173/**
174 * Gets the value of the leading_digits_pattern field at the index given or the default value if not set.
175 * @param {number} index The index to lookup.
176 * @return {string} The value.
177 */
178i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPatternOrDefault = function(index) {
179  return /** @type {string} */ (this.get$ValueOrDefault(3, index));
180};
181
182
183/**
184 * Adds a value to the leading_digits_pattern field.
185 * @param {string} value The value to add.
186 */
187i18n.phonenumbers.NumberFormat.prototype.addLeadingDigitsPattern = function(value) {
188  this.add$Value(3, value);
189};
190
191
192/**
193 * Returns the array of values in the leading_digits_pattern field.
194 * @return {!Array<string>} The values in the field.
195 */
196i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternArray = function() {
197  return /** @type {!Array<string>} */ (this.array$Values(3));
198};
199
200
201/**
202 * @return {boolean} Whether the leading_digits_pattern field has a value.
203 */
204i18n.phonenumbers.NumberFormat.prototype.hasLeadingDigitsPattern = function() {
205  return this.has$Value(3);
206};
207
208
209/**
210 * @return {number} The number of values in the leading_digits_pattern field.
211 */
212i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternCount = function() {
213  return this.count$Values(3);
214};
215
216
217/**
218 * Clears the values in the leading_digits_pattern field.
219 */
220i18n.phonenumbers.NumberFormat.prototype.clearLeadingDigitsPattern = function() {
221  this.clear$Field(3);
222};
223
224
225/**
226 * Gets the value of the national_prefix_formatting_rule field.
227 * @return {?string} The value.
228 */
229i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRule = function() {
230  return /** @type {?string} */ (this.get$Value(4));
231};
232
233
234/**
235 * Gets the value of the national_prefix_formatting_rule field or the default value if not set.
236 * @return {string} The value.
237 */
238i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRuleOrDefault = function() {
239  return /** @type {string} */ (this.get$ValueOrDefault(4));
240};
241
242
243/**
244 * Sets the value of the national_prefix_formatting_rule field.
245 * @param {string} value The value.
246 */
247i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixFormattingRule = function(value) {
248  this.set$Value(4, value);
249};
250
251
252/**
253 * @return {boolean} Whether the national_prefix_formatting_rule field has a value.
254 */
255i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixFormattingRule = function() {
256  return this.has$Value(4);
257};
258
259
260/**
261 * @return {number} The number of values in the national_prefix_formatting_rule field.
262 */
263i18n.phonenumbers.NumberFormat.prototype.nationalPrefixFormattingRuleCount = function() {
264  return this.count$Values(4);
265};
266
267
268/**
269 * Clears the values in the national_prefix_formatting_rule field.
270 */
271i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixFormattingRule = function() {
272  this.clear$Field(4);
273};
274
275
276/**
277 * Gets the value of the national_prefix_optional_when_formatting field.
278 * @return {?boolean} The value.
279 */
280i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormatting = function() {
281  return /** @type {?boolean} */ (this.get$Value(6));
282};
283
284
285/**
286 * Gets the value of the national_prefix_optional_when_formatting field or the default value if not set.
287 * @return {boolean} The value.
288 */
289i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormattingOrDefault = function() {
290  return /** @type {boolean} */ (this.get$ValueOrDefault(6));
291};
292
293
294/**
295 * Sets the value of the national_prefix_optional_when_formatting field.
296 * @param {boolean} value The value.
297 */
298i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixOptionalWhenFormatting = function(value) {
299  this.set$Value(6, value);
300};
301
302
303/**
304 * @return {boolean} Whether the national_prefix_optional_when_formatting field has a value.
305 */
306i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixOptionalWhenFormatting = function() {
307  return this.has$Value(6);
308};
309
310
311/**
312 * @return {number} The number of values in the national_prefix_optional_when_formatting field.
313 */
314i18n.phonenumbers.NumberFormat.prototype.nationalPrefixOptionalWhenFormattingCount = function() {
315  return this.count$Values(6);
316};
317
318
319/**
320 * Clears the values in the national_prefix_optional_when_formatting field.
321 */
322i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixOptionalWhenFormatting = function() {
323  this.clear$Field(6);
324};
325
326
327/**
328 * Gets the value of the domestic_carrier_code_formatting_rule field.
329 * @return {?string} The value.
330 */
331i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRule = function() {
332  return /** @type {?string} */ (this.get$Value(5));
333};
334
335
336/**
337 * Gets the value of the domestic_carrier_code_formatting_rule field or the default value if not set.
338 * @return {string} The value.
339 */
340i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRuleOrDefault = function() {
341  return /** @type {string} */ (this.get$ValueOrDefault(5));
342};
343
344
345/**
346 * Sets the value of the domestic_carrier_code_formatting_rule field.
347 * @param {string} value The value.
348 */
349i18n.phonenumbers.NumberFormat.prototype.setDomesticCarrierCodeFormattingRule = function(value) {
350  this.set$Value(5, value);
351};
352
353
354/**
355 * @return {boolean} Whether the domestic_carrier_code_formatting_rule field has a value.
356 */
357i18n.phonenumbers.NumberFormat.prototype.hasDomesticCarrierCodeFormattingRule = function() {
358  return this.has$Value(5);
359};
360
361
362/**
363 * @return {number} The number of values in the domestic_carrier_code_formatting_rule field.
364 */
365i18n.phonenumbers.NumberFormat.prototype.domesticCarrierCodeFormattingRuleCount = function() {
366  return this.count$Values(5);
367};
368
369
370/**
371 * Clears the values in the domestic_carrier_code_formatting_rule field.
372 */
373i18n.phonenumbers.NumberFormat.prototype.clearDomesticCarrierCodeFormattingRule = function() {
374  this.clear$Field(5);
375};
376
377
378
379/**
380 * Message PhoneNumberDesc.
381 * @constructor
382 * @extends {goog.proto2.Message}
383 * @final
384 */
385i18n.phonenumbers.PhoneNumberDesc = function() {
386  goog.proto2.Message.call(this);
387};
388goog.inherits(i18n.phonenumbers.PhoneNumberDesc, goog.proto2.Message);
389
390
391/**
392 * Descriptor for this message, deserialized lazily in getDescriptor().
393 * @private {?goog.proto2.Descriptor}
394 */
395i18n.phonenumbers.PhoneNumberDesc.descriptor_ = null;
396
397
398/**
399 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
400 * @return {!i18n.phonenumbers.PhoneNumberDesc} The cloned message.
401 * @override
402 */
403i18n.phonenumbers.PhoneNumberDesc.prototype.clone;
404
405
406/**
407 * Gets the value of the national_number_pattern field.
408 * @return {?string} The value.
409 */
410i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPattern = function() {
411  return /** @type {?string} */ (this.get$Value(2));
412};
413
414
415/**
416 * Gets the value of the national_number_pattern field or the default value if not set.
417 * @return {string} The value.
418 */
419i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPatternOrDefault = function() {
420  return /** @type {string} */ (this.get$ValueOrDefault(2));
421};
422
423
424/**
425 * Sets the value of the national_number_pattern field.
426 * @param {string} value The value.
427 */
428i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberPattern = function(value) {
429  this.set$Value(2, value);
430};
431
432
433/**
434 * @return {boolean} Whether the national_number_pattern field has a value.
435 */
436i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberPattern = function() {
437  return this.has$Value(2);
438};
439
440
441/**
442 * @return {number} The number of values in the national_number_pattern field.
443 */
444i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberPatternCount = function() {
445  return this.count$Values(2);
446};
447
448
449/**
450 * Clears the values in the national_number_pattern field.
451 */
452i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberPattern = function() {
453  this.clear$Field(2);
454};
455
456
457/**
458 * Gets the value of the possible_length field at the index given.
459 * @param {number} index The index to lookup.
460 * @return {?number} The value.
461 */
462i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLength = function(index) {
463  return /** @type {?number} */ (this.get$Value(9, index));
464};
465
466
467/**
468 * Gets the value of the possible_length field at the index given or the default value if not set.
469 * @param {number} index The index to lookup.
470 * @return {number} The value.
471 */
472i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthOrDefault = function(index) {
473  return /** @type {number} */ (this.get$ValueOrDefault(9, index));
474};
475
476
477/**
478 * Adds a value to the possible_length field.
479 * @param {number} value The value to add.
480 */
481i18n.phonenumbers.PhoneNumberDesc.prototype.addPossibleLength = function(value) {
482  this.add$Value(9, value);
483};
484
485
486/**
487 * Returns the array of values in the possible_length field.
488 * @return {!Array<number>} The values in the field.
489 */
490i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthArray = function() {
491  return /** @type {!Array<number>} */ (this.array$Values(9));
492};
493
494
495/**
496 * @return {boolean} Whether the possible_length field has a value.
497 */
498i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleLength = function() {
499  return this.has$Value(9);
500};
501
502
503/**
504 * @return {number} The number of values in the possible_length field.
505 */
506i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthCount = function() {
507  return this.count$Values(9);
508};
509
510
511/**
512 * Clears the values in the possible_length field.
513 */
514i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleLength = function() {
515  this.clear$Field(9);
516};
517
518
519/**
520 * Gets the value of the possible_length_local_only field at the index given.
521 * @param {number} index The index to lookup.
522 * @return {?number} The value.
523 */
524i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthLocalOnly = function(index) {
525  return /** @type {?number} */ (this.get$Value(10, index));
526};
527
528
529/**
530 * Gets the value of the possible_length_local_only field at the index given or the default value if not set.
531 * @param {number} index The index to lookup.
532 * @return {number} The value.
533 */
534i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthLocalOnlyOrDefault = function(index) {
535  return /** @type {number} */ (this.get$ValueOrDefault(10, index));
536};
537
538
539/**
540 * Adds a value to the possible_length_local_only field.
541 * @param {number} value The value to add.
542 */
543i18n.phonenumbers.PhoneNumberDesc.prototype.addPossibleLengthLocalOnly = function(value) {
544  this.add$Value(10, value);
545};
546
547
548/**
549 * Returns the array of values in the possible_length_local_only field.
550 * @return {!Array<number>} The values in the field.
551 */
552i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthLocalOnlyArray = function() {
553  return /** @type {!Array<number>} */ (this.array$Values(10));
554};
555
556
557/**
558 * @return {boolean} Whether the possible_length_local_only field has a value.
559 */
560i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleLengthLocalOnly = function() {
561  return this.has$Value(10);
562};
563
564
565/**
566 * @return {number} The number of values in the possible_length_local_only field.
567 */
568i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthLocalOnlyCount = function() {
569  return this.count$Values(10);
570};
571
572
573/**
574 * Clears the values in the possible_length_local_only field.
575 */
576i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleLengthLocalOnly = function() {
577  this.clear$Field(10);
578};
579
580
581/**
582 * Gets the value of the example_number field.
583 * @return {?string} The value.
584 */
585i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumber = function() {
586  return /** @type {?string} */ (this.get$Value(6));
587};
588
589
590/**
591 * Gets the value of the example_number field or the default value if not set.
592 * @return {string} The value.
593 */
594i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumberOrDefault = function() {
595  return /** @type {string} */ (this.get$ValueOrDefault(6));
596};
597
598
599/**
600 * Sets the value of the example_number field.
601 * @param {string} value The value.
602 */
603i18n.phonenumbers.PhoneNumberDesc.prototype.setExampleNumber = function(value) {
604  this.set$Value(6, value);
605};
606
607
608/**
609 * @return {boolean} Whether the example_number field has a value.
610 */
611i18n.phonenumbers.PhoneNumberDesc.prototype.hasExampleNumber = function() {
612  return this.has$Value(6);
613};
614
615
616/**
617 * @return {number} The number of values in the example_number field.
618 */
619i18n.phonenumbers.PhoneNumberDesc.prototype.exampleNumberCount = function() {
620  return this.count$Values(6);
621};
622
623
624/**
625 * Clears the values in the example_number field.
626 */
627i18n.phonenumbers.PhoneNumberDesc.prototype.clearExampleNumber = function() {
628  this.clear$Field(6);
629};
630
631
632
633/**
634 * Message PhoneMetadata.
635 * @constructor
636 * @extends {goog.proto2.Message}
637 * @final
638 */
639i18n.phonenumbers.PhoneMetadata = function() {
640  goog.proto2.Message.call(this);
641};
642goog.inherits(i18n.phonenumbers.PhoneMetadata, goog.proto2.Message);
643
644
645/**
646 * Descriptor for this message, deserialized lazily in getDescriptor().
647 * @private {?goog.proto2.Descriptor}
648 */
649i18n.phonenumbers.PhoneMetadata.descriptor_ = null;
650
651
652/**
653 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
654 * @return {!i18n.phonenumbers.PhoneMetadata} The cloned message.
655 * @override
656 */
657i18n.phonenumbers.PhoneMetadata.prototype.clone;
658
659
660/**
661 * Gets the value of the general_desc field.
662 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
663 */
664i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc = function() {
665  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(1));
666};
667
668
669/**
670 * Gets the value of the general_desc field or the default value if not set.
671 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
672 */
673i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault = function() {
674  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(1));
675};
676
677
678/**
679 * Sets the value of the general_desc field.
680 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
681 */
682i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc = function(value) {
683  this.set$Value(1, value);
684};
685
686
687/**
688 * @return {boolean} Whether the general_desc field has a value.
689 */
690i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc = function() {
691  return this.has$Value(1);
692};
693
694
695/**
696 * @return {number} The number of values in the general_desc field.
697 */
698i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount = function() {
699  return this.count$Values(1);
700};
701
702
703/**
704 * Clears the values in the general_desc field.
705 */
706i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc = function() {
707  this.clear$Field(1);
708};
709
710
711/**
712 * Gets the value of the fixed_line field.
713 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
714 */
715i18n.phonenumbers.PhoneMetadata.prototype.getFixedLine = function() {
716  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(2));
717};
718
719
720/**
721 * Gets the value of the fixed_line field or the default value if not set.
722 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
723 */
724i18n.phonenumbers.PhoneMetadata.prototype.getFixedLineOrDefault = function() {
725  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(2));
726};
727
728
729/**
730 * Sets the value of the fixed_line field.
731 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
732 */
733i18n.phonenumbers.PhoneMetadata.prototype.setFixedLine = function(value) {
734  this.set$Value(2, value);
735};
736
737
738/**
739 * @return {boolean} Whether the fixed_line field has a value.
740 */
741i18n.phonenumbers.PhoneMetadata.prototype.hasFixedLine = function() {
742  return this.has$Value(2);
743};
744
745
746/**
747 * @return {number} The number of values in the fixed_line field.
748 */
749i18n.phonenumbers.PhoneMetadata.prototype.fixedLineCount = function() {
750  return this.count$Values(2);
751};
752
753
754/**
755 * Clears the values in the fixed_line field.
756 */
757i18n.phonenumbers.PhoneMetadata.prototype.clearFixedLine = function() {
758  this.clear$Field(2);
759};
760
761
762/**
763 * Gets the value of the mobile field.
764 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
765 */
766i18n.phonenumbers.PhoneMetadata.prototype.getMobile = function() {
767  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(3));
768};
769
770
771/**
772 * Gets the value of the mobile field or the default value if not set.
773 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
774 */
775i18n.phonenumbers.PhoneMetadata.prototype.getMobileOrDefault = function() {
776  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(3));
777};
778
779
780/**
781 * Sets the value of the mobile field.
782 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
783 */
784i18n.phonenumbers.PhoneMetadata.prototype.setMobile = function(value) {
785  this.set$Value(3, value);
786};
787
788
789/**
790 * @return {boolean} Whether the mobile field has a value.
791 */
792i18n.phonenumbers.PhoneMetadata.prototype.hasMobile = function() {
793  return this.has$Value(3);
794};
795
796
797/**
798 * @return {number} The number of values in the mobile field.
799 */
800i18n.phonenumbers.PhoneMetadata.prototype.mobileCount = function() {
801  return this.count$Values(3);
802};
803
804
805/**
806 * Clears the values in the mobile field.
807 */
808i18n.phonenumbers.PhoneMetadata.prototype.clearMobile = function() {
809  this.clear$Field(3);
810};
811
812
813/**
814 * Gets the value of the toll_free field.
815 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
816 */
817i18n.phonenumbers.PhoneMetadata.prototype.getTollFree = function() {
818  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(4));
819};
820
821
822/**
823 * Gets the value of the toll_free field or the default value if not set.
824 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
825 */
826i18n.phonenumbers.PhoneMetadata.prototype.getTollFreeOrDefault = function() {
827  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(4));
828};
829
830
831/**
832 * Sets the value of the toll_free field.
833 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
834 */
835i18n.phonenumbers.PhoneMetadata.prototype.setTollFree = function(value) {
836  this.set$Value(4, value);
837};
838
839
840/**
841 * @return {boolean} Whether the toll_free field has a value.
842 */
843i18n.phonenumbers.PhoneMetadata.prototype.hasTollFree = function() {
844  return this.has$Value(4);
845};
846
847
848/**
849 * @return {number} The number of values in the toll_free field.
850 */
851i18n.phonenumbers.PhoneMetadata.prototype.tollFreeCount = function() {
852  return this.count$Values(4);
853};
854
855
856/**
857 * Clears the values in the toll_free field.
858 */
859i18n.phonenumbers.PhoneMetadata.prototype.clearTollFree = function() {
860  this.clear$Field(4);
861};
862
863
864/**
865 * Gets the value of the premium_rate field.
866 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
867 */
868i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRate = function() {
869  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(5));
870};
871
872
873/**
874 * Gets the value of the premium_rate field or the default value if not set.
875 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
876 */
877i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRateOrDefault = function() {
878  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(5));
879};
880
881
882/**
883 * Sets the value of the premium_rate field.
884 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
885 */
886i18n.phonenumbers.PhoneMetadata.prototype.setPremiumRate = function(value) {
887  this.set$Value(5, value);
888};
889
890
891/**
892 * @return {boolean} Whether the premium_rate field has a value.
893 */
894i18n.phonenumbers.PhoneMetadata.prototype.hasPremiumRate = function() {
895  return this.has$Value(5);
896};
897
898
899/**
900 * @return {number} The number of values in the premium_rate field.
901 */
902i18n.phonenumbers.PhoneMetadata.prototype.premiumRateCount = function() {
903  return this.count$Values(5);
904};
905
906
907/**
908 * Clears the values in the premium_rate field.
909 */
910i18n.phonenumbers.PhoneMetadata.prototype.clearPremiumRate = function() {
911  this.clear$Field(5);
912};
913
914
915/**
916 * Gets the value of the shared_cost field.
917 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
918 */
919i18n.phonenumbers.PhoneMetadata.prototype.getSharedCost = function() {
920  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(6));
921};
922
923
924/**
925 * Gets the value of the shared_cost field or the default value if not set.
926 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
927 */
928i18n.phonenumbers.PhoneMetadata.prototype.getSharedCostOrDefault = function() {
929  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(6));
930};
931
932
933/**
934 * Sets the value of the shared_cost field.
935 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
936 */
937i18n.phonenumbers.PhoneMetadata.prototype.setSharedCost = function(value) {
938  this.set$Value(6, value);
939};
940
941
942/**
943 * @return {boolean} Whether the shared_cost field has a value.
944 */
945i18n.phonenumbers.PhoneMetadata.prototype.hasSharedCost = function() {
946  return this.has$Value(6);
947};
948
949
950/**
951 * @return {number} The number of values in the shared_cost field.
952 */
953i18n.phonenumbers.PhoneMetadata.prototype.sharedCostCount = function() {
954  return this.count$Values(6);
955};
956
957
958/**
959 * Clears the values in the shared_cost field.
960 */
961i18n.phonenumbers.PhoneMetadata.prototype.clearSharedCost = function() {
962  this.clear$Field(6);
963};
964
965
966/**
967 * Gets the value of the personal_number field.
968 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
969 */
970i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumber = function() {
971  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(7));
972};
973
974
975/**
976 * Gets the value of the personal_number field or the default value if not set.
977 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
978 */
979i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumberOrDefault = function() {
980  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(7));
981};
982
983
984/**
985 * Sets the value of the personal_number field.
986 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
987 */
988i18n.phonenumbers.PhoneMetadata.prototype.setPersonalNumber = function(value) {
989  this.set$Value(7, value);
990};
991
992
993/**
994 * @return {boolean} Whether the personal_number field has a value.
995 */
996i18n.phonenumbers.PhoneMetadata.prototype.hasPersonalNumber = function() {
997  return this.has$Value(7);
998};
999
1000
1001/**
1002 * @return {number} The number of values in the personal_number field.
1003 */
1004i18n.phonenumbers.PhoneMetadata.prototype.personalNumberCount = function() {
1005  return this.count$Values(7);
1006};
1007
1008
1009/**
1010 * Clears the values in the personal_number field.
1011 */
1012i18n.phonenumbers.PhoneMetadata.prototype.clearPersonalNumber = function() {
1013  this.clear$Field(7);
1014};
1015
1016
1017/**
1018 * Gets the value of the voip field.
1019 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1020 */
1021i18n.phonenumbers.PhoneMetadata.prototype.getVoip = function() {
1022  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(8));
1023};
1024
1025
1026/**
1027 * Gets the value of the voip field or the default value if not set.
1028 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1029 */
1030i18n.phonenumbers.PhoneMetadata.prototype.getVoipOrDefault = function() {
1031  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(8));
1032};
1033
1034
1035/**
1036 * Sets the value of the voip field.
1037 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1038 */
1039i18n.phonenumbers.PhoneMetadata.prototype.setVoip = function(value) {
1040  this.set$Value(8, value);
1041};
1042
1043
1044/**
1045 * @return {boolean} Whether the voip field has a value.
1046 */
1047i18n.phonenumbers.PhoneMetadata.prototype.hasVoip = function() {
1048  return this.has$Value(8);
1049};
1050
1051
1052/**
1053 * @return {number} The number of values in the voip field.
1054 */
1055i18n.phonenumbers.PhoneMetadata.prototype.voipCount = function() {
1056  return this.count$Values(8);
1057};
1058
1059
1060/**
1061 * Clears the values in the voip field.
1062 */
1063i18n.phonenumbers.PhoneMetadata.prototype.clearVoip = function() {
1064  this.clear$Field(8);
1065};
1066
1067
1068/**
1069 * Gets the value of the pager field.
1070 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1071 */
1072i18n.phonenumbers.PhoneMetadata.prototype.getPager = function() {
1073  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(21));
1074};
1075
1076
1077/**
1078 * Gets the value of the pager field or the default value if not set.
1079 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1080 */
1081i18n.phonenumbers.PhoneMetadata.prototype.getPagerOrDefault = function() {
1082  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(21));
1083};
1084
1085
1086/**
1087 * Sets the value of the pager field.
1088 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1089 */
1090i18n.phonenumbers.PhoneMetadata.prototype.setPager = function(value) {
1091  this.set$Value(21, value);
1092};
1093
1094
1095/**
1096 * @return {boolean} Whether the pager field has a value.
1097 */
1098i18n.phonenumbers.PhoneMetadata.prototype.hasPager = function() {
1099  return this.has$Value(21);
1100};
1101
1102
1103/**
1104 * @return {number} The number of values in the pager field.
1105 */
1106i18n.phonenumbers.PhoneMetadata.prototype.pagerCount = function() {
1107  return this.count$Values(21);
1108};
1109
1110
1111/**
1112 * Clears the values in the pager field.
1113 */
1114i18n.phonenumbers.PhoneMetadata.prototype.clearPager = function() {
1115  this.clear$Field(21);
1116};
1117
1118
1119/**
1120 * Gets the value of the uan field.
1121 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1122 */
1123i18n.phonenumbers.PhoneMetadata.prototype.getUan = function() {
1124  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(25));
1125};
1126
1127
1128/**
1129 * Gets the value of the uan field or the default value if not set.
1130 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1131 */
1132i18n.phonenumbers.PhoneMetadata.prototype.getUanOrDefault = function() {
1133  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(25));
1134};
1135
1136
1137/**
1138 * Sets the value of the uan field.
1139 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1140 */
1141i18n.phonenumbers.PhoneMetadata.prototype.setUan = function(value) {
1142  this.set$Value(25, value);
1143};
1144
1145
1146/**
1147 * @return {boolean} Whether the uan field has a value.
1148 */
1149i18n.phonenumbers.PhoneMetadata.prototype.hasUan = function() {
1150  return this.has$Value(25);
1151};
1152
1153
1154/**
1155 * @return {number} The number of values in the uan field.
1156 */
1157i18n.phonenumbers.PhoneMetadata.prototype.uanCount = function() {
1158  return this.count$Values(25);
1159};
1160
1161
1162/**
1163 * Clears the values in the uan field.
1164 */
1165i18n.phonenumbers.PhoneMetadata.prototype.clearUan = function() {
1166  this.clear$Field(25);
1167};
1168
1169
1170/**
1171 * Gets the value of the emergency field.
1172 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1173 */
1174i18n.phonenumbers.PhoneMetadata.prototype.getEmergency = function() {
1175  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(27));
1176};
1177
1178
1179/**
1180 * Gets the value of the emergency field or the default value if not set.
1181 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1182 */
1183i18n.phonenumbers.PhoneMetadata.prototype.getEmergencyOrDefault = function() {
1184  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(27));
1185};
1186
1187
1188/**
1189 * Sets the value of the emergency field.
1190 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1191 */
1192i18n.phonenumbers.PhoneMetadata.prototype.setEmergency = function(value) {
1193  this.set$Value(27, value);
1194};
1195
1196
1197/**
1198 * @return {boolean} Whether the emergency field has a value.
1199 */
1200i18n.phonenumbers.PhoneMetadata.prototype.hasEmergency = function() {
1201  return this.has$Value(27);
1202};
1203
1204
1205/**
1206 * @return {number} The number of values in the emergency field.
1207 */
1208i18n.phonenumbers.PhoneMetadata.prototype.emergencyCount = function() {
1209  return this.count$Values(27);
1210};
1211
1212
1213/**
1214 * Clears the values in the emergency field.
1215 */
1216i18n.phonenumbers.PhoneMetadata.prototype.clearEmergency = function() {
1217  this.clear$Field(27);
1218};
1219
1220
1221/**
1222 * Gets the value of the voicemail field.
1223 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1224 */
1225i18n.phonenumbers.PhoneMetadata.prototype.getVoicemail = function() {
1226  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(28));
1227};
1228
1229
1230/**
1231 * Gets the value of the voicemail field or the default value if not set.
1232 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1233 */
1234i18n.phonenumbers.PhoneMetadata.prototype.getVoicemailOrDefault = function() {
1235  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(28));
1236};
1237
1238
1239/**
1240 * Sets the value of the voicemail field.
1241 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1242 */
1243i18n.phonenumbers.PhoneMetadata.prototype.setVoicemail = function(value) {
1244  this.set$Value(28, value);
1245};
1246
1247
1248/**
1249 * @return {boolean} Whether the voicemail field has a value.
1250 */
1251i18n.phonenumbers.PhoneMetadata.prototype.hasVoicemail = function() {
1252  return this.has$Value(28);
1253};
1254
1255
1256/**
1257 * @return {number} The number of values in the voicemail field.
1258 */
1259i18n.phonenumbers.PhoneMetadata.prototype.voicemailCount = function() {
1260  return this.count$Values(28);
1261};
1262
1263
1264/**
1265 * Clears the values in the voicemail field.
1266 */
1267i18n.phonenumbers.PhoneMetadata.prototype.clearVoicemail = function() {
1268  this.clear$Field(28);
1269};
1270
1271
1272/**
1273 * Gets the value of the short_code field.
1274 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1275 */
1276i18n.phonenumbers.PhoneMetadata.prototype.getShortCode = function() {
1277  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(29));
1278};
1279
1280
1281/**
1282 * Gets the value of the short_code field or the default value if not set.
1283 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1284 */
1285i18n.phonenumbers.PhoneMetadata.prototype.getShortCodeOrDefault = function() {
1286  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(29));
1287};
1288
1289
1290/**
1291 * Sets the value of the short_code field.
1292 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1293 */
1294i18n.phonenumbers.PhoneMetadata.prototype.setShortCode = function(value) {
1295  this.set$Value(29, value);
1296};
1297
1298
1299/**
1300 * @return {boolean} Whether the short_code field has a value.
1301 */
1302i18n.phonenumbers.PhoneMetadata.prototype.hasShortCode = function() {
1303  return this.has$Value(29);
1304};
1305
1306
1307/**
1308 * @return {number} The number of values in the short_code field.
1309 */
1310i18n.phonenumbers.PhoneMetadata.prototype.shortCodeCount = function() {
1311  return this.count$Values(29);
1312};
1313
1314
1315/**
1316 * Clears the values in the short_code field.
1317 */
1318i18n.phonenumbers.PhoneMetadata.prototype.clearShortCode = function() {
1319  this.clear$Field(29);
1320};
1321
1322
1323/**
1324 * Gets the value of the standard_rate field.
1325 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1326 */
1327i18n.phonenumbers.PhoneMetadata.prototype.getStandardRate = function() {
1328  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(30));
1329};
1330
1331
1332/**
1333 * Gets the value of the standard_rate field or the default value if not set.
1334 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1335 */
1336i18n.phonenumbers.PhoneMetadata.prototype.getStandardRateOrDefault = function() {
1337  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(30));
1338};
1339
1340
1341/**
1342 * Sets the value of the standard_rate field.
1343 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1344 */
1345i18n.phonenumbers.PhoneMetadata.prototype.setStandardRate = function(value) {
1346  this.set$Value(30, value);
1347};
1348
1349
1350/**
1351 * @return {boolean} Whether the standard_rate field has a value.
1352 */
1353i18n.phonenumbers.PhoneMetadata.prototype.hasStandardRate = function() {
1354  return this.has$Value(30);
1355};
1356
1357
1358/**
1359 * @return {number} The number of values in the standard_rate field.
1360 */
1361i18n.phonenumbers.PhoneMetadata.prototype.standardRateCount = function() {
1362  return this.count$Values(30);
1363};
1364
1365
1366/**
1367 * Clears the values in the standard_rate field.
1368 */
1369i18n.phonenumbers.PhoneMetadata.prototype.clearStandardRate = function() {
1370  this.clear$Field(30);
1371};
1372
1373
1374/**
1375 * Gets the value of the carrier_specific field.
1376 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1377 */
1378i18n.phonenumbers.PhoneMetadata.prototype.getCarrierSpecific = function() {
1379  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(31));
1380};
1381
1382
1383/**
1384 * Gets the value of the carrier_specific field or the default value if not set.
1385 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1386 */
1387i18n.phonenumbers.PhoneMetadata.prototype.getCarrierSpecificOrDefault = function() {
1388  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(31));
1389};
1390
1391
1392/**
1393 * Sets the value of the carrier_specific field.
1394 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1395 */
1396i18n.phonenumbers.PhoneMetadata.prototype.setCarrierSpecific = function(value) {
1397  this.set$Value(31, value);
1398};
1399
1400
1401/**
1402 * @return {boolean} Whether the carrier_specific field has a value.
1403 */
1404i18n.phonenumbers.PhoneMetadata.prototype.hasCarrierSpecific = function() {
1405  return this.has$Value(31);
1406};
1407
1408
1409/**
1410 * @return {number} The number of values in the carrier_specific field.
1411 */
1412i18n.phonenumbers.PhoneMetadata.prototype.carrierSpecificCount = function() {
1413  return this.count$Values(31);
1414};
1415
1416
1417/**
1418 * Clears the values in the carrier_specific field.
1419 */
1420i18n.phonenumbers.PhoneMetadata.prototype.clearCarrierSpecific = function() {
1421  this.clear$Field(31);
1422};
1423
1424
1425/**
1426 * Gets the value of the sms_services field.
1427 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1428 */
1429i18n.phonenumbers.PhoneMetadata.prototype.getSmsServices = function() {
1430  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(33));
1431};
1432
1433
1434/**
1435 * Gets the value of the sms_services field or the default value if not set.
1436 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1437 */
1438i18n.phonenumbers.PhoneMetadata.prototype.getSmsServicesOrDefault = function() {
1439  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(33));
1440};
1441
1442
1443/**
1444 * Sets the value of the sms_services field.
1445 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1446 */
1447i18n.phonenumbers.PhoneMetadata.prototype.setSmsServices = function(value) {
1448  this.set$Value(33, value);
1449};
1450
1451
1452/**
1453 * @return {boolean} Whether the sms_services field has a value.
1454 */
1455i18n.phonenumbers.PhoneMetadata.prototype.hasSmsServices = function() {
1456  return this.has$Value(33);
1457};
1458
1459
1460/**
1461 * @return {number} The number of values in the sms_services field.
1462 */
1463i18n.phonenumbers.PhoneMetadata.prototype.smsServicesCount = function() {
1464  return this.count$Values(33);
1465};
1466
1467
1468/**
1469 * Clears the values in the sms_services field.
1470 */
1471i18n.phonenumbers.PhoneMetadata.prototype.clearSmsServices = function() {
1472  this.clear$Field(33);
1473};
1474
1475
1476/**
1477 * Gets the value of the no_international_dialling field.
1478 * @return {?i18n.phonenumbers.PhoneNumberDesc} The value.
1479 */
1480i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDialling = function() {
1481  return /** @type {?i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(24));
1482};
1483
1484
1485/**
1486 * Gets the value of the no_international_dialling field or the default value if not set.
1487 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1488 */
1489i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDiallingOrDefault = function() {
1490  return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(24));
1491};
1492
1493
1494/**
1495 * Sets the value of the no_international_dialling field.
1496 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1497 */
1498i18n.phonenumbers.PhoneMetadata.prototype.setNoInternationalDialling = function(value) {
1499  this.set$Value(24, value);
1500};
1501
1502
1503/**
1504 * @return {boolean} Whether the no_international_dialling field has a value.
1505 */
1506i18n.phonenumbers.PhoneMetadata.prototype.hasNoInternationalDialling = function() {
1507  return this.has$Value(24);
1508};
1509
1510
1511/**
1512 * @return {number} The number of values in the no_international_dialling field.
1513 */
1514i18n.phonenumbers.PhoneMetadata.prototype.noInternationalDiallingCount = function() {
1515  return this.count$Values(24);
1516};
1517
1518
1519/**
1520 * Clears the values in the no_international_dialling field.
1521 */
1522i18n.phonenumbers.PhoneMetadata.prototype.clearNoInternationalDialling = function() {
1523  this.clear$Field(24);
1524};
1525
1526
1527/**
1528 * Gets the value of the id field.
1529 * @return {?string} The value.
1530 */
1531i18n.phonenumbers.PhoneMetadata.prototype.getId = function() {
1532  return /** @type {?string} */ (this.get$Value(9));
1533};
1534
1535
1536/**
1537 * Gets the value of the id field or the default value if not set.
1538 * @return {string} The value.
1539 */
1540i18n.phonenumbers.PhoneMetadata.prototype.getIdOrDefault = function() {
1541  return /** @type {string} */ (this.get$ValueOrDefault(9));
1542};
1543
1544
1545/**
1546 * Sets the value of the id field.
1547 * @param {string} value The value.
1548 */
1549i18n.phonenumbers.PhoneMetadata.prototype.setId = function(value) {
1550  this.set$Value(9, value);
1551};
1552
1553
1554/**
1555 * @return {boolean} Whether the id field has a value.
1556 */
1557i18n.phonenumbers.PhoneMetadata.prototype.hasId = function() {
1558  return this.has$Value(9);
1559};
1560
1561
1562/**
1563 * @return {number} The number of values in the id field.
1564 */
1565i18n.phonenumbers.PhoneMetadata.prototype.idCount = function() {
1566  return this.count$Values(9);
1567};
1568
1569
1570/**
1571 * Clears the values in the id field.
1572 */
1573i18n.phonenumbers.PhoneMetadata.prototype.clearId = function() {
1574  this.clear$Field(9);
1575};
1576
1577
1578/**
1579 * Gets the value of the country_code field.
1580 * @return {?number} The value.
1581 */
1582i18n.phonenumbers.PhoneMetadata.prototype.getCountryCode = function() {
1583  return /** @type {?number} */ (this.get$Value(10));
1584};
1585
1586
1587/**
1588 * Gets the value of the country_code field or the default value if not set.
1589 * @return {number} The value.
1590 */
1591i18n.phonenumbers.PhoneMetadata.prototype.getCountryCodeOrDefault = function() {
1592  return /** @type {number} */ (this.get$ValueOrDefault(10));
1593};
1594
1595
1596/**
1597 * Sets the value of the country_code field.
1598 * @param {number} value The value.
1599 */
1600i18n.phonenumbers.PhoneMetadata.prototype.setCountryCode = function(value) {
1601  this.set$Value(10, value);
1602};
1603
1604
1605/**
1606 * @return {boolean} Whether the country_code field has a value.
1607 */
1608i18n.phonenumbers.PhoneMetadata.prototype.hasCountryCode = function() {
1609  return this.has$Value(10);
1610};
1611
1612
1613/**
1614 * @return {number} The number of values in the country_code field.
1615 */
1616i18n.phonenumbers.PhoneMetadata.prototype.countryCodeCount = function() {
1617  return this.count$Values(10);
1618};
1619
1620
1621/**
1622 * Clears the values in the country_code field.
1623 */
1624i18n.phonenumbers.PhoneMetadata.prototype.clearCountryCode = function() {
1625  this.clear$Field(10);
1626};
1627
1628
1629/**
1630 * Gets the value of the international_prefix field.
1631 * @return {?string} The value.
1632 */
1633i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefix = function() {
1634  return /** @type {?string} */ (this.get$Value(11));
1635};
1636
1637
1638/**
1639 * Gets the value of the international_prefix field or the default value if not set.
1640 * @return {string} The value.
1641 */
1642i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefixOrDefault = function() {
1643  return /** @type {string} */ (this.get$ValueOrDefault(11));
1644};
1645
1646
1647/**
1648 * Sets the value of the international_prefix field.
1649 * @param {string} value The value.
1650 */
1651i18n.phonenumbers.PhoneMetadata.prototype.setInternationalPrefix = function(value) {
1652  this.set$Value(11, value);
1653};
1654
1655
1656/**
1657 * @return {boolean} Whether the international_prefix field has a value.
1658 */
1659i18n.phonenumbers.PhoneMetadata.prototype.hasInternationalPrefix = function() {
1660  return this.has$Value(11);
1661};
1662
1663
1664/**
1665 * @return {number} The number of values in the international_prefix field.
1666 */
1667i18n.phonenumbers.PhoneMetadata.prototype.internationalPrefixCount = function() {
1668  return this.count$Values(11);
1669};
1670
1671
1672/**
1673 * Clears the values in the international_prefix field.
1674 */
1675i18n.phonenumbers.PhoneMetadata.prototype.clearInternationalPrefix = function() {
1676  this.clear$Field(11);
1677};
1678
1679
1680/**
1681 * Gets the value of the preferred_international_prefix field.
1682 * @return {?string} The value.
1683 */
1684i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefix = function() {
1685  return /** @type {?string} */ (this.get$Value(17));
1686};
1687
1688
1689/**
1690 * Gets the value of the preferred_international_prefix field or the default value if not set.
1691 * @return {string} The value.
1692 */
1693i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefixOrDefault = function() {
1694  return /** @type {string} */ (this.get$ValueOrDefault(17));
1695};
1696
1697
1698/**
1699 * Sets the value of the preferred_international_prefix field.
1700 * @param {string} value The value.
1701 */
1702i18n.phonenumbers.PhoneMetadata.prototype.setPreferredInternationalPrefix = function(value) {
1703  this.set$Value(17, value);
1704};
1705
1706
1707/**
1708 * @return {boolean} Whether the preferred_international_prefix field has a value.
1709 */
1710i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredInternationalPrefix = function() {
1711  return this.has$Value(17);
1712};
1713
1714
1715/**
1716 * @return {number} The number of values in the preferred_international_prefix field.
1717 */
1718i18n.phonenumbers.PhoneMetadata.prototype.preferredInternationalPrefixCount = function() {
1719  return this.count$Values(17);
1720};
1721
1722
1723/**
1724 * Clears the values in the preferred_international_prefix field.
1725 */
1726i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredInternationalPrefix = function() {
1727  this.clear$Field(17);
1728};
1729
1730
1731/**
1732 * Gets the value of the national_prefix field.
1733 * @return {?string} The value.
1734 */
1735i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefix = function() {
1736  return /** @type {?string} */ (this.get$Value(12));
1737};
1738
1739
1740/**
1741 * Gets the value of the national_prefix field or the default value if not set.
1742 * @return {string} The value.
1743 */
1744i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixOrDefault = function() {
1745  return /** @type {string} */ (this.get$ValueOrDefault(12));
1746};
1747
1748
1749/**
1750 * Sets the value of the national_prefix field.
1751 * @param {string} value The value.
1752 */
1753i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefix = function(value) {
1754  this.set$Value(12, value);
1755};
1756
1757
1758/**
1759 * @return {boolean} Whether the national_prefix field has a value.
1760 */
1761i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix = function() {
1762  return this.has$Value(12);
1763};
1764
1765
1766/**
1767 * @return {number} The number of values in the national_prefix field.
1768 */
1769i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixCount = function() {
1770  return this.count$Values(12);
1771};
1772
1773
1774/**
1775 * Clears the values in the national_prefix field.
1776 */
1777i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefix = function() {
1778  this.clear$Field(12);
1779};
1780
1781
1782/**
1783 * Gets the value of the preferred_extn_prefix field.
1784 * @return {?string} The value.
1785 */
1786i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefix = function() {
1787  return /** @type {?string} */ (this.get$Value(13));
1788};
1789
1790
1791/**
1792 * Gets the value of the preferred_extn_prefix field or the default value if not set.
1793 * @return {string} The value.
1794 */
1795i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefixOrDefault = function() {
1796  return /** @type {string} */ (this.get$ValueOrDefault(13));
1797};
1798
1799
1800/**
1801 * Sets the value of the preferred_extn_prefix field.
1802 * @param {string} value The value.
1803 */
1804i18n.phonenumbers.PhoneMetadata.prototype.setPreferredExtnPrefix = function(value) {
1805  this.set$Value(13, value);
1806};
1807
1808
1809/**
1810 * @return {boolean} Whether the preferred_extn_prefix field has a value.
1811 */
1812i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredExtnPrefix = function() {
1813  return this.has$Value(13);
1814};
1815
1816
1817/**
1818 * @return {number} The number of values in the preferred_extn_prefix field.
1819 */
1820i18n.phonenumbers.PhoneMetadata.prototype.preferredExtnPrefixCount = function() {
1821  return this.count$Values(13);
1822};
1823
1824
1825/**
1826 * Clears the values in the preferred_extn_prefix field.
1827 */
1828i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredExtnPrefix = function() {
1829  this.clear$Field(13);
1830};
1831
1832
1833/**
1834 * Gets the value of the national_prefix_for_parsing field.
1835 * @return {?string} The value.
1836 */
1837i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsing = function() {
1838  return /** @type {?string} */ (this.get$Value(15));
1839};
1840
1841
1842/**
1843 * Gets the value of the national_prefix_for_parsing field or the default value if not set.
1844 * @return {string} The value.
1845 */
1846i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsingOrDefault = function() {
1847  return /** @type {string} */ (this.get$ValueOrDefault(15));
1848};
1849
1850
1851/**
1852 * Sets the value of the national_prefix_for_parsing field.
1853 * @param {string} value The value.
1854 */
1855i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixForParsing = function(value) {
1856  this.set$Value(15, value);
1857};
1858
1859
1860/**
1861 * @return {boolean} Whether the national_prefix_for_parsing field has a value.
1862 */
1863i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixForParsing = function() {
1864  return this.has$Value(15);
1865};
1866
1867
1868/**
1869 * @return {number} The number of values in the national_prefix_for_parsing field.
1870 */
1871i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixForParsingCount = function() {
1872  return this.count$Values(15);
1873};
1874
1875
1876/**
1877 * Clears the values in the national_prefix_for_parsing field.
1878 */
1879i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixForParsing = function() {
1880  this.clear$Field(15);
1881};
1882
1883
1884/**
1885 * Gets the value of the national_prefix_transform_rule field.
1886 * @return {?string} The value.
1887 */
1888i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRule = function() {
1889  return /** @type {?string} */ (this.get$Value(16));
1890};
1891
1892
1893/**
1894 * Gets the value of the national_prefix_transform_rule field or the default value if not set.
1895 * @return {string} The value.
1896 */
1897i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRuleOrDefault = function() {
1898  return /** @type {string} */ (this.get$ValueOrDefault(16));
1899};
1900
1901
1902/**
1903 * Sets the value of the national_prefix_transform_rule field.
1904 * @param {string} value The value.
1905 */
1906i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixTransformRule = function(value) {
1907  this.set$Value(16, value);
1908};
1909
1910
1911/**
1912 * @return {boolean} Whether the national_prefix_transform_rule field has a value.
1913 */
1914i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixTransformRule = function() {
1915  return this.has$Value(16);
1916};
1917
1918
1919/**
1920 * @return {number} The number of values in the national_prefix_transform_rule field.
1921 */
1922i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixTransformRuleCount = function() {
1923  return this.count$Values(16);
1924};
1925
1926
1927/**
1928 * Clears the values in the national_prefix_transform_rule field.
1929 */
1930i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixTransformRule = function() {
1931  this.clear$Field(16);
1932};
1933
1934
1935/**
1936 * Gets the value of the same_mobile_and_fixed_line_pattern field.
1937 * @return {?boolean} The value.
1938 */
1939i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePattern = function() {
1940  return /** @type {?boolean} */ (this.get$Value(18));
1941};
1942
1943
1944/**
1945 * Gets the value of the same_mobile_and_fixed_line_pattern field or the default value if not set.
1946 * @return {boolean} The value.
1947 */
1948i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePatternOrDefault = function() {
1949  return /** @type {boolean} */ (this.get$ValueOrDefault(18));
1950};
1951
1952
1953/**
1954 * Sets the value of the same_mobile_and_fixed_line_pattern field.
1955 * @param {boolean} value The value.
1956 */
1957i18n.phonenumbers.PhoneMetadata.prototype.setSameMobileAndFixedLinePattern = function(value) {
1958  this.set$Value(18, value);
1959};
1960
1961
1962/**
1963 * @return {boolean} Whether the same_mobile_and_fixed_line_pattern field has a value.
1964 */
1965i18n.phonenumbers.PhoneMetadata.prototype.hasSameMobileAndFixedLinePattern = function() {
1966  return this.has$Value(18);
1967};
1968
1969
1970/**
1971 * @return {number} The number of values in the same_mobile_and_fixed_line_pattern field.
1972 */
1973i18n.phonenumbers.PhoneMetadata.prototype.sameMobileAndFixedLinePatternCount = function() {
1974  return this.count$Values(18);
1975};
1976
1977
1978/**
1979 * Clears the values in the same_mobile_and_fixed_line_pattern field.
1980 */
1981i18n.phonenumbers.PhoneMetadata.prototype.clearSameMobileAndFixedLinePattern = function() {
1982  this.clear$Field(18);
1983};
1984
1985
1986/**
1987 * Gets the value of the number_format field at the index given.
1988 * @param {number} index The index to lookup.
1989 * @return {?i18n.phonenumbers.NumberFormat} The value.
1990 */
1991i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormat = function(index) {
1992  return /** @type {?i18n.phonenumbers.NumberFormat} */ (this.get$Value(19, index));
1993};
1994
1995
1996/**
1997 * Gets the value of the number_format field at the index given or the default value if not set.
1998 * @param {number} index The index to lookup.
1999 * @return {!i18n.phonenumbers.NumberFormat} The value.
2000 */
2001i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormatOrDefault = function(index) {
2002  return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(19, index));
2003};
2004
2005
2006/**
2007 * Adds a value to the number_format field.
2008 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
2009 */
2010i18n.phonenumbers.PhoneMetadata.prototype.addNumberFormat = function(value) {
2011  this.add$Value(19, value);
2012};
2013
2014
2015/**
2016 * Returns the array of values in the number_format field.
2017 * @return {!Array<!i18n.phonenumbers.NumberFormat>} The values in the field.
2018 */
2019i18n.phonenumbers.PhoneMetadata.prototype.numberFormatArray = function() {
2020  return /** @type {!Array<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(19));
2021};
2022
2023
2024/**
2025 * @return {boolean} Whether the number_format field has a value.
2026 */
2027i18n.phonenumbers.PhoneMetadata.prototype.hasNumberFormat = function() {
2028  return this.has$Value(19);
2029};
2030
2031
2032/**
2033 * @return {number} The number of values in the number_format field.
2034 */
2035i18n.phonenumbers.PhoneMetadata.prototype.numberFormatCount = function() {
2036  return this.count$Values(19);
2037};
2038
2039
2040/**
2041 * Clears the values in the number_format field.
2042 */
2043i18n.phonenumbers.PhoneMetadata.prototype.clearNumberFormat = function() {
2044  this.clear$Field(19);
2045};
2046
2047
2048/**
2049 * Gets the value of the intl_number_format field at the index given.
2050 * @param {number} index The index to lookup.
2051 * @return {?i18n.phonenumbers.NumberFormat} The value.
2052 */
2053i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormat = function(index) {
2054  return /** @type {?i18n.phonenumbers.NumberFormat} */ (this.get$Value(20, index));
2055};
2056
2057
2058/**
2059 * Gets the value of the intl_number_format field at the index given or the default value if not set.
2060 * @param {number} index The index to lookup.
2061 * @return {!i18n.phonenumbers.NumberFormat} The value.
2062 */
2063i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormatOrDefault = function(index) {
2064  return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(20, index));
2065};
2066
2067
2068/**
2069 * Adds a value to the intl_number_format field.
2070 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
2071 */
2072i18n.phonenumbers.PhoneMetadata.prototype.addIntlNumberFormat = function(value) {
2073  this.add$Value(20, value);
2074};
2075
2076
2077/**
2078 * Returns the array of values in the intl_number_format field.
2079 * @return {!Array<!i18n.phonenumbers.NumberFormat>} The values in the field.
2080 */
2081i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatArray = function() {
2082  return /** @type {!Array<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(20));
2083};
2084
2085
2086/**
2087 * @return {boolean} Whether the intl_number_format field has a value.
2088 */
2089i18n.phonenumbers.PhoneMetadata.prototype.hasIntlNumberFormat = function() {
2090  return this.has$Value(20);
2091};
2092
2093
2094/**
2095 * @return {number} The number of values in the intl_number_format field.
2096 */
2097i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatCount = function() {
2098  return this.count$Values(20);
2099};
2100
2101
2102/**
2103 * Clears the values in the intl_number_format field.
2104 */
2105i18n.phonenumbers.PhoneMetadata.prototype.clearIntlNumberFormat = function() {
2106  this.clear$Field(20);
2107};
2108
2109
2110/**
2111 * Gets the value of the main_country_for_code field.
2112 * @return {?boolean} The value.
2113 */
2114i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCode = function() {
2115  return /** @type {?boolean} */ (this.get$Value(22));
2116};
2117
2118
2119/**
2120 * Gets the value of the main_country_for_code field or the default value if not set.
2121 * @return {boolean} The value.
2122 */
2123i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCodeOrDefault = function() {
2124  return /** @type {boolean} */ (this.get$ValueOrDefault(22));
2125};
2126
2127
2128/**
2129 * Sets the value of the main_country_for_code field.
2130 * @param {boolean} value The value.
2131 */
2132i18n.phonenumbers.PhoneMetadata.prototype.setMainCountryForCode = function(value) {
2133  this.set$Value(22, value);
2134};
2135
2136
2137/**
2138 * @return {boolean} Whether the main_country_for_code field has a value.
2139 */
2140i18n.phonenumbers.PhoneMetadata.prototype.hasMainCountryForCode = function() {
2141  return this.has$Value(22);
2142};
2143
2144
2145/**
2146 * @return {number} The number of values in the main_country_for_code field.
2147 */
2148i18n.phonenumbers.PhoneMetadata.prototype.mainCountryForCodeCount = function() {
2149  return this.count$Values(22);
2150};
2151
2152
2153/**
2154 * Clears the values in the main_country_for_code field.
2155 */
2156i18n.phonenumbers.PhoneMetadata.prototype.clearMainCountryForCode = function() {
2157  this.clear$Field(22);
2158};
2159
2160
2161/**
2162 * Gets the value of the leading_digits field.
2163 * @return {?string} The value.
2164 */
2165i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigits = function() {
2166  return /** @type {?string} */ (this.get$Value(23));
2167};
2168
2169
2170/**
2171 * Gets the value of the leading_digits field or the default value if not set.
2172 * @return {string} The value.
2173 */
2174i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigitsOrDefault = function() {
2175  return /** @type {string} */ (this.get$ValueOrDefault(23));
2176};
2177
2178
2179/**
2180 * Sets the value of the leading_digits field.
2181 * @param {string} value The value.
2182 */
2183i18n.phonenumbers.PhoneMetadata.prototype.setLeadingDigits = function(value) {
2184  this.set$Value(23, value);
2185};
2186
2187
2188/**
2189 * @return {boolean} Whether the leading_digits field has a value.
2190 */
2191i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingDigits = function() {
2192  return this.has$Value(23);
2193};
2194
2195
2196/**
2197 * @return {number} The number of values in the leading_digits field.
2198 */
2199i18n.phonenumbers.PhoneMetadata.prototype.leadingDigitsCount = function() {
2200  return this.count$Values(23);
2201};
2202
2203
2204/**
2205 * Clears the values in the leading_digits field.
2206 */
2207i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingDigits = function() {
2208  this.clear$Field(23);
2209};
2210
2211
2212/**
2213 * Gets the value of the leading_zero_possible field.
2214 * @return {?boolean} The value.
2215 */
2216i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossible = function() {
2217  return /** @type {?boolean} */ (this.get$Value(26));
2218};
2219
2220
2221/**
2222 * Gets the value of the leading_zero_possible field or the default value if not set.
2223 * @return {boolean} The value.
2224 */
2225i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossibleOrDefault = function() {
2226  return /** @type {boolean} */ (this.get$ValueOrDefault(26));
2227};
2228
2229
2230/**
2231 * Sets the value of the leading_zero_possible field.
2232 * @param {boolean} value The value.
2233 */
2234i18n.phonenumbers.PhoneMetadata.prototype.setLeadingZeroPossible = function(value) {
2235  this.set$Value(26, value);
2236};
2237
2238
2239/**
2240 * @return {boolean} Whether the leading_zero_possible field has a value.
2241 */
2242i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingZeroPossible = function() {
2243  return this.has$Value(26);
2244};
2245
2246
2247/**
2248 * @return {number} The number of values in the leading_zero_possible field.
2249 */
2250i18n.phonenumbers.PhoneMetadata.prototype.leadingZeroPossibleCount = function() {
2251  return this.count$Values(26);
2252};
2253
2254
2255/**
2256 * Clears the values in the leading_zero_possible field.
2257 */
2258i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingZeroPossible = function() {
2259  this.clear$Field(26);
2260};
2261
2262
2263/**
2264 * Message PhoneMetadataCollection.
2265 * @constructor
2266 * @extends {goog.proto2.Message}
2267 * @final
2268 */
2269i18n.phonenumbers.PhoneMetadataCollection = function() {
2270  goog.proto2.Message.call(this);
2271};
2272goog.inherits(i18n.phonenumbers.PhoneMetadataCollection, goog.proto2.Message);
2273
2274
2275/**
2276 * Descriptor for this message, deserialized lazily in getDescriptor().
2277 * @private {?goog.proto2.Descriptor}
2278 */
2279i18n.phonenumbers.PhoneMetadataCollection.descriptor_ = null;
2280
2281
2282/**
2283 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
2284 * @return {!i18n.phonenumbers.PhoneMetadataCollection} The cloned message.
2285 * @override
2286 */
2287i18n.phonenumbers.PhoneMetadataCollection.prototype.clone;
2288
2289
2290/**
2291 * Gets the value of the metadata field at the index given.
2292 * @param {number} index The index to lookup.
2293 * @return {?i18n.phonenumbers.PhoneMetadata} The value.
2294 */
2295i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadata = function(index) {
2296  return /** @type {?i18n.phonenumbers.PhoneMetadata} */ (this.get$Value(1, index));
2297};
2298
2299
2300/**
2301 * Gets the value of the metadata field at the index given or the default value if not set.
2302 * @param {number} index The index to lookup.
2303 * @return {!i18n.phonenumbers.PhoneMetadata} The value.
2304 */
2305i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadataOrDefault = function(index) {
2306  return /** @type {!i18n.phonenumbers.PhoneMetadata} */ (this.get$ValueOrDefault(1, index));
2307};
2308
2309
2310/**
2311 * Adds a value to the metadata field.
2312 * @param {!i18n.phonenumbers.PhoneMetadata} value The value to add.
2313 */
2314i18n.phonenumbers.PhoneMetadataCollection.prototype.addMetadata = function(value) {
2315  this.add$Value(1, value);
2316};
2317
2318
2319/**
2320 * Returns the array of values in the metadata field.
2321 * @return {!Array<!i18n.phonenumbers.PhoneMetadata>} The values in the field.
2322 */
2323i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataArray = function() {
2324  return /** @type {!Array<!i18n.phonenumbers.PhoneMetadata>} */ (this.array$Values(1));
2325};
2326
2327
2328/**
2329 * @return {boolean} Whether the metadata field has a value.
2330 */
2331i18n.phonenumbers.PhoneMetadataCollection.prototype.hasMetadata = function() {
2332  return this.has$Value(1);
2333};
2334
2335
2336/**
2337 * @return {number} The number of values in the metadata field.
2338 */
2339i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataCount = function() {
2340  return this.count$Values(1);
2341};
2342
2343
2344/**
2345 * Clears the values in the metadata field.
2346 */
2347i18n.phonenumbers.PhoneMetadataCollection.prototype.clearMetadata = function() {
2348  this.clear$Field(1);
2349};
2350
2351
2352/** @override */
2353i18n.phonenumbers.NumberFormat.prototype.getDescriptor = function() {
2354  var descriptor = i18n.phonenumbers.NumberFormat.descriptor_;
2355  if (!descriptor) {
2356    // The descriptor is created lazily when we instantiate a new instance.
2357    var descriptorObj = {
2358      0: {
2359        name: 'NumberFormat',
2360        fullName: 'i18n.phonenumbers.NumberFormat'
2361      },
2362      1: {
2363        name: 'pattern',
2364        required: true,
2365        fieldType: goog.proto2.Message.FieldType.STRING,
2366        type: String
2367      },
2368      2: {
2369        name: 'format',
2370        required: true,
2371        fieldType: goog.proto2.Message.FieldType.STRING,
2372        type: String
2373      },
2374      3: {
2375        name: 'leading_digits_pattern',
2376        repeated: true,
2377        fieldType: goog.proto2.Message.FieldType.STRING,
2378        type: String
2379      },
2380      4: {
2381        name: 'national_prefix_formatting_rule',
2382        fieldType: goog.proto2.Message.FieldType.STRING,
2383        type: String
2384      },
2385      6: {
2386        name: 'national_prefix_optional_when_formatting',
2387        fieldType: goog.proto2.Message.FieldType.BOOL,
2388        defaultValue: false,
2389        type: Boolean
2390      },
2391      5: {
2392        name: 'domestic_carrier_code_formatting_rule',
2393        fieldType: goog.proto2.Message.FieldType.STRING,
2394        type: String
2395      }
2396    };
2397    i18n.phonenumbers.NumberFormat.descriptor_ = descriptor =
2398        goog.proto2.Message.createDescriptor(
2399             i18n.phonenumbers.NumberFormat, descriptorObj);
2400  }
2401  return descriptor;
2402};
2403
2404
2405/** @nocollapse */
2406i18n.phonenumbers.NumberFormat.getDescriptor =
2407    i18n.phonenumbers.NumberFormat.prototype.getDescriptor;
2408
2409
2410/** @override */
2411i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor = function() {
2412  var descriptor = i18n.phonenumbers.PhoneNumberDesc.descriptor_;
2413  if (!descriptor) {
2414    // The descriptor is created lazily when we instantiate a new instance.
2415    var descriptorObj = {
2416      0: {
2417        name: 'PhoneNumberDesc',
2418        fullName: 'i18n.phonenumbers.PhoneNumberDesc'
2419      },
2420      2: {
2421        name: 'national_number_pattern',
2422        fieldType: goog.proto2.Message.FieldType.STRING,
2423        type: String
2424      },
2425      9: {
2426        name: 'possible_length',
2427        repeated: true,
2428        fieldType: goog.proto2.Message.FieldType.INT32,
2429        type: Number
2430      },
2431      10: {
2432        name: 'possible_length_local_only',
2433        repeated: true,
2434        fieldType: goog.proto2.Message.FieldType.INT32,
2435        type: Number
2436      },
2437      6: {
2438        name: 'example_number',
2439        fieldType: goog.proto2.Message.FieldType.STRING,
2440        type: String
2441      }
2442    };
2443    i18n.phonenumbers.PhoneNumberDesc.descriptor_ = descriptor =
2444        goog.proto2.Message.createDescriptor(
2445             i18n.phonenumbers.PhoneNumberDesc, descriptorObj);
2446  }
2447  return descriptor;
2448};
2449
2450
2451/** @nocollapse */
2452i18n.phonenumbers.PhoneNumberDesc.getDescriptor =
2453    i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor;
2454
2455
2456/** @override */
2457i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor = function() {
2458  var descriptor = i18n.phonenumbers.PhoneMetadata.descriptor_;
2459  if (!descriptor) {
2460    // The descriptor is created lazily when we instantiate a new instance.
2461    var descriptorObj = {
2462      0: {
2463        name: 'PhoneMetadata',
2464        fullName: 'i18n.phonenumbers.PhoneMetadata'
2465      },
2466      1: {
2467        name: 'general_desc',
2468        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2469        type: i18n.phonenumbers.PhoneNumberDesc
2470      },
2471      2: {
2472        name: 'fixed_line',
2473        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2474        type: i18n.phonenumbers.PhoneNumberDesc
2475      },
2476      3: {
2477        name: 'mobile',
2478        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2479        type: i18n.phonenumbers.PhoneNumberDesc
2480      },
2481      4: {
2482        name: 'toll_free',
2483        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2484        type: i18n.phonenumbers.PhoneNumberDesc
2485      },
2486      5: {
2487        name: 'premium_rate',
2488        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2489        type: i18n.phonenumbers.PhoneNumberDesc
2490      },
2491      6: {
2492        name: 'shared_cost',
2493        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2494        type: i18n.phonenumbers.PhoneNumberDesc
2495      },
2496      7: {
2497        name: 'personal_number',
2498        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2499        type: i18n.phonenumbers.PhoneNumberDesc
2500      },
2501      8: {
2502        name: 'voip',
2503        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2504        type: i18n.phonenumbers.PhoneNumberDesc
2505      },
2506      21: {
2507        name: 'pager',
2508        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2509        type: i18n.phonenumbers.PhoneNumberDesc
2510      },
2511      25: {
2512        name: 'uan',
2513        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2514        type: i18n.phonenumbers.PhoneNumberDesc
2515      },
2516      27: {
2517        name: 'emergency',
2518        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2519        type: i18n.phonenumbers.PhoneNumberDesc
2520      },
2521      28: {
2522        name: 'voicemail',
2523        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2524        type: i18n.phonenumbers.PhoneNumberDesc
2525      },
2526      29: {
2527        name: 'short_code',
2528        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2529        type: i18n.phonenumbers.PhoneNumberDesc
2530      },
2531      30: {
2532        name: 'standard_rate',
2533        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2534        type: i18n.phonenumbers.PhoneNumberDesc
2535      },
2536      31: {
2537        name: 'carrier_specific',
2538        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2539        type: i18n.phonenumbers.PhoneNumberDesc
2540      },
2541      33: {
2542        name: 'sms_services',
2543        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2544        type: i18n.phonenumbers.PhoneNumberDesc
2545      },
2546      24: {
2547        name: 'no_international_dialling',
2548        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2549        type: i18n.phonenumbers.PhoneNumberDesc
2550      },
2551      9: {
2552        name: 'id',
2553        required: true,
2554        fieldType: goog.proto2.Message.FieldType.STRING,
2555        type: String
2556      },
2557      10: {
2558        name: 'country_code',
2559        fieldType: goog.proto2.Message.FieldType.INT32,
2560        type: Number
2561      },
2562      11: {
2563        name: 'international_prefix',
2564        fieldType: goog.proto2.Message.FieldType.STRING,
2565        type: String
2566      },
2567      17: {
2568        name: 'preferred_international_prefix',
2569        fieldType: goog.proto2.Message.FieldType.STRING,
2570        type: String
2571      },
2572      12: {
2573        name: 'national_prefix',
2574        fieldType: goog.proto2.Message.FieldType.STRING,
2575        type: String
2576      },
2577      13: {
2578        name: 'preferred_extn_prefix',
2579        fieldType: goog.proto2.Message.FieldType.STRING,
2580        type: String
2581      },
2582      15: {
2583        name: 'national_prefix_for_parsing',
2584        fieldType: goog.proto2.Message.FieldType.STRING,
2585        type: String
2586      },
2587      16: {
2588        name: 'national_prefix_transform_rule',
2589        fieldType: goog.proto2.Message.FieldType.STRING,
2590        type: String
2591      },
2592      18: {
2593        name: 'same_mobile_and_fixed_line_pattern',
2594        fieldType: goog.proto2.Message.FieldType.BOOL,
2595        defaultValue: false,
2596        type: Boolean
2597      },
2598      19: {
2599        name: 'number_format',
2600        repeated: true,
2601        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2602        type: i18n.phonenumbers.NumberFormat
2603      },
2604      20: {
2605        name: 'intl_number_format',
2606        repeated: true,
2607        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2608        type: i18n.phonenumbers.NumberFormat
2609      },
2610      22: {
2611        name: 'main_country_for_code',
2612        fieldType: goog.proto2.Message.FieldType.BOOL,
2613        defaultValue: false,
2614        type: Boolean
2615      },
2616      23: {
2617        name: 'leading_digits',
2618        fieldType: goog.proto2.Message.FieldType.STRING,
2619        type: String
2620      },
2621      26: {
2622        name: 'leading_zero_possible',
2623        fieldType: goog.proto2.Message.FieldType.BOOL,
2624        defaultValue: false,
2625        type: Boolean
2626      }
2627    };
2628    i18n.phonenumbers.PhoneMetadata.descriptor_ = descriptor =
2629        goog.proto2.Message.createDescriptor(
2630             i18n.phonenumbers.PhoneMetadata, descriptorObj);
2631  }
2632  return descriptor;
2633};
2634
2635
2636/** @nocollapse */
2637i18n.phonenumbers.PhoneMetadata.getDescriptor =
2638    i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor;
2639
2640
2641/** @override */
2642i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor = function() {
2643  var descriptor = i18n.phonenumbers.PhoneMetadataCollection.descriptor_;
2644  if (!descriptor) {
2645    // The descriptor is created lazily when we instantiate a new instance.
2646    var descriptorObj = {
2647      0: {
2648        name: 'PhoneMetadataCollection',
2649        fullName: 'i18n.phonenumbers.PhoneMetadataCollection'
2650      },
2651      1: {
2652        name: 'metadata',
2653        repeated: true,
2654        fieldType: goog.proto2.Message.FieldType.MESSAGE,
2655        type: i18n.phonenumbers.PhoneMetadata
2656      }
2657    };
2658    i18n.phonenumbers.PhoneMetadataCollection.descriptor_ = descriptor =
2659        goog.proto2.Message.createDescriptor(
2660             i18n.phonenumbers.PhoneMetadataCollection, descriptorObj);
2661  }
2662  return descriptor;
2663};
2664
2665
2666/** @nocollapse */
2667i18n.phonenumbers.PhoneMetadataCollection.getDescriptor =
2668    i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor;
2669
2670