Files
npm-core-sdk/appointmentInput.ts
2025-08-26 15:02:20 +00:00

4966 lines
273 KiB
TypeScript

// @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 { ResponseSiteHeader } from "./shared";
import { RequestSiteHeader } from "./shared";
import { EntityID } from "./shared";
import { EventHeader } from "./shared";
import { MetadataElement } from "./shared";
import { Slot } from "./slotbooking";
import { CarrierInformationWithValue } from "./slotbooking";
import { SegmentationSelection } from "./slotbooking";
import { Commission } from "./slotbooking";
import { AppointmentType } from "./slotbooking";
//
// Created : this message tells that appointment is created
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentCreatedPayload
*/
export interface AppointmentCreatedPayload {
/**
* Type of appointment : Expedition / Reception / Both
*
* @generated from protobuf field: api.AppointmentType AppointmentType = 1
*/
AppointmentType: AppointmentType;
/**
* List of the orders and projects for which the appointment is made, with the quantities
* TODO ??
*
* @generated from protobuf field: repeated api.Commission Commissions = 2
*/
Commissions: Commission[]; // [
// (validate.rules).repeated.min_items = 1
// ];
/**
* Set of segmentation constraining the slot booking
*
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 4
*/
SegmentationSelections: SegmentationSelection[];
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5
*/
CarrierInformation: CarrierInformationWithValue[];
/**
* 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 ?
*
* @generated from protobuf field: repeated string Emails = 7
*/
Emails: string[];
/**
* @generated from protobuf field: repeated api.MetadataElement MetaData = 8
*/
MetaData: MetadataElement[];
/**
* @generated from protobuf field: string CarrierID = 10
*/
CarrierID: string;
/**
* @generated from protobuf field: string CarrierName = 11
*/
CarrierName: string;
/**
* @generated from protobuf field: string Reason = 12
*/
Reason: string;
/**
* @generated from protobuf field: bool HasCommission = 13
*/
HasCommission: boolean;
/**
* @generated from protobuf field: bool InstructionAck = 14
*/
InstructionAck: boolean;
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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 {
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// DateUpdated : this message tells that appointment date has been modified
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentDateUpdatedPayload
*/
export interface AppointmentDateUpdatedPayload {
/**
* @generated from protobuf field: api.Slot Slot = 6
*/
Slot?: Slot;
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentDateUpdatedEvent
*/
export interface AppointmentDateUpdatedEvent {
/**
* @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.AppointmentDateUpdatedPayload Payload = 3
*/
Payload?: AppointmentDateUpdatedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentDateUpdatedRequest
*/
export interface AppointmentDateUpdatedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentDateUpdatedPayload Payload = 3
*/
Payload?: AppointmentDateUpdatedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentDateUpdatedResponse
*/
export interface AppointmentDateUpdatedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// CommissionsUpdated : this message tells that appointment date has been modified
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentCommissionsUpdatedPayload
*/
export interface AppointmentCommissionsUpdatedPayload {
/**
* @generated from protobuf field: api.Slot Slot = 1
*/
Slot?: Slot;
/**
* @generated from protobuf field: repeated api.Commission Commissions = 2
*/
Commissions: Commission[];
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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[];
}
/**
* @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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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[];
}
/**
* @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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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 {
/**
* Required carrierInformation, some can be obligatory
*
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 1
*/
CarrierInformation: CarrierInformationWithValue[];
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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 {
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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 {
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// ExpeditionStarted : this message tells that appointment carrier is expected
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentExpeditionStartedPayload
*/
export interface AppointmentExpeditionStartedPayload {
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentExpeditionStartedEvent
*/
export interface AppointmentExpeditionStartedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentExpeditionStartedPayload Payload = 3
*/
Payload?: AppointmentExpeditionStartedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentExpeditionStartedRequest
*/
export interface AppointmentExpeditionStartedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentExpeditionStartedPayload Payload = 3
*/
Payload?: AppointmentExpeditionStartedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentExpeditionStartedResponse
*/
export interface AppointmentExpeditionStartedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// ExpeditionLoaded : this message tells that appointment carrier is expected
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentExpeditionLoadedPayload
*/
export interface AppointmentExpeditionLoadedPayload {
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentExpeditionLoadedEvent
*/
export interface AppointmentExpeditionLoadedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentExpeditionLoadedPayload Payload = 3
*/
Payload?: AppointmentExpeditionLoadedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentExpeditionLoadedRequest
*/
export interface AppointmentExpeditionLoadedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentExpeditionLoadedPayload Payload = 3
*/
Payload?: AppointmentExpeditionLoadedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentExpeditionLoadedResponse
*/
export interface AppointmentExpeditionLoadedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// ReceptionStarted : this message tells that appointment carrier is expected
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentReceptionStartedPayload
*/
export interface AppointmentReceptionStartedPayload {
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentReceptionStartedEvent
*/
export interface AppointmentReceptionStartedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentReceptionStartedPayload Payload = 3
*/
Payload?: AppointmentReceptionStartedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentReceptionStartedRequest
*/
export interface AppointmentReceptionStartedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentReceptionStartedPayload Payload = 3
*/
Payload?: AppointmentReceptionStartedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentReceptionStartedResponse
*/
export interface AppointmentReceptionStartedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
}
//
// ReceptionUnloaded : this message tells that appointment carrier is expected
/**
* Event Payload
*
* @generated from protobuf message api.AppointmentReceptionUnloadedPayload
*/
export interface AppointmentReceptionUnloadedPayload {
}
/**
* Event message
*
* @generated from protobuf message api.AppointmentReceptionUnloadedEvent
*/
export interface AppointmentReceptionUnloadedEvent {
/**
* @generated from protobuf field: api.EventHeader Header = 1
*/
Header?: EventHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentReceptionUnloadedPayload Payload = 3
*/
Payload?: AppointmentReceptionUnloadedPayload;
}
/**
* API Request
*
* @generated from protobuf message api.AppointmentReceptionUnloadedRequest
*/
export interface AppointmentReceptionUnloadedRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.EntityID ID = 2
*/
ID?: EntityID;
/**
* @generated from protobuf field: api.AppointmentReceptionUnloadedPayload Payload = 3
*/
Payload?: AppointmentReceptionUnloadedPayload;
}
/**
* API Response
*
* @generated from protobuf message api.AppointmentReceptionUnloadedResponse
*/
export interface AppointmentReceptionUnloadedResponse {
/**
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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 {
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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[];
}
/**
* @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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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[];
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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[];
}
/**
* 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.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @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.ResponseSiteHeader Header = 1
*/
Header?: ResponseSiteHeader;
/**
* @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<AppointmentCreatedPayload> {
constructor() {
super("api.AppointmentCreatedPayload", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ 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: 10, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 13, name: "HasCommission", kind: "scalar", localName: "HasCommission", jsonName: "HasCommission", T: 8 /*ScalarType.BOOL*/ },
{ no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
], { "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>): AppointmentCreatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.Commissions = [];
message.SegmentationSelections = [];
message.CarrierInformation = [];
message.Emails = [];
message.MetaData = [];
message.CarrierID = "";
message.CarrierName = "";
message.Reason = "";
message.HasCommission = false;
message.InstructionAck = false;
if (value !== undefined)
reflectionMergePartial<AppointmentCreatedPayload>(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.Commission Commissions */ 2:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.SegmentationSelection SegmentationSelections */ 4:
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 5:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.Slot Slot */ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
break;
case /* repeated string Emails */ 7:
message.Emails.push(reader.string());
break;
case /* repeated api.MetadataElement MetaData */ 8:
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string CarrierID */ 10:
message.CarrierID = reader.string();
break;
case /* string CarrierName */ 11:
message.CarrierName = reader.string();
break;
case /* string Reason */ 12:
message.Reason = reader.string();
break;
case /* bool HasCommission */ 13:
message.HasCommission = reader.bool();
break;
case /* bool InstructionAck */ 14:
message.InstructionAck = reader.bool();
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);
/* repeated api.Commission Commissions = 2; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* repeated api.SegmentationSelection SegmentationSelections = 4; */
for (let i = 0; i < message.SegmentationSelections.length; i++)
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CarrierInformationWithValue CarrierInformation = 5; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* repeated string Emails = 7; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
/* 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 CarrierID = 10; */
if (message.CarrierID !== "")
writer.tag(10, WireType.LengthDelimited).string(message.CarrierID);
/* string CarrierName = 11; */
if (message.CarrierName !== "")
writer.tag(11, WireType.LengthDelimited).string(message.CarrierName);
/* string Reason = 12; */
if (message.Reason !== "")
writer.tag(12, WireType.LengthDelimited).string(message.Reason);
/* bool HasCommission = 13; */
if (message.HasCommission !== false)
writer.tag(13, WireType.Varint).bool(message.HasCommission);
/* bool InstructionAck = 14; */
if (message.InstructionAck !== false)
writer.tag(14, WireType.Varint).bool(message.InstructionAck);
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<AppointmentCreatedEvent> {
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>): AppointmentCreatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCreatedEvent>(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<AppointmentCreatedRequest> {
constructor() {
super("api.AppointmentCreatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Created" });
}
create(value?: PartialMessage<AppointmentCreatedRequest>): AppointmentCreatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCreatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedRequest): AppointmentCreatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCreatedResponse> {
constructor() {
super("api.AppointmentCreatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "Created" });
}
create(value?: PartialMessage<AppointmentCreatedResponse>): AppointmentCreatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCreatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCreatedResponse): AppointmentCreatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentCanceledPayload> {
constructor() {
super("api.AppointmentCanceledPayload", [], { "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>): AppointmentCanceledPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCanceledPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledPayload): AppointmentCanceledPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCanceledPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCanceledPayload
*/
export const AppointmentCanceledPayload = new AppointmentCanceledPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCanceledEvent$Type extends MessageType<AppointmentCanceledEvent> {
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>): AppointmentCanceledEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCanceledEvent>(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<AppointmentCanceledRequest> {
constructor() {
super("api.AppointmentCanceledRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCanceledPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "Canceled" });
}
create(value?: PartialMessage<AppointmentCanceledRequest>): AppointmentCanceledRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCanceledRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledRequest): AppointmentCanceledRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCanceledResponse> {
constructor() {
super("api.AppointmentCanceledResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "Canceled" });
}
create(value?: PartialMessage<AppointmentCanceledResponse>): AppointmentCanceledResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCanceledResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCanceledResponse): AppointmentCanceledResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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 AppointmentDateUpdatedPayload$Type extends MessageType<AppointmentDateUpdatedPayload> {
constructor() {
super("api.AppointmentDateUpdatedPayload", [
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "DateUpdated" });
}
create(value?: PartialMessage<AppointmentDateUpdatedPayload>): AppointmentDateUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentDateUpdatedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDateUpdatedPayload): AppointmentDateUpdatedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.Slot Slot */ 6:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
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: AppointmentDateUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Slot Slot = 6; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, 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.AppointmentDateUpdatedPayload
*/
export const AppointmentDateUpdatedPayload = new AppointmentDateUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentDateUpdatedEvent$Type extends MessageType<AppointmentDateUpdatedEvent> {
constructor() {
super("api.AppointmentDateUpdatedEvent", [
{ 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: () => AppointmentDateUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "DateUpdated" });
}
create(value?: PartialMessage<AppointmentDateUpdatedEvent>): AppointmentDateUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentDateUpdatedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDateUpdatedEvent): AppointmentDateUpdatedEvent {
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.AppointmentDateUpdatedPayload Payload */ 3:
message.Payload = AppointmentDateUpdatedPayload.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: AppointmentDateUpdatedEvent, 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.AppointmentDateUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentDateUpdatedPayload.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.AppointmentDateUpdatedEvent
*/
export const AppointmentDateUpdatedEvent = new AppointmentDateUpdatedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentDateUpdatedRequest$Type extends MessageType<AppointmentDateUpdatedRequest> {
constructor() {
super("api.AppointmentDateUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentDateUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "DateUpdated" });
}
create(value?: PartialMessage<AppointmentDateUpdatedRequest>): AppointmentDateUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentDateUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDateUpdatedRequest): AppointmentDateUpdatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentDateUpdatedPayload Payload */ 3:
message.Payload = AppointmentDateUpdatedPayload.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: AppointmentDateUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentDateUpdatedPayload Payload = 3; */
if (message.Payload)
AppointmentDateUpdatedPayload.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.AppointmentDateUpdatedRequest
*/
export const AppointmentDateUpdatedRequest = new AppointmentDateUpdatedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentDateUpdatedResponse$Type extends MessageType<AppointmentDateUpdatedResponse> {
constructor() {
super("api.AppointmentDateUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "DateUpdated" });
}
create(value?: PartialMessage<AppointmentDateUpdatedResponse>): AppointmentDateUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentDateUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentDateUpdatedResponse): AppointmentDateUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentDateUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentDateUpdatedResponse
*/
export const AppointmentDateUpdatedResponse = new AppointmentDateUpdatedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentCommissionsUpdatedPayload> {
constructor() {
super("api.AppointmentCommissionsUpdatedPayload", [
{ no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
], { "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>): AppointmentCommissionsUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Commissions = [];
if (value !== undefined)
reflectionMergePartial<AppointmentCommissionsUpdatedPayload>(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 /* api.Slot Slot */ 1:
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
break;
case /* repeated api.Commission Commissions */ 2:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCommissionsUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.Slot Slot = 1; */
if (message.Slot)
Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.Commission Commissions = 2; */
for (let i = 0; i < message.Commissions.length; i++)
Commission.internalBinaryWrite(message.Commissions[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.AppointmentCommissionsUpdatedPayload
*/
export const AppointmentCommissionsUpdatedPayload = new AppointmentCommissionsUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCommissionsUpdatedEvent$Type extends MessageType<AppointmentCommissionsUpdatedEvent> {
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>): AppointmentCommissionsUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCommissionsUpdatedEvent>(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<AppointmentCommissionsUpdatedRequest> {
constructor() {
super("api.AppointmentCommissionsUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentCommissionsUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCommissionsUpdatedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCommissionsUpdatedResponse> {
constructor() {
super("api.AppointmentCommissionsUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CommissionsUpdated" });
}
create(value?: PartialMessage<AppointmentCommissionsUpdatedResponse>): AppointmentCommissionsUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCommissionsUpdatedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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 AppointmentAttachmentAddedPayload$Type extends MessageType<AppointmentAttachmentAddedPayload> {
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" } } }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttachmentAdded" });
}
create(value?: PartialMessage<AppointmentAttachmentAddedPayload>): AppointmentAttachmentAddedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attachments = [];
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentAddedPayload>(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;
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();
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<AppointmentAttachmentAddedEvent> {
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>): AppointmentAttachmentAddedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentAddedEvent>(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<AppointmentAttachmentAddedRequest> {
constructor() {
super("api.AppointmentAttachmentAddedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentAttachmentAddedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentAddedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentAttachmentAddedResponse> {
constructor() {
super("api.AppointmentAttachmentAddedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AttachmentAdded" });
}
create(value?: PartialMessage<AppointmentAttachmentAddedResponse>): AppointmentAttachmentAddedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentAddedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentAttachmentRemovedPayload> {
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" } } }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AttachmentRemoved" });
}
create(value?: PartialMessage<AppointmentAttachmentRemovedPayload>): AppointmentAttachmentRemovedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Attachments = [];
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentRemovedPayload>(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;
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();
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<AppointmentAttachmentRemovedEvent> {
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>): AppointmentAttachmentRemovedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentRemovedEvent>(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<AppointmentAttachmentRemovedRequest> {
constructor() {
super("api.AppointmentAttachmentRemovedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentAttachmentRemovedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentRemovedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentAttachmentRemovedResponse> {
constructor() {
super("api.AppointmentAttachmentRemovedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "AttachmentRemoved" });
}
create(value?: PartialMessage<AppointmentAttachmentRemovedResponse>): AppointmentAttachmentRemovedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentAttachmentRemovedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentCarrierInformationUpdatedPayload> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedPayload", [
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue }
], { "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>): AppointmentCarrierInformationUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.CarrierInformation = [];
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedPayload>(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.CarrierInformationWithValue CarrierInformation */ 1:
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.CarrierInformationWithValue CarrierInformation = 1; */
for (let i = 0; i < message.CarrierInformation.length; i++)
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCarrierInformationUpdatedPayload
*/
export const AppointmentCarrierInformationUpdatedPayload = new AppointmentCarrierInformationUpdatedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierInformationUpdatedEvent$Type extends MessageType<AppointmentCarrierInformationUpdatedEvent> {
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>): AppointmentCarrierInformationUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedEvent>(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<AppointmentCarrierInformationUpdatedRequest> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierInformationUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedRequest>): AppointmentCarrierInformationUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedRequest): AppointmentCarrierInformationUpdatedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCarrierInformationUpdatedResponse> {
constructor() {
super("api.AppointmentCarrierInformationUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CarrierInformationUpdated" });
}
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedResponse>): AppointmentCarrierInformationUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierInformationUpdatedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierInformationUpdatedResponse): AppointmentCarrierInformationUpdatedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentCarrierExpectedPayload> {
constructor() {
super("api.AppointmentCarrierExpectedPayload", [], { "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>): AppointmentCarrierExpectedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierExpectedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedPayload): AppointmentCarrierExpectedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCarrierExpectedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCarrierExpectedPayload
*/
export const AppointmentCarrierExpectedPayload = new AppointmentCarrierExpectedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierExpectedEvent$Type extends MessageType<AppointmentCarrierExpectedEvent> {
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>): AppointmentCarrierExpectedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierExpectedEvent>(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<AppointmentCarrierExpectedRequest> {
constructor() {
super("api.AppointmentCarrierExpectedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierExpectedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierExpected" });
}
create(value?: PartialMessage<AppointmentCarrierExpectedRequest>): AppointmentCarrierExpectedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierExpectedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedRequest): AppointmentCarrierExpectedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCarrierExpectedResponse> {
constructor() {
super("api.AppointmentCarrierExpectedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CarrierExpected" });
}
create(value?: PartialMessage<AppointmentCarrierExpectedResponse>): AppointmentCarrierExpectedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierExpectedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierExpectedResponse): AppointmentCarrierExpectedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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 AppointmentCarrierArrivedPayload$Type extends MessageType<AppointmentCarrierArrivedPayload> {
constructor() {
super("api.AppointmentCarrierArrivedPayload", [], { "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>): AppointmentCarrierArrivedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierArrivedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedPayload): AppointmentCarrierArrivedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCarrierArrivedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCarrierArrivedPayload
*/
export const AppointmentCarrierArrivedPayload = new AppointmentCarrierArrivedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierArrivedEvent$Type extends MessageType<AppointmentCarrierArrivedEvent> {
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>): AppointmentCarrierArrivedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierArrivedEvent>(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<AppointmentCarrierArrivedRequest> {
constructor() {
super("api.AppointmentCarrierArrivedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierArrivedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierArrived" });
}
create(value?: PartialMessage<AppointmentCarrierArrivedRequest>): AppointmentCarrierArrivedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierArrivedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedRequest): AppointmentCarrierArrivedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCarrierArrivedResponse> {
constructor() {
super("api.AppointmentCarrierArrivedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CarrierArrived" });
}
create(value?: PartialMessage<AppointmentCarrierArrivedResponse>): AppointmentCarrierArrivedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierArrivedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierArrivedResponse): AppointmentCarrierArrivedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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 AppointmentExpeditionStartedPayload$Type extends MessageType<AppointmentExpeditionStartedPayload> {
constructor() {
super("api.AppointmentExpeditionStartedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExpeditionStarted" });
}
create(value?: PartialMessage<AppointmentExpeditionStartedPayload>): AppointmentExpeditionStartedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionStartedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedPayload): AppointmentExpeditionStartedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionStartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionStartedPayload
*/
export const AppointmentExpeditionStartedPayload = new AppointmentExpeditionStartedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionStartedEvent$Type extends MessageType<AppointmentExpeditionStartedEvent> {
constructor() {
super("api.AppointmentExpeditionStartedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionStartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ExpeditionStarted" });
}
create(value?: PartialMessage<AppointmentExpeditionStartedEvent>): AppointmentExpeditionStartedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionStartedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedEvent): AppointmentExpeditionStartedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
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.AppointmentExpeditionStartedPayload Payload */ 3:
message.Payload = AppointmentExpeditionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
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.AppointmentExpeditionStartedPayload Payload = 3; */
if (message.Payload)
AppointmentExpeditionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionStartedEvent
*/
export const AppointmentExpeditionStartedEvent = new AppointmentExpeditionStartedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionStartedRequest$Type extends MessageType<AppointmentExpeditionStartedRequest> {
constructor() {
super("api.AppointmentExpeditionStartedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionStartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ExpeditionStarted" });
}
create(value?: PartialMessage<AppointmentExpeditionStartedRequest>): AppointmentExpeditionStartedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionStartedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedRequest): AppointmentExpeditionStartedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentExpeditionStartedPayload Payload */ 3:
message.Payload = AppointmentExpeditionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentExpeditionStartedPayload Payload = 3; */
if (message.Payload)
AppointmentExpeditionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionStartedRequest
*/
export const AppointmentExpeditionStartedRequest = new AppointmentExpeditionStartedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionStartedResponse$Type extends MessageType<AppointmentExpeditionStartedResponse> {
constructor() {
super("api.AppointmentExpeditionStartedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "ExpeditionStarted" });
}
create(value?: PartialMessage<AppointmentExpeditionStartedResponse>): AppointmentExpeditionStartedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionStartedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionStartedResponse): AppointmentExpeditionStartedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentExpeditionStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentExpeditionStartedResponse
*/
export const AppointmentExpeditionStartedResponse = new AppointmentExpeditionStartedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionLoadedPayload$Type extends MessageType<AppointmentExpeditionLoadedPayload> {
constructor() {
super("api.AppointmentExpeditionLoadedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ExpeditionLoaded" });
}
create(value?: PartialMessage<AppointmentExpeditionLoadedPayload>): AppointmentExpeditionLoadedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionLoadedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedPayload): AppointmentExpeditionLoadedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionLoadedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionLoadedPayload
*/
export const AppointmentExpeditionLoadedPayload = new AppointmentExpeditionLoadedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionLoadedEvent$Type extends MessageType<AppointmentExpeditionLoadedEvent> {
constructor() {
super("api.AppointmentExpeditionLoadedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionLoadedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ExpeditionLoaded" });
}
create(value?: PartialMessage<AppointmentExpeditionLoadedEvent>): AppointmentExpeditionLoadedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionLoadedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedEvent): AppointmentExpeditionLoadedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
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.AppointmentExpeditionLoadedPayload Payload */ 3:
message.Payload = AppointmentExpeditionLoadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionLoadedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
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.AppointmentExpeditionLoadedPayload Payload = 3; */
if (message.Payload)
AppointmentExpeditionLoadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionLoadedEvent
*/
export const AppointmentExpeditionLoadedEvent = new AppointmentExpeditionLoadedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionLoadedRequest$Type extends MessageType<AppointmentExpeditionLoadedRequest> {
constructor() {
super("api.AppointmentExpeditionLoadedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentExpeditionLoadedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ExpeditionLoaded" });
}
create(value?: PartialMessage<AppointmentExpeditionLoadedRequest>): AppointmentExpeditionLoadedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionLoadedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedRequest): AppointmentExpeditionLoadedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentExpeditionLoadedPayload Payload */ 3:
message.Payload = AppointmentExpeditionLoadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentExpeditionLoadedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentExpeditionLoadedPayload Payload = 3; */
if (message.Payload)
AppointmentExpeditionLoadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentExpeditionLoadedRequest
*/
export const AppointmentExpeditionLoadedRequest = new AppointmentExpeditionLoadedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentExpeditionLoadedResponse$Type extends MessageType<AppointmentExpeditionLoadedResponse> {
constructor() {
super("api.AppointmentExpeditionLoadedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "ExpeditionLoaded" });
}
create(value?: PartialMessage<AppointmentExpeditionLoadedResponse>): AppointmentExpeditionLoadedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentExpeditionLoadedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentExpeditionLoadedResponse): AppointmentExpeditionLoadedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentExpeditionLoadedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentExpeditionLoadedResponse
*/
export const AppointmentExpeditionLoadedResponse = new AppointmentExpeditionLoadedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionStartedPayload$Type extends MessageType<AppointmentReceptionStartedPayload> {
constructor() {
super("api.AppointmentReceptionStartedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReceptionStarted" });
}
create(value?: PartialMessage<AppointmentReceptionStartedPayload>): AppointmentReceptionStartedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionStartedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedPayload): AppointmentReceptionStartedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionStartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionStartedPayload
*/
export const AppointmentReceptionStartedPayload = new AppointmentReceptionStartedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionStartedEvent$Type extends MessageType<AppointmentReceptionStartedEvent> {
constructor() {
super("api.AppointmentReceptionStartedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionStartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReceptionStarted" });
}
create(value?: PartialMessage<AppointmentReceptionStartedEvent>): AppointmentReceptionStartedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionStartedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedEvent): AppointmentReceptionStartedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
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.AppointmentReceptionStartedPayload Payload */ 3:
message.Payload = AppointmentReceptionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionStartedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
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.AppointmentReceptionStartedPayload Payload = 3; */
if (message.Payload)
AppointmentReceptionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionStartedEvent
*/
export const AppointmentReceptionStartedEvent = new AppointmentReceptionStartedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionStartedRequest$Type extends MessageType<AppointmentReceptionStartedRequest> {
constructor() {
super("api.AppointmentReceptionStartedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionStartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceptionStarted" });
}
create(value?: PartialMessage<AppointmentReceptionStartedRequest>): AppointmentReceptionStartedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionStartedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedRequest): AppointmentReceptionStartedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentReceptionStartedPayload Payload */ 3:
message.Payload = AppointmentReceptionStartedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionStartedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentReceptionStartedPayload Payload = 3; */
if (message.Payload)
AppointmentReceptionStartedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionStartedRequest
*/
export const AppointmentReceptionStartedRequest = new AppointmentReceptionStartedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionStartedResponse$Type extends MessageType<AppointmentReceptionStartedResponse> {
constructor() {
super("api.AppointmentReceptionStartedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "ReceptionStarted" });
}
create(value?: PartialMessage<AppointmentReceptionStartedResponse>): AppointmentReceptionStartedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionStartedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionStartedResponse): AppointmentReceptionStartedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentReceptionStartedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentReceptionStartedResponse
*/
export const AppointmentReceptionStartedResponse = new AppointmentReceptionStartedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionUnloadedPayload$Type extends MessageType<AppointmentReceptionUnloadedPayload> {
constructor() {
super("api.AppointmentReceptionUnloadedPayload", [], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "ReceptionUnloaded" });
}
create(value?: PartialMessage<AppointmentReceptionUnloadedPayload>): AppointmentReceptionUnloadedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionUnloadedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedPayload): AppointmentReceptionUnloadedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionUnloadedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionUnloadedPayload
*/
export const AppointmentReceptionUnloadedPayload = new AppointmentReceptionUnloadedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionUnloadedEvent$Type extends MessageType<AppointmentReceptionUnloadedEvent> {
constructor() {
super("api.AppointmentReceptionUnloadedEvent", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionUnloadedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "ReceptionUnloaded" });
}
create(value?: PartialMessage<AppointmentReceptionUnloadedEvent>): AppointmentReceptionUnloadedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionUnloadedEvent>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedEvent): AppointmentReceptionUnloadedEvent {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.EventHeader Header */ 1:
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.AppointmentReceptionUnloadedPayload Payload */ 3:
message.Payload = AppointmentReceptionUnloadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionUnloadedEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.EventHeader Header = 1; */
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.AppointmentReceptionUnloadedPayload Payload = 3; */
if (message.Payload)
AppointmentReceptionUnloadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionUnloadedEvent
*/
export const AppointmentReceptionUnloadedEvent = new AppointmentReceptionUnloadedEvent$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionUnloadedRequest$Type extends MessageType<AppointmentReceptionUnloadedRequest> {
constructor() {
super("api.AppointmentReceptionUnloadedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentReceptionUnloadedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "ReceptionUnloaded" });
}
create(value?: PartialMessage<AppointmentReceptionUnloadedRequest>): AppointmentReceptionUnloadedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionUnloadedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedRequest): AppointmentReceptionUnloadedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.AppointmentReceptionUnloadedPayload Payload */ 3:
message.Payload = AppointmentReceptionUnloadedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentReceptionUnloadedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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.AppointmentReceptionUnloadedPayload Payload = 3; */
if (message.Payload)
AppointmentReceptionUnloadedPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentReceptionUnloadedRequest
*/
export const AppointmentReceptionUnloadedRequest = new AppointmentReceptionUnloadedRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentReceptionUnloadedResponse$Type extends MessageType<AppointmentReceptionUnloadedResponse> {
constructor() {
super("api.AppointmentReceptionUnloadedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "ReceptionUnloaded" });
}
create(value?: PartialMessage<AppointmentReceptionUnloadedResponse>): AppointmentReceptionUnloadedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentReceptionUnloadedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentReceptionUnloadedResponse): AppointmentReceptionUnloadedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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: AppointmentReceptionUnloadedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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.AppointmentReceptionUnloadedResponse
*/
export const AppointmentReceptionUnloadedResponse = new AppointmentReceptionUnloadedResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierDepartedPayload$Type extends MessageType<AppointmentCarrierDepartedPayload> {
constructor() {
super("api.AppointmentCarrierDepartedPayload", [], { "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>): AppointmentCarrierDepartedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierDepartedPayload>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedPayload): AppointmentCarrierDepartedPayload {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: AppointmentCarrierDepartedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.AppointmentCarrierDepartedPayload
*/
export const AppointmentCarrierDepartedPayload = new AppointmentCarrierDepartedPayload$Type();
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentCarrierDepartedEvent$Type extends MessageType<AppointmentCarrierDepartedEvent> {
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>): AppointmentCarrierDepartedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierDepartedEvent>(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<AppointmentCarrierDepartedRequest> {
constructor() {
super("api.AppointmentCarrierDepartedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => AppointmentCarrierDepartedPayload, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CarrierDeparted" });
}
create(value?: PartialMessage<AppointmentCarrierDepartedRequest>): AppointmentCarrierDepartedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierDepartedRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedRequest): AppointmentCarrierDepartedRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentCarrierDepartedResponse> {
constructor() {
super("api.AppointmentCarrierDepartedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "CarrierDeparted" });
}
create(value?: PartialMessage<AppointmentCarrierDepartedResponse>): AppointmentCarrierDepartedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentCarrierDepartedResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCarrierDepartedResponse): AppointmentCarrierDepartedResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentMetaDataUpdatedPayload> {
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" } }
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "MetaDataUpdated" });
}
create(value?: PartialMessage<AppointmentMetaDataUpdatedPayload>): AppointmentMetaDataUpdatedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.MetaData = [];
if (value !== undefined)
reflectionMergePartial<AppointmentMetaDataUpdatedPayload>(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;
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();
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<AppointmentMetaDataUpdatedEvent> {
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>): AppointmentMetaDataUpdatedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentMetaDataUpdatedEvent>(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<AppointmentMetaDataUpdatedRequest> {
constructor() {
super("api.AppointmentMetaDataUpdatedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentMetaDataUpdatedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentMetaDataUpdatedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentMetaDataUpdatedResponse> {
constructor() {
super("api.AppointmentMetaDataUpdatedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "MetaDataUpdated" });
}
create(value?: PartialMessage<AppointmentMetaDataUpdatedResponse>): AppointmentMetaDataUpdatedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentMetaDataUpdatedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentEmailsAddedPayload> {
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\"]" } } }
], { "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>): AppointmentEmailsAddedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.Emails = [];
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedPayload>(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;
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]);
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<AppointmentEmailsAddedEvent> {
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>): AppointmentEmailsAddedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedEvent>(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<AppointmentEmailsAddedRequest> {
constructor() {
super("api.AppointmentEmailsAddedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentEmailsAddedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentEmailsAddedResponse> {
constructor() {
super("api.AppointmentEmailsAddedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "EmailsAdded" });
}
create(value?: PartialMessage<AppointmentEmailsAddedResponse>): AppointmentEmailsAddedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsAddedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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<AppointmentEmailsRemovedPayload> {
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\"]" } } }
], { "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>): AppointmentEmailsRemovedPayload {
const message = globalThis.Object.create((this.messagePrototype!));
message.RemovedEmails = [];
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedPayload>(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;
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]);
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<AppointmentEmailsRemovedEvent> {
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>): AppointmentEmailsRemovedEvent {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedEvent>(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<AppointmentEmailsRemovedRequest> {
constructor() {
super("api.AppointmentEmailsRemovedRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => 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>): AppointmentEmailsRemovedRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedRequest>(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.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.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.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.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<AppointmentEmailsRemovedResponse> {
constructor() {
super("api.AppointmentEmailsRemovedResponse", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
], { "api.messageType": "Response", "api.inputEvent": "EmailsRemoved" });
}
create(value?: PartialMessage<AppointmentEmailsRemovedResponse>): AppointmentEmailsRemovedResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<AppointmentEmailsRemovedResponse>(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.ResponseSiteHeader Header */ 1:
message.Header = ResponseSiteHeader.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.ResponseSiteHeader Header = 1; */
if (message.Header)
ResponseSiteHeader.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 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": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, 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": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
{ name: "DateUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentDateUpdatedRequest, O: AppointmentDateUpdatedResponse },
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date and its commissions has been modified." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
{ name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "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 exopected for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
{ name: "CarrierArrived", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse },
{ name: "ExpeditionStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is started." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionStartedRequest, O: AppointmentExpeditionStartedResponse },
{ name: "ExpeditionLoaded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is loaded." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionLoadedRequest, O: AppointmentExpeditionLoadedResponse },
{ name: "ReceptionStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is started." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionStartedRequest, O: AppointmentReceptionStartedResponse },
{ name: "ReceptionUnloaded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is unloaded." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionUnloadedRequest, O: AppointmentReceptionUnloadedResponse },
{ name: "CarrierDeparted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "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": "Site", "api.roles": "Platform.Site-Input", "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": "Site", "api.roles": "Platform.Site-Attachment", "api.platformReserved": true, "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": "Site", "api.roles": "Platform.Site-Attachment", "api.platformReserved": true, "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": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, 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": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentEmailsRemovedRequest, O: AppointmentEmailsRemovedResponse }
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });