Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/common-rpc

Package Overview
Dependencies
Maintainers
11
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/common-rpc - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

136

common_pb.d.ts

@@ -94,118 +94,2 @@ // package: common_rpc

export class Expression extends jspb.Message {
getField(): string;
setField(value: string): void;
getOperator(): OperatorMap[keyof OperatorMap];
setOperator(value: OperatorMap[keyof OperatorMap]): void;
getValue(): string;
setValue(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Expression.AsObject;
static toObject(includeInstance: boolean, msg: Expression): Expression.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Expression, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Expression;
static deserializeBinaryFromReader(message: Expression, reader: jspb.BinaryReader): Expression;
}
export namespace Expression {
export type AsObject = {
field: string,
operator: OperatorMap[keyof OperatorMap],
value: string,
}
}
export class Filter extends jspb.Message {
getConnective(): LogicalConnectiveMap[keyof LogicalConnectiveMap];
setConnective(value: LogicalConnectiveMap[keyof LogicalConnectiveMap]): void;
clearFiltersList(): void;
getFiltersList(): Array<Filter>;
setFiltersList(value: Array<Filter>): void;
addFilters(value?: Filter, index?: number): Filter;
hasExp(): boolean;
clearExp(): void;
getExp(): Expression | undefined;
setExp(value?: Expression): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Filter.AsObject;
static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Filter;
static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter;
}
export namespace Filter {
export type AsObject = {
connective: LogicalConnectiveMap[keyof LogicalConnectiveMap],
filtersList: Array<Filter.AsObject>,
exp?: Expression.AsObject,
}
}
export class CommonListReq extends jspb.Message {
hasPag(): boolean;
clearPag(): void;
getPag(): Pag | undefined;
setPag(value?: Pag): void;
hasFilter(): boolean;
clearFilter(): void;
getFilter(): Filter | undefined;
setFilter(value?: Filter): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CommonListReq.AsObject;
static toObject(includeInstance: boolean, msg: CommonListReq): CommonListReq.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: CommonListReq, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): CommonListReq;
static deserializeBinaryFromReader(message: CommonListReq, reader: jspb.BinaryReader): CommonListReq;
}
export namespace CommonListReq {
export type AsObject = {
pag?: Pag.AsObject,
filter?: Filter.AsObject,
}
}
export class ListResp extends jspb.Message {
hasPag(): boolean;
clearPag(): void;
getPag(): Pag | undefined;
setPag(value?: Pag): void;
clearDataList(): void;
getDataList(): Array<google_protobuf_any_pb.Any>;
setDataList(value: Array<google_protobuf_any_pb.Any>): void;
addData(value?: google_protobuf_any_pb.Any, index?: number): google_protobuf_any_pb.Any;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListResp.AsObject;
static toObject(includeInstance: boolean, msg: ListResp): ListResp.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ListResp, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ListResp;
static deserializeBinaryFromReader(message: ListResp, reader: jspb.BinaryReader): ListResp;
}
export namespace ListResp {
export type AsObject = {
pag?: Pag.AsObject,
dataList: Array<google_protobuf_any_pb.Any.AsObject>,
}
}
export class CommonResp extends jspb.Message {

@@ -241,21 +125,1 @@ getCode(): string;

export interface LogicalConnectiveMap {
LOGICAL_CONNECTIVE_UNSPECIFIED: 0;
LOGICAL_CONNECTIVE_AND: 1;
LOGICAL_CONNECTIVE_OR: 2;
}
export const LogicalConnective: LogicalConnectiveMap;
export interface OperatorMap {
OPERATOR_UNSPECIFIED: 0;
OPERATOR_EQ: 1;
OPERATOR_NE: 2;
OPERATOR_GT: 3;
OPERATOR_GTE: 4;
OPERATOR_LT: 5;
OPERATOR_LTE: 6;
}
export const Operator: OperatorMap;

@@ -26,9 +26,3 @@ // source: common-rpc/common.proto

goog.object.extend(proto, google_protobuf_any_pb);
goog.exportSymbol('proto.common_rpc.CommonListReq', null, global);
goog.exportSymbol('proto.common_rpc.CommonResp', null, global);
goog.exportSymbol('proto.common_rpc.Expression', null, global);
goog.exportSymbol('proto.common_rpc.Filter', null, global);
goog.exportSymbol('proto.common_rpc.ListResp', null, global);
goog.exportSymbol('proto.common_rpc.LogicalConnective', null, global);
goog.exportSymbol('proto.common_rpc.Operator', null, global);
goog.exportSymbol('proto.common_rpc.Pag', null, global);

@@ -111,86 +105,2 @@ goog.exportSymbol('proto.common_rpc.Pag.PagtypeCase', null, global);

*/
proto.common_rpc.Expression = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.common_rpc.Expression, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.common_rpc.Expression.displayName = 'proto.common_rpc.Expression';
}
/**
* 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.common_rpc.Filter = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.common_rpc.Filter.repeatedFields_, null);
};
goog.inherits(proto.common_rpc.Filter, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.common_rpc.Filter.displayName = 'proto.common_rpc.Filter';
}
/**
* 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.common_rpc.CommonListReq = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.common_rpc.CommonListReq, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.common_rpc.CommonListReq.displayName = 'proto.common_rpc.CommonListReq';
}
/**
* 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.common_rpc.ListResp = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.common_rpc.ListResp.repeatedFields_, null);
};
goog.inherits(proto.common_rpc.ListResp, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.common_rpc.ListResp.displayName = 'proto.common_rpc.ListResp';
}
/**
* 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.common_rpc.CommonResp = function(opt_data) {

@@ -801,846 +711,2 @@ jspb.Message.initialize(this, opt_data, 0, -1, null, null);

*/
proto.common_rpc.Expression.prototype.toObject = function(opt_includeInstance) {
return proto.common_rpc.Expression.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.common_rpc.Expression} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.Expression.toObject = function(includeInstance, msg) {
var f, obj = {
field: jspb.Message.getFieldWithDefault(msg, 1, ""),
operator: jspb.Message.getFieldWithDefault(msg, 2, 0),
value: 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.common_rpc.Expression}
*/
proto.common_rpc.Expression.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.common_rpc.Expression;
return proto.common_rpc.Expression.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.common_rpc.Expression} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.common_rpc.Expression}
*/
proto.common_rpc.Expression.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.setField(value);
break;
case 2:
var value = /** @type {!proto.common_rpc.Operator} */ (reader.readEnum());
msg.setOperator(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common_rpc.Expression.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.common_rpc.Expression.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.common_rpc.Expression} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.Expression.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getField();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getOperator();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string field = 1;
* @return {string}
*/
proto.common_rpc.Expression.prototype.getField = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.common_rpc.Expression} returns this
*/
proto.common_rpc.Expression.prototype.setField = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional Operator operator = 2;
* @return {!proto.common_rpc.Operator}
*/
proto.common_rpc.Expression.prototype.getOperator = function() {
return /** @type {!proto.common_rpc.Operator} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {!proto.common_rpc.Operator} value
* @return {!proto.common_rpc.Expression} returns this
*/
proto.common_rpc.Expression.prototype.setOperator = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
* optional string value = 3;
* @return {string}
*/
proto.common_rpc.Expression.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.common_rpc.Expression} returns this
*/
proto.common_rpc.Expression.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.common_rpc.Filter.repeatedFields_ = [2];
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.common_rpc.Filter.prototype.toObject = function(opt_includeInstance) {
return proto.common_rpc.Filter.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.common_rpc.Filter} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.Filter.toObject = function(includeInstance, msg) {
var f, obj = {
connective: jspb.Message.getFieldWithDefault(msg, 1, 0),
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
proto.common_rpc.Filter.toObject, includeInstance),
exp: (f = msg.getExp()) && proto.common_rpc.Expression.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.common_rpc.Filter}
*/
proto.common_rpc.Filter.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.common_rpc.Filter;
return proto.common_rpc.Filter.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.common_rpc.Filter} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.common_rpc.Filter}
*/
proto.common_rpc.Filter.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!proto.common_rpc.LogicalConnective} */ (reader.readEnum());
msg.setConnective(value);
break;
case 2:
var value = new proto.common_rpc.Filter;
reader.readMessage(value,proto.common_rpc.Filter.deserializeBinaryFromReader);
msg.addFilters(value);
break;
case 3:
var value = new proto.common_rpc.Expression;
reader.readMessage(value,proto.common_rpc.Expression.deserializeBinaryFromReader);
msg.setExp(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common_rpc.Filter.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.common_rpc.Filter.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.common_rpc.Filter} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.Filter.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getConnective();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
f = message.getFiltersList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
proto.common_rpc.Filter.serializeBinaryToWriter
);
}
f = message.getExp();
if (f != null) {
writer.writeMessage(
3,
f,
proto.common_rpc.Expression.serializeBinaryToWriter
);
}
};
/**
* optional LogicalConnective connective = 1;
* @return {!proto.common_rpc.LogicalConnective}
*/
proto.common_rpc.Filter.prototype.getConnective = function() {
return /** @type {!proto.common_rpc.LogicalConnective} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {!proto.common_rpc.LogicalConnective} value
* @return {!proto.common_rpc.Filter} returns this
*/
proto.common_rpc.Filter.prototype.setConnective = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};
/**
* repeated Filter filters = 2;
* @return {!Array<!proto.common_rpc.Filter>}
*/
proto.common_rpc.Filter.prototype.getFiltersList = function() {
return /** @type{!Array<!proto.common_rpc.Filter>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.common_rpc.Filter, 2));
};
/**
* @param {!Array<!proto.common_rpc.Filter>} value
* @return {!proto.common_rpc.Filter} returns this
*/
proto.common_rpc.Filter.prototype.setFiltersList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.common_rpc.Filter=} opt_value
* @param {number=} opt_index
* @return {!proto.common_rpc.Filter}
*/
proto.common_rpc.Filter.prototype.addFilters = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.common_rpc.Filter, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.common_rpc.Filter} returns this
*/
proto.common_rpc.Filter.prototype.clearFiltersList = function() {
return this.setFiltersList([]);
};
/**
* optional Expression exp = 3;
* @return {?proto.common_rpc.Expression}
*/
proto.common_rpc.Filter.prototype.getExp = function() {
return /** @type{?proto.common_rpc.Expression} */ (
jspb.Message.getWrapperField(this, proto.common_rpc.Expression, 3));
};
/**
* @param {?proto.common_rpc.Expression|undefined} value
* @return {!proto.common_rpc.Filter} returns this
*/
proto.common_rpc.Filter.prototype.setExp = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.common_rpc.Filter} returns this
*/
proto.common_rpc.Filter.prototype.clearExp = function() {
return this.setExp(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.common_rpc.Filter.prototype.hasExp = function() {
return jspb.Message.getField(this, 3) != null;
};
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.common_rpc.CommonListReq.prototype.toObject = function(opt_includeInstance) {
return proto.common_rpc.CommonListReq.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.common_rpc.CommonListReq} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.CommonListReq.toObject = function(includeInstance, msg) {
var f, obj = {
pag: (f = msg.getPag()) && proto.common_rpc.Pag.toObject(includeInstance, f),
filter: (f = msg.getFilter()) && proto.common_rpc.Filter.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.common_rpc.CommonListReq}
*/
proto.common_rpc.CommonListReq.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.common_rpc.CommonListReq;
return proto.common_rpc.CommonListReq.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.common_rpc.CommonListReq} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.common_rpc.CommonListReq}
*/
proto.common_rpc.CommonListReq.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.common_rpc.Pag;
reader.readMessage(value,proto.common_rpc.Pag.deserializeBinaryFromReader);
msg.setPag(value);
break;
case 2:
var value = new proto.common_rpc.Filter;
reader.readMessage(value,proto.common_rpc.Filter.deserializeBinaryFromReader);
msg.setFilter(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common_rpc.CommonListReq.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.common_rpc.CommonListReq.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.common_rpc.CommonListReq} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.CommonListReq.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPag();
if (f != null) {
writer.writeMessage(
1,
f,
proto.common_rpc.Pag.serializeBinaryToWriter
);
}
f = message.getFilter();
if (f != null) {
writer.writeMessage(
2,
f,
proto.common_rpc.Filter.serializeBinaryToWriter
);
}
};
/**
* optional Pag pag = 1;
* @return {?proto.common_rpc.Pag}
*/
proto.common_rpc.CommonListReq.prototype.getPag = function() {
return /** @type{?proto.common_rpc.Pag} */ (
jspb.Message.getWrapperField(this, proto.common_rpc.Pag, 1));
};
/**
* @param {?proto.common_rpc.Pag|undefined} value
* @return {!proto.common_rpc.CommonListReq} returns this
*/
proto.common_rpc.CommonListReq.prototype.setPag = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.common_rpc.CommonListReq} returns this
*/
proto.common_rpc.CommonListReq.prototype.clearPag = function() {
return this.setPag(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.common_rpc.CommonListReq.prototype.hasPag = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional Filter filter = 2;
* @return {?proto.common_rpc.Filter}
*/
proto.common_rpc.CommonListReq.prototype.getFilter = function() {
return /** @type{?proto.common_rpc.Filter} */ (
jspb.Message.getWrapperField(this, proto.common_rpc.Filter, 2));
};
/**
* @param {?proto.common_rpc.Filter|undefined} value
* @return {!proto.common_rpc.CommonListReq} returns this
*/
proto.common_rpc.CommonListReq.prototype.setFilter = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.common_rpc.CommonListReq} returns this
*/
proto.common_rpc.CommonListReq.prototype.clearFilter = function() {
return this.setFilter(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.common_rpc.CommonListReq.prototype.hasFilter = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.common_rpc.ListResp.repeatedFields_ = [2];
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.common_rpc.ListResp.prototype.toObject = function(opt_includeInstance) {
return proto.common_rpc.ListResp.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.common_rpc.ListResp} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.ListResp.toObject = function(includeInstance, msg) {
var f, obj = {
pag: (f = msg.getPag()) && proto.common_rpc.Pag.toObject(includeInstance, f),
dataList: jspb.Message.toObjectList(msg.getDataList(),
google_protobuf_any_pb.Any.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.common_rpc.ListResp}
*/
proto.common_rpc.ListResp.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.common_rpc.ListResp;
return proto.common_rpc.ListResp.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.common_rpc.ListResp} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.common_rpc.ListResp}
*/
proto.common_rpc.ListResp.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.common_rpc.Pag;
reader.readMessage(value,proto.common_rpc.Pag.deserializeBinaryFromReader);
msg.setPag(value);
break;
case 2:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.addData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.common_rpc.ListResp.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.common_rpc.ListResp.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.common_rpc.ListResp} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.common_rpc.ListResp.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPag();
if (f != null) {
writer.writeMessage(
1,
f,
proto.common_rpc.Pag.serializeBinaryToWriter
);
}
f = message.getDataList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
};
/**
* optional Pag pag = 1;
* @return {?proto.common_rpc.Pag}
*/
proto.common_rpc.ListResp.prototype.getPag = function() {
return /** @type{?proto.common_rpc.Pag} */ (
jspb.Message.getWrapperField(this, proto.common_rpc.Pag, 1));
};
/**
* @param {?proto.common_rpc.Pag|undefined} value
* @return {!proto.common_rpc.ListResp} returns this
*/
proto.common_rpc.ListResp.prototype.setPag = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.common_rpc.ListResp} returns this
*/
proto.common_rpc.ListResp.prototype.clearPag = function() {
return this.setPag(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.common_rpc.ListResp.prototype.hasPag = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* repeated google.protobuf.Any data = 2;
* @return {!Array<!proto.google.protobuf.Any>}
*/
proto.common_rpc.ListResp.prototype.getDataList = function() {
return /** @type{!Array<!proto.google.protobuf.Any>} */ (
jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 2));
};
/**
* @param {!Array<!proto.google.protobuf.Any>} value
* @return {!proto.common_rpc.ListResp} returns this
*/
proto.common_rpc.ListResp.prototype.setDataList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.google.protobuf.Any=} opt_value
* @param {number=} opt_index
* @return {!proto.google.protobuf.Any}
*/
proto.common_rpc.ListResp.prototype.addData = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Any, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.common_rpc.ListResp} returns this
*/
proto.common_rpc.ListResp.prototype.clearDataList = function() {
return this.setDataList([]);
};
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.common_rpc.CommonResp.prototype.toObject = function(opt_includeInstance) {

@@ -1841,24 +907,2 @@ return proto.common_rpc.CommonResp.toObject(opt_includeInstance, this);

/**
* @enum {number}
*/
proto.common_rpc.LogicalConnective = {
LOGICAL_CONNECTIVE_UNSPECIFIED: 0,
LOGICAL_CONNECTIVE_AND: 1,
LOGICAL_CONNECTIVE_OR: 2
};
/**
* @enum {number}
*/
proto.common_rpc.Operator = {
OPERATOR_UNSPECIFIED: 0,
OPERATOR_EQ: 1,
OPERATOR_NE: 2,
OPERATOR_GT: 3,
OPERATOR_GTE: 4,
OPERATOR_LT: 5,
OPERATOR_LTE: 6
};
goog.object.extend(exports, proto.common_rpc);

2

package.json
{
"name": "@injectivelabs/common-rpc",
"version": "1.0.9",
"version": "1.0.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "common_pb.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc