Latest generation

This commit is contained in:
ci core model
2025-11-18 08:46:12 +00:00
parent 658e0ee901
commit 4d3468920b
13 changed files with 150 additions and 113 deletions

View File

@@ -26,7 +26,7 @@ import { EntityType } from "./shared";
import { BlockFilter } from "./shared";
import { Appointment } from "./appointment";
import { ResultHeader } from "./shared";
import { EntityID } from "./shared";
import { QueryEntityID } from "./shared";
import { QueryProjectHeader } from "./shared";
//
// Query-server services
@@ -40,18 +40,13 @@ export interface AppointmentByIdQuery {
*/
Header?: QueryProjectHeader;
/**
* @deprecated
* @generated from protobuf field: repeated api.EntityID IDs = 2 [deprecated = true]
* @generated from protobuf field: repeated api.QueryEntityID IDs = 2
*/
IDs: EntityID[];
IDs: QueryEntityID[];
/**
* @generated from protobuf field: api.AppointmentQueryOptions Options = 3
*/
Options?: AppointmentQueryOptions;
/**
* @generated from protobuf field: repeated string RefIDs = 4
*/
RefIDs: string[];
}
/**
* @generated from protobuf message api.AppointmentByIdResult
@@ -235,15 +230,13 @@ class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
constructor() {
super("api.AppointmentByIdQuery", [
{ 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 },
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => AppointmentQueryOptions },
{ no: 4, name: "RefIDs", kind: "scalar", localName: "RefIDs", jsonName: "RefIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QueryEntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 3, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => AppointmentQueryOptions }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } }, "api.messageType": "Query" });
}
create(value?: PartialMessage<AppointmentByIdQuery>): AppointmentByIdQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.IDs = [];
message.RefIDs = [];
if (value !== undefined)
reflectionMergePartial<AppointmentByIdQuery>(this, message, value);
return message;
@@ -256,15 +249,12 @@ class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
case /* api.QueryProjectHeader Header */ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.EntityID IDs = 2 [deprecated = true] */ 2:
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.QueryEntityID IDs */ 2:
message.IDs.push(QueryEntityID.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.AppointmentQueryOptions Options */ 3:
message.Options = AppointmentQueryOptions.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")
@@ -280,15 +270,12 @@ class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
/* api.QueryProjectHeader Header = 1; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.EntityID IDs = 2 [deprecated = true]; */
/* repeated api.QueryEntityID IDs = 2; */
for (let i = 0; i < message.IDs.length; i++)
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
QueryEntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* api.AppointmentQueryOptions Options = 3; */
if (message.Options)
AppointmentQueryOptions.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);