Files
npm-core-sdk/stockQuery_pb.ts
2025-03-17 09:56:44 +00:00

295 lines
10 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file stockQuery.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { BlockFilter, EntityID, MatchField, MatchFieldResult, QueryProjectHeader, ResultHeader } from "./shared_pb.js";
import { Stock } from "./stock_pb.js";
/**
* @generated from message api.StockByIdQuery
*/
export class StockByIdQuery extends Message<StockByIdQuery> {
/**
* @generated from field: api.QueryProjectHeader Header = 1;
*/
Header?: QueryProjectHeader;
/**
* @generated from field: repeated api.EntityID IDs = 2;
*/
IDs: EntityID[] = [];
constructor(data?: PartialMessage<StockByIdQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByIdQuery";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
{ no: 2, name: "IDs", kind: "message", T: EntityID, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByIdQuery {
return new StockByIdQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByIdQuery {
return new StockByIdQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByIdQuery {
return new StockByIdQuery().fromJsonString(jsonString, options);
}
static equals(a: StockByIdQuery | PlainMessage<StockByIdQuery> | undefined, b: StockByIdQuery | PlainMessage<StockByIdQuery> | undefined): boolean {
return proto3.util.equals(StockByIdQuery, a, b);
}
}
/**
* @generated from message api.StockByIdResult
*/
export class StockByIdResult extends Message<StockByIdResult> {
/**
* @generated from field: api.ResultHeader Header = 1;
*/
Header?: ResultHeader;
/**
* @generated from field: repeated api.Stock Objects = 2;
*/
Objects: Stock[] = [];
constructor(data?: PartialMessage<StockByIdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByIdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
{ no: 2, name: "Objects", kind: "message", T: Stock, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByIdResult {
return new StockByIdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByIdResult {
return new StockByIdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByIdResult {
return new StockByIdResult().fromJsonString(jsonString, options);
}
static equals(a: StockByIdResult | PlainMessage<StockByIdResult> | undefined, b: StockByIdResult | PlainMessage<StockByIdResult> | undefined): boolean {
return proto3.util.equals(StockByIdResult, a, b);
}
}
/**
* @generated from message api.StockByFilterQuery
*/
export class StockByFilterQuery extends Message<StockByFilterQuery> {
/**
* @generated from field: api.QueryProjectHeader Header = 1;
*/
Header?: QueryProjectHeader;
/**
* Number of maximum result
*
* @generated from field: string limitFilter = 4;
*/
limitFilter = "";
/**
* @generated from field: string queryContext = 5;
*/
queryContext = "";
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
*
* @generated from field: repeated api.BlockFilter BlockFilters = 7;
*/
BlockFilters: BlockFilter[] = [];
constructor(data?: PartialMessage<StockByFilterQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByFilterQuery";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 7, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByFilterQuery {
return new StockByFilterQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByFilterQuery {
return new StockByFilterQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByFilterQuery {
return new StockByFilterQuery().fromJsonString(jsonString, options);
}
static equals(a: StockByFilterQuery | PlainMessage<StockByFilterQuery> | undefined, b: StockByFilterQuery | PlainMessage<StockByFilterQuery> | undefined): boolean {
return proto3.util.equals(StockByFilterQuery, a, b);
}
}
/**
* @generated from message api.StockByFilterResult
*/
export class StockByFilterResult extends Message<StockByFilterResult> {
/**
* @generated from field: api.ResultHeader Header = 1;
*/
Header?: ResultHeader;
/**
* @generated from field: repeated api.Stock Objects = 2;
*/
Objects: Stock[] = [];
/**
* @generated from field: string queryContext = 3;
*/
queryContext = "";
constructor(data?: PartialMessage<StockByFilterResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByFilterResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
{ no: 2, name: "Objects", kind: "message", T: Stock, repeated: true },
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByFilterResult {
return new StockByFilterResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByFilterResult {
return new StockByFilterResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByFilterResult {
return new StockByFilterResult().fromJsonString(jsonString, options);
}
static equals(a: StockByFilterResult | PlainMessage<StockByFilterResult> | undefined, b: StockByFilterResult | PlainMessage<StockByFilterResult> | undefined): boolean {
return proto3.util.equals(StockByFilterResult, a, b);
}
}
/**
* @generated from message api.StockByMatchQuery
*/
export class StockByMatchQuery extends Message<StockByMatchQuery> {
/**
* @generated from field: api.QueryProjectHeader Header = 1;
*/
Header?: QueryProjectHeader;
/**
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
*
* @generated from field: repeated api.BlockFilter BlockFilters = 5;
*/
BlockFilters: BlockFilter[] = [];
/**
* MatchField list structure, for FindMatching query
*
* @generated from field: repeated api.MatchField MatchFields = 6;
*/
MatchFields: MatchField[] = [];
constructor(data?: PartialMessage<StockByMatchQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByMatchQuery";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
{ no: 5, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
{ no: 6, name: "MatchFields", kind: "message", T: MatchField, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByMatchQuery {
return new StockByMatchQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByMatchQuery {
return new StockByMatchQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByMatchQuery {
return new StockByMatchQuery().fromJsonString(jsonString, options);
}
static equals(a: StockByMatchQuery | PlainMessage<StockByMatchQuery> | undefined, b: StockByMatchQuery | PlainMessage<StockByMatchQuery> | undefined): boolean {
return proto3.util.equals(StockByMatchQuery, a, b);
}
}
/**
* @generated from message api.StockByMatchResult
*/
export class StockByMatchResult extends Message<StockByMatchResult> {
/**
* @generated from field: repeated api.MatchFieldResult MatchResults = 2;
*/
MatchResults: MatchFieldResult[] = [];
constructor(data?: PartialMessage<StockByMatchResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.StockByMatchResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StockByMatchResult {
return new StockByMatchResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StockByMatchResult {
return new StockByMatchResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StockByMatchResult {
return new StockByMatchResult().fromJsonString(jsonString, options);
}
static equals(a: StockByMatchResult | PlainMessage<StockByMatchResult> | undefined, b: StockByMatchResult | PlainMessage<StockByMatchResult> | undefined): boolean {
return proto3.util.equals(StockByMatchResult, a, b);
}
}