UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,484 lines (1,225 loc) 89.9 kB
// source: cosmos/distribution/v1beta1/distribution.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = function () { return this || window || global || self || Function('return this')(); }.call(null); var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js'); goog.object.extend(proto, gogoproto_gogo_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_pb); var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); goog.exportSymbol('proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.DelegationDelegatorReward', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.DelegatorStartingInfo', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.FeePool', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.Params', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorSlashEvent', null, global); goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorSlashEvents', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.Params = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.Params, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.Params.displayName = 'proto.cosmos.distribution.v1beta1.Params'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorSlashEvent, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorSlashEvent'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvents = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorSlashEvents.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorSlashEvents, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvents.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorSlashEvents'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.FeePool = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.FeePool.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.FeePool, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.FeePool.displayName = 'proto.cosmos.distribution.v1beta1.FeePool'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal.displayName = 'proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposal'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.DelegatorStartingInfo = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.DelegatorStartingInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.DelegatorStartingInfo.displayName = 'proto.cosmos.distribution.v1beta1.DelegatorStartingInfo'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.DelegationDelegatorReward = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.DelegationDelegatorReward.repeatedFields_, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.DelegationDelegatorReward, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.DelegationDelegatorReward.displayName = 'proto.cosmos.distribution.v1beta1.DelegationDelegatorReward'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit.displayName = 'proto.cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit'; } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.Params.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.Params.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.Params} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.Params.toObject = function (includeInstance, msg) { var f, obj = { communityTax: jspb.Message.getFieldWithDefault(msg, 1, ""), baseProposerReward: jspb.Message.getFieldWithDefault(msg, 2, ""), bonusProposerReward: jspb.Message.getFieldWithDefault(msg, 3, ""), withdrawAddrEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.Params} */ proto.cosmos.distribution.v1beta1.Params.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.Params(); return proto.cosmos.distribution.v1beta1.Params.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.Params} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.Params} */ proto.cosmos.distribution.v1beta1.Params.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ reader.readString(); msg.setCommunityTax(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setBaseProposerReward(value); break; case 3: var value = /** @type {string} */ reader.readString(); msg.setBonusProposerReward(value); break; case 4: var value = /** @type {boolean} */ reader.readBool(); msg.setWithdrawAddrEnabled(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.Params.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.Params.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.Params} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.Params.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getCommunityTax(); if (f.length > 0) { writer.writeString(1, f); } f = message.getBaseProposerReward(); if (f.length > 0) { writer.writeString(2, f); } f = message.getBonusProposerReward(); if (f.length > 0) { writer.writeString(3, f); } f = message.getWithdrawAddrEnabled(); if (f) { writer.writeBool(4, f); } }; /** * optional string community_tax = 1; * @return {string} */ proto.cosmos.distribution.v1beta1.Params.prototype.getCommunityTax = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "") ); }; /** * @param {string} value * @return {!proto.cosmos.distribution.v1beta1.Params} returns this */ proto.cosmos.distribution.v1beta1.Params.prototype.setCommunityTax = function (value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string base_proposer_reward = 2; * @return {string} */ proto.cosmos.distribution.v1beta1.Params.prototype.getBaseProposerReward = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.cosmos.distribution.v1beta1.Params} returns this */ proto.cosmos.distribution.v1beta1.Params.prototype.setBaseProposerReward = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string bonus_proposer_reward = 3; * @return {string} */ proto.cosmos.distribution.v1beta1.Params.prototype.getBonusProposerReward = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 3, "") ); }; /** * @param {string} value * @return {!proto.cosmos.distribution.v1beta1.Params} returns this */ proto.cosmos.distribution.v1beta1.Params.prototype.setBonusProposerReward = function (value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional bool withdraw_addr_enabled = 4; * @return {boolean} */ proto.cosmos.distribution.v1beta1.Params.prototype.getWithdrawAddrEnabled = function () { return ( /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(this, 4, false) ); }; /** * @param {boolean} value * @return {!proto.cosmos.distribution.v1beta1.Params} returns this */ proto.cosmos.distribution.v1beta1.Params.prototype.setWithdrawAddrEnabled = function (value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.toObject = function (includeInstance, msg) { var f, obj = { cumulativeRewardRatioList: jspb.Message.toObjectList(msg.getCumulativeRewardRatioList(), cosmos_base_v1beta1_coin_pb.DecCoin.toObject, includeInstance), referenceCount: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards(); return proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_base_v1beta1_coin_pb.DecCoin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader); msg.addCumulativeRewardRatio(value); break; case 2: var value = /** @type {number} */ reader.readUint32(); msg.setReferenceCount(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getCumulativeRewardRatioList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter); } f = message.getReferenceCount(); if (f !== 0) { writer.writeUint32(2, f); } }; /** * repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1; * @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.getCumulativeRewardRatioList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 1) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.setCumulativeRewardRatioList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.DecCoin} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.addCumulativeRewardRatio = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.clearCumulativeRewardRatioList = function () { return this.setCumulativeRewardRatioList([]); }; /** * optional uint32 reference_count = 2; * @return {number} */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.getReferenceCount = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 2, 0) ); }; /** * @param {number} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards.prototype.setReferenceCount = function (value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.toObject = function (includeInstance, msg) { var f, obj = { rewardsList: jspb.Message.toObjectList(msg.getRewardsList(), cosmos_base_v1beta1_coin_pb.DecCoin.toObject, includeInstance), period: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards(); return proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_base_v1beta1_coin_pb.DecCoin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader); msg.addRewards(value); break; case 2: var value = /** @type {number} */ reader.readUint64(); msg.setPeriod(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getRewardsList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter); } f = message.getPeriod(); if (f !== 0) { writer.writeUint64(2, f); } }; /** * repeated cosmos.base.v1beta1.DecCoin rewards = 1; * @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.getRewardsList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 1) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.setRewardsList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.DecCoin} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.addRewards = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.clearRewardsList = function () { return this.setRewardsList([]); }; /** * optional uint64 period = 2; * @return {number} */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.getPeriod = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 2, 0) ); }; /** * @param {number} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards.prototype.setPeriod = function (value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.toObject = function (includeInstance, msg) { var f, obj = { commissionList: jspb.Message.toObjectList(msg.getCommissionList(), cosmos_base_v1beta1_coin_pb.DecCoin.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission(); return proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_base_v1beta1_coin_pb.DecCoin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader); msg.addCommission(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getCommissionList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter); } }; /** * repeated cosmos.base.v1beta1.DecCoin commission = 1; * @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.getCommissionList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 1) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} returns this */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.setCommissionList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.DecCoin} */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.addCommission = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} returns this */ proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission.prototype.clearCommissionList = function () { return this.setCommissionList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.toObject = function (includeInstance, msg) { var f, obj = { rewardsList: jspb.Message.toObjectList(msg.getRewardsList(), cosmos_base_v1beta1_coin_pb.DecCoin.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards(); return proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_base_v1beta1_coin_pb.DecCoin(); reader.readMessage(value, cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader); msg.addRewards(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getRewardsList(); if (f.length > 0) { writer.writeRepeatedMessage(1, f, cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter); } }; /** * repeated cosmos.base.v1beta1.DecCoin rewards = 1; * @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.getRewardsList = function () { return ( /** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 1) ); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.setRewardsList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.DecCoin} */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.addRewards = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} returns this */ proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards.prototype.clearRewardsList = function () { return this.setRewardsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.toObject = function (includeInstance, msg) { var f, obj = { validatorPeriod: jspb.Message.getFieldWithDefault(msg, 1, 0), fraction: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.distribution.v1beta1.ValidatorSlashEvent(); return proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ reader.readUint64(); msg.setValidatorPeriod(value); break; case 2: var value = /** @type {string} */ reader.readString(); msg.setFraction(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter(); proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.serializeBinaryToWriter = function (message, writer) { var f = undefined; f = message.getValidatorPeriod(); if (f !== 0) { writer.writeUint64(1, f); } f = message.getFraction(); if (f.length > 0) { writer.writeString(2, f); } }; /** * optional uint64 validator_period = 1; * @return {number} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.getValidatorPeriod = function () { return ( /** @type {number} */ jspb.Message.getFieldWithDefault(this, 1, 0) ); }; /** * @param {number} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} returns this */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.setValidatorPeriod = function (value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string fraction = 2; * @return {string} */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.getFraction = function () { return ( /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "") ); }; /** * @param {string} value * @return {!proto.cosmos.distribution.v1beta1.ValidatorSlashEvent} returns this */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvent.prototype.setFraction = function (value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.distribution.v1beta1.ValidatorSlashEvents.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.