@blueyerobotics/protocol-definitions 3.2.0-6025f25a → 3.2.0-61128f19

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.
@@ -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.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = 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.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = 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.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = 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 = void 0;
10
- exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = 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 = void 0;
8
+ exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.LaserDetection = exports.Point2D = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SotState_State = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CvModelInfo_ModelType = 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.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 = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = void 0;
10
+ exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = 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 = exports.DroneInfo = exports.CvModelInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = 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,8 +60,12 @@ 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;
67
+ exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
68
+ exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
63
69
  exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
64
70
  exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
65
71
  exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
@@ -68,12 +74,16 @@ exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFro
68
74
  exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
69
75
  exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
70
76
  exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
77
+ exports.cvModelInfo_ModelTypeFromJSON = cvModelInfo_ModelTypeFromJSON;
78
+ exports.cvModelInfo_ModelTypeToJSON = cvModelInfo_ModelTypeToJSON;
71
79
  exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
72
80
  exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
73
81
  exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
74
82
  exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
75
83
  exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
76
84
  exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
85
+ exports.sotState_StateFromJSON = sotState_StateFromJSON;
86
+ exports.sotState_StateToJSON = sotState_StateToJSON;
77
87
  /* eslint-disable */
78
88
  const wire_1 = require("@bufbuild/protobuf/wire");
79
89
  const any_1 = require("./google/protobuf/any");
@@ -365,6 +375,8 @@ var NotificationType;
365
375
  NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED"] = 31] = "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
366
376
  /** NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED - DVL thermal protection mode detected. */
367
377
  NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED"] = 32] = "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
