@blueyerobotics/protocol-definitions 3.2.0-43e7a52a → 3.2.0-457224af

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.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = 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.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
9
- exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = void 0;
10
- exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = 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;
@@ -36,6 +36,8 @@ exports.cameraFromJSON = cameraFromJSON;
36
36
  exports.cameraToJSON = cameraToJSON;
37
37
  exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
38
38
  exports.streamingProtocolToJSON = streamingProtocolToJSON;
39
+ exports.recordingCodecFromJSON = recordingCodecFromJSON;
40
+ exports.recordingCodecToJSON = recordingCodecToJSON;
39
41
  exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
40
42
  exports.temperatureUnitToJSON = temperatureUnitToJSON;
41
43
  exports.logoTypeFromJSON = logoTypeFromJSON;
@@ -58,6 +60,8 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
58
60
  exports.guestPortErrorToJSON = guestPortErrorToJSON;
59
61
  exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
60
62
  exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
63
+ exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
64
+ exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
61
65
  exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
62
66
  exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
63
67
  exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
@@ -657,6 +661,8 @@ var Model;
657
661
  Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
658
662
  /** MODEL_X3_ULTRA - Blueye X3 Ultra. */
659
663
  Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
664
+ /** MODEL_X7 - Blueye X7. */
665
+ Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
660
666
  /** MODEL_NEXT - Blueye ? */
661
667
  Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
