3 * Protocol Buffer 2 Copyright 2008 Google Inc.
4 * All other code copyright its respective owners.
5 * Copyright (C) 2010 The Libphonenumber Authors
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * @fileoverview Generated Protocol Buffer code for file
22 * phonemetadata.proto.
25 goog.provide('i18n.phonenumbers.NumberFormat');
26 goog.provide('i18n.phonenumbers.PhoneMetadata');
27 goog.provide('i18n.phonenumbers.PhoneMetadataCollection');
28 goog.provide('i18n.phonenumbers.PhoneNumberDesc');
30 goog.require('goog.proto2.Message');
35 * Message NumberFormat.
37 * @extends {goog.proto2.Message}
39 i18n.phonenumbers.NumberFormat = function() {
40 goog.proto2.Message.apply(this);
42 goog.inherits(i18n.phonenumbers.NumberFormat, goog.proto2.Message);
46 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
47 * @return {!i18n.phonenumbers.NumberFormat} The cloned message.
50 i18n.phonenumbers.NumberFormat.prototype.clone;
54 * Gets the value of the pattern field.
55 * @return {?string} The value.
57 i18n.phonenumbers.NumberFormat.prototype.getPattern = function() {
58 return /** @type {?string} */ (this.get$Value(1));
63 * Gets the value of the pattern field or the default value if not set.
64 * @return {string} The value.
66 i18n.phonenumbers.NumberFormat.prototype.getPatternOrDefault = function() {
67 return /** @type {string} */ (this.get$ValueOrDefault(1));
72 * Sets the value of the pattern field.
73 * @param {string} value The value.
75 i18n.phonenumbers.NumberFormat.prototype.setPattern = function(value) {
76 this.set$Value(1, value);
81 * @return {boolean} Whether the pattern field has a value.
83 i18n.phonenumbers.NumberFormat.prototype.hasPattern = function() {
84 return this.has$Value(1);
89 * @return {number} The number of values in the pattern field.
91 i18n.phonenumbers.NumberFormat.prototype.patternCount = function() {
92 return this.count$Values(1);
97 * Clears the values in the pattern field.
99 i18n.phonenumbers.NumberFormat.prototype.clearPattern = function() {
105 * Gets the value of the format field.
106 * @return {?string} The value.
108 i18n.phonenumbers.NumberFormat.prototype.getFormat = function() {
109 return /** @type {?string} */ (this.get$Value(2));
114 * Gets the value of the format field or the default value if not set.
115 * @return {string} The value.
117 i18n.phonenumbers.NumberFormat.prototype.getFormatOrDefault = function() {
118 return /** @type {string} */ (this.get$ValueOrDefault(2));
123 * Sets the value of the format field.
124 * @param {string} value The value.
126 i18n.phonenumbers.NumberFormat.prototype.setFormat = function(value) {
127 this.set$Value(2, value);
132 * @return {boolean} Whether the format field has a value.
134 i18n.phonenumbers.NumberFormat.prototype.hasFormat = function() {
135 return this.has$Value(2);
140 * @return {number} The number of values in the format field.
142 i18n.phonenumbers.NumberFormat.prototype.formatCount = function() {
143 return this.count$Values(2);
148 * Clears the values in the format field.
150 i18n.phonenumbers.NumberFormat.prototype.clearFormat = function() {
156 * Gets the value of the leading_digits_pattern field at the index given.
157 * @param {number} index The index to lookup.
158 * @return {?string} The value.
160 i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPattern = function(index) {
161 return /** @type {?string} */ (this.get$Value(3, index));
166 * Gets the value of the leading_digits_pattern field at the index given or the default value if not set.
167 * @param {number} index The index to lookup.
168 * @return {string} The value.
170 i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPatternOrDefault = function(index) {
171 return /** @type {string} */ (this.get$ValueOrDefault(3, index));
176 * Adds a value to the leading_digits_pattern field.
177 * @param {string} value The value to add.
179 i18n.phonenumbers.NumberFormat.prototype.addLeadingDigitsPattern = function(value) {
180 this.add$Value(3, value);
185 * Returns the array of values in the leading_digits_pattern field.
186 * @return {!Array.<string>} The values in the field.
188 i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternArray = function() {
189 return /** @type {!Array.<string>} */ (this.array$Values(3));
194 * @return {boolean} Whether the leading_digits_pattern field has a value.
196 i18n.phonenumbers.NumberFormat.prototype.hasLeadingDigitsPattern = function() {
197 return this.has$Value(3);
202 * @return {number} The number of values in the leading_digits_pattern field.
204 i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternCount = function() {
205 return this.count$Values(3);
210 * Clears the values in the leading_digits_pattern field.
212 i18n.phonenumbers.NumberFormat.prototype.clearLeadingDigitsPattern = function() {
218 * Gets the value of the national_prefix_formatting_rule field.
219 * @return {?string} The value.
221 i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRule = function() {
222 return /** @type {?string} */ (this.get$Value(4));
227 * Gets the value of the national_prefix_formatting_rule field or the default value if not set.
228 * @return {string} The value.
230 i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRuleOrDefault = function() {
231 return /** @type {string} */ (this.get$ValueOrDefault(4));
236 * Sets the value of the national_prefix_formatting_rule field.
237 * @param {string} value The value.
239 i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixFormattingRule = function(value) {
240 this.set$Value(4, value);
245 * @return {boolean} Whether the national_prefix_formatting_rule field has a value.
247 i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixFormattingRule = function() {
248 return this.has$Value(4);
253 * @return {number} The number of values in the national_prefix_formatting_rule field.
255 i18n.phonenumbers.NumberFormat.prototype.nationalPrefixFormattingRuleCount = function() {
256 return this.count$Values(4);
261 * Clears the values in the national_prefix_formatting_rule field.
263 i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixFormattingRule = function() {
269 * Gets the value of the national_prefix_optional_when_formatting field.
270 * @return {?boolean} The value.
272 i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormatting = function() {
273 return /** @type {?boolean} */ (this.get$Value(6));
278 * Gets the value of the national_prefix_optional_when_formatting field or the default value if not set.
279 * @return {boolean} The value.
281 i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormattingOrDefault = function() {
282 return /** @type {boolean} */ (this.get$ValueOrDefault(6));
287 * Sets the value of the national_prefix_optional_when_formatting field.
288 * @param {boolean} value The value.
290 i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixOptionalWhenFormatting = function(value) {
291 this.set$Value(6, value);
296 * @return {boolean} Whether the national_prefix_optional_when_formatting field has a value.
298 i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixOptionalWhenFormatting = function() {
299 return this.has$Value(6);
304 * @return {number} The number of values in the national_prefix_optional_when_formatting field.
306 i18n.phonenumbers.NumberFormat.prototype.nationalPrefixOptionalWhenFormattingCount = function() {
307 return this.count$Values(6);
312 * Clears the values in the national_prefix_optional_when_formatting field.
314 i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixOptionalWhenFormatting = function() {
320 * Gets the value of the domestic_carrier_code_formatting_rule field.
321 * @return {?string} The value.
323 i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRule = function() {
324 return /** @type {?string} */ (this.get$Value(5));
329 * Gets the value of the domestic_carrier_code_formatting_rule field or the default value if not set.
330 * @return {string} The value.
332 i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRuleOrDefault = function() {
333 return /** @type {string} */ (this.get$ValueOrDefault(5));
338 * Sets the value of the domestic_carrier_code_formatting_rule field.
339 * @param {string} value The value.
341 i18n.phonenumbers.NumberFormat.prototype.setDomesticCarrierCodeFormattingRule = function(value) {
342 this.set$Value(5, value);
347 * @return {boolean} Whether the domestic_carrier_code_formatting_rule field has a value.
349 i18n.phonenumbers.NumberFormat.prototype.hasDomesticCarrierCodeFormattingRule = function() {
350 return this.has$Value(5);
355 * @return {number} The number of values in the domestic_carrier_code_formatting_rule field.
357 i18n.phonenumbers.NumberFormat.prototype.domesticCarrierCodeFormattingRuleCount = function() {
358 return this.count$Values(5);
363 * Clears the values in the domestic_carrier_code_formatting_rule field.
365 i18n.phonenumbers.NumberFormat.prototype.clearDomesticCarrierCodeFormattingRule = function() {
372 * Message PhoneNumberDesc.
374 * @extends {goog.proto2.Message}
376 i18n.phonenumbers.PhoneNumberDesc = function() {
377 goog.proto2.Message.apply(this);
379 goog.inherits(i18n.phonenumbers.PhoneNumberDesc, goog.proto2.Message);
383 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
384 * @return {!i18n.phonenumbers.PhoneNumberDesc} The cloned message.
387 i18n.phonenumbers.PhoneNumberDesc.prototype.clone;
391 * Gets the value of the national_number_pattern field.
392 * @return {?string} The value.
394 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPattern = function() {
395 return /** @type {?string} */ (this.get$Value(2));
400 * Gets the value of the national_number_pattern field or the default value if not set.
401 * @return {string} The value.
403 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPatternOrDefault = function() {
404 return /** @type {string} */ (this.get$ValueOrDefault(2));
409 * Sets the value of the national_number_pattern field.
410 * @param {string} value The value.
412 i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberPattern = function(value) {
413 this.set$Value(2, value);
418 * @return {boolean} Whether the national_number_pattern field has a value.
420 i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberPattern = function() {
421 return this.has$Value(2);
426 * @return {number} The number of values in the national_number_pattern field.
428 i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberPatternCount = function() {
429 return this.count$Values(2);
434 * Clears the values in the national_number_pattern field.
436 i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberPattern = function() {
442 * Gets the value of the possible_number_pattern field.
443 * @return {?string} The value.
445 i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberPattern = function() {
446 return /** @type {?string} */ (this.get$Value(3));
451 * Gets the value of the possible_number_pattern field or the default value if not set.
452 * @return {string} The value.
454 i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberPatternOrDefault = function() {
455 return /** @type {string} */ (this.get$ValueOrDefault(3));
460 * Sets the value of the possible_number_pattern field.
461 * @param {string} value The value.
463 i18n.phonenumbers.PhoneNumberDesc.prototype.setPossibleNumberPattern = function(value) {
464 this.set$Value(3, value);
469 * @return {boolean} Whether the possible_number_pattern field has a value.
471 i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleNumberPattern = function() {
472 return this.has$Value(3);
477 * @return {number} The number of values in the possible_number_pattern field.
479 i18n.phonenumbers.PhoneNumberDesc.prototype.possibleNumberPatternCount = function() {
480 return this.count$Values(3);
485 * Clears the values in the possible_number_pattern field.
487 i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleNumberPattern = function() {
493 * Gets the value of the example_number field.
494 * @return {?string} The value.
496 i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumber = function() {
497 return /** @type {?string} */ (this.get$Value(6));
502 * Gets the value of the example_number field or the default value if not set.
503 * @return {string} The value.
505 i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumberOrDefault = function() {
506 return /** @type {string} */ (this.get$ValueOrDefault(6));
511 * Sets the value of the example_number field.
512 * @param {string} value The value.
514 i18n.phonenumbers.PhoneNumberDesc.prototype.setExampleNumber = function(value) {
515 this.set$Value(6, value);
520 * @return {boolean} Whether the example_number field has a value.
522 i18n.phonenumbers.PhoneNumberDesc.prototype.hasExampleNumber = function() {
523 return this.has$Value(6);
528 * @return {number} The number of values in the example_number field.
530 i18n.phonenumbers.PhoneNumberDesc.prototype.exampleNumberCount = function() {
531 return this.count$Values(6);
536 * Clears the values in the example_number field.
538 i18n.phonenumbers.PhoneNumberDesc.prototype.clearExampleNumber = function() {
545 * Message PhoneMetadata.
547 * @extends {goog.proto2.Message}
549 i18n.phonenumbers.PhoneMetadata = function() {
550 goog.proto2.Message.apply(this);
552 goog.inherits(i18n.phonenumbers.PhoneMetadata, goog.proto2.Message);
556 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
557 * @return {!i18n.phonenumbers.PhoneMetadata} The cloned message.
560 i18n.phonenumbers.PhoneMetadata.prototype.clone;
564 * Gets the value of the general_desc field.
565 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
567 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc = function() {
568 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(1));
573 * Gets the value of the general_desc field or the default value if not set.
574 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
576 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault = function() {
577 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(1));
582 * Sets the value of the general_desc field.
583 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
585 i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc = function(value) {
586 this.set$Value(1, value);
591 * @return {boolean} Whether the general_desc field has a value.
593 i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc = function() {
594 return this.has$Value(1);
599 * @return {number} The number of values in the general_desc field.
601 i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount = function() {
602 return this.count$Values(1);
607 * Clears the values in the general_desc field.
609 i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc = function() {
615 * Gets the value of the fixed_line field.
616 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
618 i18n.phonenumbers.PhoneMetadata.prototype.getFixedLine = function() {
619 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(2));
624 * Gets the value of the fixed_line field or the default value if not set.
625 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
627 i18n.phonenumbers.PhoneMetadata.prototype.getFixedLineOrDefault = function() {
628 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(2));
633 * Sets the value of the fixed_line field.
634 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
636 i18n.phonenumbers.PhoneMetadata.prototype.setFixedLine = function(value) {
637 this.set$Value(2, value);
642 * @return {boolean} Whether the fixed_line field has a value.
644 i18n.phonenumbers.PhoneMetadata.prototype.hasFixedLine = function() {
645 return this.has$Value(2);
650 * @return {number} The number of values in the fixed_line field.
652 i18n.phonenumbers.PhoneMetadata.prototype.fixedLineCount = function() {
653 return this.count$Values(2);
658 * Clears the values in the fixed_line field.
660 i18n.phonenumbers.PhoneMetadata.prototype.clearFixedLine = function() {
666 * Gets the value of the mobile field.
667 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
669 i18n.phonenumbers.PhoneMetadata.prototype.getMobile = function() {
670 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(3));
675 * Gets the value of the mobile field or the default value if not set.
676 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
678 i18n.phonenumbers.PhoneMetadata.prototype.getMobileOrDefault = function() {
679 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(3));
684 * Sets the value of the mobile field.
685 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
687 i18n.phonenumbers.PhoneMetadata.prototype.setMobile = function(value) {
688 this.set$Value(3, value);
693 * @return {boolean} Whether the mobile field has a value.
695 i18n.phonenumbers.PhoneMetadata.prototype.hasMobile = function() {
696 return this.has$Value(3);
701 * @return {number} The number of values in the mobile field.
703 i18n.phonenumbers.PhoneMetadata.prototype.mobileCount = function() {
704 return this.count$Values(3);
709 * Clears the values in the mobile field.
711 i18n.phonenumbers.PhoneMetadata.prototype.clearMobile = function() {
717 * Gets the value of the toll_free field.
718 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
720 i18n.phonenumbers.PhoneMetadata.prototype.getTollFree = function() {
721 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(4));
726 * Gets the value of the toll_free field or the default value if not set.
727 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
729 i18n.phonenumbers.PhoneMetadata.prototype.getTollFreeOrDefault = function() {
730 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(4));
735 * Sets the value of the toll_free field.
736 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
738 i18n.phonenumbers.PhoneMetadata.prototype.setTollFree = function(value) {
739 this.set$Value(4, value);
744 * @return {boolean} Whether the toll_free field has a value.
746 i18n.phonenumbers.PhoneMetadata.prototype.hasTollFree = function() {
747 return this.has$Value(4);
752 * @return {number} The number of values in the toll_free field.
754 i18n.phonenumbers.PhoneMetadata.prototype.tollFreeCount = function() {
755 return this.count$Values(4);
760 * Clears the values in the toll_free field.
762 i18n.phonenumbers.PhoneMetadata.prototype.clearTollFree = function() {
768 * Gets the value of the premium_rate field.
769 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
771 i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRate = function() {
772 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(5));
777 * Gets the value of the premium_rate field or the default value if not set.
778 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
780 i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRateOrDefault = function() {
781 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(5));
786 * Sets the value of the premium_rate field.
787 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
789 i18n.phonenumbers.PhoneMetadata.prototype.setPremiumRate = function(value) {
790 this.set$Value(5, value);
795 * @return {boolean} Whether the premium_rate field has a value.
797 i18n.phonenumbers.PhoneMetadata.prototype.hasPremiumRate = function() {
798 return this.has$Value(5);
803 * @return {number} The number of values in the premium_rate field.
805 i18n.phonenumbers.PhoneMetadata.prototype.premiumRateCount = function() {
806 return this.count$Values(5);
811 * Clears the values in the premium_rate field.
813 i18n.phonenumbers.PhoneMetadata.prototype.clearPremiumRate = function() {
819 * Gets the value of the shared_cost field.
820 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
822 i18n.phonenumbers.PhoneMetadata.prototype.getSharedCost = function() {
823 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(6));
828 * Gets the value of the shared_cost field or the default value if not set.
829 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
831 i18n.phonenumbers.PhoneMetadata.prototype.getSharedCostOrDefault = function() {
832 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(6));
837 * Sets the value of the shared_cost field.
838 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
840 i18n.phonenumbers.PhoneMetadata.prototype.setSharedCost = function(value) {
841 this.set$Value(6, value);
846 * @return {boolean} Whether the shared_cost field has a value.
848 i18n.phonenumbers.PhoneMetadata.prototype.hasSharedCost = function() {
849 return this.has$Value(6);
854 * @return {number} The number of values in the shared_cost field.
856 i18n.phonenumbers.PhoneMetadata.prototype.sharedCostCount = function() {
857 return this.count$Values(6);
862 * Clears the values in the shared_cost field.
864 i18n.phonenumbers.PhoneMetadata.prototype.clearSharedCost = function() {
870 * Gets the value of the personal_number field.
871 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
873 i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumber = function() {
874 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(7));
879 * Gets the value of the personal_number field or the default value if not set.
880 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
882 i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumberOrDefault = function() {
883 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(7));
888 * Sets the value of the personal_number field.
889 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
891 i18n.phonenumbers.PhoneMetadata.prototype.setPersonalNumber = function(value) {
892 this.set$Value(7, value);
897 * @return {boolean} Whether the personal_number field has a value.
899 i18n.phonenumbers.PhoneMetadata.prototype.hasPersonalNumber = function() {
900 return this.has$Value(7);
905 * @return {number} The number of values in the personal_number field.
907 i18n.phonenumbers.PhoneMetadata.prototype.personalNumberCount = function() {
908 return this.count$Values(7);
913 * Clears the values in the personal_number field.
915 i18n.phonenumbers.PhoneMetadata.prototype.clearPersonalNumber = function() {
921 * Gets the value of the voip field.
922 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
924 i18n.phonenumbers.PhoneMetadata.prototype.getVoip = function() {
925 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(8));
930 * Gets the value of the voip field or the default value if not set.
931 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
933 i18n.phonenumbers.PhoneMetadata.prototype.getVoipOrDefault = function() {
934 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(8));
939 * Sets the value of the voip field.
940 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
942 i18n.phonenumbers.PhoneMetadata.prototype.setVoip = function(value) {
943 this.set$Value(8, value);
948 * @return {boolean} Whether the voip field has a value.
950 i18n.phonenumbers.PhoneMetadata.prototype.hasVoip = function() {
951 return this.has$Value(8);
956 * @return {number} The number of values in the voip field.
958 i18n.phonenumbers.PhoneMetadata.prototype.voipCount = function() {
959 return this.count$Values(8);
964 * Clears the values in the voip field.
966 i18n.phonenumbers.PhoneMetadata.prototype.clearVoip = function() {
972 * Gets the value of the pager field.
973 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
975 i18n.phonenumbers.PhoneMetadata.prototype.getPager = function() {
976 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(21));
981 * Gets the value of the pager field or the default value if not set.
982 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
984 i18n.phonenumbers.PhoneMetadata.prototype.getPagerOrDefault = function() {
985 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(21));
990 * Sets the value of the pager field.
991 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
993 i18n.phonenumbers.PhoneMetadata.prototype.setPager = function(value) {
994 this.set$Value(21, value);
999 * @return {boolean} Whether the pager field has a value.
1001 i18n.phonenumbers.PhoneMetadata.prototype.hasPager = function() {
1002 return this.has$Value(21);
1007 * @return {number} The number of values in the pager field.
1009 i18n.phonenumbers.PhoneMetadata.prototype.pagerCount = function() {
1010 return this.count$Values(21);
1015 * Clears the values in the pager field.
1017 i18n.phonenumbers.PhoneMetadata.prototype.clearPager = function() {
1018 this.clear$Field(21);
1023 * Gets the value of the uan field.
1024 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1026 i18n.phonenumbers.PhoneMetadata.prototype.getUan = function() {
1027 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(25));
1032 * Gets the value of the uan field or the default value if not set.
1033 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1035 i18n.phonenumbers.PhoneMetadata.prototype.getUanOrDefault = function() {
1036 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(25));
1041 * Sets the value of the uan field.
1042 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1044 i18n.phonenumbers.PhoneMetadata.prototype.setUan = function(value) {
1045 this.set$Value(25, value);
1050 * @return {boolean} Whether the uan field has a value.
1052 i18n.phonenumbers.PhoneMetadata.prototype.hasUan = function() {
1053 return this.has$Value(25);
1058 * @return {number} The number of values in the uan field.
1060 i18n.phonenumbers.PhoneMetadata.prototype.uanCount = function() {
1061 return this.count$Values(25);
1066 * Clears the values in the uan field.
1068 i18n.phonenumbers.PhoneMetadata.prototype.clearUan = function() {
1069 this.clear$Field(25);
1074 * Gets the value of the emergency field.
1075 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1077 i18n.phonenumbers.PhoneMetadata.prototype.getEmergency = function() {
1078 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(27));
1083 * Gets the value of the emergency field or the default value if not set.
1084 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1086 i18n.phonenumbers.PhoneMetadata.prototype.getEmergencyOrDefault = function() {
1087 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(27));
1092 * Sets the value of the emergency field.
1093 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1095 i18n.phonenumbers.PhoneMetadata.prototype.setEmergency = function(value) {
1096 this.set$Value(27, value);
1101 * @return {boolean} Whether the emergency field has a value.
1103 i18n.phonenumbers.PhoneMetadata.prototype.hasEmergency = function() {
1104 return this.has$Value(27);
1109 * @return {number} The number of values in the emergency field.
1111 i18n.phonenumbers.PhoneMetadata.prototype.emergencyCount = function() {
1112 return this.count$Values(27);
1117 * Clears the values in the emergency field.
1119 i18n.phonenumbers.PhoneMetadata.prototype.clearEmergency = function() {
1120 this.clear$Field(27);
1125 * Gets the value of the voicemail field.
1126 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1128 i18n.phonenumbers.PhoneMetadata.prototype.getVoicemail = function() {
1129 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(28));
1134 * Gets the value of the voicemail field or the default value if not set.
1135 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1137 i18n.phonenumbers.PhoneMetadata.prototype.getVoicemailOrDefault = function() {
1138 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(28));
1143 * Sets the value of the voicemail field.
1144 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1146 i18n.phonenumbers.PhoneMetadata.prototype.setVoicemail = function(value) {
1147 this.set$Value(28, value);
1152 * @return {boolean} Whether the voicemail field has a value.
1154 i18n.phonenumbers.PhoneMetadata.prototype.hasVoicemail = function() {
1155 return this.has$Value(28);
1160 * @return {number} The number of values in the voicemail field.
1162 i18n.phonenumbers.PhoneMetadata.prototype.voicemailCount = function() {
1163 return this.count$Values(28);
1168 * Clears the values in the voicemail field.
1170 i18n.phonenumbers.PhoneMetadata.prototype.clearVoicemail = function() {
1171 this.clear$Field(28);
1176 * Gets the value of the no_international_dialling field.
1177 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1179 i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDialling = function() {
1180 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(24));
1185 * Gets the value of the no_international_dialling field or the default value if not set.
1186 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1188 i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDiallingOrDefault = function() {
1189 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(24));
1194 * Sets the value of the no_international_dialling field.
1195 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1197 i18n.phonenumbers.PhoneMetadata.prototype.setNoInternationalDialling = function(value) {
1198 this.set$Value(24, value);
1203 * @return {boolean} Whether the no_international_dialling field has a value.
1205 i18n.phonenumbers.PhoneMetadata.prototype.hasNoInternationalDialling = function() {
1206 return this.has$Value(24);
1211 * @return {number} The number of values in the no_international_dialling field.
1213 i18n.phonenumbers.PhoneMetadata.prototype.noInternationalDiallingCount = function() {
1214 return this.count$Values(24);
1219 * Clears the values in the no_international_dialling field.
1221 i18n.phonenumbers.PhoneMetadata.prototype.clearNoInternationalDialling = function() {
1222 this.clear$Field(24);
1227 * Gets the value of the id field.
1228 * @return {?string} The value.
1230 i18n.phonenumbers.PhoneMetadata.prototype.getId = function() {
1231 return /** @type {?string} */ (this.get$Value(9));
1236 * Gets the value of the id field or the default value if not set.
1237 * @return {string} The value.
1239 i18n.phonenumbers.PhoneMetadata.prototype.getIdOrDefault = function() {
1240 return /** @type {string} */ (this.get$ValueOrDefault(9));
1245 * Sets the value of the id field.
1246 * @param {string} value The value.
1248 i18n.phonenumbers.PhoneMetadata.prototype.setId = function(value) {
1249 this.set$Value(9, value);
1254 * @return {boolean} Whether the id field has a value.
1256 i18n.phonenumbers.PhoneMetadata.prototype.hasId = function() {
1257 return this.has$Value(9);
1262 * @return {number} The number of values in the id field.
1264 i18n.phonenumbers.PhoneMetadata.prototype.idCount = function() {
1265 return this.count$Values(9);
1270 * Clears the values in the id field.
1272 i18n.phonenumbers.PhoneMetadata.prototype.clearId = function() {
1273 this.clear$Field(9);
1278 * Gets the value of the country_code field.
1279 * @return {?number} The value.
1281 i18n.phonenumbers.PhoneMetadata.prototype.getCountryCode = function() {
1282 return /** @type {?number} */ (this.get$Value(10));
1287 * Gets the value of the country_code field or the default value if not set.
1288 * @return {number} The value.
1290 i18n.phonenumbers.PhoneMetadata.prototype.getCountryCodeOrDefault = function() {
1291 return /** @type {number} */ (this.get$ValueOrDefault(10));
1296 * Sets the value of the country_code field.
1297 * @param {number} value The value.
1299 i18n.phonenumbers.PhoneMetadata.prototype.setCountryCode = function(value) {
1300 this.set$Value(10, value);
1305 * @return {boolean} Whether the country_code field has a value.
1307 i18n.phonenumbers.PhoneMetadata.prototype.hasCountryCode = function() {
1308 return this.has$Value(10);
1313 * @return {number} The number of values in the country_code field.
1315 i18n.phonenumbers.PhoneMetadata.prototype.countryCodeCount = function() {
1316 return this.count$Values(10);
1321 * Clears the values in the country_code field.
1323 i18n.phonenumbers.PhoneMetadata.prototype.clearCountryCode = function() {
1324 this.clear$Field(10);
1329 * Gets the value of the international_prefix field.
1330 * @return {?string} The value.
1332 i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefix = function() {
1333 return /** @type {?string} */ (this.get$Value(11));
1338 * Gets the value of the international_prefix field or the default value if not set.
1339 * @return {string} The value.
1341 i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefixOrDefault = function() {
1342 return /** @type {string} */ (this.get$ValueOrDefault(11));
1347 * Sets the value of the international_prefix field.
1348 * @param {string} value The value.
1350 i18n.phonenumbers.PhoneMetadata.prototype.setInternationalPrefix = function(value) {
1351 this.set$Value(11, value);
1356 * @return {boolean} Whether the international_prefix field has a value.
1358 i18n.phonenumbers.PhoneMetadata.prototype.hasInternationalPrefix = function() {
1359 return this.has$Value(11);
1364 * @return {number} The number of values in the international_prefix field.
1366 i18n.phonenumbers.PhoneMetadata.prototype.internationalPrefixCount = function() {
1367 return this.count$Values(11);
1372 * Clears the values in the international_prefix field.
1374 i18n.phonenumbers.PhoneMetadata.prototype.clearInternationalPrefix = function() {
1375 this.clear$Field(11);
1380 * Gets the value of the preferred_international_prefix field.
1381 * @return {?string} The value.
1383 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefix = function() {
1384 return /** @type {?string} */ (this.get$Value(17));
1389 * Gets the value of the preferred_international_prefix field or the default value if not set.
1390 * @return {string} The value.
1392 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefixOrDefault = function() {
1393 return /** @type {string} */ (this.get$ValueOrDefault(17));
1398 * Sets the value of the preferred_international_prefix field.
1399 * @param {string} value The value.
1401 i18n.phonenumbers.PhoneMetadata.prototype.setPreferredInternationalPrefix = function(value) {
1402 this.set$Value(17, value);
1407 * @return {boolean} Whether the preferred_international_prefix field has a value.
1409 i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredInternationalPrefix = function() {
1410 return this.has$Value(17);
1415 * @return {number} The number of values in the preferred_international_prefix field.
1417 i18n.phonenumbers.PhoneMetadata.prototype.preferredInternationalPrefixCount = function() {
1418 return this.count$Values(17);
1423 * Clears the values in the preferred_international_prefix field.
1425 i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredInternationalPrefix = function() {
1426 this.clear$Field(17);
1431 * Gets the value of the national_prefix field.
1432 * @return {?string} The value.
1434 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefix = function() {
1435 return /** @type {?string} */ (this.get$Value(12));
1440 * Gets the value of the national_prefix field or the default value if not set.
1441 * @return {string} The value.
1443 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixOrDefault = function() {
1444 return /** @type {string} */ (this.get$ValueOrDefault(12));
1449 * Sets the value of the national_prefix field.
1450 * @param {string} value The value.
1452 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefix = function(value) {
1453 this.set$Value(12, value);
1458 * @return {boolean} Whether the national_prefix field has a value.
1460 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix = function() {
1461 return this.has$Value(12);
1466 * @return {number} The number of values in the national_prefix field.
1468 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixCount = function() {
1469 return this.count$Values(12);
1474 * Clears the values in the national_prefix field.
1476 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefix = function() {
1477 this.clear$Field(12);
1482 * Gets the value of the preferred_extn_prefix field.
1483 * @return {?string} The value.
1485 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefix = function() {
1486 return /** @type {?string} */ (this.get$Value(13));
1491 * Gets the value of the preferred_extn_prefix field or the default value if not set.
1492 * @return {string} The value.
1494 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefixOrDefault = function() {
1495 return /** @type {string} */ (this.get$ValueOrDefault(13));
1500 * Sets the value of the preferred_extn_prefix field.
1501 * @param {string} value The value.
1503 i18n.phonenumbers.PhoneMetadata.prototype.setPreferredExtnPrefix = function(value) {
1504 this.set$Value(13, value);
1509 * @return {boolean} Whether the preferred_extn_prefix field has a value.
1511 i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredExtnPrefix = function() {
1512 return this.has$Value(13);
1517 * @return {number} The number of values in the preferred_extn_prefix field.
1519 i18n.phonenumbers.PhoneMetadata.prototype.preferredExtnPrefixCount = function() {
1520 return this.count$Values(13);
1525 * Clears the values in the preferred_extn_prefix field.
1527 i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredExtnPrefix = function() {
1528 this.clear$Field(13);
1533 * Gets the value of the national_prefix_for_parsing field.
1534 * @return {?string} The value.
1536 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsing = function() {
1537 return /** @type {?string} */ (this.get$Value(15));
1542 * Gets the value of the national_prefix_for_parsing field or the default value if not set.
1543 * @return {string} The value.
1545 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsingOrDefault = function() {
1546 return /** @type {string} */ (this.get$ValueOrDefault(15));
1551 * Sets the value of the national_prefix_for_parsing field.
1552 * @param {string} value The value.
1554 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixForParsing = function(value) {
1555 this.set$Value(15, value);
1560 * @return {boolean} Whether the national_prefix_for_parsing field has a value.
1562 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixForParsing = function() {
1563 return this.has$Value(15);
1568 * @return {number} The number of values in the national_prefix_for_parsing field.
1570 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixForParsingCount = function() {
1571 return this.count$Values(15);
1576 * Clears the values in the national_prefix_for_parsing field.
1578 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixForParsing = function() {
1579 this.clear$Field(15);
1584 * Gets the value of the national_prefix_transform_rule field.
1585 * @return {?string} The value.
1587 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRule = function() {
1588 return /** @type {?string} */ (this.get$Value(16));
1593 * Gets the value of the national_prefix_transform_rule field or the default value if not set.
1594 * @return {string} The value.
1596 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRuleOrDefault = function() {
1597 return /** @type {string} */ (this.get$ValueOrDefault(16));
1602 * Sets the value of the national_prefix_transform_rule field.
1603 * @param {string} value The value.
1605 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixTransformRule = function(value) {
1606 this.set$Value(16, value);
1611 * @return {boolean} Whether the national_prefix_transform_rule field has a value.
1613 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixTransformRule = function() {
1614 return this.has$Value(16);
1619 * @return {number} The number of values in the national_prefix_transform_rule field.
1621 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixTransformRuleCount = function() {
1622 return this.count$Values(16);
1627 * Clears the values in the national_prefix_transform_rule field.
1629 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixTransformRule = function() {
1630 this.clear$Field(16);
1635 * Gets the value of the same_mobile_and_fixed_line_pattern field.
1636 * @return {?boolean} The value.
1638 i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePattern = function() {
1639 return /** @type {?boolean} */ (this.get$Value(18));
1644 * Gets the value of the same_mobile_and_fixed_line_pattern field or the default value if not set.
1645 * @return {boolean} The value.
1647 i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePatternOrDefault = function() {
1648 return /** @type {boolean} */ (this.get$ValueOrDefault(18));
1653 * Sets the value of the same_mobile_and_fixed_line_pattern field.
1654 * @param {boolean} value The value.
1656 i18n.phonenumbers.PhoneMetadata.prototype.setSameMobileAndFixedLinePattern = function(value) {
1657 this.set$Value(18, value);
1662 * @return {boolean} Whether the same_mobile_and_fixed_line_pattern field has a value.
1664 i18n.phonenumbers.PhoneMetadata.prototype.hasSameMobileAndFixedLinePattern = function() {
1665 return this.has$Value(18);
1670 * @return {number} The number of values in the same_mobile_and_fixed_line_pattern field.
1672 i18n.phonenumbers.PhoneMetadata.prototype.sameMobileAndFixedLinePatternCount = function() {
1673 return this.count$Values(18);
1678 * Clears the values in the same_mobile_and_fixed_line_pattern field.
1680 i18n.phonenumbers.PhoneMetadata.prototype.clearSameMobileAndFixedLinePattern = function() {
1681 this.clear$Field(18);
1686 * Gets the value of the number_format field at the index given.
1687 * @param {number} index The index to lookup.
1688 * @return {i18n.phonenumbers.NumberFormat} The value.
1690 i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormat = function(index) {
1691 return /** @type {i18n.phonenumbers.NumberFormat} */ (this.get$Value(19, index));
1696 * Gets the value of the number_format field at the index given or the default value if not set.
1697 * @param {number} index The index to lookup.
1698 * @return {!i18n.phonenumbers.NumberFormat} The value.
1700 i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormatOrDefault = function(index) {
1701 return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(19, index));
1706 * Adds a value to the number_format field.
1707 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
1709 i18n.phonenumbers.PhoneMetadata.prototype.addNumberFormat = function(value) {
1710 this.add$Value(19, value);
1715 * Returns the array of values in the number_format field.
1716 * @return {!Array.<!i18n.phonenumbers.NumberFormat>} The values in the field.
1718 i18n.phonenumbers.PhoneMetadata.prototype.numberFormatArray = function() {
1719 return /** @type {!Array.<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(19));
1724 * @return {boolean} Whether the number_format field has a value.
1726 i18n.phonenumbers.PhoneMetadata.prototype.hasNumberFormat = function() {
1727 return this.has$Value(19);
1732 * @return {number} The number of values in the number_format field.
1734 i18n.phonenumbers.PhoneMetadata.prototype.numberFormatCount = function() {
1735 return this.count$Values(19);
1740 * Clears the values in the number_format field.
1742 i18n.phonenumbers.PhoneMetadata.prototype.clearNumberFormat = function() {
1743 this.clear$Field(19);
1748 * Gets the value of the intl_number_format field at the index given.
1749 * @param {number} index The index to lookup.
1750 * @return {i18n.phonenumbers.NumberFormat} The value.
1752 i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormat = function(index) {
1753 return /** @type {i18n.phonenumbers.NumberFormat} */ (this.get$Value(20, index));
1758 * Gets the value of the intl_number_format field at the index given or the default value if not set.
1759 * @param {number} index The index to lookup.
1760 * @return {!i18n.phonenumbers.NumberFormat} The value.
1762 i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormatOrDefault = function(index) {
1763 return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(20, index));
1768 * Adds a value to the intl_number_format field.
1769 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
1771 i18n.phonenumbers.PhoneMetadata.prototype.addIntlNumberFormat = function(value) {
1772 this.add$Value(20, value);
1777 * Returns the array of values in the intl_number_format field.
1778 * @return {!Array.<!i18n.phonenumbers.NumberFormat>} The values in the field.
1780 i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatArray = function() {
1781 return /** @type {!Array.<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(20));
1786 * @return {boolean} Whether the intl_number_format field has a value.
1788 i18n.phonenumbers.PhoneMetadata.prototype.hasIntlNumberFormat = function() {
1789 return this.has$Value(20);
1794 * @return {number} The number of values in the intl_number_format field.
1796 i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatCount = function() {
1797 return this.count$Values(20);
1802 * Clears the values in the intl_number_format field.
1804 i18n.phonenumbers.PhoneMetadata.prototype.clearIntlNumberFormat = function() {
1805 this.clear$Field(20);
1810 * Gets the value of the main_country_for_code field.
1811 * @return {?boolean} The value.
1813 i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCode = function() {
1814 return /** @type {?boolean} */ (this.get$Value(22));
1819 * Gets the value of the main_country_for_code field or the default value if not set.
1820 * @return {boolean} The value.
1822 i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCodeOrDefault = function() {
1823 return /** @type {boolean} */ (this.get$ValueOrDefault(22));
1828 * Sets the value of the main_country_for_code field.
1829 * @param {boolean} value The value.
1831 i18n.phonenumbers.PhoneMetadata.prototype.setMainCountryForCode = function(value) {
1832 this.set$Value(22, value);
1837 * @return {boolean} Whether the main_country_for_code field has a value.
1839 i18n.phonenumbers.PhoneMetadata.prototype.hasMainCountryForCode = function() {
1840 return this.has$Value(22);
1845 * @return {number} The number of values in the main_country_for_code field.
1847 i18n.phonenumbers.PhoneMetadata.prototype.mainCountryForCodeCount = function() {
1848 return this.count$Values(22);
1853 * Clears the values in the main_country_for_code field.
1855 i18n.phonenumbers.PhoneMetadata.prototype.clearMainCountryForCode = function() {
1856 this.clear$Field(22);
1861 * Gets the value of the leading_digits field.
1862 * @return {?string} The value.
1864 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigits = function() {
1865 return /** @type {?string} */ (this.get$Value(23));
1870 * Gets the value of the leading_digits field or the default value if not set.
1871 * @return {string} The value.
1873 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigitsOrDefault = function() {
1874 return /** @type {string} */ (this.get$ValueOrDefault(23));
1879 * Sets the value of the leading_digits field.
1880 * @param {string} value The value.
1882 i18n.phonenumbers.PhoneMetadata.prototype.setLeadingDigits = function(value) {
1883 this.set$Value(23, value);
1888 * @return {boolean} Whether the leading_digits field has a value.
1890 i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingDigits = function() {
1891 return this.has$Value(23);
1896 * @return {number} The number of values in the leading_digits field.
1898 i18n.phonenumbers.PhoneMetadata.prototype.leadingDigitsCount = function() {
1899 return this.count$Values(23);
1904 * Clears the values in the leading_digits field.
1906 i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingDigits = function() {
1907 this.clear$Field(23);
1912 * Gets the value of the leading_zero_possible field.
1913 * @return {?boolean} The value.
1915 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossible = function() {
1916 return /** @type {?boolean} */ (this.get$Value(26));
1921 * Gets the value of the leading_zero_possible field or the default value if not set.
1922 * @return {boolean} The value.
1924 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossibleOrDefault = function() {
1925 return /** @type {boolean} */ (this.get$ValueOrDefault(26));
1930 * Sets the value of the leading_zero_possible field.
1931 * @param {boolean} value The value.
1933 i18n.phonenumbers.PhoneMetadata.prototype.setLeadingZeroPossible = function(value) {
1934 this.set$Value(26, value);
1939 * @return {boolean} Whether the leading_zero_possible field has a value.
1941 i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingZeroPossible = function() {
1942 return this.has$Value(26);
1947 * @return {number} The number of values in the leading_zero_possible field.
1949 i18n.phonenumbers.PhoneMetadata.prototype.leadingZeroPossibleCount = function() {
1950 return this.count$Values(26);
1955 * Clears the values in the leading_zero_possible field.
1957 i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingZeroPossible = function() {
1958 this.clear$Field(26);
1964 * Message PhoneMetadataCollection.
1966 * @extends {goog.proto2.Message}
1968 i18n.phonenumbers.PhoneMetadataCollection = function() {
1969 goog.proto2.Message.apply(this);
1971 goog.inherits(i18n.phonenumbers.PhoneMetadataCollection, goog.proto2.Message);
1975 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
1976 * @return {!i18n.phonenumbers.PhoneMetadataCollection} The cloned message.
1979 i18n.phonenumbers.PhoneMetadataCollection.prototype.clone;
1983 * Gets the value of the metadata field at the index given.
1984 * @param {number} index The index to lookup.
1985 * @return {i18n.phonenumbers.PhoneMetadata} The value.
1987 i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadata = function(index) {
1988 return /** @type {i18n.phonenumbers.PhoneMetadata} */ (this.get$Value(1, index));
1993 * Gets the value of the metadata field at the index given or the default value if not set.
1994 * @param {number} index The index to lookup.
1995 * @return {!i18n.phonenumbers.PhoneMetadata} The value.
1997 i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadataOrDefault = function(index) {
1998 return /** @type {!i18n.phonenumbers.PhoneMetadata} */ (this.get$ValueOrDefault(1, index));
2003 * Adds a value to the metadata field.
2004 * @param {!i18n.phonenumbers.PhoneMetadata} value The value to add.
2006 i18n.phonenumbers.PhoneMetadataCollection.prototype.addMetadata = function(value) {
2007 this.add$Value(1, value);
2012 * Returns the array of values in the metadata field.
2013 * @return {!Array.<!i18n.phonenumbers.PhoneMetadata>} The values in the field.
2015 i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataArray = function() {
2016 return /** @type {!Array.<!i18n.phonenumbers.PhoneMetadata>} */ (this.array$Values(1));
2021 * @return {boolean} Whether the metadata field has a value.
2023 i18n.phonenumbers.PhoneMetadataCollection.prototype.hasMetadata = function() {
2024 return this.has$Value(1);
2029 * @return {number} The number of values in the metadata field.
2031 i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataCount = function() {
2032 return this.count$Values(1);
2037 * Clears the values in the metadata field.
2039 i18n.phonenumbers.PhoneMetadataCollection.prototype.clearMetadata = function() {
2040 this.clear$Field(1);
2044 goog.proto2.Message.set$Metadata(i18n.phonenumbers.NumberFormat, {
2046 name: 'NumberFormat',
2047 fullName: 'i18n.phonenumbers.NumberFormat'
2052 fieldType: goog.proto2.Message.FieldType.STRING,
2058 fieldType: goog.proto2.Message.FieldType.STRING,
2062 name: 'leading_digits_pattern',
2064 fieldType: goog.proto2.Message.FieldType.STRING,
2068 name: 'national_prefix_formatting_rule',
2069 fieldType: goog.proto2.Message.FieldType.STRING,
2073 name: 'national_prefix_optional_when_formatting',
2074 fieldType: goog.proto2.Message.FieldType.BOOL,
2078 name: 'domestic_carrier_code_formatting_rule',
2079 fieldType: goog.proto2.Message.FieldType.STRING,
2085 goog.proto2.Message.set$Metadata(i18n.phonenumbers.PhoneNumberDesc, {
2087 name: 'PhoneNumberDesc',
2088 fullName: 'i18n.phonenumbers.PhoneNumberDesc'
2091 name: 'national_number_pattern',
2092 fieldType: goog.proto2.Message.FieldType.STRING,
2096 name: 'possible_number_pattern',
2097 fieldType: goog.proto2.Message.FieldType.STRING,
2101 name: 'example_number',
2102 fieldType: goog.proto2.Message.FieldType.STRING,
2108 goog.proto2.Message.set$Metadata(i18n.phonenumbers.PhoneMetadata, {
2110 name: 'PhoneMetadata',
2111 fullName: 'i18n.phonenumbers.PhoneMetadata'
2114 name: 'general_desc',
2116 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2117 type: i18n.phonenumbers.PhoneNumberDesc
2122 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2123 type: i18n.phonenumbers.PhoneNumberDesc
2128 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2129 type: i18n.phonenumbers.PhoneNumberDesc
2134 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2135 type: i18n.phonenumbers.PhoneNumberDesc
2138 name: 'premium_rate',
2140 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2141 type: i18n.phonenumbers.PhoneNumberDesc
2144 name: 'shared_cost',
2146 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2147 type: i18n.phonenumbers.PhoneNumberDesc
2150 name: 'personal_number',
2152 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2153 type: i18n.phonenumbers.PhoneNumberDesc
2158 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2159 type: i18n.phonenumbers.PhoneNumberDesc
2164 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2165 type: i18n.phonenumbers.PhoneNumberDesc
2170 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2171 type: i18n.phonenumbers.PhoneNumberDesc
2176 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2177 type: i18n.phonenumbers.PhoneNumberDesc
2182 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2183 type: i18n.phonenumbers.PhoneNumberDesc
2186 name: 'no_international_dialling',
2188 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2189 type: i18n.phonenumbers.PhoneNumberDesc
2194 fieldType: goog.proto2.Message.FieldType.STRING,
2198 name: 'country_code',
2200 fieldType: goog.proto2.Message.FieldType.INT32,
2204 name: 'international_prefix',
2206 fieldType: goog.proto2.Message.FieldType.STRING,
2210 name: 'preferred_international_prefix',
2211 fieldType: goog.proto2.Message.FieldType.STRING,
2215 name: 'national_prefix',
2216 fieldType: goog.proto2.Message.FieldType.STRING,
2220 name: 'preferred_extn_prefix',
2221 fieldType: goog.proto2.Message.FieldType.STRING,
2225 name: 'national_prefix_for_parsing',
2226 fieldType: goog.proto2.Message.FieldType.STRING,
2230 name: 'national_prefix_transform_rule',
2231 fieldType: goog.proto2.Message.FieldType.STRING,
2235 name: 'same_mobile_and_fixed_line_pattern',
2236 fieldType: goog.proto2.Message.FieldType.BOOL,
2237 defaultValue: false,
2241 name: 'number_format',
2243 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2244 type: i18n.phonenumbers.NumberFormat
2247 name: 'intl_number_format',
2249 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2250 type: i18n.phonenumbers.NumberFormat
2253 name: 'main_country_for_code',
2254 fieldType: goog.proto2.Message.FieldType.BOOL,
2255 defaultValue: false,
2259 name: 'leading_digits',
2260 fieldType: goog.proto2.Message.FieldType.STRING,
2264 name: 'leading_zero_possible',
2265 fieldType: goog.proto2.Message.FieldType.BOOL,
2266 defaultValue: false,
2272 goog.proto2.Message.set$Metadata(i18n.phonenumbers.PhoneMetadataCollection, {
2274 name: 'PhoneMetadataCollection',
2275 fullName: 'i18n.phonenumbers.PhoneMetadataCollection'
2280 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2281 type: i18n.phonenumbers.PhoneMetadata