@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
1,445 lines (1,190 loc) • 81.4 kB
JavaScript
"use strict";
// source: cosmos/distribution/v1beta1/genesis.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_distribution_v1beta1_distribution_pb = require('../../../cosmos/distribution/v1beta1/distribution_pb.js');
goog.object.extend(proto, cosmos_distribution_v1beta1_distribution_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.DelegatorStartingInfoRecord', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.GenesisState', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.ValidatorSlashEventRecord', 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.DelegatorWithdrawInfo = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.displayName = 'proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo';
}
/**
* 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.ValidatorOutstandingRewardsRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord';
}
/**
* 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.ValidatorAccumulatedCommissionRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord';
}
/**
* 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.ValidatorHistoricalRewardsRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord';
}
/**
* 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.ValidatorCurrentRewardsRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord';
}
/**
* 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.DelegatorStartingInfoRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.displayName = 'proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord';
}
/**
* 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.ValidatorSlashEventRecord = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.ValidatorSlashEventRecord, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.ValidatorSlashEventRecord.displayName = 'proto.cosmos.distribution.v1beta1.ValidatorSlashEventRecord';
}
/**
* 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.GenesisState = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.GenesisState.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.GenesisState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.GenesisState.displayName = 'proto.cosmos.distribution.v1beta1.GenesisState';
}
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.DelegatorWithdrawInfo.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.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.DelegatorWithdrawInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.toObject = function (includeInstance, msg) {
var f,
obj = {
delegatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
withdrawAddress: 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.DelegatorWithdrawInfo}
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo();
return proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo}
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.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.setDelegatorAddress(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setWithdrawAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.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.DelegatorWithdrawInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getDelegatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getWithdrawAddress();
if (f.length > 0) {
writer.writeString(2, f);
}
};
/**
* optional string delegator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.prototype.getDelegatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.prototype.setDelegatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string withdraw_address = 2;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.prototype.getWithdrawAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorWithdrawInfo.prototype.setWithdrawAddress = 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.ValidatorOutstandingRewardsRecord.repeatedFields_ = [2];
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.ValidatorOutstandingRewardsRecord.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.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.ValidatorOutstandingRewardsRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
outstandingRewardsList: jspb.Message.toObjectList(msg.getOutstandingRewardsList(), 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.ValidatorOutstandingRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord();
return proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.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.setValidatorAddress(value);
break;
case 2:
var value = new cosmos_base_v1beta1_coin_pb.DecCoin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader);
msg.addOutstandingRewards(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.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.ValidatorOutstandingRewardsRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getOutstandingRewardsList();
if (f.length > 0) {
writer.writeRepeatedMessage(2, f, cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2;
* @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.getOutstandingRewardsList = function () {
return (
/** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */
jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.DecCoin, 2)
);
};
/**
* @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.setOutstandingRewardsList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.DecCoin}
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.addOutstandingRewards = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.v1beta1.DecCoin, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord.prototype.clearOutstandingRewardsList = function () {
return this.setOutstandingRewardsList([]);
};
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.ValidatorAccumulatedCommissionRecord.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.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.ValidatorAccumulatedCommissionRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
accumulated: (f = msg.getAccumulated()) && cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission.toObject(includeInstance, f)
};
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.ValidatorAccumulatedCommissionRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord();
return proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.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.setValidatorAddress(value);
break;
case 2:
var value = new cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission.deserializeBinaryFromReader);
msg.setAccumulated(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.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.ValidatorAccumulatedCommissionRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getAccumulated();
if (f != null) {
writer.writeMessage(2, f, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission.serializeBinaryToWriter);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional ValidatorAccumulatedCommission accumulated = 2;
* @return {?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.getAccumulated = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission, 2)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.setAccumulated = function (value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.clearAccumulated = function () {
return this.setAccumulated(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord.prototype.hasAccumulated = function () {
return jspb.Message.getField(this, 2) != null;
};
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.ValidatorHistoricalRewardsRecord.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.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.ValidatorHistoricalRewardsRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
period: jspb.Message.getFieldWithDefault(msg, 2, 0),
rewards: (f = msg.getRewards()) && cosmos_distribution_v1beta1_distribution_pb.ValidatorHistoricalRewards.toObject(includeInstance, f)
};
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.ValidatorHistoricalRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord();
return proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.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.setValidatorAddress(value);
break;
case 2:
var value =
/** @type {number} */
reader.readUint64();
msg.setPeriod(value);
break;
case 3:
var value = new cosmos_distribution_v1beta1_distribution_pb.ValidatorHistoricalRewards();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.ValidatorHistoricalRewards.deserializeBinaryFromReader);
msg.setRewards(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.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.ValidatorHistoricalRewardsRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getPeriod();
if (f !== 0) {
writer.writeUint64(2, f);
}
f = message.getRewards();
if (f != null) {
writer.writeMessage(3, f, cosmos_distribution_v1beta1_distribution_pb.ValidatorHistoricalRewards.serializeBinaryToWriter);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional uint64 period = 2;
* @return {number}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.getPeriod = function () {
return (
/** @type {number} */
jspb.Message.getFieldWithDefault(this, 2, 0)
);
};
/**
* @param {number} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.setPeriod = function (value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional ValidatorHistoricalRewards rewards = 3;
* @return {?proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.getRewards = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.ValidatorHistoricalRewards, 3)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewards|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.setRewards = function (value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.clearRewards = function () {
return this.setRewards(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord.prototype.hasRewards = function () {
return jspb.Message.getField(this, 3) != null;
};
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.ValidatorCurrentRewardsRecord.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.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.ValidatorCurrentRewardsRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
rewards: (f = msg.getRewards()) && cosmos_distribution_v1beta1_distribution_pb.ValidatorCurrentRewards.toObject(includeInstance, f)
};
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.ValidatorCurrentRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord();
return proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.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.setValidatorAddress(value);
break;
case 2:
var value = new cosmos_distribution_v1beta1_distribution_pb.ValidatorCurrentRewards();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.ValidatorCurrentRewards.deserializeBinaryFromReader);
msg.setRewards(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.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.ValidatorCurrentRewardsRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getRewards();
if (f != null) {
writer.writeMessage(2, f, cosmos_distribution_v1beta1_distribution_pb.ValidatorCurrentRewards.serializeBinaryToWriter);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional ValidatorCurrentRewards rewards = 2;
* @return {?proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.getRewards = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.ValidatorCurrentRewards, 2)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.ValidatorCurrentRewards|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.setRewards = function (value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord} returns this
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.clearRewards = function () {
return this.setRewards(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord.prototype.hasRewards = function () {
return jspb.Message.getField(this, 2) != null;
};
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.DelegatorStartingInfoRecord.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.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.DelegatorStartingInfoRecord} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.toObject = function (includeInstance, msg) {
var f,
obj = {
delegatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
validatorAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
startingInfo: (f = msg.getStartingInfo()) && cosmos_distribution_v1beta1_distribution_pb.DelegatorStartingInfo.toObject(includeInstance, f)
};
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.DelegatorStartingInfoRecord}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord();
return proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.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.setDelegatorAddress(value);
break;
case 2:
var value =
/** @type {string} */
reader.readString();
msg.setValidatorAddress(value);
break;
case 3:
var value = new cosmos_distribution_v1beta1_distribution_pb.DelegatorStartingInfo();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.DelegatorStartingInfo.deserializeBinaryFromReader);
msg.setStartingInfo(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.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.DelegatorStartingInfoRecord} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getDelegatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getStartingInfo();
if (f != null) {
writer.writeMessage(3, f, cosmos_distribution_v1beta1_distribution_pb.DelegatorStartingInfo.serializeBinaryToWriter);
}
};
/**
* optional string delegator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.getDelegatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.setDelegatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string validator_address = 2;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional DelegatorStartingInfo starting_info = 3;
* @return {?proto.cosmos.distribution.v1beta1.DelegatorStartingInfo}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.getStartingInfo = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.DelegatorStartingInfo} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.DelegatorStartingInfo, 3)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.DelegatorStartingInfo|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.setStartingInfo = function (value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord} returns this
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.clearStartingInfo = function () {
return this.setStartingInfo(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.DelegatorStartingInfoRecord.prototype.hasStartingInfo = function () {
return jspb.Message.getField(this, 3) != null;
};
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.ValidatorSlashEventRecord.prototype