@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,528 lines (1,473 loc) • 140 kB
JavaScript
// 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')()
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)
var amino_amino_pb = require('../../../amino/amino_pb.js')
goog.object.extend(proto, amino_amino_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.QueryValidatorDistributionInfoRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse',
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.QueryValidatorDistributionInfoRequest =
function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.displayName =
'proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest'
}
/**
* 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.QueryValidatorDistributionInfoResponse =
function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse
.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.displayName =
'proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse'
}
/**
* 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.QueryValidatorDistributionInfoRequest.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.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.QueryValidatorDistributionInfoRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.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.QueryValidatorDistributionInfoRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest()
return proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.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.QueryValidatorDistributionInfoRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.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.QueryValidatorDistributionInfoRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.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.QueryValidatorDistributionInfoRequest.prototype.getValidatorAddress =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest.prototype.setValidatorAddress =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.repeatedFields_ =
[2, 3]
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.QueryValidatorDistributionInfoResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.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.QueryValidatorDistributionInfoResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.toObject =
function (includeInstance, msg) {
var f,
obj = {
operatorAddress: jspb.Message.getFieldWithDefault(msg, 1, ''),
selfBondRewardsList: jspb.Message.toObjectList(
msg.getSelfBondRewardsList(),
cosmos_base_v1beta1_coin_pb.DecCoin.toObject,
includeInstance,
),
commissionList: jspb.Message.toObjectList(
msg.getCommissionList(),
cosmos_base_v1beta1_coin_pb.DecCoin.toObject,
includeInstance,
),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg =
new proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse()
return proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.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.setOperatorAddress(value)
break
case 2:
var value = new cosmos_base_v1beta1_coin_pb.DecCoin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader,
)
msg.addSelfBondRewards(value)
break
case 3:
var value = new cosmos_base_v1beta1_coin_pb.DecCoin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.DecCoin.deserializeBinaryFromReader,
)
msg.addCommission(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.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.QueryValidatorDistributionInfoResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getOperatorAddress()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getSelfBondRewardsList()
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter,
)
}
f = message.getCommissionList()
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
cosmos_base_v1beta1_coin_pb.DecCoin.serializeBinaryToWriter,
)
}
}
/**
* optional string operator_address = 1;
* @return {string}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.getOperatorAddress =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.setOperatorAddress =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* repeated cosmos.base.v1beta1.DecCoin self_bond_rewards = 2;
* @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.getSelfBondRewardsList =
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.QueryValidatorDistributionInfoResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.setSelfBondRewardsList =
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.QueryValidatorDistributionInfoResponse.prototype.addSelfBondRewards =
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.QueryValidatorDistributionInfoResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.clearSelfBondRewardsList =
function () {
return this.setSelfBondRewardsList([])
}
/**
* repeated cosmos.base.v1beta1.DecCoin commission = 3;
* @return {!Array<!proto.cosmos.base.v1beta1.DecCoin>}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.getCommissionList =
function () {
return /** @type{!Array<!proto.cosmos.base.v1beta1.DecCoin>} */ (
jspb.Message.getRepeatedWrapperField(
this,
cosmos_base_v1beta1_coin_pb.DecCoin,
3,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.v1beta1.DecCoin>} value
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.setCommissionList =
function (value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value)
}
/**
* @param {!proto.cosmos.base.v1beta1.DecCoin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.DecCoin}
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.addCommission =
function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
3,
opt_value,
proto.cosmos.base.v1beta1.DecCoin,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse} returns this
*/
proto.cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse.prototype.clearCommissionList =
function () {
return this.setCommissionList([])
}
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 validato