@blueyerobotics/protocol-definitions 3.2.0-68355164 → 3.2.0-6aa68244

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) {
@@ -1280,6 +1351,8 @@ var GuestPortDeviceID;
1280
1351
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1281
1352
  /** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
1282
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";
1283
1356
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1284
1357
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1285
1358
  function guestPortDeviceIDFromJSON(object) {
@@ -1425,6 +1498,9 @@ function guestPortDeviceIDFromJSON(object) {
1425
1498
  case 46:
1426
1499
  case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
1427
1500
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
1501
+ case 47:
1502
+ case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
1503
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
1428
1504
  case -1:
1429
1505
  case "UNRECOGNIZED":
1430
1506
  default:
@@ -1527,6 +1603,8 @@ function guestPortDeviceIDToJSON(object) {
1527
1603
  return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1528
1604
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
1529
1605
  return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1606
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
1607
+ return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1530
1608
  case GuestPortDeviceID.UNRECOGNIZED:
1531
1609
  default:
1532
1610
  return "UNRECOGNIZED";
@@ -1803,6 +1881,47 @@ function multibeamFrequencyModeToJSON(object) {
1803
1881
  return "UNRECOGNIZED";
1804
1882
  }
1805
1883
  }
1884
+ /** Thermal zone identifiers. */
1885
+ var ThermalZoneId;
1886
+ (function (ThermalZoneId) {
1887
+ /** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
1888
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_UNSPECIFIED"] = 0] = "THERMAL_ZONE_ID_UNSPECIFIED";
1889
+ /** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
1890
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_TJ"] = 1] = "THERMAL_ZONE_ID_TJ";
1891
+ /** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
1892
+ ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_CANISTER"] = 2] = "THERMAL_ZONE_ID_CANISTER";
1893
+ ThermalZoneId[ThermalZoneId["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1894
+ })(ThermalZoneId || (exports.ThermalZoneId = ThermalZoneId = {}));
1895
+ function thermalZoneIdFromJSON(object) {
1896
+ switch (object) {
1897
+ case 0:
1898
+ case "THERMAL_ZONE_ID_UNSPECIFIED":
1899
+ return ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED;
1900
+ case 1:
1901
+ case "THERMAL_ZONE_ID_TJ":
1902
+ return ThermalZoneId.THERMAL_ZONE_ID_TJ;
1903
+ case 2:
1904
+ case "THERMAL_ZONE_ID_CANISTER":
1905
+ return ThermalZoneId.THERMAL_ZONE_ID_CANISTER;
1906
+ case -1:
1907
+ case "UNRECOGNIZED":
1908
+ default:
1909
+ return ThermalZoneId.UNRECOGNIZED;
1910
+ }
1911
+ }
1912
+ function thermalZoneIdToJSON(object) {
1913
+ switch (object) {
1914
+ case ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED:
1915
+ return "THERMAL_ZONE_ID_UNSPECIFIED";
1916
+ case ThermalZoneId.THERMAL_ZONE_ID_TJ:
1917
+ return "THERMAL_ZONE_ID_TJ";
1918
+ case ThermalZoneId.THERMAL_ZONE_ID_CANISTER:
1919
+ return "THERMAL_ZONE_ID_CANISTER";
1920
+ case ThermalZoneId.UNRECOGNIZED:
1921
+ default:
1922
+ return "UNRECOGNIZED";
1923
+ }
1924
+ }
1806
1925
  var LogEntry_LogLevel;
1807
1926
  (function (LogEntry_LogLevel) {
1808
1927
  /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
@@ -2075,10 +2194,12 @@ var RemovableStorageDevice_Status;
2075
2194
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
2076
2195
  /** STATUS_READY - The storage device is valid and ready for use. */
2077
2196
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
2078
- /** STATUS_FORMATTING - The storage device is being formatted */
2197
+ /** STATUS_FORMATTING - The storage device is being formatted. */
2079
2198
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
2080
2199
  /** STATUS_ERROR - The storage device is in an error state. */
2081
2200
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
2201
+ /** STATUS_UNPLUGGED - The storage device is not present. */
2202
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNPLUGGED"] = 4] = "STATUS_UNPLUGGED";
2082
2203
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2083
2204
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
2084
2205
  function removableStorageDevice_StatusFromJSON(object) {
@@ -2095,6 +2216,9 @@ function removableStorageDevice_StatusFromJSON(object) {
2095
2216
  case 3:
2096
2217
  case "STATUS_ERROR":
2097
2218
  return RemovableStorageDevice_Status.STATUS_ERROR;
2219
+ case 4:
2220
+ case "STATUS_UNPLUGGED":
2221
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
2098
2222
  case -1:
2099
2223
  case "UNRECOGNIZED":
2100
2224
  default:
@@ -2111,6 +2235,8 @@ function removableStorageDevice_StatusToJSON(object) {
2111
2235
  return "STATUS_FORMATTING";
2112
2236
  case RemovableStorageDevice_Status.STATUS_ERROR:
2113
2237
  return "STATUS_ERROR";
2238
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2239
+ return "STATUS_UNPLUGGED";
2114
2240
  case RemovableStorageDevice_Status.UNRECOGNIZED:
2115
2241
  default:
2116
2242
  return "UNRECOGNIZED";
@@ -4067,7 +4193,9 @@ function createBaseRecordState() {
4067
4193
  multibeamIsRecording: false,
4068
4194
  multibeamSeconds: 0,
4069
4195
  multibeamFps: 0,
4070
- storageLocation: 0,
4196
+ mainStorageLocation: 0,
4197
+ guestportStorageLocation: 0,
4198
+ multibeamStorageLocation: 0,
4071
4199
  };
4072
4200
  }
4073
4201
  exports.RecordState = {
@@ -4099,8 +4227,14 @@ exports.RecordState = {
4099
4227
  if (message.multibeamFps !== 0) {
4100
4228
  writer.uint32(77).float(message.multibeamFps);
4101
4229
  }
4102
- if (message.storageLocation !== 0) {
4103
- writer.uint32(80).int32(message.storageLocation);
4230
+ if (message.mainStorageLocation !== 0) {
4231
+ writer.uint32(80).int32(message.mainStorageLocation);
4232
+ }
4233
+ if (message.guestportStorageLocation !== 0) {
4234
+ writer.uint32(88).int32(message.guestportStorageLocation);
4235
+ }
4236
+ if (message.multibeamStorageLocation !== 0) {
4237
+ writer.uint32(96).int32(message.multibeamStorageLocation);
4104
4238
  }
4105
4239
  return writer;
4106
4240
  },
@@ -4178,7 +4312,21 @@ exports.RecordState = {
4178
4312
  if (tag !== 80) {
4179
4313
  break;
4180
4314
  }
4181
- message.storageLocation = reader.int32();
4315
+ message.mainStorageLocation = reader.int32();
4316
+ continue;
4317
+ }
4318
+ case 11: {
4319
+ if (tag !== 88) {
4320
+ break;
4321
+ }
4322
+ message.guestportStorageLocation = reader.int32();
4323
+ continue;
4324
+ }
4325
+ case 12: {
4326
+ if (tag !== 96) {
4327
+ break;
4328
+ }
4329
+ message.multibeamStorageLocation = reader.int32();
4182
4330
  continue;
4183
4331
  }
4184
4332
  }
@@ -4200,7 +4348,13 @@ exports.RecordState = {
4200
4348
  multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
4201
4349
  multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
4202
4350
  multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
4203
- storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
4351
+ mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
4352
+ guestportStorageLocation: isSet(object.guestportStorageLocation)
4353
+ ? storageLocationFromJSON(object.guestportStorageLocation)
4354
+ : 0,
4355
+ multibeamStorageLocation: isSet(object.multibeamStorageLocation)
4356
+ ? storageLocationFromJSON(object.multibeamStorageLocation)
4357
+ : 0,
4204
4358
  };
4205
4359
  },
4206
4360
  toJSON(message) {
@@ -4232,8 +4386,14 @@ exports.RecordState = {
4232
4386
  if (message.multibeamFps !== 0) {
4233
4387
  obj.multibeamFps = message.multibeamFps;
4234
4388
  }
4235
- if (message.storageLocation !== 0) {
4236
- obj.storageLocation = storageLocationToJSON(message.storageLocation);
4389
+ if (message.mainStorageLocation !== 0) {
4390
+ obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
4391
+ }
4392
+ if (message.guestportStorageLocation !== 0) {
4393
+ obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
4394
+ }
4395
+ if (message.multibeamStorageLocation !== 0) {
4396
+ obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
4237
4397
  }
4238
4398
  return obj;
4239
4399
  },
@@ -4251,7 +4411,9 @@ exports.RecordState = {
4251
4411
  message.multibeamIsRecording = object.multibeamIsRecording ?? false;
4252
4412
  message.multibeamSeconds = object.multibeamSeconds ?? 0;
4253
4413
  message.multibeamFps = object.multibeamFps ?? 0;
4254
- message.storageLocation = object.storageLocation ?? 0;
4414
+ message.mainStorageLocation = object.mainStorageLocation ?? 0;
4415
+ message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
4416
+ message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
4255
4417
  return message;
4256
4418
  },
4257
4419
  };
@@ -9983,6 +10145,9 @@ function createBaseCameraParameters() {
9983
10145
  streamingProtocol: 0,
9984
10146
  framerate: 0,
9985
10147
  camera: 0,
10148
+ mtuSize: 0,
10149
+ recordingCodec: 0,
10150
+ recordingBitrate: 0,
9986
10151
  };
9987
10152
  }
9988
10153
  exports.CameraParameters = {
@@ -10053,6 +10218,15 @@ exports.CameraParameters = {
10053
10218
  if (message.camera !== 0) {
10054
10219
  writer.uint32(64).int32(message.camera);
10055
10220
  }
10221
+ if (message.mtuSize !== 0) {
10222
+ writer.uint32(192).uint32(message.mtuSize);
10223
+ }
10224
+ if (message.recordingCodec !== 0) {
10225
+ writer.uint32(200).int32(message.recordingCodec);
10226
+ }
10227
+ if (message.recordingBitrate !== 0) {
10228
+ writer.uint32(208).int32(message.recordingBitrate);
10229
+ }
10056
10230
  return writer;
10057
10231
  },
10058
10232
  decode(input, length) {
@@ -10216,6 +10390,27 @@ exports.CameraParameters = {
10216
10390
  message.camera = reader.int32();
10217
10391
  continue;
10218
10392
  }
10393
+ case 24: {
10394
+ if (tag !== 192) {
10395
+ break;
10396
+ }
10397
+ message.mtuSize = reader.uint32();
10398
+ continue;
10399
+ }
10400
+ case 25: {
10401
+ if (tag !== 200) {
10402
+ break;
10403
+ }
10404
+ message.recordingCodec = reader.int32();
10405
+ continue;
10406
+ }
10407
+ case 26: {
10408
+ if (tag !== 208) {
10409
+ break;
10410
+ }
10411
+ message.recordingBitrate = reader.int32();
10412
+ continue;
10413
+ }
10219
10414
  }
10220
10415
  if ((tag & 7) === 4 || tag === 0) {
10221
10416
  break;
@@ -10248,6 +10443,9 @@ exports.CameraParameters = {
10248
10443
  streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
10249
10444
  framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
10250
10445
  camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
10446
+ mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
10447
+ recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
10448
+ recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
10251
10449
  };
10252
10450
  },
10253
10451
  toJSON(message) {
@@ -10318,6 +10516,15 @@ exports.CameraParameters = {
10318
10516
  if (message.camera !== 0) {
10319
10517
  obj.camera = cameraToJSON(message.camera);
10320
10518
  }
10519
+ if (message.mtuSize !== 0) {
10520
+ obj.mtuSize = Math.round(message.mtuSize);
10521
+ }
10522
+ if (message.recordingCodec !== 0) {
10523
+ obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
10524
+ }
10525
+ if (message.recordingBitrate !== 0) {
10526
+ obj.recordingBitrate = Math.round(message.recordingBitrate);
10527
+ }
10321
10528
  return obj;
10322
10529
  },
10323
10530
  create(base) {
@@ -10347,6 +10554,9 @@ exports.CameraParameters = {
10347
10554
  message.streamingProtocol = object.streamingProtocol ?? 0;
10348
10555
  message.framerate = object.framerate ?? 0;
10349
10556
  message.camera = object.camera ?? 0;
10557
+ message.mtuSize = object.mtuSize ?? 0;
10558
+ message.recordingCodec = object.recordingCodec ?? 0;
10559
+ message.recordingBitrate = object.recordingBitrate ?? 0;
10350
10560
  return message;
10351
10561
  },
10352
10562
  };
@@ -13202,23 +13412,26 @@ exports.CPUInfo = {
13202
13412
  return message;
13203
13413
  },
13204
13414
  };
13205
- function createBaseSurfaceUnitBatteryInfo() {
13206
- return { status: 0, level: 0 };
13415
+ function createBaseCpuCoreLoad() {
13416
+ return { coreIndex: 0, load: 0, frequencyMhz: 0 };
13207
13417
  }
13208
- exports.SurfaceUnitBatteryInfo = {
13418
+ exports.CpuCoreLoad = {
13209
13419
  encode(message, writer = new wire_1.BinaryWriter()) {
13210
- if (message.status !== 0) {
13211
- writer.uint32(8).int32(message.status);
13420
+ if (message.coreIndex !== 0) {
13421
+ writer.uint32(8).uint32(message.coreIndex);
13212
13422
  }
13213
- if (message.level !== 0) {
13214
- writer.uint32(21).float(message.level);
13423
+ if (message.load !== 0) {
13424
+ writer.uint32(21).float(message.load);
13425
+ }
13426
+ if (message.frequencyMhz !== 0) {
13427
+ writer.uint32(29).float(message.frequencyMhz);
13215
13428
  }
13216
13429
  return writer;
13217
13430
  },
13218
13431
  decode(input, length) {
13219
13432
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13220
13433
  const end = length === undefined ? reader.len : reader.pos + length;
13221
- const message = createBaseSurfaceUnitBatteryInfo();
13434
+ const message = createBaseCpuCoreLoad();
13222
13435
  while (reader.pos < end) {
13223
13436
  const tag = reader.uint32();
13224
13437
  switch (tag >>> 3) {
@@ -13226,14 +13439,21 @@ exports.SurfaceUnitBatteryInfo = {
13226
13439
  if (tag !== 8) {
13227
13440
  break;
13228
13441
  }
13229
- message.status = reader.int32();
13442
+ message.coreIndex = reader.uint32();
13230
13443
  continue;
13231
13444
  }
13232
13445
  case 2: {
13233
13446
  if (tag !== 21) {
13234
13447
  break;
13235
13448
  }
13236
- message.level = reader.float();
13449
+ message.load = reader.float();
13450
+ continue;
13451
+ }
13452
+ case 3: {
13453
+ if (tag !== 29) {
13454
+ break;
13455
+ }
13456
+ message.frequencyMhz = reader.float();
13237
13457
  continue;
13238
13458
  }
13239
13459
  }
@@ -13246,52 +13466,67 @@ exports.SurfaceUnitBatteryInfo = {
13246
13466
  },
13247
13467
  fromJSON(object) {
13248
13468
  return {
13249
- status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
13250
- level: isSet(object.level) ? gt.Number(object.level) : 0,
13469
+ coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
13470
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13471
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13251
13472
  };
13252
13473
  },
13253
13474
  toJSON(message) {
13254
13475
  const obj = {};
13255
- if (message.status !== 0) {
13256
- obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
13476
+ if (message.coreIndex !== 0) {
13477
+ obj.coreIndex = Math.round(message.coreIndex);
13257
13478
  }
13258
- if (message.level !== 0) {
13259
- obj.level = message.level;
13479
+ if (message.load !== 0) {
13480
+ obj.load = message.load;
13481
+ }
13482
+ if (message.frequencyMhz !== 0) {
13483
+ obj.frequencyMhz = message.frequencyMhz;
13260
13484
  }
13261
13485
  return obj;
13262
13486
  },
13263
13487
  create(base) {
13264
- return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
13488
+ return exports.CpuCoreLoad.fromPartial(base ?? {});
13265
13489
  },
13266
13490
  fromPartial(object) {
13267
- const message = createBaseSurfaceUnitBatteryInfo();
13268
- message.status = object.status ?? 0;
13269
- message.level = object.level ?? 0;
13491
+ const message = createBaseCpuCoreLoad();
13492
+ message.coreIndex = object.coreIndex ?? 0;
13493
+ message.load = object.load ?? 0;
13494
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13270
13495
  return message;
13271
13496
  },
13272
13497
  };
13273
- function createBaseSurfaceUnitVersionInfo() {
13274
- return { version: "" };
13498
+ function createBaseGpuInfo() {
13499
+ return { load: 0, frequencyMhz: 0 };
13275
13500
  }
13276
- exports.SurfaceUnitVersionInfo = {
13501
+ exports.GpuInfo = {
13277
13502
  encode(message, writer = new wire_1.BinaryWriter()) {
13278
- if (message.version !== "") {
13279
- writer.uint32(10).string(message.version);
13503
+ if (message.load !== 0) {
13504
+ writer.uint32(13).float(message.load);
13505
+ }
13506
+ if (message.frequencyMhz !== 0) {
13507
+ writer.uint32(21).float(message.frequencyMhz);
13280
13508
  }
13281
13509
  return writer;
13282
13510
  },
13283
13511
  decode(input, length) {
13284
13512
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13285
13513
  const end = length === undefined ? reader.len : reader.pos + length;
13286
- const message = createBaseSurfaceUnitVersionInfo();
13514
+ const message = createBaseGpuInfo();
13287
13515
  while (reader.pos < end) {
13288
13516
  const tag = reader.uint32();
13289
13517
  switch (tag >>> 3) {
13290
13518
  case 1: {
13291
- if (tag !== 10) {
13519
+ if (tag !== 13) {
13292
13520
  break;
13293
13521
  }
13294
- message.version = reader.string();
13522
+ message.load = reader.float();
13523
+ continue;
13524
+ }
13525
+ case 2: {
13526
+ if (tag !== 21) {
13527
+ break;
13528
+ }
13529
+ message.frequencyMhz = reader.float();
13295
13530
  continue;
13296
13531
  }
13297
13532
  }
@@ -13303,21 +13538,1444 @@ exports.SurfaceUnitVersionInfo = {
13303
13538
  return message;
13304
13539
  },
13305
13540
  fromJSON(object) {
13306
- return { version: isSet(object.version) ? gt.String(object.version) : "" };
13541
+ return {
13542
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13543
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13544
+ };
13307
13545
  },
13308
13546
  toJSON(message) {
13309
13547
  const obj = {};
13310
- if (message.version !== "") {
13311
- obj.version = message.version;
13548
+ if (message.load !== 0) {
13549
+ obj.load = message.load;
13550
+ }
13551
+ if (message.frequencyMhz !== 0) {
13552
+ obj.frequencyMhz = message.frequencyMhz;
13312
13553
  }
13313
13554
  return obj;
13314
13555
  },
13315
13556
  create(base) {
13316
- return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
13557
+ return exports.GpuInfo.fromPartial(base ?? {});
13317
13558
  },
13318
13559
  fromPartial(object) {
13319
- const message = createBaseSurfaceUnitVersionInfo();
13320
- message.version = object.version ?? "";
13560
+ const message = createBaseGpuInfo();
13561
+ message.load = object.load ?? 0;
13562
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13563
+ return message;
13564
+ },
13565
+ };
13566
+ function createBaseDlaInfo() {
13567
+ return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
13568
+ }
13569
+ exports.DlaInfo = {
13570
+ encode(message, writer = new wire_1.BinaryWriter()) {
13571
+ if (message.engineIndex !== 0) {
13572
+ writer.uint32(8).uint32(message.engineIndex);
13573
+ }
13574
+ if (message.load !== 0) {
13575
+ writer.uint32(21).float(message.load);
13576
+ }
13577
+ if (message.frequencyMhz !== 0) {
13578
+ writer.uint32(29).float(message.frequencyMhz);
13579
+ }
13580
+ if (message.enabled !== false) {
13581
+ writer.uint32(32).bool(message.enabled);
13582
+ }
13583
+ if (message.falconFrequencyMhz !== 0) {
13584
+ writer.uint32(45).float(message.falconFrequencyMhz);
13585
+ }
13586
+ return writer;
13587
+ },
13588
+ decode(input, length) {
13589
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13590
+ const end = length === undefined ? reader.len : reader.pos + length;
13591
+ const message = createBaseDlaInfo();
13592
+ while (reader.pos < end) {
13593
+ const tag = reader.uint32();
13594
+ switch (tag >>> 3) {
13595
+ case 1: {
13596
+ if (tag !== 8) {
13597
+ break;
13598
+ }
13599
+ message.engineIndex = reader.uint32();
13600
+ continue;
13601
+ }
13602
+ case 2: {
13603
+ if (tag !== 21) {
13604
+ break;
13605
+ }
13606
+ message.load = reader.float();
13607
+ continue;
13608
+ }
13609
+ case 3: {
13610
+ if (tag !== 29) {
13611
+ break;
13612
+ }
13613
+ message.frequencyMhz = reader.float();
13614
+ continue;
13615
+ }
13616
+ case 4: {
13617
+ if (tag !== 32) {
13618
+ break;
13619
+ }
13620
+ message.enabled = reader.bool();
13621
+ continue;
13622
+ }
13623
+ case 5: {
13624
+ if (tag !== 45) {
13625
+ break;
13626
+ }
13627
+ message.falconFrequencyMhz = reader.float();
13628
+ continue;
13629
+ }
13630
+ }
13631
+ if ((tag & 7) === 4 || tag === 0) {
13632
+ break;
13633
+ }
13634
+ reader.skip(tag & 7);
13635
+ }
13636
+ return message;
13637
+ },
13638
+ fromJSON(object) {
13639
+ return {
13640
+ engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
13641
+ load: isSet(object.load) ? gt.Number(object.load) : 0,
13642
+ frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
13643
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
13644
+ falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
13645
+ };
13646
+ },
13647
+ toJSON(message) {
13648
+ const obj = {};
13649
+ if (message.engineIndex !== 0) {
13650
+ obj.engineIndex = Math.round(message.engineIndex);
13651
+ }
13652
+ if (message.load !== 0) {
13653
+ obj.load = message.load;
13654
+ }
13655
+ if (message.frequencyMhz !== 0) {
13656
+ obj.frequencyMhz = message.frequencyMhz;
13657
+ }
13658
+ if (message.enabled !== false) {
13659
+ obj.enabled = message.enabled;
13660
+ }
13661
+ if (message.falconFrequencyMhz !== 0) {
13662
+ obj.falconFrequencyMhz = message.falconFrequencyMhz;
13663
+ }
13664
+ return obj;
13665
+ },
13666
+ create(base) {
13667
+ return exports.DlaInfo.fromPartial(base ?? {});
13668
+ },
13669
+ fromPartial(object) {
13670
+ const message = createBaseDlaInfo();
13671
+ message.engineIndex = object.engineIndex ?? 0;
13672
+ message.load = object.load ?? 0;
13673
+ message.frequencyMhz = object.frequencyMhz ?? 0;
13674
+ message.enabled = object.enabled ?? false;
13675
+ message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
13676
+ return message;
13677
+ },
13678
+ };
13679
+ function createBaseMemoryInfo() {
13680
+ return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
13681
+ }
13682
+ exports.MemoryInfo = {
13683
+ encode(message, writer = new wire_1.BinaryWriter()) {
13684
+ if (message.totalBytes !== 0) {
13685
+ writer.uint32(8).uint64(message.totalBytes);
13686
+ }
13687
+ if (message.usedBytes !== 0) {
13688
+ writer.uint32(16).uint64(message.usedBytes);
13689
+ }
13690
+ if (message.cachedBytes !== 0) {
13691
+ writer.uint32(24).uint64(message.cachedBytes);
13692
+ }
13693
+ if (message.busLoad !== 0) {
13694
+ writer.uint32(37).float(message.busLoad);
13695
+ }
13696
+ return writer;
13697
+ },
13698
+ decode(input, length) {
13699
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13700
+ const end = length === undefined ? reader.len : reader.pos + length;
13701
+ const message = createBaseMemoryInfo();
13702
+ while (reader.pos < end) {
13703
+ const tag = reader.uint32();
13704
+ switch (tag >>> 3) {
13705
+ case 1: {
13706
+ if (tag !== 8) {
13707
+ break;
13708
+ }
13709
+ message.totalBytes = longToNumber(reader.uint64());
13710
+ continue;
13711
+ }
13712
+ case 2: {
13713
+ if (tag !== 16) {
13714
+ break;
13715
+ }
13716
+ message.usedBytes = longToNumber(reader.uint64());
13717
+ continue;
13718
+ }
13719
+ case 3: {
13720
+ if (tag !== 24) {
13721
+ break;
13722
+ }
13723
+ message.cachedBytes = longToNumber(reader.uint64());
13724
+ continue;
13725
+ }
13726
+ case 4: {
13727
+ if (tag !== 37) {
13728
+ break;
13729
+ }
13730
+ message.busLoad = reader.float();
13731
+ continue;
13732
+ }
13733
+ }
13734
+ if ((tag & 7) === 4 || tag === 0) {
13735
+ break;
13736
+ }
13737
+ reader.skip(tag & 7);
13738
+ }
13739
+ return message;
13740
+ },
13741
+ fromJSON(object) {
13742
+ return {
13743
+ totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
13744
+ usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
13745
+ cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
13746
+ busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
13747
+ };
13748
+ },
13749
+ toJSON(message) {
13750
+ const obj = {};
13751
+ if (message.totalBytes !== 0) {
13752
+ obj.totalBytes = Math.round(message.totalBytes);
13753
+ }
13754
+ if (message.usedBytes !== 0) {
13755
+ obj.usedBytes = Math.round(message.usedBytes);
13756
+ }
13757
+ if (message.cachedBytes !== 0) {
13758
+ obj.cachedBytes = Math.round(message.cachedBytes);
13759
+ }
13760
+ if (message.busLoad !== 0) {
13761
+ obj.busLoad = message.busLoad;
13762
+ }
13763
+ return obj;
13764
+ },
13765
+ create(base) {
13766
+ return exports.MemoryInfo.fromPartial(base ?? {});
13767
+ },
13768
+ fromPartial(object) {
13769
+ const message = createBaseMemoryInfo();
13770
+ message.totalBytes = object.totalBytes ?? 0;
13771
+ message.usedBytes = object.usedBytes ?? 0;
13772
+ message.cachedBytes = object.cachedBytes ?? 0;
13773
+ message.busLoad = object.busLoad ?? 0;
13774
+ return message;
13775
+ },
13776
+ };
13777
+ function createBaseThermalZone() {
13778
+ return { zone: 0, temperature: 0 };
13779
+ }
13780
+ exports.ThermalZone = {
13781
+ encode(message, writer = new wire_1.BinaryWriter()) {
13782
+ if (message.zone !== 0) {
13783
+ writer.uint32(8).int32(message.zone);
13784
+ }
13785
+ if (message.temperature !== 0) {
13786
+ writer.uint32(21).float(message.temperature);
13787
+ }
13788
+ return writer;
13789
+ },
13790
+ decode(input, length) {
13791
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13792
+ const end = length === undefined ? reader.len : reader.pos + length;
13793
+ const message = createBaseThermalZone();
13794
+ while (reader.pos < end) {
13795
+ const tag = reader.uint32();
13796
+ switch (tag >>> 3) {
13797
+ case 1: {
13798
+ if (tag !== 8) {
13799
+ break;
13800
+ }
13801
+ message.zone = reader.int32();
13802
+ continue;
13803
+ }
13804
+ case 2: {
13805
+ if (tag !== 21) {
13806
+ break;
13807
+ }
13808
+ message.temperature = reader.float();
13809
+ continue;
13810
+ }
13811
+ }
13812
+ if ((tag & 7) === 4 || tag === 0) {
13813
+ break;
13814
+ }
13815
+ reader.skip(tag & 7);
13816
+ }
13817
+ return message;
13818
+ },
13819
+ fromJSON(object) {
13820
+ return {
13821
+ zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
13822
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
13823
+ };
13824
+ },
13825
+ toJSON(message) {
13826
+ const obj = {};
13827
+ if (message.zone !== 0) {
13828
+ obj.zone = thermalZoneIdToJSON(message.zone);
13829
+ }
13830
+ if (message.temperature !== 0) {
13831
+ obj.temperature = message.temperature;
13832
+ }
13833
+ return obj;
13834
+ },
13835
+ create(base) {
13836
+ return exports.ThermalZone.fromPartial(base ?? {});
13837
+ },
13838
+ fromPartial(object) {
13839
+ const message = createBaseThermalZone();
13840
+ message.zone = object.zone ?? 0;
13841
+ message.temperature = object.temperature ?? 0;
13842
+ return message;
13843
+ },
13844
+ };
13845
+ function createBaseVideoCodecInfo() {
13846
+ return {
13847
+ encoderActive: false,
13848
+ encoderFrequencyMhz: 0,
13849
+ decoderActive: false,
13850
+ decoderFrequencyMhz: 0,
13851
+ nvjpgActive: false,
13852
+ nvjpgFrequencyMhz: 0,
13853
+ vicActive: false,
13854
+ vicFrequencyMhz: 0,
13855
+ vpuActive: false,
13856
+ vpuFrequencyMhz: 0,
13857
+ vpuCodecIrqCount: 0,
13858
+ vpuJpgIrqCount: 0,
13859
+ };
13860
+ }
13861
+ exports.VideoCodecInfo = {
13862
+ encode(message, writer = new wire_1.BinaryWriter()) {
13863
+ if (message.encoderActive !== false) {
13864
+ writer.uint32(8).bool(message.encoderActive);
13865
+ }
13866
+ if (message.encoderFrequencyMhz !== 0) {
13867
+ writer.uint32(21).float(message.encoderFrequencyMhz);
13868
+ }
13869
+ if (message.decoderActive !== false) {
13870
+ writer.uint32(24).bool(message.decoderActive);
13871
+ }
13872
+ if (message.decoderFrequencyMhz !== 0) {
13873
+ writer.uint32(37).float(message.decoderFrequencyMhz);
13874
+ }
13875
+ if (message.nvjpgActive !== false) {
13876
+ writer.uint32(40).bool(message.nvjpgActive);
13877
+ }
13878
+ if (message.nvjpgFrequencyMhz !== 0) {
13879
+ writer.uint32(53).float(message.nvjpgFrequencyMhz);
13880
+ }
13881
+ if (message.vicActive !== false) {
13882
+ writer.uint32(56).bool(message.vicActive);
13883
+ }
13884
+ if (message.vicFrequencyMhz !== 0) {
13885
+ writer.uint32(69).float(message.vicFrequencyMhz);
13886
+ }
13887
+ if (message.vpuActive !== false) {
13888
+ writer.uint32(72).bool(message.vpuActive);
13889
+ }
13890
+ if (message.vpuFrequencyMhz !== 0) {
13891
+ writer.uint32(85).float(message.vpuFrequencyMhz);
13892
+ }
13893
+ if (message.vpuCodecIrqCount !== 0) {
13894
+ writer.uint32(88).uint32(message.vpuCodecIrqCount);
13895
+ }
13896
+ if (message.vpuJpgIrqCount !== 0) {
13897
+ writer.uint32(96).uint32(message.vpuJpgIrqCount);
13898
+ }
13899
+ return writer;
13900
+ },
13901
+ decode(input, length) {
13902
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
13903
+ const end = length === undefined ? reader.len : reader.pos + length;
13904
+ const message = createBaseVideoCodecInfo();
13905
+ while (reader.pos < end) {
13906
+ const tag = reader.uint32();
13907
+ switch (tag >>> 3) {
13908
+ case 1: {
13909
+ if (tag !== 8) {
13910
+ break;
13911
+ }
13912
+ message.encoderActive = reader.bool();
13913
+ continue;
13914
+ }
13915
+ case 2: {
13916
+ if (tag !== 21) {
13917
+ break;
13918
+ }
13919
+ message.encoderFrequencyMhz = reader.float();
13920
+ continue;
13921
+ }
13922
+ case 3: {
13923
+ if (tag !== 24) {
13924
+ break;
13925
+ }
13926
+ message.decoderActive = reader.bool();
13927
+ continue;
13928
+ }
13929
+ case 4: {
13930
+ if (tag !== 37) {
13931
+ break;
13932
+ }
13933
+ message.decoderFrequencyMhz = reader.float();
13934
+ continue;
13935
+ }
13936
+ case 5: {
13937
+ if (tag !== 40) {
13938
+ break;
13939
+ }
13940
+ message.nvjpgActive = reader.bool();
13941
+ continue;
13942
+ }
13943
+ case 6: {
13944
+ if (tag !== 53) {
13945
+ break;
13946
+ }
13947
+ message.nvjpgFrequencyMhz = reader.float();
13948
+ continue;
13949
+ }
13950
+ case 7: {
13951
+ if (tag !== 56) {
13952
+ break;
13953
+ }
13954
+ message.vicActive = reader.bool();
13955
+ continue;
13956
+ }
13957
+ case 8: {
13958
+ if (tag !== 69) {
13959
+ break;
13960
+ }
13961
+ message.vicFrequencyMhz = reader.float();
13962
+ continue;
13963
+ }
13964
+ case 9: {
13965
+ if (tag !== 72) {
13966
+ break;
13967
+ }
13968
+ message.vpuActive = reader.bool();
13969
+ continue;
13970
+ }
13971
+ case 10: {
13972
+ if (tag !== 85) {
13973
+ break;
13974
+ }
13975
+ message.vpuFrequencyMhz = reader.float();
13976
+ continue;
13977
+ }
13978
+ case 11: {
13979
+ if (tag !== 88) {
13980
+ break;
13981
+ }
13982
+ message.vpuCodecIrqCount = reader.uint32();
13983
+ continue;
13984
+ }
13985
+ case 12: {
13986
+ if (tag !== 96) {
13987
+ break;
13988
+ }
13989
+ message.vpuJpgIrqCount = reader.uint32();
13990
+ continue;
13991
+ }
13992
+ }
13993
+ if ((tag & 7) === 4 || tag === 0) {
13994
+ break;
13995
+ }
13996
+ reader.skip(tag & 7);
13997
+ }
13998
+ return message;
13999
+ },
14000
+ fromJSON(object) {
14001
+ return {
14002
+ encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
14003
+ encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
14004
+ decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
14005
+ decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
14006
+ nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
14007
+ nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
14008
+ vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
14009
+ vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
14010
+ vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
14011
+ vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
14012
+ vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
14013
+ vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
14014
+ };
14015
+ },
14016
+ toJSON(message) {
14017
+ const obj = {};
14018
+ if (message.encoderActive !== false) {
14019
+ obj.encoderActive = message.encoderActive;
14020
+ }
14021
+ if (message.encoderFrequencyMhz !== 0) {
14022
+ obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
14023
+ }
14024
+ if (message.decoderActive !== false) {
14025
+ obj.decoderActive = message.decoderActive;
14026
+ }
14027
+ if (message.decoderFrequencyMhz !== 0) {
14028
+ obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
14029
+ }
14030
+ if (message.nvjpgActive !== false) {
14031
+ obj.nvjpgActive = message.nvjpgActive;
14032
+ }
14033
+ if (message.nvjpgFrequencyMhz !== 0) {
14034
+ obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
14035
+ }
14036
+ if (message.vicActive !== false) {
14037
+ obj.vicActive = message.vicActive;
14038
+ }
14039
+ if (message.vicFrequencyMhz !== 0) {
14040
+ obj.vicFrequencyMhz = message.vicFrequencyMhz;
14041
+ }
14042
+ if (message.vpuActive !== false) {
14043
+ obj.vpuActive = message.vpuActive;
14044
+ }
14045
+ if (message.vpuFrequencyMhz !== 0) {
14046
+ obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
14047
+ }
14048
+ if (message.vpuCodecIrqCount !== 0) {
14049
+ obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
14050
+ }
14051
+ if (message.vpuJpgIrqCount !== 0) {
14052
+ obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
14053
+ }
14054
+ return obj;
14055
+ },
14056
+ create(base) {
14057
+ return exports.VideoCodecInfo.fromPartial(base ?? {});
14058
+ },
14059
+ fromPartial(object) {
14060
+ const message = createBaseVideoCodecInfo();
14061
+ message.encoderActive = object.encoderActive ?? false;
14062
+ message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
14063
+ message.decoderActive = object.decoderActive ?? false;
14064
+ message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
14065
+ message.nvjpgActive = object.nvjpgActive ?? false;
14066
+ message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
14067
+ message.vicActive = object.vicActive ?? false;
14068
+ message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
14069
+ message.vpuActive = object.vpuActive ?? false;
14070
+ message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
14071
+ message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
14072
+ message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
14073
+ return message;
14074
+ },
14075
+ };
14076
+ function createBaseSystemPerformanceInfo() {
14077
+ return {
14078
+ cpuCores: [],
14079
+ cpuUtilization: 0,
14080
+ gpu: undefined,
14081
+ dlaEngines: [],
14082
+ memory: undefined,
14083
+ thermalZones: [],
14084
+ videoCodec: undefined,
14085
+ mainQueueLoad: 0,
14086
+ guestportQueueLoad: 0,
14087
+ commQueueLoad: 0,
14088
+ cameraQueueLoad: 0,
14089
+ overlayQueueLoad: 0,
14090
+ positionObserverQueueLoad: 0,
14091
+ };
14092
+ }
14093
+ exports.SystemPerformanceInfo = {
14094
+ encode(message, writer = new wire_1.BinaryWriter()) {
14095
+ for (const v of message.cpuCores) {
14096
+ exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
14097
+ }
14098
+ if (message.cpuUtilization !== 0) {
14099
+ writer.uint32(21).float(message.cpuUtilization);
14100
+ }
14101
+ if (message.gpu !== undefined) {
14102
+ exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
14103
+ }
14104
+ for (const v of message.dlaEngines) {
14105
+ exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
14106
+ }
14107
+ if (message.memory !== undefined) {
14108
+ exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
14109
+ }
14110
+ for (const v of message.thermalZones) {
14111
+ exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
14112
+ }
14113
+ if (message.videoCodec !== undefined) {
14114
+ exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
14115
+ }
14116
+ if (message.mainQueueLoad !== 0) {
14117
+ writer.uint32(69).float(message.mainQueueLoad);
14118
+ }
14119
+ if (message.guestportQueueLoad !== 0) {
14120
+ writer.uint32(77).float(message.guestportQueueLoad);
14121
+ }
14122
+ if (message.commQueueLoad !== 0) {
14123
+ writer.uint32(85).float(message.commQueueLoad);
14124
+ }
14125
+ if (message.cameraQueueLoad !== 0) {
14126
+ writer.uint32(93).float(message.cameraQueueLoad);
14127
+ }
14128
+ if (message.overlayQueueLoad !== 0) {
14129
+ writer.uint32(101).float(message.overlayQueueLoad);
14130
+ }
14131
+ if (message.positionObserverQueueLoad !== 0) {
14132
+ writer.uint32(109).float(message.positionObserverQueueLoad);
14133
+ }
14134
+ return writer;
14135
+ },
14136
+ decode(input, length) {
14137
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14138
+ const end = length === undefined ? reader.len : reader.pos + length;
14139
+ const message = createBaseSystemPerformanceInfo();
14140
+ while (reader.pos < end) {
14141
+ const tag = reader.uint32();
14142
+ switch (tag >>> 3) {
14143
+ case 1: {
14144
+ if (tag !== 10) {
14145
+ break;
14146
+ }
14147
+ message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
14148
+ continue;
14149
+ }
14150
+ case 2: {
14151
+ if (tag !== 21) {
14152
+ break;
14153
+ }
14154
+ message.cpuUtilization = reader.float();
14155
+ continue;
14156
+ }
14157
+ case 3: {
14158
+ if (tag !== 26) {
14159
+ break;
14160
+ }
14161
+ message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
14162
+ continue;
14163
+ }
14164
+ case 4: {
14165
+ if (tag !== 34) {
14166
+ break;
14167
+ }
14168
+ message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
14169
+ continue;
14170
+ }
14171
+ case 5: {
14172
+ if (tag !== 42) {
14173
+ break;
14174
+ }
14175
+ message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
14176
+ continue;
14177
+ }
14178
+ case 6: {
14179
+ if (tag !== 50) {
14180
+ break;
14181
+ }
14182
+ message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
14183
+ continue;
14184
+ }
14185
+ case 7: {
14186
+ if (tag !== 58) {
14187
+ break;
14188
+ }
14189
+ message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
14190
+ continue;
14191
+ }
14192
+ case 8: {
14193
+ if (tag !== 69) {
14194
+ break;
14195
+ }
14196
+ message.mainQueueLoad = reader.float();
14197
+ continue;
14198
+ }
14199
+ case 9: {
14200
+ if (tag !== 77) {
14201
+ break;
14202
+ }
14203
+ message.guestportQueueLoad = reader.float();
14204
+ continue;
14205
+ }
14206
+ case 10: {
14207
+ if (tag !== 85) {
14208
+ break;
14209
+ }
14210
+ message.commQueueLoad = reader.float();
14211
+ continue;
14212
+ }
14213
+ case 11: {
14214
+ if (tag !== 93) {
14215
+ break;
14216
+ }
14217
+ message.cameraQueueLoad = reader.float();
14218
+ continue;
14219
+ }
14220
+ case 12: {
14221
+ if (tag !== 101) {
14222
+ break;
14223
+ }
14224
+ message.overlayQueueLoad = reader.float();
14225
+ continue;
14226
+ }
14227
+ case 13: {
14228
+ if (tag !== 109) {
14229
+ break;
14230
+ }
14231
+ message.positionObserverQueueLoad = reader.float();
14232
+ continue;
14233
+ }
14234
+ }
14235
+ if ((tag & 7) === 4 || tag === 0) {
14236
+ break;
14237
+ }
14238
+ reader.skip(tag & 7);
14239
+ }
14240
+ return message;
14241
+ },
14242
+ fromJSON(object) {
14243
+ return {
14244
+ cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
14245
+ cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
14246
+ gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
14247
+ dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
14248
+ memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
14249
+ thermalZones: gt.Array.isArray(object?.thermalZones)
14250
+ ? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
14251
+ : [],
14252
+ videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
14253
+ mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
14254
+ guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
14255
+ commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
14256
+ cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
14257
+ overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
14258
+ positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
14259
+ ? gt.Number(object.positionObserverQueueLoad)
14260
+ : 0,
14261
+ };
14262
+ },
14263
+ toJSON(message) {
14264
+ const obj = {};
14265
+ if (message.cpuCores?.length) {
14266
+ obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
14267
+ }
14268
+ if (message.cpuUtilization !== 0) {
14269
+ obj.cpuUtilization = message.cpuUtilization;
14270
+ }
14271
+ if (message.gpu !== undefined) {
14272
+ obj.gpu = exports.GpuInfo.toJSON(message.gpu);
14273
+ }
14274
+ if (message.dlaEngines?.length) {
14275
+ obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
14276
+ }
14277
+ if (message.memory !== undefined) {
14278
+ obj.memory = exports.MemoryInfo.toJSON(message.memory);
14279
+ }
14280
+ if (message.thermalZones?.length) {
14281
+ obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
14282
+ }
14283
+ if (message.videoCodec !== undefined) {
14284
+ obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
14285
+ }
14286
+ if (message.mainQueueLoad !== 0) {
14287
+ obj.mainQueueLoad = message.mainQueueLoad;
14288
+ }
14289
+ if (message.guestportQueueLoad !== 0) {
14290
+ obj.guestportQueueLoad = message.guestportQueueLoad;
14291
+ }
14292
+ if (message.commQueueLoad !== 0) {
14293
+ obj.commQueueLoad = message.commQueueLoad;
14294
+ }
14295
+ if (message.cameraQueueLoad !== 0) {
14296
+ obj.cameraQueueLoad = message.cameraQueueLoad;
14297
+ }
14298
+ if (message.overlayQueueLoad !== 0) {
14299
+ obj.overlayQueueLoad = message.overlayQueueLoad;
14300
+ }
14301
+ if (message.positionObserverQueueLoad !== 0) {
14302
+ obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
14303
+ }
14304
+ return obj;
14305
+ },
14306
+ create(base) {
14307
+ return exports.SystemPerformanceInfo.fromPartial(base ?? {});
14308
+ },
14309
+ fromPartial(object) {
14310
+ const message = createBaseSystemPerformanceInfo();
14311
+ message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
14312
+ message.cpuUtilization = object.cpuUtilization ?? 0;
14313
+ message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
14314
+ message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
14315
+ message.memory = (object.memory !== undefined && object.memory !== null)
14316
+ ? exports.MemoryInfo.fromPartial(object.memory)
14317
+ : undefined;
14318
+ message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
14319
+ message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
14320
+ ? exports.VideoCodecInfo.fromPartial(object.videoCodec)
14321
+ : undefined;
14322
+ message.mainQueueLoad = object.mainQueueLoad ?? 0;
14323
+ message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
14324
+ message.commQueueLoad = object.commQueueLoad ?? 0;
14325
+ message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
14326
+ message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
14327
+ message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
14328
+ return message;
14329
+ },
14330
+ };
14331
+ function createBaseSurfaceUnitBatteryInfo() {
14332
+ return { status: 0, level: 0 };
14333
+ }
14334
+ exports.SurfaceUnitBatteryInfo = {
14335
+ encode(message, writer = new wire_1.BinaryWriter()) {
14336
+ if (message.status !== 0) {
14337
+ writer.uint32(8).int32(message.status);
14338
+ }
14339
+ if (message.level !== 0) {
14340
+ writer.uint32(21).float(message.level);
14341
+ }
14342
+ return writer;
14343
+ },
14344
+ decode(input, length) {
14345
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14346
+ const end = length === undefined ? reader.len : reader.pos + length;
14347
+ const message = createBaseSurfaceUnitBatteryInfo();
14348
+ while (reader.pos < end) {
14349
+ const tag = reader.uint32();
14350
+ switch (tag >>> 3) {
14351
+ case 1: {
14352
+ if (tag !== 8) {
14353
+ break;
14354
+ }
14355
+ message.status = reader.int32();
14356
+ continue;
14357
+ }
14358
+ case 2: {
14359
+ if (tag !== 21) {
14360
+ break;
14361
+ }
14362
+ message.level = reader.float();
14363
+ continue;
14364
+ }
14365
+ }
14366
+ if ((tag & 7) === 4 || tag === 0) {
14367
+ break;
14368
+ }
14369
+ reader.skip(tag & 7);
14370
+ }
14371
+ return message;
14372
+ },
14373
+ fromJSON(object) {
14374
+ return {
14375
+ status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
14376
+ level: isSet(object.level) ? gt.Number(object.level) : 0,
14377
+ };
14378
+ },
14379
+ toJSON(message) {
14380
+ const obj = {};
14381
+ if (message.status !== 0) {
14382
+ obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
14383
+ }
14384
+ if (message.level !== 0) {
14385
+ obj.level = message.level;
14386
+ }
14387
+ return obj;
14388
+ },
14389
+ create(base) {
14390
+ return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
14391
+ },
14392
+ fromPartial(object) {
14393
+ const message = createBaseSurfaceUnitBatteryInfo();
14394
+ message.status = object.status ?? 0;
14395
+ message.level = object.level ?? 0;
14396
+ return message;
14397
+ },
14398
+ };
14399
+ function createBaseSurfaceUnitVersionInfo() {
14400
+ return { version: "" };
14401
+ }
14402
+ exports.SurfaceUnitVersionInfo = {
14403
+ encode(message, writer = new wire_1.BinaryWriter()) {
14404
+ if (message.version !== "") {
14405
+ writer.uint32(10).string(message.version);
14406
+ }
14407
+ return writer;
14408
+ },
14409
+ decode(input, length) {
14410
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14411
+ const end = length === undefined ? reader.len : reader.pos + length;
14412
+ const message = createBaseSurfaceUnitVersionInfo();
14413
+ while (reader.pos < end) {
14414
+ const tag = reader.uint32();
14415
+ switch (tag >>> 3) {
14416
+ case 1: {
14417
+ if (tag !== 10) {
14418
+ break;
14419
+ }
14420
+ message.version = reader.string();
14421
+ continue;
14422
+ }
14423
+ }
14424
+ if ((tag & 7) === 4 || tag === 0) {
14425
+ break;
14426
+ }
14427
+ reader.skip(tag & 7);
14428
+ }
14429
+ return message;
14430
+ },
14431
+ fromJSON(object) {
14432
+ return { version: isSet(object.version) ? gt.String(object.version) : "" };
14433
+ },
14434
+ toJSON(message) {
14435
+ const obj = {};
14436
+ if (message.version !== "") {
14437
+ obj.version = message.version;
14438
+ }
14439
+ return obj;
14440
+ },
14441
+ create(base) {
14442
+ return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
14443
+ },
14444
+ fromPartial(object) {
14445
+ const message = createBaseSurfaceUnitVersionInfo();
14446
+ message.version = object.version ?? "";
14447
+ return message;
14448
+ },
14449
+ };
14450
+ function createBaseBoundingBox() {
14451
+ return { x: 0, y: 0, width: 0, height: 0 };
14452
+ }
14453
+ exports.BoundingBox = {
14454
+ encode(message, writer = new wire_1.BinaryWriter()) {
14455
+ if (message.x !== 0) {
14456
+ writer.uint32(8).uint32(message.x);
14457
+ }
14458
+ if (message.y !== 0) {
14459
+ writer.uint32(16).uint32(message.y);
14460
+ }
14461
+ if (message.width !== 0) {
14462
+ writer.uint32(24).uint32(message.width);
14463
+ }
14464
+ if (message.height !== 0) {
14465
+ writer.uint32(32).uint32(message.height);
14466
+ }
14467
+ return writer;
14468
+ },
14469
+ decode(input, length) {
14470
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14471
+ const end = length === undefined ? reader.len : reader.pos + length;
14472
+ const message = createBaseBoundingBox();
14473
+ while (reader.pos < end) {
14474
+ const tag = reader.uint32();
14475
+ switch (tag >>> 3) {
14476
+ case 1: {
14477
+ if (tag !== 8) {
14478
+ break;
14479
+ }
14480
+ message.x = reader.uint32();
14481
+ continue;
14482
+ }
14483
+ case 2: {
14484
+ if (tag !== 16) {
14485
+ break;
14486
+ }
14487
+ message.y = reader.uint32();
14488
+ continue;
14489
+ }
14490
+ case 3: {
14491
+ if (tag !== 24) {
14492
+ break;
14493
+ }
14494
+ message.width = reader.uint32();
14495
+ continue;
14496
+ }
14497
+ case 4: {
14498
+ if (tag !== 32) {
14499
+ break;
14500
+ }
14501
+ message.height = reader.uint32();
14502
+ continue;
14503
+ }
14504
+ }
14505
+ if ((tag & 7) === 4 || tag === 0) {
14506
+ break;
14507
+ }
14508
+ reader.skip(tag & 7);
14509
+ }
14510
+ return message;
14511
+ },
14512
+ fromJSON(object) {
14513
+ return {
14514
+ x: isSet(object.x) ? gt.Number(object.x) : 0,
14515
+ y: isSet(object.y) ? gt.Number(object.y) : 0,
14516
+ width: isSet(object.width) ? gt.Number(object.width) : 0,
14517
+ height: isSet(object.height) ? gt.Number(object.height) : 0,
14518
+ };
14519
+ },
14520
+ toJSON(message) {
14521
+ const obj = {};
14522
+ if (message.x !== 0) {
14523
+ obj.x = Math.round(message.x);
14524
+ }
14525
+ if (message.y !== 0) {
14526
+ obj.y = Math.round(message.y);
14527
+ }
14528
+ if (message.width !== 0) {
14529
+ obj.width = Math.round(message.width);
14530
+ }
14531
+ if (message.height !== 0) {
14532
+ obj.height = Math.round(message.height);
14533
+ }
14534
+ return obj;
14535
+ },
14536
+ create(base) {
14537
+ return exports.BoundingBox.fromPartial(base ?? {});
14538
+ },
14539
+ fromPartial(object) {
14540
+ const message = createBaseBoundingBox();
14541
+ message.x = object.x ?? 0;
14542
+ message.y = object.y ?? 0;
14543
+ message.width = object.width ?? 0;
14544
+ message.height = object.height ?? 0;
14545
+ return message;
14546
+ },
14547
+ };
14548
+ function createBaseObjectDetection() {
14549
+ return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0 };
14550
+ }
14551
+ exports.ObjectDetection = {
14552
+ encode(message, writer = new wire_1.BinaryWriter()) {
14553
+ if (message.boundingBox !== undefined) {
14554
+ exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
14555
+ }
14556
+ if (message.confidence !== 0) {
14557
+ writer.uint32(21).float(message.confidence);
14558
+ }
14559
+ if (message.classId !== 0) {
14560
+ writer.uint32(24).uint32(message.classId);
14561
+ }
14562
+ if (message.className !== "") {
14563
+ writer.uint32(34).string(message.className);
14564
+ }
14565
+ if (message.trackingId !== 0) {
14566
+ writer.uint32(40).uint32(message.trackingId);
14567
+ }
14568
+ return writer;
14569
+ },
14570
+ decode(input, length) {
14571
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14572
+ const end = length === undefined ? reader.len : reader.pos + length;
14573
+ const message = createBaseObjectDetection();
14574
+ while (reader.pos < end) {
14575
+ const tag = reader.uint32();
14576
+ switch (tag >>> 3) {
14577
+ case 1: {
14578
+ if (tag !== 10) {
14579
+ break;
14580
+ }
14581
+ message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
14582
+ continue;
14583
+ }
14584
+ case 2: {
14585
+ if (tag !== 21) {
14586
+ break;
14587
+ }
14588
+ message.confidence = reader.float();
14589
+ continue;
14590
+ }
14591
+ case 3: {
14592
+ if (tag !== 24) {
14593
+ break;
14594
+ }
14595
+ message.classId = reader.uint32();
14596
+ continue;
14597
+ }
14598
+ case 4: {
14599
+ if (tag !== 34) {
14600
+ break;
14601
+ }
14602
+ message.className = reader.string();
14603
+ continue;
14604
+ }
14605
+ case 5: {
14606
+ if (tag !== 40) {
14607
+ break;
14608
+ }
14609
+ message.trackingId = reader.uint32();
14610
+ continue;
14611
+ }
14612
+ }
14613
+ if ((tag & 7) === 4 || tag === 0) {
14614
+ break;
14615
+ }
14616
+ reader.skip(tag & 7);
14617
+ }
14618
+ return message;
14619
+ },
14620
+ fromJSON(object) {
14621
+ return {
14622
+ boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
14623
+ confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
14624
+ classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
14625
+ className: isSet(object.className) ? gt.String(object.className) : "",
14626
+ trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
14627
+ };
14628
+ },
14629
+ toJSON(message) {
14630
+ const obj = {};
14631
+ if (message.boundingBox !== undefined) {
14632
+ obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
14633
+ }
14634
+ if (message.confidence !== 0) {
14635
+ obj.confidence = message.confidence;
14636
+ }
14637
+ if (message.classId !== 0) {
14638
+ obj.classId = Math.round(message.classId);
14639
+ }
14640
+ if (message.className !== "") {
14641
+ obj.className = message.className;
14642
+ }
14643
+ if (message.trackingId !== 0) {
14644
+ obj.trackingId = Math.round(message.trackingId);
14645
+ }
14646
+ return obj;
14647
+ },
14648
+ create(base) {
14649
+ return exports.ObjectDetection.fromPartial(base ?? {});
14650
+ },
14651
+ fromPartial(object) {
14652
+ const message = createBaseObjectDetection();
14653
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
14654
+ ? exports.BoundingBox.fromPartial(object.boundingBox)
14655
+ : undefined;
14656
+ message.confidence = object.confidence ?? 0;
14657
+ message.classId = object.classId ?? 0;
14658
+ message.className = object.className ?? "";
14659
+ message.trackingId = object.trackingId ?? 0;
14660
+ return message;
14661
+ },
14662
+ };
14663
+ function createBaseObjectDetections() {
14664
+ return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0 };
14665
+ }
14666
+ exports.ObjectDetections = {
14667
+ encode(message, writer = new wire_1.BinaryWriter()) {
14668
+ for (const v of message.detections) {
14669
+ exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
14670
+ }
14671
+ if (message.camera !== 0) {
14672
+ writer.uint32(16).int32(message.camera);
14673
+ }
14674
+ if (message.imageWidth !== 0) {
14675
+ writer.uint32(24).uint32(message.imageWidth);
14676
+ }
14677
+ if (message.imageHeight !== 0) {
14678
+ writer.uint32(32).uint32(message.imageHeight);
14679
+ }
14680
+ return writer;
14681
+ },
14682
+ decode(input, length) {
14683
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14684
+ const end = length === undefined ? reader.len : reader.pos + length;
14685
+ const message = createBaseObjectDetections();
14686
+ while (reader.pos < end) {
14687
+ const tag = reader.uint32();
14688
+ switch (tag >>> 3) {
14689
+ case 1: {
14690
+ if (tag !== 10) {
14691
+ break;
14692
+ }
14693
+ message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
14694
+ continue;
14695
+ }
14696
+ case 2: {
14697
+ if (tag !== 16) {
14698
+ break;
14699
+ }
14700
+ message.camera = reader.int32();
14701
+ continue;
14702
+ }
14703
+ case 3: {
14704
+ if (tag !== 24) {
14705
+ break;
14706
+ }
14707
+ message.imageWidth = reader.uint32();
14708
+ continue;
14709
+ }
14710
+ case 4: {
14711
+ if (tag !== 32) {
14712
+ break;
14713
+ }
14714
+ message.imageHeight = reader.uint32();
14715
+ continue;
14716
+ }
14717
+ }
14718
+ if ((tag & 7) === 4 || tag === 0) {
14719
+ break;
14720
+ }
14721
+ reader.skip(tag & 7);
14722
+ }
14723
+ return message;
14724
+ },
14725
+ fromJSON(object) {
14726
+ return {
14727
+ detections: gt.Array.isArray(object?.detections)
14728
+ ? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
14729
+ : [],
14730
+ camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
14731
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
14732
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
14733
+ };
14734
+ },
14735
+ toJSON(message) {
14736
+ const obj = {};
14737
+ if (message.detections?.length) {
14738
+ obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
14739
+ }
14740
+ if (message.camera !== 0) {
14741
+ obj.camera = cameraToJSON(message.camera);
14742
+ }
14743
+ if (message.imageWidth !== 0) {
14744
+ obj.imageWidth = Math.round(message.imageWidth);
14745
+ }
14746
+ if (message.imageHeight !== 0) {
14747
+ obj.imageHeight = Math.round(message.imageHeight);
14748
+ }
14749
+ return obj;
14750
+ },
14751
+ create(base) {
14752
+ return exports.ObjectDetections.fromPartial(base ?? {});
14753
+ },
14754
+ fromPartial(object) {
14755
+ const message = createBaseObjectDetections();
14756
+ message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
14757
+ message.camera = object.camera ?? 0;
14758
+ message.imageWidth = object.imageWidth ?? 0;
14759
+ message.imageHeight = object.imageHeight ?? 0;
14760
+ return message;
14761
+ },
14762
+ };
14763
+ function createBaseFilterMessage() {
14764
+ return { enabled: false, intensity: 0 };
14765
+ }
14766
+ exports.FilterMessage = {
14767
+ encode(message, writer = new wire_1.BinaryWriter()) {
14768
+ if (message.enabled !== false) {
14769
+ writer.uint32(8).bool(message.enabled);
14770
+ }
14771
+ if (message.intensity !== 0) {
14772
+ writer.uint32(21).float(message.intensity);
14773
+ }
14774
+ return writer;
14775
+ },
14776
+ decode(input, length) {
14777
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14778
+ const end = length === undefined ? reader.len : reader.pos + length;
14779
+ const message = createBaseFilterMessage();
14780
+ while (reader.pos < end) {
14781
+ const tag = reader.uint32();
14782
+ switch (tag >>> 3) {
14783
+ case 1: {
14784
+ if (tag !== 8) {
14785
+ break;
14786
+ }
14787
+ message.enabled = reader.bool();
14788
+ continue;
14789
+ }
14790
+ case 2: {
14791
+ if (tag !== 21) {
14792
+ break;
14793
+ }
14794
+ message.intensity = reader.float();
14795
+ continue;
14796
+ }
14797
+ }
14798
+ if ((tag & 7) === 4 || tag === 0) {
14799
+ break;
14800
+ }
14801
+ reader.skip(tag & 7);
14802
+ }
14803
+ return message;
14804
+ },
14805
+ fromJSON(object) {
14806
+ return {
14807
+ enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
14808
+ intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
14809
+ };
14810
+ },
14811
+ toJSON(message) {
14812
+ const obj = {};
14813
+ if (message.enabled !== false) {
14814
+ obj.enabled = message.enabled;
14815
+ }
14816
+ if (message.intensity !== 0) {
14817
+ obj.intensity = message.intensity;
14818
+ }
14819
+ return obj;
14820
+ },
14821
+ create(base) {
14822
+ return exports.FilterMessage.fromPartial(base ?? {});
14823
+ },
14824
+ fromPartial(object) {
14825
+ const message = createBaseFilterMessage();
14826
+ message.enabled = object.enabled ?? false;
14827
+ message.intensity = object.intensity ?? 0;
14828
+ return message;
14829
+ },
14830
+ };
14831
+ function createBaseCameraPanTiltZoom() {
14832
+ return { pan: 0, tilt: 0, zoom: 0 };
14833
+ }
14834
+ exports.CameraPanTiltZoom = {
14835
+ encode(message, writer = new wire_1.BinaryWriter()) {
14836
+ if (message.pan !== 0) {
14837
+ writer.uint32(13).float(message.pan);
14838
+ }
14839
+ if (message.tilt !== 0) {
14840
+ writer.uint32(21).float(message.tilt);
14841
+ }
14842
+ if (message.zoom !== 0) {
14843
+ writer.uint32(29).float(message.zoom);
14844
+ }
14845
+ return writer;
14846
+ },
14847
+ decode(input, length) {
14848
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14849
+ const end = length === undefined ? reader.len : reader.pos + length;
14850
+ const message = createBaseCameraPanTiltZoom();
14851
+ while (reader.pos < end) {
14852
+ const tag = reader.uint32();
14853
+ switch (tag >>> 3) {
14854
+ case 1: {
14855
+ if (tag !== 13) {
14856
+ break;
14857
+ }
14858
+ message.pan = reader.float();
14859
+ continue;
14860
+ }
14861
+ case 2: {
14862
+ if (tag !== 21) {
14863
+ break;
14864
+ }
14865
+ message.tilt = reader.float();
14866
+ continue;
14867
+ }
14868
+ case 3: {
14869
+ if (tag !== 29) {
14870
+ break;
14871
+ }
14872
+ message.zoom = reader.float();
14873
+ continue;
14874
+ }
14875
+ }
14876
+ if ((tag & 7) === 4 || tag === 0) {
14877
+ break;
14878
+ }
14879
+ reader.skip(tag & 7);
14880
+ }
14881
+ return message;
14882
+ },
14883
+ fromJSON(object) {
14884
+ return {
14885
+ pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
14886
+ tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
14887
+ zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
14888
+ };
14889
+ },
14890
+ toJSON(message) {
14891
+ const obj = {};
14892
+ if (message.pan !== 0) {
14893
+ obj.pan = message.pan;
14894
+ }
14895
+ if (message.tilt !== 0) {
14896
+ obj.tilt = message.tilt;
14897
+ }
14898
+ if (message.zoom !== 0) {
14899
+ obj.zoom = message.zoom;
14900
+ }
14901
+ return obj;
14902
+ },
14903
+ create(base) {
14904
+ return exports.CameraPanTiltZoom.fromPartial(base ?? {});
14905
+ },
14906
+ fromPartial(object) {
14907
+ const message = createBaseCameraPanTiltZoom();
14908
+ message.pan = object.pan ?? 0;
14909
+ message.tilt = object.tilt ?? 0;
14910
+ message.zoom = object.zoom ?? 0;
14911
+ return message;
14912
+ },
14913
+ };
14914
+ function createBaseOperatorInfo() {
14915
+ return { name: "", email: "" };
14916
+ }
14917
+ exports.OperatorInfo = {
14918
+ encode(message, writer = new wire_1.BinaryWriter()) {
14919
+ if (message.name !== "") {
14920
+ writer.uint32(10).string(message.name);
14921
+ }
14922
+ if (message.email !== "") {
14923
+ writer.uint32(18).string(message.email);
14924
+ }
14925
+ return writer;
14926
+ },
14927
+ decode(input, length) {
14928
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
14929
+ const end = length === undefined ? reader.len : reader.pos + length;
14930
+ const message = createBaseOperatorInfo();
14931
+ while (reader.pos < end) {
14932
+ const tag = reader.uint32();
14933
+ switch (tag >>> 3) {
14934
+ case 1: {
14935
+ if (tag !== 10) {
14936
+ break;
14937
+ }
14938
+ message.name = reader.string();
14939
+ continue;
14940
+ }
14941
+ case 2: {
14942
+ if (tag !== 18) {
14943
+ break;
14944
+ }
14945
+ message.email = reader.string();
14946
+ continue;
14947
+ }
14948
+ }
14949
+ if ((tag & 7) === 4 || tag === 0) {
14950
+ break;
14951
+ }
14952
+ reader.skip(tag & 7);
14953
+ }
14954
+ return message;
14955
+ },
14956
+ fromJSON(object) {
14957
+ return {
14958
+ name: isSet(object.name) ? gt.String(object.name) : "",
14959
+ email: isSet(object.email) ? gt.String(object.email) : "",
14960
+ };
14961
+ },
14962
+ toJSON(message) {
14963
+ const obj = {};
14964
+ if (message.name !== "") {
14965
+ obj.name = message.name;
14966
+ }
14967
+ if (message.email !== "") {
14968
+ obj.email = message.email;
14969
+ }
14970
+ return obj;
14971
+ },
14972
+ create(base) {
14973
+ return exports.OperatorInfo.fromPartial(base ?? {});
14974
+ },
14975
+ fromPartial(object) {
14976
+ const message = createBaseOperatorInfo();
14977
+ message.name = object.name ?? "";
14978
+ message.email = object.email ?? "";
13321
14979
  return message;
13322
14980
  },
13323
14981
  };