UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

687 lines (599 loc) 22.5 kB
// source: cosmos_proto/cosmos.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 google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); goog.exportSymbol('proto.cosmos_proto.InterfaceDescriptor', null, global); goog.exportSymbol('proto.cosmos_proto.ScalarDescriptor', null, global); goog.exportSymbol('proto.cosmos_proto.ScalarType', null, global); goog.exportSymbol('proto.cosmos_proto.acceptsInterface', null, global); goog.exportSymbol('proto.cosmos_proto.declareInterfaceList', null, global); goog.exportSymbol('proto.cosmos_proto.declareScalarList', null, global); goog.exportSymbol('proto.cosmos_proto.fieldAddedIn', null, global); goog.exportSymbol('proto.cosmos_proto.fileAddedIn', null, global); goog.exportSymbol('proto.cosmos_proto.implementsInterfaceList', null, global); goog.exportSymbol('proto.cosmos_proto.messageAddedIn', null, global); goog.exportSymbol('proto.cosmos_proto.methodAddedIn', null, global); goog.exportSymbol('proto.cosmos_proto.scalar', 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_proto.InterfaceDescriptor = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos_proto.InterfaceDescriptor, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos_proto.InterfaceDescriptor.displayName = 'proto.cosmos_proto.InterfaceDescriptor'; } /** * 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_proto.ScalarDescriptor = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos_proto.ScalarDescriptor.repeatedFields_, null); }; goog.inherits(proto.cosmos_proto.ScalarDescriptor, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos_proto.ScalarDescriptor.displayName = 'proto.cosmos_proto.ScalarDescriptor'; } 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_proto.InterfaceDescriptor.prototype.toObject = function(opt_includeInstance) { return proto.cosmos_proto.InterfaceDescriptor.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_proto.InterfaceDescriptor} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos_proto.InterfaceDescriptor.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), description: 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_proto.InterfaceDescriptor} */ proto.cosmos_proto.InterfaceDescriptor.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos_proto.InterfaceDescriptor; return proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos_proto.InterfaceDescriptor} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos_proto.InterfaceDescriptor} */ proto.cosmos_proto.InterfaceDescriptor.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.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos_proto.InterfaceDescriptor.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos_proto.InterfaceDescriptor.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_proto.InterfaceDescriptor} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string name = 1; * @return {string} */ proto.cosmos_proto.InterfaceDescriptor.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this */ proto.cosmos_proto.InterfaceDescriptor.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string description = 2; * @return {string} */ proto.cosmos_proto.InterfaceDescriptor.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this */ proto.cosmos_proto.InterfaceDescriptor.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos_proto.ScalarDescriptor.repeatedFields_ = [3]; 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_proto.ScalarDescriptor.prototype.toObject = function(opt_includeInstance) { return proto.cosmos_proto.ScalarDescriptor.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_proto.ScalarDescriptor} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos_proto.ScalarDescriptor.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), description: jspb.Message.getFieldWithDefault(msg, 2, ""), fieldTypeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : 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_proto.ScalarDescriptor} */ proto.cosmos_proto.ScalarDescriptor.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos_proto.ScalarDescriptor; return proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos_proto.ScalarDescriptor} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos_proto.ScalarDescriptor} */ proto.cosmos_proto.ScalarDescriptor.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.setName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; case 3: var values = /** @type {!Array<!proto.cosmos_proto.ScalarType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); for (var i = 0; i < values.length; i++) { msg.addFieldType(values[i]); } break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos_proto.ScalarDescriptor.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos_proto.ScalarDescriptor.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_proto.ScalarDescriptor} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getFieldTypeList(); if (f.length > 0) { writer.writePackedEnum( 3, f ); } }; /** * optional string name = 1; * @return {string} */ proto.cosmos_proto.ScalarDescriptor.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos_proto.ScalarDescriptor} returns this */ proto.cosmos_proto.ScalarDescriptor.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string description = 2; * @return {string} */ proto.cosmos_proto.ScalarDescriptor.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos_proto.ScalarDescriptor} returns this */ proto.cosmos_proto.ScalarDescriptor.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated ScalarType field_type = 3; * @return {!Array<!proto.cosmos_proto.ScalarType>} */ proto.cosmos_proto.ScalarDescriptor.prototype.getFieldTypeList = function() { return /** @type {!Array<!proto.cosmos_proto.ScalarType>} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array<!proto.cosmos_proto.ScalarType>} value * @return {!proto.cosmos_proto.ScalarDescriptor} returns this */ proto.cosmos_proto.ScalarDescriptor.prototype.setFieldTypeList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {!proto.cosmos_proto.ScalarType} value * @param {number=} opt_index * @return {!proto.cosmos_proto.ScalarDescriptor} returns this */ proto.cosmos_proto.ScalarDescriptor.prototype.addFieldType = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos_proto.ScalarDescriptor} returns this */ proto.cosmos_proto.ScalarDescriptor.prototype.clearFieldTypeList = function() { return this.setFieldTypeList([]); }; /** * @enum {number} */ proto.cosmos_proto.ScalarType = { SCALAR_TYPE_UNSPECIFIED: 0, SCALAR_TYPE_STRING: 1, SCALAR_TYPE_BYTES: 2 }; /** * A tuple of {field number, class constructor} for the extension * field named `methodAddedIn`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.methodAddedIn = new jspb.ExtensionFieldInfo( 93001, {methodAddedIn: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.methodAddedIn, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.MethodOptions.extensions[93001] = proto.cosmos_proto.methodAddedIn; /** * A tuple of {field number, class constructor} for the extension * field named `implementsInterfaceList`. * @type {!jspb.ExtensionFieldInfo<!Array<string>>} */ proto.cosmos_proto.implementsInterfaceList = new jspb.ExtensionFieldInfo( 93001, {implementsInterfaceList: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 1); google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.implementsInterfaceList, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeRepeatedString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.MessageOptions.extensions[93001] = proto.cosmos_proto.implementsInterfaceList; /** * A tuple of {field number, class constructor} for the extension * field named `messageAddedIn`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.messageAddedIn = new jspb.ExtensionFieldInfo( 93002, {messageAddedIn: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93002] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.messageAddedIn, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.MessageOptions.extensions[93002] = proto.cosmos_proto.messageAddedIn; /** * A tuple of {field number, class constructor} for the extension * field named `acceptsInterface`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.acceptsInterface = new jspb.ExtensionFieldInfo( 93001, {acceptsInterface: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.acceptsInterface, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FieldOptions.extensions[93001] = proto.cosmos_proto.acceptsInterface; /** * A tuple of {field number, class constructor} for the extension * field named `scalar`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.scalar = new jspb.ExtensionFieldInfo( 93002, {scalar: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93002] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.scalar, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FieldOptions.extensions[93002] = proto.cosmos_proto.scalar; /** * A tuple of {field number, class constructor} for the extension * field named `fieldAddedIn`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.fieldAddedIn = new jspb.ExtensionFieldInfo( 93003, {fieldAddedIn: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93003] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.fieldAddedIn, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FieldOptions.extensions[93003] = proto.cosmos_proto.fieldAddedIn; /** * A tuple of {field number, class constructor} for the extension * field named `declareInterfaceList`. * @type {!jspb.ExtensionFieldInfo<!Array<!proto.cosmos_proto.InterfaceDescriptor>>} */ proto.cosmos_proto.declareInterfaceList = new jspb.ExtensionFieldInfo( 793021, {declareInterfaceList: 0}, proto.cosmos_proto.InterfaceDescriptor, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( proto.cosmos_proto.InterfaceDescriptor.toObject), 1); google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793021] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.declareInterfaceList, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeRepeatedMessage, proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter, proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FileOptions.extensions[793021] = proto.cosmos_proto.declareInterfaceList; /** * A tuple of {field number, class constructor} for the extension * field named `declareScalarList`. * @type {!jspb.ExtensionFieldInfo<!Array<!proto.cosmos_proto.ScalarDescriptor>>} */ proto.cosmos_proto.declareScalarList = new jspb.ExtensionFieldInfo( 793022, {declareScalarList: 0}, proto.cosmos_proto.ScalarDescriptor, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( proto.cosmos_proto.ScalarDescriptor.toObject), 1); google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793022] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.declareScalarList, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeRepeatedMessage, proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter, proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FileOptions.extensions[793022] = proto.cosmos_proto.declareScalarList; /** * A tuple of {field number, class constructor} for the extension * field named `fileAddedIn`. * @type {!jspb.ExtensionFieldInfo<string>} */ proto.cosmos_proto.fileAddedIn = new jspb.ExtensionFieldInfo( 793023, {fileAddedIn: 0}, null, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( null), 0); google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793023] = new jspb.ExtensionFieldBinaryInfo( proto.cosmos_proto.fileAddedIn, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false); // This registers the extension field with the extended class, so that // toObject() will function correctly. google_protobuf_descriptor_pb.FileOptions.extensions[793023] = proto.cosmos_proto.fileAddedIn; goog.object.extend(exports, proto.cosmos_proto);