@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
1,356 lines (1,128 loc) • 119 kB
JavaScript
"use strict";
// source: cosmos/distribution/v1beta1/query.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 cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js');
goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_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.QueryCommunityPoolRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryCommunityPoolResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegationRewardsRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryParamsRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryParamsResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorSlashesRequest', null, global);
goog.exportSymbol('proto.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse', 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.QueryParamsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryParamsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryParamsRequest';
}
/**
* 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.QueryParamsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryParamsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryParamsResponse';
}
/**
* 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.QueryValidatorOutstandingRewardsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest';
}
/**
* 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.QueryValidatorOutstandingRewardsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse';
}
/**
* 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.QueryValidatorCommissionRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest';
}
/**
* 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.QueryValidatorCommissionResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse';
}
/**
* 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.QueryValidatorSlashesRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorSlashesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorSlashesRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorSlashesRequest';
}
/**
* 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.QueryValidatorSlashesResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryValidatorSlashesResponse';
}
/**
* 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.QueryDelegationRewardsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegationRewardsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegationRewardsRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegationRewardsRequest';
}
/**
* 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.QueryDelegationRewardsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegationRewardsResponse';
}
/**
* 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.QueryDelegationTotalRewardsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest';
}
/**
* 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.QueryDelegationTotalRewardsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse';
}
/**
* 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.QueryDelegatorValidatorsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest';
}
/**
* 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.QueryDelegatorValidatorsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse';
}
/**
* 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.QueryDelegatorWithdrawAddressRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest';
}
/**
* 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.QueryDelegatorWithdrawAddressResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse';
}
/**
* 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.QueryCommunityPoolRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryCommunityPoolRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryCommunityPoolRequest.displayName = 'proto.cosmos.distribution.v1beta1.QueryCommunityPoolRequest';
}
/**
* 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.QueryCommunityPoolResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.distribution.v1beta1.QueryCommunityPoolResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.distribution.v1beta1.QueryCommunityPoolResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryCommunityPoolResponse.displayName = 'proto.cosmos.distribution.v1beta1.QueryCommunityPoolResponse';
}
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.QueryParamsRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryParamsRequest.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.QueryParamsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.toObject = function (includeInstance, msg) {
var f,
obj = {};
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.QueryParamsRequest}
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryParamsRequest();
return proto.cosmos.distribution.v1beta1.QueryParamsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryParamsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryParamsRequest}
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryParamsRequest.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.QueryParamsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryParamsRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
};
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.QueryParamsResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryParamsResponse.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.QueryParamsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
params: (f = msg.getParams()) && cosmos_distribution_v1beta1_distribution_pb.Params.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.QueryParamsResponse}
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryParamsResponse();
return proto.cosmos.distribution.v1beta1.QueryParamsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryParamsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryParamsResponse}
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_distribution_v1beta1_distribution_pb.Params();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.Params.deserializeBinaryFromReader);
msg.setParams(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryParamsResponse.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.QueryParamsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getParams();
if (f != null) {
writer.writeMessage(1, f, cosmos_distribution_v1beta1_distribution_pb.Params.serializeBinaryToWriter);
}
};
/**
* optional Params params = 1;
* @return {?proto.cosmos.distribution.v1beta1.Params}
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.prototype.getParams = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.Params} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.Params, 1)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.Params|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.QueryParamsResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.prototype.setParams = function (value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.QueryParamsResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.prototype.clearParams = function () {
return this.setParams(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.QueryParamsResponse.prototype.hasParams = function () {
return jspb.Message.getField(this, 1) != 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.QueryValidatorOutstandingRewardsRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.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.QueryValidatorOutstandingRewardsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, "")
};
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.QueryValidatorOutstandingRewardsRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest();
return proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.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.QueryValidatorOutstandingRewardsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
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.QueryValidatorOutstandingRewardsResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.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.QueryValidatorOutstandingRewardsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
rewards: (f = msg.getRewards()) && cosmos_distribution_v1beta1_distribution_pb.ValidatorOutstandingRewards.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.QueryValidatorOutstandingRewardsResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse();
return proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_distribution_v1beta1_distribution_pb.ValidatorOutstandingRewards();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.ValidatorOutstandingRewards.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.QueryValidatorOutstandingRewardsResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.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.QueryValidatorOutstandingRewardsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getRewards();
if (f != null) {
writer.writeMessage(1, f, cosmos_distribution_v1beta1_distribution_pb.ValidatorOutstandingRewards.serializeBinaryToWriter);
}
};
/**
* optional ValidatorOutstandingRewards rewards = 1;
* @return {?proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.prototype.getRewards = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.ValidatorOutstandingRewards, 1)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.ValidatorOutstandingRewards|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.prototype.setRewards = function (value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.prototype.clearRewards = function () {
return this.setRewards(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse.prototype.hasRewards = function () {
return jspb.Message.getField(this, 1) != 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.QueryValidatorCommissionRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.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.QueryValidatorCommissionRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.toObject = function (includeInstance, msg) {
var f,
obj = {
validatorAddress: jspb.Message.getFieldWithDefault(msg, 1, "")
};
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.QueryValidatorCommissionRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest();
return proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.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;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.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.QueryValidatorCommissionRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getValidatorAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string validator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.prototype.getValidatorAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionRequest.prototype.setValidatorAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
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.QueryValidatorCommissionResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.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.QueryValidatorCommissionResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
commission: (f = msg.getCommission()) && 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.QueryValidatorCommissionResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse();
return proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission();
reader.readMessage(value, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission.deserializeBinaryFromReader);
msg.setCommission(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.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.QueryValidatorCommissionResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getCommission();
if (f != null) {
writer.writeMessage(1, f, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission.serializeBinaryToWriter);
}
};
/**
* optional ValidatorAccumulatedCommission commission = 1;
* @return {?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.prototype.getCommission = function () {
return (
/** @type{?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission} */
jspb.Message.getWrapperField(this, cosmos_distribution_v1beta1_distribution_pb.ValidatorAccumulatedCommission, 1)
);
};
/**
* @param {?proto.cosmos.distribution.v1beta1.ValidatorAccumulatedCommission|undefined} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.prototype.setCommission = function (value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.prototype.clearCommission = function () {
return this.setCommission(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorCommissionResponse.prototype.hasCommission = function () {
return jspb.Message.getField(this, 1) != 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.QueryValidatorSlashesRequest.prototype.toObject = function (opt_includeInstance) {