// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @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 { AttachmentSummary } from "./shared"; import { ResponseHeader } from "./shared"; import { RequestProjectHeader } from "./shared"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; import { AppointmentContent } from "./slotbooking"; import { Address } from "./repositoryShared"; import { Slot } from "./slotbooking"; import { MetadataElement } from "./shared"; 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 : Loading / Unloading / Both * * @generated from protobuf field: api.AppointmentType AppointmentType = 1 */ AppointmentType: AppointmentType; // List of the orders and projects for which the appointment is made, with the quantities // TODO ?? // repeated AppointmentCommission Commissions = 2; // [ // (validate.rules).repeated.min_items = 1 // ]; // Set of segmentation constraining the slot booking // repeated SegmentationSelection SegmentationSelections = 4; /** * @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 28 */ SegmentationKeys: MetadataElement[]; // // Required carrierInformation, some can be obligatory // repeated CarrierInformationWithValue CarrierInformation = 5; /** * Carrier information metadata * * @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 15 */ CarrierInformation: MetadataElement[]; /** * The slot booked for the appointment * * @generated from protobuf field: api.Slot Slot = 6 */ 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 ? // repeated string Emails = 7 // [ // (validate.rules).repeated.min_items = 1, // (validate.rules).repeated.items.string = {email: true, ignore_empty: 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\"]"} // ]; /** * @generated from protobuf field: repeated api.MetadataElement MetaData = 8 */ MetaData: MetadataElement[]; /** * string CarrierID = 10; * string CarrierName = 11; * * @generated from protobuf field: string Reason = 12 */ Reason: string; /** * @generated from protobuf field: bool InstructionAck = 14 */ InstructionAck: boolean; /** * @deprecated * @generated from protobuf field: string ActorID = 16 [deprecated = true] */ ActorID: string; /** * Address of the appointment site * * @generated from protobuf field: api.Address Address = 17 */ Address?: Address; /** * Name of the appointment site * * @generated from protobuf field: string SiteName = 18 */ SiteName: string; // Total volumetry in all commissions inside the truck. // repeated QuantityByUnit TotalQuantities = 19; /** * time zone of the site on which the appointment is booked * * @generated from protobuf field: string TimeZone = 20 */ TimeZone: string; /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 25 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 26 */ Unloading?: AppointmentContent; /** * @generated from protobuf field: repeated string Attendees = 27 */ Attendees: string[]; } /** * Event message * * @generated from protobuf message api.AppointmentCreatedEvent */ export interface AppointmentCreatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCreatedPayload Payload = 3 */ Payload?: AppointmentCreatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCreatedRequest */ export interface AppointmentCreatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCreatedPayload Payload = 3 */ Payload?: AppointmentCreatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCreatedResponse */ export interface AppointmentCreatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // Canceled : this message tells that appointment is canceled /** * Event Payload * * @generated from protobuf message api.AppointmentCanceledPayload */ export interface AppointmentCanceledPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentCanceledEvent */ export interface AppointmentCanceledEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCanceledPayload Payload = 3 */ Payload?: AppointmentCanceledPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCanceledRequest */ export interface AppointmentCanceledRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCanceledPayload Payload = 3 */ Payload?: AppointmentCanceledPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCanceledResponse */ export interface AppointmentCanceledResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // Deleted : this message tells that appointment is deleted /** * Event Payload * * @generated from protobuf message api.AppointmentDeletedPayload */ export interface AppointmentDeletedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentDeletedEvent */ export interface AppointmentDeletedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentDeletedPayload Payload = 3 */ Payload?: AppointmentDeletedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentDeletedRequest */ export interface AppointmentDeletedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentDeletedPayload Payload = 3 */ Payload?: AppointmentDeletedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentDeletedResponse */ export interface AppointmentDeletedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // SlotUpdated : this message tells that appointment date has been modified /** * Event Payload * * @generated from protobuf message api.AppointmentSlotUpdatedPayload */ export interface AppointmentSlotUpdatedPayload { /** * @generated from protobuf field: api.Slot Slot = 1 */ Slot?: Slot; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentSlotUpdatedEvent */ export interface AppointmentSlotUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentSlotUpdatedPayload Payload = 3 */ Payload?: AppointmentSlotUpdatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentSlotUpdatedRequest */ export interface AppointmentSlotUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentSlotUpdatedPayload Payload = 3 */ Payload?: AppointmentSlotUpdatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentSlotUpdatedResponse */ export interface AppointmentSlotUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // CommissionsUpdated : this message tells that appointment commissions has been modified /** * Event Payload * * @generated from protobuf message api.AppointmentCommissionsUpdatedPayload */ export interface AppointmentCommissionsUpdatedPayload { /** * repeated AppointmentCommission Commissions = 2; * * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; /** * Total volumetry in all commissions inside the truck. * repeated QuantityByUnit TotalQuantities = 3; * * @generated from protobuf field: string Reason = 4 */ Reason: string; /** * Loading content * * @generated from protobuf field: api.AppointmentContent Loading = 5 */ Loading?: AppointmentContent; /** * Unoading content * * @generated from protobuf field: api.AppointmentContent Unloading = 6 */ Unloading?: AppointmentContent; } /** * Event message * * @generated from protobuf message api.AppointmentCommissionsUpdatedEvent */ export interface AppointmentCommissionsUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCommissionsUpdatedPayload Payload = 3 */ Payload?: AppointmentCommissionsUpdatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCommissionsUpdatedRequest */ export interface AppointmentCommissionsUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCommissionsUpdatedPayload Payload = 3 */ Payload?: AppointmentCommissionsUpdatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCommissionsUpdatedResponse */ export interface AppointmentCommissionsUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // ReasonUpdated : this message tells that appointment reason has been modified /** * Event Payload * * @generated from protobuf message api.AppointmentReasonUpdatedPayload */ export interface AppointmentReasonUpdatedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; /** * @generated from protobuf field: string Reason = 4 */ Reason: string; } /** * Event message * * @generated from protobuf message api.AppointmentReasonUpdatedEvent */ export interface AppointmentReasonUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReasonUpdatedPayload Payload = 3 */ Payload?: AppointmentReasonUpdatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentReasonUpdatedRequest */ export interface AppointmentReasonUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentReasonUpdatedPayload Payload = 3 */ Payload?: AppointmentReasonUpdatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentReasonUpdatedResponse */ export interface AppointmentReasonUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // AttachmentAdded : this message tells that an attachment is added for the appointment /** * @generated from protobuf message api.AppointmentAttachmentAddedPayload */ export interface AppointmentAttachmentAddedPayload { /** * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 1 */ Attachments: AttachmentSummary[]; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * @generated from protobuf message api.AppointmentAttachmentAddedEvent */ export interface AppointmentAttachmentAddedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttachmentAddedPayload Payload = 3 */ Payload?: AppointmentAttachmentAddedPayload; } /** * @generated from protobuf message api.AppointmentAttachmentAddedRequest */ export interface AppointmentAttachmentAddedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttachmentAddedPayload Payload = 3 */ Payload?: AppointmentAttachmentAddedPayload; } /** * @generated from protobuf message api.AppointmentAttachmentAddedResponse */ export interface AppointmentAttachmentAddedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // AttachmentRemoved : this message tells that an attachment is removed for the appointment /** * @generated from protobuf message api.AppointmentAttachmentRemovedPayload */ export interface AppointmentAttachmentRemovedPayload { /** * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 1 */ Attachments: AttachmentSummary[]; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * @generated from protobuf message api.AppointmentAttachmentRemovedEvent */ export interface AppointmentAttachmentRemovedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttachmentRemovedPayload Payload = 3 */ Payload?: AppointmentAttachmentRemovedPayload; } /** * @generated from protobuf message api.AppointmentAttachmentRemovedRequest */ export interface AppointmentAttachmentRemovedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttachmentRemovedPayload Payload = 3 */ Payload?: AppointmentAttachmentRemovedPayload; } /** * @generated from protobuf message api.AppointmentAttachmentRemovedResponse */ export interface AppointmentAttachmentRemovedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // CarrierInformationUpdated : this message tells that appointment carrier information are updated /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedPayload */ export interface AppointmentCarrierInformationUpdatedPayload { /** * Carrier information metadata * * @generated from protobuf field: repeated api.MetadataElement CarrierInformation = 2 */ CarrierInformation: MetadataElement[]; /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedEvent */ export interface AppointmentCarrierInformationUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3 */ Payload?: AppointmentCarrierInformationUpdatedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedRequest */ export interface AppointmentCarrierInformationUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierInformationUpdatedPayload Payload = 3 */ Payload?: AppointmentCarrierInformationUpdatedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierInformationUpdatedResponse */ export interface AppointmentCarrierInformationUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // CarrierExpected : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierExpectedPayload */ export interface AppointmentCarrierExpectedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentCarrierExpectedEvent */ export interface AppointmentCarrierExpectedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierExpectedPayload Payload = 3 */ Payload?: AppointmentCarrierExpectedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierExpectedRequest */ export interface AppointmentCarrierExpectedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierExpectedPayload Payload = 3 */ Payload?: AppointmentCarrierExpectedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierExpectedResponse */ export interface AppointmentCarrierExpectedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // An error occured on Allocation. This is typically called from an WMS when the something wrong happens on the appointment /** * Event Payload * * @generated from protobuf message api.AppointmentAllocationErrorPayload */ export interface AppointmentAllocationErrorPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentAllocationErrorEvent */ export interface AppointmentAllocationErrorEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAllocationErrorPayload Payload = 3 */ Payload?: AppointmentAllocationErrorPayload; } /** * API Request * * @generated from protobuf message api.AppointmentAllocationErrorRequest */ export interface AppointmentAllocationErrorRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAllocationErrorPayload Payload = 3 */ Payload?: AppointmentAllocationErrorPayload; } /** * API Response * * @generated from protobuf message api.AppointmentAllocationErrorResponse */ export interface AppointmentAllocationErrorResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // CarrierArrived : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierArrivedPayload */ export interface AppointmentCarrierArrivedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentCarrierArrivedEvent */ export interface AppointmentCarrierArrivedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierArrivedPayload Payload = 3 */ Payload?: AppointmentCarrierArrivedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierArrivedRequest */ export interface AppointmentCarrierArrivedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierArrivedPayload Payload = 3 */ Payload?: AppointmentCarrierArrivedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierArrivedResponse */ export interface AppointmentCarrierArrivedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // LoadingStarted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentLoadingStartedPayload */ export interface AppointmentLoadingStartedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentLoadingStartedEvent */ export interface AppointmentLoadingStartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentLoadingStartedPayload Payload = 3 */ Payload?: AppointmentLoadingStartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentLoadingStartedRequest */ export interface AppointmentLoadingStartedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentLoadingStartedPayload Payload = 3 */ Payload?: AppointmentLoadingStartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentLoadingStartedResponse */ export interface AppointmentLoadingStartedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // LoadingCompleted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentLoadingCompletedPayload */ export interface AppointmentLoadingCompletedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentLoadingCompletedEvent */ export interface AppointmentLoadingCompletedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentLoadingCompletedPayload Payload = 3 */ Payload?: AppointmentLoadingCompletedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentLoadingCompletedRequest */ export interface AppointmentLoadingCompletedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentLoadingCompletedPayload Payload = 3 */ Payload?: AppointmentLoadingCompletedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentLoadingCompletedResponse */ export interface AppointmentLoadingCompletedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // UnloadingStarted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentUnloadingStartedPayload */ export interface AppointmentUnloadingStartedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentUnloadingStartedEvent */ export interface AppointmentUnloadingStartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentUnloadingStartedPayload Payload = 3 */ Payload?: AppointmentUnloadingStartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentUnloadingStartedRequest */ export interface AppointmentUnloadingStartedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentUnloadingStartedPayload Payload = 3 */ Payload?: AppointmentUnloadingStartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentUnloadingStartedResponse */ export interface AppointmentUnloadingStartedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // UnloadingCompleted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentUnloadingCompletedPayload */ export interface AppointmentUnloadingCompletedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentUnloadingCompletedEvent */ export interface AppointmentUnloadingCompletedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentUnloadingCompletedPayload Payload = 3 */ Payload?: AppointmentUnloadingCompletedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentUnloadingCompletedRequest */ export interface AppointmentUnloadingCompletedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentUnloadingCompletedPayload Payload = 3 */ Payload?: AppointmentUnloadingCompletedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentUnloadingCompletedResponse */ export interface AppointmentUnloadingCompletedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // CarrierDeparted : this message tells that appointment carrier is expected /** * Event Payload * * @generated from protobuf message api.AppointmentCarrierDepartedPayload */ export interface AppointmentCarrierDepartedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentCarrierDepartedEvent */ export interface AppointmentCarrierDepartedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierDepartedPayload Payload = 3 */ Payload?: AppointmentCarrierDepartedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentCarrierDepartedRequest */ export interface AppointmentCarrierDepartedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCarrierDepartedPayload Payload = 3 */ Payload?: AppointmentCarrierDepartedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentCarrierDepartedResponse */ export interface AppointmentCarrierDepartedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // MetaDataUpdated // - Inform the Appointment about a metadata update. // // Comments updated 2022/10/19 /** * @generated from protobuf message api.AppointmentMetaDataUpdatedPayload */ export interface AppointmentMetaDataUpdatedPayload { /** * Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp) * * @generated from protobuf field: repeated api.MetadataElement MetaData = 1 */ MetaData: MetadataElement[]; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * @generated from protobuf message api.AppointmentMetaDataUpdatedEvent */ export interface AppointmentMetaDataUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentMetaDataUpdatedPayload Payload = 3 */ Payload?: AppointmentMetaDataUpdatedPayload; } /** * @generated from protobuf message api.AppointmentMetaDataUpdatedRequest */ export interface AppointmentMetaDataUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentMetaDataUpdatedPayload Payload = 3 */ Payload?: AppointmentMetaDataUpdatedPayload; } /** * @generated from protobuf message api.AppointmentMetaDataUpdatedResponse */ export interface AppointmentMetaDataUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // EmailsAdded : this message tells that appointment emails have been added /** * Event Payload * * @generated from protobuf message api.AppointmentEmailsAddedPayload */ export interface AppointmentEmailsAddedPayload { /** * Contacts assigned on the appointment * * @generated from protobuf field: repeated string Emails = 1 */ Emails: string[]; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentEmailsAddedEvent */ export interface AppointmentEmailsAddedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentEmailsAddedPayload Payload = 3 */ Payload?: AppointmentEmailsAddedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentEmailsAddedRequest */ export interface AppointmentEmailsAddedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentEmailsAddedPayload Payload = 3 */ Payload?: AppointmentEmailsAddedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentEmailsAddedResponse */ export interface AppointmentEmailsAddedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // EmailsRemoved : this message tells that appointment emails have been added /** * Event Payload * * @generated from protobuf message api.AppointmentEmailsRemovedPayload */ export interface AppointmentEmailsRemovedPayload { /** * Contacts removed from the appointment * * @generated from protobuf field: repeated string RemovedEmails = 1 */ RemovedEmails: string[]; /** * @deprecated * @generated from protobuf field: string ActorID = 2 [deprecated = true] */ ActorID: string; } /** * Event message * * @generated from protobuf message api.AppointmentEmailsRemovedEvent */ export interface AppointmentEmailsRemovedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentEmailsRemovedPayload Payload = 3 */ Payload?: AppointmentEmailsRemovedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentEmailsRemovedRequest */ export interface AppointmentEmailsRemovedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentEmailsRemovedPayload Payload = 3 */ Payload?: AppointmentEmailsRemovedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentEmailsRemovedResponse */ export interface AppointmentEmailsRemovedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // AttendeesAdded : this message tells that appointment attendees have been added /** * Event Payload * * @generated from protobuf message api.AppointmentAttendeesAddedPayload */ export interface AppointmentAttendeesAddedPayload { /** * @generated from protobuf field: repeated string Attendees = 1 */ Attendees: string[]; } /** * Event message * * @generated from protobuf message api.AppointmentAttendeesAddedEvent */ export interface AppointmentAttendeesAddedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttendeesAddedPayload Payload = 3 */ Payload?: AppointmentAttendeesAddedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentAttendeesAddedRequest */ export interface AppointmentAttendeesAddedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttendeesAddedPayload Payload = 3 */ Payload?: AppointmentAttendeesAddedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentAttendeesAddedResponse */ export interface AppointmentAttendeesAddedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } // // AttendeesRemoved : this message tells that appointment attendees have been removed /** * Event Payload * * @generated from protobuf message api.AppointmentAttendeesRemovedPayload */ export interface AppointmentAttendeesRemovedPayload { /** * Contacts removed from the appointment * * @generated from protobuf field: repeated string RemovedAttendees = 1 */ RemovedAttendees: string[]; } /** * Event message * * @generated from protobuf message api.AppointmentAttendeesRemovedEvent */ export interface AppointmentAttendeesRemovedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttendeesRemovedPayload Payload = 3 */ Payload?: AppointmentAttendeesRemovedPayload; } /** * API Request * * @generated from protobuf message api.AppointmentAttendeesRemovedRequest */ export interface AppointmentAttendeesRemovedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentAttendeesRemovedPayload Payload = 3 */ Payload?: AppointmentAttendeesRemovedPayload; } /** * API Response * * @generated from protobuf message api.AppointmentAttendeesRemovedResponse */ export interface AppointmentAttendeesRemovedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } /** * @generated from protobuf message api.AppointmentSanitisedPayload */ export interface AppointmentSanitisedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * @generated from protobuf message api.AppointmentSanitisedEvent */ export interface AppointmentSanitisedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentSanitisedPayload Payload = 3 */ Payload?: AppointmentSanitisedPayload; } /** * @generated from protobuf message api.AppointmentSanitisedRequest */ export interface AppointmentSanitisedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentSanitisedPayload Payload = 3 */ Payload?: AppointmentSanitisedPayload; } /** * @generated from protobuf message api.AppointmentSanitisedResponse */ export interface AppointmentSanitisedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } /** * @generated from protobuf message api.AppointmentCustomFieldsUpdatedPayload */ export interface AppointmentCustomFieldsUpdatedPayload { /** * @deprecated * @generated from protobuf field: string ActorID = 1 [deprecated = true] */ ActorID: string; } /** * @generated from protobuf message api.AppointmentCustomFieldsUpdatedEvent */ export interface AppointmentCustomFieldsUpdatedEvent { /** * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCustomFieldsUpdatedPayload Payload = 3 */ Payload?: AppointmentCustomFieldsUpdatedPayload; } /** * @generated from protobuf message api.AppointmentCustomFieldsUpdatedRequest */ export interface AppointmentCustomFieldsUpdatedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentCustomFieldsUpdatedPayload Payload = 3 */ Payload?: AppointmentCustomFieldsUpdatedPayload; } /** * @generated from protobuf message api.AppointmentCustomFieldsUpdatedResponse */ export interface AppointmentCustomFieldsUpdatedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; } /** * @generated from protobuf message api.AppointmentRedetectedPayload */ export interface AppointmentRedetectedPayload { } /** * @generated from protobuf message api.AppointmentRedetectedEvent */ export interface AppointmentRedetectedEvent { /** * option (postAggMethods) = ""; // Here are listed the post aggregation methods to call when event message is aggregated * option (preAggMethods) = ""; // Here are listed the pre aggregation methods to call before event message is aggregated * * @generated from protobuf field: api.EventHeader Header = 1 */ Header?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentRedetectedPayload Payload = 3 */ Payload?: AppointmentRedetectedPayload; } /** * @generated from protobuf message api.AppointmentRedetectedRequest */ export interface AppointmentRedetectedRequest { /** * @generated from protobuf field: api.RequestProjectHeader Header = 1 */ Header?: RequestProjectHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.AppointmentRedetectedPayload Payload = 3 */ Payload?: AppointmentRedetectedPayload; } /** * @generated from protobuf message api.AppointmentRedetectedResponse */ export interface AppointmentRedetectedResponse { /** * @generated from protobuf field: api.ResponseHeader Header = 1 */ Header?: ResponseHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ 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: 28, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Segmentation keys" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 15, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 8, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }, { no: 16, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address }, { no: 18, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ }, { no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }, { no: 25, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 26, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }, { no: 27, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" }); } create(value?: PartialMessage): AppointmentCreatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.AppointmentType = 0; message.SegmentationKeys = []; message.CarrierInformation = []; message.MetaData = []; message.Reason = ""; message.InstructionAck = false; message.ActorID = ""; message.SiteName = ""; message.TimeZone = ""; message.Attendees = []; 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: message.AppointmentType = reader.int32(); break; case /* repeated api.MetadataElement SegmentationKeys */ 28: message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.MetadataElement CarrierInformation */ 15: message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.Slot Slot */ 6: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* repeated api.MetadataElement MetaData */ 8: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string Reason */ 12: message.Reason = reader.string(); break; case /* bool InstructionAck */ 14: message.InstructionAck = reader.bool(); break; case /* string ActorID = 16 [deprecated = true] */ 16: message.ActorID = reader.string(); break; case /* api.Address Address */ 17: message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address); break; case /* string SiteName */ 18: message.SiteName = reader.string(); break; case /* string TimeZone */ 20: message.TimeZone = reader.string(); break; case /* api.AppointmentContent Loading */ 25: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 26: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); break; case /* repeated string Attendees */ 27: message.Attendees.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; */ if (message.AppointmentType !== 0) writer.tag(1, WireType.Varint).int32(message.AppointmentType); /* api.Slot Slot = 6; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* repeated api.MetadataElement MetaData = 8; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join(); /* string Reason = 12; */ if (message.Reason !== "") writer.tag(12, WireType.LengthDelimited).string(message.Reason); /* bool InstructionAck = 14; */ if (message.InstructionAck !== false) writer.tag(14, WireType.Varint).bool(message.InstructionAck); /* repeated api.MetadataElement CarrierInformation = 15; */ for (let i = 0; i < message.CarrierInformation.length; i++) MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 16 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(16, WireType.LengthDelimited).string(message.ActorID); /* api.Address Address = 17; */ if (message.Address) Address.internalBinaryWrite(message.Address, writer.tag(17, WireType.LengthDelimited).fork(), options).join(); /* string SiteName = 18; */ if (message.SiteName !== "") writer.tag(18, WireType.LengthDelimited).string(message.SiteName); /* string TimeZone = 20; */ if (message.TimeZone !== "") writer.tag(20, WireType.LengthDelimited).string(message.TimeZone); /* api.AppointmentContent Loading = 25; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(25, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 26; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(26, WireType.LengthDelimited).fork(), options).join(); /* repeated string Attendees = 27; */ for (let i = 0; i < message.Attendees.length; i++) writer.tag(27, WireType.LengthDelimited).string(message.Attendees[i]); /* repeated api.MetadataElement SegmentationKeys = 28; */ for (let i = 0; i < message.SegmentationKeys.length; i++) MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(28, WireType.LengthDelimited).fork(), options).join(); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Created" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCreatedPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCreatedPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCreatedPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCreatedPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Canceled" }); } create(value?: PartialMessage): AppointmentCanceledPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; 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) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCanceledPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Canceled" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCanceledPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCanceledPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Canceled" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCanceledPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCanceledPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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 AppointmentDeletedPayload$Type extends MessageType { constructor() { super("api.AppointmentDeletedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): AppointmentDeletedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedPayload): AppointmentDeletedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentDeletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentDeletedPayload */ export const AppointmentDeletedPayload = new AppointmentDeletedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentDeletedEvent$Type extends MessageType { constructor() { super("api.AppointmentDeletedEvent", [ { 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: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "Deleted", "api.preAggMethods": "checkDeleted" }); } create(value?: PartialMessage): AppointmentDeletedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedEvent): AppointmentDeletedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentDeletedPayload Payload */ 3: message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentDeletedPayload Payload = 3; */ if (message.Payload) AppointmentDeletedPayload.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.AppointmentDeletedEvent */ export const AppointmentDeletedEvent = new AppointmentDeletedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentDeletedRequest$Type extends MessageType { constructor() { super("api.AppointmentDeletedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentDeletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): AppointmentDeletedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedRequest): AppointmentDeletedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentDeletedPayload Payload */ 3: message.Payload = AppointmentDeletedPayload.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: AppointmentDeletedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentDeletedPayload Payload = 3; */ if (message.Payload) AppointmentDeletedPayload.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.AppointmentDeletedRequest */ export const AppointmentDeletedRequest = new AppointmentDeletedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentDeletedResponse$Type extends MessageType { constructor() { super("api.AppointmentDeletedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Deleted" }); } create(value?: PartialMessage): AppointmentDeletedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDeletedResponse): AppointmentDeletedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentDeletedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentDeletedResponse */ export const AppointmentDeletedResponse = new AppointmentDeletedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSlotUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedPayload", [ { no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "SlotUpdated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSlotUpdatedPayload): AppointmentSlotUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Slot Slot */ 1: message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentSlotUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Slot Slot = 1; */ if (message.Slot) Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentSlotUpdatedPayload */ export const AppointmentSlotUpdatedPayload = new AppointmentSlotUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSlotUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedEvent", [ { 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: () => AppointmentSlotUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "SlotUpdated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSlotUpdatedEvent): AppointmentSlotUpdatedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentSlotUpdatedPayload Payload */ 3: message.Payload = AppointmentSlotUpdatedPayload.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: AppointmentSlotUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentSlotUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentSlotUpdatedPayload.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.AppointmentSlotUpdatedEvent */ export const AppointmentSlotUpdatedEvent = new AppointmentSlotUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSlotUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentSlotUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "SlotUpdated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSlotUpdatedRequest): AppointmentSlotUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentSlotUpdatedPayload Payload */ 3: message.Payload = AppointmentSlotUpdatedPayload.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: AppointmentSlotUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentSlotUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentSlotUpdatedPayload.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.AppointmentSlotUpdatedRequest */ export const AppointmentSlotUpdatedRequest = new AppointmentSlotUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSlotUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentSlotUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "SlotUpdated" }); } create(value?: PartialMessage): AppointmentSlotUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSlotUpdatedResponse): AppointmentSlotUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentSlotUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentSlotUpdatedResponse */ export const AppointmentSlotUpdatedResponse = new AppointmentSlotUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCommissionsUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent }, { no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CommissionsUpdated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; message.Reason = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedPayload): AppointmentCommissionsUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = reader.string(); break; case /* string Reason */ 4: message.Reason = reader.string(); break; case /* api.AppointmentContent Loading */ 5: message.Loading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Loading); break; case /* api.AppointmentContent Unloading */ 6: message.Unloading = AppointmentContent.internalBinaryRead(reader, reader.uint32(), options, message.Unloading); 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: AppointmentCommissionsUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); /* string Reason = 4; */ if (message.Reason !== "") writer.tag(4, WireType.LengthDelimited).string(message.Reason); /* api.AppointmentContent Loading = 5; */ if (message.Loading) AppointmentContent.internalBinaryWrite(message.Loading, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentContent Unloading = 6; */ if (message.Unloading) AppointmentContent.internalBinaryWrite(message.Unloading, writer.tag(6, 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.AppointmentCommissionsUpdatedPayload */ export const AppointmentCommissionsUpdatedPayload = new AppointmentCommissionsUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCommissionsUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedEvent", [ { 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: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CommissionsUpdated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedEvent): AppointmentCommissionsUpdatedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCommissionsUpdatedPayload Payload */ 3: message.Payload = AppointmentCommissionsUpdatedPayload.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: AppointmentCommissionsUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCommissionsUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentCommissionsUpdatedPayload.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.AppointmentCommissionsUpdatedEvent */ export const AppointmentCommissionsUpdatedEvent = new AppointmentCommissionsUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCommissionsUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CommissionsUpdated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedRequest): AppointmentCommissionsUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCommissionsUpdatedPayload Payload */ 3: message.Payload = AppointmentCommissionsUpdatedPayload.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: AppointmentCommissionsUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCommissionsUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentCommissionsUpdatedPayload.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.AppointmentCommissionsUpdatedRequest */ export const AppointmentCommissionsUpdatedRequest = new AppointmentCommissionsUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCommissionsUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentCommissionsUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "CommissionsUpdated" }); } create(value?: PartialMessage): AppointmentCommissionsUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedResponse): AppointmentCommissionsUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentCommissionsUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentCommissionsUpdatedResponse */ export const AppointmentCommissionsUpdatedResponse = new AppointmentCommissionsUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReasonUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReasonUpdated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; message.Reason = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedPayload): AppointmentReasonUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = reader.string(); break; case /* string Reason */ 4: message.Reason = 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: AppointmentReasonUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); /* string Reason = 4; */ if (message.Reason !== "") writer.tag(4, WireType.LengthDelimited).string(message.Reason); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentReasonUpdatedPayload */ export const AppointmentReasonUpdatedPayload = new AppointmentReasonUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReasonUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedEvent", [ { 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: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReasonUpdated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedEvent): AppointmentReasonUpdatedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReasonUpdatedPayload Payload */ 3: message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReasonUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedEvent */ export const AppointmentReasonUpdatedEvent = new AppointmentReasonUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReasonUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentReasonUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReasonUpdated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedRequest): AppointmentReasonUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentReasonUpdatedPayload Payload */ 3: message.Payload = AppointmentReasonUpdatedPayload.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: AppointmentReasonUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentReasonUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentReasonUpdatedPayload.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.AppointmentReasonUpdatedRequest */ export const AppointmentReasonUpdatedRequest = new AppointmentReasonUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentReasonUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentReasonUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "ReasonUpdated" }); } create(value?: PartialMessage): AppointmentReasonUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReasonUpdatedResponse): AppointmentReasonUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentReasonUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentReasonUpdatedResponse */ export const AppointmentReasonUpdatedResponse = new AppointmentReasonUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentAddedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedPayload", [ { no: 1, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments added per type" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): AppointmentAttachmentAddedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Attachments = []; message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentAddedPayload): AppointmentAttachmentAddedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.AttachmentSummary Attachments */ 1: message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentAttachmentAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.AttachmentSummary Attachments = 1; */ for (let i = 0; i < message.Attachments.length; i++) AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentAttachmentAddedPayload */ export const AppointmentAttachmentAddedPayload = new AppointmentAttachmentAddedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedEvent", [ { 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: () => AppointmentAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentAdded", "api.preAggMethods": "addAttachment" }); } create(value?: PartialMessage): AppointmentAttachmentAddedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentAddedEvent): AppointmentAttachmentAddedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttachmentAddedPayload Payload */ 3: message.Payload = AppointmentAttachmentAddedPayload.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: AppointmentAttachmentAddedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttachmentAddedPayload Payload = 3; */ if (message.Payload) AppointmentAttachmentAddedPayload.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.AppointmentAttachmentAddedEvent */ export const AppointmentAttachmentAddedEvent = new AppointmentAttachmentAddedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentAttachmentAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): AppointmentAttachmentAddedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentAddedRequest): AppointmentAttachmentAddedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttachmentAddedPayload Payload */ 3: message.Payload = AppointmentAttachmentAddedPayload.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: AppointmentAttachmentAddedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttachmentAddedPayload Payload = 3; */ if (message.Payload) AppointmentAttachmentAddedPayload.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.AppointmentAttachmentAddedRequest */ export const AppointmentAttachmentAddedRequest = new AppointmentAttachmentAddedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentAddedResponse$Type extends MessageType { constructor() { super("api.AppointmentAttachmentAddedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "AttachmentAdded" }); } create(value?: PartialMessage): AppointmentAttachmentAddedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentAddedResponse): AppointmentAttachmentAddedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentAttachmentAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentAttachmentAddedResponse */ export const AppointmentAttachmentAddedResponse = new AppointmentAttachmentAddedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentRemovedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedPayload", [ { no: 1, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of attachments removed per type" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Attachments = []; message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentRemovedPayload): AppointmentAttachmentRemovedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.AttachmentSummary Attachments */ 1: message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentAttachmentRemovedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.AttachmentSummary Attachments = 1; */ for (let i = 0; i < message.Attachments.length; i++) AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentAttachmentRemovedPayload */ export const AppointmentAttachmentRemovedPayload = new AppointmentAttachmentRemovedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedEvent", [ { 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: () => AppointmentAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "AttachmentRemoved", "api.preAggMethods": "removeAttachment" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentRemovedEvent): AppointmentAttachmentRemovedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttachmentRemovedPayload Payload */ 3: message.Payload = AppointmentAttachmentRemovedPayload.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: AppointmentAttachmentRemovedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttachmentRemovedPayload Payload = 3; */ if (message.Payload) AppointmentAttachmentRemovedPayload.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.AppointmentAttachmentRemovedEvent */ export const AppointmentAttachmentRemovedEvent = new AppointmentAttachmentRemovedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentAttachmentRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentRemovedRequest): AppointmentAttachmentRemovedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttachmentRemovedPayload Payload */ 3: message.Payload = AppointmentAttachmentRemovedPayload.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: AppointmentAttachmentRemovedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttachmentRemovedPayload Payload = 3; */ if (message.Payload) AppointmentAttachmentRemovedPayload.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.AppointmentAttachmentRemovedRequest */ export const AppointmentAttachmentRemovedRequest = new AppointmentAttachmentRemovedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttachmentRemovedResponse$Type extends MessageType { constructor() { super("api.AppointmentAttachmentRemovedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "AttachmentRemoved" }); } create(value?: PartialMessage): AppointmentAttachmentRemovedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttachmentRemovedResponse): AppointmentAttachmentRemovedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentAttachmentRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentAttachmentRemovedResponse */ export const AppointmentAttachmentRemovedResponse = new AppointmentAttachmentRemovedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierInformationUpdatedPayload", [ { no: 2, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Carrier information metadata" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierInformationUpdated" }); } create(value?: PartialMessage): AppointmentCarrierInformationUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.CarrierInformation = []; message.ActorID = ""; 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.MetadataElement CarrierInformation */ 2: message.CarrierInformation.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); /* repeated api.MetadataElement CarrierInformation = 2; */ for (let i = 0; i < message.CarrierInformation.length; i++) MetadataElement.internalBinaryWrite(message.CarrierInformation[i], 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.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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierInformationUpdated" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierInformationUpdatedPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierInformationUpdated" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierInformationUpdatedPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierInformationUpdatedPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierExpected" }); } create(value?: PartialMessage): AppointmentCarrierExpectedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; 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) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCarrierExpectedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierExpected" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierExpectedPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierExpectedPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierExpected" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierExpectedPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierExpectedPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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 AppointmentAllocationErrorPayload$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorPayload): AppointmentAllocationErrorPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentAllocationErrorPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentAllocationErrorPayload */ export const AppointmentAllocationErrorPayload = new AppointmentAllocationErrorPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAllocationErrorEvent$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorEvent", [ { 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: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorEvent): AppointmentAllocationErrorEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAllocationErrorPayload Payload */ 3: message.Payload = AppointmentAllocationErrorPayload.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: AppointmentAllocationErrorEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAllocationErrorPayload Payload = 3; */ if (message.Payload) AppointmentAllocationErrorPayload.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.AppointmentAllocationErrorEvent */ export const AppointmentAllocationErrorEvent = new AppointmentAllocationErrorEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAllocationErrorRequest$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorRequest): AppointmentAllocationErrorRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAllocationErrorPayload Payload */ 3: message.Payload = AppointmentAllocationErrorPayload.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: AppointmentAllocationErrorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAllocationErrorPayload Payload = 3; */ if (message.Payload) AppointmentAllocationErrorPayload.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.AppointmentAllocationErrorRequest */ export const AppointmentAllocationErrorRequest = new AppointmentAllocationErrorRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAllocationErrorResponse$Type extends MessageType { constructor() { super("api.AppointmentAllocationErrorResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "AllocationError" }); } create(value?: PartialMessage): AppointmentAllocationErrorResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorResponse): AppointmentAllocationErrorResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentAllocationErrorResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentAllocationErrorResponse */ export const AppointmentAllocationErrorResponse = new AppointmentAllocationErrorResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierArrivedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierArrivedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierArrived" }); } create(value?: PartialMessage): AppointmentCarrierArrivedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; 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) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCarrierArrivedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierArrived" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierArrivedPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierArrivedPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierArrived" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierArrivedPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierArrivedPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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 AppointmentLoadingStartedPayload$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingStartedPayload): AppointmentLoadingStartedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentLoadingStartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentLoadingStartedPayload */ export const AppointmentLoadingStartedPayload = new AppointmentLoadingStartedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedEvent", [ { 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: () => AppointmentLoadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingStartedEvent): AppointmentLoadingStartedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentLoadingStartedPayload Payload */ 3: message.Payload = AppointmentLoadingStartedPayload.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: AppointmentLoadingStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentLoadingStartedPayload Payload = 3; */ if (message.Payload) AppointmentLoadingStartedPayload.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.AppointmentLoadingStartedEvent */ export const AppointmentLoadingStartedEvent = new AppointmentLoadingStartedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentLoadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingStartedRequest): AppointmentLoadingStartedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentLoadingStartedPayload Payload */ 3: message.Payload = AppointmentLoadingStartedPayload.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: AppointmentLoadingStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentLoadingStartedPayload Payload = 3; */ if (message.Payload) AppointmentLoadingStartedPayload.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.AppointmentLoadingStartedRequest */ export const AppointmentLoadingStartedRequest = new AppointmentLoadingStartedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingStartedResponse$Type extends MessageType { constructor() { super("api.AppointmentLoadingStartedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "LoadingStarted" }); } create(value?: PartialMessage): AppointmentLoadingStartedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingStartedResponse): AppointmentLoadingStartedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentLoadingStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentLoadingStartedResponse */ export const AppointmentLoadingStartedResponse = new AppointmentLoadingStartedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingCompletedPayload$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingCompletedPayload): AppointmentLoadingCompletedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentLoadingCompletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentLoadingCompletedPayload */ export const AppointmentLoadingCompletedPayload = new AppointmentLoadingCompletedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingCompletedEvent$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedEvent", [ { 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: () => AppointmentLoadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingCompletedEvent): AppointmentLoadingCompletedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentLoadingCompletedPayload Payload */ 3: message.Payload = AppointmentLoadingCompletedPayload.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: AppointmentLoadingCompletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentLoadingCompletedPayload Payload = 3; */ if (message.Payload) AppointmentLoadingCompletedPayload.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.AppointmentLoadingCompletedEvent */ export const AppointmentLoadingCompletedEvent = new AppointmentLoadingCompletedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingCompletedRequest$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentLoadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingCompletedRequest): AppointmentLoadingCompletedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentLoadingCompletedPayload Payload */ 3: message.Payload = AppointmentLoadingCompletedPayload.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: AppointmentLoadingCompletedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentLoadingCompletedPayload Payload = 3; */ if (message.Payload) AppointmentLoadingCompletedPayload.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.AppointmentLoadingCompletedRequest */ export const AppointmentLoadingCompletedRequest = new AppointmentLoadingCompletedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentLoadingCompletedResponse$Type extends MessageType { constructor() { super("api.AppointmentLoadingCompletedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "LoadingCompleted" }); } create(value?: PartialMessage): AppointmentLoadingCompletedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentLoadingCompletedResponse): AppointmentLoadingCompletedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentLoadingCompletedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentLoadingCompletedResponse */ export const AppointmentLoadingCompletedResponse = new AppointmentLoadingCompletedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingStartedPayload$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingStartedPayload): AppointmentUnloadingStartedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentUnloadingStartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentUnloadingStartedPayload */ export const AppointmentUnloadingStartedPayload = new AppointmentUnloadingStartedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingStartedEvent$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedEvent", [ { 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: () => AppointmentUnloadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingStartedEvent): AppointmentUnloadingStartedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentUnloadingStartedPayload Payload */ 3: message.Payload = AppointmentUnloadingStartedPayload.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: AppointmentUnloadingStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentUnloadingStartedPayload Payload = 3; */ if (message.Payload) AppointmentUnloadingStartedPayload.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.AppointmentUnloadingStartedEvent */ export const AppointmentUnloadingStartedEvent = new AppointmentUnloadingStartedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingStartedRequest$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentUnloadingStartedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingStartedRequest): AppointmentUnloadingStartedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentUnloadingStartedPayload Payload */ 3: message.Payload = AppointmentUnloadingStartedPayload.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: AppointmentUnloadingStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentUnloadingStartedPayload Payload = 3; */ if (message.Payload) AppointmentUnloadingStartedPayload.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.AppointmentUnloadingStartedRequest */ export const AppointmentUnloadingStartedRequest = new AppointmentUnloadingStartedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingStartedResponse$Type extends MessageType { constructor() { super("api.AppointmentUnloadingStartedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "UnloadingStarted" }); } create(value?: PartialMessage): AppointmentUnloadingStartedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingStartedResponse): AppointmentUnloadingStartedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentUnloadingStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentUnloadingStartedResponse */ export const AppointmentUnloadingStartedResponse = new AppointmentUnloadingStartedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingCompletedPayload$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingCompletedPayload): AppointmentUnloadingCompletedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentUnloadingCompletedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentUnloadingCompletedPayload */ export const AppointmentUnloadingCompletedPayload = new AppointmentUnloadingCompletedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingCompletedEvent$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedEvent", [ { 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: () => AppointmentUnloadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingCompletedEvent): AppointmentUnloadingCompletedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentUnloadingCompletedPayload Payload */ 3: message.Payload = AppointmentUnloadingCompletedPayload.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: AppointmentUnloadingCompletedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentUnloadingCompletedPayload Payload = 3; */ if (message.Payload) AppointmentUnloadingCompletedPayload.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.AppointmentUnloadingCompletedEvent */ export const AppointmentUnloadingCompletedEvent = new AppointmentUnloadingCompletedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingCompletedRequest$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentUnloadingCompletedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingCompletedRequest): AppointmentUnloadingCompletedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentUnloadingCompletedPayload Payload */ 3: message.Payload = AppointmentUnloadingCompletedPayload.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: AppointmentUnloadingCompletedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentUnloadingCompletedPayload Payload = 3; */ if (message.Payload) AppointmentUnloadingCompletedPayload.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.AppointmentUnloadingCompletedRequest */ export const AppointmentUnloadingCompletedRequest = new AppointmentUnloadingCompletedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentUnloadingCompletedResponse$Type extends MessageType { constructor() { super("api.AppointmentUnloadingCompletedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "UnloadingCompleted" }); } create(value?: PartialMessage): AppointmentUnloadingCompletedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentUnloadingCompletedResponse): AppointmentUnloadingCompletedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentUnloadingCompletedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentUnloadingCompletedResponse */ export const AppointmentUnloadingCompletedResponse = new AppointmentUnloadingCompletedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCarrierDepartedPayload$Type extends MessageType { constructor() { super("api.AppointmentCarrierDepartedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierDeparted" }); } create(value?: PartialMessage): AppointmentCarrierDepartedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; 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) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCarrierDepartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CarrierDeparted" }); } 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierDepartedPayload 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; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierDepartedPayload Payload = 3; */ 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: () => RequestProjectHeader, 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 } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierDeparted" }); } 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.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCarrierDepartedPayload 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.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCarrierDepartedPayload Payload = 3; */ 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: () => ResponseHeader }, { 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.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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 message type with reflection information, may provide speed optimized methods class AppointmentMetaDataUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedPayload", [ { no: 1, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.MetaData = []; message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedPayload): AppointmentMetaDataUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated api.MetadataElement MetaData */ 1: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentMetaDataUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated api.MetadataElement MetaData = 1; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentMetaDataUpdatedPayload */ export const AppointmentMetaDataUpdatedPayload = new AppointmentMetaDataUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentMetaDataUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedEvent", [ { 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: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedEvent): AppointmentMetaDataUpdatedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentMetaDataUpdatedPayload Payload */ 3: message.Payload = AppointmentMetaDataUpdatedPayload.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: AppointmentMetaDataUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentMetaDataUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentMetaDataUpdatedPayload.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.AppointmentMetaDataUpdatedEvent */ export const AppointmentMetaDataUpdatedEvent = new AppointmentMetaDataUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentMetaDataUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedRequest): AppointmentMetaDataUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentMetaDataUpdatedPayload Payload */ 3: message.Payload = AppointmentMetaDataUpdatedPayload.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: AppointmentMetaDataUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentMetaDataUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentMetaDataUpdatedPayload.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.AppointmentMetaDataUpdatedRequest */ export const AppointmentMetaDataUpdatedRequest = new AppointmentMetaDataUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentMetaDataUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentMetaDataUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "MetaDataUpdated" }); } create(value?: PartialMessage): AppointmentMetaDataUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedResponse): AppointmentMetaDataUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentMetaDataUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentMetaDataUpdatedResponse */ export const AppointmentMetaDataUpdatedResponse = new AppointmentMetaDataUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsAddedPayload$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedPayload", [ { no: 1, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Emails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsAdded" }); } create(value?: PartialMessage): AppointmentEmailsAddedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Emails = []; message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedPayload): AppointmentEmailsAddedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated string Emails */ 1: message.Emails.push(reader.string()); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentEmailsAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated string Emails = 1; */ for (let i = 0; i < message.Emails.length; i++) writer.tag(1, WireType.LengthDelimited).string(message.Emails[i]); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentEmailsAddedPayload */ export const AppointmentEmailsAddedPayload = new AppointmentEmailsAddedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedEvent", [ { 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: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsAdded", "api.preAggMethods": "addEmails" }); } create(value?: PartialMessage): AppointmentEmailsAddedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedEvent): AppointmentEmailsAddedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentEmailsAddedPayload Payload */ 3: message.Payload = AppointmentEmailsAddedPayload.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: AppointmentEmailsAddedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentEmailsAddedPayload Payload = 3; */ if (message.Payload) AppointmentEmailsAddedPayload.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.AppointmentEmailsAddedEvent */ export const AppointmentEmailsAddedEvent = new AppointmentEmailsAddedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentEmailsAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsAdded" }); } create(value?: PartialMessage): AppointmentEmailsAddedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedRequest): AppointmentEmailsAddedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentEmailsAddedPayload Payload */ 3: message.Payload = AppointmentEmailsAddedPayload.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: AppointmentEmailsAddedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentEmailsAddedPayload Payload = 3; */ if (message.Payload) AppointmentEmailsAddedPayload.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.AppointmentEmailsAddedRequest */ export const AppointmentEmailsAddedRequest = new AppointmentEmailsAddedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsAddedResponse$Type extends MessageType { constructor() { super("api.AppointmentEmailsAddedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "EmailsAdded" }); } create(value?: PartialMessage): AppointmentEmailsAddedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsAddedResponse): AppointmentEmailsAddedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentEmailsAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentEmailsAddedResponse */ export const AppointmentEmailsAddedResponse = new AppointmentEmailsAddedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsRemovedPayload$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedPayload", [ { no: 1, name: "RemovedEmails", kind: "scalar", localName: "RemovedEmails", jsonName: "RemovedEmails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }, { no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedEmails"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "EmailsRemoved" }); } create(value?: PartialMessage): AppointmentEmailsRemovedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.RemovedEmails = []; message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedPayload): AppointmentEmailsRemovedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated string RemovedEmails */ 1: message.RemovedEmails.push(reader.string()); break; case /* string ActorID = 2 [deprecated = true] */ 2: message.ActorID = 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: AppointmentEmailsRemovedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated string RemovedEmails = 1; */ for (let i = 0; i < message.RemovedEmails.length; i++) writer.tag(1, WireType.LengthDelimited).string(message.RemovedEmails[i]); /* string ActorID = 2 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(2, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentEmailsRemovedPayload */ export const AppointmentEmailsRemovedPayload = new AppointmentEmailsRemovedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedEvent", [ { 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: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "EmailsRemoved", "api.preAggMethods": "removeEmails" }); } create(value?: PartialMessage): AppointmentEmailsRemovedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedEvent): AppointmentEmailsRemovedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentEmailsRemovedPayload Payload */ 3: message.Payload = AppointmentEmailsRemovedPayload.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: AppointmentEmailsRemovedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentEmailsRemovedPayload Payload = 3; */ if (message.Payload) AppointmentEmailsRemovedPayload.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.AppointmentEmailsRemovedEvent */ export const AppointmentEmailsRemovedEvent = new AppointmentEmailsRemovedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentEmailsRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "EmailsRemoved" }); } create(value?: PartialMessage): AppointmentEmailsRemovedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedRequest): AppointmentEmailsRemovedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentEmailsRemovedPayload Payload */ 3: message.Payload = AppointmentEmailsRemovedPayload.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: AppointmentEmailsRemovedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentEmailsRemovedPayload Payload = 3; */ if (message.Payload) AppointmentEmailsRemovedPayload.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.AppointmentEmailsRemovedRequest */ export const AppointmentEmailsRemovedRequest = new AppointmentEmailsRemovedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentEmailsRemovedResponse$Type extends MessageType { constructor() { super("api.AppointmentEmailsRemovedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "EmailsRemoved" }); } create(value?: PartialMessage): AppointmentEmailsRemovedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentEmailsRemovedResponse): AppointmentEmailsRemovedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentEmailsRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentEmailsRemovedResponse */ export const AppointmentEmailsRemovedResponse = new AppointmentEmailsRemovedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesAddedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedPayload", [ { no: 1, name: "Attendees", kind: "scalar", localName: "Attendees", jsonName: "Attendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees added on the appointment (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttendeesAdded" }); } create(value?: PartialMessage): AppointmentAttendeesAddedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.Attendees = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesAddedPayload): AppointmentAttendeesAddedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated string Attendees */ 1: message.Attendees.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: AppointmentAttendeesAddedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated string Attendees = 1; */ for (let i = 0; i < message.Attendees.length; i++) writer.tag(1, WireType.LengthDelimited).string(message.Attendees[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.AppointmentAttendeesAddedPayload */ export const AppointmentAttendeesAddedPayload = new AppointmentAttendeesAddedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesAddedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedEvent", [ { 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: () => AppointmentAttendeesAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AttendeesAdded", "api.preAggMethods": "addAttendees" }); } create(value?: PartialMessage): AppointmentAttendeesAddedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesAddedEvent): AppointmentAttendeesAddedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttendeesAddedPayload Payload */ 3: message.Payload = AppointmentAttendeesAddedPayload.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: AppointmentAttendeesAddedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttendeesAddedPayload Payload = 3; */ if (message.Payload) AppointmentAttendeesAddedPayload.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.AppointmentAttendeesAddedEvent */ export const AppointmentAttendeesAddedEvent = new AppointmentAttendeesAddedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesAddedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentAttendeesAddedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttendeesAdded" }); } create(value?: PartialMessage): AppointmentAttendeesAddedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesAddedRequest): AppointmentAttendeesAddedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttendeesAddedPayload Payload */ 3: message.Payload = AppointmentAttendeesAddedPayload.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: AppointmentAttendeesAddedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttendeesAddedPayload Payload = 3; */ if (message.Payload) AppointmentAttendeesAddedPayload.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.AppointmentAttendeesAddedRequest */ export const AppointmentAttendeesAddedRequest = new AppointmentAttendeesAddedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesAddedResponse$Type extends MessageType { constructor() { super("api.AppointmentAttendeesAddedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "AttendeesAdded" }); } create(value?: PartialMessage): AppointmentAttendeesAddedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesAddedResponse): AppointmentAttendeesAddedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentAttendeesAddedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentAttendeesAddedResponse */ export const AppointmentAttendeesAddedResponse = new AppointmentAttendeesAddedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesRemovedPayload$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedPayload", [ { no: 1, name: "RemovedAttendees", kind: "scalar", localName: "RemovedAttendees", jsonName: "RemovedAttendees", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Some attendees contacts removed from the appointment (user uuid)" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["RemovedAttendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttendeesRemoved" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.RemovedAttendees = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesRemovedPayload): AppointmentAttendeesRemovedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* repeated string RemovedAttendees */ 1: message.RemovedAttendees.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: AppointmentAttendeesRemovedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* repeated string RemovedAttendees = 1; */ for (let i = 0; i < message.RemovedAttendees.length; i++) writer.tag(1, WireType.LengthDelimited).string(message.RemovedAttendees[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.AppointmentAttendeesRemovedPayload */ export const AppointmentAttendeesRemovedPayload = new AppointmentAttendeesRemovedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesRemovedEvent$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedEvent", [ { 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: () => AppointmentAttendeesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AttendeesRemoved", "api.preAggMethods": "removeAttendees" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesRemovedEvent): AppointmentAttendeesRemovedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttendeesRemovedPayload Payload */ 3: message.Payload = AppointmentAttendeesRemovedPayload.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: AppointmentAttendeesRemovedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttendeesRemovedPayload Payload = 3; */ if (message.Payload) AppointmentAttendeesRemovedPayload.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.AppointmentAttendeesRemovedEvent */ export const AppointmentAttendeesRemovedEvent = new AppointmentAttendeesRemovedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesRemovedRequest$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentAttendeesRemovedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AttendeesRemoved" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesRemovedRequest): AppointmentAttendeesRemovedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentAttendeesRemovedPayload Payload */ 3: message.Payload = AppointmentAttendeesRemovedPayload.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: AppointmentAttendeesRemovedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentAttendeesRemovedPayload Payload = 3; */ if (message.Payload) AppointmentAttendeesRemovedPayload.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.AppointmentAttendeesRemovedRequest */ export const AppointmentAttendeesRemovedRequest = new AppointmentAttendeesRemovedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentAttendeesRemovedResponse$Type extends MessageType { constructor() { super("api.AppointmentAttendeesRemovedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "AttendeesRemoved" }); } create(value?: PartialMessage): AppointmentAttendeesRemovedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAttendeesRemovedResponse): AppointmentAttendeesRemovedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentAttendeesRemovedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentAttendeesRemovedResponse */ export const AppointmentAttendeesRemovedResponse = new AppointmentAttendeesRemovedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSanitisedPayload$Type extends MessageType { constructor() { super("api.AppointmentSanitisedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): AppointmentSanitisedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSanitisedPayload): AppointmentSanitisedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentSanitisedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentSanitisedPayload */ export const AppointmentSanitisedPayload = new AppointmentSanitisedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSanitisedEvent$Type extends MessageType { constructor() { super("api.AppointmentSanitisedEvent", [ { 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: () => AppointmentSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Sanitised", "api.postAggMethods": "sanitise" }); } create(value?: PartialMessage): AppointmentSanitisedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSanitisedEvent): AppointmentSanitisedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentSanitisedPayload Payload */ 3: message.Payload = AppointmentSanitisedPayload.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: AppointmentSanitisedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentSanitisedPayload Payload = 3; */ if (message.Payload) AppointmentSanitisedPayload.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.AppointmentSanitisedEvent */ export const AppointmentSanitisedEvent = new AppointmentSanitisedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSanitisedRequest$Type extends MessageType { constructor() { super("api.AppointmentSanitisedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentSanitisedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): AppointmentSanitisedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSanitisedRequest): AppointmentSanitisedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentSanitisedPayload Payload */ 3: message.Payload = AppointmentSanitisedPayload.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: AppointmentSanitisedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentSanitisedPayload Payload = 3; */ if (message.Payload) AppointmentSanitisedPayload.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.AppointmentSanitisedRequest */ export const AppointmentSanitisedRequest = new AppointmentSanitisedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentSanitisedResponse$Type extends MessageType { constructor() { super("api.AppointmentSanitisedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): AppointmentSanitisedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentSanitisedResponse): AppointmentSanitisedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentSanitisedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentSanitisedResponse */ export const AppointmentSanitisedResponse = new AppointmentSanitisedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCustomFieldsUpdatedPayload$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedPayload", [ { no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } ], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.ActorID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCustomFieldsUpdatedPayload): AppointmentCustomFieldsUpdatedPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ActorID = 1 [deprecated = true] */ 1: message.ActorID = 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: AppointmentCustomFieldsUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ActorID = 1 [deprecated = true]; */ if (message.ActorID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ActorID); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); return writer; } } /** * @generated MessageType for protobuf message api.AppointmentCustomFieldsUpdatedPayload */ export const AppointmentCustomFieldsUpdatedPayload = new AppointmentCustomFieldsUpdatedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCustomFieldsUpdatedEvent$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedEvent", [ { 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: () => AppointmentCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCustomFieldsUpdatedEvent): AppointmentCustomFieldsUpdatedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCustomFieldsUpdatedPayload Payload */ 3: message.Payload = AppointmentCustomFieldsUpdatedPayload.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: AppointmentCustomFieldsUpdatedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCustomFieldsUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentCustomFieldsUpdatedPayload.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.AppointmentCustomFieldsUpdatedEvent */ export const AppointmentCustomFieldsUpdatedEvent = new AppointmentCustomFieldsUpdatedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCustomFieldsUpdatedRequest$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentCustomFieldsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CustomFieldsUpdated" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCustomFieldsUpdatedRequest): AppointmentCustomFieldsUpdatedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentCustomFieldsUpdatedPayload Payload */ 3: message.Payload = AppointmentCustomFieldsUpdatedPayload.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: AppointmentCustomFieldsUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentCustomFieldsUpdatedPayload Payload = 3; */ if (message.Payload) AppointmentCustomFieldsUpdatedPayload.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.AppointmentCustomFieldsUpdatedRequest */ export const AppointmentCustomFieldsUpdatedRequest = new AppointmentCustomFieldsUpdatedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentCustomFieldsUpdatedResponse$Type extends MessageType { constructor() { super("api.AppointmentCustomFieldsUpdatedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Sanitised" }); } create(value?: PartialMessage): AppointmentCustomFieldsUpdatedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCustomFieldsUpdatedResponse): AppointmentCustomFieldsUpdatedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentCustomFieldsUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentCustomFieldsUpdatedResponse */ export const AppointmentCustomFieldsUpdatedResponse = new AppointmentCustomFieldsUpdatedResponse$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentRedetectedPayload$Type extends MessageType { constructor() { super("api.AppointmentRedetectedPayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedPayload { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedPayload): AppointmentRedetectedPayload { 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: AppointmentRedetectedPayload, 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.AppointmentRedetectedPayload */ export const AppointmentRedetectedPayload = new AppointmentRedetectedPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentRedetectedEvent$Type extends MessageType { constructor() { super("api.AppointmentRedetectedEvent", [ { 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: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "api.messageType": "Event", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedEvent { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedEvent): AppointmentRedetectedEvent { 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: message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentRedetectedPayload Payload */ 3: message.Payload = AppointmentRedetectedPayload.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: AppointmentRedetectedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader Header = 1; */ if (message.Header) EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentRedetectedPayload Payload = 3; */ if (message.Payload) AppointmentRedetectedPayload.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.AppointmentRedetectedEvent */ export const AppointmentRedetectedEvent = new AppointmentRedetectedEvent$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentRedetectedRequest$Type extends MessageType { constructor() { super("api.AppointmentRedetectedRequest", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentRedetectedPayload, options: { "validate.rules": { message: { required: true } } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedRequest { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedRequest): AppointmentRedetectedRequest { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.RequestProjectHeader Header */ 1: message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.AppointmentRedetectedPayload Payload */ 3: message.Payload = AppointmentRedetectedPayload.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: AppointmentRedetectedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.RequestProjectHeader Header = 1; */ if (message.Header) RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ if (message.ID) EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.AppointmentRedetectedPayload Payload = 3; */ if (message.Payload) AppointmentRedetectedPayload.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.AppointmentRedetectedRequest */ export const AppointmentRedetectedRequest = new AppointmentRedetectedRequest$Type(); // @generated message type with reflection information, may provide speed optimized methods class AppointmentRedetectedResponse$Type extends MessageType { constructor() { super("api.AppointmentRedetectedResponse", [ { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID } ], { "api.messageType": "Response", "api.inputEvent": "Redetected" }); } create(value?: PartialMessage): AppointmentRedetectedResponse { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentRedetectedResponse): AppointmentRedetectedResponse { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.ResponseHeader Header */ 1: message.Header = ResponseHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); break; case /* api.EntityID 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: AppointmentRedetectedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.ResponseHeader Header = 1; */ if (message.Header) ResponseHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.EntityID ID = 2; */ 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.AppointmentRedetectedResponse */ export const AppointmentRedetectedResponse = new AppointmentRedetectedResponse$Type(); /** * @generated ServiceType for protobuf service api.AppointmentInputAPI */ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [ { name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been created." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCreatedRequest, O: AppointmentCreatedResponse }, { name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse }, { name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been deleted." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentDeletedRequest, O: AppointmentDeletedResponse }, { name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse }, { name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse }, { name: "ReasonUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment reason has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentReasonUpdatedRequest, O: AppointmentReasonUpdatedResponse }, { name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse }, { name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is expected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse }, { name: "AllocationError", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An allocation error occured on the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAllocationErrorRequest, O: AppointmentAllocationErrorResponse }, { name: "CarrierArrived", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse }, { name: "LoadingStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment loading is started." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentLoadingStartedRequest, O: AppointmentLoadingStartedResponse }, { name: "LoadingCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment loading is completed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentLoadingCompletedRequest, O: AppointmentLoadingCompletedResponse }, { name: "UnloadingStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment unloading is started." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentUnloadingStartedRequest, O: AppointmentUnloadingStartedResponse }, { name: "UnloadingCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment unloading is unloaded." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentUnloadingCompletedRequest, O: AppointmentUnloadingCompletedResponse }, { name: "CarrierDeparted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierDepartedRequest, O: AppointmentCarrierDepartedResponse }, { name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Some metadata have been updated on an appointment. This is typically called from ERP or WMS." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentMetaDataUpdatedRequest, O: AppointmentMetaDataUpdatedResponse }, { name: "AttachmentAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An attachment is added for the Appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentAddedRequest, O: AppointmentAttachmentAddedResponse }, { name: "AttachmentRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An attachment is removed for the Appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Attachment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttachmentRemovedRequest, O: AppointmentAttachmentRemovedResponse }, { name: "EmailsAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been added." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentEmailsAddedRequest, O: AppointmentEmailsAddedResponse }, { name: "EmailsRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment Emails have been removed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentEmailsRemovedRequest, O: AppointmentEmailsRemovedResponse }, { name: "AttendeesAdded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Appointment attendees have been added." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttendeesAddedRequest, O: AppointmentAttendeesAddedResponse }, { name: "AttendeesRemoved", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Appointment attendees have been removed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentAttendeesRemovedRequest, O: AppointmentAttendeesRemovedResponse }, { name: "Sanitised", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An Appointment has been sanitised." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.platformReserved": false, "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSanitisedRequest, O: AppointmentSanitisedResponse }, { name: "CustomFieldsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "CustomFields have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCustomFieldsUpdatedRequest, O: AppointmentCustomFieldsUpdatedResponse }, { name: "Redetected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The associated appointment was not created correctly. Call this api to fix the appointment creation. " }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentRedetectedRequest, O: AppointmentRedetectedResponse } ], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });