@blueyerobotics/protocol-definitions 3.2.0-28a7294b → 3.2.0-2bcfe527
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control.d.ts +8 -0
- package/dist/control.js +75 -1
- package/dist/message_formats.d.ts +166 -5
- package/dist/message_formats.js +1244 -151
- package/dist/req_rep.d.ts +10 -0
- package/dist/req_rep.js +89 -1
- package/dist/telemetry.d.ts +16 -5
- package/dist/telemetry.js +69 -11
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: message_formats.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.
|
|
8
|
+
exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = void 0;
|
|
10
|
+
exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.VideoCodecInfo = exports.ThermalZone = exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -36,6 +36,8 @@ exports.cameraFromJSON = cameraFromJSON;
|
|
|
36
36
|
exports.cameraToJSON = cameraToJSON;
|
|
37
37
|
exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
|
|
38
38
|
exports.streamingProtocolToJSON = streamingProtocolToJSON;
|
|
39
|
+
exports.recordingCodecFromJSON = recordingCodecFromJSON;
|
|
40
|
+
exports.recordingCodecToJSON = recordingCodecToJSON;
|
|
39
41
|
exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
|
|
40
42
|
exports.temperatureUnitToJSON = temperatureUnitToJSON;
|
|
41
43
|
exports.logoTypeFromJSON = logoTypeFromJSON;
|
|
@@ -58,6 +60,8 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
58
60
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
59
61
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
60
62
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
63
|
+
exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
|
|
64
|
+
exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
|
|
61
65
|
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
62
66
|
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
63
67
|
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
@@ -969,6 +973,47 @@ function streamingProtocolToJSON(object) {
|
|
|
969
973
|
return "UNRECOGNIZED";
|
|
970
974
|
}
|
|
971
975
|
}
|
|
976
|
+
/** Recording video codec. */
|
|
977
|
+
var RecordingCodec;
|
|
978
|
+
(function (RecordingCodec) {
|
|
979
|
+
/** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
|
|
980
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_UNSPECIFIED"] = 0] = "RECORDING_CODEC_UNSPECIFIED";
|
|
981
|
+
/** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
|
|
982
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_H264"] = 1] = "RECORDING_CODEC_H264";
|
|
983
|
+
/** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
|
|
984
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_H265"] = 2] = "RECORDING_CODEC_H265";
|
|
985
|
+
RecordingCodec[RecordingCodec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
986
|
+
})(RecordingCodec || (exports.RecordingCodec = RecordingCodec = {}));
|
|
987
|
+
function recordingCodecFromJSON(object) {
|
|
988
|
+
switch (object) {
|
|
989
|
+
case 0:
|
|
990
|
+
case "RECORDING_CODEC_UNSPECIFIED":
|
|
991
|
+
return RecordingCodec.RECORDING_CODEC_UNSPECIFIED;
|
|
992
|
+
case 1:
|
|
993
|
+
case "RECORDING_CODEC_H264":
|
|
994
|
+
return RecordingCodec.RECORDING_CODEC_H264;
|
|
995
|
+
case 2:
|
|
996
|
+
case "RECORDING_CODEC_H265":
|
|
997
|
+
return RecordingCodec.RECORDING_CODEC_H265;
|
|
998
|
+
case -1:
|
|
999
|
+
case "UNRECOGNIZED":
|
|
1000
|
+
default:
|
|
1001
|
+
return RecordingCodec.UNRECOGNIZED;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
function recordingCodecToJSON(object) {
|
|
1005
|
+
switch (object) {
|
|
1006
|
+
case RecordingCodec.RECORDING_CODEC_UNSPECIFIED:
|
|
1007
|
+
return "RECORDING_CODEC_UNSPECIFIED";
|
|
1008
|
+
case RecordingCodec.RECORDING_CODEC_H264:
|
|
1009
|
+
return "RECORDING_CODEC_H264";
|
|
1010
|
+
case RecordingCodec.RECORDING_CODEC_H265:
|
|
1011
|
+
return "RECORDING_CODEC_H265";
|
|
1012
|
+
case RecordingCodec.UNRECOGNIZED:
|
|
1013
|
+
default:
|
|
1014
|
+
return "UNRECOGNIZED";
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
972
1017
|
/** Available temperature units. */
|
|
973
1018
|
var TemperatureUnit;
|
|
974
1019
|
(function (TemperatureUnit) {
|
|
@@ -1157,6 +1202,8 @@ var FontSize;
|
|
|
1157
1202
|
FontSize[FontSize["FONT_SIZE_PX35"] = 5] = "FONT_SIZE_PX35";
|
|
1158
1203
|
/** FONT_SIZE_PX40 - 40 px. */
|
|
1159
1204
|
FontSize[FontSize["FONT_SIZE_PX40"] = 6] = "FONT_SIZE_PX40";
|
|
1205
|
+
/** FONT_SIZE_PX50 - 50 px. */
|
|
1206
|
+
FontSize[FontSize["FONT_SIZE_PX50"] = 7] = "FONT_SIZE_PX50";
|
|
1160
1207
|
FontSize[FontSize["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1161
1208
|
})(FontSize || (exports.FontSize = FontSize = {}));
|
|
1162
1209
|
function fontSizeFromJSON(object) {
|
|
@@ -1182,6 +1229,9 @@ function fontSizeFromJSON(object) {
|
|
|
1182
1229
|
case 6:
|
|
1183
1230
|
case "FONT_SIZE_PX40":
|
|
1184
1231
|
return FontSize.FONT_SIZE_PX40;
|
|
1232
|
+
case 7:
|
|
1233
|
+
case "FONT_SIZE_PX50":
|
|
1234
|
+
return FontSize.FONT_SIZE_PX50;
|
|
1185
1235
|
case -1:
|
|
1186
1236
|
case "UNRECOGNIZED":
|
|
1187
1237
|
default:
|
|
@@ -1204,6 +1254,8 @@ function fontSizeToJSON(object) {
|
|
|
1204
1254
|
return "FONT_SIZE_PX35";
|
|
1205
1255
|
case FontSize.FONT_SIZE_PX40:
|
|
1206
1256
|
return "FONT_SIZE_PX40";
|
|
1257
|
+
case FontSize.FONT_SIZE_PX50:
|
|
1258
|
+
return "FONT_SIZE_PX50";
|
|
1207
1259
|
case FontSize.UNRECOGNIZED:
|
|
1208
1260
|
default:
|
|
1209
1261
|
return "UNRECOGNIZED";
|
|
@@ -1308,6 +1360,8 @@ var GuestPortDeviceID;
|
|
|
1308
1360
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1309
1361
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
1310
1362
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1363
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
|
|
1364
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER"] = 48] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1311
1365
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1312
1366
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1313
1367
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1456,6 +1510,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1456
1510
|
case 47:
|
|
1457
1511
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
|
|
1458
1512
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
|
|
1513
|
+
case 48:
|
|
1514
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER":
|
|
1515
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER;
|
|
1459
1516
|
case -1:
|
|
1460
1517
|
case "UNRECOGNIZED":
|
|
1461
1518
|
default:
|
|
@@ -1560,6 +1617,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1560
1617
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1561
1618
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
|
|
1562
1619
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1620
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER:
|
|
1621
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1563
1622
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1564
1623
|
default:
|
|
1565
1624
|
return "UNRECOGNIZED";
|
|
@@ -1836,6 +1895,47 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1836
1895
|
return "UNRECOGNIZED";
|
|
1837
1896
|
}
|
|
1838
1897
|
}
|
|
1898
|
+
/** Thermal zone identifiers. */
|
|
1899
|
+
var ThermalZoneId;
|
|
1900
|
+
(function (ThermalZoneId) {
|
|
1901
|
+
/** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
|
|
1902
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_UNSPECIFIED"] = 0] = "THERMAL_ZONE_ID_UNSPECIFIED";
|
|
1903
|
+
/** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
|
|
1904
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_TJ"] = 1] = "THERMAL_ZONE_ID_TJ";
|
|
1905
|
+
/** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
|
|
1906
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_CANISTER"] = 2] = "THERMAL_ZONE_ID_CANISTER";
|
|
1907
|
+
ThermalZoneId[ThermalZoneId["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1908
|
+
})(ThermalZoneId || (exports.ThermalZoneId = ThermalZoneId = {}));
|
|
1909
|
+
function thermalZoneIdFromJSON(object) {
|
|
1910
|
+
switch (object) {
|
|
1911
|
+
case 0:
|
|
1912
|
+
case "THERMAL_ZONE_ID_UNSPECIFIED":
|
|
1913
|
+
return ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED;
|
|
1914
|
+
case 1:
|
|
1915
|
+
case "THERMAL_ZONE_ID_TJ":
|
|
1916
|
+
return ThermalZoneId.THERMAL_ZONE_ID_TJ;
|
|
1917
|
+
case 2:
|
|
1918
|
+
case "THERMAL_ZONE_ID_CANISTER":
|
|
1919
|
+
return ThermalZoneId.THERMAL_ZONE_ID_CANISTER;
|
|
1920
|
+
case -1:
|
|
1921
|
+
case "UNRECOGNIZED":
|
|
1922
|
+
default:
|
|
1923
|
+
return ThermalZoneId.UNRECOGNIZED;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
function thermalZoneIdToJSON(object) {
|
|
1927
|
+
switch (object) {
|
|
1928
|
+
case ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED:
|
|
1929
|
+
return "THERMAL_ZONE_ID_UNSPECIFIED";
|
|
1930
|
+
case ThermalZoneId.THERMAL_ZONE_ID_TJ:
|
|
1931
|
+
return "THERMAL_ZONE_ID_TJ";
|
|
1932
|
+
case ThermalZoneId.THERMAL_ZONE_ID_CANISTER:
|
|
1933
|
+
return "THERMAL_ZONE_ID_CANISTER";
|
|
1934
|
+
case ThermalZoneId.UNRECOGNIZED:
|
|
1935
|
+
default:
|
|
1936
|
+
return "UNRECOGNIZED";
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1839
1939
|
var LogEntry_LogLevel;
|
|
1840
1940
|
(function (LogEntry_LogLevel) {
|
|
1841
1941
|
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
@@ -10060,6 +10160,8 @@ function createBaseCameraParameters() {
|
|
|
10060
10160
|
framerate: 0,
|
|
10061
10161
|
camera: 0,
|
|
10062
10162
|
mtuSize: 0,
|
|
10163
|
+
recordingCodec: 0,
|
|
10164
|
+
recordingBitrate: 0,
|
|
10063
10165
|
};
|
|
10064
10166
|
}
|
|
10065
10167
|
exports.CameraParameters = {
|
|
@@ -10133,6 +10235,12 @@ exports.CameraParameters = {
|
|
|
10133
10235
|
if (message.mtuSize !== 0) {
|
|
10134
10236
|
writer.uint32(192).uint32(message.mtuSize);
|
|
10135
10237
|
}
|
|
10238
|
+
if (message.recordingCodec !== 0) {
|
|
10239
|
+
writer.uint32(200).int32(message.recordingCodec);
|
|
10240
|
+
}
|
|
10241
|
+
if (message.recordingBitrate !== 0) {
|
|
10242
|
+
writer.uint32(208).int32(message.recordingBitrate);
|
|
10243
|
+
}
|
|
10136
10244
|
return writer;
|
|
10137
10245
|
},
|
|
10138
10246
|
decode(input, length) {
|
|
@@ -10303,6 +10411,20 @@ exports.CameraParameters = {
|
|
|
10303
10411
|
message.mtuSize = reader.uint32();
|
|
10304
10412
|
continue;
|
|
10305
10413
|
}
|
|
10414
|
+
case 25: {
|
|
10415
|
+
if (tag !== 200) {
|
|
10416
|
+
break;
|
|
10417
|
+
}
|
|
10418
|
+
message.recordingCodec = reader.int32();
|
|
10419
|
+
continue;
|
|
10420
|
+
}
|
|
10421
|
+
case 26: {
|
|
10422
|
+
if (tag !== 208) {
|
|
10423
|
+
break;
|
|
10424
|
+
}
|
|
10425
|
+
message.recordingBitrate = reader.int32();
|
|
10426
|
+
continue;
|
|
10427
|
+
}
|
|
10306
10428
|
}
|
|
10307
10429
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10308
10430
|
break;
|
|
@@ -10336,6 +10458,8 @@ exports.CameraParameters = {
|
|
|
10336
10458
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
10337
10459
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
10338
10460
|
mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
|
|
10461
|
+
recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
|
|
10462
|
+
recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
|
|
10339
10463
|
};
|
|
10340
10464
|
},
|
|
10341
10465
|
toJSON(message) {
|
|
@@ -10409,6 +10533,12 @@ exports.CameraParameters = {
|
|
|
10409
10533
|
if (message.mtuSize !== 0) {
|
|
10410
10534
|
obj.mtuSize = Math.round(message.mtuSize);
|
|
10411
10535
|
}
|
|
10536
|
+
if (message.recordingCodec !== 0) {
|
|
10537
|
+
obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
|
|
10538
|
+
}
|
|
10539
|
+
if (message.recordingBitrate !== 0) {
|
|
10540
|
+
obj.recordingBitrate = Math.round(message.recordingBitrate);
|
|
10541
|
+
}
|
|
10412
10542
|
return obj;
|
|
10413
10543
|
},
|
|
10414
10544
|
create(base) {
|
|
@@ -10439,6 +10569,8 @@ exports.CameraParameters = {
|
|
|
10439
10569
|
message.framerate = object.framerate ?? 0;
|
|
10440
10570
|
message.camera = object.camera ?? 0;
|
|
10441
10571
|
message.mtuSize = object.mtuSize ?? 0;
|
|
10572
|
+
message.recordingCodec = object.recordingCodec ?? 0;
|
|
10573
|
+
message.recordingBitrate = object.recordingBitrate ?? 0;
|
|
10442
10574
|
return message;
|
|
10443
10575
|
},
|
|
10444
10576
|
};
|
|
@@ -13294,23 +13426,26 @@ exports.CPUInfo = {
|
|
|
13294
13426
|
return message;
|
|
13295
13427
|
},
|
|
13296
13428
|
};
|
|
13297
|
-
function
|
|
13298
|
-
return {
|
|
13429
|
+
function createBaseCpuCoreLoad() {
|
|
13430
|
+
return { coreIndex: 0, load: 0, frequencyMhz: 0 };
|
|
13299
13431
|
}
|
|
13300
|
-
exports.
|
|
13432
|
+
exports.CpuCoreLoad = {
|
|
13301
13433
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13302
|
-
if (message.
|
|
13303
|
-
writer.uint32(8).
|
|
13434
|
+
if (message.coreIndex !== 0) {
|
|
13435
|
+
writer.uint32(8).uint32(message.coreIndex);
|
|
13304
13436
|
}
|
|
13305
|
-
if (message.
|
|
13306
|
-
writer.uint32(21).float(message.
|
|
13437
|
+
if (message.load !== 0) {
|
|
13438
|
+
writer.uint32(21).float(message.load);
|
|
13439
|
+
}
|
|
13440
|
+
if (message.frequencyMhz !== 0) {
|
|
13441
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
13307
13442
|
}
|
|
13308
13443
|
return writer;
|
|
13309
13444
|
},
|
|
13310
13445
|
decode(input, length) {
|
|
13311
13446
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13312
13447
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13313
|
-
const message =
|
|
13448
|
+
const message = createBaseCpuCoreLoad();
|
|
13314
13449
|
while (reader.pos < end) {
|
|
13315
13450
|
const tag = reader.uint32();
|
|
13316
13451
|
switch (tag >>> 3) {
|
|
@@ -13318,14 +13453,21 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13318
13453
|
if (tag !== 8) {
|
|
13319
13454
|
break;
|
|
13320
13455
|
}
|
|
13321
|
-
message.
|
|
13456
|
+
message.coreIndex = reader.uint32();
|
|
13322
13457
|
continue;
|
|
13323
13458
|
}
|
|
13324
13459
|
case 2: {
|
|
13325
13460
|
if (tag !== 21) {
|
|
13326
13461
|
break;
|
|
13327
13462
|
}
|
|
13328
|
-
message.
|
|
13463
|
+
message.load = reader.float();
|
|
13464
|
+
continue;
|
|
13465
|
+
}
|
|
13466
|
+
case 3: {
|
|
13467
|
+
if (tag !== 29) {
|
|
13468
|
+
break;
|
|
13469
|
+
}
|
|
13470
|
+
message.frequencyMhz = reader.float();
|
|
13329
13471
|
continue;
|
|
13330
13472
|
}
|
|
13331
13473
|
}
|
|
@@ -13338,52 +13480,67 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13338
13480
|
},
|
|
13339
13481
|
fromJSON(object) {
|
|
13340
13482
|
return {
|
|
13341
|
-
|
|
13342
|
-
|
|
13483
|
+
coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
|
|
13484
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13485
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13343
13486
|
};
|
|
13344
13487
|
},
|
|
13345
13488
|
toJSON(message) {
|
|
13346
13489
|
const obj = {};
|
|
13347
|
-
if (message.
|
|
13348
|
-
obj.
|
|
13490
|
+
if (message.coreIndex !== 0) {
|
|
13491
|
+
obj.coreIndex = Math.round(message.coreIndex);
|
|
13349
13492
|
}
|
|
13350
|
-
if (message.
|
|
13351
|
-
obj.
|
|
13493
|
+
if (message.load !== 0) {
|
|
13494
|
+
obj.load = message.load;
|
|
13495
|
+
}
|
|
13496
|
+
if (message.frequencyMhz !== 0) {
|
|
13497
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13352
13498
|
}
|
|
13353
13499
|
return obj;
|
|
13354
13500
|
},
|
|
13355
13501
|
create(base) {
|
|
13356
|
-
return exports.
|
|
13502
|
+
return exports.CpuCoreLoad.fromPartial(base ?? {});
|
|
13357
13503
|
},
|
|
13358
13504
|
fromPartial(object) {
|
|
13359
|
-
const message =
|
|
13360
|
-
message.
|
|
13361
|
-
message.
|
|
13505
|
+
const message = createBaseCpuCoreLoad();
|
|
13506
|
+
message.coreIndex = object.coreIndex ?? 0;
|
|
13507
|
+
message.load = object.load ?? 0;
|
|
13508
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13362
13509
|
return message;
|
|
13363
13510
|
},
|
|
13364
13511
|
};
|
|
13365
|
-
function
|
|
13366
|
-
return {
|
|
13512
|
+
function createBaseGpuInfo() {
|
|
13513
|
+
return { load: 0, frequencyMhz: 0 };
|
|
13367
13514
|
}
|
|
13368
|
-
exports.
|
|
13515
|
+
exports.GpuInfo = {
|
|
13369
13516
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13370
|
-
if (message.
|
|
13371
|
-
writer.uint32(
|
|
13517
|
+
if (message.load !== 0) {
|
|
13518
|
+
writer.uint32(13).float(message.load);
|
|
13519
|
+
}
|
|
13520
|
+
if (message.frequencyMhz !== 0) {
|
|
13521
|
+
writer.uint32(21).float(message.frequencyMhz);
|
|
13372
13522
|
}
|
|
13373
13523
|
return writer;
|
|
13374
13524
|
},
|
|
13375
13525
|
decode(input, length) {
|
|
13376
13526
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13377
13527
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13378
|
-
const message =
|
|
13528
|
+
const message = createBaseGpuInfo();
|
|
13379
13529
|
while (reader.pos < end) {
|
|
13380
13530
|
const tag = reader.uint32();
|
|
13381
13531
|
switch (tag >>> 3) {
|
|
13382
13532
|
case 1: {
|
|
13383
|
-
if (tag !==
|
|
13533
|
+
if (tag !== 13) {
|
|
13384
13534
|
break;
|
|
13385
13535
|
}
|
|
13386
|
-
message.
|
|
13536
|
+
message.load = reader.float();
|
|
13537
|
+
continue;
|
|
13538
|
+
}
|
|
13539
|
+
case 2: {
|
|
13540
|
+
if (tag !== 21) {
|
|
13541
|
+
break;
|
|
13542
|
+
}
|
|
13543
|
+
message.frequencyMhz = reader.float();
|
|
13387
13544
|
continue;
|
|
13388
13545
|
}
|
|
13389
13546
|
}
|
|
@@ -13395,47 +13552,57 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
13395
13552
|
return message;
|
|
13396
13553
|
},
|
|
13397
13554
|
fromJSON(object) {
|
|
13398
|
-
return {
|
|
13555
|
+
return {
|
|
13556
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13557
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13558
|
+
};
|
|
13399
13559
|
},
|
|
13400
13560
|
toJSON(message) {
|
|
13401
13561
|
const obj = {};
|
|
13402
|
-
if (message.
|
|
13403
|
-
obj.
|
|
13562
|
+
if (message.load !== 0) {
|
|
13563
|
+
obj.load = message.load;
|
|
13564
|
+
}
|
|
13565
|
+
if (message.frequencyMhz !== 0) {
|
|
13566
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13404
13567
|
}
|
|
13405
13568
|
return obj;
|
|
13406
13569
|
},
|
|
13407
13570
|
create(base) {
|
|
13408
|
-
return exports.
|
|
13571
|
+
return exports.GpuInfo.fromPartial(base ?? {});
|
|
13409
13572
|
},
|
|
13410
13573
|
fromPartial(object) {
|
|
13411
|
-
const message =
|
|
13412
|
-
message.
|
|
13574
|
+
const message = createBaseGpuInfo();
|
|
13575
|
+
message.load = object.load ?? 0;
|
|
13576
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13413
13577
|
return message;
|
|
13414
13578
|
},
|
|
13415
13579
|
};
|
|
13416
|
-
function
|
|
13417
|
-
return {
|
|
13580
|
+
function createBaseDlaInfo() {
|
|
13581
|
+
return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
|
|
13418
13582
|
}
|
|
13419
|
-
exports.
|
|
13583
|
+
exports.DlaInfo = {
|
|
13420
13584
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13421
|
-
if (message.
|
|
13422
|
-
writer.uint32(8).uint32(message.
|
|
13585
|
+
if (message.engineIndex !== 0) {
|
|
13586
|
+
writer.uint32(8).uint32(message.engineIndex);
|
|
13423
13587
|
}
|
|
13424
|
-
if (message.
|
|
13425
|
-
writer.uint32(
|
|
13588
|
+
if (message.load !== 0) {
|
|
13589
|
+
writer.uint32(21).float(message.load);
|
|
13426
13590
|
}
|
|
13427
|
-
if (message.
|
|
13428
|
-
writer.uint32(
|
|
13591
|
+
if (message.frequencyMhz !== 0) {
|
|
13592
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
13429
13593
|
}
|
|
13430
|
-
if (message.
|
|
13431
|
-
writer.uint32(32).
|
|
13594
|
+
if (message.enabled !== false) {
|
|
13595
|
+
writer.uint32(32).bool(message.enabled);
|
|
13596
|
+
}
|
|
13597
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
13598
|
+
writer.uint32(45).float(message.falconFrequencyMhz);
|
|
13432
13599
|
}
|
|
13433
13600
|
return writer;
|
|
13434
13601
|
},
|
|
13435
13602
|
decode(input, length) {
|
|
13436
13603
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13437
13604
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13438
|
-
const message =
|
|
13605
|
+
const message = createBaseDlaInfo();
|
|
13439
13606
|
while (reader.pos < end) {
|
|
13440
13607
|
const tag = reader.uint32();
|
|
13441
13608
|
switch (tag >>> 3) {
|
|
@@ -13443,28 +13610,35 @@ exports.BoundingBox = {
|
|
|
13443
13610
|
if (tag !== 8) {
|
|
13444
13611
|
break;
|
|
13445
13612
|
}
|
|
13446
|
-
message.
|
|
13613
|
+
message.engineIndex = reader.uint32();
|
|
13447
13614
|
continue;
|
|
13448
13615
|
}
|
|
13449
13616
|
case 2: {
|
|
13450
|
-
if (tag !==
|
|
13617
|
+
if (tag !== 21) {
|
|
13451
13618
|
break;
|
|
13452
13619
|
}
|
|
13453
|
-
message.
|
|
13620
|
+
message.load = reader.float();
|
|
13454
13621
|
continue;
|
|
13455
13622
|
}
|
|
13456
13623
|
case 3: {
|
|
13457
|
-
if (tag !==
|
|
13624
|
+
if (tag !== 29) {
|
|
13458
13625
|
break;
|
|
13459
13626
|
}
|
|
13460
|
-
message.
|
|
13627
|
+
message.frequencyMhz = reader.float();
|
|
13461
13628
|
continue;
|
|
13462
13629
|
}
|
|
13463
13630
|
case 4: {
|
|
13464
13631
|
if (tag !== 32) {
|
|
13465
13632
|
break;
|
|
13466
13633
|
}
|
|
13467
|
-
message.
|
|
13634
|
+
message.enabled = reader.bool();
|
|
13635
|
+
continue;
|
|
13636
|
+
}
|
|
13637
|
+
case 5: {
|
|
13638
|
+
if (tag !== 45) {
|
|
13639
|
+
break;
|
|
13640
|
+
}
|
|
13641
|
+
message.falconFrequencyMhz = reader.float();
|
|
13468
13642
|
continue;
|
|
13469
13643
|
}
|
|
13470
13644
|
}
|
|
@@ -13477,102 +13651,97 @@ exports.BoundingBox = {
|
|
|
13477
13651
|
},
|
|
13478
13652
|
fromJSON(object) {
|
|
13479
13653
|
return {
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13654
|
+
engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
|
|
13655
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13656
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13657
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
13658
|
+
falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
|
|
13484
13659
|
};
|
|
13485
13660
|
},
|
|
13486
13661
|
toJSON(message) {
|
|
13487
13662
|
const obj = {};
|
|
13488
|
-
if (message.
|
|
13489
|
-
obj.
|
|
13663
|
+
if (message.engineIndex !== 0) {
|
|
13664
|
+
obj.engineIndex = Math.round(message.engineIndex);
|
|
13490
13665
|
}
|
|
13491
|
-
if (message.
|
|
13492
|
-
obj.
|
|
13666
|
+
if (message.load !== 0) {
|
|
13667
|
+
obj.load = message.load;
|
|
13493
13668
|
}
|
|
13494
|
-
if (message.
|
|
13495
|
-
obj.
|
|
13669
|
+
if (message.frequencyMhz !== 0) {
|
|
13670
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13496
13671
|
}
|
|
13497
|
-
if (message.
|
|
13498
|
-
obj.
|
|
13672
|
+
if (message.enabled !== false) {
|
|
13673
|
+
obj.enabled = message.enabled;
|
|
13674
|
+
}
|
|
13675
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
13676
|
+
obj.falconFrequencyMhz = message.falconFrequencyMhz;
|
|
13499
13677
|
}
|
|
13500
13678
|
return obj;
|
|
13501
13679
|
},
|
|
13502
13680
|
create(base) {
|
|
13503
|
-
return exports.
|
|
13681
|
+
return exports.DlaInfo.fromPartial(base ?? {});
|
|
13504
13682
|
},
|
|
13505
13683
|
fromPartial(object) {
|
|
13506
|
-
const message =
|
|
13507
|
-
message.
|
|
13508
|
-
message.
|
|
13509
|
-
message.
|
|
13510
|
-
message.
|
|
13684
|
+
const message = createBaseDlaInfo();
|
|
13685
|
+
message.engineIndex = object.engineIndex ?? 0;
|
|
13686
|
+
message.load = object.load ?? 0;
|
|
13687
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13688
|
+
message.enabled = object.enabled ?? false;
|
|
13689
|
+
message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
|
|
13511
13690
|
return message;
|
|
13512
13691
|
},
|
|
13513
13692
|
};
|
|
13514
|
-
function
|
|
13515
|
-
return {
|
|
13693
|
+
function createBaseMemoryInfo() {
|
|
13694
|
+
return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
|
|
13516
13695
|
}
|
|
13517
|
-
exports.
|
|
13696
|
+
exports.MemoryInfo = {
|
|
13518
13697
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13519
|
-
if (message.
|
|
13520
|
-
|
|
13521
|
-
}
|
|
13522
|
-
if (message.confidence !== 0) {
|
|
13523
|
-
writer.uint32(21).float(message.confidence);
|
|
13698
|
+
if (message.totalBytes !== 0) {
|
|
13699
|
+
writer.uint32(8).uint64(message.totalBytes);
|
|
13524
13700
|
}
|
|
13525
|
-
if (message.
|
|
13526
|
-
writer.uint32(
|
|
13701
|
+
if (message.usedBytes !== 0) {
|
|
13702
|
+
writer.uint32(16).uint64(message.usedBytes);
|
|
13527
13703
|
}
|
|
13528
|
-
if (message.
|
|
13529
|
-
writer.uint32(
|
|
13704
|
+
if (message.cachedBytes !== 0) {
|
|
13705
|
+
writer.uint32(24).uint64(message.cachedBytes);
|
|
13530
13706
|
}
|
|
13531
|
-
if (message.
|
|
13532
|
-
writer.uint32(
|
|
13707
|
+
if (message.busLoad !== 0) {
|
|
13708
|
+
writer.uint32(37).float(message.busLoad);
|
|
13533
13709
|
}
|
|
13534
13710
|
return writer;
|
|
13535
13711
|
},
|
|
13536
13712
|
decode(input, length) {
|
|
13537
13713
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13538
13714
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13539
|
-
const message =
|
|
13715
|
+
const message = createBaseMemoryInfo();
|
|
13540
13716
|
while (reader.pos < end) {
|
|
13541
13717
|
const tag = reader.uint32();
|
|
13542
13718
|
switch (tag >>> 3) {
|
|
13543
13719
|
case 1: {
|
|
13544
|
-
if (tag !==
|
|
13720
|
+
if (tag !== 8) {
|
|
13545
13721
|
break;
|
|
13546
13722
|
}
|
|
13547
|
-
message.
|
|
13723
|
+
message.totalBytes = longToNumber(reader.uint64());
|
|
13548
13724
|
continue;
|
|
13549
13725
|
}
|
|
13550
13726
|
case 2: {
|
|
13551
|
-
if (tag !==
|
|
13727
|
+
if (tag !== 16) {
|
|
13552
13728
|
break;
|
|
13553
13729
|
}
|
|
13554
|
-
message.
|
|
13730
|
+
message.usedBytes = longToNumber(reader.uint64());
|
|
13555
13731
|
continue;
|
|
13556
13732
|
}
|
|
13557
13733
|
case 3: {
|
|
13558
13734
|
if (tag !== 24) {
|
|
13559
13735
|
break;
|
|
13560
13736
|
}
|
|
13561
|
-
message.
|
|
13737
|
+
message.cachedBytes = longToNumber(reader.uint64());
|
|
13562
13738
|
continue;
|
|
13563
13739
|
}
|
|
13564
13740
|
case 4: {
|
|
13565
|
-
if (tag !==
|
|
13566
|
-
break;
|
|
13567
|
-
}
|
|
13568
|
-
message.className = reader.string();
|
|
13569
|
-
continue;
|
|
13570
|
-
}
|
|
13571
|
-
case 5: {
|
|
13572
|
-
if (tag !== 40) {
|
|
13741
|
+
if (tag !== 37) {
|
|
13573
13742
|
break;
|
|
13574
13743
|
}
|
|
13575
|
-
message.
|
|
13744
|
+
message.busLoad = reader.float();
|
|
13576
13745
|
continue;
|
|
13577
13746
|
}
|
|
13578
13747
|
}
|
|
@@ -13585,79 +13754,72 @@ exports.ObjectDetection = {
|
|
|
13585
13754
|
},
|
|
13586
13755
|
fromJSON(object) {
|
|
13587
13756
|
return {
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
|
|
13757
|
+
totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
|
|
13758
|
+
usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
|
|
13759
|
+
cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
|
|
13760
|
+
busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
|
|
13593
13761
|
};
|
|
13594
13762
|
},
|
|
13595
13763
|
toJSON(message) {
|
|
13596
13764
|
const obj = {};
|
|
13597
|
-
if (message.
|
|
13598
|
-
obj.
|
|
13599
|
-
}
|
|
13600
|
-
if (message.confidence !== 0) {
|
|
13601
|
-
obj.confidence = message.confidence;
|
|
13765
|
+
if (message.totalBytes !== 0) {
|
|
13766
|
+
obj.totalBytes = Math.round(message.totalBytes);
|
|
13602
13767
|
}
|
|
13603
|
-
if (message.
|
|
13604
|
-
obj.
|
|
13768
|
+
if (message.usedBytes !== 0) {
|
|
13769
|
+
obj.usedBytes = Math.round(message.usedBytes);
|
|
13605
13770
|
}
|
|
13606
|
-
if (message.
|
|
13607
|
-
obj.
|
|
13771
|
+
if (message.cachedBytes !== 0) {
|
|
13772
|
+
obj.cachedBytes = Math.round(message.cachedBytes);
|
|
13608
13773
|
}
|
|
13609
|
-
if (message.
|
|
13610
|
-
obj.
|
|
13774
|
+
if (message.busLoad !== 0) {
|
|
13775
|
+
obj.busLoad = message.busLoad;
|
|
13611
13776
|
}
|
|
13612
13777
|
return obj;
|
|
13613
13778
|
},
|
|
13614
13779
|
create(base) {
|
|
13615
|
-
return exports.
|
|
13780
|
+
return exports.MemoryInfo.fromPartial(base ?? {});
|
|
13616
13781
|
},
|
|
13617
13782
|
fromPartial(object) {
|
|
13618
|
-
const message =
|
|
13619
|
-
message.
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
message.
|
|
13623
|
-
message.classId = object.classId ?? 0;
|
|
13624
|
-
message.className = object.className ?? "";
|
|
13625
|
-
message.trackingId = object.trackingId ?? 0;
|
|
13783
|
+
const message = createBaseMemoryInfo();
|
|
13784
|
+
message.totalBytes = object.totalBytes ?? 0;
|
|
13785
|
+
message.usedBytes = object.usedBytes ?? 0;
|
|
13786
|
+
message.cachedBytes = object.cachedBytes ?? 0;
|
|
13787
|
+
message.busLoad = object.busLoad ?? 0;
|
|
13626
13788
|
return message;
|
|
13627
13789
|
},
|
|
13628
13790
|
};
|
|
13629
|
-
function
|
|
13630
|
-
return {
|
|
13791
|
+
function createBaseThermalZone() {
|
|
13792
|
+
return { zone: 0, temperature: 0 };
|
|
13631
13793
|
}
|
|
13632
|
-
exports.
|
|
13794
|
+
exports.ThermalZone = {
|
|
13633
13795
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13634
|
-
|
|
13635
|
-
|
|
13796
|
+
if (message.zone !== 0) {
|
|
13797
|
+
writer.uint32(8).int32(message.zone);
|
|
13636
13798
|
}
|
|
13637
|
-
if (message.
|
|
13638
|
-
writer.uint32(
|
|
13799
|
+
if (message.temperature !== 0) {
|
|
13800
|
+
writer.uint32(21).float(message.temperature);
|
|
13639
13801
|
}
|
|
13640
13802
|
return writer;
|
|
13641
13803
|
},
|
|
13642
13804
|
decode(input, length) {
|
|
13643
13805
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13644
13806
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13645
|
-
const message =
|
|
13807
|
+
const message = createBaseThermalZone();
|
|
13646
13808
|
while (reader.pos < end) {
|
|
13647
13809
|
const tag = reader.uint32();
|
|
13648
13810
|
switch (tag >>> 3) {
|
|
13649
13811
|
case 1: {
|
|
13650
|
-
if (tag !==
|
|
13812
|
+
if (tag !== 8) {
|
|
13651
13813
|
break;
|
|
13652
13814
|
}
|
|
13653
|
-
message.
|
|
13815
|
+
message.zone = reader.int32();
|
|
13654
13816
|
continue;
|
|
13655
13817
|
}
|
|
13656
13818
|
case 2: {
|
|
13657
|
-
if (tag !==
|
|
13819
|
+
if (tag !== 21) {
|
|
13658
13820
|
break;
|
|
13659
13821
|
}
|
|
13660
|
-
message.
|
|
13822
|
+
message.temperature = reader.float();
|
|
13661
13823
|
continue;
|
|
13662
13824
|
}
|
|
13663
13825
|
}
|
|
@@ -13670,29 +13832,960 @@ exports.ObjectDetections = {
|
|
|
13670
13832
|
},
|
|
13671
13833
|
fromJSON(object) {
|
|
13672
13834
|
return {
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
: [],
|
|
13676
|
-
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
13835
|
+
zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
|
|
13836
|
+
temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
|
|
13677
13837
|
};
|
|
13678
13838
|
},
|
|
13679
13839
|
toJSON(message) {
|
|
13680
13840
|
const obj = {};
|
|
13681
|
-
if (message.
|
|
13682
|
-
obj.
|
|
13841
|
+
if (message.zone !== 0) {
|
|
13842
|
+
obj.zone = thermalZoneIdToJSON(message.zone);
|
|
13683
13843
|
}
|
|
13684
|
-
if (message.
|
|
13685
|
-
obj.
|
|
13844
|
+
if (message.temperature !== 0) {
|
|
13845
|
+
obj.temperature = message.temperature;
|
|
13686
13846
|
}
|
|
13687
13847
|
return obj;
|
|
13688
13848
|
},
|
|
13689
13849
|
create(base) {
|
|
13690
|
-
return exports.
|
|
13850
|
+
return exports.ThermalZone.fromPartial(base ?? {});
|
|
13691
13851
|
},
|
|
13692
13852
|
fromPartial(object) {
|
|
13693
|
-
const message =
|
|
13694
|
-
message.
|
|
13695
|
-
message.
|
|
13853
|
+
const message = createBaseThermalZone();
|
|
13854
|
+
message.zone = object.zone ?? 0;
|
|
13855
|
+
message.temperature = object.temperature ?? 0;
|
|
13856
|
+
return message;
|
|
13857
|
+
},
|
|
13858
|
+
};
|
|
13859
|
+
function createBaseVideoCodecInfo() {
|
|
13860
|
+
return {
|
|
13861
|
+
encoderActive: false,
|
|
13862
|
+
encoderFrequencyMhz: 0,
|
|
13863
|
+
decoderActive: false,
|
|
13864
|
+
decoderFrequencyMhz: 0,
|
|
13865
|
+
nvjpgActive: false,
|
|
13866
|
+
nvjpgFrequencyMhz: 0,
|
|
13867
|
+
vicActive: false,
|
|
13868
|
+
vicFrequencyMhz: 0,
|
|
13869
|
+
vpuActive: false,
|
|
13870
|
+
vpuFrequencyMhz: 0,
|
|
13871
|
+
vpuCodecIrqCount: 0,
|
|
13872
|
+
vpuJpgIrqCount: 0,
|
|
13873
|
+
};
|
|
13874
|
+
}
|
|
13875
|
+
exports.VideoCodecInfo = {
|
|
13876
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13877
|
+
if (message.encoderActive !== false) {
|
|
13878
|
+
writer.uint32(8).bool(message.encoderActive);
|
|
13879
|
+
}
|
|
13880
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
13881
|
+
writer.uint32(21).float(message.encoderFrequencyMhz);
|
|
13882
|
+
}
|
|
13883
|
+
if (message.decoderActive !== false) {
|
|
13884
|
+
writer.uint32(24).bool(message.decoderActive);
|
|
13885
|
+
}
|
|
13886
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
13887
|
+
writer.uint32(37).float(message.decoderFrequencyMhz);
|
|
13888
|
+
}
|
|
13889
|
+
if (message.nvjpgActive !== false) {
|
|
13890
|
+
writer.uint32(40).bool(message.nvjpgActive);
|
|
13891
|
+
}
|
|
13892
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
13893
|
+
writer.uint32(53).float(message.nvjpgFrequencyMhz);
|
|
13894
|
+
}
|
|
13895
|
+
if (message.vicActive !== false) {
|
|
13896
|
+
writer.uint32(56).bool(message.vicActive);
|
|
13897
|
+
}
|
|
13898
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
13899
|
+
writer.uint32(69).float(message.vicFrequencyMhz);
|
|
13900
|
+
}
|
|
13901
|
+
if (message.vpuActive !== false) {
|
|
13902
|
+
writer.uint32(72).bool(message.vpuActive);
|
|
13903
|
+
}
|
|
13904
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
13905
|
+
writer.uint32(85).float(message.vpuFrequencyMhz);
|
|
13906
|
+
}
|
|
13907
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
13908
|
+
writer.uint32(88).uint32(message.vpuCodecIrqCount);
|
|
13909
|
+
}
|
|
13910
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
13911
|
+
writer.uint32(96).uint32(message.vpuJpgIrqCount);
|
|
13912
|
+
}
|
|
13913
|
+
return writer;
|
|
13914
|
+
},
|
|
13915
|
+
decode(input, length) {
|
|
13916
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13917
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13918
|
+
const message = createBaseVideoCodecInfo();
|
|
13919
|
+
while (reader.pos < end) {
|
|
13920
|
+
const tag = reader.uint32();
|
|
13921
|
+
switch (tag >>> 3) {
|
|
13922
|
+
case 1: {
|
|
13923
|
+
if (tag !== 8) {
|
|
13924
|
+
break;
|
|
13925
|
+
}
|
|
13926
|
+
message.encoderActive = reader.bool();
|
|
13927
|
+
continue;
|
|
13928
|
+
}
|
|
13929
|
+
case 2: {
|
|
13930
|
+
if (tag !== 21) {
|
|
13931
|
+
break;
|
|
13932
|
+
}
|
|
13933
|
+
message.encoderFrequencyMhz = reader.float();
|
|
13934
|
+
continue;
|
|
13935
|
+
}
|
|
13936
|
+
case 3: {
|
|
13937
|
+
if (tag !== 24) {
|
|
13938
|
+
break;
|
|
13939
|
+
}
|
|
13940
|
+
message.decoderActive = reader.bool();
|
|
13941
|
+
continue;
|
|
13942
|
+
}
|
|
13943
|
+
case 4: {
|
|
13944
|
+
if (tag !== 37) {
|
|
13945
|
+
break;
|
|
13946
|
+
}
|
|
13947
|
+
message.decoderFrequencyMhz = reader.float();
|
|
13948
|
+
continue;
|
|
13949
|
+
}
|
|
13950
|
+
case 5: {
|
|
13951
|
+
if (tag !== 40) {
|
|
13952
|
+
break;
|
|
13953
|
+
}
|
|
13954
|
+
message.nvjpgActive = reader.bool();
|
|
13955
|
+
continue;
|
|
13956
|
+
}
|
|
13957
|
+
case 6: {
|
|
13958
|
+
if (tag !== 53) {
|
|
13959
|
+
break;
|
|
13960
|
+
}
|
|
13961
|
+
message.nvjpgFrequencyMhz = reader.float();
|
|
13962
|
+
continue;
|
|
13963
|
+
}
|
|
13964
|
+
case 7: {
|
|
13965
|
+
if (tag !== 56) {
|
|
13966
|
+
break;
|
|
13967
|
+
}
|
|
13968
|
+
message.vicActive = reader.bool();
|
|
13969
|
+
continue;
|
|
13970
|
+
}
|
|
13971
|
+
case 8: {
|
|
13972
|
+
if (tag !== 69) {
|
|
13973
|
+
break;
|
|
13974
|
+
}
|
|
13975
|
+
message.vicFrequencyMhz = reader.float();
|
|
13976
|
+
continue;
|
|
13977
|
+
}
|
|
13978
|
+
case 9: {
|
|
13979
|
+
if (tag !== 72) {
|
|
13980
|
+
break;
|
|
13981
|
+
}
|
|
13982
|
+
message.vpuActive = reader.bool();
|
|
13983
|
+
continue;
|
|
13984
|
+
}
|
|
13985
|
+
case 10: {
|
|
13986
|
+
if (tag !== 85) {
|
|
13987
|
+
break;
|
|
13988
|
+
}
|
|
13989
|
+
message.vpuFrequencyMhz = reader.float();
|
|
13990
|
+
continue;
|
|
13991
|
+
}
|
|
13992
|
+
case 11: {
|
|
13993
|
+
if (tag !== 88) {
|
|
13994
|
+
break;
|
|
13995
|
+
}
|
|
13996
|
+
message.vpuCodecIrqCount = reader.uint32();
|
|
13997
|
+
continue;
|
|
13998
|
+
}
|
|
13999
|
+
case 12: {
|
|
14000
|
+
if (tag !== 96) {
|
|
14001
|
+
break;
|
|
14002
|
+
}
|
|
14003
|
+
message.vpuJpgIrqCount = reader.uint32();
|
|
14004
|
+
continue;
|
|
14005
|
+
}
|
|
14006
|
+
}
|
|
14007
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14008
|
+
break;
|
|
14009
|
+
}
|
|
14010
|
+
reader.skip(tag & 7);
|
|
14011
|
+
}
|
|
14012
|
+
return message;
|
|
14013
|
+
},
|
|
14014
|
+
fromJSON(object) {
|
|
14015
|
+
return {
|
|
14016
|
+
encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
|
|
14017
|
+
encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
|
|
14018
|
+
decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
|
|
14019
|
+
decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
|
|
14020
|
+
nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
|
|
14021
|
+
nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
|
|
14022
|
+
vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
|
|
14023
|
+
vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
|
|
14024
|
+
vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
|
|
14025
|
+
vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
|
|
14026
|
+
vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
|
|
14027
|
+
vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
|
|
14028
|
+
};
|
|
14029
|
+
},
|
|
14030
|
+
toJSON(message) {
|
|
14031
|
+
const obj = {};
|
|
14032
|
+
if (message.encoderActive !== false) {
|
|
14033
|
+
obj.encoderActive = message.encoderActive;
|
|
14034
|
+
}
|
|
14035
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
14036
|
+
obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
|
|
14037
|
+
}
|
|
14038
|
+
if (message.decoderActive !== false) {
|
|
14039
|
+
obj.decoderActive = message.decoderActive;
|
|
14040
|
+
}
|
|
14041
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
14042
|
+
obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
|
|
14043
|
+
}
|
|
14044
|
+
if (message.nvjpgActive !== false) {
|
|
14045
|
+
obj.nvjpgActive = message.nvjpgActive;
|
|
14046
|
+
}
|
|
14047
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
14048
|
+
obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
|
|
14049
|
+
}
|
|
14050
|
+
if (message.vicActive !== false) {
|
|
14051
|
+
obj.vicActive = message.vicActive;
|
|
14052
|
+
}
|
|
14053
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
14054
|
+
obj.vicFrequencyMhz = message.vicFrequencyMhz;
|
|
14055
|
+
}
|
|
14056
|
+
if (message.vpuActive !== false) {
|
|
14057
|
+
obj.vpuActive = message.vpuActive;
|
|
14058
|
+
}
|
|
14059
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
14060
|
+
obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
|
|
14061
|
+
}
|
|
14062
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
14063
|
+
obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
|
|
14064
|
+
}
|
|
14065
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
14066
|
+
obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
|
|
14067
|
+
}
|
|
14068
|
+
return obj;
|
|
14069
|
+
},
|
|
14070
|
+
create(base) {
|
|
14071
|
+
return exports.VideoCodecInfo.fromPartial(base ?? {});
|
|
14072
|
+
},
|
|
14073
|
+
fromPartial(object) {
|
|
14074
|
+
const message = createBaseVideoCodecInfo();
|
|
14075
|
+
message.encoderActive = object.encoderActive ?? false;
|
|
14076
|
+
message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
|
|
14077
|
+
message.decoderActive = object.decoderActive ?? false;
|
|
14078
|
+
message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
|
|
14079
|
+
message.nvjpgActive = object.nvjpgActive ?? false;
|
|
14080
|
+
message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
|
|
14081
|
+
message.vicActive = object.vicActive ?? false;
|
|
14082
|
+
message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
|
|
14083
|
+
message.vpuActive = object.vpuActive ?? false;
|
|
14084
|
+
message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
|
|
14085
|
+
message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
|
|
14086
|
+
message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
|
|
14087
|
+
return message;
|
|
14088
|
+
},
|
|
14089
|
+
};
|
|
14090
|
+
function createBaseSystemPerformanceInfo() {
|
|
14091
|
+
return {
|
|
14092
|
+
cpuCores: [],
|
|
14093
|
+
cpuUtilization: 0,
|
|
14094
|
+
gpu: undefined,
|
|
14095
|
+
dlaEngines: [],
|
|
14096
|
+
memory: undefined,
|
|
14097
|
+
thermalZones: [],
|
|
14098
|
+
videoCodec: undefined,
|
|
14099
|
+
mainQueueLoad: 0,
|
|
14100
|
+
guestportQueueLoad: 0,
|
|
14101
|
+
commQueueLoad: 0,
|
|
14102
|
+
cameraQueueLoad: 0,
|
|
14103
|
+
overlayQueueLoad: 0,
|
|
14104
|
+
positionObserverQueueLoad: 0,
|
|
14105
|
+
};
|
|
14106
|
+
}
|
|
14107
|
+
exports.SystemPerformanceInfo = {
|
|
14108
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14109
|
+
for (const v of message.cpuCores) {
|
|
14110
|
+
exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
|
|
14111
|
+
}
|
|
14112
|
+
if (message.cpuUtilization !== 0) {
|
|
14113
|
+
writer.uint32(21).float(message.cpuUtilization);
|
|
14114
|
+
}
|
|
14115
|
+
if (message.gpu !== undefined) {
|
|
14116
|
+
exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
|
|
14117
|
+
}
|
|
14118
|
+
for (const v of message.dlaEngines) {
|
|
14119
|
+
exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
|
|
14120
|
+
}
|
|
14121
|
+
if (message.memory !== undefined) {
|
|
14122
|
+
exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
|
|
14123
|
+
}
|
|
14124
|
+
for (const v of message.thermalZones) {
|
|
14125
|
+
exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
|
|
14126
|
+
}
|
|
14127
|
+
if (message.videoCodec !== undefined) {
|
|
14128
|
+
exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
|
|
14129
|
+
}
|
|
14130
|
+
if (message.mainQueueLoad !== 0) {
|
|
14131
|
+
writer.uint32(69).float(message.mainQueueLoad);
|
|
14132
|
+
}
|
|
14133
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14134
|
+
writer.uint32(77).float(message.guestportQueueLoad);
|
|
14135
|
+
}
|
|
14136
|
+
if (message.commQueueLoad !== 0) {
|
|
14137
|
+
writer.uint32(85).float(message.commQueueLoad);
|
|
14138
|
+
}
|
|
14139
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14140
|
+
writer.uint32(93).float(message.cameraQueueLoad);
|
|
14141
|
+
}
|
|
14142
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14143
|
+
writer.uint32(101).float(message.overlayQueueLoad);
|
|
14144
|
+
}
|
|
14145
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14146
|
+
writer.uint32(109).float(message.positionObserverQueueLoad);
|
|
14147
|
+
}
|
|
14148
|
+
return writer;
|
|
14149
|
+
},
|
|
14150
|
+
decode(input, length) {
|
|
14151
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14152
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14153
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14154
|
+
while (reader.pos < end) {
|
|
14155
|
+
const tag = reader.uint32();
|
|
14156
|
+
switch (tag >>> 3) {
|
|
14157
|
+
case 1: {
|
|
14158
|
+
if (tag !== 10) {
|
|
14159
|
+
break;
|
|
14160
|
+
}
|
|
14161
|
+
message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
|
|
14162
|
+
continue;
|
|
14163
|
+
}
|
|
14164
|
+
case 2: {
|
|
14165
|
+
if (tag !== 21) {
|
|
14166
|
+
break;
|
|
14167
|
+
}
|
|
14168
|
+
message.cpuUtilization = reader.float();
|
|
14169
|
+
continue;
|
|
14170
|
+
}
|
|
14171
|
+
case 3: {
|
|
14172
|
+
if (tag !== 26) {
|
|
14173
|
+
break;
|
|
14174
|
+
}
|
|
14175
|
+
message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
|
|
14176
|
+
continue;
|
|
14177
|
+
}
|
|
14178
|
+
case 4: {
|
|
14179
|
+
if (tag !== 34) {
|
|
14180
|
+
break;
|
|
14181
|
+
}
|
|
14182
|
+
message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
|
|
14183
|
+
continue;
|
|
14184
|
+
}
|
|
14185
|
+
case 5: {
|
|
14186
|
+
if (tag !== 42) {
|
|
14187
|
+
break;
|
|
14188
|
+
}
|
|
14189
|
+
message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
|
|
14190
|
+
continue;
|
|
14191
|
+
}
|
|
14192
|
+
case 6: {
|
|
14193
|
+
if (tag !== 50) {
|
|
14194
|
+
break;
|
|
14195
|
+
}
|
|
14196
|
+
message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
|
|
14197
|
+
continue;
|
|
14198
|
+
}
|
|
14199
|
+
case 7: {
|
|
14200
|
+
if (tag !== 58) {
|
|
14201
|
+
break;
|
|
14202
|
+
}
|
|
14203
|
+
message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
|
|
14204
|
+
continue;
|
|
14205
|
+
}
|
|
14206
|
+
case 8: {
|
|
14207
|
+
if (tag !== 69) {
|
|
14208
|
+
break;
|
|
14209
|
+
}
|
|
14210
|
+
message.mainQueueLoad = reader.float();
|
|
14211
|
+
continue;
|
|
14212
|
+
}
|
|
14213
|
+
case 9: {
|
|
14214
|
+
if (tag !== 77) {
|
|
14215
|
+
break;
|
|
14216
|
+
}
|
|
14217
|
+
message.guestportQueueLoad = reader.float();
|
|
14218
|
+
continue;
|
|
14219
|
+
}
|
|
14220
|
+
case 10: {
|
|
14221
|
+
if (tag !== 85) {
|
|
14222
|
+
break;
|
|
14223
|
+
}
|
|
14224
|
+
message.commQueueLoad = reader.float();
|
|
14225
|
+
continue;
|
|
14226
|
+
}
|
|
14227
|
+
case 11: {
|
|
14228
|
+
if (tag !== 93) {
|
|
14229
|
+
break;
|
|
14230
|
+
}
|
|
14231
|
+
message.cameraQueueLoad = reader.float();
|
|
14232
|
+
continue;
|
|
14233
|
+
}
|
|
14234
|
+
case 12: {
|
|
14235
|
+
if (tag !== 101) {
|
|
14236
|
+
break;
|
|
14237
|
+
}
|
|
14238
|
+
message.overlayQueueLoad = reader.float();
|
|
14239
|
+
continue;
|
|
14240
|
+
}
|
|
14241
|
+
case 13: {
|
|
14242
|
+
if (tag !== 109) {
|
|
14243
|
+
break;
|
|
14244
|
+
}
|
|
14245
|
+
message.positionObserverQueueLoad = reader.float();
|
|
14246
|
+
continue;
|
|
14247
|
+
}
|
|
14248
|
+
}
|
|
14249
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14250
|
+
break;
|
|
14251
|
+
}
|
|
14252
|
+
reader.skip(tag & 7);
|
|
14253
|
+
}
|
|
14254
|
+
return message;
|
|
14255
|
+
},
|
|
14256
|
+
fromJSON(object) {
|
|
14257
|
+
return {
|
|
14258
|
+
cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
|
|
14259
|
+
cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
|
|
14260
|
+
gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
|
|
14261
|
+
dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
|
|
14262
|
+
memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
|
|
14263
|
+
thermalZones: gt.Array.isArray(object?.thermalZones)
|
|
14264
|
+
? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
|
|
14265
|
+
: [],
|
|
14266
|
+
videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
|
|
14267
|
+
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
14268
|
+
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
14269
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
14270
|
+
cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
|
|
14271
|
+
overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
|
|
14272
|
+
positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
|
|
14273
|
+
? gt.Number(object.positionObserverQueueLoad)
|
|
14274
|
+
: 0,
|
|
14275
|
+
};
|
|
14276
|
+
},
|
|
14277
|
+
toJSON(message) {
|
|
14278
|
+
const obj = {};
|
|
14279
|
+
if (message.cpuCores?.length) {
|
|
14280
|
+
obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
|
|
14281
|
+
}
|
|
14282
|
+
if (message.cpuUtilization !== 0) {
|
|
14283
|
+
obj.cpuUtilization = message.cpuUtilization;
|
|
14284
|
+
}
|
|
14285
|
+
if (message.gpu !== undefined) {
|
|
14286
|
+
obj.gpu = exports.GpuInfo.toJSON(message.gpu);
|
|
14287
|
+
}
|
|
14288
|
+
if (message.dlaEngines?.length) {
|
|
14289
|
+
obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
|
|
14290
|
+
}
|
|
14291
|
+
if (message.memory !== undefined) {
|
|
14292
|
+
obj.memory = exports.MemoryInfo.toJSON(message.memory);
|
|
14293
|
+
}
|
|
14294
|
+
if (message.thermalZones?.length) {
|
|
14295
|
+
obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
|
|
14296
|
+
}
|
|
14297
|
+
if (message.videoCodec !== undefined) {
|
|
14298
|
+
obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
|
|
14299
|
+
}
|
|
14300
|
+
if (message.mainQueueLoad !== 0) {
|
|
14301
|
+
obj.mainQueueLoad = message.mainQueueLoad;
|
|
14302
|
+
}
|
|
14303
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14304
|
+
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
14305
|
+
}
|
|
14306
|
+
if (message.commQueueLoad !== 0) {
|
|
14307
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
14308
|
+
}
|
|
14309
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14310
|
+
obj.cameraQueueLoad = message.cameraQueueLoad;
|
|
14311
|
+
}
|
|
14312
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14313
|
+
obj.overlayQueueLoad = message.overlayQueueLoad;
|
|
14314
|
+
}
|
|
14315
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14316
|
+
obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
|
|
14317
|
+
}
|
|
14318
|
+
return obj;
|
|
14319
|
+
},
|
|
14320
|
+
create(base) {
|
|
14321
|
+
return exports.SystemPerformanceInfo.fromPartial(base ?? {});
|
|
14322
|
+
},
|
|
14323
|
+
fromPartial(object) {
|
|
14324
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14325
|
+
message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
|
|
14326
|
+
message.cpuUtilization = object.cpuUtilization ?? 0;
|
|
14327
|
+
message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
|
|
14328
|
+
message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
|
|
14329
|
+
message.memory = (object.memory !== undefined && object.memory !== null)
|
|
14330
|
+
? exports.MemoryInfo.fromPartial(object.memory)
|
|
14331
|
+
: undefined;
|
|
14332
|
+
message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
|
|
14333
|
+
message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
|
|
14334
|
+
? exports.VideoCodecInfo.fromPartial(object.videoCodec)
|
|
14335
|
+
: undefined;
|
|
14336
|
+
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
14337
|
+
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
14338
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
14339
|
+
message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
|
|
14340
|
+
message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
|
|
14341
|
+
message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
|
|
14342
|
+
return message;
|
|
14343
|
+
},
|
|
14344
|
+
};
|
|
14345
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
14346
|
+
return { status: 0, level: 0 };
|
|
14347
|
+
}
|
|
14348
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
14349
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14350
|
+
if (message.status !== 0) {
|
|
14351
|
+
writer.uint32(8).int32(message.status);
|
|
14352
|
+
}
|
|
14353
|
+
if (message.level !== 0) {
|
|
14354
|
+
writer.uint32(21).float(message.level);
|
|
14355
|
+
}
|
|
14356
|
+
return writer;
|
|
14357
|
+
},
|
|
14358
|
+
decode(input, length) {
|
|
14359
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14360
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14361
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14362
|
+
while (reader.pos < end) {
|
|
14363
|
+
const tag = reader.uint32();
|
|
14364
|
+
switch (tag >>> 3) {
|
|
14365
|
+
case 1: {
|
|
14366
|
+
if (tag !== 8) {
|
|
14367
|
+
break;
|
|
14368
|
+
}
|
|
14369
|
+
message.status = reader.int32();
|
|
14370
|
+
continue;
|
|
14371
|
+
}
|
|
14372
|
+
case 2: {
|
|
14373
|
+
if (tag !== 21) {
|
|
14374
|
+
break;
|
|
14375
|
+
}
|
|
14376
|
+
message.level = reader.float();
|
|
14377
|
+
continue;
|
|
14378
|
+
}
|
|
14379
|
+
}
|
|
14380
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14381
|
+
break;
|
|
14382
|
+
}
|
|
14383
|
+
reader.skip(tag & 7);
|
|
14384
|
+
}
|
|
14385
|
+
return message;
|
|
14386
|
+
},
|
|
14387
|
+
fromJSON(object) {
|
|
14388
|
+
return {
|
|
14389
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
14390
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
14391
|
+
};
|
|
14392
|
+
},
|
|
14393
|
+
toJSON(message) {
|
|
14394
|
+
const obj = {};
|
|
14395
|
+
if (message.status !== 0) {
|
|
14396
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
14397
|
+
}
|
|
14398
|
+
if (message.level !== 0) {
|
|
14399
|
+
obj.level = message.level;
|
|
14400
|
+
}
|
|
14401
|
+
return obj;
|
|
14402
|
+
},
|
|
14403
|
+
create(base) {
|
|
14404
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
14405
|
+
},
|
|
14406
|
+
fromPartial(object) {
|
|
14407
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14408
|
+
message.status = object.status ?? 0;
|
|
14409
|
+
message.level = object.level ?? 0;
|
|
14410
|
+
return message;
|
|
14411
|
+
},
|
|
14412
|
+
};
|
|
14413
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
14414
|
+
return { version: "" };
|
|
14415
|
+
}
|
|
14416
|
+
exports.SurfaceUnitVersionInfo = {
|
|
14417
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14418
|
+
if (message.version !== "") {
|
|
14419
|
+
writer.uint32(10).string(message.version);
|
|
14420
|
+
}
|
|
14421
|
+
return writer;
|
|
14422
|
+
},
|
|
14423
|
+
decode(input, length) {
|
|
14424
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14425
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14426
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14427
|
+
while (reader.pos < end) {
|
|
14428
|
+
const tag = reader.uint32();
|
|
14429
|
+
switch (tag >>> 3) {
|
|
14430
|
+
case 1: {
|
|
14431
|
+
if (tag !== 10) {
|
|
14432
|
+
break;
|
|
14433
|
+
}
|
|
14434
|
+
message.version = reader.string();
|
|
14435
|
+
continue;
|
|
14436
|
+
}
|
|
14437
|
+
}
|
|
14438
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14439
|
+
break;
|
|
14440
|
+
}
|
|
14441
|
+
reader.skip(tag & 7);
|
|
14442
|
+
}
|
|
14443
|
+
return message;
|
|
14444
|
+
},
|
|
14445
|
+
fromJSON(object) {
|
|
14446
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
14447
|
+
},
|
|
14448
|
+
toJSON(message) {
|
|
14449
|
+
const obj = {};
|
|
14450
|
+
if (message.version !== "") {
|
|
14451
|
+
obj.version = message.version;
|
|
14452
|
+
}
|
|
14453
|
+
return obj;
|
|
14454
|
+
},
|
|
14455
|
+
create(base) {
|
|
14456
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
14457
|
+
},
|
|
14458
|
+
fromPartial(object) {
|
|
14459
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14460
|
+
message.version = object.version ?? "";
|
|
14461
|
+
return message;
|
|
14462
|
+
},
|
|
14463
|
+
};
|
|
14464
|
+
function createBaseBoundingBox() {
|
|
14465
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
14466
|
+
}
|
|
14467
|
+
exports.BoundingBox = {
|
|
14468
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14469
|
+
if (message.x !== 0) {
|
|
14470
|
+
writer.uint32(8).uint32(message.x);
|
|
14471
|
+
}
|
|
14472
|
+
if (message.y !== 0) {
|
|
14473
|
+
writer.uint32(16).uint32(message.y);
|
|
14474
|
+
}
|
|
14475
|
+
if (message.width !== 0) {
|
|
14476
|
+
writer.uint32(24).uint32(message.width);
|
|
14477
|
+
}
|
|
14478
|
+
if (message.height !== 0) {
|
|
14479
|
+
writer.uint32(32).uint32(message.height);
|
|
14480
|
+
}
|
|
14481
|
+
return writer;
|
|
14482
|
+
},
|
|
14483
|
+
decode(input, length) {
|
|
14484
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14485
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14486
|
+
const message = createBaseBoundingBox();
|
|
14487
|
+
while (reader.pos < end) {
|
|
14488
|
+
const tag = reader.uint32();
|
|
14489
|
+
switch (tag >>> 3) {
|
|
14490
|
+
case 1: {
|
|
14491
|
+
if (tag !== 8) {
|
|
14492
|
+
break;
|
|
14493
|
+
}
|
|
14494
|
+
message.x = reader.uint32();
|
|
14495
|
+
continue;
|
|
14496
|
+
}
|
|
14497
|
+
case 2: {
|
|
14498
|
+
if (tag !== 16) {
|
|
14499
|
+
break;
|
|
14500
|
+
}
|
|
14501
|
+
message.y = reader.uint32();
|
|
14502
|
+
continue;
|
|
14503
|
+
}
|
|
14504
|
+
case 3: {
|
|
14505
|
+
if (tag !== 24) {
|
|
14506
|
+
break;
|
|
14507
|
+
}
|
|
14508
|
+
message.width = reader.uint32();
|
|
14509
|
+
continue;
|
|
14510
|
+
}
|
|
14511
|
+
case 4: {
|
|
14512
|
+
if (tag !== 32) {
|
|
14513
|
+
break;
|
|
14514
|
+
}
|
|
14515
|
+
message.height = reader.uint32();
|
|
14516
|
+
continue;
|
|
14517
|
+
}
|
|
14518
|
+
}
|
|
14519
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14520
|
+
break;
|
|
14521
|
+
}
|
|
14522
|
+
reader.skip(tag & 7);
|
|
14523
|
+
}
|
|
14524
|
+
return message;
|
|
14525
|
+
},
|
|
14526
|
+
fromJSON(object) {
|
|
14527
|
+
return {
|
|
14528
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
14529
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
14530
|
+
width: isSet(object.width) ? gt.Number(object.width) : 0,
|
|
14531
|
+
height: isSet(object.height) ? gt.Number(object.height) : 0,
|
|
14532
|
+
};
|
|
14533
|
+
},
|
|
14534
|
+
toJSON(message) {
|
|
14535
|
+
const obj = {};
|
|
14536
|
+
if (message.x !== 0) {
|
|
14537
|
+
obj.x = Math.round(message.x);
|
|
14538
|
+
}
|
|
14539
|
+
if (message.y !== 0) {
|
|
14540
|
+
obj.y = Math.round(message.y);
|
|
14541
|
+
}
|
|
14542
|
+
if (message.width !== 0) {
|
|
14543
|
+
obj.width = Math.round(message.width);
|
|
14544
|
+
}
|
|
14545
|
+
if (message.height !== 0) {
|
|
14546
|
+
obj.height = Math.round(message.height);
|
|
14547
|
+
}
|
|
14548
|
+
return obj;
|
|
14549
|
+
},
|
|
14550
|
+
create(base) {
|
|
14551
|
+
return exports.BoundingBox.fromPartial(base ?? {});
|
|
14552
|
+
},
|
|
14553
|
+
fromPartial(object) {
|
|
14554
|
+
const message = createBaseBoundingBox();
|
|
14555
|
+
message.x = object.x ?? 0;
|
|
14556
|
+
message.y = object.y ?? 0;
|
|
14557
|
+
message.width = object.width ?? 0;
|
|
14558
|
+
message.height = object.height ?? 0;
|
|
14559
|
+
return message;
|
|
14560
|
+
},
|
|
14561
|
+
};
|
|
14562
|
+
function createBaseObjectDetection() {
|
|
14563
|
+
return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0 };
|
|
14564
|
+
}
|
|
14565
|
+
exports.ObjectDetection = {
|
|
14566
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14567
|
+
if (message.boundingBox !== undefined) {
|
|
14568
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
14569
|
+
}
|
|
14570
|
+
if (message.confidence !== 0) {
|
|
14571
|
+
writer.uint32(21).float(message.confidence);
|
|
14572
|
+
}
|
|
14573
|
+
if (message.classId !== 0) {
|
|
14574
|
+
writer.uint32(24).uint32(message.classId);
|
|
14575
|
+
}
|
|
14576
|
+
if (message.className !== "") {
|
|
14577
|
+
writer.uint32(34).string(message.className);
|
|
14578
|
+
}
|
|
14579
|
+
if (message.trackingId !== 0) {
|
|
14580
|
+
writer.uint32(40).uint32(message.trackingId);
|
|
14581
|
+
}
|
|
14582
|
+
return writer;
|
|
14583
|
+
},
|
|
14584
|
+
decode(input, length) {
|
|
14585
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14586
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14587
|
+
const message = createBaseObjectDetection();
|
|
14588
|
+
while (reader.pos < end) {
|
|
14589
|
+
const tag = reader.uint32();
|
|
14590
|
+
switch (tag >>> 3) {
|
|
14591
|
+
case 1: {
|
|
14592
|
+
if (tag !== 10) {
|
|
14593
|
+
break;
|
|
14594
|
+
}
|
|
14595
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
14596
|
+
continue;
|
|
14597
|
+
}
|
|
14598
|
+
case 2: {
|
|
14599
|
+
if (tag !== 21) {
|
|
14600
|
+
break;
|
|
14601
|
+
}
|
|
14602
|
+
message.confidence = reader.float();
|
|
14603
|
+
continue;
|
|
14604
|
+
}
|
|
14605
|
+
case 3: {
|
|
14606
|
+
if (tag !== 24) {
|
|
14607
|
+
break;
|
|
14608
|
+
}
|
|
14609
|
+
message.classId = reader.uint32();
|
|
14610
|
+
continue;
|
|
14611
|
+
}
|
|
14612
|
+
case 4: {
|
|
14613
|
+
if (tag !== 34) {
|
|
14614
|
+
break;
|
|
14615
|
+
}
|
|
14616
|
+
message.className = reader.string();
|
|
14617
|
+
continue;
|
|
14618
|
+
}
|
|
14619
|
+
case 5: {
|
|
14620
|
+
if (tag !== 40) {
|
|
14621
|
+
break;
|
|
14622
|
+
}
|
|
14623
|
+
message.trackingId = reader.uint32();
|
|
14624
|
+
continue;
|
|
14625
|
+
}
|
|
14626
|
+
}
|
|
14627
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14628
|
+
break;
|
|
14629
|
+
}
|
|
14630
|
+
reader.skip(tag & 7);
|
|
14631
|
+
}
|
|
14632
|
+
return message;
|
|
14633
|
+
},
|
|
14634
|
+
fromJSON(object) {
|
|
14635
|
+
return {
|
|
14636
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
14637
|
+
confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
|
|
14638
|
+
classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
|
|
14639
|
+
className: isSet(object.className) ? gt.String(object.className) : "",
|
|
14640
|
+
trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
|
|
14641
|
+
};
|
|
14642
|
+
},
|
|
14643
|
+
toJSON(message) {
|
|
14644
|
+
const obj = {};
|
|
14645
|
+
if (message.boundingBox !== undefined) {
|
|
14646
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
14647
|
+
}
|
|
14648
|
+
if (message.confidence !== 0) {
|
|
14649
|
+
obj.confidence = message.confidence;
|
|
14650
|
+
}
|
|
14651
|
+
if (message.classId !== 0) {
|
|
14652
|
+
obj.classId = Math.round(message.classId);
|
|
14653
|
+
}
|
|
14654
|
+
if (message.className !== "") {
|
|
14655
|
+
obj.className = message.className;
|
|
14656
|
+
}
|
|
14657
|
+
if (message.trackingId !== 0) {
|
|
14658
|
+
obj.trackingId = Math.round(message.trackingId);
|
|
14659
|
+
}
|
|
14660
|
+
return obj;
|
|
14661
|
+
},
|
|
14662
|
+
create(base) {
|
|
14663
|
+
return exports.ObjectDetection.fromPartial(base ?? {});
|
|
14664
|
+
},
|
|
14665
|
+
fromPartial(object) {
|
|
14666
|
+
const message = createBaseObjectDetection();
|
|
14667
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
14668
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
14669
|
+
: undefined;
|
|
14670
|
+
message.confidence = object.confidence ?? 0;
|
|
14671
|
+
message.classId = object.classId ?? 0;
|
|
14672
|
+
message.className = object.className ?? "";
|
|
14673
|
+
message.trackingId = object.trackingId ?? 0;
|
|
14674
|
+
return message;
|
|
14675
|
+
},
|
|
14676
|
+
};
|
|
14677
|
+
function createBaseModelDetections() {
|
|
14678
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
14679
|
+
}
|
|
14680
|
+
exports.ModelDetections = {
|
|
14681
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14682
|
+
for (const v of message.detections) {
|
|
14683
|
+
exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
|
|
14684
|
+
}
|
|
14685
|
+
if (message.camera !== 0) {
|
|
14686
|
+
writer.uint32(16).int32(message.camera);
|
|
14687
|
+
}
|
|
14688
|
+
if (message.imageWidth !== 0) {
|
|
14689
|
+
writer.uint32(24).uint32(message.imageWidth);
|
|
14690
|
+
}
|
|
14691
|
+
if (message.imageHeight !== 0) {
|
|
14692
|
+
writer.uint32(32).uint32(message.imageHeight);
|
|
14693
|
+
}
|
|
14694
|
+
if (message.modelName !== "") {
|
|
14695
|
+
writer.uint32(42).string(message.modelName);
|
|
14696
|
+
}
|
|
14697
|
+
return writer;
|
|
14698
|
+
},
|
|
14699
|
+
decode(input, length) {
|
|
14700
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14702
|
+
const message = createBaseModelDetections();
|
|
14703
|
+
while (reader.pos < end) {
|
|
14704
|
+
const tag = reader.uint32();
|
|
14705
|
+
switch (tag >>> 3) {
|
|
14706
|
+
case 1: {
|
|
14707
|
+
if (tag !== 10) {
|
|
14708
|
+
break;
|
|
14709
|
+
}
|
|
14710
|
+
message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
|
|
14711
|
+
continue;
|
|
14712
|
+
}
|
|
14713
|
+
case 2: {
|
|
14714
|
+
if (tag !== 16) {
|
|
14715
|
+
break;
|
|
14716
|
+
}
|
|
14717
|
+
message.camera = reader.int32();
|
|
14718
|
+
continue;
|
|
14719
|
+
}
|
|
14720
|
+
case 3: {
|
|
14721
|
+
if (tag !== 24) {
|
|
14722
|
+
break;
|
|
14723
|
+
}
|
|
14724
|
+
message.imageWidth = reader.uint32();
|
|
14725
|
+
continue;
|
|
14726
|
+
}
|
|
14727
|
+
case 4: {
|
|
14728
|
+
if (tag !== 32) {
|
|
14729
|
+
break;
|
|
14730
|
+
}
|
|
14731
|
+
message.imageHeight = reader.uint32();
|
|
14732
|
+
continue;
|
|
14733
|
+
}
|
|
14734
|
+
case 5: {
|
|
14735
|
+
if (tag !== 42) {
|
|
14736
|
+
break;
|
|
14737
|
+
}
|
|
14738
|
+
message.modelName = reader.string();
|
|
14739
|
+
continue;
|
|
14740
|
+
}
|
|
14741
|
+
}
|
|
14742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14743
|
+
break;
|
|
14744
|
+
}
|
|
14745
|
+
reader.skip(tag & 7);
|
|
14746
|
+
}
|
|
14747
|
+
return message;
|
|
14748
|
+
},
|
|
14749
|
+
fromJSON(object) {
|
|
14750
|
+
return {
|
|
14751
|
+
detections: gt.Array.isArray(object?.detections)
|
|
14752
|
+
? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
|
|
14753
|
+
: [],
|
|
14754
|
+
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
14755
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
14756
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
14757
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
14758
|
+
};
|
|
14759
|
+
},
|
|
14760
|
+
toJSON(message) {
|
|
14761
|
+
const obj = {};
|
|
14762
|
+
if (message.detections?.length) {
|
|
14763
|
+
obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
|
|
14764
|
+
}
|
|
14765
|
+
if (message.camera !== 0) {
|
|
14766
|
+
obj.camera = cameraToJSON(message.camera);
|
|
14767
|
+
}
|
|
14768
|
+
if (message.imageWidth !== 0) {
|
|
14769
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
14770
|
+
}
|
|
14771
|
+
if (message.imageHeight !== 0) {
|
|
14772
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
14773
|
+
}
|
|
14774
|
+
if (message.modelName !== "") {
|
|
14775
|
+
obj.modelName = message.modelName;
|
|
14776
|
+
}
|
|
14777
|
+
return obj;
|
|
14778
|
+
},
|
|
14779
|
+
create(base) {
|
|
14780
|
+
return exports.ModelDetections.fromPartial(base ?? {});
|
|
14781
|
+
},
|
|
14782
|
+
fromPartial(object) {
|
|
14783
|
+
const message = createBaseModelDetections();
|
|
14784
|
+
message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
|
|
14785
|
+
message.camera = object.camera ?? 0;
|
|
14786
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
14787
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
14788
|
+
message.modelName = object.modelName ?? "";
|
|
13696
14789
|
return message;
|
|
13697
14790
|
},
|
|
13698
14791
|
};
|