@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
652 lines (562 loc) • 23.6 kB
JavaScript
// source: cosmos/base/reflection/v1beta1/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_api_annotations_pb = require('../../../../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
goog.exportSymbol('proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest', null, global);
goog.exportSymbol('proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse', null, global);
goog.exportSymbol('proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest', null, global);
goog.exportSymbol('proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse', 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.base.reflection.v1beta1.ListAllInterfacesRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.displayName = 'proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest';
}
/**
* 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.base.reflection.v1beta1.ListAllInterfacesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.displayName = 'proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse';
}
/**
* 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.base.reflection.v1beta1.ListImplementationsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.displayName = 'proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest';
}
/**
* 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.base.reflection.v1beta1.ListImplementationsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.repeatedFields_, null);
};
goog.inherits(proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.displayName = 'proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse';
}
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.base.reflection.v1beta1.ListAllInterfacesRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.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.base.reflection.v1beta1.ListAllInterfacesRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.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.base.reflection.v1beta1.ListAllInterfacesRequest}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest;
return proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.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.base.reflection.v1beta1.ListAllInterfacesRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.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.base.reflection.v1beta1.ListAllInterfacesRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.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.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.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.base.reflection.v1beta1.ListAllInterfacesResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.toObject = function(includeInstance, msg) {
var f, obj = {
interfaceNamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == 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.base.reflection.v1beta1.ListAllInterfacesResponse}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse;
return proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.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.addInterfaceNames(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.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.base.reflection.v1beta1.ListAllInterfacesResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInterfaceNamesList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string interface_names = 1;
* @return {!Array<string>}
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.getInterfaceNamesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.setInterfaceNamesList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.addInterfaceNames = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListAllInterfacesResponse.prototype.clearInterfaceNamesList = function() {
return this.setInterfaceNamesList([]);
};
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.base.reflection.v1beta1.ListImplementationsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.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.base.reflection.v1beta1.ListImplementationsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
interfaceName: 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.base.reflection.v1beta1.ListImplementationsRequest}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest;
return proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.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.setInterfaceName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.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.base.reflection.v1beta1.ListImplementationsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInterfaceName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string interface_name = 1;
* @return {string}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.prototype.getInterfaceName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsRequest.prototype.setInterfaceName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.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.base.reflection.v1beta1.ListImplementationsResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.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.base.reflection.v1beta1.ListImplementationsResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
implementationMessageNamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == 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.base.reflection.v1beta1.ListImplementationsResponse}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse;
return proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.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.addImplementationMessageNames(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.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.base.reflection.v1beta1.ListImplementationsResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getImplementationMessageNamesList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string implementation_message_names = 1;
* @return {!Array<string>}
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.prototype.getImplementationMessageNamesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.prototype.setImplementationMessageNamesList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.prototype.addImplementationMessageNames = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse} returns this
*/
proto.cosmos.base.reflection.v1beta1.ListImplementationsResponse.prototype.clearImplementationMessageNamesList = function() {
return this.setImplementationMessageNamesList([]);
};
goog.object.extend(exports, proto.cosmos.base.reflection.v1beta1);