@sentio/protos 2.59.0-rc.9 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/processor/protos/processor.d.ts +129 -0
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +824 -47
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +1 -0
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +15 -0
- package/lib/service/common/protos/common.js.map +1 -1
- package/package.json +1 -1
- package/src/processor/protos/processor.ts +1077 -159
- package/src/service/common/protos/common.ts +17 -0
|
@@ -463,6 +463,80 @@ export function eventLogConfig_BasicFieldTypeToJSON(object) {
|
|
|
463
463
|
return "UNRECOGNIZED";
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
+
export var ProcessStreamResponse_Partitions_Partition_SysValue;
|
|
467
|
+
(function (ProcessStreamResponse_Partitions_Partition_SysValue) {
|
|
468
|
+
ProcessStreamResponse_Partitions_Partition_SysValue[ProcessStreamResponse_Partitions_Partition_SysValue["BLOCK_NUMBER"] = 0] = "BLOCK_NUMBER";
|
|
469
|
+
ProcessStreamResponse_Partitions_Partition_SysValue[ProcessStreamResponse_Partitions_Partition_SysValue["SEQ_MODE"] = 1] = "SEQ_MODE";
|
|
470
|
+
ProcessStreamResponse_Partitions_Partition_SysValue[ProcessStreamResponse_Partitions_Partition_SysValue["UNIQUE_VALUE"] = 2] = "UNIQUE_VALUE";
|
|
471
|
+
ProcessStreamResponse_Partitions_Partition_SysValue[ProcessStreamResponse_Partitions_Partition_SysValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
472
|
+
})(ProcessStreamResponse_Partitions_Partition_SysValue || (ProcessStreamResponse_Partitions_Partition_SysValue = {}));
|
|
473
|
+
export function processStreamResponse_Partitions_Partition_SysValueFromJSON(object) {
|
|
474
|
+
switch (object) {
|
|
475
|
+
case 0:
|
|
476
|
+
case "BLOCK_NUMBER":
|
|
477
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.BLOCK_NUMBER;
|
|
478
|
+
case 1:
|
|
479
|
+
case "SEQ_MODE":
|
|
480
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.SEQ_MODE;
|
|
481
|
+
case 2:
|
|
482
|
+
case "UNIQUE_VALUE":
|
|
483
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.UNIQUE_VALUE;
|
|
484
|
+
case -1:
|
|
485
|
+
case "UNRECOGNIZED":
|
|
486
|
+
default:
|
|
487
|
+
return ProcessStreamResponse_Partitions_Partition_SysValue.UNRECOGNIZED;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
export function processStreamResponse_Partitions_Partition_SysValueToJSON(object) {
|
|
491
|
+
switch (object) {
|
|
492
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.BLOCK_NUMBER:
|
|
493
|
+
return "BLOCK_NUMBER";
|
|
494
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.SEQ_MODE:
|
|
495
|
+
return "SEQ_MODE";
|
|
496
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.UNIQUE_VALUE:
|
|
497
|
+
return "UNIQUE_VALUE";
|
|
498
|
+
case ProcessStreamResponse_Partitions_Partition_SysValue.UNRECOGNIZED:
|
|
499
|
+
default:
|
|
500
|
+
return "UNRECOGNIZED";
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
export var EntityUpdateData_Operator;
|
|
504
|
+
(function (EntityUpdateData_Operator) {
|
|
505
|
+
EntityUpdateData_Operator[EntityUpdateData_Operator["SET"] = 0] = "SET";
|
|
506
|
+
EntityUpdateData_Operator[EntityUpdateData_Operator["ADD"] = 1] = "ADD";
|
|
507
|
+
EntityUpdateData_Operator[EntityUpdateData_Operator["MULTIPLY"] = 2] = "MULTIPLY";
|
|
508
|
+
EntityUpdateData_Operator[EntityUpdateData_Operator["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
509
|
+
})(EntityUpdateData_Operator || (EntityUpdateData_Operator = {}));
|
|
510
|
+
export function entityUpdateData_OperatorFromJSON(object) {
|
|
511
|
+
switch (object) {
|
|
512
|
+
case 0:
|
|
513
|
+
case "SET":
|
|
514
|
+
return EntityUpdateData_Operator.SET;
|
|
515
|
+
case 1:
|
|
516
|
+
case "ADD":
|
|
517
|
+
return EntityUpdateData_Operator.ADD;
|
|
518
|
+
case 2:
|
|
519
|
+
case "MULTIPLY":
|
|
520
|
+
return EntityUpdateData_Operator.MULTIPLY;
|
|
521
|
+
case -1:
|
|
522
|
+
case "UNRECOGNIZED":
|
|
523
|
+
default:
|
|
524
|
+
return EntityUpdateData_Operator.UNRECOGNIZED;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
export function entityUpdateData_OperatorToJSON(object) {
|
|
528
|
+
switch (object) {
|
|
529
|
+
case EntityUpdateData_Operator.SET:
|
|
530
|
+
return "SET";
|
|
531
|
+
case EntityUpdateData_Operator.ADD:
|
|
532
|
+
return "ADD";
|
|
533
|
+
case EntityUpdateData_Operator.MULTIPLY:
|
|
534
|
+
return "MULTIPLY";
|
|
535
|
+
case EntityUpdateData_Operator.UNRECOGNIZED:
|
|
536
|
+
default:
|
|
537
|
+
return "UNRECOGNIZED";
|
|
538
|
+
}
|
|
539
|
+
}
|
|
466
540
|
export var DBRequest_DBOperator;
|
|
467
541
|
(function (DBRequest_DBOperator) {
|
|
468
542
|
DBRequest_DBOperator[DBRequest_DBOperator["EQ"] = 0] = "EQ";
|
|
@@ -554,6 +628,43 @@ export function dBRequest_DBOperatorToJSON(object) {
|
|
|
554
628
|
return "UNRECOGNIZED";
|
|
555
629
|
}
|
|
556
630
|
}
|
|
631
|
+
export var TimeseriesResult_TimeseriesType;
|
|
632
|
+
(function (TimeseriesResult_TimeseriesType) {
|
|
633
|
+
TimeseriesResult_TimeseriesType[TimeseriesResult_TimeseriesType["EVENT"] = 0] = "EVENT";
|
|
634
|
+
TimeseriesResult_TimeseriesType[TimeseriesResult_TimeseriesType["GAUGE"] = 1] = "GAUGE";
|
|
635
|
+
TimeseriesResult_TimeseriesType[TimeseriesResult_TimeseriesType["COUNTER"] = 2] = "COUNTER";
|
|
636
|
+
TimeseriesResult_TimeseriesType[TimeseriesResult_TimeseriesType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
637
|
+
})(TimeseriesResult_TimeseriesType || (TimeseriesResult_TimeseriesType = {}));
|
|
638
|
+
export function timeseriesResult_TimeseriesTypeFromJSON(object) {
|
|
639
|
+
switch (object) {
|
|
640
|
+
case 0:
|
|
641
|
+
case "EVENT":
|
|
642
|
+
return TimeseriesResult_TimeseriesType.EVENT;
|
|
643
|
+
case 1:
|
|
644
|
+
case "GAUGE":
|
|
645
|
+
return TimeseriesResult_TimeseriesType.GAUGE;
|
|
646
|
+
case 2:
|
|
647
|
+
case "COUNTER":
|
|
648
|
+
return TimeseriesResult_TimeseriesType.COUNTER;
|
|
649
|
+
case -1:
|
|
650
|
+
case "UNRECOGNIZED":
|
|
651
|
+
default:
|
|
652
|
+
return TimeseriesResult_TimeseriesType.UNRECOGNIZED;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
export function timeseriesResult_TimeseriesTypeToJSON(object) {
|
|
656
|
+
switch (object) {
|
|
657
|
+
case TimeseriesResult_TimeseriesType.EVENT:
|
|
658
|
+
return "EVENT";
|
|
659
|
+
case TimeseriesResult_TimeseriesType.GAUGE:
|
|
660
|
+
return "GAUGE";
|
|
661
|
+
case TimeseriesResult_TimeseriesType.COUNTER:
|
|
662
|
+
return "COUNTER";
|
|
663
|
+
case TimeseriesResult_TimeseriesType.UNRECOGNIZED:
|
|
664
|
+
default:
|
|
665
|
+
return "UNRECOGNIZED";
|
|
666
|
+
}
|
|
667
|
+
}
|
|
557
668
|
function createBaseProjectConfig() {
|
|
558
669
|
return { name: "", version: "" };
|
|
559
670
|
}
|
|
@@ -6385,7 +6496,7 @@ export const ProcessBindingResponse = {
|
|
|
6385
6496
|
},
|
|
6386
6497
|
};
|
|
6387
6498
|
function createBaseProcessStreamRequest() {
|
|
6388
|
-
return { processId: 0, binding: undefined, dbResult: undefined };
|
|
6499
|
+
return { processId: 0, binding: undefined, dbResult: undefined, start: undefined };
|
|
6389
6500
|
}
|
|
6390
6501
|
export const ProcessStreamRequest = {
|
|
6391
6502
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -6398,6 +6509,9 @@ export const ProcessStreamRequest = {
|
|
|
6398
6509
|
if (message.dbResult !== undefined) {
|
|
6399
6510
|
DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
|
|
6400
6511
|
}
|
|
6512
|
+
if (message.start !== undefined) {
|
|
6513
|
+
writer.uint32(32).bool(message.start);
|
|
6514
|
+
}
|
|
6401
6515
|
return writer;
|
|
6402
6516
|
},
|
|
6403
6517
|
decode(input, length) {
|
|
@@ -6425,6 +6539,12 @@ export const ProcessStreamRequest = {
|
|
|
6425
6539
|
}
|
|
6426
6540
|
message.dbResult = DBResponse.decode(reader, reader.uint32());
|
|
6427
6541
|
continue;
|
|
6542
|
+
case 4:
|
|
6543
|
+
if (tag !== 32) {
|
|
6544
|
+
break;
|
|
6545
|
+
}
|
|
6546
|
+
message.start = reader.bool();
|
|
6547
|
+
continue;
|
|
6428
6548
|
}
|
|
6429
6549
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6430
6550
|
break;
|
|
@@ -6438,6 +6558,7 @@ export const ProcessStreamRequest = {
|
|
|
6438
6558
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
|
6439
6559
|
binding: isSet(object.binding) ? DataBinding.fromJSON(object.binding) : undefined,
|
|
6440
6560
|
dbResult: isSet(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : undefined,
|
|
6561
|
+
start: isSet(object.start) ? globalThis.Boolean(object.start) : undefined,
|
|
6441
6562
|
};
|
|
6442
6563
|
},
|
|
6443
6564
|
toJSON(message) {
|
|
@@ -6451,6 +6572,9 @@ export const ProcessStreamRequest = {
|
|
|
6451
6572
|
if (message.dbResult !== undefined) {
|
|
6452
6573
|
obj.dbResult = DBResponse.toJSON(message.dbResult);
|
|
6453
6574
|
}
|
|
6575
|
+
if (message.start !== undefined) {
|
|
6576
|
+
obj.start = message.start;
|
|
6577
|
+
}
|
|
6454
6578
|
return obj;
|
|
6455
6579
|
},
|
|
6456
6580
|
create(base) {
|
|
@@ -6465,11 +6589,12 @@ export const ProcessStreamRequest = {
|
|
|
6465
6589
|
message.dbResult = (object.dbResult !== undefined && object.dbResult !== null)
|
|
6466
6590
|
? DBResponse.fromPartial(object.dbResult)
|
|
6467
6591
|
: undefined;
|
|
6592
|
+
message.start = object.start ?? undefined;
|
|
6468
6593
|
return message;
|
|
6469
6594
|
},
|
|
6470
6595
|
};
|
|
6471
6596
|
function createBaseProcessStreamResponse() {
|
|
6472
|
-
return { processId: 0, dbRequest: undefined, result: undefined };
|
|
6597
|
+
return { processId: 0, dbRequest: undefined, result: undefined, partitions: undefined };
|
|
6473
6598
|
}
|
|
6474
6599
|
export const ProcessStreamResponse = {
|
|
6475
6600
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -6482,6 +6607,9 @@ export const ProcessStreamResponse = {
|
|
|
6482
6607
|
if (message.result !== undefined) {
|
|
6483
6608
|
ProcessResult.encode(message.result, writer.uint32(26).fork()).ldelim();
|
|
6484
6609
|
}
|
|
6610
|
+
if (message.partitions !== undefined) {
|
|
6611
|
+
ProcessStreamResponse_Partitions.encode(message.partitions, writer.uint32(34).fork()).ldelim();
|
|
6612
|
+
}
|
|
6485
6613
|
return writer;
|
|
6486
6614
|
},
|
|
6487
6615
|
decode(input, length) {
|
|
@@ -6509,6 +6637,12 @@ export const ProcessStreamResponse = {
|
|
|
6509
6637
|
}
|
|
6510
6638
|
message.result = ProcessResult.decode(reader, reader.uint32());
|
|
6511
6639
|
continue;
|
|
6640
|
+
case 4:
|
|
6641
|
+
if (tag !== 34) {
|
|
6642
|
+
break;
|
|
6643
|
+
}
|
|
6644
|
+
message.partitions = ProcessStreamResponse_Partitions.decode(reader, reader.uint32());
|
|
6645
|
+
continue;
|
|
6512
6646
|
}
|
|
6513
6647
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6514
6648
|
break;
|
|
@@ -6522,6 +6656,7 @@ export const ProcessStreamResponse = {
|
|
|
6522
6656
|
processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
|
|
6523
6657
|
dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
|
|
6524
6658
|
result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
|
|
6659
|
+
partitions: isSet(object.partitions) ? ProcessStreamResponse_Partitions.fromJSON(object.partitions) : undefined,
|
|
6525
6660
|
};
|
|
6526
6661
|
},
|
|
6527
6662
|
toJSON(message) {
|
|
@@ -6535,6 +6670,9 @@ export const ProcessStreamResponse = {
|
|
|
6535
6670
|
if (message.result !== undefined) {
|
|
6536
6671
|
obj.result = ProcessResult.toJSON(message.result);
|
|
6537
6672
|
}
|
|
6673
|
+
if (message.partitions !== undefined) {
|
|
6674
|
+
obj.partitions = ProcessStreamResponse_Partitions.toJSON(message.partitions);
|
|
6675
|
+
}
|
|
6538
6676
|
return obj;
|
|
6539
6677
|
},
|
|
6540
6678
|
create(base) {
|
|
@@ -6549,6 +6687,217 @@ export const ProcessStreamResponse = {
|
|
|
6549
6687
|
message.result = (object.result !== undefined && object.result !== null)
|
|
6550
6688
|
? ProcessResult.fromPartial(object.result)
|
|
6551
6689
|
: undefined;
|
|
6690
|
+
message.partitions = (object.partitions !== undefined && object.partitions !== null)
|
|
6691
|
+
? ProcessStreamResponse_Partitions.fromPartial(object.partitions)
|
|
6692
|
+
: undefined;
|
|
6693
|
+
return message;
|
|
6694
|
+
},
|
|
6695
|
+
};
|
|
6696
|
+
function createBaseProcessStreamResponse_Partitions() {
|
|
6697
|
+
return { partitions: {} };
|
|
6698
|
+
}
|
|
6699
|
+
export const ProcessStreamResponse_Partitions = {
|
|
6700
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
6701
|
+
Object.entries(message.partitions).forEach(([key, value]) => {
|
|
6702
|
+
ProcessStreamResponse_Partitions_PartitionsEntry.encode({ key: key, value }, writer.uint32(10).fork())
|
|
6703
|
+
.ldelim();
|
|
6704
|
+
});
|
|
6705
|
+
return writer;
|
|
6706
|
+
},
|
|
6707
|
+
decode(input, length) {
|
|
6708
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6709
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6710
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
|
6711
|
+
while (reader.pos < end) {
|
|
6712
|
+
const tag = reader.uint32();
|
|
6713
|
+
switch (tag >>> 3) {
|
|
6714
|
+
case 1:
|
|
6715
|
+
if (tag !== 10) {
|
|
6716
|
+
break;
|
|
6717
|
+
}
|
|
6718
|
+
const entry1 = ProcessStreamResponse_Partitions_PartitionsEntry.decode(reader, reader.uint32());
|
|
6719
|
+
if (entry1.value !== undefined) {
|
|
6720
|
+
message.partitions[entry1.key] = entry1.value;
|
|
6721
|
+
}
|
|
6722
|
+
continue;
|
|
6723
|
+
}
|
|
6724
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6725
|
+
break;
|
|
6726
|
+
}
|
|
6727
|
+
reader.skipType(tag & 7);
|
|
6728
|
+
}
|
|
6729
|
+
return message;
|
|
6730
|
+
},
|
|
6731
|
+
fromJSON(object) {
|
|
6732
|
+
return {
|
|
6733
|
+
partitions: isObject(object.partitions)
|
|
6734
|
+
? Object.entries(object.partitions).reduce((acc, [key, value]) => {
|
|
6735
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromJSON(value);
|
|
6736
|
+
return acc;
|
|
6737
|
+
}, {})
|
|
6738
|
+
: {},
|
|
6739
|
+
};
|
|
6740
|
+
},
|
|
6741
|
+
toJSON(message) {
|
|
6742
|
+
const obj = {};
|
|
6743
|
+
if (message.partitions) {
|
|
6744
|
+
const entries = Object.entries(message.partitions);
|
|
6745
|
+
if (entries.length > 0) {
|
|
6746
|
+
obj.partitions = {};
|
|
6747
|
+
entries.forEach(([k, v]) => {
|
|
6748
|
+
obj.partitions[k] = ProcessStreamResponse_Partitions_Partition.toJSON(v);
|
|
6749
|
+
});
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
return obj;
|
|
6753
|
+
},
|
|
6754
|
+
create(base) {
|
|
6755
|
+
return ProcessStreamResponse_Partitions.fromPartial(base ?? {});
|
|
6756
|
+
},
|
|
6757
|
+
fromPartial(object) {
|
|
6758
|
+
const message = createBaseProcessStreamResponse_Partitions();
|
|
6759
|
+
message.partitions = Object.entries(object.partitions ?? {}).reduce((acc, [key, value]) => {
|
|
6760
|
+
if (value !== undefined) {
|
|
6761
|
+
acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromPartial(value);
|
|
6762
|
+
}
|
|
6763
|
+
return acc;
|
|
6764
|
+
}, {});
|
|
6765
|
+
return message;
|
|
6766
|
+
},
|
|
6767
|
+
};
|
|
6768
|
+
function createBaseProcessStreamResponse_Partitions_Partition() {
|
|
6769
|
+
return { userValue: undefined, sysValue: undefined };
|
|
6770
|
+
}
|
|
6771
|
+
export const ProcessStreamResponse_Partitions_Partition = {
|
|
6772
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
6773
|
+
if (message.userValue !== undefined) {
|
|
6774
|
+
writer.uint32(10).string(message.userValue);
|
|
6775
|
+
}
|
|
6776
|
+
if (message.sysValue !== undefined) {
|
|
6777
|
+
writer.uint32(16).int32(message.sysValue);
|
|
6778
|
+
}
|
|
6779
|
+
return writer;
|
|
6780
|
+
},
|
|
6781
|
+
decode(input, length) {
|
|
6782
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6784
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
|
6785
|
+
while (reader.pos < end) {
|
|
6786
|
+
const tag = reader.uint32();
|
|
6787
|
+
switch (tag >>> 3) {
|
|
6788
|
+
case 1:
|
|
6789
|
+
if (tag !== 10) {
|
|
6790
|
+
break;
|
|
6791
|
+
}
|
|
6792
|
+
message.userValue = reader.string();
|
|
6793
|
+
continue;
|
|
6794
|
+
case 2:
|
|
6795
|
+
if (tag !== 16) {
|
|
6796
|
+
break;
|
|
6797
|
+
}
|
|
6798
|
+
message.sysValue = reader.int32();
|
|
6799
|
+
continue;
|
|
6800
|
+
}
|
|
6801
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6802
|
+
break;
|
|
6803
|
+
}
|
|
6804
|
+
reader.skipType(tag & 7);
|
|
6805
|
+
}
|
|
6806
|
+
return message;
|
|
6807
|
+
},
|
|
6808
|
+
fromJSON(object) {
|
|
6809
|
+
return {
|
|
6810
|
+
userValue: isSet(object.userValue) ? globalThis.String(object.userValue) : undefined,
|
|
6811
|
+
sysValue: isSet(object.sysValue)
|
|
6812
|
+
? processStreamResponse_Partitions_Partition_SysValueFromJSON(object.sysValue)
|
|
6813
|
+
: undefined,
|
|
6814
|
+
};
|
|
6815
|
+
},
|
|
6816
|
+
toJSON(message) {
|
|
6817
|
+
const obj = {};
|
|
6818
|
+
if (message.userValue !== undefined) {
|
|
6819
|
+
obj.userValue = message.userValue;
|
|
6820
|
+
}
|
|
6821
|
+
if (message.sysValue !== undefined) {
|
|
6822
|
+
obj.sysValue = processStreamResponse_Partitions_Partition_SysValueToJSON(message.sysValue);
|
|
6823
|
+
}
|
|
6824
|
+
return obj;
|
|
6825
|
+
},
|
|
6826
|
+
create(base) {
|
|
6827
|
+
return ProcessStreamResponse_Partitions_Partition.fromPartial(base ?? {});
|
|
6828
|
+
},
|
|
6829
|
+
fromPartial(object) {
|
|
6830
|
+
const message = createBaseProcessStreamResponse_Partitions_Partition();
|
|
6831
|
+
message.userValue = object.userValue ?? undefined;
|
|
6832
|
+
message.sysValue = object.sysValue ?? undefined;
|
|
6833
|
+
return message;
|
|
6834
|
+
},
|
|
6835
|
+
};
|
|
6836
|
+
function createBaseProcessStreamResponse_Partitions_PartitionsEntry() {
|
|
6837
|
+
return { key: 0, value: undefined };
|
|
6838
|
+
}
|
|
6839
|
+
export const ProcessStreamResponse_Partitions_PartitionsEntry = {
|
|
6840
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
6841
|
+
if (message.key !== 0) {
|
|
6842
|
+
writer.uint32(8).int32(message.key);
|
|
6843
|
+
}
|
|
6844
|
+
if (message.value !== undefined) {
|
|
6845
|
+
ProcessStreamResponse_Partitions_Partition.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
6846
|
+
}
|
|
6847
|
+
return writer;
|
|
6848
|
+
},
|
|
6849
|
+
decode(input, length) {
|
|
6850
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6851
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6852
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
|
6853
|
+
while (reader.pos < end) {
|
|
6854
|
+
const tag = reader.uint32();
|
|
6855
|
+
switch (tag >>> 3) {
|
|
6856
|
+
case 1:
|
|
6857
|
+
if (tag !== 8) {
|
|
6858
|
+
break;
|
|
6859
|
+
}
|
|
6860
|
+
message.key = reader.int32();
|
|
6861
|
+
continue;
|
|
6862
|
+
case 2:
|
|
6863
|
+
if (tag !== 18) {
|
|
6864
|
+
break;
|
|
6865
|
+
}
|
|
6866
|
+
message.value = ProcessStreamResponse_Partitions_Partition.decode(reader, reader.uint32());
|
|
6867
|
+
continue;
|
|
6868
|
+
}
|
|
6869
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6870
|
+
break;
|
|
6871
|
+
}
|
|
6872
|
+
reader.skipType(tag & 7);
|
|
6873
|
+
}
|
|
6874
|
+
return message;
|
|
6875
|
+
},
|
|
6876
|
+
fromJSON(object) {
|
|
6877
|
+
return {
|
|
6878
|
+
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
|
6879
|
+
value: isSet(object.value) ? ProcessStreamResponse_Partitions_Partition.fromJSON(object.value) : undefined,
|
|
6880
|
+
};
|
|
6881
|
+
},
|
|
6882
|
+
toJSON(message) {
|
|
6883
|
+
const obj = {};
|
|
6884
|
+
if (message.key !== 0) {
|
|
6885
|
+
obj.key = Math.round(message.key);
|
|
6886
|
+
}
|
|
6887
|
+
if (message.value !== undefined) {
|
|
6888
|
+
obj.value = ProcessStreamResponse_Partitions_Partition.toJSON(message.value);
|
|
6889
|
+
}
|
|
6890
|
+
return obj;
|
|
6891
|
+
},
|
|
6892
|
+
create(base) {
|
|
6893
|
+
return ProcessStreamResponse_Partitions_PartitionsEntry.fromPartial(base ?? {});
|
|
6894
|
+
},
|
|
6895
|
+
fromPartial(object) {
|
|
6896
|
+
const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
|
|
6897
|
+
message.key = object.key ?? 0;
|
|
6898
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
6899
|
+
? ProcessStreamResponse_Partitions_Partition.fromPartial(object.value)
|
|
6900
|
+
: undefined;
|
|
6552
6901
|
return message;
|
|
6553
6902
|
},
|
|
6554
6903
|
};
|
|
@@ -7074,65 +7423,288 @@ export const EntityList = {
|
|
|
7074
7423
|
return message;
|
|
7075
7424
|
},
|
|
7076
7425
|
};
|
|
7077
|
-
function
|
|
7078
|
-
return {
|
|
7426
|
+
function createBaseEntityUpdateData() {
|
|
7427
|
+
return { fields: {} };
|
|
7079
7428
|
}
|
|
7080
|
-
export const
|
|
7429
|
+
export const EntityUpdateData = {
|
|
7081
7430
|
encode(message, writer = _m0.Writer.create()) {
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
}
|
|
7086
|
-
writer.uint32(8).uint64(message.opId.toString());
|
|
7087
|
-
}
|
|
7088
|
-
if (message.get !== undefined) {
|
|
7089
|
-
DBRequest_DBGet.encode(message.get, writer.uint32(18).fork()).ldelim();
|
|
7090
|
-
}
|
|
7091
|
-
if (message.upsert !== undefined) {
|
|
7092
|
-
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
|
7093
|
-
}
|
|
7094
|
-
if (message.delete !== undefined) {
|
|
7095
|
-
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
|
7096
|
-
}
|
|
7097
|
-
if (message.list !== undefined) {
|
|
7098
|
-
DBRequest_DBList.encode(message.list, writer.uint32(42).fork()).ldelim();
|
|
7099
|
-
}
|
|
7431
|
+
Object.entries(message.fields).forEach(([key, value]) => {
|
|
7432
|
+
EntityUpdateData_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
7433
|
+
});
|
|
7100
7434
|
return writer;
|
|
7101
7435
|
},
|
|
7102
7436
|
decode(input, length) {
|
|
7103
7437
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7104
7438
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7105
|
-
const message =
|
|
7439
|
+
const message = createBaseEntityUpdateData();
|
|
7106
7440
|
while (reader.pos < end) {
|
|
7107
7441
|
const tag = reader.uint32();
|
|
7108
7442
|
switch (tag >>> 3) {
|
|
7109
7443
|
case 1:
|
|
7110
|
-
if (tag !==
|
|
7111
|
-
break;
|
|
7112
|
-
}
|
|
7113
|
-
message.opId = longToBigint(reader.uint64());
|
|
7114
|
-
continue;
|
|
7115
|
-
case 2:
|
|
7116
|
-
if (tag !== 18) {
|
|
7117
|
-
break;
|
|
7118
|
-
}
|
|
7119
|
-
message.get = DBRequest_DBGet.decode(reader, reader.uint32());
|
|
7120
|
-
continue;
|
|
7121
|
-
case 3:
|
|
7122
|
-
if (tag !== 26) {
|
|
7444
|
+
if (tag !== 10) {
|
|
7123
7445
|
break;
|
|
7124
7446
|
}
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
if (tag !== 34) {
|
|
7129
|
-
break;
|
|
7447
|
+
const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
|
|
7448
|
+
if (entry1.value !== undefined) {
|
|
7449
|
+
message.fields[entry1.key] = entry1.value;
|
|
7130
7450
|
}
|
|
7131
|
-
message.delete = DBRequest_DBDelete.decode(reader, reader.uint32());
|
|
7132
7451
|
continue;
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7452
|
+
}
|
|
7453
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7454
|
+
break;
|
|
7455
|
+
}
|
|
7456
|
+
reader.skipType(tag & 7);
|
|
7457
|
+
}
|
|
7458
|
+
return message;
|
|
7459
|
+
},
|
|
7460
|
+
fromJSON(object) {
|
|
7461
|
+
return {
|
|
7462
|
+
fields: isObject(object.fields)
|
|
7463
|
+
? Object.entries(object.fields).reduce((acc, [key, value]) => {
|
|
7464
|
+
acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
|
|
7465
|
+
return acc;
|
|
7466
|
+
}, {})
|
|
7467
|
+
: {},
|
|
7468
|
+
};
|
|
7469
|
+
},
|
|
7470
|
+
toJSON(message) {
|
|
7471
|
+
const obj = {};
|
|
7472
|
+
if (message.fields) {
|
|
7473
|
+
const entries = Object.entries(message.fields);
|
|
7474
|
+
if (entries.length > 0) {
|
|
7475
|
+
obj.fields = {};
|
|
7476
|
+
entries.forEach(([k, v]) => {
|
|
7477
|
+
obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
|
|
7478
|
+
});
|
|
7479
|
+
}
|
|
7480
|
+
}
|
|
7481
|
+
return obj;
|
|
7482
|
+
},
|
|
7483
|
+
create(base) {
|
|
7484
|
+
return EntityUpdateData.fromPartial(base ?? {});
|
|
7485
|
+
},
|
|
7486
|
+
fromPartial(object) {
|
|
7487
|
+
const message = createBaseEntityUpdateData();
|
|
7488
|
+
message.fields = Object.entries(object.fields ?? {}).reduce((acc, [key, value]) => {
|
|
7489
|
+
if (value !== undefined) {
|
|
7490
|
+
acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
|
|
7491
|
+
}
|
|
7492
|
+
return acc;
|
|
7493
|
+
}, {});
|
|
7494
|
+
return message;
|
|
7495
|
+
},
|
|
7496
|
+
};
|
|
7497
|
+
function createBaseEntityUpdateData_FieldValue() {
|
|
7498
|
+
return { value: undefined, op: 0 };
|
|
7499
|
+
}
|
|
7500
|
+
export const EntityUpdateData_FieldValue = {
|
|
7501
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
7502
|
+
if (message.value !== undefined) {
|
|
7503
|
+
RichValue.encode(message.value, writer.uint32(10).fork()).ldelim();
|
|
7504
|
+
}
|
|
7505
|
+
if (message.op !== 0) {
|
|
7506
|
+
writer.uint32(16).int32(message.op);
|
|
7507
|
+
}
|
|
7508
|
+
return writer;
|
|
7509
|
+
},
|
|
7510
|
+
decode(input, length) {
|
|
7511
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7512
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7513
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
|
7514
|
+
while (reader.pos < end) {
|
|
7515
|
+
const tag = reader.uint32();
|
|
7516
|
+
switch (tag >>> 3) {
|
|
7517
|
+
case 1:
|
|
7518
|
+
if (tag !== 10) {
|
|
7519
|
+
break;
|
|
7520
|
+
}
|
|
7521
|
+
message.value = RichValue.decode(reader, reader.uint32());
|
|
7522
|
+
continue;
|
|
7523
|
+
case 2:
|
|
7524
|
+
if (tag !== 16) {
|
|
7525
|
+
break;
|
|
7526
|
+
}
|
|
7527
|
+
message.op = reader.int32();
|
|
7528
|
+
continue;
|
|
7529
|
+
}
|
|
7530
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7531
|
+
break;
|
|
7532
|
+
}
|
|
7533
|
+
reader.skipType(tag & 7);
|
|
7534
|
+
}
|
|
7535
|
+
return message;
|
|
7536
|
+
},
|
|
7537
|
+
fromJSON(object) {
|
|
7538
|
+
return {
|
|
7539
|
+
value: isSet(object.value) ? RichValue.fromJSON(object.value) : undefined,
|
|
7540
|
+
op: isSet(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0,
|
|
7541
|
+
};
|
|
7542
|
+
},
|
|
7543
|
+
toJSON(message) {
|
|
7544
|
+
const obj = {};
|
|
7545
|
+
if (message.value !== undefined) {
|
|
7546
|
+
obj.value = RichValue.toJSON(message.value);
|
|
7547
|
+
}
|
|
7548
|
+
if (message.op !== 0) {
|
|
7549
|
+
obj.op = entityUpdateData_OperatorToJSON(message.op);
|
|
7550
|
+
}
|
|
7551
|
+
return obj;
|
|
7552
|
+
},
|
|
7553
|
+
create(base) {
|
|
7554
|
+
return EntityUpdateData_FieldValue.fromPartial(base ?? {});
|
|
7555
|
+
},
|
|
7556
|
+
fromPartial(object) {
|
|
7557
|
+
const message = createBaseEntityUpdateData_FieldValue();
|
|
7558
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
7559
|
+
? RichValue.fromPartial(object.value)
|
|
7560
|
+
: undefined;
|
|
7561
|
+
message.op = object.op ?? 0;
|
|
7562
|
+
return message;
|
|
7563
|
+
},
|
|
7564
|
+
};
|
|
7565
|
+
function createBaseEntityUpdateData_FieldsEntry() {
|
|
7566
|
+
return { key: "", value: undefined };
|
|
7567
|
+
}
|
|
7568
|
+
export const EntityUpdateData_FieldsEntry = {
|
|
7569
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
7570
|
+
if (message.key !== "") {
|
|
7571
|
+
writer.uint32(10).string(message.key);
|
|
7572
|
+
}
|
|
7573
|
+
if (message.value !== undefined) {
|
|
7574
|
+
EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
7575
|
+
}
|
|
7576
|
+
return writer;
|
|
7577
|
+
},
|
|
7578
|
+
decode(input, length) {
|
|
7579
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7580
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7581
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
|
7582
|
+
while (reader.pos < end) {
|
|
7583
|
+
const tag = reader.uint32();
|
|
7584
|
+
switch (tag >>> 3) {
|
|
7585
|
+
case 1:
|
|
7586
|
+
if (tag !== 10) {
|
|
7587
|
+
break;
|
|
7588
|
+
}
|
|
7589
|
+
message.key = reader.string();
|
|
7590
|
+
continue;
|
|
7591
|
+
case 2:
|
|
7592
|
+
if (tag !== 18) {
|
|
7593
|
+
break;
|
|
7594
|
+
}
|
|
7595
|
+
message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
|
|
7596
|
+
continue;
|
|
7597
|
+
}
|
|
7598
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7599
|
+
break;
|
|
7600
|
+
}
|
|
7601
|
+
reader.skipType(tag & 7);
|
|
7602
|
+
}
|
|
7603
|
+
return message;
|
|
7604
|
+
},
|
|
7605
|
+
fromJSON(object) {
|
|
7606
|
+
return {
|
|
7607
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
7608
|
+
value: isSet(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : undefined,
|
|
7609
|
+
};
|
|
7610
|
+
},
|
|
7611
|
+
toJSON(message) {
|
|
7612
|
+
const obj = {};
|
|
7613
|
+
if (message.key !== "") {
|
|
7614
|
+
obj.key = message.key;
|
|
7615
|
+
}
|
|
7616
|
+
if (message.value !== undefined) {
|
|
7617
|
+
obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
|
|
7618
|
+
}
|
|
7619
|
+
return obj;
|
|
7620
|
+
},
|
|
7621
|
+
create(base) {
|
|
7622
|
+
return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
|
|
7623
|
+
},
|
|
7624
|
+
fromPartial(object) {
|
|
7625
|
+
const message = createBaseEntityUpdateData_FieldsEntry();
|
|
7626
|
+
message.key = object.key ?? "";
|
|
7627
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
7628
|
+
? EntityUpdateData_FieldValue.fromPartial(object.value)
|
|
7629
|
+
: undefined;
|
|
7630
|
+
return message;
|
|
7631
|
+
},
|
|
7632
|
+
};
|
|
7633
|
+
function createBaseDBRequest() {
|
|
7634
|
+
return {
|
|
7635
|
+
opId: BigInt("0"),
|
|
7636
|
+
get: undefined,
|
|
7637
|
+
upsert: undefined,
|
|
7638
|
+
update: undefined,
|
|
7639
|
+
delete: undefined,
|
|
7640
|
+
list: undefined,
|
|
7641
|
+
};
|
|
7642
|
+
}
|
|
7643
|
+
export const DBRequest = {
|
|
7644
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
7645
|
+
if (message.opId !== BigInt("0")) {
|
|
7646
|
+
if (BigInt.asUintN(64, message.opId) !== message.opId) {
|
|
7647
|
+
throw new globalThis.Error("value provided for field message.opId of type uint64 too large");
|
|
7648
|
+
}
|
|
7649
|
+
writer.uint32(8).uint64(message.opId.toString());
|
|
7650
|
+
}
|
|
7651
|
+
if (message.get !== undefined) {
|
|
7652
|
+
DBRequest_DBGet.encode(message.get, writer.uint32(18).fork()).ldelim();
|
|
7653
|
+
}
|
|
7654
|
+
if (message.upsert !== undefined) {
|
|
7655
|
+
DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
|
|
7656
|
+
}
|
|
7657
|
+
if (message.update !== undefined) {
|
|
7658
|
+
DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
|
|
7659
|
+
}
|
|
7660
|
+
if (message.delete !== undefined) {
|
|
7661
|
+
DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
|
|
7662
|
+
}
|
|
7663
|
+
if (message.list !== undefined) {
|
|
7664
|
+
DBRequest_DBList.encode(message.list, writer.uint32(42).fork()).ldelim();
|
|
7665
|
+
}
|
|
7666
|
+
return writer;
|
|
7667
|
+
},
|
|
7668
|
+
decode(input, length) {
|
|
7669
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
7670
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
7671
|
+
const message = createBaseDBRequest();
|
|
7672
|
+
while (reader.pos < end) {
|
|
7673
|
+
const tag = reader.uint32();
|
|
7674
|
+
switch (tag >>> 3) {
|
|
7675
|
+
case 1:
|
|
7676
|
+
if (tag !== 8) {
|
|
7677
|
+
break;
|
|
7678
|
+
}
|
|
7679
|
+
message.opId = longToBigint(reader.uint64());
|
|
7680
|
+
continue;
|
|
7681
|
+
case 2:
|
|
7682
|
+
if (tag !== 18) {
|
|
7683
|
+
break;
|
|
7684
|
+
}
|
|
7685
|
+
message.get = DBRequest_DBGet.decode(reader, reader.uint32());
|
|
7686
|
+
continue;
|
|
7687
|
+
case 3:
|
|
7688
|
+
if (tag !== 26) {
|
|
7689
|
+
break;
|
|
7690
|
+
}
|
|
7691
|
+
message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
|
|
7692
|
+
continue;
|
|
7693
|
+
case 6:
|
|
7694
|
+
if (tag !== 50) {
|
|
7695
|
+
break;
|
|
7696
|
+
}
|
|
7697
|
+
message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
|
|
7698
|
+
continue;
|
|
7699
|
+
case 4:
|
|
7700
|
+
if (tag !== 34) {
|
|
7701
|
+
break;
|
|
7702
|
+
}
|
|
7703
|
+
message.delete = DBRequest_DBDelete.decode(reader, reader.uint32());
|
|
7704
|
+
continue;
|
|
7705
|
+
case 5:
|
|
7706
|
+
if (tag !== 42) {
|
|
7707
|
+
break;
|
|
7136
7708
|
}
|
|
7137
7709
|
message.list = DBRequest_DBList.decode(reader, reader.uint32());
|
|
7138
7710
|
continue;
|
|
@@ -7149,6 +7721,7 @@ export const DBRequest = {
|
|
|
7149
7721
|
opId: isSet(object.opId) ? BigInt(object.opId) : BigInt("0"),
|
|
7150
7722
|
get: isSet(object.get) ? DBRequest_DBGet.fromJSON(object.get) : undefined,
|
|
7151
7723
|
upsert: isSet(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : undefined,
|
|
7724
|
+
update: isSet(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : undefined,
|
|
7152
7725
|
delete: isSet(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : undefined,
|
|
7153
7726
|
list: isSet(object.list) ? DBRequest_DBList.fromJSON(object.list) : undefined,
|
|
7154
7727
|
};
|
|
@@ -7164,6 +7737,9 @@ export const DBRequest = {
|
|
|
7164
7737
|
if (message.upsert !== undefined) {
|
|
7165
7738
|
obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
|
|
7166
7739
|
}
|
|
7740
|
+
if (message.update !== undefined) {
|
|
7741
|
+
obj.update = DBRequest_DBUpdate.toJSON(message.update);
|
|
7742
|
+
}
|
|
7167
7743
|
if (message.delete !== undefined) {
|
|
7168
7744
|
obj.delete = DBRequest_DBDelete.toJSON(message.delete);
|
|
7169
7745
|
}
|
|
@@ -7184,6 +7760,9 @@ export const DBRequest = {
|
|
|
7184
7760
|
message.upsert = (object.upsert !== undefined && object.upsert !== null)
|
|
7185
7761
|
? DBRequest_DBUpsert.fromPartial(object.upsert)
|
|
7186
7762
|
: undefined;
|
|
7763
|
+
message.update = (object.update !== undefined && object.update !== null)
|
|
7764
|
+
? DBRequest_DBUpdate.fromPartial(object.update)
|
|
7765
|
+
: undefined;
|
|
7187
7766
|
message.delete = (object.delete !== undefined && object.delete !== null)
|
|
7188
7767
|
? DBRequest_DBDelete.fromPartial(object.delete)
|
|
7189
7768
|
: undefined;
|
|
@@ -7451,6 +8030,88 @@ export const DBRequest_DBUpsert = {
|
|
|
7451
8030
|
return message;
|
|
7452
8031
|
},
|
|
7453
8032
|
};
|
|
8033
|
+
function createBaseDBRequest_DBUpdate() {
|
|
8034
|
+
return { entity: [], id: [], entityData: [] };
|
|
8035
|
+
}
|
|
8036
|
+
export const DBRequest_DBUpdate = {
|
|
8037
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
8038
|
+
for (const v of message.entity) {
|
|
8039
|
+
writer.uint32(10).string(v);
|
|
8040
|
+
}
|
|
8041
|
+
for (const v of message.id) {
|
|
8042
|
+
writer.uint32(18).string(v);
|
|
8043
|
+
}
|
|
8044
|
+
for (const v of message.entityData) {
|
|
8045
|
+
EntityUpdateData.encode(v, writer.uint32(26).fork()).ldelim();
|
|
8046
|
+
}
|
|
8047
|
+
return writer;
|
|
8048
|
+
},
|
|
8049
|
+
decode(input, length) {
|
|
8050
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8051
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8052
|
+
const message = createBaseDBRequest_DBUpdate();
|
|
8053
|
+
while (reader.pos < end) {
|
|
8054
|
+
const tag = reader.uint32();
|
|
8055
|
+
switch (tag >>> 3) {
|
|
8056
|
+
case 1:
|
|
8057
|
+
if (tag !== 10) {
|
|
8058
|
+
break;
|
|
8059
|
+
}
|
|
8060
|
+
message.entity.push(reader.string());
|
|
8061
|
+
continue;
|
|
8062
|
+
case 2:
|
|
8063
|
+
if (tag !== 18) {
|
|
8064
|
+
break;
|
|
8065
|
+
}
|
|
8066
|
+
message.id.push(reader.string());
|
|
8067
|
+
continue;
|
|
8068
|
+
case 3:
|
|
8069
|
+
if (tag !== 26) {
|
|
8070
|
+
break;
|
|
8071
|
+
}
|
|
8072
|
+
message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
|
|
8073
|
+
continue;
|
|
8074
|
+
}
|
|
8075
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8076
|
+
break;
|
|
8077
|
+
}
|
|
8078
|
+
reader.skipType(tag & 7);
|
|
8079
|
+
}
|
|
8080
|
+
return message;
|
|
8081
|
+
},
|
|
8082
|
+
fromJSON(object) {
|
|
8083
|
+
return {
|
|
8084
|
+
entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e) => globalThis.String(e)) : [],
|
|
8085
|
+
id: globalThis.Array.isArray(object?.id) ? object.id.map((e) => globalThis.String(e)) : [],
|
|
8086
|
+
entityData: globalThis.Array.isArray(object?.entityData)
|
|
8087
|
+
? object.entityData.map((e) => EntityUpdateData.fromJSON(e))
|
|
8088
|
+
: [],
|
|
8089
|
+
};
|
|
8090
|
+
},
|
|
8091
|
+
toJSON(message) {
|
|
8092
|
+
const obj = {};
|
|
8093
|
+
if (message.entity?.length) {
|
|
8094
|
+
obj.entity = message.entity;
|
|
8095
|
+
}
|
|
8096
|
+
if (message.id?.length) {
|
|
8097
|
+
obj.id = message.id;
|
|
8098
|
+
}
|
|
8099
|
+
if (message.entityData?.length) {
|
|
8100
|
+
obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
|
|
8101
|
+
}
|
|
8102
|
+
return obj;
|
|
8103
|
+
},
|
|
8104
|
+
create(base) {
|
|
8105
|
+
return DBRequest_DBUpdate.fromPartial(base ?? {});
|
|
8106
|
+
},
|
|
8107
|
+
fromPartial(object) {
|
|
8108
|
+
const message = createBaseDBRequest_DBUpdate();
|
|
8109
|
+
message.entity = object.entity?.map((e) => e) || [];
|
|
8110
|
+
message.id = object.id?.map((e) => e) || [];
|
|
8111
|
+
message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
|
|
8112
|
+
return message;
|
|
8113
|
+
},
|
|
8114
|
+
};
|
|
7454
8115
|
function createBaseDBRequest_DBDelete() {
|
|
7455
8116
|
return { entity: [], id: [] };
|
|
7456
8117
|
}
|
|
@@ -9878,7 +10539,7 @@ export const StateResult = {
|
|
|
9878
10539
|
},
|
|
9879
10540
|
};
|
|
9880
10541
|
function createBaseProcessResult() {
|
|
9881
|
-
return { gauges: [], counters: [], events: [], exports: [], states: undefined };
|
|
10542
|
+
return { gauges: [], counters: [], events: [], exports: [], states: undefined, timeseriesResult: [] };
|
|
9882
10543
|
}
|
|
9883
10544
|
export const ProcessResult = {
|
|
9884
10545
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -9897,6 +10558,9 @@ export const ProcessResult = {
|
|
|
9897
10558
|
if (message.states !== undefined) {
|
|
9898
10559
|
StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
|
|
9899
10560
|
}
|
|
10561
|
+
for (const v of message.timeseriesResult) {
|
|
10562
|
+
TimeseriesResult.encode(v, writer.uint32(58).fork()).ldelim();
|
|
10563
|
+
}
|
|
9900
10564
|
return writer;
|
|
9901
10565
|
},
|
|
9902
10566
|
decode(input, length) {
|
|
@@ -9936,6 +10600,12 @@ export const ProcessResult = {
|
|
|
9936
10600
|
}
|
|
9937
10601
|
message.states = StateResult.decode(reader, reader.uint32());
|
|
9938
10602
|
continue;
|
|
10603
|
+
case 7:
|
|
10604
|
+
if (tag !== 58) {
|
|
10605
|
+
break;
|
|
10606
|
+
}
|
|
10607
|
+
message.timeseriesResult.push(TimeseriesResult.decode(reader, reader.uint32()));
|
|
10608
|
+
continue;
|
|
9939
10609
|
}
|
|
9940
10610
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9941
10611
|
break;
|
|
@@ -9957,6 +10627,9 @@ export const ProcessResult = {
|
|
|
9957
10627
|
? object.exports.map((e) => ExportResult.fromJSON(e))
|
|
9958
10628
|
: [],
|
|
9959
10629
|
states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
|
|
10630
|
+
timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult)
|
|
10631
|
+
? object.timeseriesResult.map((e) => TimeseriesResult.fromJSON(e))
|
|
10632
|
+
: [],
|
|
9960
10633
|
};
|
|
9961
10634
|
},
|
|
9962
10635
|
toJSON(message) {
|
|
@@ -9976,6 +10649,9 @@ export const ProcessResult = {
|
|
|
9976
10649
|
if (message.states !== undefined) {
|
|
9977
10650
|
obj.states = StateResult.toJSON(message.states);
|
|
9978
10651
|
}
|
|
10652
|
+
if (message.timeseriesResult?.length) {
|
|
10653
|
+
obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult.toJSON(e));
|
|
10654
|
+
}
|
|
9979
10655
|
return obj;
|
|
9980
10656
|
},
|
|
9981
10657
|
create(base) {
|
|
@@ -9990,6 +10666,7 @@ export const ProcessResult = {
|
|
|
9990
10666
|
message.states = (object.states !== undefined && object.states !== null)
|
|
9991
10667
|
? StateResult.fromPartial(object.states)
|
|
9992
10668
|
: undefined;
|
|
10669
|
+
message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult.fromPartial(e)) || [];
|
|
9993
10670
|
return message;
|
|
9994
10671
|
},
|
|
9995
10672
|
};
|
|
@@ -11077,6 +11754,106 @@ export const EventTrackingResult = {
|
|
|
11077
11754
|
return message;
|
|
11078
11755
|
},
|
|
11079
11756
|
};
|
|
11757
|
+
function createBaseTimeseriesResult() {
|
|
11758
|
+
return { metadata: undefined, type: 0, data: undefined, runtimeInfo: undefined };
|
|
11759
|
+
}
|
|
11760
|
+
export const TimeseriesResult = {
|
|
11761
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11762
|
+
if (message.metadata !== undefined) {
|
|
11763
|
+
RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
|
|
11764
|
+
}
|
|
11765
|
+
if (message.type !== 0) {
|
|
11766
|
+
writer.uint32(16).int32(message.type);
|
|
11767
|
+
}
|
|
11768
|
+
if (message.data !== undefined) {
|
|
11769
|
+
RichStruct.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
11770
|
+
}
|
|
11771
|
+
if (message.runtimeInfo !== undefined) {
|
|
11772
|
+
RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
|
|
11773
|
+
}
|
|
11774
|
+
return writer;
|
|
11775
|
+
},
|
|
11776
|
+
decode(input, length) {
|
|
11777
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
11778
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11779
|
+
const message = createBaseTimeseriesResult();
|
|
11780
|
+
while (reader.pos < end) {
|
|
11781
|
+
const tag = reader.uint32();
|
|
11782
|
+
switch (tag >>> 3) {
|
|
11783
|
+
case 1:
|
|
11784
|
+
if (tag !== 10) {
|
|
11785
|
+
break;
|
|
11786
|
+
}
|
|
11787
|
+
message.metadata = RecordMetaData.decode(reader, reader.uint32());
|
|
11788
|
+
continue;
|
|
11789
|
+
case 2:
|
|
11790
|
+
if (tag !== 16) {
|
|
11791
|
+
break;
|
|
11792
|
+
}
|
|
11793
|
+
message.type = reader.int32();
|
|
11794
|
+
continue;
|
|
11795
|
+
case 3:
|
|
11796
|
+
if (tag !== 26) {
|
|
11797
|
+
break;
|
|
11798
|
+
}
|
|
11799
|
+
message.data = RichStruct.decode(reader, reader.uint32());
|
|
11800
|
+
continue;
|
|
11801
|
+
case 4:
|
|
11802
|
+
if (tag !== 34) {
|
|
11803
|
+
break;
|
|
11804
|
+
}
|
|
11805
|
+
message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
|
|
11806
|
+
continue;
|
|
11807
|
+
}
|
|
11808
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
11809
|
+
break;
|
|
11810
|
+
}
|
|
11811
|
+
reader.skipType(tag & 7);
|
|
11812
|
+
}
|
|
11813
|
+
return message;
|
|
11814
|
+
},
|
|
11815
|
+
fromJSON(object) {
|
|
11816
|
+
return {
|
|
11817
|
+
metadata: isSet(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : undefined,
|
|
11818
|
+
type: isSet(object.type) ? timeseriesResult_TimeseriesTypeFromJSON(object.type) : 0,
|
|
11819
|
+
data: isSet(object.data) ? RichStruct.fromJSON(object.data) : undefined,
|
|
11820
|
+
runtimeInfo: isSet(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
|
|
11821
|
+
};
|
|
11822
|
+
},
|
|
11823
|
+
toJSON(message) {
|
|
11824
|
+
const obj = {};
|
|
11825
|
+
if (message.metadata !== undefined) {
|
|
11826
|
+
obj.metadata = RecordMetaData.toJSON(message.metadata);
|
|
11827
|
+
}
|
|
11828
|
+
if (message.type !== 0) {
|
|
11829
|
+
obj.type = timeseriesResult_TimeseriesTypeToJSON(message.type);
|
|
11830
|
+
}
|
|
11831
|
+
if (message.data !== undefined) {
|
|
11832
|
+
obj.data = RichStruct.toJSON(message.data);
|
|
11833
|
+
}
|
|
11834
|
+
if (message.runtimeInfo !== undefined) {
|
|
11835
|
+
obj.runtimeInfo = RuntimeInfo.toJSON(message.runtimeInfo);
|
|
11836
|
+
}
|
|
11837
|
+
return obj;
|
|
11838
|
+
},
|
|
11839
|
+
create(base) {
|
|
11840
|
+
return TimeseriesResult.fromPartial(base ?? {});
|
|
11841
|
+
},
|
|
11842
|
+
fromPartial(object) {
|
|
11843
|
+
const message = createBaseTimeseriesResult();
|
|
11844
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
11845
|
+
? RecordMetaData.fromPartial(object.metadata)
|
|
11846
|
+
: undefined;
|
|
11847
|
+
message.type = object.type ?? 0;
|
|
11848
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
11849
|
+
? RichStruct.fromPartial(object.data)
|
|
11850
|
+
: undefined;
|
|
11851
|
+
message.runtimeInfo = (object.runtimeInfo !== undefined && object.runtimeInfo !== null)
|
|
11852
|
+
? RuntimeInfo.fromPartial(object.runtimeInfo)
|
|
11853
|
+
: undefined;
|
|
11854
|
+
return message;
|
|
11855
|
+
},
|
|
11856
|
+
};
|
|
11080
11857
|
function createBaseExportResult() {
|
|
11081
11858
|
return { metadata: undefined, payload: "", runtimeInfo: undefined };
|
|
11082
11859
|
}
|