UNPKG

@bandprotocol/bandchain.js

Version:

Library for interacting with BandChain in browser and Node.js environments

1,535 lines (1,461 loc) 76 kB
// source: ibc/applications/transfer/v1/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 gogoproto_gogo_pb = require('../../../../gogoproto/gogo_pb.js') goog.object.extend(proto, gogoproto_gogo_pb) var cosmos_base_v1beta1_coin_pb = require('../../../../cosmos/base/v1beta1/coin_pb.js') goog.object.extend(proto, cosmos_base_v1beta1_coin_pb) var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js') goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb) var ibc_applications_transfer_v1_transfer_pb = require('../../../../ibc/applications/transfer/v1/transfer_pb.js') goog.object.extend(proto, ibc_applications_transfer_v1_transfer_pb) var google_api_annotations_pb = require('../../../../google/api/annotations_pb.js') goog.object.extend(proto, google_api_annotations_pb) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomHashRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomHashResponse', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomTraceRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomTraceResponse', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomTracesRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryDenomTracesResponse', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryEscrowAddressRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryEscrowAddressResponse', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryParamsRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryParamsResponse', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest', null, global, ) goog.exportSymbol( 'proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse', 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.ibc.applications.transfer.v1.QueryDenomTraceRequest = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomTraceRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomTraceRequest' } /** * 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.ibc.applications.transfer.v1.QueryDenomTraceResponse = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomTraceResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomTraceResponse' } /** * 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.ibc.applications.transfer.v1.QueryDenomTracesRequest = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomTracesRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomTracesRequest' } /** * 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.ibc.applications.transfer.v1.QueryDenomTracesResponse = function ( opt_data, ) { jspb.Message.initialize( this, opt_data, 0, -1, proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.repeatedFields_, null, ) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomTracesResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomTracesResponse' } /** * 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.ibc.applications.transfer.v1.QueryParamsRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryParamsRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryParamsRequest.displayName = 'proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsResponse = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryParamsResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryParamsResponse.displayName = 'proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryDenomHashRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomHashRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomHashRequest' } /** * 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.ibc.applications.transfer.v1.QueryDenomHashResponse = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryDenomHashResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryDenomHashResponse.displayName = 'proto.ibc.applications.transfer.v1.QueryDenomHashResponse' } /** * 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.ibc.applications.transfer.v1.QueryEscrowAddressRequest = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryEscrowAddressRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryEscrowAddressRequest.displayName = 'proto.ibc.applications.transfer.v1.QueryEscrowAddressRequest' } /** * 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.ibc.applications.transfer.v1.QueryEscrowAddressResponse = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryEscrowAddressResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryEscrowAddressResponse.displayName = 'proto.ibc.applications.transfer.v1.QueryEscrowAddressResponse' } /** * 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.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.displayName = 'proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest' } /** * 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.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse = function ( opt_data, ) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits( proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse, jspb.Message, ) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.displayName = 'proto.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse' } 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.ibc.applications.transfer.v1.QueryDenomTraceRequest.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.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.ibc.applications.transfer.v1.QueryDenomTraceRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.toObject = function (includeInstance, msg) { var f, obj = { hash: 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.ibc.applications.transfer.v1.QueryDenomTraceRequest} */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryDenomTraceRequest() return proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTraceRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTraceRequest} */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.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.setHash(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTraceRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getHash() if (f.length > 0) { writer.writeString(1, f) } } /** * optional string hash = 1; * @return {string} */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.prototype.getHash = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.ibc.applications.transfer.v1.QueryDenomTraceRequest} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTraceRequest.prototype.setHash = 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.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.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.ibc.applications.transfer.v1.QueryDenomTraceResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.toObject = function (includeInstance, msg) { var f, obj = { denomTrace: (f = msg.getDenomTrace()) && ibc_applications_transfer_v1_transfer_pb.DenomTrace.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.ibc.applications.transfer.v1.QueryDenomTraceResponse} */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryDenomTraceResponse() return proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTraceResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTraceResponse} */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new ibc_applications_transfer_v1_transfer_pb.DenomTrace() reader.readMessage( value, ibc_applications_transfer_v1_transfer_pb.DenomTrace .deserializeBinaryFromReader, ) msg.setDenomTrace(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTraceResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getDenomTrace() if (f != null) { writer.writeMessage( 1, f, ibc_applications_transfer_v1_transfer_pb.DenomTrace .serializeBinaryToWriter, ) } } /** * optional DenomTrace denom_trace = 1; * @return {?proto.ibc.applications.transfer.v1.DenomTrace} */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.getDenomTrace = function () { return /** @type{?proto.ibc.applications.transfer.v1.DenomTrace} */ ( jspb.Message.getWrapperField( this, ibc_applications_transfer_v1_transfer_pb.DenomTrace, 1, ) ) } /** * @param {?proto.ibc.applications.transfer.v1.DenomTrace|undefined} value * @return {!proto.ibc.applications.transfer.v1.QueryDenomTraceResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.setDenomTrace = function (value) { return jspb.Message.setWrapperField(this, 1, value) } /** * Clears the message field making it undefined. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTraceResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.clearDenomTrace = function () { return this.setDenomTrace(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.applications.transfer.v1.QueryDenomTraceResponse.prototype.hasDenomTrace = 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.ibc.applications.transfer.v1.QueryDenomTracesRequest.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.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.ibc.applications.transfer.v1.QueryDenomTracesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.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.ibc.applications.transfer.v1.QueryDenomTracesRequest} */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryDenomTracesRequest() return proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTracesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesRequest} */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.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.ibc.applications.transfer.v1.QueryDenomTracesRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTracesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.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.ibc.applications.transfer.v1.QueryDenomTracesRequest.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.ibc.applications.transfer.v1.QueryDenomTracesRequest} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.prototype.setPagination = function (value) { return jspb.Message.setWrapperField(this, 1, value) } /** * Clears the message field making it undefined. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesRequest} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.prototype.clearPagination = function () { return this.setPagination(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.applications.transfer.v1.QueryDenomTracesRequest.prototype.hasPagination = function () { return jspb.Message.getField(this, 1) != null } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.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.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.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.ibc.applications.transfer.v1.QueryDenomTracesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.toObject = function (includeInstance, msg) { var f, obj = { denomTracesList: jspb.Message.toObjectList( msg.getDenomTracesList(), ibc_applications_transfer_v1_transfer_pb.DenomTrace.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.ibc.applications.transfer.v1.QueryDenomTracesResponse} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryDenomTracesResponse() return proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new ibc_applications_transfer_v1_transfer_pb.DenomTrace() reader.readMessage( value, ibc_applications_transfer_v1_transfer_pb.DenomTrace .deserializeBinaryFromReader, ) msg.addDenomTraces(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.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getDenomTracesList() if (f.length > 0) { writer.writeRepeatedMessage( 1, f, ibc_applications_transfer_v1_transfer_pb.DenomTrace .serializeBinaryToWriter, ) } f = message.getPagination() if (f != null) { writer.writeMessage( 2, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse .serializeBinaryToWriter, ) } } /** * repeated DenomTrace denom_traces = 1; * @return {!Array<!proto.ibc.applications.transfer.v1.DenomTrace>} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.getDenomTracesList = function () { return /** @type{!Array<!proto.ibc.applications.transfer.v1.DenomTrace>} */ ( jspb.Message.getRepeatedWrapperField( this, ibc_applications_transfer_v1_transfer_pb.DenomTrace, 1, ) ) } /** * @param {!Array<!proto.ibc.applications.transfer.v1.DenomTrace>} value * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.setDenomTracesList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value) } /** * @param {!proto.ibc.applications.transfer.v1.DenomTrace=} opt_value * @param {number=} opt_index * @return {!proto.ibc.applications.transfer.v1.DenomTrace} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.addDenomTraces = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField( this, 1, opt_value, proto.ibc.applications.transfer.v1.DenomTrace, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.clearDenomTracesList = function () { return this.setDenomTracesList([]) } /** * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.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.ibc.applications.transfer.v1.QueryDenomTracesResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.setPagination = function (value) { return jspb.Message.setWrapperField(this, 2, value) } /** * Clears the message field making it undefined. * @return {!proto.ibc.applications.transfer.v1.QueryDenomTracesResponse} returns this */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.prototype.clearPagination = function () { return this.setPagination(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.applications.transfer.v1.QueryDenomTracesResponse.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.ibc.applications.transfer.v1.QueryParamsRequest.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsRequest} */ proto.ibc.applications.transfer.v1.QueryParamsRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryParamsRequest() return proto.ibc.applications.transfer.v1.QueryParamsRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryParamsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryParamsRequest} */ proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsResponse.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryParamsResponse.toObject = function ( includeInstance, msg, ) { var f, obj = { params: (f = msg.getParams()) && ibc_applications_transfer_v1_transfer_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.ibc.applications.transfer.v1.QueryParamsResponse} */ proto.ibc.applications.transfer.v1.QueryParamsResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryParamsResponse() return proto.ibc.applications.transfer.v1.QueryParamsResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryParamsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryParamsResponse} */ proto.ibc.applications.transfer.v1.QueryParamsResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new ibc_applications_transfer_v1_transfer_pb.Params() reader.readMessage( value, ibc_applications_transfer_v1_transfer_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.ibc.applications.transfer.v1.QueryParamsResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.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.ibc.applications.transfer.v1.QueryParamsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryParamsResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getParams() if (f != null) { writer.writeMessage( 1, f, ibc_applications_transfer_v1_transfer_pb.Params.serializeBinaryToWriter, ) } } /** * optional Params params = 1; * @return {?proto.ibc.applications.transfer.v1.Params} */ proto.ibc.applications.transfer.v1.QueryParamsResponse.prototype.getParams = function () { return /** @type{?proto.ibc.applications.transfer.v1.Params} */ ( jspb.Message.getWrapperField( this, ibc_applications_transfer_v1_transfer_pb.Params, 1, ) ) } /** * @param {?proto.ibc.applications.transfer.v1.Params|undefined} value * @return {!proto.ibc.applications.transfer.v1.QueryParamsResponse} returns this */ proto.ibc.applications.transfer.v1.QueryParamsResponse.prototype.setParams = function (value) { return jspb.Message.setWrapperField(this, 1, value) } /** * Clears the message field making it undefined. * @return {!proto.ibc.applications.transfer.v1.QueryParamsResponse} returns this */ proto.ibc.applications.transfer.v1.QueryParamsResponse.prototype.clearParams = function () { return this.setParams(undefined) } /** * Returns whether this field is set. * @return {boolean} */ proto.ibc.applications.transfer.v1.QueryParamsResponse.prototype.hasParams = function () { return jspb.Message.getField(this, 1) != null } if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.prototype.toObject = function (opt_includeInstance) { return proto.ibc.applications.transfer.v1.QueryDenomHashRequest.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.ibc.applications.transfer.v1.QueryDenomHashRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.toObject = function ( includeInstance, msg, ) { var f, obj = { trace: 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.ibc.applications.transfer.v1.QueryDenomHashRequest} */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.ibc.applications.transfer.v1.QueryDenomHashRequest() return proto.ibc.applications.transfer.v1.QueryDenomHashRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.ibc.applications.transfer.v1.QueryDenomHashRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.ibc.applications.transfer.v1.QueryDenomHashRequest} */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.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.setTrace(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.ibc.applications.transfer.v1.QueryDenomHashRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.ibc.applications.transfer.v1.QueryDenomHashRequest.serializeBinaryToWriter( this, writer, ) return writer.getResultBuffer() } /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param