@blueyerobotics/protocol-definitions 3.2.0-c785049b → 3.2.0-d0f59472

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.
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: message_formats.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = 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.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.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
9
- exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = 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 = void 0;
10
- 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 = void 0;
8
+ exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.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.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = 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 = void 0;
11
11
  exports.intervalTypeFromJSON = intervalTypeFromJSON;
12
12
  exports.intervalTypeToJSON = intervalTypeToJSON;
13
13
  exports.locationSourceFromJSON = locationSourceFromJSON;
@@ -22,6 +22,8 @@ exports.notificationTypeFromJSON = notificationTypeFromJSON;
22
22
  exports.notificationTypeToJSON = notificationTypeToJSON;
23
23
  exports.notificationLevelFromJSON = notificationLevelFromJSON;
24
24
  exports.notificationLevelToJSON = notificationLevelToJSON;
25
+ exports.storageLocationFromJSON = storageLocationFromJSON;
26
+ exports.storageLocationToJSON = storageLocationToJSON;
25
27
  exports.modelFromJSON = modelFromJSON;
26
28
  exports.modelToJSON = modelToJSON;
27
29
  exports.pressureSensorTypeFromJSON = pressureSensorTypeFromJSON;
@@ -32,6 +34,10 @@ exports.framerateFromJSON = framerateFromJSON;
32
34
  exports.framerateToJSON = framerateToJSON;
33
35
  exports.cameraFromJSON = cameraFromJSON;
34
36
  exports.cameraToJSON = cameraToJSON;
37
+ exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
38
+ exports.streamingProtocolToJSON = streamingProtocolToJSON;
39
+ exports.recordingCodecFromJSON = recordingCodecFromJSON;
40
+ exports.recordingCodecToJSON = recordingCodecToJSON;
35
41
  exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
36
42
  exports.temperatureUnitToJSON = temperatureUnitToJSON;
37
43
  exports.logoTypeFromJSON = logoTypeFromJSON;
@@ -54,8 +60,12 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
54
60
  exports.guestPortErrorToJSON = guestPortErrorToJSON;
55
61
  exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
56
62
  exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
63
+ exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
64
+ exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
57
65
  exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
58
66
  exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
67
+ exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
68
+ exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
59
69
  exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
60
70
  exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
61
71
  exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
@@ -64,10 +74,16 @@ exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFro
64
74
  exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
65
75
  exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
66
76
  exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
77
+ exports.cvModelInfo_ModelTypeFromJSON = cvModelInfo_ModelTypeFromJSON;
78
+ exports.cvModelInfo_ModelTypeToJSON = cvModelInfo_ModelTypeToJSON;
67
79
  exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
68
80
  exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
69
81
  exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
70
82
  exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
83
+ exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
84
+ exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
85
+ exports.sotState_StateFromJSON = sotState_StateFromJSON;
86
+ exports.sotState_StateToJSON = sotState_StateToJSON;
71
87
  /* eslint-disable */
72
88
  const wire_1 = require("@bufbuild/protobuf/wire");
73
89
  const any_1 = require("./google/protobuf/any");
@@ -359,6 +375,8 @@ var NotificationType;
359
375
  NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED"] = 31] = "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
360
376
  /** NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED - DVL thermal protection mode detected. */
361
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";
362
380
  NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
