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