UNPKG

@bandprotocol/bandchain.js

Version:

Library for interacting with BandChain in browser and Node.js environments

666 lines (621 loc) 19.9 kB
// source: cosmos/nft/v1beta1/event.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')() goog.exportSymbol('proto.cosmos.nft.v1beta1.EventBurn', null, global) goog.exportSymbol('proto.cosmos.nft.v1beta1.EventMint', null, global) goog.exportSymbol('proto.cosmos.nft.v1beta1.EventSend', 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.EventSend = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.nft.v1beta1.EventSend, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.nft.v1beta1.EventSend.displayName = 'proto.cosmos.nft.v1beta1.EventSend' } /** * 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.EventMint = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.nft.v1beta1.EventMint, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.nft.v1beta1.EventMint.displayName = 'proto.cosmos.nft.v1beta1.EventMint' } /** * 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.EventBurn = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.nft.v1beta1.EventBurn, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.nft.v1beta1.EventBurn.displayName = 'proto.cosmos.nft.v1beta1.EventBurn' } 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.EventSend.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.nft.v1beta1.EventSend.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.EventSend} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventSend.toObject = function ( includeInstance, msg, ) { var f, obj = { classId: jspb.Message.getFieldWithDefault(msg, 1, ''), id: jspb.Message.getFieldWithDefault(msg, 2, ''), sender: jspb.Message.getFieldWithDefault(msg, 3, ''), receiver: jspb.Message.getFieldWithDefault(msg, 4, ''), } 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.EventSend} */ proto.cosmos.nft.v1beta1.EventSend.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.nft.v1beta1.EventSend() return proto.cosmos.nft.v1beta1.EventSend.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.nft.v1beta1.EventSend} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.nft.v1beta1.EventSend} */ proto.cosmos.nft.v1beta1.EventSend.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 case 3: var value = /** @type {string} */ (reader.readString()) msg.setSender(value) break case 4: var value = /** @type {string} */ (reader.readString()) msg.setReceiver(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.nft.v1beta1.EventSend.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.nft.v1beta1.EventSend.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.EventSend} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventSend.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) } f = message.getSender() if (f.length > 0) { writer.writeString(3, f) } f = message.getReceiver() if (f.length > 0) { writer.writeString(4, f) } } /** * optional string class_id = 1; * @return {string} */ proto.cosmos.nft.v1beta1.EventSend.prototype.getClassId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventSend} returns this */ proto.cosmos.nft.v1beta1.EventSend.prototype.setClassId = function (value) { return jspb.Message.setProto3StringField(this, 1, value) } /** * optional string id = 2; * @return {string} */ proto.cosmos.nft.v1beta1.EventSend.prototype.getId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventSend} returns this */ proto.cosmos.nft.v1beta1.EventSend.prototype.setId = function (value) { return jspb.Message.setProto3StringField(this, 2, value) } /** * optional string sender = 3; * @return {string} */ proto.cosmos.nft.v1beta1.EventSend.prototype.getSender = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventSend} returns this */ proto.cosmos.nft.v1beta1.EventSend.prototype.setSender = function (value) { return jspb.Message.setProto3StringField(this, 3, value) } /** * optional string receiver = 4; * @return {string} */ proto.cosmos.nft.v1beta1.EventSend.prototype.getReceiver = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventSend} returns this */ proto.cosmos.nft.v1beta1.EventSend.prototype.setReceiver = function (value) { return jspb.Message.setProto3StringField(this, 4, 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.EventMint.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.nft.v1beta1.EventMint.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.EventMint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventMint.toObject = function ( includeInstance, msg, ) { var f, obj = { classId: jspb.Message.getFieldWithDefault(msg, 1, ''), id: jspb.Message.getFieldWithDefault(msg, 2, ''), owner: jspb.Message.getFieldWithDefault(msg, 3, ''), } 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.EventMint} */ proto.cosmos.nft.v1beta1.EventMint.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.nft.v1beta1.EventMint() return proto.cosmos.nft.v1beta1.EventMint.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.nft.v1beta1.EventMint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.nft.v1beta1.EventMint} */ proto.cosmos.nft.v1beta1.EventMint.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 case 3: 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.EventMint.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.nft.v1beta1.EventMint.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.EventMint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventMint.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) } f = message.getOwner() if (f.length > 0) { writer.writeString(3, f) } } /** * optional string class_id = 1; * @return {string} */ proto.cosmos.nft.v1beta1.EventMint.prototype.getClassId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventMint} returns this */ proto.cosmos.nft.v1beta1.EventMint.prototype.setClassId = function (value) { return jspb.Message.setProto3StringField(this, 1, value) } /** * optional string id = 2; * @return {string} */ proto.cosmos.nft.v1beta1.EventMint.prototype.getId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventMint} returns this */ proto.cosmos.nft.v1beta1.EventMint.prototype.setId = function (value) { return jspb.Message.setProto3StringField(this, 2, value) } /** * optional string owner = 3; * @return {string} */ proto.cosmos.nft.v1beta1.EventMint.prototype.getOwner = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventMint} returns this */ proto.cosmos.nft.v1beta1.EventMint.prototype.setOwner = function (value) { return jspb.Message.setProto3StringField(this, 3, 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.EventBurn.prototype.toObject = function ( opt_includeInstance, ) { return proto.cosmos.nft.v1beta1.EventBurn.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.EventBurn} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventBurn.toObject = function ( includeInstance, msg, ) { var f, obj = { classId: jspb.Message.getFieldWithDefault(msg, 1, ''), id: jspb.Message.getFieldWithDefault(msg, 2, ''), owner: jspb.Message.getFieldWithDefault(msg, 3, ''), } 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.EventBurn} */ proto.cosmos.nft.v1beta1.EventBurn.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.nft.v1beta1.EventBurn() return proto.cosmos.nft.v1beta1.EventBurn.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.nft.v1beta1.EventBurn} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.nft.v1beta1.EventBurn} */ proto.cosmos.nft.v1beta1.EventBurn.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 case 3: 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.EventBurn.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.nft.v1beta1.EventBurn.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.EventBurn} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.nft.v1beta1.EventBurn.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) } f = message.getOwner() if (f.length > 0) { writer.writeString(3, f) } } /** * optional string class_id = 1; * @return {string} */ proto.cosmos.nft.v1beta1.EventBurn.prototype.getClassId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventBurn} returns this */ proto.cosmos.nft.v1beta1.EventBurn.prototype.setClassId = function (value) { return jspb.Message.setProto3StringField(this, 1, value) } /** * optional string id = 2; * @return {string} */ proto.cosmos.nft.v1beta1.EventBurn.prototype.getId = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventBurn} returns this */ proto.cosmos.nft.v1beta1.EventBurn.prototype.setId = function (value) { return jspb.Message.setProto3StringField(this, 2, value) } /** * optional string owner = 3; * @return {string} */ proto.cosmos.nft.v1beta1.EventBurn.prototype.getOwner = function () { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, '')) } /** * @param {string} value * @return {!proto.cosmos.nft.v1beta1.EventBurn} returns this */ proto.cosmos.nft.v1beta1.EventBurn.prototype.setOwner = function (value) { return jspb.Message.setProto3StringField(this, 3, value) } goog.object.extend(exports, proto.cosmos.nft.v1beta1)