363
381
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
364
382
  function notificationTypeFromJSON(object) {
@@ -462,6 +480,9 @@ function notificationTypeFromJSON(object) {
462
480
  case 32:
463
481
  case "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED":
464
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;
465
486
  case -1:
466
487
  case "UNRECOGNIZED":
467
488
  default:
@@ -536,6 +557,8 @@ function notificationTypeToJSON(object) {
536
557
  return "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
537
558
  case NotificationType.NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED:
538
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";
539
562
  case NotificationType.UNRECOGNIZED:
540
563
  default:
541
564
  return "UNRECOGNIZED";
@@ -589,6 +612,51 @@ function notificationLevelToJSON(object) {
589
612
  return "UNRECOGNIZED";
590
613
  }
591
614
  }
615
+ /**
616
+ * Storage location.
617
+ *
618
+ * Used to specify which storage location to use for recording photos and videos.
619
+ */
620
+ var StorageLocation;
621
+ (function (StorageLocation) {
622
+ /** STORAGE_LOCATION_UNSPECIFIED - Unspecified. */
623
+ StorageLocation[StorageLocation["STORAGE_LOCATION_UNSPECIFIED"] = 0] = "STORAGE_LOCATION_UNSPECIFIED";
624
+ /** STORAGE_LOCATION_INTERNAL - Internal storage of the drone. */
625
+ StorageLocation[StorageLocation["STORAGE_LOCATION_INTERNAL"] = 1] = "STORAGE_LOCATION_INTERNAL";
626
+ /** STORAGE_LOCATION_REMOVABLE - Removable storage device. */
627
+ StorageLocation[StorageLocation["STORAGE_LOCATION_REMOVABLE"] = 2] = "STORAGE_LOCATION_REMOVABLE";
628
+ StorageLocation[StorageLocation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
629
+ })(StorageLocation || (exports.StorageLocation = StorageLocation = {}));
630
+ function storageLocationFromJSON(object) {
631
+ switch (object) {
632
+ case 0:
633
+ case "STORAGE_LOCATION_UNSPECIFIED":
634
+ return StorageLocation.STORAGE_LOCATION_UNSPECIFIED;
635
+ case 1:
636
+ case "STORAGE_LOCATION_INTERNAL":
637
+ return StorageLocation.STORAGE_LOCATION_INTERNAL;
638
+ case 2:
639
+ case "STORAGE_LOCATION_REMOVABLE":
640
+ return StorageLocation.STORAGE_LOCATION_REMOVABLE;
641
+ case -1:
642
+ case "UNRECOGNIZED":
643
+ default:
644
+ return StorageLocation.UNRECOGNIZED;
645
+ }
646
+ }
647
+ function storageLocationToJSON(object) {
648
+ switch (object) {
649
+ case StorageLocation.STORAGE_LOCATION_UNSPECIFIED:
650
+ return "STORAGE_LOCATION_UNSPECIFIED";
651
+ case StorageLocation.STORAGE_LOCATION_INTERNAL:
652
+ return "STORAGE_LOCATION_INTERNAL";
653
+ case StorageLocation.STORAGE_LOCATION_REMOVABLE:
654
+ return "STORAGE_LOCATION_REMOVABLE";
655
+ case StorageLocation.UNRECOGNIZED:
656
+ default:
657
+ return "UNRECOGNIZED";
658
+ }
659
+ }
592
660
  /** Drone models produced by Blueye. */
593
661
  var Model;
594
662
  (function (Model) {
@@ -604,6 +672,8 @@ var Model;
604
672
  Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
605
673
  /** MODEL_X3_ULTRA - Blueye X3 Ultra. */
606
674
  Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
675
+ /** MODEL_X7 - Blueye X7. */
676
+ Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
607
677
  /** MODEL_NEXT - Blueye ? */
608
678
  Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
609
679
  Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -628,6 +698,9 @@ function modelFromJSON(object) {
628
698
  case 6:
629
699
  case "MODEL_X3_ULTRA":
630
700
  return Model.MODEL_X3_ULTRA;
701
+ case 7:
702
+ case "MODEL_X7":
703
+ return Model.MODEL_X7;
631
704
  case 5:
632
705
  case "MODEL_NEXT":
633
706
  return Model.MODEL_NEXT;
@@ -651,6 +724,8 @@ function modelToJSON(object) {
651
724
  return "MODEL_X3";
652
725
  case Model.MODEL_X3_ULTRA:
653
726
  return "MODEL_X3_ULTRA";
727
+ case Model.MODEL_X7:
728
+ return "MODEL_X7";
654
729
  case Model.MODEL_NEXT:
655
730
  return "MODEL_NEXT";
656
731
  case Model.UNRECOGNIZED:
@@ -718,12 +793,16 @@ var Resolution;
718
793
  (function (Resolution) {
719
794
  /** RESOLUTION_UNSPECIFIED - Resolution not specified. */
720
795
  Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
721
- /** RESOLUTION_FULLHD_1080P - 1080p Full HD resolution. */
722
- Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
723
- /** RESOLUTION_HD_720P - 720p HD resolution. */
796
+ /** RESOLUTION_VGA_480P - VGA (640x480). */
797
+ Resolution[Resolution["RESOLUTION_VGA_480P"] = 4] = "RESOLUTION_VGA_480P";
798
+ /** RESOLUTION_HD_720P - 720p HD (1280x720). */
724
799
  Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
725
- /** RESOLUTION_UHD_4K - 4K Ultra HD resolution. */
800
+ /** RESOLUTION_FULLHD_1080P - 1080p Full HD (1920x1080). */
801
+ Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
802
+ /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
726
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";
727
806
  Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
728
807
  })(Resolution || (exports.Resolution = Resolution = {}));
729
808
  function resolutionFromJSON(object) {
@@ -731,15 +810,21 @@ function resolutionFromJSON(object) {
731
810
  case 0:
732
811
  case "RESOLUTION_UNSPECIFIED":
733
812
  return Resolution.RESOLUTION_UNSPECIFIED;
734
- case 1:
735
- case "RESOLUTION_FULLHD_1080P":
736
- return Resolution.RESOLUTION_FULLHD_1080P;
813
+ case 4:
814
+ case "RESOLUTION_VGA_480P":
815
+ return Resolution.RESOLUTION_VGA_480P;
737
816
  case 2:
738
817
  case "RESOLUTION_HD_720P":
739
818
  return Resolution.RESOLUTION_HD_720P;
819
+ case 1:
820
+ case "RESOLUTION_FULLHD_1080P":
821
+ return Resolution.RESOLUTION_FULLHD_1080P;
740
822
  case 3:
741
823
  case "RESOLUTION_UHD_4K":
742
824
  return Resolution.RESOLUTION_UHD_4K;
825
+ case 5:
826
+ case "RESOLUTION_QHD_2K":
827
+ return Resolution.RESOLUTION_QHD_2K;
743
828
  case -1:
744
829
  case "UNRECOGNIZED":
745
830
  default:
@@ -750,26 +835,37 @@ function resolutionToJSON(object) {
750
835
  switch (object) {
751
836
  case Resolution.RESOLUTION_UNSPECIFIED:
752
837
  return "RESOLUTION_UNSPECIFIED";
753
- case Resolution.RESOLUTION_FULLHD_1080P:
754
- return "RESOLUTION_FULLHD_1080P";
838
+ case Resolution.RESOLUTION_VGA_480P:
839
+ return "RESOLUTION_VGA_480P";
755
840
  case Resolution.RESOLUTION_HD_720P:
756
841
  return "RESOLUTION_HD_720P";
842
+ case Resolution.RESOLUTION_FULLHD_1080P:
843
+ return "RESOLUTION_FULLHD_1080P";
757
844
  case Resolution.RESOLUTION_UHD_4K:
758
845
  return "RESOLUTION_UHD_4K";
846
+ case Resolution.RESOLUTION_QHD_2K:
847
+ return "RESOLUTION_QHD_2K";
759
848
  case Resolution.UNRECOGNIZED:
760
849
  default:
761
850
  return "UNRECOGNIZED";
762
851
  }
763
852
  }
764
- /** 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
+ */
765
859
  var Framerate;
766
860
  (function (Framerate) {
767
861
  /** FRAMERATE_UNSPECIFIED - Framerate not specified. */
768
862
  Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
769
863
  /** FRAMERATE_FPS_30 - 30 frames per second. */
770
864
  Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
771
- /** FRAMERATE_FPS_25 - 25 frames per second. */
865
+ /** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
772
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";
773
869
  Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
774
870
  })(Framerate || (exports.Framerate = Framerate = {}));
775
871
  function framerateFromJSON(object) {
@@ -783,6 +879,9 @@ function framerateFromJSON(object) {
783
879
  case 2:
784
880
  case "FRAMERATE_FPS_25":
785
881
  return Framerate.FRAMERATE_FPS_25;
882
+ case 3:
883
+ case "FRAMERATE_FPS_60":
884
+ return Framerate.FRAMERATE_FPS_60;
786
885
  case -1:
787
886
  case "UNRECOGNIZED":
788
887
  default:
@@ -797,6 +896,8 @@ function framerateToJSON(object) {
797
896
  return "FRAMERATE_FPS_30";
798
897
  case Framerate.FRAMERATE_FPS_25:
799
898
  return "FRAMERATE_FPS_25";
899
+ case Framerate.FRAMERATE_FPS_60:
900
+ return "FRAMERATE_FPS_60";
800
901
  case Framerate.UNRECOGNIZED:
801
902
  default:
802
903
  return "UNRECOGNIZED";
@@ -843,6 +944,87 @@ function cameraToJSON(object) {
843
944
  return "UNRECOGNIZED";
844
945
  }
845
946
  }
947
+ var StreamingProtocol;
948
+ (function (StreamingProtocol) {
949
+ /** STREAMING_PROTOCOL_UNSPECIFIED - Streaming protocol not specified. */
950
+ StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_UNSPECIFIED"] = 0] = "STREAMING_PROTOCOL_UNSPECIFIED";
951
+ /** STREAMING_PROTOCOL_RTSP_H264 - RTSP streaming protocol using H264 codec. */
952
+ StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_H264"] = 1] = "STREAMING_PROTOCOL_RTSP_H264";
953
+ /** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. No recording when activated. */
954
+ StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_MJPEG"] = 2] = "STREAMING_PROTOCOL_RTSP_MJPEG";
955
+ StreamingProtocol[StreamingProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
956
+ })(StreamingProtocol || (exports.StreamingProtocol = StreamingProtocol = {}));
957
+ function streamingProtocolFromJSON(object) {
958
+ switch (object) {
959
+ case 0:
960
+ case "STREAMING_PROTOCOL_UNSPECIFIED":
961
+ return StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED;
962
+ case 1:
963
+ case "STREAMING_PROTOCOL_RTSP_H264":
964
+ return StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264;
965
+ case 2:
966
+ case "STREAMING_PROTOCOL_RTSP_MJPEG":
967
+ return StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG;
968
+ case -1:
969
+ case "UNRECOGNIZED":
970
+ default:
971
+ return StreamingProtocol.UNRECOGNIZED;
972
+ }
973
+ }
974
+ function streamingProtocolToJSON(object) {
975
+ switch (object) {
976
+ case StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED:
977
+ return "STREAMING_PROTOCOL_UNSPECIFIED";
978
+ case StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264:
979
+ return "STREAMING_PROTOCOL_RTSP_H264";
980
+ case StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG:
981
+ return "STREAMING_PROTOCOL_RTSP_MJPEG";
982
+ case StreamingProtocol.UNRECOGNIZED:
983
+ default:
984
+ return "UNRECOGNIZED";
985
+ }
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
+ }
846
1028
  /** Available temperature units. */
847
1029
  var TemperatureUnit;
848
1030
  (function (TemperatureUnit) {
@@ -1031,6 +1213,8 @@ var FontSize;
1031
1213
  FontSize[FontSize["FONT_SIZE_PX35"] = 5] = "FONT_SIZE_PX35";
1032
1214
  /** FONT_SIZE_PX40 - 40 px. */
1033
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";
1034
1218
  FontSize[FontSize["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1035
1219
  })(FontSize || (exports.FontSize = FontSize = {}));
1036
1220
  function fontSizeFromJSON(object) {
@@ -1056,6 +1240,9 @@ function fontSizeFromJSON(object) {
1056
1240
  case 6:
1057
1241
  case "FONT_SIZE_PX40":
1058
1242
  return FontSize.FONT_SIZE_PX40;
1243
+ case 7:
1244
+ case "FONT_SIZE_PX50":
1245
+ return FontSize.FONT_SIZE_PX50;
1059
1246
  case -1:
1060
1247
  case "UNRECOGNIZED":
1061
1248
  default:
@@ -1078,6 +1265,8 @@ function fontSizeToJSON(object) {
1078
1265
  return "FONT_SIZE_PX35";
1079
1266
  case FontSize.FONT_SIZE_PX40:
1080
1267
  return "FONT_SIZE_PX40";
1268
+ case FontSize.FONT_SIZE_PX50:
1269
+ return "FONT_SIZE_PX50";
1081
1270
  case FontSize.UNRECOGNIZED:
1082
1271
  default:
1083
1272
  return "UNRECOGNIZED";
@@ -1176,6 +1365,14 @@ var GuestPortDeviceID;
1176
1365
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
1177
1366
  /** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
1178
1367
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1368
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage. */
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";
1179
1376
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1180
1377
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1181
1378
  function guestPortDeviceIDFromJSON(object) {
@@ -1315,6 +1512,18 @@ function guestPortDeviceIDFromJSON(object) {
1315
1512
  case 44:
1316
1513
  case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
1317
1514
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650;
1515
+ case 45:
1516
+ case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
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;
1318
1527
  case -1:
1319
1528
  case "UNRECOGNIZED":
1320
1529
  default:
@@ -1413,6 +1622,14 @@ function guestPortDeviceIDToJSON(object) {
1413
1622
  return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
1414
1623
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
1415
1624
  return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1625
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
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";
1416
1633
  case GuestPortDeviceID.UNRECOGNIZED:
1417
1634
  default:
1418
1635
  return "UNRECOGNIZED";
@@ -1689,6 +1906,47 @@ function multibeamFrequencyModeToJSON(object) {
1689
1906
  return "UNRECOGNIZED";
1690
1907
  }
1691
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
+ }
1692
1950
  var LogEntry_LogLevel;
1693
1951
  (function (LogEntry_LogLevel) {
1694
1952
  /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
@@ -1757,6 +2015,89 @@ function logEntry_LogLevelToJSON(object) {
1757
2015
  return "UNRECOGNIZED";
1758
2016
  }
1759
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
+ }
1760
2101
  var PingerConfiguration_MountingDirection;
1761
2102
  (function (PingerConfiguration_MountingDirection) {
1762
2103
  /** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
@@ -1878,10 +2219,12 @@ var RemovableStorageDevice_Status;
1878
2219
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
1879
2220
  /** STATUS_READY - The storage device is valid and ready for use. */
1880
2221
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
1881
- /** STATUS_FORMATTING - The storage device is being formatted */
2222
+ /** STATUS_FORMATTING - The storage device is being formatted. */
1882
2223
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
1883
2224
  /** STATUS_ERROR - The storage device is in an error state. */
1884
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";
1885
2228
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1886
2229
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
1887
2230
  function removableStorageDevice_StatusFromJSON(object) {
@@ -1898,6 +2241,9 @@ function removableStorageDevice_StatusFromJSON(object) {
1898
2241
  case 3:
1899
2242
  case "STATUS_ERROR":
1900
2243
  return RemovableStorageDevice_Status.STATUS_ERROR;
2244
+ case 4:
2245
+ case "STATUS_UNPLUGGED":
2246
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
1901
2247
  case -1:
1902
2248
  case "UNRECOGNIZED":
1903
2249
  default:
@@ -1914,6 +2260,8 @@ function removableStorageDevice_StatusToJSON(object) {
1914
2260
  return "STATUS_FORMATTING";
1915
2261
  case RemovableStorageDevice_Status.STATUS_ERROR:
1916
2262
  return "STATUS_ERROR";
2263
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2264
+ return "STATUS_UNPLUGGED";
1917
2265
  case RemovableStorageDevice_Status.UNRECOGNIZED:
1918
2266
  default:
1919
2267
  return "UNRECOGNIZED";
@@ -2013,6 +2361,43 @@ function calibrationState_StatusToJSON(object) {
2013
2361
  return "UNRECOGNIZED";
2014
2362
  }
2015
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
+ }
2016
2401
  /** Defines the desired ping rate to use when capturing sonar data. */
2017
2402
  var MultibeamConfig_PingRate;
2018
2403
  (function (MultibeamConfig_PingRate) {
@@ -2135,6 +2520,97 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
2135
2520
  return "UNRECOGNIZED";
2136
2521
  }
2137
2522
  }
2523
+ var SurfaceUnitBatteryInfo_ChargeStatus;
2524
+ (function (SurfaceUnitBatteryInfo_ChargeStatus) {
2525
+ SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_UNSPECIFIED"] = 0] = "CHARGE_STATUS_UNSPECIFIED";
2526
+ SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_DISCHARGE"] = 1] = "CHARGE_STATUS_DISCHARGE";
2527
+ SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE"] = 2] = "CHARGE_STATUS_CHARGE";
2528
+ SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE_ERROR"] = 3] = "CHARGE_STATUS_CHARGE_ERROR";
2529
+ SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2530
+ })(SurfaceUnitBatteryInfo_ChargeStatus || (exports.SurfaceUnitBatteryInfo_ChargeStatus = SurfaceUnitBatteryInfo_ChargeStatus = {}));
2531
+ function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object) {
2532
+ switch (object) {
2533
+ case 0:
2534
+ case "CHARGE_STATUS_UNSPECIFIED":
2535
+ return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED;
2536
+ case 1:
2537
+ case "CHARGE_STATUS_DISCHARGE":
2538
+ return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE;
2539
+ case 2:
2540
+ case "CHARGE_STATUS_CHARGE":
2541
+ return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE;
2542
+ case 3:
2543
+ case "CHARGE_STATUS_CHARGE_ERROR":
2544
+ return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR;
2545
+ case -1:
2546
+ case "UNRECOGNIZED":
2547
+ default:
2548
+ return SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED;
2549
+ }
2550
+ }
2551
+ function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
2552
+ switch (object) {
2553
+ case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED:
2554
+ return "CHARGE_STATUS_UNSPECIFIED";
2555
+ case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE:
2556
+ return "CHARGE_STATUS_DISCHARGE";
2557
+ case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE:
2558
+ return "CHARGE_STATUS_CHARGE";
2559
+ case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR:
2560
+ return "CHARGE_STATUS_CHARGE_ERROR";
2561
+ case SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED:
2562
+ default:
2563
+ return "UNRECOGNIZED";
2564
+ }
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
+ }
2138
2614
  function createBaseBinlogRecord() {
2139
2615
  return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
2140
2616
  }
@@ -2363,98 +2839,68 @@ exports.LogEntry = {
2363
2839
  return message;
2364
2840
  },
2365
2841
  };
2366
- function createBaseMotionInput() {
2367
- return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
2842
+ function createBaseKernelLogEntry() {
2843
+ return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
2368
2844
  }
2369
- exports.MotionInput = {
2845
+ exports.KernelLogEntry = {
2370
2846
  encode(message, writer = new wire_1.BinaryWriter()) {
2371
- if (message.surge !== 0) {
2372
- writer.uint32(13).float(message.surge);
2373
- }
2374
- if (message.sway !== 0) {
2375
- writer.uint32(21).float(message.sway);
2376
- }
2377
- if (message.heave !== 0) {
2378
- writer.uint32(29).float(message.heave);
2379
- }
2380
- if (message.roll !== 0) {
2381
- writer.uint32(61).float(message.roll);
2847
+ if (message.level !== 0) {
2848
+ writer.uint32(8).int32(message.level);
2382
2849
  }
2383
- if (message.pitch !== 0) {
2384
- writer.uint32(69).float(message.pitch);
2850
+ if (message.seqnum !== 0) {
2851
+ writer.uint32(16).uint32(message.seqnum);
2385
2852
  }
2386
- if (message.yaw !== 0) {
2387
- writer.uint32(37).float(message.yaw);
2853
+ if (message.timestamp !== undefined) {
2854
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
2388
2855
  }
2389
- if (message.slow !== 0) {
2390
- writer.uint32(45).float(message.slow);
2856
+ for (const v of message.messages) {
2857
+ writer.uint32(34).string(v);
2391
2858
  }
2392
- if (message.boost !== 0) {
2393
- writer.uint32(53).float(message.boost);
2859
+ for (const v of message.fields) {
2860
+ exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
2394
2861
  }
2395
2862
  return writer;
2396
2863
  },
2397
2864
  decode(input, length) {
2398
2865
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2399
2866
  const end = length === undefined ? reader.len : reader.pos + length;
2400
- const message = createBaseMotionInput();
2867
+ const message = createBaseKernelLogEntry();
2401
2868
  while (reader.pos < end) {
2402
2869
  const tag = reader.uint32();
2403
2870
  switch (tag >>> 3) {
2404
2871
  case 1: {
2405
- if (tag !== 13) {
2872
+ if (tag !== 8) {
2406
2873
  break;
2407
2874
  }
2408
- message.surge = reader.float();
2875
+ message.level = reader.int32();
2409
2876
  continue;
2410
2877
  }
2411
2878
  case 2: {
2412
- if (tag !== 21) {
2879
+ if (tag !== 16) {
2413
2880
  break;
2414
2881
  }
2415
- message.sway = reader.float();
2882
+ message.seqnum = reader.uint32();
2416
2883
  continue;
2417
2884
  }
2418
2885
  case 3: {
2419
- if (tag !== 29) {
2420
- break;
2421
- }
2422
- message.heave = reader.float();
2423
- continue;
2424
- }
2425
- case 7: {
2426
- if (tag !== 61) {
2427
- break;
2428
- }
2429
- message.roll = reader.float();
2430
- continue;
2431
- }
2432
- case 8: {
2433
- if (tag !== 69) {
2886
+ if (tag !== 26) {
2434
2887
  break;
2435
2888
  }
2436
- message.pitch = reader.float();
2889
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2437
2890
  continue;
2438
2891
  }
2439
2892
  case 4: {
2440
- if (tag !== 37) {
2893
+ if (tag !== 34) {
2441
2894
  break;
2442
2895
  }
2443
- message.yaw = reader.float();
2896
+ message.messages.push(reader.string());
2444
2897
  continue;
2445
2898
  }
2446
2899
  case 5: {
2447
- if (tag !== 45) {
2448
- break;
2449
- }
2450
- message.slow = reader.float();
2451
- continue;
2452
- }
2453
- case 6: {
2454
- if (tag !== 53) {
2900
+ if (tag !== 42) {
2455
2901
  break;
2456
2902
  }
2457
- message.boost = reader.float();
2903
+ message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
2458
2904
  continue;
2459
2905
  }
2460
2906
  }
@@ -2467,66 +2913,279 @@ exports.MotionInput = {
2467
2913
  },
2468
2914
  fromJSON(object) {
2469
2915
  return {
2470
- surge: isSet(object.surge) ? gt.Number(object.surge) : 0,
2471
- sway: isSet(object.sway) ? gt.Number(object.sway) : 0,
2472
- heave: isSet(object.heave) ? gt.Number(object.heave) : 0,
2473
- roll: isSet(object.roll) ? gt.Number(object.roll) : 0,
2474
- pitch: isSet(object.pitch) ? gt.Number(object.pitch) : 0,
2475
- yaw: isSet(object.yaw) ? gt.Number(object.yaw) : 0,
2476
- slow: isSet(object.slow) ? gt.Number(object.slow) : 0,
2477
- boost: isSet(object.boost) ? gt.Number(object.boost) : 0,
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
+ : [],
2478
2923
  };
2479
2924
  },
2480
2925
  toJSON(message) {
2481
2926
  const obj = {};
2482
- if (message.surge !== 0) {
2483
- obj.surge = message.surge;
2484
- }
2485
- if (message.sway !== 0) {
2486
- obj.sway = message.sway;
2487
- }
2488
- if (message.heave !== 0) {
2489
- obj.heave = message.heave;
2490
- }
2491
- if (message.roll !== 0) {
2492
- obj.roll = message.roll;
2927
+ if (message.level !== 0) {
2928
+ obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
2493
2929
  }
2494
- if (message.pitch !== 0) {
2495
- obj.pitch = message.pitch;
2930
+ if (message.seqnum !== 0) {
2931
+ obj.seqnum = Math.round(message.seqnum);
2496
2932
  }
2497
- if (message.yaw !== 0) {
2498
- obj.yaw = message.yaw;
2933
+ if (message.timestamp !== undefined) {
2934
+ obj.timestamp = message.timestamp.toISOString();
2499
2935
  }
2500
- if (message.slow !== 0) {
2501
- obj.slow = message.slow;
2936
+ if (message.messages?.length) {
2937
+ obj.messages = message.messages;
2502
2938
  }
2503
- if (message.boost !== 0) {
2504
- obj.boost = message.boost;
2939
+ if (message.fields?.length) {
2940
+ obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
2505
2941
  }
2506
2942
  return obj;
2507
2943
  },
2508
2944
  create(base) {
2509
- return exports.MotionInput.fromPartial(base ?? {});
2945
+ return exports.KernelLogEntry.fromPartial(base ?? {});
2510
2946
  },
2511
2947
  fromPartial(object) {
2512
- const message = createBaseMotionInput();
2513
- message.surge = object.surge ?? 0;
2514
- message.sway = object.sway ?? 0;
2515
- message.heave = object.heave ?? 0;
2516
- message.roll = object.roll ?? 0;
2517
- message.pitch = object.pitch ?? 0;
2518
- message.yaw = object.yaw ?? 0;
2519
- message.slow = object.slow ?? 0;
2520
- message.boost = object.boost ?? 0;
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)) || [];
2521
2954
  return message;
2522
2955
  },
2523
2956
  };
2524
- function createBaseLights() {
2525
- return { value: 0 };
2957
+ function createBaseKernelLogEntry_KeyValuePair() {
2958
+ return { key: "", value: "" };
2526
2959
  }
2527
- exports.Lights = {
2960
+ exports.KernelLogEntry_KeyValuePair = {
2528
2961
  encode(message, writer = new wire_1.BinaryWriter()) {
2529
- if (message.value !== 0) {
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
+ };
3025
+ function createBaseMotionInput() {
3026
+ return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
3027
+ }
3028
+ exports.MotionInput = {
3029
+ encode(message, writer = new wire_1.BinaryWriter()) {
3030
+ if (message.surge !== 0) {
3031
+ writer.uint32(13).float(message.surge);
3032
+ }
3033
+ if (message.sway !== 0) {
3034
+ writer.uint32(21).float(message.sway);
3035
+ }
3036
+ if (message.heave !== 0) {
3037
+ writer.uint32(29).float(message.heave);
3038
+ }
3039
+ if (message.roll !== 0) {
3040
+ writer.uint32(61).float(message.roll);
3041
+ }
3042
+ if (message.pitch !== 0) {
3043
+ writer.uint32(69).float(message.pitch);
3044
+ }
3045
+ if (message.yaw !== 0) {
3046
+ writer.uint32(37).float(message.yaw);
3047
+ }
3048
+ if (message.slow !== 0) {
3049
+ writer.uint32(45).float(message.slow);
3050
+ }
3051
+ if (message.boost !== 0) {
3052
+ writer.uint32(53).float(message.boost);
3053
+ }
3054
+ return writer;
3055
+ },
3056
+ decode(input, length) {
3057
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3058
+ const end = length === undefined ? reader.len : reader.pos + length;
3059
+ const message = createBaseMotionInput();
3060
+ while (reader.pos < end) {
3061
+ const tag = reader.uint32();
3062
+ switch (tag >>> 3) {
3063
+ case 1: {
3064
+ if (tag !== 13) {
3065
+ break;
3066
+ }
3067
+ message.surge = reader.float();
3068
+ continue;
3069
+ }
3070
+ case 2: {
3071
+ if (tag !== 21) {
3072
+ break;
3073
+ }
3074
+ message.sway = reader.float();
3075
+ continue;
3076
+ }
3077
+ case 3: {
3078
+ if (tag !== 29) {
3079
+ break;
3080
+ }
3081
+ message.heave = reader.float();
3082
+ continue;
3083
+ }
3084
+ case 7: {
3085
+ if (tag !== 61) {
3086
+ break;
3087
+ }
3088
+ message.roll = reader.float();
3089
+ continue;
3090
+ }
3091
+ case 8: {
3092
+ if (tag !== 69) {
3093
+ break;
3094
+ }
3095
+ message.pitch = reader.float();
3096
+ continue;
3097
+ }
3098
+ case 4: {
3099
+ if (tag !== 37) {
3100
+ break;
3101
+ }
3102
+ message.yaw = reader.float();
3103
+ continue;
3104
+ }
3105
+ case 5: {
3106
+ if (tag !== 45) {
3107
+ break;
3108
+ }
3109
+ message.slow = reader.float();
3110
+ continue;
3111
+ }
3112
+ case 6: {
3113
+ if (tag !== 53) {
3114
+ break;
3115
+ }
3116
+ message.boost = reader.float();
3117
+ continue;
3118
+ }
3119
+ }
3120
+ if ((tag & 7) === 4 || tag === 0) {
3121
+ break;
3122
+ }
3123
+ reader.skip(tag & 7);
3124
+ }
3125
+ return message;
3126
+ },
3127
+ fromJSON(object) {
3128
+ return {
3129
+ surge: isSet(object.surge) ? gt.Number(object.surge) : 0,
3130
+ sway: isSet(object.sway) ? gt.Number(object.sway) : 0,
3131
+ heave: isSet(object.heave) ? gt.Number(object.heave) : 0,
3132
+ roll: isSet(object.roll) ? gt.Number(object.roll) : 0,
3133
+ pitch: isSet(object.pitch) ? gt.Number(object.pitch) : 0,
3134
+ yaw: isSet(object.yaw) ? gt.Number(object.yaw) : 0,
3135
+ slow: isSet(object.slow) ? gt.Number(object.slow) : 0,
3136
+ boost: isSet(object.boost) ? gt.Number(object.boost) : 0,
3137
+ };
3138
+ },
3139
+ toJSON(message) {
3140
+ const obj = {};
3141
+ if (message.surge !== 0) {
3142
+ obj.surge = message.surge;
3143
+ }
3144
+ if (message.sway !== 0) {
3145
+ obj.sway = message.sway;
3146
+ }
3147
+ if (message.heave !== 0) {
3148
+ obj.heave = message.heave;
3149
+ }
3150
+ if (message.roll !== 0) {
3151
+ obj.roll = message.roll;
3152
+ }
3153
+ if (message.pitch !== 0) {
3154
+ obj.pitch = message.pitch;
3155
+ }
3156
+ if (message.yaw !== 0) {
3157
+ obj.yaw = message.yaw;
3158
+ }
3159
+ if (message.slow !== 0) {
3160
+ obj.slow = message.slow;
3161
+ }
3162
+ if (message.boost !== 0) {
3163
+ obj.boost = message.boost;
3164
+ }
3165
+ return obj;
3166
+ },
3167
+ create(base) {
3168
+ return exports.MotionInput.fromPartial(base ?? {});
3169
+ },
3170
+ fromPartial(object) {
3171
+ const message = createBaseMotionInput();
3172
+ message.surge = object.surge ?? 0;
3173
+ message.sway = object.sway ?? 0;
3174
+ message.heave = object.heave ?? 0;
3175
+ message.roll = object.roll ?? 0;
3176
+ message.pitch = object.pitch ?? 0;
3177
+ message.yaw = object.yaw ?? 0;
3178
+ message.slow = object.slow ?? 0;
3179
+ message.boost = object.boost ?? 0;
3180
+ return message;
3181
+ },
3182
+ };
3183
+ function createBaseLights() {
3184
+ return { value: 0 };
3185
+ }
3186
+ exports.Lights = {
3187
+ encode(message, writer = new wire_1.BinaryWriter()) {
3188
+ if (message.value !== 0) {
2530
3189
  writer.uint32(13).float(message.value);
2531
3190
  }
2532
3191
  return writer;
@@ -3644,6 +4303,9 @@ function createBaseRecordState() {
3644
4303
  multibeamIsRecording: false,
3645
4304
  multibeamSeconds: 0,
3646
4305
  multibeamFps: 0,
4306
+ mainStorageLocation: 0,
4307
+ guestportStorageLocation: 0,
4308
+ multibeamStorageLocation: 0,
3647
4309
  };
3648
4310
  }
3649
4311
  exports.RecordState = {
@@ -3675,6 +4337,15 @@ exports.RecordState = {
3675
4337
  if (message.multibeamFps !== 0) {
3676
4338
  writer.uint32(77).float(message.multibeamFps);
3677
4339
  }
4340
+ if (message.mainStorageLocation !== 0) {
4341
+ writer.uint32(80).int32(message.mainStorageLocation);
4342
+ }
4343
+ if (message.guestportStorageLocation !== 0) {
4344
+ writer.uint32(88).int32(message.guestportStorageLocation);
4345
+ }
4346
+ if (message.multibeamStorageLocation !== 0) {
4347
+ writer.uint32(96).int32(message.multibeamStorageLocation);
4348
+ }
3678
4349
  return writer;
3679
4350
  },
3680
4351
  decode(input, length) {
@@ -3747,6 +4418,27 @@ exports.RecordState = {
3747
4418
  message.multibeamFps = reader.float();
3748
4419
  continue;
3749
4420
  }
4421
+ case 10: {
4422
+ if (tag !== 80) {
4423
+ break;
4424
+ }
4425
+ message.mainStorageLocation = reader.int32();
4426
+ continue;
4427
+ }
4428
+ case 11: {
4429
+ if (tag !== 88) {
4430
+ break;
4431
+ }
4432
+ message.guestportStorageLocation = reader.int32();
4433
+ continue;
4434
+ }
4435
+ case 12: {
4436
+ if (tag !== 96) {
4437
+ break;
4438
+ }
4439
+ message.multibeamStorageLocation = reader.int32();
4440
+ continue;
4441
+ }
3750
4442
  }
3751
4443
  if ((tag & 7) === 4 || tag === 0) {
3752
4444
  break;
@@ -3766,6 +4458,13 @@ exports.RecordState = {
3766
4458
  multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
3767
4459
  multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
3768
4460
  multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
4461
+ mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
4462
+ guestportStorageLocation: isSet(object.guestportStorageLocation)
4463
+ ? storageLocationFromJSON(object.guestportStorageLocation)
4464
+ : 0,
4465
+ multibeamStorageLocation: isSet(object.multibeamStorageLocation)
4466
+ ? storageLocationFromJSON(object.multibeamStorageLocation)
4467
+ : 0,
3769
4468
  };
3770
4469
  },
3771
4470
  toJSON(message) {
@@ -3797,6 +4496,15 @@ exports.RecordState = {
3797
4496
  if (message.multibeamFps !== 0) {
3798
4497
  obj.multibeamFps = message.multibeamFps;
3799
4498
  }
4499
+ if (message.mainStorageLocation !== 0) {
4500
+ obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
4501
+ }
4502
+ if (message.guestportStorageLocation !== 0) {
4503
+ obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
4504
+ }
4505
+ if (message.multibeamStorageLocation !== 0) {
4506
+ obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
4507
+ }
3800
4508
  return obj;
3801
4509
  },
3802
4510
  create(base) {
@@ -3813,6 +4521,9 @@ exports.RecordState = {
3813
4521
  message.multibeamIsRecording = object.multibeamIsRecording ?? false;
3814
4522
  message.multibeamSeconds = object.multibeamSeconds ?? 0;
3815
4523
  message.multibeamFps = object.multibeamFps ?? 0;
4524
+ message.mainStorageLocation = object.mainStorageLocation ?? 0;
4525
+ message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
4526
+ message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
3816
4527
  return message;
3817
4528
  },
3818
4529
  };
@@ -7720,7 +8431,7 @@ exports.StorageSpace = {
7720
8431
  },
7721
8432
  };
7722
8433
  function createBaseStoragePartition() {
7723
- return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
8434
+ return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
7724
8435
  }
7725
8436
  exports.StoragePartition = {
7726
8437
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -7736,6 +8447,9 @@ exports.StoragePartition = {
7736
8447
  if (message.mountPath !== "") {
7737
8448
  writer.uint32(34).string(message.mountPath);
7738
8449
  }
8450
+ if (message.label !== "") {
8451
+ writer.uint32(42).string(message.label);
8452
+ }
7739
8453
  return writer;
7740
8454
  },
7741
8455
  decode(input, length) {
@@ -7773,6 +8487,13 @@ exports.StoragePartition = {
7773
8487
  message.mountPath = reader.string();
7774
8488
  continue;
7775
8489
  }
8490
+ case 5: {
8491
+ if (tag !== 42) {
8492
+ break;
8493
+ }
8494
+ message.label = reader.string();
8495
+ continue;
8496
+ }
7776
8497
  }
7777
8498
  if ((tag & 7) === 4 || tag === 0) {
7778
8499
  break;
@@ -7787,6 +8508,7 @@ exports.StoragePartition = {
7787
8508
  fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
7788
8509
  devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
7789
8510
  mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
8511
+ label: isSet(object.label) ? gt.String(object.label) : "",
7790
8512
  };
7791
8513
  },
7792
8514
  toJSON(message) {
@@ -7803,6 +8525,9 @@ exports.StoragePartition = {
7803
8525
  if (message.mountPath !== "") {
7804
8526
  obj.mountPath = message.mountPath;
7805
8527
  }
8528
+ if (message.label !== "") {
8529
+ obj.label = message.label;
8530
+ }
7806
8531
  return obj;
7807
8532
  },
7808
8533
  create(base) {
@@ -7816,6 +8541,7 @@ exports.StoragePartition = {
7816
8541
  message.fileSystemType = object.fileSystemType ?? "";
7817
8542
  message.devicePath = object.devicePath ?? "";
7818
8543
  message.mountPath = object.mountPath ?? "";
8544
+ message.label = object.label ?? "";
7819
8545
  return message;
7820
8546
  },
7821
8547
  };
@@ -8493,19 +9219,148 @@ exports.TiltVelocity = {
8493
9219
  return message;
8494
9220
  },
8495
9221
  };
8496
- function createBaseDroneInfo() {
8497
- return {
8498
- blunuxVersion: "",
8499
- serialNumber: new Uint8Array(0),
8500
- hardwareId: new Uint8Array(0),
8501
- model: 0,
8502
- mbSerial: new Uint8Array(0),
8503
- bbSerial: new Uint8Array(0),
8504
- dsSerial: new Uint8Array(0),
8505
- mbUid: new Uint8Array(0),
8506
- bbUid: new Uint8Array(0),
9222
+ function createBaseCvModelInfo() {
9223
+ return { name: "", type: 0, running: false, device: "", packageId: "", labels: [] };
9224
+ }
9225
+ exports.CvModelInfo = {
9226
+ encode(message, writer = new wire_1.BinaryWriter()) {
9227
+ if (message.name !== "") {
9228
+ writer.uint32(10).string(message.name);
9229
+ }
9230
+ if (message.type !== 0) {
9231
+ writer.uint32(16).int32(message.type);
9232
+ }
9233
+ if (message.running !== false) {
9234
+ writer.uint32(24).bool(message.running);
9235
+ }
9236
+ if (message.device !== "") {
9237
+ writer.uint32(34).string(message.device);
9238
+ }
9239
+ if (message.packageId !== "") {
9240
+ writer.uint32(42).string(message.packageId);
9241
+ }
9242
+ for (const v of message.labels) {
9243
+ writer.uint32(50).string(v);
9244
+ }
9245
+ return writer;
9246
+ },
9247
+ decode(input, length) {
9248
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
9249
+ const end = length === undefined ? reader.len : reader.pos + length;
9250
+ const message = createBaseCvModelInfo();
9251
+ while (reader.pos < end) {
9252
+ const tag = reader.uint32();
9253
+ switch (tag >>> 3) {
9254
+ case 1: {
9255
+ if (tag !== 10) {
9256
+ break;
9257
+ }
9258
+ message.name = reader.string();
9259
+ continue;
9260
+ }
9261
+ case 2: {
9262
+ if (tag !== 16) {
9263
+ break;
9264
+ }
9265
+ message.type = reader.int32();
9266
+ continue;
9267
+ }
9268
+ case 3: {
9269
+ if (tag !== 24) {
9270
+ break;
9271
+ }
9272
+ message.running = reader.bool();
9273
+ continue;
9274
+ }
9275
+ case 4: {
9276
+ if (tag !== 34) {
9277
+ break;
9278
+ }
9279
+ message.device = reader.string();
9280
+ continue;
9281
+ }
9282
+ case 5: {
9283
+ if (tag !== 42) {
9284
+ break;
9285
+ }
9286
+ message.packageId = reader.string();
9287
+ continue;
9288
+ }
9289
+ case 6: {
9290
+ if (tag !== 50) {
9291
+ break;
9292
+ }
9293
+ message.labels.push(reader.string());
9294
+ continue;
9295
+ }
9296
+ }
9297
+ if ((tag & 7) === 4 || tag === 0) {
9298
+ break;
9299
+ }
9300
+ reader.skip(tag & 7);
9301
+ }
9302
+ return message;
9303
+ },
9304
+ fromJSON(object) {
9305
+ return {
9306
+ name: isSet(object.name) ? gt.String(object.name) : "",
9307
+ type: isSet(object.type) ? cvModelInfo_ModelTypeFromJSON(object.type) : 0,
9308
+ running: isSet(object.running) ? gt.Boolean(object.running) : false,
9309
+ device: isSet(object.device) ? gt.String(object.device) : "",
9310
+ packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
9311
+ labels: gt.Array.isArray(object?.labels) ? object.labels.map((e) => gt.String(e)) : [],
9312
+ };
9313
+ },
9314
+ toJSON(message) {
9315
+ const obj = {};
9316
+ if (message.name !== "") {
9317
+ obj.name = message.name;
9318
+ }
9319
+ if (message.type !== 0) {
9320
+ obj.type = cvModelInfo_ModelTypeToJSON(message.type);
9321
+ }
9322
+ if (message.running !== false) {
9323
+ obj.running = message.running;
9324
+ }
9325
+ if (message.device !== "") {
9326
+ obj.device = message.device;
9327
+ }
9328
+ if (message.packageId !== "") {
9329
+ obj.packageId = message.packageId;
9330
+ }
9331
+ if (message.labels?.length) {
9332
+ obj.labels = message.labels;
9333
+ }
9334
+ return obj;
9335
+ },
9336
+ create(base) {
9337
+ return exports.CvModelInfo.fromPartial(base ?? {});
9338
+ },
9339
+ fromPartial(object) {
9340
+ const message = createBaseCvModelInfo();
9341
+ message.name = object.name ?? "";
9342
+ message.type = object.type ?? 0;
9343
+ message.running = object.running ?? false;
9344
+ message.device = object.device ?? "";
9345
+ message.packageId = object.packageId ?? "";
9346
+ message.labels = object.labels?.map((e) => e) || [];
9347
+ return message;
9348
+ },
9349
+ };
9350
+ function createBaseDroneInfo() {
9351
+ return {
9352
+ blunuxVersion: "",
9353
+ serialNumber: new Uint8Array(0),
9354
+ hardwareId: new Uint8Array(0),
9355
+ model: 0,
9356
+ mbSerial: new Uint8Array(0),
9357
+ bbSerial: new Uint8Array(0),
9358
+ dsSerial: new Uint8Array(0),
9359
+ mbUid: new Uint8Array(0),
9360
+ bbUid: new Uint8Array(0),
8507
9361
  gp: undefined,
8508
9362
  depthSensor: 0,
9363
+ cvModels: [],
8509
9364
  };
8510
9365
  }
8511
9366
  exports.DroneInfo = {
@@ -8543,6 +9398,9 @@ exports.DroneInfo = {
8543
9398
  if (message.depthSensor !== 0) {
8544
9399
  writer.uint32(88).int32(message.depthSensor);
8545
9400
  }
9401
+ for (const v of message.cvModels) {
9402
+ exports.CvModelInfo.encode(v, writer.uint32(98).fork()).join();
9403
+ }
8546
9404
  return writer;
8547
9405
  },
8548
9406
  decode(input, length) {
@@ -8629,6 +9487,13 @@ exports.DroneInfo = {
8629
9487
  message.depthSensor = reader.int32();
8630
9488
  continue;
8631
9489
  }
9490
+ case 12: {
9491
+ if (tag !== 98) {
9492
+ break;
9493
+ }
9494
+ message.cvModels.push(exports.CvModelInfo.decode(reader, reader.uint32()));
9495
+ continue;
9496
+ }
8632
9497
  }
8633
9498
  if ((tag & 7) === 4 || tag === 0) {
8634
9499
  break;
@@ -8650,6 +9515,7 @@ exports.DroneInfo = {
8650
9515
  bbUid: isSet(object.bbUid) ? bytesFromBase64(object.bbUid) : new Uint8Array(0),
8651
9516
  gp: isSet(object.gp) ? exports.GuestPortInfo.fromJSON(object.gp) : undefined,
8652
9517
  depthSensor: isSet(object.depthSensor) ? pressureSensorTypeFromJSON(object.depthSensor) : 0,
9518
+ cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => exports.CvModelInfo.fromJSON(e)) : [],
8653
9519
  };
8654
9520
  },
8655
9521
  toJSON(message) {
@@ -8687,6 +9553,9 @@ exports.DroneInfo = {
8687
9553
  if (message.depthSensor !== 0) {
8688
9554
  obj.depthSensor = pressureSensorTypeToJSON(message.depthSensor);
8689
9555
  }
9556
+ if (message.cvModels?.length) {
9557
+ obj.cvModels = message.cvModels.map((e) => exports.CvModelInfo.toJSON(e));
9558
+ }
8690
9559
  return obj;
8691
9560
  },
8692
9561
  create(base) {
@@ -8705,6 +9574,7 @@ exports.DroneInfo = {
8705
9574
  message.bbUid = object.bbUid ?? new Uint8Array(0);
8706
9575
  message.gp = (object.gp !== undefined && object.gp !== null) ? exports.GuestPortInfo.fromPartial(object.gp) : undefined;
8707
9576
  message.depthSensor = object.depthSensor ?? 0;
9577
+ message.cvModels = object.cvModels?.map((e) => exports.CvModelInfo.fromPartial(e)) || [];
8708
9578
  return message;
8709
9579
  },
8710
9580
  };
@@ -9513,11 +10383,25 @@ function createBaseCameraParameters() {
9513
10383
  whiteBalance: 0,
9514
10384
  hue: 0,
9515
10385
  gain: 0,
10386
+ brightness: 0,
10387
+ contrast: 0,
10388
+ saturation: 0,
10389
+ gamma: 0,
10390
+ sharpness: 0,
10391
+ backlightCompensation: 0,
10392
+ denoise: 0,
10393
+ ehdrEnabled: false,
10394
+ ehdrExposureMinNumber: 0,
10395
+ ehdrExposureMaxNumber: 0,
9516
10396
  resolution: 0,
9517
10397
  streamResolution: 0,
9518
10398
  recordingResolution: 0,
10399
+ streamingProtocol: 0,
9519
10400
  framerate: 0,
9520
10401
  camera: 0,
10402
+ mtuSize: 0,
10403
+ recordingCodec: 0,
10404
+ recordingBitrate: 0,
9521
10405
  };
9522
10406
  }
9523
10407
  exports.CameraParameters = {
@@ -9540,6 +10424,36 @@ exports.CameraParameters = {
9540
10424
  if (message.gain !== 0) {
9541
10425
  writer.uint32(77).float(message.gain);
9542
10426
  }
10427
+ if (message.brightness !== 0) {
10428
+ writer.uint32(96).int32(message.brightness);
10429
+ }
10430
+ if (message.contrast !== 0) {
10431
+ writer.uint32(104).int32(message.contrast);
10432
+ }
10433
+ if (message.saturation !== 0) {
10434
+ writer.uint32(112).int32(message.saturation);
10435
+ }
10436
+ if (message.gamma !== 0) {
10437
+ writer.uint32(120).int32(message.gamma);
10438
+ }
10439
+ if (message.sharpness !== 0) {
10440
+ writer.uint32(128).int32(message.sharpness);
10441
+ }
10442
+ if (message.backlightCompensation !== 0) {
10443
+ writer.uint32(136).int32(message.backlightCompensation);
10444
+ }
10445
+ if (message.denoise !== 0) {
10446
+ writer.uint32(144).int32(message.denoise);
10447
+ }
10448
+ if (message.ehdrEnabled !== false) {
10449
+ writer.uint32(168).bool(message.ehdrEnabled);
10450
+ }
10451
+ if (message.ehdrExposureMinNumber !== 0) {
10452
+ writer.uint32(176).int32(message.ehdrExposureMinNumber);
10453
+ }
10454
+ if (message.ehdrExposureMaxNumber !== 0) {
10455
+ writer.uint32(184).int32(message.ehdrExposureMaxNumber);
10456
+ }
9543
10457
  if (message.resolution !== 0) {
9544
10458
  writer.uint32(48).int32(message.resolution);
9545
10459
  }
@@ -9549,12 +10463,24 @@ exports.CameraParameters = {
9549
10463
  if (message.recordingResolution !== 0) {
9550
10464
  writer.uint32(88).int32(message.recordingResolution);
9551
10465
  }
10466
+ if (message.streamingProtocol !== 0) {
10467
+ writer.uint32(160).int32(message.streamingProtocol);
10468
+ }
9552
10469
  if (message.framerate !== 0) {
9553
10470
  writer.uint32(56).int32(message.framerate);
9554
10471
  }
9555
10472
  if (message.camera !== 0) {
9556
10473
  writer.uint32(64).int32(message.camera);
9557
10474
  }
10475
+ if (message.mtuSize !== 0) {
10476
+ writer.uint32(192).uint32(message.mtuSize);
10477
+ }
10478
+ if (message.recordingCodec !== 0) {
10479
+ writer.uint32(200).int32(message.recordingCodec);
10480
+ }
10481
+ if (message.recordingBitrate !== 0) {
10482
+ writer.uint32(208).int32(message.recordingBitrate);
10483
+ }
9558
10484
  return writer;
9559
10485
  },
9560
10486
  decode(input, length) {
@@ -9606,6 +10532,76 @@ exports.CameraParameters = {
9606
10532
  message.gain = reader.float();
9607
10533
  continue;
9608
10534
  }
10535
+ case 12: {
10536
+ if (tag !== 96) {
10537
+ break;
10538
+ }
10539
+ message.brightness = reader.int32();
10540
+ continue;
10541
+ }
10542
+ case 13: {
10543
+ if (tag !== 104) {
10544
+ break;
10545
+ }
10546
+ message.contrast = reader.int32();
10547
+ continue;
10548
+ }
10549
+ case 14: {
10550
+ if (tag !== 112) {
10551
+ break;
10552
+ }
10553
+ message.saturation = reader.int32();
10554
+ continue;
10555
+ }
10556
+ case 15: {
10557
+ if (tag !== 120) {
10558
+ break;
10559
+ }
10560
+ message.gamma = reader.int32();
10561
+ continue;
10562
+ }
10563
+ case 16: {
10564
+ if (tag !== 128) {
10565
+ break;
10566
+ }
10567
+ message.sharpness = reader.int32();
10568
+ continue;
10569
+ }
10570
+ case 17: {
10571
+ if (tag !== 136) {
10572
+ break;
10573
+ }
10574
+ message.backlightCompensation = reader.int32();
10575
+ continue;
10576
+ }
10577
+ case 18: {
10578
+ if (tag !== 144) {
10579
+ break;
10580
+ }
10581
+ message.denoise = reader.int32();
10582
+ continue;
10583
+ }
10584
+ case 21: {
10585
+ if (tag !== 168) {
10586
+ break;
10587
+ }
10588
+ message.ehdrEnabled = reader.bool();
10589
+ continue;
10590
+ }
10591
+ case 22: {
10592
+ if (tag !== 176) {
10593
+ break;
10594
+ }
10595
+ message.ehdrExposureMinNumber = reader.int32();
10596
+ continue;
10597
+ }
10598
+ case 23: {
10599
+ if (tag !== 184) {
10600
+ break;
10601
+ }
10602
+ message.ehdrExposureMaxNumber = reader.int32();
10603
+ continue;
10604
+ }
9609
10605
  case 6: {
9610
10606
  if (tag !== 48) {
9611
10607
  break;
@@ -9627,6 +10623,13 @@ exports.CameraParameters = {
9627
10623
  message.recordingResolution = reader.int32();
9628
10624
  continue;
9629
10625
  }
10626
+ case 20: {
10627
+ if (tag !== 160) {
10628
+ break;
10629
+ }
10630
+ message.streamingProtocol = reader.int32();
10631
+ continue;
10632
+ }
9630
10633
  case 7: {
9631
10634
  if (tag !== 56) {
9632
10635
  break;
@@ -9641,6 +10644,27 @@ exports.CameraParameters = {
9641
10644
  message.camera = reader.int32();
9642
10645
  continue;
9643
10646
  }
10647
+ case 24: {
10648
+ if (tag !== 192) {
10649
+ break;
10650
+ }
10651
+ message.mtuSize = reader.uint32();
10652
+ continue;
10653
+ }
10654
+ case 25: {
10655
+ if (tag !== 200) {
10656
+ break;
10657
+ }
10658
+ message.recordingCodec = reader.int32();
10659
+ continue;
10660
+ }
10661
+ case 26: {
10662
+ if (tag !== 208) {
10663
+ break;
10664
+ }
10665
+ message.recordingBitrate = reader.int32();
10666
+ continue;
10667
+ }
9644
10668
  }
9645
10669
  if ((tag & 7) === 4 || tag === 0) {
9646
10670
  break;
@@ -9657,11 +10681,25 @@ exports.CameraParameters = {
9657
10681
  whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
9658
10682
  hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
9659
10683
  gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
10684
+ brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
10685
+ contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
10686
+ saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
10687
+ gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
10688
+ sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
10689
+ backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
10690
+ denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
10691
+ ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
10692
+ ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
10693
+ ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
9660
10694
  resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
9661
10695
  streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
9662
10696
  recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
10697
+ streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
9663
10698
  framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
9664
10699
  camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
10700
+ mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
10701
+ recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
10702
+ recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
9665
10703
  };
9666
10704
  },
9667
10705
  toJSON(message) {
@@ -9684,6 +10722,36 @@ exports.CameraParameters = {
9684
10722
  if (message.gain !== 0) {
9685
10723
  obj.gain = message.gain;
9686
10724
  }
10725
+ if (message.brightness !== 0) {
10726
+ obj.brightness = Math.round(message.brightness);
10727
+ }
10728
+ if (message.contrast !== 0) {
10729
+ obj.contrast = Math.round(message.contrast);
10730
+ }
10731
+ if (message.saturation !== 0) {
10732
+ obj.saturation = Math.round(message.saturation);
10733
+ }
10734
+ if (message.gamma !== 0) {
10735
+ obj.gamma = Math.round(message.gamma);
10736
+ }
10737
+ if (message.sharpness !== 0) {
10738
+ obj.sharpness = Math.round(message.sharpness);
10739
+ }
10740
+ if (message.backlightCompensation !== 0) {
10741
+ obj.backlightCompensation = Math.round(message.backlightCompensation);
10742
+ }
10743
+ if (message.denoise !== 0) {
10744
+ obj.denoise = Math.round(message.denoise);
10745
+ }
10746
+ if (message.ehdrEnabled !== false) {
10747
+ obj.ehdrEnabled = message.ehdrEnabled;
10748
+ }
10749
+ if (message.ehdrExposureMinNumber !== 0) {
10750
+ obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
10751
+ }
10752
+ if (message.ehdrExposureMaxNumber !== 0) {
10753
+ obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
10754
+ }
9687
10755
  if (message.resolution !== 0) {
9688
10756
  obj.resolution = resolutionToJSON(message.resolution);
9689
10757
  }
@@ -9693,12 +10761,24 @@ exports.CameraParameters = {
9693
10761
  if (message.recordingResolution !== 0) {
9694
10762
  obj.recordingResolution = resolutionToJSON(message.recordingResolution);
9695
10763
  }
10764
+ if (message.streamingProtocol !== 0) {
10765
+ obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
10766
+ }
9696
10767
  if (message.framerate !== 0) {
9697
10768
  obj.framerate = framerateToJSON(message.framerate);
9698
10769
  }
9699
10770
  if (message.camera !== 0) {
9700
10771
  obj.camera = cameraToJSON(message.camera);
9701
10772
  }
10773
+ if (message.mtuSize !== 0) {
10774
+ obj.mtuSize = Math.round(message.mtuSize);
10775
+ }
10776
+ if (message.recordingCodec !== 0) {
10777
+ obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
10778
+ }
10779
+ if (message.recordingBitrate !== 0) {
10780
+ obj.recordingBitrate = Math.round(message.recordingBitrate);
10781
+ }
9702
10782
  return obj;
9703
10783
  },
9704
10784
  create(base) {
@@ -9712,11 +10792,25 @@ exports.CameraParameters = {
9712
10792
  message.whiteBalance = object.whiteBalance ?? 0;
9713
10793
  message.hue = object.hue ?? 0;
9714
10794
  message.gain = object.gain ?? 0;
10795
+ message.brightness = object.brightness ?? 0;
10796
+ message.contrast = object.contrast ?? 0;
10797
+ message.saturation = object.saturation ?? 0;
10798
+ message.gamma = object.gamma ?? 0;
10799
+ message.sharpness = object.sharpness ?? 0;
10800
+ message.backlightCompensation = object.backlightCompensation ?? 0;
10801
+ message.denoise = object.denoise ?? 0;
10802
+ message.ehdrEnabled = object.ehdrEnabled ?? false;
10803
+ message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
10804
+ message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
9715
10805
  message.resolution = object.resolution ?? 0;
9716
10806
  message.streamResolution = object.streamResolution ?? 0;
9717
10807
  message.recordingResolution = object.recordingResolution ?? 0;
10808
+ message.streamingProtocol = object.streamingProtocol ?? 0;
9718
10809
  message.framerate = object.framerate ?? 0;
9719
10810
  message.camera = object.camera ?? 0;
10811
+ message.mtuSize = object.mtuSize ?? 0;
10812
+ message.recordingCodec = object.recordingCodec ?? 0;
10813
+ message.recordingBitrate = object.recordingBitrate ?? 0;
9720
10814
  return message;
9721
10815
  },
9722
10816
  };
@@ -12460,7 +13554,7 @@ exports.PersistentStorageSettings = {
12460
13554
  },
12461
13555
  };
12462
13556
  function createBaseCPUInfo() {
12463
- return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0 };
13557
+ return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0, commQueueLoad: 0 };
12464
13558
  }
12465
13559
  exports.CPUInfo = {
12466
13560
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -12476,6 +13570,9 @@ exports.CPUInfo = {
12476
13570
  if (message.guestportQueueLoad !== 0) {
12477
13571
  writer.uint32(37).float(message.guestportQueueLoad);
12478
13572
  }
13573
+ if (message.commQueueLoad !== 0) {
13574
+ writer.uint32(45).float(message.commQueueLoad);
13575
+ }
12479
13576
  return writer;
12480
13577
  },
12481
13578
  decode(input, length) {
@@ -12513,6 +13610,13 @@ exports.CPUInfo = {
12513
13610
  message.guestportQueueLoad = reader.float();
12514
13611
  continue;
12515
13612
  }
13613
+ case 5: {
13614
+ if (tag !== 45) {
13615
+ break;
13616
+ }
13617
+ message.commQueueLoad = reader.float();
13618
+ continue;
13619
+ }
12516
13620
  }
12517
13621
  if ((tag & 7) === 4 || tag === 0) {
12518
13622
  break;
@@ -12527,6 +13631,7 @@ exports.CPUInfo = {
12527
13631
  memoryBusLoad: isSet(object.memoryBusLoad) ? gt.Number(object.memoryBusLoad) : 0,
12528
13632
  mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
12529
13633
  guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
13634
+ commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
12530
13635
  };
12531
13636
  },
12532
13637
  toJSON(message) {
@@ -12543,6 +13648,9 @@ exports.CPUInfo = {
12543
13648
  if (message.guestportQueueLoad !== 0) {
12544
13649
  obj.guestportQueueLoad = message.guestportQueueLoad;
12545
13650
  }
13651
+ if (message.commQueueLoad !== 0) {
13652
+ obj.commQueueLoad = message.commQueueLoad;
13653
+ }
12546
13654
  return obj;
12547
13655
  },
12548
13656
  create(base) {
@@ -12554,6 +13662,1789 @@ exports.CPUInfo = {
12554
13662
  message.memoryBusLoad = object.memoryBusLoad ?? 0;
12555
13663
  message.mainQueueLoad = object.mainQueueLoad ?? 0;
12556
13664
  message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
13665
+ message.commQueueLoad = object.commQueueLoad ?? 0;
13666
+ return message;
13667
+ },
13668
+ };
13669
+ function createBaseCpuCoreLoad() {
13670
+ return { coreIndex: 0, load: 0, frequencyMhz: 0 };
13671
+ }
13672
+ exports.CpuCoreLoad = {
13673
+ encode(message, writer = new wire_1.BinaryWriter()) {
13674
+ if (message.coreIndex !== 0) {
13675
+ writer.uint32(8).uint32(message.coreIndex);
13676
+ }
13677
+ if (message.load !== 0) {
13678
+ writer.uint32(21).float(message.load);
13679
+ }
13680
+ if (message.frequencyMhz !== 0) {
13681
+ writer.uint32(29).float(message.frequencyMhz);
13682
+ }
13683
+ return writer;
13684
+ },
13685
+ decode(input, length) {
13686
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13687
+ const end = length === undefined ? reader.len : reader.pos + length;
13688
+ const message = createBaseCpuCoreLoad();
13689
+ while (reader.pos < end) {
13690
+ const tag = reader.uint32();
13691
+ switch (tag >>> 3) {
13692
+ case 1: {
13693
+ if (tag !== 8) {
13694
+ break;
13695
+ }
13696
+ message.coreIndex = reader.uint32();
13697
+ continue;
13698
+ }
13699
+ case 2: {
13700
+ if (tag !== 21) {
13701
+ break;
13702
+ }
13703
+ message.load = reader.float();
13704
+ continue;
13705
+ }
13706
+ case 3: {
13707
+ if (tag !== 29) {
13708
+ break;
13709
+ }
13710
+ message.frequencyMhz = reader.float();
13711
+ continue;
13712
+ }
13713
+ }
13714
+ if ((tag & 7) === 4 || tag === 0) {
13715
+ break;
13716
+ }
13717
+ reader.skip(tag & 7);
13718
+ }
13719
+ return message;
13720
+ },
13721
+ fromJSON(object) {
13722
+ return {
13723
+ coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
13724
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13725
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13726
+ };
13727
+ },
13728
+ toJSON(message) {
13729
+ const obj = {};
13730
+ if (message.coreIndex !== 0) {
13731
+ obj.coreIndex = Math.round(message.coreIndex);
13732
+ }
13733
+ if (message.load !== 0) {
13734
+ obj.load = message.load;
13735
+ }
13736
+ if (message.frequencyMhz !== 0) {
13737
+ obj.frequencyMhz = message.frequencyMhz;
13738
+ }
13739
+ return obj;
13740
+ },
13741
+ create(base) {
13742
+ return exports.CpuCoreLoad.fromPartial(base ?? {});
13743
+ },
13744
+ fromPartial(object) {
13745
+ const message = createBaseCpuCoreLoad();
13746
+ message.coreIndex = object.coreIndex ?? 0;
13747
+ message.load = object.load ?? 0;
13748
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13749
+ return message;
13750
+ },
13751
+ };
13752
+ function createBaseGpuInfo() {
13753
+ return { load: 0, frequencyMhz: 0 };
13754
+ }
13755
+ exports.GpuInfo = {
13756
+ encode(message, writer = new wire_1.BinaryWriter()) {
13757
+ if (message.load !== 0) {
13758
+ writer.uint32(13).float(message.load);
13759
+ }
13760
+ if (message.frequencyMhz !== 0) {
13761
+ writer.uint32(21).float(message.frequencyMhz);
13762
+ }
13763
+ return writer;
13764
+ },
13765
+ decode(input, length) {
13766
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13767
+ const end = length === undefined ? reader.len : reader.pos + length;
13768
+ const message = createBaseGpuInfo();
13769
+ while (reader.pos < end) {
13770
+ const tag = reader.uint32();
13771
+ switch (tag >>> 3) {
13772
+ case 1: {
13773
+ if (tag !== 13) {
13774
+ break;
13775
+ }
13776
+ message.load = reader.float();
13777
+ continue;
13778
+ }
13779
+ case 2: {
13780
+ if (tag !== 21) {
13781
+ break;
13782
+ }
13783
+ message.frequencyMhz = reader.float();
13784
+ continue;
13785
+ }
13786
+ }
13787
+ if ((tag & 7) === 4 || tag === 0) {
13788
+ break;
13789
+ }
13790
+ reader.skip(tag & 7);
13791
+ }
13792
+ return message;
13793
+ },
13794
+ fromJSON(object) {
13795
+ return {
13796
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13797
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13798
+ };
13799
+ },
13800
+ toJSON(message) {
13801
+ const obj = {};
13802
+ if (message.load !== 0) {
13803
+ obj.load = message.load;
13804
+ }
13805
+ if (message.frequencyMhz !== 0) {
13806
+ obj.frequencyMhz = message.frequencyMhz;
13807
+ }
13808
+ return obj;
13809
+ },
13810
+ create(base) {
13811
+ return exports.GpuInfo.fromPartial(base ?? {});
13812
+ },
13813
+ fromPartial(object) {
13814
+ const message = createBaseGpuInfo();
13815
+ message.load = object.load ?? 0;
13816
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13817
+ return message;
13818
+ },
13819
+ };
13820
+ function createBaseDlaInfo() {
13821
+ return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
13822
+ }
13823
+ exports.DlaInfo = {
13824
+ encode(message, writer = new wire_1.BinaryWriter()) {
13825
+ if (message.engineIndex !== 0) {
13826
+ writer.uint32(8).uint32(message.engineIndex);
13827
+ }
13828
+ if (message.load !== 0) {
13829
+ writer.uint32(21).float(message.load);
13830
+ }
13831
+ if (message.frequencyMhz !== 0) {
13832
+ writer.uint32(29).float(message.frequencyMhz);
13833
+ }
13834
+ if (message.enabled !== false) {
13835
+ writer.uint32(32).bool(message.enabled);
13836
+ }
13837
+ if (message.falconFrequencyMhz !== 0) {
13838
+ writer.uint32(45).float(message.falconFrequencyMhz);
13839
+ }
13840
+ return writer;
13841
+ },
13842
+ decode(input, length) {
13843
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13844
+ const end = length === undefined ? reader.len : reader.pos + length;
13845
+ const message = createBaseDlaInfo();
13846
+ while (reader.pos < end) {
13847
+ const tag = reader.uint32();
13848
+ switch (tag >>> 3) {
13849
+ case 1: {
13850
+ if (tag !== 8) {
13851
+ break;
13852
+ }
13853
+ message.engineIndex = reader.uint32();
13854
+ continue;
13855
+ }
13856
+ case 2: {
13857
+ if (tag !== 21) {
13858
+ break;
13859
+ }
13860
+ message.load = reader.float();
13861
+ continue;
13862
+ }
13863
+ case 3: {
13864
+ if (tag !== 29) {
13865
+ break;
13866
+ }
13867
+ message.frequencyMhz = reader.float();
13868
+ continue;
13869
+ }
13870
+ case 4: {
13871
+ if (tag !== 32) {
13872
+ break;
13873
+ }
13874
+ message.enabled = reader.bool();
13875
+ continue;
13876
+ }
13877
+ case 5: {
13878
+ if (tag !== 45) {
13879
+ break;
13880
+ }
13881
+ message.falconFrequencyMhz = reader.float();
13882
+ continue;
13883
+ }
13884
+ }
13885
+ if ((tag & 7) === 4 || tag === 0) {
13886
+ break;
13887
+ }
13888
+ reader.skip(tag & 7);
13889
+ }
13890
+ return message;
13891
+ },
13892
+ fromJSON(object) {
13893
+ return {
13894
+ engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
13895
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13896
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13897
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
13898
+ falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
13899
+ };
13900
+ },
13901
+ toJSON(message) {
13902
+ const obj = {};
13903
+ if (message.engineIndex !== 0) {
13904
+ obj.engineIndex = Math.round(message.engineIndex);
13905
+ }
13906
+ if (message.load !== 0) {
13907
+ obj.load = message.load;
13908
+ }
13909
+ if (message.frequencyMhz !== 0) {
13910
+ obj.frequencyMhz = message.frequencyMhz;
13911
+ }
13912
+ if (message.enabled !== false) {
13913
+ obj.enabled = message.enabled;
13914
+ }
13915
+ if (message.falconFrequencyMhz !== 0) {
13916
+ obj.falconFrequencyMhz = message.falconFrequencyMhz;
13917
+ }
13918
+ return obj;
13919
+ },
13920
+ create(base) {
13921
+ return exports.DlaInfo.fromPartial(base ?? {});
13922
+ },
13923
+ fromPartial(object) {
13924
+ const message = createBaseDlaInfo();
13925
+ message.engineIndex = object.engineIndex ?? 0;
13926
+ message.load = object.load ?? 0;
13927
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13928
+ message.enabled = object.enabled ?? false;
13929
+ message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
13930
+ return message;
13931
+ },
13932
+ };
13933
+ function createBaseMemoryInfo() {
13934
+ return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
13935
+ }
13936
+ exports.MemoryInfo = {
13937
+ encode(message, writer = new wire_1.BinaryWriter()) {
13938
+ if (message.totalBytes !== 0) {
13939
+ writer.uint32(8).uint64(message.totalBytes);
13940
+ }
13941
+ if (message.usedBytes !== 0) {
13942
+ writer.uint32(16).uint64(message.usedBytes);
13943
+ }
13944
+ if (message.cachedBytes !== 0) {
13945
+ writer.uint32(24).uint64(message.cachedBytes);
13946
+ }
13947
+ if (message.busLoad !== 0) {
13948
+ writer.uint32(37).float(message.busLoad);
13949
+ }
13950
+ return writer;
13951
+ },
13952
+ decode(input, length) {
13953
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13954
+ const end = length === undefined ? reader.len : reader.pos + length;
13955
+ const message = createBaseMemoryInfo();
13956
+ while (reader.pos < end) {
13957
+ const tag = reader.uint32();
13958
+ switch (tag >>> 3) {
13959
+ case 1: {
13960
+ if (tag !== 8) {
13961
+ break;
13962
+ }
13963
+ message.totalBytes = longToNumber(reader.uint64());
13964
+ continue;
13965
+ }
13966
+ case 2: {
13967
+ if (tag !== 16) {
13968
+ break;
13969
+ }
13970
+ message.usedBytes = longToNumber(reader.uint64());
13971
+ continue;
13972
+ }
13973
+ case 3: {
13974
+ if (tag !== 24) {
13975
+ break;
13976
+ }
13977
+ message.cachedBytes = longToNumber(reader.uint64());
13978
+ continue;
13979
+ }
13980
+ case 4: {
13981
+ if (tag !== 37) {
13982
+ break;
13983
+ }
13984
+ message.busLoad = reader.float();
13985
+ continue;
13986
+ }
13987
+ }
13988
+ if ((tag & 7) === 4 || tag === 0) {
13989
+ break;
13990
+ }
13991
+ reader.skip(tag & 7);
13992
+ }
13993
+ return message;
13994
+ },
13995
+ fromJSON(object) {
13996
+ return {
13997
+ totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
13998
+ usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
13999
+ cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
14000
+ busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
14001
+ };
14002
+ },
14003
+ toJSON(message) {
14004
+ const obj = {};
14005
+ if (message.totalBytes !== 0) {
14006
+ obj.totalBytes = Math.round(message.totalBytes);
14007
+ }
14008
+ if (message.usedBytes !== 0) {
14009
+ obj.usedBytes = Math.round(message.usedBytes);
14010
+ }
14011
+ if (message.cachedBytes !== 0) {
14012
+ obj.cachedBytes = Math.round(message.cachedBytes);
14013
+ }
14014
+ if (message.busLoad !== 0) {
14015
+ obj.busLoad = message.busLoad;
14016
+ }
14017
+ return obj;
14018
+ },
14019
+ create(base) {
14020
+ return exports.MemoryInfo.fromPartial(base ?? {});
14021
+ },
14022
+ fromPartial(object) {
14023
+ const message = createBaseMemoryInfo();
14024
+ message.totalBytes = object.totalBytes ?? 0;
14025
+ message.usedBytes = object.usedBytes ?? 0;
14026
+ message.cachedBytes = object.cachedBytes ?? 0;
14027
+ message.busLoad = object.busLoad ?? 0;
14028
+ return message;
14029
+ },
14030
+ };
14031
+ function createBaseThermalZone() {
14032
+ return { zone: 0, temperature: 0 };
14033
+ }
14034
+ exports.ThermalZone = {
14035
+ encode(message, writer = new wire_1.BinaryWriter()) {
14036
+ if (message.zone !== 0) {
14037
+ writer.uint32(8).int32(message.zone);
14038
+ }
14039
+ if (message.temperature !== 0) {
14040
+ writer.uint32(21).float(message.temperature);
14041
+ }
14042
+ return writer;
14043
+ },
14044
+ decode(input, length) {
14045
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14046
+ const end = length === undefined ? reader.len : reader.pos + length;
14047
+ const message = createBaseThermalZone();
14048
+ while (reader.pos < end) {
14049
+ const tag = reader.uint32();
14050
+ switch (tag >>> 3) {
14051
+ case 1: {
14052
+ if (tag !== 8) {
14053
+ break;
14054
+ }
14055
+ message.zone = reader.int32();
14056
+ continue;
14057
+ }
14058
+ case 2: {
14059
+ if (tag !== 21) {
14060
+ break;
14061
+ }
14062
+ message.temperature = reader.float();
14063
+ continue;
14064
+ }
14065
+ }
14066
+ if ((tag & 7) === 4 || tag === 0) {
14067
+ break;
14068
+ }
14069
+ reader.skip(tag & 7);
14070
+ }
14071
+ return message;
14072
+ },
14073
+ fromJSON(object) {
14074
+ return {
14075
+ zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
14076
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
14077
+ };
14078
+ },
14079
+ toJSON(message) {
14080
+ const obj = {};
14081
+ if (message.zone !== 0) {
14082
+ obj.zone = thermalZoneIdToJSON(message.zone);
14083
+ }
14084
+ if (message.temperature !== 0) {
14085
+ obj.temperature = message.temperature;
14086
+ }
14087
+ return obj;
14088
+ },
14089
+ create(base) {
14090
+ return exports.ThermalZone.fromPartial(base ?? {});
14091
+ },
14092
+ fromPartial(object) {
14093
+ const message = createBaseThermalZone();
14094
+ message.zone = object.zone ?? 0;
14095
+ message.temperature = object.temperature ?? 0;
14096
+ return message;
14097
+ },
14098
+ };
14099
+ function createBaseVideoCodecInfo() {
14100
+ return {
14101
+ encoderActive: false,
14102
+ encoderFrequencyMhz: 0,
14103
+ decoderActive: false,
14104
+ decoderFrequencyMhz: 0,
14105
+ nvjpgActive: false,
14106
+ nvjpgFrequencyMhz: 0,
14107
+ vicActive: false,
14108
+ vicFrequencyMhz: 0,
14109
+ vpuActive: false,
14110
+ vpuFrequencyMhz: 0,
14111
+ vpuCodecIrqCount: 0,
14112
+ vpuJpgIrqCount: 0,
14113
+ };
14114
+ }
14115
+ exports.VideoCodecInfo = {
14116
+ encode(message, writer = new wire_1.BinaryWriter()) {
14117
+ if (message.encoderActive !== false) {
14118
+ writer.uint32(8).bool(message.encoderActive);
14119
+ }
14120
+ if (message.encoderFrequencyMhz !== 0) {
14121
+ writer.uint32(21).float(message.encoderFrequencyMhz);
14122
+ }
14123
+ if (message.decoderActive !== false) {
14124
+ writer.uint32(24).bool(message.decoderActive);
14125
+ }
14126
+ if (message.decoderFrequencyMhz !== 0) {
14127
+ writer.uint32(37).float(message.decoderFrequencyMhz);
14128
+ }
14129
+ if (message.nvjpgActive !== false) {
14130
+ writer.uint32(40).bool(message.nvjpgActive);
14131
+ }
14132
+ if (message.nvjpgFrequencyMhz !== 0) {
14133
+ writer.uint32(53).float(message.nvjpgFrequencyMhz);
14134
+ }
14135
+ if (message.vicActive !== false) {
14136
+ writer.uint32(56).bool(message.vicActive);
14137
+ }
14138
+ if (message.vicFrequencyMhz !== 0) {
14139
+ writer.uint32(69).float(message.vicFrequencyMhz);
14140
+ }
14141
+ if (message.vpuActive !== false) {
14142
+ writer.uint32(72).bool(message.vpuActive);
14143
+ }
14144
+ if (message.vpuFrequencyMhz !== 0) {
14145
+ writer.uint32(85).float(message.vpuFrequencyMhz);
14146
+ }
14147
+ if (message.vpuCodecIrqCount !== 0) {
14148
+ writer.uint32(88).uint32(message.vpuCodecIrqCount);
14149
+ }
14150
+ if (message.vpuJpgIrqCount !== 0) {
14151
+ writer.uint32(96).uint32(message.vpuJpgIrqCount);
14152
+ }
14153
+ return writer;
14154
+ },
14155
+ decode(input, length) {
14156
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14157
+ const end = length === undefined ? reader.len : reader.pos + length;
14158
+ const message = createBaseVideoCodecInfo();
14159
+ while (reader.pos < end) {
14160
+ const tag = reader.uint32();
14161
+ switch (tag >>> 3) {
14162
+ case 1: {
14163
+ if (tag !== 8) {
14164
+ break;
14165
+ }
14166
+ message.encoderActive = reader.bool();
14167
+ continue;
14168
+ }
14169
+ case 2: {
14170
+ if (tag !== 21) {
14171
+ break;
14172
+ }
14173
+ message.encoderFrequencyMhz = reader.float();
14174
+ continue;
14175
+ }
14176
+ case 3: {
14177
+ if (tag !== 24) {
14178
+ break;
14179
+ }
14180
+ message.decoderActive = reader.bool();
14181
+ continue;
14182
+ }
14183
+ case 4: {
14184
+ if (tag !== 37) {
14185
+ break;
14186
+ }
14187
+ message.decoderFrequencyMhz = reader.float();
14188
+ continue;
14189
+ }
14190
+ case 5: {
14191
+ if (tag !== 40) {
14192
+ break;
14193
+ }
14194
+ message.nvjpgActive = reader.bool();
14195
+ continue;
14196
+ }
14197
+ case 6: {
14198
+ if (tag !== 53) {
14199
+ break;
14200
+ }
14201
+ message.nvjpgFrequencyMhz = reader.float();
14202
+ continue;
14203
+ }
14204
+ case 7: {
14205
+ if (tag !== 56) {
14206
+ break;
14207
+ }
14208
+ message.vicActive = reader.bool();
14209
+ continue;
14210
+ }
14211
+ case 8: {
14212
+ if (tag !== 69) {
14213
+ break;
14214
+ }
14215
+ message.vicFrequencyMhz = reader.float();
14216
+ continue;
14217
+ }
14218
+ case 9: {
14219
+ if (tag !== 72) {
14220
+ break;
14221
+ }
14222
+ message.vpuActive = reader.bool();
14223
+ continue;
14224
+ }
14225
+ case 10: {
14226
+ if (tag !== 85) {
14227
+ break;
14228
+ }
14229
+ message.vpuFrequencyMhz = reader.float();
14230
+ continue;
14231
+ }
14232
+ case 11: {
14233
+ if (tag !== 88) {
14234
+ break;
14235
+ }
14236
+ message.vpuCodecIrqCount = reader.uint32();
14237
+ continue;
14238
+ }
14239
+ case 12: {
14240
+ if (tag !== 96) {
14241
+ break;
14242
+ }
14243
+ message.vpuJpgIrqCount = reader.uint32();
14244
+ continue;
14245
+ }
14246
+ }
14247
+ if ((tag & 7) === 4 || tag === 0) {
14248
+ break;
14249
+ }
14250
+ reader.skip(tag & 7);
14251
+ }
14252
+ return message;
14253
+ },
14254
+ fromJSON(object) {
14255
+ return {
14256
+ encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
14257
+ encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
14258
+ decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
14259
+ decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
14260
+ nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
14261
+ nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
14262
+ vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
14263
+ vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
14264
+ vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
14265
+ vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
14266
+ vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
14267
+ vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
14268
+ };
14269
+ },
14270
+ toJSON(message) {
14271
+ const obj = {};
14272
+ if (message.encoderActive !== false) {
14273
+ obj.encoderActive = message.encoderActive;
14274
+ }
14275
+ if (message.encoderFrequencyMhz !== 0) {
14276
+ obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
14277
+ }
14278
+ if (message.decoderActive !== false) {
14279
+ obj.decoderActive = message.decoderActive;
14280
+ }
14281
+ if (message.decoderFrequencyMhz !== 0) {
14282
+ obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
14283
+ }
14284
+ if (message.nvjpgActive !== false) {
14285
+ obj.nvjpgActive = message.nvjpgActive;
14286
+ }
14287
+ if (message.nvjpgFrequencyMhz !== 0) {
14288
+ obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
14289
+ }
14290
+ if (message.vicActive !== false) {
14291
+ obj.vicActive = message.vicActive;
14292
+ }
14293
+ if (message.vicFrequencyMhz !== 0) {
14294
+ obj.vicFrequencyMhz = message.vicFrequencyMhz;
14295
+ }
14296
+ if (message.vpuActive !== false) {
14297
+ obj.vpuActive = message.vpuActive;
14298
+ }
14299
+ if (message.vpuFrequencyMhz !== 0) {
14300
+ obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
14301
+ }
14302
+ if (message.vpuCodecIrqCount !== 0) {
14303
+ obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
14304
+ }
14305
+ if (message.vpuJpgIrqCount !== 0) {
14306
+ obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
14307
+ }
14308
+ return obj;
14309
+ },
14310
+ create(base) {
14311
+ return exports.VideoCodecInfo.fromPartial(base ?? {});
14312
+ },
14313
+ fromPartial(object) {
14314
+ const message = createBaseVideoCodecInfo();
14315
+ message.encoderActive = object.encoderActive ?? false;
14316
+ message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
14317
+ message.decoderActive = object.decoderActive ?? false;
14318
+ message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
14319
+ message.nvjpgActive = object.nvjpgActive ?? false;
14320
+ message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
14321
+ message.vicActive = object.vicActive ?? false;
14322
+ message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
14323
+ message.vpuActive = object.vpuActive ?? false;
14324
+ message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
14325
+ message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
14326
+ message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
14327
+ return message;
14328
+ },
14329
+ };
14330
+ function createBaseSystemPerformanceInfo() {
14331
+ return {
14332
+ cpuCores: [],
14333
+ cpuUtilization: 0,
14334
+ gpu: undefined,
14335
+ dlaEngines: [],
14336
+ memory: undefined,
14337
+ thermalZones: [],
14338
+ videoCodec: undefined,
14339
+ mainQueueLoad: 0,
14340
+ guestportQueueLoad: 0,
14341
+ commQueueLoad: 0,
14342
+ cameraQueueLoad: 0,
14343
+ overlayQueueLoad: 0,
14344
+ positionObserverQueueLoad: 0,
14345
+ };
14346
+ }
14347
+ exports.SystemPerformanceInfo = {
14348
+ encode(message, writer = new wire_1.BinaryWriter()) {
14349
+ for (const v of message.cpuCores) {
14350
+ exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
14351
+ }
14352
+ if (message.cpuUtilization !== 0) {
14353
+ writer.uint32(21).float(message.cpuUtilization);
14354
+ }
14355
+ if (message.gpu !== undefined) {
14356
+ exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
14357
+ }
14358
+ for (const v of message.dlaEngines) {
14359
+ exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
14360
+ }
14361
+ if (message.memory !== undefined) {
14362
+ exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
14363
+ }
14364
+ for (const v of message.thermalZones) {
14365
+ exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
14366
+ }
14367
+ if (message.videoCodec !== undefined) {
14368
+ exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
14369
+ }
14370
+ if (message.mainQueueLoad !== 0) {
14371
+ writer.uint32(69).float(message.mainQueueLoad);
14372
+ }
14373
+ if (message.guestportQueueLoad !== 0) {
14374
+ writer.uint32(77).float(message.guestportQueueLoad);
14375
+ }
14376
+ if (message.commQueueLoad !== 0) {
14377
+ writer.uint32(85).float(message.commQueueLoad);
14378
+ }
14379
+ if (message.cameraQueueLoad !== 0) {
14380
+ writer.uint32(93).float(message.cameraQueueLoad);
14381
+ }
14382
+ if (message.overlayQueueLoad !== 0) {
14383
+ writer.uint32(101).float(message.overlayQueueLoad);
14384
+ }
14385
+ if (message.positionObserverQueueLoad !== 0) {
14386
+ writer.uint32(109).float(message.positionObserverQueueLoad);
14387
+ }
14388
+ return writer;
14389
+ },
14390
+ decode(input, length) {
14391
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14392
+ const end = length === undefined ? reader.len : reader.pos + length;
14393
+ const message = createBaseSystemPerformanceInfo();
14394
+ while (reader.pos < end) {
14395
+ const tag = reader.uint32();
14396
+ switch (tag >>> 3) {
14397
+ case 1: {
14398
+ if (tag !== 10) {
14399
+ break;
14400
+ }
14401
+ message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
14402
+ continue;
14403
+ }
14404
+ case 2: {
14405
+ if (tag !== 21) {
14406
+ break;
14407
+ }
14408
+ message.cpuUtilization = reader.float();
14409
+ continue;
14410
+ }
14411
+ case 3: {
14412
+ if (tag !== 26) {
14413
+ break;
14414
+ }
14415
+ message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
14416
+ continue;
14417
+ }
14418
+ case 4: {
14419
+ if (tag !== 34) {
14420
+ break;
14421
+ }
14422
+ message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
14423
+ continue;
14424
+ }
14425
+ case 5: {
14426
+ if (tag !== 42) {
14427
+ break;
14428
+ }
14429
+ message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
14430
+ continue;
14431
+ }
14432
+ case 6: {
14433
+ if (tag !== 50) {
14434
+ break;
14435
+ }
14436
+ message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
14437
+ continue;
14438
+ }
14439
+ case 7: {
14440
+ if (tag !== 58) {
14441
+ break;
14442
+ }
14443
+ message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
14444
+ continue;
14445
+ }
14446
+ case 8: {
14447
+ if (tag !== 69) {
14448
+ break;
14449
+ }
14450
+ message.mainQueueLoad = reader.float();
14451
+ continue;
14452
+ }
14453
+ case 9: {
14454
+ if (tag !== 77) {
14455
+ break;
14456
+ }
14457
+ message.guestportQueueLoad = reader.float();
14458
+ continue;
14459
+ }
14460
+ case 10: {
14461
+ if (tag !== 85) {
14462
+ break;
14463
+ }
14464
+ message.commQueueLoad = reader.float();
14465
+ continue;
14466
+ }
14467
+ case 11: {
14468
+ if (tag !== 93) {
14469
+ break;
14470
+ }
14471
+ message.cameraQueueLoad = reader.float();
14472
+ continue;
14473
+ }
14474
+ case 12: {
14475
+ if (tag !== 101) {
14476
+ break;
14477
+ }
14478
+ message.overlayQueueLoad = reader.float();
14479
+ continue;
14480
+ }
14481
+ case 13: {
14482
+ if (tag !== 109) {
14483
+ break;
14484
+ }
14485
+ message.positionObserverQueueLoad = reader.float();
14486
+ continue;
14487
+ }
14488
+ }
14489
+ if ((tag & 7) === 4 || tag === 0) {
14490
+ break;
14491
+ }
14492
+ reader.skip(tag & 7);
14493
+ }
14494
+ return message;
14495
+ },
14496
+ fromJSON(object) {
14497
+ return {
14498
+ cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
14499
+ cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
14500
+ gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
14501
+ dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
14502
+ memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
14503
+ thermalZones: gt.Array.isArray(object?.thermalZones)
14504
+ ? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
14505
+ : [],
14506
+ videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
14507
+ mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
14508
+ guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
14509
+ commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
14510
+ cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
14511
+ overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
14512
+ positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
14513
+ ? gt.Number(object.positionObserverQueueLoad)
14514
+ : 0,
14515
+ };
14516
+ },
14517
+ toJSON(message) {
14518
+ const obj = {};
14519
+ if (message.cpuCores?.length) {
14520
+ obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
14521
+ }
14522
+ if (message.cpuUtilization !== 0) {
14523
+ obj.cpuUtilization = message.cpuUtilization;
14524
+ }
14525
+ if (message.gpu !== undefined) {
14526
+ obj.gpu = exports.GpuInfo.toJSON(message.gpu);
14527
+ }
14528
+ if (message.dlaEngines?.length) {
14529
+ obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
14530
+ }
14531
+ if (message.memory !== undefined) {
14532
+ obj.memory = exports.MemoryInfo.toJSON(message.memory);
14533
+ }
14534
+ if (message.thermalZones?.length) {
14535
+ obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
14536
+ }
14537
+ if (message.videoCodec !== undefined) {
14538
+ obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
14539
+ }
14540
+ if (message.mainQueueLoad !== 0) {
14541
+ obj.mainQueueLoad = message.mainQueueLoad;
14542
+ }
14543
+ if (message.guestportQueueLoad !== 0) {
14544
+ obj.guestportQueueLoad = message.guestportQueueLoad;
14545
+ }
14546
+ if (message.commQueueLoad !== 0) {
14547
+ obj.commQueueLoad = message.commQueueLoad;
14548
+ }
14549
+ if (message.cameraQueueLoad !== 0) {
14550
+ obj.cameraQueueLoad = message.cameraQueueLoad;
14551
+ }
14552
+ if (message.overlayQueueLoad !== 0) {
14553
+ obj.overlayQueueLoad = message.overlayQueueLoad;
14554
+ }
14555
+ if (message.positionObserverQueueLoad !== 0) {
14556
+ obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
14557
+ }
14558
+ return obj;
14559
+ },
14560
+ create(base) {
14561
+ return exports.SystemPerformanceInfo.fromPartial(base ?? {});
14562
+ },
14563
+ fromPartial(object) {
14564
+ const message = createBaseSystemPerformanceInfo();
14565
+ message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
14566
+ message.cpuUtilization = object.cpuUtilization ?? 0;
14567
+ message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
14568
+ message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
14569
+ message.memory = (object.memory !== undefined && object.memory !== null)
14570
+ ? exports.MemoryInfo.fromPartial(object.memory)
14571
+ : undefined;
14572
+ message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
14573
+ message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
14574
+ ? exports.VideoCodecInfo.fromPartial(object.videoCodec)
14575
+ : undefined;
14576
+ message.mainQueueLoad = object.mainQueueLoad ?? 0;
14577
+ message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
14578
+ message.commQueueLoad = object.commQueueLoad ?? 0;
14579
+ message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
14580
+ message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
14581
+ message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
14582
+ return message;
14583
+ },
14584
+ };
14585
+ function createBaseSurfaceUnitBatteryInfo() {
14586
+ return { status: 0, level: 0 };
14587
+ }
14588
+ exports.SurfaceUnitBatteryInfo = {
14589
+ encode(message, writer = new wire_1.BinaryWriter()) {
14590
+ if (message.status !== 0) {
14591
+ writer.uint32(8).int32(message.status);
14592
+ }
14593
+ if (message.level !== 0) {
14594
+ writer.uint32(21).float(message.level);
14595
+ }
14596
+ return writer;
14597
+ },
14598
+ decode(input, length) {
14599
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14600
+ const end = length === undefined ? reader.len : reader.pos + length;
14601
+ const message = createBaseSurfaceUnitBatteryInfo();
14602
+ while (reader.pos < end) {
14603
+ const tag = reader.uint32();
14604
+ switch (tag >>> 3) {
14605
+ case 1: {
14606
+ if (tag !== 8) {
14607
+ break;
14608
+ }
14609
+ message.status = reader.int32();
14610
+ continue;
14611
+ }
14612
+ case 2: {
14613
+ if (tag !== 21) {
14614
+ break;
14615
+ }
14616
+ message.level = reader.float();
14617
+ continue;
14618
+ }
14619
+ }
14620
+ if ((tag & 7) === 4 || tag === 0) {
14621
+ break;
14622
+ }
14623
+ reader.skip(tag & 7);
14624
+ }
14625
+ return message;
14626
+ },
14627
+ fromJSON(object) {
14628
+ return {
14629
+ status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
14630
+ level: isSet(object.level) ? gt.Number(object.level) : 0,
14631
+ };
14632
+ },
14633
+ toJSON(message) {
14634
+ const obj = {};
14635
+ if (message.status !== 0) {
14636
+ obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
14637
+ }
14638
+ if (message.level !== 0) {
14639
+ obj.level = message.level;
14640
+ }
14641
+ return obj;
14642
+ },
14643
+ create(base) {
14644
+ return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
14645
+ },
14646
+ fromPartial(object) {
14647
+ const message = createBaseSurfaceUnitBatteryInfo();
14648
+ message.status = object.status ?? 0;
14649
+ message.level = object.level ?? 0;
14650
+ return message;
14651
+ },
14652
+ };
14653
+ function createBaseSurfaceUnitVersionInfo() {
14654
+ return { version: "" };
14655
+ }
14656
+ exports.SurfaceUnitVersionInfo = {
14657
+ encode(message, writer = new wire_1.BinaryWriter()) {
14658
+ if (message.version !== "") {
14659
+ writer.uint32(10).string(message.version);
14660
+ }
14661
+ return writer;
14662
+ },
14663
+ decode(input, length) {
14664
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14665
+ const end = length === undefined ? reader.len : reader.pos + length;
14666
+ const message = createBaseSurfaceUnitVersionInfo();
14667
+ while (reader.pos < end) {
14668
+ const tag = reader.uint32();
14669
+ switch (tag >>> 3) {
14670
+ case 1: {
14671
+ if (tag !== 10) {
14672
+ break;
14673
+ }
14674
+ message.version = reader.string();
14675
+ continue;
14676
+ }
14677
+ }
14678
+ if ((tag & 7) === 4 || tag === 0) {
14679
+ break;
14680
+ }
14681
+ reader.skip(tag & 7);
14682
+ }
14683
+ return message;
14684
+ },
14685
+ fromJSON(object) {
14686
+ return { version: isSet(object.version) ? gt.String(object.version) : "" };
14687
+ },
14688
+ toJSON(message) {
14689
+ const obj = {};
14690
+ if (message.version !== "") {
14691
+ obj.version = message.version;
14692
+ }
14693
+ return obj;
14694
+ },
14695
+ create(base) {
14696
+ return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
14697
+ },
14698
+ fromPartial(object) {
14699
+ const message = createBaseSurfaceUnitVersionInfo();
14700
+ message.version = object.version ?? "";
14701
+ return message;
14702
+ },
14703
+ };
14704
+ function createBaseBoundingBox() {
14705
+ return { x: 0, y: 0, width: 0, height: 0 };
14706
+ }
14707
+ exports.BoundingBox = {
14708
+ encode(message, writer = new wire_1.BinaryWriter()) {
14709
+ if (message.x !== 0) {
14710
+ writer.uint32(8).uint32(message.x);
14711
+ }
14712
+ if (message.y !== 0) {
14713
+ writer.uint32(16).uint32(message.y);
14714
+ }
14715
+ if (message.width !== 0) {
14716
+ writer.uint32(24).uint32(message.width);
14717
+ }
14718
+ if (message.height !== 0) {
14719
+ writer.uint32(32).uint32(message.height);
14720
+ }
14721
+ return writer;
14722
+ },
14723
+ decode(input, length) {
14724
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14725
+ const end = length === undefined ? reader.len : reader.pos + length;
14726
+ const message = createBaseBoundingBox();
14727
+ while (reader.pos < end) {
14728
+ const tag = reader.uint32();
14729
+ switch (tag >>> 3) {
14730
+ case 1: {
14731
+ if (tag !== 8) {
14732
+ break;
14733
+ }
14734
+ message.x = reader.uint32();
14735
+ continue;
14736
+ }
14737
+ case 2: {
14738
+ if (tag !== 16) {
14739
+ break;
14740
+ }
14741
+ message.y = reader.uint32();
14742
+ continue;
14743
+ }
14744
+ case 3: {
14745
+ if (tag !== 24) {
14746
+ break;
14747
+ }
14748
+ message.width = reader.uint32();
14749
+ continue;
14750
+ }
14751
+ case 4: {
14752
+ if (tag !== 32) {
14753
+ break;
14754
+ }
14755
+ message.height = reader.uint32();
14756
+ continue;
14757
+ }
14758
+ }
14759
+ if ((tag & 7) === 4 || tag === 0) {
14760
+ break;
14761
+ }
14762
+ reader.skip(tag & 7);
14763
+ }
14764
+ return message;
14765
+ },
14766
+ fromJSON(object) {
14767
+ return {
14768
+ x: isSet(object.x) ? gt.Number(object.x) : 0,
14769
+ y: isSet(object.y) ? gt.Number(object.y) : 0,
14770
+ width: isSet(object.width) ? gt.Number(object.width) : 0,
14771
+ height: isSet(object.height) ? gt.Number(object.height) : 0,
14772
+ };
14773
+ },
14774
+ toJSON(message) {
14775
+ const obj = {};
14776
+ if (message.x !== 0) {
14777
+ obj.x = Math.round(message.x);
14778
+ }
14779
+ if (message.y !== 0) {
14780
+ obj.y = Math.round(message.y);
14781
+ }
14782
+ if (message.width !== 0) {
14783
+ obj.width = Math.round(message.width);
14784
+ }
14785
+ if (message.height !== 0) {
14786
+ obj.height = Math.round(message.height);
14787
+ }
14788
+ return obj;
14789
+ },
14790
+ create(base) {
14791
+ return exports.BoundingBox.fromPartial(base ?? {});
14792
+ },
14793
+ fromPartial(object) {
14794
+ const message = createBaseBoundingBox();
14795
+ message.x = object.x ?? 0;
14796
+ message.y = object.y ?? 0;
14797
+ message.width = object.width ?? 0;
14798
+ message.height = object.height ?? 0;
14799
+ return message;
14800
+ },
14801
+ };
14802
+ function createBaseSegmentationMask() {
14803
+ return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0) };
14804
+ }
14805
+ exports.SegmentationMask = {
14806
+ encode(message, writer = new wire_1.BinaryWriter()) {
14807
+ if (message.maskWidth !== 0) {
14808
+ writer.uint32(8).uint32(message.maskWidth);
14809
+ }
14810
+ if (message.maskHeight !== 0) {
14811
+ writer.uint32(16).uint32(message.maskHeight);
14812
+ }
14813
+ if (message.counts.length !== 0) {
14814
+ writer.uint32(26).bytes(message.counts);
14815
+ }
14816
+ return writer;
14817
+ },
14818
+ decode(input, length) {
14819
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14820
+ const end = length === undefined ? reader.len : reader.pos + length;
14821
+ const message = createBaseSegmentationMask();
14822
+ while (reader.pos < end) {
14823
+ const tag = reader.uint32();
14824
+ switch (tag >>> 3) {
14825
+ case 1: {
14826
+ if (tag !== 8) {
14827
+ break;
14828
+ }
14829
+ message.maskWidth = reader.uint32();
14830
+ continue;
14831
+ }
14832
+ case 2: {
14833
+ if (tag !== 16) {
14834
+ break;
14835
+ }
14836
+ message.maskHeight = reader.uint32();
14837
+ continue;
14838
+ }
14839
+ case 3: {
14840
+ if (tag !== 26) {
14841
+ break;
14842
+ }
14843
+ message.counts = reader.bytes();
14844
+ continue;
14845
+ }
14846
+ }
14847
+ if ((tag & 7) === 4 || tag === 0) {
14848
+ break;
14849
+ }
14850
+ reader.skip(tag & 7);
14851
+ }
14852
+ return message;
14853
+ },
14854
+ fromJSON(object) {
14855
+ return {
14856
+ maskWidth: isSet(object.maskWidth) ? gt.Number(object.maskWidth) : 0,
14857
+ maskHeight: isSet(object.maskHeight) ? gt.Number(object.maskHeight) : 0,
14858
+ counts: isSet(object.counts) ? bytesFromBase64(object.counts) : new Uint8Array(0),
14859
+ };
14860
+ },
14861
+ toJSON(message) {
14862
+ const obj = {};
14863
+ if (message.maskWidth !== 0) {
14864
+ obj.maskWidth = Math.round(message.maskWidth);
14865
+ }
14866
+ if (message.maskHeight !== 0) {
14867
+ obj.maskHeight = Math.round(message.maskHeight);
14868
+ }
14869
+ if (message.counts.length !== 0) {
14870
+ obj.counts = base64FromBytes(message.counts);
14871
+ }
14872
+ return obj;
14873
+ },
14874
+ create(base) {
14875
+ return exports.SegmentationMask.fromPartial(base ?? {});
14876
+ },
14877
+ fromPartial(object) {
14878
+ const message = createBaseSegmentationMask();
14879
+ message.maskWidth = object.maskWidth ?? 0;
14880
+ message.maskHeight = object.maskHeight ?? 0;
14881
+ message.counts = object.counts ?? new Uint8Array(0);
14882
+ return message;
14883
+ },
14884
+ };
14885
+ function createBaseObjectDetection() {
14886
+ return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0, mask: undefined };
14887
+ }
14888
+ exports.ObjectDetection = {
14889
+ encode(message, writer = new wire_1.BinaryWriter()) {
14890
+ if (message.boundingBox !== undefined) {
14891
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
14892
+ }
14893
+ if (message.confidence !== 0) {
14894
+ writer.uint32(21).float(message.confidence);
14895
+ }
14896
+ if (message.classId !== 0) {
14897
+ writer.uint32(24).uint32(message.classId);
14898
+ }
14899
+ if (message.className !== "") {
14900
+ writer.uint32(34).string(message.className);
14901
+ }
14902
+ if (message.trackingId !== 0) {
14903
+ writer.uint32(40).uint32(message.trackingId);
14904
+ }
14905
+ if (message.mask !== undefined) {
14906
+ exports.SegmentationMask.encode(message.mask, writer.uint32(50).fork()).join();
14907
+ }
14908
+ return writer;
14909
+ },
14910
+ decode(input, length) {
14911
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14912
+ const end = length === undefined ? reader.len : reader.pos + length;
14913
+ const message = createBaseObjectDetection();
14914
+ while (reader.pos < end) {
14915
+ const tag = reader.uint32();
14916
+ switch (tag >>> 3) {
14917
+ case 1: {
14918
+ if (tag !== 10) {
14919
+ break;
14920
+ }
14921
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
14922
+ continue;
14923
+ }
14924
+ case 2: {
14925
+ if (tag !== 21) {
14926
+ break;
14927
+ }
14928
+ message.confidence = reader.float();
14929
+ continue;
14930
+ }
14931
+ case 3: {
14932
+ if (tag !== 24) {
14933
+ break;
14934
+ }
14935
+ message.classId = reader.uint32();
14936
+ continue;
14937
+ }
14938
+ case 4: {
14939
+ if (tag !== 34) {
14940
+ break;
14941
+ }
14942
+ message.className = reader.string();
14943
+ continue;
14944
+ }
14945
+ case 5: {
14946
+ if (tag !== 40) {
14947
+ break;
14948
+ }
14949
+ message.trackingId = reader.uint32();
14950
+ continue;
14951
+ }
14952
+ case 6: {
14953
+ if (tag !== 50) {
14954
+ break;
14955
+ }
14956
+ message.mask = exports.SegmentationMask.decode(reader, reader.uint32());
14957
+ continue;
14958
+ }
14959
+ }
14960
+ if ((tag & 7) === 4 || tag === 0) {
14961
+ break;
14962
+ }
14963
+ reader.skip(tag & 7);
14964
+ }
14965
+ return message;
14966
+ },
14967
+ fromJSON(object) {
14968
+ return {
14969
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
14970
+ confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
14971
+ classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
14972
+ className: isSet(object.className) ? gt.String(object.className) : "",
14973
+ trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
14974
+ mask: isSet(object.mask) ? exports.SegmentationMask.fromJSON(object.mask) : undefined,
14975
+ };
14976
+ },
14977
+ toJSON(message) {
14978
+ const obj = {};
14979
+ if (message.boundingBox !== undefined) {
14980
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
14981
+ }
14982
+ if (message.confidence !== 0) {
14983
+ obj.confidence = message.confidence;
14984
+ }
14985
+ if (message.classId !== 0) {
14986
+ obj.classId = Math.round(message.classId);
14987
+ }
14988
+ if (message.className !== "") {
14989
+ obj.className = message.className;
14990
+ }
14991
+ if (message.trackingId !== 0) {
14992
+ obj.trackingId = Math.round(message.trackingId);
14993
+ }
14994
+ if (message.mask !== undefined) {
14995
+ obj.mask = exports.SegmentationMask.toJSON(message.mask);
14996
+ }
14997
+ return obj;
14998
+ },
14999
+ create(base) {
15000
+ return exports.ObjectDetection.fromPartial(base ?? {});
15001
+ },
15002
+ fromPartial(object) {
15003
+ const message = createBaseObjectDetection();
15004
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
15005
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
15006
+ : undefined;
15007
+ message.confidence = object.confidence ?? 0;
15008
+ message.classId = object.classId ?? 0;
15009
+ message.className = object.className ?? "";
15010
+ message.trackingId = object.trackingId ?? 0;
15011
+ message.mask = (object.mask !== undefined && object.mask !== null)
15012
+ ? exports.SegmentationMask.fromPartial(object.mask)
15013
+ : undefined;
15014
+ return message;
15015
+ },
15016
+ };
15017
+ function createBaseModelDetections() {
15018
+ return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
15019
+ }
15020
+ exports.ModelDetections = {
15021
+ encode(message, writer = new wire_1.BinaryWriter()) {
15022
+ for (const v of message.detections) {
15023
+ exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
15024
+ }
15025
+ if (message.camera !== 0) {
15026
+ writer.uint32(16).int32(message.camera);
15027
+ }
15028
+ if (message.imageWidth !== 0) {
15029
+ writer.uint32(24).uint32(message.imageWidth);
15030
+ }
15031
+ if (message.imageHeight !== 0) {
15032
+ writer.uint32(32).uint32(message.imageHeight);
15033
+ }
15034
+ if (message.modelName !== "") {
15035
+ writer.uint32(42).string(message.modelName);
15036
+ }
15037
+ return writer;
15038
+ },
15039
+ decode(input, length) {
15040
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15041
+ const end = length === undefined ? reader.len : reader.pos + length;
15042
+ const message = createBaseModelDetections();
15043
+ while (reader.pos < end) {
15044
+ const tag = reader.uint32();
15045
+ switch (tag >>> 3) {
15046
+ case 1: {
15047
+ if (tag !== 10) {
15048
+ break;
15049
+ }
15050
+ message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
15051
+ continue;
15052
+ }
15053
+ case 2: {
15054
+ if (tag !== 16) {
15055
+ break;
15056
+ }
15057
+ message.camera = reader.int32();
15058
+ continue;
15059
+ }
15060
+ case 3: {
15061
+ if (tag !== 24) {
15062
+ break;
15063
+ }
15064
+ message.imageWidth = reader.uint32();
15065
+ continue;
15066
+ }
15067
+ case 4: {
15068
+ if (tag !== 32) {
15069
+ break;
15070
+ }
15071
+ message.imageHeight = reader.uint32();
15072
+ continue;
15073
+ }
15074
+ case 5: {
15075
+ if (tag !== 42) {
15076
+ break;
15077
+ }
15078
+ message.modelName = reader.string();
15079
+ continue;
15080
+ }
15081
+ }
15082
+ if ((tag & 7) === 4 || tag === 0) {
15083
+ break;
15084
+ }
15085
+ reader.skip(tag & 7);
15086
+ }
15087
+ return message;
15088
+ },
15089
+ fromJSON(object) {
15090
+ return {
15091
+ detections: gt.Array.isArray(object?.detections)
15092
+ ? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
15093
+ : [],
15094
+ camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
15095
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
15096
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
15097
+ modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
15098
+ };
15099
+ },
15100
+ toJSON(message) {
15101
+ const obj = {};
15102
+ if (message.detections?.length) {
15103
+ obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
15104
+ }
15105
+ if (message.camera !== 0) {
15106
+ obj.camera = cameraToJSON(message.camera);
15107
+ }
15108
+ if (message.imageWidth !== 0) {
15109
+ obj.imageWidth = Math.round(message.imageWidth);
15110
+ }
15111
+ if (message.imageHeight !== 0) {
15112
+ obj.imageHeight = Math.round(message.imageHeight);
15113
+ }
15114
+ if (message.modelName !== "") {
15115
+ obj.modelName = message.modelName;
15116
+ }
15117
+ return obj;
15118
+ },
15119
+ create(base) {
15120
+ return exports.ModelDetections.fromPartial(base ?? {});
15121
+ },
15122
+ fromPartial(object) {
15123
+ const message = createBaseModelDetections();
15124
+ message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
15125
+ message.camera = object.camera ?? 0;
15126
+ message.imageWidth = object.imageWidth ?? 0;
15127
+ message.imageHeight = object.imageHeight ?? 0;
15128
+ message.modelName = object.modelName ?? "";
15129
+ return message;
15130
+ },
15131
+ };
15132
+ function createBaseFilterMessage() {
15133
+ return { enabled: false, intensity: 0 };
15134
+ }
15135
+ exports.FilterMessage = {
15136
+ encode(message, writer = new wire_1.BinaryWriter()) {
15137
+ if (message.enabled !== false) {
15138
+ writer.uint32(8).bool(message.enabled);
15139
+ }
15140
+ if (message.intensity !== 0) {
15141
+ writer.uint32(21).float(message.intensity);
15142
+ }
15143
+ return writer;
15144
+ },
15145
+ decode(input, length) {
15146
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15147
+ const end = length === undefined ? reader.len : reader.pos + length;
15148
+ const message = createBaseFilterMessage();
15149
+ while (reader.pos < end) {
15150
+ const tag = reader.uint32();
15151
+ switch (tag >>> 3) {
15152
+ case 1: {
15153
+ if (tag !== 8) {
15154
+ break;
15155
+ }
15156
+ message.enabled = reader.bool();
15157
+ continue;
15158
+ }
15159
+ case 2: {
15160
+ if (tag !== 21) {
15161
+ break;
15162
+ }
15163
+ message.intensity = reader.float();
15164
+ continue;
15165
+ }
15166
+ }
15167
+ if ((tag & 7) === 4 || tag === 0) {
15168
+ break;
15169
+ }
15170
+ reader.skip(tag & 7);
15171
+ }
15172
+ return message;
15173
+ },
15174
+ fromJSON(object) {
15175
+ return {
15176
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
15177
+ intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
15178
+ };
15179
+ },
15180
+ toJSON(message) {
15181
+ const obj = {};
15182
+ if (message.enabled !== false) {
15183
+ obj.enabled = message.enabled;
15184
+ }
15185
+ if (message.intensity !== 0) {
15186
+ obj.intensity = message.intensity;
15187
+ }
15188
+ return obj;
15189
+ },
15190
+ create(base) {
15191
+ return exports.FilterMessage.fromPartial(base ?? {});
15192
+ },
15193
+ fromPartial(object) {
15194
+ const message = createBaseFilterMessage();
15195
+ message.enabled = object.enabled ?? false;
15196
+ message.intensity = object.intensity ?? 0;
15197
+ return message;
15198
+ },
15199
+ };
15200
+ function createBaseCameraPanTiltZoom() {
15201
+ return { pan: 0, tilt: 0, zoom: 0 };
15202
+ }
15203
+ exports.CameraPanTiltZoom = {
15204
+ encode(message, writer = new wire_1.BinaryWriter()) {
15205
+ if (message.pan !== 0) {
15206
+ writer.uint32(13).float(message.pan);
15207
+ }
15208
+ if (message.tilt !== 0) {
15209
+ writer.uint32(21).float(message.tilt);
15210
+ }
15211
+ if (message.zoom !== 0) {
15212
+ writer.uint32(29).float(message.zoom);
15213
+ }
15214
+ return writer;
15215
+ },
15216
+ decode(input, length) {
15217
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15218
+ const end = length === undefined ? reader.len : reader.pos + length;
15219
+ const message = createBaseCameraPanTiltZoom();
15220
+ while (reader.pos < end) {
15221
+ const tag = reader.uint32();
15222
+ switch (tag >>> 3) {
15223
+ case 1: {
15224
+ if (tag !== 13) {
15225
+ break;
15226
+ }
15227
+ message.pan = reader.float();
15228
+ continue;
15229
+ }
15230
+ case 2: {
15231
+ if (tag !== 21) {
15232
+ break;
15233
+ }
15234
+ message.tilt = reader.float();
15235
+ continue;
15236
+ }
15237
+ case 3: {
15238
+ if (tag !== 29) {
15239
+ break;
15240
+ }
15241
+ message.zoom = reader.float();
15242
+ continue;
15243
+ }
15244
+ }
15245
+ if ((tag & 7) === 4 || tag === 0) {
15246
+ break;
15247
+ }
15248
+ reader.skip(tag & 7);
15249
+ }
15250
+ return message;
15251
+ },
15252
+ fromJSON(object) {
15253
+ return {
15254
+ pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
15255
+ tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
15256
+ zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
15257
+ };
15258
+ },
15259
+ toJSON(message) {
15260
+ const obj = {};
15261
+ if (message.pan !== 0) {
15262
+ obj.pan = message.pan;
15263
+ }
15264
+ if (message.tilt !== 0) {
15265
+ obj.tilt = message.tilt;
15266
+ }
15267
+ if (message.zoom !== 0) {
15268
+ obj.zoom = message.zoom;
15269
+ }
15270
+ return obj;
15271
+ },
15272
+ create(base) {
15273
+ return exports.CameraPanTiltZoom.fromPartial(base ?? {});
15274
+ },
15275
+ fromPartial(object) {
15276
+ const message = createBaseCameraPanTiltZoom();
15277
+ message.pan = object.pan ?? 0;
15278
+ message.tilt = object.tilt ?? 0;
15279
+ message.zoom = object.zoom ?? 0;
15280
+ return message;
15281
+ },
15282
+ };
15283
+ function createBaseOperatorInfo() {
15284
+ return { name: "", email: "" };
15285
+ }
15286
+ exports.OperatorInfo = {
15287
+ encode(message, writer = new wire_1.BinaryWriter()) {
15288
+ if (message.name !== "") {
15289
+ writer.uint32(10).string(message.name);
15290
+ }
15291
+ if (message.email !== "") {
15292
+ writer.uint32(18).string(message.email);
15293
+ }
15294
+ return writer;
15295
+ },
15296
+ decode(input, length) {
15297
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15298
+ const end = length === undefined ? reader.len : reader.pos + length;
15299
+ const message = createBaseOperatorInfo();
15300
+ while (reader.pos < end) {
15301
+ const tag = reader.uint32();
15302
+ switch (tag >>> 3) {
15303
+ case 1: {
15304
+ if (tag !== 10) {
15305
+ break;
15306
+ }
15307
+ message.name = reader.string();
15308
+ continue;
15309
+ }
15310
+ case 2: {
15311
+ if (tag !== 18) {
15312
+ break;
15313
+ }
15314
+ message.email = reader.string();
15315
+ continue;
15316
+ }
15317
+ }
15318
+ if ((tag & 7) === 4 || tag === 0) {
15319
+ break;
15320
+ }
15321
+ reader.skip(tag & 7);
15322
+ }
15323
+ return message;
15324
+ },
15325
+ fromJSON(object) {
15326
+ return {
15327
+ name: isSet(object.name) ? gt.String(object.name) : "",
15328
+ email: isSet(object.email) ? gt.String(object.email) : "",
15329
+ };
15330
+ },
15331
+ toJSON(message) {
15332
+ const obj = {};
15333
+ if (message.name !== "") {
15334
+ obj.name = message.name;
15335
+ }
15336
+ if (message.email !== "") {
15337
+ obj.email = message.email;
15338
+ }
15339
+ return obj;
15340
+ },
15341
+ create(base) {
15342
+ return exports.OperatorInfo.fromPartial(base ?? {});
15343
+ },
15344
+ fromPartial(object) {
15345
+ const message = createBaseOperatorInfo();
15346
+ message.name = object.name ?? "";
15347
+ message.email = object.email ?? "";
15348
+ return message;
15349
+ },
15350
+ };
15351
+ function createBaseSotState() {
15352
+ return { state: 0, boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
15353
+ }
15354
+ exports.SotState = {
15355
+ encode(message, writer = new wire_1.BinaryWriter()) {
15356
+ if (message.state !== 0) {
15357
+ writer.uint32(8).int32(message.state);
15358
+ }
15359
+ if (message.boundingBox !== undefined) {
15360
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(18).fork()).join();
15361
+ }
15362
+ if (message.imageWidth !== 0) {
15363
+ writer.uint32(24).uint32(message.imageWidth);
15364
+ }
15365
+ if (message.imageHeight !== 0) {
15366
+ writer.uint32(32).uint32(message.imageHeight);
15367
+ }
15368
+ return writer;
15369
+ },
15370
+ decode(input, length) {
15371
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
15372
+ const end = length === undefined ? reader.len : reader.pos + length;
15373
+ const message = createBaseSotState();
15374
+ while (reader.pos < end) {
15375
+ const tag = reader.uint32();
15376
+ switch (tag >>> 3) {
15377
+ case 1: {
15378
+ if (tag !== 8) {
15379
+ break;
15380
+ }
15381
+ message.state = reader.int32();
15382
+ continue;
15383
+ }
15384
+ case 2: {
15385
+ if (tag !== 18) {
15386
+ break;
15387
+ }
15388
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
15389
+ continue;
15390
+ }
15391
+ case 3: {
15392
+ if (tag !== 24) {
15393
+ break;
15394
+ }
15395
+ message.imageWidth = reader.uint32();
15396
+ continue;
15397
+ }
15398
+ case 4: {
15399
+ if (tag !== 32) {
15400
+ break;
15401
+ }
15402
+ message.imageHeight = reader.uint32();
15403
+ continue;
15404
+ }
15405
+ }
15406
+ if ((tag & 7) === 4 || tag === 0) {
15407
+ break;
15408
+ }
15409
+ reader.skip(tag & 7);
15410
+ }
15411
+ return message;
15412
+ },
15413
+ fromJSON(object) {
15414
+ return {
15415
+ state: isSet(object.state) ? sotState_StateFromJSON(object.state) : 0,
15416
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
15417
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
15418
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
15419
+ };
15420
+ },
15421
+ toJSON(message) {
15422
+ const obj = {};
15423
+ if (message.state !== 0) {
15424
+ obj.state = sotState_StateToJSON(message.state);
15425
+ }
15426
+ if (message.boundingBox !== undefined) {
15427
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
15428
+ }
15429
+ if (message.imageWidth !== 0) {
15430
+ obj.imageWidth = Math.round(message.imageWidth);
15431
+ }
15432
+ if (message.imageHeight !== 0) {
15433
+ obj.imageHeight = Math.round(message.imageHeight);
15434
+ }
15435
+ return obj;
15436
+ },
15437
+ create(base) {
15438
+ return exports.SotState.fromPartial(base ?? {});
15439
+ },
15440
+ fromPartial(object) {
15441
+ const message = createBaseSotState();
15442
+ message.state = object.state ?? 0;
15443
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
15444
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
15445
+ : undefined;
15446
+ message.imageWidth = object.imageWidth ?? 0;
15447
+ message.imageHeight = object.imageHeight ?? 0;
12557
15448
  return message;
12558
15449
  },
12559
15450
  };