@blueyerobotics/protocol-definitions 3.2.0-bb5ffe79 → 3.2.0-c2a9067e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@
5
5
  // protoc v3.21.12
6
6
  // source: message_formats.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.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.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
9
- 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 = exports.ConnectedClient = exports.ClientInfo = void 0;
10
- exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = void 0;
8
+ exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
9
+ exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = void 0;
10
+ exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ObjectDetections = exports.ObjectDetection = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.VideoCodecInfo = exports.ThermalZone = exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = void 0;
11
11
  exports.intervalTypeFromJSON = intervalTypeFromJSON;
12
12
  exports.intervalTypeToJSON = intervalTypeToJSON;
13
13
  exports.locationSourceFromJSON = locationSourceFromJSON;
@@ -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;
@@ -34,6 +36,8 @@ exports.cameraFromJSON = cameraFromJSON;
34
36
  exports.cameraToJSON = cameraToJSON;
35
37
  exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
36
38
  exports.streamingProtocolToJSON = streamingProtocolToJSON;
39
+ exports.recordingCodecFromJSON = recordingCodecFromJSON;
40
+ exports.recordingCodecToJSON = recordingCodecToJSON;
37
41
  exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
38
42
  exports.temperatureUnitToJSON = temperatureUnitToJSON;
39
43
  exports.logoTypeFromJSON = logoTypeFromJSON;
@@ -56,8 +60,12 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
56
60
  exports.guestPortErrorToJSON = guestPortErrorToJSON;
57
61
  exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
58
62
  exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
63
+ exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
64
+ exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
59
65
  exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
60
66
  exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
67
+ exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
68
+ exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
61
69
  exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
62
70
  exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
63
71
  exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
@@ -593,6 +601,51 @@ function notificationLevelToJSON(object) {
593
601
  return "UNRECOGNIZED";
594
602
  }
595
603
  }
