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.call(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.call(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() {
544 * Gets the value of the national_number_matcher_data field.
545 * @return {?string} The value.
547 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberMatcherData = function() {
548 return /** @type {?string} */ (this.get$Value(7));
553 * Gets the value of the national_number_matcher_data field or the default value if not set.
554 * @return {string} The value.
556 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberMatcherDataOrDefault = function() {
557 return /** @type {string} */ (this.get$ValueOrDefault(7));
562 * Sets the value of the national_number_matcher_data field.
563 * @param {string} value The value.
565 i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberMatcherData = function(value) {
566 this.set$Value(7, value);
571 * @return {boolean} Whether the national_number_matcher_data field has a value.
573 i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberMatcherData = function() {
574 return this.has$Value(7);
579 * @return {number} The number of values in the national_number_matcher_data field.
581 i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberMatcherDataCount = function() {
582 return this.count$Values(7);
587 * Clears the values in the national_number_matcher_data field.
589 i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberMatcherData = function() {
595 * Gets the value of the possible_number_matcher_data field.
596 * @return {?string} The value.
598 i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberMatcherData = function() {
599 return /** @type {?string} */ (this.get$Value(8));
604 * Gets the value of the possible_number_matcher_data field or the default value if not set.
605 * @return {string} The value.
607 i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberMatcherDataOrDefault = function() {
608 return /** @type {string} */ (this.get$ValueOrDefault(8));
613 * Sets the value of the possible_number_matcher_data field.
614 * @param {string} value The value.
616 i18n.phonenumbers.PhoneNumberDesc.prototype.setPossibleNumberMatcherData = function(value) {
617 this.set$Value(8, value);
622 * @return {boolean} Whether the possible_number_matcher_data field has a value.
624 i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleNumberMatcherData = function() {
625 return this.has$Value(8);
630 * @return {number} The number of values in the possible_number_matcher_data field.
632 i18n.phonenumbers.PhoneNumberDesc.prototype.possibleNumberMatcherDataCount = function() {
633 return this.count$Values(8);
638 * Clears the values in the possible_number_matcher_data field.
640 i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleNumberMatcherData = function() {
647 * Message PhoneMetadata.
649 * @extends {goog.proto2.Message}
651 i18n.phonenumbers.PhoneMetadata = function() {
652 goog.proto2.Message.call(this);
654 goog.inherits(i18n.phonenumbers.PhoneMetadata, goog.proto2.Message);
658 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
659 * @return {!i18n.phonenumbers.PhoneMetadata} The cloned message.
662 i18n.phonenumbers.PhoneMetadata.prototype.clone;
666 * Gets the value of the general_desc field.
667 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
669 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc = function() {
670 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(1));
675 * Gets the value of the general_desc field or the default value if not set.
676 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
678 i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault = function() {
679 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(1));
684 * Sets the value of the general_desc field.
685 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
687 i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc = function(value) {
688 this.set$Value(1, value);
693 * @return {boolean} Whether the general_desc field has a value.
695 i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc = function() {
696 return this.has$Value(1);
701 * @return {number} The number of values in the general_desc field.
703 i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount = function() {
704 return this.count$Values(1);
709 * Clears the values in the general_desc field.
711 i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc = function() {
717 * Gets the value of the fixed_line field.
718 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
720 i18n.phonenumbers.PhoneMetadata.prototype.getFixedLine = function() {
721 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(2));
726 * Gets the value of the fixed_line field or the default value if not set.
727 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
729 i18n.phonenumbers.PhoneMetadata.prototype.getFixedLineOrDefault = function() {
730 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(2));
735 * Sets the value of the fixed_line field.
736 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
738 i18n.phonenumbers.PhoneMetadata.prototype.setFixedLine = function(value) {
739 this.set$Value(2, value);
744 * @return {boolean} Whether the fixed_line field has a value.
746 i18n.phonenumbers.PhoneMetadata.prototype.hasFixedLine = function() {
747 return this.has$Value(2);
752 * @return {number} The number of values in the fixed_line field.
754 i18n.phonenumbers.PhoneMetadata.prototype.fixedLineCount = function() {
755 return this.count$Values(2);
760 * Clears the values in the fixed_line field.
762 i18n.phonenumbers.PhoneMetadata.prototype.clearFixedLine = function() {
768 * Gets the value of the mobile field.
769 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
771 i18n.phonenumbers.PhoneMetadata.prototype.getMobile = function() {
772 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(3));
777 * Gets the value of the mobile field or the default value if not set.
778 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
780 i18n.phonenumbers.PhoneMetadata.prototype.getMobileOrDefault = function() {
781 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(3));
786 * Sets the value of the mobile field.
787 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
789 i18n.phonenumbers.PhoneMetadata.prototype.setMobile = function(value) {
790 this.set$Value(3, value);
795 * @return {boolean} Whether the mobile field has a value.
797 i18n.phonenumbers.PhoneMetadata.prototype.hasMobile = function() {
798 return this.has$Value(3);
803 * @return {number} The number of values in the mobile field.
805 i18n.phonenumbers.PhoneMetadata.prototype.mobileCount = function() {
806 return this.count$Values(3);
811 * Clears the values in the mobile field.
813 i18n.phonenumbers.PhoneMetadata.prototype.clearMobile = function() {
819 * Gets the value of the toll_free field.
820 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
822 i18n.phonenumbers.PhoneMetadata.prototype.getTollFree = function() {
823 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(4));
828 * Gets the value of the toll_free field or the default value if not set.
829 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
831 i18n.phonenumbers.PhoneMetadata.prototype.getTollFreeOrDefault = function() {
832 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(4));
837 * Sets the value of the toll_free field.
838 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
840 i18n.phonenumbers.PhoneMetadata.prototype.setTollFree = function(value) {
841 this.set$Value(4, value);
846 * @return {boolean} Whether the toll_free field has a value.
848 i18n.phonenumbers.PhoneMetadata.prototype.hasTollFree = function() {
849 return this.has$Value(4);
854 * @return {number} The number of values in the toll_free field.
856 i18n.phonenumbers.PhoneMetadata.prototype.tollFreeCount = function() {
857 return this.count$Values(4);
862 * Clears the values in the toll_free field.
864 i18n.phonenumbers.PhoneMetadata.prototype.clearTollFree = function() {
870 * Gets the value of the premium_rate field.
871 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
873 i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRate = function() {
874 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(5));
879 * Gets the value of the premium_rate field or the default value if not set.
880 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
882 i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRateOrDefault = function() {
883 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(5));
888 * Sets the value of the premium_rate field.
889 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
891 i18n.phonenumbers.PhoneMetadata.prototype.setPremiumRate = function(value) {
892 this.set$Value(5, value);
897 * @return {boolean} Whether the premium_rate field has a value.
899 i18n.phonenumbers.PhoneMetadata.prototype.hasPremiumRate = function() {
900 return this.has$Value(5);
905 * @return {number} The number of values in the premium_rate field.
907 i18n.phonenumbers.PhoneMetadata.prototype.premiumRateCount = function() {
908 return this.count$Values(5);
913 * Clears the values in the premium_rate field.
915 i18n.phonenumbers.PhoneMetadata.prototype.clearPremiumRate = function() {
921 * Gets the value of the shared_cost field.
922 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
924 i18n.phonenumbers.PhoneMetadata.prototype.getSharedCost = function() {
925 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(6));
930 * Gets the value of the shared_cost field or the default value if not set.
931 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
933 i18n.phonenumbers.PhoneMetadata.prototype.getSharedCostOrDefault = function() {
934 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(6));
939 * Sets the value of the shared_cost field.
940 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
942 i18n.phonenumbers.PhoneMetadata.prototype.setSharedCost = function(value) {
943 this.set$Value(6, value);
948 * @return {boolean} Whether the shared_cost field has a value.
950 i18n.phonenumbers.PhoneMetadata.prototype.hasSharedCost = function() {
951 return this.has$Value(6);
956 * @return {number} The number of values in the shared_cost field.
958 i18n.phonenumbers.PhoneMetadata.prototype.sharedCostCount = function() {
959 return this.count$Values(6);
964 * Clears the values in the shared_cost field.
966 i18n.phonenumbers.PhoneMetadata.prototype.clearSharedCost = function() {
972 * Gets the value of the personal_number field.
973 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
975 i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumber = function() {
976 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(7));
981 * Gets the value of the personal_number field or the default value if not set.
982 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
984 i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumberOrDefault = function() {
985 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(7));
990 * Sets the value of the personal_number field.
991 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
993 i18n.phonenumbers.PhoneMetadata.prototype.setPersonalNumber = function(value) {
994 this.set$Value(7, value);
999 * @return {boolean} Whether the personal_number field has a value.
1001 i18n.phonenumbers.PhoneMetadata.prototype.hasPersonalNumber = function() {
1002 return this.has$Value(7);
1007 * @return {number} The number of values in the personal_number field.
1009 i18n.phonenumbers.PhoneMetadata.prototype.personalNumberCount = function() {
1010 return this.count$Values(7);
1015 * Clears the values in the personal_number field.
1017 i18n.phonenumbers.PhoneMetadata.prototype.clearPersonalNumber = function() {
1018 this.clear$Field(7);
1023 * Gets the value of the voip field.
1024 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1026 i18n.phonenumbers.PhoneMetadata.prototype.getVoip = function() {
1027 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(8));
1032 * Gets the value of the voip field or the default value if not set.
1033 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1035 i18n.phonenumbers.PhoneMetadata.prototype.getVoipOrDefault = function() {
1036 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(8));
1041 * Sets the value of the voip field.
1042 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1044 i18n.phonenumbers.PhoneMetadata.prototype.setVoip = function(value) {
1045 this.set$Value(8, value);
1050 * @return {boolean} Whether the voip field has a value.
1052 i18n.phonenumbers.PhoneMetadata.prototype.hasVoip = function() {
1053 return this.has$Value(8);
1058 * @return {number} The number of values in the voip field.
1060 i18n.phonenumbers.PhoneMetadata.prototype.voipCount = function() {
1061 return this.count$Values(8);
1066 * Clears the values in the voip field.
1068 i18n.phonenumbers.PhoneMetadata.prototype.clearVoip = function() {
1069 this.clear$Field(8);
1074 * Gets the value of the pager field.
1075 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1077 i18n.phonenumbers.PhoneMetadata.prototype.getPager = function() {
1078 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(21));
1083 * Gets the value of the pager field or the default value if not set.
1084 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1086 i18n.phonenumbers.PhoneMetadata.prototype.getPagerOrDefault = function() {
1087 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(21));
1092 * Sets the value of the pager field.
1093 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1095 i18n.phonenumbers.PhoneMetadata.prototype.setPager = function(value) {
1096 this.set$Value(21, value);
1101 * @return {boolean} Whether the pager field has a value.
1103 i18n.phonenumbers.PhoneMetadata.prototype.hasPager = function() {
1104 return this.has$Value(21);
1109 * @return {number} The number of values in the pager field.
1111 i18n.phonenumbers.PhoneMetadata.prototype.pagerCount = function() {
1112 return this.count$Values(21);
1117 * Clears the values in the pager field.
1119 i18n.phonenumbers.PhoneMetadata.prototype.clearPager = function() {
1120 this.clear$Field(21);
1125 * Gets the value of the uan field.
1126 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1128 i18n.phonenumbers.PhoneMetadata.prototype.getUan = function() {
1129 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(25));
1134 * Gets the value of the uan field or the default value if not set.
1135 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1137 i18n.phonenumbers.PhoneMetadata.prototype.getUanOrDefault = function() {
1138 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(25));
1143 * Sets the value of the uan field.
1144 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1146 i18n.phonenumbers.PhoneMetadata.prototype.setUan = function(value) {
1147 this.set$Value(25, value);
1152 * @return {boolean} Whether the uan field has a value.
1154 i18n.phonenumbers.PhoneMetadata.prototype.hasUan = function() {
1155 return this.has$Value(25);
1160 * @return {number} The number of values in the uan field.
1162 i18n.phonenumbers.PhoneMetadata.prototype.uanCount = function() {
1163 return this.count$Values(25);
1168 * Clears the values in the uan field.
1170 i18n.phonenumbers.PhoneMetadata.prototype.clearUan = function() {
1171 this.clear$Field(25);
1176 * Gets the value of the emergency field.
1177 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1179 i18n.phonenumbers.PhoneMetadata.prototype.getEmergency = function() {
1180 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(27));
1185 * Gets the value of the emergency field or the default value if not set.
1186 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1188 i18n.phonenumbers.PhoneMetadata.prototype.getEmergencyOrDefault = function() {
1189 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(27));
1194 * Sets the value of the emergency field.
1195 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1197 i18n.phonenumbers.PhoneMetadata.prototype.setEmergency = function(value) {
1198 this.set$Value(27, value);
1203 * @return {boolean} Whether the emergency field has a value.
1205 i18n.phonenumbers.PhoneMetadata.prototype.hasEmergency = function() {
1206 return this.has$Value(27);
1211 * @return {number} The number of values in the emergency field.
1213 i18n.phonenumbers.PhoneMetadata.prototype.emergencyCount = function() {
1214 return this.count$Values(27);
1219 * Clears the values in the emergency field.
1221 i18n.phonenumbers.PhoneMetadata.prototype.clearEmergency = function() {
1222 this.clear$Field(27);
1227 * Gets the value of the voicemail field.
1228 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1230 i18n.phonenumbers.PhoneMetadata.prototype.getVoicemail = function() {
1231 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(28));
1236 * Gets the value of the voicemail field or the default value if not set.
1237 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1239 i18n.phonenumbers.PhoneMetadata.prototype.getVoicemailOrDefault = function() {
1240 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(28));
1245 * Sets the value of the voicemail field.
1246 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1248 i18n.phonenumbers.PhoneMetadata.prototype.setVoicemail = function(value) {
1249 this.set$Value(28, value);
1254 * @return {boolean} Whether the voicemail field has a value.
1256 i18n.phonenumbers.PhoneMetadata.prototype.hasVoicemail = function() {
1257 return this.has$Value(28);
1262 * @return {number} The number of values in the voicemail field.
1264 i18n.phonenumbers.PhoneMetadata.prototype.voicemailCount = function() {
1265 return this.count$Values(28);
1270 * Clears the values in the voicemail field.
1272 i18n.phonenumbers.PhoneMetadata.prototype.clearVoicemail = function() {
1273 this.clear$Field(28);
1278 * Gets the value of the no_international_dialling field.
1279 * @return {i18n.phonenumbers.PhoneNumberDesc} The value.
1281 i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDialling = function() {
1282 return /** @type {i18n.phonenumbers.PhoneNumberDesc} */ (this.get$Value(24));
1287 * Gets the value of the no_international_dialling field or the default value if not set.
1288 * @return {!i18n.phonenumbers.PhoneNumberDesc} The value.
1290 i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDiallingOrDefault = function() {
1291 return /** @type {!i18n.phonenumbers.PhoneNumberDesc} */ (this.get$ValueOrDefault(24));
1296 * Sets the value of the no_international_dialling field.
1297 * @param {!i18n.phonenumbers.PhoneNumberDesc} value The value.
1299 i18n.phonenumbers.PhoneMetadata.prototype.setNoInternationalDialling = function(value) {
1300 this.set$Value(24, value);
1305 * @return {boolean} Whether the no_international_dialling field has a value.
1307 i18n.phonenumbers.PhoneMetadata.prototype.hasNoInternationalDialling = function() {
1308 return this.has$Value(24);
1313 * @return {number} The number of values in the no_international_dialling field.
1315 i18n.phonenumbers.PhoneMetadata.prototype.noInternationalDiallingCount = function() {
1316 return this.count$Values(24);
1321 * Clears the values in the no_international_dialling field.
1323 i18n.phonenumbers.PhoneMetadata.prototype.clearNoInternationalDialling = function() {
1324 this.clear$Field(24);
1329 * Gets the value of the id field.
1330 * @return {?string} The value.
1332 i18n.phonenumbers.PhoneMetadata.prototype.getId = function() {
1333 return /** @type {?string} */ (this.get$Value(9));
1338 * Gets the value of the id field or the default value if not set.
1339 * @return {string} The value.
1341 i18n.phonenumbers.PhoneMetadata.prototype.getIdOrDefault = function() {
1342 return /** @type {string} */ (this.get$ValueOrDefault(9));
1347 * Sets the value of the id field.
1348 * @param {string} value The value.
1350 i18n.phonenumbers.PhoneMetadata.prototype.setId = function(value) {
1351 this.set$Value(9, value);
1356 * @return {boolean} Whether the id field has a value.
1358 i18n.phonenumbers.PhoneMetadata.prototype.hasId = function() {
1359 return this.has$Value(9);
1364 * @return {number} The number of values in the id field.
1366 i18n.phonenumbers.PhoneMetadata.prototype.idCount = function() {
1367 return this.count$Values(9);
1372 * Clears the values in the id field.
1374 i18n.phonenumbers.PhoneMetadata.prototype.clearId = function() {
1375 this.clear$Field(9);
1380 * Gets the value of the country_code field.
1381 * @return {?number} The value.
1383 i18n.phonenumbers.PhoneMetadata.prototype.getCountryCode = function() {
1384 return /** @type {?number} */ (this.get$Value(10));
1389 * Gets the value of the country_code field or the default value if not set.
1390 * @return {number} The value.
1392 i18n.phonenumbers.PhoneMetadata.prototype.getCountryCodeOrDefault = function() {
1393 return /** @type {number} */ (this.get$ValueOrDefault(10));
1398 * Sets the value of the country_code field.
1399 * @param {number} value The value.
1401 i18n.phonenumbers.PhoneMetadata.prototype.setCountryCode = function(value) {
1402 this.set$Value(10, value);
1407 * @return {boolean} Whether the country_code field has a value.
1409 i18n.phonenumbers.PhoneMetadata.prototype.hasCountryCode = function() {
1410 return this.has$Value(10);
1415 * @return {number} The number of values in the country_code field.
1417 i18n.phonenumbers.PhoneMetadata.prototype.countryCodeCount = function() {
1418 return this.count$Values(10);
1423 * Clears the values in the country_code field.
1425 i18n.phonenumbers.PhoneMetadata.prototype.clearCountryCode = function() {
1426 this.clear$Field(10);
1431 * Gets the value of the international_prefix field.
1432 * @return {?string} The value.
1434 i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefix = function() {
1435 return /** @type {?string} */ (this.get$Value(11));
1440 * Gets the value of the international_prefix field or the default value if not set.
1441 * @return {string} The value.
1443 i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefixOrDefault = function() {
1444 return /** @type {string} */ (this.get$ValueOrDefault(11));
1449 * Sets the value of the international_prefix field.
1450 * @param {string} value The value.
1452 i18n.phonenumbers.PhoneMetadata.prototype.setInternationalPrefix = function(value) {
1453 this.set$Value(11, value);
1458 * @return {boolean} Whether the international_prefix field has a value.
1460 i18n.phonenumbers.PhoneMetadata.prototype.hasInternationalPrefix = function() {
1461 return this.has$Value(11);
1466 * @return {number} The number of values in the international_prefix field.
1468 i18n.phonenumbers.PhoneMetadata.prototype.internationalPrefixCount = function() {
1469 return this.count$Values(11);
1474 * Clears the values in the international_prefix field.
1476 i18n.phonenumbers.PhoneMetadata.prototype.clearInternationalPrefix = function() {
1477 this.clear$Field(11);
1482 * Gets the value of the preferred_international_prefix field.
1483 * @return {?string} The value.
1485 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefix = function() {
1486 return /** @type {?string} */ (this.get$Value(17));
1491 * Gets the value of the preferred_international_prefix field or the default value if not set.
1492 * @return {string} The value.
1494 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefixOrDefault = function() {
1495 return /** @type {string} */ (this.get$ValueOrDefault(17));
1500 * Sets the value of the preferred_international_prefix field.
1501 * @param {string} value The value.
1503 i18n.phonenumbers.PhoneMetadata.prototype.setPreferredInternationalPrefix = function(value) {
1504 this.set$Value(17, value);
1509 * @return {boolean} Whether the preferred_international_prefix field has a value.
1511 i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredInternationalPrefix = function() {
1512 return this.has$Value(17);
1517 * @return {number} The number of values in the preferred_international_prefix field.
1519 i18n.phonenumbers.PhoneMetadata.prototype.preferredInternationalPrefixCount = function() {
1520 return this.count$Values(17);
1525 * Clears the values in the preferred_international_prefix field.
1527 i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredInternationalPrefix = function() {
1528 this.clear$Field(17);
1533 * Gets the value of the national_prefix field.
1534 * @return {?string} The value.
1536 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefix = function() {
1537 return /** @type {?string} */ (this.get$Value(12));
1542 * Gets the value of the national_prefix field or the default value if not set.
1543 * @return {string} The value.
1545 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixOrDefault = function() {
1546 return /** @type {string} */ (this.get$ValueOrDefault(12));
1551 * Sets the value of the national_prefix field.
1552 * @param {string} value The value.
1554 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefix = function(value) {
1555 this.set$Value(12, value);
1560 * @return {boolean} Whether the national_prefix field has a value.
1562 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix = function() {
1563 return this.has$Value(12);
1568 * @return {number} The number of values in the national_prefix field.
1570 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixCount = function() {
1571 return this.count$Values(12);
1576 * Clears the values in the national_prefix field.
1578 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefix = function() {
1579 this.clear$Field(12);
1584 * Gets the value of the preferred_extn_prefix field.
1585 * @return {?string} The value.
1587 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefix = function() {
1588 return /** @type {?string} */ (this.get$Value(13));
1593 * Gets the value of the preferred_extn_prefix field or the default value if not set.
1594 * @return {string} The value.
1596 i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefixOrDefault = function() {
1597 return /** @type {string} */ (this.get$ValueOrDefault(13));
1602 * Sets the value of the preferred_extn_prefix field.
1603 * @param {string} value The value.
1605 i18n.phonenumbers.PhoneMetadata.prototype.setPreferredExtnPrefix = function(value) {
1606 this.set$Value(13, value);
1611 * @return {boolean} Whether the preferred_extn_prefix field has a value.
1613 i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredExtnPrefix = function() {
1614 return this.has$Value(13);
1619 * @return {number} The number of values in the preferred_extn_prefix field.
1621 i18n.phonenumbers.PhoneMetadata.prototype.preferredExtnPrefixCount = function() {
1622 return this.count$Values(13);
1627 * Clears the values in the preferred_extn_prefix field.
1629 i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredExtnPrefix = function() {
1630 this.clear$Field(13);
1635 * Gets the value of the national_prefix_for_parsing field.
1636 * @return {?string} The value.
1638 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsing = function() {
1639 return /** @type {?string} */ (this.get$Value(15));
1644 * Gets the value of the national_prefix_for_parsing field or the default value if not set.
1645 * @return {string} The value.
1647 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsingOrDefault = function() {
1648 return /** @type {string} */ (this.get$ValueOrDefault(15));
1653 * Sets the value of the national_prefix_for_parsing field.
1654 * @param {string} value The value.
1656 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixForParsing = function(value) {
1657 this.set$Value(15, value);
1662 * @return {boolean} Whether the national_prefix_for_parsing field has a value.
1664 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixForParsing = function() {
1665 return this.has$Value(15);
1670 * @return {number} The number of values in the national_prefix_for_parsing field.
1672 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixForParsingCount = function() {
1673 return this.count$Values(15);
1678 * Clears the values in the national_prefix_for_parsing field.
1680 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixForParsing = function() {
1681 this.clear$Field(15);
1686 * Gets the value of the national_prefix_transform_rule field.
1687 * @return {?string} The value.
1689 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRule = function() {
1690 return /** @type {?string} */ (this.get$Value(16));
1695 * Gets the value of the national_prefix_transform_rule field or the default value if not set.
1696 * @return {string} The value.
1698 i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRuleOrDefault = function() {
1699 return /** @type {string} */ (this.get$ValueOrDefault(16));
1704 * Sets the value of the national_prefix_transform_rule field.
1705 * @param {string} value The value.
1707 i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixTransformRule = function(value) {
1708 this.set$Value(16, value);
1713 * @return {boolean} Whether the national_prefix_transform_rule field has a value.
1715 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixTransformRule = function() {
1716 return this.has$Value(16);
1721 * @return {number} The number of values in the national_prefix_transform_rule field.
1723 i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixTransformRuleCount = function() {
1724 return this.count$Values(16);
1729 * Clears the values in the national_prefix_transform_rule field.
1731 i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixTransformRule = function() {
1732 this.clear$Field(16);
1737 * Gets the value of the same_mobile_and_fixed_line_pattern field.
1738 * @return {?boolean} The value.
1740 i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePattern = function() {
1741 return /** @type {?boolean} */ (this.get$Value(18));
1746 * Gets the value of the same_mobile_and_fixed_line_pattern field or the default value if not set.
1747 * @return {boolean} The value.
1749 i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePatternOrDefault = function() {
1750 return /** @type {boolean} */ (this.get$ValueOrDefault(18));
1755 * Sets the value of the same_mobile_and_fixed_line_pattern field.
1756 * @param {boolean} value The value.
1758 i18n.phonenumbers.PhoneMetadata.prototype.setSameMobileAndFixedLinePattern = function(value) {
1759 this.set$Value(18, value);
1764 * @return {boolean} Whether the same_mobile_and_fixed_line_pattern field has a value.
1766 i18n.phonenumbers.PhoneMetadata.prototype.hasSameMobileAndFixedLinePattern = function() {
1767 return this.has$Value(18);
1772 * @return {number} The number of values in the same_mobile_and_fixed_line_pattern field.
1774 i18n.phonenumbers.PhoneMetadata.prototype.sameMobileAndFixedLinePatternCount = function() {
1775 return this.count$Values(18);
1780 * Clears the values in the same_mobile_and_fixed_line_pattern field.
1782 i18n.phonenumbers.PhoneMetadata.prototype.clearSameMobileAndFixedLinePattern = function() {
1783 this.clear$Field(18);
1788 * Gets the value of the number_format field at the index given.
1789 * @param {number} index The index to lookup.
1790 * @return {i18n.phonenumbers.NumberFormat} The value.
1792 i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormat = function(index) {
1793 return /** @type {i18n.phonenumbers.NumberFormat} */ (this.get$Value(19, index));
1798 * Gets the value of the number_format field at the index given or the default value if not set.
1799 * @param {number} index The index to lookup.
1800 * @return {!i18n.phonenumbers.NumberFormat} The value.
1802 i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormatOrDefault = function(index) {
1803 return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(19, index));
1808 * Adds a value to the number_format field.
1809 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
1811 i18n.phonenumbers.PhoneMetadata.prototype.addNumberFormat = function(value) {
1812 this.add$Value(19, value);
1817 * Returns the array of values in the number_format field.
1818 * @return {!Array.<!i18n.phonenumbers.NumberFormat>} The values in the field.
1820 i18n.phonenumbers.PhoneMetadata.prototype.numberFormatArray = function() {
1821 return /** @type {!Array.<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(19));
1826 * @return {boolean} Whether the number_format field has a value.
1828 i18n.phonenumbers.PhoneMetadata.prototype.hasNumberFormat = function() {
1829 return this.has$Value(19);
1834 * @return {number} The number of values in the number_format field.
1836 i18n.phonenumbers.PhoneMetadata.prototype.numberFormatCount = function() {
1837 return this.count$Values(19);
1842 * Clears the values in the number_format field.
1844 i18n.phonenumbers.PhoneMetadata.prototype.clearNumberFormat = function() {
1845 this.clear$Field(19);
1850 * Gets the value of the intl_number_format field at the index given.
1851 * @param {number} index The index to lookup.
1852 * @return {i18n.phonenumbers.NumberFormat} The value.
1854 i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormat = function(index) {
1855 return /** @type {i18n.phonenumbers.NumberFormat} */ (this.get$Value(20, index));
1860 * Gets the value of the intl_number_format field at the index given or the default value if not set.
1861 * @param {number} index The index to lookup.
1862 * @return {!i18n.phonenumbers.NumberFormat} The value.
1864 i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormatOrDefault = function(index) {
1865 return /** @type {!i18n.phonenumbers.NumberFormat} */ (this.get$ValueOrDefault(20, index));
1870 * Adds a value to the intl_number_format field.
1871 * @param {!i18n.phonenumbers.NumberFormat} value The value to add.
1873 i18n.phonenumbers.PhoneMetadata.prototype.addIntlNumberFormat = function(value) {
1874 this.add$Value(20, value);
1879 * Returns the array of values in the intl_number_format field.
1880 * @return {!Array.<!i18n.phonenumbers.NumberFormat>} The values in the field.
1882 i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatArray = function() {
1883 return /** @type {!Array.<!i18n.phonenumbers.NumberFormat>} */ (this.array$Values(20));
1888 * @return {boolean} Whether the intl_number_format field has a value.
1890 i18n.phonenumbers.PhoneMetadata.prototype.hasIntlNumberFormat = function() {
1891 return this.has$Value(20);
1896 * @return {number} The number of values in the intl_number_format field.
1898 i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatCount = function() {
1899 return this.count$Values(20);
1904 * Clears the values in the intl_number_format field.
1906 i18n.phonenumbers.PhoneMetadata.prototype.clearIntlNumberFormat = function() {
1907 this.clear$Field(20);
1912 * Gets the value of the main_country_for_code field.
1913 * @return {?boolean} The value.
1915 i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCode = function() {
1916 return /** @type {?boolean} */ (this.get$Value(22));
1921 * Gets the value of the main_country_for_code field or the default value if not set.
1922 * @return {boolean} The value.
1924 i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCodeOrDefault = function() {
1925 return /** @type {boolean} */ (this.get$ValueOrDefault(22));
1930 * Sets the value of the main_country_for_code field.
1931 * @param {boolean} value The value.
1933 i18n.phonenumbers.PhoneMetadata.prototype.setMainCountryForCode = function(value) {
1934 this.set$Value(22, value);
1939 * @return {boolean} Whether the main_country_for_code field has a value.
1941 i18n.phonenumbers.PhoneMetadata.prototype.hasMainCountryForCode = function() {
1942 return this.has$Value(22);
1947 * @return {number} The number of values in the main_country_for_code field.
1949 i18n.phonenumbers.PhoneMetadata.prototype.mainCountryForCodeCount = function() {
1950 return this.count$Values(22);
1955 * Clears the values in the main_country_for_code field.
1957 i18n.phonenumbers.PhoneMetadata.prototype.clearMainCountryForCode = function() {
1958 this.clear$Field(22);
1963 * Gets the value of the leading_digits field.
1964 * @return {?string} The value.
1966 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigits = function() {
1967 return /** @type {?string} */ (this.get$Value(23));
1972 * Gets the value of the leading_digits field or the default value if not set.
1973 * @return {string} The value.
1975 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigitsOrDefault = function() {
1976 return /** @type {string} */ (this.get$ValueOrDefault(23));
1981 * Sets the value of the leading_digits field.
1982 * @param {string} value The value.
1984 i18n.phonenumbers.PhoneMetadata.prototype.setLeadingDigits = function(value) {
1985 this.set$Value(23, value);
1990 * @return {boolean} Whether the leading_digits field has a value.
1992 i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingDigits = function() {
1993 return this.has$Value(23);
1998 * @return {number} The number of values in the leading_digits field.
2000 i18n.phonenumbers.PhoneMetadata.prototype.leadingDigitsCount = function() {
2001 return this.count$Values(23);
2006 * Clears the values in the leading_digits field.
2008 i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingDigits = function() {
2009 this.clear$Field(23);
2014 * Gets the value of the leading_zero_possible field.
2015 * @return {?boolean} The value.
2017 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossible = function() {
2018 return /** @type {?boolean} */ (this.get$Value(26));
2023 * Gets the value of the leading_zero_possible field or the default value if not set.
2024 * @return {boolean} The value.
2026 i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossibleOrDefault = function() {
2027 return /** @type {boolean} */ (this.get$ValueOrDefault(26));
2032 * Sets the value of the leading_zero_possible field.
2033 * @param {boolean} value The value.
2035 i18n.phonenumbers.PhoneMetadata.prototype.setLeadingZeroPossible = function(value) {
2036 this.set$Value(26, value);
2041 * @return {boolean} Whether the leading_zero_possible field has a value.
2043 i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingZeroPossible = function() {
2044 return this.has$Value(26);
2049 * @return {number} The number of values in the leading_zero_possible field.
2051 i18n.phonenumbers.PhoneMetadata.prototype.leadingZeroPossibleCount = function() {
2052 return this.count$Values(26);
2057 * Clears the values in the leading_zero_possible field.
2059 i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingZeroPossible = function() {
2060 this.clear$Field(26);
2065 * Message PhoneMetadataCollection.
2067 * @extends {goog.proto2.Message}
2069 i18n.phonenumbers.PhoneMetadataCollection = function() {
2070 goog.proto2.Message.call(this);
2072 goog.inherits(i18n.phonenumbers.PhoneMetadataCollection, goog.proto2.Message);
2076 * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
2077 * @return {!i18n.phonenumbers.PhoneMetadataCollection} The cloned message.
2080 i18n.phonenumbers.PhoneMetadataCollection.prototype.clone;
2084 * Gets the value of the metadata field at the index given.
2085 * @param {number} index The index to lookup.
2086 * @return {i18n.phonenumbers.PhoneMetadata} The value.
2088 i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadata = function(index) {
2089 return /** @type {i18n.phonenumbers.PhoneMetadata} */ (this.get$Value(1, index));
2094 * Gets the value of the metadata field at the index given or the default value if not set.
2095 * @param {number} index The index to lookup.
2096 * @return {!i18n.phonenumbers.PhoneMetadata} The value.
2098 i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadataOrDefault = function(index) {
2099 return /** @type {!i18n.phonenumbers.PhoneMetadata} */ (this.get$ValueOrDefault(1, index));
2104 * Adds a value to the metadata field.
2105 * @param {!i18n.phonenumbers.PhoneMetadata} value The value to add.
2107 i18n.phonenumbers.PhoneMetadataCollection.prototype.addMetadata = function(value) {
2108 this.add$Value(1, value);
2113 * Returns the array of values in the metadata field.
2114 * @return {!Array.<!i18n.phonenumbers.PhoneMetadata>} The values in the field.
2116 i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataArray = function() {
2117 return /** @type {!Array.<!i18n.phonenumbers.PhoneMetadata>} */ (this.array$Values(1));
2122 * @return {boolean} Whether the metadata field has a value.
2124 i18n.phonenumbers.PhoneMetadataCollection.prototype.hasMetadata = function() {
2125 return this.has$Value(1);
2130 * @return {number} The number of values in the metadata field.
2132 i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataCount = function() {
2133 return this.count$Values(1);
2138 * Clears the values in the metadata field.
2140 i18n.phonenumbers.PhoneMetadataCollection.prototype.clearMetadata = function() {
2141 this.clear$Field(1);
2146 i18n.phonenumbers.NumberFormat.prototype.getDescriptor = function() {
2147 if (!i18n.phonenumbers.NumberFormat.descriptor_) {
2148 // The descriptor is created lazily when we instantiate a new instance.
2149 var descriptorObj = {
2151 name: 'NumberFormat',
2152 fullName: 'i18n.phonenumbers.NumberFormat'
2157 fieldType: goog.proto2.Message.FieldType.STRING,
2163 fieldType: goog.proto2.Message.FieldType.STRING,
2167 name: 'leading_digits_pattern',
2169 fieldType: goog.proto2.Message.FieldType.STRING,
2173 name: 'national_prefix_formatting_rule',
2174 fieldType: goog.proto2.Message.FieldType.STRING,
2178 name: 'national_prefix_optional_when_formatting',
2179 fieldType: goog.proto2.Message.FieldType.BOOL,
2183 name: 'domestic_carrier_code_formatting_rule',
2184 fieldType: goog.proto2.Message.FieldType.STRING,
2188 i18n.phonenumbers.NumberFormat.descriptor_ =
2189 goog.proto2.Message.createDescriptor(
2190 i18n.phonenumbers.NumberFormat, descriptorObj);
2192 return i18n.phonenumbers.NumberFormat.descriptor_;
2196 // Export getDescriptor static function robust to minification.
2197 i18n.phonenumbers.NumberFormat['ctor'] = i18n.phonenumbers.NumberFormat;
2198 i18n.phonenumbers.NumberFormat['ctor'].getDescriptor =
2199 i18n.phonenumbers.NumberFormat.prototype.getDescriptor;
2203 i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor = function() {
2204 if (!i18n.phonenumbers.PhoneNumberDesc.descriptor_) {
2205 // The descriptor is created lazily when we instantiate a new instance.
2206 var descriptorObj = {
2208 name: 'PhoneNumberDesc',
2209 fullName: 'i18n.phonenumbers.PhoneNumberDesc'
2212 name: 'national_number_pattern',
2213 fieldType: goog.proto2.Message.FieldType.STRING,
2217 name: 'possible_number_pattern',
2218 fieldType: goog.proto2.Message.FieldType.STRING,
2222 name: 'example_number',
2223 fieldType: goog.proto2.Message.FieldType.STRING,
2227 name: 'national_number_matcher_data',
2228 fieldType: goog.proto2.Message.FieldType.BYTES,
2232 name: 'possible_number_matcher_data',
2233 fieldType: goog.proto2.Message.FieldType.BYTES,
2237 i18n.phonenumbers.PhoneNumberDesc.descriptor_ =
2238 goog.proto2.Message.createDescriptor(
2239 i18n.phonenumbers.PhoneNumberDesc, descriptorObj);
2241 return i18n.phonenumbers.PhoneNumberDesc.descriptor_;
2245 // Export getDescriptor static function robust to minification.
2246 i18n.phonenumbers.PhoneNumberDesc['ctor'] = i18n.phonenumbers.PhoneNumberDesc;
2247 i18n.phonenumbers.PhoneNumberDesc['ctor'].getDescriptor =
2248 i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor;
2252 i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor = function() {
2253 if (!i18n.phonenumbers.PhoneMetadata.descriptor_) {
2254 // The descriptor is created lazily when we instantiate a new instance.
2255 var descriptorObj = {
2257 name: 'PhoneMetadata',
2258 fullName: 'i18n.phonenumbers.PhoneMetadata'
2261 name: 'general_desc',
2262 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2263 type: i18n.phonenumbers.PhoneNumberDesc
2267 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2268 type: i18n.phonenumbers.PhoneNumberDesc
2272 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2273 type: i18n.phonenumbers.PhoneNumberDesc
2277 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2278 type: i18n.phonenumbers.PhoneNumberDesc
2281 name: 'premium_rate',
2282 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2283 type: i18n.phonenumbers.PhoneNumberDesc
2286 name: 'shared_cost',
2287 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2288 type: i18n.phonenumbers.PhoneNumberDesc
2291 name: 'personal_number',
2292 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2293 type: i18n.phonenumbers.PhoneNumberDesc
2297 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2298 type: i18n.phonenumbers.PhoneNumberDesc
2302 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2303 type: i18n.phonenumbers.PhoneNumberDesc
2307 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2308 type: i18n.phonenumbers.PhoneNumberDesc
2312 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2313 type: i18n.phonenumbers.PhoneNumberDesc
2317 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2318 type: i18n.phonenumbers.PhoneNumberDesc
2321 name: 'no_international_dialling',
2322 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2323 type: i18n.phonenumbers.PhoneNumberDesc
2328 fieldType: goog.proto2.Message.FieldType.STRING,
2332 name: 'country_code',
2333 fieldType: goog.proto2.Message.FieldType.INT32,
2337 name: 'international_prefix',
2338 fieldType: goog.proto2.Message.FieldType.STRING,
2342 name: 'preferred_international_prefix',
2343 fieldType: goog.proto2.Message.FieldType.STRING,
2347 name: 'national_prefix',
2348 fieldType: goog.proto2.Message.FieldType.STRING,
2352 name: 'preferred_extn_prefix',
2353 fieldType: goog.proto2.Message.FieldType.STRING,
2357 name: 'national_prefix_for_parsing',
2358 fieldType: goog.proto2.Message.FieldType.STRING,
2362 name: 'national_prefix_transform_rule',
2363 fieldType: goog.proto2.Message.FieldType.STRING,
2367 name: 'same_mobile_and_fixed_line_pattern',
2368 fieldType: goog.proto2.Message.FieldType.BOOL,
2369 defaultValue: false,
2373 name: 'number_format',
2375 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2376 type: i18n.phonenumbers.NumberFormat
2379 name: 'intl_number_format',
2381 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2382 type: i18n.phonenumbers.NumberFormat
2385 name: 'main_country_for_code',
2386 fieldType: goog.proto2.Message.FieldType.BOOL,
2387 defaultValue: false,
2391 name: 'leading_digits',
2392 fieldType: goog.proto2.Message.FieldType.STRING,
2396 name: 'leading_zero_possible',
2397 fieldType: goog.proto2.Message.FieldType.BOOL,
2398 defaultValue: false,
2402 i18n.phonenumbers.PhoneMetadata.descriptor_ =
2403 goog.proto2.Message.createDescriptor(
2404 i18n.phonenumbers.PhoneMetadata, descriptorObj);
2406 return i18n.phonenumbers.PhoneMetadata.descriptor_;
2410 // Export getDescriptor static function robust to minification.
2411 i18n.phonenumbers.PhoneMetadata['ctor'] = i18n.phonenumbers.PhoneMetadata;
2412 i18n.phonenumbers.PhoneMetadata['ctor'].getDescriptor =
2413 i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor;
2417 i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor = function() {
2418 if (!i18n.phonenumbers.PhoneMetadataCollection.descriptor_) {
2419 // The descriptor is created lazily when we instantiate a new instance.
2420 var descriptorObj = {
2422 name: 'PhoneMetadataCollection',
2423 fullName: 'i18n.phonenumbers.PhoneMetadataCollection'
2428 fieldType: goog.proto2.Message.FieldType.MESSAGE,
2429 type: i18n.phonenumbers.PhoneMetadata
2432 i18n.phonenumbers.PhoneMetadataCollection.descriptor_ =
2433 goog.proto2.Message.createDescriptor(
2434 i18n.phonenumbers.PhoneMetadataCollection, descriptorObj);
2436 return i18n.phonenumbers.PhoneMetadataCollection.descriptor_;
2440 // Export getDescriptor static function robust to minification.
2441 i18n.phonenumbers.PhoneMetadataCollection['ctor'] = i18n.phonenumbers.PhoneMetadataCollection;
2442 i18n.phonenumbers.PhoneMetadataCollection['ctor'].getDescriptor =
2443 i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor;