Latest generation

This commit is contained in:
ci core model
2025-11-17 15:28:39 +00:00
parent 60a1a3f0f9
commit 634ae319cc
12 changed files with 188 additions and 45 deletions

View File

@@ -42,13 +42,18 @@ export interface StockByIdQuery {
*/
Header?: QueryProjectHeader;
/**
* @generated from protobuf field: repeated api.EntityID IDs = 2
* @deprecated
* @generated from protobuf field: repeated api.EntityID IDs = 2 [deprecated = true]
*/
IDs: EntityID[];
/**
* @generated from protobuf field: api.StockQueryOptions Options = 3
*/
Options?: StockQueryOptions;
/**
* @generated from protobuf field: repeated string RefIDs = 4
*/
RefIDs: string[];
}
/**
* @generated from protobuf message api.StockByIdResult
@@ -174,12 +179,14 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
super("api.StockByIdQuery", [
{ 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: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions }
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => StockQueryOptions },
{ no: 4, name: "RefIDs", kind: "scalar", localName: "RefIDs", jsonName: "RefIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
}
create(value?: PartialMessage<StockByIdQuery>): StockByIdQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.IDs = [];
message.RefIDs = [];
if (value !== undefined)
reflectionMergePartial<StockByIdQuery>(this, message, value);
return message;
@@ -192,12 +199,15 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
case /* api.QueryProjectHeader Header */ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.EntityID IDs */ 2:
case /* repeated api.EntityID IDs = 2 [deprecated = true] */ 2:
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.StockQueryOptions Options */ 3:
message.Options = StockQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.Options);
break;
case /* repeated string RefIDs */ 4:
message.RefIDs.push(reader.string());
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -213,12 +223,15 @@ class StockByIdQuery$Type extends MessageType<StockByIdQuery> {
/* api.QueryProjectHeader Header = 1; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.EntityID IDs = 2; */
/* repeated api.EntityID IDs = 2 [deprecated = true]; */
for (let i = 0; i < message.IDs.length; i++)
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.StockQueryOptions Options = 3; */
if (message.Options)
StockQueryOptions.internalBinaryWrite(message.Options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated string RefIDs = 4; */
for (let i = 0; i < message.RefIDs.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.RefIDs[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);