378
+ /** NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED - Video partition not mounted. */
379
+ NotificationType[NotificationType["NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED"] = 33] = "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
368
380
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
369
381
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
370
382
  function notificationTypeFromJSON(object) {
@@ -468,6 +480,9 @@ function notificationTypeFromJSON(object) {
468
480
  case 32:
469
481
  case "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED":
470
482
  return NotificationType.NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED;
483
+ case 33:
484
+ case "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED":
485
+ return NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED;
471
486
  case -1:
472
487
  case "UNRECOGNIZED":
473
488
  default:
@@ -542,6 +557,8 @@ function notificationTypeToJSON(object) {
542
557
  return "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
543
558
  case NotificationType.NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED:
544
559
  return "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
560
+ case NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED:
561
+ return "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
545
562
  case NotificationType.UNRECOGNIZED:
546
563
  default:
547
564
  return "UNRECOGNIZED";
@@ -655,6 +672,8 @@ var Model;
655
672
  Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
656
673
  /** MODEL_X3_ULTRA - Blueye X3 Ultra. */
657
674
  Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
675
+ /** MODEL_X7 - Blueye X7. */
676
+ Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
658
677
  /** MODEL_NEXT - Blueye ? */
659
678
  Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
660
679
  Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -679,6 +698,9 @@ function modelFromJSON(object) {
679
698
  case 6:
680
699
  case "MODEL_X3_ULTRA":
681
700
  return Model.MODEL_X3_ULTRA;
701
+ case 7:
702
+ case "MODEL_X7":
703
+ return Model.MODEL_X7;
682
704
  case 5:
683
705
  case "MODEL_NEXT":
684
706
  return Model.MODEL_NEXT;
@@ -702,6 +724,8 @@ function modelToJSON(object) {
702
724
  return "MODEL_X3";
703
725
  case Model.MODEL_X3_ULTRA:
704
726
  return "MODEL_X3_ULTRA";
727
+ case Model.MODEL_X7:
728
+ return "MODEL_X7";
705
729
  case Model.MODEL_NEXT:
706
730
  return "MODEL_NEXT";
707
731
  case Model.UNRECOGNIZED:
@@ -777,6 +801,8 @@ var Resolution;
777
801
  Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
778
802
  /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
779
803
  Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
804
+ /** RESOLUTION_QHD_2K - 2K QHD (2560x1440, Only supported on X3 Ultra). */
805
+ Resolution[Resolution["RESOLUTION_QHD_2K"] = 5] = "RESOLUTION_QHD_2K";
780
806
  Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
781
807
  })(Resolution || (exports.Resolution = Resolution = {}));
782
808
  function resolutionFromJSON(object) {
@@ -796,6 +822,9 @@ function resolutionFromJSON(object) {
796
822
  case 3:
797
823
  case "RESOLUTION_UHD_4K":
798
824
  return Resolution.RESOLUTION_UHD_4K;
825
+ case 5:
826
+ case "RESOLUTION_QHD_2K":
827
+ return Resolution.RESOLUTION_QHD_2K;
799
828
  case -1:
800
829
  case "UNRECOGNIZED":
801
830
  default:
@@ -814,12 +843,19 @@ function resolutionToJSON(object) {
814
843
  return "RESOLUTION_FULLHD_1080P";
815
844
  case Resolution.RESOLUTION_UHD_4K:
816
845
  return "RESOLUTION_UHD_4K";
846
+ case Resolution.RESOLUTION_QHD_2K:
847
+ return "RESOLUTION_QHD_2K";
817
848
  case Resolution.UNRECOGNIZED:
818
849
  default:
819
850
  return "UNRECOGNIZED";
820
851
  }
821
852
  }
822
- /** Available camera frame rates. */
853
+ /**
854
+ * Available camera frame rates.
855
+ *
856
+ * If the requested frame rate is higher than what is supported at the current resolution,
857
+ * the frame rate will be reduced while the resolution is respected.
858
+ */
823
859
  var Framerate;
824
860
  (function (Framerate) {
825
861
  /** FRAMERATE_UNSPECIFIED - Framerate not specified. */
@@ -828,6 +864,8 @@ var Framerate;
828
864
  Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
829
865
  /** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
830
866
  Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
867
+ /** FRAMERATE_FPS_60 - 60 frames per second. (Only supported on X3 Ultra at QHD, 1080p and 720p) */
868
+ Framerate[Framerate["FRAMERATE_FPS_60"] = 3] = "FRAMERATE_FPS_60";
831
869
  Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
832
870
  })(Framerate || (exports.Framerate = Framerate = {}));
833
871
  function framerateFromJSON(object) {
@@ -841,6 +879,9 @@ function framerateFromJSON(object) {
841
879
  case 2:
842
880
  case "FRAMERATE_FPS_25":
843
881
  return Framerate.FRAMERATE_FPS_25;
882
+ case 3:
883
+ case "FRAMERATE_FPS_60":
884
+ return Framerate.FRAMERATE_FPS_60;
844
885
  case -1:
845
886
  case "UNRECOGNIZED":
846
887
  default:
@@ -855,6 +896,8 @@ function framerateToJSON(object) {
855
896
  return "FRAMERATE_FPS_30";
856
897
  case Framerate.FRAMERATE_FPS_25:
857
898
  return "FRAMERATE_FPS_25";
899
+ case Framerate.FRAMERATE_FPS_60:
900
+ return "FRAMERATE_FPS_60";
858
901
  case Framerate.UNRECOGNIZED:
859
902
  default:
860
903
  return "UNRECOGNIZED";
@@ -941,6 +984,47 @@ function streamingProtocolToJSON(object) {
941
984
  return "UNRECOGNIZED";
942
985
  }
943
986
  }
987
+ /** Recording video codec. */
988
+ var RecordingCodec;
989
+ (function (RecordingCodec) {
990
+ /** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
991
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_UNSPECIFIED"] = 0] = "RECORDING_CODEC_UNSPECIFIED";
992
+ /** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
993
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_H264"] = 1] = "RECORDING_CODEC_H264";
994
+ /** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
995
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_H265"] = 2] = "RECORDING_CODEC_H265";
996
+ RecordingCodec[RecordingCodec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
997
+ })(RecordingCodec || (exports.RecordingCodec = RecordingCodec = {}));
998
+ function recordingCodecFromJSON(object) {
999
+ switch (object) {
1000
+ case 0:
1001
+ case "RECORDING_CODEC_UNSPECIFIED":
1002
+ return RecordingCodec.RECORDING_CODEC_UNSPECIFIED;
1003
+ case 1:
1004
+ case "RECORDING_CODEC_H264":
1005
+ return RecordingCodec.RECORDING_CODEC_H264;
1006
+ case 2:
1007
+ case "RECORDING_CODEC_H265":
1008
+ return RecordingCodec.RECORDING_CODEC_H265;
1009
+ case -1:
1010
+ case "UNRECOGNIZED":
1011
+ default:
1012
+ return RecordingCodec.UNRECOGNIZED;
1013
+ }
1014
+ }
1015
+ function recordingCodecToJSON(object) {
1016
+ switch (object) {
1017
+ case RecordingCodec.RECORDING_CODEC_UNSPECIFIED:
1018
+ return "RECORDING_CODEC_UNSPECIFIED";
1019
+ case RecordingCodec.RECORDING_CODEC_H264:
1020
+ return "RECORDING_CODEC_H264";
1021
+ case RecordingCodec.RECORDING_CODEC_H265:
1022
+ return "RECORDING_CODEC_H265";
1023
+ case RecordingCodec.UNRECOGNIZED:
1024
+ default:
1025
+ return "UNRECOGNIZED";
1026
+ }
1027
+ }
944
1028
  /** Available temperature units. */
945
1029
  var TemperatureUnit;
946
1030
  (function (TemperatureUnit) {
@@ -1129,6 +1213,8 @@ var FontSize;
1129
1213
  FontSize[FontSize["FONT_SIZE_PX35"] = 5] = "FONT_SIZE_PX35";
1130
1214
  /** FONT_SIZE_PX40 - 40 px. */
1131
1215
  FontSize[FontSize["FONT_SIZE_PX40"] = 6] = "FONT_SIZE_PX40";
1216
+ /** FONT_SIZE_PX50 - 50 px. */
1217
+ FontSize[FontSize["FONT_SIZE_PX50"] = 7] = "FONT_SIZE_PX50";
1132
1218
  FontSize[FontSize["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1133
1219
  })(FontSize || (exports.FontSize = FontSize = {}));
1134
1220
  function fontSizeFromJSON(object) {
@@ -1154,6 +1240,9 @@ function fontSizeFromJSON(object) {
1154
1240
  case 6:
1155
1241
  case "FONT_SIZE_PX40":
1156
1242
  return FontSize.FONT_SIZE_PX40;
1243
+ case 7:
1244
+ case "FONT_SIZE_PX50":
1245
+ return FontSize.FONT_SIZE_PX50;
1157
1246
  case -1:
1158
1247
  case "UNRECOGNIZED":
1159
1248
  default:
@@ -1176,6 +1265,8 @@ function fontSizeToJSON(object) {
1176
1265
  return "FONT_SIZE_PX35";
1177
1266
  case FontSize.FONT_SIZE_PX40:
1178
1267
  return "FONT_SIZE_PX40";
1268
+ case FontSize.FONT_SIZE_PX50:
1269
+ return "FONT_SIZE_PX50";
1179
1270
  case FontSize.UNRECOGNIZED:
1180
1271
  default:
1181
1272
  return "UNRECOGNIZED";
@@ -1274,8 +1365,14 @@ var GuestPortDeviceID;
1274
1365
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
1275
1366
  /** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
1276
1367
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1277
- /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
1368
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage. */
1278
1369
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1370
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
1371
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1372
+ /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
1373
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1374
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
1375
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER"] = 48] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
1279
1376
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1280
1377
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1281
1378
  function guestPortDeviceIDFromJSON(object) {
@@ -1418,6 +1515,15 @@ function guestPortDeviceIDFromJSON(object) {
1418
1515
  case 45:
1419
1516
  case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
1420
1517
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
1518
+ case 46:
1519
+ case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
1520
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
1521
+ case 47:
1522
+ case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
1523
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
1524
+ case 48:
1525
+ case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER":
1526
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER;
1421
1527
  case -1:
1422
1528
  case "UNRECOGNIZED":
1423
1529
  default:
@@ -1518,6 +1624,12 @@ function guestPortDeviceIDToJSON(object) {
1518
1624
  return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1519
1625
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
1520
1626
  return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1627
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
1628
+ return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1629
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
1630
+ return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1631
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER:
1632
+ return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
1521
1633
  case GuestPortDeviceID.UNRECOGNIZED:
1522
1634
  default:
1523
1635
  return "UNRECOGNIZED";
@@ -1794,6 +1906,47 @@ function multibeamFrequencyModeToJSON(object) {
1794
1906
  return "UNRECOGNIZED";
1795
1907
  }
1796
1908
  }
1909
+ /** Thermal zone identifiers. */
1910
+ var ThermalZoneId;
1911
+ (function (ThermalZoneId) {
1912
+ /** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
1913
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_UNSPECIFIED"] = 0] = "THERMAL_ZONE_ID_UNSPECIFIED";
1914
+ /** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
1915
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_TJ"] = 1] = "THERMAL_ZONE_ID_TJ";
1916
+ /** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
1917
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_CANISTER"] = 2] = "THERMAL_ZONE_ID_CANISTER";
1918
+ ThermalZoneId[ThermalZoneId["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1919
+ })(ThermalZoneId || (exports.ThermalZoneId = ThermalZoneId = {}));
1920
+ function thermalZoneIdFromJSON(object) {
1921
+ switch (object) {
1922
+ case 0:
1923
+ case "THERMAL_ZONE_ID_UNSPECIFIED":
1924
+ return ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED;
1925
+ case 1:
1926
+ case "THERMAL_ZONE_ID_TJ":
1927
+ return ThermalZoneId.THERMAL_ZONE_ID_TJ;
1928
+ case 2:
1929
+ case "THERMAL_ZONE_ID_CANISTER":
1930
+ return ThermalZoneId.THERMAL_ZONE_ID_CANISTER;
1931
+ case -1:
1932
+ case "UNRECOGNIZED":
1933
+ default:
1934
+ return ThermalZoneId.UNRECOGNIZED;
1935
+ }
1936
+ }
1937
+ function thermalZoneIdToJSON(object) {
1938
+ switch (object) {
1939
+ case ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED:
1940
+ return "THERMAL_ZONE_ID_UNSPECIFIED";
1941
+ case ThermalZoneId.THERMAL_ZONE_ID_TJ:
1942
+ return "THERMAL_ZONE_ID_TJ";
1943
+ case ThermalZoneId.THERMAL_ZONE_ID_CANISTER:
1944
+ return "THERMAL_ZONE_ID_CANISTER";
1945
+ case ThermalZoneId.UNRECOGNIZED:
1946
+ default:
1947
+ return "UNRECOGNIZED";
1948
+ }
1949
+ }
1797
1950
  var LogEntry_LogLevel;
1798
1951
  (function (LogEntry_LogLevel) {
1799
1952
  /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
@@ -1862,6 +2015,89 @@ function logEntry_LogLevelToJSON(object) {
1862
2015
  return "UNRECOGNIZED";
1863
2016
  }
1864
2017
  }
2018
+ /** Kernel log level. */
2019
+ var KernelLogEntry_KernelLogLevel;
2020
+ (function (KernelLogEntry_KernelLogLevel) {
2021
+ /** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
2022
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
2023
+ /** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
2024
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
2025
+ /** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
2026
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
2027
+ /** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
2028
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
2029
+ /** KERNEL_LOG_LEVEL_ERR - Error log level. */
2030
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
2031
+ /** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
2032
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
2033
+ /** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
2034
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
2035
+ /** KERNEL_LOG_LEVEL_INFO - Informational log level. */
2036
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
2037
+ /** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
2038
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
2039
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2040
+ })(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
2041
+ function kernelLogEntry_KernelLogLevelFromJSON(object) {
2042
+ switch (object) {
2043
+ case 0:
2044
+ case "KERNEL_LOG_LEVEL_UNSPECIFIED":
2045
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
2046
+ case 1:
2047
+ case "KERNEL_LOG_LEVEL_EMERG":
2048
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
2049
+ case 2:
2050
+ case "KERNEL_LOG_LEVEL_ALERT":
2051
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
2052
+ case 3:
2053
+ case "KERNEL_LOG_LEVEL_CRIT":
2054
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
2055
+ case 4:
2056
+ case "KERNEL_LOG_LEVEL_ERR":
2057
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
2058
+ case 5:
2059
+ case "KERNEL_LOG_LEVEL_WARNING":
2060
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
2061
+ case 6:
2062
+ case "KERNEL_LOG_LEVEL_NOTICE":
2063
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
2064
+ case 7:
2065
+ case "KERNEL_LOG_LEVEL_INFO":
2066
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
2067
+ case 8:
2068
+ case "KERNEL_LOG_LEVEL_DEBUG":
2069
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
2070
+ case -1:
2071
+ case "UNRECOGNIZED":
2072
+ default:
2073
+ return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
2074
+ }
2075
+ }
2076
+ function kernelLogEntry_KernelLogLevelToJSON(object) {
2077
+ switch (object) {
2078
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
2079
+ return "KERNEL_LOG_LEVEL_UNSPECIFIED";
2080
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
2081
+ return "KERNEL_LOG_LEVEL_EMERG";
2082
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
2083
+ return "KERNEL_LOG_LEVEL_ALERT";
2084
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
2085
+ return "KERNEL_LOG_LEVEL_CRIT";
2086
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
2087
+ return "KERNEL_LOG_LEVEL_ERR";
2088
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
2089
+ return "KERNEL_LOG_LEVEL_WARNING";
2090
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
2091
+ return "KERNEL_LOG_LEVEL_NOTICE";
2092
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
2093
+ return "KERNEL_LOG_LEVEL_INFO";
2094
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
2095
+ return "KERNEL_LOG_LEVEL_DEBUG";
2096
+ case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
2097
+ default:
2098
+ return "UNRECOGNIZED";
2099
+ }
2100
+ }
1865
2101
  var PingerConfiguration_MountingDirection;
1866
2102
  (function (PingerConfiguration_MountingDirection) {
1867
2103
  /** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
@@ -1983,10 +2219,12 @@ var RemovableStorageDevice_Status;
1983
2219
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
1984
2220
  /** STATUS_READY - The storage device is valid and ready for use. */
1985
2221
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
1986
- /** STATUS_FORMATTING - The storage device is being formatted */
2222
+ /** STATUS_FORMATTING - The storage device is being formatted. */
1987
2223
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
1988
2224
  /** STATUS_ERROR - The storage device is in an error state. */
1989
2225
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
2226
+ /** STATUS_UNPLUGGED - The storage device is not present. */
2227
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNPLUGGED"] = 4] = "STATUS_UNPLUGGED";
1990
2228
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1991
2229
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
1992
2230
  function removableStorageDevice_StatusFromJSON(object) {
@@ -2003,6 +2241,9 @@ function removableStorageDevice_StatusFromJSON(object) {
2003
2241
  case 3:
2004
2242
  case "STATUS_ERROR":
2005
2243
  return RemovableStorageDevice_Status.STATUS_ERROR;
2244
+ case 4:
2245
+ case "STATUS_UNPLUGGED":
2246
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
2006
2247
  case -1:
2007
2248
  case "UNRECOGNIZED":
2008
2249
  default:
@@ -2019,6 +2260,8 @@ function removableStorageDevice_StatusToJSON(object) {
2019
2260
  return "STATUS_FORMATTING";
2020
2261
  case RemovableStorageDevice_Status.STATUS_ERROR:
2021
2262
  return "STATUS_ERROR";
2263
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2264
+ return "STATUS_UNPLUGGED";
2022
2265
  case RemovableStorageDevice_Status.UNRECOGNIZED:
2023
2266
  default:
2024
2267
  return "UNRECOGNIZED";
@@ -2118,6 +2361,43 @@ function calibrationState_StatusToJSON(object) {
2118
2361
  return "UNRECOGNIZED";
2119
2362
  }
2120
2363
  }
2364
+ var CvModelInfo_ModelType;
2365
+ (function (CvModelInfo_ModelType) {
2366
+ CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_UNSPECIFIED"] = 0] = "MODEL_TYPE_UNSPECIFIED";
2367
+ CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_DETECTION"] = 1] = "MODEL_TYPE_DETECTION";
2368
+ CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_SOT"] = 2] = "MODEL_TYPE_SOT";
2369
+ CvModelInfo_ModelType[CvModelInfo_ModelType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2370
+ })(CvModelInfo_ModelType || (exports.CvModelInfo_ModelType = CvModelInfo_ModelType = {}));
2371
+ function cvModelInfo_ModelTypeFromJSON(object) {
2372
+ switch (object) {
2373
+ case 0:
2374
+ case "MODEL_TYPE_UNSPECIFIED":
2375
+ return CvModelInfo_ModelType.MODEL_TYPE_UNSPECIFIED;
2376
+ case 1:
2377
+ case "MODEL_TYPE_DETECTION":
2378
+ return CvModelInfo_ModelType.MODEL_TYPE_DETECTION;
2379
+ case 2:
2380
+ case "MODEL_TYPE_SOT":
2381
+ return CvModelInfo_ModelType.MODEL_TYPE_SOT;
2382
+ case -1:
2383
+ case "UNRECOGNIZED":
2384
+ default:
2385
+ return CvModelInfo_ModelType.UNRECOGNIZED;
2386
+ }
2387
+ }
2388
+ function cvModelInfo_ModelTypeToJSON(object) {
2389
+ switch (object) {
2390
+ case CvModelInfo_ModelType.MODEL_TYPE_UNSPECIFIED:
2391
+ return "MODEL_TYPE_UNSPECIFIED";
2392
+ case CvModelInfo_ModelType.MODEL_TYPE_DETECTION:
2393
+ return "MODEL_TYPE_DETECTION";
2394
+ case CvModelInfo_ModelType.MODEL_TYPE_SOT:
2395
+ return "MODEL_TYPE_SOT";
2396
+ case CvModelInfo_ModelType.UNRECOGNIZED:
2397
+ default:
2398
+ return "UNRECOGNIZED";
2399
+ }
2400
+ }
2121
2401
  /** Defines the desired ping rate to use when capturing sonar data. */
2122
2402
  var MultibeamConfig_PingRate;
2123
2403
  (function (MultibeamConfig_PingRate) {
@@ -2283,6 +2563,54 @@ function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
2283
2563
  return "UNRECOGNIZED";
2284
2564
  }
2285
2565
  }
2566
+ /** Current state of the SOT tracker. */
2567
+ var SotState_State;
2568
+ (function (SotState_State) {
2569
+ /** STATE_UNSPECIFIED - Unspecified state. */
2570
+ SotState_State[SotState_State["STATE_UNSPECIFIED"] = 0] = "STATE_UNSPECIFIED";
2571
+ /** STATE_IDLE - No target selected, waiting for a target bounding box. */
2572
+ SotState_State[SotState_State["STATE_IDLE"] = 1] = "STATE_IDLE";
2573
+ /** STATE_TRACKING - Actively tracking a target. */
2574
+ SotState_State[SotState_State["STATE_TRACKING"] = 2] = "STATE_TRACKING";
2575
+ /** STATE_LOST - Target was lost (tracker failed to follow the object). */
2576
+ SotState_State[SotState_State["STATE_LOST"] = 3] = "STATE_LOST";
2577
+ SotState_State[SotState_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2578
+ })(SotState_State || (exports.SotState_State = SotState_State = {}));
2579
+ function sotState_StateFromJSON(object) {
2580
+ switch (object) {
2581
+ case 0:
2582
+ case "STATE_UNSPECIFIED":
2583
+ return SotState_State.STATE_UNSPECIFIED;
2584
+ case 1:
2585
+ case "STATE_IDLE":
2586
+ return SotState_State.STATE_IDLE;
2587
+ case 2:
2588
+ case "STATE_TRACKING":
2589
+ return SotState_State.STATE_TRACKING;
2590
+ case 3:
2591
+ case "STATE_LOST":
2592
+ return SotState_State.STATE_LOST;
2593
+ case -1:
2594
+ case "UNRECOGNIZED":
2595
+ default:
2596
+ return SotState_State.UNRECOGNIZED;
2597
+ }
2598
+ }
2599
+ function sotState_StateToJSON(object) {
2600
+ switch (object) {
2601
+ case SotState_State.STATE_UNSPECIFIED:
2602
+ return "STATE_UNSPECIFIED";
2603
+ case SotState_State.STATE_IDLE:
2604
+ return "STATE_IDLE";
2605
+ case SotState_State.STATE_TRACKING:
2606
+ return "STATE_TRACKING";
2607
+ case SotState_State.STATE_LOST:
2608
+ return "STATE_LOST";
2609
+ case SotState_State.UNRECOGNIZED:
2610
+ default:
2611
+ return "UNRECOGNIZED";
2612
+ }
2613
+ }
2286
2614
  function createBaseBinlogRecord() {
2287
2615
  return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
2288
2616
  }
@@ -2511,6 +2839,189 @@ exports.LogEntry = {
2511
2839
  return message;
2512
2840
  },
2513
2841
  };
2842
+ function createBaseKernelLogEntry() {
2843
+ return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
2844
+ }
2845
+ exports.KernelLogEntry = {
2846
+ encode(message, writer = new wire_1.BinaryWriter()) {
2847
+ if (message.level !== 0) {
2848
+ writer.uint32(8).int32(message.level);
2849
+ }
2850
+ if (message.seqnum !== 0) {
2851
+ writer.uint32(16).uint32(message.seqnum);
2852
+ }
2853
+ if (message.timestamp !== undefined) {
2854
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
2855
+ }
2856
+ for (const v of message.messages) {
2857
+ writer.uint32(34).string(v);
2858
+ }
2859
+ for (const v of message.fields) {
2860
+ exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
2861
+ }
2862
+ return writer;
2863
+ },
2864
+ decode(input, length) {
2865
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2866
+ const end = length === undefined ? reader.len : reader.pos + length;
2867
+ const message = createBaseKernelLogEntry();
2868
+ while (reader.pos < end) {
2869
+ const tag = reader.uint32();
2870
+ switch (tag >>> 3) {
2871
+ case 1: {
2872
+ if (tag !== 8) {
2873
+ break;
2874
+ }
2875
+ message.level = reader.int32();
2876
+ continue;
2877
+ }
2878
+ case 2: {
2879
+ if (tag !== 16) {
2880
+ break;
2881
+ }
2882
+ message.seqnum = reader.uint32();
2883
+ continue;
2884
+ }
2885
+ case 3: {
2886
+ if (tag !== 26) {
2887
+ break;
2888
+ }
2889
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2890
+ continue;
2891
+ }
2892
+ case 4: {
2893
+ if (tag !== 34) {
2894
+ break;
2895
+ }
2896
+ message.messages.push(reader.string());
2897
+ continue;
2898
+ }
2899
+ case 5: {
2900
+ if (tag !== 42) {
2901
+ break;
2902
+ }
2903
+ message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
2904
+ continue;
2905
+ }
2906
+ }
2907
+ if ((tag & 7) === 4 || tag === 0) {
2908
+ break;
2909
+ }
2910
+ reader.skip(tag & 7);
2911
+ }
2912
+ return message;
2913
+ },
2914
+ fromJSON(object) {
2915
+ return {
2916
+ level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
2917
+ seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
2918
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2919
+ messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
2920
+ fields: gt.Array.isArray(object?.fields)
2921
+ ? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
2922
+ : [],
2923
+ };
2924
+ },
2925
+ toJSON(message) {
2926
+ const obj = {};
2927
+ if (message.level !== 0) {
2928
+ obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
2929
+ }
2930
+ if (message.seqnum !== 0) {
2931
+ obj.seqnum = Math.round(message.seqnum);
2932
+ }
2933
+ if (message.timestamp !== undefined) {
2934
+ obj.timestamp = message.timestamp.toISOString();
2935
+ }
2936
+ if (message.messages?.length) {
2937
+ obj.messages = message.messages;
2938
+ }
2939
+ if (message.fields?.length) {
2940
+ obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
2941
+ }
2942
+ return obj;
2943
+ },
2944
+ create(base) {
2945
+ return exports.KernelLogEntry.fromPartial(base ?? {});
2946
+ },
2947
+ fromPartial(object) {
2948
+ const message = createBaseKernelLogEntry();
2949
+ message.level = object.level ?? 0;
2950
+ message.seqnum = object.seqnum ?? 0;
2951
+ message.timestamp = object.timestamp ?? undefined;
2952
+ message.messages = object.messages?.map((e) => e) || [];
2953
+ message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
2954
+ return message;
2955
+ },
2956
+ };
2957
+ function createBaseKernelLogEntry_KeyValuePair() {
2958
+ return { key: "", value: "" };
2959
+ }
2960
+ exports.KernelLogEntry_KeyValuePair = {
2961
+ encode(message, writer = new wire_1.BinaryWriter()) {
2962
+ if (message.key !== "") {
2963
+ writer.uint32(10).string(message.key);
2964
+ }
2965
+ if (message.value !== "") {
2966
+ writer.uint32(18).string(message.value);
2967
+ }
2968
+ return writer;
2969
+ },
2970
+ decode(input, length) {
2971
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2972
+ const end = length === undefined ? reader.len : reader.pos + length;
2973
+ const message = createBaseKernelLogEntry_KeyValuePair();
2974
+ while (reader.pos < end) {
2975
+ const tag = reader.uint32();
2976
+ switch (tag >>> 3) {
2977
+ case 1: {
2978
+ if (tag !== 10) {
2979
+ break;
2980
+ }
2981
+ message.key = reader.string();
2982
+ continue;
2983
+ }
2984
+ case 2: {
2985
+ if (tag !== 18) {
2986
+ break;
2987
+ }
2988
+ message.value = reader.string();
2989
+ continue;
2990
+ }
2991
+ }
2992
+ if ((tag & 7) === 4 || tag === 0) {
2993
+ break;
2994
+ }
2995
+ reader.skip(tag & 7);
2996
+ }
2997
+ return message;
2998
+ },
2999
+ fromJSON(object) {
3000
+ return {
3001
+ key: isSet(object.key) ? gt.String(object.key) : "",
3002
+ value: isSet(object.value) ? gt.String(object.value) : "",
3003
+ };
3004
+ },
3005
+ toJSON(message) {
3006
+ const obj = {};
3007
+ if (message.key !== "") {
3008
+ obj.key = message.key;
3009
+ }
3010
+ if (message.value !== "") {
3011
+ obj.value = message.value;
3012
+ }
3013
+ return obj;
3014
+ },
3015
+ create(base) {
3016
+ return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
3017
+ },
3018
+ fromPartial(object) {
3019
+ const message = createBaseKernelLogEntry_KeyValuePair();
3020
+ message.key = object.key ?? "";
3021
+ message.value = object.value ?? "";
3022
+ return message;
3023
+ },
3024
+ };
2514
3025
  function createBaseMotionInput() {
2515
3026
  return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
2516
3027
  }
@@ -2721,13 +3232,16 @@ exports.Lights = {
2721
3232
  },
2722
3233
  };
2723
3234
  function createBaseLaser() {
2724
- return { value: 0 };
3235
+ return { value: 0, modulated: false };
2725
3236
  }
2726
3237
  exports.Laser = {
2727
3238
  encode(message, writer = new wire_1.BinaryWriter()) {
2728
3239
  if (message.value !== 0) {
2729
3240
  writer.uint32(13).float(message.value);
2730
3241
  }
3242
+ if (message.modulated !== false) {
3243
+ writer.uint32(16).bool(message.modulated);
3244
+ }
2731
3245
  return writer;
2732
3246
  },
2733
3247
  decode(input, length) {
@@ -2744,6 +3258,13 @@ exports.Laser = {
2744
3258
  message.value = reader.float();
2745
3259
  continue;
2746
3260
  }
3261
+ case 2: {
3262
+ if (tag !== 16) {
3263
+ break;
3264
+ }
3265
+ message.modulated = reader.bool();
3266
+ continue;
3267
+ }
2747
3268
  }
2748
3269
  if ((tag & 7) === 4 || tag === 0) {
2749
3270
  break;
@@ -2753,13 +3274,19 @@ exports.Laser = {
2753
3274
  return message;
2754
3275
  },
2755
3276
  fromJSON(object) {
2756
- return { value: isSet(object.value) ? gt.Number(object.value) : 0 };
3277
+ return {
3278
+ value: isSet(object.value) ? gt.Number(object.value) : 0,
3279
+ modulated: isSet(object.modulated) ? gt.Boolean(object.modulated) : false,
3280
+ };
2757
3281
  },
2758
3282
  toJSON(message) {
2759
3283
  const obj = {};
2760
3284
  if (message.value !== 0) {
2761
3285
  obj.value = message.value;
2762
3286
  }
3287
+ if (message.modulated !== false) {
3288
+ obj.modulated = message.modulated;
3289
+ }
2763
3290
  return obj;
2764
3291
  },
2765
3292
  create(base) {
@@ -2768,41 +3295,42 @@ exports.Laser = {
2768
3295
  fromPartial(object) {
2769
3296
  const message = createBaseLaser();
2770
3297
  message.value = object.value ?? 0;
3298
+ message.modulated = object.modulated ?? false;
2771
3299
  return message;
2772
3300
  },
2773
3301
  };
2774
- function createBaseLatLongPosition() {
2775
- return { latitude: 0, longitude: 0 };
3302
+ function createBasePoint2D() {
3303
+ return { x: 0, y: 0 };
2776
3304
  }
2777
- exports.LatLongPosition = {
3305
+ exports.Point2D = {
2778
3306
  encode(message, writer = new wire_1.BinaryWriter()) {
2779
- if (message.latitude !== 0) {
2780
- writer.uint32(9).double(message.latitude);
3307
+ if (message.x !== 0) {
3308
+ writer.uint32(13).float(message.x);
2781
3309
  }
2782
- if (message.longitude !== 0) {
2783
- writer.uint32(17).double(message.longitude);
3310
+ if (message.y !== 0) {
3311
+ writer.uint32(21).float(message.y);
2784
3312
  }
2785
3313
  return writer;
2786
3314
  },
2787
3315
  decode(input, length) {
2788
3316
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2789
3317
  const end = length === undefined ? reader.len : reader.pos + length;
2790
- const message = createBaseLatLongPosition();
3318
+ const message = createBasePoint2D();
2791
3319
  while (reader.pos < end) {
2792
3320
  const tag = reader.uint32();
2793
3321
  switch (tag >>> 3) {
2794
3322
  case 1: {
2795
- if (tag !== 9) {
3323
+ if (tag !== 13) {
2796
3324
  break;
2797
3325
  }
2798
- message.latitude = reader.double();
3326
+ message.x = reader.float();
2799
3327
  continue;
2800
3328
  }
2801
3329
  case 2: {
2802
- if (tag !== 17) {
3330
+ if (tag !== 21) {
2803
3331
  break;
2804
3332
  }
2805
- message.longitude = reader.double();
3333
+ message.y = reader.float();
2806
3334
  continue;
2807
3335
  }
2808
3336
  }
@@ -2814,17 +3342,281 @@ exports.LatLongPosition = {
2814
3342
  return message;
2815
3343
  },
2816
3344
  fromJSON(object) {
2817
- return {
2818
- latitude: isSet(object.latitude) ? gt.Number(object.latitude) : 0,
2819
- longitude: isSet(object.longitude) ? gt.Number(object.longitude) : 0,
2820
- };
3345
+ return { x: isSet(object.x) ? gt.Number(object.x) : 0, y: isSet(object.y) ? gt.Number(object.y) : 0 };
2821
3346
  },
2822
3347
  toJSON(message) {
2823
3348
  const obj = {};
2824
- if (message.latitude !== 0) {
2825
- obj.latitude = message.latitude;
3349
+ if (message.x !== 0) {
3350
+ obj.x = message.x;
2826
3351
  }
2827
- if (message.longitude !== 0) {
3352
+ if (message.y !== 0) {
3353
+ obj.y = message.y;
3354
+ }
3355
+ return obj;
3356
+ },
3357
+ create(base) {
3358
+ return exports.Point2D.fromPartial(base ?? {});
3359
+ },
3360
+ fromPartial(object) {
3361
+ const message = createBasePoint2D();
3362
+ message.x = object.x ?? 0;
3363
+ message.y = object.y ?? 0;
3364
+ return message;
3365
+ },
3366
+ };
3367
+ function createBaseLaserDetection() {
3368
+ return {
3369
+ detected: false,
3370
+ dot1: undefined,
3371
+ dot2: undefined,
3372
+ pixelDistance: 0,
3373
+ confidence: 0,
3374
+ imageWidth: 0,
3375
+ imageHeight: 0,
3376
+ laserWidth: 0,
3377
+ correctedPixelDistance: 0,
3378
+ estimatedDistance: 0,
3379
+ };
3380
+ }
3381
+ exports.LaserDetection = {
3382
+ encode(message, writer = new wire_1.BinaryWriter()) {
3383
+ if (message.detected !== false) {
3384
+ writer.uint32(8).bool(message.detected);
3385
+ }
3386
+ if (message.dot1 !== undefined) {
3387
+ exports.Point2D.encode(message.dot1, writer.uint32(18).fork()).join();
3388
+ }
3389
+ if (message.dot2 !== undefined) {
3390
+ exports.Point2D.encode(message.dot2, writer.uint32(26).fork()).join();
3391
+ }
3392
+ if (message.pixelDistance !== 0) {
3393
+ writer.uint32(37).float(message.pixelDistance);
3394
+ }
3395
+ if (message.confidence !== 0) {
3396
+ writer.uint32(45).float(message.confidence);
3397
+ }
3398
+ if (message.imageWidth !== 0) {
3399
+ writer.uint32(48).uint32(message.imageWidth);
3400
+ }
3401
+ if (message.imageHeight !== 0) {
3402
+ writer.uint32(56).uint32(message.imageHeight);
3403
+ }
3404
+ if (message.laserWidth !== 0) {
3405
+ writer.uint32(69).float(message.laserWidth);
3406
+ }
3407
+ if (message.correctedPixelDistance !== 0) {
3408
+ writer.uint32(77).float(message.correctedPixelDistance);
3409
+ }
3410
+ if (message.estimatedDistance !== 0) {
3411
+ writer.uint32(85).float(message.estimatedDistance);
3412
+ }
3413
+ return writer;
3414
+ },
3415
+ decode(input, length) {
3416
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3417
+ const end = length === undefined ? reader.len : reader.pos + length;
3418
+ const message = createBaseLaserDetection();
3419
+ while (reader.pos < end) {
3420
+ const tag = reader.uint32();
3421
+ switch (tag >>> 3) {
3422
+ case 1: {
3423
+ if (tag !== 8) {
3424
+ break;
3425
+ }
3426
+ message.detected = reader.bool();
3427
+ continue;
3428
+ }
3429
+ case 2: {
3430
+ if (tag !== 18) {
3431
+ break;
3432
+ }
3433
+ message.dot1 = exports.Point2D.decode(reader, reader.uint32());
3434
+ continue;
3435
+ }
3436
+ case 3: {
3437
+ if (tag !== 26) {
3438
+ break;
3439
+ }
3440
+ message.dot2 = exports.Point2D.decode(reader, reader.uint32());
3441
+ continue;
3442
+ }
3443
+ case 4: {
3444
+ if (tag !== 37) {
3445
+ break;
3446
+ }
3447
+ message.pixelDistance = reader.float();
3448
+ continue;
3449
+ }
3450
+ case 5: {
3451
+ if (tag !== 45) {
3452
+ break;
3453
+ }
3454
+ message.confidence = reader.float();
3455
+ continue;
3456
+ }
3457
+ case 6: {
3458
+ if (tag !== 48) {
3459
+ break;
3460
+ }
3461
+ message.imageWidth = reader.uint32();
3462
+ continue;
3463
+ }
3464
+ case 7: {
3465
+ if (tag !== 56) {
3466
+ break;
3467
+ }
3468
+ message.imageHeight = reader.uint32();
3469
+ continue;
3470
+ }
3471
+ case 8: {
3472
+ if (tag !== 69) {
3473
+ break;
3474
+ }
3475
+ message.laserWidth = reader.float();
3476
+ continue;
3477
+ }
3478
+ case 9: {
3479
+ if (tag !== 77) {
3480
+ break;
3481
+ }
3482
+ message.correctedPixelDistance = reader.float();
3483
+ continue;
3484
+ }
3485
+ case 10: {
3486
+ if (tag !== 85) {
3487
+ break;
3488
+ }
3489
+ message.estimatedDistance = reader.float();
3490
+ continue;
3491
+ }
3492
+ }
3493
+ if ((tag & 7) === 4 || tag === 0) {
3494
+ break;
3495
+ }
3496
+ reader.skip(tag & 7);
3497
+ }
3498
+ return message;
3499
+ },
3500
+ fromJSON(object) {
3501
+ return {
3502
+ detected: isSet(object.detected) ? gt.Boolean(object.detected) : false,
3503
+ dot1: isSet(object.dot1) ? exports.Point2D.fromJSON(object.dot1) : undefined,
3504
+ dot2: isSet(object.dot2) ? exports.Point2D.fromJSON(object.dot2) : undefined,
3505
+ pixelDistance: isSet(object.pixelDistance) ? gt.Number(object.pixelDistance) : 0,
3506
+ confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
3507
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
3508
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
3509
+ laserWidth: isSet(object.laserWidth) ? gt.Number(object.laserWidth) : 0,
3510
+ correctedPixelDistance: isSet(object.correctedPixelDistance) ? gt.Number(object.correctedPixelDistance) : 0,
3511
+ estimatedDistance: isSet(object.estimatedDistance) ? gt.Number(object.estimatedDistance) : 0,
3512
+ };
3513
+ },
3514
+ toJSON(message) {
3515
+ const obj = {};
3516
+ if (message.detected !== false) {
3517
+ obj.detected = message.detected;
3518
+ }
3519
+ if (message.dot1 !== undefined) {
3520
+ obj.dot1 = exports.Point2D.toJSON(message.dot1);
3521
+ }
3522
+ if (message.dot2 !== undefined) {
3523
+ obj.dot2 = exports.Point2D.toJSON(message.dot2);
3524
+ }
3525
+ if (message.pixelDistance !== 0) {
3526
+ obj.pixelDistance = message.pixelDistance;
3527
+ }
3528
+ if (message.confidence !== 0) {
3529
+ obj.confidence = message.confidence;
3530
+ }
3531
+ if (message.imageWidth !== 0) {
3532
+ obj.imageWidth = Math.round(message.imageWidth);
3533
+ }
3534
+ if (message.imageHeight !== 0) {
3535
+ obj.imageHeight = Math.round(message.imageHeight);
3536
+ }
3537
+ if (message.laserWidth !== 0) {
3538
+ obj.laserWidth = message.laserWidth;
3539
+ }
3540
+ if (message.correctedPixelDistance !== 0) {
3541
+ obj.correctedPixelDistance = message.correctedPixelDistance;
3542
+ }
3543
+ if (message.estimatedDistance !== 0) {
3544
+ obj.estimatedDistance = message.estimatedDistance;
3545
+ }
3546
+ return obj;
3547
+ },
3548
+ create(base) {
3549
+ return exports.LaserDetection.fromPartial(base ?? {});
3550
+ },
3551
+ fromPartial(object) {
3552
+ const message = createBaseLaserDetection();
3553
+ message.detected = object.detected ?? false;
3554
+ message.dot1 = (object.dot1 !== undefined && object.dot1 !== null) ? exports.Point2D.fromPartial(object.dot1) : undefined;
3555
+ message.dot2 = (object.dot2 !== undefined && object.dot2 !== null) ? exports.Point2D.fromPartial(object.dot2) : undefined;
3556
+ message.pixelDistance = object.pixelDistance ?? 0;
3557
+ message.confidence = object.confidence ?? 0;
3558
+ message.imageWidth = object.imageWidth ?? 0;
3559
+ message.imageHeight = object.imageHeight ?? 0;
3560
+ message.laserWidth = object.laserWidth ?? 0;
3561
+ message.correctedPixelDistance = object.correctedPixelDistance ?? 0;
3562
+ message.estimatedDistance = object.estimatedDistance ?? 0;
3563
+ return message;
3564
+ },
3565
+ };
3566
+ function createBaseLatLongPosition() {
3567
+ return { latitude: 0, longitude: 0 };
3568
+ }
3569
+ exports.LatLongPosition = {
3570
+ encode(message, writer = new wire_1.BinaryWriter()) {
3571
+ if (message.latitude !== 0) {
3572
+ writer.uint32(9).double(message.latitude);
3573
+ }
3574
+ if (message.longitude !== 0) {
3575
+ writer.uint32(17).double(message.longitude);
3576
+ }
3577
+ return writer;
3578
+ },
3579
+ decode(input, length) {
3580
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3581
+ const end = length === undefined ? reader.len : reader.pos + length;
3582
+ const message = createBaseLatLongPosition();
3583
+ while (reader.pos < end) {
3584
+ const tag = reader.uint32();
3585
+ switch (tag >>> 3) {
3586
+ case 1: {
3587
+ if (tag !== 9) {
3588
+ break;
3589
+ }
3590
+ message.latitude = reader.double();
3591
+ continue;
3592
+ }
3593
+ case 2: {
3594
+ if (tag !== 17) {
3595
+ break;
3596
+ }
3597
+ message.longitude = reader.double();
3598
+ continue;
3599
+ }
3600
+ }
3601
+ if ((tag & 7) === 4 || tag === 0) {
3602
+ break;
3603
+ }
3604
+ reader.skip(tag & 7);
3605
+ }
3606
+ return message;
3607
+ },
3608
+ fromJSON(object) {
3609
+ return {
3610
+ latitude: isSet(object.latitude) ? gt.Number(object.latitude) : 0,
3611
+ longitude: isSet(object.longitude) ? gt.Number(object.longitude) : 0,
3612
+ };
3613
+ },
3614
+ toJSON(message) {
3615
+ const obj = {};
3616
+ if (message.latitude !== 0) {
3617
+ obj.latitude = message.latitude;
3618
+ }
3619
+ if (message.longitude !== 0) {
2828
3620
  obj.longitude = message.longitude;
2829
3621
  }
2830
3622
  return obj;
@@ -3792,7 +4584,9 @@ function createBaseRecordState() {
3792
4584
  multibeamIsRecording: false,
3793
4585
  multibeamSeconds: 0,
3794
4586
  multibeamFps: 0,
3795
- storageLocation: 0,
4587
+ mainStorageLocation: 0,
4588
+ guestportStorageLocation: 0,
4589
+ multibeamStorageLocation: 0,
3796
4590
  };
3797
4591
  }
3798
4592
  exports.RecordState = {
@@ -3824,8 +4618,14 @@ exports.RecordState = {
3824
4618
  if (message.multibeamFps !== 0) {
3825
4619
  writer.uint32(77).float(message.multibeamFps);
3826
4620
  }
3827
- if (message.storageLocation !== 0) {
3828
- writer.uint32(80).int32(message.storageLocation);
4621
+ if (message.mainStorageLocation !== 0) {
4622
+ writer.uint32(80).int32(message.mainStorageLocation);
4623
+ }
4624
+ if (message.guestportStorageLocation !== 0) {
4625
+ writer.uint32(88).int32(message.guestportStorageLocation);
4626
+ }
4627
+ if (message.multibeamStorageLocation !== 0) {
4628
+ writer.uint32(96).int32(message.multibeamStorageLocation);
3829
4629
  }
3830
4630
  return writer;
3831
4631
  },
@@ -3903,7 +4703,21 @@ exports.RecordState = {
3903
4703
  if (tag !== 80) {
3904
4704
  break;
3905
4705
  }
3906
- message.storageLocation = reader.int32();
4706
+ message.mainStorageLocation = reader.int32();
4707
+ continue;
4708
+ }
4709
+ case 11: {
4710
+ if (tag !== 88) {
4711
+ break;
4712
+ }
4713
+ message.guestportStorageLocation = reader.int32();
4714
+ continue;
4715
+ }
4716
+ case 12: {
4717
+ if (tag !== 96) {
4718
+ break;
4719
+ }
4720
+ message.multibeamStorageLocation = reader.int32();
3907
4721
  continue;
3908
4722
  }
3909
4723
  }
@@ -3925,7 +4739,13 @@ exports.RecordState = {
3925
4739
  multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
3926
4740
  multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
3927
4741
  multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
3928
- storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
4742
+ mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
4743
+ guestportStorageLocation: isSet(object.guestportStorageLocation)
4744
+ ? storageLocationFromJSON(object.guestportStorageLocation)
4745
+ : 0,
4746
+ multibeamStorageLocation: isSet(object.multibeamStorageLocation)
4747
+ ? storageLocationFromJSON(object.multibeamStorageLocation)
4748
+ : 0,
3929
4749
  };
3930
4750
  },
3931
4751
  toJSON(message) {
@@ -3957,8 +4777,14 @@ exports.RecordState = {
3957
4777
  if (message.multibeamFps !== 0) {
3958
4778
  obj.multibeamFps = message.multibeamFps;
3959
4779
  }
3960
- if (message.storageLocation !== 0) {
3961
- obj.storageLocation = storageLocationToJSON(message.storageLocation);
4780
+ if (message.mainStorageLocation !== 0) {
4781
+ obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
4782
+ }
4783
+ if (message.guestportStorageLocation !== 0) {
4784
+ obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
4785
+ }
4786
+ if (message.multibeamStorageLocation !== 0) {
4787
+ obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
3962
4788
  }
3963
4789
  return obj;
3964
4790
  },
@@ -3976,7 +4802,9 @@ exports.RecordState = {
3976
4802
  message.multibeamIsRecording = object.multibeamIsRecording ?? false;
3977
4803
  message.multibeamSeconds = object.multibeamSeconds ?? 0;
3978
4804
  message.multibeamFps = object.multibeamFps ?? 0;
3979
- message.storageLocation = object.storageLocation ?? 0;
4805
+ message.mainStorageLocation = object.mainStorageLocation ?? 0;
4806
+ message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
4807
+ message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
3980
4808
  return message;
3981
4809
  },
3982
4810
  };
@@ -7884,7 +8712,7 @@ exports.StorageSpace = {
7884
8712
  },
7885
8713
  };
7886
8714
  function createBaseStoragePartition() {
7887
- return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
8715
+ return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
7888
8716
  }
7889
8717
  exports.StoragePartition = {
7890
8718
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -7900,6 +8728,9 @@ exports.StoragePartition = {
7900
8728
  if (message.mountPath !== "") {
7901
8729
  writer.uint32(34).string(message.mountPath);
7902
8730
  }
8731
+ if (message.label !== "") {
8732
+ writer.uint32(42).string(message.label);
8733
+ }
7903
8734
  return writer;
7904
8735
  },
7905
8736
  decode(input, length) {
@@ -7937,6 +8768,13 @@ exports.StoragePartition = {
7937
8768
  message.mountPath = reader.string();
7938
8769
  continue;
7939
8770
  }
8771
+ case 5: {
8772
+ if (tag !== 42) {
8773
+ break;
8774
+ }
8775
+ message.label = reader.string();
8776
+ continue;
8777
+ }
7940
8778
  }
7941
8779
  if ((tag & 7) === 4 || tag === 0) {
7942
8780
  break;
@@ -7951,6 +8789,7 @@ exports.StoragePartition = {
7951
8789
  fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
7952
8790
  devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
7953
8791
  mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
8792
+ label: isSet(object.label) ? gt.String(object.label) : "",
7954
8793
  };
7955
8794
  },
7956
8795
  toJSON(message) {
@@ -7967,6 +8806,9 @@ exports.StoragePartition = {
7967
8806
  if (message.mountPath !== "") {
7968
8807
  obj.mountPath = message.mountPath;
7969
8808
  }
8809
+ if (message.label !== "") {
8810
+ obj.label = message.label;
8811
+ }
7970
8812
  return obj;
7971
8813
  },
7972
8814
  create(base) {
@@ -7980,6 +8822,7 @@ exports.StoragePartition = {
7980
8822
  message.fileSystemType = object.fileSystemType ?? "";
7981
8823
  message.devicePath = object.devicePath ?? "";
7982
8824
  message.mountPath = object.mountPath ?? "";
8825
+ message.label = object.label ?? "";
7983
8826
  return message;
7984
8827
  },
7985
8828
  };
@@ -8657,62 +9500,35 @@ exports.TiltVelocity = {
8657
9500
  return message;
8658
9501
  },
8659
9502
  };
8660
- function createBaseDroneInfo() {
8661
- return {
8662
- blunuxVersion: "",
8663
- serialNumber: new Uint8Array(0),
8664
- hardwareId: new Uint8Array(0),
8665
- model: 0,
8666
- mbSerial: new Uint8Array(0),
8667
- bbSerial: new Uint8Array(0),
8668
- dsSerial: new Uint8Array(0),
8669
- mbUid: new Uint8Array(0),
8670
- bbUid: new Uint8Array(0),
8671
- gp: undefined,
8672
- depthSensor: 0,
8673
- };
9503
+ function createBaseCvModelInfo() {
9504
+ return { name: "", type: 0, running: false, device: "", packageId: "", labels: [] };
8674
9505
  }
8675
- exports.DroneInfo = {
9506
+ exports.CvModelInfo = {
8676
9507
  encode(message, writer = new wire_1.BinaryWriter()) {
8677
- if (message.blunuxVersion !== "") {
8678
- writer.uint32(10).string(message.blunuxVersion);
8679
- }
8680
- if (message.serialNumber.length !== 0) {
8681
- writer.uint32(18).bytes(message.serialNumber);
8682
- }
8683
- if (message.hardwareId.length !== 0) {
8684
- writer.uint32(26).bytes(message.hardwareId);
8685
- }
8686
- if (message.model !== 0) {
8687
- writer.uint32(32).int32(message.model);
8688
- }
8689
- if (message.mbSerial.length !== 0) {
8690
- writer.uint32(42).bytes(message.mbSerial);
8691
- }
8692
- if (message.bbSerial.length !== 0) {
8693
- writer.uint32(50).bytes(message.bbSerial);
9508
+ if (message.name !== "") {
9509
+ writer.uint32(10).string(message.name);
8694
9510
  }
8695
- if (message.dsSerial.length !== 0) {
8696
- writer.uint32(82).bytes(message.dsSerial);
9511
+ if (message.type !== 0) {
9512
+ writer.uint32(16).int32(message.type);
8697
9513
  }
8698
- if (message.mbUid.length !== 0) {
8699
- writer.uint32(58).bytes(message.mbUid);
9514
+ if (message.running !== false) {
9515
+ writer.uint32(24).bool(message.running);
8700
9516
  }
8701
- if (message.bbUid.length !== 0) {
8702
- writer.uint32(66).bytes(message.bbUid);
9517
+ if (message.device !== "") {
9518
+ writer.uint32(34).string(message.device);
8703
9519
  }
8704
- if (message.gp !== undefined) {
8705
- exports.GuestPortInfo.encode(message.gp, writer.uint32(74).fork()).join();
9520
+ if (message.packageId !== "") {
9521
+ writer.uint32(42).string(message.packageId);
8706
9522
  }
8707
- if (message.depthSensor !== 0) {
8708
- writer.uint32(88).int32(message.depthSensor);
9523
+ for (const v of message.labels) {
9524
+ writer.uint32(50).string(v);
8709
9525
  }
8710
9526
  return writer;
8711
9527
  },
8712
9528
  decode(input, length) {
8713
9529
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
8714
9530
  const end = length === undefined ? reader.len : reader.pos + length;
8715
- const message = createBaseDroneInfo();
9531
+ const message = createBaseCvModelInfo();
8716
9532
  while (reader.pos < end) {
8717
9533
  const tag = reader.uint32();
8718
9534
  switch (tag >>> 3) {
@@ -8720,11 +9536,170 @@ exports.DroneInfo = {
8720
9536
  if (tag !== 10) {
8721
9537
  break;
8722
9538
  }
8723
- message.blunuxVersion = reader.string();
9539
+ message.name = reader.string();
8724
9540
  continue;
8725
9541
  }
8726
9542
  case 2: {
8727
- if (tag !== 18) {
9543
+ if (tag !== 16) {
9544
+ break;
9545
+ }
9546
+ message.type = reader.int32();
9547
+ continue;
9548
+ }
9549
+ case 3: {
9550
+ if (tag !== 24) {
9551
+ break;
9552
+ }
9553
+ message.running = reader.bool();
9554
+ continue;
9555
+ }
9556
+ case 4: {
9557
+ if (tag !== 34) {
9558
+ break;
9559
+ }
9560
+ message.device = reader.string();
9561
+ continue;
9562
+ }
9563
+ case 5: {
9564
+ if (tag !== 42) {
9565
+ break;
9566
+ }
9567
+ message.packageId = reader.string();
9568
+ continue;
9569
+ }
9570
+ case 6: {
9571
+ if (tag !== 50) {
9572
+ break;
9573
+ }
9574
+ message.labels.push(reader.string());
9575
+ continue;
9576
+ }
9577
+ }
9578
+ if ((tag & 7) === 4 || tag === 0) {
9579
+ break;
9580
+ }
9581
+ reader.skip(tag & 7);
9582
+ }
9583
+ return message;
9584
+ },
9585
+ fromJSON(object) {
9586
+ return {
9587
+ name: isSet(object.name) ? gt.String(object.name) : "",
9588
+ type: isSet(object.type) ? cvModelInfo_ModelTypeFromJSON(object.type) : 0,
9589
+ running: isSet(object.running) ? gt.Boolean(object.running) : false,
9590
+ device: isSet(object.device) ? gt.String(object.device) : "",
9591
+ packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
9592
+ labels: gt.Array.isArray(object?.labels) ? object.labels.map((e) => gt.String(e)) : [],
9593
+ };
9594
+ },
9595
+ toJSON(message) {
9596
+ const obj = {};
9597
+ if (message.name !== "") {
9598
+ obj.name = message.name;
9599
+ }
9600
+ if (message.type !== 0) {
9601
+ obj.type = cvModelInfo_ModelTypeToJSON(message.type);
9602
+ }
9603
+ if (message.running !== false) {
9604
+ obj.running = message.running;
9605
+ }
9606
+ if (message.device !== "") {
9607
+ obj.device = message.device;
9608
+ }
9609
+ if (message.packageId !== "") {
9610
+ obj.packageId = message.packageId;
9611
+ }
9612
+ if (message.labels?.length) {
9613
+ obj.labels = message.labels;
9614
+ }
9615
+ return obj;
9616
+ },
9617
+ create(base) {
9618
+ return exports.CvModelInfo.fromPartial(base ?? {});
9619
+ },
9620
+ fromPartial(object) {
9621
+ const message = createBaseCvModelInfo();
9622
+ message.name = object.name ?? "";
9623
+ message.type = object.type ?? 0;
9624
+ message.running = object.running ?? false;
9625
+ message.device = object.device ?? "";
9626
+ message.packageId = object.packageId ?? "";
9627
+ message.labels = object.labels?.map((e) => e) || [];
9628
+ return message;
9629
+ },
9630
+ };
9631
+ function createBaseDroneInfo() {
9632
+ return {
9633
+ blunuxVersion: "",
9634
+ serialNumber: new Uint8Array(0),
9635
+ hardwareId: new Uint8Array(0),
9636
+ model: 0,
9637
+ mbSerial: new Uint8Array(0),
9638
+ bbSerial: new Uint8Array(0),
9639
+ dsSerial: new Uint8Array(0),
9640
+ mbUid: new Uint8Array(0),
9641
+ bbUid: new Uint8Array(0),
9642
+ gp: undefined,
9643
+ depthSensor: 0,
9644
+ cvModels: [],
9645
+ };
9646
+ }
9647
+ exports.DroneInfo = {
9648
+ encode(message, writer = new wire_1.BinaryWriter()) {
9649
+ if (message.blunuxVersion !== "") {
9650
+ writer.uint32(10).string(message.blunuxVersion);
9651
+ }
9652
+ if (message.serialNumber.length !== 0) {
9653
+ writer.uint32(18).bytes(message.serialNumber);
9654
+ }
9655
+ if (message.hardwareId.length !== 0) {
9656
+ writer.uint32(26).bytes(message.hardwareId);
9657
+ }
9658
+ if (message.model !== 0) {
9659
+ writer.uint32(32).int32(message.model);
9660
+ }
9661
+ if (message.mbSerial.length !== 0) {
9662
+ writer.uint32(42).bytes(message.mbSerial);
9663
+ }
9664
+ if (message.bbSerial.length !== 0) {
9665
+ writer.uint32(50).bytes(message.bbSerial);
9666
+ }
9667
+ if (message.dsSerial.length !== 0) {
9668
+ writer.uint32(82).bytes(message.dsSerial);
9669
+ }
9670
+ if (message.mbUid.length !== 0) {
9671
+ writer.uint32(58).bytes(message.mbUid);
9672
+ }
9673
+ if (message.bbUid.length !== 0) {
9674
+ writer.uint32(66).bytes(message.bbUid);
9675
+ }
9676
+ if (message.gp !== undefined) {
9677
+ exports.GuestPortInfo.encode(message.gp, writer.uint32(74).fork()).join();
9678
+ }
9679
+ if (message.depthSensor !== 0) {
9680
+ writer.uint32(88).int32(message.depthSensor);
9681
+ }
9682
+ for (const v of message.cvModels) {
9683
+ exports.CvModelInfo.encode(v, writer.uint32(98).fork()).join();
9684
+ }
9685
+ return writer;
9686
+ },
9687
+ decode(input, length) {
9688
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9689
+ const end = length === undefined ? reader.len : reader.pos + length;
9690
+ const message = createBaseDroneInfo();
9691
+ while (reader.pos < end) {
9692
+ const tag = reader.uint32();
9693
+ switch (tag >>> 3) {
9694
+ case 1: {
9695
+ if (tag !== 10) {
9696
+ break;
9697
+ }
9698
+ message.blunuxVersion = reader.string();
9699
+ continue;
9700
+ }
9701
+ case 2: {
9702
+ if (tag !== 18) {
8728
9703
  break;
8729
9704
  }
8730
9705
  message.serialNumber = reader.bytes();
@@ -8793,6 +9768,13 @@ exports.DroneInfo = {
8793
9768
  message.depthSensor = reader.int32();
8794
9769
  continue;
8795
9770
  }
9771
+ case 12: {
9772
+ if (tag !== 98) {
9773
+ break;
9774
+ }
9775
+ message.cvModels.push(exports.CvModelInfo.decode(reader, reader.uint32()));
9776
+ continue;
9777
+ }
8796
9778
  }
8797
9779
  if ((tag & 7) === 4 || tag === 0) {
8798
9780
  break;
@@ -8814,6 +9796,7 @@ exports.DroneInfo = {
8814
9796
  bbUid: isSet(object.bbUid) ? bytesFromBase64(object.bbUid) : new Uint8Array(0),
8815
9797
  gp: isSet(object.gp) ? exports.GuestPortInfo.fromJSON(object.gp) : undefined,
8816
9798
  depthSensor: isSet(object.depthSensor) ? pressureSensorTypeFromJSON(object.depthSensor) : 0,
9799
+ cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => exports.CvModelInfo.fromJSON(e)) : [],
8817
9800
  };
8818
9801
  },
8819
9802
  toJSON(message) {
@@ -8851,6 +9834,9 @@ exports.DroneInfo = {
8851
9834
  if (message.depthSensor !== 0) {
8852
9835
  obj.depthSensor = pressureSensorTypeToJSON(message.depthSensor);
8853
9836
  }
9837
+ if (message.cvModels?.length) {
9838
+ obj.cvModels = message.cvModels.map((e) => exports.CvModelInfo.toJSON(e));
9839
+ }
8854
9840
  return obj;
8855
9841
  },
8856
9842
  create(base) {
@@ -8869,6 +9855,7 @@ exports.DroneInfo = {
8869
9855
  message.bbUid = object.bbUid ?? new Uint8Array(0);
8870
9856
  message.gp = (object.gp !== undefined && object.gp !== null) ? exports.GuestPortInfo.fromPartial(object.gp) : undefined;
8871
9857
  message.depthSensor = object.depthSensor ?? 0;
9858
+ message.cvModels = object.cvModels?.map((e) => exports.CvModelInfo.fromPartial(e)) || [];
8872
9859
  return message;
8873
9860
  },
8874
9861
  };
@@ -9693,6 +10680,9 @@ function createBaseCameraParameters() {
9693
10680
  streamingProtocol: 0,
9694
10681
  framerate: 0,
9695
10682
  camera: 0,
10683
+ mtuSize: 0,
10684
+ recordingCodec: 0,
10685
+ recordingBitrate: 0,
9696
10686
  };
9697
10687
  }
9698
10688
  exports.CameraParameters = {
@@ -9763,6 +10753,15 @@ exports.CameraParameters = {
9763
10753
  if (message.camera !== 0) {
9764
10754
  writer.uint32(64).int32(message.camera);
9765
10755
  }
10756
+ if (message.mtuSize !== 0) {
10757
+ writer.uint32(192).uint32(message.mtuSize);
10758
+ }
10759
+ if (message.recordingCodec !== 0) {
10760
+ writer.uint32(200).int32(message.recordingCodec);
10761
+ }
10762
+ if (message.recordingBitrate !== 0) {
10763
+ writer.uint32(208).int32(message.recordingBitrate);
10764
+ }
9766
10765
  return writer;
9767
10766
  },
9768
10767
  decode(input, length) {
@@ -9926,6 +10925,27 @@ exports.CameraParameters = {
9926
10925
  message.camera = reader.int32();
9927
10926
  continue;
9928
10927
  }
10928
+ case 24: {
10929
+ if (tag !== 192) {
10930
+ break;
10931
+ }
10932
+ message.mtuSize = reader.uint32();
10933
+ continue;
10934
+ }
10935
+ case 25: {
10936
+ if (tag !== 200) {
10937
+ break;
10938
+ }
10939
+ message.recordingCodec = reader.int32();
10940
+ continue;
10941
+ }
10942
+ case 26: {
10943
+ if (tag !== 208) {
10944
+ break;
10945
+ }
10946
+ message.recordingBitrate = reader.int32();
10947
+ continue;
10948
+ }
9929
10949
  }
9930
10950
  if ((tag & 7) === 4 || tag === 0) {
9931
10951
  break;
@@ -9958,6 +10978,9 @@ exports.CameraParameters = {
9958
10978
  streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
9959
10979
  framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
9960
10980
  camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
10981
+ mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
10982
+ recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
10983
+ recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
9961
10984
  };
9962
10985
  },
9963
10986
  toJSON(message) {
@@ -10028,6 +11051,15 @@ exports.CameraParameters = {
10028
11051
  if (message.camera !== 0) {
10029
11052
  obj.camera = cameraToJSON(message.camera);
10030
11053
  }
11054
+ if (message.mtuSize !== 0) {
11055
+ obj.mtuSize = Math.round(message.mtuSize);
11056
+ }
11057
+ if (message.recordingCodec !== 0) {
11058
+ obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
11059
+ }
11060
+ if (message.recordingBitrate !== 0) {
11061
+ obj.recordingBitrate = Math.round(message.recordingBitrate);
11062
+ }
10031
11063
  return obj;
10032
11064
  },
10033
11065
  create(base) {
@@ -10057,6 +11089,9 @@ exports.CameraParameters = {
10057
11089
  message.streamingProtocol = object.streamingProtocol ?? 0;
10058
11090
  message.framerate = object.framerate ?? 0;
10059
11091
  message.camera = object.camera ?? 0;
11092
+ message.mtuSize = object.mtuSize ?? 0;
11093
+ message.recordingCodec = object.recordingCodec ?? 0;
11094
+ message.recordingBitrate = object.recordingBitrate ?? 0;
10060
11095
  return message;
10061
11096
  },
10062
11097
  };
@@ -12912,23 +13947,26 @@ exports.CPUInfo = {
12912
13947
  return message;
12913
13948
  },
12914
13949
  };
12915
- function createBaseSurfaceUnitBatteryInfo() {
12916
- return { status: 0, level: 0 };
13950
+ function createBaseCpuCoreLoad() {
13951
+ return { coreIndex: 0, load: 0, frequencyMhz: 0 };
12917
13952
  }
12918
- exports.SurfaceUnitBatteryInfo = {
13953
+ exports.CpuCoreLoad = {
12919
13954
  encode(message, writer = new wire_1.BinaryWriter()) {
12920
- if (message.status !== 0) {
12921
- writer.uint32(8).int32(message.status);
13955
+ if (message.coreIndex !== 0) {
13956
+ writer.uint32(8).uint32(message.coreIndex);
12922
13957
  }
12923
- if (message.level !== 0) {
12924
- writer.uint32(21).float(message.level);
13958
+ if (message.load !== 0) {
13959
+ writer.uint32(21).float(message.load);
13960
+ }
13961
+ if (message.frequencyMhz !== 0) {
13962
+ writer.uint32(29).float(message.frequencyMhz);
12925
13963
  }
12926
13964
  return writer;
12927
13965
  },
12928
13966
  decode(input, length) {
12929
13967
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12930
13968
  const end = length === undefined ? reader.len : reader.pos + length;
12931
- const message = createBaseSurfaceUnitBatteryInfo();
13969
+ const message = createBaseCpuCoreLoad();
12932
13970
  while (reader.pos < end) {
12933
13971
  const tag = reader.uint32();
12934
13972
  switch (tag >>> 3) {
@@ -12936,14 +13974,21 @@ exports.SurfaceUnitBatteryInfo = {
12936
13974
  if (tag !== 8) {
12937
13975
  break;
12938
13976
  }
12939
- message.status = reader.int32();
13977
+ message.coreIndex = reader.uint32();
12940
13978
  continue;
12941
13979
  }
12942
13980
  case 2: {
12943
13981
  if (tag !== 21) {
12944
13982
  break;
12945
13983
  }
12946
- message.level = reader.float();
13984
+ message.load = reader.float();
13985
+ continue;
13986
+ }
13987
+ case 3: {
13988
+ if (tag !== 29) {
13989
+ break;
13990
+ }
13991
+ message.frequencyMhz = reader.float();
12947
13992
  continue;
12948
13993
  }
12949
13994
  }
@@ -12956,52 +14001,67 @@ exports.SurfaceUnitBatteryInfo = {
12956
14001
  },
12957
14002
  fromJSON(object) {
12958
14003
  return {
12959
- status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
12960
- level: isSet(object.level) ? gt.Number(object.level) : 0,
14004
+ coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
14005
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
14006
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
12961
14007
  };
12962
14008
  },
12963
14009
  toJSON(message) {
12964
14010
  const obj = {};
12965
- if (message.status !== 0) {
12966
- obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
14011
+ if (message.coreIndex !== 0) {
14012
+ obj.coreIndex = Math.round(message.coreIndex);
12967
14013
  }
12968
- if (message.level !== 0) {
12969
- obj.level = message.level;
14014
+ if (message.load !== 0) {
14015
+ obj.load = message.load;
14016
+ }
14017
+ if (message.frequencyMhz !== 0) {
14018
+ obj.frequencyMhz = message.frequencyMhz;
12970
14019
  }
12971
14020
  return obj;
12972
14021
  },
12973
14022
  create(base) {
12974
- return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
14023
+ return exports.CpuCoreLoad.fromPartial(base ?? {});
12975
14024
  },
12976
14025
  fromPartial(object) {
12977
- const message = createBaseSurfaceUnitBatteryInfo();
12978
- message.status = object.status ?? 0;
12979
- message.level = object.level ?? 0;
14026
+ const message = createBaseCpuCoreLoad();
14027
+ message.coreIndex = object.coreIndex ?? 0;
14028
+ message.load = object.load ?? 0;
14029
+ message.frequencyMhz = object.frequencyMhz ?? 0;
12980
14030
  return message;
12981
14031
  },
12982
14032
  };
12983
- function createBaseSurfaceUnitVersionInfo() {
12984
- return { version: "" };
14033
+ function createBaseGpuInfo() {
14034
+ return { load: 0, frequencyMhz: 0 };
12985
14035
  }
12986
- exports.SurfaceUnitVersionInfo = {
14036
+ exports.GpuInfo = {
12987
14037
  encode(message, writer = new wire_1.BinaryWriter()) {
12988
- if (message.version !== "") {
12989
- writer.uint32(10).string(message.version);
14038
+ if (message.load !== 0) {
14039
+ writer.uint32(13).float(message.load);
14040
+ }
14041
+ if (message.frequencyMhz !== 0) {
14042
+ writer.uint32(21).float(message.frequencyMhz);
12990
14043
  }
12991
14044
  return writer;
12992
14045
  },
12993
14046
  decode(input, length) {
12994
14047
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12995
14048
  const end = length === undefined ? reader.len : reader.pos + length;
12996
- const message = createBaseSurfaceUnitVersionInfo();
14049
+ const message = createBaseGpuInfo();
12997
14050
  while (reader.pos < end) {
12998
14051
  const tag = reader.uint32();
12999
14052
  switch (tag >>> 3) {
13000
14053
  case 1: {
13001
- if (tag !== 10) {
14054
+ if (tag !== 13) {
13002
14055
  break;
13003
14056
  }
13004
- message.version = reader.string();
14057
+ message.load = reader.float();
14058
+ continue;
14059
+ }
14060
+ case 2: {
14061
+ if (tag !== 21) {
14062
+ break;
14063
+ }
14064
+ message.frequencyMhz = reader.float();
13005
14065
  continue;
13006
14066
  }
13007
14067
  }
@@ -13013,21 +14073,1659 @@ exports.SurfaceUnitVersionInfo = {
13013
14073
  return message;
13014
14074
  },
13015
14075
  fromJSON(object) {
13016
- return { version: isSet(object.version) ? gt.String(object.version) : "" };
14076
+ return {
14077
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
14078
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
14079
+ };
13017
14080
  },
13018
14081
  toJSON(message) {
13019
14082
  const obj = {};
13020
- if (message.version !== "") {
13021
- obj.version = message.version;
14083
+ if (message.load !== 0) {
14084
+ obj.load = message.load;
14085
+ }
14086
+ if (message.frequencyMhz !== 0) {
14087
+ obj.frequencyMhz = message.frequencyMhz;
13022
14088
  }
13023
14089
  return obj;
13024
14090
  },
13025
14091
  create(base) {
13026
- return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
14092
+ return exports.GpuInfo.fromPartial(base ?? {});
13027
14093
  },
13028
14094
  fromPartial(object) {
13029
- const message = createBaseSurfaceUnitVersionInfo();
13030
- message.version = object.version ?? "";
14095
+ const message = createBaseGpuInfo();
14096
+ message.load = object.load ?? 0;
14097
+ message.frequencyMhz = object.frequencyMhz ?? 0;
14098
+ return message;
14099
+ },
14100
+ };
14101
+ function createBaseDlaInfo() {
14102
+ return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
14103
+ }
14104
+ exports.DlaInfo = {
14105
+ encode(message, writer = new wire_1.BinaryWriter()) {
14106
+ if (message.engineIndex !== 0) {
14107
+ writer.uint32(8).uint32(message.engineIndex);
14108
+ }
14109
+ if (message.load !== 0) {
14110
+ writer.uint32(21).float(message.load);
14111
+ }
14112
+ if (message.frequencyMhz !== 0) {
14113
+ writer.uint32(29).float(message.frequencyMhz);
14114
+ }
14115
+ if (message.enabled !== false) {
14116
+ writer.uint32(32).bool(message.enabled);
14117
+ }
14118
+ if (message.falconFrequencyMhz !== 0) {
14119
+ writer.uint32(45).float(message.falconFrequencyMhz);
14120
+ }
14121
+ return writer;
14122
+ },
14123
+ decode(input, length) {
14124
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14125
+ const end = length === undefined ? reader.len : reader.pos + length;
14126
+ const message = createBaseDlaInfo();
14127
+ while (reader.pos < end) {
14128
+ const tag = reader.uint32();
14129
+ switch (tag >>> 3) {
14130
+ case 1: {
14131
+ if (tag !== 8) {
14132
+ break;
14133
+ }
14134
+ message.engineIndex = reader.uint32();
14135
+ continue;
14136
+ }
14137
+ case 2: {
14138
+ if (tag !== 21) {
14139
+ break;
14140
+ }
14141
+ message.load = reader.float();
14142
+ continue;
14143
+ }
14144
+ case 3: {
14145
+ if (tag !== 29) {
14146
+ break;
14147
+ }
14148
+ message.frequencyMhz = reader.float();
14149
+ continue;
14150
+ }
14151
+ case 4: {
14152
+ if (tag !== 32) {
14153
+ break;
14154
+ }
14155
+ message.enabled = reader.bool();
14156
+ continue;
14157
+ }
14158
+ case 5: {
14159
+ if (tag !== 45) {
14160
+ break;
14161
+ }
14162
+ message.falconFrequencyMhz = reader.float();
14163
+ continue;
14164
+ }
14165
+ }
14166
+ if ((tag & 7) === 4 || tag === 0) {
14167
+ break;
14168
+ }
14169
+ reader.skip(tag & 7);
14170
+ }
14171
+ return message;
14172
+ },
14173
+ fromJSON(object) {
14174
+ return {
14175
+ engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
14176
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
14177
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
14178
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
14179
+ falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
14180
+ };
14181
+ },
14182
+ toJSON(message) {
14183
+ const obj = {};
14184
+ if (message.engineIndex !== 0) {
14185
+ obj.engineIndex = Math.round(message.engineIndex);
14186
+ }
14187
+ if (message.load !== 0) {
14188
+ obj.load = message.load;
14189
+ }
14190
+ if (message.frequencyMhz !== 0) {
14191
+ obj.frequencyMhz = message.frequencyMhz;
14192
+ }
14193
+ if (message.enabled !== false) {
14194
+ obj.enabled = message.enabled;
14195
+ }
14196
+ if (message.falconFrequencyMhz !== 0) {
14197
+ obj.falconFrequencyMhz = message.falconFrequencyMhz;
14198
+ }
14199
+ return obj;
14200
+ },
14201
+ create(base) {
14202
+ return exports.DlaInfo.fromPartial(base ?? {});
14203
+ },
14204
+ fromPartial(object) {
14205
+ const message = createBaseDlaInfo();
14206
+ message.engineIndex = object.engineIndex ?? 0;
14207
+ message.load = object.load ?? 0;
14208
+ message.frequencyMhz = object.frequencyMhz ?? 0;
14209
+ message.enabled = object.enabled ?? false;
14210
+ message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
14211
+ return message;
14212
+ },
14213
+ };
14214
+ function createBaseMemoryInfo() {
14215
+ return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
14216
+ }
14217
+ exports.MemoryInfo = {
14218
+ encode(message, writer = new wire_1.BinaryWriter()) {
14219
+ if (message.totalBytes !== 0) {
14220
+ writer.uint32(8).uint64(message.totalBytes);
14221
+ }
14222
+ if (message.usedBytes !== 0) {
14223
+ writer.uint32(16).uint64(message.usedBytes);
14224
+ }
14225
+ if (message.cachedBytes !== 0) {
14226
+ writer.uint32(24).uint64(message.cachedBytes);
14227
+ }
14228
+ if (message.busLoad !== 0) {
14229
+ writer.uint32(37).float(message.busLoad);
14230
+ }
14231
+ return writer;
14232
+ },
14233
+ decode(input, length) {
14234
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14235
+ const end = length === undefined ? reader.len : reader.pos + length;
14236
+ const message = createBaseMemoryInfo();
14237
+ while (reader.pos < end) {
14238
+ const tag = reader.uint32();
14239
+ switch (tag >>> 3) {
14240
+ case 1: {
14241
+ if (tag !== 8) {
14242
+ break;
14243
+ }
14244
+ message.totalBytes = longToNumber(reader.uint64());
14245
+ continue;
14246
+ }
14247
+ case 2: {
14248
+ if (tag !== 16) {
14249
+ break;
14250
+ }
14251
+ message.usedBytes = longToNumber(reader.uint64());
14252
+ continue;
14253
+ }
14254
+ case 3: {
14255
+ if (tag !== 24) {
14256
+ break;
14257
+ }
14258
+ message.cachedBytes = longToNumber(reader.uint64());
14259
+ continue;
14260
+ }
14261
+ case 4: {
14262
+ if (tag !== 37) {
14263
+ break;
14264
+ }
14265
+ message.busLoad = reader.float();
14266
+ continue;
14267
+ }
14268
+ }
14269
+ if ((tag & 7) === 4 || tag === 0) {
14270
+ break;
14271
+ }
14272
+ reader.skip(tag & 7);
14273
+ }
14274
+ return message;
14275
+ },
14276
+ fromJSON(object) {
14277
+ return {
14278
+ totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
14279
+ usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
14280
+ cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
14281
+ busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
14282
+ };
14283
+ },
14284
+ toJSON(message) {
14285
+ const obj = {};
14286
+ if (message.totalBytes !== 0) {
14287
+ obj.totalBytes = Math.round(message.totalBytes);
14288
+ }
14289
+ if (message.usedBytes !== 0) {
14290
+ obj.usedBytes = Math.round(message.usedBytes);
14291
+ }
14292
+ if (message.cachedBytes !== 0) {
14293
+ obj.cachedBytes = Math.round(message.cachedBytes);
14294
+ }
14295
+ if (message.busLoad !== 0) {
14296
+ obj.busLoad = message.busLoad;
14297
+ }
14298
+ return obj;
14299
+ },
14300
+ create(base) {
14301
+ return exports.MemoryInfo.fromPartial(base ?? {});
14302
+ },
14303
+ fromPartial(object) {
14304
+ const message = createBaseMemoryInfo();
14305
+ message.totalBytes = object.totalBytes ?? 0;
14306
+ message.usedBytes = object.usedBytes ?? 0;
14307
+ message.cachedBytes = object.cachedBytes ?? 0;
14308
+ message.busLoad = object.busLoad ?? 0;
14309
+ return message;
14310
+ },
14311
+ };
14312
+ function createBaseThermalZone() {
14313
+ return { zone: 0, temperature: 0 };
14314
+ }
14315
+ exports.ThermalZone = {
14316
+ encode(message, writer = new wire_1.BinaryWriter()) {
14317
+ if (message.zone !== 0) {
14318
+ writer.uint32(8).int32(message.zone);
14319
+ }
14320
+ if (message.temperature !== 0) {
14321
+ writer.uint32(21).float(message.temperature);
14322
+ }
14323
+ return writer;
14324
+ },
14325
+ decode(input, length) {
14326
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14327
+ const end = length === undefined ? reader.len : reader.pos + length;
14328
+ const message = createBaseThermalZone();
14329
+ while (reader.pos < end) {
14330
+ const tag = reader.uint32();
14331
+ switch (tag >>> 3) {
14332
+ case 1: {
14333
+ if (tag !== 8) {
14334
+ break;
14335
+ }
14336
+ message.zone = reader.int32();
14337
+ continue;
14338
+ }
14339
+ case 2: {
14340
+ if (tag !== 21) {
14341
+ break;
14342
+ }
14343
+ message.temperature = reader.float();
14344
+ continue;
14345
+ }
14346
+ }
14347
+ if ((tag & 7) === 4 || tag === 0) {
14348
+ break;
14349
+ }
14350
+ reader.skip(tag & 7);
14351
+ }
14352
+ return message;
14353
+ },
14354
+ fromJSON(object) {
14355
+ return {
14356
+ zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
14357
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
14358
+ };
14359
+ },
14360
+ toJSON(message) {
14361
+ const obj = {};
14362
+ if (message.zone !== 0) {
14363
+ obj.zone = thermalZoneIdToJSON(message.zone);
14364
+ }
14365
+ if (message.temperature !== 0) {
14366
+ obj.temperature = message.temperature;
14367
+ }
14368
+ return obj;
14369
+ },
14370
+ create(base) {
14371
+ return exports.ThermalZone.fromPartial(base ?? {});
14372
+ },
14373
+ fromPartial(object) {
14374
+ const message = createBaseThermalZone();
14375
+ message.zone = object.zone ?? 0;
14376
+ message.temperature = object.temperature ?? 0;
14377
+ return message;
14378
+ },
14379
+ };
14380
+ function createBaseVideoCodecInfo() {
14381
+ return {
14382
+ encoderActive: false,
14383
+ encoderFrequencyMhz: 0,
14384
+ decoderActive: false,
14385
+ decoderFrequencyMhz: 0,
14386
+ nvjpgActive: false,
14387
+ nvjpgFrequencyMhz: 0,
14388
+ vicActive: false,
14389
+ vicFrequencyMhz: 0,
14390
+ vpuActive: false,
14391
+ vpuFrequencyMhz: 0,
14392
+ vpuCodecIrqCount: 0,
14393
+ vpuJpgIrqCount: 0,
14394
+ };
14395
+ }
14396
+ exports.VideoCodecInfo = {
14397
+ encode(message, writer = new wire_1.BinaryWriter()) {
14398
+ if (message.encoderActive !== false) {
14399
+ writer.uint32(8).bool(message.encoderActive);
14400
+ }
14401
+ if (message.encoderFrequencyMhz !== 0) {
14402
+ writer.uint32(21).float(message.encoderFrequencyMhz);
14403
+ }
14404
+ if (message.decoderActive !== false) {
14405
+ writer.uint32(24).bool(message.decoderActive);
14406
+ }
14407
+ if (message.decoderFrequencyMhz !== 0) {
14408
+ writer.uint32(37).float(message.decoderFrequencyMhz);
14409
+ }
14410
+ if (message.nvjpgActive !== false) {
14411
+ writer.uint32(40).bool(message.nvjpgActive);
14412
+ }
14413
+ if (message.nvjpgFrequencyMhz !== 0) {
14414
+ writer.uint32(53).float(message.nvjpgFrequencyMhz);
14415
+ }
14416
+ if (message.vicActive !== false) {
14417
+ writer.uint32(56).bool(message.vicActive);
14418
+ }
14419
+ if (message.vicFrequencyMhz !== 0) {
14420
+ writer.uint32(69).float(message.vicFrequencyMhz);
14421
+ }
14422
+ if (message.vpuActive !== false) {
14423
+ writer.uint32(72).bool(message.vpuActive);
14424
+ }
14425
+ if (message.vpuFrequencyMhz !== 0) {
14426
+ writer.uint32(85).float(message.vpuFrequencyMhz);
14427
+ }
14428
+ if (message.vpuCodecIrqCount !== 0) {
14429
+ writer.uint32(88).uint32(message.vpuCodecIrqCount);
14430
+ }
14431
+ if (message.vpuJpgIrqCount !== 0) {
14432
+ writer.uint32(96).uint32(message.vpuJpgIrqCount);
14433
+ }
14434
+ return writer;
14435
+ },
14436
+ decode(input, length) {
14437
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14438
+ const end = length === undefined ? reader.len : reader.pos + length;
14439
+ const message = createBaseVideoCodecInfo();
14440
+ while (reader.pos < end) {
14441
+ const tag = reader.uint32();
14442
+ switch (tag >>> 3) {
14443
+ case 1: {
14444
+ if (tag !== 8) {
14445
+ break;
14446
+ }
14447
+ message.encoderActive = reader.bool();
14448
+ continue;
14449
+ }
14450
+ case 2: {
14451
+ if (tag !== 21) {
14452
+ break;
14453
+ }
14454
+ message.encoderFrequencyMhz = reader.float();
14455
+ continue;
14456
+ }
14457
+ case 3: {
14458
+ if (tag !== 24) {
14459
+ break;
14460
+ }
14461
+ message.decoderActive = reader.bool();
14462
+ continue;
14463
+ }
14464
+ case 4: {
14465
+ if (tag !== 37) {
14466
+ break;
14467
+ }
14468
+ message.decoderFrequencyMhz = reader.float();
14469
+ continue;
14470
+ }
14471
+ case 5: {
14472
+ if (tag !== 40) {
14473
+ break;
14474
+ }
14475
+ message.nvjpgActive = reader.bool();
14476
+ continue;
14477
+ }
14478
+ case 6: {
14479
+ if (tag !== 53) {
14480
+ break;
14481
+ }
14482
+ message.nvjpgFrequencyMhz = reader.float();
14483
+ continue;
14484
+ }
14485
+ case 7: {
14486
+ if (tag !== 56) {
14487
+ break;
14488
+ }
14489
+ message.vicActive = reader.bool();
14490
+ continue;
14491
+ }
14492
+ case 8: {
14493
+ if (tag !== 69) {
14494
+ break;
14495
+ }
14496
+ message.vicFrequencyMhz = reader.float();
14497
+ continue;
14498
+ }
14499
+ case 9: {
14500
+ if (tag !== 72) {
14501
+ break;
14502
+ }
14503
+ message.vpuActive = reader.bool();
14504
+ continue;
14505
+ }
14506
+ case 10: {
14507
+ if (tag !== 85) {
14508
+ break;
14509
+ }
14510
+ message.vpuFrequencyMhz = reader.float();
14511
+ continue;
14512
+ }
14513
+ case 11: {
14514
+ if (tag !== 88) {
14515
+ break;
14516
+ }
14517
+ message.vpuCodecIrqCount = reader.uint32();
14518
+ continue;
14519
+ }
14520
+ case 12: {
14521
+ if (tag !== 96) {
14522
+ break;
14523
+ }
14524
+ message.vpuJpgIrqCount = reader.uint32();
14525
+ continue;
14526
+ }
14527
+ }
14528
+ if ((tag & 7) === 4 || tag === 0) {
14529
+ break;
14530
+ }
14531
+ reader.skip(tag & 7);
14532
+ }
14533
+ return message;
14534
+ },
14535
+ fromJSON(object) {
14536
+ return {
14537
+ encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
14538
+ encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
14539
+ decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
14540
+ decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
14541
+ nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
14542
+ nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
14543
+ vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
14544
+ vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
14545
+ vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
14546
+ vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
14547
+ vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
14548
+ vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
14549
+ };
14550
+ },
14551
+ toJSON(message) {
14552
+ const obj = {};
14553
+ if (message.encoderActive !== false) {
14554
+ obj.encoderActive = message.encoderActive;
14555
+ }
14556
+ if (message.encoderFrequencyMhz !== 0) {
14557
+ obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
14558
+ }
14559
+ if (message.decoderActive !== false) {
14560
+ obj.decoderActive = message.decoderActive;
14561
+ }
14562
+ if (message.decoderFrequencyMhz !== 0) {
14563
+ obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
14564
+ }
14565
+ if (message.nvjpgActive !== false) {
14566
+ obj.nvjpgActive = message.nvjpgActive;
14567
+ }
14568
+ if (message.nvjpgFrequencyMhz !== 0) {
14569
+ obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
14570
+ }
14571
+ if (message.vicActive !== false) {
14572
+ obj.vicActive = message.vicActive;
14573
+ }
14574
+ if (message.vicFrequencyMhz !== 0) {
14575
+ obj.vicFrequencyMhz = message.vicFrequencyMhz;
14576
+ }
14577
+ if (message.vpuActive !== false) {
14578
+ obj.vpuActive = message.vpuActive;
14579
+ }
14580
+ if (message.vpuFrequencyMhz !== 0) {
14581
+ obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
14582
+ }
14583
+ if (message.vpuCodecIrqCount !== 0) {
14584
+ obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
14585
+ }
14586
+ if (message.vpuJpgIrqCount !== 0) {
14587
+ obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
14588
+ }
14589
+ return obj;
14590
+ },
14591
+ create(base) {
14592
+ return exports.VideoCodecInfo.fromPartial(base ?? {});
14593
+ },
14594
+ fromPartial(object) {
14595
+ const message = createBaseVideoCodecInfo();
14596
+ message.encoderActive = object.encoderActive ?? false;
14597
+ message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
14598
+ message.decoderActive = object.decoderActive ?? false;
14599
+ message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
14600
+ message.nvjpgActive = object.nvjpgActive ?? false;
14601
+ message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
14602
+ message.vicActive = object.vicActive ?? false;
14603
+ message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
14604
+ message.vpuActive = object.vpuActive ?? false;
14605
+ message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
14606
+ message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
14607
+ message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
14608
+ return message;
14609
+ },
14610
+ };
14611
+ function createBaseSystemPerformanceInfo() {
14612
+ return {
14613
+ cpuCores: [],
14614
+ cpuUtilization: 0,
14615
+ gpu: undefined,
14616
+ dlaEngines: [],
14617
+ memory: undefined,
14618
+ thermalZones: [],
14619
+ videoCodec: undefined,
14620
+ mainQueueLoad: 0,
14621
+ guestportQueueLoad: 0,
14622
+ commQueueLoad: 0,
14623
+ cameraQueueLoad: 0,
14624
+ overlayQueueLoad: 0,
14625
+ positionObserverQueueLoad: 0,
14626
+ };
14627
+ }
14628
+ exports.SystemPerformanceInfo = {
14629
+ encode(message, writer = new wire_1.BinaryWriter()) {
14630
+ for (const v of message.cpuCores) {
14631
+ exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
14632
+ }
14633
+ if (message.cpuUtilization !== 0) {
14634
+ writer.uint32(21).float(message.cpuUtilization);
14635
+ }
14636
+ if (message.gpu !== undefined) {
14637
+ exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
14638
+ }
14639
+ for (const v of message.dlaEngines) {
14640
+ exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
14641
+ }
14642
+ if (message.memory !== undefined) {
14643
+ exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
14644
+ }
14645
+ for (const v of message.thermalZones) {
14646
+ exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
14647
+ }
14648
+ if (message.videoCodec !== undefined) {
14649
+ exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
14650
+ }
14651
+ if (message.mainQueueLoad !== 0) {
14652
+ writer.uint32(69).float(message.mainQueueLoad);
14653
+ }
14654
+ if (message.guestportQueueLoad !== 0) {
14655
+ writer.uint32(77).float(message.guestportQueueLoad);
14656
+ }
14657
+ if (message.commQueueLoad !== 0) {
14658
+ writer.uint32(85).float(message.commQueueLoad);
14659
+ }
14660
+ if (message.cameraQueueLoad !== 0) {
14661
+ writer.uint32(93).float(message.cameraQueueLoad);
14662
+ }
14663
+ if (message.overlayQueueLoad !== 0) {
14664
+ writer.uint32(101).float(message.overlayQueueLoad);
14665
+ }
14666
+ if (message.positionObserverQueueLoad !== 0) {
14667
+ writer.uint32(109).float(message.positionObserverQueueLoad);
14668
+ }
14669
+ return writer;
14670
+ },
14671
+ decode(input, length) {
14672
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14673
+ const end = length === undefined ? reader.len : reader.pos + length;
14674
+ const message = createBaseSystemPerformanceInfo();
14675
+ while (reader.pos < end) {
14676
+ const tag = reader.uint32();
14677
+ switch (tag >>> 3) {
14678
+ case 1: {
14679
+ if (tag !== 10) {
14680
+ break;
14681
+ }
14682
+ message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
14683
+ continue;
14684
+ }
14685
+ case 2: {
14686
+ if (tag !== 21) {
14687
+ break;
14688
+ }
14689
+ message.cpuUtilization = reader.float();
14690
+ continue;
14691
+ }
14692
+ case 3: {
14693
+ if (tag !== 26) {
14694
+ break;
14695
+ }
14696
+ message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
14697
+ continue;
14698
+ }
14699
+ case 4: {
14700
+ if (tag !== 34) {
14701
+ break;
14702
+ }
14703
+ message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
14704
+ continue;
14705
+ }
14706
+ case 5: {
14707
+ if (tag !== 42) {
14708
+ break;
14709
+ }
14710
+ message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
14711
+ continue;
14712
+ }
14713
+ case 6: {
14714
+ if (tag !== 50) {
14715
+ break;
14716
+ }
14717
+ message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
14718
+ continue;
14719
+ }
14720
+ case 7: {
14721
+ if (tag !== 58) {
14722
+ break;
14723
+ }
14724
+ message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
14725
+ continue;
14726
+ }
14727
+ case 8: {
14728
+ if (tag !== 69) {
14729
+ break;
14730
+ }
14731
+ message.mainQueueLoad = reader.float();
14732
+ continue;
14733
+ }
14734
+ case 9: {
14735
+ if (tag !== 77) {
14736
+ break;
14737
+ }
14738
+ message.guestportQueueLoad = reader.float();
14739
+ continue;
14740
+ }
14741
+ case 10: {
14742
+ if (tag !== 85) {
14743
+ break;
14744
+ }
14745
+ message.commQueueLoad = reader.float();
14746
+ continue;
14747
+ }
14748
+ case 11: {
14749
+ if (tag !== 93) {
14750
+ break;
14751
+ }
14752
+ message.cameraQueueLoad = reader.float();
14753
+ continue;
14754
+ }
14755
+ case 12: {
14756
+ if (tag !== 101) {
14757
+ break;
14758
+ }
14759
+ message.overlayQueueLoad = reader.float();
14760
+ continue;
14761
+ }
14762
+ case 13: {
14763
+ if (tag !== 109) {
14764
+ break;
14765
+ }
14766
+ message.positionObserverQueueLoad = reader.float();
14767
+ continue;
14768
+ }
14769
+ }
14770
+ if ((tag & 7) === 4 || tag === 0) {
14771
+ break;
14772
+ }
14773
+ reader.skip(tag & 7);
14774
+ }
14775
+ return message;
14776
+ },
14777
+ fromJSON(object) {
14778
+ return {
14779
+ cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
14780
+ cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
14781
+ gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
14782
+ dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
14783
+ memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
14784
+ thermalZones: gt.Array.isArray(object?.thermalZones)
14785
+ ? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
14786
+ : [],
14787
+ videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
14788
+ mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
14789
+ guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
14790
+ commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
14791
+ cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
14792
+ overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
14793
+ positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
14794
+ ? gt.Number(object.positionObserverQueueLoad)
14795
+ : 0,
14796
+ };
14797
+ },
14798
+ toJSON(message) {
14799
+ const obj = {};
14800
+ if (message.cpuCores?.length) {
14801
+ obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
14802
+ }
14803
+ if (message.cpuUtilization !== 0) {
14804
+ obj.cpuUtilization = message.cpuUtilization;
14805
+ }
14806
+ if (message.gpu !== undefined) {
14807
+ obj.gpu = exports.GpuInfo.toJSON(message.gpu);
14808
+ }
14809
+ if (message.dlaEngines?.length) {
14810
+ obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
14811
+ }
14812
+ if (message.memory !== undefined) {
14813
+ obj.memory = exports.MemoryInfo.toJSON(message.memory);
14814
+ }
14815
+ if (message.thermalZones?.length) {
14816
+ obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
14817
+ }
14818
+ if (message.videoCodec !== undefined) {
14819
+ obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
14820
+ }
14821
+ if (message.mainQueueLoad !== 0) {
14822
+ obj.mainQueueLoad = message.mainQueueLoad;
14823
+ }
14824
+ if (message.guestportQueueLoad !== 0) {
14825
+ obj.guestportQueueLoad = message.guestportQueueLoad;
14826
+ }
14827
+ if (message.commQueueLoad !== 0) {
14828
+ obj.commQueueLoad = message.commQueueLoad;
14829
+ }
14830
+ if (message.cameraQueueLoad !== 0) {
14831
+ obj.cameraQueueLoad = message.cameraQueueLoad;
14832
+ }
14833
+ if (message.overlayQueueLoad !== 0) {
14834
+ obj.overlayQueueLoad = message.overlayQueueLoad;
14835
+ }
14836
+ if (message.positionObserverQueueLoad !== 0) {
14837
+ obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
14838
+ }
14839
+ return obj;
14840
+ },
14841
+ create(base) {
14842
+ return exports.SystemPerformanceInfo.fromPartial(base ?? {});
14843
+ },
14844
+ fromPartial(object) {
14845
+ const message = createBaseSystemPerformanceInfo();
14846
+ message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
14847
+ message.cpuUtilization = object.cpuUtilization ?? 0;
14848
+ message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
14849
+ message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
14850
+ message.memory = (object.memory !== undefined && object.memory !== null)
14851
+ ? exports.MemoryInfo.fromPartial(object.memory)
14852
+ : undefined;
14853
+ message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
14854
+ message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
14855
+ ? exports.VideoCodecInfo.fromPartial(object.videoCodec)
14856
+ : undefined;
14857
+ message.mainQueueLoad = object.mainQueueLoad ?? 0;
14858
+ message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
14859
+ message.commQueueLoad = object.commQueueLoad ?? 0;
14860
+ message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
14861
+ message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
14862
+ message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
14863
+ return message;
14864
+ },
14865
+ };
14866
+ function createBaseSurfaceUnitBatteryInfo() {
14867
+ return { status: 0, level: 0 };
14868
+ }
14869
+ exports.SurfaceUnitBatteryInfo = {
14870
+ encode(message, writer = new wire_1.BinaryWriter()) {
14871
+ if (message.status !== 0) {
14872
+ writer.uint32(8).int32(message.status);
14873
+ }
14874
+ if (message.level !== 0) {
14875
+ writer.uint32(21).float(message.level);
14876
+ }
14877
+ return writer;
14878
+ },
14879
+ decode(input, length) {
14880
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14881
+ const end = length === undefined ? reader.len : reader.pos + length;
14882
+ const message = createBaseSurfaceUnitBatteryInfo();
14883
+ while (reader.pos < end) {
14884
+ const tag = reader.uint32();
14885
+ switch (tag >>> 3) {
14886
+ case 1: {
14887
+ if (tag !== 8) {
14888
+ break;
14889
+ }
14890
+ message.status = reader.int32();
14891
+ continue;
14892
+ }
14893
+ case 2: {
14894
+ if (tag !== 21) {
14895
+ break;
14896
+ }
14897
+ message.level = reader.float();
14898
+ continue;
14899
+ }
14900
+ }
14901
+ if ((tag & 7) === 4 || tag === 0) {
14902
+ break;
14903
+ }
14904
+ reader.skip(tag & 7);
14905
+ }
14906
+ return message;
14907
+ },
14908
+ fromJSON(object) {
14909
+ return {
14910
+ status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
14911
+ level: isSet(object.level) ? gt.Number(object.level) : 0,
14912
+ };
14913
+ },
14914
+ toJSON(message) {
14915
+ const obj = {};
14916
+ if (message.status !== 0) {
14917
+ obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
14918
+ }
14919
+ if (message.level !== 0) {
14920
+ obj.level = message.level;
14921
+ }
14922
+ return obj;
14923
+ },
14924
+ create(base) {
14925
+ return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
14926
+ },
14927
+ fromPartial(object) {
14928
+ const message = createBaseSurfaceUnitBatteryInfo();
14929
+ message.status = object.status ?? 0;
14930
+ message.level = object.level ?? 0;
14931
+ return message;
14932
+ },
14933
+ };
14934
+ function createBaseSurfaceUnitVersionInfo() {
14935
+ return { version: "" };
14936
+ }
14937
+ exports.SurfaceUnitVersionInfo = {
14938
+ encode(message, writer = new wire_1.BinaryWriter()) {
14939
+ if (message.version !== "") {
14940
+ writer.uint32(10).string(message.version);
14941
+ }
14942
+ return writer;
14943
+ },
14944
+ decode(input, length) {
14945
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14946
+ const end = length === undefined ? reader.len : reader.pos + length;
14947
+ const message = createBaseSurfaceUnitVersionInfo();
14948
+ while (reader.pos < end) {
14949
+ const tag = reader.uint32();
14950
+ switch (tag >>> 3) {
14951
+ case 1: {
14952
+ if (tag !== 10) {
14953
+ break;
14954
+ }
14955
+ message.version = reader.string();
14956
+ continue;
14957
+ }
14958
+ }
14959
+ if ((tag & 7) === 4 || tag === 0) {
14960
+ break;
14961
+ }
14962
+ reader.skip(tag & 7);
14963
+ }
14964
+ return message;
14965
+ },
14966
+ fromJSON(object) {
14967
+ return { version: isSet(object.version) ? gt.String(object.version) : "" };
14968
+ },
14969
+ toJSON(message) {
14970
+ const obj = {};
14971
+ if (message.version !== "") {
14972
+ obj.version = message.version;
14973
+ }
14974
+ return obj;
14975
+ },
14976
+ create(base) {
14977
+ return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
14978
+ },
14979
+ fromPartial(object) {
14980
+ const message = createBaseSurfaceUnitVersionInfo();
14981
+ message.version = object.version ?? "";
14982
+ return message;
14983
+ },
14984
+ };
14985
+ function createBaseBoundingBox() {
14986
+ return { x: 0, y: 0, width: 0, height: 0 };
14987
+ }
14988
+ exports.BoundingBox = {
14989
+ encode(message, writer = new wire_1.BinaryWriter()) {
14990
+ if (message.x !== 0) {
14991
+ writer.uint32(8).uint32(message.x);
14992
+ }
14993
+ if (message.y !== 0) {
14994
+ writer.uint32(16).uint32(message.y);
14995
+ }
14996
+ if (message.width !== 0) {
14997
+ writer.uint32(24).uint32(message.width);
14998
+ }
14999
+ if (message.height !== 0) {
15000
+ writer.uint32(32).uint32(message.height);
15001
+ }
15002
+ return writer;
15003
+ },
15004
+ decode(input, length) {
15005
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15006
+ const end = length === undefined ? reader.len : reader.pos + length;
15007
+ const message = createBaseBoundingBox();
15008
+ while (reader.pos < end) {
15009
+ const tag = reader.uint32();
15010
+ switch (tag >>> 3) {
15011
+ case 1: {
15012
+ if (tag !== 8) {
15013
+ break;
15014
+ }
15015
+ message.x = reader.uint32();
15016
+ continue;
15017
+ }
15018
+ case 2: {
15019
+ if (tag !== 16) {
15020
+ break;
15021
+ }
15022
+ message.y = reader.uint32();
15023
+ continue;
15024
+ }
15025
+ case 3: {
15026
+ if (tag !== 24) {
15027
+ break;
15028
+ }
15029
+ message.width = reader.uint32();
15030
+ continue;
15031
+ }
15032
+ case 4: {
15033
+ if (tag !== 32) {
15034
+ break;
15035
+ }
15036
+ message.height = reader.uint32();
15037
+ continue;
15038
+ }
15039
+ }
15040
+ if ((tag & 7) === 4 || tag === 0) {
15041
+ break;
15042
+ }
15043
+ reader.skip(tag & 7);
15044
+ }
15045
+ return message;
15046
+ },
15047
+ fromJSON(object) {
15048
+ return {
15049
+ x: isSet(object.x) ? gt.Number(object.x) : 0,
15050
+ y: isSet(object.y) ? gt.Number(object.y) : 0,
15051
+ width: isSet(object.width) ? gt.Number(object.width) : 0,
15052
+ height: isSet(object.height) ? gt.Number(object.height) : 0,
15053
+ };
15054
+ },
15055
+ toJSON(message) {
15056
+ const obj = {};
15057
+ if (message.x !== 0) {
15058
+ obj.x = Math.round(message.x);
15059
+ }
15060
+ if (message.y !== 0) {
15061
+ obj.y = Math.round(message.y);
15062
+ }
15063
+ if (message.width !== 0) {
15064
+ obj.width = Math.round(message.width);
15065
+ }
15066
+ if (message.height !== 0) {
15067
+ obj.height = Math.round(message.height);
15068
+ }
15069
+ return obj;
15070
+ },
15071
+ create(base) {
15072
+ return exports.BoundingBox.fromPartial(base ?? {});
15073
+ },
15074
+ fromPartial(object) {
15075
+ const message = createBaseBoundingBox();
15076
+ message.x = object.x ?? 0;
15077
+ message.y = object.y ?? 0;
15078
+ message.width = object.width ?? 0;
15079
+ message.height = object.height ?? 0;
15080
+ return message;
15081
+ },
15082
+ };
15083
+ function createBaseSegmentationMask() {
15084
+ return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0) };
15085
+ }
15086
+ exports.SegmentationMask = {
15087
+ encode(message, writer = new wire_1.BinaryWriter()) {
15088
+ if (message.maskWidth !== 0) {
15089
+ writer.uint32(8).uint32(message.maskWidth);
15090
+ }
15091
+ if (message.maskHeight !== 0) {
15092
+ writer.uint32(16).uint32(message.maskHeight);
15093
+ }
15094
+ if (message.counts.length !== 0) {
15095
+ writer.uint32(26).bytes(message.counts);
15096
+ }
15097
+ return writer;
15098
+ },
15099
+ decode(input, length) {
15100
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15101
+ const end = length === undefined ? reader.len : reader.pos + length;
15102
+ const message = createBaseSegmentationMask();
15103
+ while (reader.pos < end) {
15104
+ const tag = reader.uint32();
15105
+ switch (tag >>> 3) {
15106
+ case 1: {
15107
+ if (tag !== 8) {
15108
+ break;
15109
+ }
15110
+ message.maskWidth = reader.uint32();
15111
+ continue;
15112
+ }
15113
+ case 2: {
15114
+ if (tag !== 16) {
15115
+ break;
15116
+ }
15117
+ message.maskHeight = reader.uint32();
15118
+ continue;
15119
+ }
15120
+ case 3: {
15121
+ if (tag !== 26) {
15122
+ break;
15123
+ }
15124
+ message.counts = reader.bytes();
15125
+ continue;
15126
+ }
15127
+ }
15128
+ if ((tag & 7) === 4 || tag === 0) {
15129
+ break;
15130
+ }
15131
+ reader.skip(tag & 7);
15132
+ }
15133
+ return message;
15134
+ },
15135
+ fromJSON(object) {
15136
+ return {
15137
+ maskWidth: isSet(object.maskWidth) ? gt.Number(object.maskWidth) : 0,
15138
+ maskHeight: isSet(object.maskHeight) ? gt.Number(object.maskHeight) : 0,
15139
+ counts: isSet(object.counts) ? bytesFromBase64(object.counts) : new Uint8Array(0),
15140
+ };
15141
+ },
15142
+ toJSON(message) {
15143
+ const obj = {};
15144
+ if (message.maskWidth !== 0) {
15145
+ obj.maskWidth = Math.round(message.maskWidth);
15146
+ }
15147
+ if (message.maskHeight !== 0) {
15148
+ obj.maskHeight = Math.round(message.maskHeight);
15149
+ }
15150
+ if (message.counts.length !== 0) {
15151
+ obj.counts = base64FromBytes(message.counts);
15152
+ }
15153
+ return obj;
15154
+ },
15155
+ create(base) {
15156
+ return exports.SegmentationMask.fromPartial(base ?? {});
15157
+ },
15158
+ fromPartial(object) {
15159
+ const message = createBaseSegmentationMask();
15160
+ message.maskWidth = object.maskWidth ?? 0;
15161
+ message.maskHeight = object.maskHeight ?? 0;
15162
+ message.counts = object.counts ?? new Uint8Array(0);
15163
+ return message;
15164
+ },
15165
+ };
15166
+ function createBaseObjectDetection() {
15167
+ return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0, mask: undefined };
15168
+ }
15169
+ exports.ObjectDetection = {
15170
+ encode(message, writer = new wire_1.BinaryWriter()) {
15171
+ if (message.boundingBox !== undefined) {
15172
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
15173
+ }
15174
+ if (message.confidence !== 0) {
15175
+ writer.uint32(21).float(message.confidence);
15176
+ }
15177
+ if (message.classId !== 0) {
15178
+ writer.uint32(24).uint32(message.classId);
15179
+ }
15180
+ if (message.className !== "") {
15181
+ writer.uint32(34).string(message.className);
15182
+ }
15183
+ if (message.trackingId !== 0) {
15184
+ writer.uint32(40).uint32(message.trackingId);
15185
+ }
15186
+ if (message.mask !== undefined) {
15187
+ exports.SegmentationMask.encode(message.mask, writer.uint32(50).fork()).join();
15188
+ }
15189
+ return writer;
15190
+ },
15191
+ decode(input, length) {
15192
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15193
+ const end = length === undefined ? reader.len : reader.pos + length;
15194
+ const message = createBaseObjectDetection();
15195
+ while (reader.pos < end) {
15196
+ const tag = reader.uint32();
15197
+ switch (tag >>> 3) {
15198
+ case 1: {
15199
+ if (tag !== 10) {
15200
+ break;
15201
+ }
15202
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
15203
+ continue;
15204
+ }
15205
+ case 2: {
15206
+ if (tag !== 21) {
15207
+ break;
15208
+ }
15209
+ message.confidence = reader.float();
15210
+ continue;
15211
+ }
15212
+ case 3: {
15213
+ if (tag !== 24) {
15214
+ break;
15215
+ }
15216
+ message.classId = reader.uint32();
15217
+ continue;
15218
+ }
15219
+ case 4: {
15220
+ if (tag !== 34) {
15221
+ break;
15222
+ }
15223
+ message.className = reader.string();
15224
+ continue;
15225
+ }
15226
+ case 5: {
15227
+ if (tag !== 40) {
15228
+ break;
15229
+ }
15230
+ message.trackingId = reader.uint32();
15231
+ continue;
15232
+ }
15233
+ case 6: {
15234
+ if (tag !== 50) {
15235
+ break;
15236
+ }
15237
+ message.mask = exports.SegmentationMask.decode(reader, reader.uint32());
15238
+ continue;
15239
+ }
15240
+ }
15241
+ if ((tag & 7) === 4 || tag === 0) {
15242
+ break;
15243
+ }
15244
+ reader.skip(tag & 7);
15245
+ }
15246
+ return message;
15247
+ },
15248
+ fromJSON(object) {
15249
+ return {
15250
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
15251
+ confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
15252
+ classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
15253
+ className: isSet(object.className) ? gt.String(object.className) : "",
15254
+ trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
15255
+ mask: isSet(object.mask) ? exports.SegmentationMask.fromJSON(object.mask) : undefined,
15256
+ };
15257
+ },
15258
+ toJSON(message) {
15259
+ const obj = {};
15260
+ if (message.boundingBox !== undefined) {
15261
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
15262
+ }
15263
+ if (message.confidence !== 0) {
15264
+ obj.confidence = message.confidence;
15265
+ }
15266
+ if (message.classId !== 0) {
15267
+ obj.classId = Math.round(message.classId);
15268
+ }
15269
+ if (message.className !== "") {
15270
+ obj.className = message.className;
15271
+ }
15272
+ if (message.trackingId !== 0) {
15273
+ obj.trackingId = Math.round(message.trackingId);
15274
+ }
15275
+ if (message.mask !== undefined) {
15276
+ obj.mask = exports.SegmentationMask.toJSON(message.mask);
15277
+ }
15278
+ return obj;
15279
+ },
15280
+ create(base) {
15281
+ return exports.ObjectDetection.fromPartial(base ?? {});
15282
+ },
15283
+ fromPartial(object) {
15284
+ const message = createBaseObjectDetection();
15285
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
15286
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
15287
+ : undefined;
15288
+ message.confidence = object.confidence ?? 0;
15289
+ message.classId = object.classId ?? 0;
15290
+ message.className = object.className ?? "";
15291
+ message.trackingId = object.trackingId ?? 0;
15292
+ message.mask = (object.mask !== undefined && object.mask !== null)
15293
+ ? exports.SegmentationMask.fromPartial(object.mask)
15294
+ : undefined;
15295
+ return message;
15296
+ },
15297
+ };
15298
+ function createBaseModelDetections() {
15299
+ return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
15300
+ }
15301
+ exports.ModelDetections = {
15302
+ encode(message, writer = new wire_1.BinaryWriter()) {
15303
+ for (const v of message.detections) {
15304
+ exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
15305
+ }
15306
+ if (message.camera !== 0) {
15307
+ writer.uint32(16).int32(message.camera);
15308
+ }
15309
+ if (message.imageWidth !== 0) {
15310
+ writer.uint32(24).uint32(message.imageWidth);
15311
+ }
15312
+ if (message.imageHeight !== 0) {
15313
+ writer.uint32(32).uint32(message.imageHeight);
15314
+ }
15315
+ if (message.modelName !== "") {
15316
+ writer.uint32(42).string(message.modelName);
15317
+ }
15318
+ return writer;
15319
+ },
15320
+ decode(input, length) {
15321
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15322
+ const end = length === undefined ? reader.len : reader.pos + length;
15323
+ const message = createBaseModelDetections();
15324
+ while (reader.pos < end) {
15325
+ const tag = reader.uint32();
15326
+ switch (tag >>> 3) {
15327
+ case 1: {
15328
+ if (tag !== 10) {
15329
+ break;
15330
+ }
15331
+ message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
15332
+ continue;
15333
+ }
15334
+ case 2: {
15335
+ if (tag !== 16) {
15336
+ break;
15337
+ }
15338
+ message.camera = reader.int32();
15339
+ continue;
15340
+ }
15341
+ case 3: {
15342
+ if (tag !== 24) {
15343
+ break;
15344
+ }
15345
+ message.imageWidth = reader.uint32();
15346
+ continue;
15347
+ }
15348
+ case 4: {
15349
+ if (tag !== 32) {
15350
+ break;
15351
+ }
15352
+ message.imageHeight = reader.uint32();
15353
+ continue;
15354
+ }
15355
+ case 5: {
15356
+ if (tag !== 42) {
15357
+ break;
15358
+ }
15359
+ message.modelName = reader.string();
15360
+ continue;
15361
+ }
15362
+ }
15363
+ if ((tag & 7) === 4 || tag === 0) {
15364
+ break;
15365
+ }
15366
+ reader.skip(tag & 7);
15367
+ }
15368
+ return message;
15369
+ },
15370
+ fromJSON(object) {
15371
+ return {
15372
+ detections: gt.Array.isArray(object?.detections)
15373
+ ? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
15374
+ : [],
15375
+ camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
15376
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
15377
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
15378
+ modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
15379
+ };
15380
+ },
15381
+ toJSON(message) {
15382
+ const obj = {};
15383
+ if (message.detections?.length) {
15384
+ obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
15385
+ }
15386
+ if (message.camera !== 0) {
15387
+ obj.camera = cameraToJSON(message.camera);
15388
+ }
15389
+ if (message.imageWidth !== 0) {
15390
+ obj.imageWidth = Math.round(message.imageWidth);
15391
+ }
15392
+ if (message.imageHeight !== 0) {
15393
+ obj.imageHeight = Math.round(message.imageHeight);
15394
+ }
15395
+ if (message.modelName !== "") {
15396
+ obj.modelName = message.modelName;
15397
+ }
15398
+ return obj;
15399
+ },
15400
+ create(base) {
15401
+ return exports.ModelDetections.fromPartial(base ?? {});
15402
+ },
15403
+ fromPartial(object) {
15404
+ const message = createBaseModelDetections();
15405
+ message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
15406
+ message.camera = object.camera ?? 0;
15407
+ message.imageWidth = object.imageWidth ?? 0;
15408
+ message.imageHeight = object.imageHeight ?? 0;
15409
+ message.modelName = object.modelName ?? "";
15410
+ return message;
15411
+ },
15412
+ };
15413
+ function createBaseFilterMessage() {
15414
+ return { enabled: false, intensity: 0 };
15415
+ }
15416
+ exports.FilterMessage = {
15417
+ encode(message, writer = new wire_1.BinaryWriter()) {
15418
+ if (message.enabled !== false) {
15419
+ writer.uint32(8).bool(message.enabled);
15420
+ }
15421
+ if (message.intensity !== 0) {
15422
+ writer.uint32(21).float(message.intensity);
15423
+ }
15424
+ return writer;
15425
+ },
15426
+ decode(input, length) {
15427
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15428
+ const end = length === undefined ? reader.len : reader.pos + length;
15429
+ const message = createBaseFilterMessage();
15430
+ while (reader.pos < end) {
15431
+ const tag = reader.uint32();
15432
+ switch (tag >>> 3) {
15433
+ case 1: {
15434
+ if (tag !== 8) {
15435
+ break;
15436
+ }
15437
+ message.enabled = reader.bool();
15438
+ continue;
15439
+ }
15440
+ case 2: {
15441
+ if (tag !== 21) {
15442
+ break;
15443
+ }
15444
+ message.intensity = reader.float();
15445
+ continue;
15446
+ }
15447
+ }
15448
+ if ((tag & 7) === 4 || tag === 0) {
15449
+ break;
15450
+ }
15451
+ reader.skip(tag & 7);
15452
+ }
15453
+ return message;
15454
+ },
15455
+ fromJSON(object) {
15456
+ return {
15457
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
15458
+ intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
15459
+ };
15460
+ },
15461
+ toJSON(message) {
15462
+ const obj = {};
15463
+ if (message.enabled !== false) {
15464
+ obj.enabled = message.enabled;
15465
+ }
15466
+ if (message.intensity !== 0) {
15467
+ obj.intensity = message.intensity;
15468
+ }
15469
+ return obj;
15470
+ },
15471
+ create(base) {
15472
+ return exports.FilterMessage.fromPartial(base ?? {});
15473
+ },
15474
+ fromPartial(object) {
15475
+ const message = createBaseFilterMessage();
15476
+ message.enabled = object.enabled ?? false;
15477
+ message.intensity = object.intensity ?? 0;
15478
+ return message;
15479
+ },
15480
+ };
15481
+ function createBaseCameraPanTiltZoom() {
15482
+ return { pan: 0, tilt: 0, zoom: 0 };
15483
+ }
15484
+ exports.CameraPanTiltZoom = {
15485
+ encode(message, writer = new wire_1.BinaryWriter()) {
15486
+ if (message.pan !== 0) {
15487
+ writer.uint32(13).float(message.pan);
15488
+ }
15489
+ if (message.tilt !== 0) {
15490
+ writer.uint32(21).float(message.tilt);
15491
+ }
15492
+ if (message.zoom !== 0) {
15493
+ writer.uint32(29).float(message.zoom);
15494
+ }
15495
+ return writer;
15496
+ },
15497
+ decode(input, length) {
15498
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15499
+ const end = length === undefined ? reader.len : reader.pos + length;
15500
+ const message = createBaseCameraPanTiltZoom();
15501
+ while (reader.pos < end) {
15502
+ const tag = reader.uint32();
15503
+ switch (tag >>> 3) {
15504
+ case 1: {
15505
+ if (tag !== 13) {
15506
+ break;
15507
+ }
15508
+ message.pan = reader.float();
15509
+ continue;
15510
+ }
15511
+ case 2: {
15512
+ if (tag !== 21) {
15513
+ break;
15514
+ }
15515
+ message.tilt = reader.float();
15516
+ continue;
15517
+ }
15518
+ case 3: {
15519
+ if (tag !== 29) {
15520
+ break;
15521
+ }
15522
+ message.zoom = reader.float();
15523
+ continue;
15524
+ }
15525
+ }
15526
+ if ((tag & 7) === 4 || tag === 0) {
15527
+ break;
15528
+ }
15529
+ reader.skip(tag & 7);
15530
+ }
15531
+ return message;
15532
+ },
15533
+ fromJSON(object) {
15534
+ return {
15535
+ pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
15536
+ tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
15537
+ zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
15538
+ };
15539
+ },
15540
+ toJSON(message) {
15541
+ const obj = {};
15542
+ if (message.pan !== 0) {
15543
+ obj.pan = message.pan;
15544
+ }
15545
+ if (message.tilt !== 0) {
15546
+ obj.tilt = message.tilt;
15547
+ }
15548
+ if (message.zoom !== 0) {
15549
+ obj.zoom = message.zoom;
15550
+ }
15551
+ return obj;
15552
+ },
15553
+ create(base) {
15554
+ return exports.CameraPanTiltZoom.fromPartial(base ?? {});
15555
+ },
15556
+ fromPartial(object) {
15557
+ const message = createBaseCameraPanTiltZoom();
15558
+ message.pan = object.pan ?? 0;
15559
+ message.tilt = object.tilt ?? 0;
15560
+ message.zoom = object.zoom ?? 0;
15561
+ return message;
15562
+ },
15563
+ };
15564
+ function createBaseOperatorInfo() {
15565
+ return { name: "", email: "" };
15566
+ }
15567
+ exports.OperatorInfo = {
15568
+ encode(message, writer = new wire_1.BinaryWriter()) {
15569
+ if (message.name !== "") {
15570
+ writer.uint32(10).string(message.name);
15571
+ }
15572
+ if (message.email !== "") {
15573
+ writer.uint32(18).string(message.email);
15574
+ }
15575
+ return writer;
15576
+ },
15577
+ decode(input, length) {
15578
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15579
+ const end = length === undefined ? reader.len : reader.pos + length;
15580
+ const message = createBaseOperatorInfo();
15581
+ while (reader.pos < end) {
15582
+ const tag = reader.uint32();
15583
+ switch (tag >>> 3) {
15584
+ case 1: {
15585
+ if (tag !== 10) {
15586
+ break;
15587
+ }
15588
+ message.name = reader.string();
15589
+ continue;
15590
+ }
15591
+ case 2: {
15592
+ if (tag !== 18) {
15593
+ break;
15594
+ }
15595
+ message.email = reader.string();
15596
+ continue;
15597
+ }
15598
+ }
15599
+ if ((tag & 7) === 4 || tag === 0) {
15600
+ break;
15601
+ }
15602
+ reader.skip(tag & 7);
15603
+ }
15604
+ return message;
15605
+ },
15606
+ fromJSON(object) {
15607
+ return {
15608
+ name: isSet(object.name) ? gt.String(object.name) : "",
15609
+ email: isSet(object.email) ? gt.String(object.email) : "",
15610
+ };
15611
+ },
15612
+ toJSON(message) {
15613
+ const obj = {};
15614
+ if (message.name !== "") {
15615
+ obj.name = message.name;
15616
+ }
15617
+ if (message.email !== "") {
15618
+ obj.email = message.email;
15619
+ }
15620
+ return obj;
15621
+ },
15622
+ create(base) {
15623
+ return exports.OperatorInfo.fromPartial(base ?? {});
15624
+ },
15625
+ fromPartial(object) {
15626
+ const message = createBaseOperatorInfo();
15627
+ message.name = object.name ?? "";
15628
+ message.email = object.email ?? "";
15629
+ return message;
15630
+ },
15631
+ };
15632
+ function createBaseSotState() {
15633
+ return { state: 0, boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
15634
+ }
15635
+ exports.SotState = {
15636
+ encode(message, writer = new wire_1.BinaryWriter()) {
15637
+ if (message.state !== 0) {
15638
+ writer.uint32(8).int32(message.state);
15639
+ }
15640
+ if (message.boundingBox !== undefined) {
15641
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(18).fork()).join();
15642
+ }
15643
+ if (message.imageWidth !== 0) {
15644
+ writer.uint32(24).uint32(message.imageWidth);
15645
+ }
15646
+ if (message.imageHeight !== 0) {
15647
+ writer.uint32(32).uint32(message.imageHeight);
15648
+ }
15649
+ return writer;
15650
+ },
15651
+ decode(input, length) {
15652
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15653
+ const end = length === undefined ? reader.len : reader.pos + length;
15654
+ const message = createBaseSotState();
15655
+ while (reader.pos < end) {
15656
+ const tag = reader.uint32();
15657
+ switch (tag >>> 3) {
15658
+ case 1: {
15659
+ if (tag !== 8) {
15660
+ break;
15661
+ }
15662
+ message.state = reader.int32();
15663
+ continue;
15664
+ }
15665
+ case 2: {
15666
+ if (tag !== 18) {
15667
+ break;
15668
+ }
15669
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
15670
+ continue;
15671
+ }
15672
+ case 3: {
15673
+ if (tag !== 24) {
15674
+ break;
15675
+ }
15676
+ message.imageWidth = reader.uint32();
15677
+ continue;
15678
+ }
15679
+ case 4: {
15680
+ if (tag !== 32) {
15681
+ break;
15682
+ }
15683
+ message.imageHeight = reader.uint32();
15684
+ continue;
15685
+ }
15686
+ }
15687
+ if ((tag & 7) === 4 || tag === 0) {
15688
+ break;
15689
+ }
15690
+ reader.skip(tag & 7);
15691
+ }
15692
+ return message;
15693
+ },
15694
+ fromJSON(object) {
15695
+ return {
15696
+ state: isSet(object.state) ? sotState_StateFromJSON(object.state) : 0,
15697
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
15698
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
15699
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
15700
+ };
15701
+ },
15702
+ toJSON(message) {
15703
+ const obj = {};
15704
+ if (message.state !== 0) {
15705
+ obj.state = sotState_StateToJSON(message.state);
15706
+ }
15707
+ if (message.boundingBox !== undefined) {
15708
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
15709
+ }
15710
+ if (message.imageWidth !== 0) {
15711
+ obj.imageWidth = Math.round(message.imageWidth);
15712
+ }
15713
+ if (message.imageHeight !== 0) {
15714
+ obj.imageHeight = Math.round(message.imageHeight);
15715
+ }
15716
+ return obj;
15717
+ },
15718
+ create(base) {
15719
+ return exports.SotState.fromPartial(base ?? {});
15720
+ },
15721
+ fromPartial(object) {
15722
+ const message = createBaseSotState();
15723
+ message.state = object.state ?? 0;
15724
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
15725
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
15726
+ : undefined;
15727
+ message.imageWidth = object.imageWidth ?? 0;
15728
+ message.imageHeight = object.imageHeight ?? 0;
13031
15729
  return message;
13032
15730
  },
13033
15731
  };