Latest generation

This commit is contained in:
ci core model
2026-03-05 13:00:18 +00:00
parent fa28bf1825
commit 29f6885200
5 changed files with 51 additions and 35 deletions

View File

@@ -20,7 +20,6 @@ import { AppointmentContent } from "./slotbooking";
import { Address } from "./repositoryShared";
import { Slot } from "./slotbooking";
import { MetadataElement } from "./shared";
import { SegmentationSelection } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
//
// Created : this message tells that appointment is created
@@ -44,12 +43,13 @@ export interface AppointmentCreatedPayload {
// (validate.rules).repeated.min_items = 1
// ];
// Set of segmentation constraining the slot booking
// repeated SegmentationSelection SegmentationSelections = 4;
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 28
*/
SegmentationSelections: SegmentationSelection[];
SegmentationKeys: MetadataElement[];
// // Required carrierInformation, some can be obligatory
// repeated CarrierInformationWithValue CarrierInformation = 5;
@@ -1762,7 +1762,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
constructor() {
super("api.AppointmentCreatedPayload", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 28, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 15, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } },
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 8, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
@@ -1780,7 +1780,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
create(value?: PartialMessage<AppointmentCreatedPayload>): AppointmentCreatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.SegmentationSelections = [];
message.SegmentationKeys = [];
message.CarrierInformation = [];
message.MetaData = [];
message.Reason = "";
@@ -1801,8 +1801,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
case /* repeated api.MetadataElement SegmentationKeys */ 28:
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.MetadataElement CarrierInformation */ 15:
message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
@@ -1855,9 +1855,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -1894,6 +1891,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* repeated string Attendees = 27; */
for (let i = 0; i < message.Attendees.length; i++)
writer.tag(27, WireType.LengthDelimited).string(message.Attendees[i]);
/* repeated api.MetadataElement SegmentationKeys = 28; */
for (let i = 0; i < message.SegmentationKeys.length; i++)
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(28, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);