@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,513 lines (1,336 loc) • 82.8 kB
JavaScript
// source: cosmos/nft/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')();
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 google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var cosmos_nft_v1beta1_nft_pb = require('../../../cosmos/nft/v1beta1/nft_pb.js');
goog.object.extend(proto, cosmos_nft_v1beta1_nft_pb);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryBalanceRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryBalanceResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryClassRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryClassResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryClassesRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryClassesResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryNFTRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryNFTResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryNFTsRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryNFTsResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryOwnerRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QueryOwnerResponse', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QuerySupplyRequest', null, global);
goog.exportSymbol('proto.cosmos.nft.v1beta1.QuerySupplyResponse', 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.nft.v1beta1.QueryBalanceRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryBalanceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryBalanceRequest';
}
/**
* 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.nft.v1beta1.QueryBalanceResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryBalanceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryBalanceResponse';
}
/**
* 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.nft.v1beta1.QueryOwnerRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryOwnerRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryOwnerRequest';
}
/**
* 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.nft.v1beta1.QueryOwnerResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryOwnerResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryOwnerResponse';
}
/**
* 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.nft.v1beta1.QuerySupplyRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QuerySupplyRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.displayName = 'proto.cosmos.nft.v1beta1.QuerySupplyRequest';
}
/**
* 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.nft.v1beta1.QuerySupplyResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QuerySupplyResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.displayName = 'proto.cosmos.nft.v1beta1.QuerySupplyResponse';
}
/**
* 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.nft.v1beta1.QueryNFTsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryNFTsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryNFTsRequest';
}
/**
* 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.nft.v1beta1.QueryNFTsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.nft.v1beta1.QueryNFTsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryNFTsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryNFTsResponse';
}
/**
* 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.nft.v1beta1.QueryNFTRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryNFTRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryNFTRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryNFTRequest';
}
/**
* 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.nft.v1beta1.QueryNFTResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryNFTResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryNFTResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryNFTResponse';
}
/**
* 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.nft.v1beta1.QueryClassRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryClassRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryClassRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryClassRequest';
}
/**
* 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.nft.v1beta1.QueryClassResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryClassResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryClassResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryClassResponse';
}
/**
* 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.nft.v1beta1.QueryClassesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryClassesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryClassesRequest.displayName = 'proto.cosmos.nft.v1beta1.QueryClassesRequest';
}
/**
* 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.nft.v1beta1.QueryClassesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.nft.v1beta1.QueryClassesResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.nft.v1beta1.QueryClassesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.nft.v1beta1.QueryClassesResponse.displayName = 'proto.cosmos.nft.v1beta1.QueryClassesResponse';
}
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.nft.v1beta1.QueryBalanceRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryBalanceRequest.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.nft.v1beta1.QueryBalanceRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.toObject = function(includeInstance, msg) {
var f, obj = {
classId: jspb.Message.getFieldWithDefault(msg, 1, ""),
owner: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.nft.v1beta1.QueryBalanceRequest}
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryBalanceRequest;
return proto.cosmos.nft.v1beta1.QueryBalanceRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryBalanceRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryBalanceRequest}
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.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.setClassId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setOwner(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryBalanceRequest.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.nft.v1beta1.QueryBalanceRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClassId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getOwner();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string class_id = 1;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.prototype.getClassId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryBalanceRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.prototype.setClassId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string owner = 2;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.prototype.getOwner = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryBalanceRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryBalanceRequest.prototype.setOwner = function(value) {
return jspb.Message.setProto3StringField(this, 2, 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.nft.v1beta1.QueryBalanceResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryBalanceResponse.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.nft.v1beta1.QueryBalanceResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.toObject = function(includeInstance, msg) {
var f, obj = {
amount: 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.cosmos.nft.v1beta1.QueryBalanceResponse}
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryBalanceResponse;
return proto.cosmos.nft.v1beta1.QueryBalanceResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryBalanceResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryBalanceResponse}
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.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.setAmount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryBalanceResponse.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.nft.v1beta1.QueryBalanceResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAmount();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
};
/**
* optional uint64 amount = 1;
* @return {number}
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.prototype.getAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.cosmos.nft.v1beta1.QueryBalanceResponse} returns this
*/
proto.cosmos.nft.v1beta1.QueryBalanceResponse.prototype.setAmount = function(value) {
return jspb.Message.setProto3IntField(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.nft.v1beta1.QueryOwnerRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryOwnerRequest.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.nft.v1beta1.QueryOwnerRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.toObject = function(includeInstance, msg) {
var f, obj = {
classId: jspb.Message.getFieldWithDefault(msg, 1, ""),
id: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.nft.v1beta1.QueryOwnerRequest}
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryOwnerRequest;
return proto.cosmos.nft.v1beta1.QueryOwnerRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryOwnerRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryOwnerRequest}
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.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.setClassId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryOwnerRequest.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.nft.v1beta1.QueryOwnerRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClassId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string class_id = 1;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.prototype.getClassId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryOwnerRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.prototype.setClassId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string id = 2;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryOwnerRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryOwnerRequest.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 2, 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.nft.v1beta1.QueryOwnerResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryOwnerResponse.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.nft.v1beta1.QueryOwnerResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.toObject = function(includeInstance, msg) {
var f, obj = {
owner: 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.nft.v1beta1.QueryOwnerResponse}
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryOwnerResponse;
return proto.cosmos.nft.v1beta1.QueryOwnerResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryOwnerResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryOwnerResponse}
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.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.setOwner(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryOwnerResponse.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.nft.v1beta1.QueryOwnerResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getOwner();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string owner = 1;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.prototype.getOwner = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryOwnerResponse} returns this
*/
proto.cosmos.nft.v1beta1.QueryOwnerResponse.prototype.setOwner = 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.nft.v1beta1.QuerySupplyRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QuerySupplyRequest.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.nft.v1beta1.QuerySupplyRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.toObject = function(includeInstance, msg) {
var f, obj = {
classId: 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.nft.v1beta1.QuerySupplyRequest}
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QuerySupplyRequest;
return proto.cosmos.nft.v1beta1.QuerySupplyRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QuerySupplyRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QuerySupplyRequest}
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.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.setClassId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QuerySupplyRequest.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.nft.v1beta1.QuerySupplyRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClassId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string class_id = 1;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.prototype.getClassId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QuerySupplyRequest} returns this
*/
proto.cosmos.nft.v1beta1.QuerySupplyRequest.prototype.setClassId = 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.nft.v1beta1.QuerySupplyResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QuerySupplyResponse.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.nft.v1beta1.QuerySupplyResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.toObject = function(includeInstance, msg) {
var f, obj = {
amount: 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.cosmos.nft.v1beta1.QuerySupplyResponse}
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QuerySupplyResponse;
return proto.cosmos.nft.v1beta1.QuerySupplyResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QuerySupplyResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QuerySupplyResponse}
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.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.setAmount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QuerySupplyResponse.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.nft.v1beta1.QuerySupplyResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAmount();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
};
/**
* optional uint64 amount = 1;
* @return {number}
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.prototype.getAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.cosmos.nft.v1beta1.QuerySupplyResponse} returns this
*/
proto.cosmos.nft.v1beta1.QuerySupplyResponse.prototype.setAmount = function(value) {
return jspb.Message.setProto3IntField(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.nft.v1beta1.QueryNFTsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryNFTsRequest.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.nft.v1beta1.QueryNFTsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
classId: jspb.Message.getFieldWithDefault(msg, 1, ""),
owner: 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.nft.v1beta1.QueryNFTsRequest}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryNFTsRequest;
return proto.cosmos.nft.v1beta1.QueryNFTsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryNFTsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsRequest}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.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.setClassId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setOwner(value);
break;
case 3:
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.nft.v1beta1.QueryNFTsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryNFTsRequest.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.nft.v1beta1.QueryNFTsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClassId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getOwner();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
3,
f,
cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter
);
}
};
/**
* optional string class_id = 1;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.getClassId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.setClassId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string owner = 2;
* @return {string}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.getOwner = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.setOwner = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional cosmos.base.query.v1beta1.PageRequest pagination = 3;
* @return {?proto.cosmos.base.query.v1beta1.PageRequest}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.getPagination = function() {
return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ (
jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 3));
};
/**
* @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.setPagination = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsRequest} returns this
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.clearPagination = function() {
return this.setPagination(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmos.nft.v1beta1.QueryNFTsRequest.prototype.hasPagination = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.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.nft.v1beta1.QueryNFTsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.nft.v1beta1.QueryNFTsResponse.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.nft.v1beta1.QueryNFTsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
nftsList: jspb.Message.toObjectList(msg.getNftsList(),
cosmos_nft_v1beta1_nft_pb.NFT.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.nft.v1beta1.QueryNFTsResponse}
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.nft.v1beta1.QueryNFTsResponse;
return proto.cosmos.nft.v1beta1.QueryNFTsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.nft.v1beta1.QueryNFTsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.nft.v1beta1.QueryNFTsResponse}
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new cosmos_nft_v1beta1_nft_pb.NFT;
reader.readMessage(value,cosmos_nft_v1beta1_nft_pb.NFT.deserializeBinaryFromReader);
msg.addNfts(value);
break;
case 2:
var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse;
reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader);
msg.setPagination(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.nft.v1beta1.QueryNFTsResponse.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.nft.v1beta1.QueryNFTsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.nft.v1beta1.QueryNFTsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getNftsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
cosmos_nft_v1beta1_nft_pb.NFT.serializeBinaryToWriter
);
}
f = message.getPagination();
if (f != null) {
writer.writeMessage(
2,
f,
cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBin