// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "executionflow.proto" (package "api", syntax proto3) // tslint:disable 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 { PartnerPayload } from "./partner"; import { ActorPayload } from "./actor"; import { ItemPayload } from "./item"; import { EntityID } from "./shared"; import { EventHeader } from "./shared"; import { ETA } from "./tradeShared"; import { ETAbyHU } from "./tradeShared"; import { ClaimSummary } from "./shared"; import { AttachmentSummary } from "./shared"; import { ExecutionflowStatusStruct } from "./tradeShared"; import { HandlingunitSummary } from "./warehousingShared"; import { ExeFlowLine } from "./tradeShared"; import { OrderRequestedMilestones } from "./tradeShared"; import { TradeTier } from "./tradeShared"; import { MetadataElement } from "./shared"; import { DateTime } from "./shared"; // // This entity describes a simple logistical flow, an order for the 3 stages : // - prepare goods in one warehouse, // - move them to another place, // - receive goods. // // It represents the logistical order or a subcommand of trade order. It is structured with lines. // // The lines are an extract from those of the trade order lines :same IDs, same requested Goods, but quantities may differ // // A executionFlow is usually created by a message from the OMS. It collects information from the following entities : // - HandlingUnit : the status of the HU. // // The executionflow Metadata are the same as the trade order Metadata. // // The Goods may come enriched (i.e. with item details) from the OMS (Created event within th ExeFlowLine structure) // The Goods do no come enriched from handlingunit entity (within HandlingunitSummary structure) but the structure may be enriched later. // // Comments updated 2021/02/17 /** * @generated from protobuf message api.ExecutionflowPayload */ export interface ExecutionflowPayload { /** * @generated from protobuf field: api.DateTime CreationDateTime = 1 */ CreationDateTime?: DateTime; /** * @generated from protobuf field: string OrderID = 2 */ OrderID: string; /** * Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp) * * @generated from protobuf field: repeated api.MetadataElement MetaData = 3 */ MetaData: MetadataElement[]; /** * Where to ship the order from * * @generated from protobuf field: api.TradeTier ShipFrom = 4 */ ShipFrom?: TradeTier; /** * Where to ship the order to * * @generated from protobuf field: api.TradeTier ShipTo = 5 */ ShipTo?: TradeTier; /** * Definition of the order carrier * * @generated from protobuf field: api.TradeTier Carrier = 6 */ Carrier?: TradeTier; /** * Type of carrier service * * @generated from protobuf field: string CarrierService = 7 */ CarrierService: string; /** * @generated from protobuf field: api.OrderRequestedMilestones RequestedMilestones = 8 */ RequestedMilestones?: OrderRequestedMilestones; /** * @generated from protobuf field: repeated api.ExeFlowLine Lines = 9 */ Lines: ExeFlowLine[]; // // Handlingunit executions. // The goods content of the HU is coming from handlingunit entity. /** * @generated from protobuf field: repeated api.HandlingunitSummary Handlingunits = 11 */ Handlingunits: HandlingunitSummary[]; /** * @generated from protobuf field: api.ExecutionflowStatusStruct Status = 13 */ Status?: ExecutionflowStatusStruct; // Status field is not accessible from APIs /** * @generated from protobuf field: bool ShipFromAcked = 14 */ ShipFromAcked: boolean; /** * @generated from protobuf field: bool ShipToAcked = 15 */ ShipToAcked: boolean; /** * @generated from protobuf field: repeated api.AttachmentSummary Attachments = 16 */ Attachments: AttachmentSummary[]; /** * @generated from protobuf field: int32 AttachmentNumber = 17 */ AttachmentNumber: number; /** * @generated from protobuf field: repeated api.ClaimSummary Claims = 18 */ Claims: ClaimSummary[]; /** * @generated from protobuf field: int32 ClaimNumber = 19 */ ClaimNumber: number; /** * @generated from protobuf field: repeated api.ETAbyHU HandlingunitETAs = 20 */ HandlingunitETAs: ETAbyHU[]; // //Estimated Time of Arrival for the HandlingUnit(s) created for theis executionflow /** * @generated from protobuf field: api.ETA ExecutionflowETA = 21 */ ExecutionflowETA?: ETA; // Estimated Time of Arrival for the Executionflow, computed with other ETAs received directly or from HUs /** * @generated from protobuf field: api.ETA ExecutionflowETAComputed = 22 */ ExecutionflowETAComputed?: ETA; } // Executionflow entity /** * @generated from protobuf message api.Executionflow */ export interface Executionflow { /** * @generated from protobuf field: api.EventHeader LastEventHeader = 1 */ LastEventHeader?: EventHeader; /** * @generated from protobuf field: api.EntityID ID = 2 */ ID?: EntityID; /** * @generated from protobuf field: api.ExecutionflowPayload Payload = 3 */ Payload?: ExecutionflowPayload; } // Executionflow Enrichment /** * @generated from protobuf message api.ExecutionflowEnrichment */ export interface ExecutionflowEnrichment { /** * @generated from protobuf field: string ParentEventID = 1 */ ParentEventID: string; /** * @generated from protobuf field: string EntityName = 2 */ EntityName: string; /** * @generated from protobuf field: string EntityRefID = 3 */ EntityRefID: string; /** * @generated from protobuf field: string RefFilter = 4 */ RefFilter: string; /** * @generated from protobuf field: string MergePath = 5 */ MergePath: string; /** * @generated from protobuf oneof: Content */ Content: { oneofKind: "Item"; /** * @generated from protobuf field: api.ItemPayload Item = 10 */ Item: ItemPayload; } | { oneofKind: "Actor"; /** * @generated from protobuf field: api.ActorPayload Actor = 11 */ Actor: ActorPayload; } | { oneofKind: "Partner"; /** * @generated from protobuf field: api.PartnerPayload Partner = 12 */ Partner: PartnerPayload; } | { oneofKind: undefined; }; /** * @generated from protobuf field: string Project = 6 */ Project: string; /** * @generated from protobuf field: string ParentEntityName = 7 */ ParentEntityName: string; /** * @generated from protobuf field: string ParentEntityID = 8 */ ParentEntityID: string; } /** * @generated from protobuf message api.ExecutionflowTriplet */ export interface ExecutionflowTriplet { /** * @generated from protobuf field: api.Executionflow Current = 1 */ Current?: Executionflow; /** * @generated from protobuf field: api.Executionflow Previous = 2 */ Previous?: Executionflow; /** * @generated from protobuf field: api.Executionflow LastEvent = 3 */ LastEvent?: Executionflow; } // @generated message type with reflection information, may provide speed optimized methods class ExecutionflowPayload$Type extends MessageType { constructor() { super("api.ExecutionflowPayload", [ { no: 1, name: "CreationDateTime", kind: "message", localName: "CreationDateTime", jsonName: "CreationDateTime", T: () => DateTime }, { no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/, options: { "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } }, { no: 3, 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 project. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key", "api.transientRef": "Order,Payload.MetaData,hard", "api.parentEntity": "Order", "api.aggAppend": "MetaDataUpdated" } }, { no: 4, name: "ShipFrom", kind: "message", localName: "ShipFrom", jsonName: "ShipFrom", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order from" } } }, { no: 5, name: "ShipTo", kind: "message", localName: "ShipTo", jsonName: "ShipTo", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where to ship the order to" } } }, { no: 6, name: "Carrier", kind: "message", localName: "Carrier", jsonName: "Carrier", T: () => TradeTier, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Definition of the order carrier" } } }, { no: 7, name: "CarrierService", kind: "scalar", localName: "CarrierService", jsonName: "CarrierService", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of carrier service" }, "api.dataRestrictionKey": "Executionflow", "api.kpiItems": { Items: [{ Context: "Executionflow", Group: "executionflow", Queryable: true }] } } }, { no: 8, name: "RequestedMilestones", kind: "message", localName: "RequestedMilestones", jsonName: "RequestedMilestones", T: () => OrderRequestedMilestones }, { no: 9, name: "Lines", kind: "message", localName: "Lines", jsonName: "Lines", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExeFlowLine, options: { "api.aggKey": "LineID", "api.aggAppend": "Created,Detected,LinesAdded,LinesDetected", "api.indexationSkip": true } }, { no: 11, name: "Handlingunits", kind: "message", localName: "Handlingunits", jsonName: "Handlingunits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HandlingunitSummary, options: { "api.aggKey": "HandlingunitID", "api.aggAppend": "HUContentUpdated,HUTrackingUpdated", "api.indexationSkip": true } }, { no: 13, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => ExecutionflowStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationSkip": true } }, { no: 14, name: "ShipFromAcked", kind: "scalar", localName: "ShipFromAcked", jsonName: "ShipFromAcked", T: 8 /*ScalarType.BOOL*/ }, { no: 15, name: "ShipToAcked", kind: "scalar", localName: "ShipToAcked", jsonName: "ShipToAcked", T: 8 /*ScalarType.BOOL*/ }, { no: 16, 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 per type" }, "api.aggSkip": "AttachmentAdded,AttachmentRemoved", "api.indexationSkip": true } }, { no: 17, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of attachments" } } }, { no: 18, name: "Claims", kind: "message", localName: "Claims", jsonName: "Claims", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ClaimSummary, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of claims per type" }, "api.aggKey": "ClaimTypeID", "api.aggSkip": "ClaimAdded" } }, { no: 19, name: "ClaimNumber", kind: "scalar", localName: "ClaimNumber", jsonName: "ClaimNumber", T: 5 /*ScalarType.INT32*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Total number of claims" } } }, { no: 20, name: "HandlingunitETAs", kind: "message", localName: "HandlingunitETAs", jsonName: "HandlingunitETAs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ETAbyHU, options: { "api.aggKey": "HandlingunitID", "api.aggSkip": "HUETAUpdated", "api.kpiExclude": { Items: [{ Context: "Executionflow", Group: "executionflow" }] }, "api.indexationSkip": true } }, { no: 21, name: "ExecutionflowETA", kind: "message", localName: "ExecutionflowETA", jsonName: "ExecutionflowETA", T: () => ETA, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Estimated Time of Arrival received directly for the Executionflow" }, "api.aggSkip": "ETAUpdated", "api.kpiExclude": { Items: [{ Context: "Executionflow", Group: "executionflow" }] }, "api.indexationSkip": true } }, { no: 22, name: "ExecutionflowETAComputed", kind: "message", localName: "ExecutionflowETAComputed", jsonName: "ExecutionflowETAComputed", T: () => ETA, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationSkip": true } } ]); } create(value?: PartialMessage): ExecutionflowPayload { const message = globalThis.Object.create((this.messagePrototype!)); message.OrderID = ""; message.MetaData = []; message.CarrierService = ""; message.Lines = []; message.Handlingunits = []; message.ShipFromAcked = false; message.ShipToAcked = false; message.Attachments = []; message.AttachmentNumber = 0; message.Claims = []; message.ClaimNumber = 0; message.HandlingunitETAs = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionflowPayload): ExecutionflowPayload { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.DateTime CreationDateTime */ 1: message.CreationDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.CreationDateTime); break; case /* string OrderID */ 2: message.OrderID = reader.string(); break; case /* repeated api.MetadataElement MetaData */ 3: message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.TradeTier ShipFrom */ 4: message.ShipFrom = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipFrom); break; case /* api.TradeTier ShipTo */ 5: message.ShipTo = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.ShipTo); break; case /* api.TradeTier Carrier */ 6: message.Carrier = TradeTier.internalBinaryRead(reader, reader.uint32(), options, message.Carrier); break; case /* string CarrierService */ 7: message.CarrierService = reader.string(); break; case /* api.OrderRequestedMilestones RequestedMilestones */ 8: message.RequestedMilestones = OrderRequestedMilestones.internalBinaryRead(reader, reader.uint32(), options, message.RequestedMilestones); break; case /* repeated api.ExeFlowLine Lines */ 9: message.Lines.push(ExeFlowLine.internalBinaryRead(reader, reader.uint32(), options)); break; case /* repeated api.HandlingunitSummary Handlingunits */ 11: message.Handlingunits.push(HandlingunitSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.ExecutionflowStatusStruct Status */ 13: message.Status = ExecutionflowStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status); break; case /* bool ShipFromAcked */ 14: message.ShipFromAcked = reader.bool(); break; case /* bool ShipToAcked */ 15: message.ShipToAcked = reader.bool(); break; case /* repeated api.AttachmentSummary Attachments */ 16: message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* int32 AttachmentNumber */ 17: message.AttachmentNumber = reader.int32(); break; case /* repeated api.ClaimSummary Claims */ 18: message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options)); break; case /* int32 ClaimNumber */ 19: message.ClaimNumber = reader.int32(); break; case /* repeated api.ETAbyHU HandlingunitETAs */ 20: message.HandlingunitETAs.push(ETAbyHU.internalBinaryRead(reader, reader.uint32(), options)); break; case /* api.ETA ExecutionflowETA */ 21: message.ExecutionflowETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.ExecutionflowETA); break; case /* api.ETA ExecutionflowETAComputed */ 22: message.ExecutionflowETAComputed = ETA.internalBinaryRead(reader, reader.uint32(), options, message.ExecutionflowETAComputed); 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: ExecutionflowPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.DateTime CreationDateTime = 1; */ if (message.CreationDateTime) DateTime.internalBinaryWrite(message.CreationDateTime, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* string OrderID = 2; */ if (message.OrderID !== "") writer.tag(2, WireType.LengthDelimited).string(message.OrderID); /* repeated api.MetadataElement MetaData = 3; */ for (let i = 0; i < message.MetaData.length; i++) MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join(); /* api.TradeTier ShipFrom = 4; */ if (message.ShipFrom) TradeTier.internalBinaryWrite(message.ShipFrom, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* api.TradeTier ShipTo = 5; */ if (message.ShipTo) TradeTier.internalBinaryWrite(message.ShipTo, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); /* api.TradeTier Carrier = 6; */ if (message.Carrier) TradeTier.internalBinaryWrite(message.Carrier, writer.tag(6, WireType.LengthDelimited).fork(), options).join(); /* string CarrierService = 7; */ if (message.CarrierService !== "") writer.tag(7, WireType.LengthDelimited).string(message.CarrierService); /* api.OrderRequestedMilestones RequestedMilestones = 8; */ if (message.RequestedMilestones) OrderRequestedMilestones.internalBinaryWrite(message.RequestedMilestones, writer.tag(8, WireType.LengthDelimited).fork(), options).join(); /* repeated api.ExeFlowLine Lines = 9; */ for (let i = 0; i < message.Lines.length; i++) ExeFlowLine.internalBinaryWrite(message.Lines[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join(); /* repeated api.HandlingunitSummary Handlingunits = 11; */ for (let i = 0; i < message.Handlingunits.length; i++) HandlingunitSummary.internalBinaryWrite(message.Handlingunits[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join(); /* api.ExecutionflowStatusStruct Status = 13; */ if (message.Status) ExecutionflowStatusStruct.internalBinaryWrite(message.Status, writer.tag(13, WireType.LengthDelimited).fork(), options).join(); /* bool ShipFromAcked = 14; */ if (message.ShipFromAcked !== false) writer.tag(14, WireType.Varint).bool(message.ShipFromAcked); /* bool ShipToAcked = 15; */ if (message.ShipToAcked !== false) writer.tag(15, WireType.Varint).bool(message.ShipToAcked); /* repeated api.AttachmentSummary Attachments = 16; */ for (let i = 0; i < message.Attachments.length; i++) AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join(); /* int32 AttachmentNumber = 17; */ if (message.AttachmentNumber !== 0) writer.tag(17, WireType.Varint).int32(message.AttachmentNumber); /* repeated api.ClaimSummary Claims = 18; */ for (let i = 0; i < message.Claims.length; i++) ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(18, WireType.LengthDelimited).fork(), options).join(); /* int32 ClaimNumber = 19; */ if (message.ClaimNumber !== 0) writer.tag(19, WireType.Varint).int32(message.ClaimNumber); /* repeated api.ETAbyHU HandlingunitETAs = 20; */ for (let i = 0; i < message.HandlingunitETAs.length; i++) ETAbyHU.internalBinaryWrite(message.HandlingunitETAs[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join(); /* api.ETA ExecutionflowETA = 21; */ if (message.ExecutionflowETA) ETA.internalBinaryWrite(message.ExecutionflowETA, writer.tag(21, WireType.LengthDelimited).fork(), options).join(); /* api.ETA ExecutionflowETAComputed = 22; */ if (message.ExecutionflowETAComputed) ETA.internalBinaryWrite(message.ExecutionflowETAComputed, writer.tag(22, 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.ExecutionflowPayload */ export const ExecutionflowPayload = new ExecutionflowPayload$Type(); // @generated message type with reflection information, may provide speed optimized methods class Executionflow$Type extends MessageType { constructor() { super("api.Executionflow", [ { no: 1, name: "LastEventHeader", kind: "message", localName: "LastEventHeader", jsonName: "LastEventHeader", T: () => EventHeader }, { no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }, { no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => ExecutionflowPayload } ]); } create(value?: PartialMessage): Executionflow { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Executionflow): Executionflow { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.EventHeader LastEventHeader */ 1: message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader); break; case /* api.EntityID ID */ 2: message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID); break; case /* api.ExecutionflowPayload Payload */ 3: message.Payload = ExecutionflowPayload.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: Executionflow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.EventHeader LastEventHeader = 1; */ if (message.LastEventHeader) EventHeader.internalBinaryWrite(message.LastEventHeader, 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.ExecutionflowPayload Payload = 3; */ if (message.Payload) ExecutionflowPayload.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.Executionflow */ export const Executionflow = new Executionflow$Type(); // @generated message type with reflection information, may provide speed optimized methods class ExecutionflowEnrichment$Type extends MessageType { constructor() { super("api.ExecutionflowEnrichment", [ { no: 1, name: "ParentEventID", kind: "scalar", localName: "ParentEventID", jsonName: "ParentEventID", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "EntityName", kind: "scalar", localName: "EntityName", jsonName: "EntityName", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "EntityRefID", kind: "scalar", localName: "EntityRefID", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "RefFilter", kind: "scalar", localName: "RefFilter", jsonName: "RefFilter", T: 9 /*ScalarType.STRING*/ }, { no: 5, name: "MergePath", kind: "scalar", localName: "MergePath", jsonName: "MergePath", T: 9 /*ScalarType.STRING*/ }, { no: 10, name: "Item", kind: "message", localName: "Item", jsonName: "Item", oneof: "Content", T: () => ItemPayload }, { no: 11, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", oneof: "Content", T: () => ActorPayload }, { no: 12, name: "Partner", kind: "message", localName: "Partner", jsonName: "Partner", oneof: "Content", T: () => PartnerPayload }, { no: 6, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ }, { no: 7, name: "ParentEntityName", kind: "scalar", localName: "ParentEntityName", jsonName: "ParentEntityName", T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ParentEntityID", kind: "scalar", localName: "ParentEntityID", jsonName: "ParentEntityID", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): ExecutionflowEnrichment { const message = globalThis.Object.create((this.messagePrototype!)); message.ParentEventID = ""; message.EntityName = ""; message.EntityRefID = ""; message.RefFilter = ""; message.MergePath = ""; message.Content = { oneofKind: undefined }; message.Project = ""; message.ParentEntityName = ""; message.ParentEntityID = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionflowEnrichment): ExecutionflowEnrichment { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* string ParentEventID */ 1: message.ParentEventID = reader.string(); break; case /* string EntityName */ 2: message.EntityName = reader.string(); break; case /* string EntityRefID */ 3: message.EntityRefID = reader.string(); break; case /* string RefFilter */ 4: message.RefFilter = reader.string(); break; case /* string MergePath */ 5: message.MergePath = reader.string(); break; case /* api.ItemPayload Item */ 10: message.Content = { oneofKind: "Item", Item: ItemPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Item) }; break; case /* api.ActorPayload Actor */ 11: message.Content = { oneofKind: "Actor", Actor: ActorPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Actor) }; break; case /* api.PartnerPayload Partner */ 12: message.Content = { oneofKind: "Partner", Partner: PartnerPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Partner) }; break; case /* string Project */ 6: message.Project = reader.string(); break; case /* string ParentEntityName */ 7: message.ParentEntityName = reader.string(); break; case /* string ParentEntityID */ 8: message.ParentEntityID = 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: ExecutionflowEnrichment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* string ParentEventID = 1; */ if (message.ParentEventID !== "") writer.tag(1, WireType.LengthDelimited).string(message.ParentEventID); /* string EntityName = 2; */ if (message.EntityName !== "") writer.tag(2, WireType.LengthDelimited).string(message.EntityName); /* string EntityRefID = 3; */ if (message.EntityRefID !== "") writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID); /* string RefFilter = 4; */ if (message.RefFilter !== "") writer.tag(4, WireType.LengthDelimited).string(message.RefFilter); /* string MergePath = 5; */ if (message.MergePath !== "") writer.tag(5, WireType.LengthDelimited).string(message.MergePath); /* string Project = 6; */ if (message.Project !== "") writer.tag(6, WireType.LengthDelimited).string(message.Project); /* string ParentEntityName = 7; */ if (message.ParentEntityName !== "") writer.tag(7, WireType.LengthDelimited).string(message.ParentEntityName); /* string ParentEntityID = 8; */ if (message.ParentEntityID !== "") writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID); /* api.ItemPayload Item = 10; */ if (message.Content.oneofKind === "Item") ItemPayload.internalBinaryWrite(message.Content.Item, writer.tag(10, WireType.LengthDelimited).fork(), options).join(); /* api.ActorPayload Actor = 11; */ if (message.Content.oneofKind === "Actor") ActorPayload.internalBinaryWrite(message.Content.Actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join(); /* api.PartnerPayload Partner = 12; */ if (message.Content.oneofKind === "Partner") PartnerPayload.internalBinaryWrite(message.Content.Partner, writer.tag(12, 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.ExecutionflowEnrichment */ export const ExecutionflowEnrichment = new ExecutionflowEnrichment$Type(); // @generated message type with reflection information, may provide speed optimized methods class ExecutionflowTriplet$Type extends MessageType { constructor() { super("api.ExecutionflowTriplet", [ { no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Executionflow }, { no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Executionflow }, { no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Executionflow } ]); } create(value?: PartialMessage): ExecutionflowTriplet { const message = globalThis.Object.create((this.messagePrototype!)); if (value !== undefined) reflectionMergePartial(this, message, value); return message; } internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionflowTriplet): ExecutionflowTriplet { let message = target ?? this.create(), end = reader.pos + length; while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { case /* api.Executionflow Current */ 1: message.Current = Executionflow.internalBinaryRead(reader, reader.uint32(), options, message.Current); break; case /* api.Executionflow Previous */ 2: message.Previous = Executionflow.internalBinaryRead(reader, reader.uint32(), options, message.Previous); break; case /* api.Executionflow LastEvent */ 3: message.LastEvent = Executionflow.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent); 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: ExecutionflowTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { /* api.Executionflow Current = 1; */ if (message.Current) Executionflow.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* api.Executionflow Previous = 2; */ if (message.Previous) Executionflow.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); /* api.Executionflow LastEvent = 3; */ if (message.LastEvent) Executionflow.internalBinaryWrite(message.LastEvent, 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.ExecutionflowTriplet */ export const ExecutionflowTriplet = new ExecutionflowTriplet$Type();