@fatehan/tsrp 1.5.3 → 1.5.5

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.
Files changed (76) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +8 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  3. package/dist/fatehan/activities/workflow.js +66 -3
  4. package/dist/fatehan/apis/client.d.ts +1 -1
  5. package/dist/fatehan/apis/client.js +3 -3
  6. package/dist/fatehan/areas/area.js +2 -2
  7. package/dist/fatehan/devices/devices.js +2 -2
  8. package/dist/fatehan/devices/maintenance.js +2 -2
  9. package/dist/fatehan/financial/financial.js +2 -2
  10. package/dist/fatehan/google/protobuf/descriptor.d.ts +470 -39
  11. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  12. package/dist/fatehan/google/protobuf/descriptor.js +1070 -57
  13. package/dist/fatehan/google/protobuf/duration.js +2 -2
  14. package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
  15. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  16. package/dist/fatehan/google/protobuf/field_mask.js +2 -2
  17. package/dist/fatehan/google/protobuf/timestamp.d.ts +10 -9
  18. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  19. package/dist/fatehan/google/protobuf/timestamp.js +2 -2
  20. package/dist/fatehan/identities/authentication.d.ts +82 -6
  21. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  22. package/dist/fatehan/identities/authentication.js +575 -47
  23. package/dist/fatehan/identities/identities.d.ts +13 -1
  24. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  25. package/dist/fatehan/identities/identities.js +15 -3
  26. package/dist/fatehan/models/fusion.js +2 -2
  27. package/dist/fatehan/models/models.js +2 -2
  28. package/dist/fatehan/notifies/notify.js +2 -2
  29. package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
  30. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  31. package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
  32. package/dist/fatehan/packets/dataModel.d.ts +189 -127
  33. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  34. package/dist/fatehan/packets/dataModel.js +1642 -1005
  35. package/dist/fatehan/packets/dataModule.js +2 -2
  36. package/dist/fatehan/packets/forge.d.ts +117 -0
  37. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  38. package/dist/fatehan/packets/forge.js +1079 -0
  39. package/dist/fatehan/services/api.d.ts +813 -26
  40. package/dist/fatehan/services/api.d.ts.map +1 -1
  41. package/dist/fatehan/services/api.js +8452 -244
  42. package/dist/fatehan/services/repositories.js +2 -2
  43. package/dist/fatehan/stream/stream.d.ts +224 -0
  44. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  45. package/dist/fatehan/stream/stream.js +1416 -0
  46. package/dist/fatehan/trips/trip.d.ts +159 -159
  47. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  48. package/dist/fatehan/trips/trip.js +169 -169
  49. package/dist/fatehan/utils/buf/validate/validate.js +2 -2
  50. package/dist/services.d.ts +65 -0
  51. package/dist/services.d.ts.map +1 -0
  52. package/dist/services.js +205 -0
  53. package/package.json +12 -12
  54. package/dist/api.d.ts +0 -36
  55. package/dist/api.d.ts.map +0 -1
  56. package/dist/api.js +0 -146
  57. package/dist/fatehan/activities/camera.d.ts +0 -95
  58. package/dist/fatehan/activities/camera.d.ts.map +0 -1
  59. package/dist/fatehan/activities/camera.js +0 -811
  60. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  61. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  62. package/dist/fatehan/google/protobuf/any.js +0 -104
  63. package/dist/fatehan/google/status.d.ts +0 -53
  64. package/dist/fatehan/google/status.d.ts.map +0 -1
  65. package/dist/fatehan/google/status.js +0 -95
  66. package/dist/fatehan/packets/messages.d.ts.map +0 -1
  67. package/dist/fatehan/reports/report.d.ts +0 -830
  68. package/dist/fatehan/reports/report.d.ts.map +0 -1
  69. package/dist/fatehan/reports/report.js +0 -8380
  70. package/dist/index.d.ts +0 -2
  71. package/dist/index.d.ts.map +0 -1
  72. package/dist/index.js +0 -1
  73. package/dist/report.d.ts +0 -29
  74. package/dist/report.d.ts.map +0 -1
  75. package/dist/report.js +0 -139
  76. package/readme.md +0 -26
@@ -1,13 +1,14 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
4
- // protoc v3.21.12
3
+ // protoc-gen-ts_proto v2.11.6
4
+ // protoc v7.34.1
5
5
  // source: packets/dataModel.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import Long from "long";
9
9
  import { Timestamp } from "../google/protobuf/timestamp";
10
10
  import { DataModule } from "./dataModule";
11
+ import { ForgeException, JTTLiveRequest, JTTLiveStatusUpdate, JTTLiveUpdate, JTTPlaybackRequest, JTTPlaybackUpdate, JTTQueryFileRequest, JTTQueryFileResponse, RawStingWithProps, RequestAlertMediaUpload, } from "./forge";
11
12
  export const protobufPackage = "com.fatehan.packets";
12
13
  export var Alert;
13
14
  (function (Alert) {
@@ -185,58 +186,77 @@ export var Alert;
185
186
  Alert[Alert["INVALID_ALERT"] = 404] = "INVALID_ALERT";
186
187
  /** COBAN_DOOR_OPEN - todo :: must be remove after shutdown of the fusion */
187
188
  Alert[Alert["COBAN_DOOR_OPEN"] = 405] = "COBAN_DOOR_OPEN";
189
+ Alert[Alert["LOCK_ROPE_CUT"] = 406] = "LOCK_ROPE_CUT";
190
+ Alert[Alert["REQUIRES_ACK"] = 407] = "REQUIRES_ACK";
191
+ Alert[Alert["LOCK_ROPE_INSERTED"] = 408] = "LOCK_ROPE_INSERTED";
192
+ Alert[Alert["MOTOR_LOCKED"] = 409] = "MOTOR_LOCKED";
193
+ Alert[Alert["LONG_TIME_UNLOCK"] = 410] = "LONG_TIME_UNLOCK";
194
+ Alert[Alert["WRONG_PASSWORD"] = 411] = "WRONG_PASSWORD";
195
+ Alert[Alert["ILLEGAL_RFID"] = 412] = "ILLEGAL_RFID";
196
+ Alert[Alert["COVER_CLOSED"] = 413] = "COVER_CLOSED";
197
+ Alert[Alert["MOTOR_STUCK"] = 414] = "MOTOR_STUCK";
198
+ Alert[Alert["RFID_UNLOCK"] = 415] = "RFID_UNLOCK";
199
+ Alert[Alert["RFID_BINDING"] = 416] = "RFID_BINDING";
200
+ Alert[Alert["PASSWORD_STATIC_UNLOCK"] = 417] = "PASSWORD_STATIC_UNLOCK";
201
+ Alert[Alert["DEVICE_LOCKED"] = 418] = "DEVICE_LOCKED";
202
+ Alert[Alert["PASSWORD_DYNAMIC_UNLOCK"] = 419] = "PASSWORD_DYNAMIC_UNLOCK";
203
+ Alert[Alert["BLUETOOTH_UNLOCK"] = 420] = "BLUETOOTH_UNLOCK";
204
+ Alert[Alert["LOCK_ROPE_PULL_OUT"] = 421] = "LOCK_ROPE_PULL_OUT";
188
205
  Alert[Alert["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
189
206
  })(Alert || (Alert = {}));
190
207
  export var Protocol;
191
208
  (function (Protocol) {
192
- Protocol[Protocol["PROTOCOL_UNSPECIFIED"] = 0] = "PROTOCOL_UNSPECIFIED";
193
- Protocol[Protocol["PROTOCOL_COBAN"] = 1] = "PROTOCOL_COBAN";
194
- Protocol[Protocol["PROTOCOL_COBAN_WR"] = 2] = "PROTOCOL_COBAN_WR";
195
- Protocol[Protocol["PROTOCOL_ACCURATE"] = 3] = "PROTOCOL_ACCURATE";
196
- Protocol[Protocol["PROTOCOL_A9"] = 4] = "PROTOCOL_A9";
197
- Protocol[Protocol["PROTOCOL_CONCOX"] = 5] = "PROTOCOL_CONCOX";
198
- Protocol[Protocol["PROTOCOL_DOLPHIN"] = 6] = "PROTOCOL_DOLPHIN";
199
- Protocol[Protocol["PROTOCOL_GT07"] = 7] = "PROTOCOL_GT07";
200
- Protocol[Protocol["PROTOCOL_JTT808"] = 8] = "PROTOCOL_JTT808";
201
- Protocol[Protocol["PROTOCOL_R16"] = 9] = "PROTOCOL_R16";
202
- Protocol[Protocol["PROTOCOL_R31"] = 10] = "PROTOCOL_R31";
203
- Protocol[Protocol["PROTOCOL_R56"] = 11] = "PROTOCOL_R56";
204
- Protocol[Protocol["PROTOCOL_S11"] = 12] = "PROTOCOL_S11";
205
- Protocol[Protocol["PROTOCOL_S15"] = 13] = "PROTOCOL_S15";
206
- Protocol[Protocol["PROTOCOL_SAYEH"] = 14] = "PROTOCOL_SAYEH";
207
- Protocol[Protocol["PROTOCOL_SINOTRACK"] = 15] = "PROTOCOL_SINOTRACK";
208
- Protocol[Protocol["PROTOCOL_TELTONIKA"] = 16] = "PROTOCOL_TELTONIKA";
209
- Protocol[Protocol["PROTOCOL_TOPIN"] = 17] = "PROTOCOL_TOPIN";
210
- Protocol[Protocol["PROTOCOL_WEFINDER"] = 18] = "PROTOCOL_WEFINDER";
211
- Protocol[Protocol["PROTOCOL_RUBTELLA"] = 19] = "PROTOCOL_RUBTELLA";
212
- Protocol[Protocol["PROTOCOL_LANDER"] = 20] = "PROTOCOL_LANDER";
213
- Protocol[Protocol["PROTOCOL_RAMMA"] = 21] = "PROTOCOL_RAMMA";
214
- Protocol[Protocol["PROTOCOL_SINERE"] = 22] = "PROTOCOL_SINERE";
215
- Protocol[Protocol["PROTOCOL_GALLO_SKY"] = 23] = "PROTOCOL_GALLO_SKY";
216
- Protocol[Protocol["PROTOCOL_GITINAMA"] = 24] = "PROTOCOL_GITINAMA";
217
- Protocol[Protocol["PROTOCOL_BCE"] = 25] = "PROTOCOL_BCE";
218
- Protocol[Protocol["PROTOCOL_TOP_FLY_TECH"] = 26] = "PROTOCOL_TOP_FLY_TECH";
219
- Protocol[Protocol["PROTOCOL_QUICK"] = 27] = "PROTOCOL_QUICK";
220
- Protocol[Protocol["PROTOCOL_RADSHID"] = 28] = "PROTOCOL_RADSHID";
221
- Protocol[Protocol["PROTOCOL_MEITRACK"] = 29] = "PROTOCOL_MEITRACK";
222
- Protocol[Protocol["PROTOCOL_GT30X"] = 30] = "PROTOCOL_GT30X";
223
- Protocol[Protocol["PROTOCOL_WP"] = 31] = "PROTOCOL_WP";
224
- Protocol[Protocol["PROTOCOL_SR03"] = 32] = "PROTOCOL_SR03";
225
- Protocol[Protocol["PROTOCOL_TELTONIKA650"] = 33] = "PROTOCOL_TELTONIKA650";
226
- Protocol[Protocol["PROTOCOL_SR04B"] = 34] = "PROTOCOL_SR04B";
227
- Protocol[Protocol["PROTOCOL_NAV_TELECOM"] = 35] = "PROTOCOL_NAV_TELECOM";
228
- Protocol[Protocol["PROTOCOL_VTRACK2"] = 36] = "PROTOCOL_VTRACK2";
229
- Protocol[Protocol["PROTOCOL_ET06L"] = 37] = "PROTOCOL_ET06L";
230
- Protocol[Protocol["PROTOCOL_ATN"] = 38] = "PROTOCOL_ATN";
231
- Protocol[Protocol["PROTOCOL_ARIO_AVL"] = 39] = "PROTOCOL_ARIO_AVL";
232
- Protocol[Protocol["PROTOCOL_HAMIGPS"] = 40] = "PROTOCOL_HAMIGPS";
233
- Protocol[Protocol["PROTOCOL_RUPTELLA"] = 41] = "PROTOCOL_RUPTELLA";
234
- Protocol[Protocol["PROTOCOL_ZINGJONG"] = 42] = "PROTOCOL_ZINGJONG";
235
- Protocol[Protocol["PROTOCOL_RADSHID_OLD"] = 43] = "PROTOCOL_RADSHID_OLD";
236
- Protocol[Protocol["PROTOCOL_COBAN_2025"] = 44] = "PROTOCOL_COBAN_2025";
237
- Protocol[Protocol["PROTOCOL_S200"] = 45] = "PROTOCOL_S200";
238
- Protocol[Protocol["PROTOCOL_S250"] = 46] = "PROTOCOL_S250";
239
- Protocol[Protocol["PROTOCOL_SR17"] = 47] = "PROTOCOL_SR17";
209
+ Protocol[Protocol["UNKNOWN"] = 0] = "UNKNOWN";
210
+ Protocol[Protocol["COBAN"] = 1] = "COBAN";
211
+ Protocol[Protocol["COBAN_WR"] = 2] = "COBAN_WR";
212
+ Protocol[Protocol["ACCURATE"] = 3] = "ACCURATE";
213
+ Protocol[Protocol["A9"] = 4] = "A9";
214
+ Protocol[Protocol["CONCOX"] = 5] = "CONCOX";
215
+ Protocol[Protocol["DOLPHIN"] = 6] = "DOLPHIN";
216
+ Protocol[Protocol["GT07"] = 7] = "GT07";
217
+ Protocol[Protocol["JTT808"] = 8] = "JTT808";
218
+ Protocol[Protocol["R16"] = 9] = "R16";
219
+ Protocol[Protocol["R31"] = 10] = "R31";
220
+ Protocol[Protocol["R56"] = 11] = "R56";
221
+ Protocol[Protocol["S11"] = 12] = "S11";
222
+ Protocol[Protocol["S15"] = 13] = "S15";
223
+ Protocol[Protocol["SAYEH"] = 14] = "SAYEH";
224
+ Protocol[Protocol["SINOTRACK"] = 15] = "SINOTRACK";
225
+ Protocol[Protocol["TELTONIKA"] = 16] = "TELTONIKA";
226
+ Protocol[Protocol["TOPIN"] = 17] = "TOPIN";
227
+ Protocol[Protocol["WEFINDER"] = 18] = "WEFINDER";
228
+ Protocol[Protocol["RUBTELLA"] = 19] = "RUBTELLA";
229
+ Protocol[Protocol["LANDER"] = 20] = "LANDER";
230
+ Protocol[Protocol["RAMMA"] = 21] = "RAMMA";
231
+ Protocol[Protocol["SINERE"] = 22] = "SINERE";
232
+ Protocol[Protocol["GALLO_SKY"] = 23] = "GALLO_SKY";
233
+ Protocol[Protocol["GITINAMA"] = 24] = "GITINAMA";
234
+ Protocol[Protocol["BCE"] = 25] = "BCE";
235
+ Protocol[Protocol["TOP_FLY_TECH"] = 26] = "TOP_FLY_TECH";
236
+ Protocol[Protocol["QUICK"] = 27] = "QUICK";
237
+ Protocol[Protocol["RADSHID"] = 28] = "RADSHID";
238
+ Protocol[Protocol["MEITRACK"] = 29] = "MEITRACK";
239
+ Protocol[Protocol["GT30X"] = 30] = "GT30X";
240
+ Protocol[Protocol["WP"] = 31] = "WP";
241
+ Protocol[Protocol["SR03"] = 32] = "SR03";
242
+ Protocol[Protocol["TELTONIKA650"] = 33] = "TELTONIKA650";
243
+ Protocol[Protocol["SR04B"] = 34] = "SR04B";
244
+ Protocol[Protocol["NAV_TELECOM"] = 35] = "NAV_TELECOM";
245
+ Protocol[Protocol["VTRACK2"] = 36] = "VTRACK2";
246
+ Protocol[Protocol["ET06L"] = 37] = "ET06L";
247
+ Protocol[Protocol["ATN"] = 38] = "ATN";
248
+ Protocol[Protocol["ARIO_AVL"] = 39] = "ARIO_AVL";
249
+ Protocol[Protocol["HAMIGPS"] = 40] = "HAMIGPS";
250
+ Protocol[Protocol["RUPTELLA"] = 41] = "RUPTELLA";
251
+ Protocol[Protocol["ZINGJONG"] = 42] = "ZINGJONG";
252
+ Protocol[Protocol["RADSHID_OLD"] = 43] = "RADSHID_OLD";
253
+ Protocol[Protocol["COBAN_2025"] = 44] = "COBAN_2025";
254
+ Protocol[Protocol["S200"] = 45] = "S200";
255
+ Protocol[Protocol["S250"] = 46] = "S250";
256
+ Protocol[Protocol["SR17"] = 47] = "SR17";
257
+ Protocol[Protocol["ARIO_4G_AVL"] = 48] = "ARIO_4G_AVL";
258
+ Protocol[Protocol["JT701"] = 49] = "JT701";
259
+ Protocol[Protocol["ET804"] = 50] = "ET804";
240
260
  Protocol[Protocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
241
261
  })(Protocol || (Protocol = {}));
242
262
  export var FileType;
@@ -299,45 +319,30 @@ export var Packet_Type;
299
319
  Packet_Type[Packet_Type["EXCEPTION"] = 6] = "EXCEPTION";
300
320
  Packet_Type[Packet_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
301
321
  })(Packet_Type || (Packet_Type = {}));
322
+ /** Deprecated: Use custom oneof instead */
302
323
  export var Packet_CustomPacketType;
303
324
  (function (Packet_CustomPacketType) {
325
+ /** CUSTOM_PACKET_TYPE_UNSPECIFIED - Deprecated: Use custom oneof instead */
304
326
  Packet_CustomPacketType[Packet_CustomPacketType["CUSTOM_PACKET_TYPE_UNSPECIFIED"] = 0] = "CUSTOM_PACKET_TYPE_UNSPECIFIED";
327
+ /** MULTIMEDIA_EVENT_INFORMATION_UPLOADING - Deprecated: Use custom oneof instead */
305
328
  Packet_CustomPacketType[Packet_CustomPacketType["MULTIMEDIA_EVENT_INFORMATION_UPLOADING"] = 1] = "MULTIMEDIA_EVENT_INFORMATION_UPLOADING";
306
- Packet_CustomPacketType[Packet_CustomPacketType["MULTIMEDIA_DATA_UPLOAD"] = 3] = "MULTIMEDIA_DATA_UPLOAD";
307
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1210"] = 4] = "JTT808_SIGNALING_DATA_MESSAGE1210";
308
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1211"] = 5] = "JTT808_SIGNALING_DATA_MESSAGE1211";
309
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_SIGNALING_DATA_MESSAGE1212"] = 6] = "JTT808_SIGNALING_DATA_MESSAGE1212";
310
- Packet_CustomPacketType[Packet_CustomPacketType["JTT808_MEDIA_RETRIEVAL0802"] = 11] = "JTT808_MEDIA_RETRIEVAL0802";
329
+ /** CONCOX_LBS_INFORMATION - Deprecated: Use custom oneof instead */
311
330
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_LBS_INFORMATION"] = 7] = "CONCOX_LBS_INFORMATION";
331
+ /** CONCOX_IMSI_NUMBER - Deprecated: Use custom oneof instead */
312
332
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_IMSI_NUMBER"] = 8] = "CONCOX_IMSI_NUMBER";
333
+ /** CONCOX_ICCID_NUMBER - Deprecated: Use custom oneof instead */
313
334
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_ICCID_NUMBER"] = 9] = "CONCOX_ICCID_NUMBER";
335
+ /** CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D - Deprecated: Use custom oneof instead */
314
336
  Packet_CustomPacketType[Packet_CustomPacketType["CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D"] = 10] = "CONCOX_RECORDING_PROTOCOL_PACKAGE0X8D";
337
+ /** DOLPHIN_BUFFER_PAYLOAD - Deprecated: Use custom oneof instead */
315
338
  Packet_CustomPacketType[Packet_CustomPacketType["DOLPHIN_BUFFER_PAYLOAD"] = 12] = "DOLPHIN_BUFFER_PAYLOAD";
339
+ /** DOLPHIN_NEW_BUFFER - Deprecated: Use custom oneof instead */
316
340
  Packet_CustomPacketType[Packet_CustomPacketType["DOLPHIN_NEW_BUFFER"] = 13] = "DOLPHIN_NEW_BUFFER";
317
341
  Packet_CustomPacketType[Packet_CustomPacketType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
318
342
  })(Packet_CustomPacketType || (Packet_CustomPacketType = {}));
319
- export var Packet_AnswerType;
320
- (function (Packet_AnswerType) {
321
- Packet_AnswerType[Packet_AnswerType["BYTE"] = 0] = "BYTE";
322
- Packet_AnswerType[Packet_AnswerType["STRING"] = 1] = "STRING";
323
- Packet_AnswerType[Packet_AnswerType["INT"] = 2] = "INT";
324
- Packet_AnswerType[Packet_AnswerType["TT10780X0001"] = 3] = "TT10780X0001";
325
- Packet_AnswerType[Packet_AnswerType["CONCOX_LIKE_R31"] = 4] = "CONCOX_LIKE_R31";
326
- Packet_AnswerType[Packet_AnswerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
327
- })(Packet_AnswerType || (Packet_AnswerType = {}));
328
343
  export var AdditionalInformation_Key;
329
344
  (function (AdditionalInformation_Key) {
330
345
  AdditionalInformation_Key[AdditionalInformation_Key["KEY_UNSPECIFIED"] = 0] = "KEY_UNSPECIFIED";
331
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_ID"] = 1] = "JTT808_ALARM_ID";
332
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_SPEED"] = 2] = "JTT808_SPEED";
333
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_LATITUDE"] = 3] = "JTT808_LATITUDE";
334
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_LONGITUDE"] = 4] = "JTT808_LONGITUDE";
335
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALTITUDE"] = 5] = "JTT808_ALTITUDE";
336
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_GPS_TIME"] = 6] = "JTT808_GPS_TIME";
337
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TERMINAL_ID"] = 7] = "JTT808_ALARM_TERMINAL_ID";
338
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TIME"] = 8] = "JTT808_ALARM_TIME";
339
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_SERIAL_NUMBER"] = 9] = "JTT808_SERIAL_NUMBER";
340
- AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ATTACHMENT"] = 10] = "JTT808_ATTACHMENT";
341
346
  AdditionalInformation_Key[AdditionalInformation_Key["JTT808_ALARM_TYPE"] = 13] = "JTT808_ALARM_TYPE";
342
347
  AdditionalInformation_Key[AdditionalInformation_Key["DOLPHIN_TERMINAL_ID"] = 14] = "DOLPHIN_TERMINAL_ID";
343
348
  AdditionalInformation_Key[AdditionalInformation_Key["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -471,6 +476,8 @@ function createBaseIoElement() {
471
476
  connectivityQuality: undefined,
472
477
  totalDrivingTime: undefined,
473
478
  maxSpeedGps: undefined,
479
+ deviceLocked: undefined,
480
+ dynamicPassword: undefined,
474
481
  };
475
482
  }
476
483
  export const IoElement = {
@@ -793,6 +800,12 @@ export const IoElement = {
793
800
  if (message.maxSpeedGps !== undefined) {
794
801
  writer.uint32(848).uint32(message.maxSpeedGps);
795
802
  }
803
+ if (message.deviceLocked !== undefined) {
804
+ writer.uint32(856).bool(message.deviceLocked);
805
+ }
806
+ if (message.dynamicPassword !== undefined) {
807
+ writer.uint32(866).string(message.dynamicPassword);
808
+ }
796
809
  return writer;
797
810
  },
798
811
  decode(input, length) {
@@ -1544,6 +1557,20 @@ export const IoElement = {
1544
1557
  message.maxSpeedGps = reader.uint32();
1545
1558
  continue;
1546
1559
  }
1560
+ case 107: {
1561
+ if (tag !== 856) {
1562
+ break;
1563
+ }
1564
+ message.deviceLocked = reader.bool();
1565
+ continue;
1566
+ }
1567
+ case 108: {
1568
+ if (tag !== 866) {
1569
+ break;
1570
+ }
1571
+ message.dynamicPassword = reader.string();
1572
+ continue;
1573
+ }
1547
1574
  }
1548
1575
  if ((tag & 7) === 4 || tag === 0) {
1549
1576
  break;
@@ -1677,6 +1704,8 @@ export const IoElement = {
1677
1704
  message.connectivityQuality = object.connectivityQuality ?? undefined;
1678
1705
  message.totalDrivingTime = object.totalDrivingTime ?? undefined;
1679
1706
  message.maxSpeedGps = object.maxSpeedGps ?? undefined;
1707
+ message.deviceLocked = object.deviceLocked ?? undefined;
1708
+ message.dynamicPassword = object.dynamicPassword ?? undefined;
1680
1709
  return message;
1681
1710
  },
1682
1711
  };
@@ -11852,14 +11881,25 @@ function createBasePacket() {
11852
11881
  data: [],
11853
11882
  authorize: undefined,
11854
11883
  response: undefined,
11855
- answer: undefined,
11856
11884
  customType: 0,
11857
11885
  customPayload: undefined,
11858
- answerType: 0,
11886
+ answer: undefined,
11859
11887
  additional: [],
11860
11888
  concox: undefined,
11861
11889
  teltonika: undefined,
11890
+ jtt808Reply: undefined,
11891
+ joinTechReply: undefined,
11892
+ rawString: undefined,
11893
+ rawBinary: undefined,
11862
11894
  stream: undefined,
11895
+ forge: undefined,
11896
+ jttSignaling1210: undefined,
11897
+ jttSignaling1211: undefined,
11898
+ jttSignaling1212: undefined,
11899
+ jttEventMediaInfo: undefined,
11900
+ jttEventMediaData: undefined,
11901
+ jttAlarmData: undefined,
11902
+ jttMedia: undefined,
11863
11903
  errorMessage: undefined,
11864
11904
  };
11865
11905
  }
@@ -11877,17 +11917,14 @@ export const Packet = {
11877
11917
  if (message.response !== undefined) {
11878
11918
  writer.uint32(34).bytes(message.response);
11879
11919
  }
11880
- if (message.answer !== undefined) {
11881
- writer.uint32(42).bytes(message.answer);
11882
- }
11883
11920
  if (message.customType !== 0) {
11884
11921
  writer.uint32(48).int32(message.customType);
11885
11922
  }
11886
11923
  if (message.customPayload !== undefined) {
11887
11924
  writer.uint32(58).bytes(message.customPayload);
11888
11925
  }
11889
- if (message.answerType !== 0) {
11890
- writer.uint32(64).int32(message.answerType);
11926
+ if (message.answer !== undefined) {
11927
+ writer.uint32(42).bytes(message.answer);
11891
11928
  }
11892
11929
  for (const v of message.additional) {
11893
11930
  AdditionalInformation.encode(v, writer.uint32(74).fork()).join();
@@ -11898,9 +11935,45 @@ export const Packet = {
11898
11935
  if (message.teltonika !== undefined) {
11899
11936
  ReplyTeltonika.encode(message.teltonika, writer.uint32(98).fork()).join();
11900
11937
  }
11938
+ if (message.jtt808Reply !== undefined) {
11939
+ JTT808Reply.encode(message.jtt808Reply, writer.uint32(114).fork()).join();
11940
+ }
11941
+ if (message.joinTechReply !== undefined) {
11942
+ ReplyJoinTech.encode(message.joinTechReply, writer.uint32(194).fork()).join();
11943
+ }
11944
+ if (message.rawString !== undefined) {
11945
+ writer.uint32(178).string(message.rawString);
11946
+ }
11947
+ if (message.rawBinary !== undefined) {
11948
+ writer.uint32(186).bytes(message.rawBinary);
11949
+ }
11901
11950
  if (message.stream !== undefined) {
11902
11951
  Stream.encode(message.stream, writer.uint32(90).fork()).join();
11903
11952
  }
11953
+ if (message.forge !== undefined) {
11954
+ ForgeDecoder.encode(message.forge, writer.uint32(106).fork()).join();
11955
+ }
11956
+ if (message.jttSignaling1210 !== undefined) {
11957
+ JTT808SignalingDataMessage1210.encode(message.jttSignaling1210, writer.uint32(122).fork()).join();
11958
+ }
11959
+ if (message.jttSignaling1211 !== undefined) {
11960
+ JTT808SignalingDataMessage1211.encode(message.jttSignaling1211, writer.uint32(130).fork()).join();
11961
+ }
11962
+ if (message.jttSignaling1212 !== undefined) {
11963
+ JTT808SignalingDataMessage1212.encode(message.jttSignaling1212, writer.uint32(138).fork()).join();
11964
+ }
11965
+ if (message.jttEventMediaInfo !== undefined) {
11966
+ JTT808EventMediaInfoUpload.encode(message.jttEventMediaInfo, writer.uint32(146).fork()).join();
11967
+ }
11968
+ if (message.jttEventMediaData !== undefined) {
11969
+ JTT808EventMediaDataUpload.encode(message.jttEventMediaData, writer.uint32(154).fork()).join();
11970
+ }
11971
+ if (message.jttAlarmData !== undefined) {
11972
+ JTT808AlarmData.encode(message.jttAlarmData, writer.uint32(162).fork()).join();
11973
+ }
11974
+ if (message.jttMedia !== undefined) {
11975
+ JTT808MediaRetrieval0802.encode(message.jttMedia, writer.uint32(170).fork()).join();
11976
+ }
11904
11977
  if (message.errorMessage !== undefined) {
11905
11978
  writer.uint32(250).string(message.errorMessage);
11906
11979
  }
@@ -11941,13 +12014,6 @@ export const Packet = {
11941
12014
  message.response = reader.bytes();
11942
12015
  continue;
11943
12016
  }
11944
- case 5: {
11945
- if (tag !== 42) {
11946
- break;
11947
- }
11948
- message.answer = reader.bytes();
11949
- continue;
11950
- }
11951
12017
  case 6: {
11952
12018
  if (tag !== 48) {
11953
12019
  break;
@@ -11962,11 +12028,11 @@ export const Packet = {
11962
12028
  message.customPayload = reader.bytes();
11963
12029
  continue;
11964
12030
  }
11965
- case 8: {
11966
- if (tag !== 64) {
12031
+ case 5: {
12032
+ if (tag !== 42) {
11967
12033
  break;
11968
12034
  }
11969
- message.answerType = reader.int32();
12035
+ message.answer = reader.bytes();
11970
12036
  continue;
11971
12037
  }
11972
12038
  case 9: {
@@ -11990,6 +12056,34 @@ export const Packet = {
11990
12056
  message.teltonika = ReplyTeltonika.decode(reader, reader.uint32());
11991
12057
  continue;
11992
12058
  }
12059
+ case 14: {
12060
+ if (tag !== 114) {
12061
+ break;
12062
+ }
12063
+ message.jtt808Reply = JTT808Reply.decode(reader, reader.uint32());
12064
+ continue;
12065
+ }
12066
+ case 24: {
12067
+ if (tag !== 194) {
12068
+ break;
12069
+ }
12070
+ message.joinTechReply = ReplyJoinTech.decode(reader, reader.uint32());
12071
+ continue;
12072
+ }
12073
+ case 22: {
12074
+ if (tag !== 178) {
12075
+ break;
12076
+ }
12077
+ message.rawString = reader.string();
12078
+ continue;
12079
+ }
12080
+ case 23: {
12081
+ if (tag !== 186) {
12082
+ break;
12083
+ }
12084
+ message.rawBinary = reader.bytes();
12085
+ continue;
12086
+ }
11993
12087
  case 11: {
11994
12088
  if (tag !== 90) {
11995
12089
  break;
@@ -11997,6 +12091,62 @@ export const Packet = {
11997
12091
  message.stream = Stream.decode(reader, reader.uint32());
11998
12092
  continue;
11999
12093
  }
12094
+ case 13: {
12095
+ if (tag !== 106) {
12096
+ break;
12097
+ }
12098
+ message.forge = ForgeDecoder.decode(reader, reader.uint32());
12099
+ continue;
12100
+ }
12101
+ case 15: {
12102
+ if (tag !== 122) {
12103
+ break;
12104
+ }
12105
+ message.jttSignaling1210 = JTT808SignalingDataMessage1210.decode(reader, reader.uint32());
12106
+ continue;
12107
+ }
12108
+ case 16: {
12109
+ if (tag !== 130) {
12110
+ break;
12111
+ }
12112
+ message.jttSignaling1211 = JTT808SignalingDataMessage1211.decode(reader, reader.uint32());
12113
+ continue;
12114
+ }
12115
+ case 17: {
12116
+ if (tag !== 138) {
12117
+ break;
12118
+ }
12119
+ message.jttSignaling1212 = JTT808SignalingDataMessage1212.decode(reader, reader.uint32());
12120
+ continue;
12121
+ }
12122
+ case 18: {
12123
+ if (tag !== 146) {
12124
+ break;
12125
+ }
12126
+ message.jttEventMediaInfo = JTT808EventMediaInfoUpload.decode(reader, reader.uint32());
12127
+ continue;
12128
+ }
12129
+ case 19: {
12130
+ if (tag !== 154) {
12131
+ break;
12132
+ }
12133
+ message.jttEventMediaData = JTT808EventMediaDataUpload.decode(reader, reader.uint32());
12134
+ continue;
12135
+ }
12136
+ case 20: {
12137
+ if (tag !== 162) {
12138
+ break;
12139
+ }
12140
+ message.jttAlarmData = JTT808AlarmData.decode(reader, reader.uint32());
12141
+ continue;
12142
+ }
12143
+ case 21: {
12144
+ if (tag !== 170) {
12145
+ break;
12146
+ }
12147
+ message.jttMedia = JTT808MediaRetrieval0802.decode(reader, reader.uint32());
12148
+ continue;
12149
+ }
12000
12150
  case 31: {
12001
12151
  if (tag !== 250) {
12002
12152
  break;
@@ -12023,10 +12173,9 @@ export const Packet = {
12023
12173
  ? Authorize.fromPartial(object.authorize)
12024
12174
  : undefined;
12025
12175
  message.response = object.response ?? undefined;
12026
- message.answer = object.answer ?? undefined;
12027
12176
  message.customType = object.customType ?? 0;
12028
12177
  message.customPayload = object.customPayload ?? undefined;
12029
- message.answerType = object.answerType ?? 0;
12178
+ message.answer = object.answer ?? undefined;
12030
12179
  message.additional = object.additional?.map((e) => AdditionalInformation.fromPartial(e)) || [];
12031
12180
  message.concox = (object.concox !== undefined && object.concox !== null)
12032
12181
  ? ReplyConcox.fromPartial(object.concox)
@@ -12034,9 +12183,41 @@ export const Packet = {
12034
12183
  message.teltonika = (object.teltonika !== undefined && object.teltonika !== null)
12035
12184
  ? ReplyTeltonika.fromPartial(object.teltonika)
12036
12185
  : undefined;
12186
+ message.jtt808Reply = (object.jtt808Reply !== undefined && object.jtt808Reply !== null)
12187
+ ? JTT808Reply.fromPartial(object.jtt808Reply)
12188
+ : undefined;
12189
+ message.joinTechReply = (object.joinTechReply !== undefined && object.joinTechReply !== null)
12190
+ ? ReplyJoinTech.fromPartial(object.joinTechReply)
12191
+ : undefined;
12192
+ message.rawString = object.rawString ?? undefined;
12193
+ message.rawBinary = object.rawBinary ?? undefined;
12037
12194
  message.stream = (object.stream !== undefined && object.stream !== null)
12038
12195
  ? Stream.fromPartial(object.stream)
12039
12196
  : undefined;
12197
+ message.forge = (object.forge !== undefined && object.forge !== null)
12198
+ ? ForgeDecoder.fromPartial(object.forge)
12199
+ : undefined;
12200
+ message.jttSignaling1210 = (object.jttSignaling1210 !== undefined && object.jttSignaling1210 !== null)
12201
+ ? JTT808SignalingDataMessage1210.fromPartial(object.jttSignaling1210)
12202
+ : undefined;
12203
+ message.jttSignaling1211 = (object.jttSignaling1211 !== undefined && object.jttSignaling1211 !== null)
12204
+ ? JTT808SignalingDataMessage1211.fromPartial(object.jttSignaling1211)
12205
+ : undefined;
12206
+ message.jttSignaling1212 = (object.jttSignaling1212 !== undefined && object.jttSignaling1212 !== null)
12207
+ ? JTT808SignalingDataMessage1212.fromPartial(object.jttSignaling1212)
12208
+ : undefined;
12209
+ message.jttEventMediaInfo = (object.jttEventMediaInfo !== undefined && object.jttEventMediaInfo !== null)
12210
+ ? JTT808EventMediaInfoUpload.fromPartial(object.jttEventMediaInfo)
12211
+ : undefined;
12212
+ message.jttEventMediaData = (object.jttEventMediaData !== undefined && object.jttEventMediaData !== null)
12213
+ ? JTT808EventMediaDataUpload.fromPartial(object.jttEventMediaData)
12214
+ : undefined;
12215
+ message.jttAlarmData = (object.jttAlarmData !== undefined && object.jttAlarmData !== null)
12216
+ ? JTT808AlarmData.fromPartial(object.jttAlarmData)
12217
+ : undefined;
12218
+ message.jttMedia = (object.jttMedia !== undefined && object.jttMedia !== null)
12219
+ ? JTT808MediaRetrieval0802.fromPartial(object.jttMedia)
12220
+ : undefined;
12040
12221
  message.errorMessage = object.errorMessage ?? undefined;
12041
12222
  return message;
12042
12223
  },
@@ -12186,6 +12367,58 @@ export const ReplyConcox_Item = {
12186
12367
  return message;
12187
12368
  },
12188
12369
  };
12370
+ function createBaseReplyJoinTech() {
12371
+ return { commandWord: "", parameters: [] };
12372
+ }
12373
+ export const ReplyJoinTech = {
12374
+ encode(message, writer = new BinaryWriter()) {
12375
+ if (message.commandWord !== "") {
12376
+ writer.uint32(10).string(message.commandWord);
12377
+ }
12378
+ for (const v of message.parameters) {
12379
+ writer.uint32(18).string(v);
12380
+ }
12381
+ return writer;
12382
+ },
12383
+ decode(input, length) {
12384
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12385
+ const end = length === undefined ? reader.len : reader.pos + length;
12386
+ const message = createBaseReplyJoinTech();
12387
+ while (reader.pos < end) {
12388
+ const tag = reader.uint32();
12389
+ switch (tag >>> 3) {
12390
+ case 1: {
12391
+ if (tag !== 10) {
12392
+ break;
12393
+ }
12394
+ message.commandWord = reader.string();
12395
+ continue;
12396
+ }
12397
+ case 2: {
12398
+ if (tag !== 18) {
12399
+ break;
12400
+ }
12401
+ message.parameters.push(reader.string());
12402
+ continue;
12403
+ }
12404
+ }
12405
+ if ((tag & 7) === 4 || tag === 0) {
12406
+ break;
12407
+ }
12408
+ reader.skip(tag & 7);
12409
+ }
12410
+ return message;
12411
+ },
12412
+ create(base) {
12413
+ return ReplyJoinTech.fromPartial(base ?? {});
12414
+ },
12415
+ fromPartial(object) {
12416
+ const message = createBaseReplyJoinTech();
12417
+ message.commandWord = object.commandWord ?? "";
12418
+ message.parameters = object.parameters?.map((e) => e) || [];
12419
+ return message;
12420
+ },
12421
+ };
12189
12422
  function createBaseReplyTeltonika() {
12190
12423
  return { quantity1: 0, type: 0, responseSize: 0, response: new Uint8Array(0), quantity2: 0 };
12191
12424
  }
@@ -12271,6 +12504,69 @@ export const ReplyTeltonika = {
12271
12504
  return message;
12272
12505
  },
12273
12506
  };
12507
+ function createBaseJTT808Reply() {
12508
+ return { responseSerialNumber: 0, responseId: 0, result: 0 };
12509
+ }
12510
+ export const JTT808Reply = {
12511
+ encode(message, writer = new BinaryWriter()) {
12512
+ if (message.responseSerialNumber !== 0) {
12513
+ writer.uint32(8).uint32(message.responseSerialNumber);
12514
+ }
12515
+ if (message.responseId !== 0) {
12516
+ writer.uint32(16).uint32(message.responseId);
12517
+ }
12518
+ if (message.result !== 0) {
12519
+ writer.uint32(24).uint32(message.result);
12520
+ }
12521
+ return writer;
12522
+ },
12523
+ decode(input, length) {
12524
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12525
+ const end = length === undefined ? reader.len : reader.pos + length;
12526
+ const message = createBaseJTT808Reply();
12527
+ while (reader.pos < end) {
12528
+ const tag = reader.uint32();
12529
+ switch (tag >>> 3) {
12530
+ case 1: {
12531
+ if (tag !== 8) {
12532
+ break;
12533
+ }
12534
+ message.responseSerialNumber = reader.uint32();
12535
+ continue;
12536
+ }
12537
+ case 2: {
12538
+ if (tag !== 16) {
12539
+ break;
12540
+ }
12541
+ message.responseId = reader.uint32();
12542
+ continue;
12543
+ }
12544
+ case 3: {
12545
+ if (tag !== 24) {
12546
+ break;
12547
+ }
12548
+ message.result = reader.uint32();
12549
+ continue;
12550
+ }
12551
+ }
12552
+ if ((tag & 7) === 4 || tag === 0) {
12553
+ break;
12554
+ }
12555
+ reader.skip(tag & 7);
12556
+ }
12557
+ return message;
12558
+ },
12559
+ create(base) {
12560
+ return JTT808Reply.fromPartial(base ?? {});
12561
+ },
12562
+ fromPartial(object) {
12563
+ const message = createBaseJTT808Reply();
12564
+ message.responseSerialNumber = object.responseSerialNumber ?? 0;
12565
+ message.responseId = object.responseId ?? 0;
12566
+ message.result = object.result ?? 0;
12567
+ return message;
12568
+ },
12569
+ };
12274
12570
  function createBaseAdditionalInformation() {
12275
12571
  return { key: 0, val: new Uint8Array(0), uint32Value: undefined, stringValue: undefined };
12276
12572
  }
@@ -12345,148 +12641,78 @@ export const AdditionalInformation = {
12345
12641
  return message;
12346
12642
  },
12347
12643
  };
12348
- function createBaseJtt808SignalingDataMessage1211() {
12349
- return { name: "", type: 0, size: 0 };
12644
+ function createBaseConcoxRecording0x8d() {
12645
+ return { fileType: 0, fileSize: 0, totalFiles: 0, currentSequence: 0, currentLength: 0, payload: new Uint8Array(0) };
12350
12646
  }
12351
- export const Jtt808SignalingDataMessage1211 = {
12647
+ export const ConcoxRecording0x8d = {
12352
12648
  encode(message, writer = new BinaryWriter()) {
12353
- if (message.name !== "") {
12354
- writer.uint32(10).string(message.name);
12649
+ if (message.fileType !== 0) {
12650
+ writer.uint32(8).uint32(message.fileType);
12355
12651
  }
12356
- if (message.type !== 0) {
12357
- writer.uint32(16).int32(message.type);
12652
+ if (message.fileSize !== 0) {
12653
+ writer.uint32(16).uint32(message.fileSize);
12358
12654
  }
12359
- if (message.size !== 0) {
12360
- writer.uint32(24).uint32(message.size);
12655
+ if (message.totalFiles !== 0) {
12656
+ writer.uint32(24).uint32(message.totalFiles);
12657
+ }
12658
+ if (message.currentSequence !== 0) {
12659
+ writer.uint32(32).uint32(message.currentSequence);
12660
+ }
12661
+ if (message.currentLength !== 0) {
12662
+ writer.uint32(40).uint32(message.currentLength);
12663
+ }
12664
+ if (message.payload.length !== 0) {
12665
+ writer.uint32(50).bytes(message.payload);
12361
12666
  }
12362
12667
  return writer;
12363
12668
  },
12364
12669
  decode(input, length) {
12365
12670
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12366
12671
  const end = length === undefined ? reader.len : reader.pos + length;
12367
- const message = createBaseJtt808SignalingDataMessage1211();
12672
+ const message = createBaseConcoxRecording0x8d();
12368
12673
  while (reader.pos < end) {
12369
12674
  const tag = reader.uint32();
12370
12675
  switch (tag >>> 3) {
12371
12676
  case 1: {
12372
- if (tag !== 10) {
12677
+ if (tag !== 8) {
12373
12678
  break;
12374
12679
  }
12375
- message.name = reader.string();
12680
+ message.fileType = reader.uint32();
12376
12681
  continue;
12377
12682
  }
12378
12683
  case 2: {
12379
12684
  if (tag !== 16) {
12380
12685
  break;
12381
12686
  }
12382
- message.type = reader.int32();
12687
+ message.fileSize = reader.uint32();
12383
12688
  continue;
12384
12689
  }
12385
12690
  case 3: {
12386
12691
  if (tag !== 24) {
12387
12692
  break;
12388
12693
  }
12389
- message.size = reader.uint32();
12390
- continue;
12391
- }
12392
- }
12393
- if ((tag & 7) === 4 || tag === 0) {
12394
- break;
12395
- }
12396
- reader.skip(tag & 7);
12397
- }
12398
- return message;
12399
- },
12400
- create(base) {
12401
- return Jtt808SignalingDataMessage1211.fromPartial(base ?? {});
12402
- },
12403
- fromPartial(object) {
12404
- const message = createBaseJtt808SignalingDataMessage1211();
12405
- message.name = object.name ?? "";
12406
- message.type = object.type ?? 0;
12407
- message.size = object.size ?? 0;
12408
- return message;
12409
- },
12410
- };
12411
- function createBaseJtt808SignalingDataMessage1210() {
12412
- return {
12413
- terminalId: new Uint8Array(0),
12414
- alarmIdentification: new Uint8Array(0),
12415
- alarmNo: new Uint8Array(0),
12416
- infoType: 0,
12417
- attachmentCount: 0,
12418
- attachments: [],
12419
- };
12420
- }
12421
- export const Jtt808SignalingDataMessage1210 = {
12422
- encode(message, writer = new BinaryWriter()) {
12423
- if (message.terminalId.length !== 0) {
12424
- writer.uint32(10).bytes(message.terminalId);
12425
- }
12426
- if (message.alarmIdentification.length !== 0) {
12427
- writer.uint32(18).bytes(message.alarmIdentification);
12428
- }
12429
- if (message.alarmNo.length !== 0) {
12430
- writer.uint32(26).bytes(message.alarmNo);
12431
- }
12432
- if (message.infoType !== 0) {
12433
- writer.uint32(32).uint32(message.infoType);
12434
- }
12435
- if (message.attachmentCount !== 0) {
12436
- writer.uint32(40).uint32(message.attachmentCount);
12437
- }
12438
- for (const v of message.attachments) {
12439
- Jtt808SignalingDataMessage1210_Attachment.encode(v, writer.uint32(50).fork()).join();
12440
- }
12441
- return writer;
12442
- },
12443
- decode(input, length) {
12444
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12445
- const end = length === undefined ? reader.len : reader.pos + length;
12446
- const message = createBaseJtt808SignalingDataMessage1210();
12447
- while (reader.pos < end) {
12448
- const tag = reader.uint32();
12449
- switch (tag >>> 3) {
12450
- case 1: {
12451
- if (tag !== 10) {
12452
- break;
12453
- }
12454
- message.terminalId = reader.bytes();
12455
- continue;
12456
- }
12457
- case 2: {
12458
- if (tag !== 18) {
12459
- break;
12460
- }
12461
- message.alarmIdentification = reader.bytes();
12462
- continue;
12463
- }
12464
- case 3: {
12465
- if (tag !== 26) {
12466
- break;
12467
- }
12468
- message.alarmNo = reader.bytes();
12694
+ message.totalFiles = reader.uint32();
12469
12695
  continue;
12470
12696
  }
12471
12697
  case 4: {
12472
12698
  if (tag !== 32) {
12473
12699
  break;
12474
12700
  }
12475
- message.infoType = reader.uint32();
12701
+ message.currentSequence = reader.uint32();
12476
12702
  continue;
12477
12703
  }
12478
12704
  case 5: {
12479
12705
  if (tag !== 40) {
12480
12706
  break;
12481
12707
  }
12482
- message.attachmentCount = reader.uint32();
12708
+ message.currentLength = reader.uint32();
12483
12709
  continue;
12484
12710
  }
12485
12711
  case 6: {
12486
12712
  if (tag !== 50) {
12487
12713
  break;
12488
12714
  }
12489
- message.attachments.push(Jtt808SignalingDataMessage1210_Attachment.decode(reader, reader.uint32()));
12715
+ message.payload = reader.bytes();
12490
12716
  continue;
12491
12717
  }
12492
12718
  }
@@ -12498,37 +12724,42 @@ export const Jtt808SignalingDataMessage1210 = {
12498
12724
  return message;
12499
12725
  },
12500
12726
  create(base) {
12501
- return Jtt808SignalingDataMessage1210.fromPartial(base ?? {});
12727
+ return ConcoxRecording0x8d.fromPartial(base ?? {});
12502
12728
  },
12503
12729
  fromPartial(object) {
12504
- const message = createBaseJtt808SignalingDataMessage1210();
12505
- message.terminalId = object.terminalId ?? new Uint8Array(0);
12506
- message.alarmIdentification = object.alarmIdentification ?? new Uint8Array(0);
12507
- message.alarmNo = object.alarmNo ?? new Uint8Array(0);
12508
- message.infoType = object.infoType ?? 0;
12509
- message.attachmentCount = object.attachmentCount ?? 0;
12510
- message.attachments = object.attachments?.map((e) => Jtt808SignalingDataMessage1210_Attachment.fromPartial(e)) ||
12511
- [];
12730
+ const message = createBaseConcoxRecording0x8d();
12731
+ message.fileType = object.fileType ?? 0;
12732
+ message.fileSize = object.fileSize ?? 0;
12733
+ message.totalFiles = object.totalFiles ?? 0;
12734
+ message.currentSequence = object.currentSequence ?? 0;
12735
+ message.currentLength = object.currentLength ?? 0;
12736
+ message.payload = object.payload ?? new Uint8Array(0);
12512
12737
  return message;
12513
12738
  },
12514
12739
  };
12515
- function createBaseJtt808SignalingDataMessage1210_Attachment() {
12516
- return { name: "", size: 0 };
12740
+ function createBaseClient() {
12741
+ return { remoteIp: "", remotePort: 0, localIp: "", localPort: 0 };
12517
12742
  }
12518
- export const Jtt808SignalingDataMessage1210_Attachment = {
12743
+ export const Client = {
12519
12744
  encode(message, writer = new BinaryWriter()) {
12520
- if (message.name !== "") {
12521
- writer.uint32(10).string(message.name);
12745
+ if (message.remoteIp !== "") {
12746
+ writer.uint32(10).string(message.remoteIp);
12522
12747
  }
12523
- if (message.size !== 0) {
12524
- writer.uint32(16).uint32(message.size);
12748
+ if (message.remotePort !== 0) {
12749
+ writer.uint32(16).uint32(message.remotePort);
12750
+ }
12751
+ if (message.localIp !== "") {
12752
+ writer.uint32(26).string(message.localIp);
12753
+ }
12754
+ if (message.localPort !== 0) {
12755
+ writer.uint32(32).uint32(message.localPort);
12525
12756
  }
12526
12757
  return writer;
12527
12758
  },
12528
12759
  decode(input, length) {
12529
12760
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12530
12761
  const end = length === undefined ? reader.len : reader.pos + length;
12531
- const message = createBaseJtt808SignalingDataMessage1210_Attachment();
12762
+ const message = createBaseClient();
12532
12763
  while (reader.pos < end) {
12533
12764
  const tag = reader.uint32();
12534
12765
  switch (tag >>> 3) {
@@ -12536,76 +12767,28 @@ export const Jtt808SignalingDataMessage1210_Attachment = {
12536
12767
  if (tag !== 10) {
12537
12768
  break;
12538
12769
  }
12539
- message.name = reader.string();
12770
+ message.remoteIp = reader.string();
12540
12771
  continue;
12541
12772
  }
12542
12773
  case 2: {
12543
12774
  if (tag !== 16) {
12544
12775
  break;
12545
12776
  }
12546
- message.size = reader.uint32();
12547
- continue;
12548
- }
12549
- }
12550
- if ((tag & 7) === 4 || tag === 0) {
12551
- break;
12552
- }
12553
- reader.skip(tag & 7);
12554
- }
12555
- return message;
12556
- },
12557
- create(base) {
12558
- return Jtt808SignalingDataMessage1210_Attachment.fromPartial(base ?? {});
12559
- },
12560
- fromPartial(object) {
12561
- const message = createBaseJtt808SignalingDataMessage1210_Attachment();
12562
- message.name = object.name ?? "";
12563
- message.size = object.size ?? 0;
12564
- return message;
12565
- },
12566
- };
12567
- function createBaseJtt10780x0001Answer() {
12568
- return { responseSerialNumber: 0, responseId: 0, result: 0 };
12569
- }
12570
- export const Jtt10780x0001Answer = {
12571
- encode(message, writer = new BinaryWriter()) {
12572
- if (message.responseSerialNumber !== 0) {
12573
- writer.uint32(8).uint32(message.responseSerialNumber);
12574
- }
12575
- if (message.responseId !== 0) {
12576
- writer.uint32(16).uint32(message.responseId);
12577
- }
12578
- if (message.result !== 0) {
12579
- writer.uint32(24).uint32(message.result);
12580
- }
12581
- return writer;
12582
- },
12583
- decode(input, length) {
12584
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12585
- const end = length === undefined ? reader.len : reader.pos + length;
12586
- const message = createBaseJtt10780x0001Answer();
12587
- while (reader.pos < end) {
12588
- const tag = reader.uint32();
12589
- switch (tag >>> 3) {
12590
- case 1: {
12591
- if (tag !== 8) {
12592
- break;
12593
- }
12594
- message.responseSerialNumber = reader.uint32();
12777
+ message.remotePort = reader.uint32();
12595
12778
  continue;
12596
12779
  }
12597
- case 2: {
12598
- if (tag !== 16) {
12780
+ case 3: {
12781
+ if (tag !== 26) {
12599
12782
  break;
12600
12783
  }
12601
- message.responseId = reader.uint32();
12784
+ message.localIp = reader.string();
12602
12785
  continue;
12603
12786
  }
12604
- case 3: {
12605
- if (tag !== 24) {
12787
+ case 4: {
12788
+ if (tag !== 32) {
12606
12789
  break;
12607
12790
  }
12608
- message.result = reader.uint32();
12791
+ message.localPort = reader.uint32();
12609
12792
  continue;
12610
12793
  }
12611
12794
  }
@@ -12617,42 +12800,91 @@ export const Jtt10780x0001Answer = {
12617
12800
  return message;
12618
12801
  },
12619
12802
  create(base) {
12620
- return Jtt10780x0001Answer.fromPartial(base ?? {});
12803
+ return Client.fromPartial(base ?? {});
12621
12804
  },
12622
12805
  fromPartial(object) {
12623
- const message = createBaseJtt10780x0001Answer();
12624
- message.responseSerialNumber = object.responseSerialNumber ?? 0;
12625
- message.responseId = object.responseId ?? 0;
12626
- message.result = object.result ?? 0;
12806
+ const message = createBaseClient();
12807
+ message.remoteIp = object.remoteIp ?? "";
12808
+ message.remotePort = object.remotePort ?? 0;
12809
+ message.localIp = object.localIp ?? "";
12810
+ message.localPort = object.localPort ?? 0;
12627
12811
  return message;
12628
12812
  },
12629
12813
  };
12630
- function createBaseJtt1078EventMediaInfoUpload() {
12631
- return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0 };
12814
+ function createBaseOdysseyDevice() {
12815
+ return {
12816
+ id: Long.UZERO,
12817
+ imei: Long.UZERO,
12818
+ objectId: undefined,
12819
+ objectType: 0,
12820
+ timezone: "",
12821
+ isUnlimited: false,
12822
+ tripType: 0,
12823
+ receiveAt: undefined,
12824
+ expiresAt: undefined,
12825
+ connectAt: undefined,
12826
+ createdAt: undefined,
12827
+ workflowTaskId: undefined,
12828
+ organizationId: undefined,
12829
+ generation: [],
12830
+ module: undefined,
12831
+ };
12632
12832
  }
12633
- export const Jtt1078EventMediaInfoUpload = {
12833
+ export const OdysseyDevice = {
12634
12834
  encode(message, writer = new BinaryWriter()) {
12635
- if (message.mediaId !== 0) {
12636
- writer.uint32(8).uint32(message.mediaId);
12835
+ if (!message.id.equals(Long.UZERO)) {
12836
+ writer.uint32(8).uint64(message.id.toString());
12637
12837
  }
12638
- if (message.mediaType !== 0) {
12639
- writer.uint32(16).uint32(message.mediaType);
12838
+ if (!message.imei.equals(Long.UZERO)) {
12839
+ writer.uint32(16).uint64(message.imei.toString());
12640
12840
  }
12641
- if (message.mediaFormat !== 0) {
12642
- writer.uint32(24).uint32(message.mediaFormat);
12841
+ if (message.objectId !== undefined) {
12842
+ writer.uint32(24).uint64(message.objectId.toString());
12643
12843
  }
12644
- if (message.eventItemCode !== 0) {
12645
- writer.uint32(32).uint32(message.eventItemCode);
12844
+ if (message.objectType !== 0) {
12845
+ writer.uint32(32).int32(message.objectType);
12646
12846
  }
12647
- if (message.channelId !== 0) {
12648
- writer.uint32(40).uint32(message.channelId);
12847
+ if (message.timezone !== "") {
12848
+ writer.uint32(42).string(message.timezone);
12849
+ }
12850
+ if (message.isUnlimited !== false) {
12851
+ writer.uint32(48).bool(message.isUnlimited);
12852
+ }
12853
+ if (message.tripType !== 0) {
12854
+ writer.uint32(56).int32(message.tripType);
12855
+ }
12856
+ if (message.receiveAt !== undefined) {
12857
+ Timestamp.encode(toTimestamp(message.receiveAt), writer.uint32(66).fork()).join();
12858
+ }
12859
+ if (message.expiresAt !== undefined) {
12860
+ Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(74).fork()).join();
12861
+ }
12862
+ if (message.connectAt !== undefined) {
12863
+ Timestamp.encode(toTimestamp(message.connectAt), writer.uint32(82).fork()).join();
12864
+ }
12865
+ if (message.createdAt !== undefined) {
12866
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
12867
+ }
12868
+ if (message.workflowTaskId !== undefined) {
12869
+ writer.uint32(96).uint64(message.workflowTaskId.toString());
12870
+ }
12871
+ if (message.organizationId !== undefined) {
12872
+ writer.uint32(104).uint64(message.organizationId.toString());
12873
+ }
12874
+ writer.uint32(114).fork();
12875
+ for (const v of message.generation) {
12876
+ writer.uint64(v.toString());
12877
+ }
12878
+ writer.join();
12879
+ if (message.module !== undefined) {
12880
+ DataModule.encode(message.module, writer.uint32(122).fork()).join();
12649
12881
  }
12650
12882
  return writer;
12651
12883
  },
12652
12884
  decode(input, length) {
12653
12885
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12654
12886
  const end = length === undefined ? reader.len : reader.pos + length;
12655
- const message = createBaseJtt1078EventMediaInfoUpload();
12887
+ const message = createBaseOdysseyDevice();
12656
12888
  while (reader.pos < end) {
12657
12889
  const tag = reader.uint32();
12658
12890
  switch (tag >>> 3) {
@@ -12660,35 +12892,112 @@ export const Jtt1078EventMediaInfoUpload = {
12660
12892
  if (tag !== 8) {
12661
12893
  break;
12662
12894
  }
12663
- message.mediaId = reader.uint32();
12895
+ message.id = Long.fromString(reader.uint64().toString(), true);
12664
12896
  continue;
12665
12897
  }
12666
12898
  case 2: {
12667
12899
  if (tag !== 16) {
12668
12900
  break;
12669
12901
  }
12670
- message.mediaType = reader.uint32();
12902
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12671
12903
  continue;
12672
12904
  }
12673
12905
  case 3: {
12674
12906
  if (tag !== 24) {
12675
12907
  break;
12676
12908
  }
12677
- message.mediaFormat = reader.uint32();
12909
+ message.objectId = Long.fromString(reader.uint64().toString(), true);
12678
12910
  continue;
12679
12911
  }
12680
12912
  case 4: {
12681
12913
  if (tag !== 32) {
12682
12914
  break;
12683
12915
  }
12684
- message.eventItemCode = reader.uint32();
12916
+ message.objectType = reader.int32();
12685
12917
  continue;
12686
12918
  }
12687
12919
  case 5: {
12688
- if (tag !== 40) {
12920
+ if (tag !== 42) {
12689
12921
  break;
12690
12922
  }
12691
- message.channelId = reader.uint32();
12923
+ message.timezone = reader.string();
12924
+ continue;
12925
+ }
12926
+ case 6: {
12927
+ if (tag !== 48) {
12928
+ break;
12929
+ }
12930
+ message.isUnlimited = reader.bool();
12931
+ continue;
12932
+ }
12933
+ case 7: {
12934
+ if (tag !== 56) {
12935
+ break;
12936
+ }
12937
+ message.tripType = reader.int32();
12938
+ continue;
12939
+ }
12940
+ case 8: {
12941
+ if (tag !== 66) {
12942
+ break;
12943
+ }
12944
+ message.receiveAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12945
+ continue;
12946
+ }
12947
+ case 9: {
12948
+ if (tag !== 74) {
12949
+ break;
12950
+ }
12951
+ message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12952
+ continue;
12953
+ }
12954
+ case 10: {
12955
+ if (tag !== 82) {
12956
+ break;
12957
+ }
12958
+ message.connectAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12959
+ continue;
12960
+ }
12961
+ case 11: {
12962
+ if (tag !== 90) {
12963
+ break;
12964
+ }
12965
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12966
+ continue;
12967
+ }
12968
+ case 12: {
12969
+ if (tag !== 96) {
12970
+ break;
12971
+ }
12972
+ message.workflowTaskId = Long.fromString(reader.uint64().toString(), true);
12973
+ continue;
12974
+ }
12975
+ case 13: {
12976
+ if (tag !== 104) {
12977
+ break;
12978
+ }
12979
+ message.organizationId = Long.fromString(reader.uint64().toString(), true);
12980
+ continue;
12981
+ }
12982
+ case 14: {
12983
+ if (tag === 112) {
12984
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
12985
+ continue;
12986
+ }
12987
+ if (tag === 114) {
12988
+ const end2 = reader.uint32() + reader.pos;
12989
+ while (reader.pos < end2) {
12990
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
12991
+ }
12992
+ continue;
12993
+ }
12994
+ break;
12995
+ }
12996
+ case 15: {
12997
+ if (tag !== 122) {
12998
+ break;
12999
+ }
13000
+ message.module = DataModule.decode(reader, reader.uint32());
12692
13001
  continue;
12693
13002
  }
12694
13003
  }
@@ -12700,47 +13009,110 @@ export const Jtt1078EventMediaInfoUpload = {
12700
13009
  return message;
12701
13010
  },
12702
13011
  create(base) {
12703
- return Jtt1078EventMediaInfoUpload.fromPartial(base ?? {});
13012
+ return OdysseyDevice.fromPartial(base ?? {});
12704
13013
  },
12705
13014
  fromPartial(object) {
12706
- const message = createBaseJtt1078EventMediaInfoUpload();
12707
- message.mediaId = object.mediaId ?? 0;
12708
- message.mediaType = object.mediaType ?? 0;
12709
- message.mediaFormat = object.mediaFormat ?? 0;
12710
- message.eventItemCode = object.eventItemCode ?? 0;
12711
- message.channelId = object.channelId ?? 0;
13015
+ const message = createBaseOdysseyDevice();
13016
+ message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
13017
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13018
+ message.objectId = (object.objectId !== undefined && object.objectId !== null)
13019
+ ? Long.fromValue(object.objectId)
13020
+ : undefined;
13021
+ message.objectType = object.objectType ?? 0;
13022
+ message.timezone = object.timezone ?? "";
13023
+ message.isUnlimited = object.isUnlimited ?? false;
13024
+ message.tripType = object.tripType ?? 0;
13025
+ message.receiveAt = object.receiveAt ?? undefined;
13026
+ message.expiresAt = object.expiresAt ?? undefined;
13027
+ message.connectAt = object.connectAt ?? undefined;
13028
+ message.createdAt = object.createdAt ?? undefined;
13029
+ message.workflowTaskId = (object.workflowTaskId !== undefined && object.workflowTaskId !== null)
13030
+ ? Long.fromValue(object.workflowTaskId)
13031
+ : undefined;
13032
+ message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13033
+ ? Long.fromValue(object.organizationId)
13034
+ : undefined;
13035
+ message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
13036
+ message.module = (object.module !== undefined && object.module !== null)
13037
+ ? DataModule.fromPartial(object.module)
13038
+ : undefined;
12712
13039
  return message;
12713
13040
  },
12714
13041
  };
12715
- function createBaseJtt1078EventMediaDataUpload() {
12716
- return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0, payload: new Uint8Array(0) };
13042
+ function createBaseFusionDevice() {
13043
+ return {
13044
+ deviceId: Long.UZERO,
13045
+ carId: undefined,
13046
+ imei: Long.UZERO,
13047
+ ignitionSource: 0,
13048
+ timezone: undefined,
13049
+ fcmToken: undefined,
13050
+ isFreeUse: false,
13051
+ canReceiveFrom: Long.ZERO,
13052
+ expireTime: Long.ZERO,
13053
+ odoType: 0,
13054
+ firstConnect: Long.ZERO,
13055
+ tripType: 0,
13056
+ createdAt: Long.ZERO,
13057
+ organizationId: undefined,
13058
+ generation: [],
13059
+ };
12717
13060
  }
12718
- export const Jtt1078EventMediaDataUpload = {
13061
+ export const FusionDevice = {
12719
13062
  encode(message, writer = new BinaryWriter()) {
12720
- if (message.mediaId !== 0) {
12721
- writer.uint32(8).uint32(message.mediaId);
13063
+ if (!message.deviceId.equals(Long.UZERO)) {
13064
+ writer.uint32(8).uint64(message.deviceId.toString());
12722
13065
  }
12723
- if (message.mediaType !== 0) {
12724
- writer.uint32(16).uint32(message.mediaType);
13066
+ if (message.carId !== undefined) {
13067
+ writer.uint32(16).uint64(message.carId.toString());
12725
13068
  }
12726
- if (message.mediaFormat !== 0) {
12727
- writer.uint32(24).uint32(message.mediaFormat);
13069
+ if (!message.imei.equals(Long.UZERO)) {
13070
+ writer.uint32(24).uint64(message.imei.toString());
12728
13071
  }
12729
- if (message.eventItemCode !== 0) {
12730
- writer.uint32(32).uint32(message.eventItemCode);
13072
+ if (message.ignitionSource !== 0) {
13073
+ writer.uint32(32).int32(message.ignitionSource);
12731
13074
  }
12732
- if (message.channelId !== 0) {
12733
- writer.uint32(40).uint32(message.channelId);
13075
+ if (message.timezone !== undefined) {
13076
+ writer.uint32(42).string(message.timezone);
12734
13077
  }
12735
- if (message.payload.length !== 0) {
12736
- writer.uint32(50).bytes(message.payload);
13078
+ if (message.fcmToken !== undefined) {
13079
+ writer.uint32(50).string(message.fcmToken);
13080
+ }
13081
+ if (message.isFreeUse !== false) {
13082
+ writer.uint32(56).bool(message.isFreeUse);
13083
+ }
13084
+ if (!message.canReceiveFrom.equals(Long.ZERO)) {
13085
+ writer.uint32(64).int64(message.canReceiveFrom.toString());
13086
+ }
13087
+ if (!message.expireTime.equals(Long.ZERO)) {
13088
+ writer.uint32(72).int64(message.expireTime.toString());
13089
+ }
13090
+ if (message.odoType !== 0) {
13091
+ writer.uint32(80).uint32(message.odoType);
12737
13092
  }
13093
+ if (!message.firstConnect.equals(Long.ZERO)) {
13094
+ writer.uint32(88).int64(message.firstConnect.toString());
13095
+ }
13096
+ if (message.tripType !== 0) {
13097
+ writer.uint32(96).uint32(message.tripType);
13098
+ }
13099
+ if (!message.createdAt.equals(Long.ZERO)) {
13100
+ writer.uint32(104).int64(message.createdAt.toString());
13101
+ }
13102
+ if (message.organizationId !== undefined) {
13103
+ writer.uint32(120).uint64(message.organizationId.toString());
13104
+ }
13105
+ writer.uint32(130).fork();
13106
+ for (const v of message.generation) {
13107
+ writer.uint64(v.toString());
13108
+ }
13109
+ writer.join();
12738
13110
  return writer;
12739
13111
  },
12740
13112
  decode(input, length) {
12741
13113
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12742
13114
  const end = length === undefined ? reader.len : reader.pos + length;
12743
- const message = createBaseJtt1078EventMediaDataUpload();
13115
+ const message = createBaseFusionDevice();
12744
13116
  while (reader.pos < end) {
12745
13117
  const tag = reader.uint32();
12746
13118
  switch (tag >>> 3) {
@@ -12748,44 +13120,114 @@ export const Jtt1078EventMediaDataUpload = {
12748
13120
  if (tag !== 8) {
12749
13121
  break;
12750
13122
  }
12751
- message.mediaId = reader.uint32();
13123
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
12752
13124
  continue;
12753
13125
  }
12754
13126
  case 2: {
12755
13127
  if (tag !== 16) {
12756
13128
  break;
12757
13129
  }
12758
- message.mediaType = reader.uint32();
13130
+ message.carId = Long.fromString(reader.uint64().toString(), true);
12759
13131
  continue;
12760
13132
  }
12761
13133
  case 3: {
12762
13134
  if (tag !== 24) {
12763
13135
  break;
12764
13136
  }
12765
- message.mediaFormat = reader.uint32();
13137
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12766
13138
  continue;
12767
13139
  }
12768
13140
  case 4: {
12769
13141
  if (tag !== 32) {
12770
13142
  break;
12771
13143
  }
12772
- message.eventItemCode = reader.uint32();
13144
+ message.ignitionSource = reader.int32();
12773
13145
  continue;
12774
13146
  }
12775
13147
  case 5: {
12776
- if (tag !== 40) {
13148
+ if (tag !== 42) {
12777
13149
  break;
12778
13150
  }
12779
- message.channelId = reader.uint32();
13151
+ message.timezone = reader.string();
12780
13152
  continue;
12781
13153
  }
12782
13154
  case 6: {
12783
13155
  if (tag !== 50) {
12784
13156
  break;
12785
13157
  }
12786
- message.payload = reader.bytes();
13158
+ message.fcmToken = reader.string();
13159
+ continue;
13160
+ }
13161
+ case 7: {
13162
+ if (tag !== 56) {
13163
+ break;
13164
+ }
13165
+ message.isFreeUse = reader.bool();
13166
+ continue;
13167
+ }
13168
+ case 8: {
13169
+ if (tag !== 64) {
13170
+ break;
13171
+ }
13172
+ message.canReceiveFrom = Long.fromString(reader.int64().toString());
13173
+ continue;
13174
+ }
13175
+ case 9: {
13176
+ if (tag !== 72) {
13177
+ break;
13178
+ }
13179
+ message.expireTime = Long.fromString(reader.int64().toString());
13180
+ continue;
13181
+ }
13182
+ case 10: {
13183
+ if (tag !== 80) {
13184
+ break;
13185
+ }
13186
+ message.odoType = reader.uint32();
13187
+ continue;
13188
+ }
13189
+ case 11: {
13190
+ if (tag !== 88) {
13191
+ break;
13192
+ }
13193
+ message.firstConnect = Long.fromString(reader.int64().toString());
12787
13194
  continue;
12788
13195
  }
13196
+ case 12: {
13197
+ if (tag !== 96) {
13198
+ break;
13199
+ }
13200
+ message.tripType = reader.uint32();
13201
+ continue;
13202
+ }
13203
+ case 13: {
13204
+ if (tag !== 104) {
13205
+ break;
13206
+ }
13207
+ message.createdAt = Long.fromString(reader.int64().toString());
13208
+ continue;
13209
+ }
13210
+ case 15: {
13211
+ if (tag !== 120) {
13212
+ break;
13213
+ }
13214
+ message.organizationId = Long.fromString(reader.uint64().toString(), true);
13215
+ continue;
13216
+ }
13217
+ case 16: {
13218
+ if (tag === 128) {
13219
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
13220
+ continue;
13221
+ }
13222
+ if (tag === 130) {
13223
+ const end2 = reader.uint32() + reader.pos;
13224
+ while (reader.pos < end2) {
13225
+ message.generation.push(Long.fromString(reader.uint64().toString(), true));
13226
+ }
13227
+ continue;
13228
+ }
13229
+ break;
13230
+ }
12789
13231
  }
12790
13232
  if ((tag & 7) === 4 || tag === 0) {
12791
13233
  break;
@@ -12795,39 +13237,145 @@ export const Jtt1078EventMediaDataUpload = {
12795
13237
  return message;
12796
13238
  },
12797
13239
  create(base) {
12798
- return Jtt1078EventMediaDataUpload.fromPartial(base ?? {});
13240
+ return FusionDevice.fromPartial(base ?? {});
12799
13241
  },
12800
13242
  fromPartial(object) {
12801
- const message = createBaseJtt1078EventMediaDataUpload();
12802
- message.mediaId = object.mediaId ?? 0;
12803
- message.mediaType = object.mediaType ?? 0;
12804
- message.mediaFormat = object.mediaFormat ?? 0;
12805
- message.eventItemCode = object.eventItemCode ?? 0;
12806
- message.channelId = object.channelId ?? 0;
12807
- message.payload = object.payload ?? new Uint8Array(0);
13243
+ const message = createBaseFusionDevice();
13244
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13245
+ ? Long.fromValue(object.deviceId)
13246
+ : Long.UZERO;
13247
+ message.carId = (object.carId !== undefined && object.carId !== null) ? Long.fromValue(object.carId) : undefined;
13248
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13249
+ message.ignitionSource = object.ignitionSource ?? 0;
13250
+ message.timezone = object.timezone ?? undefined;
13251
+ message.fcmToken = object.fcmToken ?? undefined;
13252
+ message.isFreeUse = object.isFreeUse ?? false;
13253
+ message.canReceiveFrom = (object.canReceiveFrom !== undefined && object.canReceiveFrom !== null)
13254
+ ? Long.fromValue(object.canReceiveFrom)
13255
+ : Long.ZERO;
13256
+ message.expireTime = (object.expireTime !== undefined && object.expireTime !== null)
13257
+ ? Long.fromValue(object.expireTime)
13258
+ : Long.ZERO;
13259
+ message.odoType = object.odoType ?? 0;
13260
+ message.firstConnect = (object.firstConnect !== undefined && object.firstConnect !== null)
13261
+ ? Long.fromValue(object.firstConnect)
13262
+ : Long.ZERO;
13263
+ message.tripType = object.tripType ?? 0;
13264
+ message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
13265
+ ? Long.fromValue(object.createdAt)
13266
+ : Long.ZERO;
13267
+ message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13268
+ ? Long.fromValue(object.organizationId)
13269
+ : undefined;
13270
+ message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
12808
13271
  return message;
12809
13272
  },
12810
13273
  };
12811
- function createBaseJtt808SignalingDataMessage1212() {
12812
- return { name: "", type: 0, size: 0 };
13274
+ function createBaseDeviceData() {
13275
+ return { fusionDevice: undefined, odysseyDevice: undefined, fetchedAt: Long.ZERO };
13276
+ }
13277
+ export const DeviceData = {
13278
+ encode(message, writer = new BinaryWriter()) {
13279
+ if (message.fusionDevice !== undefined) {
13280
+ FusionDevice.encode(message.fusionDevice, writer.uint32(10).fork()).join();
13281
+ }
13282
+ if (message.odysseyDevice !== undefined) {
13283
+ OdysseyDevice.encode(message.odysseyDevice, writer.uint32(18).fork()).join();
13284
+ }
13285
+ if (!message.fetchedAt.equals(Long.ZERO)) {
13286
+ writer.uint32(24).int64(message.fetchedAt.toString());
13287
+ }
13288
+ return writer;
13289
+ },
13290
+ decode(input, length) {
13291
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13292
+ const end = length === undefined ? reader.len : reader.pos + length;
13293
+ const message = createBaseDeviceData();
13294
+ while (reader.pos < end) {
13295
+ const tag = reader.uint32();
13296
+ switch (tag >>> 3) {
13297
+ case 1: {
13298
+ if (tag !== 10) {
13299
+ break;
13300
+ }
13301
+ message.fusionDevice = FusionDevice.decode(reader, reader.uint32());
13302
+ continue;
13303
+ }
13304
+ case 2: {
13305
+ if (tag !== 18) {
13306
+ break;
13307
+ }
13308
+ message.odysseyDevice = OdysseyDevice.decode(reader, reader.uint32());
13309
+ continue;
13310
+ }
13311
+ case 3: {
13312
+ if (tag !== 24) {
13313
+ break;
13314
+ }
13315
+ message.fetchedAt = Long.fromString(reader.int64().toString());
13316
+ continue;
13317
+ }
13318
+ }
13319
+ if ((tag & 7) === 4 || tag === 0) {
13320
+ break;
13321
+ }
13322
+ reader.skip(tag & 7);
13323
+ }
13324
+ return message;
13325
+ },
13326
+ create(base) {
13327
+ return DeviceData.fromPartial(base ?? {});
13328
+ },
13329
+ fromPartial(object) {
13330
+ const message = createBaseDeviceData();
13331
+ message.fusionDevice = (object.fusionDevice !== undefined && object.fusionDevice !== null)
13332
+ ? FusionDevice.fromPartial(object.fusionDevice)
13333
+ : undefined;
13334
+ message.odysseyDevice = (object.odysseyDevice !== undefined && object.odysseyDevice !== null)
13335
+ ? OdysseyDevice.fromPartial(object.odysseyDevice)
13336
+ : undefined;
13337
+ message.fetchedAt = (object.fetchedAt !== undefined && object.fetchedAt !== null)
13338
+ ? Long.fromValue(object.fetchedAt)
13339
+ : Long.ZERO;
13340
+ return message;
13341
+ },
13342
+ };
13343
+ function createBaseTask() {
13344
+ return {
13345
+ data: undefined,
13346
+ client: undefined,
13347
+ alertIdNumber: {},
13348
+ imei: Long.UZERO,
13349
+ deviceData: undefined,
13350
+ protocol: 0,
13351
+ };
12813
13352
  }
12814
- export const Jtt808SignalingDataMessage1212 = {
13353
+ export const Task = {
12815
13354
  encode(message, writer = new BinaryWriter()) {
12816
- if (message.name !== "") {
12817
- writer.uint32(10).string(message.name);
13355
+ if (message.data !== undefined) {
13356
+ Data.encode(message.data, writer.uint32(10).fork()).join();
12818
13357
  }
12819
- if (message.type !== 0) {
12820
- writer.uint32(16).int32(message.type);
13358
+ if (message.client !== undefined) {
13359
+ Client.encode(message.client, writer.uint32(18).fork()).join();
12821
13360
  }
12822
- if (message.size !== 0) {
12823
- writer.uint32(24).uint32(message.size);
13361
+ globalThis.Object.entries(message.alertIdNumber).forEach(([key, value]) => {
13362
+ Task_AlertIdNumberEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
13363
+ });
13364
+ if (!message.imei.equals(Long.UZERO)) {
13365
+ writer.uint32(32).uint64(message.imei.toString());
13366
+ }
13367
+ if (message.deviceData !== undefined) {
13368
+ DeviceData.encode(message.deviceData, writer.uint32(42).fork()).join();
13369
+ }
13370
+ if (message.protocol !== 0) {
13371
+ writer.uint32(48).int32(message.protocol);
12824
13372
  }
12825
13373
  return writer;
12826
13374
  },
12827
13375
  decode(input, length) {
12828
13376
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12829
13377
  const end = length === undefined ? reader.len : reader.pos + length;
12830
- const message = createBaseJtt808SignalingDataMessage1212();
13378
+ const message = createBaseTask();
12831
13379
  while (reader.pos < end) {
12832
13380
  const tag = reader.uint32();
12833
13381
  switch (tag >>> 3) {
@@ -12835,21 +13383,45 @@ export const Jtt808SignalingDataMessage1212 = {
12835
13383
  if (tag !== 10) {
12836
13384
  break;
12837
13385
  }
12838
- message.name = reader.string();
13386
+ message.data = Data.decode(reader, reader.uint32());
12839
13387
  continue;
12840
13388
  }
12841
13389
  case 2: {
12842
- if (tag !== 16) {
13390
+ if (tag !== 18) {
12843
13391
  break;
12844
13392
  }
12845
- message.type = reader.int32();
13393
+ message.client = Client.decode(reader, reader.uint32());
12846
13394
  continue;
12847
13395
  }
12848
13396
  case 3: {
12849
- if (tag !== 24) {
13397
+ if (tag !== 26) {
12850
13398
  break;
12851
13399
  }
12852
- message.size = reader.uint32();
13400
+ const entry3 = Task_AlertIdNumberEntry.decode(reader, reader.uint32());
13401
+ if (entry3.value !== undefined) {
13402
+ message.alertIdNumber[entry3.key] = entry3.value;
13403
+ }
13404
+ continue;
13405
+ }
13406
+ case 4: {
13407
+ if (tag !== 32) {
13408
+ break;
13409
+ }
13410
+ message.imei = Long.fromString(reader.uint64().toString(), true);
13411
+ continue;
13412
+ }
13413
+ case 5: {
13414
+ if (tag !== 42) {
13415
+ break;
13416
+ }
13417
+ message.deviceData = DeviceData.decode(reader, reader.uint32());
13418
+ continue;
13419
+ }
13420
+ case 6: {
13421
+ if (tag !== 48) {
13422
+ break;
13423
+ }
13424
+ message.protocol = reader.int32();
12853
13425
  continue;
12854
13426
  }
12855
13427
  }
@@ -12861,33 +13433,45 @@ export const Jtt808SignalingDataMessage1212 = {
12861
13433
  return message;
12862
13434
  },
12863
13435
  create(base) {
12864
- return Jtt808SignalingDataMessage1212.fromPartial(base ?? {});
13436
+ return Task.fromPartial(base ?? {});
12865
13437
  },
12866
13438
  fromPartial(object) {
12867
- const message = createBaseJtt808SignalingDataMessage1212();
12868
- message.name = object.name ?? "";
12869
- message.type = object.type ?? 0;
12870
- message.size = object.size ?? 0;
13439
+ const message = createBaseTask();
13440
+ message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13441
+ message.client = (object.client !== undefined && object.client !== null)
13442
+ ? Client.fromPartial(object.client)
13443
+ : undefined;
13444
+ message.alertIdNumber = globalThis.Object.entries(object.alertIdNumber ?? {}).reduce((acc, [key, value]) => {
13445
+ if (value !== undefined) {
13446
+ acc[globalThis.Number(key)] = value;
13447
+ }
13448
+ return acc;
13449
+ }, {});
13450
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13451
+ message.deviceData = (object.deviceData !== undefined && object.deviceData !== null)
13452
+ ? DeviceData.fromPartial(object.deviceData)
13453
+ : undefined;
13454
+ message.protocol = object.protocol ?? 0;
12871
13455
  return message;
12872
13456
  },
12873
13457
  };
12874
- function createBaseConcoxLikeR31() {
12875
- return { id: 0, command: "" };
13458
+ function createBaseTask_AlertIdNumberEntry() {
13459
+ return { key: 0, value: new Uint8Array(0) };
12876
13460
  }
12877
- export const ConcoxLikeR31 = {
13461
+ export const Task_AlertIdNumberEntry = {
12878
13462
  encode(message, writer = new BinaryWriter()) {
12879
- if (message.id !== 0) {
12880
- writer.uint32(8).uint32(message.id);
13463
+ if (message.key !== 0) {
13464
+ writer.uint32(8).int32(message.key);
12881
13465
  }
12882
- if (message.command !== "") {
12883
- writer.uint32(18).string(message.command);
13466
+ if (message.value.length !== 0) {
13467
+ writer.uint32(18).bytes(message.value);
12884
13468
  }
12885
13469
  return writer;
12886
13470
  },
12887
13471
  decode(input, length) {
12888
13472
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12889
13473
  const end = length === undefined ? reader.len : reader.pos + length;
12890
- const message = createBaseConcoxLikeR31();
13474
+ const message = createBaseTask_AlertIdNumberEntry();
12891
13475
  while (reader.pos < end) {
12892
13476
  const tag = reader.uint32();
12893
13477
  switch (tag >>> 3) {
@@ -12895,14 +13479,14 @@ export const ConcoxLikeR31 = {
12895
13479
  if (tag !== 8) {
12896
13480
  break;
12897
13481
  }
12898
- message.id = reader.uint32();
13482
+ message.key = reader.int32();
12899
13483
  continue;
12900
13484
  }
12901
13485
  case 2: {
12902
13486
  if (tag !== 18) {
12903
13487
  break;
12904
13488
  }
12905
- message.command = reader.string();
13489
+ message.value = reader.bytes();
12906
13490
  continue;
12907
13491
  }
12908
13492
  }
@@ -12914,44 +13498,71 @@ export const ConcoxLikeR31 = {
12914
13498
  return message;
12915
13499
  },
12916
13500
  create(base) {
12917
- return ConcoxLikeR31.fromPartial(base ?? {});
13501
+ return Task_AlertIdNumberEntry.fromPartial(base ?? {});
12918
13502
  },
12919
13503
  fromPartial(object) {
12920
- const message = createBaseConcoxLikeR31();
12921
- message.id = object.id ?? 0;
12922
- message.command = object.command ?? "";
13504
+ const message = createBaseTask_AlertIdNumberEntry();
13505
+ message.key = object.key ?? 0;
13506
+ message.value = object.value ?? new Uint8Array(0);
12923
13507
  return message;
12924
13508
  },
12925
13509
  };
12926
- function createBaseConcoxRecording0x8d() {
12927
- return { fileType: 0, fileSize: 0, totalFiles: 0, currentSequence: 0, currentLength: 0, payload: new Uint8Array(0) };
13510
+ function createBaseDeviceStatus() {
13511
+ return {
13512
+ deviceId: Long.UZERO,
13513
+ imei: Long.UZERO,
13514
+ data: undefined,
13515
+ client: undefined,
13516
+ online: false,
13517
+ lastOnline: undefined,
13518
+ logs: [],
13519
+ stat: 0,
13520
+ protocol: 0,
13521
+ odyssey: undefined,
13522
+ fusion: undefined,
13523
+ };
12928
13524
  }
12929
- export const ConcoxRecording0x8d = {
13525
+ export const DeviceStatus = {
12930
13526
  encode(message, writer = new BinaryWriter()) {
12931
- if (message.fileType !== 0) {
12932
- writer.uint32(8).uint32(message.fileType);
13527
+ if (!message.deviceId.equals(Long.UZERO)) {
13528
+ writer.uint32(8).uint64(message.deviceId.toString());
12933
13529
  }
12934
- if (message.fileSize !== 0) {
12935
- writer.uint32(16).uint32(message.fileSize);
13530
+ if (!message.imei.equals(Long.UZERO)) {
13531
+ writer.uint32(16).uint64(message.imei.toString());
12936
13532
  }
12937
- if (message.totalFiles !== 0) {
12938
- writer.uint32(24).uint32(message.totalFiles);
13533
+ if (message.data !== undefined) {
13534
+ Data.encode(message.data, writer.uint32(26).fork()).join();
12939
13535
  }
12940
- if (message.currentSequence !== 0) {
12941
- writer.uint32(32).uint32(message.currentSequence);
13536
+ if (message.client !== undefined) {
13537
+ Client.encode(message.client, writer.uint32(34).fork()).join();
12942
13538
  }
12943
- if (message.currentLength !== 0) {
12944
- writer.uint32(40).uint32(message.currentLength);
13539
+ if (message.online !== false) {
13540
+ writer.uint32(40).bool(message.online);
12945
13541
  }
12946
- if (message.payload.length !== 0) {
12947
- writer.uint32(50).bytes(message.payload);
13542
+ if (message.lastOnline !== undefined) {
13543
+ Timestamp.encode(toTimestamp(message.lastOnline), writer.uint32(50).fork()).join();
13544
+ }
13545
+ for (const v of message.logs) {
13546
+ Log.encode(v, writer.uint32(58).fork()).join();
13547
+ }
13548
+ if (message.stat !== 0) {
13549
+ writer.uint32(64).int32(message.stat);
13550
+ }
13551
+ if (message.protocol !== 0) {
13552
+ writer.uint32(72).int32(message.protocol);
13553
+ }
13554
+ if (message.odyssey !== undefined) {
13555
+ OdysseyDevice.encode(message.odyssey, writer.uint32(170).fork()).join();
13556
+ }
13557
+ if (message.fusion !== undefined) {
13558
+ FusionDevice.encode(message.fusion, writer.uint32(178).fork()).join();
12948
13559
  }
12949
13560
  return writer;
12950
13561
  },
12951
13562
  decode(input, length) {
12952
13563
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12953
13564
  const end = length === undefined ? reader.len : reader.pos + length;
12954
- const message = createBaseConcoxRecording0x8d();
13565
+ const message = createBaseDeviceStatus();
12955
13566
  while (reader.pos < end) {
12956
13567
  const tag = reader.uint32();
12957
13568
  switch (tag >>> 3) {
@@ -12959,118 +13570,77 @@ export const ConcoxRecording0x8d = {
12959
13570
  if (tag !== 8) {
12960
13571
  break;
12961
13572
  }
12962
- message.fileType = reader.uint32();
13573
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
12963
13574
  continue;
12964
13575
  }
12965
13576
  case 2: {
12966
13577
  if (tag !== 16) {
12967
13578
  break;
12968
13579
  }
12969
- message.fileSize = reader.uint32();
13580
+ message.imei = Long.fromString(reader.uint64().toString(), true);
12970
13581
  continue;
12971
13582
  }
12972
13583
  case 3: {
12973
- if (tag !== 24) {
13584
+ if (tag !== 26) {
12974
13585
  break;
12975
13586
  }
12976
- message.totalFiles = reader.uint32();
13587
+ message.data = Data.decode(reader, reader.uint32());
12977
13588
  continue;
12978
13589
  }
12979
13590
  case 4: {
12980
- if (tag !== 32) {
13591
+ if (tag !== 34) {
12981
13592
  break;
12982
13593
  }
12983
- message.currentSequence = reader.uint32();
13594
+ message.client = Client.decode(reader, reader.uint32());
12984
13595
  continue;
12985
13596
  }
12986
13597
  case 5: {
12987
13598
  if (tag !== 40) {
12988
13599
  break;
12989
13600
  }
12990
- message.currentLength = reader.uint32();
13601
+ message.online = reader.bool();
12991
13602
  continue;
12992
13603
  }
12993
13604
  case 6: {
12994
13605
  if (tag !== 50) {
12995
13606
  break;
12996
13607
  }
12997
- message.payload = reader.bytes();
13608
+ message.lastOnline = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12998
13609
  continue;
12999
13610
  }
13000
- }
13001
- if ((tag & 7) === 4 || tag === 0) {
13002
- break;
13003
- }
13004
- reader.skip(tag & 7);
13005
- }
13006
- return message;
13007
- },
13008
- create(base) {
13009
- return ConcoxRecording0x8d.fromPartial(base ?? {});
13010
- },
13011
- fromPartial(object) {
13012
- const message = createBaseConcoxRecording0x8d();
13013
- message.fileType = object.fileType ?? 0;
13014
- message.fileSize = object.fileSize ?? 0;
13015
- message.totalFiles = object.totalFiles ?? 0;
13016
- message.currentSequence = object.currentSequence ?? 0;
13017
- message.currentLength = object.currentLength ?? 0;
13018
- message.payload = object.payload ?? new Uint8Array(0);
13019
- return message;
13020
- },
13021
- };
13022
- function createBaseClient() {
13023
- return { remoteIp: "", remotePort: 0, localIp: "", localPort: 0 };
13024
- }
13025
- export const Client = {
13026
- encode(message, writer = new BinaryWriter()) {
13027
- if (message.remoteIp !== "") {
13028
- writer.uint32(10).string(message.remoteIp);
13029
- }
13030
- if (message.remotePort !== 0) {
13031
- writer.uint32(16).uint32(message.remotePort);
13032
- }
13033
- if (message.localIp !== "") {
13034
- writer.uint32(26).string(message.localIp);
13035
- }
13036
- if (message.localPort !== 0) {
13037
- writer.uint32(32).uint32(message.localPort);
13038
- }
13039
- return writer;
13040
- },
13041
- decode(input, length) {
13042
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13043
- const end = length === undefined ? reader.len : reader.pos + length;
13044
- const message = createBaseClient();
13045
- while (reader.pos < end) {
13046
- const tag = reader.uint32();
13047
- switch (tag >>> 3) {
13048
- case 1: {
13049
- if (tag !== 10) {
13611
+ case 7: {
13612
+ if (tag !== 58) {
13050
13613
  break;
13051
13614
  }
13052
- message.remoteIp = reader.string();
13615
+ message.logs.push(Log.decode(reader, reader.uint32()));
13053
13616
  continue;
13054
13617
  }
13055
- case 2: {
13056
- if (tag !== 16) {
13618
+ case 8: {
13619
+ if (tag !== 64) {
13057
13620
  break;
13058
13621
  }
13059
- message.remotePort = reader.uint32();
13622
+ message.stat = reader.int32();
13060
13623
  continue;
13061
13624
  }
13062
- case 3: {
13063
- if (tag !== 26) {
13625
+ case 9: {
13626
+ if (tag !== 72) {
13064
13627
  break;
13065
13628
  }
13066
- message.localIp = reader.string();
13629
+ message.protocol = reader.int32();
13067
13630
  continue;
13068
13631
  }
13069
- case 4: {
13070
- if (tag !== 32) {
13632
+ case 21: {
13633
+ if (tag !== 170) {
13071
13634
  break;
13072
13635
  }
13073
- message.localPort = reader.uint32();
13636
+ message.odyssey = OdysseyDevice.decode(reader, reader.uint32());
13637
+ continue;
13638
+ }
13639
+ case 22: {
13640
+ if (tag !== 178) {
13641
+ break;
13642
+ }
13643
+ message.fusion = FusionDevice.decode(reader, reader.uint32());
13074
13644
  continue;
13075
13645
  }
13076
13646
  }
@@ -13082,204 +13652,155 @@ export const Client = {
13082
13652
  return message;
13083
13653
  },
13084
13654
  create(base) {
13085
- return Client.fromPartial(base ?? {});
13086
- },
13087
- fromPartial(object) {
13088
- const message = createBaseClient();
13089
- message.remoteIp = object.remoteIp ?? "";
13090
- message.remotePort = object.remotePort ?? 0;
13091
- message.localIp = object.localIp ?? "";
13092
- message.localPort = object.localPort ?? 0;
13655
+ return DeviceStatus.fromPartial(base ?? {});
13656
+ },
13657
+ fromPartial(object) {
13658
+ const message = createBaseDeviceStatus();
13659
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13660
+ ? Long.fromValue(object.deviceId)
13661
+ : Long.UZERO;
13662
+ message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13663
+ message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13664
+ message.client = (object.client !== undefined && object.client !== null)
13665
+ ? Client.fromPartial(object.client)
13666
+ : undefined;
13667
+ message.online = object.online ?? false;
13668
+ message.lastOnline = object.lastOnline ?? undefined;
13669
+ message.logs = object.logs?.map((e) => Log.fromPartial(e)) || [];
13670
+ message.stat = object.stat ?? 0;
13671
+ message.protocol = object.protocol ?? 0;
13672
+ message.odyssey = (object.odyssey !== undefined && object.odyssey !== null)
13673
+ ? OdysseyDevice.fromPartial(object.odyssey)
13674
+ : undefined;
13675
+ message.fusion = (object.fusion !== undefined && object.fusion !== null)
13676
+ ? FusionDevice.fromPartial(object.fusion)
13677
+ : undefined;
13093
13678
  return message;
13094
13679
  },
13095
13680
  };
13096
- function createBaseOdysseyDevice() {
13681
+ function createBaseJTT808AlarmData() {
13097
13682
  return {
13098
- id: Long.UZERO,
13099
- imei: Long.UZERO,
13100
- objectId: undefined,
13101
- objectType: 0,
13102
- timezone: "",
13103
- isUnlimited: false,
13104
- tripType: 0,
13105
- receiveAt: undefined,
13106
- expiresAt: undefined,
13107
- connectAt: undefined,
13108
- createdAt: undefined,
13109
- workflowTaskId: undefined,
13110
- organizationId: undefined,
13111
- generation: [],
13112
- module: undefined,
13683
+ alarmId: new Uint8Array(0),
13684
+ terminalId: Long.UZERO,
13685
+ datetime: undefined,
13686
+ serialNo: 0,
13687
+ attachments: 0,
13688
+ speed: 0,
13689
+ latitude: 0,
13690
+ longitude: 0,
13691
+ gpsTime: undefined,
13692
+ alarmType: 0,
13113
13693
  };
13114
13694
  }
13115
- export const OdysseyDevice = {
13695
+ export const JTT808AlarmData = {
13116
13696
  encode(message, writer = new BinaryWriter()) {
13117
- if (!message.id.equals(Long.UZERO)) {
13118
- writer.uint32(8).uint64(message.id.toString());
13119
- }
13120
- if (!message.imei.equals(Long.UZERO)) {
13121
- writer.uint32(16).uint64(message.imei.toString());
13122
- }
13123
- if (message.objectId !== undefined) {
13124
- writer.uint32(24).uint64(message.objectId.toString());
13125
- }
13126
- if (message.objectType !== 0) {
13127
- writer.uint32(32).int32(message.objectType);
13697
+ if (message.alarmId.length !== 0) {
13698
+ writer.uint32(10).bytes(message.alarmId);
13128
13699
  }
13129
- if (message.timezone !== "") {
13130
- writer.uint32(42).string(message.timezone);
13131
- }
13132
- if (message.isUnlimited !== false) {
13133
- writer.uint32(48).bool(message.isUnlimited);
13134
- }
13135
- if (message.tripType !== 0) {
13136
- writer.uint32(56).int32(message.tripType);
13700
+ if (!message.terminalId.equals(Long.UZERO)) {
13701
+ writer.uint32(16).uint64(message.terminalId.toString());
13137
13702
  }
13138
- if (message.receiveAt !== undefined) {
13139
- Timestamp.encode(toTimestamp(message.receiveAt), writer.uint32(66).fork()).join();
13703
+ if (message.datetime !== undefined) {
13704
+ Timestamp.encode(toTimestamp(message.datetime), writer.uint32(26).fork()).join();
13140
13705
  }
13141
- if (message.expiresAt !== undefined) {
13142
- Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(74).fork()).join();
13706
+ if (message.serialNo !== 0) {
13707
+ writer.uint32(32).uint32(message.serialNo);
13143
13708
  }
13144
- if (message.connectAt !== undefined) {
13145
- Timestamp.encode(toTimestamp(message.connectAt), writer.uint32(82).fork()).join();
13709
+ if (message.attachments !== 0) {
13710
+ writer.uint32(40).uint32(message.attachments);
13146
13711
  }
13147
- if (message.createdAt !== undefined) {
13148
- Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
13712
+ if (message.speed !== 0) {
13713
+ writer.uint32(48).uint32(message.speed);
13149
13714
  }
13150
- if (message.workflowTaskId !== undefined) {
13151
- writer.uint32(96).uint64(message.workflowTaskId.toString());
13715
+ if (message.latitude !== 0) {
13716
+ writer.uint32(56).uint32(message.latitude);
13152
13717
  }
13153
- if (message.organizationId !== undefined) {
13154
- writer.uint32(104).uint64(message.organizationId.toString());
13718
+ if (message.longitude !== 0) {
13719
+ writer.uint32(64).uint32(message.longitude);
13155
13720
  }
13156
- writer.uint32(114).fork();
13157
- for (const v of message.generation) {
13158
- writer.uint64(v.toString());
13721
+ if (message.gpsTime !== undefined) {
13722
+ Timestamp.encode(toTimestamp(message.gpsTime), writer.uint32(74).fork()).join();
13159
13723
  }
13160
- writer.join();
13161
- if (message.module !== undefined) {
13162
- DataModule.encode(message.module, writer.uint32(122).fork()).join();
13724
+ if (message.alarmType !== 0) {
13725
+ writer.uint32(80).int32(message.alarmType);
13163
13726
  }
13164
13727
  return writer;
13165
13728
  },
13166
13729
  decode(input, length) {
13167
13730
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13168
13731
  const end = length === undefined ? reader.len : reader.pos + length;
13169
- const message = createBaseOdysseyDevice();
13732
+ const message = createBaseJTT808AlarmData();
13170
13733
  while (reader.pos < end) {
13171
13734
  const tag = reader.uint32();
13172
13735
  switch (tag >>> 3) {
13173
13736
  case 1: {
13174
- if (tag !== 8) {
13737
+ if (tag !== 10) {
13175
13738
  break;
13176
13739
  }
13177
- message.id = Long.fromString(reader.uint64().toString(), true);
13740
+ message.alarmId = reader.bytes();
13178
13741
  continue;
13179
13742
  }
13180
13743
  case 2: {
13181
13744
  if (tag !== 16) {
13182
13745
  break;
13183
13746
  }
13184
- message.imei = Long.fromString(reader.uint64().toString(), true);
13747
+ message.terminalId = Long.fromString(reader.uint64().toString(), true);
13185
13748
  continue;
13186
13749
  }
13187
13750
  case 3: {
13188
- if (tag !== 24) {
13751
+ if (tag !== 26) {
13189
13752
  break;
13190
13753
  }
13191
- message.objectId = Long.fromString(reader.uint64().toString(), true);
13754
+ message.datetime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13192
13755
  continue;
13193
13756
  }
13194
13757
  case 4: {
13195
13758
  if (tag !== 32) {
13196
13759
  break;
13197
13760
  }
13198
- message.objectType = reader.int32();
13761
+ message.serialNo = reader.uint32();
13199
13762
  continue;
13200
13763
  }
13201
13764
  case 5: {
13202
- if (tag !== 42) {
13765
+ if (tag !== 40) {
13203
13766
  break;
13204
13767
  }
13205
- message.timezone = reader.string();
13768
+ message.attachments = reader.uint32();
13206
13769
  continue;
13207
13770
  }
13208
13771
  case 6: {
13209
13772
  if (tag !== 48) {
13210
13773
  break;
13211
13774
  }
13212
- message.isUnlimited = reader.bool();
13775
+ message.speed = reader.uint32();
13213
13776
  continue;
13214
13777
  }
13215
13778
  case 7: {
13216
13779
  if (tag !== 56) {
13217
13780
  break;
13218
13781
  }
13219
- message.tripType = reader.int32();
13782
+ message.latitude = reader.uint32();
13220
13783
  continue;
13221
13784
  }
13222
13785
  case 8: {
13223
- if (tag !== 66) {
13786
+ if (tag !== 64) {
13224
13787
  break;
13225
13788
  }
13226
- message.receiveAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13789
+ message.longitude = reader.uint32();
13227
13790
  continue;
13228
13791
  }
13229
13792
  case 9: {
13230
13793
  if (tag !== 74) {
13231
13794
  break;
13232
13795
  }
13233
- message.expiresAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13796
+ message.gpsTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13234
13797
  continue;
13235
13798
  }
13236
13799
  case 10: {
13237
- if (tag !== 82) {
13238
- break;
13239
- }
13240
- message.connectAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13241
- continue;
13242
- }
13243
- case 11: {
13244
- if (tag !== 90) {
13245
- break;
13246
- }
13247
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13248
- continue;
13249
- }
13250
- case 12: {
13251
- if (tag !== 96) {
13252
- break;
13253
- }
13254
- message.workflowTaskId = Long.fromString(reader.uint64().toString(), true);
13255
- continue;
13256
- }
13257
- case 13: {
13258
- if (tag !== 104) {
13259
- break;
13260
- }
13261
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
13262
- continue;
13263
- }
13264
- case 14: {
13265
- if (tag === 112) {
13266
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13267
- continue;
13268
- }
13269
- if (tag === 114) {
13270
- const end2 = reader.uint32() + reader.pos;
13271
- while (reader.pos < end2) {
13272
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13273
- }
13274
- continue;
13275
- }
13276
- break;
13277
- }
13278
- case 15: {
13279
- if (tag !== 122) {
13800
+ if (tag !== 80) {
13280
13801
  break;
13281
13802
  }
13282
- message.module = DataModule.decode(reader, reader.uint32());
13803
+ message.alarmType = reader.int32();
13283
13804
  continue;
13284
13805
  }
13285
13806
  }
@@ -13291,110 +13812,45 @@ export const OdysseyDevice = {
13291
13812
  return message;
13292
13813
  },
13293
13814
  create(base) {
13294
- return OdysseyDevice.fromPartial(base ?? {});
13815
+ return JTT808AlarmData.fromPartial(base ?? {});
13295
13816
  },
13296
13817
  fromPartial(object) {
13297
- const message = createBaseOdysseyDevice();
13298
- message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
13299
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13300
- message.objectId = (object.objectId !== undefined && object.objectId !== null)
13301
- ? Long.fromValue(object.objectId)
13302
- : undefined;
13303
- message.objectType = object.objectType ?? 0;
13304
- message.timezone = object.timezone ?? "";
13305
- message.isUnlimited = object.isUnlimited ?? false;
13306
- message.tripType = object.tripType ?? 0;
13307
- message.receiveAt = object.receiveAt ?? undefined;
13308
- message.expiresAt = object.expiresAt ?? undefined;
13309
- message.connectAt = object.connectAt ?? undefined;
13310
- message.createdAt = object.createdAt ?? undefined;
13311
- message.workflowTaskId = (object.workflowTaskId !== undefined && object.workflowTaskId !== null)
13312
- ? Long.fromValue(object.workflowTaskId)
13313
- : undefined;
13314
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13315
- ? Long.fromValue(object.organizationId)
13316
- : undefined;
13317
- message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
13318
- message.module = (object.module !== undefined && object.module !== null)
13319
- ? DataModule.fromPartial(object.module)
13320
- : undefined;
13818
+ const message = createBaseJTT808AlarmData();
13819
+ message.alarmId = object.alarmId ?? new Uint8Array(0);
13820
+ message.terminalId = (object.terminalId !== undefined && object.terminalId !== null)
13821
+ ? Long.fromValue(object.terminalId)
13822
+ : Long.UZERO;
13823
+ message.datetime = object.datetime ?? undefined;
13824
+ message.serialNo = object.serialNo ?? 0;
13825
+ message.attachments = object.attachments ?? 0;
13826
+ message.speed = object.speed ?? 0;
13827
+ message.latitude = object.latitude ?? 0;
13828
+ message.longitude = object.longitude ?? 0;
13829
+ message.gpsTime = object.gpsTime ?? undefined;
13830
+ message.alarmType = object.alarmType ?? 0;
13321
13831
  return message;
13322
13832
  },
13323
13833
  };
13324
- function createBaseFusionDevice() {
13325
- return {
13326
- deviceId: Long.UZERO,
13327
- carId: undefined,
13328
- imei: Long.UZERO,
13329
- ignitionSource: 0,
13330
- timezone: undefined,
13331
- fcmToken: undefined,
13332
- isFreeUse: false,
13333
- canReceiveFrom: Long.ZERO,
13334
- expireTime: Long.ZERO,
13335
- odoType: 0,
13336
- firstConnect: Long.ZERO,
13337
- tripType: 0,
13338
- createdAt: Long.ZERO,
13339
- organizationId: undefined,
13340
- generation: [],
13341
- };
13834
+ function createBaseJTT808MediaRetrieval0802() {
13835
+ return { serialNo: 0, mediaCounter: 0, items: [] };
13342
13836
  }
13343
- export const FusionDevice = {
13837
+ export const JTT808MediaRetrieval0802 = {
13344
13838
  encode(message, writer = new BinaryWriter()) {
13345
- if (!message.deviceId.equals(Long.UZERO)) {
13346
- writer.uint32(8).uint64(message.deviceId.toString());
13347
- }
13348
- if (message.carId !== undefined) {
13349
- writer.uint32(16).uint64(message.carId.toString());
13350
- }
13351
- if (!message.imei.equals(Long.UZERO)) {
13352
- writer.uint32(24).uint64(message.imei.toString());
13353
- }
13354
- if (message.ignitionSource !== 0) {
13355
- writer.uint32(32).int32(message.ignitionSource);
13356
- }
13357
- if (message.timezone !== undefined) {
13358
- writer.uint32(42).string(message.timezone);
13359
- }
13360
- if (message.fcmToken !== undefined) {
13361
- writer.uint32(50).string(message.fcmToken);
13362
- }
13363
- if (message.isFreeUse !== false) {
13364
- writer.uint32(56).bool(message.isFreeUse);
13365
- }
13366
- if (!message.canReceiveFrom.equals(Long.ZERO)) {
13367
- writer.uint32(64).int64(message.canReceiveFrom.toString());
13368
- }
13369
- if (!message.expireTime.equals(Long.ZERO)) {
13370
- writer.uint32(72).int64(message.expireTime.toString());
13371
- }
13372
- if (message.odoType !== 0) {
13373
- writer.uint32(80).uint32(message.odoType);
13374
- }
13375
- if (!message.firstConnect.equals(Long.ZERO)) {
13376
- writer.uint32(88).int64(message.firstConnect.toString());
13377
- }
13378
- if (message.tripType !== 0) {
13379
- writer.uint32(96).uint32(message.tripType);
13380
- }
13381
- if (!message.createdAt.equals(Long.ZERO)) {
13382
- writer.uint32(104).int64(message.createdAt.toString());
13383
- }
13384
- if (message.organizationId !== undefined) {
13385
- writer.uint32(120).uint64(message.organizationId.toString());
13839
+ if (message.serialNo !== 0) {
13840
+ writer.uint32(8).uint32(message.serialNo);
13386
13841
  }
13387
- writer.uint32(130).fork();
13388
- for (const v of message.generation) {
13389
- writer.uint64(v.toString());
13842
+ if (message.mediaCounter !== 0) {
13843
+ writer.uint32(16).uint32(message.mediaCounter);
13844
+ }
13845
+ for (const v of message.items) {
13846
+ JTT808MediaRetrieval0802_Item.encode(v, writer.uint32(26).fork()).join();
13390
13847
  }
13391
- writer.join();
13392
13848
  return writer;
13393
13849
  },
13394
13850
  decode(input, length) {
13395
13851
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13396
13852
  const end = length === undefined ? reader.len : reader.pos + length;
13397
- const message = createBaseFusionDevice();
13853
+ const message = createBaseJTT808MediaRetrieval0802();
13398
13854
  while (reader.pos < end) {
13399
13855
  const tag = reader.uint32();
13400
13856
  switch (tag >>> 3) {
@@ -13402,114 +13858,173 @@ export const FusionDevice = {
13402
13858
  if (tag !== 8) {
13403
13859
  break;
13404
13860
  }
13405
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
13861
+ message.serialNo = reader.uint32();
13406
13862
  continue;
13407
13863
  }
13408
13864
  case 2: {
13409
13865
  if (tag !== 16) {
13410
13866
  break;
13411
13867
  }
13412
- message.carId = Long.fromString(reader.uint64().toString(), true);
13868
+ message.mediaCounter = reader.uint32();
13413
13869
  continue;
13414
13870
  }
13415
13871
  case 3: {
13416
- if (tag !== 24) {
13417
- break;
13418
- }
13419
- message.imei = Long.fromString(reader.uint64().toString(), true);
13420
- continue;
13421
- }
13422
- case 4: {
13423
- if (tag !== 32) {
13424
- break;
13425
- }
13426
- message.ignitionSource = reader.int32();
13427
- continue;
13428
- }
13429
- case 5: {
13430
- if (tag !== 42) {
13431
- break;
13432
- }
13433
- message.timezone = reader.string();
13434
- continue;
13435
- }
13436
- case 6: {
13437
- if (tag !== 50) {
13872
+ if (tag !== 26) {
13438
13873
  break;
13439
13874
  }
13440
- message.fcmToken = reader.string();
13875
+ message.items.push(JTT808MediaRetrieval0802_Item.decode(reader, reader.uint32()));
13441
13876
  continue;
13442
13877
  }
13443
- case 7: {
13444
- if (tag !== 56) {
13878
+ }
13879
+ if ((tag & 7) === 4 || tag === 0) {
13880
+ break;
13881
+ }
13882
+ reader.skip(tag & 7);
13883
+ }
13884
+ return message;
13885
+ },
13886
+ create(base) {
13887
+ return JTT808MediaRetrieval0802.fromPartial(base ?? {});
13888
+ },
13889
+ fromPartial(object) {
13890
+ const message = createBaseJTT808MediaRetrieval0802();
13891
+ message.serialNo = object.serialNo ?? 0;
13892
+ message.mediaCounter = object.mediaCounter ?? 0;
13893
+ message.items = object.items?.map((e) => JTT808MediaRetrieval0802_Item.fromPartial(e)) || [];
13894
+ return message;
13895
+ },
13896
+ };
13897
+ function createBaseJTT808MediaRetrieval0802_Item() {
13898
+ return { multimediaId: 0, multimediaType: 0, channelId: 0, eventItemEncoding: 0, location: undefined };
13899
+ }
13900
+ export const JTT808MediaRetrieval0802_Item = {
13901
+ encode(message, writer = new BinaryWriter()) {
13902
+ if (message.multimediaId !== 0) {
13903
+ writer.uint32(8).uint32(message.multimediaId);
13904
+ }
13905
+ if (message.multimediaType !== 0) {
13906
+ writer.uint32(16).uint32(message.multimediaType);
13907
+ }
13908
+ if (message.channelId !== 0) {
13909
+ writer.uint32(24).uint32(message.channelId);
13910
+ }
13911
+ if (message.eventItemEncoding !== 0) {
13912
+ writer.uint32(32).uint32(message.eventItemEncoding);
13913
+ }
13914
+ if (message.location !== undefined) {
13915
+ Data.encode(message.location, writer.uint32(42).fork()).join();
13916
+ }
13917
+ return writer;
13918
+ },
13919
+ decode(input, length) {
13920
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13921
+ const end = length === undefined ? reader.len : reader.pos + length;
13922
+ const message = createBaseJTT808MediaRetrieval0802_Item();
13923
+ while (reader.pos < end) {
13924
+ const tag = reader.uint32();
13925
+ switch (tag >>> 3) {
13926
+ case 1: {
13927
+ if (tag !== 8) {
13445
13928
  break;
13446
13929
  }
13447
- message.isFreeUse = reader.bool();
13930
+ message.multimediaId = reader.uint32();
13448
13931
  continue;
13449
13932
  }
13450
- case 8: {
13451
- if (tag !== 64) {
13933
+ case 2: {
13934
+ if (tag !== 16) {
13452
13935
  break;
13453
13936
  }
13454
- message.canReceiveFrom = Long.fromString(reader.int64().toString());
13937
+ message.multimediaType = reader.uint32();
13455
13938
  continue;
13456
13939
  }
13457
- case 9: {
13458
- if (tag !== 72) {
13940
+ case 3: {
13941
+ if (tag !== 24) {
13459
13942
  break;
13460
13943
  }
13461
- message.expireTime = Long.fromString(reader.int64().toString());
13944
+ message.channelId = reader.uint32();
13462
13945
  continue;
13463
13946
  }
13464
- case 10: {
13465
- if (tag !== 80) {
13947
+ case 4: {
13948
+ if (tag !== 32) {
13466
13949
  break;
13467
13950
  }
13468
- message.odoType = reader.uint32();
13951
+ message.eventItemEncoding = reader.uint32();
13469
13952
  continue;
13470
13953
  }
13471
- case 11: {
13472
- if (tag !== 88) {
13954
+ case 5: {
13955
+ if (tag !== 42) {
13473
13956
  break;
13474
13957
  }
13475
- message.firstConnect = Long.fromString(reader.int64().toString());
13958
+ message.location = Data.decode(reader, reader.uint32());
13476
13959
  continue;
13477
13960
  }
13478
- case 12: {
13479
- if (tag !== 96) {
13961
+ }
13962
+ if ((tag & 7) === 4 || tag === 0) {
13963
+ break;
13964
+ }
13965
+ reader.skip(tag & 7);
13966
+ }
13967
+ return message;
13968
+ },
13969
+ create(base) {
13970
+ return JTT808MediaRetrieval0802_Item.fromPartial(base ?? {});
13971
+ },
13972
+ fromPartial(object) {
13973
+ const message = createBaseJTT808MediaRetrieval0802_Item();
13974
+ message.multimediaId = object.multimediaId ?? 0;
13975
+ message.multimediaType = object.multimediaType ?? 0;
13976
+ message.channelId = object.channelId ?? 0;
13977
+ message.eventItemEncoding = object.eventItemEncoding ?? 0;
13978
+ message.location = (object.location !== undefined && object.location !== null)
13979
+ ? Data.fromPartial(object.location)
13980
+ : undefined;
13981
+ return message;
13982
+ },
13983
+ };
13984
+ function createBaseDeviceConnectionStatus() {
13985
+ return { deviceId: Long.UZERO, online: false, timestamp: undefined };
13986
+ }
13987
+ export const DeviceConnectionStatus = {
13988
+ encode(message, writer = new BinaryWriter()) {
13989
+ if (!message.deviceId.equals(Long.UZERO)) {
13990
+ writer.uint32(8).uint64(message.deviceId.toString());
13991
+ }
13992
+ if (message.online !== false) {
13993
+ writer.uint32(16).bool(message.online);
13994
+ }
13995
+ if (message.timestamp !== undefined) {
13996
+ Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
13997
+ }
13998
+ return writer;
13999
+ },
14000
+ decode(input, length) {
14001
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14002
+ const end = length === undefined ? reader.len : reader.pos + length;
14003
+ const message = createBaseDeviceConnectionStatus();
14004
+ while (reader.pos < end) {
14005
+ const tag = reader.uint32();
14006
+ switch (tag >>> 3) {
14007
+ case 1: {
14008
+ if (tag !== 8) {
13480
14009
  break;
13481
14010
  }
13482
- message.tripType = reader.uint32();
14011
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
13483
14012
  continue;
13484
14013
  }
13485
- case 13: {
13486
- if (tag !== 104) {
14014
+ case 2: {
14015
+ if (tag !== 16) {
13487
14016
  break;
13488
14017
  }
13489
- message.createdAt = Long.fromString(reader.int64().toString());
14018
+ message.online = reader.bool();
13490
14019
  continue;
13491
14020
  }
13492
- case 15: {
13493
- if (tag !== 120) {
14021
+ case 3: {
14022
+ if (tag !== 26) {
13494
14023
  break;
13495
14024
  }
13496
- message.organizationId = Long.fromString(reader.uint64().toString(), true);
14025
+ message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13497
14026
  continue;
13498
14027
  }
13499
- case 16: {
13500
- if (tag === 128) {
13501
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13502
- continue;
13503
- }
13504
- if (tag === 130) {
13505
- const end2 = reader.uint32() + reader.pos;
13506
- while (reader.pos < end2) {
13507
- message.generation.push(Long.fromString(reader.uint64().toString(), true));
13508
- }
13509
- continue;
13510
- }
13511
- break;
13512
- }
13513
14028
  }
13514
14029
  if ((tag & 7) === 4 || tag === 0) {
13515
14030
  break;
@@ -13519,82 +14034,108 @@ export const FusionDevice = {
13519
14034
  return message;
13520
14035
  },
13521
14036
  create(base) {
13522
- return FusionDevice.fromPartial(base ?? {});
14037
+ return DeviceConnectionStatus.fromPartial(base ?? {});
13523
14038
  },
13524
14039
  fromPartial(object) {
13525
- const message = createBaseFusionDevice();
14040
+ const message = createBaseDeviceConnectionStatus();
13526
14041
  message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13527
14042
  ? Long.fromValue(object.deviceId)
13528
14043
  : Long.UZERO;
13529
- message.carId = (object.carId !== undefined && object.carId !== null) ? Long.fromValue(object.carId) : undefined;
13530
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13531
- message.ignitionSource = object.ignitionSource ?? 0;
13532
- message.timezone = object.timezone ?? undefined;
13533
- message.fcmToken = object.fcmToken ?? undefined;
13534
- message.isFreeUse = object.isFreeUse ?? false;
13535
- message.canReceiveFrom = (object.canReceiveFrom !== undefined && object.canReceiveFrom !== null)
13536
- ? Long.fromValue(object.canReceiveFrom)
13537
- : Long.ZERO;
13538
- message.expireTime = (object.expireTime !== undefined && object.expireTime !== null)
13539
- ? Long.fromValue(object.expireTime)
13540
- : Long.ZERO;
13541
- message.odoType = object.odoType ?? 0;
13542
- message.firstConnect = (object.firstConnect !== undefined && object.firstConnect !== null)
13543
- ? Long.fromValue(object.firstConnect)
13544
- : Long.ZERO;
13545
- message.tripType = object.tripType ?? 0;
13546
- message.createdAt = (object.createdAt !== undefined && object.createdAt !== null)
13547
- ? Long.fromValue(object.createdAt)
13548
- : Long.ZERO;
13549
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
13550
- ? Long.fromValue(object.organizationId)
13551
- : undefined;
13552
- message.generation = object.generation?.map((e) => Long.fromValue(e)) || [];
14044
+ message.online = object.online ?? false;
14045
+ message.timestamp = object.timestamp ?? undefined;
13553
14046
  return message;
13554
14047
  },
13555
14048
  };
13556
- function createBaseDeviceData() {
13557
- return { fusionDevice: undefined, odysseyDevice: undefined, fetchedAt: Long.ZERO };
14049
+ function createBaseForgeDecoder() {
14050
+ return {
14051
+ deviceId: Long.UZERO,
14052
+ serialNo: 0,
14053
+ protocol: 0,
14054
+ rawString: undefined,
14055
+ exception: undefined,
14056
+ jttLiveStatusUpdate: undefined,
14057
+ jttQueryFileResponse: undefined,
14058
+ };
13558
14059
  }
13559
- export const DeviceData = {
14060
+ export const ForgeDecoder = {
13560
14061
  encode(message, writer = new BinaryWriter()) {
13561
- if (message.fusionDevice !== undefined) {
13562
- FusionDevice.encode(message.fusionDevice, writer.uint32(10).fork()).join();
14062
+ if (!message.deviceId.equals(Long.UZERO)) {
14063
+ writer.uint32(8).uint64(message.deviceId.toString());
13563
14064
  }
13564
- if (message.odysseyDevice !== undefined) {
13565
- OdysseyDevice.encode(message.odysseyDevice, writer.uint32(18).fork()).join();
14065
+ if (message.serialNo !== 0) {
14066
+ writer.uint32(16).uint32(message.serialNo);
13566
14067
  }
13567
- if (!message.fetchedAt.equals(Long.ZERO)) {
13568
- writer.uint32(24).int64(message.fetchedAt.toString());
14068
+ if (message.protocol !== 0) {
14069
+ writer.uint32(24).int32(message.protocol);
14070
+ }
14071
+ if (message.rawString !== undefined) {
14072
+ writer.uint32(90).string(message.rawString);
14073
+ }
14074
+ if (message.exception !== undefined) {
14075
+ ForgeException.encode(message.exception, writer.uint32(98).fork()).join();
14076
+ }
14077
+ if (message.jttLiveStatusUpdate !== undefined) {
14078
+ JTTLiveStatusUpdate.encode(message.jttLiveStatusUpdate, writer.uint32(170).fork()).join();
14079
+ }
14080
+ if (message.jttQueryFileResponse !== undefined) {
14081
+ JTTQueryFileResponse.encode(message.jttQueryFileResponse, writer.uint32(178).fork()).join();
13569
14082
  }
13570
14083
  return writer;
13571
14084
  },
13572
14085
  decode(input, length) {
13573
14086
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13574
14087
  const end = length === undefined ? reader.len : reader.pos + length;
13575
- const message = createBaseDeviceData();
14088
+ const message = createBaseForgeDecoder();
13576
14089
  while (reader.pos < end) {
13577
14090
  const tag = reader.uint32();
13578
14091
  switch (tag >>> 3) {
13579
14092
  case 1: {
13580
- if (tag !== 10) {
14093
+ if (tag !== 8) {
14094
+ break;
14095
+ }
14096
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
14097
+ continue;
14098
+ }
14099
+ case 2: {
14100
+ if (tag !== 16) {
14101
+ break;
14102
+ }
14103
+ message.serialNo = reader.uint32();
14104
+ continue;
14105
+ }
14106
+ case 3: {
14107
+ if (tag !== 24) {
13581
14108
  break;
13582
14109
  }
13583
- message.fusionDevice = FusionDevice.decode(reader, reader.uint32());
14110
+ message.protocol = reader.int32();
13584
14111
  continue;
13585
14112
  }
13586
- case 2: {
13587
- if (tag !== 18) {
14113
+ case 11: {
14114
+ if (tag !== 90) {
13588
14115
  break;
13589
14116
  }
13590
- message.odysseyDevice = OdysseyDevice.decode(reader, reader.uint32());
14117
+ message.rawString = reader.string();
13591
14118
  continue;
13592
14119
  }
13593
- case 3: {
13594
- if (tag !== 24) {
14120
+ case 12: {
14121
+ if (tag !== 98) {
13595
14122
  break;
13596
14123
  }
13597
- message.fetchedAt = Long.fromString(reader.int64().toString());
14124
+ message.exception = ForgeException.decode(reader, reader.uint32());
14125
+ continue;
14126
+ }
14127
+ case 21: {
14128
+ if (tag !== 170) {
14129
+ break;
14130
+ }
14131
+ message.jttLiveStatusUpdate = JTTLiveStatusUpdate.decode(reader, reader.uint32());
14132
+ continue;
14133
+ }
14134
+ case 22: {
14135
+ if (tag !== 178) {
14136
+ break;
14137
+ }
14138
+ message.jttQueryFileResponse = JTTQueryFileResponse.decode(reader, reader.uint32());
13598
14139
  continue;
13599
14140
  }
13600
14141
  }
@@ -13606,104 +14147,162 @@ export const DeviceData = {
13606
14147
  return message;
13607
14148
  },
13608
14149
  create(base) {
13609
- return DeviceData.fromPartial(base ?? {});
14150
+ return ForgeDecoder.fromPartial(base ?? {});
13610
14151
  },
13611
14152
  fromPartial(object) {
13612
- const message = createBaseDeviceData();
13613
- message.fusionDevice = (object.fusionDevice !== undefined && object.fusionDevice !== null)
13614
- ? FusionDevice.fromPartial(object.fusionDevice)
14153
+ const message = createBaseForgeDecoder();
14154
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14155
+ ? Long.fromValue(object.deviceId)
14156
+ : Long.UZERO;
14157
+ message.serialNo = object.serialNo ?? 0;
14158
+ message.protocol = object.protocol ?? 0;
14159
+ message.rawString = object.rawString ?? undefined;
14160
+ message.exception = (object.exception !== undefined && object.exception !== null)
14161
+ ? ForgeException.fromPartial(object.exception)
13615
14162
  : undefined;
13616
- message.odysseyDevice = (object.odysseyDevice !== undefined && object.odysseyDevice !== null)
13617
- ? OdysseyDevice.fromPartial(object.odysseyDevice)
14163
+ message.jttLiveStatusUpdate = (object.jttLiveStatusUpdate !== undefined && object.jttLiveStatusUpdate !== null)
14164
+ ? JTTLiveStatusUpdate.fromPartial(object.jttLiveStatusUpdate)
14165
+ : undefined;
14166
+ message.jttQueryFileResponse = (object.jttQueryFileResponse !== undefined && object.jttQueryFileResponse !== null)
14167
+ ? JTTQueryFileResponse.fromPartial(object.jttQueryFileResponse)
13618
14168
  : undefined;
13619
- message.fetchedAt = (object.fetchedAt !== undefined && object.fetchedAt !== null)
13620
- ? Long.fromValue(object.fetchedAt)
13621
- : Long.ZERO;
13622
14169
  return message;
13623
14170
  },
13624
14171
  };
13625
- function createBaseTask() {
14172
+ function createBaseForgeEncoder() {
13626
14173
  return {
13627
- data: undefined,
13628
- client: undefined,
13629
- alertIdNumber: {},
13630
- imei: Long.UZERO,
13631
- deviceData: undefined,
14174
+ deviceId: Long.UZERO,
14175
+ serialNo: 0,
13632
14176
  protocol: 0,
14177
+ rawString: undefined,
14178
+ rawStingWithProps: undefined,
14179
+ jttLiveVideoRequest: undefined,
14180
+ jttLiveVideoUpdate: undefined,
14181
+ jttQueryFileRequest: undefined,
14182
+ jttPlaybackRequest: undefined,
14183
+ jttPlaybackUpdate: undefined,
14184
+ jttMediaUploadRequest: undefined,
13633
14185
  };
13634
14186
  }
13635
- export const Task = {
14187
+ export const ForgeEncoder = {
13636
14188
  encode(message, writer = new BinaryWriter()) {
13637
- if (message.data !== undefined) {
13638
- Data.encode(message.data, writer.uint32(10).fork()).join();
14189
+ if (!message.deviceId.equals(Long.UZERO)) {
14190
+ writer.uint32(8).uint64(message.deviceId.toString());
13639
14191
  }
13640
- if (message.client !== undefined) {
13641
- Client.encode(message.client, writer.uint32(18).fork()).join();
14192
+ if (message.serialNo !== 0) {
14193
+ writer.uint32(16).uint32(message.serialNo);
13642
14194
  }
13643
- globalThis.Object.entries(message.alertIdNumber).forEach(([key, value]) => {
13644
- Task_AlertIdNumberEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
13645
- });
13646
- if (!message.imei.equals(Long.UZERO)) {
13647
- writer.uint32(32).uint64(message.imei.toString());
14195
+ if (message.protocol !== 0) {
14196
+ writer.uint32(24).int32(message.protocol);
13648
14197
  }
13649
- if (message.deviceData !== undefined) {
13650
- DeviceData.encode(message.deviceData, writer.uint32(42).fork()).join();
14198
+ if (message.rawString !== undefined) {
14199
+ writer.uint32(90).string(message.rawString);
13651
14200
  }
13652
- if (message.protocol !== 0) {
13653
- writer.uint32(48).int32(message.protocol);
14201
+ if (message.rawStingWithProps !== undefined) {
14202
+ RawStingWithProps.encode(message.rawStingWithProps, writer.uint32(98).fork()).join();
14203
+ }
14204
+ if (message.jttLiveVideoRequest !== undefined) {
14205
+ JTTLiveRequest.encode(message.jttLiveVideoRequest, writer.uint32(170).fork()).join();
14206
+ }
14207
+ if (message.jttLiveVideoUpdate !== undefined) {
14208
+ JTTLiveUpdate.encode(message.jttLiveVideoUpdate, writer.uint32(178).fork()).join();
14209
+ }
14210
+ if (message.jttQueryFileRequest !== undefined) {
14211
+ JTTQueryFileRequest.encode(message.jttQueryFileRequest, writer.uint32(186).fork()).join();
14212
+ }
14213
+ if (message.jttPlaybackRequest !== undefined) {
14214
+ JTTPlaybackRequest.encode(message.jttPlaybackRequest, writer.uint32(194).fork()).join();
14215
+ }
14216
+ if (message.jttPlaybackUpdate !== undefined) {
14217
+ JTTPlaybackUpdate.encode(message.jttPlaybackUpdate, writer.uint32(202).fork()).join();
14218
+ }
14219
+ if (message.jttMediaUploadRequest !== undefined) {
14220
+ RequestAlertMediaUpload.encode(message.jttMediaUploadRequest, writer.uint32(210).fork()).join();
13654
14221
  }
13655
14222
  return writer;
13656
14223
  },
13657
14224
  decode(input, length) {
13658
14225
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13659
14226
  const end = length === undefined ? reader.len : reader.pos + length;
13660
- const message = createBaseTask();
14227
+ const message = createBaseForgeEncoder();
13661
14228
  while (reader.pos < end) {
13662
14229
  const tag = reader.uint32();
13663
14230
  switch (tag >>> 3) {
13664
14231
  case 1: {
13665
- if (tag !== 10) {
14232
+ if (tag !== 8) {
13666
14233
  break;
13667
14234
  }
13668
- message.data = Data.decode(reader, reader.uint32());
14235
+ message.deviceId = Long.fromString(reader.uint64().toString(), true);
13669
14236
  continue;
13670
14237
  }
13671
14238
  case 2: {
13672
- if (tag !== 18) {
14239
+ if (tag !== 16) {
13673
14240
  break;
13674
14241
  }
13675
- message.client = Client.decode(reader, reader.uint32());
14242
+ message.serialNo = reader.uint32();
13676
14243
  continue;
13677
14244
  }
13678
14245
  case 3: {
13679
- if (tag !== 26) {
14246
+ if (tag !== 24) {
13680
14247
  break;
13681
14248
  }
13682
- const entry3 = Task_AlertIdNumberEntry.decode(reader, reader.uint32());
13683
- if (entry3.value !== undefined) {
13684
- message.alertIdNumber[entry3.key] = entry3.value;
14249
+ message.protocol = reader.int32();
14250
+ continue;
14251
+ }
14252
+ case 11: {
14253
+ if (tag !== 90) {
14254
+ break;
13685
14255
  }
14256
+ message.rawString = reader.string();
13686
14257
  continue;
13687
14258
  }
13688
- case 4: {
13689
- if (tag !== 32) {
14259
+ case 12: {
14260
+ if (tag !== 98) {
13690
14261
  break;
13691
14262
  }
13692
- message.imei = Long.fromString(reader.uint64().toString(), true);
14263
+ message.rawStingWithProps = RawStingWithProps.decode(reader, reader.uint32());
13693
14264
  continue;
13694
14265
  }
13695
- case 5: {
13696
- if (tag !== 42) {
14266
+ case 21: {
14267
+ if (tag !== 170) {
13697
14268
  break;
13698
14269
  }
13699
- message.deviceData = DeviceData.decode(reader, reader.uint32());
14270
+ message.jttLiveVideoRequest = JTTLiveRequest.decode(reader, reader.uint32());
13700
14271
  continue;
13701
14272
  }
13702
- case 6: {
13703
- if (tag !== 48) {
14273
+ case 22: {
14274
+ if (tag !== 178) {
13704
14275
  break;
13705
14276
  }
13706
- message.protocol = reader.int32();
14277
+ message.jttLiveVideoUpdate = JTTLiveUpdate.decode(reader, reader.uint32());
14278
+ continue;
14279
+ }
14280
+ case 23: {
14281
+ if (tag !== 186) {
14282
+ break;
14283
+ }
14284
+ message.jttQueryFileRequest = JTTQueryFileRequest.decode(reader, reader.uint32());
14285
+ continue;
14286
+ }
14287
+ case 24: {
14288
+ if (tag !== 194) {
14289
+ break;
14290
+ }
14291
+ message.jttPlaybackRequest = JTTPlaybackRequest.decode(reader, reader.uint32());
14292
+ continue;
14293
+ }
14294
+ case 25: {
14295
+ if (tag !== 202) {
14296
+ break;
14297
+ }
14298
+ message.jttPlaybackUpdate = JTTPlaybackUpdate.decode(reader, reader.uint32());
14299
+ continue;
14300
+ }
14301
+ case 26: {
14302
+ if (tag !== 210) {
14303
+ break;
14304
+ }
14305
+ message.jttMediaUploadRequest = RequestAlertMediaUpload.decode(reader, reader.uint32());
13707
14306
  continue;
13708
14307
  }
13709
14308
  }
@@ -13715,60 +14314,83 @@ export const Task = {
13715
14314
  return message;
13716
14315
  },
13717
14316
  create(base) {
13718
- return Task.fromPartial(base ?? {});
14317
+ return ForgeEncoder.fromPartial(base ?? {});
13719
14318
  },
13720
14319
  fromPartial(object) {
13721
- const message = createBaseTask();
13722
- message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13723
- message.client = (object.client !== undefined && object.client !== null)
13724
- ? Client.fromPartial(object.client)
14320
+ const message = createBaseForgeEncoder();
14321
+ message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14322
+ ? Long.fromValue(object.deviceId)
14323
+ : Long.UZERO;
14324
+ message.serialNo = object.serialNo ?? 0;
14325
+ message.protocol = object.protocol ?? 0;
14326
+ message.rawString = object.rawString ?? undefined;
14327
+ message.rawStingWithProps = (object.rawStingWithProps !== undefined && object.rawStingWithProps !== null)
14328
+ ? RawStingWithProps.fromPartial(object.rawStingWithProps)
13725
14329
  : undefined;
13726
- message.alertIdNumber = globalThis.Object.entries(object.alertIdNumber ?? {}).reduce((acc, [key, value]) => {
13727
- if (value !== undefined) {
13728
- acc[globalThis.Number(key)] = value;
13729
- }
13730
- return acc;
13731
- }, {});
13732
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13733
- message.deviceData = (object.deviceData !== undefined && object.deviceData !== null)
13734
- ? DeviceData.fromPartial(object.deviceData)
14330
+ message.jttLiveVideoRequest = (object.jttLiveVideoRequest !== undefined && object.jttLiveVideoRequest !== null)
14331
+ ? JTTLiveRequest.fromPartial(object.jttLiveVideoRequest)
13735
14332
  : undefined;
13736
- message.protocol = object.protocol ?? 0;
14333
+ message.jttLiveVideoUpdate = (object.jttLiveVideoUpdate !== undefined && object.jttLiveVideoUpdate !== null)
14334
+ ? JTTLiveUpdate.fromPartial(object.jttLiveVideoUpdate)
14335
+ : undefined;
14336
+ message.jttQueryFileRequest = (object.jttQueryFileRequest !== undefined && object.jttQueryFileRequest !== null)
14337
+ ? JTTQueryFileRequest.fromPartial(object.jttQueryFileRequest)
14338
+ : undefined;
14339
+ message.jttPlaybackRequest = (object.jttPlaybackRequest !== undefined && object.jttPlaybackRequest !== null)
14340
+ ? JTTPlaybackRequest.fromPartial(object.jttPlaybackRequest)
14341
+ : undefined;
14342
+ message.jttPlaybackUpdate = (object.jttPlaybackUpdate !== undefined && object.jttPlaybackUpdate !== null)
14343
+ ? JTTPlaybackUpdate.fromPartial(object.jttPlaybackUpdate)
14344
+ : undefined;
14345
+ message.jttMediaUploadRequest =
14346
+ (object.jttMediaUploadRequest !== undefined && object.jttMediaUploadRequest !== null)
14347
+ ? RequestAlertMediaUpload.fromPartial(object.jttMediaUploadRequest)
14348
+ : undefined;
13737
14349
  return message;
13738
14350
  },
13739
14351
  };
13740
- function createBaseTask_AlertIdNumberEntry() {
13741
- return { key: 0, value: new Uint8Array(0) };
14352
+ function createBaseJTT808SignalingDataMessage1211() {
14353
+ return { name: "", type: 0, size: 0 };
13742
14354
  }
13743
- export const Task_AlertIdNumberEntry = {
14355
+ export const JTT808SignalingDataMessage1211 = {
13744
14356
  encode(message, writer = new BinaryWriter()) {
13745
- if (message.key !== 0) {
13746
- writer.uint32(8).int32(message.key);
14357
+ if (message.name !== "") {
14358
+ writer.uint32(10).string(message.name);
13747
14359
  }
13748
- if (message.value.length !== 0) {
13749
- writer.uint32(18).bytes(message.value);
14360
+ if (message.type !== 0) {
14361
+ writer.uint32(16).int32(message.type);
14362
+ }
14363
+ if (message.size !== 0) {
14364
+ writer.uint32(24).uint32(message.size);
13750
14365
  }
13751
14366
  return writer;
13752
14367
  },
13753
14368
  decode(input, length) {
13754
14369
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13755
14370
  const end = length === undefined ? reader.len : reader.pos + length;
13756
- const message = createBaseTask_AlertIdNumberEntry();
14371
+ const message = createBaseJTT808SignalingDataMessage1211();
13757
14372
  while (reader.pos < end) {
13758
14373
  const tag = reader.uint32();
13759
14374
  switch (tag >>> 3) {
13760
14375
  case 1: {
13761
- if (tag !== 8) {
14376
+ if (tag !== 10) {
13762
14377
  break;
13763
14378
  }
13764
- message.key = reader.int32();
14379
+ message.name = reader.string();
13765
14380
  continue;
13766
14381
  }
13767
14382
  case 2: {
13768
- if (tag !== 18) {
14383
+ if (tag !== 16) {
13769
14384
  break;
13770
14385
  }
13771
- message.value = reader.bytes();
14386
+ message.type = reader.int32();
14387
+ continue;
14388
+ }
14389
+ case 3: {
14390
+ if (tag !== 24) {
14391
+ break;
14392
+ }
14393
+ message.size = reader.uint32();
13772
14394
  continue;
13773
14395
  }
13774
14396
  }
@@ -13780,149 +14402,152 @@ export const Task_AlertIdNumberEntry = {
13780
14402
  return message;
13781
14403
  },
13782
14404
  create(base) {
13783
- return Task_AlertIdNumberEntry.fromPartial(base ?? {});
14405
+ return JTT808SignalingDataMessage1211.fromPartial(base ?? {});
13784
14406
  },
13785
14407
  fromPartial(object) {
13786
- const message = createBaseTask_AlertIdNumberEntry();
13787
- message.key = object.key ?? 0;
13788
- message.value = object.value ?? new Uint8Array(0);
14408
+ const message = createBaseJTT808SignalingDataMessage1211();
14409
+ message.name = object.name ?? "";
14410
+ message.type = object.type ?? 0;
14411
+ message.size = object.size ?? 0;
13789
14412
  return message;
13790
14413
  },
13791
14414
  };
13792
- function createBaseDeviceStatus() {
14415
+ function createBaseJTT808SignalingDataMessage1210() {
13793
14416
  return {
13794
- deviceId: Long.UZERO,
13795
- imei: Long.UZERO,
13796
- data: undefined,
13797
- client: undefined,
13798
- online: false,
13799
- lastOnline: undefined,
13800
- logs: [],
13801
- stat: 0,
13802
- protocol: 0,
13803
- odyssey: undefined,
13804
- fusion: undefined,
14417
+ terminalId: new Uint8Array(0),
14418
+ alarmIdentification: new Uint8Array(0),
14419
+ alarmNo: new Uint8Array(0),
14420
+ infoType: 0,
14421
+ attachmentCount: 0,
14422
+ attachments: [],
13805
14423
  };
13806
14424
  }
13807
- export const DeviceStatus = {
14425
+ export const JTT808SignalingDataMessage1210 = {
13808
14426
  encode(message, writer = new BinaryWriter()) {
13809
- if (!message.deviceId.equals(Long.UZERO)) {
13810
- writer.uint32(8).uint64(message.deviceId.toString());
13811
- }
13812
- if (!message.imei.equals(Long.UZERO)) {
13813
- writer.uint32(16).uint64(message.imei.toString());
13814
- }
13815
- if (message.data !== undefined) {
13816
- Data.encode(message.data, writer.uint32(26).fork()).join();
13817
- }
13818
- if (message.client !== undefined) {
13819
- Client.encode(message.client, writer.uint32(34).fork()).join();
13820
- }
13821
- if (message.online !== false) {
13822
- writer.uint32(40).bool(message.online);
13823
- }
13824
- if (message.lastOnline !== undefined) {
13825
- Timestamp.encode(toTimestamp(message.lastOnline), writer.uint32(50).fork()).join();
14427
+ if (message.terminalId.length !== 0) {
14428
+ writer.uint32(10).bytes(message.terminalId);
13826
14429
  }
13827
- for (const v of message.logs) {
13828
- Log.encode(v, writer.uint32(58).fork()).join();
14430
+ if (message.alarmIdentification.length !== 0) {
14431
+ writer.uint32(18).bytes(message.alarmIdentification);
13829
14432
  }
13830
- if (message.stat !== 0) {
13831
- writer.uint32(64).int32(message.stat);
14433
+ if (message.alarmNo.length !== 0) {
14434
+ writer.uint32(26).bytes(message.alarmNo);
13832
14435
  }
13833
- if (message.protocol !== 0) {
13834
- writer.uint32(72).int32(message.protocol);
14436
+ if (message.infoType !== 0) {
14437
+ writer.uint32(32).uint32(message.infoType);
13835
14438
  }
13836
- if (message.odyssey !== undefined) {
13837
- OdysseyDevice.encode(message.odyssey, writer.uint32(170).fork()).join();
14439
+ if (message.attachmentCount !== 0) {
14440
+ writer.uint32(40).uint32(message.attachmentCount);
13838
14441
  }
13839
- if (message.fusion !== undefined) {
13840
- FusionDevice.encode(message.fusion, writer.uint32(178).fork()).join();
14442
+ for (const v of message.attachments) {
14443
+ JTT808SignalingDataMessage1210_Attachment.encode(v, writer.uint32(50).fork()).join();
13841
14444
  }
13842
14445
  return writer;
13843
14446
  },
13844
14447
  decode(input, length) {
13845
14448
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13846
14449
  const end = length === undefined ? reader.len : reader.pos + length;
13847
- const message = createBaseDeviceStatus();
14450
+ const message = createBaseJTT808SignalingDataMessage1210();
13848
14451
  while (reader.pos < end) {
13849
14452
  const tag = reader.uint32();
13850
14453
  switch (tag >>> 3) {
13851
14454
  case 1: {
13852
- if (tag !== 8) {
14455
+ if (tag !== 10) {
13853
14456
  break;
13854
14457
  }
13855
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
14458
+ message.terminalId = reader.bytes();
13856
14459
  continue;
13857
14460
  }
13858
14461
  case 2: {
13859
- if (tag !== 16) {
14462
+ if (tag !== 18) {
13860
14463
  break;
13861
14464
  }
13862
- message.imei = Long.fromString(reader.uint64().toString(), true);
14465
+ message.alarmIdentification = reader.bytes();
13863
14466
  continue;
13864
14467
  }
13865
14468
  case 3: {
13866
14469
  if (tag !== 26) {
13867
14470
  break;
13868
14471
  }
13869
- message.data = Data.decode(reader, reader.uint32());
14472
+ message.alarmNo = reader.bytes();
13870
14473
  continue;
13871
14474
  }
13872
14475
  case 4: {
13873
- if (tag !== 34) {
14476
+ if (tag !== 32) {
13874
14477
  break;
13875
14478
  }
13876
- message.client = Client.decode(reader, reader.uint32());
14479
+ message.infoType = reader.uint32();
13877
14480
  continue;
13878
14481
  }
13879
14482
  case 5: {
13880
14483
  if (tag !== 40) {
13881
14484
  break;
13882
14485
  }
13883
- message.online = reader.bool();
14486
+ message.attachmentCount = reader.uint32();
13884
14487
  continue;
13885
14488
  }
13886
14489
  case 6: {
13887
14490
  if (tag !== 50) {
13888
14491
  break;
13889
14492
  }
13890
- message.lastOnline = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
13891
- continue;
13892
- }
13893
- case 7: {
13894
- if (tag !== 58) {
13895
- break;
13896
- }
13897
- message.logs.push(Log.decode(reader, reader.uint32()));
13898
- continue;
13899
- }
13900
- case 8: {
13901
- if (tag !== 64) {
13902
- break;
13903
- }
13904
- message.stat = reader.int32();
13905
- continue;
13906
- }
13907
- case 9: {
13908
- if (tag !== 72) {
13909
- break;
13910
- }
13911
- message.protocol = reader.int32();
14493
+ message.attachments.push(JTT808SignalingDataMessage1210_Attachment.decode(reader, reader.uint32()));
13912
14494
  continue;
13913
14495
  }
13914
- case 21: {
13915
- if (tag !== 170) {
14496
+ }
14497
+ if ((tag & 7) === 4 || tag === 0) {
14498
+ break;
14499
+ }
14500
+ reader.skip(tag & 7);
14501
+ }
14502
+ return message;
14503
+ },
14504
+ create(base) {
14505
+ return JTT808SignalingDataMessage1210.fromPartial(base ?? {});
14506
+ },
14507
+ fromPartial(object) {
14508
+ const message = createBaseJTT808SignalingDataMessage1210();
14509
+ message.terminalId = object.terminalId ?? new Uint8Array(0);
14510
+ message.alarmIdentification = object.alarmIdentification ?? new Uint8Array(0);
14511
+ message.alarmNo = object.alarmNo ?? new Uint8Array(0);
14512
+ message.infoType = object.infoType ?? 0;
14513
+ message.attachmentCount = object.attachmentCount ?? 0;
14514
+ message.attachments = object.attachments?.map((e) => JTT808SignalingDataMessage1210_Attachment.fromPartial(e)) ||
14515
+ [];
14516
+ return message;
14517
+ },
14518
+ };
14519
+ function createBaseJTT808SignalingDataMessage1210_Attachment() {
14520
+ return { name: "", size: 0 };
14521
+ }
14522
+ export const JTT808SignalingDataMessage1210_Attachment = {
14523
+ encode(message, writer = new BinaryWriter()) {
14524
+ if (message.name !== "") {
14525
+ writer.uint32(10).string(message.name);
14526
+ }
14527
+ if (message.size !== 0) {
14528
+ writer.uint32(16).uint32(message.size);
14529
+ }
14530
+ return writer;
14531
+ },
14532
+ decode(input, length) {
14533
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14534
+ const end = length === undefined ? reader.len : reader.pos + length;
14535
+ const message = createBaseJTT808SignalingDataMessage1210_Attachment();
14536
+ while (reader.pos < end) {
14537
+ const tag = reader.uint32();
14538
+ switch (tag >>> 3) {
14539
+ case 1: {
14540
+ if (tag !== 10) {
13916
14541
  break;
13917
14542
  }
13918
- message.odyssey = OdysseyDevice.decode(reader, reader.uint32());
14543
+ message.name = reader.string();
13919
14544
  continue;
13920
14545
  }
13921
- case 22: {
13922
- if (tag !== 178) {
14546
+ case 2: {
14547
+ if (tag !== 16) {
13923
14548
  break;
13924
14549
  }
13925
- message.fusion = FusionDevice.decode(reader, reader.uint32());
14550
+ message.size = reader.uint32();
13926
14551
  continue;
13927
14552
  }
13928
14553
  }
@@ -13934,52 +14559,41 @@ export const DeviceStatus = {
13934
14559
  return message;
13935
14560
  },
13936
14561
  create(base) {
13937
- return DeviceStatus.fromPartial(base ?? {});
14562
+ return JTT808SignalingDataMessage1210_Attachment.fromPartial(base ?? {});
13938
14563
  },
13939
14564
  fromPartial(object) {
13940
- const message = createBaseDeviceStatus();
13941
- message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
13942
- ? Long.fromValue(object.deviceId)
13943
- : Long.UZERO;
13944
- message.imei = (object.imei !== undefined && object.imei !== null) ? Long.fromValue(object.imei) : Long.UZERO;
13945
- message.data = (object.data !== undefined && object.data !== null) ? Data.fromPartial(object.data) : undefined;
13946
- message.client = (object.client !== undefined && object.client !== null)
13947
- ? Client.fromPartial(object.client)
13948
- : undefined;
13949
- message.online = object.online ?? false;
13950
- message.lastOnline = object.lastOnline ?? undefined;
13951
- message.logs = object.logs?.map((e) => Log.fromPartial(e)) || [];
13952
- message.stat = object.stat ?? 0;
13953
- message.protocol = object.protocol ?? 0;
13954
- message.odyssey = (object.odyssey !== undefined && object.odyssey !== null)
13955
- ? OdysseyDevice.fromPartial(object.odyssey)
13956
- : undefined;
13957
- message.fusion = (object.fusion !== undefined && object.fusion !== null)
13958
- ? FusionDevice.fromPartial(object.fusion)
13959
- : undefined;
14565
+ const message = createBaseJTT808SignalingDataMessage1210_Attachment();
14566
+ message.name = object.name ?? "";
14567
+ message.size = object.size ?? 0;
13960
14568
  return message;
13961
14569
  },
13962
14570
  };
13963
- function createBaseJTT808MediaRetrieval0802() {
13964
- return { serialNo: 0, mediaCounter: 0, items: [] };
14571
+ function createBaseJTT808EventMediaInfoUpload() {
14572
+ return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0 };
13965
14573
  }
13966
- export const JTT808MediaRetrieval0802 = {
14574
+ export const JTT808EventMediaInfoUpload = {
13967
14575
  encode(message, writer = new BinaryWriter()) {
13968
- if (message.serialNo !== 0) {
13969
- writer.uint32(8).uint32(message.serialNo);
14576
+ if (message.mediaId !== 0) {
14577
+ writer.uint32(8).uint32(message.mediaId);
13970
14578
  }
13971
- if (message.mediaCounter !== 0) {
13972
- writer.uint32(16).uint32(message.mediaCounter);
14579
+ if (message.mediaType !== 0) {
14580
+ writer.uint32(16).uint32(message.mediaType);
13973
14581
  }
13974
- for (const v of message.items) {
13975
- JTT808MediaRetrieval0802_Item.encode(v, writer.uint32(26).fork()).join();
14582
+ if (message.mediaFormat !== 0) {
14583
+ writer.uint32(24).uint32(message.mediaFormat);
14584
+ }
14585
+ if (message.eventItemCode !== 0) {
14586
+ writer.uint32(32).uint32(message.eventItemCode);
14587
+ }
14588
+ if (message.channelId !== 0) {
14589
+ writer.uint32(40).uint32(message.channelId);
13976
14590
  }
13977
14591
  return writer;
13978
14592
  },
13979
14593
  decode(input, length) {
13980
14594
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13981
14595
  const end = length === undefined ? reader.len : reader.pos + length;
13982
- const message = createBaseJTT808MediaRetrieval0802();
14596
+ const message = createBaseJTT808EventMediaInfoUpload();
13983
14597
  while (reader.pos < end) {
13984
14598
  const tag = reader.uint32();
13985
14599
  switch (tag >>> 3) {
@@ -13987,21 +14601,35 @@ export const JTT808MediaRetrieval0802 = {
13987
14601
  if (tag !== 8) {
13988
14602
  break;
13989
14603
  }
13990
- message.serialNo = reader.uint32();
14604
+ message.mediaId = reader.uint32();
13991
14605
  continue;
13992
14606
  }
13993
14607
  case 2: {
13994
14608
  if (tag !== 16) {
13995
14609
  break;
13996
14610
  }
13997
- message.mediaCounter = reader.uint32();
14611
+ message.mediaType = reader.uint32();
13998
14612
  continue;
13999
14613
  }
14000
14614
  case 3: {
14001
- if (tag !== 26) {
14615
+ if (tag !== 24) {
14002
14616
  break;
14003
14617
  }
14004
- message.items.push(JTT808MediaRetrieval0802_Item.decode(reader, reader.uint32()));
14618
+ message.mediaFormat = reader.uint32();
14619
+ continue;
14620
+ }
14621
+ case 4: {
14622
+ if (tag !== 32) {
14623
+ break;
14624
+ }
14625
+ message.eventItemCode = reader.uint32();
14626
+ continue;
14627
+ }
14628
+ case 5: {
14629
+ if (tag !== 40) {
14630
+ break;
14631
+ }
14632
+ message.channelId = reader.uint32();
14005
14633
  continue;
14006
14634
  }
14007
14635
  }
@@ -14013,42 +14641,47 @@ export const JTT808MediaRetrieval0802 = {
14013
14641
  return message;
14014
14642
  },
14015
14643
  create(base) {
14016
- return JTT808MediaRetrieval0802.fromPartial(base ?? {});
14644
+ return JTT808EventMediaInfoUpload.fromPartial(base ?? {});
14017
14645
  },
14018
14646
  fromPartial(object) {
14019
- const message = createBaseJTT808MediaRetrieval0802();
14020
- message.serialNo = object.serialNo ?? 0;
14021
- message.mediaCounter = object.mediaCounter ?? 0;
14022
- message.items = object.items?.map((e) => JTT808MediaRetrieval0802_Item.fromPartial(e)) || [];
14647
+ const message = createBaseJTT808EventMediaInfoUpload();
14648
+ message.mediaId = object.mediaId ?? 0;
14649
+ message.mediaType = object.mediaType ?? 0;
14650
+ message.mediaFormat = object.mediaFormat ?? 0;
14651
+ message.eventItemCode = object.eventItemCode ?? 0;
14652
+ message.channelId = object.channelId ?? 0;
14023
14653
  return message;
14024
14654
  },
14025
14655
  };
14026
- function createBaseJTT808MediaRetrieval0802_Item() {
14027
- return { multimediaId: 0, multimediaType: 0, channelId: 0, eventItemEncoding: 0, location: undefined };
14656
+ function createBaseJTT808EventMediaDataUpload() {
14657
+ return { mediaId: 0, mediaType: 0, mediaFormat: 0, eventItemCode: 0, channelId: 0, payload: new Uint8Array(0) };
14028
14658
  }
14029
- export const JTT808MediaRetrieval0802_Item = {
14659
+ export const JTT808EventMediaDataUpload = {
14030
14660
  encode(message, writer = new BinaryWriter()) {
14031
- if (message.multimediaId !== 0) {
14032
- writer.uint32(8).uint32(message.multimediaId);
14661
+ if (message.mediaId !== 0) {
14662
+ writer.uint32(8).uint32(message.mediaId);
14033
14663
  }
14034
- if (message.multimediaType !== 0) {
14035
- writer.uint32(16).uint32(message.multimediaType);
14664
+ if (message.mediaType !== 0) {
14665
+ writer.uint32(16).uint32(message.mediaType);
14036
14666
  }
14037
- if (message.channelId !== 0) {
14038
- writer.uint32(24).uint32(message.channelId);
14667
+ if (message.mediaFormat !== 0) {
14668
+ writer.uint32(24).uint32(message.mediaFormat);
14039
14669
  }
14040
- if (message.eventItemEncoding !== 0) {
14041
- writer.uint32(32).uint32(message.eventItemEncoding);
14670
+ if (message.eventItemCode !== 0) {
14671
+ writer.uint32(32).uint32(message.eventItemCode);
14042
14672
  }
14043
- if (message.location !== undefined) {
14044
- Data.encode(message.location, writer.uint32(42).fork()).join();
14673
+ if (message.channelId !== 0) {
14674
+ writer.uint32(40).uint32(message.channelId);
14675
+ }
14676
+ if (message.payload.length !== 0) {
14677
+ writer.uint32(50).bytes(message.payload);
14045
14678
  }
14046
14679
  return writer;
14047
14680
  },
14048
14681
  decode(input, length) {
14049
14682
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14050
14683
  const end = length === undefined ? reader.len : reader.pos + length;
14051
- const message = createBaseJTT808MediaRetrieval0802_Item();
14684
+ const message = createBaseJTT808EventMediaDataUpload();
14052
14685
  while (reader.pos < end) {
14053
14686
  const tag = reader.uint32();
14054
14687
  switch (tag >>> 3) {
@@ -14056,35 +14689,42 @@ export const JTT808MediaRetrieval0802_Item = {
14056
14689
  if (tag !== 8) {
14057
14690
  break;
14058
14691
  }
14059
- message.multimediaId = reader.uint32();
14692
+ message.mediaId = reader.uint32();
14060
14693
  continue;
14061
14694
  }
14062
14695
  case 2: {
14063
14696
  if (tag !== 16) {
14064
14697
  break;
14065
14698
  }
14066
- message.multimediaType = reader.uint32();
14699
+ message.mediaType = reader.uint32();
14067
14700
  continue;
14068
14701
  }
14069
14702
  case 3: {
14070
14703
  if (tag !== 24) {
14071
14704
  break;
14072
14705
  }
14073
- message.channelId = reader.uint32();
14706
+ message.mediaFormat = reader.uint32();
14074
14707
  continue;
14075
14708
  }
14076
14709
  case 4: {
14077
14710
  if (tag !== 32) {
14078
14711
  break;
14079
14712
  }
14080
- message.eventItemEncoding = reader.uint32();
14713
+ message.eventItemCode = reader.uint32();
14081
14714
  continue;
14082
14715
  }
14083
14716
  case 5: {
14084
- if (tag !== 42) {
14717
+ if (tag !== 40) {
14085
14718
  break;
14086
14719
  }
14087
- message.location = Data.decode(reader, reader.uint32());
14720
+ message.channelId = reader.uint32();
14721
+ continue;
14722
+ }
14723
+ case 6: {
14724
+ if (tag !== 50) {
14725
+ break;
14726
+ }
14727
+ message.payload = reader.bytes();
14088
14728
  continue;
14089
14729
  }
14090
14730
  }
@@ -14096,62 +14736,61 @@ export const JTT808MediaRetrieval0802_Item = {
14096
14736
  return message;
14097
14737
  },
14098
14738
  create(base) {
14099
- return JTT808MediaRetrieval0802_Item.fromPartial(base ?? {});
14739
+ return JTT808EventMediaDataUpload.fromPartial(base ?? {});
14100
14740
  },
14101
14741
  fromPartial(object) {
14102
- const message = createBaseJTT808MediaRetrieval0802_Item();
14103
- message.multimediaId = object.multimediaId ?? 0;
14104
- message.multimediaType = object.multimediaType ?? 0;
14742
+ const message = createBaseJTT808EventMediaDataUpload();
14743
+ message.mediaId = object.mediaId ?? 0;
14744
+ message.mediaType = object.mediaType ?? 0;
14745
+ message.mediaFormat = object.mediaFormat ?? 0;
14746
+ message.eventItemCode = object.eventItemCode ?? 0;
14105
14747
  message.channelId = object.channelId ?? 0;
14106
- message.eventItemEncoding = object.eventItemEncoding ?? 0;
14107
- message.location = (object.location !== undefined && object.location !== null)
14108
- ? Data.fromPartial(object.location)
14109
- : undefined;
14748
+ message.payload = object.payload ?? new Uint8Array(0);
14110
14749
  return message;
14111
14750
  },
14112
14751
  };
14113
- function createBaseDeviceConnectionStatus() {
14114
- return { deviceId: Long.UZERO, online: false, timestamp: undefined };
14752
+ function createBaseJTT808SignalingDataMessage1212() {
14753
+ return { name: "", type: 0, size: 0 };
14115
14754
  }
14116
- export const DeviceConnectionStatus = {
14755
+ export const JTT808SignalingDataMessage1212 = {
14117
14756
  encode(message, writer = new BinaryWriter()) {
14118
- if (!message.deviceId.equals(Long.UZERO)) {
14119
- writer.uint32(8).uint64(message.deviceId.toString());
14757
+ if (message.name !== "") {
14758
+ writer.uint32(10).string(message.name);
14120
14759
  }
14121
- if (message.online !== false) {
14122
- writer.uint32(16).bool(message.online);
14760
+ if (message.type !== 0) {
14761
+ writer.uint32(16).int32(message.type);
14123
14762
  }
14124
- if (message.timestamp !== undefined) {
14125
- Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
14763
+ if (message.size !== 0) {
14764
+ writer.uint32(24).uint32(message.size);
14126
14765
  }
14127
14766
  return writer;
14128
14767
  },
14129
14768
  decode(input, length) {
14130
14769
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14131
14770
  const end = length === undefined ? reader.len : reader.pos + length;
14132
- const message = createBaseDeviceConnectionStatus();
14771
+ const message = createBaseJTT808SignalingDataMessage1212();
14133
14772
  while (reader.pos < end) {
14134
14773
  const tag = reader.uint32();
14135
14774
  switch (tag >>> 3) {
14136
14775
  case 1: {
14137
- if (tag !== 8) {
14776
+ if (tag !== 10) {
14138
14777
  break;
14139
14778
  }
14140
- message.deviceId = Long.fromString(reader.uint64().toString(), true);
14779
+ message.name = reader.string();
14141
14780
  continue;
14142
14781
  }
14143
14782
  case 2: {
14144
14783
  if (tag !== 16) {
14145
14784
  break;
14146
14785
  }
14147
- message.online = reader.bool();
14786
+ message.type = reader.int32();
14148
14787
  continue;
14149
14788
  }
14150
14789
  case 3: {
14151
- if (tag !== 26) {
14790
+ if (tag !== 24) {
14152
14791
  break;
14153
14792
  }
14154
- message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
14793
+ message.size = reader.uint32();
14155
14794
  continue;
14156
14795
  }
14157
14796
  }
@@ -14163,15 +14802,13 @@ export const DeviceConnectionStatus = {
14163
14802
  return message;
14164
14803
  },
14165
14804
  create(base) {
14166
- return DeviceConnectionStatus.fromPartial(base ?? {});
14805
+ return JTT808SignalingDataMessage1212.fromPartial(base ?? {});
14167
14806
  },
14168
14807
  fromPartial(object) {
14169
- const message = createBaseDeviceConnectionStatus();
14170
- message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
14171
- ? Long.fromValue(object.deviceId)
14172
- : Long.UZERO;
14173
- message.online = object.online ?? false;
14174
- message.timestamp = object.timestamp ?? undefined;
14808
+ const message = createBaseJTT808SignalingDataMessage1212();
14809
+ message.name = object.name ?? "";
14810
+ message.type = object.type ?? 0;
14811
+ message.size = object.size ?? 0;
14175
14812
  return message;
14176
14813
  },
14177
14814
  };