@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
1,336 lines (1,097 loc) • 46 kB
JavaScript
"use strict";
// source: cosmos/quarantine/v1beta1/query.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = function () {
return this || window || global || self || Function('return this')();
}.call(null);
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 cosmos_quarantine_v1beta1_quarantine_pb = require('../../../cosmos/quarantine/v1beta1/quarantine_pb.js');
goog.object.extend(proto, cosmos_quarantine_v1beta1_quarantine_pb);
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
goog.object.extend(proto, cosmos_proto_cosmos_pb);
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest', null, global);
goog.exportSymbol('proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse', 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.QueryIsQuarantinedRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.displayName = 'proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest';
}
/**
* 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.QueryIsQuarantinedResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.displayName = 'proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse';
}
/**
* 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.QueryQuarantinedFundsRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.displayName = 'proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest';
}
/**
* 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.QueryQuarantinedFundsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.displayName = 'proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse';
}
/**
* 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.QueryAutoResponsesRequest = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.displayName = 'proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest';
}
/**
* 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.QueryAutoResponsesResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.displayName = 'proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse';
}
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.QueryIsQuarantinedRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest();
return proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedRequest.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedRequest.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.QueryIsQuarantinedResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.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.QueryIsQuarantinedResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
isQuarantined: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
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.QueryIsQuarantinedResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse();
return proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value =
/** @type {boolean} */
reader.readBool();
msg.setIsQuarantined(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.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.QueryIsQuarantinedResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getIsQuarantined();
if (f) {
writer.writeBool(1, f);
}
};
/**
* optional bool is_quarantined = 1;
* @return {boolean}
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.prototype.getIsQuarantined = function () {
return (
/** @type {boolean} */
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
);
};
/**
* @param {boolean} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryIsQuarantinedResponse.prototype.setIsQuarantined = function (value) {
return jspb.Message.setProto3BooleanField(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.QueryQuarantinedFundsRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.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.QueryQuarantinedFundsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
fromAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest();
return proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.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 =
/** @type {string} */
reader.readString();
msg.setFromAddress(value);
break;
case 99:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest();
reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.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.QueryQuarantinedFundsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getFromAddress();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(99, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string from_address = 2;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.getFromAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.setFromAddress = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 99;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.getPagination = function () {
return (
/** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 99)
);
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.setPagination = function (value) {
return jspb.Message.setWrapperField(this, 99, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.clearPagination = function () {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsRequest.prototype.hasPagination = function () {
return jspb.Message.getField(this, 99) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.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.QueryQuarantinedFundsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
quarantinedfundsList: jspb.Message.toObjectList(msg.getQuarantinedfundsList(), cosmos_quarantine_v1beta1_quarantine_pb.QuarantinedFunds.toObject, includeInstance),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse();
return proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_quarantine_v1beta1_quarantine_pb.QuarantinedFunds();
reader.readMessage(value, cosmos_quarantine_v1beta1_quarantine_pb.QuarantinedFunds.deserializeBinaryFromReader);
msg.addQuarantinedfunds(value);
break;
case 99:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse();
reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.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.QueryQuarantinedFundsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getQuarantinedfundsList();
if (f.length > 0) {
writer.writeRepeatedMessage(1, f, cosmos_quarantine_v1beta1_quarantine_pb.QuarantinedFunds.serializeBinaryToWriter);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(99, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter);
}
};
/**
* repeated QuarantinedFunds quarantinedFunds = 1;
* @return {!Array<!proto.cosmos.quarantine.v1beta1.QuarantinedFunds>}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.getQuarantinedfundsList = function () {
return (
/** @type{!Array<!proto.cosmos.quarantine.v1beta1.QuarantinedFunds>} */
jspb.Message.getRepeatedWrapperField(this, cosmos_quarantine_v1beta1_quarantine_pb.QuarantinedFunds, 1)
);
};
/**
* @param {!Array<!proto.cosmos.quarantine.v1beta1.QuarantinedFunds>} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.setQuarantinedfundsList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.cosmos.quarantine.v1beta1.QuarantinedFunds=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.quarantine.v1beta1.QuarantinedFunds}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.addQuarantinedfunds = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.quarantine.v1beta1.QuarantinedFunds, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.clearQuarantinedfundsList = function () {
return this.setQuarantinedfundsList([]);
};
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 99;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.getPagination = function () {
return (
/** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 99)
);
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.setPagination = function (value) {
return jspb.Message.setWrapperField(this, 99, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.clearPagination = function () {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.quarantine.v1beta1.QueryQuarantinedFundsResponse.prototype.hasPagination = function () {
return jspb.Message.getField(this, 99) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.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.QueryAutoResponsesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.toObject = function (includeInstance, msg) {
var f,
obj = {
toAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
fromAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest();
return proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.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 =
/** @type {string} */
reader.readString();
msg.setFromAddress(value);
break;
case 99:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest();
reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.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.QueryAutoResponsesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getToAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getFromAddress();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(99, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter);
}
};
/**
* optional string to_address = 1;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.getToAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 1, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.setToAddress = function (value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string from_address = 2;
* @return {string}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.getFromAddress = function () {
return (
/** @type {string} */
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.setFromAddress = function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 99;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.getPagination = function () {
return (
/** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 99)
);
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.setPagination = function (value) {
return jspb.Message.setWrapperField(this, 99, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.clearPagination = function () {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesRequest.prototype.hasPagination = function () {
return jspb.Message.getField(this, 99) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.toObject = function (opt_includeInstance) {
return proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.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.QueryAutoResponsesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.toObject = function (includeInstance, msg) {
var f,
obj = {
autoResponsesList: jspb.Message.toObjectList(msg.getAutoResponsesList(), cosmos_quarantine_v1beta1_quarantine_pb.AutoResponseEntry.toObject, includeInstance),
pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.deserializeBinary = function (bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse();
return proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.deserializeBinaryFromReader = function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_quarantine_v1beta1_quarantine_pb.AutoResponseEntry();
reader.readMessage(value, cosmos_quarantine_v1beta1_quarantine_pb.AutoResponseEntry.deserializeBinaryFromReader);
msg.addAutoResponses(value);
break;
case 99:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse();
reader.readMessage(value, cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.serializeBinary = function () {
var writer = new jspb.BinaryWriter();
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.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.QueryAutoResponsesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.serializeBinaryToWriter = function (message, writer) {
var f = undefined;
f = message.getAutoResponsesList();
if (f.length > 0) {
writer.writeRepeatedMessage(1, f, cosmos_quarantine_v1beta1_quarantine_pb.AutoResponseEntry.serializeBinaryToWriter);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(99, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter);
}
};
/**
* repeated AutoResponseEntry auto_responses = 1;
* @return {!Array<!proto.cosmos.quarantine.v1beta1.AutoResponseEntry>}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.getAutoResponsesList = function () {
return (
/** @type{!Array<!proto.cosmos.quarantine.v1beta1.AutoResponseEntry>} */
jspb.Message.getRepeatedWrapperField(this, cosmos_quarantine_v1beta1_quarantine_pb.AutoResponseEntry, 1)
);
};
/**
* @param {!Array<!proto.cosmos.quarantine.v1beta1.AutoResponseEntry>} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.setAutoResponsesList = function (value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.cosmos.quarantine.v1beta1.AutoResponseEntry=} opt_value
* @param {number=} opt_index
* @return {!proto.cosmos.quarantine.v1beta1.AutoResponseEntry}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.addAutoResponses = function (opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.quarantine.v1beta1.AutoResponseEntry, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.clearAutoResponsesList = function () {
return this.setAutoResponsesList([]);
};
/**
* optional cosmos.base.query.v1beta1.PageResponse pagination = 99;
* @return {?proto.cosmos.base.query.v1beta1.PageResponse}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.getPagination = function () {
return (
/** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 99)
);
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.setPagination = function (value) {
return jspb.Message.setWrapperField(this, 99, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse} returns this
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.clearPagination = function () {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.quarantine.v1beta1.QueryAutoResponsesResponse.prototype.hasPagination = function () {
return jspb.Message.getField(this, 99) != null;
};
goog.object.extend(exports, proto.cosmos.quarantine.v1beta1);