You've already forked npm-core-sdk
Latest generation
This commit is contained in:
188
stock.ts
188
stock.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 "stock.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
@@ -40,73 +40,73 @@ import { EnrichedGoods } from "./warehousingShared";
|
||||
*/
|
||||
export interface StockPayload {
|
||||
/**
|
||||
* @generated from protobuf field: api.EnrichedGoods Goods = 1 [json_name = "Goods"];
|
||||
* @generated from protobuf field: api.EnrichedGoods Goods = 1
|
||||
*/
|
||||
Goods?: EnrichedGoods;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2 [json_name = "ActorID"];
|
||||
* @generated from protobuf field: string ActorID = 2
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 3 [json_name = "Actor"];
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 3
|
||||
*/
|
||||
Actor?: ActorPayload;
|
||||
/**
|
||||
* @generated from protobuf field: api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"];
|
||||
* @generated from protobuf field: api.StockSnapshot Snapshot = 4
|
||||
*/
|
||||
Snapshot?: StockSnapshot; // this struct is managed into preAgg cumulateSnapshotQuantity method
|
||||
/**
|
||||
* @generated from protobuf field: api.StockMovement Movement = 5 [json_name = "Movement"];
|
||||
* @generated from protobuf field: api.StockMovement Movement = 5
|
||||
*/
|
||||
Movement?: StockMovement;
|
||||
/**
|
||||
* @generated from protobuf field: api.StockStatusStruct Status = 6 [json_name = "Status"];
|
||||
* @generated from protobuf field: api.StockStatusStruct Status = 6
|
||||
*/
|
||||
Status?: StockStatusStruct; // Status field is not accessible from APIs
|
||||
/**
|
||||
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"];
|
||||
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 7
|
||||
*/
|
||||
QuantityInBaseLV?: QuantityInLV;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"];
|
||||
* @generated from protobuf field: repeated api.QuantityByLV QuantityByLVs = 8
|
||||
*/
|
||||
QuantityByLVs: QuantityByLV[];
|
||||
/**
|
||||
* @generated from protobuf field: string LVDetailledQuantity = 9 [json_name = "LVDetailledQuantity"];
|
||||
* @generated from protobuf field: string LVDetailledQuantity = 9
|
||||
*/
|
||||
LVDetailledQuantity: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"];
|
||||
* @generated from protobuf field: repeated api.StockMovement LatestMovements = 10
|
||||
*/
|
||||
LatestMovements: StockMovement[];
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: double RequestedStockValue = 11 [json_name = "RequestedStockValue"];
|
||||
* @generated from protobuf field: double RequestedStockValue = 11
|
||||
*/
|
||||
RequestedStockValue: number;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"];
|
||||
* @generated from protobuf field: double ToReceiveStockValue = 12
|
||||
*/
|
||||
ToReceiveStockValue: number;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"];
|
||||
* @generated from protobuf field: string LastUpdateStockDateTime = 13
|
||||
*/
|
||||
LastUpdateStockDateTime: string;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"];
|
||||
* @generated from protobuf field: string LastUpdateRequestedDateTime = 14
|
||||
*/
|
||||
LastUpdateRequestedDateTime: string;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"];
|
||||
* @generated from protobuf field: string LastUpdateToReceiveDateTime = 15
|
||||
*/
|
||||
LastUpdateToReceiveDateTime: string;
|
||||
}
|
||||
@@ -118,15 +118,15 @@ export interface StockPayload {
|
||||
*/
|
||||
export interface Stock {
|
||||
/**
|
||||
* @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.StockPayload Payload = 3 [json_name = "Payload"];
|
||||
* @generated from protobuf field: api.StockPayload Payload = 3
|
||||
*/
|
||||
Payload?: StockPayload;
|
||||
}
|
||||
@@ -135,23 +135,23 @@ export interface Stock {
|
||||
*/
|
||||
export interface StockEnrichment {
|
||||
/**
|
||||
* @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;
|
||||
/**
|
||||
@@ -160,28 +160,28 @@ export interface StockEnrichment {
|
||||
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: "Actor";
|
||||
/**
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 11 [json_name = "Actor"];
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 11
|
||||
*/
|
||||
Actor: ActorPayload;
|
||||
} | {
|
||||
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;
|
||||
}
|
||||
@@ -190,15 +190,15 @@ export interface StockEnrichment {
|
||||
*/
|
||||
export interface StockTriplet {
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock Current = 1 [json_name = "Current"];
|
||||
* @generated from protobuf field: api.Stock Current = 1
|
||||
*/
|
||||
Current?: Stock;
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock Previous = 2 [json_name = "Previous"];
|
||||
* @generated from protobuf field: api.Stock Previous = 2
|
||||
*/
|
||||
Previous?: Stock;
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock LastEvent = 3 [json_name = "LastEvent"];
|
||||
* @generated from protobuf field: api.Stock LastEvent = 3
|
||||
*/
|
||||
LastEvent?: Stock;
|
||||
}
|
||||
@@ -243,49 +243,49 @@ class StockPayload$Type extends MessageType<StockPayload> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EnrichedGoods Goods = 1 [json_name = "Goods"];*/ 1:
|
||||
case /* api.EnrichedGoods Goods */ 1:
|
||||
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
|
||||
break;
|
||||
case /* string ActorID = 2 [json_name = "ActorID"];*/ 2:
|
||||
case /* string ActorID */ 2:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* api.ActorPayload Actor = 3 [json_name = "Actor"];*/ 3:
|
||||
case /* api.ActorPayload Actor */ 3:
|
||||
message.Actor = ActorPayload.internalBinaryRead(reader, reader.uint32(), options, message.Actor);
|
||||
break;
|
||||
case /* api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"];*/ 4:
|
||||
case /* api.StockSnapshot Snapshot */ 4:
|
||||
message.Snapshot = StockSnapshot.internalBinaryRead(reader, reader.uint32(), options, message.Snapshot);
|
||||
break;
|
||||
case /* api.StockMovement Movement = 5 [json_name = "Movement"];*/ 5:
|
||||
case /* api.StockMovement Movement */ 5:
|
||||
message.Movement = StockMovement.internalBinaryRead(reader, reader.uint32(), options, message.Movement);
|
||||
break;
|
||||
case /* api.StockStatusStruct Status = 6 [json_name = "Status"];*/ 6:
|
||||
case /* api.StockStatusStruct Status */ 6:
|
||||
message.Status = StockStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||
break;
|
||||
case /* api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"];*/ 7:
|
||||
case /* api.QuantityInLV QuantityInBaseLV */ 7:
|
||||
message.QuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
|
||||
break;
|
||||
case /* repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"];*/ 8:
|
||||
case /* repeated api.QuantityByLV QuantityByLVs */ 8:
|
||||
message.QuantityByLVs.push(QuantityByLV.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string LVDetailledQuantity = 9 [json_name = "LVDetailledQuantity"];*/ 9:
|
||||
case /* string LVDetailledQuantity */ 9:
|
||||
message.LVDetailledQuantity = reader.string();
|
||||
break;
|
||||
case /* repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"];*/ 10:
|
||||
case /* repeated api.StockMovement LatestMovements */ 10:
|
||||
message.LatestMovements.push(StockMovement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* double RequestedStockValue = 11 [json_name = "RequestedStockValue"];*/ 11:
|
||||
case /* double RequestedStockValue */ 11:
|
||||
message.RequestedStockValue = reader.double();
|
||||
break;
|
||||
case /* double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"];*/ 12:
|
||||
case /* double ToReceiveStockValue */ 12:
|
||||
message.ToReceiveStockValue = reader.double();
|
||||
break;
|
||||
case /* string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"];*/ 13:
|
||||
case /* string LastUpdateStockDateTime */ 13:
|
||||
message.LastUpdateStockDateTime = reader.string();
|
||||
break;
|
||||
case /* string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"];*/ 14:
|
||||
case /* string LastUpdateRequestedDateTime */ 14:
|
||||
message.LastUpdateRequestedDateTime = reader.string();
|
||||
break;
|
||||
case /* string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"];*/ 15:
|
||||
case /* string LastUpdateToReceiveDateTime */ 15:
|
||||
message.LastUpdateToReceiveDateTime = reader.string();
|
||||
break;
|
||||
default:
|
||||
@@ -300,49 +300,49 @@ class StockPayload$Type extends MessageType<StockPayload> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EnrichedGoods Goods = 1 [json_name = "Goods"]; */
|
||||
/* api.EnrichedGoods Goods = 1; */
|
||||
if (message.Goods)
|
||||
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ActorID = 2 [json_name = "ActorID"]; */
|
||||
/* string ActorID = 2; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* api.ActorPayload Actor = 3 [json_name = "Actor"]; */
|
||||
/* api.ActorPayload Actor = 3; */
|
||||
if (message.Actor)
|
||||
ActorPayload.internalBinaryWrite(message.Actor, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"]; */
|
||||
/* api.StockSnapshot Snapshot = 4; */
|
||||
if (message.Snapshot)
|
||||
StockSnapshot.internalBinaryWrite(message.Snapshot, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockMovement Movement = 5 [json_name = "Movement"]; */
|
||||
/* api.StockMovement Movement = 5; */
|
||||
if (message.Movement)
|
||||
StockMovement.internalBinaryWrite(message.Movement, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockStatusStruct Status = 6 [json_name = "Status"]; */
|
||||
/* api.StockStatusStruct Status = 6; */
|
||||
if (message.Status)
|
||||
StockStatusStruct.internalBinaryWrite(message.Status, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"]; */
|
||||
/* api.QuantityInLV QuantityInBaseLV = 7; */
|
||||
if (message.QuantityInBaseLV)
|
||||
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"]; */
|
||||
/* repeated api.QuantityByLV QuantityByLVs = 8; */
|
||||
for (let i = 0; i < message.QuantityByLVs.length; i++)
|
||||
QuantityByLV.internalBinaryWrite(message.QuantityByLVs[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LVDetailledQuantity = 9 [json_name = "LVDetailledQuantity"]; */
|
||||
/* string LVDetailledQuantity = 9; */
|
||||
if (message.LVDetailledQuantity !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.LVDetailledQuantity);
|
||||
/* repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"]; */
|
||||
/* repeated api.StockMovement LatestMovements = 10; */
|
||||
for (let i = 0; i < message.LatestMovements.length; i++)
|
||||
StockMovement.internalBinaryWrite(message.LatestMovements[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
/* double RequestedStockValue = 11 [json_name = "RequestedStockValue"]; */
|
||||
/* double RequestedStockValue = 11; */
|
||||
if (message.RequestedStockValue !== 0)
|
||||
writer.tag(11, WireType.Bit64).double(message.RequestedStockValue);
|
||||
/* double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"]; */
|
||||
/* double ToReceiveStockValue = 12; */
|
||||
if (message.ToReceiveStockValue !== 0)
|
||||
writer.tag(12, WireType.Bit64).double(message.ToReceiveStockValue);
|
||||
/* string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"]; */
|
||||
/* string LastUpdateStockDateTime = 13; */
|
||||
if (message.LastUpdateStockDateTime !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.LastUpdateStockDateTime);
|
||||
/* string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"]; */
|
||||
/* string LastUpdateRequestedDateTime = 14; */
|
||||
if (message.LastUpdateRequestedDateTime !== "")
|
||||
writer.tag(14, WireType.LengthDelimited).string(message.LastUpdateRequestedDateTime);
|
||||
/* string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"]; */
|
||||
/* string LastUpdateToReceiveDateTime = 15; */
|
||||
if (message.LastUpdateToReceiveDateTime !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.LastUpdateToReceiveDateTime);
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -375,13 +375,13 @@ class Stock$Type extends MessageType<Stock> {
|
||||
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.StockPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
case /* api.StockPayload Payload */ 3:
|
||||
message.Payload = StockPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
@@ -396,13 +396,13 @@ class Stock$Type extends MessageType<Stock> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: Stock, 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.StockPayload Payload = 3 [json_name = "Payload"]; */
|
||||
/* api.StockPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
StockPayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -451,40 +451,40 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
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 /* api.ActorPayload Actor = 11 [json_name = "Actor"];*/ 11:
|
||||
case /* api.ActorPayload Actor */ 11:
|
||||
message.Content = {
|
||||
oneofKind: "Actor",
|
||||
Actor: ActorPayload.internalBinaryRead(reader, reader.uint32(), options, (message.Content as any).Actor)
|
||||
};
|
||||
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:
|
||||
@@ -499,34 +499,34 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockEnrichment, 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();
|
||||
/* api.ActorPayload Actor = 11 [json_name = "Actor"]; */
|
||||
/* api.ActorPayload Actor = 11; */
|
||||
if (message.Content.oneofKind === "Actor")
|
||||
ActorPayload.internalBinaryWrite(message.Content.Actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
@@ -559,13 +559,13 @@ class StockTriplet$Type extends MessageType<StockTriplet> {
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Stock Current = 1 [json_name = "Current"];*/ 1:
|
||||
case /* api.Stock Current */ 1:
|
||||
message.Current = Stock.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* api.Stock Previous = 2 [json_name = "Previous"];*/ 2:
|
||||
case /* api.Stock Previous */ 2:
|
||||
message.Previous = Stock.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
|
||||
break;
|
||||
case /* api.Stock LastEvent = 3 [json_name = "LastEvent"];*/ 3:
|
||||
case /* api.Stock LastEvent */ 3:
|
||||
message.LastEvent = Stock.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
|
||||
break;
|
||||
default:
|
||||
@@ -580,13 +580,13 @@ class StockTriplet$Type extends MessageType<StockTriplet> {
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: StockTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Stock Current = 1 [json_name = "Current"]; */
|
||||
/* api.Stock Current = 1; */
|
||||
if (message.Current)
|
||||
Stock.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Stock Previous = 2 [json_name = "Previous"]; */
|
||||
/* api.Stock Previous = 2; */
|
||||
if (message.Previous)
|
||||
Stock.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Stock LastEvent = 3 [json_name = "LastEvent"]; */
|
||||
/* api.Stock LastEvent = 3; */
|
||||
if (message.LastEvent)
|
||||
Stock.internalBinaryWrite(message.LastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
|
||||
Reference in New Issue
Block a user