662
668
  Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -681,6 +687,9 @@ function modelFromJSON(object) {
681
687
  case 6:
682
688
  case "MODEL_X3_ULTRA":
683
689
  return Model.MODEL_X3_ULTRA;
690
+ case 7:
691
+ case "MODEL_X7":
692
+ return Model.MODEL_X7;
684
693
  case 5:
685
694
  case "MODEL_NEXT":
686
695
  return Model.MODEL_NEXT;
@@ -704,6 +713,8 @@ function modelToJSON(object) {
704
713
  return "MODEL_X3";
705
714
  case Model.MODEL_X3_ULTRA:
706
715
  return "MODEL_X3_ULTRA";
716
+ case Model.MODEL_X7:
717
+ return "MODEL_X7";
707
718
  case Model.MODEL_NEXT:
708
719
  return "MODEL_NEXT";
709
720
  case Model.UNRECOGNIZED:
@@ -779,6 +790,8 @@ var Resolution;
779
790
  Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
780
791
  /** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
781
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";
782
795
  Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
783
796
  })(Resolution || (exports.Resolution = Resolution = {}));
784
797
  function resolutionFromJSON(object) {
@@ -798,6 +811,9 @@ function resolutionFromJSON(object) {
798
811
  case 3:
799
812
  case "RESOLUTION_UHD_4K":
800
813
  return Resolution.RESOLUTION_UHD_4K;
814
+ case 5:
815
+ case "RESOLUTION_QHD_2K":
816
+ return Resolution.RESOLUTION_QHD_2K;
801
817
  case -1:
802
818
  case "UNRECOGNIZED":
803
819
  default:
@@ -816,12 +832,19 @@ function resolutionToJSON(object) {
816
832
  return "RESOLUTION_FULLHD_1080P";
817
833
  case Resolution.RESOLUTION_UHD_4K:
818
834
  return "RESOLUTION_UHD_4K";
835
+ case Resolution.RESOLUTION_QHD_2K:
836
+ return "RESOLUTION_QHD_2K";
819
837
  case Resolution.UNRECOGNIZED:
820
838
  default:
821
839
  return "UNRECOGNIZED";
822
840
  }
823
841
  }
824
- /** 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
+ */
825
848
  var Framerate;
826
849
  (function (Framerate) {
827
850
  /** FRAMERATE_UNSPECIFIED - Framerate not specified. */
@@ -830,6 +853,8 @@ var Framerate;
830
853
  Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
831
854
  /** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
832
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";
833
858
  Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
834
859
  })(Framerate || (exports.Framerate = Framerate = {}));
835
860
  function framerateFromJSON(object) {
@@ -843,6 +868,9 @@ function framerateFromJSON(object) {
843
868
  case 2:
844
869
  case "FRAMERATE_FPS_25":
845
870
  return Framerate.FRAMERATE_FPS_25;
871
+ case 3:
872
+ case "FRAMERATE_FPS_60":
873
+ return Framerate.FRAMERATE_FPS_60;
846
874
  case -1:
847
875
  case "UNRECOGNIZED":
848
876
  default:
@@ -857,6 +885,8 @@ function framerateToJSON(object) {
857
885
  return "FRAMERATE_FPS_30";
858
886
  case Framerate.FRAMERATE_FPS_25:
859
887
  return "FRAMERATE_FPS_25";
888
+ case Framerate.FRAMERATE_FPS_60:
889
+ return "FRAMERATE_FPS_60";
860
890
  case Framerate.UNRECOGNIZED:
861
891
  default:
862
892
  return "UNRECOGNIZED";
@@ -943,6 +973,47 @@ function streamingProtocolToJSON(object) {
943
973
  return "UNRECOGNIZED";
944
974
  }
945
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
+ }
946
1017
  /** Available temperature units. */
947
1018
  var TemperatureUnit;
948
1019
  (function (TemperatureUnit) {
@@ -1282,6 +1353,8 @@ var GuestPortDeviceID;
1282
1353
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1283
1354
  /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
1284
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";
1285
1358
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1286
1359
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1287
1360
  function guestPortDeviceIDFromJSON(object) {
@@ -1430,6 +1503,9 @@ function guestPortDeviceIDFromJSON(object) {
1430
1503
  case 47:
1431
1504
  case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
1432
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;
1433
1509
  case -1:
1434
1510
  case "UNRECOGNIZED":
1435
1511
  default:
@@ -1534,6 +1610,8 @@ function guestPortDeviceIDToJSON(object) {
1534
1610
  return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1535
1611
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
1536
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";
1537
1615
  case GuestPortDeviceID.UNRECOGNIZED:
1538
1616
  default:
1539
1617
  return "UNRECOGNIZED";
@@ -1810,6 +1888,47 @@ function multibeamFrequencyModeToJSON(object) {
1810
1888
  return "UNRECOGNIZED";
1811
1889
  }
1812
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
+ }
1813
1932
  var LogEntry_LogLevel;
1814
1933
  (function (LogEntry_LogLevel) {
1815
1934
  /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
@@ -2082,10 +2201,12 @@ var RemovableStorageDevice_Status;
2082
2201
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
2083
2202
  /** STATUS_READY - The storage device is valid and ready for use. */
2084
2203
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
2085
- /** STATUS_FORMATTING - The storage device is being formatted */
2204
+ /** STATUS_FORMATTING - The storage device is being formatted. */
2086
2205
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
2087
2206
  /** STATUS_ERROR - The storage device is in an error state. */
2088
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";
2089
2210
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2090
2211
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
2091
2212
  function removableStorageDevice_StatusFromJSON(object) {
@@ -2102,6 +2223,9 @@ function removableStorageDevice_StatusFromJSON(object) {
2102
2223
  case 3:
2103
2224
  case "STATUS_ERROR":
2104
2225
  return RemovableStorageDevice_Status.STATUS_ERROR;
2226
+ case 4:
2227
+ case "STATUS_UNPLUGGED":
2228
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
2105
2229
  case -1:
2106
2230
  case "UNRECOGNIZED":
2107
2231
  default:
@@ -2118,6 +2242,8 @@ function removableStorageDevice_StatusToJSON(object) {
2118
2242
  return "STATUS_FORMATTING";
2119
2243
  case RemovableStorageDevice_Status.STATUS_ERROR:
2120
2244
  return "STATUS_ERROR";
2245
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2246
+ return "STATUS_UNPLUGGED";
2121
2247
  case RemovableStorageDevice_Status.UNRECOGNIZED:
2122
2248
  default:
2123
2249
  return "UNRECOGNIZED";
@@ -4074,7 +4200,9 @@ function createBaseRecordState() {
4074
4200
  multibeamIsRecording: false,
4075
4201
  multibeamSeconds: 0,
4076
4202
  multibeamFps: 0,
4077
- storageLocation: 0,
4203
+ mainStorageLocation: 0,
4204
+ guestportStorageLocation: 0,
4205
+ multibeamStorageLocation: 0,
4078
4206
  };
4079
4207
  }
4080
4208
  exports.RecordState = {
@@ -4106,8 +4234,14 @@ exports.RecordState = {
4106
4234
  if (message.multibeamFps !== 0) {
4107
4235
  writer.uint32(77).float(message.multibeamFps);
4108
4236
  }
4109
- if (message.storageLocation !== 0) {
4110
- writer.uint32(80).int32(message.storageLocation);
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);
4111
4245
  }
4112
4246
  return writer;
4113
4247
  },
@@ -4185,7 +4319,21 @@ exports.RecordState = {
4185
4319
  if (tag !== 80) {
4186
4320
  break;
4187
4321
  }
4188
- message.storageLocation = reader.int32();
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();
4189
4337
  continue;
4190
4338
  }
4191
4339
  }
@@ -4207,7 +4355,13 @@ exports.RecordState = {
4207
4355
  multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
4208
4356
  multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
4209
4357
  multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
4210
- storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 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,
4211
4365
  };
4212
4366
  },
4213
4367
  toJSON(message) {
@@ -4239,8 +4393,14 @@ exports.RecordState = {
4239
4393
  if (message.multibeamFps !== 0) {
4240
4394
  obj.multibeamFps = message.multibeamFps;
4241
4395
  }
4242
- if (message.storageLocation !== 0) {
4243
- obj.storageLocation = storageLocationToJSON(message.storageLocation);
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);
4244
4404
  }
4245
4405
  return obj;
4246
4406
  },
@@ -4258,7 +4418,9 @@ exports.RecordState = {
4258
4418
  message.multibeamIsRecording = object.multibeamIsRecording ?? false;
4259
4419
  message.multibeamSeconds = object.multibeamSeconds ?? 0;
4260
4420
  message.multibeamFps = object.multibeamFps ?? 0;
4261
- message.storageLocation = object.storageLocation ?? 0;
4421
+ message.mainStorageLocation = object.mainStorageLocation ?? 0;
4422
+ message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
4423
+ message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
4262
4424
  return message;
4263
4425
  },
4264
4426
  };
@@ -9990,6 +10152,9 @@ function createBaseCameraParameters() {
9990
10152
  streamingProtocol: 0,
9991
10153
  framerate: 0,
9992
10154
  camera: 0,
10155
+ mtuSize: 0,
10156
+ recordingCodec: 0,
10157
+ recordingBitrate: 0,
9993
10158
  };
9994
10159
  }
9995
10160
  exports.CameraParameters = {
@@ -10060,6 +10225,15 @@ exports.CameraParameters = {
10060
10225
  if (message.camera !== 0) {
10061
10226
  writer.uint32(64).int32(message.camera);
10062
10227
  }
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);
10236
+ }
10063
10237
  return writer;
10064
10238
  },
10065
10239
  decode(input, length) {
@@ -10223,6 +10397,27 @@ exports.CameraParameters = {
10223
10397
  message.camera = reader.int32();
10224
10398
  continue;
10225
10399
  }
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) {
10409
+ break;
10410
+ }
10411
+ message.recordingCodec = reader.int32();
10412
+ continue;
10413
+ }
10414
+ case 26: {
10415
+ if (tag !== 208) {
10416
+ break;
10417
+ }
10418
+ message.recordingBitrate = reader.int32();
10419
+ continue;
10420
+ }
10226
10421
  }
10227
10422
  if ((tag & 7) === 4 || tag === 0) {
10228
10423
  break;
@@ -10255,6 +10450,9 @@ exports.CameraParameters = {
10255
10450
  streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
10256
10451
  framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
10257
10452
  camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
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,
10258
10456
  };
10259
10457
  },
10260
10458
  toJSON(message) {
@@ -10325,6 +10523,15 @@ exports.CameraParameters = {
10325
10523
  if (message.camera !== 0) {
10326
10524
  obj.camera = cameraToJSON(message.camera);
10327
10525
  }
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);
10534
+ }
10328
10535
  return obj;
10329
10536
  },
10330
10537
  create(base) {
@@ -10354,6 +10561,9 @@ exports.CameraParameters = {
10354
10561
  message.streamingProtocol = object.streamingProtocol ?? 0;
10355
10562
  message.framerate = object.framerate ?? 0;
10356
10563
  message.camera = object.camera ?? 0;
10564
+ message.mtuSize = object.mtuSize ?? 0;
10565
+ message.recordingCodec = object.recordingCodec ?? 0;
10566
+ message.recordingBitrate = object.recordingBitrate ?? 0;
10357
10567
  return message;
10358
10568
  },
10359
10569
  };
@@ -13209,23 +13419,26 @@ exports.CPUInfo = {
13209
13419
  return message;
13210
13420
  },
13211
13421
  };
13212
- function createBaseSurfaceUnitBatteryInfo() {
13213
- return { status: 0, level: 0 };
13422
+ function createBaseCpuCoreLoad() {
13423
+ return { coreIndex: 0, load: 0, frequencyMhz: 0 };
13214
13424
  }
13215
- exports.SurfaceUnitBatteryInfo = {
13425
+ exports.CpuCoreLoad = {
13216
13426
  encode(message, writer = new wire_1.BinaryWriter()) {
13217
- if (message.status !== 0) {
13218
- writer.uint32(8).int32(message.status);
13427
+ if (message.coreIndex !== 0) {
13428
+ writer.uint32(8).uint32(message.coreIndex);
13219
13429
  }
13220
- if (message.level !== 0) {
13221
- 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);
13222
13435
  }
13223
13436
  return writer;
13224
13437
  },
13225
13438
  decode(input, length) {
13226
13439
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13227
13440
  const end = length === undefined ? reader.len : reader.pos + length;
13228
- const message = createBaseSurfaceUnitBatteryInfo();
13441
+ const message = createBaseCpuCoreLoad();
13229
13442
  while (reader.pos < end) {
13230
13443
  const tag = reader.uint32();
13231
13444
  switch (tag >>> 3) {
@@ -13233,14 +13446,21 @@ exports.SurfaceUnitBatteryInfo = {
13233
13446
  if (tag !== 8) {
13234
13447
  break;
13235
13448
  }
13236
- message.status = reader.int32();
13449
+ message.coreIndex = reader.uint32();
13237
13450
  continue;
13238
13451
  }
13239
13452
  case 2: {
13240
13453
  if (tag !== 21) {
13241
13454
  break;
13242
13455
  }
13243
- 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();
13244
13464
  continue;
13245
13465
  }
13246
13466
  }
@@ -13253,52 +13473,67 @@ exports.SurfaceUnitBatteryInfo = {
13253
13473
  },
13254
13474
  fromJSON(object) {
13255
13475
  return {
13256
- status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
13257
- 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,
13258
13479
  };
13259
13480
  },
13260
13481
  toJSON(message) {
13261
13482
  const obj = {};
13262
- if (message.status !== 0) {
13263
- obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
13483
+ if (message.coreIndex !== 0) {
13484
+ obj.coreIndex = Math.round(message.coreIndex);
13264
13485
  }
13265
- if (message.level !== 0) {
13266
- 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;
13267
13491
  }
13268
13492
  return obj;
13269
13493
  },
13270
13494
  create(base) {
13271
- return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
13495
+ return exports.CpuCoreLoad.fromPartial(base ?? {});
13272
13496
  },
13273
13497
  fromPartial(object) {
13274
- const message = createBaseSurfaceUnitBatteryInfo();
13275
- message.status = object.status ?? 0;
13276
- 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;
13277
13502
  return message;
13278
13503
  },
13279
13504
  };
13280
- function createBaseSurfaceUnitVersionInfo() {
13281
- return { version: "" };
13505
+ function createBaseGpuInfo() {
13506
+ return { load: 0, frequencyMhz: 0 };
13282
13507
  }
13283
- exports.SurfaceUnitVersionInfo = {
13508
+ exports.GpuInfo = {
13284
13509
  encode(message, writer = new wire_1.BinaryWriter()) {
13285
- if (message.version !== "") {
13286
- 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);
13287
13515
  }
13288
13516
  return writer;
13289
13517
  },
13290
13518
  decode(input, length) {
13291
13519
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13292
13520
  const end = length === undefined ? reader.len : reader.pos + length;
13293
- const message = createBaseSurfaceUnitVersionInfo();
13521
+ const message = createBaseGpuInfo();
13294
13522
  while (reader.pos < end) {
13295
13523
  const tag = reader.uint32();
13296
13524
  switch (tag >>> 3) {
13297
13525
  case 1: {
13298
- if (tag !== 10) {
13526
+ if (tag !== 13) {
13299
13527
  break;
13300
13528
  }
13301
- 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();
13302
13537
  continue;
13303
13538
  }
13304
13539
  }
@@ -13310,21 +13545,1444 @@ exports.SurfaceUnitVersionInfo = {
13310
13545
  return message;
13311
13546
  },
13312
13547
  fromJSON(object) {
13313
- 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
+ };
13314
13552
  },
13315
13553
  toJSON(message) {
13316
13554
  const obj = {};
13317
- if (message.version !== "") {
13318
- 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;
13319
13560
  }
13320
13561
  return obj;
13321
13562
  },
13322
13563
  create(base) {
13323
- return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
13564
+ return exports.GpuInfo.fromPartial(base ?? {});
13324
13565
  },
13325
13566
  fromPartial(object) {
13326
- const message = createBaseSurfaceUnitVersionInfo();
13327
- 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 ?? "";
13328
14986
  return message;
13329
14987
  },
13330
14988
  };