@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,583 lines (1,519 loc) • 118 kB
JavaScript
// source: cosmos/auth/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_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
goog.object.extend(proto, google_protobuf_any_pb)
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js')
goog.object.extend(proto, google_api_annotations_pb)
var cosmos_auth_v1beta1_auth_pb = require('../../../cosmos/auth/v1beta1/auth_pb.js')
goog.object.extend(proto, cosmos_auth_v1beta1_auth_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)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.AddressBytesToStringRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.AddressBytesToStringResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.AddressStringToBytesRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.AddressStringToBytesResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.auth.v1beta1.Bech32PrefixRequest', null, global)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.Bech32PrefixResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountAddressByIDRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountAddressByIDResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountInfoRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountInfoResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.auth.v1beta1.QueryAccountRequest', null, global)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountsRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryAccountsResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryModuleAccountByNameRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryModuleAccountByNameResponse',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryModuleAccountsRequest',
null,
global,
)
goog.exportSymbol(
'proto.cosmos.auth.v1beta1.QueryModuleAccountsResponse',
null,
global,
)
goog.exportSymbol('proto.cosmos.auth.v1beta1.QueryParamsRequest', null, global)
goog.exportSymbol('proto.cosmos.auth.v1beta1.QueryParamsResponse', 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.auth.v1beta1.QueryAccountsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountsRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountsRequest'
}
/**
* 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.auth.v1beta1.QueryAccountsResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.auth.v1beta1.QueryAccountsResponse.repeatedFields_,
null,
)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountsResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountsResponse'
}
/**
* 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.auth.v1beta1.QueryAccountRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountRequest'
}
/**
* 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.auth.v1beta1.QueryAccountResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountResponse'
}
/**
* 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.auth.v1beta1.QueryParamsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryParamsRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryParamsRequest.displayName =
'proto.cosmos.auth.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.auth.v1beta1.QueryParamsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryParamsResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryParamsResponse.displayName =
'proto.cosmos.auth.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.auth.v1beta1.QueryModuleAccountsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryModuleAccountsRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryModuleAccountsRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryModuleAccountsRequest'
}
/**
* 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.auth.v1beta1.QueryModuleAccountsResponse = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.cosmos.auth.v1beta1.QueryModuleAccountsResponse.repeatedFields_,
null,
)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryModuleAccountsResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryModuleAccountsResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryModuleAccountsResponse'
}
/**
* 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.auth.v1beta1.QueryModuleAccountByNameRequest = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryModuleAccountByNameRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryModuleAccountByNameRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryModuleAccountByNameRequest'
}
/**
* 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.auth.v1beta1.QueryModuleAccountByNameResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryModuleAccountByNameResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryModuleAccountByNameResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryModuleAccountByNameResponse'
}
/**
* 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.auth.v1beta1.Bech32PrefixRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.Bech32PrefixRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.Bech32PrefixRequest.displayName =
'proto.cosmos.auth.v1beta1.Bech32PrefixRequest'
}
/**
* 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.auth.v1beta1.Bech32PrefixResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.Bech32PrefixResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.Bech32PrefixResponse.displayName =
'proto.cosmos.auth.v1beta1.Bech32PrefixResponse'
}
/**
* 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.auth.v1beta1.AddressBytesToStringRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.AddressBytesToStringRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.AddressBytesToStringRequest.displayName =
'proto.cosmos.auth.v1beta1.AddressBytesToStringRequest'
}
/**
* 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.auth.v1beta1.AddressBytesToStringResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.AddressBytesToStringResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.AddressBytesToStringResponse.displayName =
'proto.cosmos.auth.v1beta1.AddressBytesToStringResponse'
}
/**
* 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.auth.v1beta1.AddressStringToBytesRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.AddressStringToBytesRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.AddressStringToBytesRequest.displayName =
'proto.cosmos.auth.v1beta1.AddressStringToBytesRequest'
}
/**
* 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.auth.v1beta1.AddressStringToBytesResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.AddressStringToBytesResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.AddressStringToBytesResponse.displayName =
'proto.cosmos.auth.v1beta1.AddressStringToBytesResponse'
}
/**
* 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.auth.v1beta1.QueryAccountAddressByIDRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryAccountAddressByIDRequest,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountAddressByIDRequest'
}
/**
* 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.auth.v1beta1.QueryAccountAddressByIDResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.cosmos.auth.v1beta1.QueryAccountAddressByIDResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountAddressByIDResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountAddressByIDResponse'
}
/**
* 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.auth.v1beta1.QueryAccountInfoRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountInfoRequest, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountInfoRequest.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountInfoRequest'
}
/**
* 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.auth.v1beta1.QueryAccountInfoResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.cosmos.auth.v1beta1.QueryAccountInfoResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.auth.v1beta1.QueryAccountInfoResponse.displayName =
'proto.cosmos.auth.v1beta1.QueryAccountInfoResponse'
}
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.auth.v1beta1.QueryAccountsRequest.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.auth.v1beta1.QueryAccountsRequest.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.auth.v1beta1.QueryAccountsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
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.auth.v1beta1.QueryAccountsRequest}
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryAccountsRequest()
return proto.cosmos.auth.v1beta1.QueryAccountsRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryAccountsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsRequest}
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
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.auth.v1beta1.QueryAccountsRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.v1beta1.QueryAccountsRequest.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.auth.v1beta1.QueryAccountsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getPagination()
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest
.serializeBinaryToWriter,
)
}
}
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 1;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.prototype.getPagination =
function () {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(
this,
cosmos_base_query_v1beta1_pagination_pb.PageRequest,
1,
)
)
}
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsRequest} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 1, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsRequest} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.auth.v1beta1.QueryAccountsRequest.prototype.hasPagination =
function () {
return jspb.Message.getField(this, 1) != null
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.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.auth.v1beta1.QueryAccountsResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.cosmos.auth.v1beta1.QueryAccountsResponse.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.auth.v1beta1.QueryAccountsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
accountsList: jspb.Message.toObjectList(
msg.getAccountsList(),
google_protobuf_any_pb.Any.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.auth.v1beta1.QueryAccountsResponse}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryAccountsResponse()
return proto.cosmos.auth.v1beta1.QueryAccountsResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryAccountsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsResponse}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.addAccounts(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.auth.v1beta1.QueryAccountsResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.v1beta1.QueryAccountsResponse.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.auth.v1beta1.QueryAccountsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getAccountsList()
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
f = message.getPagination()
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse
.serializeBinaryToWriter,
)
}
}
/**
* repeated google.protobuf.Any accounts = 1;
* @return {!Array<!proto.google.protobuf.Any>}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.getAccountsList =
function () {
return /** @type{!Array<!proto.google.protobuf.Any>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1)
)
}
/**
* @param {!Array<!proto.google.protobuf.Any>} value
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.setAccountsList =
function (value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value)
}
/**
* @param {!proto.google.protobuf.Any=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Any}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.addAccounts =
function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
1,
opt_value,
proto.google.protobuf.Any,
opt_index,
)
}
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.clearAccountsList =
function () {
return this.setAccountsList([])
}
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 2;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.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.auth.v1beta1.QueryAccountsResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.setPagination =
function (value) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountsResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.prototype.clearPagination =
function () {
return this.setPagination(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.auth.v1beta1.QueryAccountsResponse.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.auth.v1beta1.QueryAccountRequest.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.auth.v1beta1.QueryAccountRequest.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.auth.v1beta1.QueryAccountRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
address: 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.auth.v1beta1.QueryAccountRequest}
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryAccountRequest()
return proto.cosmos.auth.v1beta1.QueryAccountRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryAccountRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountRequest}
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.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
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.v1beta1.QueryAccountRequest.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.auth.v1beta1.QueryAccountRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getAddress()
if (f.length > 0) {
writer.writeString(1, f)
}
}
/**
* optional string address = 1;
* @return {string}
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.prototype.getAddress =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.cosmos.auth.v1beta1.QueryAccountRequest} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountRequest.prototype.setAddress = function (
value,
) {
return jspb.Message.setProto3StringField(this, 1, value)
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.auth.v1beta1.QueryAccountResponse.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.auth.v1beta1.QueryAccountResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
account:
(f = msg.getAccount()) &&
google_protobuf_any_pb.Any.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.auth.v1beta1.QueryAccountResponse}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryAccountResponse()
return proto.cosmos.auth.v1beta1.QueryAccountResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryAccountResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountResponse}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break
}
var field = reader.getFieldNumber()
switch (field) {
case 1:
var value = new google_protobuf_any_pb.Any()
reader.readMessage(
value,
google_protobuf_any_pb.Any.deserializeBinaryFromReader,
)
msg.setAccount(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.v1beta1.QueryAccountResponse.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.auth.v1beta1.QueryAccountResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getAccount()
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter,
)
}
}
/**
* optional google.protobuf.Any account = 1;
* @return {?proto.google.protobuf.Any}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.getAccount =
function () {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
)
}
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.cosmos.auth.v1beta1.QueryAccountResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.setAccount = function (
value,
) {
return jspb.Message.setWrapperField(this, 1, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.auth.v1beta1.QueryAccountResponse} returns this
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.clearAccount =
function () {
return this.setAccount(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.auth.v1beta1.QueryAccountResponse.prototype.hasAccount =
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.auth.v1beta1.QueryParamsRequest.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.auth.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.auth.v1beta1.QueryParamsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.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.auth.v1beta1.QueryParamsRequest}
*/
proto.cosmos.auth.v1beta1.QueryParamsRequest.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryParamsRequest()
return proto.cosmos.auth.v1beta1.QueryParamsRequest.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryParamsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryParamsRequest}
*/
proto.cosmos.auth.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.auth.v1beta1.QueryParamsRequest.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.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.auth.v1beta1.QueryParamsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.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.auth.v1beta1.QueryParamsResponse.prototype.toObject = function (
opt_includeInstance,
) {
return proto.cosmos.auth.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.auth.v1beta1.QueryParamsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryParamsResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
params:
(f = msg.getParams()) &&
cosmos_auth_v1beta1_auth_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.auth.v1beta1.QueryParamsResponse}
*/
proto.cosmos.auth.v1beta1.QueryParamsResponse.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.cosmos.auth.v1beta1.QueryParamsResponse()
return proto.cosmos.auth.v1beta1.QueryParamsResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.auth.v1beta1.QueryParamsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.auth.v1beta1.QueryParamsResponse}
*/
proto.cosmos.auth.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_auth_v1beta1_auth_pb.Params()
reader.readMessage(
value,
cosmos_auth_v1beta1_auth_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.auth.v1beta1.QueryParamsResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.cosmos.auth.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.auth.v1beta1.QueryParamsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.auth.v1beta1.QueryParamsResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getParams()
if (f != null) {
writer.writeMessage(
1,
f,
cosmos_auth_v1beta1_auth_pb.Params.serializeBinaryToWriter,
)
}
}
/**
* optional Params params = 1;
* @r