604
+ /**
605
+ * Storage location.
606
+ *
607
+ * Used to specify which storage location to use for recording photos and videos.
608
+ */
609
+ var StorageLocation;
610
+ (function (StorageLocation) {
611
+ /** STORAGE_LOCATION_UNSPECIFIED - Unspecified. */
612
+ StorageLocation[StorageLocation["STORAGE_LOCATION_UNSPECIFIED"] = 0] = "STORAGE_LOCATION_UNSPECIFIED";
613
+ /** STORAGE_LOCATION_INTERNAL - Internal storage of the drone. */
614
+ StorageLocation[StorageLocation["STORAGE_LOCATION_INTERNAL"] = 1] = "STORAGE_LOCATION_INTERNAL";
615
+ /** STORAGE_LOCATION_REMOVABLE - Removable storage device. */
616
+ StorageLocation[StorageLocation["STORAGE_LOCATION_REMOVABLE"] = 2] = "STORAGE_LOCATION_REMOVABLE";
617
+ StorageLocation[StorageLocation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
618
+ })(StorageLocation || (exports.StorageLocation = StorageLocation = {}));
619
+ function storageLocationFromJSON(object) {
620
+ switch (object) {
621
+ case 0:
622
+ case "STORAGE_LOCATION_UNSPECIFIED":
623
+ return StorageLocation.STORAGE_LOCATION_UNSPECIFIED;
624
+ case 1:
625
+ case "STORAGE_LOCATION_INTERNAL":
626
+ return StorageLocation.STORAGE_LOCATION_INTERNAL;
627
+ case 2:
628
+ case "STORAGE_LOCATION_REMOVABLE":
629
+ return StorageLocation.STORAGE_LOCATION_REMOVABLE;
630
+ case -1:
631
+ case "UNRECOGNIZED":
632
+ default:
633
+ return StorageLocation.UNRECOGNIZED;
634
+ }
635
+ }
636
+ function storageLocationToJSON(object) {
637
+ switch (object) {
638
+ case StorageLocation.STORAGE_LOCATION_UNSPECIFIED:
639
+ return "STORAGE_LOCATION_UNSPECIFIED";
640
+ case StorageLocation.STORAGE_LOCATION_INTERNAL:
641
+ return "STORAGE_LOCATION_INTERNAL";
642
+ case StorageLocation.STORAGE_LOCATION_REMOVABLE:
643
+ return "STORAGE_LOCATION_REMOVABLE";
644
+ case StorageLocation.UNRECOGNIZED:
645
+ default:
646
+ return "UNRECOGNIZED";
647
+ }
648
+ }
596
649
  /** Drone models produced by Blueye. */
597
650
  var Model;
598
651
  (function (Model) {
@@ -608,6 +661,8 @@ var Model;
608
661
  Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
609
662
  /** MODEL_X3_ULTRA - Blueye X3 Ultra. */
610
663
  Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
664
+ /** MODEL_X7 - Blueye X7. */
665
+ Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
611
666
  /** MODEL_NEXT - Blueye ? */
612
667
  Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
613
668
  Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -632,6 +687,9 @@ function modelFromJSON(object) {
632
687
  case 6:
633
688
  case "MODEL_X3_ULTRA":
634
689
  return Model.MODEL_X3_ULTRA;
690
+ case 7:
691
+ case "MODEL_X7":
692
+ return Model.MODEL_X7;
635
693
  case 5:
636
694
  case "MODEL_NEXT":
637
695
  return Model.MODEL_NEXT;
@@ -655,6 +713,8 @@ function modelToJSON(object) {
655
713
  return "MODEL_X3";
656
714
  case Model.MODEL_X3_ULTRA:
657
715
  return "MODEL_X3_ULTRA";
716
+ case Model.MODEL_X7:
717
+ return "MODEL_X7";
658
718
  case Model.MODEL_NEXT:
659
719
  return "MODEL_NEXT";
660
720
  case Model.UNRECOGNIZED:
@@ -722,16 +782,16 @@ var Resolution;
722
782
  (function (Resolution) {
723
783
  /** RESOLUTION_UNSPECIFIED - Resolution not specified. */
724
784
  Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
725
- /** RESOLUTION_VGA - VGA (640x480). */
726
- Resolution[Resolution["RESOLUTION_VGA"] = 4] = "RESOLUTION_VGA";
727
- /** RESOLUTION_SVGA - SVGA (800x600). */
728
- Resolution[Resolution["RESOLUTION_SVGA"] = 5] = "RESOLUTION_SVGA";
785
+ /** RESOLUTION_VGA_480P - VGA (640x480). */
786
+ Resolution[Resolution["RESOLUTION_VGA_480P"] = 4] = "RESOLUTION_VGA_480P";
729
787
  /** RESOLUTION_HD_720P - 720p HD (1280x720). */
730
788
  Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
731
789
  /** RESOLUTION_FULLHD_1080P - 1080p Full HD (1920x1080). */
732
790
  Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
733
- /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160). */
791
+ /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
734
792
  Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
793
+ /** RESOLUTION_QHD_2K - 2K QHD (2560x1440, Only supported on X3 Ultra). */
794
+ Resolution[Resolution["RESOLUTION_QHD_2K"] = 5] = "RESOLUTION_QHD_2K";
735
795
  Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
736
796
  })(Resolution || (exports.Resolution = Resolution = {}));
737
797
  function resolutionFromJSON(object) {
@@ -740,11 +800,8 @@ function resolutionFromJSON(object) {
740
800
  case "RESOLUTION_UNSPECIFIED":
741
801
  return Resolution.RESOLUTION_UNSPECIFIED;
742
802
  case 4:
743
- case "RESOLUTION_VGA":
744
- return Resolution.RESOLUTION_VGA;
745
- case 5:
746
- case "RESOLUTION_SVGA":
747
- return Resolution.RESOLUTION_SVGA;
803
+ case "RESOLUTION_VGA_480P":
804
+ return Resolution.RESOLUTION_VGA_480P;
748
805
  case 2:
749
806
  case "RESOLUTION_HD_720P":
750
807
  return Resolution.RESOLUTION_HD_720P;
@@ -754,6 +811,9 @@ function resolutionFromJSON(object) {
754
811
  case 3:
755
812
  case "RESOLUTION_UHD_4K":
756
813
  return Resolution.RESOLUTION_UHD_4K;
814
+ case 5:
815
+ case "RESOLUTION_QHD_2K":
816
+ return Resolution.RESOLUTION_QHD_2K;
757
817
  case -1:
758
818
  case "UNRECOGNIZED":
759
819
  default:
@@ -764,30 +824,37 @@ function resolutionToJSON(object) {
764
824
  switch (object) {
765
825
  case Resolution.RESOLUTION_UNSPECIFIED:
766
826
  return "RESOLUTION_UNSPECIFIED";
767
- case Resolution.RESOLUTION_VGA:
768
- return "RESOLUTION_VGA";
769
- case Resolution.RESOLUTION_SVGA:
770
- return "RESOLUTION_SVGA";
827
+ case Resolution.RESOLUTION_VGA_480P:
828
+ return "RESOLUTION_VGA_480P";
771
829
  case Resolution.RESOLUTION_HD_720P:
772
830
  return "RESOLUTION_HD_720P";
773
831
  case Resolution.RESOLUTION_FULLHD_1080P:
774
832
  return "RESOLUTION_FULLHD_1080P";
775
833
  case Resolution.RESOLUTION_UHD_4K:
776
834
  return "RESOLUTION_UHD_4K";
835
+ case Resolution.RESOLUTION_QHD_2K:
836
+ return "RESOLUTION_QHD_2K";
777
837
  case Resolution.UNRECOGNIZED:
778
838
  default:
779
839
  return "UNRECOGNIZED";
780
840
  }
781
841
  }
782
- /** Available camera frame rates. */
842
+ /**
843
+ * Available camera frame rates.
844
+ *
845
+ * If the requested frame rate is higher than what is supported at the current resolution,
846
+ * the frame rate will be reduced while the resolution is respected.
847
+ */
783
848
  var Framerate;
784
849
  (function (Framerate) {
785
850
  /** FRAMERATE_UNSPECIFIED - Framerate not specified. */
786
851
  Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
787
852
  /** FRAMERATE_FPS_30 - 30 frames per second. */
788
853
  Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
789
- /** FRAMERATE_FPS_25 - 25 frames per second. */
854
+ /** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
790
855
  Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
856
+ /** FRAMERATE_FPS_60 - 60 frames per second. (Only supported on X3 Ultra at QHD, 1080p and 720p) */
857
+ Framerate[Framerate["FRAMERATE_FPS_60"] = 3] = "FRAMERATE_FPS_60";
791
858
  Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
792
859
  })(Framerate || (exports.Framerate = Framerate = {}));
793
860
  function framerateFromJSON(object) {
@@ -801,6 +868,9 @@ function framerateFromJSON(object) {
801
868
  case 2:
802
869
  case "FRAMERATE_FPS_25":
803
870
  return Framerate.FRAMERATE_FPS_25;
871
+ case 3:
872
+ case "FRAMERATE_FPS_60":
873
+ return Framerate.FRAMERATE_FPS_60;
804
874
  case -1:
805
875
  case "UNRECOGNIZED":
806
876
  default:
@@ -815,6 +885,8 @@ function framerateToJSON(object) {
815
885
  return "FRAMERATE_FPS_30";
816
886
  case Framerate.FRAMERATE_FPS_25:
817
887
  return "FRAMERATE_FPS_25";
888
+ case Framerate.FRAMERATE_FPS_60:
889
+ return "FRAMERATE_FPS_60";
818
890
  case Framerate.UNRECOGNIZED:
819
891
  default:
820
892
  return "UNRECOGNIZED";
@@ -867,7 +939,7 @@ var StreamingProtocol;
867
939
  StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_UNSPECIFIED"] = 0] = "STREAMING_PROTOCOL_UNSPECIFIED";
868
940
  /** STREAMING_PROTOCOL_RTSP_H264 - RTSP streaming protocol using H264 codec. */
869
941
  StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_H264"] = 1] = "STREAMING_PROTOCOL_RTSP_H264";
870
- /** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. */
942
+ /** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. No recording when activated. */
871
943
  StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_MJPEG"] = 2] = "STREAMING_PROTOCOL_RTSP_MJPEG";
872
944
  StreamingProtocol[StreamingProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
873
945
  })(StreamingProtocol || (exports.StreamingProtocol = StreamingProtocol = {}));
@@ -901,6 +973,47 @@ function streamingProtocolToJSON(object) {
901
973
  return "UNRECOGNIZED";
902
974
  }
903
975
  }
976
+ /** Recording video codec. */
977
+ var RecordingCodec;
978
+ (function (RecordingCodec) {
979
+ /** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
980
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_UNSPECIFIED"] = 0] = "RECORDING_CODEC_UNSPECIFIED";
981
+ /** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
982
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_H264"] = 1] = "RECORDING_CODEC_H264";
983
+ /** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
984
+ RecordingCodec[RecordingCodec["RECORDING_CODEC_H265"] = 2] = "RECORDING_CODEC_H265";
985
+ RecordingCodec[RecordingCodec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
986
+ })(RecordingCodec || (exports.RecordingCodec = RecordingCodec = {}));
987
+ function recordingCodecFromJSON(object) {
988
+ switch (object) {
989
+ case 0:
990
+ case "RECORDING_CODEC_UNSPECIFIED":
991
+ return RecordingCodec.RECORDING_CODEC_UNSPECIFIED;
992
+ case 1:
993
+ case "RECORDING_CODEC_H264":
994
+ return RecordingCodec.RECORDING_CODEC_H264;
995
+ case 2:
996
+ case "RECORDING_CODEC_H265":
997
+ return RecordingCodec.RECORDING_CODEC_H265;
998
+ case -1:
999
+ case "UNRECOGNIZED":
1000
+ default:
1001
+ return RecordingCodec.UNRECOGNIZED;
1002
+ }
1003
+ }
1004
+ function recordingCodecToJSON(object) {
1005
+ switch (object) {
1006
+ case RecordingCodec.RECORDING_CODEC_UNSPECIFIED:
1007
+ return "RECORDING_CODEC_UNSPECIFIED";
1008
+ case RecordingCodec.RECORDING_CODEC_H264:
1009
+ return "RECORDING_CODEC_H264";
1010
+ case RecordingCodec.RECORDING_CODEC_H265:
1011
+ return "RECORDING_CODEC_H265";
1012
+ case RecordingCodec.UNRECOGNIZED:
1013
+ default:
1014
+ return "UNRECOGNIZED";
1015
+ }
1016
+ }
904
1017
  /** Available temperature units. */
905
1018
  var TemperatureUnit;
906
1019
  (function (TemperatureUnit) {
@@ -1234,8 +1347,14 @@ var GuestPortDeviceID;
1234
1347
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
1235
1348
  /** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
1236
1349
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1237
- /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
1350
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage. */
1238
1351
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1352
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
1353
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1354
+ /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
1355
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1356
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
1357
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER"] = 48] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
1239
1358
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1240
1359
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1241
1360
  function guestPortDeviceIDFromJSON(object) {
@@ -1378,6 +1497,15 @@ function guestPortDeviceIDFromJSON(object) {
1378
1497
  case 45:
1379
1498
  case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
1380
1499
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
1500
+ case 46:
1501
+ case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
1502
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
1503
+ case 47:
1504
+ case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
1505
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
1506
+ case 48:
1507
+ case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER":
1508
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER;
1381
1509
  case -1:
1382
1510
  case "UNRECOGNIZED":
1383
1511
  default:
@@ -1478,6 +1606,12 @@ function guestPortDeviceIDToJSON(object) {
1478
1606
  return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
1479
1607
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
1480
1608
  return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1609
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
1610
+ return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1611
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
1612
+ return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1613
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER:
1614
+ return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
1481
1615
  case GuestPortDeviceID.UNRECOGNIZED:
1482
1616
  default:
1483
1617
  return "UNRECOGNIZED";
@@ -1754,6 +1888,47 @@ function multibeamFrequencyModeToJSON(object) {
1754
1888
  return "UNRECOGNIZED";
1755
1889
  }
1756
1890
  }
1891
+ /** Thermal zone identifiers. */
1892
+ var ThermalZoneId;
1893
+ (function (ThermalZoneId) {
1894
+ /** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
1895
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_UNSPECIFIED"] = 0] = "THERMAL_ZONE_ID_UNSPECIFIED";
1896
+ /** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
1897
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_TJ"] = 1] = "THERMAL_ZONE_ID_TJ";
1898
+ /** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
1899
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_CANISTER"] = 2] = "THERMAL_ZONE_ID_CANISTER";
1900
+ ThermalZoneId[ThermalZoneId["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1901
+ })(ThermalZoneId || (exports.ThermalZoneId = ThermalZoneId = {}));
1902
+ function thermalZoneIdFromJSON(object) {
1903
+ switch (object) {
1904
+ case 0:
1905
+ case "THERMAL_ZONE_ID_UNSPECIFIED":
1906
+ return ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED;
1907
+ case 1:
1908
+ case "THERMAL_ZONE_ID_TJ":
1909
+ return ThermalZoneId.THERMAL_ZONE_ID_TJ;
1910
+ case 2:
1911
+ case "THERMAL_ZONE_ID_CANISTER":
1912
+ return ThermalZoneId.THERMAL_ZONE_ID_CANISTER;
1913
+ case -1:
1914
+ case "UNRECOGNIZED":
1915
+ default:
1916
+ return ThermalZoneId.UNRECOGNIZED;
1917
+ }
1918
+ }
1919
+ function thermalZoneIdToJSON(object) {
1920
+ switch (object) {
1921
+ case ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED:
1922
+ return "THERMAL_ZONE_ID_UNSPECIFIED";
1923
+ case ThermalZoneId.THERMAL_ZONE_ID_TJ:
1924
+ return "THERMAL_ZONE_ID_TJ";
1925
+ case ThermalZoneId.THERMAL_ZONE_ID_CANISTER:
1926
+ return "THERMAL_ZONE_ID_CANISTER";
1927
+ case ThermalZoneId.UNRECOGNIZED:
1928
+ default:
1929
+ return "UNRECOGNIZED";
1930
+ }
1931
+ }
1757
1932
  var LogEntry_LogLevel;
1758
1933
  (function (LogEntry_LogLevel) {
1759
1934
  /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
@@ -1822,6 +1997,89 @@ function logEntry_LogLevelToJSON(object) {
1822
1997
  return "UNRECOGNIZED";
1823
1998
  }
1824
1999
  }
2000
+ /** Kernel log level. */
2001
+ var KernelLogEntry_KernelLogLevel;
2002
+ (function (KernelLogEntry_KernelLogLevel) {
2003
+ /** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
2004
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
2005
+ /** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
2006
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
2007
+ /** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
2008
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
2009
+ /** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
2010
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
2011
+ /** KERNEL_LOG_LEVEL_ERR - Error log level. */
2012
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
2013
+ /** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
2014
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
2015
+ /** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
2016
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
2017
+ /** KERNEL_LOG_LEVEL_INFO - Informational log level. */
2018
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
2019
+ /** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
2020
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
2021
+ KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2022
+ })(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
2023
+ function kernelLogEntry_KernelLogLevelFromJSON(object) {
2024
+ switch (object) {
2025
+ case 0:
2026
+ case "KERNEL_LOG_LEVEL_UNSPECIFIED":
2027
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
2028
+ case 1:
2029
+ case "KERNEL_LOG_LEVEL_EMERG":
2030
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
2031
+ case 2:
2032
+ case "KERNEL_LOG_LEVEL_ALERT":
2033
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
2034
+ case 3:
2035
+ case "KERNEL_LOG_LEVEL_CRIT":
2036
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
2037
+ case 4:
2038
+ case "KERNEL_LOG_LEVEL_ERR":
2039
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
2040
+ case 5:
2041
+ case "KERNEL_LOG_LEVEL_WARNING":
2042
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
2043
+ case 6:
2044
+ case "KERNEL_LOG_LEVEL_NOTICE":
2045
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
2046
+ case 7:
2047
+ case "KERNEL_LOG_LEVEL_INFO":
2048
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
2049
+ case 8:
2050
+ case "KERNEL_LOG_LEVEL_DEBUG":
2051
+ return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
2052
+ case -1:
2053
+ case "UNRECOGNIZED":
2054
+ default:
2055
+ return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
2056
+ }
2057
+ }
2058
+ function kernelLogEntry_KernelLogLevelToJSON(object) {
2059
+ switch (object) {
2060
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
2061
+ return "KERNEL_LOG_LEVEL_UNSPECIFIED";
2062
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
2063
+ return "KERNEL_LOG_LEVEL_EMERG";
2064
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
2065
+ return "KERNEL_LOG_LEVEL_ALERT";
2066
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
2067
+ return "KERNEL_LOG_LEVEL_CRIT";
2068
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
2069
+ return "KERNEL_LOG_LEVEL_ERR";
2070
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
2071
+ return "KERNEL_LOG_LEVEL_WARNING";
2072
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
2073
+ return "KERNEL_LOG_LEVEL_NOTICE";
2074
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
2075
+ return "KERNEL_LOG_LEVEL_INFO";
2076
+ case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
2077
+ return "KERNEL_LOG_LEVEL_DEBUG";
2078
+ case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
2079
+ default:
2080
+ return "UNRECOGNIZED";
2081
+ }
2082
+ }
1825
2083
  var PingerConfiguration_MountingDirection;
1826
2084
  (function (PingerConfiguration_MountingDirection) {
1827
2085
  /** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
@@ -1943,10 +2201,12 @@ var RemovableStorageDevice_Status;
1943
2201
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
1944
2202
  /** STATUS_READY - The storage device is valid and ready for use. */
1945
2203
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
1946
- /** STATUS_FORMATTING - The storage device is being formatted */
2204
+ /** STATUS_FORMATTING - The storage device is being formatted. */
1947
2205
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
1948
2206
  /** STATUS_ERROR - The storage device is in an error state. */
1949
2207
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
2208
+ /** STATUS_UNPLUGGED - The storage device is not present. */
2209
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNPLUGGED"] = 4] = "STATUS_UNPLUGGED";
1950
2210
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1951
2211
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
1952
2212
  function removableStorageDevice_StatusFromJSON(object) {
@@ -1963,6 +2223,9 @@ function removableStorageDevice_StatusFromJSON(object) {
1963
2223
  case 3:
1964
2224
  case "STATUS_ERROR":
1965
2225
  return RemovableStorageDevice_Status.STATUS_ERROR;
2226
+ case 4:
2227
+ case "STATUS_UNPLUGGED":
2228
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
1966
2229
  case -1:
1967
2230
  case "UNRECOGNIZED":
1968
2231
  default:
@@ -1979,6 +2242,8 @@ function removableStorageDevice_StatusToJSON(object) {
1979
2242
  return "STATUS_FORMATTING";
1980
2243
  case RemovableStorageDevice_Status.STATUS_ERROR:
1981
2244
  return "STATUS_ERROR";
2245
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2246
+ return "STATUS_UNPLUGGED";
1982
2247
  case RemovableStorageDevice_Status.UNRECOGNIZED:
1983
2248
  default:
1984
2249
  return "UNRECOGNIZED";
@@ -2471,6 +2736,189 @@ exports.LogEntry = {
2471
2736
  return message;
2472
2737
  },
2473
2738
  };
2739
+ function createBaseKernelLogEntry() {
2740
+ return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
2741
+ }
2742
+ exports.KernelLogEntry = {
2743
+ encode(message, writer = new wire_1.BinaryWriter()) {
2744
+ if (message.level !== 0) {
2745
+ writer.uint32(8).int32(message.level);
2746
+ }
2747
+ if (message.seqnum !== 0) {
2748
+ writer.uint32(16).uint32(message.seqnum);
2749
+ }
2750
+ if (message.timestamp !== undefined) {
2751
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
2752
+ }
2753
+ for (const v of message.messages) {
2754
+ writer.uint32(34).string(v);
2755
+ }
2756
+ for (const v of message.fields) {
2757
+ exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
2758
+ }
2759
+ return writer;
2760
+ },
2761
+ decode(input, length) {
2762
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2763
+ const end = length === undefined ? reader.len : reader.pos + length;
2764
+ const message = createBaseKernelLogEntry();
2765
+ while (reader.pos < end) {
2766
+ const tag = reader.uint32();
2767
+ switch (tag >>> 3) {
2768
+ case 1: {
2769
+ if (tag !== 8) {
2770
+ break;
2771
+ }
2772
+ message.level = reader.int32();
2773
+ continue;
2774
+ }
2775
+ case 2: {
2776
+ if (tag !== 16) {
2777
+ break;
2778
+ }
2779
+ message.seqnum = reader.uint32();
2780
+ continue;
2781
+ }
2782
+ case 3: {
2783
+ if (tag !== 26) {
2784
+ break;
2785
+ }
2786
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2787
+ continue;
2788
+ }
2789
+ case 4: {
2790
+ if (tag !== 34) {
2791
+ break;
2792
+ }
2793
+ message.messages.push(reader.string());
2794
+ continue;
2795
+ }
2796
+ case 5: {
2797
+ if (tag !== 42) {
2798
+ break;
2799
+ }
2800
+ message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
2801
+ continue;
2802
+ }
2803
+ }
2804
+ if ((tag & 7) === 4 || tag === 0) {
2805
+ break;
2806
+ }
2807
+ reader.skip(tag & 7);
2808
+ }
2809
+ return message;
2810
+ },
2811
+ fromJSON(object) {
2812
+ return {
2813
+ level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
2814
+ seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
2815
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2816
+ messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
2817
+ fields: gt.Array.isArray(object?.fields)
2818
+ ? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
2819
+ : [],
2820
+ };
2821
+ },
2822
+ toJSON(message) {
2823
+ const obj = {};
2824
+ if (message.level !== 0) {
2825
+ obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
2826
+ }
2827
+ if (message.seqnum !== 0) {
2828
+ obj.seqnum = Math.round(message.seqnum);
2829
+ }
2830
+ if (message.timestamp !== undefined) {
2831
+ obj.timestamp = message.timestamp.toISOString();
2832
+ }
2833
+ if (message.messages?.length) {
2834
+ obj.messages = message.messages;
2835
+ }
2836
+ if (message.fields?.length) {
2837
+ obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
2838
+ }
2839
+ return obj;
2840
+ },
2841
+ create(base) {
2842
+ return exports.KernelLogEntry.fromPartial(base ?? {});
2843
+ },
2844
+ fromPartial(object) {
2845
+ const message = createBaseKernelLogEntry();
2846
+ message.level = object.level ?? 0;
2847
+ message.seqnum = object.seqnum ?? 0;
2848
+ message.timestamp = object.timestamp ?? undefined;
2849
+ message.messages = object.messages?.map((e) => e) || [];
2850
+ message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
2851
+ return message;
2852
+ },
2853
+ };
2854
+ function createBaseKernelLogEntry_KeyValuePair() {
2855
+ return { key: "", value: "" };
2856
+ }
2857
+ exports.KernelLogEntry_KeyValuePair = {
2858
+ encode(message, writer = new wire_1.BinaryWriter()) {
2859
+ if (message.key !== "") {
2860
+ writer.uint32(10).string(message.key);
2861
+ }
2862
+ if (message.value !== "") {
2863
+ writer.uint32(18).string(message.value);
2864
+ }
2865
+ return writer;
2866
+ },
2867
+ decode(input, length) {
2868
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2869
+ const end = length === undefined ? reader.len : reader.pos + length;
2870
+ const message = createBaseKernelLogEntry_KeyValuePair();
2871
+ while (reader.pos < end) {
2872
+ const tag = reader.uint32();
2873
+ switch (tag >>> 3) {
2874
+ case 1: {
2875
+ if (tag !== 10) {
2876
+ break;
2877
+ }
2878
+ message.key = reader.string();
2879
+ continue;
2880
+ }
2881
+ case 2: {
2882
+ if (tag !== 18) {
2883
+ break;
2884
+ }
2885
+ message.value = reader.string();
2886
+ continue;
2887
+ }
2888
+ }
2889
+ if ((tag & 7) === 4 || tag === 0) {
2890
+ break;
2891
+ }
2892
+ reader.skip(tag & 7);
2893
+ }
2894
+ return message;
2895
+ },
2896
+ fromJSON(object) {
2897
+ return {
2898
+ key: isSet(object.key) ? gt.String(object.key) : "",
2899
+ value: isSet(object.value) ? gt.String(object.value) : "",
2900
+ };
2901
+ },
2902
+ toJSON(message) {
2903
+ const obj = {};
2904
+ if (message.key !== "") {
2905
+ obj.key = message.key;
2906
+ }
2907
+ if (message.value !== "") {
2908
+ obj.value = message.value;
2909
+ }
2910
+ return obj;
2911
+ },
2912
+ create(base) {
2913
+ return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
2914
+ },
2915
+ fromPartial(object) {
2916
+ const message = createBaseKernelLogEntry_KeyValuePair();
2917
+ message.key = object.key ?? "";
2918
+ message.value = object.value ?? "";
2919
+ return message;
2920
+ },
2921
+ };
2474
2922
  function createBaseMotionInput() {
2475
2923
  return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
2476
2924
  }
@@ -3752,6 +4200,9 @@ function createBaseRecordState() {
3752
4200
  multibeamIsRecording: false,
3753
4201
  multibeamSeconds: 0,
3754
4202
  multibeamFps: 0,
4203
+ mainStorageLocation: 0,
4204
+ guestportStorageLocation: 0,
4205
+ multibeamStorageLocation: 0,
3755
4206
  };
3756
4207
  }
3757
4208
  exports.RecordState = {
@@ -3783,6 +4234,15 @@ exports.RecordState = {
3783
4234
  if (message.multibeamFps !== 0) {
3784
4235
  writer.uint32(77).float(message.multibeamFps);
3785
4236
  }
4237
+ if (message.mainStorageLocation !== 0) {
4238
+ writer.uint32(80).int32(message.mainStorageLocation);
4239
+ }
4240
+ if (message.guestportStorageLocation !== 0) {
4241
+ writer.uint32(88).int32(message.guestportStorageLocation);
4242
+ }
4243
+ if (message.multibeamStorageLocation !== 0) {
4244
+ writer.uint32(96).int32(message.multibeamStorageLocation);
4245
+ }
3786
4246
  return writer;
3787
4247
  },
3788
4248
  decode(input, length) {
@@ -3855,6 +4315,27 @@ exports.RecordState = {
3855
4315
  message.multibeamFps = reader.float();
3856
4316
  continue;
3857
4317
  }
4318
+ case 10: {
4319
+ if (tag !== 80) {
4320
+ break;
4321
+ }
4322
+ message.mainStorageLocation = reader.int32();
4323
+ continue;
4324
+ }
4325
+ case 11: {
4326
+ if (tag !== 88) {
4327
+ break;
4328
+ }
4329
+ message.guestportStorageLocation = reader.int32();
4330
+ continue;
4331
+ }
4332
+ case 12: {
4333
+ if (tag !== 96) {
4334
+ break;
4335
+ }
4336
+ message.multibeamStorageLocation = reader.int32();
4337
+ continue;
4338
+ }
3858
4339
  }
3859
4340
  if ((tag & 7) === 4 || tag === 0) {
3860
4341
  break;
@@ -3874,6 +4355,13 @@ exports.RecordState = {
3874
4355
  multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
3875
4356
  multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
3876
4357
  multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
4358
+ mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
4359
+ guestportStorageLocation: isSet(object.guestportStorageLocation)
4360
+ ? storageLocationFromJSON(object.guestportStorageLocation)
4361
+ : 0,
4362
+ multibeamStorageLocation: isSet(object.multibeamStorageLocation)
4363
+ ? storageLocationFromJSON(object.multibeamStorageLocation)
4364
+ : 0,
3877
4365
  };
3878
4366
  },
3879
4367
  toJSON(message) {
@@ -3905,6 +4393,15 @@ exports.RecordState = {
3905
4393
  if (message.multibeamFps !== 0) {
3906
4394
  obj.multibeamFps = message.multibeamFps;
3907
4395
  }
4396
+ if (message.mainStorageLocation !== 0) {
4397
+ obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
4398
+ }
4399
+ if (message.guestportStorageLocation !== 0) {
4400
+ obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
4401
+ }
4402
+ if (message.multibeamStorageLocation !== 0) {
4403
+ obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
4404
+ }
3908
4405
  return obj;
3909
4406
  },
3910
4407
  create(base) {
@@ -3921,6 +4418,9 @@ exports.RecordState = {
3921
4418
  message.multibeamIsRecording = object.multibeamIsRecording ?? false;
3922
4419
  message.multibeamSeconds = object.multibeamSeconds ?? 0;
3923
4420
  message.multibeamFps = object.multibeamFps ?? 0;
4421
+ message.mainStorageLocation = object.mainStorageLocation ?? 0;
4422
+ message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
4423
+ message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
3924
4424
  return message;
3925
4425
  },
3926
4426
  };
@@ -7828,7 +8328,7 @@ exports.StorageSpace = {
7828
8328
  },
7829
8329
  };
7830
8330
  function createBaseStoragePartition() {
7831
- return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
8331
+ return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
7832
8332
  }
7833
8333
  exports.StoragePartition = {
7834
8334
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -7844,6 +8344,9 @@ exports.StoragePartition = {
7844
8344
  if (message.mountPath !== "") {
7845
8345
  writer.uint32(34).string(message.mountPath);
7846
8346
  }
8347
+ if (message.label !== "") {
8348
+ writer.uint32(42).string(message.label);
8349
+ }
7847
8350
  return writer;
7848
8351
  },
7849
8352
  decode(input, length) {
@@ -7881,6 +8384,13 @@ exports.StoragePartition = {
7881
8384
  message.mountPath = reader.string();
7882
8385
  continue;
7883
8386
  }
8387
+ case 5: {
8388
+ if (tag !== 42) {
8389
+ break;
8390
+ }
8391
+ message.label = reader.string();
8392
+ continue;
8393
+ }
7884
8394
  }
7885
8395
  if ((tag & 7) === 4 || tag === 0) {
7886
8396
  break;
@@ -7895,6 +8405,7 @@ exports.StoragePartition = {
7895
8405
  fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
7896
8406
  devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
7897
8407
  mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
8408
+ label: isSet(object.label) ? gt.String(object.label) : "",
7898
8409
  };
7899
8410
  },
7900
8411
  toJSON(message) {
@@ -7911,6 +8422,9 @@ exports.StoragePartition = {
7911
8422
  if (message.mountPath !== "") {
7912
8423
  obj.mountPath = message.mountPath;
7913
8424
  }
8425
+ if (message.label !== "") {
8426
+ obj.label = message.label;
8427
+ }
7914
8428
  return obj;
7915
8429
  },
7916
8430
  create(base) {
@@ -7924,6 +8438,7 @@ exports.StoragePartition = {
7924
8438
  message.fileSystemType = object.fileSystemType ?? "";
7925
8439
  message.devicePath = object.devicePath ?? "";
7926
8440
  message.mountPath = object.mountPath ?? "";
8441
+ message.label = object.label ?? "";
7927
8442
  return message;
7928
8443
  },
7929
8444
  };
@@ -9628,13 +10143,18 @@ function createBaseCameraParameters() {
9628
10143
  sharpness: 0,
9629
10144
  backlightCompensation: 0,
9630
10145
  denoise: 0,
10146
+ ehdrEnabled: false,
10147
+ ehdrExposureMinNumber: 0,
10148
+ ehdrExposureMaxNumber: 0,
9631
10149
  resolution: 0,
9632
10150
  streamResolution: 0,
9633
10151
  recordingResolution: 0,
9634
10152
  streamingProtocol: 0,
9635
10153
  framerate: 0,
9636
10154
  camera: 0,
9637
- fixedFramerate: false,
10155
+ mtuSize: 0,
10156
+ recordingCodec: 0,
10157
+ recordingBitrate: 0,
9638
10158
  };
9639
10159
  }
9640
10160
  exports.CameraParameters = {
@@ -9678,6 +10198,15 @@ exports.CameraParameters = {
9678
10198
  if (message.denoise !== 0) {
9679
10199
  writer.uint32(144).int32(message.denoise);
9680
10200
  }
10201
+ if (message.ehdrEnabled !== false) {
10202
+ writer.uint32(168).bool(message.ehdrEnabled);
10203
+ }
10204
+ if (message.ehdrExposureMinNumber !== 0) {
10205
+ writer.uint32(176).int32(message.ehdrExposureMinNumber);
10206
+ }
10207
+ if (message.ehdrExposureMaxNumber !== 0) {
10208
+ writer.uint32(184).int32(message.ehdrExposureMaxNumber);
10209
+ }
9681
10210
  if (message.resolution !== 0) {
9682
10211
  writer.uint32(48).int32(message.resolution);
9683
10212
  }
@@ -9696,8 +10225,14 @@ exports.CameraParameters = {
9696
10225
  if (message.camera !== 0) {
9697
10226
  writer.uint32(64).int32(message.camera);
9698
10227
  }
9699
- if (message.fixedFramerate !== false) {
9700
- writer.uint32(152).bool(message.fixedFramerate);
10228
+ if (message.mtuSize !== 0) {
10229
+ writer.uint32(192).uint32(message.mtuSize);
10230
+ }
10231
+ if (message.recordingCodec !== 0) {
10232
+ writer.uint32(200).int32(message.recordingCodec);
10233
+ }
10234
+ if (message.recordingBitrate !== 0) {
10235
+ writer.uint32(208).int32(message.recordingBitrate);
9701
10236
  }
9702
10237
  return writer;
9703
10238
  },
@@ -9799,22 +10334,43 @@ exports.CameraParameters = {
9799
10334
  message.denoise = reader.int32();
9800
10335
  continue;
9801
10336
  }
9802
- case 6: {
9803
- if (tag !== 48) {
10337
+ case 21: {
10338
+ if (tag !== 168) {
9804
10339
  break;
9805
10340
  }
9806
- message.resolution = reader.int32();
10341
+ message.ehdrEnabled = reader.bool();
9807
10342
  continue;
9808
10343
  }
9809
- case 10: {
9810
- if (tag !== 80) {
10344
+ case 22: {
10345
+ if (tag !== 176) {
9811
10346
  break;
9812
10347
  }
9813
- message.streamResolution = reader.int32();
10348
+ message.ehdrExposureMinNumber = reader.int32();
9814
10349
  continue;
9815
10350
  }
9816
- case 11: {
9817
- if (tag !== 88) {
10351
+ case 23: {
10352
+ if (tag !== 184) {
10353
+ break;
10354
+ }
10355
+ message.ehdrExposureMaxNumber = reader.int32();
10356
+ continue;
10357
+ }
10358
+ case 6: {
10359
+ if (tag !== 48) {
10360
+ break;
10361
+ }
10362
+ message.resolution = reader.int32();
10363
+ continue;
10364
+ }
10365
+ case 10: {
10366
+ if (tag !== 80) {
10367
+ break;
10368
+ }
10369
+ message.streamResolution = reader.int32();
10370
+ continue;
10371
+ }
10372
+ case 11: {
10373
+ if (tag !== 88) {
9818
10374
  break;
9819
10375
  }
9820
10376
  message.recordingResolution = reader.int32();
@@ -9841,11 +10397,25 @@ exports.CameraParameters = {
9841
10397
  message.camera = reader.int32();
9842
10398
  continue;
9843
10399
  }
9844
- case 19: {
9845
- if (tag !== 152) {
10400
+ case 24: {
10401
+ if (tag !== 192) {
10402
+ break;
10403
+ }
10404
+ message.mtuSize = reader.uint32();
10405
+ continue;
10406
+ }
10407
+ case 25: {
10408
+ if (tag !== 200) {
9846
10409
  break;
9847
10410
  }
9848
- message.fixedFramerate = reader.bool();
10411
+ message.recordingCodec = reader.int32();
10412
+ continue;
10413
+ }
10414
+ case 26: {
10415
+ if (tag !== 208) {
10416
+ break;
10417
+ }
10418
+ message.recordingBitrate = reader.int32();
9849
10419
  continue;
9850
10420
  }
9851
10421
  }
@@ -9871,13 +10441,18 @@ exports.CameraParameters = {
9871
10441
  sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
9872
10442
  backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
9873
10443
  denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
10444
+ ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
10445
+ ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
10446
+ ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
9874
10447
  resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
9875
10448
  streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
9876
10449
  recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
9877
10450
  streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
9878
10451
  framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
9879
10452
  camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
9880
- fixedFramerate: isSet(object.fixedFramerate) ? gt.Boolean(object.fixedFramerate) : false,
10453
+ mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
10454
+ recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
10455
+ recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
9881
10456
  };
9882
10457
  },
9883
10458
  toJSON(message) {
@@ -9921,6 +10496,15 @@ exports.CameraParameters = {
9921
10496
  if (message.denoise !== 0) {
9922
10497
  obj.denoise = Math.round(message.denoise);
9923
10498
  }
10499
+ if (message.ehdrEnabled !== false) {
10500
+ obj.ehdrEnabled = message.ehdrEnabled;
10501
+ }
10502
+ if (message.ehdrExposureMinNumber !== 0) {
10503
+ obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
10504
+ }
10505
+ if (message.ehdrExposureMaxNumber !== 0) {
10506
+ obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
10507
+ }
9924
10508
  if (message.resolution !== 0) {
9925
10509
  obj.resolution = resolutionToJSON(message.resolution);
9926
10510
  }
@@ -9939,8 +10523,14 @@ exports.CameraParameters = {
9939
10523
  if (message.camera !== 0) {
9940
10524
  obj.camera = cameraToJSON(message.camera);
9941
10525
  }
9942
- if (message.fixedFramerate !== false) {
9943
- obj.fixedFramerate = message.fixedFramerate;
10526
+ if (message.mtuSize !== 0) {
10527
+ obj.mtuSize = Math.round(message.mtuSize);
10528
+ }
10529
+ if (message.recordingCodec !== 0) {
10530
+ obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
10531
+ }
10532
+ if (message.recordingBitrate !== 0) {
10533
+ obj.recordingBitrate = Math.round(message.recordingBitrate);
9944
10534
  }
9945
10535
  return obj;
9946
10536
  },
@@ -9962,13 +10552,18 @@ exports.CameraParameters = {
9962
10552
  message.sharpness = object.sharpness ?? 0;
9963
10553
  message.backlightCompensation = object.backlightCompensation ?? 0;
9964
10554
  message.denoise = object.denoise ?? 0;
10555
+ message.ehdrEnabled = object.ehdrEnabled ?? false;
10556
+ message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
10557
+ message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
9965
10558
  message.resolution = object.resolution ?? 0;
9966
10559
  message.streamResolution = object.streamResolution ?? 0;
9967
10560
  message.recordingResolution = object.recordingResolution ?? 0;
9968
10561
  message.streamingProtocol = object.streamingProtocol ?? 0;
9969
10562
  message.framerate = object.framerate ?? 0;
9970
10563
  message.camera = object.camera ?? 0;
9971
- message.fixedFramerate = object.fixedFramerate ?? false;
10564
+ message.mtuSize = object.mtuSize ?? 0;
10565
+ message.recordingCodec = object.recordingCodec ?? 0;
10566
+ message.recordingBitrate = object.recordingBitrate ?? 0;
9972
10567
  return message;
9973
10568
  },
9974
10569
  };
@@ -12824,23 +13419,26 @@ exports.CPUInfo = {
12824
13419
  return message;
12825
13420
  },
12826
13421
  };
12827
- function createBaseSurfaceUnitBatteryInfo() {
12828
- return { status: 0, level: 0 };
13422
+ function createBaseCpuCoreLoad() {
13423
+ return { coreIndex: 0, load: 0, frequencyMhz: 0 };
12829
13424
  }
12830
- exports.SurfaceUnitBatteryInfo = {
13425
+ exports.CpuCoreLoad = {
12831
13426
  encode(message, writer = new wire_1.BinaryWriter()) {
12832
- if (message.status !== 0) {
12833
- writer.uint32(8).int32(message.status);
13427
+ if (message.coreIndex !== 0) {
13428
+ writer.uint32(8).uint32(message.coreIndex);
12834
13429
  }
12835
- if (message.level !== 0) {
12836
- writer.uint32(21).float(message.level);
13430
+ if (message.load !== 0) {
13431
+ writer.uint32(21).float(message.load);
13432
+ }
13433
+ if (message.frequencyMhz !== 0) {
13434
+ writer.uint32(29).float(message.frequencyMhz);
12837
13435
  }
12838
13436
  return writer;
12839
13437
  },
12840
13438
  decode(input, length) {
12841
13439
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12842
13440
  const end = length === undefined ? reader.len : reader.pos + length;
12843
- const message = createBaseSurfaceUnitBatteryInfo();
13441
+ const message = createBaseCpuCoreLoad();
12844
13442
  while (reader.pos < end) {
12845
13443
  const tag = reader.uint32();
12846
13444
  switch (tag >>> 3) {
@@ -12848,14 +13446,21 @@ exports.SurfaceUnitBatteryInfo = {
12848
13446
  if (tag !== 8) {
12849
13447
  break;
12850
13448
  }
12851
- message.status = reader.int32();
13449
+ message.coreIndex = reader.uint32();
12852
13450
  continue;
12853
13451
  }
12854
13452
  case 2: {
12855
13453
  if (tag !== 21) {
12856
13454
  break;
12857
13455
  }
12858
- message.level = reader.float();
13456
+ message.load = reader.float();
13457
+ continue;
13458
+ }
13459
+ case 3: {
13460
+ if (tag !== 29) {
13461
+ break;
13462
+ }
13463
+ message.frequencyMhz = reader.float();
12859
13464
  continue;
12860
13465
  }
12861
13466
  }
@@ -12868,52 +13473,67 @@ exports.SurfaceUnitBatteryInfo = {
12868
13473
  },
12869
13474
  fromJSON(object) {
12870
13475
  return {
12871
- status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
12872
- level: isSet(object.level) ? gt.Number(object.level) : 0,
13476
+ coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
13477
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13478
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
12873
13479
  };
12874
13480
  },
12875
13481
  toJSON(message) {
12876
13482
  const obj = {};
12877
- if (message.status !== 0) {
12878
- obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
13483
+ if (message.coreIndex !== 0) {
13484
+ obj.coreIndex = Math.round(message.coreIndex);
12879
13485
  }
12880
- if (message.level !== 0) {
12881
- obj.level = message.level;
13486
+ if (message.load !== 0) {
13487
+ obj.load = message.load;
13488
+ }
13489
+ if (message.frequencyMhz !== 0) {
13490
+ obj.frequencyMhz = message.frequencyMhz;
12882
13491
  }
12883
13492
  return obj;
12884
13493
  },
12885
13494
  create(base) {
12886
- return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
13495
+ return exports.CpuCoreLoad.fromPartial(base ?? {});
12887
13496
  },
12888
13497
  fromPartial(object) {
12889
- const message = createBaseSurfaceUnitBatteryInfo();
12890
- message.status = object.status ?? 0;
12891
- message.level = object.level ?? 0;
13498
+ const message = createBaseCpuCoreLoad();
13499
+ message.coreIndex = object.coreIndex ?? 0;
13500
+ message.load = object.load ?? 0;
13501
+ message.frequencyMhz = object.frequencyMhz ?? 0;
12892
13502
  return message;
12893
13503
  },
12894
13504
  };
12895
- function createBaseSurfaceUnitVersionInfo() {
12896
- return { version: "" };
13505
+ function createBaseGpuInfo() {
13506
+ return { load: 0, frequencyMhz: 0 };
12897
13507
  }
12898
- exports.SurfaceUnitVersionInfo = {
13508
+ exports.GpuInfo = {
12899
13509
  encode(message, writer = new wire_1.BinaryWriter()) {
12900
- if (message.version !== "") {
12901
- writer.uint32(10).string(message.version);
13510
+ if (message.load !== 0) {
13511
+ writer.uint32(13).float(message.load);
13512
+ }
13513
+ if (message.frequencyMhz !== 0) {
13514
+ writer.uint32(21).float(message.frequencyMhz);
12902
13515
  }
12903
13516
  return writer;
12904
13517
  },
12905
13518
  decode(input, length) {
12906
13519
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12907
13520
  const end = length === undefined ? reader.len : reader.pos + length;
12908
- const message = createBaseSurfaceUnitVersionInfo();
13521
+ const message = createBaseGpuInfo();
12909
13522
  while (reader.pos < end) {
12910
13523
  const tag = reader.uint32();
12911
13524
  switch (tag >>> 3) {
12912
13525
  case 1: {
12913
- if (tag !== 10) {
13526
+ if (tag !== 13) {
12914
13527
  break;
12915
13528
  }
12916
- message.version = reader.string();
13529
+ message.load = reader.float();
13530
+ continue;
13531
+ }
13532
+ case 2: {
13533
+ if (tag !== 21) {
13534
+ break;
13535
+ }
13536
+ message.frequencyMhz = reader.float();
12917
13537
  continue;
12918
13538
  }
12919
13539
  }
@@ -12925,21 +13545,1444 @@ exports.SurfaceUnitVersionInfo = {
12925
13545
  return message;
12926
13546
  },
12927
13547
  fromJSON(object) {
12928
- return { version: isSet(object.version) ? gt.String(object.version) : "" };
13548
+ return {
13549
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13550
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13551
+ };
12929
13552
  },
12930
13553
  toJSON(message) {
12931
13554
  const obj = {};
12932
- if (message.version !== "") {
12933
- obj.version = message.version;
13555
+ if (message.load !== 0) {
13556
+ obj.load = message.load;
13557
+ }
13558
+ if (message.frequencyMhz !== 0) {
13559
+ obj.frequencyMhz = message.frequencyMhz;
12934
13560
  }
12935
13561
  return obj;
12936
13562
  },
12937
13563
  create(base) {
12938
- return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
13564
+ return exports.GpuInfo.fromPartial(base ?? {});
12939
13565
  },
12940
13566
  fromPartial(object) {
12941
- const message = createBaseSurfaceUnitVersionInfo();
12942
- message.version = object.version ?? "";
13567
+ const message = createBaseGpuInfo();
13568
+ message.load = object.load ?? 0;
13569
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13570
+ return message;
13571
+ },
13572
+ };
13573
+ function createBaseDlaInfo() {
13574
+ return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
13575
+ }
13576
+ exports.DlaInfo = {
13577
+ encode(message, writer = new wire_1.BinaryWriter()) {
13578
+ if (message.engineIndex !== 0) {
13579
+ writer.uint32(8).uint32(message.engineIndex);
13580
+ }
13581
+ if (message.load !== 0) {
13582
+ writer.uint32(21).float(message.load);
13583
+ }
13584
+ if (message.frequencyMhz !== 0) {
13585
+ writer.uint32(29).float(message.frequencyMhz);
13586
+ }
13587
+ if (message.enabled !== false) {
13588
+ writer.uint32(32).bool(message.enabled);
13589
+ }
13590
+ if (message.falconFrequencyMhz !== 0) {
13591
+ writer.uint32(45).float(message.falconFrequencyMhz);
13592
+ }
13593
+ return writer;
13594
+ },
13595
+ decode(input, length) {
13596
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13597
+ const end = length === undefined ? reader.len : reader.pos + length;
13598
+ const message = createBaseDlaInfo();
13599
+ while (reader.pos < end) {
13600
+ const tag = reader.uint32();
13601
+ switch (tag >>> 3) {
13602
+ case 1: {
13603
+ if (tag !== 8) {
13604
+ break;
13605
+ }
13606
+ message.engineIndex = reader.uint32();
13607
+ continue;
13608
+ }
13609
+ case 2: {
13610
+ if (tag !== 21) {
13611
+ break;
13612
+ }
13613
+ message.load = reader.float();
13614
+ continue;
13615
+ }
13616
+ case 3: {
13617
+ if (tag !== 29) {
13618
+ break;
13619
+ }
13620
+ message.frequencyMhz = reader.float();
13621
+ continue;
13622
+ }
13623
+ case 4: {
13624
+ if (tag !== 32) {
13625
+ break;
13626
+ }
13627
+ message.enabled = reader.bool();
13628
+ continue;
13629
+ }
13630
+ case 5: {
13631
+ if (tag !== 45) {
13632
+ break;
13633
+ }
13634
+ message.falconFrequencyMhz = reader.float();
13635
+ continue;
13636
+ }
13637
+ }
13638
+ if ((tag & 7) === 4 || tag === 0) {
13639
+ break;
13640
+ }
13641
+ reader.skip(tag & 7);
13642
+ }
13643
+ return message;
13644
+ },
13645
+ fromJSON(object) {
13646
+ return {
13647
+ engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
13648
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13649
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13650
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
13651
+ falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
13652
+ };
13653
+ },
13654
+ toJSON(message) {
13655
+ const obj = {};
13656
+ if (message.engineIndex !== 0) {
13657
+ obj.engineIndex = Math.round(message.engineIndex);
13658
+ }
13659
+ if (message.load !== 0) {
13660
+ obj.load = message.load;
13661
+ }
13662
+ if (message.frequencyMhz !== 0) {
13663
+ obj.frequencyMhz = message.frequencyMhz;
13664
+ }
13665
+ if (message.enabled !== false) {
13666
+ obj.enabled = message.enabled;
13667
+ }
13668
+ if (message.falconFrequencyMhz !== 0) {
13669
+ obj.falconFrequencyMhz = message.falconFrequencyMhz;
13670
+ }
13671
+ return obj;
13672
+ },
13673
+ create(base) {
13674
+ return exports.DlaInfo.fromPartial(base ?? {});
13675
+ },
13676
+ fromPartial(object) {
13677
+ const message = createBaseDlaInfo();
13678
+ message.engineIndex = object.engineIndex ?? 0;
13679
+ message.load = object.load ?? 0;
13680
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13681
+ message.enabled = object.enabled ?? false;
13682
+ message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
13683
+ return message;
13684
+ },
13685
+ };
13686
+ function createBaseMemoryInfo() {
13687
+ return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
13688
+ }
13689
+ exports.MemoryInfo = {
13690
+ encode(message, writer = new wire_1.BinaryWriter()) {
13691
+ if (message.totalBytes !== 0) {
13692
+ writer.uint32(8).uint64(message.totalBytes);
13693
+ }
13694
+ if (message.usedBytes !== 0) {
13695
+ writer.uint32(16).uint64(message.usedBytes);
13696
+ }
13697
+ if (message.cachedBytes !== 0) {
13698
+ writer.uint32(24).uint64(message.cachedBytes);
13699
+ }
13700
+ if (message.busLoad !== 0) {
13701
+ writer.uint32(37).float(message.busLoad);
13702
+ }
13703
+ return writer;
13704
+ },
13705
+ decode(input, length) {
13706
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13707
+ const end = length === undefined ? reader.len : reader.pos + length;
13708
+ const message = createBaseMemoryInfo();
13709
+ while (reader.pos < end) {
13710
+ const tag = reader.uint32();
13711
+ switch (tag >>> 3) {
13712
+ case 1: {
13713
+ if (tag !== 8) {
13714
+ break;
13715
+ }
13716
+ message.totalBytes = longToNumber(reader.uint64());
13717
+ continue;
13718
+ }
13719
+ case 2: {
13720
+ if (tag !== 16) {
13721
+ break;
13722
+ }
13723
+ message.usedBytes = longToNumber(reader.uint64());
13724
+ continue;
13725
+ }
13726
+ case 3: {
13727
+ if (tag !== 24) {
13728
+ break;
13729
+ }
13730
+ message.cachedBytes = longToNumber(reader.uint64());
13731
+ continue;
13732
+ }
13733
+ case 4: {
13734
+ if (tag !== 37) {
13735
+ break;
13736
+ }
13737
+ message.busLoad = reader.float();
13738
+ continue;
13739
+ }
13740
+ }
13741
+ if ((tag & 7) === 4 || tag === 0) {
13742
+ break;
13743
+ }
13744
+ reader.skip(tag & 7);
13745
+ }
13746
+ return message;
13747
+ },
13748
+ fromJSON(object) {
13749
+ return {
13750
+ totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
13751
+ usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
13752
+ cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
13753
+ busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
13754
+ };
13755
+ },
13756
+ toJSON(message) {
13757
+ const obj = {};
13758
+ if (message.totalBytes !== 0) {
13759
+ obj.totalBytes = Math.round(message.totalBytes);
13760
+ }
13761
+ if (message.usedBytes !== 0) {
13762
+ obj.usedBytes = Math.round(message.usedBytes);
13763
+ }
13764
+ if (message.cachedBytes !== 0) {
13765
+ obj.cachedBytes = Math.round(message.cachedBytes);
13766
+ }
13767
+ if (message.busLoad !== 0) {
13768
+ obj.busLoad = message.busLoad;
13769
+ }
13770
+ return obj;
13771
+ },
13772
+ create(base) {
13773
+ return exports.MemoryInfo.fromPartial(base ?? {});
13774
+ },
13775
+ fromPartial(object) {
13776
+ const message = createBaseMemoryInfo();
13777
+ message.totalBytes = object.totalBytes ?? 0;
13778
+ message.usedBytes = object.usedBytes ?? 0;
13779
+ message.cachedBytes = object.cachedBytes ?? 0;
13780
+ message.busLoad = object.busLoad ?? 0;
13781
+ return message;
13782
+ },
13783
+ };
13784
+ function createBaseThermalZone() {
13785
+ return { zone: 0, temperature: 0 };
13786
+ }
13787
+ exports.ThermalZone = {
13788
+ encode(message, writer = new wire_1.BinaryWriter()) {
13789
+ if (message.zone !== 0) {
13790
+ writer.uint32(8).int32(message.zone);
13791
+ }
13792
+ if (message.temperature !== 0) {
13793
+ writer.uint32(21).float(message.temperature);
13794
+ }
13795
+ return writer;
13796
+ },
13797
+ decode(input, length) {
13798
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13799
+ const end = length === undefined ? reader.len : reader.pos + length;
13800
+ const message = createBaseThermalZone();
13801
+ while (reader.pos < end) {
13802
+ const tag = reader.uint32();
13803
+ switch (tag >>> 3) {
13804
+ case 1: {
13805
+ if (tag !== 8) {
13806
+ break;
13807
+ }
13808
+ message.zone = reader.int32();
13809
+ continue;
13810
+ }
13811
+ case 2: {
13812
+ if (tag !== 21) {
13813
+ break;
13814
+ }
13815
+ message.temperature = reader.float();
13816
+ continue;
13817
+ }
13818
+ }
13819
+ if ((tag & 7) === 4 || tag === 0) {
13820
+ break;
13821
+ }
13822
+ reader.skip(tag & 7);
13823
+ }
13824
+ return message;
13825
+ },
13826
+ fromJSON(object) {
13827
+ return {
13828
+ zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
13829
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
13830
+ };
13831
+ },
13832
+ toJSON(message) {
13833
+ const obj = {};
13834
+ if (message.zone !== 0) {
13835
+ obj.zone = thermalZoneIdToJSON(message.zone);
13836
+ }
13837
+ if (message.temperature !== 0) {
13838
+ obj.temperature = message.temperature;
13839
+ }
13840
+ return obj;
13841
+ },
13842
+ create(base) {
13843
+ return exports.ThermalZone.fromPartial(base ?? {});
13844
+ },
13845
+ fromPartial(object) {
13846
+ const message = createBaseThermalZone();
13847
+ message.zone = object.zone ?? 0;
13848
+ message.temperature = object.temperature ?? 0;
13849
+ return message;
13850
+ },
13851
+ };
13852
+ function createBaseVideoCodecInfo() {
13853
+ return {
13854
+ encoderActive: false,
13855
+ encoderFrequencyMhz: 0,
13856
+ decoderActive: false,
13857
+ decoderFrequencyMhz: 0,
13858
+ nvjpgActive: false,
13859
+ nvjpgFrequencyMhz: 0,
13860
+ vicActive: false,
13861
+ vicFrequencyMhz: 0,
13862
+ vpuActive: false,
13863
+ vpuFrequencyMhz: 0,
13864
+ vpuCodecIrqCount: 0,
13865
+ vpuJpgIrqCount: 0,
13866
+ };
13867
+ }
13868
+ exports.VideoCodecInfo = {
13869
+ encode(message, writer = new wire_1.BinaryWriter()) {
13870
+ if (message.encoderActive !== false) {
13871
+ writer.uint32(8).bool(message.encoderActive);
13872
+ }
13873
+ if (message.encoderFrequencyMhz !== 0) {
13874
+ writer.uint32(21).float(message.encoderFrequencyMhz);
13875
+ }
13876
+ if (message.decoderActive !== false) {
13877
+ writer.uint32(24).bool(message.decoderActive);
13878
+ }
13879
+ if (message.decoderFrequencyMhz !== 0) {
13880
+ writer.uint32(37).float(message.decoderFrequencyMhz);
13881
+ }
13882
+ if (message.nvjpgActive !== false) {
13883
+ writer.uint32(40).bool(message.nvjpgActive);
13884
+ }
13885
+ if (message.nvjpgFrequencyMhz !== 0) {
13886
+ writer.uint32(53).float(message.nvjpgFrequencyMhz);
13887
+ }
13888
+ if (message.vicActive !== false) {
13889
+ writer.uint32(56).bool(message.vicActive);
13890
+ }
13891
+ if (message.vicFrequencyMhz !== 0) {
13892
+ writer.uint32(69).float(message.vicFrequencyMhz);
13893
+ }
13894
+ if (message.vpuActive !== false) {
13895
+ writer.uint32(72).bool(message.vpuActive);
13896
+ }
13897
+ if (message.vpuFrequencyMhz !== 0) {
13898
+ writer.uint32(85).float(message.vpuFrequencyMhz);
13899
+ }
13900
+ if (message.vpuCodecIrqCount !== 0) {
13901
+ writer.uint32(88).uint32(message.vpuCodecIrqCount);
13902
+ }
13903
+ if (message.vpuJpgIrqCount !== 0) {
13904
+ writer.uint32(96).uint32(message.vpuJpgIrqCount);
13905
+ }
13906
+ return writer;
13907
+ },
13908
+ decode(input, length) {
13909
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13910
+ const end = length === undefined ? reader.len : reader.pos + length;
13911
+ const message = createBaseVideoCodecInfo();
13912
+ while (reader.pos < end) {
13913
+ const tag = reader.uint32();
13914
+ switch (tag >>> 3) {
13915
+ case 1: {
13916
+ if (tag !== 8) {
13917
+ break;
13918
+ }
13919
+ message.encoderActive = reader.bool();
13920
+ continue;
13921
+ }
13922
+ case 2: {
13923
+ if (tag !== 21) {
13924
+ break;
13925
+ }
13926
+ message.encoderFrequencyMhz = reader.float();
13927
+ continue;
13928
+ }
13929
+ case 3: {
13930
+ if (tag !== 24) {
13931
+ break;
13932
+ }
13933
+ message.decoderActive = reader.bool();
13934
+ continue;
13935
+ }
13936
+ case 4: {
13937
+ if (tag !== 37) {
13938
+ break;
13939
+ }
13940
+ message.decoderFrequencyMhz = reader.float();
13941
+ continue;
13942
+ }
13943
+ case 5: {
13944
+ if (tag !== 40) {
13945
+ break;
13946
+ }
13947
+ message.nvjpgActive = reader.bool();
13948
+ continue;
13949
+ }
13950
+ case 6: {
13951
+ if (tag !== 53) {
13952
+ break;
13953
+ }
13954
+ message.nvjpgFrequencyMhz = reader.float();
13955
+ continue;
13956
+ }
13957
+ case 7: {
13958
+ if (tag !== 56) {
13959
+ break;
13960
+ }
13961
+ message.vicActive = reader.bool();
13962
+ continue;
13963
+ }
13964
+ case 8: {
13965
+ if (tag !== 69) {
13966
+ break;
13967
+ }
13968
+ message.vicFrequencyMhz = reader.float();
13969
+ continue;
13970
+ }
13971
+ case 9: {
13972
+ if (tag !== 72) {
13973
+ break;
13974
+ }
13975
+ message.vpuActive = reader.bool();
13976
+ continue;
13977
+ }
13978
+ case 10: {
13979
+ if (tag !== 85) {
13980
+ break;
13981
+ }
13982
+ message.vpuFrequencyMhz = reader.float();
13983
+ continue;
13984
+ }
13985
+ case 11: {
13986
+ if (tag !== 88) {
13987
+ break;
13988
+ }
13989
+ message.vpuCodecIrqCount = reader.uint32();
13990
+ continue;
13991
+ }
13992
+ case 12: {
13993
+ if (tag !== 96) {
13994
+ break;
13995
+ }
13996
+ message.vpuJpgIrqCount = reader.uint32();
13997
+ continue;
13998
+ }
13999
+ }
14000
+ if ((tag & 7) === 4 || tag === 0) {
14001
+ break;
14002
+ }
14003
+ reader.skip(tag & 7);
14004
+ }
14005
+ return message;
14006
+ },
14007
+ fromJSON(object) {
14008
+ return {
14009
+ encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
14010
+ encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
14011
+ decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
14012
+ decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
14013
+ nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
14014
+ nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
14015
+ vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
14016
+ vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
14017
+ vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
14018
+ vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
14019
+ vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
14020
+ vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
14021
+ };
14022
+ },
14023
+ toJSON(message) {
14024
+ const obj = {};
14025
+ if (message.encoderActive !== false) {
14026
+ obj.encoderActive = message.encoderActive;
14027
+ }
14028
+ if (message.encoderFrequencyMhz !== 0) {
14029
+ obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
14030
+ }
14031
+ if (message.decoderActive !== false) {
14032
+ obj.decoderActive = message.decoderActive;
14033
+ }
14034
+ if (message.decoderFrequencyMhz !== 0) {
14035
+ obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
14036
+ }
14037
+ if (message.nvjpgActive !== false) {
14038
+ obj.nvjpgActive = message.nvjpgActive;
14039
+ }
14040
+ if (message.nvjpgFrequencyMhz !== 0) {
14041
+ obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
14042
+ }
14043
+ if (message.vicActive !== false) {
14044
+ obj.vicActive = message.vicActive;
14045
+ }
14046
+ if (message.vicFrequencyMhz !== 0) {
14047
+ obj.vicFrequencyMhz = message.vicFrequencyMhz;
14048
+ }
14049
+ if (message.vpuActive !== false) {
14050
+ obj.vpuActive = message.vpuActive;
14051
+ }
14052
+ if (message.vpuFrequencyMhz !== 0) {
14053
+ obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
14054
+ }
14055
+ if (message.vpuCodecIrqCount !== 0) {
14056
+ obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
14057
+ }
14058
+ if (message.vpuJpgIrqCount !== 0) {
14059
+ obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
14060
+ }
14061
+ return obj;
14062
+ },
14063
+ create(base) {
14064
+ return exports.VideoCodecInfo.fromPartial(base ?? {});
14065
+ },
14066
+ fromPartial(object) {
14067
+ const message = createBaseVideoCodecInfo();
14068
+ message.encoderActive = object.encoderActive ?? false;
14069
+ message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
14070
+ message.decoderActive = object.decoderActive ?? false;
14071
+ message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
14072
+ message.nvjpgActive = object.nvjpgActive ?? false;
14073
+ message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
14074
+ message.vicActive = object.vicActive ?? false;
14075
+ message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
14076
+ message.vpuActive = object.vpuActive ?? false;
14077
+ message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
14078
+ message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
14079
+ message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
14080
+ return message;
14081
+ },
14082
+ };
14083
+ function createBaseSystemPerformanceInfo() {
14084
+ return {
14085
+ cpuCores: [],
14086
+ cpuUtilization: 0,
14087
+ gpu: undefined,
14088
+ dlaEngines: [],
14089
+ memory: undefined,
14090
+ thermalZones: [],
14091
+ videoCodec: undefined,
14092
+ mainQueueLoad: 0,
14093
+ guestportQueueLoad: 0,
14094
+ commQueueLoad: 0,
14095
+ cameraQueueLoad: 0,
14096
+ overlayQueueLoad: 0,
14097
+ positionObserverQueueLoad: 0,
14098
+ };
14099
+ }
14100
+ exports.SystemPerformanceInfo = {
14101
+ encode(message, writer = new wire_1.BinaryWriter()) {
14102
+ for (const v of message.cpuCores) {
14103
+ exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
14104
+ }
14105
+ if (message.cpuUtilization !== 0) {
14106
+ writer.uint32(21).float(message.cpuUtilization);
14107
+ }
14108
+ if (message.gpu !== undefined) {
14109
+ exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
14110
+ }
14111
+ for (const v of message.dlaEngines) {
14112
+ exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
14113
+ }
14114
+ if (message.memory !== undefined) {
14115
+ exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
14116
+ }
14117
+ for (const v of message.thermalZones) {
14118
+ exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
14119
+ }
14120
+ if (message.videoCodec !== undefined) {
14121
+ exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
14122
+ }
14123
+ if (message.mainQueueLoad !== 0) {
14124
+ writer.uint32(69).float(message.mainQueueLoad);
14125
+ }
14126
+ if (message.guestportQueueLoad !== 0) {
14127
+ writer.uint32(77).float(message.guestportQueueLoad);
14128
+ }
14129
+ if (message.commQueueLoad !== 0) {
14130
+ writer.uint32(85).float(message.commQueueLoad);
14131
+ }
14132
+ if (message.cameraQueueLoad !== 0) {
14133
+ writer.uint32(93).float(message.cameraQueueLoad);
14134
+ }
14135
+ if (message.overlayQueueLoad !== 0) {
14136
+ writer.uint32(101).float(message.overlayQueueLoad);
14137
+ }
14138
+ if (message.positionObserverQueueLoad !== 0) {
14139
+ writer.uint32(109).float(message.positionObserverQueueLoad);
14140
+ }
14141
+ return writer;
14142
+ },
14143
+ decode(input, length) {
14144
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14145
+ const end = length === undefined ? reader.len : reader.pos + length;
14146
+ const message = createBaseSystemPerformanceInfo();
14147
+ while (reader.pos < end) {
14148
+ const tag = reader.uint32();
14149
+ switch (tag >>> 3) {
14150
+ case 1: {
14151
+ if (tag !== 10) {
14152
+ break;
14153
+ }
14154
+ message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
14155
+ continue;
14156
+ }
14157
+ case 2: {
14158
+ if (tag !== 21) {
14159
+ break;
14160
+ }
14161
+ message.cpuUtilization = reader.float();
14162
+ continue;
14163
+ }
14164
+ case 3: {
14165
+ if (tag !== 26) {
14166
+ break;
14167
+ }
14168
+ message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
14169
+ continue;
14170
+ }
14171
+ case 4: {
14172
+ if (tag !== 34) {
14173
+ break;
14174
+ }
14175
+ message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
14176
+ continue;
14177
+ }
14178
+ case 5: {
14179
+ if (tag !== 42) {
14180
+ break;
14181
+ }
14182
+ message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
14183
+ continue;
14184
+ }
14185
+ case 6: {
14186
+ if (tag !== 50) {
14187
+ break;
14188
+ }
14189
+ message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
14190
+ continue;
14191
+ }
14192
+ case 7: {
14193
+ if (tag !== 58) {
14194
+ break;
14195
+ }
14196
+ message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
14197
+ continue;
14198
+ }
14199
+ case 8: {
14200
+ if (tag !== 69) {
14201
+ break;
14202
+ }
14203
+ message.mainQueueLoad = reader.float();
14204
+ continue;
14205
+ }
14206
+ case 9: {
14207
+ if (tag !== 77) {
14208
+ break;
14209
+ }
14210
+ message.guestportQueueLoad = reader.float();
14211
+ continue;
14212
+ }
14213
+ case 10: {
14214
+ if (tag !== 85) {
14215
+ break;
14216
+ }
14217
+ message.commQueueLoad = reader.float();
14218
+ continue;
14219
+ }
14220
+ case 11: {
14221
+ if (tag !== 93) {
14222
+ break;
14223
+ }
14224
+ message.cameraQueueLoad = reader.float();
14225
+ continue;
14226
+ }
14227
+ case 12: {
14228
+ if (tag !== 101) {
14229
+ break;
14230
+ }
14231
+ message.overlayQueueLoad = reader.float();
14232
+ continue;
14233
+ }
14234
+ case 13: {
14235
+ if (tag !== 109) {
14236
+ break;
14237
+ }
14238
+ message.positionObserverQueueLoad = reader.float();
14239
+ continue;
14240
+ }
14241
+ }
14242
+ if ((tag & 7) === 4 || tag === 0) {
14243
+ break;
14244
+ }
14245
+ reader.skip(tag & 7);
14246
+ }
14247
+ return message;
14248
+ },
14249
+ fromJSON(object) {
14250
+ return {
14251
+ cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
14252
+ cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
14253
+ gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
14254
+ dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
14255
+ memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
14256
+ thermalZones: gt.Array.isArray(object?.thermalZones)
14257
+ ? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
14258
+ : [],
14259
+ videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
14260
+ mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
14261
+ guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
14262
+ commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
14263
+ cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
14264
+ overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
14265
+ positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
14266
+ ? gt.Number(object.positionObserverQueueLoad)
14267
+ : 0,
14268
+ };
14269
+ },
14270
+ toJSON(message) {
14271
+ const obj = {};
14272
+ if (message.cpuCores?.length) {
14273
+ obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
14274
+ }
14275
+ if (message.cpuUtilization !== 0) {
14276
+ obj.cpuUtilization = message.cpuUtilization;
14277
+ }
14278
+ if (message.gpu !== undefined) {
14279
+ obj.gpu = exports.GpuInfo.toJSON(message.gpu);
14280
+ }
14281
+ if (message.dlaEngines?.length) {
14282
+ obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
14283
+ }
14284
+ if (message.memory !== undefined) {
14285
+ obj.memory = exports.MemoryInfo.toJSON(message.memory);
14286
+ }
14287
+ if (message.thermalZones?.length) {
14288
+ obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
14289
+ }
14290
+ if (message.videoCodec !== undefined) {
14291
+ obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
14292
+ }
14293
+ if (message.mainQueueLoad !== 0) {
14294
+ obj.mainQueueLoad = message.mainQueueLoad;
14295
+ }
14296
+ if (message.guestportQueueLoad !== 0) {
14297
+ obj.guestportQueueLoad = message.guestportQueueLoad;
14298
+ }
14299
+ if (message.commQueueLoad !== 0) {
14300
+ obj.commQueueLoad = message.commQueueLoad;
14301
+ }
14302
+ if (message.cameraQueueLoad !== 0) {
14303
+ obj.cameraQueueLoad = message.cameraQueueLoad;
14304
+ }
14305
+ if (message.overlayQueueLoad !== 0) {
14306
+ obj.overlayQueueLoad = message.overlayQueueLoad;
14307
+ }
14308
+ if (message.positionObserverQueueLoad !== 0) {
14309
+ obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
14310
+ }
14311
+ return obj;
14312
+ },
14313
+ create(base) {
14314
+ return exports.SystemPerformanceInfo.fromPartial(base ?? {});
14315
+ },
14316
+ fromPartial(object) {
14317
+ const message = createBaseSystemPerformanceInfo();
14318
+ message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
14319
+ message.cpuUtilization = object.cpuUtilization ?? 0;
14320
+ message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
14321
+ message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
14322
+ message.memory = (object.memory !== undefined && object.memory !== null)
14323
+ ? exports.MemoryInfo.fromPartial(object.memory)
14324
+ : undefined;
14325
+ message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
14326
+ message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
14327
+ ? exports.VideoCodecInfo.fromPartial(object.videoCodec)
14328
+ : undefined;
14329
+ message.mainQueueLoad = object.mainQueueLoad ?? 0;
14330
+ message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
14331
+ message.commQueueLoad = object.commQueueLoad ?? 0;
14332
+ message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
14333
+ message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
14334
+ message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
14335
+ return message;
14336
+ },
14337
+ };
14338
+ function createBaseSurfaceUnitBatteryInfo() {
14339
+ return { status: 0, level: 0 };
14340
+ }
14341
+ exports.SurfaceUnitBatteryInfo = {
14342
+ encode(message, writer = new wire_1.BinaryWriter()) {
14343
+ if (message.status !== 0) {
14344
+ writer.uint32(8).int32(message.status);
14345
+ }
14346
+ if (message.level !== 0) {
14347
+ writer.uint32(21).float(message.level);
14348
+ }
14349
+ return writer;
14350
+ },
14351
+ decode(input, length) {
14352
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14353
+ const end = length === undefined ? reader.len : reader.pos + length;
14354
+ const message = createBaseSurfaceUnitBatteryInfo();
14355
+ while (reader.pos < end) {
14356
+ const tag = reader.uint32();
14357
+ switch (tag >>> 3) {
14358
+ case 1: {
14359
+ if (tag !== 8) {
14360
+ break;
14361
+ }
14362
+ message.status = reader.int32();
14363
+ continue;
14364
+ }
14365
+ case 2: {
14366
+ if (tag !== 21) {
14367
+ break;
14368
+ }
14369
+ message.level = reader.float();
14370
+ continue;
14371
+ }
14372
+ }
14373
+ if ((tag & 7) === 4 || tag === 0) {
14374
+ break;
14375
+ }
14376
+ reader.skip(tag & 7);
14377
+ }
14378
+ return message;
14379
+ },
14380
+ fromJSON(object) {
14381
+ return {
14382
+ status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
14383
+ level: isSet(object.level) ? gt.Number(object.level) : 0,
14384
+ };
14385
+ },
14386
+ toJSON(message) {
14387
+ const obj = {};
14388
+ if (message.status !== 0) {
14389
+ obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
14390
+ }
14391
+ if (message.level !== 0) {
14392
+ obj.level = message.level;
14393
+ }
14394
+ return obj;
14395
+ },
14396
+ create(base) {
14397
+ return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
14398
+ },
14399
+ fromPartial(object) {
14400
+ const message = createBaseSurfaceUnitBatteryInfo();
14401
+ message.status = object.status ?? 0;
14402
+ message.level = object.level ?? 0;
14403
+ return message;
14404
+ },
14405
+ };
14406
+ function createBaseSurfaceUnitVersionInfo() {
14407
+ return { version: "" };
14408
+ }
14409
+ exports.SurfaceUnitVersionInfo = {
14410
+ encode(message, writer = new wire_1.BinaryWriter()) {
14411
+ if (message.version !== "") {
14412
+ writer.uint32(10).string(message.version);
14413
+ }
14414
+ return writer;
14415
+ },
14416
+ decode(input, length) {
14417
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14418
+ const end = length === undefined ? reader.len : reader.pos + length;
14419
+ const message = createBaseSurfaceUnitVersionInfo();
14420
+ while (reader.pos < end) {
14421
+ const tag = reader.uint32();
14422
+ switch (tag >>> 3) {
14423
+ case 1: {
14424
+ if (tag !== 10) {
14425
+ break;
14426
+ }
14427
+ message.version = reader.string();
14428
+ continue;
14429
+ }
14430
+ }
14431
+ if ((tag & 7) === 4 || tag === 0) {
14432
+ break;
14433
+ }
14434
+ reader.skip(tag & 7);
14435
+ }
14436
+ return message;
14437
+ },
14438
+ fromJSON(object) {
14439
+ return { version: isSet(object.version) ? gt.String(object.version) : "" };
14440
+ },
14441
+ toJSON(message) {
14442
+ const obj = {};
14443
+ if (message.version !== "") {
14444
+ obj.version = message.version;
14445
+ }
14446
+ return obj;
14447
+ },
14448
+ create(base) {
14449
+ return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
14450
+ },
14451
+ fromPartial(object) {
14452
+ const message = createBaseSurfaceUnitVersionInfo();
14453
+ message.version = object.version ?? "";
14454
+ return message;
14455
+ },
14456
+ };
14457
+ function createBaseBoundingBox() {
14458
+ return { x: 0, y: 0, width: 0, height: 0 };
14459
+ }
14460
+ exports.BoundingBox = {
14461
+ encode(message, writer = new wire_1.BinaryWriter()) {
14462
+ if (message.x !== 0) {
14463
+ writer.uint32(8).uint32(message.x);
14464
+ }
14465
+ if (message.y !== 0) {
14466
+ writer.uint32(16).uint32(message.y);
14467
+ }
14468
+ if (message.width !== 0) {
14469
+ writer.uint32(24).uint32(message.width);
14470
+ }
14471
+ if (message.height !== 0) {
14472
+ writer.uint32(32).uint32(message.height);
14473
+ }
14474
+ return writer;
14475
+ },
14476
+ decode(input, length) {
14477
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14478
+ const end = length === undefined ? reader.len : reader.pos + length;
14479
+ const message = createBaseBoundingBox();
14480
+ while (reader.pos < end) {
14481
+ const tag = reader.uint32();
14482
+ switch (tag >>> 3) {
14483
+ case 1: {
14484
+ if (tag !== 8) {
14485
+ break;
14486
+ }
14487
+ message.x = reader.uint32();
14488
+ continue;
14489
+ }
14490
+ case 2: {
14491
+ if (tag !== 16) {
14492
+ break;
14493
+ }
14494
+ message.y = reader.uint32();
14495
+ continue;
14496
+ }
14497
+ case 3: {
14498
+ if (tag !== 24) {
14499
+ break;
14500
+ }
14501
+ message.width = reader.uint32();
14502
+ continue;
14503
+ }
14504
+ case 4: {
14505
+ if (tag !== 32) {
14506
+ break;
14507
+ }
14508
+ message.height = reader.uint32();
14509
+ continue;
14510
+ }
14511
+ }
14512
+ if ((tag & 7) === 4 || tag === 0) {
14513
+ break;
14514
+ }
14515
+ reader.skip(tag & 7);
14516
+ }
14517
+ return message;
14518
+ },
14519
+ fromJSON(object) {
14520
+ return {
14521
+ x: isSet(object.x) ? gt.Number(object.x) : 0,
14522
+ y: isSet(object.y) ? gt.Number(object.y) : 0,
14523
+ width: isSet(object.width) ? gt.Number(object.width) : 0,
14524
+ height: isSet(object.height) ? gt.Number(object.height) : 0,
14525
+ };
14526
+ },
14527
+ toJSON(message) {
14528
+ const obj = {};
14529
+ if (message.x !== 0) {
14530
+ obj.x = Math.round(message.x);
14531
+ }
14532
+ if (message.y !== 0) {
14533
+ obj.y = Math.round(message.y);
14534
+ }
14535
+ if (message.width !== 0) {
14536
+ obj.width = Math.round(message.width);
14537
+ }
14538
+ if (message.height !== 0) {
14539
+ obj.height = Math.round(message.height);
14540
+ }
14541
+ return obj;
14542
+ },
14543
+ create(base) {
14544
+ return exports.BoundingBox.fromPartial(base ?? {});
14545
+ },
14546
+ fromPartial(object) {
14547
+ const message = createBaseBoundingBox();
14548
+ message.x = object.x ?? 0;
14549
+ message.y = object.y ?? 0;
14550
+ message.width = object.width ?? 0;
14551
+ message.height = object.height ?? 0;
14552
+ return message;
14553
+ },
14554
+ };
14555
+ function createBaseObjectDetection() {
14556
+ return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0 };
14557
+ }
14558
+ exports.ObjectDetection = {
14559
+ encode(message, writer = new wire_1.BinaryWriter()) {
14560
+ if (message.boundingBox !== undefined) {
14561
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
14562
+ }
14563
+ if (message.confidence !== 0) {
14564
+ writer.uint32(21).float(message.confidence);
14565
+ }
14566
+ if (message.classId !== 0) {
14567
+ writer.uint32(24).uint32(message.classId);
14568
+ }
14569
+ if (message.className !== "") {
14570
+ writer.uint32(34).string(message.className);
14571
+ }
14572
+ if (message.trackingId !== 0) {
14573
+ writer.uint32(40).uint32(message.trackingId);
14574
+ }
14575
+ return writer;
14576
+ },
14577
+ decode(input, length) {
14578
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14579
+ const end = length === undefined ? reader.len : reader.pos + length;
14580
+ const message = createBaseObjectDetection();
14581
+ while (reader.pos < end) {
14582
+ const tag = reader.uint32();
14583
+ switch (tag >>> 3) {
14584
+ case 1: {
14585
+ if (tag !== 10) {
14586
+ break;
14587
+ }
14588
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
14589
+ continue;
14590
+ }
14591
+ case 2: {
14592
+ if (tag !== 21) {
14593
+ break;
14594
+ }
14595
+ message.confidence = reader.float();
14596
+ continue;
14597
+ }
14598
+ case 3: {
14599
+ if (tag !== 24) {
14600
+ break;
14601
+ }
14602
+ message.classId = reader.uint32();
14603
+ continue;
14604
+ }
14605
+ case 4: {
14606
+ if (tag !== 34) {
14607
+ break;
14608
+ }
14609
+ message.className = reader.string();
14610
+ continue;
14611
+ }
14612
+ case 5: {
14613
+ if (tag !== 40) {
14614
+ break;
14615
+ }
14616
+ message.trackingId = reader.uint32();
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
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
14630
+ confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
14631
+ classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
14632
+ className: isSet(object.className) ? gt.String(object.className) : "",
14633
+ trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
14634
+ };
14635
+ },
14636
+ toJSON(message) {
14637
+ const obj = {};
14638
+ if (message.boundingBox !== undefined) {
14639
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
14640
+ }
14641
+ if (message.confidence !== 0) {
14642
+ obj.confidence = message.confidence;
14643
+ }
14644
+ if (message.classId !== 0) {
14645
+ obj.classId = Math.round(message.classId);
14646
+ }
14647
+ if (message.className !== "") {
14648
+ obj.className = message.className;
14649
+ }
14650
+ if (message.trackingId !== 0) {
14651
+ obj.trackingId = Math.round(message.trackingId);
14652
+ }
14653
+ return obj;
14654
+ },
14655
+ create(base) {
14656
+ return exports.ObjectDetection.fromPartial(base ?? {});
14657
+ },
14658
+ fromPartial(object) {
14659
+ const message = createBaseObjectDetection();
14660
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
14661
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
14662
+ : undefined;
14663
+ message.confidence = object.confidence ?? 0;
14664
+ message.classId = object.classId ?? 0;
14665
+ message.className = object.className ?? "";
14666
+ message.trackingId = object.trackingId ?? 0;
14667
+ return message;
14668
+ },
14669
+ };
14670
+ function createBaseObjectDetections() {
14671
+ return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0 };
14672
+ }
14673
+ exports.ObjectDetections = {
14674
+ encode(message, writer = new wire_1.BinaryWriter()) {
14675
+ for (const v of message.detections) {
14676
+ exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
14677
+ }
14678
+ if (message.camera !== 0) {
14679
+ writer.uint32(16).int32(message.camera);
14680
+ }
14681
+ if (message.imageWidth !== 0) {
14682
+ writer.uint32(24).uint32(message.imageWidth);
14683
+ }
14684
+ if (message.imageHeight !== 0) {
14685
+ writer.uint32(32).uint32(message.imageHeight);
14686
+ }
14687
+ return writer;
14688
+ },
14689
+ decode(input, length) {
14690
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14691
+ const end = length === undefined ? reader.len : reader.pos + length;
14692
+ const message = createBaseObjectDetections();
14693
+ while (reader.pos < end) {
14694
+ const tag = reader.uint32();
14695
+ switch (tag >>> 3) {
14696
+ case 1: {
14697
+ if (tag !== 10) {
14698
+ break;
14699
+ }
14700
+ message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
14701
+ continue;
14702
+ }
14703
+ case 2: {
14704
+ if (tag !== 16) {
14705
+ break;
14706
+ }
14707
+ message.camera = reader.int32();
14708
+ continue;
14709
+ }
14710
+ case 3: {
14711
+ if (tag !== 24) {
14712
+ break;
14713
+ }
14714
+ message.imageWidth = reader.uint32();
14715
+ continue;
14716
+ }
14717
+ case 4: {
14718
+ if (tag !== 32) {
14719
+ break;
14720
+ }
14721
+ message.imageHeight = reader.uint32();
14722
+ continue;
14723
+ }
14724
+ }
14725
+ if ((tag & 7) === 4 || tag === 0) {
14726
+ break;
14727
+ }
14728
+ reader.skip(tag & 7);
14729
+ }
14730
+ return message;
14731
+ },
14732
+ fromJSON(object) {
14733
+ return {
14734
+ detections: gt.Array.isArray(object?.detections)
14735
+ ? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
14736
+ : [],
14737
+ camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
14738
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
14739
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
14740
+ };
14741
+ },
14742
+ toJSON(message) {
14743
+ const obj = {};
14744
+ if (message.detections?.length) {
14745
+ obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
14746
+ }
14747
+ if (message.camera !== 0) {
14748
+ obj.camera = cameraToJSON(message.camera);
14749
+ }
14750
+ if (message.imageWidth !== 0) {
14751
+ obj.imageWidth = Math.round(message.imageWidth);
14752
+ }
14753
+ if (message.imageHeight !== 0) {
14754
+ obj.imageHeight = Math.round(message.imageHeight);
14755
+ }
14756
+ return obj;
14757
+ },
14758
+ create(base) {
14759
+ return exports.ObjectDetections.fromPartial(base ?? {});
14760
+ },
14761
+ fromPartial(object) {
14762
+ const message = createBaseObjectDetections();
14763
+ message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
14764
+ message.camera = object.camera ?? 0;
14765
+ message.imageWidth = object.imageWidth ?? 0;
14766
+ message.imageHeight = object.imageHeight ?? 0;
14767
+ return message;
14768
+ },
14769
+ };
14770
+ function createBaseFilterMessage() {
14771
+ return { enabled: false, intensity: 0 };
14772
+ }
14773
+ exports.FilterMessage = {
14774
+ encode(message, writer = new wire_1.BinaryWriter()) {
14775
+ if (message.enabled !== false) {
14776
+ writer.uint32(8).bool(message.enabled);
14777
+ }
14778
+ if (message.intensity !== 0) {
14779
+ writer.uint32(21).float(message.intensity);
14780
+ }
14781
+ return writer;
14782
+ },
14783
+ decode(input, length) {
14784
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14785
+ const end = length === undefined ? reader.len : reader.pos + length;
14786
+ const message = createBaseFilterMessage();
14787
+ while (reader.pos < end) {
14788
+ const tag = reader.uint32();
14789
+ switch (tag >>> 3) {
14790
+ case 1: {
14791
+ if (tag !== 8) {
14792
+ break;
14793
+ }
14794
+ message.enabled = reader.bool();
14795
+ continue;
14796
+ }
14797
+ case 2: {
14798
+ if (tag !== 21) {
14799
+ break;
14800
+ }
14801
+ message.intensity = reader.float();
14802
+ continue;
14803
+ }
14804
+ }
14805
+ if ((tag & 7) === 4 || tag === 0) {
14806
+ break;
14807
+ }
14808
+ reader.skip(tag & 7);
14809
+ }
14810
+ return message;
14811
+ },
14812
+ fromJSON(object) {
14813
+ return {
14814
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
14815
+ intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
14816
+ };
14817
+ },
14818
+ toJSON(message) {
14819
+ const obj = {};
14820
+ if (message.enabled !== false) {
14821
+ obj.enabled = message.enabled;
14822
+ }
14823
+ if (message.intensity !== 0) {
14824
+ obj.intensity = message.intensity;
14825
+ }
14826
+ return obj;
14827
+ },
14828
+ create(base) {
14829
+ return exports.FilterMessage.fromPartial(base ?? {});
14830
+ },
14831
+ fromPartial(object) {
14832
+ const message = createBaseFilterMessage();
14833
+ message.enabled = object.enabled ?? false;
14834
+ message.intensity = object.intensity ?? 0;
14835
+ return message;
14836
+ },
14837
+ };
14838
+ function createBaseCameraPanTiltZoom() {
14839
+ return { pan: 0, tilt: 0, zoom: 0 };
14840
+ }
14841
+ exports.CameraPanTiltZoom = {
14842
+ encode(message, writer = new wire_1.BinaryWriter()) {
14843
+ if (message.pan !== 0) {
14844
+ writer.uint32(13).float(message.pan);
14845
+ }
14846
+ if (message.tilt !== 0) {
14847
+ writer.uint32(21).float(message.tilt);
14848
+ }
14849
+ if (message.zoom !== 0) {
14850
+ writer.uint32(29).float(message.zoom);
14851
+ }
14852
+ return writer;
14853
+ },
14854
+ decode(input, length) {
14855
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14856
+ const end = length === undefined ? reader.len : reader.pos + length;
14857
+ const message = createBaseCameraPanTiltZoom();
14858
+ while (reader.pos < end) {
14859
+ const tag = reader.uint32();
14860
+ switch (tag >>> 3) {
14861
+ case 1: {
14862
+ if (tag !== 13) {
14863
+ break;
14864
+ }
14865
+ message.pan = reader.float();
14866
+ continue;
14867
+ }
14868
+ case 2: {
14869
+ if (tag !== 21) {
14870
+ break;
14871
+ }
14872
+ message.tilt = reader.float();
14873
+ continue;
14874
+ }
14875
+ case 3: {
14876
+ if (tag !== 29) {
14877
+ break;
14878
+ }
14879
+ message.zoom = reader.float();
14880
+ continue;
14881
+ }
14882
+ }
14883
+ if ((tag & 7) === 4 || tag === 0) {
14884
+ break;
14885
+ }
14886
+ reader.skip(tag & 7);
14887
+ }
14888
+ return message;
14889
+ },
14890
+ fromJSON(object) {
14891
+ return {
14892
+ pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
14893
+ tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
14894
+ zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
14895
+ };
14896
+ },
14897
+ toJSON(message) {
14898
+ const obj = {};
14899
+ if (message.pan !== 0) {
14900
+ obj.pan = message.pan;
14901
+ }
14902
+ if (message.tilt !== 0) {
14903
+ obj.tilt = message.tilt;
14904
+ }
14905
+ if (message.zoom !== 0) {
14906
+ obj.zoom = message.zoom;
14907
+ }
14908
+ return obj;
14909
+ },
14910
+ create(base) {
14911
+ return exports.CameraPanTiltZoom.fromPartial(base ?? {});
14912
+ },
14913
+ fromPartial(object) {
14914
+ const message = createBaseCameraPanTiltZoom();
14915
+ message.pan = object.pan ?? 0;
14916
+ message.tilt = object.tilt ?? 0;
14917
+ message.zoom = object.zoom ?? 0;
14918
+ return message;
14919
+ },
14920
+ };
14921
+ function createBaseOperatorInfo() {
14922
+ return { name: "", email: "" };
14923
+ }
14924
+ exports.OperatorInfo = {
14925
+ encode(message, writer = new wire_1.BinaryWriter()) {
14926
+ if (message.name !== "") {
14927
+ writer.uint32(10).string(message.name);
14928
+ }
14929
+ if (message.email !== "") {
14930
+ writer.uint32(18).string(message.email);
14931
+ }
14932
+ return writer;
14933
+ },
14934
+ decode(input, length) {
14935
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14936
+ const end = length === undefined ? reader.len : reader.pos + length;
14937
+ const message = createBaseOperatorInfo();
14938
+ while (reader.pos < end) {
14939
+ const tag = reader.uint32();
14940
+ switch (tag >>> 3) {
14941
+ case 1: {
14942
+ if (tag !== 10) {
14943
+ break;
14944
+ }
14945
+ message.name = reader.string();
14946
+ continue;
14947
+ }
14948
+ case 2: {
14949
+ if (tag !== 18) {
14950
+ break;
14951
+ }
14952
+ message.email = reader.string();
14953
+ continue;
14954
+ }
14955
+ }
14956
+ if ((tag & 7) === 4 || tag === 0) {
14957
+ break;
14958
+ }
14959
+ reader.skip(tag & 7);
14960
+ }
14961
+ return message;
14962
+ },
14963
+ fromJSON(object) {
14964
+ return {
14965
+ name: isSet(object.name) ? gt.String(object.name) : "",
14966
+ email: isSet(object.email) ? gt.String(object.email) : "",
14967
+ };
14968
+ },
14969
+ toJSON(message) {
14970
+ const obj = {};
14971
+ if (message.name !== "") {
14972
+ obj.name = message.name;
14973
+ }
14974
+ if (message.email !== "") {
14975
+ obj.email = message.email;
14976
+ }
14977
+ return obj;
14978
+ },
14979
+ create(base) {
14980
+ return exports.OperatorInfo.fromPartial(base ?? {});
14981
+ },
14982
+ fromPartial(object) {
14983
+ const message = createBaseOperatorInfo();
14984
+ message.name = object.name ?? "";
14985
+ message.email = object.email ?? "";
12943
14986
  return message;
12944
14987
  },
12945
14988
  };