UNPKG

@bandprotocol/bandchain.js

Version:

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

382 lines (359 loc) 12.3 kB
// source: cosmos/reflection/v1/reflection.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) var cosmos_query_v1_query_pb = require('../../../cosmos/query/v1/query_pb.js') goog.object.extend(proto, cosmos_query_v1_query_pb) goog.exportSymbol( 'proto.cosmos.reflection.v1.FileDescriptorsRequest', null, global, ) goog.exportSymbol( 'proto.cosmos.reflection.v1.FileDescriptorsResponse', 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.reflection.v1.FileDescriptorsRequest = function (opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null) } goog.inherits(proto.cosmos.reflection.v1.FileDescriptorsRequest, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.reflection.v1.FileDescriptorsRequest.displayName = 'proto.cosmos.reflection.v1.FileDescriptorsRequest' } /** * 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.reflection.v1.FileDescriptorsResponse = function (opt_data) { jspb.Message.initialize( this, opt_data, 0, -1, proto.cosmos.reflection.v1.FileDescriptorsResponse.repeatedFields_, null, ) } goog.inherits(proto.cosmos.reflection.v1.FileDescriptorsResponse, jspb.Message) if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.reflection.v1.FileDescriptorsResponse.displayName = 'proto.cosmos.reflection.v1.FileDescriptorsResponse' } 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.reflection.v1.FileDescriptorsRequest.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.reflection.v1.FileDescriptorsRequest.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.reflection.v1.FileDescriptorsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.reflection.v1.FileDescriptorsRequest.toObject = function ( includeInstance, msg, ) { var f, obj = {} 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.reflection.v1.FileDescriptorsRequest} */ proto.cosmos.reflection.v1.FileDescriptorsRequest.deserializeBinary = function ( bytes, ) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.reflection.v1.FileDescriptorsRequest() return proto.cosmos.reflection.v1.FileDescriptorsRequest.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.reflection.v1.FileDescriptorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.reflection.v1.FileDescriptorsRequest} */ proto.cosmos.reflection.v1.FileDescriptorsRequest.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.reflection.v1.FileDescriptorsRequest.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.reflection.v1.FileDescriptorsRequest.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.reflection.v1.FileDescriptorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.reflection.v1.FileDescriptorsRequest.serializeBinaryToWriter = function (message, writer) { var f = undefined } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.reflection.v1.FileDescriptorsResponse.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.reflection.v1.FileDescriptorsResponse.prototype.toObject = function (opt_includeInstance) { return proto.cosmos.reflection.v1.FileDescriptorsResponse.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.reflection.v1.FileDescriptorsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.reflection.v1.FileDescriptorsResponse.toObject = function ( includeInstance, msg, ) { var f, obj = { filesList: jspb.Message.toObjectList( msg.getFilesList(), google_protobuf_descriptor_pb.FileDescriptorProto.toObject, includeInstance, ), } if (includeInstance) { obj.$jspbMessageInstance = msg } return obj } } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.cosmos.reflection.v1.FileDescriptorsResponse} */ proto.cosmos.reflection.v1.FileDescriptorsResponse.deserializeBinary = function (bytes) { var reader = new jspb.BinaryReader(bytes) var msg = new proto.cosmos.reflection.v1.FileDescriptorsResponse() return proto.cosmos.reflection.v1.FileDescriptorsResponse.deserializeBinaryFromReader( msg, reader, ) } /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.reflection.v1.FileDescriptorsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.reflection.v1.FileDescriptorsResponse} */ proto.cosmos.reflection.v1.FileDescriptorsResponse.deserializeBinaryFromReader = function (msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break } var field = reader.getFieldNumber() switch (field) { case 1: var value = new google_protobuf_descriptor_pb.FileDescriptorProto() reader.readMessage( value, google_protobuf_descriptor_pb.FileDescriptorProto .deserializeBinaryFromReader, ) msg.addFiles(value) break default: reader.skipField() break } } return msg } /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.reflection.v1.FileDescriptorsResponse.prototype.serializeBinary = function () { var writer = new jspb.BinaryWriter() proto.cosmos.reflection.v1.FileDescriptorsResponse.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.reflection.v1.FileDescriptorsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.reflection.v1.FileDescriptorsResponse.serializeBinaryToWriter = function (message, writer) { var f = undefined f = message.getFilesList() if (f.length > 0) { writer.writeRepeatedMessage( 1, f, google_protobuf_descriptor_pb.FileDescriptorProto .serializeBinaryToWriter, ) } } /** * repeated google.protobuf.FileDescriptorProto files = 1; * @return {!Array<!proto.google.protobuf.FileDescriptorProto>} */ proto.cosmos.reflection.v1.FileDescriptorsResponse.prototype.getFilesList = function () { return /** @type{!Array<!proto.google.protobuf.FileDescriptorProto>} */ ( jspb.Message.getRepeatedWrapperField( this, google_protobuf_descriptor_pb.FileDescriptorProto, 1, ) ) } /** * @param {!Array<!proto.google.protobuf.FileDescriptorProto>} value * @return {!proto.cosmos.reflection.v1.FileDescriptorsResponse} returns this */ proto.cosmos.reflection.v1.FileDescriptorsResponse.prototype.setFilesList = function (value) { return jspb.Message.setRepeatedWrapperField(this, 1, value) } /** * @param {!proto.google.protobuf.FileDescriptorProto=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.FileDescriptorProto} */ proto.cosmos.reflection.v1.FileDescriptorsResponse.prototype.addFiles = function (opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField( this, 1, opt_value, proto.google.protobuf.FileDescriptorProto, opt_index, ) } /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.reflection.v1.FileDescriptorsResponse} returns this */ proto.cosmos.reflection.v1.FileDescriptorsResponse.prototype.clearFilesList = function () { return this.setFilesList([]) } goog.object.extend(exports, proto.cosmos.reflection.v1)