From e3d1dd6e644e387ffaefcb563ee895516313a07e Mon Sep 17 00:00:00 2001 From: ci core model Date: Mon, 24 Aug 2026 15:27:29 +0000 Subject: [PATCH] Latest generation --- calendar.ts | 128 ++++++++++++++++++++++++++++++++++++--------------- package.json | 2 +- 2 files changed, 92 insertions(+), 38 deletions(-) diff --git a/calendar.ts b/calendar.ts index 44f2120..387082d 100644 --- a/calendar.ts +++ b/calendar.ts @@ -627,6 +627,23 @@ export interface AllowedPeriod { */ MaxPeriodUsed: bigint; // value that represents what was used from the maxperiod to compute the SLA } +/** + * @generated from protobuf message api.CalendarApplicationLimits + */ +export interface CalendarApplicationLimits { + /** + * @generated from protobuf field: string CalendarID = 1 + */ + CalendarID: string; + /** + * @generated from protobuf field: string LowerLimitSearchTime = 2 + */ + LowerLimitSearchTime: string; + /** + * @generated from protobuf field: string UpperLimitSearchTime = 3 + */ + UpperLimitSearchTime: string; +} /** * ComputeReferencesSLAPeriodsRequest * @@ -638,23 +655,13 @@ export interface ComputeReferencesSLAPeriodRequest { */ Header?: RequestProjectHeader; /** - * @generated from protobuf field: string CalendarID = 2 + * @generated from protobuf field: repeated api.CalendarApplicationLimits CalendarsApplicationLimits = 2 */ - CalendarID: string; + CalendarsApplicationLimits: CalendarApplicationLimits[]; // list of calendars with their limits to compute the SLA, no unicity on calendar ID as the same calendar can be used for different timeranges /** - * - * * @generated from protobuf field: repeated api.SLAInfoPerReference SLAInfoPerReferences = 3 */ SLAInfoPerReferences: SLAInfoPerReference[]; - /** - * @generated from protobuf field: string LowerLimitSearchTime = 4 - */ - LowerLimitSearchTime: string; - /** - * @generated from protobuf field: string UpperLimitSearchTime = 5 - */ - UpperLimitSearchTime: string; } /** * @generated from protobuf message api.ComputeReferencesSLAPeriodResponse @@ -2580,22 +2587,81 @@ class AllowedPeriod$Type extends MessageType { */ export const AllowedPeriod = new AllowedPeriod$Type(); // @generated message type with reflection information, may provide speed optimized methods +class CalendarApplicationLimits$Type extends MessageType { + constructor() { + super("api.CalendarApplicationLimits", [ + { no: 1, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "LowerLimitSearchTime", kind: "scalar", localName: "LowerLimitSearchTime", jsonName: "LowerLimitSearchTime", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "UpperLimitSearchTime", kind: "scalar", localName: "UpperLimitSearchTime", jsonName: "UpperLimitSearchTime", T: 9 /*ScalarType.STRING*/ } + ]); + } + create(value?: PartialMessage): CalendarApplicationLimits { + const message = globalThis.Object.create((this.messagePrototype!)); + message.CalendarID = ""; + message.LowerLimitSearchTime = ""; + message.UpperLimitSearchTime = ""; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarApplicationLimits): CalendarApplicationLimits { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string CalendarID */ 1: + message.CalendarID = reader.string(); + break; + case /* string LowerLimitSearchTime */ 2: + message.LowerLimitSearchTime = reader.string(); + break; + case /* string UpperLimitSearchTime */ 3: + message.UpperLimitSearchTime = 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: CalendarApplicationLimits, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string CalendarID = 1; */ + if (message.CalendarID !== "") + writer.tag(1, WireType.LengthDelimited).string(message.CalendarID); + /* string LowerLimitSearchTime = 2; */ + if (message.LowerLimitSearchTime !== "") + writer.tag(2, WireType.LengthDelimited).string(message.LowerLimitSearchTime); + /* string UpperLimitSearchTime = 3; */ + if (message.UpperLimitSearchTime !== "") + writer.tag(3, WireType.LengthDelimited).string(message.UpperLimitSearchTime); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message api.CalendarApplicationLimits + */ +export const CalendarApplicationLimits = new CalendarApplicationLimits$Type(); +// @generated message type with reflection information, may provide speed optimized methods class ComputeReferencesSLAPeriodRequest$Type extends MessageType { constructor() { super("api.ComputeReferencesSLAPeriodRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } }, - { no: 2, name: "CalendarID", kind: "scalar", localName: "CalendarID", jsonName: "CalendarID", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }, - { no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, - { no: 4, name: "LowerLimitSearchTime", kind: "scalar", localName: "LowerLimitSearchTime", jsonName: "LowerLimitSearchTime", T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "UpperLimitSearchTime", kind: "scalar", localName: "UpperLimitSearchTime", jsonName: "UpperLimitSearchTime", T: 9 /*ScalarType.STRING*/ } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarID", "SLAInfos"] } } }); + { no: 2, name: "CalendarsApplicationLimits", kind: "message", localName: "CalendarsApplicationLimits", jsonName: "CalendarsApplicationLimits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CalendarApplicationLimits, options: { "n1validate.rules": { repeated: { minItems: "1" } } } }, + { no: 3, name: "SLAInfoPerReferences", kind: "message", localName: "SLAInfoPerReferences", jsonName: "SLAInfoPerReferences", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SLAInfoPerReference, options: { "n1validate.rules": { repeated: { minItems: "1" } } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "CalendarsApplicationLimits", "SLAInfos"] } } }); } create(value?: PartialMessage): ComputeReferencesSLAPeriodRequest { const message = globalThis.Object.create((this.messagePrototype!)); - message.CalendarID = ""; + message.CalendarsApplicationLimits = []; message.SLAInfoPerReferences = []; - message.LowerLimitSearchTime = ""; - message.UpperLimitSearchTime = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -2608,18 +2674,12 @@ class ComputeReferencesSLAPeriodRequest$Type extends MessageType