You've already forked npm-core-sdk
Latest generation
This commit is contained in:
200
handlingunit.ts
200
handlingunit.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.10.0 with parameter use_proto_field_name
|
||||
// @generated by protobuf-ts 2.11.0 with parameter use_proto_field_name
|
||||
// @generated from protobuf file "handlingunit.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -51,77 +51,77 @@ import { HandlingunitInformation } from "./warehousingShared";
|
||||
*/
|
||||
export interface HandlingunitPayload {
|
||||
/**
|
||||
* @generated from protobuf field: api.HandlingunitInformation Information = 1 [json_name = "Information"];
|
||||
* @generated from protobuf field: api.HandlingunitInformation Information = 1
|
||||
*/
|
||||
Information?: HandlingunitInformation;
|
||||
/**
|
||||
* @generated from protobuf field: bool ContainsGoods = 2 [json_name = "ContainsGoods"];
|
||||
* @generated from protobuf field: bool ContainsGoods = 2
|
||||
*/
|
||||
ContainsGoods: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: bool ContainsHUs = 3 [json_name = "ContainsHUs"];
|
||||
* @generated from protobuf field: bool ContainsHUs = 3
|
||||
*/
|
||||
ContainsHUs: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string IncludedHandlingunitIDs = 4 [json_name = "IncludedHandlingunitIDs"];
|
||||
* @generated from protobuf field: repeated string IncludedHandlingunitIDs = 4
|
||||
*/
|
||||
IncludedHandlingunitIDs: string[];
|
||||
/**
|
||||
* @generated from protobuf field: api.TrackingSummary CurrentTrackingSummary = 5 [json_name = "CurrentTrackingSummary"];
|
||||
* @generated from protobuf field: api.TrackingSummary CurrentTrackingSummary = 5
|
||||
*/
|
||||
CurrentTrackingSummary?: TrackingSummary;
|
||||
/**
|
||||
* 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 = 6 [json_name = "MetaData"];
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 6
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
/**
|
||||
* @generated from protobuf field: api.HandlingunitStatusStruct Status = 7 [json_name = "Status"];
|
||||
* @generated from protobuf field: api.HandlingunitStatusStruct Status = 7
|
||||
*/
|
||||
Status?: HandlingunitStatusStruct; // Status field is not accessible from APIs
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantifiedGoodsByExeflow PreparedContents = 8 [json_name = "PreparedContents"];
|
||||
* @generated from protobuf field: repeated api.QuantifiedGoodsByExeflow PreparedContents = 8
|
||||
*/
|
||||
PreparedContents: QuantifiedGoodsByExeflow[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents = 9 [json_name = "ReceivedContents"];
|
||||
* @generated from protobuf field: repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents = 9
|
||||
*/
|
||||
ReceivedContents: QuantifiedDatedGoodsByExeflow[];
|
||||
/**
|
||||
* @generated from protobuf field: api.DateTime DispatchedDateTime = 10 [json_name = "DispatchedDateTime"];
|
||||
* @generated from protobuf field: api.DateTime DispatchedDateTime = 10
|
||||
*/
|
||||
DispatchedDateTime?: DateTime;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string TrackingIDs = 11 [json_name = "TrackingIDs"];
|
||||
* @generated from protobuf field: repeated string TrackingIDs = 11
|
||||
*/
|
||||
TrackingIDs: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 12 [json_name = "Attachments"];
|
||||
* @generated from protobuf field: repeated api.AttachmentSummary Attachments = 12
|
||||
*/
|
||||
Attachments: AttachmentSummary[];
|
||||
/**
|
||||
* @generated from protobuf field: int32 AttachmentNumber = 13 [json_name = "AttachmentNumber"];
|
||||
* @generated from protobuf field: int32 AttachmentNumber = 13
|
||||
*/
|
||||
AttachmentNumber: number;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.ClaimSummary Claims = 14 [json_name = "Claims"];
|
||||
* @generated from protobuf field: repeated api.ClaimSummary Claims = 14
|
||||
*/
|
||||
Claims: ClaimSummary[];
|
||||
/**
|
||||
* @generated from protobuf field: int32 ClaimNumber = 15 [json_name = "ClaimNumber"];
|
||||
* @generated from protobuf field: int32 ClaimNumber = 15
|
||||
*/
|
||||
ClaimNumber: number;
|
||||
/**
|
||||
* @generated from protobuf field: api.ETA HandlingunitETA = 16 [json_name = "HandlingunitETA"];
|
||||
* @generated from protobuf field: api.ETA HandlingunitETA = 16
|
||||
*/
|
||||
HandlingunitETA?: ETA;
|
||||
/**
|
||||
* @generated from protobuf field: api.ETA TrackingETA = 17 [json_name = "TrackingETA"];
|
||||
* @generated from protobuf field: api.ETA TrackingETA = 17
|
||||
*/
|
||||
TrackingETA?: ETA;
|
||||
/**
|
||||
* @generated from protobuf field: string ParentHU = 18 [json_name = "ParentHU"];
|
||||
* @generated from protobuf field: string ParentHU = 18
|
||||
*/
|
||||
ParentHU: string;
|
||||
}
|
||||
@@ -133,15 +133,15 @@ export interface HandlingunitPayload {
|
||||
*/
|
||||
export interface Handlingunit {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
|
||||
* @generated from protobuf field: api.EventHeader LastEventHeader = 1
|
||||
*/
|
||||
LastEventHeader?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.HandlingunitPayload Payload = 3 [json_name = "Payload"];
|
||||
* @generated from protobuf field: api.HandlingunitPayload Payload = 3
|
||||
*/
|
||||
Payload?: HandlingunitPayload;
|
||||
}
|
||||
@@ -152,23 +152,23 @@ export interface Handlingunit {
|
||||
*/
|
||||
export interface HandlingunitEnrichment {
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEventID = 1 [json_name = "ParentEventID"];
|
||||
* @generated from protobuf field: string ParentEventID = 1
|
||||
*/
|
||||
ParentEventID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityName = 2 [json_name = "EntityName"];
|
||||
* @generated from protobuf field: string EntityName = 2
|
||||
*/
|
||||
EntityName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
|
||||
* @generated from protobuf field: string EntityRefID = 3
|
||||
*/
|
||||
EntityRefID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string RefFilter = 4 [json_name = "RefFilter"];
|
||||
* @generated from protobuf field: string RefFilter = 4
|
||||
*/
|
||||
RefFilter: string;
|
||||
/**
|
||||
* @generated from protobuf field: string MergePath = 5 [json_name = "MergePath"];
|
||||
* @generated from protobuf field: string MergePath = 5
|
||||
*/
|
||||
MergePath: string;
|
||||
/**
|
||||
@@ -177,22 +177,22 @@ export interface HandlingunitEnrichment {
|
||||
Content: {
|
||||
oneofKind: "Item";
|
||||
/**
|
||||
* @generated from protobuf field: api.ItemPayload Item = 10 [json_name = "Item"];
|
||||
* @generated from protobuf field: api.ItemPayload Item = 10
|
||||
*/
|
||||
Item: ItemPayload;
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
/**
|
||||
* @generated from protobuf field: string Project = 6 [json_name = "Project"];
|
||||
* @generated from protobuf field: string Project = 6
|
||||
*/
|
||||
Project: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEntityName = 7 [json_name = "ParentEntityName"];
|
||||
* @generated from protobuf field: string ParentEntityName = 7
|
||||
*/
|
||||
ParentEntityName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEntityID = 8 [json_name = "ParentEntityID"];
|
||||
* @generated from protobuf field: string ParentEntityID = 8
|
||||
*/
|
||||
ParentEntityID: string;
|
||||
}
|
||||
@@ -201,15 +201,15 @@ export interface HandlingunitEnrichment {
|
||||
*/
|
||||
export interface HandlingunitTriplet {
|
||||
/**
|
||||
* @generated from protobuf field: api.Handlingunit Current = 1 [json_name = "Current"];
|
||||
* @generated from protobuf field: api.Handlingunit Current = 1
|
||||
*/
|
||||
Current?: Handlingunit;
|
||||
/**
|
||||
* @generated from protobuf field: api.Handlingunit Previous = 2 [json_name = "Previous"];
|
||||
* @generated from protobuf field: api.Handlingunit Previous = 2
|
||||
*/
|
||||
Previous?: Handlingunit;
|
||||
/**
|
||||
* @generated from protobuf field: api.Handlingunit LastEvent = 3 [json_name = "LastEvent"];
|
||||
* @generated from protobuf field: api.Handlingunit LastEvent = 3
|
||||
*/
|
||||
LastEvent?: Handlingunit;
|
||||
}
|
||||
@@ -260,58 +260,58 @@ class HandlingunitPayload$Type extends MessageType<HandlingunitPayload> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.HandlingunitInformation Information = 1 [json_name = "Information"];*/ 1:
|
||||
case /* api.HandlingunitInformation Information */ 1:
|
||||
message.Information = HandlingunitInformation.internalBinaryRead(reader, reader.uint32(), options, message.Information);
|
||||
break;
|
||||
case /* bool ContainsGoods = 2 [json_name = "ContainsGoods"];*/ 2:
|
||||
case /* bool ContainsGoods */ 2:
|
||||
message.ContainsGoods = reader.bool();
|
||||
break;
|
||||
case /* bool ContainsHUs = 3 [json_name = "ContainsHUs"];*/ 3:
|
||||
case /* bool ContainsHUs */ 3:
|
||||
message.ContainsHUs = reader.bool();
|
||||
break;
|
||||
case /* repeated string IncludedHandlingunitIDs = 4 [json_name = "IncludedHandlingunitIDs"];*/ 4:
|
||||
case /* repeated string IncludedHandlingunitIDs */ 4:
|
||||
message.IncludedHandlingunitIDs.push(reader.string());
|
||||
break;
|
||||
case /* api.TrackingSummary CurrentTrackingSummary = 5 [json_name = "CurrentTrackingSummary"];*/ 5:
|
||||
case /* api.TrackingSummary CurrentTrackingSummary */ 5:
|
||||
message.CurrentTrackingSummary = TrackingSummary.internalBinaryRead(reader, reader.uint32(), options, message.CurrentTrackingSummary);
|
||||
break;
|
||||
case /* repeated api.MetadataElement MetaData = 6 [json_name = "MetaData"];*/ 6:
|
||||
case /* repeated api.MetadataElement MetaData */ 6:
|
||||
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.HandlingunitStatusStruct Status = 7 [json_name = "Status"];*/ 7:
|
||||
case /* api.HandlingunitStatusStruct Status */ 7:
|
||||
message.Status = HandlingunitStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||
break;
|
||||
case /* repeated api.QuantifiedGoodsByExeflow PreparedContents = 8 [json_name = "PreparedContents"];*/ 8:
|
||||
case /* repeated api.QuantifiedGoodsByExeflow PreparedContents */ 8:
|
||||
message.PreparedContents.push(QuantifiedGoodsByExeflow.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents = 9 [json_name = "ReceivedContents"];*/ 9:
|
||||
case /* repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents */ 9:
|
||||
message.ReceivedContents.push(QuantifiedDatedGoodsByExeflow.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.DateTime DispatchedDateTime = 10 [json_name = "DispatchedDateTime"];*/ 10:
|
||||
case /* api.DateTime DispatchedDateTime */ 10:
|
||||
message.DispatchedDateTime = DateTime.internalBinaryRead(reader, reader.uint32(), options, message.DispatchedDateTime);
|
||||
break;
|
||||
case /* repeated string TrackingIDs = 11 [json_name = "TrackingIDs"];*/ 11:
|
||||
case /* repeated string TrackingIDs */ 11:
|
||||
message.TrackingIDs.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.AttachmentSummary Attachments = 12 [json_name = "Attachments"];*/ 12:
|
||||
case /* repeated api.AttachmentSummary Attachments */ 12:
|
||||
message.Attachments.push(AttachmentSummary.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int32 AttachmentNumber = 13 [json_name = "AttachmentNumber"];*/ 13:
|
||||
case /* int32 AttachmentNumber */ 13:
|
||||
message.AttachmentNumber = reader.int32();
|
||||
break;
|
||||
case /* repeated api.ClaimSummary Claims = 14 [json_name = "Claims"];*/ 14:
|
||||
case /* repeated api.ClaimSummary Claims */ 14:
|
||||
message.Claims.push(ClaimSummary.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* int32 ClaimNumber = 15 [json_name = "ClaimNumber"];*/ 15:
|
||||
case /* int32 ClaimNumber */ 15:
|
||||
message.ClaimNumber = reader.int32();
|
||||
break;
|
||||
case /* api.ETA HandlingunitETA = 16 [json_name = "HandlingunitETA"];*/ 16:
|
||||
case /* api.ETA HandlingunitETA */ 16:
|
||||
message.HandlingunitETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.HandlingunitETA);
|
||||
break;
|
||||
case /* api.ETA TrackingETA = 17 [json_name = "TrackingETA"];*/ 17:
|
||||
case /* api.ETA TrackingETA */ 17:
|
||||
message.TrackingETA = ETA.internalBinaryRead(reader, reader.uint32(), options, message.TrackingETA);
|
||||
break;
|
||||
case /* string ParentHU = 18 [json_name = "ParentHU"];*/ 18:
|
||||
case /* string ParentHU */ 18:
|
||||
message.ParentHU = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -326,58 +326,58 @@ class HandlingunitPayload$Type extends MessageType<HandlingunitPayload> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: HandlingunitPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.HandlingunitInformation Information = 1 [json_name = "Information"]; */
|
||||
/* api.HandlingunitInformation Information = 1; */
|
||||
if (message.Information)
|
||||
HandlingunitInformation.internalBinaryWrite(message.Information, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* bool ContainsGoods = 2 [json_name = "ContainsGoods"]; */
|
||||
/* bool ContainsGoods = 2; */
|
||||
if (message.ContainsGoods !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.ContainsGoods);
|
||||
/* bool ContainsHUs = 3 [json_name = "ContainsHUs"]; */
|
||||
/* bool ContainsHUs = 3; */
|
||||
if (message.ContainsHUs !== false)
|
||||
writer.tag(3, WireType.Varint).bool(message.ContainsHUs);
|
||||
/* repeated string IncludedHandlingunitIDs = 4 [json_name = "IncludedHandlingunitIDs"]; */
|
||||
/* repeated string IncludedHandlingunitIDs = 4; */
|
||||
for (let i = 0; i < message.IncludedHandlingunitIDs.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.IncludedHandlingunitIDs[i]);
|
||||
/* api.TrackingSummary CurrentTrackingSummary = 5 [json_name = "CurrentTrackingSummary"]; */
|
||||
/* api.TrackingSummary CurrentTrackingSummary = 5; */
|
||||
if (message.CurrentTrackingSummary)
|
||||
TrackingSummary.internalBinaryWrite(message.CurrentTrackingSummary, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadataElement MetaData = 6 [json_name = "MetaData"]; */
|
||||
/* repeated api.MetadataElement MetaData = 6; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.HandlingunitStatusStruct Status = 7 [json_name = "Status"]; */
|
||||
/* api.HandlingunitStatusStruct Status = 7; */
|
||||
if (message.Status)
|
||||
HandlingunitStatusStruct.internalBinaryWrite(message.Status, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantifiedGoodsByExeflow PreparedContents = 8 [json_name = "PreparedContents"]; */
|
||||
/* repeated api.QuantifiedGoodsByExeflow PreparedContents = 8; */
|
||||
for (let i = 0; i < message.PreparedContents.length; i++)
|
||||
QuantifiedGoodsByExeflow.internalBinaryWrite(message.PreparedContents[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents = 9 [json_name = "ReceivedContents"]; */
|
||||
/* repeated api.QuantifiedDatedGoodsByExeflow ReceivedContents = 9; */
|
||||
for (let i = 0; i < message.ReceivedContents.length; i++)
|
||||
QuantifiedDatedGoodsByExeflow.internalBinaryWrite(message.ReceivedContents[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.DateTime DispatchedDateTime = 10 [json_name = "DispatchedDateTime"]; */
|
||||
/* api.DateTime DispatchedDateTime = 10; */
|
||||
if (message.DispatchedDateTime)
|
||||
DateTime.internalBinaryWrite(message.DispatchedDateTime, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string TrackingIDs = 11 [json_name = "TrackingIDs"]; */
|
||||
/* repeated string TrackingIDs = 11; */
|
||||
for (let i = 0; i < message.TrackingIDs.length; i++)
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.TrackingIDs[i]);
|
||||
/* repeated api.AttachmentSummary Attachments = 12 [json_name = "Attachments"]; */
|
||||
/* repeated api.AttachmentSummary Attachments = 12; */
|
||||
for (let i = 0; i < message.Attachments.length; i++)
|
||||
AttachmentSummary.internalBinaryWrite(message.Attachments[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int32 AttachmentNumber = 13 [json_name = "AttachmentNumber"]; */
|
||||
/* int32 AttachmentNumber = 13; */
|
||||
if (message.AttachmentNumber !== 0)
|
||||
writer.tag(13, WireType.Varint).int32(message.AttachmentNumber);
|
||||
/* repeated api.ClaimSummary Claims = 14 [json_name = "Claims"]; */
|
||||
/* repeated api.ClaimSummary Claims = 14; */
|
||||
for (let i = 0; i < message.Claims.length; i++)
|
||||
ClaimSummary.internalBinaryWrite(message.Claims[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
/* int32 ClaimNumber = 15 [json_name = "ClaimNumber"]; */
|
||||
/* int32 ClaimNumber = 15; */
|
||||
if (message.ClaimNumber !== 0)
|
||||
writer.tag(15, WireType.Varint).int32(message.ClaimNumber);
|
||||
/* api.ETA HandlingunitETA = 16 [json_name = "HandlingunitETA"]; */
|
||||
/* api.ETA HandlingunitETA = 16; */
|
||||
if (message.HandlingunitETA)
|
||||
ETA.internalBinaryWrite(message.HandlingunitETA, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ETA TrackingETA = 17 [json_name = "TrackingETA"]; */
|
||||
/* api.ETA TrackingETA = 17; */
|
||||
if (message.TrackingETA)
|
||||
ETA.internalBinaryWrite(message.TrackingETA, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ParentHU = 18 [json_name = "ParentHU"]; */
|
||||
/* string ParentHU = 18; */
|
||||
if (message.ParentHU !== "")
|
||||
writer.tag(18, WireType.LengthDelimited).string(message.ParentHU);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -410,13 +410,13 @@ class Handlingunit$Type extends MessageType<Handlingunit> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1:
|
||||
case /* api.EventHeader LastEventHeader */ 1:
|
||||
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
|
||||
break;
|
||||
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.HandlingunitPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
case /* api.HandlingunitPayload Payload */ 3:
|
||||
message.Payload = HandlingunitPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
@@ -431,13 +431,13 @@ class Handlingunit$Type extends MessageType<Handlingunit> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Handlingunit, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */
|
||||
/* api.EventHeader LastEventHeader = 1; */
|
||||
if (message.LastEventHeader)
|
||||
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.HandlingunitPayload Payload = 3 [json_name = "Payload"]; */
|
||||
/* api.HandlingunitPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
HandlingunitPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -485,34 +485,34 @@ class HandlingunitEnrichment$Type extends MessageType<HandlingunitEnrichment> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ParentEventID = 1 [json_name = "ParentEventID"];*/ 1:
|
||||
case /* string ParentEventID */ 1:
|
||||
message.ParentEventID = reader.string();
|
||||
break;
|
||||
case /* string EntityName = 2 [json_name = "EntityName"];*/ 2:
|
||||
case /* string EntityName */ 2:
|
||||
message.EntityName = reader.string();
|
||||
break;
|
||||
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
|
||||
case /* string EntityRefID */ 3:
|
||||
message.EntityRefID = reader.string();
|
||||
break;
|
||||
case /* string RefFilter = 4 [json_name = "RefFilter"];*/ 4:
|
||||
case /* string RefFilter */ 4:
|
||||
message.RefFilter = reader.string();
|
||||
break;
|
||||
case /* string MergePath = 5 [json_name = "MergePath"];*/ 5:
|
||||
case /* string MergePath */ 5:
|
||||
message.MergePath = reader.string();
|
||||
break;
|
||||
case /* api.ItemPayload Item = 10 [json_name = "Item"];*/ 10:
|
||||
case /* api.ItemPayload Item */ 10:
|
||||
message.Content = {
|
||||
oneofKind: "Item",
|
||||
Item: ItemPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Item)
|
||||
};
|
||||
break;
|
||||
case /* string Project = 6 [json_name = "Project"];*/ 6:
|
||||
case /* string Project */ 6:
|
||||
message.Project = reader.string();
|
||||
break;
|
||||
case /* string ParentEntityName = 7 [json_name = "ParentEntityName"];*/ 7:
|
||||
case /* string ParentEntityName */ 7:
|
||||
message.ParentEntityName = reader.string();
|
||||
break;
|
||||
case /* string ParentEntityID = 8 [json_name = "ParentEntityID"];*/ 8:
|
||||
case /* string ParentEntityID */ 8:
|
||||
message.ParentEntityID = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -527,31 +527,31 @@ class HandlingunitEnrichment$Type extends MessageType<HandlingunitEnrichment> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: HandlingunitEnrichment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ParentEventID = 1 [json_name = "ParentEventID"]; */
|
||||
/* string ParentEventID = 1; */
|
||||
if (message.ParentEventID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ParentEventID);
|
||||
/* string EntityName = 2 [json_name = "EntityName"]; */
|
||||
/* string EntityName = 2; */
|
||||
if (message.EntityName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.EntityName);
|
||||
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
|
||||
/* string EntityRefID = 3; */
|
||||
if (message.EntityRefID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
|
||||
/* string RefFilter = 4 [json_name = "RefFilter"]; */
|
||||
/* string RefFilter = 4; */
|
||||
if (message.RefFilter !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RefFilter);
|
||||
/* string MergePath = 5 [json_name = "MergePath"]; */
|
||||
/* string MergePath = 5; */
|
||||
if (message.MergePath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.MergePath);
|
||||
/* string Project = 6 [json_name = "Project"]; */
|
||||
/* string Project = 6; */
|
||||
if (message.Project !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Project);
|
||||
/* string ParentEntityName = 7 [json_name = "ParentEntityName"]; */
|
||||
/* string ParentEntityName = 7; */
|
||||
if (message.ParentEntityName !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.ParentEntityName);
|
||||
/* string ParentEntityID = 8 [json_name = "ParentEntityID"]; */
|
||||
/* string ParentEntityID = 8; */
|
||||
if (message.ParentEntityID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID);
|
||||
/* api.ItemPayload Item = 10 [json_name = "Item"]; */
|
||||
/* api.ItemPayload Item = 10; */
|
||||
if (message.Content.oneofKind === "Item")
|
||||
ItemPayload.internalBinaryWrite(message.Content.Item, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -584,13 +584,13 @@ class HandlingunitTriplet$Type extends MessageType<HandlingunitTriplet> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Handlingunit Current = 1 [json_name = "Current"];*/ 1:
|
||||
case /* api.Handlingunit Current */ 1:
|
||||
message.Current = Handlingunit.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* api.Handlingunit Previous = 2 [json_name = "Previous"];*/ 2:
|
||||
case /* api.Handlingunit Previous */ 2:
|
||||
message.Previous = Handlingunit.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
|
||||
break;
|
||||
case /* api.Handlingunit LastEvent = 3 [json_name = "LastEvent"];*/ 3:
|
||||
case /* api.Handlingunit LastEvent */ 3:
|
||||
message.LastEvent = Handlingunit.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
|
||||
break;
|
||||
default:
|
||||
@@ -605,13 +605,13 @@ class HandlingunitTriplet$Type extends MessageType<HandlingunitTriplet> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: HandlingunitTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Handlingunit Current = 1 [json_name = "Current"]; */
|
||||
/* api.Handlingunit Current = 1; */
|
||||
if (message.Current)
|
||||
Handlingunit.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Handlingunit Previous = 2 [json_name = "Previous"]; */
|
||||
/* api.Handlingunit Previous = 2; */
|
||||
if (message.Previous)
|
||||
Handlingunit.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Handlingunit LastEvent = 3 [json_name = "LastEvent"]; */
|
||||
/* api.Handlingunit LastEvent = 3; */
|
||||
if (message.LastEvent)
|
||||
Handlingunit.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user