UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,496 lines (1,302 loc) 69.4 kB
// source: cosmwasm/wasm/v1/authz.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_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); goog.object.extend(proto, cosmos_proto_cosmos_pb); var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js'); goog.object.extend(proto, cosmos_base_v1beta1_coin_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_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var amino_amino_pb = require('../../../amino/amino_pb.js'); goog.object.extend(proto, amino_amino_pb); goog.exportSymbol('proto.cosmwasm.wasm.v1.AcceptedMessageKeysFilter', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.AcceptedMessagesFilter', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.AllowAllMessagesFilter', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.CodeGrant', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.CombinedLimit', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.ContractExecutionAuthorization', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.ContractGrant', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.ContractMigrationAuthorization', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.MaxCallsLimit', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.MaxFundsLimit', null, global); goog.exportSymbol('proto.cosmwasm.wasm.v1.StoreCodeAuthorization', 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.StoreCodeAuthorization = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.StoreCodeAuthorization.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.StoreCodeAuthorization, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.displayName = 'proto.cosmwasm.wasm.v1.StoreCodeAuthorization'; } /** * 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.ContractExecutionAuthorization = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.ContractExecutionAuthorization, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.displayName = 'proto.cosmwasm.wasm.v1.ContractExecutionAuthorization'; } /** * 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.ContractMigrationAuthorization = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.ContractMigrationAuthorization, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.displayName = 'proto.cosmwasm.wasm.v1.ContractMigrationAuthorization'; } /** * 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.CodeGrant = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.CodeGrant, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.CodeGrant.displayName = 'proto.cosmwasm.wasm.v1.CodeGrant'; } /** * 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.ContractGrant = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.ContractGrant, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.ContractGrant.displayName = 'proto.cosmwasm.wasm.v1.ContractGrant'; } /** * 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.MaxCallsLimit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.MaxCallsLimit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.MaxCallsLimit.displayName = 'proto.cosmwasm.wasm.v1.MaxCallsLimit'; } /** * 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.MaxFundsLimit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MaxFundsLimit.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.MaxFundsLimit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.MaxFundsLimit.displayName = 'proto.cosmwasm.wasm.v1.MaxFundsLimit'; } /** * 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.CombinedLimit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.CombinedLimit.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.CombinedLimit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.CombinedLimit.displayName = 'proto.cosmwasm.wasm.v1.CombinedLimit'; } /** * 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.AllowAllMessagesFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmwasm.wasm.v1.AllowAllMessagesFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.AllowAllMessagesFilter.displayName = 'proto.cosmwasm.wasm.v1.AllowAllMessagesFilter'; } /** * 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.AcceptedMessageKeysFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.AcceptedMessageKeysFilter.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.AcceptedMessageKeysFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.AcceptedMessageKeysFilter.displayName = 'proto.cosmwasm.wasm.v1.AcceptedMessageKeysFilter'; } /** * 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.AcceptedMessagesFilter = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.AcceptedMessagesFilter.repeatedFields_, null); }; goog.inherits(proto.cosmwasm.wasm.v1.AcceptedMessagesFilter, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmwasm.wasm.v1.AcceptedMessagesFilter.displayName = 'proto.cosmwasm.wasm.v1.AcceptedMessagesFilter'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.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.StoreCodeAuthorization.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.StoreCodeAuthorization.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.StoreCodeAuthorization} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.toObject = function(includeInstance, msg) { var f, obj = { grantsList: jspb.Message.toObjectList(msg.getGrantsList(), proto.cosmwasm.wasm.v1.CodeGrant.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.StoreCodeAuthorization} */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.StoreCodeAuthorization; return proto.cosmwasm.wasm.v1.StoreCodeAuthorization.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.StoreCodeAuthorization} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.StoreCodeAuthorization} */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.cosmwasm.wasm.v1.CodeGrant; reader.readMessage(value,proto.cosmwasm.wasm.v1.CodeGrant.deserializeBinaryFromReader); msg.addGrants(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.StoreCodeAuthorization.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.StoreCodeAuthorization} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGrantsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.cosmwasm.wasm.v1.CodeGrant.serializeBinaryToWriter ); } }; /** * repeated CodeGrant grants = 1; * @return {!Array<!proto.cosmwasm.wasm.v1.CodeGrant>} */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.prototype.getGrantsList = function() { return /** @type{!Array<!proto.cosmwasm.wasm.v1.CodeGrant>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmwasm.wasm.v1.CodeGrant, 1)); }; /** * @param {!Array<!proto.cosmwasm.wasm.v1.CodeGrant>} value * @return {!proto.cosmwasm.wasm.v1.StoreCodeAuthorization} returns this */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.prototype.setGrantsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmwasm.wasm.v1.CodeGrant=} opt_value * @param {number=} opt_index * @return {!proto.cosmwasm.wasm.v1.CodeGrant} */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.prototype.addGrants = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmwasm.wasm.v1.CodeGrant, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmwasm.wasm.v1.StoreCodeAuthorization} returns this */ proto.cosmwasm.wasm.v1.StoreCodeAuthorization.prototype.clearGrantsList = function() { return this.setGrantsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.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.ContractExecutionAuthorization.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.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.ContractExecutionAuthorization} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.toObject = function(includeInstance, msg) { var f, obj = { grantsList: jspb.Message.toObjectList(msg.getGrantsList(), proto.cosmwasm.wasm.v1.ContractGrant.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.ContractExecutionAuthorization} */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.ContractExecutionAuthorization; return proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.ContractExecutionAuthorization} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.ContractExecutionAuthorization} */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.cosmwasm.wasm.v1.ContractGrant; reader.readMessage(value,proto.cosmwasm.wasm.v1.ContractGrant.deserializeBinaryFromReader); msg.addGrants(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.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.ContractExecutionAuthorization} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGrantsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.cosmwasm.wasm.v1.ContractGrant.serializeBinaryToWriter ); } }; /** * repeated ContractGrant grants = 1; * @return {!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.prototype.getGrantsList = function() { return /** @type{!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmwasm.wasm.v1.ContractGrant, 1)); }; /** * @param {!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} value * @return {!proto.cosmwasm.wasm.v1.ContractExecutionAuthorization} returns this */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.prototype.setGrantsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmwasm.wasm.v1.ContractGrant=} opt_value * @param {number=} opt_index * @return {!proto.cosmwasm.wasm.v1.ContractGrant} */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.prototype.addGrants = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmwasm.wasm.v1.ContractGrant, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmwasm.wasm.v1.ContractExecutionAuthorization} returns this */ proto.cosmwasm.wasm.v1.ContractExecutionAuthorization.prototype.clearGrantsList = function() { return this.setGrantsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.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.ContractMigrationAuthorization.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.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.ContractMigrationAuthorization} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.toObject = function(includeInstance, msg) { var f, obj = { grantsList: jspb.Message.toObjectList(msg.getGrantsList(), proto.cosmwasm.wasm.v1.ContractGrant.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.ContractMigrationAuthorization} */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.ContractMigrationAuthorization; return proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.ContractMigrationAuthorization} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.ContractMigrationAuthorization} */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.cosmwasm.wasm.v1.ContractGrant; reader.readMessage(value,proto.cosmwasm.wasm.v1.ContractGrant.deserializeBinaryFromReader); msg.addGrants(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.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.ContractMigrationAuthorization} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getGrantsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.cosmwasm.wasm.v1.ContractGrant.serializeBinaryToWriter ); } }; /** * repeated ContractGrant grants = 1; * @return {!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.prototype.getGrantsList = function() { return /** @type{!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmwasm.wasm.v1.ContractGrant, 1)); }; /** * @param {!Array<!proto.cosmwasm.wasm.v1.ContractGrant>} value * @return {!proto.cosmwasm.wasm.v1.ContractMigrationAuthorization} returns this */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.prototype.setGrantsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmwasm.wasm.v1.ContractGrant=} opt_value * @param {number=} opt_index * @return {!proto.cosmwasm.wasm.v1.ContractGrant} */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.prototype.addGrants = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmwasm.wasm.v1.ContractGrant, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmwasm.wasm.v1.ContractMigrationAuthorization} returns this */ proto.cosmwasm.wasm.v1.ContractMigrationAuthorization.prototype.clearGrantsList = function() { return this.setGrantsList([]); }; 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.CodeGrant.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.CodeGrant.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.CodeGrant} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.CodeGrant.toObject = function(includeInstance, msg) { var f, obj = { codeHash: msg.getCodeHash_asB64(), instantiatePermission: (f = msg.getInstantiatePermission()) && cosmwasm_wasm_v1_types_pb.AccessConfig.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.CodeGrant} */ proto.cosmwasm.wasm.v1.CodeGrant.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.CodeGrant; return proto.cosmwasm.wasm.v1.CodeGrant.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.CodeGrant} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.CodeGrant} */ proto.cosmwasm.wasm.v1.CodeGrant.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setCodeHash(value); break; case 2: var value = new cosmwasm_wasm_v1_types_pb.AccessConfig; reader.readMessage(value,cosmwasm_wasm_v1_types_pb.AccessConfig.deserializeBinaryFromReader); msg.setInstantiatePermission(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.CodeGrant.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.CodeGrant} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.CodeGrant.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getCodeHash_asU8(); if (f.length > 0) { writer.writeBytes( 1, f ); } f = message.getInstantiatePermission(); if (f != null) { writer.writeMessage( 2, f, cosmwasm_wasm_v1_types_pb.AccessConfig.serializeBinaryToWriter ); } }; /** * optional bytes code_hash = 1; * @return {!(string|Uint8Array)} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.getCodeHash = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * optional bytes code_hash = 1; * This is a type-conversion wrapper around `getCodeHash()` * @return {string} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.getCodeHash_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getCodeHash())); }; /** * optional bytes code_hash = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getCodeHash()` * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.getCodeHash_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getCodeHash())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.cosmwasm.wasm.v1.CodeGrant} returns this */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.setCodeHash = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; /** * optional AccessConfig instantiate_permission = 2; * @return {?proto.cosmwasm.wasm.v1.AccessConfig} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.getInstantiatePermission = function() { return /** @type{?proto.cosmwasm.wasm.v1.AccessConfig} */ ( jspb.Message.getWrapperField(this, cosmwasm_wasm_v1_types_pb.AccessConfig, 2)); }; /** * @param {?proto.cosmwasm.wasm.v1.AccessConfig|undefined} value * @return {!proto.cosmwasm.wasm.v1.CodeGrant} returns this */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.setInstantiatePermission = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.CodeGrant} returns this */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.clearInstantiatePermission = function() { return this.setInstantiatePermission(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.CodeGrant.prototype.hasInstantiatePermission = 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.ContractGrant.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.ContractGrant.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.ContractGrant} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractGrant.toObject = function(includeInstance, msg) { var f, obj = { contract: jspb.Message.getFieldWithDefault(msg, 1, ""), limit: (f = msg.getLimit()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), filter: (f = msg.getFilter()) && google_protobuf_any_pb.Any.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.ContractGrant} */ proto.cosmwasm.wasm.v1.ContractGrant.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.ContractGrant; return proto.cosmwasm.wasm.v1.ContractGrant.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.ContractGrant} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.ContractGrant} */ proto.cosmwasm.wasm.v1.ContractGrant.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.setContract(value); break; case 2: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setLimit(value); break; case 3: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setFilter(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.ContractGrant.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.ContractGrant} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.ContractGrant.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getContract(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLimit(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } f = message.getFilter(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } }; /** * optional string contract = 1; * @return {string} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.getContract = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmwasm.wasm.v1.ContractGrant} returns this */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.setContract = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Any limit = 2; * @return {?proto.google.protobuf.Any} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.getLimit = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.cosmwasm.wasm.v1.ContractGrant} returns this */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.setLimit = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.ContractGrant} returns this */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.clearLimit = function() { return this.setLimit(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.hasLimit = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.Any filter = 3; * @return {?proto.google.protobuf.Any} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.getFilter = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 3)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.cosmwasm.wasm.v1.ContractGrant} returns this */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.setFilter = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmwasm.wasm.v1.ContractGrant} returns this */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.clearFilter = function() { return this.setFilter(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmwasm.wasm.v1.ContractGrant.prototype.hasFilter = function() { return jspb.Message.getField(this, 3) != 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.MaxCallsLimit.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.MaxCallsLimit.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.MaxCallsLimit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MaxCallsLimit.toObject = function(includeInstance, msg) { var f, obj = { remaining: jspb.Message.getFieldWithDefault(msg, 1, 0) }; 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.MaxCallsLimit} */ proto.cosmwasm.wasm.v1.MaxCallsLimit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.MaxCallsLimit; return proto.cosmwasm.wasm.v1.MaxCallsLimit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.MaxCallsLimit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.MaxCallsLimit} */ proto.cosmwasm.wasm.v1.MaxCallsLimit.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.setRemaining(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MaxCallsLimit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.MaxCallsLimit.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.MaxCallsLimit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MaxCallsLimit.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRemaining(); if (f !== 0) { writer.writeUint64( 1, f ); } }; /** * optional uint64 remaining = 1; * @return {number} */ proto.cosmwasm.wasm.v1.MaxCallsLimit.prototype.getRemaining = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.cosmwasm.wasm.v1.MaxCallsLimit} returns this */ proto.cosmwasm.wasm.v1.MaxCallsLimit.prototype.setRemaining = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.MaxFundsLimit.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.MaxFundsLimit.prototype.toObject = function(opt_includeInstance) { return proto.cosmwasm.wasm.v1.MaxFundsLimit.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.MaxFundsLimit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MaxFundsLimit.toObject = function(includeInstance, msg) { var f, obj = { amountsList: jspb.Message.toObjectList(msg.getAmountsList(), cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmwasm.wasm.v1.MaxFundsLimit} */ proto.cosmwasm.wasm.v1.MaxFundsLimit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmwasm.wasm.v1.MaxFundsLimit; return proto.cosmwasm.wasm.v1.MaxFundsLimit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmwasm.wasm.v1.MaxFundsLimit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmwasm.wasm.v1.MaxFundsLimit} */ proto.cosmwasm.wasm.v1.MaxFundsLimit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new cosmos_base_v1beta1_coin_pb.Coin; reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader); msg.addAmounts(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmwasm.wasm.v1.MaxFundsLimit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmwasm.wasm.v1.MaxFundsLimit.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.MaxFundsLimit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmwasm.wasm.v1.MaxFundsLimit.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAmountsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter ); } }; /** * repeated cosmos.base.v1beta1.Coin amounts = 1; * @return {!Array<!proto.cosmos.base.v1beta1.Coin>} */ proto.cosmwasm.wasm.v1.MaxFundsLimit.prototype.getAmountsList = function() { return /** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */ ( jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 1)); }; /** * @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value * @return {!proto.cosmwasm.wasm.v1.MaxFundsLimit} returns this */ proto.cosmwasm.wasm.v1.MaxFundsLimit.prototype.setAmountsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.base.v1beta1.Coin=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.base.v1beta1.Coin} */ proto.cosmwasm.wasm.v1.MaxFundsLimit.prototype.addAmounts = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmwasm.wasm.v1.MaxFundsLimit} returns this */ proto.cosmwasm.wasm.v1.MaxFundsLimit.prototype.clearAmountsList = function() { return this.setAmountsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmwasm.wasm.v1.CombinedLimit.repeatedFields_ = [2]; 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/g