@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,574 lines (1,516 loc) • 163 kB
JavaScript
// source: cosmos/bank/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_bank_v1beta1_bank_pb = require('../../../cosmos/bank/v1beta1/bank_pb.js')
goog.object.extend(proto, cosmos_bank_v1beta1_bank_pb)
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js')
goog.object.extend(proto, cosmos_proto_cosmos_pb)
var cosmos_query_v1_query_pb = require('../../../cosmos/query/v1/query_pb.js')
goog.object.extend(proto, cosmos_query_v1_query_pb)
var amino_amino_pb = require('../../../amino/amino_pb.js')
goog.object.extend(proto, amino_amino_pb)
goog.exportSymbol('proto.cosmos.bank.v1beta1.DenomOwner', null, global)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryAllBalancesRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryAllBalancesResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryBalanceRequest', null, global)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryBalanceResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomOwnersRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomOwnersResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsRequest', null, global)
goog.exportSymbol('proto.cosmos.bank.v1beta1.QueryParamsResponse', null, global)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySendEnabledRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySendEnabledResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySpendableBalancesResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySupplyOfRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QuerySupplyOfResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryTotalSupplyRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.bank.v1beta1.QueryTotalSupplyResponse',
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.bank.v1beta1.QueryBalanceRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryBalanceRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryBalanceRequest'
}
/**
* 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.bank.v1beta1.QueryBalanceResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryBalanceResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryBalanceResponse'
}
/**
* 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.bank.v1beta1.QueryAllBalancesRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryAllBalancesRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryAllBalancesRequest'
}
/**
* 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.bank.v1beta1.QueryAllBalancesResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryAllBalancesResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryAllBalancesResponse'
}
/**
* 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.bank.v1beta1.QuerySpendableBalancesRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.displayName =
'proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest'
}
/**
* 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.bank.v1beta1.QuerySpendableBalancesResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QuerySpendableBalancesResponse.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QuerySpendableBalancesResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalancesResponse.displayName =
'proto.cosmos.bank.v1beta1.QuerySpendableBalancesResponse'
}
/**
* 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.bank.v1beta1.QuerySpendableBalanceByDenomRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest.displayName =
'proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest'
}
/**
* 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.bank.v1beta1.QuerySpendableBalanceByDenomResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse.displayName =
'proto.cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse'
}
/**
* 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.bank.v1beta1.QueryTotalSupplyRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryTotalSupplyRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryTotalSupplyRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryTotalSupplyRequest'
}
/**
* 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.bank.v1beta1.QueryTotalSupplyResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QueryTotalSupplyResponse.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryTotalSupplyResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryTotalSupplyResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryTotalSupplyResponse'
}
/**
* 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.bank.v1beta1.QuerySupplyOfRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QuerySupplyOfRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySupplyOfRequest.displayName =
'proto.cosmos.bank.v1beta1.QuerySupplyOfRequest'
}
/**
* 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.bank.v1beta1.QuerySupplyOfResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QuerySupplyOfResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySupplyOfResponse.displayName =
'proto.cosmos.bank.v1beta1.QuerySupplyOfResponse'
}
/**
* 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.bank.v1beta1.QueryParamsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryParamsRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryParamsRequest.displayName =
'proto.cosmos.bank.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.bank.v1beta1.QueryParamsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryParamsResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryParamsResponse.displayName =
'proto.cosmos.bank.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.bank.v1beta1.QueryDenomsMetadataRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomsMetadataRequest'
}
/**
* 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.bank.v1beta1.QueryDenomsMetadataResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomsMetadataResponse'
}
/**
* 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.bank.v1beta1.QueryDenomMetadataRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomMetadataRequest'
}
/**
* 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.bank.v1beta1.QueryDenomMetadataResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomMetadataResponse'
}
/**
* 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.bank.v1beta1.QueryDenomOwnersRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomOwnersRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomOwnersRequest.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomOwnersRequest'
}
/**
* 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.bank.v1beta1.DenomOwner = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.bank.v1beta1.DenomOwner, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.DenomOwner.displayName =
'proto.cosmos.bank.v1beta1.DenomOwner'
}
/**
* 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.bank.v1beta1.QueryDenomOwnersResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QueryDenomOwnersResponse.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.bank.v1beta1.QueryDenomOwnersResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QueryDenomOwnersResponse.displayName =
'proto.cosmos.bank.v1beta1.QueryDenomOwnersResponse'
}
/**
* 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.bank.v1beta1.QuerySendEnabledRequest = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QuerySendEnabledRequest.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.bank.v1beta1.QuerySendEnabledRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySendEnabledRequest.displayName =
'proto.cosmos.bank.v1beta1.QuerySendEnabledRequest'
}
/**
* 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.bank.v1beta1.QuerySendEnabledResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.bank.v1beta1.QuerySendEnabledResponse.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.bank.v1beta1.QuerySendEnabledResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.bank.v1beta1.QuerySendEnabledResponse.displayName =
'proto.cosmos.bank.v1beta1.QuerySendEnabledResponse'
}
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.bank.v1beta1.QueryBalanceRequest.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.bank.v1beta1.QueryBalanceRequest.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.bank.v1beta1.QueryBalanceRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
denom: jspb.Message.getFieldWithDefault(msg, 2, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceRequest}
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.bank.v1beta1.QueryBalanceRequest()
return proto.cosmos.bank.v1beta1.QueryBalanceRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.bank.v1beta1.QueryBalanceRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceRequest}
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.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.setAddress(value)
break
case 2:
var value = /** @type {string} */ (reader.readString())
msg.setDenom(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.bank.v1beta1.QueryBalanceRequest.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.bank.v1beta1.QueryBalanceRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getAddress()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getDenom()
if (f.length > 0) {
writer.writeString(2, f)
}
}
/**
* optional string address = 1;
* @return {string}
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.prototype.getAddress =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceRequest} returns this
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.prototype.setAddress = function (
value,
) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional string denom = 2;
* @return {string}
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.prototype.getDenom = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceRequest} returns this
*/
proto.cosmos.bank.v1beta1.QueryBalanceRequest.prototype.setDenom = function (
value,
) {
return jspb.Message.setProto3StringField(this, 2, 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.bank.v1beta1.QueryBalanceResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.bank.v1beta1.QueryBalanceResponse.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.bank.v1beta1.QueryBalanceResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
balance:
(f = msg.getBalance()) &&
cosmos_base_v1beta1_coin_pb.Coin.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.bank.v1beta1.QueryBalanceResponse}
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.bank.v1beta1.QueryBalanceResponse()
return proto.cosmos.bank.v1beta1.QueryBalanceResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.bank.v1beta1.QueryBalanceResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceResponse}
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new cosmos_base_v1beta1_coin_pb.Coin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader,
)
msg.setBalance(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.bank.v1beta1.QueryBalanceResponse.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.bank.v1beta1.QueryBalanceResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getBalance()
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter,
)
}
}
/**
* optional cosmos.base.v1beta1.Coin balance = 1;
* @return {?proto.cosmos.base.v1beta1.Coin}
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.prototype.getBalance =
function () {
return /** @type{?proto.cosmos.base.v1beta1.Coin} */ (
jspb.Message.getWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 1)
)
}
/**
* @param {?proto.cosmos.base.v1beta1.Coin|undefined} value
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.prototype.setBalance = function (
value,
) {
return jspb.Message.setWrapperField(this, 1, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.bank.v1beta1.QueryBalanceResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.prototype.clearBalance =
function () {
return this.setBalance(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.bank.v1beta1.QueryBalanceResponse.prototype.hasBalance =
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.bank.v1beta1.QueryAllBalancesRequest.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.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.bank.v1beta1.QueryAllBalancesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.bank.v1beta1.QueryAllBalancesRequest}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.bank.v1beta1.QueryAllBalancesRequest()
return proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.bank.v1beta1.QueryAllBalancesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesRequest}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.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.setAddress(value)
break
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.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.bank.v1beta1.QueryAllBalancesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getAddress()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.serializeBinaryToWriter,
)
}
}
/**
* optional string address = 1;
* @return {string}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.getAddress =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesRequest} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.setAddress =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageRequest,
2,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesRequest} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesRequest} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesRequest.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.repeatedFields_ = [1]
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.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.bank.v1beta1.QueryAllBalancesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
balancesList: jspb.Message.toObjectList(
msg.getBalancesList(),
cosmos_base_v1beta1_coin_pb.Coin.toObject,
includeInstance,
),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.bank.v1beta1.QueryAllBalancesResponse}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.bank.v1beta1.QueryAllBalancesResponse()
return proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new cosmos_base_v1beta1_coin_pb.Coin()
reader.readMessage(
value,
cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader,
)
msg.addBalances(value)
break
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse()
reader.readMessage(
value,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.deserializeBinaryFromReader,
)
msg.setPagination(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.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.bank.v1beta1.QueryAllBalancesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getBalancesList()
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter,
)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.serializeBinaryToWriter,
)
}
}
/**
* repeated cosmos.base.v1beta1.Coin balances = 1;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.getBalancesList =
function () {
return /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ (
jspb.Message.getRepeatedWrapperField(
this,
cosmos_base_v1beta1_coin_pb.Coin,
1,
)
)
}
/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.setBalancesList =
function (value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value)
}
/**
* @param {!proto.cosmos.base.v1beta1.Coin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.addBalances =
function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
1,
opt_value,
proto.cosmos.base.v1beta1.Coin,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.clearBalancesList =
function () {
return this.setBalancesList([])
}
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageResponse,
2,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.bank.v1beta1.QueryAllBalancesResponse} returns this
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.bank.v1beta1.QueryAllBalancesResponse.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 2) != null
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.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.bank.v1beta1.QuerySpendableBalancesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
pagination:
(f = msg.getPagination()) &&
cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.bank.v1beta1.QuerySpendableBalancesRequest}
*/
proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest()
return proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.bank.v1beta1.QuerySpendableBalancesRequest} msg The message object to deser