You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -41,6 +41,10 @@ export interface HandlingunitByIdQuery {
|
||||
* @generated from protobuf field: repeated api.EntityID IDs = 2
|
||||
*/
|
||||
IDs: EntityID[];
|
||||
/**
|
||||
* @generated from protobuf field: api.HandlingunitQueryOptions Options = 3
|
||||
*/
|
||||
Options?: HandlingunitQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.HandlingunitByIdResult
|
||||
@@ -77,6 +81,10 @@ export interface HandlingunitByFilterQuery {
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 7
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* @generated from protobuf field: api.HandlingunitQueryOptions Options = 8
|
||||
*/
|
||||
Options?: HandlingunitQueryOptions;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.HandlingunitByFilterResult
|
||||
@@ -95,6 +103,11 @@ export interface HandlingunitByFilterResult {
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.HandlingunitQueryOptions
|
||||
*/
|
||||
export interface HandlingunitQueryOptions {
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.HandlingunitByMatchQuery
|
||||
*/
|
||||
@@ -130,7 +143,8 @@ class HandlingunitByIdQuery$Type extends MessageType<HandlingunitByIdQuery> {
|
||||
constructor() {
|
||||
super("api.HandlingunitByIdQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }
|
||||
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => HandlingunitQueryOptions }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
|
||||
}
|
||||
create(value?: PartialMessage<HandlingunitByIdQuery>): HandlingunitByIdQuery {
|
||||
@@ -151,6 +165,9 @@ class HandlingunitByIdQuery$Type extends MessageType<HandlingunitByIdQuery> {
|
||||
case /* repeated api.EntityID IDs */ 2:
|
||||
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.HandlingunitQueryOptions Options */ 3:
|
||||
message.Options = HandlingunitQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -169,6 +186,9 @@ class HandlingunitByIdQuery$Type extends MessageType<HandlingunitByIdQuery> {
|
||||
/* repeated api.EntityID IDs = 2; */
|
||||
for (let i = 0; i < message.IDs.length; i++)
|
||||
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.HandlingunitQueryOptions Options = 3; */
|
||||
if (message.Options)
|
||||
HandlingunitQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -240,7 +260,8 @@ class HandlingunitByFilterQuery$Type extends MessageType<HandlingunitByFilterQue
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", 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", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }
|
||||
{ no: 7, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 8, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => HandlingunitQueryOptions }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<HandlingunitByFilterQuery>): HandlingunitByFilterQuery {
|
||||
@@ -269,6 +290,9 @@ class HandlingunitByFilterQuery$Type extends MessageType<HandlingunitByFilterQue
|
||||
case /* repeated api.BlockFilter BlockFilters */ 7:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.HandlingunitQueryOptions Options */ 8:
|
||||
message.Options = HandlingunitQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -293,6 +317,9 @@ class HandlingunitByFilterQuery$Type extends MessageType<HandlingunitByFilterQue
|
||||
/* repeated api.BlockFilter BlockFilters = 7; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.HandlingunitQueryOptions Options = 8; */
|
||||
if (message.Options)
|
||||
HandlingunitQueryOptions.internalBinaryWrite(message.Options, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -366,6 +393,44 @@ class HandlingunitByFilterResult$Type extends MessageType<HandlingunitByFilterRe
|
||||
*/
|
||||
export const HandlingunitByFilterResult = new HandlingunitByFilterResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class HandlingunitQueryOptions$Type extends MessageType<HandlingunitQueryOptions> {
|
||||
constructor() {
|
||||
super("api.HandlingunitQueryOptions", []);
|
||||
}
|
||||
create(value?: PartialMessage<HandlingunitQueryOptions>): HandlingunitQueryOptions {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<HandlingunitQueryOptions>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HandlingunitQueryOptions): HandlingunitQueryOptions {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
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: HandlingunitQueryOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.HandlingunitQueryOptions
|
||||
*/
|
||||
export const HandlingunitQueryOptions = new HandlingunitQueryOptions$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class HandlingunitByMatchQuery$Type extends MessageType<HandlingunitByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.HandlingunitByMatchQuery", [
|
||||
|
||||
Reference in New Issue
Block a user