UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,383 lines (1,252 loc) 156 kB
// source: cosmwasm/wasm/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 cosmwasm_wasm_v1_types_pb = require('../../../cosmwasm/wasm/v1/types_pb.js'); goog.object.extend(proto, cosmwasm_wasm_v1_types_pb); var google_api_annotations_pb = require('../../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_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 amino_amino_pb = require('../../../amino/amino_pb.js'); goog.object.extend(proto, amino_amino_pb); goog.exportSymbol('proto.cosmwasm.wasm.v1.CodeInfoResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryAllContractStateRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryAllContractStateResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryCodeRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryCodeResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryCodesRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryCodesResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractHistoryRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractHistoryResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractInfoRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractInfoResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryParamsRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryParamsResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryRawContractStateRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QueryRawContractStateResponse', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse', 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.cosmwasm.wasm.v1.QueryContractInfoRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractInfoRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryContractInfoRequest'; } /** * 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.cosmwasm.wasm.v1.QueryContractInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryContractInfoResponse'; } /** * 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.cosmwasm.wasm.v1.QueryContractHistoryRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractHistoryRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryContractHistoryRequest'; } /** * 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.cosmwasm.wasm.v1.QueryContractHistoryResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractHistoryResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryContractHistoryResponse'; } /** * 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.cosmwasm.wasm.v1.QueryContractsByCodeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest'; } /** * 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.cosmwasm.wasm.v1.QueryContractsByCodeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse'; } /** * 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.cosmwasm.wasm.v1.QueryAllContractStateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryAllContractStateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryAllContractStateRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryAllContractStateRequest'; } /** * 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.cosmwasm.wasm.v1.QueryAllContractStateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryAllContractStateResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryAllContractStateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryAllContractStateResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryAllContractStateResponse'; } /** * 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.cosmwasm.wasm.v1.QueryRawContractStateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryRawContractStateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryRawContractStateRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryRawContractStateRequest'; } /** * 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.cosmwasm.wasm.v1.QueryRawContractStateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryRawContractStateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryRawContractStateResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryRawContractStateResponse'; } /** * 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.cosmwasm.wasm.v1.QuerySmartContractStateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest.displayName = 'proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest'; } /** * 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.cosmwasm.wasm.v1.QuerySmartContractStateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse.displayName = 'proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse'; } /** * 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.cosmwasm.wasm.v1.QueryCodeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryCodeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryCodeRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryCodeRequest'; } /** * 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.cosmwasm.wasm.v1.CodeInfoResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.CodeInfoResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.CodeInfoResponse.displayName = 'proto.cosmwasm.wasm.v1.CodeInfoResponse'; } /** * 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.cosmwasm.wasm.v1.QueryCodeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryCodeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryCodeResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryCodeResponse'; } /** * 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.cosmwasm.wasm.v1.QueryCodesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryCodesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryCodesRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryCodesRequest'; } /** * 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.cosmwasm.wasm.v1.QueryCodesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryCodesResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryCodesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryCodesResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryCodesResponse'; } /** * 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.cosmwasm.wasm.v1.QueryPinnedCodesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest'; } /** * 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.cosmwasm.wasm.v1.QueryPinnedCodesResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse'; } /** * 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.cosmwasm.wasm.v1.QueryParamsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryParamsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryParamsRequest.displayName = 'proto.cosmwasm.wasm.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.cosmwasm.wasm.v1.QueryParamsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryParamsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryParamsResponse.displayName = 'proto.cosmwasm.wasm.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.cosmwasm.wasm.v1.QueryContractsByCreatorRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest.displayName = 'proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest'; } /** * 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.cosmwasm.wasm.v1.QueryContractsByCreatorResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse.displayName = 'proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse'; } 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.cosmwasm.wasm.v1.QueryContractInfoRequest.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.QueryContractInfoRequest.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.cosmwasm.wasm.v1.QueryContractInfoRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.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.cosmwasm.wasm.v1.QueryContractInfoRequest} */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.QueryContractInfoRequest; return proto.cosmwasm.wasm.v1.QueryContractInfoRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.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.cosmwasm.wasm.v1.QueryContractInfoRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.QueryContractInfoRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.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.cosmwasm.wasm.v1.QueryContractInfoRequest.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} returns this */ proto.cosmwasm.wasm.v1.QueryContractInfoRequest.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.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.QueryContractInfoResponse.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.cosmwasm.wasm.v1.QueryContractInfoResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { address: jspb.Message.getFieldWithDefault(msg, 1, ""), contractInfo: (f = msg.getContractInfo()) && cosmwasm_wasm_v1_types_pb.ContractInfo.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.cosmwasm.wasm.v1.QueryContractInfoResponse} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.QueryContractInfoResponse; return proto.cosmwasm.wasm.v1.QueryContractInfoResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.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 cosmwasm_wasm_v1_types_pb.ContractInfo; reader.readMessage(value,cosmwasm_wasm_v1_types_pb.ContractInfo.deserializeBinaryFromReader); msg.setContractInfo(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.QueryContractInfoResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAddress(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getContractInfo(); if (f != null) { writer.writeMessage( 2, f, cosmwasm_wasm_v1_types_pb.ContractInfo.serializeBinaryToWriter ); } }; /** * optional string address = 1; * @return {string} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.setAddress = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional ContractInfo contract_info = 2; * @return {?proto.cosmwasm.wasm.v1.ContractInfo} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.getContractInfo = function() { return /** @type{?proto.cosmwasm.wasm.v1.ContractInfo} */ ( jspb.Message.getWrapperField(this, cosmwasm_wasm_v1_types_pb.ContractInfo, 2)); }; /** * @param {?proto.cosmwasm.wasm.v1.ContractInfo|undefined} value * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.setContractInfo = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.QueryContractInfoResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.clearContractInfo = function() { return this.setContractInfo(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.QueryContractInfoResponse.prototype.hasContractInfo = 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.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest} */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.QueryContractHistoryRequest; return proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.getAddress = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest.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.cosmwasm.wasm.v1.QueryContractHistoryRequest} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.QueryContractHistoryRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.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.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.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.cosmwasm.wasm.v1.QueryContractHistoryResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.toObject = function(includeInstance, msg) { var f, obj = { entriesList: jspb.Message.toObjectList(msg.getEntriesList(), cosmwasm_wasm_v1_types_pb.ContractCodeHistoryEntry.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.cosmwasm.wasm.v1.QueryContractHistoryResponse} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.QueryContractHistoryResponse; return proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmwasm_wasm_v1_types_pb.ContractCodeHistoryEntry; reader.readMessage(value,cosmwasm_wasm_v1_types_pb.ContractCodeHistoryEntry.deserializeBinaryFromReader); msg.addEntries(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.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEntriesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, cosmwasm_wasm_v1_types_pb.ContractCodeHistoryEntry.serializeBinaryToWriter ); } f = message.getPagination(); if (f != null) { writer.writeMessage( 2, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter ); } }; /** * repeated ContractCodeHistoryEntry entries = 1; * @return {!Array<!proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry>} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.getEntriesList = function() { return /** @type{!Array<!proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry>} */ ( jspb.Message.getRepeatedWrapperField(this, cosmwasm_wasm_v1_types_pb.ContractCodeHistoryEntry, 1)); }; /** * @param {!Array<!proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry>} value * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.setEntriesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry=} opt_value * @param {number=} opt_index * @return {!proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.addEntries = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmwasm.wasm.v1.ContractCodeHistoryEntry, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.clearEntriesList = function() { return this.setEntriesList([]); }; /** * optional cosmos.base.query.v1beta1.PageResponse pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.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.cosmwasm.wasm.v1.QueryContractHistoryResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse} returns this */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.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.cosmwasm.wasm.v1.QueryContractsByCodeRequest.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.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.cosmwasm.wasm.v1.QueryContractsByCodeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.toObject = function(includeInstance, msg) { var f, obj = { codeId: jspb.Message.getFieldWithDefault(msg, 1, 0), 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.cosmwasm.wasm.v1.QueryContractsByCodeRequest} */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest; return proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint64()); msg.setCodeId(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.cosmwasm.wasm.v1.QueryContractsByCodeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCodeId(); if (f !== 0) { writer.writeUint64( 1, f ); } f = message.getPagination(); if (f != null) { writer.writeMessage( 2, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter ); } }; /** * optional uint64 code_id = 1; * @return {number} */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.prototype.getCodeId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} returns this */ proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest.prototype.setCodeId = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional cosmos.base.query.v1beta1.PageRequest pagination = 2; * @return {?proto.cosmos.base.query.v1beta1.P