@fatehan/tsrp 1.6.66 → 1.6.69
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/dist/fatehan/models/models.d.ts +8 -0
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +89 -0
- package/dist/fatehan/packets/dataModel.d.ts +2 -0
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +2 -0
- package/dist/fatehan/services/api.d.ts +180 -0
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +1827 -0
- package/dist/fatehan/trips/anomaly.d.ts +74 -0
- package/dist/fatehan/trips/anomaly.d.ts.map +1 -0
- package/dist/fatehan/trips/anomaly.js +478 -0
- package/dist/services.d.ts +7 -1
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +19 -1
- package/package.json +1 -1
|
@@ -42,6 +42,25 @@ export var StopCalculateIo;
|
|
|
42
42
|
StopCalculateIo[StopCalculateIo["IGNITION"] = 2] = "IGNITION";
|
|
43
43
|
StopCalculateIo[StopCalculateIo["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
44
44
|
})(StopCalculateIo || (StopCalculateIo = {}));
|
|
45
|
+
export var RedisServer;
|
|
46
|
+
(function (RedisServer) {
|
|
47
|
+
RedisServer[RedisServer["REDIS_SERVER_UNSPECIFIED"] = 0] = "REDIS_SERVER_UNSPECIFIED";
|
|
48
|
+
/** REDIS_SERVER_MAIN - Main Redis (Business logic & Odyssey) */
|
|
49
|
+
RedisServer[RedisServer["REDIS_SERVER_MAIN"] = 1] = "REDIS_SERVER_MAIN";
|
|
50
|
+
/** REDIS_SERVER_SOCKET - Socket Redis (Dragonfly / Live tracking) */
|
|
51
|
+
RedisServer[RedisServer["REDIS_SERVER_SOCKET"] = 2] = "REDIS_SERVER_SOCKET";
|
|
52
|
+
/** REDIS_SERVER_BOTH - Both cache servers */
|
|
53
|
+
RedisServer[RedisServer["REDIS_SERVER_BOTH"] = 3] = "REDIS_SERVER_BOTH";
|
|
54
|
+
RedisServer[RedisServer["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
55
|
+
})(RedisServer || (RedisServer = {}));
|
|
56
|
+
export var CacheTargetType;
|
|
57
|
+
(function (CacheTargetType) {
|
|
58
|
+
CacheTargetType[CacheTargetType["CACHE_TARGET_AUTO"] = 0] = "CACHE_TARGET_AUTO";
|
|
59
|
+
CacheTargetType[CacheTargetType["CACHE_TARGET_DEVICE"] = 1] = "CACHE_TARGET_DEVICE";
|
|
60
|
+
CacheTargetType[CacheTargetType["CACHE_TARGET_USER"] = 2] = "CACHE_TARGET_USER";
|
|
61
|
+
CacheTargetType[CacheTargetType["CACHE_TARGET_KEY"] = 3] = "CACHE_TARGET_KEY";
|
|
62
|
+
CacheTargetType[CacheTargetType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
63
|
+
})(CacheTargetType || (CacheTargetType = {}));
|
|
45
64
|
export var DriverBehaviorReportRequest_GroupBy;
|
|
46
65
|
(function (DriverBehaviorReportRequest_GroupBy) {
|
|
47
66
|
DriverBehaviorReportRequest_GroupBy[DriverBehaviorReportRequest_GroupBy["GROUP_BY_UNSPECIFIED"] = 0] = "GROUP_BY_UNSPECIFIED";
|
|
@@ -14499,6 +14518,1814 @@ export const UserInfoResponse = {
|
|
|
14499
14518
|
return message;
|
|
14500
14519
|
},
|
|
14501
14520
|
};
|
|
14521
|
+
function createBaseCacheEntryProto() {
|
|
14522
|
+
return {
|
|
14523
|
+
name: "",
|
|
14524
|
+
server: 0,
|
|
14525
|
+
key: "",
|
|
14526
|
+
field: "",
|
|
14527
|
+
keyType: "",
|
|
14528
|
+
exists: false,
|
|
14529
|
+
ttl: Long.ZERO,
|
|
14530
|
+
sizeBytes: Long.ZERO,
|
|
14531
|
+
format: "",
|
|
14532
|
+
protoType: "",
|
|
14533
|
+
decodedJson: "",
|
|
14534
|
+
rawPreview: "",
|
|
14535
|
+
error: "",
|
|
14536
|
+
};
|
|
14537
|
+
}
|
|
14538
|
+
export const CacheEntryProto = {
|
|
14539
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14540
|
+
if (message.name !== "") {
|
|
14541
|
+
writer.uint32(10).string(message.name);
|
|
14542
|
+
}
|
|
14543
|
+
if (message.server !== 0) {
|
|
14544
|
+
writer.uint32(16).int32(message.server);
|
|
14545
|
+
}
|
|
14546
|
+
if (message.key !== "") {
|
|
14547
|
+
writer.uint32(26).string(message.key);
|
|
14548
|
+
}
|
|
14549
|
+
if (message.field !== "") {
|
|
14550
|
+
writer.uint32(34).string(message.field);
|
|
14551
|
+
}
|
|
14552
|
+
if (message.keyType !== "") {
|
|
14553
|
+
writer.uint32(42).string(message.keyType);
|
|
14554
|
+
}
|
|
14555
|
+
if (message.exists !== false) {
|
|
14556
|
+
writer.uint32(48).bool(message.exists);
|
|
14557
|
+
}
|
|
14558
|
+
if (!message.ttl.equals(Long.ZERO)) {
|
|
14559
|
+
writer.uint32(56).int64(message.ttl.toString());
|
|
14560
|
+
}
|
|
14561
|
+
if (!message.sizeBytes.equals(Long.ZERO)) {
|
|
14562
|
+
writer.uint32(64).int64(message.sizeBytes.toString());
|
|
14563
|
+
}
|
|
14564
|
+
if (message.format !== "") {
|
|
14565
|
+
writer.uint32(74).string(message.format);
|
|
14566
|
+
}
|
|
14567
|
+
if (message.protoType !== "") {
|
|
14568
|
+
writer.uint32(82).string(message.protoType);
|
|
14569
|
+
}
|
|
14570
|
+
if (message.decodedJson !== "") {
|
|
14571
|
+
writer.uint32(90).string(message.decodedJson);
|
|
14572
|
+
}
|
|
14573
|
+
if (message.rawPreview !== "") {
|
|
14574
|
+
writer.uint32(98).string(message.rawPreview);
|
|
14575
|
+
}
|
|
14576
|
+
if (message.error !== "") {
|
|
14577
|
+
writer.uint32(106).string(message.error);
|
|
14578
|
+
}
|
|
14579
|
+
return writer;
|
|
14580
|
+
},
|
|
14581
|
+
decode(input, length) {
|
|
14582
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14583
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14584
|
+
const message = createBaseCacheEntryProto();
|
|
14585
|
+
while (reader.pos < end) {
|
|
14586
|
+
const tag = reader.uint32();
|
|
14587
|
+
switch (tag >>> 3) {
|
|
14588
|
+
case 1: {
|
|
14589
|
+
if (tag !== 10) {
|
|
14590
|
+
break;
|
|
14591
|
+
}
|
|
14592
|
+
message.name = reader.string();
|
|
14593
|
+
continue;
|
|
14594
|
+
}
|
|
14595
|
+
case 2: {
|
|
14596
|
+
if (tag !== 16) {
|
|
14597
|
+
break;
|
|
14598
|
+
}
|
|
14599
|
+
message.server = reader.int32();
|
|
14600
|
+
continue;
|
|
14601
|
+
}
|
|
14602
|
+
case 3: {
|
|
14603
|
+
if (tag !== 26) {
|
|
14604
|
+
break;
|
|
14605
|
+
}
|
|
14606
|
+
message.key = reader.string();
|
|
14607
|
+
continue;
|
|
14608
|
+
}
|
|
14609
|
+
case 4: {
|
|
14610
|
+
if (tag !== 34) {
|
|
14611
|
+
break;
|
|
14612
|
+
}
|
|
14613
|
+
message.field = reader.string();
|
|
14614
|
+
continue;
|
|
14615
|
+
}
|
|
14616
|
+
case 5: {
|
|
14617
|
+
if (tag !== 42) {
|
|
14618
|
+
break;
|
|
14619
|
+
}
|
|
14620
|
+
message.keyType = reader.string();
|
|
14621
|
+
continue;
|
|
14622
|
+
}
|
|
14623
|
+
case 6: {
|
|
14624
|
+
if (tag !== 48) {
|
|
14625
|
+
break;
|
|
14626
|
+
}
|
|
14627
|
+
message.exists = reader.bool();
|
|
14628
|
+
continue;
|
|
14629
|
+
}
|
|
14630
|
+
case 7: {
|
|
14631
|
+
if (tag !== 56) {
|
|
14632
|
+
break;
|
|
14633
|
+
}
|
|
14634
|
+
message.ttl = Long.fromString(reader.int64().toString());
|
|
14635
|
+
continue;
|
|
14636
|
+
}
|
|
14637
|
+
case 8: {
|
|
14638
|
+
if (tag !== 64) {
|
|
14639
|
+
break;
|
|
14640
|
+
}
|
|
14641
|
+
message.sizeBytes = Long.fromString(reader.int64().toString());
|
|
14642
|
+
continue;
|
|
14643
|
+
}
|
|
14644
|
+
case 9: {
|
|
14645
|
+
if (tag !== 74) {
|
|
14646
|
+
break;
|
|
14647
|
+
}
|
|
14648
|
+
message.format = reader.string();
|
|
14649
|
+
continue;
|
|
14650
|
+
}
|
|
14651
|
+
case 10: {
|
|
14652
|
+
if (tag !== 82) {
|
|
14653
|
+
break;
|
|
14654
|
+
}
|
|
14655
|
+
message.protoType = reader.string();
|
|
14656
|
+
continue;
|
|
14657
|
+
}
|
|
14658
|
+
case 11: {
|
|
14659
|
+
if (tag !== 90) {
|
|
14660
|
+
break;
|
|
14661
|
+
}
|
|
14662
|
+
message.decodedJson = reader.string();
|
|
14663
|
+
continue;
|
|
14664
|
+
}
|
|
14665
|
+
case 12: {
|
|
14666
|
+
if (tag !== 98) {
|
|
14667
|
+
break;
|
|
14668
|
+
}
|
|
14669
|
+
message.rawPreview = reader.string();
|
|
14670
|
+
continue;
|
|
14671
|
+
}
|
|
14672
|
+
case 13: {
|
|
14673
|
+
if (tag !== 106) {
|
|
14674
|
+
break;
|
|
14675
|
+
}
|
|
14676
|
+
message.error = reader.string();
|
|
14677
|
+
continue;
|
|
14678
|
+
}
|
|
14679
|
+
}
|
|
14680
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14681
|
+
break;
|
|
14682
|
+
}
|
|
14683
|
+
reader.skip(tag & 7);
|
|
14684
|
+
}
|
|
14685
|
+
return message;
|
|
14686
|
+
},
|
|
14687
|
+
create(base) {
|
|
14688
|
+
return CacheEntryProto.fromPartial(base ?? {});
|
|
14689
|
+
},
|
|
14690
|
+
fromPartial(object) {
|
|
14691
|
+
const message = createBaseCacheEntryProto();
|
|
14692
|
+
message.name = object.name ?? "";
|
|
14693
|
+
message.server = object.server ?? 0;
|
|
14694
|
+
message.key = object.key ?? "";
|
|
14695
|
+
message.field = object.field ?? "";
|
|
14696
|
+
message.keyType = object.keyType ?? "";
|
|
14697
|
+
message.exists = object.exists ?? false;
|
|
14698
|
+
message.ttl = (object.ttl !== undefined && object.ttl !== null) ? Long.fromValue(object.ttl) : Long.ZERO;
|
|
14699
|
+
message.sizeBytes = (object.sizeBytes !== undefined && object.sizeBytes !== null)
|
|
14700
|
+
? Long.fromValue(object.sizeBytes)
|
|
14701
|
+
: Long.ZERO;
|
|
14702
|
+
message.format = object.format ?? "";
|
|
14703
|
+
message.protoType = object.protoType ?? "";
|
|
14704
|
+
message.decodedJson = object.decodedJson ?? "";
|
|
14705
|
+
message.rawPreview = object.rawPreview ?? "";
|
|
14706
|
+
message.error = object.error ?? "";
|
|
14707
|
+
return message;
|
|
14708
|
+
},
|
|
14709
|
+
};
|
|
14710
|
+
function createBaseDebugPersonInfo() {
|
|
14711
|
+
return { id: Long.UZERO, organizationId: Long.UZERO, organizationName: "", roleId: undefined, name: undefined };
|
|
14712
|
+
}
|
|
14713
|
+
export const DebugPersonInfo = {
|
|
14714
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14715
|
+
if (!message.id.equals(Long.UZERO)) {
|
|
14716
|
+
writer.uint32(8).uint64(message.id.toString());
|
|
14717
|
+
}
|
|
14718
|
+
if (!message.organizationId.equals(Long.UZERO)) {
|
|
14719
|
+
writer.uint32(16).uint64(message.organizationId.toString());
|
|
14720
|
+
}
|
|
14721
|
+
if (message.organizationName !== "") {
|
|
14722
|
+
writer.uint32(26).string(message.organizationName);
|
|
14723
|
+
}
|
|
14724
|
+
if (message.roleId !== undefined) {
|
|
14725
|
+
writer.uint32(32).uint64(message.roleId.toString());
|
|
14726
|
+
}
|
|
14727
|
+
if (message.name !== undefined) {
|
|
14728
|
+
writer.uint32(42).string(message.name);
|
|
14729
|
+
}
|
|
14730
|
+
return writer;
|
|
14731
|
+
},
|
|
14732
|
+
decode(input, length) {
|
|
14733
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14734
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14735
|
+
const message = createBaseDebugPersonInfo();
|
|
14736
|
+
while (reader.pos < end) {
|
|
14737
|
+
const tag = reader.uint32();
|
|
14738
|
+
switch (tag >>> 3) {
|
|
14739
|
+
case 1: {
|
|
14740
|
+
if (tag !== 8) {
|
|
14741
|
+
break;
|
|
14742
|
+
}
|
|
14743
|
+
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
14744
|
+
continue;
|
|
14745
|
+
}
|
|
14746
|
+
case 2: {
|
|
14747
|
+
if (tag !== 16) {
|
|
14748
|
+
break;
|
|
14749
|
+
}
|
|
14750
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
14751
|
+
continue;
|
|
14752
|
+
}
|
|
14753
|
+
case 3: {
|
|
14754
|
+
if (tag !== 26) {
|
|
14755
|
+
break;
|
|
14756
|
+
}
|
|
14757
|
+
message.organizationName = reader.string();
|
|
14758
|
+
continue;
|
|
14759
|
+
}
|
|
14760
|
+
case 4: {
|
|
14761
|
+
if (tag !== 32) {
|
|
14762
|
+
break;
|
|
14763
|
+
}
|
|
14764
|
+
message.roleId = Long.fromString(reader.uint64().toString(), true);
|
|
14765
|
+
continue;
|
|
14766
|
+
}
|
|
14767
|
+
case 5: {
|
|
14768
|
+
if (tag !== 42) {
|
|
14769
|
+
break;
|
|
14770
|
+
}
|
|
14771
|
+
message.name = reader.string();
|
|
14772
|
+
continue;
|
|
14773
|
+
}
|
|
14774
|
+
}
|
|
14775
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14776
|
+
break;
|
|
14777
|
+
}
|
|
14778
|
+
reader.skip(tag & 7);
|
|
14779
|
+
}
|
|
14780
|
+
return message;
|
|
14781
|
+
},
|
|
14782
|
+
create(base) {
|
|
14783
|
+
return DebugPersonInfo.fromPartial(base ?? {});
|
|
14784
|
+
},
|
|
14785
|
+
fromPartial(object) {
|
|
14786
|
+
const message = createBaseDebugPersonInfo();
|
|
14787
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
14788
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
14789
|
+
? Long.fromValue(object.organizationId)
|
|
14790
|
+
: Long.UZERO;
|
|
14791
|
+
message.organizationName = object.organizationName ?? "";
|
|
14792
|
+
message.roleId = (object.roleId !== undefined && object.roleId !== null)
|
|
14793
|
+
? Long.fromValue(object.roleId)
|
|
14794
|
+
: undefined;
|
|
14795
|
+
message.name = object.name ?? undefined;
|
|
14796
|
+
return message;
|
|
14797
|
+
},
|
|
14798
|
+
};
|
|
14799
|
+
function createBaseDebugTokenInfo() {
|
|
14800
|
+
return { id: Long.UZERO, name: "", lastUsedAt: undefined, expiresAt: undefined };
|
|
14801
|
+
}
|
|
14802
|
+
export const DebugTokenInfo = {
|
|
14803
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14804
|
+
if (!message.id.equals(Long.UZERO)) {
|
|
14805
|
+
writer.uint32(8).uint64(message.id.toString());
|
|
14806
|
+
}
|
|
14807
|
+
if (message.name !== "") {
|
|
14808
|
+
writer.uint32(18).string(message.name);
|
|
14809
|
+
}
|
|
14810
|
+
if (message.lastUsedAt !== undefined) {
|
|
14811
|
+
Timestamp.encode(toTimestamp(message.lastUsedAt), writer.uint32(26).fork()).join();
|
|
14812
|
+
}
|
|
14813
|
+
if (message.expiresAt !== undefined) {
|
|
14814
|
+
Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(34).fork()).join();
|
|
14815
|
+
}
|
|
14816
|
+
return writer;
|
|
14817
|
+
},
|
|
14818
|
+
decode(input, length) {
|
|
14819
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14820
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14821
|
+
const message = createBaseDebugTokenInfo();
|
|
14822
|
+
while (reader.pos < end) {
|
|
14823
|
+
const tag = reader.uint32();
|
|
14824
|
+
switch (tag >>> 3) {
|
|
14825
|
+
case 1: {
|
|
14826
|
+
if (tag !== 8) {
|
|
14827
|
+
break;
|
|
14828
|
+
}
|
|
14829
|
+
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
14830
|
+
continue;
|
|
14831
|
+
}
|
|
14832
|
+
case 2: {
|
|
14833
|
+
if (tag !== 18) {
|
|
14834
|
+
break;
|
|
14835
|
+
}
|
|
14836
|
+
message.name = reader.string();
|
|
14837
|
+
continue;
|
|
14838
|
+
}
|
|
14839
|
+
case 3: {
|
|
14840
|
+
if (tag !== 26) {
|
|
14841
|
+
break;
|
|
14842
|
+
}
|
|
14843
|
+
message.lastUsedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
14844
|
+
continue;
|
|
14845
|
+
}
|
|
14846
|
+
case 4: {
|
|
14847
|
+
if (tag !== 34) {
|
|
14848
|
+
break;
|
|
14849
|
+
}
|
|
14850
|
+
message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
14851
|
+
continue;
|
|
14852
|
+
}
|
|
14853
|
+
}
|
|
14854
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14855
|
+
break;
|
|
14856
|
+
}
|
|
14857
|
+
reader.skip(tag & 7);
|
|
14858
|
+
}
|
|
14859
|
+
return message;
|
|
14860
|
+
},
|
|
14861
|
+
create(base) {
|
|
14862
|
+
return DebugTokenInfo.fromPartial(base ?? {});
|
|
14863
|
+
},
|
|
14864
|
+
fromPartial(object) {
|
|
14865
|
+
const message = createBaseDebugTokenInfo();
|
|
14866
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
14867
|
+
message.name = object.name ?? "";
|
|
14868
|
+
message.lastUsedAt = object.lastUsedAt ?? undefined;
|
|
14869
|
+
message.expiresAt = object.expiresAt ?? undefined;
|
|
14870
|
+
return message;
|
|
14871
|
+
},
|
|
14872
|
+
};
|
|
14873
|
+
function createBaseDebugTargetDBInfo() {
|
|
14874
|
+
return {
|
|
14875
|
+
id: Long.UZERO,
|
|
14876
|
+
imei: "",
|
|
14877
|
+
phone: "",
|
|
14878
|
+
email: undefined,
|
|
14879
|
+
organizationId: Long.UZERO,
|
|
14880
|
+
organizationName: "",
|
|
14881
|
+
trackerModel: "",
|
|
14882
|
+
protocol: "",
|
|
14883
|
+
carName: undefined,
|
|
14884
|
+
plateNumber: undefined,
|
|
14885
|
+
simCard: undefined,
|
|
14886
|
+
iccId: undefined,
|
|
14887
|
+
timezone: undefined,
|
|
14888
|
+
isUnlimited: undefined,
|
|
14889
|
+
receiveAt: undefined,
|
|
14890
|
+
expiresAt: undefined,
|
|
14891
|
+
connectAt: undefined,
|
|
14892
|
+
createdAt: undefined,
|
|
14893
|
+
ownerId: undefined,
|
|
14894
|
+
ownerPhone: undefined,
|
|
14895
|
+
people: [],
|
|
14896
|
+
tokens: [],
|
|
14897
|
+
};
|
|
14898
|
+
}
|
|
14899
|
+
export const DebugTargetDBInfo = {
|
|
14900
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14901
|
+
if (!message.id.equals(Long.UZERO)) {
|
|
14902
|
+
writer.uint32(8).uint64(message.id.toString());
|
|
14903
|
+
}
|
|
14904
|
+
if (message.imei !== "") {
|
|
14905
|
+
writer.uint32(18).string(message.imei);
|
|
14906
|
+
}
|
|
14907
|
+
if (message.phone !== "") {
|
|
14908
|
+
writer.uint32(26).string(message.phone);
|
|
14909
|
+
}
|
|
14910
|
+
if (message.email !== undefined) {
|
|
14911
|
+
writer.uint32(34).string(message.email);
|
|
14912
|
+
}
|
|
14913
|
+
if (!message.organizationId.equals(Long.UZERO)) {
|
|
14914
|
+
writer.uint32(40).uint64(message.organizationId.toString());
|
|
14915
|
+
}
|
|
14916
|
+
if (message.organizationName !== "") {
|
|
14917
|
+
writer.uint32(50).string(message.organizationName);
|
|
14918
|
+
}
|
|
14919
|
+
if (message.trackerModel !== "") {
|
|
14920
|
+
writer.uint32(58).string(message.trackerModel);
|
|
14921
|
+
}
|
|
14922
|
+
if (message.protocol !== "") {
|
|
14923
|
+
writer.uint32(66).string(message.protocol);
|
|
14924
|
+
}
|
|
14925
|
+
if (message.carName !== undefined) {
|
|
14926
|
+
writer.uint32(74).string(message.carName);
|
|
14927
|
+
}
|
|
14928
|
+
if (message.plateNumber !== undefined) {
|
|
14929
|
+
writer.uint32(82).string(message.plateNumber);
|
|
14930
|
+
}
|
|
14931
|
+
if (message.simCard !== undefined) {
|
|
14932
|
+
writer.uint32(90).string(message.simCard);
|
|
14933
|
+
}
|
|
14934
|
+
if (message.iccId !== undefined) {
|
|
14935
|
+
writer.uint32(98).string(message.iccId);
|
|
14936
|
+
}
|
|
14937
|
+
if (message.timezone !== undefined) {
|
|
14938
|
+
writer.uint32(106).string(message.timezone);
|
|
14939
|
+
}
|
|
14940
|
+
if (message.isUnlimited !== undefined) {
|
|
14941
|
+
writer.uint32(112).bool(message.isUnlimited);
|
|
14942
|
+
}
|
|
14943
|
+
if (message.receiveAt !== undefined) {
|
|
14944
|
+
Timestamp.encode(toTimestamp(message.receiveAt), writer.uint32(122).fork()).join();
|
|
14945
|
+
}
|
|
14946
|
+
if (message.expiresAt !== undefined) {
|
|
14947
|
+
Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(130).fork()).join();
|
|
14948
|
+
}
|
|
14949
|
+
if (message.connectAt !== undefined) {
|
|
14950
|
+
Timestamp.encode(toTimestamp(message.connectAt), writer.uint32(138).fork()).join();
|
|
14951
|
+
}
|
|
14952
|
+
if (message.createdAt !== undefined) {
|
|
14953
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(146).fork()).join();
|
|
14954
|
+
}
|
|
14955
|
+
if (message.ownerId !== undefined) {
|
|
14956
|
+
writer.uint32(152).uint64(message.ownerId.toString());
|
|
14957
|
+
}
|
|
14958
|
+
if (message.ownerPhone !== undefined) {
|
|
14959
|
+
writer.uint32(162).string(message.ownerPhone);
|
|
14960
|
+
}
|
|
14961
|
+
for (const v of message.people) {
|
|
14962
|
+
DebugPersonInfo.encode(v, writer.uint32(170).fork()).join();
|
|
14963
|
+
}
|
|
14964
|
+
for (const v of message.tokens) {
|
|
14965
|
+
DebugTokenInfo.encode(v, writer.uint32(178).fork()).join();
|
|
14966
|
+
}
|
|
14967
|
+
return writer;
|
|
14968
|
+
},
|
|
14969
|
+
decode(input, length) {
|
|
14970
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
14971
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14972
|
+
const message = createBaseDebugTargetDBInfo();
|
|
14973
|
+
while (reader.pos < end) {
|
|
14974
|
+
const tag = reader.uint32();
|
|
14975
|
+
switch (tag >>> 3) {
|
|
14976
|
+
case 1: {
|
|
14977
|
+
if (tag !== 8) {
|
|
14978
|
+
break;
|
|
14979
|
+
}
|
|
14980
|
+
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
14981
|
+
continue;
|
|
14982
|
+
}
|
|
14983
|
+
case 2: {
|
|
14984
|
+
if (tag !== 18) {
|
|
14985
|
+
break;
|
|
14986
|
+
}
|
|
14987
|
+
message.imei = reader.string();
|
|
14988
|
+
continue;
|
|
14989
|
+
}
|
|
14990
|
+
case 3: {
|
|
14991
|
+
if (tag !== 26) {
|
|
14992
|
+
break;
|
|
14993
|
+
}
|
|
14994
|
+
message.phone = reader.string();
|
|
14995
|
+
continue;
|
|
14996
|
+
}
|
|
14997
|
+
case 4: {
|
|
14998
|
+
if (tag !== 34) {
|
|
14999
|
+
break;
|
|
15000
|
+
}
|
|
15001
|
+
message.email = reader.string();
|
|
15002
|
+
continue;
|
|
15003
|
+
}
|
|
15004
|
+
case 5: {
|
|
15005
|
+
if (tag !== 40) {
|
|
15006
|
+
break;
|
|
15007
|
+
}
|
|
15008
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
15009
|
+
continue;
|
|
15010
|
+
}
|
|
15011
|
+
case 6: {
|
|
15012
|
+
if (tag !== 50) {
|
|
15013
|
+
break;
|
|
15014
|
+
}
|
|
15015
|
+
message.organizationName = reader.string();
|
|
15016
|
+
continue;
|
|
15017
|
+
}
|
|
15018
|
+
case 7: {
|
|
15019
|
+
if (tag !== 58) {
|
|
15020
|
+
break;
|
|
15021
|
+
}
|
|
15022
|
+
message.trackerModel = reader.string();
|
|
15023
|
+
continue;
|
|
15024
|
+
}
|
|
15025
|
+
case 8: {
|
|
15026
|
+
if (tag !== 66) {
|
|
15027
|
+
break;
|
|
15028
|
+
}
|
|
15029
|
+
message.protocol = reader.string();
|
|
15030
|
+
continue;
|
|
15031
|
+
}
|
|
15032
|
+
case 9: {
|
|
15033
|
+
if (tag !== 74) {
|
|
15034
|
+
break;
|
|
15035
|
+
}
|
|
15036
|
+
message.carName = reader.string();
|
|
15037
|
+
continue;
|
|
15038
|
+
}
|
|
15039
|
+
case 10: {
|
|
15040
|
+
if (tag !== 82) {
|
|
15041
|
+
break;
|
|
15042
|
+
}
|
|
15043
|
+
message.plateNumber = reader.string();
|
|
15044
|
+
continue;
|
|
15045
|
+
}
|
|
15046
|
+
case 11: {
|
|
15047
|
+
if (tag !== 90) {
|
|
15048
|
+
break;
|
|
15049
|
+
}
|
|
15050
|
+
message.simCard = reader.string();
|
|
15051
|
+
continue;
|
|
15052
|
+
}
|
|
15053
|
+
case 12: {
|
|
15054
|
+
if (tag !== 98) {
|
|
15055
|
+
break;
|
|
15056
|
+
}
|
|
15057
|
+
message.iccId = reader.string();
|
|
15058
|
+
continue;
|
|
15059
|
+
}
|
|
15060
|
+
case 13: {
|
|
15061
|
+
if (tag !== 106) {
|
|
15062
|
+
break;
|
|
15063
|
+
}
|
|
15064
|
+
message.timezone = reader.string();
|
|
15065
|
+
continue;
|
|
15066
|
+
}
|
|
15067
|
+
case 14: {
|
|
15068
|
+
if (tag !== 112) {
|
|
15069
|
+
break;
|
|
15070
|
+
}
|
|
15071
|
+
message.isUnlimited = reader.bool();
|
|
15072
|
+
continue;
|
|
15073
|
+
}
|
|
15074
|
+
case 15: {
|
|
15075
|
+
if (tag !== 122) {
|
|
15076
|
+
break;
|
|
15077
|
+
}
|
|
15078
|
+
message.receiveAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
15079
|
+
continue;
|
|
15080
|
+
}
|
|
15081
|
+
case 16: {
|
|
15082
|
+
if (tag !== 130) {
|
|
15083
|
+
break;
|
|
15084
|
+
}
|
|
15085
|
+
message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
15086
|
+
continue;
|
|
15087
|
+
}
|
|
15088
|
+
case 17: {
|
|
15089
|
+
if (tag !== 138) {
|
|
15090
|
+
break;
|
|
15091
|
+
}
|
|
15092
|
+
message.connectAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
15093
|
+
continue;
|
|
15094
|
+
}
|
|
15095
|
+
case 18: {
|
|
15096
|
+
if (tag !== 146) {
|
|
15097
|
+
break;
|
|
15098
|
+
}
|
|
15099
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
15100
|
+
continue;
|
|
15101
|
+
}
|
|
15102
|
+
case 19: {
|
|
15103
|
+
if (tag !== 152) {
|
|
15104
|
+
break;
|
|
15105
|
+
}
|
|
15106
|
+
message.ownerId = Long.fromString(reader.uint64().toString(), true);
|
|
15107
|
+
continue;
|
|
15108
|
+
}
|
|
15109
|
+
case 20: {
|
|
15110
|
+
if (tag !== 162) {
|
|
15111
|
+
break;
|
|
15112
|
+
}
|
|
15113
|
+
message.ownerPhone = reader.string();
|
|
15114
|
+
continue;
|
|
15115
|
+
}
|
|
15116
|
+
case 21: {
|
|
15117
|
+
if (tag !== 170) {
|
|
15118
|
+
break;
|
|
15119
|
+
}
|
|
15120
|
+
message.people.push(DebugPersonInfo.decode(reader, reader.uint32()));
|
|
15121
|
+
continue;
|
|
15122
|
+
}
|
|
15123
|
+
case 22: {
|
|
15124
|
+
if (tag !== 178) {
|
|
15125
|
+
break;
|
|
15126
|
+
}
|
|
15127
|
+
message.tokens.push(DebugTokenInfo.decode(reader, reader.uint32()));
|
|
15128
|
+
continue;
|
|
15129
|
+
}
|
|
15130
|
+
}
|
|
15131
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15132
|
+
break;
|
|
15133
|
+
}
|
|
15134
|
+
reader.skip(tag & 7);
|
|
15135
|
+
}
|
|
15136
|
+
return message;
|
|
15137
|
+
},
|
|
15138
|
+
create(base) {
|
|
15139
|
+
return DebugTargetDBInfo.fromPartial(base ?? {});
|
|
15140
|
+
},
|
|
15141
|
+
fromPartial(object) {
|
|
15142
|
+
const message = createBaseDebugTargetDBInfo();
|
|
15143
|
+
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
15144
|
+
message.imei = object.imei ?? "";
|
|
15145
|
+
message.phone = object.phone ?? "";
|
|
15146
|
+
message.email = object.email ?? undefined;
|
|
15147
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
15148
|
+
? Long.fromValue(object.organizationId)
|
|
15149
|
+
: Long.UZERO;
|
|
15150
|
+
message.organizationName = object.organizationName ?? "";
|
|
15151
|
+
message.trackerModel = object.trackerModel ?? "";
|
|
15152
|
+
message.protocol = object.protocol ?? "";
|
|
15153
|
+
message.carName = object.carName ?? undefined;
|
|
15154
|
+
message.plateNumber = object.plateNumber ?? undefined;
|
|
15155
|
+
message.simCard = object.simCard ?? undefined;
|
|
15156
|
+
message.iccId = object.iccId ?? undefined;
|
|
15157
|
+
message.timezone = object.timezone ?? undefined;
|
|
15158
|
+
message.isUnlimited = object.isUnlimited ?? undefined;
|
|
15159
|
+
message.receiveAt = object.receiveAt ?? undefined;
|
|
15160
|
+
message.expiresAt = object.expiresAt ?? undefined;
|
|
15161
|
+
message.connectAt = object.connectAt ?? undefined;
|
|
15162
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
15163
|
+
message.ownerId = (object.ownerId !== undefined && object.ownerId !== null)
|
|
15164
|
+
? Long.fromValue(object.ownerId)
|
|
15165
|
+
: undefined;
|
|
15166
|
+
message.ownerPhone = object.ownerPhone ?? undefined;
|
|
15167
|
+
message.people = object.people?.map((e) => DebugPersonInfo.fromPartial(e)) || [];
|
|
15168
|
+
message.tokens = object.tokens?.map((e) => DebugTokenInfo.fromPartial(e)) || [];
|
|
15169
|
+
return message;
|
|
15170
|
+
},
|
|
15171
|
+
};
|
|
15172
|
+
function createBaseDebugSearchRequest() {
|
|
15173
|
+
return { query: "", type: 0, server: 0 };
|
|
15174
|
+
}
|
|
15175
|
+
export const DebugSearchRequest = {
|
|
15176
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15177
|
+
if (message.query !== "") {
|
|
15178
|
+
writer.uint32(10).string(message.query);
|
|
15179
|
+
}
|
|
15180
|
+
if (message.type !== 0) {
|
|
15181
|
+
writer.uint32(16).int32(message.type);
|
|
15182
|
+
}
|
|
15183
|
+
if (message.server !== 0) {
|
|
15184
|
+
writer.uint32(24).int32(message.server);
|
|
15185
|
+
}
|
|
15186
|
+
return writer;
|
|
15187
|
+
},
|
|
15188
|
+
decode(input, length) {
|
|
15189
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15190
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15191
|
+
const message = createBaseDebugSearchRequest();
|
|
15192
|
+
while (reader.pos < end) {
|
|
15193
|
+
const tag = reader.uint32();
|
|
15194
|
+
switch (tag >>> 3) {
|
|
15195
|
+
case 1: {
|
|
15196
|
+
if (tag !== 10) {
|
|
15197
|
+
break;
|
|
15198
|
+
}
|
|
15199
|
+
message.query = reader.string();
|
|
15200
|
+
continue;
|
|
15201
|
+
}
|
|
15202
|
+
case 2: {
|
|
15203
|
+
if (tag !== 16) {
|
|
15204
|
+
break;
|
|
15205
|
+
}
|
|
15206
|
+
message.type = reader.int32();
|
|
15207
|
+
continue;
|
|
15208
|
+
}
|
|
15209
|
+
case 3: {
|
|
15210
|
+
if (tag !== 24) {
|
|
15211
|
+
break;
|
|
15212
|
+
}
|
|
15213
|
+
message.server = reader.int32();
|
|
15214
|
+
continue;
|
|
15215
|
+
}
|
|
15216
|
+
}
|
|
15217
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15218
|
+
break;
|
|
15219
|
+
}
|
|
15220
|
+
reader.skip(tag & 7);
|
|
15221
|
+
}
|
|
15222
|
+
return message;
|
|
15223
|
+
},
|
|
15224
|
+
create(base) {
|
|
15225
|
+
return DebugSearchRequest.fromPartial(base ?? {});
|
|
15226
|
+
},
|
|
15227
|
+
fromPartial(object) {
|
|
15228
|
+
const message = createBaseDebugSearchRequest();
|
|
15229
|
+
message.query = object.query ?? "";
|
|
15230
|
+
message.type = object.type ?? 0;
|
|
15231
|
+
message.server = object.server ?? 0;
|
|
15232
|
+
return message;
|
|
15233
|
+
},
|
|
15234
|
+
};
|
|
15235
|
+
function createBaseDebugSearchResponse() {
|
|
15236
|
+
return { targetType: 0, targetId: "", targetImei: "", dbInfo: undefined, mongoStatusJson: "", caches: [] };
|
|
15237
|
+
}
|
|
15238
|
+
export const DebugSearchResponse = {
|
|
15239
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15240
|
+
if (message.targetType !== 0) {
|
|
15241
|
+
writer.uint32(8).int32(message.targetType);
|
|
15242
|
+
}
|
|
15243
|
+
if (message.targetId !== "") {
|
|
15244
|
+
writer.uint32(18).string(message.targetId);
|
|
15245
|
+
}
|
|
15246
|
+
if (message.targetImei !== "") {
|
|
15247
|
+
writer.uint32(26).string(message.targetImei);
|
|
15248
|
+
}
|
|
15249
|
+
if (message.dbInfo !== undefined) {
|
|
15250
|
+
DebugTargetDBInfo.encode(message.dbInfo, writer.uint32(34).fork()).join();
|
|
15251
|
+
}
|
|
15252
|
+
if (message.mongoStatusJson !== "") {
|
|
15253
|
+
writer.uint32(42).string(message.mongoStatusJson);
|
|
15254
|
+
}
|
|
15255
|
+
for (const v of message.caches) {
|
|
15256
|
+
CacheEntryProto.encode(v, writer.uint32(50).fork()).join();
|
|
15257
|
+
}
|
|
15258
|
+
return writer;
|
|
15259
|
+
},
|
|
15260
|
+
decode(input, length) {
|
|
15261
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15262
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15263
|
+
const message = createBaseDebugSearchResponse();
|
|
15264
|
+
while (reader.pos < end) {
|
|
15265
|
+
const tag = reader.uint32();
|
|
15266
|
+
switch (tag >>> 3) {
|
|
15267
|
+
case 1: {
|
|
15268
|
+
if (tag !== 8) {
|
|
15269
|
+
break;
|
|
15270
|
+
}
|
|
15271
|
+
message.targetType = reader.int32();
|
|
15272
|
+
continue;
|
|
15273
|
+
}
|
|
15274
|
+
case 2: {
|
|
15275
|
+
if (tag !== 18) {
|
|
15276
|
+
break;
|
|
15277
|
+
}
|
|
15278
|
+
message.targetId = reader.string();
|
|
15279
|
+
continue;
|
|
15280
|
+
}
|
|
15281
|
+
case 3: {
|
|
15282
|
+
if (tag !== 26) {
|
|
15283
|
+
break;
|
|
15284
|
+
}
|
|
15285
|
+
message.targetImei = reader.string();
|
|
15286
|
+
continue;
|
|
15287
|
+
}
|
|
15288
|
+
case 4: {
|
|
15289
|
+
if (tag !== 34) {
|
|
15290
|
+
break;
|
|
15291
|
+
}
|
|
15292
|
+
message.dbInfo = DebugTargetDBInfo.decode(reader, reader.uint32());
|
|
15293
|
+
continue;
|
|
15294
|
+
}
|
|
15295
|
+
case 5: {
|
|
15296
|
+
if (tag !== 42) {
|
|
15297
|
+
break;
|
|
15298
|
+
}
|
|
15299
|
+
message.mongoStatusJson = reader.string();
|
|
15300
|
+
continue;
|
|
15301
|
+
}
|
|
15302
|
+
case 6: {
|
|
15303
|
+
if (tag !== 50) {
|
|
15304
|
+
break;
|
|
15305
|
+
}
|
|
15306
|
+
message.caches.push(CacheEntryProto.decode(reader, reader.uint32()));
|
|
15307
|
+
continue;
|
|
15308
|
+
}
|
|
15309
|
+
}
|
|
15310
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15311
|
+
break;
|
|
15312
|
+
}
|
|
15313
|
+
reader.skip(tag & 7);
|
|
15314
|
+
}
|
|
15315
|
+
return message;
|
|
15316
|
+
},
|
|
15317
|
+
create(base) {
|
|
15318
|
+
return DebugSearchResponse.fromPartial(base ?? {});
|
|
15319
|
+
},
|
|
15320
|
+
fromPartial(object) {
|
|
15321
|
+
const message = createBaseDebugSearchResponse();
|
|
15322
|
+
message.targetType = object.targetType ?? 0;
|
|
15323
|
+
message.targetId = object.targetId ?? "";
|
|
15324
|
+
message.targetImei = object.targetImei ?? "";
|
|
15325
|
+
message.dbInfo = (object.dbInfo !== undefined && object.dbInfo !== null)
|
|
15326
|
+
? DebugTargetDBInfo.fromPartial(object.dbInfo)
|
|
15327
|
+
: undefined;
|
|
15328
|
+
message.mongoStatusJson = object.mongoStatusJson ?? "";
|
|
15329
|
+
message.caches = object.caches?.map((e) => CacheEntryProto.fromPartial(e)) || [];
|
|
15330
|
+
return message;
|
|
15331
|
+
},
|
|
15332
|
+
};
|
|
15333
|
+
function createBaseDebugCacheGetRequest() {
|
|
15334
|
+
return { server: 0, key: "", field: "" };
|
|
15335
|
+
}
|
|
15336
|
+
export const DebugCacheGetRequest = {
|
|
15337
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15338
|
+
if (message.server !== 0) {
|
|
15339
|
+
writer.uint32(8).int32(message.server);
|
|
15340
|
+
}
|
|
15341
|
+
if (message.key !== "") {
|
|
15342
|
+
writer.uint32(18).string(message.key);
|
|
15343
|
+
}
|
|
15344
|
+
if (message.field !== "") {
|
|
15345
|
+
writer.uint32(26).string(message.field);
|
|
15346
|
+
}
|
|
15347
|
+
return writer;
|
|
15348
|
+
},
|
|
15349
|
+
decode(input, length) {
|
|
15350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15351
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15352
|
+
const message = createBaseDebugCacheGetRequest();
|
|
15353
|
+
while (reader.pos < end) {
|
|
15354
|
+
const tag = reader.uint32();
|
|
15355
|
+
switch (tag >>> 3) {
|
|
15356
|
+
case 1: {
|
|
15357
|
+
if (tag !== 8) {
|
|
15358
|
+
break;
|
|
15359
|
+
}
|
|
15360
|
+
message.server = reader.int32();
|
|
15361
|
+
continue;
|
|
15362
|
+
}
|
|
15363
|
+
case 2: {
|
|
15364
|
+
if (tag !== 18) {
|
|
15365
|
+
break;
|
|
15366
|
+
}
|
|
15367
|
+
message.key = reader.string();
|
|
15368
|
+
continue;
|
|
15369
|
+
}
|
|
15370
|
+
case 3: {
|
|
15371
|
+
if (tag !== 26) {
|
|
15372
|
+
break;
|
|
15373
|
+
}
|
|
15374
|
+
message.field = reader.string();
|
|
15375
|
+
continue;
|
|
15376
|
+
}
|
|
15377
|
+
}
|
|
15378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15379
|
+
break;
|
|
15380
|
+
}
|
|
15381
|
+
reader.skip(tag & 7);
|
|
15382
|
+
}
|
|
15383
|
+
return message;
|
|
15384
|
+
},
|
|
15385
|
+
create(base) {
|
|
15386
|
+
return DebugCacheGetRequest.fromPartial(base ?? {});
|
|
15387
|
+
},
|
|
15388
|
+
fromPartial(object) {
|
|
15389
|
+
const message = createBaseDebugCacheGetRequest();
|
|
15390
|
+
message.server = object.server ?? 0;
|
|
15391
|
+
message.key = object.key ?? "";
|
|
15392
|
+
message.field = object.field ?? "";
|
|
15393
|
+
return message;
|
|
15394
|
+
},
|
|
15395
|
+
};
|
|
15396
|
+
function createBaseDebugCacheDeleteRequest() {
|
|
15397
|
+
return { server: 0, key: "", field: "" };
|
|
15398
|
+
}
|
|
15399
|
+
export const DebugCacheDeleteRequest = {
|
|
15400
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15401
|
+
if (message.server !== 0) {
|
|
15402
|
+
writer.uint32(8).int32(message.server);
|
|
15403
|
+
}
|
|
15404
|
+
if (message.key !== "") {
|
|
15405
|
+
writer.uint32(18).string(message.key);
|
|
15406
|
+
}
|
|
15407
|
+
if (message.field !== "") {
|
|
15408
|
+
writer.uint32(26).string(message.field);
|
|
15409
|
+
}
|
|
15410
|
+
return writer;
|
|
15411
|
+
},
|
|
15412
|
+
decode(input, length) {
|
|
15413
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15414
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15415
|
+
const message = createBaseDebugCacheDeleteRequest();
|
|
15416
|
+
while (reader.pos < end) {
|
|
15417
|
+
const tag = reader.uint32();
|
|
15418
|
+
switch (tag >>> 3) {
|
|
15419
|
+
case 1: {
|
|
15420
|
+
if (tag !== 8) {
|
|
15421
|
+
break;
|
|
15422
|
+
}
|
|
15423
|
+
message.server = reader.int32();
|
|
15424
|
+
continue;
|
|
15425
|
+
}
|
|
15426
|
+
case 2: {
|
|
15427
|
+
if (tag !== 18) {
|
|
15428
|
+
break;
|
|
15429
|
+
}
|
|
15430
|
+
message.key = reader.string();
|
|
15431
|
+
continue;
|
|
15432
|
+
}
|
|
15433
|
+
case 3: {
|
|
15434
|
+
if (tag !== 26) {
|
|
15435
|
+
break;
|
|
15436
|
+
}
|
|
15437
|
+
message.field = reader.string();
|
|
15438
|
+
continue;
|
|
15439
|
+
}
|
|
15440
|
+
}
|
|
15441
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15442
|
+
break;
|
|
15443
|
+
}
|
|
15444
|
+
reader.skip(tag & 7);
|
|
15445
|
+
}
|
|
15446
|
+
return message;
|
|
15447
|
+
},
|
|
15448
|
+
create(base) {
|
|
15449
|
+
return DebugCacheDeleteRequest.fromPartial(base ?? {});
|
|
15450
|
+
},
|
|
15451
|
+
fromPartial(object) {
|
|
15452
|
+
const message = createBaseDebugCacheDeleteRequest();
|
|
15453
|
+
message.server = object.server ?? 0;
|
|
15454
|
+
message.key = object.key ?? "";
|
|
15455
|
+
message.field = object.field ?? "";
|
|
15456
|
+
return message;
|
|
15457
|
+
},
|
|
15458
|
+
};
|
|
15459
|
+
function createBaseDebugCacheDeleteResponse() {
|
|
15460
|
+
return { success: false, deletedCount: Long.ZERO, message: "" };
|
|
15461
|
+
}
|
|
15462
|
+
export const DebugCacheDeleteResponse = {
|
|
15463
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15464
|
+
if (message.success !== false) {
|
|
15465
|
+
writer.uint32(8).bool(message.success);
|
|
15466
|
+
}
|
|
15467
|
+
if (!message.deletedCount.equals(Long.ZERO)) {
|
|
15468
|
+
writer.uint32(16).int64(message.deletedCount.toString());
|
|
15469
|
+
}
|
|
15470
|
+
if (message.message !== "") {
|
|
15471
|
+
writer.uint32(26).string(message.message);
|
|
15472
|
+
}
|
|
15473
|
+
return writer;
|
|
15474
|
+
},
|
|
15475
|
+
decode(input, length) {
|
|
15476
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15477
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15478
|
+
const message = createBaseDebugCacheDeleteResponse();
|
|
15479
|
+
while (reader.pos < end) {
|
|
15480
|
+
const tag = reader.uint32();
|
|
15481
|
+
switch (tag >>> 3) {
|
|
15482
|
+
case 1: {
|
|
15483
|
+
if (tag !== 8) {
|
|
15484
|
+
break;
|
|
15485
|
+
}
|
|
15486
|
+
message.success = reader.bool();
|
|
15487
|
+
continue;
|
|
15488
|
+
}
|
|
15489
|
+
case 2: {
|
|
15490
|
+
if (tag !== 16) {
|
|
15491
|
+
break;
|
|
15492
|
+
}
|
|
15493
|
+
message.deletedCount = Long.fromString(reader.int64().toString());
|
|
15494
|
+
continue;
|
|
15495
|
+
}
|
|
15496
|
+
case 3: {
|
|
15497
|
+
if (tag !== 26) {
|
|
15498
|
+
break;
|
|
15499
|
+
}
|
|
15500
|
+
message.message = reader.string();
|
|
15501
|
+
continue;
|
|
15502
|
+
}
|
|
15503
|
+
}
|
|
15504
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15505
|
+
break;
|
|
15506
|
+
}
|
|
15507
|
+
reader.skip(tag & 7);
|
|
15508
|
+
}
|
|
15509
|
+
return message;
|
|
15510
|
+
},
|
|
15511
|
+
create(base) {
|
|
15512
|
+
return DebugCacheDeleteResponse.fromPartial(base ?? {});
|
|
15513
|
+
},
|
|
15514
|
+
fromPartial(object) {
|
|
15515
|
+
const message = createBaseDebugCacheDeleteResponse();
|
|
15516
|
+
message.success = object.success ?? false;
|
|
15517
|
+
message.deletedCount = (object.deletedCount !== undefined && object.deletedCount !== null)
|
|
15518
|
+
? Long.fromValue(object.deletedCount)
|
|
15519
|
+
: Long.ZERO;
|
|
15520
|
+
message.message = object.message ?? "";
|
|
15521
|
+
return message;
|
|
15522
|
+
},
|
|
15523
|
+
};
|
|
15524
|
+
function createBaseDebugCacheClearTargetRequest() {
|
|
15525
|
+
return { targetType: 0, targetId: "", imei: "", phone: "", server: 0 };
|
|
15526
|
+
}
|
|
15527
|
+
export const DebugCacheClearTargetRequest = {
|
|
15528
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15529
|
+
if (message.targetType !== 0) {
|
|
15530
|
+
writer.uint32(8).int32(message.targetType);
|
|
15531
|
+
}
|
|
15532
|
+
if (message.targetId !== "") {
|
|
15533
|
+
writer.uint32(18).string(message.targetId);
|
|
15534
|
+
}
|
|
15535
|
+
if (message.imei !== "") {
|
|
15536
|
+
writer.uint32(26).string(message.imei);
|
|
15537
|
+
}
|
|
15538
|
+
if (message.phone !== "") {
|
|
15539
|
+
writer.uint32(34).string(message.phone);
|
|
15540
|
+
}
|
|
15541
|
+
if (message.server !== 0) {
|
|
15542
|
+
writer.uint32(40).int32(message.server);
|
|
15543
|
+
}
|
|
15544
|
+
return writer;
|
|
15545
|
+
},
|
|
15546
|
+
decode(input, length) {
|
|
15547
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15548
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15549
|
+
const message = createBaseDebugCacheClearTargetRequest();
|
|
15550
|
+
while (reader.pos < end) {
|
|
15551
|
+
const tag = reader.uint32();
|
|
15552
|
+
switch (tag >>> 3) {
|
|
15553
|
+
case 1: {
|
|
15554
|
+
if (tag !== 8) {
|
|
15555
|
+
break;
|
|
15556
|
+
}
|
|
15557
|
+
message.targetType = reader.int32();
|
|
15558
|
+
continue;
|
|
15559
|
+
}
|
|
15560
|
+
case 2: {
|
|
15561
|
+
if (tag !== 18) {
|
|
15562
|
+
break;
|
|
15563
|
+
}
|
|
15564
|
+
message.targetId = reader.string();
|
|
15565
|
+
continue;
|
|
15566
|
+
}
|
|
15567
|
+
case 3: {
|
|
15568
|
+
if (tag !== 26) {
|
|
15569
|
+
break;
|
|
15570
|
+
}
|
|
15571
|
+
message.imei = reader.string();
|
|
15572
|
+
continue;
|
|
15573
|
+
}
|
|
15574
|
+
case 4: {
|
|
15575
|
+
if (tag !== 34) {
|
|
15576
|
+
break;
|
|
15577
|
+
}
|
|
15578
|
+
message.phone = reader.string();
|
|
15579
|
+
continue;
|
|
15580
|
+
}
|
|
15581
|
+
case 5: {
|
|
15582
|
+
if (tag !== 40) {
|
|
15583
|
+
break;
|
|
15584
|
+
}
|
|
15585
|
+
message.server = reader.int32();
|
|
15586
|
+
continue;
|
|
15587
|
+
}
|
|
15588
|
+
}
|
|
15589
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15590
|
+
break;
|
|
15591
|
+
}
|
|
15592
|
+
reader.skip(tag & 7);
|
|
15593
|
+
}
|
|
15594
|
+
return message;
|
|
15595
|
+
},
|
|
15596
|
+
create(base) {
|
|
15597
|
+
return DebugCacheClearTargetRequest.fromPartial(base ?? {});
|
|
15598
|
+
},
|
|
15599
|
+
fromPartial(object) {
|
|
15600
|
+
const message = createBaseDebugCacheClearTargetRequest();
|
|
15601
|
+
message.targetType = object.targetType ?? 0;
|
|
15602
|
+
message.targetId = object.targetId ?? "";
|
|
15603
|
+
message.imei = object.imei ?? "";
|
|
15604
|
+
message.phone = object.phone ?? "";
|
|
15605
|
+
message.server = object.server ?? 0;
|
|
15606
|
+
return message;
|
|
15607
|
+
},
|
|
15608
|
+
};
|
|
15609
|
+
function createBaseDebugCacheClearTargetItem() {
|
|
15610
|
+
return { name: "", key: "", field: "", server: 0, success: false };
|
|
15611
|
+
}
|
|
15612
|
+
export const DebugCacheClearTargetItem = {
|
|
15613
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15614
|
+
if (message.name !== "") {
|
|
15615
|
+
writer.uint32(10).string(message.name);
|
|
15616
|
+
}
|
|
15617
|
+
if (message.key !== "") {
|
|
15618
|
+
writer.uint32(18).string(message.key);
|
|
15619
|
+
}
|
|
15620
|
+
if (message.field !== "") {
|
|
15621
|
+
writer.uint32(26).string(message.field);
|
|
15622
|
+
}
|
|
15623
|
+
if (message.server !== 0) {
|
|
15624
|
+
writer.uint32(32).int32(message.server);
|
|
15625
|
+
}
|
|
15626
|
+
if (message.success !== false) {
|
|
15627
|
+
writer.uint32(40).bool(message.success);
|
|
15628
|
+
}
|
|
15629
|
+
return writer;
|
|
15630
|
+
},
|
|
15631
|
+
decode(input, length) {
|
|
15632
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15633
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15634
|
+
const message = createBaseDebugCacheClearTargetItem();
|
|
15635
|
+
while (reader.pos < end) {
|
|
15636
|
+
const tag = reader.uint32();
|
|
15637
|
+
switch (tag >>> 3) {
|
|
15638
|
+
case 1: {
|
|
15639
|
+
if (tag !== 10) {
|
|
15640
|
+
break;
|
|
15641
|
+
}
|
|
15642
|
+
message.name = reader.string();
|
|
15643
|
+
continue;
|
|
15644
|
+
}
|
|
15645
|
+
case 2: {
|
|
15646
|
+
if (tag !== 18) {
|
|
15647
|
+
break;
|
|
15648
|
+
}
|
|
15649
|
+
message.key = reader.string();
|
|
15650
|
+
continue;
|
|
15651
|
+
}
|
|
15652
|
+
case 3: {
|
|
15653
|
+
if (tag !== 26) {
|
|
15654
|
+
break;
|
|
15655
|
+
}
|
|
15656
|
+
message.field = reader.string();
|
|
15657
|
+
continue;
|
|
15658
|
+
}
|
|
15659
|
+
case 4: {
|
|
15660
|
+
if (tag !== 32) {
|
|
15661
|
+
break;
|
|
15662
|
+
}
|
|
15663
|
+
message.server = reader.int32();
|
|
15664
|
+
continue;
|
|
15665
|
+
}
|
|
15666
|
+
case 5: {
|
|
15667
|
+
if (tag !== 40) {
|
|
15668
|
+
break;
|
|
15669
|
+
}
|
|
15670
|
+
message.success = reader.bool();
|
|
15671
|
+
continue;
|
|
15672
|
+
}
|
|
15673
|
+
}
|
|
15674
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15675
|
+
break;
|
|
15676
|
+
}
|
|
15677
|
+
reader.skip(tag & 7);
|
|
15678
|
+
}
|
|
15679
|
+
return message;
|
|
15680
|
+
},
|
|
15681
|
+
create(base) {
|
|
15682
|
+
return DebugCacheClearTargetItem.fromPartial(base ?? {});
|
|
15683
|
+
},
|
|
15684
|
+
fromPartial(object) {
|
|
15685
|
+
const message = createBaseDebugCacheClearTargetItem();
|
|
15686
|
+
message.name = object.name ?? "";
|
|
15687
|
+
message.key = object.key ?? "";
|
|
15688
|
+
message.field = object.field ?? "";
|
|
15689
|
+
message.server = object.server ?? 0;
|
|
15690
|
+
message.success = object.success ?? false;
|
|
15691
|
+
return message;
|
|
15692
|
+
},
|
|
15693
|
+
};
|
|
15694
|
+
function createBaseDebugCacheClearTargetResponse() {
|
|
15695
|
+
return { success: false, message: "", items: [] };
|
|
15696
|
+
}
|
|
15697
|
+
export const DebugCacheClearTargetResponse = {
|
|
15698
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15699
|
+
if (message.success !== false) {
|
|
15700
|
+
writer.uint32(8).bool(message.success);
|
|
15701
|
+
}
|
|
15702
|
+
if (message.message !== "") {
|
|
15703
|
+
writer.uint32(18).string(message.message);
|
|
15704
|
+
}
|
|
15705
|
+
for (const v of message.items) {
|
|
15706
|
+
DebugCacheClearTargetItem.encode(v, writer.uint32(26).fork()).join();
|
|
15707
|
+
}
|
|
15708
|
+
return writer;
|
|
15709
|
+
},
|
|
15710
|
+
decode(input, length) {
|
|
15711
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15712
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15713
|
+
const message = createBaseDebugCacheClearTargetResponse();
|
|
15714
|
+
while (reader.pos < end) {
|
|
15715
|
+
const tag = reader.uint32();
|
|
15716
|
+
switch (tag >>> 3) {
|
|
15717
|
+
case 1: {
|
|
15718
|
+
if (tag !== 8) {
|
|
15719
|
+
break;
|
|
15720
|
+
}
|
|
15721
|
+
message.success = reader.bool();
|
|
15722
|
+
continue;
|
|
15723
|
+
}
|
|
15724
|
+
case 2: {
|
|
15725
|
+
if (tag !== 18) {
|
|
15726
|
+
break;
|
|
15727
|
+
}
|
|
15728
|
+
message.message = reader.string();
|
|
15729
|
+
continue;
|
|
15730
|
+
}
|
|
15731
|
+
case 3: {
|
|
15732
|
+
if (tag !== 26) {
|
|
15733
|
+
break;
|
|
15734
|
+
}
|
|
15735
|
+
message.items.push(DebugCacheClearTargetItem.decode(reader, reader.uint32()));
|
|
15736
|
+
continue;
|
|
15737
|
+
}
|
|
15738
|
+
}
|
|
15739
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15740
|
+
break;
|
|
15741
|
+
}
|
|
15742
|
+
reader.skip(tag & 7);
|
|
15743
|
+
}
|
|
15744
|
+
return message;
|
|
15745
|
+
},
|
|
15746
|
+
create(base) {
|
|
15747
|
+
return DebugCacheClearTargetResponse.fromPartial(base ?? {});
|
|
15748
|
+
},
|
|
15749
|
+
fromPartial(object) {
|
|
15750
|
+
const message = createBaseDebugCacheClearTargetResponse();
|
|
15751
|
+
message.success = object.success ?? false;
|
|
15752
|
+
message.message = object.message ?? "";
|
|
15753
|
+
message.items = object.items?.map((e) => DebugCacheClearTargetItem.fromPartial(e)) || [];
|
|
15754
|
+
return message;
|
|
15755
|
+
},
|
|
15756
|
+
};
|
|
15757
|
+
function createBaseDebugCacheOverviewRequest() {
|
|
15758
|
+
return { server: 0 };
|
|
15759
|
+
}
|
|
15760
|
+
export const DebugCacheOverviewRequest = {
|
|
15761
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15762
|
+
if (message.server !== 0) {
|
|
15763
|
+
writer.uint32(8).int32(message.server);
|
|
15764
|
+
}
|
|
15765
|
+
return writer;
|
|
15766
|
+
},
|
|
15767
|
+
decode(input, length) {
|
|
15768
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15769
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15770
|
+
const message = createBaseDebugCacheOverviewRequest();
|
|
15771
|
+
while (reader.pos < end) {
|
|
15772
|
+
const tag = reader.uint32();
|
|
15773
|
+
switch (tag >>> 3) {
|
|
15774
|
+
case 1: {
|
|
15775
|
+
if (tag !== 8) {
|
|
15776
|
+
break;
|
|
15777
|
+
}
|
|
15778
|
+
message.server = reader.int32();
|
|
15779
|
+
continue;
|
|
15780
|
+
}
|
|
15781
|
+
}
|
|
15782
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15783
|
+
break;
|
|
15784
|
+
}
|
|
15785
|
+
reader.skip(tag & 7);
|
|
15786
|
+
}
|
|
15787
|
+
return message;
|
|
15788
|
+
},
|
|
15789
|
+
create(base) {
|
|
15790
|
+
return DebugCacheOverviewRequest.fromPartial(base ?? {});
|
|
15791
|
+
},
|
|
15792
|
+
fromPartial(object) {
|
|
15793
|
+
const message = createBaseDebugCacheOverviewRequest();
|
|
15794
|
+
message.server = object.server ?? 0;
|
|
15795
|
+
return message;
|
|
15796
|
+
},
|
|
15797
|
+
};
|
|
15798
|
+
function createBaseDebugCacheOverviewMeta() {
|
|
15799
|
+
return {
|
|
15800
|
+
name: "",
|
|
15801
|
+
key: "",
|
|
15802
|
+
server: 0,
|
|
15803
|
+
description: "",
|
|
15804
|
+
expectedType: "",
|
|
15805
|
+
protoType: "",
|
|
15806
|
+
exists: false,
|
|
15807
|
+
keyType: "",
|
|
15808
|
+
count: Long.ZERO,
|
|
15809
|
+
ttl: Long.ZERO,
|
|
15810
|
+
};
|
|
15811
|
+
}
|
|
15812
|
+
export const DebugCacheOverviewMeta = {
|
|
15813
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15814
|
+
if (message.name !== "") {
|
|
15815
|
+
writer.uint32(10).string(message.name);
|
|
15816
|
+
}
|
|
15817
|
+
if (message.key !== "") {
|
|
15818
|
+
writer.uint32(18).string(message.key);
|
|
15819
|
+
}
|
|
15820
|
+
if (message.server !== 0) {
|
|
15821
|
+
writer.uint32(24).int32(message.server);
|
|
15822
|
+
}
|
|
15823
|
+
if (message.description !== "") {
|
|
15824
|
+
writer.uint32(34).string(message.description);
|
|
15825
|
+
}
|
|
15826
|
+
if (message.expectedType !== "") {
|
|
15827
|
+
writer.uint32(42).string(message.expectedType);
|
|
15828
|
+
}
|
|
15829
|
+
if (message.protoType !== "") {
|
|
15830
|
+
writer.uint32(50).string(message.protoType);
|
|
15831
|
+
}
|
|
15832
|
+
if (message.exists !== false) {
|
|
15833
|
+
writer.uint32(56).bool(message.exists);
|
|
15834
|
+
}
|
|
15835
|
+
if (message.keyType !== "") {
|
|
15836
|
+
writer.uint32(66).string(message.keyType);
|
|
15837
|
+
}
|
|
15838
|
+
if (!message.count.equals(Long.ZERO)) {
|
|
15839
|
+
writer.uint32(72).int64(message.count.toString());
|
|
15840
|
+
}
|
|
15841
|
+
if (!message.ttl.equals(Long.ZERO)) {
|
|
15842
|
+
writer.uint32(80).int64(message.ttl.toString());
|
|
15843
|
+
}
|
|
15844
|
+
return writer;
|
|
15845
|
+
},
|
|
15846
|
+
decode(input, length) {
|
|
15847
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15848
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15849
|
+
const message = createBaseDebugCacheOverviewMeta();
|
|
15850
|
+
while (reader.pos < end) {
|
|
15851
|
+
const tag = reader.uint32();
|
|
15852
|
+
switch (tag >>> 3) {
|
|
15853
|
+
case 1: {
|
|
15854
|
+
if (tag !== 10) {
|
|
15855
|
+
break;
|
|
15856
|
+
}
|
|
15857
|
+
message.name = reader.string();
|
|
15858
|
+
continue;
|
|
15859
|
+
}
|
|
15860
|
+
case 2: {
|
|
15861
|
+
if (tag !== 18) {
|
|
15862
|
+
break;
|
|
15863
|
+
}
|
|
15864
|
+
message.key = reader.string();
|
|
15865
|
+
continue;
|
|
15866
|
+
}
|
|
15867
|
+
case 3: {
|
|
15868
|
+
if (tag !== 24) {
|
|
15869
|
+
break;
|
|
15870
|
+
}
|
|
15871
|
+
message.server = reader.int32();
|
|
15872
|
+
continue;
|
|
15873
|
+
}
|
|
15874
|
+
case 4: {
|
|
15875
|
+
if (tag !== 34) {
|
|
15876
|
+
break;
|
|
15877
|
+
}
|
|
15878
|
+
message.description = reader.string();
|
|
15879
|
+
continue;
|
|
15880
|
+
}
|
|
15881
|
+
case 5: {
|
|
15882
|
+
if (tag !== 42) {
|
|
15883
|
+
break;
|
|
15884
|
+
}
|
|
15885
|
+
message.expectedType = reader.string();
|
|
15886
|
+
continue;
|
|
15887
|
+
}
|
|
15888
|
+
case 6: {
|
|
15889
|
+
if (tag !== 50) {
|
|
15890
|
+
break;
|
|
15891
|
+
}
|
|
15892
|
+
message.protoType = reader.string();
|
|
15893
|
+
continue;
|
|
15894
|
+
}
|
|
15895
|
+
case 7: {
|
|
15896
|
+
if (tag !== 56) {
|
|
15897
|
+
break;
|
|
15898
|
+
}
|
|
15899
|
+
message.exists = reader.bool();
|
|
15900
|
+
continue;
|
|
15901
|
+
}
|
|
15902
|
+
case 8: {
|
|
15903
|
+
if (tag !== 66) {
|
|
15904
|
+
break;
|
|
15905
|
+
}
|
|
15906
|
+
message.keyType = reader.string();
|
|
15907
|
+
continue;
|
|
15908
|
+
}
|
|
15909
|
+
case 9: {
|
|
15910
|
+
if (tag !== 72) {
|
|
15911
|
+
break;
|
|
15912
|
+
}
|
|
15913
|
+
message.count = Long.fromString(reader.int64().toString());
|
|
15914
|
+
continue;
|
|
15915
|
+
}
|
|
15916
|
+
case 10: {
|
|
15917
|
+
if (tag !== 80) {
|
|
15918
|
+
break;
|
|
15919
|
+
}
|
|
15920
|
+
message.ttl = Long.fromString(reader.int64().toString());
|
|
15921
|
+
continue;
|
|
15922
|
+
}
|
|
15923
|
+
}
|
|
15924
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15925
|
+
break;
|
|
15926
|
+
}
|
|
15927
|
+
reader.skip(tag & 7);
|
|
15928
|
+
}
|
|
15929
|
+
return message;
|
|
15930
|
+
},
|
|
15931
|
+
create(base) {
|
|
15932
|
+
return DebugCacheOverviewMeta.fromPartial(base ?? {});
|
|
15933
|
+
},
|
|
15934
|
+
fromPartial(object) {
|
|
15935
|
+
const message = createBaseDebugCacheOverviewMeta();
|
|
15936
|
+
message.name = object.name ?? "";
|
|
15937
|
+
message.key = object.key ?? "";
|
|
15938
|
+
message.server = object.server ?? 0;
|
|
15939
|
+
message.description = object.description ?? "";
|
|
15940
|
+
message.expectedType = object.expectedType ?? "";
|
|
15941
|
+
message.protoType = object.protoType ?? "";
|
|
15942
|
+
message.exists = object.exists ?? false;
|
|
15943
|
+
message.keyType = object.keyType ?? "";
|
|
15944
|
+
message.count = (object.count !== undefined && object.count !== null) ? Long.fromValue(object.count) : Long.ZERO;
|
|
15945
|
+
message.ttl = (object.ttl !== undefined && object.ttl !== null) ? Long.fromValue(object.ttl) : Long.ZERO;
|
|
15946
|
+
return message;
|
|
15947
|
+
},
|
|
15948
|
+
};
|
|
15949
|
+
function createBaseDebugRedisServerStatus() {
|
|
15950
|
+
return { server: 0, connected: false, info: "", keysCount: Long.ZERO };
|
|
15951
|
+
}
|
|
15952
|
+
export const DebugRedisServerStatus = {
|
|
15953
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15954
|
+
if (message.server !== 0) {
|
|
15955
|
+
writer.uint32(8).int32(message.server);
|
|
15956
|
+
}
|
|
15957
|
+
if (message.connected !== false) {
|
|
15958
|
+
writer.uint32(16).bool(message.connected);
|
|
15959
|
+
}
|
|
15960
|
+
if (message.info !== "") {
|
|
15961
|
+
writer.uint32(26).string(message.info);
|
|
15962
|
+
}
|
|
15963
|
+
if (!message.keysCount.equals(Long.ZERO)) {
|
|
15964
|
+
writer.uint32(32).int64(message.keysCount.toString());
|
|
15965
|
+
}
|
|
15966
|
+
return writer;
|
|
15967
|
+
},
|
|
15968
|
+
decode(input, length) {
|
|
15969
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15970
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15971
|
+
const message = createBaseDebugRedisServerStatus();
|
|
15972
|
+
while (reader.pos < end) {
|
|
15973
|
+
const tag = reader.uint32();
|
|
15974
|
+
switch (tag >>> 3) {
|
|
15975
|
+
case 1: {
|
|
15976
|
+
if (tag !== 8) {
|
|
15977
|
+
break;
|
|
15978
|
+
}
|
|
15979
|
+
message.server = reader.int32();
|
|
15980
|
+
continue;
|
|
15981
|
+
}
|
|
15982
|
+
case 2: {
|
|
15983
|
+
if (tag !== 16) {
|
|
15984
|
+
break;
|
|
15985
|
+
}
|
|
15986
|
+
message.connected = reader.bool();
|
|
15987
|
+
continue;
|
|
15988
|
+
}
|
|
15989
|
+
case 3: {
|
|
15990
|
+
if (tag !== 26) {
|
|
15991
|
+
break;
|
|
15992
|
+
}
|
|
15993
|
+
message.info = reader.string();
|
|
15994
|
+
continue;
|
|
15995
|
+
}
|
|
15996
|
+
case 4: {
|
|
15997
|
+
if (tag !== 32) {
|
|
15998
|
+
break;
|
|
15999
|
+
}
|
|
16000
|
+
message.keysCount = Long.fromString(reader.int64().toString());
|
|
16001
|
+
continue;
|
|
16002
|
+
}
|
|
16003
|
+
}
|
|
16004
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16005
|
+
break;
|
|
16006
|
+
}
|
|
16007
|
+
reader.skip(tag & 7);
|
|
16008
|
+
}
|
|
16009
|
+
return message;
|
|
16010
|
+
},
|
|
16011
|
+
create(base) {
|
|
16012
|
+
return DebugRedisServerStatus.fromPartial(base ?? {});
|
|
16013
|
+
},
|
|
16014
|
+
fromPartial(object) {
|
|
16015
|
+
const message = createBaseDebugRedisServerStatus();
|
|
16016
|
+
message.server = object.server ?? 0;
|
|
16017
|
+
message.connected = object.connected ?? false;
|
|
16018
|
+
message.info = object.info ?? "";
|
|
16019
|
+
message.keysCount = (object.keysCount !== undefined && object.keysCount !== null)
|
|
16020
|
+
? Long.fromValue(object.keysCount)
|
|
16021
|
+
: Long.ZERO;
|
|
16022
|
+
return message;
|
|
16023
|
+
},
|
|
16024
|
+
};
|
|
16025
|
+
function createBaseDebugCacheOverviewResponse() {
|
|
16026
|
+
return { caches: [], redisMain: undefined, redisSocket: undefined };
|
|
16027
|
+
}
|
|
16028
|
+
export const DebugCacheOverviewResponse = {
|
|
16029
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16030
|
+
for (const v of message.caches) {
|
|
16031
|
+
DebugCacheOverviewMeta.encode(v, writer.uint32(10).fork()).join();
|
|
16032
|
+
}
|
|
16033
|
+
if (message.redisMain !== undefined) {
|
|
16034
|
+
DebugRedisServerStatus.encode(message.redisMain, writer.uint32(18).fork()).join();
|
|
16035
|
+
}
|
|
16036
|
+
if (message.redisSocket !== undefined) {
|
|
16037
|
+
DebugRedisServerStatus.encode(message.redisSocket, writer.uint32(26).fork()).join();
|
|
16038
|
+
}
|
|
16039
|
+
return writer;
|
|
16040
|
+
},
|
|
16041
|
+
decode(input, length) {
|
|
16042
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16043
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16044
|
+
const message = createBaseDebugCacheOverviewResponse();
|
|
16045
|
+
while (reader.pos < end) {
|
|
16046
|
+
const tag = reader.uint32();
|
|
16047
|
+
switch (tag >>> 3) {
|
|
16048
|
+
case 1: {
|
|
16049
|
+
if (tag !== 10) {
|
|
16050
|
+
break;
|
|
16051
|
+
}
|
|
16052
|
+
message.caches.push(DebugCacheOverviewMeta.decode(reader, reader.uint32()));
|
|
16053
|
+
continue;
|
|
16054
|
+
}
|
|
16055
|
+
case 2: {
|
|
16056
|
+
if (tag !== 18) {
|
|
16057
|
+
break;
|
|
16058
|
+
}
|
|
16059
|
+
message.redisMain = DebugRedisServerStatus.decode(reader, reader.uint32());
|
|
16060
|
+
continue;
|
|
16061
|
+
}
|
|
16062
|
+
case 3: {
|
|
16063
|
+
if (tag !== 26) {
|
|
16064
|
+
break;
|
|
16065
|
+
}
|
|
16066
|
+
message.redisSocket = DebugRedisServerStatus.decode(reader, reader.uint32());
|
|
16067
|
+
continue;
|
|
16068
|
+
}
|
|
16069
|
+
}
|
|
16070
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16071
|
+
break;
|
|
16072
|
+
}
|
|
16073
|
+
reader.skip(tag & 7);
|
|
16074
|
+
}
|
|
16075
|
+
return message;
|
|
16076
|
+
},
|
|
16077
|
+
create(base) {
|
|
16078
|
+
return DebugCacheOverviewResponse.fromPartial(base ?? {});
|
|
16079
|
+
},
|
|
16080
|
+
fromPartial(object) {
|
|
16081
|
+
const message = createBaseDebugCacheOverviewResponse();
|
|
16082
|
+
message.caches = object.caches?.map((e) => DebugCacheOverviewMeta.fromPartial(e)) || [];
|
|
16083
|
+
message.redisMain = (object.redisMain !== undefined && object.redisMain !== null)
|
|
16084
|
+
? DebugRedisServerStatus.fromPartial(object.redisMain)
|
|
16085
|
+
: undefined;
|
|
16086
|
+
message.redisSocket = (object.redisSocket !== undefined && object.redisSocket !== null)
|
|
16087
|
+
? DebugRedisServerStatus.fromPartial(object.redisSocket)
|
|
16088
|
+
: undefined;
|
|
16089
|
+
return message;
|
|
16090
|
+
},
|
|
16091
|
+
};
|
|
16092
|
+
function createBaseDebugCacheBrowseRequest() {
|
|
16093
|
+
return { server: 0, pattern: "", cursor: Long.UZERO, count: Long.ZERO };
|
|
16094
|
+
}
|
|
16095
|
+
export const DebugCacheBrowseRequest = {
|
|
16096
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16097
|
+
if (message.server !== 0) {
|
|
16098
|
+
writer.uint32(8).int32(message.server);
|
|
16099
|
+
}
|
|
16100
|
+
if (message.pattern !== "") {
|
|
16101
|
+
writer.uint32(18).string(message.pattern);
|
|
16102
|
+
}
|
|
16103
|
+
if (!message.cursor.equals(Long.UZERO)) {
|
|
16104
|
+
writer.uint32(24).uint64(message.cursor.toString());
|
|
16105
|
+
}
|
|
16106
|
+
if (!message.count.equals(Long.ZERO)) {
|
|
16107
|
+
writer.uint32(32).int64(message.count.toString());
|
|
16108
|
+
}
|
|
16109
|
+
return writer;
|
|
16110
|
+
},
|
|
16111
|
+
decode(input, length) {
|
|
16112
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16113
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16114
|
+
const message = createBaseDebugCacheBrowseRequest();
|
|
16115
|
+
while (reader.pos < end) {
|
|
16116
|
+
const tag = reader.uint32();
|
|
16117
|
+
switch (tag >>> 3) {
|
|
16118
|
+
case 1: {
|
|
16119
|
+
if (tag !== 8) {
|
|
16120
|
+
break;
|
|
16121
|
+
}
|
|
16122
|
+
message.server = reader.int32();
|
|
16123
|
+
continue;
|
|
16124
|
+
}
|
|
16125
|
+
case 2: {
|
|
16126
|
+
if (tag !== 18) {
|
|
16127
|
+
break;
|
|
16128
|
+
}
|
|
16129
|
+
message.pattern = reader.string();
|
|
16130
|
+
continue;
|
|
16131
|
+
}
|
|
16132
|
+
case 3: {
|
|
16133
|
+
if (tag !== 24) {
|
|
16134
|
+
break;
|
|
16135
|
+
}
|
|
16136
|
+
message.cursor = Long.fromString(reader.uint64().toString(), true);
|
|
16137
|
+
continue;
|
|
16138
|
+
}
|
|
16139
|
+
case 4: {
|
|
16140
|
+
if (tag !== 32) {
|
|
16141
|
+
break;
|
|
16142
|
+
}
|
|
16143
|
+
message.count = Long.fromString(reader.int64().toString());
|
|
16144
|
+
continue;
|
|
16145
|
+
}
|
|
16146
|
+
}
|
|
16147
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16148
|
+
break;
|
|
16149
|
+
}
|
|
16150
|
+
reader.skip(tag & 7);
|
|
16151
|
+
}
|
|
16152
|
+
return message;
|
|
16153
|
+
},
|
|
16154
|
+
create(base) {
|
|
16155
|
+
return DebugCacheBrowseRequest.fromPartial(base ?? {});
|
|
16156
|
+
},
|
|
16157
|
+
fromPartial(object) {
|
|
16158
|
+
const message = createBaseDebugCacheBrowseRequest();
|
|
16159
|
+
message.server = object.server ?? 0;
|
|
16160
|
+
message.pattern = object.pattern ?? "";
|
|
16161
|
+
message.cursor = (object.cursor !== undefined && object.cursor !== null)
|
|
16162
|
+
? Long.fromValue(object.cursor)
|
|
16163
|
+
: Long.UZERO;
|
|
16164
|
+
message.count = (object.count !== undefined && object.count !== null) ? Long.fromValue(object.count) : Long.ZERO;
|
|
16165
|
+
return message;
|
|
16166
|
+
},
|
|
16167
|
+
};
|
|
16168
|
+
function createBaseDebugCacheKeyInfo() {
|
|
16169
|
+
return { key: "", keyType: "", ttl: Long.ZERO, count: Long.ZERO, server: 0 };
|
|
16170
|
+
}
|
|
16171
|
+
export const DebugCacheKeyInfo = {
|
|
16172
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16173
|
+
if (message.key !== "") {
|
|
16174
|
+
writer.uint32(10).string(message.key);
|
|
16175
|
+
}
|
|
16176
|
+
if (message.keyType !== "") {
|
|
16177
|
+
writer.uint32(18).string(message.keyType);
|
|
16178
|
+
}
|
|
16179
|
+
if (!message.ttl.equals(Long.ZERO)) {
|
|
16180
|
+
writer.uint32(24).int64(message.ttl.toString());
|
|
16181
|
+
}
|
|
16182
|
+
if (!message.count.equals(Long.ZERO)) {
|
|
16183
|
+
writer.uint32(32).int64(message.count.toString());
|
|
16184
|
+
}
|
|
16185
|
+
if (message.server !== 0) {
|
|
16186
|
+
writer.uint32(40).int32(message.server);
|
|
16187
|
+
}
|
|
16188
|
+
return writer;
|
|
16189
|
+
},
|
|
16190
|
+
decode(input, length) {
|
|
16191
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16192
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16193
|
+
const message = createBaseDebugCacheKeyInfo();
|
|
16194
|
+
while (reader.pos < end) {
|
|
16195
|
+
const tag = reader.uint32();
|
|
16196
|
+
switch (tag >>> 3) {
|
|
16197
|
+
case 1: {
|
|
16198
|
+
if (tag !== 10) {
|
|
16199
|
+
break;
|
|
16200
|
+
}
|
|
16201
|
+
message.key = reader.string();
|
|
16202
|
+
continue;
|
|
16203
|
+
}
|
|
16204
|
+
case 2: {
|
|
16205
|
+
if (tag !== 18) {
|
|
16206
|
+
break;
|
|
16207
|
+
}
|
|
16208
|
+
message.keyType = reader.string();
|
|
16209
|
+
continue;
|
|
16210
|
+
}
|
|
16211
|
+
case 3: {
|
|
16212
|
+
if (tag !== 24) {
|
|
16213
|
+
break;
|
|
16214
|
+
}
|
|
16215
|
+
message.ttl = Long.fromString(reader.int64().toString());
|
|
16216
|
+
continue;
|
|
16217
|
+
}
|
|
16218
|
+
case 4: {
|
|
16219
|
+
if (tag !== 32) {
|
|
16220
|
+
break;
|
|
16221
|
+
}
|
|
16222
|
+
message.count = Long.fromString(reader.int64().toString());
|
|
16223
|
+
continue;
|
|
16224
|
+
}
|
|
16225
|
+
case 5: {
|
|
16226
|
+
if (tag !== 40) {
|
|
16227
|
+
break;
|
|
16228
|
+
}
|
|
16229
|
+
message.server = reader.int32();
|
|
16230
|
+
continue;
|
|
16231
|
+
}
|
|
16232
|
+
}
|
|
16233
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16234
|
+
break;
|
|
16235
|
+
}
|
|
16236
|
+
reader.skip(tag & 7);
|
|
16237
|
+
}
|
|
16238
|
+
return message;
|
|
16239
|
+
},
|
|
16240
|
+
create(base) {
|
|
16241
|
+
return DebugCacheKeyInfo.fromPartial(base ?? {});
|
|
16242
|
+
},
|
|
16243
|
+
fromPartial(object) {
|
|
16244
|
+
const message = createBaseDebugCacheKeyInfo();
|
|
16245
|
+
message.key = object.key ?? "";
|
|
16246
|
+
message.keyType = object.keyType ?? "";
|
|
16247
|
+
message.ttl = (object.ttl !== undefined && object.ttl !== null) ? Long.fromValue(object.ttl) : Long.ZERO;
|
|
16248
|
+
message.count = (object.count !== undefined && object.count !== null) ? Long.fromValue(object.count) : Long.ZERO;
|
|
16249
|
+
message.server = object.server ?? 0;
|
|
16250
|
+
return message;
|
|
16251
|
+
},
|
|
16252
|
+
};
|
|
16253
|
+
function createBaseDebugCacheBrowseResponse() {
|
|
16254
|
+
return { keys: [], nextCursor: Long.UZERO, pattern: "", server: 0 };
|
|
16255
|
+
}
|
|
16256
|
+
export const DebugCacheBrowseResponse = {
|
|
16257
|
+
encode(message, writer = new BinaryWriter()) {
|
|
16258
|
+
for (const v of message.keys) {
|
|
16259
|
+
DebugCacheKeyInfo.encode(v, writer.uint32(10).fork()).join();
|
|
16260
|
+
}
|
|
16261
|
+
if (!message.nextCursor.equals(Long.UZERO)) {
|
|
16262
|
+
writer.uint32(16).uint64(message.nextCursor.toString());
|
|
16263
|
+
}
|
|
16264
|
+
if (message.pattern !== "") {
|
|
16265
|
+
writer.uint32(26).string(message.pattern);
|
|
16266
|
+
}
|
|
16267
|
+
if (message.server !== 0) {
|
|
16268
|
+
writer.uint32(32).int32(message.server);
|
|
16269
|
+
}
|
|
16270
|
+
return writer;
|
|
16271
|
+
},
|
|
16272
|
+
decode(input, length) {
|
|
16273
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
16274
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16275
|
+
const message = createBaseDebugCacheBrowseResponse();
|
|
16276
|
+
while (reader.pos < end) {
|
|
16277
|
+
const tag = reader.uint32();
|
|
16278
|
+
switch (tag >>> 3) {
|
|
16279
|
+
case 1: {
|
|
16280
|
+
if (tag !== 10) {
|
|
16281
|
+
break;
|
|
16282
|
+
}
|
|
16283
|
+
message.keys.push(DebugCacheKeyInfo.decode(reader, reader.uint32()));
|
|
16284
|
+
continue;
|
|
16285
|
+
}
|
|
16286
|
+
case 2: {
|
|
16287
|
+
if (tag !== 16) {
|
|
16288
|
+
break;
|
|
16289
|
+
}
|
|
16290
|
+
message.nextCursor = Long.fromString(reader.uint64().toString(), true);
|
|
16291
|
+
continue;
|
|
16292
|
+
}
|
|
16293
|
+
case 3: {
|
|
16294
|
+
if (tag !== 26) {
|
|
16295
|
+
break;
|
|
16296
|
+
}
|
|
16297
|
+
message.pattern = reader.string();
|
|
16298
|
+
continue;
|
|
16299
|
+
}
|
|
16300
|
+
case 4: {
|
|
16301
|
+
if (tag !== 32) {
|
|
16302
|
+
break;
|
|
16303
|
+
}
|
|
16304
|
+
message.server = reader.int32();
|
|
16305
|
+
continue;
|
|
16306
|
+
}
|
|
16307
|
+
}
|
|
16308
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16309
|
+
break;
|
|
16310
|
+
}
|
|
16311
|
+
reader.skip(tag & 7);
|
|
16312
|
+
}
|
|
16313
|
+
return message;
|
|
16314
|
+
},
|
|
16315
|
+
create(base) {
|
|
16316
|
+
return DebugCacheBrowseResponse.fromPartial(base ?? {});
|
|
16317
|
+
},
|
|
16318
|
+
fromPartial(object) {
|
|
16319
|
+
const message = createBaseDebugCacheBrowseResponse();
|
|
16320
|
+
message.keys = object.keys?.map((e) => DebugCacheKeyInfo.fromPartial(e)) || [];
|
|
16321
|
+
message.nextCursor = (object.nextCursor !== undefined && object.nextCursor !== null)
|
|
16322
|
+
? Long.fromValue(object.nextCursor)
|
|
16323
|
+
: Long.UZERO;
|
|
16324
|
+
message.pattern = object.pattern ?? "";
|
|
16325
|
+
message.server = object.server ?? 0;
|
|
16326
|
+
return message;
|
|
16327
|
+
},
|
|
16328
|
+
};
|
|
14502
16329
|
function toTimestamp(date) {
|
|
14503
16330
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
14504
16331
|
const nanos = (date.getTime() % 1_000) * 1_000_000;
|