Path: blob/trunk/third_party/closure/goog/proto2/test.pb.js
2868 views
// Copyright 2008 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.13// All other code copyright its respective owners(s).1415/**16* @fileoverview Generated Protocol Buffer code for file17* closure/goog/proto2/test.proto.18*/1920goog.provide('proto2.TestAllTypes');21goog.provide('proto2.TestAllTypes.NestedEnum');22goog.provide('proto2.TestAllTypes.NestedMessage');23goog.provide('proto2.TestAllTypes.OptionalGroup');24goog.provide('proto2.TestAllTypes.RepeatedGroup');25goog.provide('proto2.TestDefaultChild');26goog.provide('proto2.TestDefaultParent');27goog.setTestOnly('proto2.TestAllTypes');2829goog.require('goog.proto2.Message');30313233/**34* Message TestAllTypes.35* @constructor36* @extends {goog.proto2.Message}37* @final38*/39proto2.TestAllTypes = function() {40goog.proto2.Message.call(this);41};42goog.inherits(proto2.TestAllTypes, goog.proto2.Message);434445/**46* Descriptor for this message, deserialized lazily in getDescriptor().47* @private {?goog.proto2.Descriptor}48*/49proto2.TestAllTypes.descriptor_ = null;505152/**53* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.54* @return {!proto2.TestAllTypes} The cloned message.55* @override56*/57proto2.TestAllTypes.prototype.clone;585960/**61* Gets the value of the optional_int32 field.62* @return {?number} The value.63*/64proto2.TestAllTypes.prototype.getOptionalInt32 = function() {65return /** @type {?number} */ (this.get$Value(1));66};676869/**70* Gets the value of the optional_int32 field or the default value if not set.71* @return {number} The value.72*/73proto2.TestAllTypes.prototype.getOptionalInt32OrDefault = function() {74return /** @type {number} */ (this.get$ValueOrDefault(1));75};767778/**79* Sets the value of the optional_int32 field.80* @param {number} value The value.81*/82proto2.TestAllTypes.prototype.setOptionalInt32 = function(value) {83this.set$Value(1, value);84};858687/**88* @return {boolean} Whether the optional_int32 field has a value.89*/90proto2.TestAllTypes.prototype.hasOptionalInt32 = function() {91return this.has$Value(1);92};939495/**96* @return {number} The number of values in the optional_int32 field.97*/98proto2.TestAllTypes.prototype.optionalInt32Count = function() {99return this.count$Values(1);100};101102103/**104* Clears the values in the optional_int32 field.105*/106proto2.TestAllTypes.prototype.clearOptionalInt32 = function() {107this.clear$Field(1);108};109110111/**112* Gets the value of the optional_int64 field.113* @return {?string} The value.114*/115proto2.TestAllTypes.prototype.getOptionalInt64 = function() {116return /** @type {?string} */ (this.get$Value(2));117};118119120/**121* Gets the value of the optional_int64 field or the default value if not set.122* @return {string} The value.123*/124proto2.TestAllTypes.prototype.getOptionalInt64OrDefault = function() {125return /** @type {string} */ (this.get$ValueOrDefault(2));126};127128129/**130* Sets the value of the optional_int64 field.131* @param {string} value The value.132*/133proto2.TestAllTypes.prototype.setOptionalInt64 = function(value) {134this.set$Value(2, value);135};136137138/**139* @return {boolean} Whether the optional_int64 field has a value.140*/141proto2.TestAllTypes.prototype.hasOptionalInt64 = function() {142return this.has$Value(2);143};144145146/**147* @return {number} The number of values in the optional_int64 field.148*/149proto2.TestAllTypes.prototype.optionalInt64Count = function() {150return this.count$Values(2);151};152153154/**155* Clears the values in the optional_int64 field.156*/157proto2.TestAllTypes.prototype.clearOptionalInt64 = function() {158this.clear$Field(2);159};160161162/**163* Gets the value of the optional_uint32 field.164* @return {?number} The value.165*/166proto2.TestAllTypes.prototype.getOptionalUint32 = function() {167return /** @type {?number} */ (this.get$Value(3));168};169170171/**172* Gets the value of the optional_uint32 field or the default value if not set.173* @return {number} The value.174*/175proto2.TestAllTypes.prototype.getOptionalUint32OrDefault = function() {176return /** @type {number} */ (this.get$ValueOrDefault(3));177};178179180/**181* Sets the value of the optional_uint32 field.182* @param {number} value The value.183*/184proto2.TestAllTypes.prototype.setOptionalUint32 = function(value) {185this.set$Value(3, value);186};187188189/**190* @return {boolean} Whether the optional_uint32 field has a value.191*/192proto2.TestAllTypes.prototype.hasOptionalUint32 = function() {193return this.has$Value(3);194};195196197/**198* @return {number} The number of values in the optional_uint32 field.199*/200proto2.TestAllTypes.prototype.optionalUint32Count = function() {201return this.count$Values(3);202};203204205/**206* Clears the values in the optional_uint32 field.207*/208proto2.TestAllTypes.prototype.clearOptionalUint32 = function() {209this.clear$Field(3);210};211212213/**214* Gets the value of the optional_uint64 field.215* @return {?string} The value.216*/217proto2.TestAllTypes.prototype.getOptionalUint64 = function() {218return /** @type {?string} */ (this.get$Value(4));219};220221222/**223* Gets the value of the optional_uint64 field or the default value if not set.224* @return {string} The value.225*/226proto2.TestAllTypes.prototype.getOptionalUint64OrDefault = function() {227return /** @type {string} */ (this.get$ValueOrDefault(4));228};229230231/**232* Sets the value of the optional_uint64 field.233* @param {string} value The value.234*/235proto2.TestAllTypes.prototype.setOptionalUint64 = function(value) {236this.set$Value(4, value);237};238239240/**241* @return {boolean} Whether the optional_uint64 field has a value.242*/243proto2.TestAllTypes.prototype.hasOptionalUint64 = function() {244return this.has$Value(4);245};246247248/**249* @return {number} The number of values in the optional_uint64 field.250*/251proto2.TestAllTypes.prototype.optionalUint64Count = function() {252return this.count$Values(4);253};254255256/**257* Clears the values in the optional_uint64 field.258*/259proto2.TestAllTypes.prototype.clearOptionalUint64 = function() {260this.clear$Field(4);261};262263264/**265* Gets the value of the optional_sint32 field.266* @return {?number} The value.267*/268proto2.TestAllTypes.prototype.getOptionalSint32 = function() {269return /** @type {?number} */ (this.get$Value(5));270};271272273/**274* Gets the value of the optional_sint32 field or the default value if not set.275* @return {number} The value.276*/277proto2.TestAllTypes.prototype.getOptionalSint32OrDefault = function() {278return /** @type {number} */ (this.get$ValueOrDefault(5));279};280281282/**283* Sets the value of the optional_sint32 field.284* @param {number} value The value.285*/286proto2.TestAllTypes.prototype.setOptionalSint32 = function(value) {287this.set$Value(5, value);288};289290291/**292* @return {boolean} Whether the optional_sint32 field has a value.293*/294proto2.TestAllTypes.prototype.hasOptionalSint32 = function() {295return this.has$Value(5);296};297298299/**300* @return {number} The number of values in the optional_sint32 field.301*/302proto2.TestAllTypes.prototype.optionalSint32Count = function() {303return this.count$Values(5);304};305306307/**308* Clears the values in the optional_sint32 field.309*/310proto2.TestAllTypes.prototype.clearOptionalSint32 = function() {311this.clear$Field(5);312};313314315/**316* Gets the value of the optional_sint64 field.317* @return {?string} The value.318*/319proto2.TestAllTypes.prototype.getOptionalSint64 = function() {320return /** @type {?string} */ (this.get$Value(6));321};322323324/**325* Gets the value of the optional_sint64 field or the default value if not set.326* @return {string} The value.327*/328proto2.TestAllTypes.prototype.getOptionalSint64OrDefault = function() {329return /** @type {string} */ (this.get$ValueOrDefault(6));330};331332333/**334* Sets the value of the optional_sint64 field.335* @param {string} value The value.336*/337proto2.TestAllTypes.prototype.setOptionalSint64 = function(value) {338this.set$Value(6, value);339};340341342/**343* @return {boolean} Whether the optional_sint64 field has a value.344*/345proto2.TestAllTypes.prototype.hasOptionalSint64 = function() {346return this.has$Value(6);347};348349350/**351* @return {number} The number of values in the optional_sint64 field.352*/353proto2.TestAllTypes.prototype.optionalSint64Count = function() {354return this.count$Values(6);355};356357358/**359* Clears the values in the optional_sint64 field.360*/361proto2.TestAllTypes.prototype.clearOptionalSint64 = function() {362this.clear$Field(6);363};364365366/**367* Gets the value of the optional_fixed32 field.368* @return {?number} The value.369*/370proto2.TestAllTypes.prototype.getOptionalFixed32 = function() {371return /** @type {?number} */ (this.get$Value(7));372};373374375/**376* Gets the value of the optional_fixed32 field or the default value if not set.377* @return {number} The value.378*/379proto2.TestAllTypes.prototype.getOptionalFixed32OrDefault = function() {380return /** @type {number} */ (this.get$ValueOrDefault(7));381};382383384/**385* Sets the value of the optional_fixed32 field.386* @param {number} value The value.387*/388proto2.TestAllTypes.prototype.setOptionalFixed32 = function(value) {389this.set$Value(7, value);390};391392393/**394* @return {boolean} Whether the optional_fixed32 field has a value.395*/396proto2.TestAllTypes.prototype.hasOptionalFixed32 = function() {397return this.has$Value(7);398};399400401/**402* @return {number} The number of values in the optional_fixed32 field.403*/404proto2.TestAllTypes.prototype.optionalFixed32Count = function() {405return this.count$Values(7);406};407408409/**410* Clears the values in the optional_fixed32 field.411*/412proto2.TestAllTypes.prototype.clearOptionalFixed32 = function() {413this.clear$Field(7);414};415416417/**418* Gets the value of the optional_fixed64 field.419* @return {?string} The value.420*/421proto2.TestAllTypes.prototype.getOptionalFixed64 = function() {422return /** @type {?string} */ (this.get$Value(8));423};424425426/**427* Gets the value of the optional_fixed64 field or the default value if not set.428* @return {string} The value.429*/430proto2.TestAllTypes.prototype.getOptionalFixed64OrDefault = function() {431return /** @type {string} */ (this.get$ValueOrDefault(8));432};433434435/**436* Sets the value of the optional_fixed64 field.437* @param {string} value The value.438*/439proto2.TestAllTypes.prototype.setOptionalFixed64 = function(value) {440this.set$Value(8, value);441};442443444/**445* @return {boolean} Whether the optional_fixed64 field has a value.446*/447proto2.TestAllTypes.prototype.hasOptionalFixed64 = function() {448return this.has$Value(8);449};450451452/**453* @return {number} The number of values in the optional_fixed64 field.454*/455proto2.TestAllTypes.prototype.optionalFixed64Count = function() {456return this.count$Values(8);457};458459460/**461* Clears the values in the optional_fixed64 field.462*/463proto2.TestAllTypes.prototype.clearOptionalFixed64 = function() {464this.clear$Field(8);465};466467468/**469* Gets the value of the optional_sfixed32 field.470* @return {?number} The value.471*/472proto2.TestAllTypes.prototype.getOptionalSfixed32 = function() {473return /** @type {?number} */ (this.get$Value(9));474};475476477/**478* Gets the value of the optional_sfixed32 field or the default value if not set.479* @return {number} The value.480*/481proto2.TestAllTypes.prototype.getOptionalSfixed32OrDefault = function() {482return /** @type {number} */ (this.get$ValueOrDefault(9));483};484485486/**487* Sets the value of the optional_sfixed32 field.488* @param {number} value The value.489*/490proto2.TestAllTypes.prototype.setOptionalSfixed32 = function(value) {491this.set$Value(9, value);492};493494495/**496* @return {boolean} Whether the optional_sfixed32 field has a value.497*/498proto2.TestAllTypes.prototype.hasOptionalSfixed32 = function() {499return this.has$Value(9);500};501502503/**504* @return {number} The number of values in the optional_sfixed32 field.505*/506proto2.TestAllTypes.prototype.optionalSfixed32Count = function() {507return this.count$Values(9);508};509510511/**512* Clears the values in the optional_sfixed32 field.513*/514proto2.TestAllTypes.prototype.clearOptionalSfixed32 = function() {515this.clear$Field(9);516};517518519/**520* Gets the value of the optional_sfixed64 field.521* @return {?string} The value.522*/523proto2.TestAllTypes.prototype.getOptionalSfixed64 = function() {524return /** @type {?string} */ (this.get$Value(10));525};526527528/**529* Gets the value of the optional_sfixed64 field or the default value if not set.530* @return {string} The value.531*/532proto2.TestAllTypes.prototype.getOptionalSfixed64OrDefault = function() {533return /** @type {string} */ (this.get$ValueOrDefault(10));534};535536537/**538* Sets the value of the optional_sfixed64 field.539* @param {string} value The value.540*/541proto2.TestAllTypes.prototype.setOptionalSfixed64 = function(value) {542this.set$Value(10, value);543};544545546/**547* @return {boolean} Whether the optional_sfixed64 field has a value.548*/549proto2.TestAllTypes.prototype.hasOptionalSfixed64 = function() {550return this.has$Value(10);551};552553554/**555* @return {number} The number of values in the optional_sfixed64 field.556*/557proto2.TestAllTypes.prototype.optionalSfixed64Count = function() {558return this.count$Values(10);559};560561562/**563* Clears the values in the optional_sfixed64 field.564*/565proto2.TestAllTypes.prototype.clearOptionalSfixed64 = function() {566this.clear$Field(10);567};568569570/**571* Gets the value of the optional_float field.572* @return {?number} The value.573*/574proto2.TestAllTypes.prototype.getOptionalFloat = function() {575return /** @type {?number} */ (this.get$Value(11));576};577578579/**580* Gets the value of the optional_float field or the default value if not set.581* @return {number} The value.582*/583proto2.TestAllTypes.prototype.getOptionalFloatOrDefault = function() {584return /** @type {number} */ (this.get$ValueOrDefault(11));585};586587588/**589* Sets the value of the optional_float field.590* @param {number} value The value.591*/592proto2.TestAllTypes.prototype.setOptionalFloat = function(value) {593this.set$Value(11, value);594};595596597/**598* @return {boolean} Whether the optional_float field has a value.599*/600proto2.TestAllTypes.prototype.hasOptionalFloat = function() {601return this.has$Value(11);602};603604605/**606* @return {number} The number of values in the optional_float field.607*/608proto2.TestAllTypes.prototype.optionalFloatCount = function() {609return this.count$Values(11);610};611612613/**614* Clears the values in the optional_float field.615*/616proto2.TestAllTypes.prototype.clearOptionalFloat = function() {617this.clear$Field(11);618};619620621/**622* Gets the value of the optional_double field.623* @return {?number} The value.624*/625proto2.TestAllTypes.prototype.getOptionalDouble = function() {626return /** @type {?number} */ (this.get$Value(12));627};628629630/**631* Gets the value of the optional_double field or the default value if not set.632* @return {number} The value.633*/634proto2.TestAllTypes.prototype.getOptionalDoubleOrDefault = function() {635return /** @type {number} */ (this.get$ValueOrDefault(12));636};637638639/**640* Sets the value of the optional_double field.641* @param {number} value The value.642*/643proto2.TestAllTypes.prototype.setOptionalDouble = function(value) {644this.set$Value(12, value);645};646647648/**649* @return {boolean} Whether the optional_double field has a value.650*/651proto2.TestAllTypes.prototype.hasOptionalDouble = function() {652return this.has$Value(12);653};654655656/**657* @return {number} The number of values in the optional_double field.658*/659proto2.TestAllTypes.prototype.optionalDoubleCount = function() {660return this.count$Values(12);661};662663664/**665* Clears the values in the optional_double field.666*/667proto2.TestAllTypes.prototype.clearOptionalDouble = function() {668this.clear$Field(12);669};670671672/**673* Gets the value of the optional_bool field.674* @return {?boolean} The value.675*/676proto2.TestAllTypes.prototype.getOptionalBool = function() {677return /** @type {?boolean} */ (this.get$Value(13));678};679680681/**682* Gets the value of the optional_bool field or the default value if not set.683* @return {boolean} The value.684*/685proto2.TestAllTypes.prototype.getOptionalBoolOrDefault = function() {686return /** @type {boolean} */ (this.get$ValueOrDefault(13));687};688689690/**691* Sets the value of the optional_bool field.692* @param {boolean} value The value.693*/694proto2.TestAllTypes.prototype.setOptionalBool = function(value) {695this.set$Value(13, value);696};697698699/**700* @return {boolean} Whether the optional_bool field has a value.701*/702proto2.TestAllTypes.prototype.hasOptionalBool = function() {703return this.has$Value(13);704};705706707/**708* @return {number} The number of values in the optional_bool field.709*/710proto2.TestAllTypes.prototype.optionalBoolCount = function() {711return this.count$Values(13);712};713714715/**716* Clears the values in the optional_bool field.717*/718proto2.TestAllTypes.prototype.clearOptionalBool = function() {719this.clear$Field(13);720};721722723/**724* Gets the value of the optional_string field.725* @return {?string} The value.726*/727proto2.TestAllTypes.prototype.getOptionalString = function() {728return /** @type {?string} */ (this.get$Value(14));729};730731732/**733* Gets the value of the optional_string field or the default value if not set.734* @return {string} The value.735*/736proto2.TestAllTypes.prototype.getOptionalStringOrDefault = function() {737return /** @type {string} */ (this.get$ValueOrDefault(14));738};739740741/**742* Sets the value of the optional_string field.743* @param {string} value The value.744*/745proto2.TestAllTypes.prototype.setOptionalString = function(value) {746this.set$Value(14, value);747};748749750/**751* @return {boolean} Whether the optional_string field has a value.752*/753proto2.TestAllTypes.prototype.hasOptionalString = function() {754return this.has$Value(14);755};756757758/**759* @return {number} The number of values in the optional_string field.760*/761proto2.TestAllTypes.prototype.optionalStringCount = function() {762return this.count$Values(14);763};764765766/**767* Clears the values in the optional_string field.768*/769proto2.TestAllTypes.prototype.clearOptionalString = function() {770this.clear$Field(14);771};772773774/**775* Gets the value of the optional_bytes field.776* @return {?string} The value.777*/778proto2.TestAllTypes.prototype.getOptionalBytes = function() {779return /** @type {?string} */ (this.get$Value(15));780};781782783/**784* Gets the value of the optional_bytes field or the default value if not set.785* @return {string} The value.786*/787proto2.TestAllTypes.prototype.getOptionalBytesOrDefault = function() {788return /** @type {string} */ (this.get$ValueOrDefault(15));789};790791792/**793* Sets the value of the optional_bytes field.794* @param {string} value The value.795*/796proto2.TestAllTypes.prototype.setOptionalBytes = function(value) {797this.set$Value(15, value);798};799800801/**802* @return {boolean} Whether the optional_bytes field has a value.803*/804proto2.TestAllTypes.prototype.hasOptionalBytes = function() {805return this.has$Value(15);806};807808809/**810* @return {number} The number of values in the optional_bytes field.811*/812proto2.TestAllTypes.prototype.optionalBytesCount = function() {813return this.count$Values(15);814};815816817/**818* Clears the values in the optional_bytes field.819*/820proto2.TestAllTypes.prototype.clearOptionalBytes = function() {821this.clear$Field(15);822};823824825/**826* Gets the value of the optionalgroup field.827* @return {?proto2.TestAllTypes.OptionalGroup} The value.828*/829proto2.TestAllTypes.prototype.getOptionalgroup = function() {830return /** @type {?proto2.TestAllTypes.OptionalGroup} */ (this.get$Value(16));831};832833834/**835* Gets the value of the optionalgroup field or the default value if not set.836* @return {!proto2.TestAllTypes.OptionalGroup} The value.837*/838proto2.TestAllTypes.prototype.getOptionalgroupOrDefault = function() {839return /** @type {!proto2.TestAllTypes.OptionalGroup} */ (this.get$ValueOrDefault(16));840};841842843/**844* Sets the value of the optionalgroup field.845* @param {!proto2.TestAllTypes.OptionalGroup} value The value.846*/847proto2.TestAllTypes.prototype.setOptionalgroup = function(value) {848this.set$Value(16, value);849};850851852/**853* @return {boolean} Whether the optionalgroup field has a value.854*/855proto2.TestAllTypes.prototype.hasOptionalgroup = function() {856return this.has$Value(16);857};858859860/**861* @return {number} The number of values in the optionalgroup field.862*/863proto2.TestAllTypes.prototype.optionalgroupCount = function() {864return this.count$Values(16);865};866867868/**869* Clears the values in the optionalgroup field.870*/871proto2.TestAllTypes.prototype.clearOptionalgroup = function() {872this.clear$Field(16);873};874875876/**877* Gets the value of the optional_nested_message field.878* @return {?proto2.TestAllTypes.NestedMessage} The value.879*/880proto2.TestAllTypes.prototype.getOptionalNestedMessage = function() {881return /** @type {?proto2.TestAllTypes.NestedMessage} */ (this.get$Value(18));882};883884885/**886* Gets the value of the optional_nested_message field or the default value if not set.887* @return {!proto2.TestAllTypes.NestedMessage} The value.888*/889proto2.TestAllTypes.prototype.getOptionalNestedMessageOrDefault = function() {890return /** @type {!proto2.TestAllTypes.NestedMessage} */ (this.get$ValueOrDefault(18));891};892893894/**895* Sets the value of the optional_nested_message field.896* @param {!proto2.TestAllTypes.NestedMessage} value The value.897*/898proto2.TestAllTypes.prototype.setOptionalNestedMessage = function(value) {899this.set$Value(18, value);900};901902903/**904* @return {boolean} Whether the optional_nested_message field has a value.905*/906proto2.TestAllTypes.prototype.hasOptionalNestedMessage = function() {907return this.has$Value(18);908};909910911/**912* @return {number} The number of values in the optional_nested_message field.913*/914proto2.TestAllTypes.prototype.optionalNestedMessageCount = function() {915return this.count$Values(18);916};917918919/**920* Clears the values in the optional_nested_message field.921*/922proto2.TestAllTypes.prototype.clearOptionalNestedMessage = function() {923this.clear$Field(18);924};925926927/**928* Gets the value of the optional_nested_enum field.929* @return {?proto2.TestAllTypes.NestedEnum} The value.930*/931proto2.TestAllTypes.prototype.getOptionalNestedEnum = function() {932return /** @type {?proto2.TestAllTypes.NestedEnum} */ (this.get$Value(21));933};934935936/**937* Gets the value of the optional_nested_enum field or the default value if not set.938* @return {!proto2.TestAllTypes.NestedEnum} The value.939*/940proto2.TestAllTypes.prototype.getOptionalNestedEnumOrDefault = function() {941return /** @type {!proto2.TestAllTypes.NestedEnum} */ (this.get$ValueOrDefault(21));942};943944945/**946* Sets the value of the optional_nested_enum field.947* @param {!proto2.TestAllTypes.NestedEnum} value The value.948*/949proto2.TestAllTypes.prototype.setOptionalNestedEnum = function(value) {950this.set$Value(21, value);951};952953954/**955* @return {boolean} Whether the optional_nested_enum field has a value.956*/957proto2.TestAllTypes.prototype.hasOptionalNestedEnum = function() {958return this.has$Value(21);959};960961962/**963* @return {number} The number of values in the optional_nested_enum field.964*/965proto2.TestAllTypes.prototype.optionalNestedEnumCount = function() {966return this.count$Values(21);967};968969970/**971* Clears the values in the optional_nested_enum field.972*/973proto2.TestAllTypes.prototype.clearOptionalNestedEnum = function() {974this.clear$Field(21);975};976977978/**979* Gets the value of the optional_int64_number field.980* @return {?number} The value.981*/982proto2.TestAllTypes.prototype.getOptionalInt64Number = function() {983return /** @type {?number} */ (this.get$Value(50));984};985986987/**988* Gets the value of the optional_int64_number field or the default value if not set.989* @return {number} The value.990*/991proto2.TestAllTypes.prototype.getOptionalInt64NumberOrDefault = function() {992return /** @type {number} */ (this.get$ValueOrDefault(50));993};994995996/**997* Sets the value of the optional_int64_number field.998* @param {number} value The value.999*/1000proto2.TestAllTypes.prototype.setOptionalInt64Number = function(value) {1001this.set$Value(50, value);1002};100310041005/**1006* @return {boolean} Whether the optional_int64_number field has a value.1007*/1008proto2.TestAllTypes.prototype.hasOptionalInt64Number = function() {1009return this.has$Value(50);1010};101110121013/**1014* @return {number} The number of values in the optional_int64_number field.1015*/1016proto2.TestAllTypes.prototype.optionalInt64NumberCount = function() {1017return this.count$Values(50);1018};101910201021/**1022* Clears the values in the optional_int64_number field.1023*/1024proto2.TestAllTypes.prototype.clearOptionalInt64Number = function() {1025this.clear$Field(50);1026};102710281029/**1030* Gets the value of the optional_int64_string field.1031* @return {?string} The value.1032*/1033proto2.TestAllTypes.prototype.getOptionalInt64String = function() {1034return /** @type {?string} */ (this.get$Value(51));1035};103610371038/**1039* Gets the value of the optional_int64_string field or the default value if not set.1040* @return {string} The value.1041*/1042proto2.TestAllTypes.prototype.getOptionalInt64StringOrDefault = function() {1043return /** @type {string} */ (this.get$ValueOrDefault(51));1044};104510461047/**1048* Sets the value of the optional_int64_string field.1049* @param {string} value The value.1050*/1051proto2.TestAllTypes.prototype.setOptionalInt64String = function(value) {1052this.set$Value(51, value);1053};105410551056/**1057* @return {boolean} Whether the optional_int64_string field has a value.1058*/1059proto2.TestAllTypes.prototype.hasOptionalInt64String = function() {1060return this.has$Value(51);1061};106210631064/**1065* @return {number} The number of values in the optional_int64_string field.1066*/1067proto2.TestAllTypes.prototype.optionalInt64StringCount = function() {1068return this.count$Values(51);1069};107010711072/**1073* Clears the values in the optional_int64_string field.1074*/1075proto2.TestAllTypes.prototype.clearOptionalInt64String = function() {1076this.clear$Field(51);1077};107810791080/**1081* Gets the value of the repeated_int32 field at the index given.1082* @param {number} index The index to lookup.1083* @return {?number} The value.1084*/1085proto2.TestAllTypes.prototype.getRepeatedInt32 = function(index) {1086return /** @type {?number} */ (this.get$Value(31, index));1087};108810891090/**1091* Gets the value of the repeated_int32 field at the index given or the default value if not set.1092* @param {number} index The index to lookup.1093* @return {number} The value.1094*/1095proto2.TestAllTypes.prototype.getRepeatedInt32OrDefault = function(index) {1096return /** @type {number} */ (this.get$ValueOrDefault(31, index));1097};109810991100/**1101* Adds a value to the repeated_int32 field.1102* @param {number} value The value to add.1103*/1104proto2.TestAllTypes.prototype.addRepeatedInt32 = function(value) {1105this.add$Value(31, value);1106};110711081109/**1110* Returns the array of values in the repeated_int32 field.1111* @return {!Array<number>} The values in the field.1112*/1113proto2.TestAllTypes.prototype.repeatedInt32Array = function() {1114return /** @type {!Array<number>} */ (this.array$Values(31));1115};111611171118/**1119* @return {boolean} Whether the repeated_int32 field has a value.1120*/1121proto2.TestAllTypes.prototype.hasRepeatedInt32 = function() {1122return this.has$Value(31);1123};112411251126/**1127* @return {number} The number of values in the repeated_int32 field.1128*/1129proto2.TestAllTypes.prototype.repeatedInt32Count = function() {1130return this.count$Values(31);1131};113211331134/**1135* Clears the values in the repeated_int32 field.1136*/1137proto2.TestAllTypes.prototype.clearRepeatedInt32 = function() {1138this.clear$Field(31);1139};114011411142/**1143* Gets the value of the repeated_int64 field at the index given.1144* @param {number} index The index to lookup.1145* @return {?string} The value.1146*/1147proto2.TestAllTypes.prototype.getRepeatedInt64 = function(index) {1148return /** @type {?string} */ (this.get$Value(32, index));1149};115011511152/**1153* Gets the value of the repeated_int64 field at the index given or the default value if not set.1154* @param {number} index The index to lookup.1155* @return {string} The value.1156*/1157proto2.TestAllTypes.prototype.getRepeatedInt64OrDefault = function(index) {1158return /** @type {string} */ (this.get$ValueOrDefault(32, index));1159};116011611162/**1163* Adds a value to the repeated_int64 field.1164* @param {string} value The value to add.1165*/1166proto2.TestAllTypes.prototype.addRepeatedInt64 = function(value) {1167this.add$Value(32, value);1168};116911701171/**1172* Returns the array of values in the repeated_int64 field.1173* @return {!Array<string>} The values in the field.1174*/1175proto2.TestAllTypes.prototype.repeatedInt64Array = function() {1176return /** @type {!Array<string>} */ (this.array$Values(32));1177};117811791180/**1181* @return {boolean} Whether the repeated_int64 field has a value.1182*/1183proto2.TestAllTypes.prototype.hasRepeatedInt64 = function() {1184return this.has$Value(32);1185};118611871188/**1189* @return {number} The number of values in the repeated_int64 field.1190*/1191proto2.TestAllTypes.prototype.repeatedInt64Count = function() {1192return this.count$Values(32);1193};119411951196/**1197* Clears the values in the repeated_int64 field.1198*/1199proto2.TestAllTypes.prototype.clearRepeatedInt64 = function() {1200this.clear$Field(32);1201};120212031204/**1205* Gets the value of the repeated_uint32 field at the index given.1206* @param {number} index The index to lookup.1207* @return {?number} The value.1208*/1209proto2.TestAllTypes.prototype.getRepeatedUint32 = function(index) {1210return /** @type {?number} */ (this.get$Value(33, index));1211};121212131214/**1215* Gets the value of the repeated_uint32 field at the index given or the default value if not set.1216* @param {number} index The index to lookup.1217* @return {number} The value.1218*/1219proto2.TestAllTypes.prototype.getRepeatedUint32OrDefault = function(index) {1220return /** @type {number} */ (this.get$ValueOrDefault(33, index));1221};122212231224/**1225* Adds a value to the repeated_uint32 field.1226* @param {number} value The value to add.1227*/1228proto2.TestAllTypes.prototype.addRepeatedUint32 = function(value) {1229this.add$Value(33, value);1230};123112321233/**1234* Returns the array of values in the repeated_uint32 field.1235* @return {!Array<number>} The values in the field.1236*/1237proto2.TestAllTypes.prototype.repeatedUint32Array = function() {1238return /** @type {!Array<number>} */ (this.array$Values(33));1239};124012411242/**1243* @return {boolean} Whether the repeated_uint32 field has a value.1244*/1245proto2.TestAllTypes.prototype.hasRepeatedUint32 = function() {1246return this.has$Value(33);1247};124812491250/**1251* @return {number} The number of values in the repeated_uint32 field.1252*/1253proto2.TestAllTypes.prototype.repeatedUint32Count = function() {1254return this.count$Values(33);1255};125612571258/**1259* Clears the values in the repeated_uint32 field.1260*/1261proto2.TestAllTypes.prototype.clearRepeatedUint32 = function() {1262this.clear$Field(33);1263};126412651266/**1267* Gets the value of the repeated_uint64 field at the index given.1268* @param {number} index The index to lookup.1269* @return {?string} The value.1270*/1271proto2.TestAllTypes.prototype.getRepeatedUint64 = function(index) {1272return /** @type {?string} */ (this.get$Value(34, index));1273};127412751276/**1277* Gets the value of the repeated_uint64 field at the index given or the default value if not set.1278* @param {number} index The index to lookup.1279* @return {string} The value.1280*/1281proto2.TestAllTypes.prototype.getRepeatedUint64OrDefault = function(index) {1282return /** @type {string} */ (this.get$ValueOrDefault(34, index));1283};128412851286/**1287* Adds a value to the repeated_uint64 field.1288* @param {string} value The value to add.1289*/1290proto2.TestAllTypes.prototype.addRepeatedUint64 = function(value) {1291this.add$Value(34, value);1292};129312941295/**1296* Returns the array of values in the repeated_uint64 field.1297* @return {!Array<string>} The values in the field.1298*/1299proto2.TestAllTypes.prototype.repeatedUint64Array = function() {1300return /** @type {!Array<string>} */ (this.array$Values(34));1301};130213031304/**1305* @return {boolean} Whether the repeated_uint64 field has a value.1306*/1307proto2.TestAllTypes.prototype.hasRepeatedUint64 = function() {1308return this.has$Value(34);1309};131013111312/**1313* @return {number} The number of values in the repeated_uint64 field.1314*/1315proto2.TestAllTypes.prototype.repeatedUint64Count = function() {1316return this.count$Values(34);1317};131813191320/**1321* Clears the values in the repeated_uint64 field.1322*/1323proto2.TestAllTypes.prototype.clearRepeatedUint64 = function() {1324this.clear$Field(34);1325};132613271328/**1329* Gets the value of the repeated_sint32 field at the index given.1330* @param {number} index The index to lookup.1331* @return {?number} The value.1332*/1333proto2.TestAllTypes.prototype.getRepeatedSint32 = function(index) {1334return /** @type {?number} */ (this.get$Value(35, index));1335};133613371338/**1339* Gets the value of the repeated_sint32 field at the index given or the default value if not set.1340* @param {number} index The index to lookup.1341* @return {number} The value.1342*/1343proto2.TestAllTypes.prototype.getRepeatedSint32OrDefault = function(index) {1344return /** @type {number} */ (this.get$ValueOrDefault(35, index));1345};134613471348/**1349* Adds a value to the repeated_sint32 field.1350* @param {number} value The value to add.1351*/1352proto2.TestAllTypes.prototype.addRepeatedSint32 = function(value) {1353this.add$Value(35, value);1354};135513561357/**1358* Returns the array of values in the repeated_sint32 field.1359* @return {!Array<number>} The values in the field.1360*/1361proto2.TestAllTypes.prototype.repeatedSint32Array = function() {1362return /** @type {!Array<number>} */ (this.array$Values(35));1363};136413651366/**1367* @return {boolean} Whether the repeated_sint32 field has a value.1368*/1369proto2.TestAllTypes.prototype.hasRepeatedSint32 = function() {1370return this.has$Value(35);1371};137213731374/**1375* @return {number} The number of values in the repeated_sint32 field.1376*/1377proto2.TestAllTypes.prototype.repeatedSint32Count = function() {1378return this.count$Values(35);1379};138013811382/**1383* Clears the values in the repeated_sint32 field.1384*/1385proto2.TestAllTypes.prototype.clearRepeatedSint32 = function() {1386this.clear$Field(35);1387};138813891390/**1391* Gets the value of the repeated_sint64 field at the index given.1392* @param {number} index The index to lookup.1393* @return {?string} The value.1394*/1395proto2.TestAllTypes.prototype.getRepeatedSint64 = function(index) {1396return /** @type {?string} */ (this.get$Value(36, index));1397};139813991400/**1401* Gets the value of the repeated_sint64 field at the index given or the default value if not set.1402* @param {number} index The index to lookup.1403* @return {string} The value.1404*/1405proto2.TestAllTypes.prototype.getRepeatedSint64OrDefault = function(index) {1406return /** @type {string} */ (this.get$ValueOrDefault(36, index));1407};140814091410/**1411* Adds a value to the repeated_sint64 field.1412* @param {string} value The value to add.1413*/1414proto2.TestAllTypes.prototype.addRepeatedSint64 = function(value) {1415this.add$Value(36, value);1416};141714181419/**1420* Returns the array of values in the repeated_sint64 field.1421* @return {!Array<string>} The values in the field.1422*/1423proto2.TestAllTypes.prototype.repeatedSint64Array = function() {1424return /** @type {!Array<string>} */ (this.array$Values(36));1425};142614271428/**1429* @return {boolean} Whether the repeated_sint64 field has a value.1430*/1431proto2.TestAllTypes.prototype.hasRepeatedSint64 = function() {1432return this.has$Value(36);1433};143414351436/**1437* @return {number} The number of values in the repeated_sint64 field.1438*/1439proto2.TestAllTypes.prototype.repeatedSint64Count = function() {1440return this.count$Values(36);1441};144214431444/**1445* Clears the values in the repeated_sint64 field.1446*/1447proto2.TestAllTypes.prototype.clearRepeatedSint64 = function() {1448this.clear$Field(36);1449};145014511452/**1453* Gets the value of the repeated_fixed32 field at the index given.1454* @param {number} index The index to lookup.1455* @return {?number} The value.1456*/1457proto2.TestAllTypes.prototype.getRepeatedFixed32 = function(index) {1458return /** @type {?number} */ (this.get$Value(37, index));1459};146014611462/**1463* Gets the value of the repeated_fixed32 field at the index given or the default value if not set.1464* @param {number} index The index to lookup.1465* @return {number} The value.1466*/1467proto2.TestAllTypes.prototype.getRepeatedFixed32OrDefault = function(index) {1468return /** @type {number} */ (this.get$ValueOrDefault(37, index));1469};147014711472/**1473* Adds a value to the repeated_fixed32 field.1474* @param {number} value The value to add.1475*/1476proto2.TestAllTypes.prototype.addRepeatedFixed32 = function(value) {1477this.add$Value(37, value);1478};147914801481/**1482* Returns the array of values in the repeated_fixed32 field.1483* @return {!Array<number>} The values in the field.1484*/1485proto2.TestAllTypes.prototype.repeatedFixed32Array = function() {1486return /** @type {!Array<number>} */ (this.array$Values(37));1487};148814891490/**1491* @return {boolean} Whether the repeated_fixed32 field has a value.1492*/1493proto2.TestAllTypes.prototype.hasRepeatedFixed32 = function() {1494return this.has$Value(37);1495};149614971498/**1499* @return {number} The number of values in the repeated_fixed32 field.1500*/1501proto2.TestAllTypes.prototype.repeatedFixed32Count = function() {1502return this.count$Values(37);1503};150415051506/**1507* Clears the values in the repeated_fixed32 field.1508*/1509proto2.TestAllTypes.prototype.clearRepeatedFixed32 = function() {1510this.clear$Field(37);1511};151215131514/**1515* Gets the value of the repeated_fixed64 field at the index given.1516* @param {number} index The index to lookup.1517* @return {?string} The value.1518*/1519proto2.TestAllTypes.prototype.getRepeatedFixed64 = function(index) {1520return /** @type {?string} */ (this.get$Value(38, index));1521};152215231524/**1525* Gets the value of the repeated_fixed64 field at the index given or the default value if not set.1526* @param {number} index The index to lookup.1527* @return {string} The value.1528*/1529proto2.TestAllTypes.prototype.getRepeatedFixed64OrDefault = function(index) {1530return /** @type {string} */ (this.get$ValueOrDefault(38, index));1531};153215331534/**1535* Adds a value to the repeated_fixed64 field.1536* @param {string} value The value to add.1537*/1538proto2.TestAllTypes.prototype.addRepeatedFixed64 = function(value) {1539this.add$Value(38, value);1540};154115421543/**1544* Returns the array of values in the repeated_fixed64 field.1545* @return {!Array<string>} The values in the field.1546*/1547proto2.TestAllTypes.prototype.repeatedFixed64Array = function() {1548return /** @type {!Array<string>} */ (this.array$Values(38));1549};155015511552/**1553* @return {boolean} Whether the repeated_fixed64 field has a value.1554*/1555proto2.TestAllTypes.prototype.hasRepeatedFixed64 = function() {1556return this.has$Value(38);1557};155815591560/**1561* @return {number} The number of values in the repeated_fixed64 field.1562*/1563proto2.TestAllTypes.prototype.repeatedFixed64Count = function() {1564return this.count$Values(38);1565};156615671568/**1569* Clears the values in the repeated_fixed64 field.1570*/1571proto2.TestAllTypes.prototype.clearRepeatedFixed64 = function() {1572this.clear$Field(38);1573};157415751576/**1577* Gets the value of the repeated_sfixed32 field at the index given.1578* @param {number} index The index to lookup.1579* @return {?number} The value.1580*/1581proto2.TestAllTypes.prototype.getRepeatedSfixed32 = function(index) {1582return /** @type {?number} */ (this.get$Value(39, index));1583};158415851586/**1587* Gets the value of the repeated_sfixed32 field at the index given or the default value if not set.1588* @param {number} index The index to lookup.1589* @return {number} The value.1590*/1591proto2.TestAllTypes.prototype.getRepeatedSfixed32OrDefault = function(index) {1592return /** @type {number} */ (this.get$ValueOrDefault(39, index));1593};159415951596/**1597* Adds a value to the repeated_sfixed32 field.1598* @param {number} value The value to add.1599*/1600proto2.TestAllTypes.prototype.addRepeatedSfixed32 = function(value) {1601this.add$Value(39, value);1602};160316041605/**1606* Returns the array of values in the repeated_sfixed32 field.1607* @return {!Array<number>} The values in the field.1608*/1609proto2.TestAllTypes.prototype.repeatedSfixed32Array = function() {1610return /** @type {!Array<number>} */ (this.array$Values(39));1611};161216131614/**1615* @return {boolean} Whether the repeated_sfixed32 field has a value.1616*/1617proto2.TestAllTypes.prototype.hasRepeatedSfixed32 = function() {1618return this.has$Value(39);1619};162016211622/**1623* @return {number} The number of values in the repeated_sfixed32 field.1624*/1625proto2.TestAllTypes.prototype.repeatedSfixed32Count = function() {1626return this.count$Values(39);1627};162816291630/**1631* Clears the values in the repeated_sfixed32 field.1632*/1633proto2.TestAllTypes.prototype.clearRepeatedSfixed32 = function() {1634this.clear$Field(39);1635};163616371638/**1639* Gets the value of the repeated_sfixed64 field at the index given.1640* @param {number} index The index to lookup.1641* @return {?string} The value.1642*/1643proto2.TestAllTypes.prototype.getRepeatedSfixed64 = function(index) {1644return /** @type {?string} */ (this.get$Value(40, index));1645};164616471648/**1649* Gets the value of the repeated_sfixed64 field at the index given or the default value if not set.1650* @param {number} index The index to lookup.1651* @return {string} The value.1652*/1653proto2.TestAllTypes.prototype.getRepeatedSfixed64OrDefault = function(index) {1654return /** @type {string} */ (this.get$ValueOrDefault(40, index));1655};165616571658/**1659* Adds a value to the repeated_sfixed64 field.1660* @param {string} value The value to add.1661*/1662proto2.TestAllTypes.prototype.addRepeatedSfixed64 = function(value) {1663this.add$Value(40, value);1664};166516661667/**1668* Returns the array of values in the repeated_sfixed64 field.1669* @return {!Array<string>} The values in the field.1670*/1671proto2.TestAllTypes.prototype.repeatedSfixed64Array = function() {1672return /** @type {!Array<string>} */ (this.array$Values(40));1673};167416751676/**1677* @return {boolean} Whether the repeated_sfixed64 field has a value.1678*/1679proto2.TestAllTypes.prototype.hasRepeatedSfixed64 = function() {1680return this.has$Value(40);1681};168216831684/**1685* @return {number} The number of values in the repeated_sfixed64 field.1686*/1687proto2.TestAllTypes.prototype.repeatedSfixed64Count = function() {1688return this.count$Values(40);1689};169016911692/**1693* Clears the values in the repeated_sfixed64 field.1694*/1695proto2.TestAllTypes.prototype.clearRepeatedSfixed64 = function() {1696this.clear$Field(40);1697};169816991700/**1701* Gets the value of the repeated_float field at the index given.1702* @param {number} index The index to lookup.1703* @return {?number} The value.1704*/1705proto2.TestAllTypes.prototype.getRepeatedFloat = function(index) {1706return /** @type {?number} */ (this.get$Value(41, index));1707};170817091710/**1711* Gets the value of the repeated_float field at the index given or the default value if not set.1712* @param {number} index The index to lookup.1713* @return {number} The value.1714*/1715proto2.TestAllTypes.prototype.getRepeatedFloatOrDefault = function(index) {1716return /** @type {number} */ (this.get$ValueOrDefault(41, index));1717};171817191720/**1721* Adds a value to the repeated_float field.1722* @param {number} value The value to add.1723*/1724proto2.TestAllTypes.prototype.addRepeatedFloat = function(value) {1725this.add$Value(41, value);1726};172717281729/**1730* Returns the array of values in the repeated_float field.1731* @return {!Array<number>} The values in the field.1732*/1733proto2.TestAllTypes.prototype.repeatedFloatArray = function() {1734return /** @type {!Array<number>} */ (this.array$Values(41));1735};173617371738/**1739* @return {boolean} Whether the repeated_float field has a value.1740*/1741proto2.TestAllTypes.prototype.hasRepeatedFloat = function() {1742return this.has$Value(41);1743};174417451746/**1747* @return {number} The number of values in the repeated_float field.1748*/1749proto2.TestAllTypes.prototype.repeatedFloatCount = function() {1750return this.count$Values(41);1751};175217531754/**1755* Clears the values in the repeated_float field.1756*/1757proto2.TestAllTypes.prototype.clearRepeatedFloat = function() {1758this.clear$Field(41);1759};176017611762/**1763* Gets the value of the repeated_double field at the index given.1764* @param {number} index The index to lookup.1765* @return {?number} The value.1766*/1767proto2.TestAllTypes.prototype.getRepeatedDouble = function(index) {1768return /** @type {?number} */ (this.get$Value(42, index));1769};177017711772/**1773* Gets the value of the repeated_double field at the index given or the default value if not set.1774* @param {number} index The index to lookup.1775* @return {number} The value.1776*/1777proto2.TestAllTypes.prototype.getRepeatedDoubleOrDefault = function(index) {1778return /** @type {number} */ (this.get$ValueOrDefault(42, index));1779};178017811782/**1783* Adds a value to the repeated_double field.1784* @param {number} value The value to add.1785*/1786proto2.TestAllTypes.prototype.addRepeatedDouble = function(value) {1787this.add$Value(42, value);1788};178917901791/**1792* Returns the array of values in the repeated_double field.1793* @return {!Array<number>} The values in the field.1794*/1795proto2.TestAllTypes.prototype.repeatedDoubleArray = function() {1796return /** @type {!Array<number>} */ (this.array$Values(42));1797};179817991800/**1801* @return {boolean} Whether the repeated_double field has a value.1802*/1803proto2.TestAllTypes.prototype.hasRepeatedDouble = function() {1804return this.has$Value(42);1805};180618071808/**1809* @return {number} The number of values in the repeated_double field.1810*/1811proto2.TestAllTypes.prototype.repeatedDoubleCount = function() {1812return this.count$Values(42);1813};181418151816/**1817* Clears the values in the repeated_double field.1818*/1819proto2.TestAllTypes.prototype.clearRepeatedDouble = function() {1820this.clear$Field(42);1821};182218231824/**1825* Gets the value of the repeated_bool field at the index given.1826* @param {number} index The index to lookup.1827* @return {?boolean} The value.1828*/1829proto2.TestAllTypes.prototype.getRepeatedBool = function(index) {1830return /** @type {?boolean} */ (this.get$Value(43, index));1831};183218331834/**1835* Gets the value of the repeated_bool field at the index given or the default value if not set.1836* @param {number} index The index to lookup.1837* @return {boolean} The value.1838*/1839proto2.TestAllTypes.prototype.getRepeatedBoolOrDefault = function(index) {1840return /** @type {boolean} */ (this.get$ValueOrDefault(43, index));1841};184218431844/**1845* Adds a value to the repeated_bool field.1846* @param {boolean} value The value to add.1847*/1848proto2.TestAllTypes.prototype.addRepeatedBool = function(value) {1849this.add$Value(43, value);1850};185118521853/**1854* Returns the array of values in the repeated_bool field.1855* @return {!Array<boolean>} The values in the field.1856*/1857proto2.TestAllTypes.prototype.repeatedBoolArray = function() {1858return /** @type {!Array<boolean>} */ (this.array$Values(43));1859};186018611862/**1863* @return {boolean} Whether the repeated_bool field has a value.1864*/1865proto2.TestAllTypes.prototype.hasRepeatedBool = function() {1866return this.has$Value(43);1867};186818691870/**1871* @return {number} The number of values in the repeated_bool field.1872*/1873proto2.TestAllTypes.prototype.repeatedBoolCount = function() {1874return this.count$Values(43);1875};187618771878/**1879* Clears the values in the repeated_bool field.1880*/1881proto2.TestAllTypes.prototype.clearRepeatedBool = function() {1882this.clear$Field(43);1883};188418851886/**1887* Gets the value of the repeated_string field at the index given.1888* @param {number} index The index to lookup.1889* @return {?string} The value.1890*/1891proto2.TestAllTypes.prototype.getRepeatedString = function(index) {1892return /** @type {?string} */ (this.get$Value(44, index));1893};189418951896/**1897* Gets the value of the repeated_string field at the index given or the default value if not set.1898* @param {number} index The index to lookup.1899* @return {string} The value.1900*/1901proto2.TestAllTypes.prototype.getRepeatedStringOrDefault = function(index) {1902return /** @type {string} */ (this.get$ValueOrDefault(44, index));1903};190419051906/**1907* Adds a value to the repeated_string field.1908* @param {string} value The value to add.1909*/1910proto2.TestAllTypes.prototype.addRepeatedString = function(value) {1911this.add$Value(44, value);1912};191319141915/**1916* Returns the array of values in the repeated_string field.1917* @return {!Array<string>} The values in the field.1918*/1919proto2.TestAllTypes.prototype.repeatedStringArray = function() {1920return /** @type {!Array<string>} */ (this.array$Values(44));1921};192219231924/**1925* @return {boolean} Whether the repeated_string field has a value.1926*/1927proto2.TestAllTypes.prototype.hasRepeatedString = function() {1928return this.has$Value(44);1929};193019311932/**1933* @return {number} The number of values in the repeated_string field.1934*/1935proto2.TestAllTypes.prototype.repeatedStringCount = function() {1936return this.count$Values(44);1937};193819391940/**1941* Clears the values in the repeated_string field.1942*/1943proto2.TestAllTypes.prototype.clearRepeatedString = function() {1944this.clear$Field(44);1945};194619471948/**1949* Gets the value of the repeated_bytes field at the index given.1950* @param {number} index The index to lookup.1951* @return {?string} The value.1952*/1953proto2.TestAllTypes.prototype.getRepeatedBytes = function(index) {1954return /** @type {?string} */ (this.get$Value(45, index));1955};195619571958/**1959* Gets the value of the repeated_bytes field at the index given or the default value if not set.1960* @param {number} index The index to lookup.1961* @return {string} The value.1962*/1963proto2.TestAllTypes.prototype.getRepeatedBytesOrDefault = function(index) {1964return /** @type {string} */ (this.get$ValueOrDefault(45, index));1965};196619671968/**1969* Adds a value to the repeated_bytes field.1970* @param {string} value The value to add.1971*/1972proto2.TestAllTypes.prototype.addRepeatedBytes = function(value) {1973this.add$Value(45, value);1974};197519761977/**1978* Returns the array of values in the repeated_bytes field.1979* @return {!Array<string>} The values in the field.1980*/1981proto2.TestAllTypes.prototype.repeatedBytesArray = function() {1982return /** @type {!Array<string>} */ (this.array$Values(45));1983};198419851986/**1987* @return {boolean} Whether the repeated_bytes field has a value.1988*/1989proto2.TestAllTypes.prototype.hasRepeatedBytes = function() {1990return this.has$Value(45);1991};199219931994/**1995* @return {number} The number of values in the repeated_bytes field.1996*/1997proto2.TestAllTypes.prototype.repeatedBytesCount = function() {1998return this.count$Values(45);1999};200020012002/**2003* Clears the values in the repeated_bytes field.2004*/2005proto2.TestAllTypes.prototype.clearRepeatedBytes = function() {2006this.clear$Field(45);2007};200820092010/**2011* Gets the value of the repeatedgroup field at the index given.2012* @param {number} index The index to lookup.2013* @return {?proto2.TestAllTypes.RepeatedGroup} The value.2014*/2015proto2.TestAllTypes.prototype.getRepeatedgroup = function(index) {2016return /** @type {?proto2.TestAllTypes.RepeatedGroup} */ (this.get$Value(46, index));2017};201820192020/**2021* Gets the value of the repeatedgroup field at the index given or the default value if not set.2022* @param {number} index The index to lookup.2023* @return {!proto2.TestAllTypes.RepeatedGroup} The value.2024*/2025proto2.TestAllTypes.prototype.getRepeatedgroupOrDefault = function(index) {2026return /** @type {!proto2.TestAllTypes.RepeatedGroup} */ (this.get$ValueOrDefault(46, index));2027};202820292030/**2031* Adds a value to the repeatedgroup field.2032* @param {!proto2.TestAllTypes.RepeatedGroup} value The value to add.2033*/2034proto2.TestAllTypes.prototype.addRepeatedgroup = function(value) {2035this.add$Value(46, value);2036};203720382039/**2040* Returns the array of values in the repeatedgroup field.2041* @return {!Array<!proto2.TestAllTypes.RepeatedGroup>} The values in the field.2042*/2043proto2.TestAllTypes.prototype.repeatedgroupArray = function() {2044return /** @type {!Array<!proto2.TestAllTypes.RepeatedGroup>} */ (this.array$Values(46));2045};204620472048/**2049* @return {boolean} Whether the repeatedgroup field has a value.2050*/2051proto2.TestAllTypes.prototype.hasRepeatedgroup = function() {2052return this.has$Value(46);2053};205420552056/**2057* @return {number} The number of values in the repeatedgroup field.2058*/2059proto2.TestAllTypes.prototype.repeatedgroupCount = function() {2060return this.count$Values(46);2061};206220632064/**2065* Clears the values in the repeatedgroup field.2066*/2067proto2.TestAllTypes.prototype.clearRepeatedgroup = function() {2068this.clear$Field(46);2069};207020712072/**2073* Gets the value of the repeated_nested_message field at the index given.2074* @param {number} index The index to lookup.2075* @return {?proto2.TestAllTypes.NestedMessage} The value.2076*/2077proto2.TestAllTypes.prototype.getRepeatedNestedMessage = function(index) {2078return /** @type {?proto2.TestAllTypes.NestedMessage} */ (this.get$Value(48, index));2079};208020812082/**2083* Gets the value of the repeated_nested_message field at the index given or the default value if not set.2084* @param {number} index The index to lookup.2085* @return {!proto2.TestAllTypes.NestedMessage} The value.2086*/2087proto2.TestAllTypes.prototype.getRepeatedNestedMessageOrDefault = function(index) {2088return /** @type {!proto2.TestAllTypes.NestedMessage} */ (this.get$ValueOrDefault(48, index));2089};209020912092/**2093* Adds a value to the repeated_nested_message field.2094* @param {!proto2.TestAllTypes.NestedMessage} value The value to add.2095*/2096proto2.TestAllTypes.prototype.addRepeatedNestedMessage = function(value) {2097this.add$Value(48, value);2098};209921002101/**2102* Returns the array of values in the repeated_nested_message field.2103* @return {!Array<!proto2.TestAllTypes.NestedMessage>} The values in the field.2104*/2105proto2.TestAllTypes.prototype.repeatedNestedMessageArray = function() {2106return /** @type {!Array<!proto2.TestAllTypes.NestedMessage>} */ (this.array$Values(48));2107};210821092110/**2111* @return {boolean} Whether the repeated_nested_message field has a value.2112*/2113proto2.TestAllTypes.prototype.hasRepeatedNestedMessage = function() {2114return this.has$Value(48);2115};211621172118/**2119* @return {number} The number of values in the repeated_nested_message field.2120*/2121proto2.TestAllTypes.prototype.repeatedNestedMessageCount = function() {2122return this.count$Values(48);2123};212421252126/**2127* Clears the values in the repeated_nested_message field.2128*/2129proto2.TestAllTypes.prototype.clearRepeatedNestedMessage = function() {2130this.clear$Field(48);2131};213221332134/**2135* Gets the value of the repeated_nested_enum field at the index given.2136* @param {number} index The index to lookup.2137* @return {?proto2.TestAllTypes.NestedEnum} The value.2138*/2139proto2.TestAllTypes.prototype.getRepeatedNestedEnum = function(index) {2140return /** @type {?proto2.TestAllTypes.NestedEnum} */ (this.get$Value(49, index));2141};214221432144/**2145* Gets the value of the repeated_nested_enum field at the index given or the default value if not set.2146* @param {number} index The index to lookup.2147* @return {!proto2.TestAllTypes.NestedEnum} The value.2148*/2149proto2.TestAllTypes.prototype.getRepeatedNestedEnumOrDefault = function(index) {2150return /** @type {!proto2.TestAllTypes.NestedEnum} */ (this.get$ValueOrDefault(49, index));2151};215221532154/**2155* Adds a value to the repeated_nested_enum field.2156* @param {!proto2.TestAllTypes.NestedEnum} value The value to add.2157*/2158proto2.TestAllTypes.prototype.addRepeatedNestedEnum = function(value) {2159this.add$Value(49, value);2160};216121622163/**2164* Returns the array of values in the repeated_nested_enum field.2165* @return {!Array<!proto2.TestAllTypes.NestedEnum>} The values in the field.2166*/2167proto2.TestAllTypes.prototype.repeatedNestedEnumArray = function() {2168return /** @type {!Array<!proto2.TestAllTypes.NestedEnum>} */ (this.array$Values(49));2169};217021712172/**2173* @return {boolean} Whether the repeated_nested_enum field has a value.2174*/2175proto2.TestAllTypes.prototype.hasRepeatedNestedEnum = function() {2176return this.has$Value(49);2177};217821792180/**2181* @return {number} The number of values in the repeated_nested_enum field.2182*/2183proto2.TestAllTypes.prototype.repeatedNestedEnumCount = function() {2184return this.count$Values(49);2185};218621872188/**2189* Clears the values in the repeated_nested_enum field.2190*/2191proto2.TestAllTypes.prototype.clearRepeatedNestedEnum = function() {2192this.clear$Field(49);2193};219421952196/**2197* Gets the value of the repeated_int64_number field at the index given.2198* @param {number} index The index to lookup.2199* @return {?number} The value.2200*/2201proto2.TestAllTypes.prototype.getRepeatedInt64Number = function(index) {2202return /** @type {?number} */ (this.get$Value(52, index));2203};220422052206/**2207* Gets the value of the repeated_int64_number field at the index given or the default value if not set.2208* @param {number} index The index to lookup.2209* @return {number} The value.2210*/2211proto2.TestAllTypes.prototype.getRepeatedInt64NumberOrDefault = function(index) {2212return /** @type {number} */ (this.get$ValueOrDefault(52, index));2213};221422152216/**2217* Adds a value to the repeated_int64_number field.2218* @param {number} value The value to add.2219*/2220proto2.TestAllTypes.prototype.addRepeatedInt64Number = function(value) {2221this.add$Value(52, value);2222};222322242225/**2226* Returns the array of values in the repeated_int64_number field.2227* @return {!Array<number>} The values in the field.2228*/2229proto2.TestAllTypes.prototype.repeatedInt64NumberArray = function() {2230return /** @type {!Array<number>} */ (this.array$Values(52));2231};223222332234/**2235* @return {boolean} Whether the repeated_int64_number field has a value.2236*/2237proto2.TestAllTypes.prototype.hasRepeatedInt64Number = function() {2238return this.has$Value(52);2239};224022412242/**2243* @return {number} The number of values in the repeated_int64_number field.2244*/2245proto2.TestAllTypes.prototype.repeatedInt64NumberCount = function() {2246return this.count$Values(52);2247};224822492250/**2251* Clears the values in the repeated_int64_number field.2252*/2253proto2.TestAllTypes.prototype.clearRepeatedInt64Number = function() {2254this.clear$Field(52);2255};225622572258/**2259* Gets the value of the repeated_int64_string field at the index given.2260* @param {number} index The index to lookup.2261* @return {?string} The value.2262*/2263proto2.TestAllTypes.prototype.getRepeatedInt64String = function(index) {2264return /** @type {?string} */ (this.get$Value(53, index));2265};226622672268/**2269* Gets the value of the repeated_int64_string field at the index given or the default value if not set.2270* @param {number} index The index to lookup.2271* @return {string} The value.2272*/2273proto2.TestAllTypes.prototype.getRepeatedInt64StringOrDefault = function(index) {2274return /** @type {string} */ (this.get$ValueOrDefault(53, index));2275};227622772278/**2279* Adds a value to the repeated_int64_string field.2280* @param {string} value The value to add.2281*/2282proto2.TestAllTypes.prototype.addRepeatedInt64String = function(value) {2283this.add$Value(53, value);2284};228522862287/**2288* Returns the array of values in the repeated_int64_string field.2289* @return {!Array<string>} The values in the field.2290*/2291proto2.TestAllTypes.prototype.repeatedInt64StringArray = function() {2292return /** @type {!Array<string>} */ (this.array$Values(53));2293};229422952296/**2297* @return {boolean} Whether the repeated_int64_string field has a value.2298*/2299proto2.TestAllTypes.prototype.hasRepeatedInt64String = function() {2300return this.has$Value(53);2301};230223032304/**2305* @return {number} The number of values in the repeated_int64_string field.2306*/2307proto2.TestAllTypes.prototype.repeatedInt64StringCount = function() {2308return this.count$Values(53);2309};231023112312/**2313* Clears the values in the repeated_int64_string field.2314*/2315proto2.TestAllTypes.prototype.clearRepeatedInt64String = function() {2316this.clear$Field(53);2317};231823192320/**2321* Gets the value of the packed_int32 field at the index given.2322* @param {number} index The index to lookup.2323* @return {?number} The value.2324*/2325proto2.TestAllTypes.prototype.getPackedInt32 = function(index) {2326return /** @type {?number} */ (this.get$Value(54, index));2327};232823292330/**2331* Gets the value of the packed_int32 field at the index given or the default value if not set.2332* @param {number} index The index to lookup.2333* @return {number} The value.2334*/2335proto2.TestAllTypes.prototype.getPackedInt32OrDefault = function(index) {2336return /** @type {number} */ (this.get$ValueOrDefault(54, index));2337};233823392340/**2341* Adds a value to the packed_int32 field.2342* @param {number} value The value to add.2343*/2344proto2.TestAllTypes.prototype.addPackedInt32 = function(value) {2345this.add$Value(54, value);2346};234723482349/**2350* Returns the array of values in the packed_int32 field.2351* @return {!Array<number>} The values in the field.2352*/2353proto2.TestAllTypes.prototype.packedInt32Array = function() {2354return /** @type {!Array<number>} */ (this.array$Values(54));2355};235623572358/**2359* @return {boolean} Whether the packed_int32 field has a value.2360*/2361proto2.TestAllTypes.prototype.hasPackedInt32 = function() {2362return this.has$Value(54);2363};236423652366/**2367* @return {number} The number of values in the packed_int32 field.2368*/2369proto2.TestAllTypes.prototype.packedInt32Count = function() {2370return this.count$Values(54);2371};237223732374/**2375* Clears the values in the packed_int32 field.2376*/2377proto2.TestAllTypes.prototype.clearPackedInt32 = function() {2378this.clear$Field(54);2379};238023812382/**2383* Gets the value of the packed_int64 field at the index given.2384* @param {number} index The index to lookup.2385* @return {?number} The value.2386*/2387proto2.TestAllTypes.prototype.getPackedInt64 = function(index) {2388return /** @type {?number} */ (this.get$Value(55, index));2389};239023912392/**2393* Gets the value of the packed_int64 field at the index given or the default value if not set.2394* @param {number} index The index to lookup.2395* @return {number} The value.2396*/2397proto2.TestAllTypes.prototype.getPackedInt64OrDefault = function(index) {2398return /** @type {number} */ (this.get$ValueOrDefault(55, index));2399};240024012402/**2403* Adds a value to the packed_int64 field.2404* @param {number} value The value to add.2405*/2406proto2.TestAllTypes.prototype.addPackedInt64 = function(value) {2407this.add$Value(55, value);2408};240924102411/**2412* Returns the array of values in the packed_int64 field.2413* @return {!Array<number>} The values in the field.2414*/2415proto2.TestAllTypes.prototype.packedInt64Array = function() {2416return /** @type {!Array<number>} */ (this.array$Values(55));2417};241824192420/**2421* @return {boolean} Whether the packed_int64 field has a value.2422*/2423proto2.TestAllTypes.prototype.hasPackedInt64 = function() {2424return this.has$Value(55);2425};242624272428/**2429* @return {number} The number of values in the packed_int64 field.2430*/2431proto2.TestAllTypes.prototype.packedInt64Count = function() {2432return this.count$Values(55);2433};243424352436/**2437* Clears the values in the packed_int64 field.2438*/2439proto2.TestAllTypes.prototype.clearPackedInt64 = function() {2440this.clear$Field(55);2441};244224432444/**2445* Gets the value of the packed_uint32 field at the index given.2446* @param {number} index The index to lookup.2447* @return {?number} The value.2448*/2449proto2.TestAllTypes.prototype.getPackedUint32 = function(index) {2450return /** @type {?number} */ (this.get$Value(56, index));2451};245224532454/**2455* Gets the value of the packed_uint32 field at the index given or the default value if not set.2456* @param {number} index The index to lookup.2457* @return {number} The value.2458*/2459proto2.TestAllTypes.prototype.getPackedUint32OrDefault = function(index) {2460return /** @type {number} */ (this.get$ValueOrDefault(56, index));2461};246224632464/**2465* Adds a value to the packed_uint32 field.2466* @param {number} value The value to add.2467*/2468proto2.TestAllTypes.prototype.addPackedUint32 = function(value) {2469this.add$Value(56, value);2470};247124722473/**2474* Returns the array of values in the packed_uint32 field.2475* @return {!Array<number>} The values in the field.2476*/2477proto2.TestAllTypes.prototype.packedUint32Array = function() {2478return /** @type {!Array<number>} */ (this.array$Values(56));2479};248024812482/**2483* @return {boolean} Whether the packed_uint32 field has a value.2484*/2485proto2.TestAllTypes.prototype.hasPackedUint32 = function() {2486return this.has$Value(56);2487};248824892490/**2491* @return {number} The number of values in the packed_uint32 field.2492*/2493proto2.TestAllTypes.prototype.packedUint32Count = function() {2494return this.count$Values(56);2495};249624972498/**2499* Clears the values in the packed_uint32 field.2500*/2501proto2.TestAllTypes.prototype.clearPackedUint32 = function() {2502this.clear$Field(56);2503};250425052506/**2507* Gets the value of the packed_uint64 field at the index given.2508* @param {number} index The index to lookup.2509* @return {?number} The value.2510*/2511proto2.TestAllTypes.prototype.getPackedUint64 = function(index) {2512return /** @type {?number} */ (this.get$Value(57, index));2513};251425152516/**2517* Gets the value of the packed_uint64 field at the index given or the default value if not set.2518* @param {number} index The index to lookup.2519* @return {number} The value.2520*/2521proto2.TestAllTypes.prototype.getPackedUint64OrDefault = function(index) {2522return /** @type {number} */ (this.get$ValueOrDefault(57, index));2523};252425252526/**2527* Adds a value to the packed_uint64 field.2528* @param {number} value The value to add.2529*/2530proto2.TestAllTypes.prototype.addPackedUint64 = function(value) {2531this.add$Value(57, value);2532};253325342535/**2536* Returns the array of values in the packed_uint64 field.2537* @return {!Array<number>} The values in the field.2538*/2539proto2.TestAllTypes.prototype.packedUint64Array = function() {2540return /** @type {!Array<number>} */ (this.array$Values(57));2541};254225432544/**2545* @return {boolean} Whether the packed_uint64 field has a value.2546*/2547proto2.TestAllTypes.prototype.hasPackedUint64 = function() {2548return this.has$Value(57);2549};255025512552/**2553* @return {number} The number of values in the packed_uint64 field.2554*/2555proto2.TestAllTypes.prototype.packedUint64Count = function() {2556return this.count$Values(57);2557};255825592560/**2561* Clears the values in the packed_uint64 field.2562*/2563proto2.TestAllTypes.prototype.clearPackedUint64 = function() {2564this.clear$Field(57);2565};256625672568/**2569* Gets the value of the packed_sint32 field at the index given.2570* @param {number} index The index to lookup.2571* @return {?number} The value.2572*/2573proto2.TestAllTypes.prototype.getPackedSint32 = function(index) {2574return /** @type {?number} */ (this.get$Value(58, index));2575};257625772578/**2579* Gets the value of the packed_sint32 field at the index given or the default value if not set.2580* @param {number} index The index to lookup.2581* @return {number} The value.2582*/2583proto2.TestAllTypes.prototype.getPackedSint32OrDefault = function(index) {2584return /** @type {number} */ (this.get$ValueOrDefault(58, index));2585};258625872588/**2589* Adds a value to the packed_sint32 field.2590* @param {number} value The value to add.2591*/2592proto2.TestAllTypes.prototype.addPackedSint32 = function(value) {2593this.add$Value(58, value);2594};259525962597/**2598* Returns the array of values in the packed_sint32 field.2599* @return {!Array<number>} The values in the field.2600*/2601proto2.TestAllTypes.prototype.packedSint32Array = function() {2602return /** @type {!Array<number>} */ (this.array$Values(58));2603};260426052606/**2607* @return {boolean} Whether the packed_sint32 field has a value.2608*/2609proto2.TestAllTypes.prototype.hasPackedSint32 = function() {2610return this.has$Value(58);2611};261226132614/**2615* @return {number} The number of values in the packed_sint32 field.2616*/2617proto2.TestAllTypes.prototype.packedSint32Count = function() {2618return this.count$Values(58);2619};262026212622/**2623* Clears the values in the packed_sint32 field.2624*/2625proto2.TestAllTypes.prototype.clearPackedSint32 = function() {2626this.clear$Field(58);2627};262826292630/**2631* Gets the value of the packed_sint64 field at the index given.2632* @param {number} index The index to lookup.2633* @return {?number} The value.2634*/2635proto2.TestAllTypes.prototype.getPackedSint64 = function(index) {2636return /** @type {?number} */ (this.get$Value(59, index));2637};263826392640/**2641* Gets the value of the packed_sint64 field at the index given or the default value if not set.2642* @param {number} index The index to lookup.2643* @return {number} The value.2644*/2645proto2.TestAllTypes.prototype.getPackedSint64OrDefault = function(index) {2646return /** @type {number} */ (this.get$ValueOrDefault(59, index));2647};264826492650/**2651* Adds a value to the packed_sint64 field.2652* @param {number} value The value to add.2653*/2654proto2.TestAllTypes.prototype.addPackedSint64 = function(value) {2655this.add$Value(59, value);2656};265726582659/**2660* Returns the array of values in the packed_sint64 field.2661* @return {!Array<number>} The values in the field.2662*/2663proto2.TestAllTypes.prototype.packedSint64Array = function() {2664return /** @type {!Array<number>} */ (this.array$Values(59));2665};266626672668/**2669* @return {boolean} Whether the packed_sint64 field has a value.2670*/2671proto2.TestAllTypes.prototype.hasPackedSint64 = function() {2672return this.has$Value(59);2673};267426752676/**2677* @return {number} The number of values in the packed_sint64 field.2678*/2679proto2.TestAllTypes.prototype.packedSint64Count = function() {2680return this.count$Values(59);2681};268226832684/**2685* Clears the values in the packed_sint64 field.2686*/2687proto2.TestAllTypes.prototype.clearPackedSint64 = function() {2688this.clear$Field(59);2689};269026912692/**2693* Gets the value of the packed_fixed32 field at the index given.2694* @param {number} index The index to lookup.2695* @return {?number} The value.2696*/2697proto2.TestAllTypes.prototype.getPackedFixed32 = function(index) {2698return /** @type {?number} */ (this.get$Value(60, index));2699};270027012702/**2703* Gets the value of the packed_fixed32 field at the index given or the default value if not set.2704* @param {number} index The index to lookup.2705* @return {number} The value.2706*/2707proto2.TestAllTypes.prototype.getPackedFixed32OrDefault = function(index) {2708return /** @type {number} */ (this.get$ValueOrDefault(60, index));2709};271027112712/**2713* Adds a value to the packed_fixed32 field.2714* @param {number} value The value to add.2715*/2716proto2.TestAllTypes.prototype.addPackedFixed32 = function(value) {2717this.add$Value(60, value);2718};271927202721/**2722* Returns the array of values in the packed_fixed32 field.2723* @return {!Array<number>} The values in the field.2724*/2725proto2.TestAllTypes.prototype.packedFixed32Array = function() {2726return /** @type {!Array<number>} */ (this.array$Values(60));2727};272827292730/**2731* @return {boolean} Whether the packed_fixed32 field has a value.2732*/2733proto2.TestAllTypes.prototype.hasPackedFixed32 = function() {2734return this.has$Value(60);2735};273627372738/**2739* @return {number} The number of values in the packed_fixed32 field.2740*/2741proto2.TestAllTypes.prototype.packedFixed32Count = function() {2742return this.count$Values(60);2743};274427452746/**2747* Clears the values in the packed_fixed32 field.2748*/2749proto2.TestAllTypes.prototype.clearPackedFixed32 = function() {2750this.clear$Field(60);2751};275227532754/**2755* Gets the value of the packed_fixed64 field at the index given.2756* @param {number} index The index to lookup.2757* @return {?number} The value.2758*/2759proto2.TestAllTypes.prototype.getPackedFixed64 = function(index) {2760return /** @type {?number} */ (this.get$Value(61, index));2761};276227632764/**2765* Gets the value of the packed_fixed64 field at the index given or the default value if not set.2766* @param {number} index The index to lookup.2767* @return {number} The value.2768*/2769proto2.TestAllTypes.prototype.getPackedFixed64OrDefault = function(index) {2770return /** @type {number} */ (this.get$ValueOrDefault(61, index));2771};277227732774/**2775* Adds a value to the packed_fixed64 field.2776* @param {number} value The value to add.2777*/2778proto2.TestAllTypes.prototype.addPackedFixed64 = function(value) {2779this.add$Value(61, value);2780};278127822783/**2784* Returns the array of values in the packed_fixed64 field.2785* @return {!Array<number>} The values in the field.2786*/2787proto2.TestAllTypes.prototype.packedFixed64Array = function() {2788return /** @type {!Array<number>} */ (this.array$Values(61));2789};279027912792/**2793* @return {boolean} Whether the packed_fixed64 field has a value.2794*/2795proto2.TestAllTypes.prototype.hasPackedFixed64 = function() {2796return this.has$Value(61);2797};279827992800/**2801* @return {number} The number of values in the packed_fixed64 field.2802*/2803proto2.TestAllTypes.prototype.packedFixed64Count = function() {2804return this.count$Values(61);2805};280628072808/**2809* Clears the values in the packed_fixed64 field.2810*/2811proto2.TestAllTypes.prototype.clearPackedFixed64 = function() {2812this.clear$Field(61);2813};281428152816/**2817* Gets the value of the packed_sfixed32 field at the index given.2818* @param {number} index The index to lookup.2819* @return {?number} The value.2820*/2821proto2.TestAllTypes.prototype.getPackedSfixed32 = function(index) {2822return /** @type {?number} */ (this.get$Value(62, index));2823};282428252826/**2827* Gets the value of the packed_sfixed32 field at the index given or the default value if not set.2828* @param {number} index The index to lookup.2829* @return {number} The value.2830*/2831proto2.TestAllTypes.prototype.getPackedSfixed32OrDefault = function(index) {2832return /** @type {number} */ (this.get$ValueOrDefault(62, index));2833};283428352836/**2837* Adds a value to the packed_sfixed32 field.2838* @param {number} value The value to add.2839*/2840proto2.TestAllTypes.prototype.addPackedSfixed32 = function(value) {2841this.add$Value(62, value);2842};284328442845/**2846* Returns the array of values in the packed_sfixed32 field.2847* @return {!Array<number>} The values in the field.2848*/2849proto2.TestAllTypes.prototype.packedSfixed32Array = function() {2850return /** @type {!Array<number>} */ (this.array$Values(62));2851};285228532854/**2855* @return {boolean} Whether the packed_sfixed32 field has a value.2856*/2857proto2.TestAllTypes.prototype.hasPackedSfixed32 = function() {2858return this.has$Value(62);2859};286028612862/**2863* @return {number} The number of values in the packed_sfixed32 field.2864*/2865proto2.TestAllTypes.prototype.packedSfixed32Count = function() {2866return this.count$Values(62);2867};286828692870/**2871* Clears the values in the packed_sfixed32 field.2872*/2873proto2.TestAllTypes.prototype.clearPackedSfixed32 = function() {2874this.clear$Field(62);2875};287628772878/**2879* Gets the value of the packed_sfixed64 field at the index given.2880* @param {number} index The index to lookup.2881* @return {?number} The value.2882*/2883proto2.TestAllTypes.prototype.getPackedSfixed64 = function(index) {2884return /** @type {?number} */ (this.get$Value(63, index));2885};288628872888/**2889* Gets the value of the packed_sfixed64 field at the index given or the default value if not set.2890* @param {number} index The index to lookup.2891* @return {number} The value.2892*/2893proto2.TestAllTypes.prototype.getPackedSfixed64OrDefault = function(index) {2894return /** @type {number} */ (this.get$ValueOrDefault(63, index));2895};289628972898/**2899* Adds a value to the packed_sfixed64 field.2900* @param {number} value The value to add.2901*/2902proto2.TestAllTypes.prototype.addPackedSfixed64 = function(value) {2903this.add$Value(63, value);2904};290529062907/**2908* Returns the array of values in the packed_sfixed64 field.2909* @return {!Array<number>} The values in the field.2910*/2911proto2.TestAllTypes.prototype.packedSfixed64Array = function() {2912return /** @type {!Array<number>} */ (this.array$Values(63));2913};291429152916/**2917* @return {boolean} Whether the packed_sfixed64 field has a value.2918*/2919proto2.TestAllTypes.prototype.hasPackedSfixed64 = function() {2920return this.has$Value(63);2921};292229232924/**2925* @return {number} The number of values in the packed_sfixed64 field.2926*/2927proto2.TestAllTypes.prototype.packedSfixed64Count = function() {2928return this.count$Values(63);2929};293029312932/**2933* Clears the values in the packed_sfixed64 field.2934*/2935proto2.TestAllTypes.prototype.clearPackedSfixed64 = function() {2936this.clear$Field(63);2937};293829392940/**2941* Gets the value of the packed_float field at the index given.2942* @param {number} index The index to lookup.2943* @return {?number} The value.2944*/2945proto2.TestAllTypes.prototype.getPackedFloat = function(index) {2946return /** @type {?number} */ (this.get$Value(64, index));2947};294829492950/**2951* Gets the value of the packed_float field at the index given or the default value if not set.2952* @param {number} index The index to lookup.2953* @return {number} The value.2954*/2955proto2.TestAllTypes.prototype.getPackedFloatOrDefault = function(index) {2956return /** @type {number} */ (this.get$ValueOrDefault(64, index));2957};295829592960/**2961* Adds a value to the packed_float field.2962* @param {number} value The value to add.2963*/2964proto2.TestAllTypes.prototype.addPackedFloat = function(value) {2965this.add$Value(64, value);2966};296729682969/**2970* Returns the array of values in the packed_float field.2971* @return {!Array<number>} The values in the field.2972*/2973proto2.TestAllTypes.prototype.packedFloatArray = function() {2974return /** @type {!Array<number>} */ (this.array$Values(64));2975};297629772978/**2979* @return {boolean} Whether the packed_float field has a value.2980*/2981proto2.TestAllTypes.prototype.hasPackedFloat = function() {2982return this.has$Value(64);2983};298429852986/**2987* @return {number} The number of values in the packed_float field.2988*/2989proto2.TestAllTypes.prototype.packedFloatCount = function() {2990return this.count$Values(64);2991};299229932994/**2995* Clears the values in the packed_float field.2996*/2997proto2.TestAllTypes.prototype.clearPackedFloat = function() {2998this.clear$Field(64);2999};300030013002/**3003* Gets the value of the packed_double field at the index given.3004* @param {number} index The index to lookup.3005* @return {?number} The value.3006*/3007proto2.TestAllTypes.prototype.getPackedDouble = function(index) {3008return /** @type {?number} */ (this.get$Value(65, index));3009};301030113012/**3013* Gets the value of the packed_double field at the index given or the default value if not set.3014* @param {number} index The index to lookup.3015* @return {number} The value.3016*/3017proto2.TestAllTypes.prototype.getPackedDoubleOrDefault = function(index) {3018return /** @type {number} */ (this.get$ValueOrDefault(65, index));3019};302030213022/**3023* Adds a value to the packed_double field.3024* @param {number} value The value to add.3025*/3026proto2.TestAllTypes.prototype.addPackedDouble = function(value) {3027this.add$Value(65, value);3028};302930303031/**3032* Returns the array of values in the packed_double field.3033* @return {!Array<number>} The values in the field.3034*/3035proto2.TestAllTypes.prototype.packedDoubleArray = function() {3036return /** @type {!Array<number>} */ (this.array$Values(65));3037};303830393040/**3041* @return {boolean} Whether the packed_double field has a value.3042*/3043proto2.TestAllTypes.prototype.hasPackedDouble = function() {3044return this.has$Value(65);3045};304630473048/**3049* @return {number} The number of values in the packed_double field.3050*/3051proto2.TestAllTypes.prototype.packedDoubleCount = function() {3052return this.count$Values(65);3053};305430553056/**3057* Clears the values in the packed_double field.3058*/3059proto2.TestAllTypes.prototype.clearPackedDouble = function() {3060this.clear$Field(65);3061};306230633064/**3065* Gets the value of the packed_bool field at the index given.3066* @param {number} index The index to lookup.3067* @return {?boolean} The value.3068*/3069proto2.TestAllTypes.prototype.getPackedBool = function(index) {3070return /** @type {?boolean} */ (this.get$Value(66, index));3071};307230733074/**3075* Gets the value of the packed_bool field at the index given or the default value if not set.3076* @param {number} index The index to lookup.3077* @return {boolean} The value.3078*/3079proto2.TestAllTypes.prototype.getPackedBoolOrDefault = function(index) {3080return /** @type {boolean} */ (this.get$ValueOrDefault(66, index));3081};308230833084/**3085* Adds a value to the packed_bool field.3086* @param {boolean} value The value to add.3087*/3088proto2.TestAllTypes.prototype.addPackedBool = function(value) {3089this.add$Value(66, value);3090};309130923093/**3094* Returns the array of values in the packed_bool field.3095* @return {!Array<boolean>} The values in the field.3096*/3097proto2.TestAllTypes.prototype.packedBoolArray = function() {3098return /** @type {!Array<boolean>} */ (this.array$Values(66));3099};310031013102/**3103* @return {boolean} Whether the packed_bool field has a value.3104*/3105proto2.TestAllTypes.prototype.hasPackedBool = function() {3106return this.has$Value(66);3107};310831093110/**3111* @return {number} The number of values in the packed_bool field.3112*/3113proto2.TestAllTypes.prototype.packedBoolCount = function() {3114return this.count$Values(66);3115};311631173118/**3119* Clears the values in the packed_bool field.3120*/3121proto2.TestAllTypes.prototype.clearPackedBool = function() {3122this.clear$Field(66);3123};312431253126/**3127* Enumeration NestedEnum.3128* @enum {number}3129*/3130proto2.TestAllTypes.NestedEnum = {3131FOO: 0,3132OOF: 1,3133BAR: 2,3134BAZ: 33135};3136313731383139/**3140* Message NestedMessage.3141* @constructor3142* @extends {goog.proto2.Message}3143* @final3144*/3145proto2.TestAllTypes.NestedMessage = function() {3146goog.proto2.Message.call(this);3147};3148goog.inherits(proto2.TestAllTypes.NestedMessage, goog.proto2.Message);314931503151/**3152* Descriptor for this message, deserialized lazily in getDescriptor().3153* @private {?goog.proto2.Descriptor}3154*/3155proto2.TestAllTypes.NestedMessage.descriptor_ = null;315631573158/**3159* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.3160* @return {!proto2.TestAllTypes.NestedMessage} The cloned message.3161* @override3162*/3163proto2.TestAllTypes.NestedMessage.prototype.clone;316431653166/**3167* Gets the value of the b field.3168* @return {?number} The value.3169*/3170proto2.TestAllTypes.NestedMessage.prototype.getB = function() {3171return /** @type {?number} */ (this.get$Value(1));3172};317331743175/**3176* Gets the value of the b field or the default value if not set.3177* @return {number} The value.3178*/3179proto2.TestAllTypes.NestedMessage.prototype.getBOrDefault = function() {3180return /** @type {number} */ (this.get$ValueOrDefault(1));3181};318231833184/**3185* Sets the value of the b field.3186* @param {number} value The value.3187*/3188proto2.TestAllTypes.NestedMessage.prototype.setB = function(value) {3189this.set$Value(1, value);3190};319131923193/**3194* @return {boolean} Whether the b field has a value.3195*/3196proto2.TestAllTypes.NestedMessage.prototype.hasB = function() {3197return this.has$Value(1);3198};319932003201/**3202* @return {number} The number of values in the b field.3203*/3204proto2.TestAllTypes.NestedMessage.prototype.bCount = function() {3205return this.count$Values(1);3206};320732083209/**3210* Clears the values in the b field.3211*/3212proto2.TestAllTypes.NestedMessage.prototype.clearB = function() {3213this.clear$Field(1);3214};321532163217/**3218* Gets the value of the c field.3219* @return {?number} The value.3220*/3221proto2.TestAllTypes.NestedMessage.prototype.getC = function() {3222return /** @type {?number} */ (this.get$Value(2));3223};322432253226/**3227* Gets the value of the c field or the default value if not set.3228* @return {number} The value.3229*/3230proto2.TestAllTypes.NestedMessage.prototype.getCOrDefault = function() {3231return /** @type {number} */ (this.get$ValueOrDefault(2));3232};323332343235/**3236* Sets the value of the c field.3237* @param {number} value The value.3238*/3239proto2.TestAllTypes.NestedMessage.prototype.setC = function(value) {3240this.set$Value(2, value);3241};324232433244/**3245* @return {boolean} Whether the c field has a value.3246*/3247proto2.TestAllTypes.NestedMessage.prototype.hasC = function() {3248return this.has$Value(2);3249};325032513252/**3253* @return {number} The number of values in the c field.3254*/3255proto2.TestAllTypes.NestedMessage.prototype.cCount = function() {3256return this.count$Values(2);3257};325832593260/**3261* Clears the values in the c field.3262*/3263proto2.TestAllTypes.NestedMessage.prototype.clearC = function() {3264this.clear$Field(2);3265};3266326732683269/**3270* Message OptionalGroup.3271* @constructor3272* @extends {goog.proto2.Message}3273* @final3274*/3275proto2.TestAllTypes.OptionalGroup = function() {3276goog.proto2.Message.call(this);3277};3278goog.inherits(proto2.TestAllTypes.OptionalGroup, goog.proto2.Message);327932803281/**3282* Descriptor for this message, deserialized lazily in getDescriptor().3283* @private {?goog.proto2.Descriptor}3284*/3285proto2.TestAllTypes.OptionalGroup.descriptor_ = null;328632873288/**3289* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.3290* @return {!proto2.TestAllTypes.OptionalGroup} The cloned message.3291* @override3292*/3293proto2.TestAllTypes.OptionalGroup.prototype.clone;329432953296/**3297* Gets the value of the a field.3298* @return {?number} The value.3299*/3300proto2.TestAllTypes.OptionalGroup.prototype.getA = function() {3301return /** @type {?number} */ (this.get$Value(17));3302};330333043305/**3306* Gets the value of the a field or the default value if not set.3307* @return {number} The value.3308*/3309proto2.TestAllTypes.OptionalGroup.prototype.getAOrDefault = function() {3310return /** @type {number} */ (this.get$ValueOrDefault(17));3311};331233133314/**3315* Sets the value of the a field.3316* @param {number} value The value.3317*/3318proto2.TestAllTypes.OptionalGroup.prototype.setA = function(value) {3319this.set$Value(17, value);3320};332133223323/**3324* @return {boolean} Whether the a field has a value.3325*/3326proto2.TestAllTypes.OptionalGroup.prototype.hasA = function() {3327return this.has$Value(17);3328};332933303331/**3332* @return {number} The number of values in the a field.3333*/3334proto2.TestAllTypes.OptionalGroup.prototype.aCount = function() {3335return this.count$Values(17);3336};333733383339/**3340* Clears the values in the a field.3341*/3342proto2.TestAllTypes.OptionalGroup.prototype.clearA = function() {3343this.clear$Field(17);3344};3345334633473348/**3349* Message RepeatedGroup.3350* @constructor3351* @extends {goog.proto2.Message}3352* @final3353*/3354proto2.TestAllTypes.RepeatedGroup = function() {3355goog.proto2.Message.call(this);3356};3357goog.inherits(proto2.TestAllTypes.RepeatedGroup, goog.proto2.Message);335833593360/**3361* Descriptor for this message, deserialized lazily in getDescriptor().3362* @private {?goog.proto2.Descriptor}3363*/3364proto2.TestAllTypes.RepeatedGroup.descriptor_ = null;336533663367/**3368* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.3369* @return {!proto2.TestAllTypes.RepeatedGroup} The cloned message.3370* @override3371*/3372proto2.TestAllTypes.RepeatedGroup.prototype.clone;337333743375/**3376* Gets the value of the a field at the index given.3377* @param {number} index The index to lookup.3378* @return {?number} The value.3379*/3380proto2.TestAllTypes.RepeatedGroup.prototype.getA = function(index) {3381return /** @type {?number} */ (this.get$Value(47, index));3382};338333843385/**3386* Gets the value of the a field at the index given or the default value if not set.3387* @param {number} index The index to lookup.3388* @return {number} The value.3389*/3390proto2.TestAllTypes.RepeatedGroup.prototype.getAOrDefault = function(index) {3391return /** @type {number} */ (this.get$ValueOrDefault(47, index));3392};339333943395/**3396* Adds a value to the a field.3397* @param {number} value The value to add.3398*/3399proto2.TestAllTypes.RepeatedGroup.prototype.addA = function(value) {3400this.add$Value(47, value);3401};340234033404/**3405* Returns the array of values in the a field.3406* @return {!Array<number>} The values in the field.3407*/3408proto2.TestAllTypes.RepeatedGroup.prototype.aArray = function() {3409return /** @type {!Array<number>} */ (this.array$Values(47));3410};341134123413/**3414* @return {boolean} Whether the a field has a value.3415*/3416proto2.TestAllTypes.RepeatedGroup.prototype.hasA = function() {3417return this.has$Value(47);3418};341934203421/**3422* @return {number} The number of values in the a field.3423*/3424proto2.TestAllTypes.RepeatedGroup.prototype.aCount = function() {3425return this.count$Values(47);3426};342734283429/**3430* Clears the values in the a field.3431*/3432proto2.TestAllTypes.RepeatedGroup.prototype.clearA = function() {3433this.clear$Field(47);3434};3435343634373438/**3439* Message TestDefaultParent.3440* @constructor3441* @extends {goog.proto2.Message}3442* @final3443*/3444proto2.TestDefaultParent = function() {3445goog.proto2.Message.call(this);3446};3447goog.inherits(proto2.TestDefaultParent, goog.proto2.Message);344834493450/**3451* Descriptor for this message, deserialized lazily in getDescriptor().3452* @private {?goog.proto2.Descriptor}3453*/3454proto2.TestDefaultParent.descriptor_ = null;345534563457/**3458* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.3459* @return {!proto2.TestDefaultParent} The cloned message.3460* @override3461*/3462proto2.TestDefaultParent.prototype.clone;346334643465/**3466* Gets the value of the child field.3467* @return {?proto2.TestDefaultChild} The value.3468*/3469proto2.TestDefaultParent.prototype.getChild = function() {3470return /** @type {?proto2.TestDefaultChild} */ (this.get$Value(1));3471};347234733474/**3475* Gets the value of the child field or the default value if not set.3476* @return {!proto2.TestDefaultChild} The value.3477*/3478proto2.TestDefaultParent.prototype.getChildOrDefault = function() {3479return /** @type {!proto2.TestDefaultChild} */ (this.get$ValueOrDefault(1));3480};348134823483/**3484* Sets the value of the child field.3485* @param {!proto2.TestDefaultChild} value The value.3486*/3487proto2.TestDefaultParent.prototype.setChild = function(value) {3488this.set$Value(1, value);3489};349034913492/**3493* @return {boolean} Whether the child field has a value.3494*/3495proto2.TestDefaultParent.prototype.hasChild = function() {3496return this.has$Value(1);3497};349834993500/**3501* @return {number} The number of values in the child field.3502*/3503proto2.TestDefaultParent.prototype.childCount = function() {3504return this.count$Values(1);3505};350635073508/**3509* Clears the values in the child field.3510*/3511proto2.TestDefaultParent.prototype.clearChild = function() {3512this.clear$Field(1);3513};3514351535163517/**3518* Message TestDefaultChild.3519* @constructor3520* @extends {goog.proto2.Message}3521* @final3522*/3523proto2.TestDefaultChild = function() {3524goog.proto2.Message.call(this);3525};3526goog.inherits(proto2.TestDefaultChild, goog.proto2.Message);352735283529/**3530* Descriptor for this message, deserialized lazily in getDescriptor().3531* @private {?goog.proto2.Descriptor}3532*/3533proto2.TestDefaultChild.descriptor_ = null;353435353536/**3537* Overrides {@link goog.proto2.Message#clone} to specify its exact return type.3538* @return {!proto2.TestDefaultChild} The cloned message.3539* @override3540*/3541proto2.TestDefaultChild.prototype.clone;354235433544/**3545* Gets the value of the foo field.3546* @return {?boolean} The value.3547*/3548proto2.TestDefaultChild.prototype.getFoo = function() {3549return /** @type {?boolean} */ (this.get$Value(1));3550};355135523553/**3554* Gets the value of the foo field or the default value if not set.3555* @return {boolean} The value.3556*/3557proto2.TestDefaultChild.prototype.getFooOrDefault = function() {3558return /** @type {boolean} */ (this.get$ValueOrDefault(1));3559};356035613562/**3563* Sets the value of the foo field.3564* @param {boolean} value The value.3565*/3566proto2.TestDefaultChild.prototype.setFoo = function(value) {3567this.set$Value(1, value);3568};356935703571/**3572* @return {boolean} Whether the foo field has a value.3573*/3574proto2.TestDefaultChild.prototype.hasFoo = function() {3575return this.has$Value(1);3576};357735783579/**3580* @return {number} The number of values in the foo field.3581*/3582proto2.TestDefaultChild.prototype.fooCount = function() {3583return this.count$Values(1);3584};358535863587/**3588* Clears the values in the foo field.3589*/3590proto2.TestDefaultChild.prototype.clearFoo = function() {3591this.clear$Field(1);3592};359335943595/** @override */3596proto2.TestAllTypes.prototype.getDescriptor = function() {3597var descriptor = proto2.TestAllTypes.descriptor_;3598if (!descriptor) {3599// The descriptor is created lazily when we instantiate a new instance.3600var descriptorObj = {36010: {3602name: 'TestAllTypes',3603fullName: 'TestAllTypes'3604},36051: {3606name: 'optional_int32',3607fieldType: goog.proto2.Message.FieldType.INT32,3608type: Number3609},36102: {3611name: 'optional_int64',3612fieldType: goog.proto2.Message.FieldType.INT64,3613defaultValue: '1',3614type: String3615},36163: {3617name: 'optional_uint32',3618fieldType: goog.proto2.Message.FieldType.UINT32,3619type: Number3620},36214: {3622name: 'optional_uint64',3623fieldType: goog.proto2.Message.FieldType.UINT64,3624type: String3625},36265: {3627name: 'optional_sint32',3628fieldType: goog.proto2.Message.FieldType.SINT32,3629type: Number3630},36316: {3632name: 'optional_sint64',3633fieldType: goog.proto2.Message.FieldType.SINT64,3634type: String3635},36367: {3637name: 'optional_fixed32',3638fieldType: goog.proto2.Message.FieldType.FIXED32,3639type: Number3640},36418: {3642name: 'optional_fixed64',3643fieldType: goog.proto2.Message.FieldType.FIXED64,3644type: String3645},36469: {3647name: 'optional_sfixed32',3648fieldType: goog.proto2.Message.FieldType.SFIXED32,3649type: Number3650},365110: {3652name: 'optional_sfixed64',3653fieldType: goog.proto2.Message.FieldType.SFIXED64,3654type: String3655},365611: {3657name: 'optional_float',3658fieldType: goog.proto2.Message.FieldType.FLOAT,3659defaultValue: 1.5,3660type: Number3661},366212: {3663name: 'optional_double',3664fieldType: goog.proto2.Message.FieldType.DOUBLE,3665type: Number3666},366713: {3668name: 'optional_bool',3669fieldType: goog.proto2.Message.FieldType.BOOL,3670type: Boolean3671},367214: {3673name: 'optional_string',3674fieldType: goog.proto2.Message.FieldType.STRING,3675type: String3676},367715: {3678name: 'optional_bytes',3679fieldType: goog.proto2.Message.FieldType.BYTES,3680defaultValue: 'moo',3681type: String3682},368316: {3684name: 'optionalgroup',3685fieldType: goog.proto2.Message.FieldType.GROUP,3686type: proto2.TestAllTypes.OptionalGroup3687},368818: {3689name: 'optional_nested_message',3690fieldType: goog.proto2.Message.FieldType.MESSAGE,3691type: proto2.TestAllTypes.NestedMessage3692},369321: {3694name: 'optional_nested_enum',3695fieldType: goog.proto2.Message.FieldType.ENUM,3696defaultValue: proto2.TestAllTypes.NestedEnum.FOO,3697type: proto2.TestAllTypes.NestedEnum3698},369950: {3700name: 'optional_int64_number',3701fieldType: goog.proto2.Message.FieldType.INT64,3702defaultValue: 1000000000000000001,3703type: Number3704},370551: {3706name: 'optional_int64_string',3707fieldType: goog.proto2.Message.FieldType.INT64,3708defaultValue: '1000000000000000001',3709type: String3710},371131: {3712name: 'repeated_int32',3713repeated: true,3714fieldType: goog.proto2.Message.FieldType.INT32,3715type: Number3716},371732: {3718name: 'repeated_int64',3719repeated: true,3720fieldType: goog.proto2.Message.FieldType.INT64,3721type: String3722},372333: {3724name: 'repeated_uint32',3725repeated: true,3726fieldType: goog.proto2.Message.FieldType.UINT32,3727type: Number3728},372934: {3730name: 'repeated_uint64',3731repeated: true,3732fieldType: goog.proto2.Message.FieldType.UINT64,3733type: String3734},373535: {3736name: 'repeated_sint32',3737repeated: true,3738fieldType: goog.proto2.Message.FieldType.SINT32,3739type: Number3740},374136: {3742name: 'repeated_sint64',3743repeated: true,3744fieldType: goog.proto2.Message.FieldType.SINT64,3745type: String3746},374737: {3748name: 'repeated_fixed32',3749repeated: true,3750fieldType: goog.proto2.Message.FieldType.FIXED32,3751type: Number3752},375338: {3754name: 'repeated_fixed64',3755repeated: true,3756fieldType: goog.proto2.Message.FieldType.FIXED64,3757type: String3758},375939: {3760name: 'repeated_sfixed32',3761repeated: true,3762fieldType: goog.proto2.Message.FieldType.SFIXED32,3763type: Number3764},376540: {3766name: 'repeated_sfixed64',3767repeated: true,3768fieldType: goog.proto2.Message.FieldType.SFIXED64,3769type: String3770},377141: {3772name: 'repeated_float',3773repeated: true,3774fieldType: goog.proto2.Message.FieldType.FLOAT,3775type: Number3776},377742: {3778name: 'repeated_double',3779repeated: true,3780fieldType: goog.proto2.Message.FieldType.DOUBLE,3781type: Number3782},378343: {3784name: 'repeated_bool',3785repeated: true,3786fieldType: goog.proto2.Message.FieldType.BOOL,3787type: Boolean3788},378944: {3790name: 'repeated_string',3791repeated: true,3792fieldType: goog.proto2.Message.FieldType.STRING,3793type: String3794},379545: {3796name: 'repeated_bytes',3797repeated: true,3798fieldType: goog.proto2.Message.FieldType.BYTES,3799type: String3800},380146: {3802name: 'repeatedgroup',3803repeated: true,3804fieldType: goog.proto2.Message.FieldType.GROUP,3805type: proto2.TestAllTypes.RepeatedGroup3806},380748: {3808name: 'repeated_nested_message',3809repeated: true,3810fieldType: goog.proto2.Message.FieldType.MESSAGE,3811type: proto2.TestAllTypes.NestedMessage3812},381349: {3814name: 'repeated_nested_enum',3815repeated: true,3816fieldType: goog.proto2.Message.FieldType.ENUM,3817defaultValue: proto2.TestAllTypes.NestedEnum.FOO,3818type: proto2.TestAllTypes.NestedEnum3819},382052: {3821name: 'repeated_int64_number',3822repeated: true,3823fieldType: goog.proto2.Message.FieldType.INT64,3824type: Number3825},382653: {3827name: 'repeated_int64_string',3828repeated: true,3829fieldType: goog.proto2.Message.FieldType.INT64,3830type: String3831},383254: {3833name: 'packed_int32',3834repeated: true,3835packed: true,3836fieldType: goog.proto2.Message.FieldType.INT32,3837type: Number3838},383955: {3840name: 'packed_int64',3841repeated: true,3842packed: true,3843fieldType: goog.proto2.Message.FieldType.INT64,3844type: Number3845},384656: {3847name: 'packed_uint32',3848repeated: true,3849packed: true,3850fieldType: goog.proto2.Message.FieldType.UINT32,3851type: Number3852},385357: {3854name: 'packed_uint64',3855repeated: true,3856packed: true,3857fieldType: goog.proto2.Message.FieldType.UINT64,3858type: Number3859},386058: {3861name: 'packed_sint32',3862repeated: true,3863packed: true,3864fieldType: goog.proto2.Message.FieldType.SINT32,3865type: Number3866},386759: {3868name: 'packed_sint64',3869repeated: true,3870packed: true,3871fieldType: goog.proto2.Message.FieldType.SINT64,3872type: Number3873},387460: {3875name: 'packed_fixed32',3876repeated: true,3877packed: true,3878fieldType: goog.proto2.Message.FieldType.FIXED32,3879type: Number3880},388161: {3882name: 'packed_fixed64',3883repeated: true,3884packed: true,3885fieldType: goog.proto2.Message.FieldType.FIXED64,3886type: Number3887},388862: {3889name: 'packed_sfixed32',3890repeated: true,3891packed: true,3892fieldType: goog.proto2.Message.FieldType.SFIXED32,3893type: Number3894},389563: {3896name: 'packed_sfixed64',3897repeated: true,3898packed: true,3899fieldType: goog.proto2.Message.FieldType.SFIXED64,3900type: Number3901},390264: {3903name: 'packed_float',3904repeated: true,3905packed: true,3906fieldType: goog.proto2.Message.FieldType.FLOAT,3907type: Number3908},390965: {3910name: 'packed_double',3911repeated: true,3912packed: true,3913fieldType: goog.proto2.Message.FieldType.DOUBLE,3914type: Number3915},391666: {3917name: 'packed_bool',3918repeated: true,3919packed: true,3920fieldType: goog.proto2.Message.FieldType.BOOL,3921type: Boolean3922}3923};3924proto2.TestAllTypes.descriptor_ = descriptor =3925goog.proto2.Message.createDescriptor(3926proto2.TestAllTypes, descriptorObj);3927}3928return descriptor;3929};393039313932/** @nocollapse */3933proto2.TestAllTypes.getDescriptor =3934proto2.TestAllTypes.prototype.getDescriptor;393539363937/** @override */3938proto2.TestAllTypes.NestedMessage.prototype.getDescriptor = function() {3939var descriptor = proto2.TestAllTypes.NestedMessage.descriptor_;3940if (!descriptor) {3941// The descriptor is created lazily when we instantiate a new instance.3942var descriptorObj = {39430: {3944name: 'NestedMessage',3945containingType: proto2.TestAllTypes,3946fullName: 'TestAllTypes.NestedMessage'3947},39481: {3949name: 'b',3950fieldType: goog.proto2.Message.FieldType.INT32,3951type: Number3952},39532: {3954name: 'c',3955fieldType: goog.proto2.Message.FieldType.INT32,3956type: Number3957}3958};3959proto2.TestAllTypes.NestedMessage.descriptor_ = descriptor =3960goog.proto2.Message.createDescriptor(3961proto2.TestAllTypes.NestedMessage, descriptorObj);3962}3963return descriptor;3964};396539663967/** @nocollapse */3968proto2.TestAllTypes.NestedMessage.getDescriptor =3969proto2.TestAllTypes.NestedMessage.prototype.getDescriptor;397039713972/** @override */3973proto2.TestAllTypes.OptionalGroup.prototype.getDescriptor = function() {3974var descriptor = proto2.TestAllTypes.OptionalGroup.descriptor_;3975if (!descriptor) {3976// The descriptor is created lazily when we instantiate a new instance.3977var descriptorObj = {39780: {3979name: 'OptionalGroup',3980containingType: proto2.TestAllTypes,3981fullName: 'TestAllTypes.OptionalGroup'3982},398317: {3984name: 'a',3985fieldType: goog.proto2.Message.FieldType.INT32,3986type: Number3987}3988};3989proto2.TestAllTypes.OptionalGroup.descriptor_ = descriptor =3990goog.proto2.Message.createDescriptor(3991proto2.TestAllTypes.OptionalGroup, descriptorObj);3992}3993return descriptor;3994};399539963997/** @nocollapse */3998proto2.TestAllTypes.OptionalGroup.getDescriptor =3999proto2.TestAllTypes.OptionalGroup.prototype.getDescriptor;400040014002/** @override */4003proto2.TestAllTypes.RepeatedGroup.prototype.getDescriptor = function() {4004var descriptor = proto2.TestAllTypes.RepeatedGroup.descriptor_;4005if (!descriptor) {4006// The descriptor is created lazily when we instantiate a new instance.4007var descriptorObj = {40080: {4009name: 'RepeatedGroup',4010containingType: proto2.TestAllTypes,4011fullName: 'TestAllTypes.RepeatedGroup'4012},401347: {4014name: 'a',4015repeated: true,4016fieldType: goog.proto2.Message.FieldType.INT32,4017type: Number4018}4019};4020proto2.TestAllTypes.RepeatedGroup.descriptor_ = descriptor =4021goog.proto2.Message.createDescriptor(4022proto2.TestAllTypes.RepeatedGroup, descriptorObj);4023}4024return descriptor;4025};402640274028/** @nocollapse */4029proto2.TestAllTypes.RepeatedGroup.getDescriptor =4030proto2.TestAllTypes.RepeatedGroup.prototype.getDescriptor;403140324033/** @override */4034proto2.TestDefaultParent.prototype.getDescriptor = function() {4035var descriptor = proto2.TestDefaultParent.descriptor_;4036if (!descriptor) {4037// The descriptor is created lazily when we instantiate a new instance.4038var descriptorObj = {40390: {4040name: 'TestDefaultParent',4041fullName: 'TestDefaultParent'4042},40431: {4044name: 'child',4045fieldType: goog.proto2.Message.FieldType.MESSAGE,4046type: proto2.TestDefaultChild4047}4048};4049proto2.TestDefaultParent.descriptor_ = descriptor =4050goog.proto2.Message.createDescriptor(4051proto2.TestDefaultParent, descriptorObj);4052}4053return descriptor;4054};405540564057/** @nocollapse */4058proto2.TestDefaultParent.getDescriptor =4059proto2.TestDefaultParent.prototype.getDescriptor;406040614062/** @override */4063proto2.TestDefaultChild.prototype.getDescriptor = function() {4064var descriptor = proto2.TestDefaultChild.descriptor_;4065if (!descriptor) {4066// The descriptor is created lazily when we instantiate a new instance.4067var descriptorObj = {40680: {4069name: 'TestDefaultChild',4070fullName: 'TestDefaultChild'4071},40721: {4073name: 'foo',4074fieldType: goog.proto2.Message.FieldType.BOOL,4075defaultValue: true,4076type: Boolean4077}4078};4079proto2.TestDefaultChild.descriptor_ = descriptor =4080goog.proto2.Message.createDescriptor(4081proto2.TestDefaultChild, descriptorObj);4082}4083return descriptor;4084};408540864087/** @nocollapse */4088proto2.TestDefaultChild.getDescriptor =4089proto2.TestDefaultChild.prototype.getDescriptor;409040914092