@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
802 lines (661 loc) • 25.7 kB
JavaScript
"use strict";
// source: cosmos/quarantine/v1beta1/events.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 || window || global || self || Function('return this')();
}.call(null);
var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb);
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
goog.object.extend(proto, cosmos_proto_cosmos_pb);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.EventFundsQuarantined', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.EventFundsReleased', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.EventOptIn', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.EventOptOut', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.quarantine.v1beta1.EventOptIn = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.EventOptIn, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.displayName = 'proto.cosmos.quarantine.v1beta1.EventOptIn';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.quarantine.v1beta1.EventOptOut = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.EventOptOut, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.displayName = 'proto.cosmos.quarantine.v1beta1.EventOptOut';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.repeatedFields_, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.EventFundsQuarantined, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.displayName = 'proto.cosmos.quarantine.v1beta1.EventFundsQuarantined';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.quarantine.v1beta1.EventFundsReleased.repeatedFields_, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.EventFundsReleased, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.displayName = 'proto.cosmos.quarantine.v1beta1.EventFundsReleased';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.EventOptIn.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.quarantine.v1beta1.EventOptIn} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.EventOptIn}
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.EventOptIn();
return proto.cosmos.quarantine.v1beta1.EventOptIn.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.EventOptIn} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.EventOptIn}
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.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.setToAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.EventOptIn.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.quarantine.v1beta1.EventOptIn} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.EventOptIn} returns this
*/
proto.cosmos.quarantine.v1beta1.EventOptIn.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.EventOptOut.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.quarantine.v1beta1.EventOptOut} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.EventOptOut}
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.EventOptOut();
return proto.cosmos.quarantine.v1beta1.EventOptOut.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.EventOptOut} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.EventOptOut}
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.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.setToAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.EventOptOut.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.quarantine.v1beta1.EventOptOut} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.EventOptOut} returns this
*/
proto.cosmos.quarantine.v1beta1.EventOptOut.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.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/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
coinsList: jspb.Message.toObjectList(msg.getCoinsList(), 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.cosmos.quarantine.v1beta1.EventFundsQuarantined}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.EventFundsQuarantined();
return proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.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.setToAddress(value);
break;
case 2:
var value = new cosmos_base_v1beta1_coin_pb.Coin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.addCoins(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getCoinsList();
if (f.length > 0) {
writer.writeRepeatedMessage(2, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated cosmos.base.v1beta1.Coin coins = 2;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.getCoinsList = function () {
return (
/** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */
jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)
);
};
/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.setCoinsList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.cosmos.base.v1beta1.Coin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.addCoins = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsQuarantined} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsQuarantined.prototype.clearCoinsList = function () {
return this.setCoinsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.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/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.EventFundsReleased.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
coinsList: jspb.Message.toObjectList(msg.getCoinsList(), 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.cosmos.quarantine.v1beta1.EventFundsReleased}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.EventFundsReleased();
return proto.cosmos.quarantine.v1beta1.EventFundsReleased.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsReleased}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.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.setToAddress(value);
break;
case 2:
var value = new cosmos_base_v1beta1_coin_pb.Coin();
reader.readMessage(value, cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.addCoins(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.EventFundsReleased.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getCoinsList();
if (f.length > 0) {
writer.writeRepeatedMessage(2, f, cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* repeated cosmos.base.v1beta1.Coin coins = 2;
* @return {!Array<!proto.cosmos.base.v1beta1.Coin>}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.getCoinsList = function () {
return (
/** @type{!Array<!proto.cosmos.base.v1beta1.Coin>} */
jspb.Message.getRepeatedWrapperField(this, cosmos_base_v1beta1_coin_pb.Coin, 2)
);
};
/**
* @param {!Array<!proto.cosmos.base.v1beta1.Coin>} value
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.setCoinsList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.cosmos.base.v1beta1.Coin=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.base.v1beta1.Coin}
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.addCoins = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.base.v1beta1.Coin, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.quarantine.v1beta1.EventFundsReleased} returns this
*/
proto.cosmos.quarantine.v1beta1.EventFundsReleased.prototype.clearCoinsList = function () {
return this.setCoinsList([]);
};
goog.object.extend(exports, proto.cosmos.quarantine.v1beta1);