You've already forked npm-core-sdk
488 lines
27 KiB
TypeScript
488 lines
27 KiB
TypeScript
// @generated by protobuf-ts 2.9.5
|
|
// @generated from protobuf file "orderQuery.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import { CountLinesResult } from "./shared";
|
|
import { CountLinesQuery } from "./shared";
|
|
import { ExtractResult } from "./shared";
|
|
import { ExtractQuery } from "./shared";
|
|
import { ElementByMatchResult } from "./shared";
|
|
import { ElementByMatchQuery } from "./shared";
|
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
import { WireType } from "@protobuf-ts/runtime";
|
|
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
import { MatchFieldResult } from "./shared";
|
|
import { MatchField } from "./shared";
|
|
import { BlockFilter } from "./shared";
|
|
import { Order } from "./order";
|
|
import { ResultHeader } from "./shared";
|
|
import { EntityID } from "./shared";
|
|
import { QueryProjectHeader } from "./shared";
|
|
//
|
|
// Query-server services
|
|
|
|
/**
|
|
* @generated from protobuf message api.OrderByIdQuery
|
|
*/
|
|
export interface OrderByIdQuery {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: QueryProjectHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.EntityID IDs = 2 [json_name = "IDs"];
|
|
*/
|
|
iDs: EntityID[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OrderByIdResult
|
|
*/
|
|
export interface OrderByIdResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Order Objects = 2 [json_name = "Objects"];
|
|
*/
|
|
objects: Order[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OrderByFilterQuery
|
|
*/
|
|
export interface OrderByFilterQuery {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: QueryProjectHeader;
|
|
/**
|
|
* Number of maximum result
|
|
*
|
|
* @generated from protobuf field: string limitFilter = 4;
|
|
*/
|
|
limitFilter: string;
|
|
/**
|
|
* @generated from protobuf field: string queryContext = 5;
|
|
*/
|
|
queryContext: string;
|
|
/**
|
|
* 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 protobuf field: repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"];
|
|
*/
|
|
blockFilters: BlockFilter[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OrderByFilterResult
|
|
*/
|
|
export interface OrderByFilterResult {
|
|
/**
|
|
* @generated from protobuf field: api.ResultHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
header?: ResultHeader;
|
|
/**
|
|
* @generated from protobuf field: repeated api.Order Objects = 2 [json_name = "Objects"];
|
|
*/
|
|
objects: Order[];
|
|
/**
|
|
* @generated from protobuf field: string queryContext = 3;
|
|
*/
|
|
queryContext: string;
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OrderByMatchQuery
|
|
*/
|
|
export interface OrderByMatchQuery {
|
|
/**
|
|
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
|
|
*/
|
|
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 protobuf field: repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"];
|
|
*/
|
|
blockFilters: BlockFilter[];
|
|
/**
|
|
* MatchField list structure, for FindMatching query
|
|
*
|
|
* @generated from protobuf field: repeated api.MatchField MatchFields = 8 [json_name = "MatchFields"];
|
|
*/
|
|
matchFields: MatchField[];
|
|
}
|
|
/**
|
|
* @generated from protobuf message api.OrderByMatchResult
|
|
*/
|
|
export interface OrderByMatchResult {
|
|
/**
|
|
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];
|
|
*/
|
|
matchResults: MatchFieldResult[];
|
|
}
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByIdQuery$Type extends MessageType<OrderByIdQuery> {
|
|
constructor() {
|
|
super("api.OrderByIdQuery", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 2, name: "IDs", kind: "message", jsonName: "IDs", repeat: 1 /*RepeatType.PACKED*/, T: () => EntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
|
}
|
|
create(value?: PartialMessage<OrderByIdQuery>): OrderByIdQuery {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.iDs = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByIdQuery>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByIdQuery): OrderByIdQuery {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.EntityID IDs = 2 [json_name = "IDs"];*/ 2:
|
|
message.iDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByIdQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.EntityID IDs = 2 [json_name = "IDs"]; */
|
|
for (let i = 0; i < message.iDs.length; i++)
|
|
EntityID.internalBinaryWrite(message.iDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByIdQuery
|
|
*/
|
|
export const OrderByIdQuery = new OrderByIdQuery$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByIdResult$Type extends MessageType<OrderByIdResult> {
|
|
constructor() {
|
|
super("api.OrderByIdResult", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", jsonName: "Objects", repeat: 1 /*RepeatType.PACKED*/, T: () => Order }
|
|
], { "api.messageType": "Result" });
|
|
}
|
|
create(value?: PartialMessage<OrderByIdResult>): OrderByIdResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.objects = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByIdResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByIdResult): OrderByIdResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.Order Objects = 2 [json_name = "Objects"];*/ 2:
|
|
message.objects.push(Order.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByIdResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
ResultHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.Order Objects = 2 [json_name = "Objects"]; */
|
|
for (let i = 0; i < message.objects.length; i++)
|
|
Order.internalBinaryWrite(message.objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByIdResult
|
|
*/
|
|
export const OrderByIdResult = new OrderByIdResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByFilterQuery$Type extends MessageType<OrderByFilterQuery> {
|
|
constructor() {
|
|
super("api.OrderByFilterQuery", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
|
|
{ no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
{ no: 6, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, T: () => BlockFilter }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<OrderByFilterQuery>): OrderByFilterQuery {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.limitFilter = "";
|
|
message.queryContext = "";
|
|
message.blockFilters = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByFilterQuery>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByFilterQuery): OrderByFilterQuery {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* string limitFilter */ 4:
|
|
message.limitFilter = reader.string();
|
|
break;
|
|
case /* string queryContext */ 5:
|
|
message.queryContext = reader.string();
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"];*/ 6:
|
|
message.blockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByFilterQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* string limitFilter = 4; */
|
|
if (message.limitFilter !== "")
|
|
writer.tag(4, WireType.LengthDelimited).string(message.limitFilter);
|
|
/* string queryContext = 5; */
|
|
if (message.queryContext !== "")
|
|
writer.tag(5, WireType.LengthDelimited).string(message.queryContext);
|
|
/* repeated api.BlockFilter BlockFilters = 6 [json_name = "BlockFilters"]; */
|
|
for (let i = 0; i < message.blockFilters.length; i++)
|
|
BlockFilter.internalBinaryWrite(message.blockFilters[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByFilterQuery
|
|
*/
|
|
export const OrderByFilterQuery = new OrderByFilterQuery$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByFilterResult$Type extends MessageType<OrderByFilterResult> {
|
|
constructor() {
|
|
super("api.OrderByFilterResult", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => ResultHeader },
|
|
{ no: 2, name: "Objects", kind: "message", jsonName: "Objects", repeat: 1 /*RepeatType.PACKED*/, T: () => Order },
|
|
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<OrderByFilterResult>): OrderByFilterResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.objects = [];
|
|
message.queryContext = "";
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByFilterResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByFilterResult): OrderByFilterResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.ResultHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.Order Objects = 2 [json_name = "Objects"];*/ 2:
|
|
message.objects.push(Order.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* string queryContext */ 3:
|
|
message.queryContext = reader.string();
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByFilterResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.ResultHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
ResultHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.Order Objects = 2 [json_name = "Objects"]; */
|
|
for (let i = 0; i < message.objects.length; i++)
|
|
Order.internalBinaryWrite(message.objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
/* string queryContext = 3; */
|
|
if (message.queryContext !== "")
|
|
writer.tag(3, WireType.LengthDelimited).string(message.queryContext);
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByFilterResult
|
|
*/
|
|
export const OrderByFilterResult = new OrderByFilterResult$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByMatchQuery$Type extends MessageType<OrderByMatchQuery> {
|
|
constructor() {
|
|
super("api.OrderByMatchQuery", [
|
|
{ no: 1, name: "Header", kind: "message", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
|
{ no: 7, name: "BlockFilters", kind: "message", jsonName: "BlockFilters", repeat: 1 /*RepeatType.PACKED*/, T: () => BlockFilter },
|
|
{ no: 8, name: "MatchFields", kind: "message", jsonName: "MatchFields", repeat: 1 /*RepeatType.PACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } }
|
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
|
}
|
|
create(value?: PartialMessage<OrderByMatchQuery>): OrderByMatchQuery {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.blockFilters = [];
|
|
message.matchFields = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByMatchQuery>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByMatchQuery): OrderByMatchQuery {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
|
|
message.header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.header);
|
|
break;
|
|
case /* repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"];*/ 7:
|
|
message.blockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
case /* repeated api.MatchField MatchFields = 8 [json_name = "MatchFields"];*/ 8:
|
|
message.matchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
|
|
if (message.header)
|
|
QueryProjectHeader.internalBinaryWrite(message.header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.BlockFilter BlockFilters = 7 [json_name = "BlockFilters"]; */
|
|
for (let i = 0; i < message.blockFilters.length; i++)
|
|
BlockFilter.internalBinaryWrite(message.blockFilters[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
/* repeated api.MatchField MatchFields = 8 [json_name = "MatchFields"]; */
|
|
for (let i = 0; i < message.matchFields.length; i++)
|
|
MatchField.internalBinaryWrite(message.matchFields[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByMatchQuery
|
|
*/
|
|
export const OrderByMatchQuery = new OrderByMatchQuery$Type();
|
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
class OrderByMatchResult$Type extends MessageType<OrderByMatchResult> {
|
|
constructor() {
|
|
super("api.OrderByMatchResult", [
|
|
{ no: 2, name: "MatchResults", kind: "message", jsonName: "MatchResults", repeat: 1 /*RepeatType.PACKED*/, T: () => MatchFieldResult }
|
|
]);
|
|
}
|
|
create(value?: PartialMessage<OrderByMatchResult>): OrderByMatchResult {
|
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
message.matchResults = [];
|
|
if (value !== undefined)
|
|
reflectionMergePartial<OrderByMatchResult>(this, message, value);
|
|
return message;
|
|
}
|
|
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderByMatchResult): OrderByMatchResult {
|
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
while (reader.pos < end) {
|
|
let [fieldNo, wireType] = reader.tag();
|
|
switch (fieldNo) {
|
|
case /* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"];*/ 2:
|
|
message.matchResults.push(MatchFieldResult.internalBinaryRead(reader, reader.uint32(), options));
|
|
break;
|
|
default:
|
|
let u = options.readUnknownField;
|
|
if (u === "throw")
|
|
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
let d = reader.skip(wireType);
|
|
if (u !== false)
|
|
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
}
|
|
}
|
|
return message;
|
|
}
|
|
internalBinaryWrite(message: OrderByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
/* repeated api.MatchFieldResult MatchResults = 2 [json_name = "MatchResults"]; */
|
|
for (let i = 0; i < message.matchResults.length; i++)
|
|
MatchFieldResult.internalBinaryWrite(message.matchResults[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
let u = options.writeUnknownFields;
|
|
if (u !== false)
|
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
return writer;
|
|
}
|
|
}
|
|
/**
|
|
* @generated MessageType for protobuf message api.OrderByMatchResult
|
|
*/
|
|
export const OrderByMatchResult = new OrderByMatchResult$Type();
|
|
/**
|
|
* @generated ServiceType for protobuf service api.OrderQuery
|
|
*/
|
|
export const OrderQuery = new ServiceType("api.OrderQuery", [
|
|
{ name: "GetByIds", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "Get Orders from Ids" }, "api.rscType": "Project", "api.roles": "Platform.Project-Query", "api.moduleID": "order-tracking", "api.tableName": "orderById", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderByIdQuery, O: OrderByIdResult },
|
|
{ name: "Find", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "Find Orders using search criterias" }, "api.rscType": "Project", "api.roles": "Platform.Project-Query", "api.moduleID": "order-tracking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderByFilterQuery, O: OrderByFilterResult },
|
|
{ name: "FindMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "using search criteria & a main field word, find the list of fields value containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "order-tracking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: OrderByMatchQuery, O: OrderByMatchResult },
|
|
{ name: "FindMatchingFieldElements", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "using search criteria & a main field word, find the list of field elements containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "order-tracking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ElementByMatchQuery, O: ElementByMatchResult },
|
|
{ name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "Schedule a data extraction" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "order-tracking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractQuery, O: ExtractResult },
|
|
{ name: "CountLines", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Order Query"], description: "Count lines in database for project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Query", "api.moduleID": "order-tracking", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CountLinesQuery, O: CountLinesResult }
|
|
], { "api.serviceType": "Query", "api.k8sService": "query-server" });
|