You've already forked npm-core-sdk
Latest generation
This commit is contained in:
362
stock.ts
362
stock.ts
@@ -1,4 +1,4 @@
|
||||
// @generated by protobuf-ts 2.9.6
|
||||
// @generated by protobuf-ts 2.9.6 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";
|
||||
@@ -42,73 +42,73 @@ export interface StockPayload {
|
||||
/**
|
||||
* @generated from protobuf field: api.EnrichedGoods Goods = 1 [json_name = "Goods"];
|
||||
*/
|
||||
goods?: EnrichedGoods;
|
||||
Goods?: EnrichedGoods;
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 2 [json_name = "ActorID"];
|
||||
*/
|
||||
actorID: string;
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 3 [json_name = "Actor"];
|
||||
*/
|
||||
actor?: ActorPayload;
|
||||
Actor?: ActorPayload;
|
||||
/**
|
||||
* @generated from protobuf field: api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"];
|
||||
*/
|
||||
snapshot?: StockSnapshot; // this struct is managed into preAgg cumulateSnapshotQuantity method
|
||||
Snapshot?: StockSnapshot; // this struct is managed into preAgg cumulateSnapshotQuantity method
|
||||
/**
|
||||
* @generated from protobuf field: api.StockMovement Movement = 5 [json_name = "Movement"];
|
||||
*/
|
||||
movement?: StockMovement;
|
||||
Movement?: StockMovement;
|
||||
/**
|
||||
* @generated from protobuf field: api.StockStatusStruct Status = 6 [json_name = "Status"];
|
||||
*/
|
||||
status?: StockStatusStruct; // Status field is not accessible from APIs
|
||||
Status?: StockStatusStruct; // Status field is not accessible from APIs
|
||||
/**
|
||||
* @generated from protobuf field: api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"];
|
||||
*/
|
||||
quantityInBaseLV?: QuantityInLV;
|
||||
QuantityInBaseLV?: QuantityInLV;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"];
|
||||
*/
|
||||
quantityByLVs: QuantityByLV[];
|
||||
QuantityByLVs: QuantityByLV[];
|
||||
/**
|
||||
* @generated from protobuf field: string LVDetailledQuantity = 9 [json_name = "LVDetailledQuantity"];
|
||||
*/
|
||||
lVDetailledQuantity: string;
|
||||
LVDetailledQuantity: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"];
|
||||
*/
|
||||
latestMovements: StockMovement[];
|
||||
LatestMovements: StockMovement[];
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: double RequestedStockValue = 11 [json_name = "RequestedStockValue"];
|
||||
*/
|
||||
requestedStockValue: number;
|
||||
RequestedStockValue: number;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"];
|
||||
*/
|
||||
toReceiveStockValue: number;
|
||||
ToReceiveStockValue: number;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"];
|
||||
*/
|
||||
lastUpdateStockDateTime: string;
|
||||
LastUpdateStockDateTime: string;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"];
|
||||
*/
|
||||
lastUpdateRequestedDateTime: string;
|
||||
LastUpdateRequestedDateTime: string;
|
||||
/**
|
||||
* Only used for clickhouse extended-stock
|
||||
*
|
||||
* @generated from protobuf field: string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"];
|
||||
*/
|
||||
lastUpdateToReceiveDateTime: string;
|
||||
LastUpdateToReceiveDateTime: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -120,15 +120,15 @@ export interface Stock {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];
|
||||
*/
|
||||
lastEventHeader?: EventHeader;
|
||||
LastEventHeader?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2 [json_name = "ID"];
|
||||
*/
|
||||
iD?: EntityID;
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.StockPayload Payload = 3 [json_name = "Payload"];
|
||||
*/
|
||||
payload?: StockPayload;
|
||||
Payload?: StockPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockEnrichment
|
||||
@@ -137,53 +137,53 @@ export interface StockEnrichment {
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEventID = 1 [json_name = "ParentEventID"];
|
||||
*/
|
||||
parentEventID: string;
|
||||
ParentEventID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityName = 2 [json_name = "EntityName"];
|
||||
*/
|
||||
entityName: string;
|
||||
EntityName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string EntityRefID = 3 [json_name = "EntityRefID"];
|
||||
*/
|
||||
entityRefID: string;
|
||||
EntityRefID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string RefFilter = 4 [json_name = "RefFilter"];
|
||||
*/
|
||||
refFilter: string;
|
||||
RefFilter: string;
|
||||
/**
|
||||
* @generated from protobuf field: string MergePath = 5 [json_name = "MergePath"];
|
||||
*/
|
||||
mergePath: string;
|
||||
MergePath: string;
|
||||
/**
|
||||
* @generated from protobuf oneof: Content
|
||||
*/
|
||||
content: {
|
||||
oneofKind: "item";
|
||||
Content: {
|
||||
oneofKind: "Item";
|
||||
/**
|
||||
* @generated from protobuf field: api.ItemPayload Item = 10 [json_name = "Item"];
|
||||
*/
|
||||
item: ItemPayload;
|
||||
Item: ItemPayload;
|
||||
} | {
|
||||
oneofKind: "actor";
|
||||
oneofKind: "Actor";
|
||||
/**
|
||||
* @generated from protobuf field: api.ActorPayload Actor = 11 [json_name = "Actor"];
|
||||
*/
|
||||
actor: ActorPayload;
|
||||
Actor: ActorPayload;
|
||||
} | {
|
||||
oneofKind: undefined;
|
||||
};
|
||||
/**
|
||||
* @generated from protobuf field: string Project = 6 [json_name = "Project"];
|
||||
*/
|
||||
project: string;
|
||||
Project: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEntityName = 7 [json_name = "ParentEntityName"];
|
||||
*/
|
||||
parentEntityName: string;
|
||||
ParentEntityName: string;
|
||||
/**
|
||||
* @generated from protobuf field: string ParentEntityID = 8 [json_name = "ParentEntityID"];
|
||||
*/
|
||||
parentEntityID: string;
|
||||
ParentEntityID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.StockTriplet
|
||||
@@ -192,48 +192,48 @@ export interface StockTriplet {
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock Current = 1 [json_name = "Current"];
|
||||
*/
|
||||
current?: Stock;
|
||||
Current?: Stock;
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock Previous = 2 [json_name = "Previous"];
|
||||
*/
|
||||
previous?: Stock;
|
||||
Previous?: Stock;
|
||||
/**
|
||||
* @generated from protobuf field: api.Stock LastEvent = 3 [json_name = "LastEvent"];
|
||||
*/
|
||||
lastEvent?: Stock;
|
||||
LastEvent?: Stock;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class StockPayload$Type extends MessageType<StockPayload> {
|
||||
constructor() {
|
||||
super("api.StockPayload", [
|
||||
{ no: 1, name: "Goods", kind: "message", jsonName: "Goods", T: () => EnrichedGoods },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "api.dataRestrictionKey": "Stock", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 3, name: "Actor", kind: "message", jsonName: "Actor", T: () => ActorPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Stock" } },
|
||||
{ no: 4, name: "Snapshot", kind: "message", jsonName: "Snapshot", T: () => StockSnapshot, options: { "api.aggSkip": "Snapshotted", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 5, name: "Movement", kind: "message", jsonName: "Movement", T: () => StockMovement, options: { "api.aggSkip": "Moved", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 6, name: "Status", kind: "message", jsonName: "Status", T: () => StockStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 7, name: "QuantityInBaseLV", kind: "message", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 8, name: "QuantityByLVs", kind: "message", jsonName: "QuantityByLVs", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID" } },
|
||||
{ no: 9, name: "LVDetailledQuantity", kind: "scalar", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 10, name: "LatestMovements", kind: "message", jsonName: "LatestMovements", repeat: 1 /*RepeatType.PACKED*/, T: () => StockMovement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.indexationSkip": true } },
|
||||
{ no: 11, name: "RequestedStockValue", kind: "scalar", jsonName: "RequestedStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 12, name: "ToReceiveStockValue", kind: "scalar", jsonName: "ToReceiveStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 13, name: "LastUpdateStockDateTime", kind: "scalar", jsonName: "LastUpdateStockDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 14, name: "LastUpdateRequestedDateTime", kind: "scalar", jsonName: "LastUpdateRequestedDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 15, name: "LastUpdateToReceiveDateTime", kind: "scalar", jsonName: "LastUpdateToReceiveDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
|
||||
{ no: 1, name: "Goods", kind: "message", localName: "Goods", jsonName: "Goods", T: () => EnrichedGoods },
|
||||
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.entityRef": "Actor", "api.dataRestrictionKey": "Stock", "api.indexationType": { Types: [{ Context: "*", Type: "generatedText,keyword" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock", Queryable: true }, { Context: "Stock", Group: "stock_extended", Queryable: true }] }, "api.viewType": { Types: [{ Context: "*", Type: "shortKeyword" }] } } },
|
||||
{ no: 3, name: "Actor", kind: "message", localName: "Actor", jsonName: "Actor", T: () => ActorPayload, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.extractRefExclude": "Stock" } },
|
||||
{ no: 4, name: "Snapshot", kind: "message", localName: "Snapshot", jsonName: "Snapshot", T: () => StockSnapshot, options: { "api.aggSkip": "Snapshotted", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 5, name: "Movement", kind: "message", localName: "Movement", jsonName: "Movement", T: () => StockMovement, options: { "api.aggSkip": "Moved", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 6, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => StockStatusStruct, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock_extended" }] } } },
|
||||
{ no: 7, name: "QuantityInBaseLV", kind: "message", localName: "QuantityInBaseLV", jsonName: "QuantityInBaseLV", T: () => QuantityInLV, options: { "validate.rules": { message: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 8, name: "QuantityByLVs", kind: "message", localName: "QuantityByLVs", jsonName: "QuantityByLVs", repeat: 1 /*RepeatType.PACKED*/, T: () => QuantityByLV, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "LVID" } },
|
||||
{ no: 9, name: "LVDetailledQuantity", kind: "scalar", localName: "LVDetailledQuantity", jsonName: "LVDetailledQuantity", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true } } },
|
||||
{ no: 10, name: "LatestMovements", kind: "message", localName: "LatestMovements", jsonName: "LatestMovements", repeat: 1 /*RepeatType.PACKED*/, T: () => StockMovement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.aggKey": "ID", "api.kpiExclude": { Items: [{ Context: "Stock", Group: "stock" }, { Context: "Stock", Group: "stock_extended" }] }, "api.indexationSkip": true } },
|
||||
{ no: 11, name: "RequestedStockValue", kind: "scalar", localName: "RequestedStockValue", jsonName: "RequestedStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 12, name: "ToReceiveStockValue", kind: "scalar", localName: "ToReceiveStockValue", jsonName: "ToReceiveStockValue", T: 1 /*ScalarType.DOUBLE*/, options: { "validate.rules": { double: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", Queryable: true, CustomType: "AggregateFunction(sum,Decimal64(6))" }] } } },
|
||||
{ no: 13, name: "LastUpdateStockDateTime", kind: "scalar", localName: "LastUpdateStockDateTime", jsonName: "LastUpdateStockDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 14, name: "LastUpdateRequestedDateTime", kind: "scalar", localName: "LastUpdateRequestedDateTime", jsonName: "LastUpdateRequestedDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 15, name: "LastUpdateToReceiveDateTime", kind: "scalar", localName: "LastUpdateToReceiveDateTime", jsonName: "LastUpdateToReceiveDateTime", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { unauthorized: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { readOnly: true }, "api.indexationType": { Types: [{ Context: "Stock", Type: "text" }] }, "api.kpiItems": { Items: [{ Context: "Stock", Group: "stock_extended", CustomType: "SimpleAggregateFunction(max,DateTime)" }] }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StockPayload>): StockPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.actorID = "";
|
||||
message.quantityByLVs = [];
|
||||
message.lVDetailledQuantity = "";
|
||||
message.latestMovements = [];
|
||||
message.requestedStockValue = 0;
|
||||
message.toReceiveStockValue = 0;
|
||||
message.lastUpdateStockDateTime = "";
|
||||
message.lastUpdateRequestedDateTime = "";
|
||||
message.lastUpdateToReceiveDateTime = "";
|
||||
message.ActorID = "";
|
||||
message.QuantityByLVs = [];
|
||||
message.LVDetailledQuantity = "";
|
||||
message.LatestMovements = [];
|
||||
message.RequestedStockValue = 0;
|
||||
message.ToReceiveStockValue = 0;
|
||||
message.LastUpdateStockDateTime = "";
|
||||
message.LastUpdateRequestedDateTime = "";
|
||||
message.LastUpdateToReceiveDateTime = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StockPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -244,49 +244,49 @@ class StockPayload$Type extends MessageType<StockPayload> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EnrichedGoods Goods = 1 [json_name = "Goods"];*/ 1:
|
||||
message.goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.goods);
|
||||
message.Goods = EnrichedGoods.internalBinaryRead(reader, reader.uint32(), options, message.Goods);
|
||||
break;
|
||||
case /* string ActorID = 2 [json_name = "ActorID"];*/ 2:
|
||||
message.actorID = reader.string();
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* api.ActorPayload Actor = 3 [json_name = "Actor"];*/ 3:
|
||||
message.actor = ActorPayload.internalBinaryRead(reader, reader.uint32(), options, message.actor);
|
||||
message.Actor = ActorPayload.internalBinaryRead(reader, reader.uint32(), options, message.Actor);
|
||||
break;
|
||||
case /* api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"];*/ 4:
|
||||
message.snapshot = StockSnapshot.internalBinaryRead(reader, reader.uint32(), options, message.snapshot);
|
||||
message.Snapshot = StockSnapshot.internalBinaryRead(reader, reader.uint32(), options, message.Snapshot);
|
||||
break;
|
||||
case /* api.StockMovement Movement = 5 [json_name = "Movement"];*/ 5:
|
||||
message.movement = StockMovement.internalBinaryRead(reader, reader.uint32(), options, message.movement);
|
||||
message.Movement = StockMovement.internalBinaryRead(reader, reader.uint32(), options, message.Movement);
|
||||
break;
|
||||
case /* api.StockStatusStruct Status = 6 [json_name = "Status"];*/ 6:
|
||||
message.status = StockStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.status);
|
||||
message.Status = StockStatusStruct.internalBinaryRead(reader, reader.uint32(), options, message.Status);
|
||||
break;
|
||||
case /* api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"];*/ 7:
|
||||
message.quantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.quantityInBaseLV);
|
||||
message.QuantityInBaseLV = QuantityInLV.internalBinaryRead(reader, reader.uint32(), options, message.QuantityInBaseLV);
|
||||
break;
|
||||
case /* repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"];*/ 8:
|
||||
message.quantityByLVs.push(QuantityByLV.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.QuantityByLVs.push(QuantityByLV.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string LVDetailledQuantity = 9 [json_name = "LVDetailledQuantity"];*/ 9:
|
||||
message.lVDetailledQuantity = reader.string();
|
||||
message.LVDetailledQuantity = reader.string();
|
||||
break;
|
||||
case /* repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"];*/ 10:
|
||||
message.latestMovements.push(StockMovement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
message.LatestMovements.push(StockMovement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* double RequestedStockValue = 11 [json_name = "RequestedStockValue"];*/ 11:
|
||||
message.requestedStockValue = reader.double();
|
||||
message.RequestedStockValue = reader.double();
|
||||
break;
|
||||
case /* double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"];*/ 12:
|
||||
message.toReceiveStockValue = reader.double();
|
||||
message.ToReceiveStockValue = reader.double();
|
||||
break;
|
||||
case /* string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"];*/ 13:
|
||||
message.lastUpdateStockDateTime = reader.string();
|
||||
message.LastUpdateStockDateTime = reader.string();
|
||||
break;
|
||||
case /* string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"];*/ 14:
|
||||
message.lastUpdateRequestedDateTime = reader.string();
|
||||
message.LastUpdateRequestedDateTime = reader.string();
|
||||
break;
|
||||
case /* string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"];*/ 15:
|
||||
message.lastUpdateToReceiveDateTime = reader.string();
|
||||
message.LastUpdateToReceiveDateTime = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -301,50 +301,50 @@ class StockPayload$Type extends MessageType<StockPayload> {
|
||||
}
|
||||
internalBinaryWrite(message: StockPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EnrichedGoods Goods = 1 [json_name = "Goods"]; */
|
||||
if (message.goods)
|
||||
EnrichedGoods.internalBinaryWrite(message.goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Goods)
|
||||
EnrichedGoods.internalBinaryWrite(message.Goods, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string ActorID = 2 [json_name = "ActorID"]; */
|
||||
if (message.actorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.actorID);
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* api.ActorPayload Actor = 3 [json_name = "Actor"]; */
|
||||
if (message.actor)
|
||||
ActorPayload.internalBinaryWrite(message.actor, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Actor)
|
||||
ActorPayload.internalBinaryWrite(message.Actor, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockSnapshot Snapshot = 4 [json_name = "Snapshot"]; */
|
||||
if (message.snapshot)
|
||||
StockSnapshot.internalBinaryWrite(message.snapshot, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Snapshot)
|
||||
StockSnapshot.internalBinaryWrite(message.Snapshot, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockMovement Movement = 5 [json_name = "Movement"]; */
|
||||
if (message.movement)
|
||||
StockMovement.internalBinaryWrite(message.movement, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Movement)
|
||||
StockMovement.internalBinaryWrite(message.Movement, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockStatusStruct Status = 6 [json_name = "Status"]; */
|
||||
if (message.status)
|
||||
StockStatusStruct.internalBinaryWrite(message.status, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Status)
|
||||
StockStatusStruct.internalBinaryWrite(message.Status, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.QuantityInLV QuantityInBaseLV = 7 [json_name = "QuantityInBaseLV"]; */
|
||||
if (message.quantityInBaseLV)
|
||||
QuantityInLV.internalBinaryWrite(message.quantityInBaseLV, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.QuantityInBaseLV)
|
||||
QuantityInLV.internalBinaryWrite(message.QuantityInBaseLV, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByLV QuantityByLVs = 8 [json_name = "QuantityByLVs"]; */
|
||||
for (let i = 0; i < message.quantityByLVs.length; i++)
|
||||
QuantityByLV.internalBinaryWrite(message.quantityByLVs[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.lVDetailledQuantity !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.lVDetailledQuantity);
|
||||
if (message.LVDetailledQuantity !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.LVDetailledQuantity);
|
||||
/* repeated api.StockMovement LatestMovements = 10 [json_name = "LatestMovements"]; */
|
||||
for (let i = 0; i < message.latestMovements.length; i++)
|
||||
StockMovement.internalBinaryWrite(message.latestMovements[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.requestedStockValue !== 0)
|
||||
writer.tag(11, WireType.Bit64).double(message.requestedStockValue);
|
||||
if (message.RequestedStockValue !== 0)
|
||||
writer.tag(11, WireType.Bit64).double(message.RequestedStockValue);
|
||||
/* double ToReceiveStockValue = 12 [json_name = "ToReceiveStockValue"]; */
|
||||
if (message.toReceiveStockValue !== 0)
|
||||
writer.tag(12, WireType.Bit64).double(message.toReceiveStockValue);
|
||||
if (message.ToReceiveStockValue !== 0)
|
||||
writer.tag(12, WireType.Bit64).double(message.ToReceiveStockValue);
|
||||
/* string LastUpdateStockDateTime = 13 [json_name = "LastUpdateStockDateTime"]; */
|
||||
if (message.lastUpdateStockDateTime !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.lastUpdateStockDateTime);
|
||||
if (message.LastUpdateStockDateTime !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.LastUpdateStockDateTime);
|
||||
/* string LastUpdateRequestedDateTime = 14 [json_name = "LastUpdateRequestedDateTime"]; */
|
||||
if (message.lastUpdateRequestedDateTime !== "")
|
||||
writer.tag(14, WireType.LengthDelimited).string(message.lastUpdateRequestedDateTime);
|
||||
if (message.LastUpdateRequestedDateTime !== "")
|
||||
writer.tag(14, WireType.LengthDelimited).string(message.LastUpdateRequestedDateTime);
|
||||
/* string LastUpdateToReceiveDateTime = 15 [json_name = "LastUpdateToReceiveDateTime"]; */
|
||||
if (message.lastUpdateToReceiveDateTime !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.lastUpdateToReceiveDateTime);
|
||||
if (message.LastUpdateToReceiveDateTime !== "")
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.LastUpdateToReceiveDateTime);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -359,9 +359,9 @@ export const StockPayload = new StockPayload$Type();
|
||||
class Stock$Type extends MessageType<Stock> {
|
||||
constructor() {
|
||||
super("api.Stock", [
|
||||
{ no: 1, name: "LastEventHeader", kind: "message", jsonName: "LastEventHeader", T: () => EventHeader },
|
||||
{ no: 2, name: "ID", kind: "message", jsonName: "ID", T: () => EntityID },
|
||||
{ no: 3, name: "Payload", kind: "message", jsonName: "Payload", T: () => StockPayload }
|
||||
{ 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: () => StockPayload }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<Stock>): Stock {
|
||||
@@ -376,13 +376,13 @@ class Stock$Type extends MessageType<Stock> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"];*/ 1:
|
||||
message.lastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.lastEventHeader);
|
||||
message.LastEventHeader = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.LastEventHeader);
|
||||
break;
|
||||
case /* api.EntityID ID = 2 [json_name = "ID"];*/ 2:
|
||||
message.iD = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.iD);
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.StockPayload Payload = 3 [json_name = "Payload"];*/ 3:
|
||||
message.payload = StockPayload.internalBinaryRead(reader, reader.uint32(), options, message.payload);
|
||||
message.Payload = StockPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -397,14 +397,14 @@ class Stock$Type extends MessageType<Stock> {
|
||||
}
|
||||
internalBinaryWrite(message: Stock, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader LastEventHeader = 1 [json_name = "LastEventHeader"]; */
|
||||
if (message.lastEventHeader)
|
||||
EventHeader.internalBinaryWrite(message.lastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.LastEventHeader)
|
||||
EventHeader.internalBinaryWrite(message.LastEventHeader, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2 [json_name = "ID"]; */
|
||||
if (message.iD)
|
||||
EntityID.internalBinaryWrite(message.iD, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.StockPayload Payload = 3 [json_name = "Payload"]; */
|
||||
if (message.payload)
|
||||
StockPayload.internalBinaryWrite(message.payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Payload)
|
||||
StockPayload.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);
|
||||
@@ -419,29 +419,29 @@ export const Stock = new Stock$Type();
|
||||
class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
constructor() {
|
||||
super("api.StockEnrichment", [
|
||||
{ no: 1, name: "ParentEventID", kind: "scalar", jsonName: "ParentEventID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "EntityName", kind: "scalar", jsonName: "EntityName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "EntityRefID", kind: "scalar", jsonName: "EntityRefID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "RefFilter", kind: "scalar", jsonName: "RefFilter", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "MergePath", kind: "scalar", jsonName: "MergePath", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "Item", kind: "message", jsonName: "Item", oneof: "content", T: () => ItemPayload },
|
||||
{ no: 11, name: "Actor", kind: "message", jsonName: "Actor", oneof: "content", T: () => ActorPayload },
|
||||
{ no: 6, name: "Project", kind: "scalar", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "ParentEntityName", kind: "scalar", jsonName: "ParentEntityName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 8, name: "ParentEntityID", kind: "scalar", jsonName: "ParentEntityID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ 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: 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<StockEnrichment>): StockEnrichment {
|
||||
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 = "";
|
||||
message.ParentEventID = "";
|
||||
message.EntityName = "";
|
||||
message.EntityRefID = "";
|
||||
message.RefFilter = "";
|
||||
message.MergePath = "";
|
||||
message.Content = { oneofKind: undefined };
|
||||
message.Project = "";
|
||||
message.ParentEntityName = "";
|
||||
message.ParentEntityID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StockEnrichment>(this, message, value);
|
||||
return message;
|
||||
@@ -452,40 +452,40 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ParentEventID = 1 [json_name = "ParentEventID"];*/ 1:
|
||||
message.parentEventID = reader.string();
|
||||
message.ParentEventID = reader.string();
|
||||
break;
|
||||
case /* string EntityName = 2 [json_name = "EntityName"];*/ 2:
|
||||
message.entityName = reader.string();
|
||||
message.EntityName = reader.string();
|
||||
break;
|
||||
case /* string EntityRefID = 3 [json_name = "EntityRefID"];*/ 3:
|
||||
message.entityRefID = reader.string();
|
||||
message.EntityRefID = reader.string();
|
||||
break;
|
||||
case /* string RefFilter = 4 [json_name = "RefFilter"];*/ 4:
|
||||
message.refFilter = reader.string();
|
||||
message.RefFilter = reader.string();
|
||||
break;
|
||||
case /* string MergePath = 5 [json_name = "MergePath"];*/ 5:
|
||||
message.mergePath = reader.string();
|
||||
message.MergePath = reader.string();
|
||||
break;
|
||||
case /* api.ItemPayload Item = 10 [json_name = "Item"];*/ 10:
|
||||
message.content = {
|
||||
oneofKind: "item",
|
||||
item: ItemPayload.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).item)
|
||||
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:
|
||||
message.content = {
|
||||
oneofKind: "actor",
|
||||
actor: ActorPayload.internalBinaryRead(reader, reader.uint32(), options, (message.content as any).actor)
|
||||
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:
|
||||
message.project = reader.string();
|
||||
message.Project = reader.string();
|
||||
break;
|
||||
case /* string ParentEntityName = 7 [json_name = "ParentEntityName"];*/ 7:
|
||||
message.parentEntityName = reader.string();
|
||||
message.ParentEntityName = reader.string();
|
||||
break;
|
||||
case /* string ParentEntityID = 8 [json_name = "ParentEntityID"];*/ 8:
|
||||
message.parentEntityID = reader.string();
|
||||
message.ParentEntityID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -500,35 +500,35 @@ class StockEnrichment$Type extends MessageType<StockEnrichment> {
|
||||
}
|
||||
internalBinaryWrite(message: StockEnrichment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ParentEventID = 1 [json_name = "ParentEventID"]; */
|
||||
if (message.parentEventID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.parentEventID);
|
||||
if (message.ParentEventID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ParentEventID);
|
||||
/* string EntityName = 2 [json_name = "EntityName"]; */
|
||||
if (message.entityName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.entityName);
|
||||
if (message.EntityName !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.EntityName);
|
||||
/* string EntityRefID = 3 [json_name = "EntityRefID"]; */
|
||||
if (message.entityRefID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.entityRefID);
|
||||
if (message.EntityRefID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.EntityRefID);
|
||||
/* string RefFilter = 4 [json_name = "RefFilter"]; */
|
||||
if (message.refFilter !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.refFilter);
|
||||
if (message.RefFilter !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.RefFilter);
|
||||
/* string MergePath = 5 [json_name = "MergePath"]; */
|
||||
if (message.mergePath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.mergePath);
|
||||
if (message.MergePath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.MergePath);
|
||||
/* api.ItemPayload Item = 10 [json_name = "Item"]; */
|
||||
if (message.content.oneofKind === "item")
|
||||
ItemPayload.internalBinaryWrite(message.content.item, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
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"]; */
|
||||
if (message.content.oneofKind === "actor")
|
||||
ActorPayload.internalBinaryWrite(message.content.actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Content.oneofKind === "Actor")
|
||||
ActorPayload.internalBinaryWrite(message.Content.Actor, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Project = 6 [json_name = "Project"]; */
|
||||
if (message.project !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.project);
|
||||
if (message.Project !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Project);
|
||||
/* string ParentEntityName = 7 [json_name = "ParentEntityName"]; */
|
||||
if (message.parentEntityName !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.parentEntityName);
|
||||
if (message.ParentEntityName !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.ParentEntityName);
|
||||
/* string ParentEntityID = 8 [json_name = "ParentEntityID"]; */
|
||||
if (message.parentEntityID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.parentEntityID);
|
||||
if (message.ParentEntityID !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.ParentEntityID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -543,9 +543,9 @@ export const StockEnrichment = new StockEnrichment$Type();
|
||||
class StockTriplet$Type extends MessageType<StockTriplet> {
|
||||
constructor() {
|
||||
super("api.StockTriplet", [
|
||||
{ no: 1, name: "Current", kind: "message", jsonName: "Current", T: () => Stock },
|
||||
{ no: 2, name: "Previous", kind: "message", jsonName: "Previous", T: () => Stock },
|
||||
{ no: 3, name: "LastEvent", kind: "message", jsonName: "LastEvent", T: () => Stock }
|
||||
{ no: 1, name: "Current", kind: "message", localName: "Current", jsonName: "Current", T: () => Stock },
|
||||
{ no: 2, name: "Previous", kind: "message", localName: "Previous", jsonName: "Previous", T: () => Stock },
|
||||
{ no: 3, name: "LastEvent", kind: "message", localName: "LastEvent", jsonName: "LastEvent", T: () => Stock }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<StockTriplet>): StockTriplet {
|
||||
@@ -560,13 +560,13 @@ class StockTriplet$Type extends MessageType<StockTriplet> {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Stock Current = 1 [json_name = "Current"];*/ 1:
|
||||
message.current = Stock.internalBinaryRead(reader, reader.uint32(), options, message.current);
|
||||
message.Current = Stock.internalBinaryRead(reader, reader.uint32(), options, message.Current);
|
||||
break;
|
||||
case /* api.Stock Previous = 2 [json_name = "Previous"];*/ 2:
|
||||
message.previous = Stock.internalBinaryRead(reader, reader.uint32(), options, message.previous);
|
||||
message.Previous = Stock.internalBinaryRead(reader, reader.uint32(), options, message.Previous);
|
||||
break;
|
||||
case /* api.Stock LastEvent = 3 [json_name = "LastEvent"];*/ 3:
|
||||
message.lastEvent = Stock.internalBinaryRead(reader, reader.uint32(), options, message.lastEvent);
|
||||
message.LastEvent = Stock.internalBinaryRead(reader, reader.uint32(), options, message.LastEvent);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -581,14 +581,14 @@ class StockTriplet$Type extends MessageType<StockTriplet> {
|
||||
}
|
||||
internalBinaryWrite(message: StockTriplet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Stock Current = 1 [json_name = "Current"]; */
|
||||
if (message.current)
|
||||
Stock.internalBinaryWrite(message.current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Current)
|
||||
Stock.internalBinaryWrite(message.Current, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Stock Previous = 2 [json_name = "Previous"]; */
|
||||
if (message.previous)
|
||||
Stock.internalBinaryWrite(message.previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.Previous)
|
||||
Stock.internalBinaryWrite(message.Previous, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Stock LastEvent = 3 [json_name = "LastEvent"]; */
|
||||
if (message.lastEvent)
|
||||
Stock.internalBinaryWrite(message.lastEvent, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
if (message.LastEvent)
|
||||
Stock.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);
|
||||
|
||||
Reference in New Issue
Block a user