// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name // @generated from protobuf file "appointmentInput.proto" (package "api", syntax proto3) // tslint:disable import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import { WireType } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { ResponseSiteHeader } from "./shared"; import { RequestSiteHeader } from "./shared"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; import { Slot } from "./slotbooking"; import { CarrierInformation } from "./slotbooking"; import { Segmentation } from "./slotbooking"; import { QuantityByUnit } from "./slotbooking"; import { Commission } from "./collabShared"; import { AppointmentType } from "./slotbooking"; // // Created : this message tells that appointment is created /** * Event Payload * * @generated from protobuf message api.AppointmentCreatedPayload */ export interface AppointmentCreatedPayload { /** * Type of appointment : Expedition / Reception / Both * * @generated from protobuf field: api.AppointmentType AppointmentType = 1 [json_name = "AppointmentType"]; */ AppointmentType: AppointmentType; /** * List of the orders and projects for which the appointment is made, with the quantities * TODO ?? * * @generated from protobuf field: repeated api.Commission Commissions = 2 [json_name = "Commissions"]; */ Commissions: Commission[]; /** * Cumulative quantity for all the commissions * * @generated from protobuf field: repeated api.QuantityByUnit QuantitiesByUnits = 3 [json_name = "QuantitiesByUnits"]; */ QuantitiesByUnits: QuantityByUnit[]; /** * Set of segmentation constraining the slot booking * * @generated from protobuf field: repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"]; */ Segmentations: Segmentation[]; /** * Required carrierInformation, some can be obligatory * * @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"]; */ CarrierInformation: CarrierInformation[]; /** * The slot booked for the appointment * * @generated from protobuf field: api.Slot Slot = 6 [json_name = "Slot"]; */ Slot?: Slot; /** * User mails being notified on this appointment * TODO Need to add a structure to store platform user identifiers which can act on this appointment ? * * @generated from protobuf field: repeated string Emails = 7 [json_name = "Emails"]; */ Emails: string[]; } /** * Event message * * @generated from protobuf message api.AppointmentCreatedEvent */ export interface AppointmentCreatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCreatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCreatedRequest */ export interface AppointmentCreatedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCreatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCreatedResponse */ export interface AppointmentCreatedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // Canceled : this message tells that appointment is canceled /** * Event Payload * * @generated from protobuf message api.AppointmentCanceledPayload */ export interface AppointmentCanceledPayload { } /** * Event message * * @generated from protobuf message api.AppointmentCanceledEvent */ export interface AppointmentCanceledEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCanceledPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCanceledRequest */ export interface AppointmentCanceledRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCanceledPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCanceledResponse */ export interface AppointmentCanceledResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // CarrierInformationUpdated : this message tells that appointment carrier information are updated /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedPayload */ export interface AppointmentCarrierInformationUpdatedPayload { /** * Required carrierInformation, some can be obligatory * * @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */ CarrierInformation: CarrierInformation[]; } /** * Event message * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedEvent */ export interface AppointmentCarrierInformationUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierInformationUpdatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedRequest */ export interface AppointmentCarrierInformationUpdatedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierInformationUpdatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedResponse */ export interface AppointmentCarrierInformationUpdatedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // CarrierExpected : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierExpectedPayload */ export interface AppointmentCarrierExpectedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentCarrierExpectedEvent */ export interface AppointmentCarrierExpectedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierExpectedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierExpectedRequest */ export interface AppointmentCarrierExpectedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierExpectedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierExpectedResponse */ export interface AppointmentCarrierExpectedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // CarrierArrived : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierArrivedPayload */ export interface AppointmentCarrierArrivedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentCarrierArrivedEvent */ export interface AppointmentCarrierArrivedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierArrivedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierArrivedRequest */ export interface AppointmentCarrierArrivedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierArrivedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierArrivedResponse */ export interface AppointmentCarrierArrivedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // ExpeditionStarted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentExpeditionStartedPayload */ export interface AppointmentExpeditionStartedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentExpeditionStartedEvent */ export interface AppointmentExpeditionStartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentExpeditionStartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentExpeditionStartedRequest */ export interface AppointmentExpeditionStartedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentExpeditionStartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentExpeditionStartedResponse */ export interface AppointmentExpeditionStartedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // ExpeditionLoaded : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentExpeditionLoadedPayload */ export interface AppointmentExpeditionLoadedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentExpeditionLoadedEvent */ export interface AppointmentExpeditionLoadedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentExpeditionLoadedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentExpeditionLoadedRequest */ export interface AppointmentExpeditionLoadedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentExpeditionLoadedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentExpeditionLoadedResponse */ export interface AppointmentExpeditionLoadedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // ReceptionStarted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentReceptionStartedPayload */ export interface AppointmentReceptionStartedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentReceptionStartedEvent */ export interface AppointmentReceptionStartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentReceptionStartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentReceptionStartedRequest */ export interface AppointmentReceptionStartedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentReceptionStartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentReceptionStartedResponse */ export interface AppointmentReceptionStartedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // ReceptionUnloaded : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentReceptionUnloadedPayload */ export interface AppointmentReceptionUnloadedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentReceptionUnloadedEvent */ export interface AppointmentReceptionUnloadedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentReceptionUnloadedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentReceptionUnloadedRequest */ export interface AppointmentReceptionUnloadedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentReceptionUnloadedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentReceptionUnloadedResponse */ export interface AppointmentReceptionUnloadedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // // CarrierDeparted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierDepartedPayload */ export interface AppointmentCarrierDepartedPayload { } /** * Event message * * @generated from protobuf message api.AppointmentCarrierDepartedEvent */ export interface AppointmentCarrierDepartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 [json_name = "Header"]; */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierDepartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierDepartedRequest */ export interface AppointmentCarrierDepartedRequest { /** * @generated from protobuf field: api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ Header?: RequestSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"]; */ Payload?: AppointmentCarrierDepartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierDepartedResponse */ export interface AppointmentCarrierDepartedResponse { /** * @generated from protobuf field: api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ Header?: ResponseSiteHeader; /** * @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"]; */ ID?: EntityID; } // @generated message type with reflection information, may provide speed optimized methods class AppointmentCreatedPayload$Type extends MessageType { 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: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "validate.rules": { repeated: { minItems: "1" } } } }, { no: 3, name: "QuantitiesByUnits", kind: "message", localName: "QuantitiesByUnits", jsonName: "QuantitiesByUnits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } }, { no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation }, { no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation }, { no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } } }); } create(value?: PartialMessage): AppointmentCreatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentType = 0; message.Commissions = []; message.QuantitiesByUnits = []; message.Segmentations = []; message.CarrierInformation = []; message.Emails = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedPayload): AppointmentCreatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.AppointmentType AppointmentType = 1 [json_name = "AppointmentType"];*/ 1: message.AppointmentType = reader.int32(); break; case /* repeated api.Commission Commissions = 2 [json_name = "Commissions"];*/ 2: message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.QuantityByUnit QuantitiesByUnits = 3 [json_name = "QuantitiesByUnits"];*/ 3: message.QuantitiesByUnits.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"];*/ 4: message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"];*/ 5: message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.Slot Slot = 6 [json_name = "Slot"];*/ 6: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* repeated string Emails = 7 [json_name = "Emails"];*/ 7: message.Emails.push(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: AppointmentCreatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.AppointmentType AppointmentType = 1 [json_name = "AppointmentType"]; */ if (message.AppointmentType !== 0) writer.tag(1, WireType.Varint).int32(message.AppointmentType); /* repeated api.Commission Commissions = 2 [json_name = "Commissions"]; */ for (let i = 0; i < message.Commissions.length; i++) Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* repeated api.QuantityByUnit QuantitiesByUnits = 3 [json_name = "QuantitiesByUnits"]; */ for (let i = 0; i < message.QuantitiesByUnits.length; i++) QuantityByUnit.internalBinaryWrite(message.QuantitiesByUnits[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"]; */ for (let i = 0; i < message.Segmentations.length; i++) Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"]; */ for (let i = 0; i < message.CarrierInformation.length; i++) CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); /* api.Slot Slot = 6 [json_name = "Slot"]; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* repeated string Emails = 7 [json_name = "Emails"]; */ for (let i = 0; i < message.Emails.length; i++) writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCreatedPayload */ export const AppointmentCreatedPayload = new AppointmentCreatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCreatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCreatedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCreatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedEvent): AppointmentCreatedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCreatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCreatedEvent */ export const AppointmentCreatedEvent = new AppointmentCreatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCreatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCreatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCreatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedRequest): AppointmentCreatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCreatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCreatedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCreatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCreatedRequest */ export const AppointmentCreatedRequest = new AppointmentCreatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCreatedResponse$Type extends MessageType { constructor() { super("api.AppointmentCreatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Created" }); } create(value?: PartialMessage): AppointmentCreatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedResponse): AppointmentCreatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCreatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCreatedResponse */ export const AppointmentCreatedResponse = new AppointmentCreatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCanceledPayload$Type extends MessageType { constructor() { super("api.AppointmentCanceledPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Canceled", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentCanceledPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledPayload): AppointmentCanceledPayload { 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: AppointmentCanceledPayload, 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.AppointmentCanceledPayload */ export const AppointmentCanceledPayload = new AppointmentCanceledPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCanceledEvent$Type extends MessageType { constructor() { super("api.AppointmentCanceledEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Canceled", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCanceledEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledEvent): AppointmentCanceledEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCanceledPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCanceledEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCanceledPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCanceledEvent */ export const AppointmentCanceledEvent = new AppointmentCanceledEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCanceledRequest$Type extends MessageType { constructor() { super("api.AppointmentCanceledRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "Canceled", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCanceledRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledRequest): AppointmentCanceledRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCanceledPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCanceledRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCanceledPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCanceledPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCanceledRequest */ export const AppointmentCanceledRequest = new AppointmentCanceledRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCanceledResponse$Type extends MessageType { constructor() { super("api.AppointmentCanceledResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Canceled" }); } create(value?: PartialMessage): AppointmentCanceledResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledResponse): AppointmentCanceledResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCanceledResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCanceledResponse */ export const AppointmentCanceledResponse = new AppointmentCanceledResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedPayload", [ { no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierInformationUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.CarrierInformation = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedPayload): AppointmentCarrierInformationUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1: message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options)); 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: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */ for (let i = 0; i < message.CarrierInformation.length; i++) CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedPayload */ export const AppointmentCarrierInformationUpdatedPayload = new AppointmentCarrierInformationUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierInformationUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierInformationUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedEvent): AppointmentCarrierInformationUpdatedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierInformationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierInformationUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierInformationUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedEvent */ export const AppointmentCarrierInformationUpdatedEvent = new AppointmentCarrierInformationUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierInformationUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "CarrierInformationUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedRequest): AppointmentCarrierInformationUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierInformationUpdatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierInformationUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierInformationUpdatedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedRequest */ export const AppointmentCarrierInformationUpdatedRequest = new AppointmentCarrierInformationUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierInformationUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "CarrierInformationUpdated" }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedResponse): AppointmentCarrierInformationUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCarrierInformationUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedResponse */ export const AppointmentCarrierInformationUpdatedResponse = new AppointmentCarrierInformationUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierExpectedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierExpected", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentCarrierExpectedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedPayload): AppointmentCarrierExpectedPayload { 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: AppointmentCarrierExpectedPayload, 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.AppointmentCarrierExpectedPayload */ export const AppointmentCarrierExpectedPayload = new AppointmentCarrierExpectedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierExpectedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierExpected", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierExpectedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedEvent): AppointmentCarrierExpectedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierExpectedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierExpectedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierExpectedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierExpectedEvent */ export const AppointmentCarrierExpectedEvent = new AppointmentCarrierExpectedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierExpectedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "CarrierExpected", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierExpectedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedRequest): AppointmentCarrierExpectedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierExpectedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierExpectedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierExpectedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierExpectedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierExpectedRequest */ export const AppointmentCarrierExpectedRequest = new AppointmentCarrierExpectedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierExpectedResponse$Type extends MessageType { constructor() { super("api.AppointmentCarrierExpectedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "CarrierExpected" }); } create(value?: PartialMessage): AppointmentCarrierExpectedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedResponse): AppointmentCarrierExpectedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCarrierExpectedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierExpectedResponse */ export const AppointmentCarrierExpectedResponse = new AppointmentCarrierExpectedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierArrivedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierArrived", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentCarrierArrivedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedPayload): AppointmentCarrierArrivedPayload { 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: AppointmentCarrierArrivedPayload, 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.AppointmentCarrierArrivedPayload */ export const AppointmentCarrierArrivedPayload = new AppointmentCarrierArrivedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierArrivedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierArrived", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierArrivedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedEvent): AppointmentCarrierArrivedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierArrivedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierArrivedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierArrivedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierArrivedEvent */ export const AppointmentCarrierArrivedEvent = new AppointmentCarrierArrivedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierArrivedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "CarrierArrived", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierArrivedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedRequest): AppointmentCarrierArrivedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierArrivedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierArrivedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierArrivedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierArrivedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierArrivedRequest */ export const AppointmentCarrierArrivedRequest = new AppointmentCarrierArrivedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierArrivedResponse$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "CarrierArrived" }); } create(value?: PartialMessage): AppointmentCarrierArrivedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedResponse): AppointmentCarrierArrivedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCarrierArrivedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierArrivedResponse */ export const AppointmentCarrierArrivedResponse = new AppointmentCarrierArrivedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionStartedPayload$Type extends MessageType { constructor() { super("api.AppointmentExpeditionStartedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExpeditionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentExpeditionStartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedPayload): AppointmentExpeditionStartedPayload { 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: AppointmentExpeditionStartedPayload, 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.AppointmentExpeditionStartedPayload */ export const AppointmentExpeditionStartedPayload = new AppointmentExpeditionStartedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentExpeditionStartedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ExpeditionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentExpeditionStartedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedEvent): AppointmentExpeditionStartedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentExpeditionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentExpeditionStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentExpeditionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionStartedEvent */ export const AppointmentExpeditionStartedEvent = new AppointmentExpeditionStartedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentExpeditionStartedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "ExpeditionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentExpeditionStartedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedRequest): AppointmentExpeditionStartedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentExpeditionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentExpeditionStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentExpeditionStartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentExpeditionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionStartedRequest */ export const AppointmentExpeditionStartedRequest = new AppointmentExpeditionStartedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionStartedResponse$Type extends MessageType { constructor() { super("api.AppointmentExpeditionStartedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "ExpeditionStarted" }); } create(value?: PartialMessage): AppointmentExpeditionStartedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedResponse): AppointmentExpeditionStartedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentExpeditionStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionStartedResponse */ export const AppointmentExpeditionStartedResponse = new AppointmentExpeditionStartedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionLoadedPayload$Type extends MessageType { constructor() { super("api.AppointmentExpeditionLoadedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExpeditionLoaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentExpeditionLoadedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedPayload): AppointmentExpeditionLoadedPayload { 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: AppointmentExpeditionLoadedPayload, 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.AppointmentExpeditionLoadedPayload */ export const AppointmentExpeditionLoadedPayload = new AppointmentExpeditionLoadedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionLoadedEvent$Type extends MessageType { constructor() { super("api.AppointmentExpeditionLoadedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionLoadedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ExpeditionLoaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentExpeditionLoadedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedEvent): AppointmentExpeditionLoadedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentExpeditionLoadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentExpeditionLoadedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentExpeditionLoadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionLoadedEvent */ export const AppointmentExpeditionLoadedEvent = new AppointmentExpeditionLoadedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionLoadedRequest$Type extends MessageType { constructor() { super("api.AppointmentExpeditionLoadedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionLoadedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "ExpeditionLoaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentExpeditionLoadedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedRequest): AppointmentExpeditionLoadedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentExpeditionLoadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentExpeditionLoadedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentExpeditionLoadedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentExpeditionLoadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionLoadedRequest */ export const AppointmentExpeditionLoadedRequest = new AppointmentExpeditionLoadedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentExpeditionLoadedResponse$Type extends MessageType { constructor() { super("api.AppointmentExpeditionLoadedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "ExpeditionLoaded" }); } create(value?: PartialMessage): AppointmentExpeditionLoadedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedResponse): AppointmentExpeditionLoadedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentExpeditionLoadedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentExpeditionLoadedResponse */ export const AppointmentExpeditionLoadedResponse = new AppointmentExpeditionLoadedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionStartedPayload$Type extends MessageType { constructor() { super("api.AppointmentReceptionStartedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReceptionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentReceptionStartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedPayload): AppointmentReceptionStartedPayload { 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: AppointmentReceptionStartedPayload, 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.AppointmentReceptionStartedPayload */ export const AppointmentReceptionStartedPayload = new AppointmentReceptionStartedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentReceptionStartedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceptionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentReceptionStartedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedEvent): AppointmentReceptionStartedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentReceptionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentReceptionStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentReceptionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionStartedEvent */ export const AppointmentReceptionStartedEvent = new AppointmentReceptionStartedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentReceptionStartedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "ReceptionStarted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentReceptionStartedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedRequest): AppointmentReceptionStartedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentReceptionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentReceptionStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReceptionStartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentReceptionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionStartedRequest */ export const AppointmentReceptionStartedRequest = new AppointmentReceptionStartedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionStartedResponse$Type extends MessageType { constructor() { super("api.AppointmentReceptionStartedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "ReceptionStarted" }); } create(value?: PartialMessage): AppointmentReceptionStartedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedResponse): AppointmentReceptionStartedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentReceptionStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionStartedResponse */ export const AppointmentReceptionStartedResponse = new AppointmentReceptionStartedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionUnloadedPayload$Type extends MessageType { constructor() { super("api.AppointmentReceptionUnloadedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReceptionUnloaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentReceptionUnloadedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedPayload): AppointmentReceptionUnloadedPayload { 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: AppointmentReceptionUnloadedPayload, 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.AppointmentReceptionUnloadedPayload */ export const AppointmentReceptionUnloadedPayload = new AppointmentReceptionUnloadedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionUnloadedEvent$Type extends MessageType { constructor() { super("api.AppointmentReceptionUnloadedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionUnloadedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "ReceptionUnloaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentReceptionUnloadedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedEvent): AppointmentReceptionUnloadedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentReceptionUnloadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentReceptionUnloadedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentReceptionUnloadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionUnloadedEvent */ export const AppointmentReceptionUnloadedEvent = new AppointmentReceptionUnloadedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionUnloadedRequest$Type extends MessageType { constructor() { super("api.AppointmentReceptionUnloadedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionUnloadedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "ReceptionUnloaded", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentReceptionUnloadedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedRequest): AppointmentReceptionUnloadedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentReceptionUnloadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentReceptionUnloadedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReceptionUnloadedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentReceptionUnloadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionUnloadedRequest */ export const AppointmentReceptionUnloadedRequest = new AppointmentReceptionUnloadedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReceptionUnloadedResponse$Type extends MessageType { constructor() { super("api.AppointmentReceptionUnloadedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "ReceptionUnloaded" }); } create(value?: PartialMessage): AppointmentReceptionUnloadedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedResponse): AppointmentReceptionUnloadedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentReceptionUnloadedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReceptionUnloadedResponse */ export const AppointmentReceptionUnloadedResponse = new AppointmentReceptionUnloadedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierDepartedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierDeparted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } }); } create(value?: PartialMessage): AppointmentCarrierDepartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedPayload): AppointmentCarrierDepartedPayload { 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: AppointmentCarrierDepartedPayload, 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.AppointmentCarrierDepartedPayload */ export const AppointmentCarrierDepartedPayload = new AppointmentCarrierDepartedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierDepartedEvent$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedEvent", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CarrierDeparted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierDepartedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedEvent): AppointmentCarrierDepartedEvent { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierDepartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierDepartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1 [json_name = "Header"]; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierDepartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierDepartedEvent */ export const AppointmentCarrierDepartedEvent = new AppointmentCarrierDepartedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierDepartedRequest$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Request", "api.inputEvent": "CarrierDeparted", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } } }); } create(value?: PartialMessage): AppointmentCarrierDepartedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedRequest): AppointmentCarrierDepartedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"];*/ 3: message.Payload = AppointmentCarrierDepartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload); 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: AppointmentCarrierDepartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierDepartedPayload Payload = 3 [json_name = "Payload"]; */ if (message.Payload) AppointmentCarrierDepartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierDepartedRequest */ export const AppointmentCarrierDepartedRequest = new AppointmentCarrierDepartedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierDepartedResponse$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "CarrierDeparted" }); } create(value?: PartialMessage): AppointmentCarrierDepartedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedResponse): AppointmentCarrierDepartedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseSiteHeader Header = 1 [json_name = "Header"];*/ 1: message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); 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: AppointmentCarrierDepartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseSiteHeader Header = 1 [json_name = "Header"]; */ if (message.Header) ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2 [json_name = "ID"]; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCarrierDepartedResponse */ export const AppointmentCarrierDepartedResponse = new AppointmentCarrierDepartedResponse$Type(); /** * @generated ServiceType for protobuf service api.AppointmentInputAPI */ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [ { name: "Created", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been created." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCreatedRequest, O: AppointmentCreatedResponse }, { name: "Canceled", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse }, { name: "CarrierInformationUpdated", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse }, { name: "CarrierExpected", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is exopected for the appointment." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse }, { name: "CarrierArrived", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse }, { name: "ExpeditionStarted", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is started." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionStartedRequest, O: AppointmentExpeditionStartedResponse }, { name: "ExpeditionLoaded", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is loaded." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionLoadedRequest, O: AppointmentExpeditionLoadedResponse }, { name: "ReceptionStarted", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is started." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionStartedRequest, O: AppointmentReceptionStartedResponse }, { name: "ReceptionUnloaded", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is unloaded." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionUnloadedRequest, O: AppointmentReceptionUnloadedResponse }, { name: "CarrierDeparted", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Input", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierDepartedRequest, O: AppointmentCarrierDepartedResponse } ], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });