@fatehan/tsrp 1.6.15 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/fatehan/activities/workflow.d.ts +0 -219
- package/dist/fatehan/activities/workflow.d.ts.map +0 -1
- package/dist/fatehan/activities/workflow.js +0 -1941
- package/dist/fatehan/activities/workshift.d.ts +0 -140
- package/dist/fatehan/activities/workshift.d.ts.map +0 -1
- package/dist/fatehan/activities/workshift.js +0 -1244
- package/dist/fatehan/apis/client.d.ts +0 -246
- package/dist/fatehan/apis/client.d.ts.map +0 -1
- package/dist/fatehan/apis/client.js +0 -2572
- package/dist/fatehan/areas/area.d.ts +0 -96
- package/dist/fatehan/areas/area.d.ts.map +0 -1
- package/dist/fatehan/areas/area.js +0 -761
- package/dist/fatehan/devices/devices.d.ts +0 -256
- package/dist/fatehan/devices/devices.d.ts.map +0 -1
- package/dist/fatehan/devices/devices.js +0 -2730
- package/dist/fatehan/devices/maintenance.d.ts +0 -64
- package/dist/fatehan/devices/maintenance.d.ts.map +0 -1
- package/dist/fatehan/devices/maintenance.js +0 -484
- package/dist/fatehan/financial/financial.d.ts +0 -162
- package/dist/fatehan/financial/financial.d.ts.map +0 -1
- package/dist/fatehan/financial/financial.js +0 -1701
- package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -1303
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/descriptor.js +0 -3467
- package/dist/fatehan/google/protobuf/duration.d.ts +0 -99
- package/dist/fatehan/google/protobuf/duration.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/duration.js +0 -63
- package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -228
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/field_mask.js +0 -57
- package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -129
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/timestamp.js +0 -63
- package/dist/fatehan/identities/authentication.d.ts +0 -164
- package/dist/fatehan/identities/authentication.d.ts.map +0 -1
- package/dist/fatehan/identities/authentication.js +0 -1291
- package/dist/fatehan/identities/identities.d.ts +0 -969
- package/dist/fatehan/identities/identities.d.ts.map +0 -1
- package/dist/fatehan/identities/identities.js +0 -2993
- package/dist/fatehan/models/fusion.d.ts +0 -149
- package/dist/fatehan/models/fusion.d.ts.map +0 -1
- package/dist/fatehan/models/fusion.js +0 -1531
- package/dist/fatehan/models/models.d.ts +0 -162
- package/dist/fatehan/models/models.d.ts.map +0 -1
- package/dist/fatehan/models/models.js +0 -1486
- package/dist/fatehan/notifies/direct.d.ts +0 -85
- package/dist/fatehan/notifies/direct.d.ts.map +0 -1
- package/dist/fatehan/notifies/direct.js +0 -669
- package/dist/fatehan/notifies/notify.d.ts +0 -232
- package/dist/fatehan/notifies/notify.d.ts.map +0 -1
- package/dist/fatehan/notifies/notify.js +0 -1958
- package/dist/fatehan/packets/commands.d.ts +0 -150
- package/dist/fatehan/packets/commands.d.ts.map +0 -1
- package/dist/fatehan/packets/commands.js +0 -1364
- package/dist/fatehan/packets/dataModel.d.ts +0 -1610
- package/dist/fatehan/packets/dataModel.d.ts.map +0 -1
- package/dist/fatehan/packets/dataModel.js +0 -14947
- package/dist/fatehan/packets/dataModule.d.ts +0 -61
- package/dist/fatehan/packets/dataModule.d.ts.map +0 -1
- package/dist/fatehan/packets/dataModule.js +0 -386
- package/dist/fatehan/packets/forge.d.ts +0 -142
- package/dist/fatehan/packets/forge.d.ts.map +0 -1
- package/dist/fatehan/packets/forge.js +0 -1339
- package/dist/fatehan/services/api.d.ts +0 -1211
- package/dist/fatehan/services/api.d.ts.map +0 -1
- package/dist/fatehan/services/api.js +0 -12547
- package/dist/fatehan/services/repositories.d.ts +0 -78
- package/dist/fatehan/services/repositories.d.ts.map +0 -1
- package/dist/fatehan/services/repositories.js +0 -620
- package/dist/fatehan/stream/stream.d.ts +0 -224
- package/dist/fatehan/stream/stream.d.ts.map +0 -1
- package/dist/fatehan/stream/stream.js +0 -1416
- package/dist/fatehan/trips/trip.d.ts +0 -325
- package/dist/fatehan/trips/trip.d.ts.map +0 -1
- package/dist/fatehan/trips/trip.js +0 -1635
- package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -3520
- package/dist/fatehan/utils/buf/validate/validate.d.ts.map +0 -1
- package/dist/fatehan/utils/buf/validate/validate.js +0 -4248
- package/dist/services.d.ts +0 -78
- package/dist/services.d.ts.map +0 -1
- package/dist/services.js +0 -242
- package/dist/store/system.io.d.ts +0 -6
- package/dist/store/system.io.d.ts.map +0 -1
- package/dist/store/system.io.js +0 -14
- package/dist/system.io.d.ts +0 -6
- package/dist/system.io.d.ts.map +0 -1
- package/dist/system.io.js +0 -208
|
@@ -1,1635 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8
|
|
4
|
-
// protoc v7.34.1
|
|
5
|
-
// source: trips/trip.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
-
import Long from "long";
|
|
9
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
|
-
export const protobufPackage = "com.fatehan.trips";
|
|
11
|
-
export var CrashEnum;
|
|
12
|
-
(function (CrashEnum) {
|
|
13
|
-
CrashEnum[CrashEnum["CRASH_NONE"] = 0] = "CRASH_NONE";
|
|
14
|
-
CrashEnum[CrashEnum["REAL_CRASH"] = 1] = "REAL_CRASH";
|
|
15
|
-
CrashEnum[CrashEnum["LIMIT_CRASH_TRACE"] = 2] = "LIMIT_CRASH_TRACE";
|
|
16
|
-
CrashEnum[CrashEnum["LIMIT_CRASH_TRACE_NOT_CALIBRATED"] = 3] = "LIMIT_CRASH_TRACE_NOT_CALIBRATED";
|
|
17
|
-
CrashEnum[CrashEnum["FULL_CRASH_TRACE_NOT_CALIBRATED"] = 4] = "FULL_CRASH_TRACE_NOT_CALIBRATED";
|
|
18
|
-
CrashEnum[CrashEnum["FULL_CRASH_TRACE"] = 5] = "FULL_CRASH_TRACE";
|
|
19
|
-
CrashEnum[CrashEnum["REAL_CRASH_NOT_CALIBRATED"] = 6] = "REAL_CRASH_NOT_CALIBRATED";
|
|
20
|
-
CrashEnum[CrashEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
21
|
-
})(CrashEnum || (CrashEnum = {}));
|
|
22
|
-
export var GreenDrivingTypeEnum;
|
|
23
|
-
(function (GreenDrivingTypeEnum) {
|
|
24
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["NONE"] = 0] = "NONE";
|
|
25
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["HARSH_ACCELERATION"] = 1] = "HARSH_ACCELERATION";
|
|
26
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["HARSH_BREAKING"] = 2] = "HARSH_BREAKING";
|
|
27
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["HARSH_CORNERING"] = 3] = "HARSH_CORNERING";
|
|
28
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["BLOOD_ALCOHOL_CONTENT"] = 4] = "BLOOD_ALCOHOL_CONTENT";
|
|
29
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["OVER_SPEEDING"] = 5] = "OVER_SPEEDING";
|
|
30
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["IDLING"] = 6] = "IDLING";
|
|
31
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["SCORE"] = 7] = "SCORE";
|
|
32
|
-
GreenDrivingTypeEnum[GreenDrivingTypeEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
33
|
-
})(GreenDrivingTypeEnum || (GreenDrivingTypeEnum = {}));
|
|
34
|
-
export var HumidityEnum;
|
|
35
|
-
(function (HumidityEnum) {
|
|
36
|
-
HumidityEnum[HumidityEnum["DEFAULT_HUMIDITY_MIN"] = 0] = "DEFAULT_HUMIDITY_MIN";
|
|
37
|
-
HumidityEnum[HumidityEnum["DEFAULT_HUMIDITY_MAX"] = 1] = "DEFAULT_HUMIDITY_MAX";
|
|
38
|
-
HumidityEnum[HumidityEnum["DEFAULT_HUMIDITY_AVG"] = 2] = "DEFAULT_HUMIDITY_AVG";
|
|
39
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY1_MIN"] = 3] = "EYE_HUMIDITY1_MIN";
|
|
40
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY1_MAX"] = 4] = "EYE_HUMIDITY1_MAX";
|
|
41
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY1_AVG"] = 5] = "EYE_HUMIDITY1_AVG";
|
|
42
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY2_MIN"] = 6] = "EYE_HUMIDITY2_MIN";
|
|
43
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY2_MAX"] = 7] = "EYE_HUMIDITY2_MAX";
|
|
44
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY2_AVG"] = 8] = "EYE_HUMIDITY2_AVG";
|
|
45
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY3_MIN"] = 9] = "EYE_HUMIDITY3_MIN";
|
|
46
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY3_MAX"] = 10] = "EYE_HUMIDITY3_MAX";
|
|
47
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY3_AVG"] = 11] = "EYE_HUMIDITY3_AVG";
|
|
48
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY4_MIN"] = 12] = "EYE_HUMIDITY4_MIN";
|
|
49
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY4_MAX"] = 13] = "EYE_HUMIDITY4_MAX";
|
|
50
|
-
HumidityEnum[HumidityEnum["EYE_HUMIDITY4_AVG"] = 14] = "EYE_HUMIDITY4_AVG";
|
|
51
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY1_MIN"] = 15] = "BLE_HUMIDITY1_MIN";
|
|
52
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY1_MAX"] = 16] = "BLE_HUMIDITY1_MAX";
|
|
53
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY1_AVG"] = 17] = "BLE_HUMIDITY1_AVG";
|
|
54
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY2_MIN"] = 18] = "BLE_HUMIDITY2_MIN";
|
|
55
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY2_MAX"] = 19] = "BLE_HUMIDITY2_MAX";
|
|
56
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY2_AVG"] = 20] = "BLE_HUMIDITY2_AVG";
|
|
57
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY3_MIN"] = 21] = "BLE_HUMIDITY3_MIN";
|
|
58
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY3_MAX"] = 22] = "BLE_HUMIDITY3_MAX";
|
|
59
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY3_AVG"] = 23] = "BLE_HUMIDITY3_AVG";
|
|
60
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY4_MIN"] = 24] = "BLE_HUMIDITY4_MIN";
|
|
61
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY4_MAX"] = 25] = "BLE_HUMIDITY4_MAX";
|
|
62
|
-
HumidityEnum[HumidityEnum["BLE_HUMIDITY4_AVG"] = 26] = "BLE_HUMIDITY4_AVG";
|
|
63
|
-
HumidityEnum[HumidityEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
64
|
-
})(HumidityEnum || (HumidityEnum = {}));
|
|
65
|
-
export var TemperatureEnum;
|
|
66
|
-
(function (TemperatureEnum) {
|
|
67
|
-
TemperatureEnum[TemperatureEnum["DEFAULT_TEMPERATURE_MIN"] = 0] = "DEFAULT_TEMPERATURE_MIN";
|
|
68
|
-
TemperatureEnum[TemperatureEnum["DEFAULT_TEMPERATURE_MAX"] = 1] = "DEFAULT_TEMPERATURE_MAX";
|
|
69
|
-
TemperatureEnum[TemperatureEnum["DEFAULT_TEMPERATURE_AVG"] = 2] = "DEFAULT_TEMPERATURE_AVG";
|
|
70
|
-
TemperatureEnum[TemperatureEnum["INTAKE_AIR_TEMPERATURE_MIN"] = 3] = "INTAKE_AIR_TEMPERATURE_MIN";
|
|
71
|
-
TemperatureEnum[TemperatureEnum["INTAKE_AIR_TEMPERATURE_MAX"] = 4] = "INTAKE_AIR_TEMPERATURE_MAX";
|
|
72
|
-
TemperatureEnum[TemperatureEnum["INTAKE_AIR_TEMPERATURE_AVG"] = 5] = "INTAKE_AIR_TEMPERATURE_AVG";
|
|
73
|
-
TemperatureEnum[TemperatureEnum["AMBIENT_AIR_TEMPERATURE_MIN"] = 6] = "AMBIENT_AIR_TEMPERATURE_MIN";
|
|
74
|
-
TemperatureEnum[TemperatureEnum["AMBIENT_AIR_TEMPERATURE_MAX"] = 7] = "AMBIENT_AIR_TEMPERATURE_MAX";
|
|
75
|
-
TemperatureEnum[TemperatureEnum["AMBIENT_AIR_TEMPERATURE_AVG"] = 8] = "AMBIENT_AIR_TEMPERATURE_AVG";
|
|
76
|
-
TemperatureEnum[TemperatureEnum["ENGINE_OIL_TEMPERATURE_MIN"] = 9] = "ENGINE_OIL_TEMPERATURE_MIN";
|
|
77
|
-
TemperatureEnum[TemperatureEnum["ENGINE_OIL_TEMPERATURE_MAX"] = 10] = "ENGINE_OIL_TEMPERATURE_MAX";
|
|
78
|
-
TemperatureEnum[TemperatureEnum["ENGINE_OIL_TEMPERATURE_AVG"] = 11] = "ENGINE_OIL_TEMPERATURE_AVG";
|
|
79
|
-
TemperatureEnum[TemperatureEnum["COOLANT_TEMPERATURE_MIN"] = 12] = "COOLANT_TEMPERATURE_MIN";
|
|
80
|
-
TemperatureEnum[TemperatureEnum["COOLANT_TEMPERATURE_MAX"] = 13] = "COOLANT_TEMPERATURE_MAX";
|
|
81
|
-
TemperatureEnum[TemperatureEnum["COOLANT_TEMPERATURE_AVG"] = 14] = "COOLANT_TEMPERATURE_AVG";
|
|
82
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE1_MIN"] = 15] = "BLE_TEMPERATURE1_MIN";
|
|
83
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE1_MAX"] = 16] = "BLE_TEMPERATURE1_MAX";
|
|
84
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE1_AVG"] = 17] = "BLE_TEMPERATURE1_AVG";
|
|
85
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE2_MIN"] = 18] = "BLE_TEMPERATURE2_MIN";
|
|
86
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE2_MAX"] = 19] = "BLE_TEMPERATURE2_MAX";
|
|
87
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE2_AVG"] = 20] = "BLE_TEMPERATURE2_AVG";
|
|
88
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE3_MIN"] = 21] = "BLE_TEMPERATURE3_MIN";
|
|
89
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE3_MAX"] = 22] = "BLE_TEMPERATURE3_MAX";
|
|
90
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE3_AVG"] = 23] = "BLE_TEMPERATURE3_AVG";
|
|
91
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE4_MIN"] = 24] = "BLE_TEMPERATURE4_MIN";
|
|
92
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE4_MAX"] = 25] = "BLE_TEMPERATURE4_MAX";
|
|
93
|
-
TemperatureEnum[TemperatureEnum["BLE_TEMPERATURE4_AVG"] = 27] = "BLE_TEMPERATURE4_AVG";
|
|
94
|
-
TemperatureEnum[TemperatureEnum["ENGINE_TEMPERATURE_MIN"] = 28] = "ENGINE_TEMPERATURE_MIN";
|
|
95
|
-
TemperatureEnum[TemperatureEnum["ENGINE_TEMPERATURE_MAX"] = 29] = "ENGINE_TEMPERATURE_MAX";
|
|
96
|
-
TemperatureEnum[TemperatureEnum["ENGINE_TEMPERATURE_AVG"] = 30] = "ENGINE_TEMPERATURE_AVG";
|
|
97
|
-
TemperatureEnum[TemperatureEnum["BATTERY_TEMPERATURE_MIN"] = 31] = "BATTERY_TEMPERATURE_MIN";
|
|
98
|
-
TemperatureEnum[TemperatureEnum["BATTERY_TEMPERATURE_MAX"] = 32] = "BATTERY_TEMPERATURE_MAX";
|
|
99
|
-
TemperatureEnum[TemperatureEnum["BATTERY_TEMPERATURE_AVG"] = 33] = "BATTERY_TEMPERATURE_AVG";
|
|
100
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE1_MIN"] = 34] = "DALLAS_TEMPERATURE1_MIN";
|
|
101
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE1_MAX"] = 35] = "DALLAS_TEMPERATURE1_MAX";
|
|
102
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE1_AVG"] = 36] = "DALLAS_TEMPERATURE1_AVG";
|
|
103
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE2_MIN"] = 37] = "DALLAS_TEMPERATURE2_MIN";
|
|
104
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE2_MAX"] = 38] = "DALLAS_TEMPERATURE2_MAX";
|
|
105
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE2_AVG"] = 39] = "DALLAS_TEMPERATURE2_AVG";
|
|
106
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE3_MIN"] = 40] = "DALLAS_TEMPERATURE3_MIN";
|
|
107
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE3_MAX"] = 41] = "DALLAS_TEMPERATURE3_MAX";
|
|
108
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE3_AVG"] = 42] = "DALLAS_TEMPERATURE3_AVG";
|
|
109
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE4_MIN"] = 43] = "DALLAS_TEMPERATURE4_MIN";
|
|
110
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE4_MAX"] = 44] = "DALLAS_TEMPERATURE4_MAX";
|
|
111
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE4_AVG"] = 45] = "DALLAS_TEMPERATURE4_AVG";
|
|
112
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE1_MIN"] = 46] = "LLS_TEMPERATURE1_MIN";
|
|
113
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE1_MAX"] = 47] = "LLS_TEMPERATURE1_MAX";
|
|
114
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE1_AVG"] = 48] = "LLS_TEMPERATURE1_AVG";
|
|
115
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE2_MIN"] = 49] = "LLS_TEMPERATURE2_MIN";
|
|
116
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE2_MAX"] = 50] = "LLS_TEMPERATURE2_MAX";
|
|
117
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE2_AVG"] = 51] = "LLS_TEMPERATURE2_AVG";
|
|
118
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE3_MIN"] = 52] = "LLS_TEMPERATURE3_MIN";
|
|
119
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE3_MAX"] = 53] = "LLS_TEMPERATURE3_MAX";
|
|
120
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE3_AVG"] = 54] = "LLS_TEMPERATURE3_AVG";
|
|
121
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE4_MIN"] = 55] = "LLS_TEMPERATURE4_MIN";
|
|
122
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE4_MAX"] = 56] = "LLS_TEMPERATURE4_MAX";
|
|
123
|
-
TemperatureEnum[TemperatureEnum["LLS_TEMPERATURE4_AVG"] = 59] = "LLS_TEMPERATURE4_AVG";
|
|
124
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE1_MIN"] = 60] = "EYE_TEMPERATURE1_MIN";
|
|
125
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE1_MAX"] = 61] = "EYE_TEMPERATURE1_MAX";
|
|
126
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE1_AVG"] = 62] = "EYE_TEMPERATURE1_AVG";
|
|
127
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE2_MIN"] = 63] = "EYE_TEMPERATURE2_MIN";
|
|
128
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE2_MAX"] = 64] = "EYE_TEMPERATURE2_MAX";
|
|
129
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE2_AVG"] = 65] = "EYE_TEMPERATURE2_AVG";
|
|
130
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE3_MIN"] = 66] = "EYE_TEMPERATURE3_MIN";
|
|
131
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE3_MAX"] = 67] = "EYE_TEMPERATURE3_MAX";
|
|
132
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE3_AVG"] = 68] = "EYE_TEMPERATURE3_AVG";
|
|
133
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE4_MIN"] = 69] = "EYE_TEMPERATURE4_MIN";
|
|
134
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE4_MAX"] = 70] = "EYE_TEMPERATURE4_MAX";
|
|
135
|
-
TemperatureEnum[TemperatureEnum["EYE_TEMPERATURE4_AVG"] = 71] = "EYE_TEMPERATURE4_AVG";
|
|
136
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE5_MIN"] = 72] = "DALLAS_TEMPERATURE5_MIN";
|
|
137
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE5_MAX"] = 73] = "DALLAS_TEMPERATURE5_MAX";
|
|
138
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE5_AVG"] = 74] = "DALLAS_TEMPERATURE5_AVG";
|
|
139
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE6_MIN"] = 75] = "DALLAS_TEMPERATURE6_MIN";
|
|
140
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE6_MAX"] = 76] = "DALLAS_TEMPERATURE6_MAX";
|
|
141
|
-
TemperatureEnum[TemperatureEnum["DALLAS_TEMPERATURE6_AVG"] = 77] = "DALLAS_TEMPERATURE6_AVG";
|
|
142
|
-
TemperatureEnum[TemperatureEnum["TIRE1_TEMPERATURE_MIN"] = 78] = "TIRE1_TEMPERATURE_MIN";
|
|
143
|
-
TemperatureEnum[TemperatureEnum["TIRE1_TEMPERATURE_MAX"] = 79] = "TIRE1_TEMPERATURE_MAX";
|
|
144
|
-
TemperatureEnum[TemperatureEnum["TIRE1_TEMPERATURE_AVG"] = 80] = "TIRE1_TEMPERATURE_AVG";
|
|
145
|
-
TemperatureEnum[TemperatureEnum["TIRE2_TEMPERATURE_MIN"] = 81] = "TIRE2_TEMPERATURE_MIN";
|
|
146
|
-
TemperatureEnum[TemperatureEnum["TIRE2_TEMPERATURE_MAX"] = 82] = "TIRE2_TEMPERATURE_MAX";
|
|
147
|
-
TemperatureEnum[TemperatureEnum["TIRE2_TEMPERATURE_AVG"] = 83] = "TIRE2_TEMPERATURE_AVG";
|
|
148
|
-
TemperatureEnum[TemperatureEnum["TIRE3_TEMPERATURE_MIN"] = 84] = "TIRE3_TEMPERATURE_MIN";
|
|
149
|
-
TemperatureEnum[TemperatureEnum["TIRE3_TEMPERATURE_MAX"] = 85] = "TIRE3_TEMPERATURE_MAX";
|
|
150
|
-
TemperatureEnum[TemperatureEnum["TIRE3_TEMPERATURE_AVG"] = 86] = "TIRE3_TEMPERATURE_AVG";
|
|
151
|
-
TemperatureEnum[TemperatureEnum["TIRE4_TEMPERATURE_MIN"] = 87] = "TIRE4_TEMPERATURE_MIN";
|
|
152
|
-
TemperatureEnum[TemperatureEnum["TIRE4_TEMPERATURE_MAX"] = 88] = "TIRE4_TEMPERATURE_MAX";
|
|
153
|
-
TemperatureEnum[TemperatureEnum["TIRE4_TEMPERATURE_AVG"] = 89] = "TIRE4_TEMPERATURE_AVG";
|
|
154
|
-
TemperatureEnum[TemperatureEnum["TIRE5_TEMPERATURE_MIN"] = 90] = "TIRE5_TEMPERATURE_MIN";
|
|
155
|
-
TemperatureEnum[TemperatureEnum["TIRE5_TEMPERATURE_MAX"] = 91] = "TIRE5_TEMPERATURE_MAX";
|
|
156
|
-
TemperatureEnum[TemperatureEnum["TIRE5_TEMPERATURE_AVG"] = 92] = "TIRE5_TEMPERATURE_AVG";
|
|
157
|
-
TemperatureEnum[TemperatureEnum["TIRE6_TEMPERATURE_MIN"] = 93] = "TIRE6_TEMPERATURE_MIN";
|
|
158
|
-
TemperatureEnum[TemperatureEnum["TIRE6_TEMPERATURE_MAX"] = 94] = "TIRE6_TEMPERATURE_MAX";
|
|
159
|
-
TemperatureEnum[TemperatureEnum["TIRE6_TEMPERATURE_AVG"] = 95] = "TIRE6_TEMPERATURE_AVG";
|
|
160
|
-
TemperatureEnum[TemperatureEnum["TIRE7_TEMPERATURE_MIN"] = 96] = "TIRE7_TEMPERATURE_MIN";
|
|
161
|
-
TemperatureEnum[TemperatureEnum["TIRE7_TEMPERATURE_MAX"] = 97] = "TIRE7_TEMPERATURE_MAX";
|
|
162
|
-
TemperatureEnum[TemperatureEnum["TIRE7_TEMPERATURE_AVG"] = 98] = "TIRE7_TEMPERATURE_AVG";
|
|
163
|
-
TemperatureEnum[TemperatureEnum["TIRE8_TEMPERATURE_MIN"] = 99] = "TIRE8_TEMPERATURE_MIN";
|
|
164
|
-
TemperatureEnum[TemperatureEnum["TIRE8_TEMPERATURE_MAX"] = 100] = "TIRE8_TEMPERATURE_MAX";
|
|
165
|
-
TemperatureEnum[TemperatureEnum["TIRE8_TEMPERATURE_AVG"] = 101] = "TIRE8_TEMPERATURE_AVG";
|
|
166
|
-
TemperatureEnum[TemperatureEnum["TIRE9_TEMPERATURE_MIN"] = 102] = "TIRE9_TEMPERATURE_MIN";
|
|
167
|
-
TemperatureEnum[TemperatureEnum["TIRE9_TEMPERATURE_MAX"] = 103] = "TIRE9_TEMPERATURE_MAX";
|
|
168
|
-
TemperatureEnum[TemperatureEnum["TIRE9_TEMPERATURE_AVG"] = 104] = "TIRE9_TEMPERATURE_AVG";
|
|
169
|
-
TemperatureEnum[TemperatureEnum["TIRE10_TEMPERATURE_MIN"] = 105] = "TIRE10_TEMPERATURE_MIN";
|
|
170
|
-
TemperatureEnum[TemperatureEnum["TIRE10_TEMPERATURE_MAX"] = 106] = "TIRE10_TEMPERATURE_MAX";
|
|
171
|
-
TemperatureEnum[TemperatureEnum["TIRE10_TEMPERATURE_AVG"] = 107] = "TIRE10_TEMPERATURE_AVG";
|
|
172
|
-
TemperatureEnum[TemperatureEnum["TIRE11_TEMPERATURE_MIN"] = 108] = "TIRE11_TEMPERATURE_MIN";
|
|
173
|
-
TemperatureEnum[TemperatureEnum["TIRE11_TEMPERATURE_MAX"] = 109] = "TIRE11_TEMPERATURE_MAX";
|
|
174
|
-
TemperatureEnum[TemperatureEnum["TIRE11_TEMPERATURE_AVG"] = 110] = "TIRE11_TEMPERATURE_AVG";
|
|
175
|
-
TemperatureEnum[TemperatureEnum["TIRE12_TEMPERATURE_MIN"] = 111] = "TIRE12_TEMPERATURE_MIN";
|
|
176
|
-
TemperatureEnum[TemperatureEnum["TIRE12_TEMPERATURE_MAX"] = 112] = "TIRE12_TEMPERATURE_MAX";
|
|
177
|
-
TemperatureEnum[TemperatureEnum["TIRE12_TEMPERATURE_AVG"] = 113] = "TIRE12_TEMPERATURE_AVG";
|
|
178
|
-
TemperatureEnum[TemperatureEnum["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
179
|
-
})(TemperatureEnum || (TemperatureEnum = {}));
|
|
180
|
-
export var TripTask_EventType;
|
|
181
|
-
(function (TripTask_EventType) {
|
|
182
|
-
TripTask_EventType[TripTask_EventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
183
|
-
TripTask_EventType[TripTask_EventType["ODYSSEY"] = 1] = "ODYSSEY";
|
|
184
|
-
TripTask_EventType[TripTask_EventType["FUSION"] = 2] = "FUSION";
|
|
185
|
-
TripTask_EventType[TripTask_EventType["MONTHLY"] = 3] = "MONTHLY";
|
|
186
|
-
TripTask_EventType[TripTask_EventType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
187
|
-
})(TripTask_EventType || (TripTask_EventType = {}));
|
|
188
|
-
function createBaseTrip() {
|
|
189
|
-
return {
|
|
190
|
-
id: Long.UZERO,
|
|
191
|
-
deviceId: Long.UZERO,
|
|
192
|
-
mileage: 0,
|
|
193
|
-
idling: 0,
|
|
194
|
-
parking: 0,
|
|
195
|
-
moving: 0,
|
|
196
|
-
towing: 0,
|
|
197
|
-
totalSpeed: 0,
|
|
198
|
-
sumSpeed: 0,
|
|
199
|
-
maxSpeed: 0,
|
|
200
|
-
compact: undefined,
|
|
201
|
-
startedAt: undefined,
|
|
202
|
-
finishedAt: undefined,
|
|
203
|
-
createdAt: undefined,
|
|
204
|
-
updatedAt: undefined,
|
|
205
|
-
points: [],
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
export const Trip = {
|
|
209
|
-
encode(message, writer = new BinaryWriter()) {
|
|
210
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
211
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
212
|
-
}
|
|
213
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
214
|
-
writer.uint32(16).uint64(message.deviceId.toString());
|
|
215
|
-
}
|
|
216
|
-
if (message.mileage !== 0) {
|
|
217
|
-
writer.uint32(24).uint32(message.mileage);
|
|
218
|
-
}
|
|
219
|
-
if (message.idling !== 0) {
|
|
220
|
-
writer.uint32(32).uint32(message.idling);
|
|
221
|
-
}
|
|
222
|
-
if (message.parking !== 0) {
|
|
223
|
-
writer.uint32(40).uint32(message.parking);
|
|
224
|
-
}
|
|
225
|
-
if (message.moving !== 0) {
|
|
226
|
-
writer.uint32(48).uint32(message.moving);
|
|
227
|
-
}
|
|
228
|
-
if (message.towing !== 0) {
|
|
229
|
-
writer.uint32(56).uint32(message.towing);
|
|
230
|
-
}
|
|
231
|
-
if (message.totalSpeed !== 0) {
|
|
232
|
-
writer.uint32(64).uint32(message.totalSpeed);
|
|
233
|
-
}
|
|
234
|
-
if (message.sumSpeed !== 0) {
|
|
235
|
-
writer.uint32(72).uint32(message.sumSpeed);
|
|
236
|
-
}
|
|
237
|
-
if (message.maxSpeed !== 0) {
|
|
238
|
-
writer.uint32(80).uint32(message.maxSpeed);
|
|
239
|
-
}
|
|
240
|
-
if (message.compact !== undefined) {
|
|
241
|
-
TripCompact.encode(message.compact, writer.uint32(90).fork()).join();
|
|
242
|
-
}
|
|
243
|
-
if (message.startedAt !== undefined) {
|
|
244
|
-
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(98).fork()).join();
|
|
245
|
-
}
|
|
246
|
-
if (message.finishedAt !== undefined) {
|
|
247
|
-
Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(106).fork()).join();
|
|
248
|
-
}
|
|
249
|
-
if (message.createdAt !== undefined) {
|
|
250
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(114).fork()).join();
|
|
251
|
-
}
|
|
252
|
-
if (message.updatedAt !== undefined) {
|
|
253
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(122).fork()).join();
|
|
254
|
-
}
|
|
255
|
-
for (const v of message.points) {
|
|
256
|
-
TripPoint.encode(v, writer.uint32(130).fork()).join();
|
|
257
|
-
}
|
|
258
|
-
return writer;
|
|
259
|
-
},
|
|
260
|
-
decode(input, length) {
|
|
261
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
262
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
-
const message = createBaseTrip();
|
|
264
|
-
while (reader.pos < end) {
|
|
265
|
-
const tag = reader.uint32();
|
|
266
|
-
switch (tag >>> 3) {
|
|
267
|
-
case 1: {
|
|
268
|
-
if (tag !== 8) {
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
case 2: {
|
|
275
|
-
if (tag !== 16) {
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
279
|
-
continue;
|
|
280
|
-
}
|
|
281
|
-
case 3: {
|
|
282
|
-
if (tag !== 24) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.mileage = reader.uint32();
|
|
286
|
-
continue;
|
|
287
|
-
}
|
|
288
|
-
case 4: {
|
|
289
|
-
if (tag !== 32) {
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
message.idling = reader.uint32();
|
|
293
|
-
continue;
|
|
294
|
-
}
|
|
295
|
-
case 5: {
|
|
296
|
-
if (tag !== 40) {
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
message.parking = reader.uint32();
|
|
300
|
-
continue;
|
|
301
|
-
}
|
|
302
|
-
case 6: {
|
|
303
|
-
if (tag !== 48) {
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
message.moving = reader.uint32();
|
|
307
|
-
continue;
|
|
308
|
-
}
|
|
309
|
-
case 7: {
|
|
310
|
-
if (tag !== 56) {
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
message.towing = reader.uint32();
|
|
314
|
-
continue;
|
|
315
|
-
}
|
|
316
|
-
case 8: {
|
|
317
|
-
if (tag !== 64) {
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
message.totalSpeed = reader.uint32();
|
|
321
|
-
continue;
|
|
322
|
-
}
|
|
323
|
-
case 9: {
|
|
324
|
-
if (tag !== 72) {
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
message.sumSpeed = reader.uint32();
|
|
328
|
-
continue;
|
|
329
|
-
}
|
|
330
|
-
case 10: {
|
|
331
|
-
if (tag !== 80) {
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
message.maxSpeed = reader.uint32();
|
|
335
|
-
continue;
|
|
336
|
-
}
|
|
337
|
-
case 11: {
|
|
338
|
-
if (tag !== 90) {
|
|
339
|
-
break;
|
|
340
|
-
}
|
|
341
|
-
message.compact = TripCompact.decode(reader, reader.uint32());
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
case 12: {
|
|
345
|
-
if (tag !== 98) {
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
case 13: {
|
|
352
|
-
if (tag !== 106) {
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
message.finishedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
356
|
-
continue;
|
|
357
|
-
}
|
|
358
|
-
case 14: {
|
|
359
|
-
if (tag !== 114) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
case 15: {
|
|
366
|
-
if (tag !== 122) {
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
370
|
-
continue;
|
|
371
|
-
}
|
|
372
|
-
case 16: {
|
|
373
|
-
if (tag !== 130) {
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
message.points.push(TripPoint.decode(reader, reader.uint32()));
|
|
377
|
-
continue;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
reader.skip(tag & 7);
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
create(base) {
|
|
388
|
-
return Trip.fromPartial(base ?? {});
|
|
389
|
-
},
|
|
390
|
-
fromPartial(object) {
|
|
391
|
-
const message = createBaseTrip();
|
|
392
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
393
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
394
|
-
? Long.fromValue(object.deviceId)
|
|
395
|
-
: Long.UZERO;
|
|
396
|
-
message.mileage = object.mileage ?? 0;
|
|
397
|
-
message.idling = object.idling ?? 0;
|
|
398
|
-
message.parking = object.parking ?? 0;
|
|
399
|
-
message.moving = object.moving ?? 0;
|
|
400
|
-
message.towing = object.towing ?? 0;
|
|
401
|
-
message.totalSpeed = object.totalSpeed ?? 0;
|
|
402
|
-
message.sumSpeed = object.sumSpeed ?? 0;
|
|
403
|
-
message.maxSpeed = object.maxSpeed ?? 0;
|
|
404
|
-
message.compact = (object.compact !== undefined && object.compact !== null)
|
|
405
|
-
? TripCompact.fromPartial(object.compact)
|
|
406
|
-
: undefined;
|
|
407
|
-
message.startedAt = object.startedAt ?? undefined;
|
|
408
|
-
message.finishedAt = object.finishedAt ?? undefined;
|
|
409
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
410
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
411
|
-
message.points = object.points?.map((e) => TripPoint.fromPartial(e)) || [];
|
|
412
|
-
return message;
|
|
413
|
-
},
|
|
414
|
-
};
|
|
415
|
-
function createBaseTripCompact() {
|
|
416
|
-
return {
|
|
417
|
-
cost: 0,
|
|
418
|
-
records: 0,
|
|
419
|
-
start: undefined,
|
|
420
|
-
finish: undefined,
|
|
421
|
-
greenDriving: {},
|
|
422
|
-
temperature: {},
|
|
423
|
-
humidity: {},
|
|
424
|
-
iButton: undefined,
|
|
425
|
-
ignition: undefined,
|
|
426
|
-
doorOpened: undefined,
|
|
427
|
-
fuelUsed: undefined,
|
|
428
|
-
fuelRate: undefined,
|
|
429
|
-
engineRpm: undefined,
|
|
430
|
-
engineLoad: undefined,
|
|
431
|
-
crashes: {},
|
|
432
|
-
speeds: {},
|
|
433
|
-
points: [],
|
|
434
|
-
startedAt: undefined,
|
|
435
|
-
finishedAt: undefined,
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
export const TripCompact = {
|
|
439
|
-
encode(message, writer = new BinaryWriter()) {
|
|
440
|
-
if (message.cost !== 0) {
|
|
441
|
-
writer.uint32(8).uint32(message.cost);
|
|
442
|
-
}
|
|
443
|
-
if (message.records !== 0) {
|
|
444
|
-
writer.uint32(16).uint32(message.records);
|
|
445
|
-
}
|
|
446
|
-
if (message.start !== undefined) {
|
|
447
|
-
TripPoint.encode(message.start, writer.uint32(26).fork()).join();
|
|
448
|
-
}
|
|
449
|
-
if (message.finish !== undefined) {
|
|
450
|
-
TripPoint.encode(message.finish, writer.uint32(34).fork()).join();
|
|
451
|
-
}
|
|
452
|
-
globalThis.Object.entries(message.greenDriving).forEach(([key, value]) => {
|
|
453
|
-
TripCompact_GreenDrivingEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
|
|
454
|
-
});
|
|
455
|
-
globalThis.Object.entries(message.temperature).forEach(([key, value]) => {
|
|
456
|
-
TripCompact_TemperatureEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
|
|
457
|
-
});
|
|
458
|
-
globalThis.Object.entries(message.humidity).forEach(([key, value]) => {
|
|
459
|
-
TripCompact_HumidityEntry.encode({ key: key, value }, writer.uint32(58).fork()).join();
|
|
460
|
-
});
|
|
461
|
-
if (message.iButton !== undefined) {
|
|
462
|
-
writer.uint32(64).uint64(message.iButton.toString());
|
|
463
|
-
}
|
|
464
|
-
if (message.ignition !== undefined) {
|
|
465
|
-
writer.uint32(72).uint32(message.ignition);
|
|
466
|
-
}
|
|
467
|
-
if (message.doorOpened !== undefined) {
|
|
468
|
-
writer.uint32(80).uint32(message.doorOpened);
|
|
469
|
-
}
|
|
470
|
-
if (message.fuelUsed !== undefined) {
|
|
471
|
-
writer.uint32(88).uint32(message.fuelUsed);
|
|
472
|
-
}
|
|
473
|
-
if (message.fuelRate !== undefined) {
|
|
474
|
-
writer.uint32(96).uint32(message.fuelRate);
|
|
475
|
-
}
|
|
476
|
-
if (message.engineRpm !== undefined) {
|
|
477
|
-
writer.uint32(104).uint32(message.engineRpm);
|
|
478
|
-
}
|
|
479
|
-
if (message.engineLoad !== undefined) {
|
|
480
|
-
writer.uint32(112).uint32(message.engineLoad);
|
|
481
|
-
}
|
|
482
|
-
globalThis.Object.entries(message.crashes).forEach(([key, value]) => {
|
|
483
|
-
TripCompact_CrashesEntry.encode({ key: key, value }, writer.uint32(122).fork()).join();
|
|
484
|
-
});
|
|
485
|
-
globalThis.Object.entries(message.speeds).forEach(([key, value]) => {
|
|
486
|
-
TripCompact_SpeedsEntry.encode({ key: key, value }, writer.uint32(130).fork()).join();
|
|
487
|
-
});
|
|
488
|
-
writer.uint32(138).fork();
|
|
489
|
-
for (const v of message.points) {
|
|
490
|
-
writer.uint64(v.toString());
|
|
491
|
-
}
|
|
492
|
-
writer.join();
|
|
493
|
-
if (message.startedAt !== undefined) {
|
|
494
|
-
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(146).fork()).join();
|
|
495
|
-
}
|
|
496
|
-
if (message.finishedAt !== undefined) {
|
|
497
|
-
Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(154).fork()).join();
|
|
498
|
-
}
|
|
499
|
-
return writer;
|
|
500
|
-
},
|
|
501
|
-
decode(input, length) {
|
|
502
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
503
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
504
|
-
const message = createBaseTripCompact();
|
|
505
|
-
while (reader.pos < end) {
|
|
506
|
-
const tag = reader.uint32();
|
|
507
|
-
switch (tag >>> 3) {
|
|
508
|
-
case 1: {
|
|
509
|
-
if (tag !== 8) {
|
|
510
|
-
break;
|
|
511
|
-
}
|
|
512
|
-
message.cost = reader.uint32();
|
|
513
|
-
continue;
|
|
514
|
-
}
|
|
515
|
-
case 2: {
|
|
516
|
-
if (tag !== 16) {
|
|
517
|
-
break;
|
|
518
|
-
}
|
|
519
|
-
message.records = reader.uint32();
|
|
520
|
-
continue;
|
|
521
|
-
}
|
|
522
|
-
case 3: {
|
|
523
|
-
if (tag !== 26) {
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
message.start = TripPoint.decode(reader, reader.uint32());
|
|
527
|
-
continue;
|
|
528
|
-
}
|
|
529
|
-
case 4: {
|
|
530
|
-
if (tag !== 34) {
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
message.finish = TripPoint.decode(reader, reader.uint32());
|
|
534
|
-
continue;
|
|
535
|
-
}
|
|
536
|
-
case 5: {
|
|
537
|
-
if (tag !== 42) {
|
|
538
|
-
break;
|
|
539
|
-
}
|
|
540
|
-
const entry5 = TripCompact_GreenDrivingEntry.decode(reader, reader.uint32());
|
|
541
|
-
if (entry5.value !== undefined) {
|
|
542
|
-
message.greenDriving[entry5.key] = entry5.value;
|
|
543
|
-
}
|
|
544
|
-
continue;
|
|
545
|
-
}
|
|
546
|
-
case 6: {
|
|
547
|
-
if (tag !== 50) {
|
|
548
|
-
break;
|
|
549
|
-
}
|
|
550
|
-
const entry6 = TripCompact_TemperatureEntry.decode(reader, reader.uint32());
|
|
551
|
-
if (entry6.value !== undefined) {
|
|
552
|
-
message.temperature[entry6.key] = entry6.value;
|
|
553
|
-
}
|
|
554
|
-
continue;
|
|
555
|
-
}
|
|
556
|
-
case 7: {
|
|
557
|
-
if (tag !== 58) {
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
const entry7 = TripCompact_HumidityEntry.decode(reader, reader.uint32());
|
|
561
|
-
if (entry7.value !== undefined) {
|
|
562
|
-
message.humidity[entry7.key] = entry7.value;
|
|
563
|
-
}
|
|
564
|
-
continue;
|
|
565
|
-
}
|
|
566
|
-
case 8: {
|
|
567
|
-
if (tag !== 64) {
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
message.iButton = Long.fromString(reader.uint64().toString(), true);
|
|
571
|
-
continue;
|
|
572
|
-
}
|
|
573
|
-
case 9: {
|
|
574
|
-
if (tag !== 72) {
|
|
575
|
-
break;
|
|
576
|
-
}
|
|
577
|
-
message.ignition = reader.uint32();
|
|
578
|
-
continue;
|
|
579
|
-
}
|
|
580
|
-
case 10: {
|
|
581
|
-
if (tag !== 80) {
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
message.doorOpened = reader.uint32();
|
|
585
|
-
continue;
|
|
586
|
-
}
|
|
587
|
-
case 11: {
|
|
588
|
-
if (tag !== 88) {
|
|
589
|
-
break;
|
|
590
|
-
}
|
|
591
|
-
message.fuelUsed = reader.uint32();
|
|
592
|
-
continue;
|
|
593
|
-
}
|
|
594
|
-
case 12: {
|
|
595
|
-
if (tag !== 96) {
|
|
596
|
-
break;
|
|
597
|
-
}
|
|
598
|
-
message.fuelRate = reader.uint32();
|
|
599
|
-
continue;
|
|
600
|
-
}
|
|
601
|
-
case 13: {
|
|
602
|
-
if (tag !== 104) {
|
|
603
|
-
break;
|
|
604
|
-
}
|
|
605
|
-
message.engineRpm = reader.uint32();
|
|
606
|
-
continue;
|
|
607
|
-
}
|
|
608
|
-
case 14: {
|
|
609
|
-
if (tag !== 112) {
|
|
610
|
-
break;
|
|
611
|
-
}
|
|
612
|
-
message.engineLoad = reader.uint32();
|
|
613
|
-
continue;
|
|
614
|
-
}
|
|
615
|
-
case 15: {
|
|
616
|
-
if (tag !== 122) {
|
|
617
|
-
break;
|
|
618
|
-
}
|
|
619
|
-
const entry15 = TripCompact_CrashesEntry.decode(reader, reader.uint32());
|
|
620
|
-
if (entry15.value !== undefined) {
|
|
621
|
-
message.crashes[entry15.key] = entry15.value;
|
|
622
|
-
}
|
|
623
|
-
continue;
|
|
624
|
-
}
|
|
625
|
-
case 16: {
|
|
626
|
-
if (tag !== 130) {
|
|
627
|
-
break;
|
|
628
|
-
}
|
|
629
|
-
const entry16 = TripCompact_SpeedsEntry.decode(reader, reader.uint32());
|
|
630
|
-
if (entry16.value !== undefined) {
|
|
631
|
-
message.speeds[entry16.key] = entry16.value;
|
|
632
|
-
}
|
|
633
|
-
continue;
|
|
634
|
-
}
|
|
635
|
-
case 17: {
|
|
636
|
-
if (tag === 136) {
|
|
637
|
-
message.points.push(Long.fromString(reader.uint64().toString(), true));
|
|
638
|
-
continue;
|
|
639
|
-
}
|
|
640
|
-
if (tag === 138) {
|
|
641
|
-
const end2 = reader.uint32() + reader.pos;
|
|
642
|
-
while (reader.pos < end2) {
|
|
643
|
-
message.points.push(Long.fromString(reader.uint64().toString(), true));
|
|
644
|
-
}
|
|
645
|
-
continue;
|
|
646
|
-
}
|
|
647
|
-
break;
|
|
648
|
-
}
|
|
649
|
-
case 18: {
|
|
650
|
-
if (tag !== 146) {
|
|
651
|
-
break;
|
|
652
|
-
}
|
|
653
|
-
message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
654
|
-
continue;
|
|
655
|
-
}
|
|
656
|
-
case 19: {
|
|
657
|
-
if (tag !== 154) {
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
message.finishedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
661
|
-
continue;
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
665
|
-
break;
|
|
666
|
-
}
|
|
667
|
-
reader.skip(tag & 7);
|
|
668
|
-
}
|
|
669
|
-
return message;
|
|
670
|
-
},
|
|
671
|
-
create(base) {
|
|
672
|
-
return TripCompact.fromPartial(base ?? {});
|
|
673
|
-
},
|
|
674
|
-
fromPartial(object) {
|
|
675
|
-
const message = createBaseTripCompact();
|
|
676
|
-
message.cost = object.cost ?? 0;
|
|
677
|
-
message.records = object.records ?? 0;
|
|
678
|
-
message.start = (object.start !== undefined && object.start !== null)
|
|
679
|
-
? TripPoint.fromPartial(object.start)
|
|
680
|
-
: undefined;
|
|
681
|
-
message.finish = (object.finish !== undefined && object.finish !== null)
|
|
682
|
-
? TripPoint.fromPartial(object.finish)
|
|
683
|
-
: undefined;
|
|
684
|
-
message.greenDriving = globalThis.Object.entries(object.greenDriving ?? {}).reduce((acc, [key, value]) => {
|
|
685
|
-
if (value !== undefined) {
|
|
686
|
-
acc[globalThis.Number(key)] = globalThis.Number(value);
|
|
687
|
-
}
|
|
688
|
-
return acc;
|
|
689
|
-
}, {});
|
|
690
|
-
message.temperature = globalThis.Object.entries(object.temperature ?? {}).reduce((acc, [key, value]) => {
|
|
691
|
-
if (value !== undefined) {
|
|
692
|
-
acc[globalThis.Number(key)] = globalThis.Number(value);
|
|
693
|
-
}
|
|
694
|
-
return acc;
|
|
695
|
-
}, {});
|
|
696
|
-
message.humidity = globalThis.Object.entries(object.humidity ?? {}).reduce((acc, [key, value]) => {
|
|
697
|
-
if (value !== undefined) {
|
|
698
|
-
acc[globalThis.Number(key)] = globalThis.Number(value);
|
|
699
|
-
}
|
|
700
|
-
return acc;
|
|
701
|
-
}, {});
|
|
702
|
-
message.iButton = (object.iButton !== undefined && object.iButton !== null)
|
|
703
|
-
? Long.fromValue(object.iButton)
|
|
704
|
-
: undefined;
|
|
705
|
-
message.ignition = object.ignition ?? undefined;
|
|
706
|
-
message.doorOpened = object.doorOpened ?? undefined;
|
|
707
|
-
message.fuelUsed = object.fuelUsed ?? undefined;
|
|
708
|
-
message.fuelRate = object.fuelRate ?? undefined;
|
|
709
|
-
message.engineRpm = object.engineRpm ?? undefined;
|
|
710
|
-
message.engineLoad = object.engineLoad ?? undefined;
|
|
711
|
-
message.crashes = globalThis.Object.entries(object.crashes ?? {}).reduce((acc, [key, value]) => {
|
|
712
|
-
if (value !== undefined) {
|
|
713
|
-
acc[globalThis.Number(key)] = globalThis.Number(value);
|
|
714
|
-
}
|
|
715
|
-
return acc;
|
|
716
|
-
}, {});
|
|
717
|
-
message.speeds = globalThis.Object.entries(object.speeds ?? {}).reduce((acc, [key, value]) => {
|
|
718
|
-
if (value !== undefined) {
|
|
719
|
-
acc[globalThis.Number(key)] = TripDurationStat.fromPartial(value);
|
|
720
|
-
}
|
|
721
|
-
return acc;
|
|
722
|
-
}, {});
|
|
723
|
-
message.points = object.points?.map((e) => Long.fromValue(e)) || [];
|
|
724
|
-
message.startedAt = object.startedAt ?? undefined;
|
|
725
|
-
message.finishedAt = object.finishedAt ?? undefined;
|
|
726
|
-
return message;
|
|
727
|
-
},
|
|
728
|
-
};
|
|
729
|
-
function createBaseTripCompact_GreenDrivingEntry() {
|
|
730
|
-
return { key: 0, value: 0 };
|
|
731
|
-
}
|
|
732
|
-
export const TripCompact_GreenDrivingEntry = {
|
|
733
|
-
encode(message, writer = new BinaryWriter()) {
|
|
734
|
-
if (message.key !== 0) {
|
|
735
|
-
writer.uint32(8).uint32(message.key);
|
|
736
|
-
}
|
|
737
|
-
if (message.value !== 0) {
|
|
738
|
-
writer.uint32(16).uint32(message.value);
|
|
739
|
-
}
|
|
740
|
-
return writer;
|
|
741
|
-
},
|
|
742
|
-
decode(input, length) {
|
|
743
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
744
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
745
|
-
const message = createBaseTripCompact_GreenDrivingEntry();
|
|
746
|
-
while (reader.pos < end) {
|
|
747
|
-
const tag = reader.uint32();
|
|
748
|
-
switch (tag >>> 3) {
|
|
749
|
-
case 1: {
|
|
750
|
-
if (tag !== 8) {
|
|
751
|
-
break;
|
|
752
|
-
}
|
|
753
|
-
message.key = reader.uint32();
|
|
754
|
-
continue;
|
|
755
|
-
}
|
|
756
|
-
case 2: {
|
|
757
|
-
if (tag !== 16) {
|
|
758
|
-
break;
|
|
759
|
-
}
|
|
760
|
-
message.value = reader.uint32();
|
|
761
|
-
continue;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
reader.skip(tag & 7);
|
|
768
|
-
}
|
|
769
|
-
return message;
|
|
770
|
-
},
|
|
771
|
-
create(base) {
|
|
772
|
-
return TripCompact_GreenDrivingEntry.fromPartial(base ?? {});
|
|
773
|
-
},
|
|
774
|
-
fromPartial(object) {
|
|
775
|
-
const message = createBaseTripCompact_GreenDrivingEntry();
|
|
776
|
-
message.key = object.key ?? 0;
|
|
777
|
-
message.value = object.value ?? 0;
|
|
778
|
-
return message;
|
|
779
|
-
},
|
|
780
|
-
};
|
|
781
|
-
function createBaseTripCompact_TemperatureEntry() {
|
|
782
|
-
return { key: 0, value: 0 };
|
|
783
|
-
}
|
|
784
|
-
export const TripCompact_TemperatureEntry = {
|
|
785
|
-
encode(message, writer = new BinaryWriter()) {
|
|
786
|
-
if (message.key !== 0) {
|
|
787
|
-
writer.uint32(8).uint32(message.key);
|
|
788
|
-
}
|
|
789
|
-
if (message.value !== 0) {
|
|
790
|
-
writer.uint32(16).sint32(message.value);
|
|
791
|
-
}
|
|
792
|
-
return writer;
|
|
793
|
-
},
|
|
794
|
-
decode(input, length) {
|
|
795
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
796
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
797
|
-
const message = createBaseTripCompact_TemperatureEntry();
|
|
798
|
-
while (reader.pos < end) {
|
|
799
|
-
const tag = reader.uint32();
|
|
800
|
-
switch (tag >>> 3) {
|
|
801
|
-
case 1: {
|
|
802
|
-
if (tag !== 8) {
|
|
803
|
-
break;
|
|
804
|
-
}
|
|
805
|
-
message.key = reader.uint32();
|
|
806
|
-
continue;
|
|
807
|
-
}
|
|
808
|
-
case 2: {
|
|
809
|
-
if (tag !== 16) {
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
message.value = reader.sint32();
|
|
813
|
-
continue;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
reader.skip(tag & 7);
|
|
820
|
-
}
|
|
821
|
-
return message;
|
|
822
|
-
},
|
|
823
|
-
create(base) {
|
|
824
|
-
return TripCompact_TemperatureEntry.fromPartial(base ?? {});
|
|
825
|
-
},
|
|
826
|
-
fromPartial(object) {
|
|
827
|
-
const message = createBaseTripCompact_TemperatureEntry();
|
|
828
|
-
message.key = object.key ?? 0;
|
|
829
|
-
message.value = object.value ?? 0;
|
|
830
|
-
return message;
|
|
831
|
-
},
|
|
832
|
-
};
|
|
833
|
-
function createBaseTripCompact_HumidityEntry() {
|
|
834
|
-
return { key: 0, value: 0 };
|
|
835
|
-
}
|
|
836
|
-
export const TripCompact_HumidityEntry = {
|
|
837
|
-
encode(message, writer = new BinaryWriter()) {
|
|
838
|
-
if (message.key !== 0) {
|
|
839
|
-
writer.uint32(8).uint32(message.key);
|
|
840
|
-
}
|
|
841
|
-
if (message.value !== 0) {
|
|
842
|
-
writer.uint32(16).uint32(message.value);
|
|
843
|
-
}
|
|
844
|
-
return writer;
|
|
845
|
-
},
|
|
846
|
-
decode(input, length) {
|
|
847
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
848
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
849
|
-
const message = createBaseTripCompact_HumidityEntry();
|
|
850
|
-
while (reader.pos < end) {
|
|
851
|
-
const tag = reader.uint32();
|
|
852
|
-
switch (tag >>> 3) {
|
|
853
|
-
case 1: {
|
|
854
|
-
if (tag !== 8) {
|
|
855
|
-
break;
|
|
856
|
-
}
|
|
857
|
-
message.key = reader.uint32();
|
|
858
|
-
continue;
|
|
859
|
-
}
|
|
860
|
-
case 2: {
|
|
861
|
-
if (tag !== 16) {
|
|
862
|
-
break;
|
|
863
|
-
}
|
|
864
|
-
message.value = reader.uint32();
|
|
865
|
-
continue;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
869
|
-
break;
|
|
870
|
-
}
|
|
871
|
-
reader.skip(tag & 7);
|
|
872
|
-
}
|
|
873
|
-
return message;
|
|
874
|
-
},
|
|
875
|
-
create(base) {
|
|
876
|
-
return TripCompact_HumidityEntry.fromPartial(base ?? {});
|
|
877
|
-
},
|
|
878
|
-
fromPartial(object) {
|
|
879
|
-
const message = createBaseTripCompact_HumidityEntry();
|
|
880
|
-
message.key = object.key ?? 0;
|
|
881
|
-
message.value = object.value ?? 0;
|
|
882
|
-
return message;
|
|
883
|
-
},
|
|
884
|
-
};
|
|
885
|
-
function createBaseTripCompact_CrashesEntry() {
|
|
886
|
-
return { key: 0, value: 0 };
|
|
887
|
-
}
|
|
888
|
-
export const TripCompact_CrashesEntry = {
|
|
889
|
-
encode(message, writer = new BinaryWriter()) {
|
|
890
|
-
if (message.key !== 0) {
|
|
891
|
-
writer.uint32(8).uint32(message.key);
|
|
892
|
-
}
|
|
893
|
-
if (message.value !== 0) {
|
|
894
|
-
writer.uint32(16).uint32(message.value);
|
|
895
|
-
}
|
|
896
|
-
return writer;
|
|
897
|
-
},
|
|
898
|
-
decode(input, length) {
|
|
899
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
900
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
901
|
-
const message = createBaseTripCompact_CrashesEntry();
|
|
902
|
-
while (reader.pos < end) {
|
|
903
|
-
const tag = reader.uint32();
|
|
904
|
-
switch (tag >>> 3) {
|
|
905
|
-
case 1: {
|
|
906
|
-
if (tag !== 8) {
|
|
907
|
-
break;
|
|
908
|
-
}
|
|
909
|
-
message.key = reader.uint32();
|
|
910
|
-
continue;
|
|
911
|
-
}
|
|
912
|
-
case 2: {
|
|
913
|
-
if (tag !== 16) {
|
|
914
|
-
break;
|
|
915
|
-
}
|
|
916
|
-
message.value = reader.uint32();
|
|
917
|
-
continue;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
921
|
-
break;
|
|
922
|
-
}
|
|
923
|
-
reader.skip(tag & 7);
|
|
924
|
-
}
|
|
925
|
-
return message;
|
|
926
|
-
},
|
|
927
|
-
create(base) {
|
|
928
|
-
return TripCompact_CrashesEntry.fromPartial(base ?? {});
|
|
929
|
-
},
|
|
930
|
-
fromPartial(object) {
|
|
931
|
-
const message = createBaseTripCompact_CrashesEntry();
|
|
932
|
-
message.key = object.key ?? 0;
|
|
933
|
-
message.value = object.value ?? 0;
|
|
934
|
-
return message;
|
|
935
|
-
},
|
|
936
|
-
};
|
|
937
|
-
function createBaseTripCompact_SpeedsEntry() {
|
|
938
|
-
return { key: 0, value: undefined };
|
|
939
|
-
}
|
|
940
|
-
export const TripCompact_SpeedsEntry = {
|
|
941
|
-
encode(message, writer = new BinaryWriter()) {
|
|
942
|
-
if (message.key !== 0) {
|
|
943
|
-
writer.uint32(8).uint32(message.key);
|
|
944
|
-
}
|
|
945
|
-
if (message.value !== undefined) {
|
|
946
|
-
TripDurationStat.encode(message.value, writer.uint32(18).fork()).join();
|
|
947
|
-
}
|
|
948
|
-
return writer;
|
|
949
|
-
},
|
|
950
|
-
decode(input, length) {
|
|
951
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
952
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
953
|
-
const message = createBaseTripCompact_SpeedsEntry();
|
|
954
|
-
while (reader.pos < end) {
|
|
955
|
-
const tag = reader.uint32();
|
|
956
|
-
switch (tag >>> 3) {
|
|
957
|
-
case 1: {
|
|
958
|
-
if (tag !== 8) {
|
|
959
|
-
break;
|
|
960
|
-
}
|
|
961
|
-
message.key = reader.uint32();
|
|
962
|
-
continue;
|
|
963
|
-
}
|
|
964
|
-
case 2: {
|
|
965
|
-
if (tag !== 18) {
|
|
966
|
-
break;
|
|
967
|
-
}
|
|
968
|
-
message.value = TripDurationStat.decode(reader, reader.uint32());
|
|
969
|
-
continue;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
973
|
-
break;
|
|
974
|
-
}
|
|
975
|
-
reader.skip(tag & 7);
|
|
976
|
-
}
|
|
977
|
-
return message;
|
|
978
|
-
},
|
|
979
|
-
create(base) {
|
|
980
|
-
return TripCompact_SpeedsEntry.fromPartial(base ?? {});
|
|
981
|
-
},
|
|
982
|
-
fromPartial(object) {
|
|
983
|
-
const message = createBaseTripCompact_SpeedsEntry();
|
|
984
|
-
message.key = object.key ?? 0;
|
|
985
|
-
message.value = (object.value !== undefined && object.value !== null)
|
|
986
|
-
? TripDurationStat.fromPartial(object.value)
|
|
987
|
-
: undefined;
|
|
988
|
-
return message;
|
|
989
|
-
},
|
|
990
|
-
};
|
|
991
|
-
function createBaseTripPoint() {
|
|
992
|
-
return { latitude: 0, longitude: 0, angle: 0 };
|
|
993
|
-
}
|
|
994
|
-
export const TripPoint = {
|
|
995
|
-
encode(message, writer = new BinaryWriter()) {
|
|
996
|
-
if (message.latitude !== 0) {
|
|
997
|
-
writer.uint32(13).float(message.latitude);
|
|
998
|
-
}
|
|
999
|
-
if (message.longitude !== 0) {
|
|
1000
|
-
writer.uint32(21).float(message.longitude);
|
|
1001
|
-
}
|
|
1002
|
-
if (message.angle !== 0) {
|
|
1003
|
-
writer.uint32(24).uint32(message.angle);
|
|
1004
|
-
}
|
|
1005
|
-
return writer;
|
|
1006
|
-
},
|
|
1007
|
-
decode(input, length) {
|
|
1008
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1009
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1010
|
-
const message = createBaseTripPoint();
|
|
1011
|
-
while (reader.pos < end) {
|
|
1012
|
-
const tag = reader.uint32();
|
|
1013
|
-
switch (tag >>> 3) {
|
|
1014
|
-
case 1: {
|
|
1015
|
-
if (tag !== 13) {
|
|
1016
|
-
break;
|
|
1017
|
-
}
|
|
1018
|
-
message.latitude = reader.float();
|
|
1019
|
-
continue;
|
|
1020
|
-
}
|
|
1021
|
-
case 2: {
|
|
1022
|
-
if (tag !== 21) {
|
|
1023
|
-
break;
|
|
1024
|
-
}
|
|
1025
|
-
message.longitude = reader.float();
|
|
1026
|
-
continue;
|
|
1027
|
-
}
|
|
1028
|
-
case 3: {
|
|
1029
|
-
if (tag !== 24) {
|
|
1030
|
-
break;
|
|
1031
|
-
}
|
|
1032
|
-
message.angle = reader.uint32();
|
|
1033
|
-
continue;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1037
|
-
break;
|
|
1038
|
-
}
|
|
1039
|
-
reader.skip(tag & 7);
|
|
1040
|
-
}
|
|
1041
|
-
return message;
|
|
1042
|
-
},
|
|
1043
|
-
create(base) {
|
|
1044
|
-
return TripPoint.fromPartial(base ?? {});
|
|
1045
|
-
},
|
|
1046
|
-
fromPartial(object) {
|
|
1047
|
-
const message = createBaseTripPoint();
|
|
1048
|
-
message.latitude = object.latitude ?? 0;
|
|
1049
|
-
message.longitude = object.longitude ?? 0;
|
|
1050
|
-
message.angle = object.angle ?? 0;
|
|
1051
|
-
return message;
|
|
1052
|
-
},
|
|
1053
|
-
};
|
|
1054
|
-
function createBaseTripDurationStat() {
|
|
1055
|
-
return { duration: 0, mileage: 0 };
|
|
1056
|
-
}
|
|
1057
|
-
export const TripDurationStat = {
|
|
1058
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1059
|
-
if (message.duration !== 0) {
|
|
1060
|
-
writer.uint32(8).uint32(message.duration);
|
|
1061
|
-
}
|
|
1062
|
-
if (message.mileage !== 0) {
|
|
1063
|
-
writer.uint32(16).uint32(message.mileage);
|
|
1064
|
-
}
|
|
1065
|
-
return writer;
|
|
1066
|
-
},
|
|
1067
|
-
decode(input, length) {
|
|
1068
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1069
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1070
|
-
const message = createBaseTripDurationStat();
|
|
1071
|
-
while (reader.pos < end) {
|
|
1072
|
-
const tag = reader.uint32();
|
|
1073
|
-
switch (tag >>> 3) {
|
|
1074
|
-
case 1: {
|
|
1075
|
-
if (tag !== 8) {
|
|
1076
|
-
break;
|
|
1077
|
-
}
|
|
1078
|
-
message.duration = reader.uint32();
|
|
1079
|
-
continue;
|
|
1080
|
-
}
|
|
1081
|
-
case 2: {
|
|
1082
|
-
if (tag !== 16) {
|
|
1083
|
-
break;
|
|
1084
|
-
}
|
|
1085
|
-
message.mileage = reader.uint32();
|
|
1086
|
-
continue;
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1090
|
-
break;
|
|
1091
|
-
}
|
|
1092
|
-
reader.skip(tag & 7);
|
|
1093
|
-
}
|
|
1094
|
-
return message;
|
|
1095
|
-
},
|
|
1096
|
-
create(base) {
|
|
1097
|
-
return TripDurationStat.fromPartial(base ?? {});
|
|
1098
|
-
},
|
|
1099
|
-
fromPartial(object) {
|
|
1100
|
-
const message = createBaseTripDurationStat();
|
|
1101
|
-
message.duration = object.duration ?? 0;
|
|
1102
|
-
message.mileage = object.mileage ?? 0;
|
|
1103
|
-
return message;
|
|
1104
|
-
},
|
|
1105
|
-
};
|
|
1106
|
-
function createBaseFusionTrip() {
|
|
1107
|
-
return {
|
|
1108
|
-
id: Long.UZERO,
|
|
1109
|
-
deviceId: Long.UZERO,
|
|
1110
|
-
mileage: 0,
|
|
1111
|
-
idling: 0,
|
|
1112
|
-
parking: 0,
|
|
1113
|
-
moving: 0,
|
|
1114
|
-
towing: 0,
|
|
1115
|
-
speedTotal: 0,
|
|
1116
|
-
speedSum: 0,
|
|
1117
|
-
speedMax: 0,
|
|
1118
|
-
records: 0,
|
|
1119
|
-
harshAcceleration: 0,
|
|
1120
|
-
harshBreak: 0,
|
|
1121
|
-
harshCorner: 0,
|
|
1122
|
-
minTemp01: undefined,
|
|
1123
|
-
maxTemp01: undefined,
|
|
1124
|
-
minTemp02: undefined,
|
|
1125
|
-
maxTemp02: undefined,
|
|
1126
|
-
minTemp03: undefined,
|
|
1127
|
-
maxTemp03: undefined,
|
|
1128
|
-
minTemp04: undefined,
|
|
1129
|
-
maxTemp04: undefined,
|
|
1130
|
-
minHumidity: undefined,
|
|
1131
|
-
maxHumidity: undefined,
|
|
1132
|
-
startLat: undefined,
|
|
1133
|
-
startLng: undefined,
|
|
1134
|
-
finishLat: undefined,
|
|
1135
|
-
finishLng: undefined,
|
|
1136
|
-
startedAt: undefined,
|
|
1137
|
-
finishedAt: undefined,
|
|
1138
|
-
createdAt: undefined,
|
|
1139
|
-
updatedAt: undefined,
|
|
1140
|
-
logs: "",
|
|
1141
|
-
fug: undefined,
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
export const FusionTrip = {
|
|
1145
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1146
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1147
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
1148
|
-
}
|
|
1149
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
1150
|
-
writer.uint32(16).uint64(message.deviceId.toString());
|
|
1151
|
-
}
|
|
1152
|
-
if (message.mileage !== 0) {
|
|
1153
|
-
writer.uint32(24).uint32(message.mileage);
|
|
1154
|
-
}
|
|
1155
|
-
if (message.idling !== 0) {
|
|
1156
|
-
writer.uint32(32).uint32(message.idling);
|
|
1157
|
-
}
|
|
1158
|
-
if (message.parking !== 0) {
|
|
1159
|
-
writer.uint32(40).uint32(message.parking);
|
|
1160
|
-
}
|
|
1161
|
-
if (message.moving !== 0) {
|
|
1162
|
-
writer.uint32(48).uint32(message.moving);
|
|
1163
|
-
}
|
|
1164
|
-
if (message.towing !== 0) {
|
|
1165
|
-
writer.uint32(56).uint32(message.towing);
|
|
1166
|
-
}
|
|
1167
|
-
if (message.speedTotal !== 0) {
|
|
1168
|
-
writer.uint32(64).uint32(message.speedTotal);
|
|
1169
|
-
}
|
|
1170
|
-
if (message.speedSum !== 0) {
|
|
1171
|
-
writer.uint32(72).uint32(message.speedSum);
|
|
1172
|
-
}
|
|
1173
|
-
if (message.speedMax !== 0) {
|
|
1174
|
-
writer.uint32(80).uint32(message.speedMax);
|
|
1175
|
-
}
|
|
1176
|
-
if (message.records !== 0) {
|
|
1177
|
-
writer.uint32(88).uint32(message.records);
|
|
1178
|
-
}
|
|
1179
|
-
if (message.harshAcceleration !== 0) {
|
|
1180
|
-
writer.uint32(96).uint32(message.harshAcceleration);
|
|
1181
|
-
}
|
|
1182
|
-
if (message.harshBreak !== 0) {
|
|
1183
|
-
writer.uint32(104).uint32(message.harshBreak);
|
|
1184
|
-
}
|
|
1185
|
-
if (message.harshCorner !== 0) {
|
|
1186
|
-
writer.uint32(112).uint32(message.harshCorner);
|
|
1187
|
-
}
|
|
1188
|
-
if (message.minTemp01 !== undefined) {
|
|
1189
|
-
writer.uint32(120).sint32(message.minTemp01);
|
|
1190
|
-
}
|
|
1191
|
-
if (message.maxTemp01 !== undefined) {
|
|
1192
|
-
writer.uint32(128).sint32(message.maxTemp01);
|
|
1193
|
-
}
|
|
1194
|
-
if (message.minTemp02 !== undefined) {
|
|
1195
|
-
writer.uint32(136).sint32(message.minTemp02);
|
|
1196
|
-
}
|
|
1197
|
-
if (message.maxTemp02 !== undefined) {
|
|
1198
|
-
writer.uint32(144).sint32(message.maxTemp02);
|
|
1199
|
-
}
|
|
1200
|
-
if (message.minTemp03 !== undefined) {
|
|
1201
|
-
writer.uint32(152).sint32(message.minTemp03);
|
|
1202
|
-
}
|
|
1203
|
-
if (message.maxTemp03 !== undefined) {
|
|
1204
|
-
writer.uint32(160).sint32(message.maxTemp03);
|
|
1205
|
-
}
|
|
1206
|
-
if (message.minTemp04 !== undefined) {
|
|
1207
|
-
writer.uint32(168).sint32(message.minTemp04);
|
|
1208
|
-
}
|
|
1209
|
-
if (message.maxTemp04 !== undefined) {
|
|
1210
|
-
writer.uint32(176).sint32(message.maxTemp04);
|
|
1211
|
-
}
|
|
1212
|
-
if (message.minHumidity !== undefined) {
|
|
1213
|
-
writer.uint32(184).uint32(message.minHumidity);
|
|
1214
|
-
}
|
|
1215
|
-
if (message.maxHumidity !== undefined) {
|
|
1216
|
-
writer.uint32(192).uint32(message.maxHumidity);
|
|
1217
|
-
}
|
|
1218
|
-
if (message.startLat !== undefined) {
|
|
1219
|
-
writer.uint32(205).float(message.startLat);
|
|
1220
|
-
}
|
|
1221
|
-
if (message.startLng !== undefined) {
|
|
1222
|
-
writer.uint32(213).float(message.startLng);
|
|
1223
|
-
}
|
|
1224
|
-
if (message.finishLat !== undefined) {
|
|
1225
|
-
writer.uint32(221).float(message.finishLat);
|
|
1226
|
-
}
|
|
1227
|
-
if (message.finishLng !== undefined) {
|
|
1228
|
-
writer.uint32(229).float(message.finishLng);
|
|
1229
|
-
}
|
|
1230
|
-
if (message.startedAt !== undefined) {
|
|
1231
|
-
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(234).fork()).join();
|
|
1232
|
-
}
|
|
1233
|
-
if (message.finishedAt !== undefined) {
|
|
1234
|
-
Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(242).fork()).join();
|
|
1235
|
-
}
|
|
1236
|
-
if (message.createdAt !== undefined) {
|
|
1237
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(250).fork()).join();
|
|
1238
|
-
}
|
|
1239
|
-
if (message.updatedAt !== undefined) {
|
|
1240
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(258).fork()).join();
|
|
1241
|
-
}
|
|
1242
|
-
if (message.logs !== "") {
|
|
1243
|
-
writer.uint32(266).string(message.logs);
|
|
1244
|
-
}
|
|
1245
|
-
if (message.fug !== undefined) {
|
|
1246
|
-
writer.uint32(272).uint32(message.fug);
|
|
1247
|
-
}
|
|
1248
|
-
return writer;
|
|
1249
|
-
},
|
|
1250
|
-
decode(input, length) {
|
|
1251
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1252
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1253
|
-
const message = createBaseFusionTrip();
|
|
1254
|
-
while (reader.pos < end) {
|
|
1255
|
-
const tag = reader.uint32();
|
|
1256
|
-
switch (tag >>> 3) {
|
|
1257
|
-
case 1: {
|
|
1258
|
-
if (tag !== 8) {
|
|
1259
|
-
break;
|
|
1260
|
-
}
|
|
1261
|
-
message.id = Long.fromString(reader.uint64().toString(), true);
|
|
1262
|
-
continue;
|
|
1263
|
-
}
|
|
1264
|
-
case 2: {
|
|
1265
|
-
if (tag !== 16) {
|
|
1266
|
-
break;
|
|
1267
|
-
}
|
|
1268
|
-
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
1269
|
-
continue;
|
|
1270
|
-
}
|
|
1271
|
-
case 3: {
|
|
1272
|
-
if (tag !== 24) {
|
|
1273
|
-
break;
|
|
1274
|
-
}
|
|
1275
|
-
message.mileage = reader.uint32();
|
|
1276
|
-
continue;
|
|
1277
|
-
}
|
|
1278
|
-
case 4: {
|
|
1279
|
-
if (tag !== 32) {
|
|
1280
|
-
break;
|
|
1281
|
-
}
|
|
1282
|
-
message.idling = reader.uint32();
|
|
1283
|
-
continue;
|
|
1284
|
-
}
|
|
1285
|
-
case 5: {
|
|
1286
|
-
if (tag !== 40) {
|
|
1287
|
-
break;
|
|
1288
|
-
}
|
|
1289
|
-
message.parking = reader.uint32();
|
|
1290
|
-
continue;
|
|
1291
|
-
}
|
|
1292
|
-
case 6: {
|
|
1293
|
-
if (tag !== 48) {
|
|
1294
|
-
break;
|
|
1295
|
-
}
|
|
1296
|
-
message.moving = reader.uint32();
|
|
1297
|
-
continue;
|
|
1298
|
-
}
|
|
1299
|
-
case 7: {
|
|
1300
|
-
if (tag !== 56) {
|
|
1301
|
-
break;
|
|
1302
|
-
}
|
|
1303
|
-
message.towing = reader.uint32();
|
|
1304
|
-
continue;
|
|
1305
|
-
}
|
|
1306
|
-
case 8: {
|
|
1307
|
-
if (tag !== 64) {
|
|
1308
|
-
break;
|
|
1309
|
-
}
|
|
1310
|
-
message.speedTotal = reader.uint32();
|
|
1311
|
-
continue;
|
|
1312
|
-
}
|
|
1313
|
-
case 9: {
|
|
1314
|
-
if (tag !== 72) {
|
|
1315
|
-
break;
|
|
1316
|
-
}
|
|
1317
|
-
message.speedSum = reader.uint32();
|
|
1318
|
-
continue;
|
|
1319
|
-
}
|
|
1320
|
-
case 10: {
|
|
1321
|
-
if (tag !== 80) {
|
|
1322
|
-
break;
|
|
1323
|
-
}
|
|
1324
|
-
message.speedMax = reader.uint32();
|
|
1325
|
-
continue;
|
|
1326
|
-
}
|
|
1327
|
-
case 11: {
|
|
1328
|
-
if (tag !== 88) {
|
|
1329
|
-
break;
|
|
1330
|
-
}
|
|
1331
|
-
message.records = reader.uint32();
|
|
1332
|
-
continue;
|
|
1333
|
-
}
|
|
1334
|
-
case 12: {
|
|
1335
|
-
if (tag !== 96) {
|
|
1336
|
-
break;
|
|
1337
|
-
}
|
|
1338
|
-
message.harshAcceleration = reader.uint32();
|
|
1339
|
-
continue;
|
|
1340
|
-
}
|
|
1341
|
-
case 13: {
|
|
1342
|
-
if (tag !== 104) {
|
|
1343
|
-
break;
|
|
1344
|
-
}
|
|
1345
|
-
message.harshBreak = reader.uint32();
|
|
1346
|
-
continue;
|
|
1347
|
-
}
|
|
1348
|
-
case 14: {
|
|
1349
|
-
if (tag !== 112) {
|
|
1350
|
-
break;
|
|
1351
|
-
}
|
|
1352
|
-
message.harshCorner = reader.uint32();
|
|
1353
|
-
continue;
|
|
1354
|
-
}
|
|
1355
|
-
case 15: {
|
|
1356
|
-
if (tag !== 120) {
|
|
1357
|
-
break;
|
|
1358
|
-
}
|
|
1359
|
-
message.minTemp01 = reader.sint32();
|
|
1360
|
-
continue;
|
|
1361
|
-
}
|
|
1362
|
-
case 16: {
|
|
1363
|
-
if (tag !== 128) {
|
|
1364
|
-
break;
|
|
1365
|
-
}
|
|
1366
|
-
message.maxTemp01 = reader.sint32();
|
|
1367
|
-
continue;
|
|
1368
|
-
}
|
|
1369
|
-
case 17: {
|
|
1370
|
-
if (tag !== 136) {
|
|
1371
|
-
break;
|
|
1372
|
-
}
|
|
1373
|
-
message.minTemp02 = reader.sint32();
|
|
1374
|
-
continue;
|
|
1375
|
-
}
|
|
1376
|
-
case 18: {
|
|
1377
|
-
if (tag !== 144) {
|
|
1378
|
-
break;
|
|
1379
|
-
}
|
|
1380
|
-
message.maxTemp02 = reader.sint32();
|
|
1381
|
-
continue;
|
|
1382
|
-
}
|
|
1383
|
-
case 19: {
|
|
1384
|
-
if (tag !== 152) {
|
|
1385
|
-
break;
|
|
1386
|
-
}
|
|
1387
|
-
message.minTemp03 = reader.sint32();
|
|
1388
|
-
continue;
|
|
1389
|
-
}
|
|
1390
|
-
case 20: {
|
|
1391
|
-
if (tag !== 160) {
|
|
1392
|
-
break;
|
|
1393
|
-
}
|
|
1394
|
-
message.maxTemp03 = reader.sint32();
|
|
1395
|
-
continue;
|
|
1396
|
-
}
|
|
1397
|
-
case 21: {
|
|
1398
|
-
if (tag !== 168) {
|
|
1399
|
-
break;
|
|
1400
|
-
}
|
|
1401
|
-
message.minTemp04 = reader.sint32();
|
|
1402
|
-
continue;
|
|
1403
|
-
}
|
|
1404
|
-
case 22: {
|
|
1405
|
-
if (tag !== 176) {
|
|
1406
|
-
break;
|
|
1407
|
-
}
|
|
1408
|
-
message.maxTemp04 = reader.sint32();
|
|
1409
|
-
continue;
|
|
1410
|
-
}
|
|
1411
|
-
case 23: {
|
|
1412
|
-
if (tag !== 184) {
|
|
1413
|
-
break;
|
|
1414
|
-
}
|
|
1415
|
-
message.minHumidity = reader.uint32();
|
|
1416
|
-
continue;
|
|
1417
|
-
}
|
|
1418
|
-
case 24: {
|
|
1419
|
-
if (tag !== 192) {
|
|
1420
|
-
break;
|
|
1421
|
-
}
|
|
1422
|
-
message.maxHumidity = reader.uint32();
|
|
1423
|
-
continue;
|
|
1424
|
-
}
|
|
1425
|
-
case 25: {
|
|
1426
|
-
if (tag !== 205) {
|
|
1427
|
-
break;
|
|
1428
|
-
}
|
|
1429
|
-
message.startLat = reader.float();
|
|
1430
|
-
continue;
|
|
1431
|
-
}
|
|
1432
|
-
case 26: {
|
|
1433
|
-
if (tag !== 213) {
|
|
1434
|
-
break;
|
|
1435
|
-
}
|
|
1436
|
-
message.startLng = reader.float();
|
|
1437
|
-
continue;
|
|
1438
|
-
}
|
|
1439
|
-
case 27: {
|
|
1440
|
-
if (tag !== 221) {
|
|
1441
|
-
break;
|
|
1442
|
-
}
|
|
1443
|
-
message.finishLat = reader.float();
|
|
1444
|
-
continue;
|
|
1445
|
-
}
|
|
1446
|
-
case 28: {
|
|
1447
|
-
if (tag !== 229) {
|
|
1448
|
-
break;
|
|
1449
|
-
}
|
|
1450
|
-
message.finishLng = reader.float();
|
|
1451
|
-
continue;
|
|
1452
|
-
}
|
|
1453
|
-
case 29: {
|
|
1454
|
-
if (tag !== 234) {
|
|
1455
|
-
break;
|
|
1456
|
-
}
|
|
1457
|
-
message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1458
|
-
continue;
|
|
1459
|
-
}
|
|
1460
|
-
case 30: {
|
|
1461
|
-
if (tag !== 242) {
|
|
1462
|
-
break;
|
|
1463
|
-
}
|
|
1464
|
-
message.finishedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1465
|
-
continue;
|
|
1466
|
-
}
|
|
1467
|
-
case 31: {
|
|
1468
|
-
if (tag !== 250) {
|
|
1469
|
-
break;
|
|
1470
|
-
}
|
|
1471
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1472
|
-
continue;
|
|
1473
|
-
}
|
|
1474
|
-
case 32: {
|
|
1475
|
-
if (tag !== 258) {
|
|
1476
|
-
break;
|
|
1477
|
-
}
|
|
1478
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1479
|
-
continue;
|
|
1480
|
-
}
|
|
1481
|
-
case 33: {
|
|
1482
|
-
if (tag !== 266) {
|
|
1483
|
-
break;
|
|
1484
|
-
}
|
|
1485
|
-
message.logs = reader.string();
|
|
1486
|
-
continue;
|
|
1487
|
-
}
|
|
1488
|
-
case 34: {
|
|
1489
|
-
if (tag !== 272) {
|
|
1490
|
-
break;
|
|
1491
|
-
}
|
|
1492
|
-
message.fug = reader.uint32();
|
|
1493
|
-
continue;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1497
|
-
break;
|
|
1498
|
-
}
|
|
1499
|
-
reader.skip(tag & 7);
|
|
1500
|
-
}
|
|
1501
|
-
return message;
|
|
1502
|
-
},
|
|
1503
|
-
create(base) {
|
|
1504
|
-
return FusionTrip.fromPartial(base ?? {});
|
|
1505
|
-
},
|
|
1506
|
-
fromPartial(object) {
|
|
1507
|
-
const message = createBaseFusionTrip();
|
|
1508
|
-
message.id = (object.id !== undefined && object.id !== null) ? Long.fromValue(object.id) : Long.UZERO;
|
|
1509
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
1510
|
-
? Long.fromValue(object.deviceId)
|
|
1511
|
-
: Long.UZERO;
|
|
1512
|
-
message.mileage = object.mileage ?? 0;
|
|
1513
|
-
message.idling = object.idling ?? 0;
|
|
1514
|
-
message.parking = object.parking ?? 0;
|
|
1515
|
-
message.moving = object.moving ?? 0;
|
|
1516
|
-
message.towing = object.towing ?? 0;
|
|
1517
|
-
message.speedTotal = object.speedTotal ?? 0;
|
|
1518
|
-
message.speedSum = object.speedSum ?? 0;
|
|
1519
|
-
message.speedMax = object.speedMax ?? 0;
|
|
1520
|
-
message.records = object.records ?? 0;
|
|
1521
|
-
message.harshAcceleration = object.harshAcceleration ?? 0;
|
|
1522
|
-
message.harshBreak = object.harshBreak ?? 0;
|
|
1523
|
-
message.harshCorner = object.harshCorner ?? 0;
|
|
1524
|
-
message.minTemp01 = object.minTemp01 ?? undefined;
|
|
1525
|
-
message.maxTemp01 = object.maxTemp01 ?? undefined;
|
|
1526
|
-
message.minTemp02 = object.minTemp02 ?? undefined;
|
|
1527
|
-
message.maxTemp02 = object.maxTemp02 ?? undefined;
|
|
1528
|
-
message.minTemp03 = object.minTemp03 ?? undefined;
|
|
1529
|
-
message.maxTemp03 = object.maxTemp03 ?? undefined;
|
|
1530
|
-
message.minTemp04 = object.minTemp04 ?? undefined;
|
|
1531
|
-
message.maxTemp04 = object.maxTemp04 ?? undefined;
|
|
1532
|
-
message.minHumidity = object.minHumidity ?? undefined;
|
|
1533
|
-
message.maxHumidity = object.maxHumidity ?? undefined;
|
|
1534
|
-
message.startLat = object.startLat ?? undefined;
|
|
1535
|
-
message.startLng = object.startLng ?? undefined;
|
|
1536
|
-
message.finishLat = object.finishLat ?? undefined;
|
|
1537
|
-
message.finishLng = object.finishLng ?? undefined;
|
|
1538
|
-
message.startedAt = object.startedAt ?? undefined;
|
|
1539
|
-
message.finishedAt = object.finishedAt ?? undefined;
|
|
1540
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
1541
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
1542
|
-
message.logs = object.logs ?? "";
|
|
1543
|
-
message.fug = object.fug ?? undefined;
|
|
1544
|
-
return message;
|
|
1545
|
-
},
|
|
1546
|
-
};
|
|
1547
|
-
function createBaseTripTask() {
|
|
1548
|
-
return { eventType: 0, trip: undefined, fusion: undefined, additional: undefined };
|
|
1549
|
-
}
|
|
1550
|
-
export const TripTask = {
|
|
1551
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1552
|
-
if (message.eventType !== 0) {
|
|
1553
|
-
writer.uint32(8).int32(message.eventType);
|
|
1554
|
-
}
|
|
1555
|
-
if (message.trip !== undefined) {
|
|
1556
|
-
Trip.encode(message.trip, writer.uint32(18).fork()).join();
|
|
1557
|
-
}
|
|
1558
|
-
if (message.fusion !== undefined) {
|
|
1559
|
-
FusionTrip.encode(message.fusion, writer.uint32(42).fork()).join();
|
|
1560
|
-
}
|
|
1561
|
-
if (message.additional !== undefined) {
|
|
1562
|
-
writer.uint32(34).bytes(message.additional);
|
|
1563
|
-
}
|
|
1564
|
-
return writer;
|
|
1565
|
-
},
|
|
1566
|
-
decode(input, length) {
|
|
1567
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1568
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1569
|
-
const message = createBaseTripTask();
|
|
1570
|
-
while (reader.pos < end) {
|
|
1571
|
-
const tag = reader.uint32();
|
|
1572
|
-
switch (tag >>> 3) {
|
|
1573
|
-
case 1: {
|
|
1574
|
-
if (tag !== 8) {
|
|
1575
|
-
break;
|
|
1576
|
-
}
|
|
1577
|
-
message.eventType = reader.int32();
|
|
1578
|
-
continue;
|
|
1579
|
-
}
|
|
1580
|
-
case 2: {
|
|
1581
|
-
if (tag !== 18) {
|
|
1582
|
-
break;
|
|
1583
|
-
}
|
|
1584
|
-
message.trip = Trip.decode(reader, reader.uint32());
|
|
1585
|
-
continue;
|
|
1586
|
-
}
|
|
1587
|
-
case 5: {
|
|
1588
|
-
if (tag !== 42) {
|
|
1589
|
-
break;
|
|
1590
|
-
}
|
|
1591
|
-
message.fusion = FusionTrip.decode(reader, reader.uint32());
|
|
1592
|
-
continue;
|
|
1593
|
-
}
|
|
1594
|
-
case 4: {
|
|
1595
|
-
if (tag !== 34) {
|
|
1596
|
-
break;
|
|
1597
|
-
}
|
|
1598
|
-
message.additional = reader.bytes();
|
|
1599
|
-
continue;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1603
|
-
break;
|
|
1604
|
-
}
|
|
1605
|
-
reader.skip(tag & 7);
|
|
1606
|
-
}
|
|
1607
|
-
return message;
|
|
1608
|
-
},
|
|
1609
|
-
create(base) {
|
|
1610
|
-
return TripTask.fromPartial(base ?? {});
|
|
1611
|
-
},
|
|
1612
|
-
fromPartial(object) {
|
|
1613
|
-
const message = createBaseTripTask();
|
|
1614
|
-
message.eventType = object.eventType ?? 0;
|
|
1615
|
-
message.trip = (object.trip !== undefined && object.trip !== null) ? Trip.fromPartial(object.trip) : undefined;
|
|
1616
|
-
message.fusion = (object.fusion !== undefined && object.fusion !== null)
|
|
1617
|
-
? FusionTrip.fromPartial(object.fusion)
|
|
1618
|
-
: undefined;
|
|
1619
|
-
message.additional = object.additional ?? undefined;
|
|
1620
|
-
return message;
|
|
1621
|
-
},
|
|
1622
|
-
};
|
|
1623
|
-
function toTimestamp(date) {
|
|
1624
|
-
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
1625
|
-
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
1626
|
-
return { seconds, nanos };
|
|
1627
|
-
}
|
|
1628
|
-
function fromTimestamp(t) {
|
|
1629
|
-
let millis = (t.seconds.toNumber() || 0) * 1_000;
|
|
1630
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
1631
|
-
return new globalThis.Date(millis);
|
|
1632
|
-
}
|
|
1633
|
-
function numberToLong(number) {
|
|
1634
|
-
return Long.fromNumber(number);
|
|
1635
|
-
}
|