@blueyerobotics/protocol-definitions 3.2.0-e9cac0e4 → 3.2.0-fcf0b829
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.
- package/LICENSE +165 -0
- package/README.npm.md +40 -0
- package/dist/control.d.ts +27 -1
- package/dist/control.js +209 -7
- package/dist/message_formats.d.ts +315 -7
- package/dist/message_formats.js +2026 -40
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +32 -0
- package/dist/req_rep.js +279 -1
- package/dist/telemetry.d.ts +64 -2
- package/dist/telemetry.js +438 -5
- package/package.json +8 -6
package/dist/message_formats.js
CHANGED
|
@@ -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.
|
|
9
|
-
exports.
|
|
10
|
-
exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = void 0;
|
|
8
|
+
exports.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.ModelDetections = 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,8 +60,12 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
58
60
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
59
61
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
60
62
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
63
|
+
exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
|
|
64
|
+
exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
|
|
61
65
|
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
62
66
|
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
67
|
+
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
68
|
+
exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
|
|
63
69
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
64
70
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
65
71
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
@@ -655,6 +661,8 @@ var Model;
|
|
|
655
661
|
Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
|
|
656
662
|
/** MODEL_X3_ULTRA - Blueye X3 Ultra. */
|
|
657
663
|
Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
|
|
664
|
+
/** MODEL_X7 - Blueye X7. */
|
|
665
|
+
Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
|
|
658
666
|
/** MODEL_NEXT - Blueye ? */
|
|
659
667
|
Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
|
|
660
668
|
Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
@@ -679,6 +687,9 @@ function modelFromJSON(object) {
|
|
|
679
687
|
case 6:
|
|
680
688
|
case "MODEL_X3_ULTRA":
|
|
681
689
|
return Model.MODEL_X3_ULTRA;
|
|
690
|
+
case 7:
|
|
691
|
+
case "MODEL_X7":
|
|
692
|
+
return Model.MODEL_X7;
|
|
682
693
|
case 5:
|
|
683
694
|
case "MODEL_NEXT":
|
|
684
695
|
return Model.MODEL_NEXT;
|
|
@@ -702,6 +713,8 @@ function modelToJSON(object) {
|
|
|
702
713
|
return "MODEL_X3";
|
|
703
714
|
case Model.MODEL_X3_ULTRA:
|
|
704
715
|
return "MODEL_X3_ULTRA";
|
|
716
|
+
case Model.MODEL_X7:
|
|
717
|
+
return "MODEL_X7";
|
|
705
718
|
case Model.MODEL_NEXT:
|
|
706
719
|
return "MODEL_NEXT";
|
|
707
720
|
case Model.UNRECOGNIZED:
|
|
@@ -777,6 +790,8 @@ var Resolution;
|
|
|
777
790
|
Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
|
|
778
791
|
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
779
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";
|
|
780
795
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
781
796
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
782
797
|
function resolutionFromJSON(object) {
|
|
@@ -796,6 +811,9 @@ function resolutionFromJSON(object) {
|
|
|
796
811
|
case 3:
|
|
797
812
|
case "RESOLUTION_UHD_4K":
|
|
798
813
|
return Resolution.RESOLUTION_UHD_4K;
|
|
814
|
+
case 5:
|
|
815
|
+
case "RESOLUTION_QHD_2K":
|
|
816
|
+
return Resolution.RESOLUTION_QHD_2K;
|
|
799
817
|
case -1:
|
|
800
818
|
case "UNRECOGNIZED":
|
|
801
819
|
default:
|
|
@@ -814,12 +832,19 @@ function resolutionToJSON(object) {
|
|
|
814
832
|
return "RESOLUTION_FULLHD_1080P";
|
|
815
833
|
case Resolution.RESOLUTION_UHD_4K:
|
|
816
834
|
return "RESOLUTION_UHD_4K";
|
|
835
|
+
case Resolution.RESOLUTION_QHD_2K:
|
|
836
|
+
return "RESOLUTION_QHD_2K";
|
|
817
837
|
case Resolution.UNRECOGNIZED:
|
|
818
838
|
default:
|
|
819
839
|
return "UNRECOGNIZED";
|
|
820
840
|
}
|
|
821
841
|
}
|
|
822
|
-
/**
|
|
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
|
+
*/
|
|
823
848
|
var Framerate;
|
|
824
849
|
(function (Framerate) {
|
|
825
850
|
/** FRAMERATE_UNSPECIFIED - Framerate not specified. */
|
|
@@ -828,6 +853,8 @@ var Framerate;
|
|
|
828
853
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
829
854
|
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
830
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";
|
|
831
858
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
832
859
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
833
860
|
function framerateFromJSON(object) {
|
|
@@ -841,6 +868,9 @@ function framerateFromJSON(object) {
|
|
|
841
868
|
case 2:
|
|
842
869
|
case "FRAMERATE_FPS_25":
|
|
843
870
|
return Framerate.FRAMERATE_FPS_25;
|
|
871
|
+
case 3:
|
|
872
|
+
case "FRAMERATE_FPS_60":
|
|
873
|
+
return Framerate.FRAMERATE_FPS_60;
|
|
844
874
|
case -1:
|
|
845
875
|
case "UNRECOGNIZED":
|
|
846
876
|
default:
|
|
@@ -855,6 +885,8 @@ function framerateToJSON(object) {
|
|
|
855
885
|
return "FRAMERATE_FPS_30";
|
|
856
886
|
case Framerate.FRAMERATE_FPS_25:
|
|
857
887
|
return "FRAMERATE_FPS_25";
|
|
888
|
+
case Framerate.FRAMERATE_FPS_60:
|
|
889
|
+
return "FRAMERATE_FPS_60";
|
|
858
890
|
case Framerate.UNRECOGNIZED:
|
|
859
891
|
default:
|
|
860
892
|
return "UNRECOGNIZED";
|
|
@@ -941,6 +973,47 @@ function streamingProtocolToJSON(object) {
|
|
|
941
973
|
return "UNRECOGNIZED";
|
|
942
974
|
}
|
|
943
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
|
+
}
|
|
944
1017
|
/** Available temperature units. */
|
|
945
1018
|
var TemperatureUnit;
|
|
946
1019
|
(function (TemperatureUnit) {
|
|
@@ -1274,8 +1347,14 @@ var GuestPortDeviceID;
|
|
|
1274
1347
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1275
1348
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1276
1349
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1277
|
-
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
|
|
1350
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage. */
|
|
1278
1351
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1352
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
|
|
1353
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1354
|
+
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
1355
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1356
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
|
|
1357
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER"] = 48] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1279
1358
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1280
1359
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1281
1360
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1418,6 +1497,15 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1418
1497
|
case 45:
|
|
1419
1498
|
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1420
1499
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1500
|
+
case 46:
|
|
1501
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
|
|
1502
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
|
|
1503
|
+
case 47:
|
|
1504
|
+
case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
|
|
1505
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
|
|
1506
|
+
case 48:
|
|
1507
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER":
|
|
1508
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER;
|
|
1421
1509
|
case -1:
|
|
1422
1510
|
case "UNRECOGNIZED":
|
|
1423
1511
|
default:
|
|
@@ -1518,6 +1606,12 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1518
1606
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1519
1607
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1520
1608
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1609
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
|
|
1610
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1611
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
|
|
1612
|
+
return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1613
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER:
|
|
1614
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1521
1615
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1522
1616
|
default:
|
|
1523
1617
|
return "UNRECOGNIZED";
|
|
@@ -1794,6 +1888,47 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1794
1888
|
return "UNRECOGNIZED";
|
|
1795
1889
|
}
|
|
1796
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
|
+
}
|
|
1797
1932
|
var LogEntry_LogLevel;
|
|
1798
1933
|
(function (LogEntry_LogLevel) {
|
|
1799
1934
|
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
@@ -1862,6 +1997,89 @@ function logEntry_LogLevelToJSON(object) {
|
|
|
1862
1997
|
return "UNRECOGNIZED";
|
|
1863
1998
|
}
|
|
1864
1999
|
}
|
|
2000
|
+
/** Kernel log level. */
|
|
2001
|
+
var KernelLogEntry_KernelLogLevel;
|
|
2002
|
+
(function (KernelLogEntry_KernelLogLevel) {
|
|
2003
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
2004
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
2005
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
2006
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
|
|
2007
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
2008
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
|
|
2009
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
2010
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
|
|
2011
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
2012
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
|
|
2013
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
2014
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
|
|
2015
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
2016
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
|
|
2017
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
2018
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
|
|
2019
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
2020
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
|
|
2021
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2022
|
+
})(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
|
|
2023
|
+
function kernelLogEntry_KernelLogLevelFromJSON(object) {
|
|
2024
|
+
switch (object) {
|
|
2025
|
+
case 0:
|
|
2026
|
+
case "KERNEL_LOG_LEVEL_UNSPECIFIED":
|
|
2027
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
|
|
2028
|
+
case 1:
|
|
2029
|
+
case "KERNEL_LOG_LEVEL_EMERG":
|
|
2030
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
|
|
2031
|
+
case 2:
|
|
2032
|
+
case "KERNEL_LOG_LEVEL_ALERT":
|
|
2033
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
|
|
2034
|
+
case 3:
|
|
2035
|
+
case "KERNEL_LOG_LEVEL_CRIT":
|
|
2036
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
|
|
2037
|
+
case 4:
|
|
2038
|
+
case "KERNEL_LOG_LEVEL_ERR":
|
|
2039
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
|
|
2040
|
+
case 5:
|
|
2041
|
+
case "KERNEL_LOG_LEVEL_WARNING":
|
|
2042
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
|
|
2043
|
+
case 6:
|
|
2044
|
+
case "KERNEL_LOG_LEVEL_NOTICE":
|
|
2045
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
|
|
2046
|
+
case 7:
|
|
2047
|
+
case "KERNEL_LOG_LEVEL_INFO":
|
|
2048
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
|
|
2049
|
+
case 8:
|
|
2050
|
+
case "KERNEL_LOG_LEVEL_DEBUG":
|
|
2051
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
|
|
2052
|
+
case -1:
|
|
2053
|
+
case "UNRECOGNIZED":
|
|
2054
|
+
default:
|
|
2055
|
+
return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
function kernelLogEntry_KernelLogLevelToJSON(object) {
|
|
2059
|
+
switch (object) {
|
|
2060
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
|
|
2061
|
+
return "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
2062
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
|
|
2063
|
+
return "KERNEL_LOG_LEVEL_EMERG";
|
|
2064
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
|
|
2065
|
+
return "KERNEL_LOG_LEVEL_ALERT";
|
|
2066
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
|
|
2067
|
+
return "KERNEL_LOG_LEVEL_CRIT";
|
|
2068
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
|
|
2069
|
+
return "KERNEL_LOG_LEVEL_ERR";
|
|
2070
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
|
|
2071
|
+
return "KERNEL_LOG_LEVEL_WARNING";
|
|
2072
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
|
|
2073
|
+
return "KERNEL_LOG_LEVEL_NOTICE";
|
|
2074
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
|
|
2075
|
+
return "KERNEL_LOG_LEVEL_INFO";
|
|
2076
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
|
|
2077
|
+
return "KERNEL_LOG_LEVEL_DEBUG";
|
|
2078
|
+
case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
|
|
2079
|
+
default:
|
|
2080
|
+
return "UNRECOGNIZED";
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
1865
2083
|
var PingerConfiguration_MountingDirection;
|
|
1866
2084
|
(function (PingerConfiguration_MountingDirection) {
|
|
1867
2085
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -1983,10 +2201,12 @@ var RemovableStorageDevice_Status;
|
|
|
1983
2201
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
1984
2202
|
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1985
2203
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
1986
|
-
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
2204
|
+
/** STATUS_FORMATTING - The storage device is being formatted. */
|
|
1987
2205
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
1988
2206
|
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1989
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";
|
|
1990
2210
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1991
2211
|
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
1992
2212
|
function removableStorageDevice_StatusFromJSON(object) {
|
|
@@ -2003,6 +2223,9 @@ function removableStorageDevice_StatusFromJSON(object) {
|
|
|
2003
2223
|
case 3:
|
|
2004
2224
|
case "STATUS_ERROR":
|
|
2005
2225
|
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
2226
|
+
case 4:
|
|
2227
|
+
case "STATUS_UNPLUGGED":
|
|
2228
|
+
return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
|
|
2006
2229
|
case -1:
|
|
2007
2230
|
case "UNRECOGNIZED":
|
|
2008
2231
|
default:
|
|
@@ -2019,6 +2242,8 @@ function removableStorageDevice_StatusToJSON(object) {
|
|
|
2019
2242
|
return "STATUS_FORMATTING";
|
|
2020
2243
|
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
2021
2244
|
return "STATUS_ERROR";
|
|
2245
|
+
case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
|
|
2246
|
+
return "STATUS_UNPLUGGED";
|
|
2022
2247
|
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
2023
2248
|
default:
|
|
2024
2249
|
return "UNRECOGNIZED";
|
|
@@ -2511,6 +2736,189 @@ exports.LogEntry = {
|
|
|
2511
2736
|
return message;
|
|
2512
2737
|
},
|
|
2513
2738
|
};
|
|
2739
|
+
function createBaseKernelLogEntry() {
|
|
2740
|
+
return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
|
|
2741
|
+
}
|
|
2742
|
+
exports.KernelLogEntry = {
|
|
2743
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2744
|
+
if (message.level !== 0) {
|
|
2745
|
+
writer.uint32(8).int32(message.level);
|
|
2746
|
+
}
|
|
2747
|
+
if (message.seqnum !== 0) {
|
|
2748
|
+
writer.uint32(16).uint32(message.seqnum);
|
|
2749
|
+
}
|
|
2750
|
+
if (message.timestamp !== undefined) {
|
|
2751
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
|
|
2752
|
+
}
|
|
2753
|
+
for (const v of message.messages) {
|
|
2754
|
+
writer.uint32(34).string(v);
|
|
2755
|
+
}
|
|
2756
|
+
for (const v of message.fields) {
|
|
2757
|
+
exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
|
|
2758
|
+
}
|
|
2759
|
+
return writer;
|
|
2760
|
+
},
|
|
2761
|
+
decode(input, length) {
|
|
2762
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2763
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2764
|
+
const message = createBaseKernelLogEntry();
|
|
2765
|
+
while (reader.pos < end) {
|
|
2766
|
+
const tag = reader.uint32();
|
|
2767
|
+
switch (tag >>> 3) {
|
|
2768
|
+
case 1: {
|
|
2769
|
+
if (tag !== 8) {
|
|
2770
|
+
break;
|
|
2771
|
+
}
|
|
2772
|
+
message.level = reader.int32();
|
|
2773
|
+
continue;
|
|
2774
|
+
}
|
|
2775
|
+
case 2: {
|
|
2776
|
+
if (tag !== 16) {
|
|
2777
|
+
break;
|
|
2778
|
+
}
|
|
2779
|
+
message.seqnum = reader.uint32();
|
|
2780
|
+
continue;
|
|
2781
|
+
}
|
|
2782
|
+
case 3: {
|
|
2783
|
+
if (tag !== 26) {
|
|
2784
|
+
break;
|
|
2785
|
+
}
|
|
2786
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2787
|
+
continue;
|
|
2788
|
+
}
|
|
2789
|
+
case 4: {
|
|
2790
|
+
if (tag !== 34) {
|
|
2791
|
+
break;
|
|
2792
|
+
}
|
|
2793
|
+
message.messages.push(reader.string());
|
|
2794
|
+
continue;
|
|
2795
|
+
}
|
|
2796
|
+
case 5: {
|
|
2797
|
+
if (tag !== 42) {
|
|
2798
|
+
break;
|
|
2799
|
+
}
|
|
2800
|
+
message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
|
|
2801
|
+
continue;
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2805
|
+
break;
|
|
2806
|
+
}
|
|
2807
|
+
reader.skip(tag & 7);
|
|
2808
|
+
}
|
|
2809
|
+
return message;
|
|
2810
|
+
},
|
|
2811
|
+
fromJSON(object) {
|
|
2812
|
+
return {
|
|
2813
|
+
level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
|
|
2814
|
+
seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
|
|
2815
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2816
|
+
messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
|
|
2817
|
+
fields: gt.Array.isArray(object?.fields)
|
|
2818
|
+
? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
|
|
2819
|
+
: [],
|
|
2820
|
+
};
|
|
2821
|
+
},
|
|
2822
|
+
toJSON(message) {
|
|
2823
|
+
const obj = {};
|
|
2824
|
+
if (message.level !== 0) {
|
|
2825
|
+
obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
|
|
2826
|
+
}
|
|
2827
|
+
if (message.seqnum !== 0) {
|
|
2828
|
+
obj.seqnum = Math.round(message.seqnum);
|
|
2829
|
+
}
|
|
2830
|
+
if (message.timestamp !== undefined) {
|
|
2831
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2832
|
+
}
|
|
2833
|
+
if (message.messages?.length) {
|
|
2834
|
+
obj.messages = message.messages;
|
|
2835
|
+
}
|
|
2836
|
+
if (message.fields?.length) {
|
|
2837
|
+
obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
|
|
2838
|
+
}
|
|
2839
|
+
return obj;
|
|
2840
|
+
},
|
|
2841
|
+
create(base) {
|
|
2842
|
+
return exports.KernelLogEntry.fromPartial(base ?? {});
|
|
2843
|
+
},
|
|
2844
|
+
fromPartial(object) {
|
|
2845
|
+
const message = createBaseKernelLogEntry();
|
|
2846
|
+
message.level = object.level ?? 0;
|
|
2847
|
+
message.seqnum = object.seqnum ?? 0;
|
|
2848
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2849
|
+
message.messages = object.messages?.map((e) => e) || [];
|
|
2850
|
+
message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
|
|
2851
|
+
return message;
|
|
2852
|
+
},
|
|
2853
|
+
};
|
|
2854
|
+
function createBaseKernelLogEntry_KeyValuePair() {
|
|
2855
|
+
return { key: "", value: "" };
|
|
2856
|
+
}
|
|
2857
|
+
exports.KernelLogEntry_KeyValuePair = {
|
|
2858
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2859
|
+
if (message.key !== "") {
|
|
2860
|
+
writer.uint32(10).string(message.key);
|
|
2861
|
+
}
|
|
2862
|
+
if (message.value !== "") {
|
|
2863
|
+
writer.uint32(18).string(message.value);
|
|
2864
|
+
}
|
|
2865
|
+
return writer;
|
|
2866
|
+
},
|
|
2867
|
+
decode(input, length) {
|
|
2868
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2869
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2870
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2871
|
+
while (reader.pos < end) {
|
|
2872
|
+
const tag = reader.uint32();
|
|
2873
|
+
switch (tag >>> 3) {
|
|
2874
|
+
case 1: {
|
|
2875
|
+
if (tag !== 10) {
|
|
2876
|
+
break;
|
|
2877
|
+
}
|
|
2878
|
+
message.key = reader.string();
|
|
2879
|
+
continue;
|
|
2880
|
+
}
|
|
2881
|
+
case 2: {
|
|
2882
|
+
if (tag !== 18) {
|
|
2883
|
+
break;
|
|
2884
|
+
}
|
|
2885
|
+
message.value = reader.string();
|
|
2886
|
+
continue;
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2890
|
+
break;
|
|
2891
|
+
}
|
|
2892
|
+
reader.skip(tag & 7);
|
|
2893
|
+
}
|
|
2894
|
+
return message;
|
|
2895
|
+
},
|
|
2896
|
+
fromJSON(object) {
|
|
2897
|
+
return {
|
|
2898
|
+
key: isSet(object.key) ? gt.String(object.key) : "",
|
|
2899
|
+
value: isSet(object.value) ? gt.String(object.value) : "",
|
|
2900
|
+
};
|
|
2901
|
+
},
|
|
2902
|
+
toJSON(message) {
|
|
2903
|
+
const obj = {};
|
|
2904
|
+
if (message.key !== "") {
|
|
2905
|
+
obj.key = message.key;
|
|
2906
|
+
}
|
|
2907
|
+
if (message.value !== "") {
|
|
2908
|
+
obj.value = message.value;
|
|
2909
|
+
}
|
|
2910
|
+
return obj;
|
|
2911
|
+
},
|
|
2912
|
+
create(base) {
|
|
2913
|
+
return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
|
|
2914
|
+
},
|
|
2915
|
+
fromPartial(object) {
|
|
2916
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2917
|
+
message.key = object.key ?? "";
|
|
2918
|
+
message.value = object.value ?? "";
|
|
2919
|
+
return message;
|
|
2920
|
+
},
|
|
2921
|
+
};
|
|
2514
2922
|
function createBaseMotionInput() {
|
|
2515
2923
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2516
2924
|
}
|
|
@@ -3792,6 +4200,9 @@ function createBaseRecordState() {
|
|
|
3792
4200
|
multibeamIsRecording: false,
|
|
3793
4201
|
multibeamSeconds: 0,
|
|
3794
4202
|
multibeamFps: 0,
|
|
4203
|
+
mainStorageLocation: 0,
|
|
4204
|
+
guestportStorageLocation: 0,
|
|
4205
|
+
multibeamStorageLocation: 0,
|
|
3795
4206
|
};
|
|
3796
4207
|
}
|
|
3797
4208
|
exports.RecordState = {
|
|
@@ -3823,6 +4234,15 @@ exports.RecordState = {
|
|
|
3823
4234
|
if (message.multibeamFps !== 0) {
|
|
3824
4235
|
writer.uint32(77).float(message.multibeamFps);
|
|
3825
4236
|
}
|
|
4237
|
+
if (message.mainStorageLocation !== 0) {
|
|
4238
|
+
writer.uint32(80).int32(message.mainStorageLocation);
|
|
4239
|
+
}
|
|
4240
|
+
if (message.guestportStorageLocation !== 0) {
|
|
4241
|
+
writer.uint32(88).int32(message.guestportStorageLocation);
|
|
4242
|
+
}
|
|
4243
|
+
if (message.multibeamStorageLocation !== 0) {
|
|
4244
|
+
writer.uint32(96).int32(message.multibeamStorageLocation);
|
|
4245
|
+
}
|
|
3826
4246
|
return writer;
|
|
3827
4247
|
},
|
|
3828
4248
|
decode(input, length) {
|
|
@@ -3895,6 +4315,27 @@ exports.RecordState = {
|
|
|
3895
4315
|
message.multibeamFps = reader.float();
|
|
3896
4316
|
continue;
|
|
3897
4317
|
}
|
|
4318
|
+
case 10: {
|
|
4319
|
+
if (tag !== 80) {
|
|
4320
|
+
break;
|
|
4321
|
+
}
|
|
4322
|
+
message.mainStorageLocation = reader.int32();
|
|
4323
|
+
continue;
|
|
4324
|
+
}
|
|
4325
|
+
case 11: {
|
|
4326
|
+
if (tag !== 88) {
|
|
4327
|
+
break;
|
|
4328
|
+
}
|
|
4329
|
+
message.guestportStorageLocation = reader.int32();
|
|
4330
|
+
continue;
|
|
4331
|
+
}
|
|
4332
|
+
case 12: {
|
|
4333
|
+
if (tag !== 96) {
|
|
4334
|
+
break;
|
|
4335
|
+
}
|
|
4336
|
+
message.multibeamStorageLocation = reader.int32();
|
|
4337
|
+
continue;
|
|
4338
|
+
}
|
|
3898
4339
|
}
|
|
3899
4340
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3900
4341
|
break;
|
|
@@ -3914,6 +4355,13 @@ exports.RecordState = {
|
|
|
3914
4355
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3915
4356
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3916
4357
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4358
|
+
mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
|
|
4359
|
+
guestportStorageLocation: isSet(object.guestportStorageLocation)
|
|
4360
|
+
? storageLocationFromJSON(object.guestportStorageLocation)
|
|
4361
|
+
: 0,
|
|
4362
|
+
multibeamStorageLocation: isSet(object.multibeamStorageLocation)
|
|
4363
|
+
? storageLocationFromJSON(object.multibeamStorageLocation)
|
|
4364
|
+
: 0,
|
|
3917
4365
|
};
|
|
3918
4366
|
},
|
|
3919
4367
|
toJSON(message) {
|
|
@@ -3945,6 +4393,15 @@ exports.RecordState = {
|
|
|
3945
4393
|
if (message.multibeamFps !== 0) {
|
|
3946
4394
|
obj.multibeamFps = message.multibeamFps;
|
|
3947
4395
|
}
|
|
4396
|
+
if (message.mainStorageLocation !== 0) {
|
|
4397
|
+
obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
|
|
4398
|
+
}
|
|
4399
|
+
if (message.guestportStorageLocation !== 0) {
|
|
4400
|
+
obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
|
|
4401
|
+
}
|
|
4402
|
+
if (message.multibeamStorageLocation !== 0) {
|
|
4403
|
+
obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
|
|
4404
|
+
}
|
|
3948
4405
|
return obj;
|
|
3949
4406
|
},
|
|
3950
4407
|
create(base) {
|
|
@@ -3961,6 +4418,9 @@ exports.RecordState = {
|
|
|
3961
4418
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3962
4419
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3963
4420
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4421
|
+
message.mainStorageLocation = object.mainStorageLocation ?? 0;
|
|
4422
|
+
message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
|
|
4423
|
+
message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
|
|
3964
4424
|
return message;
|
|
3965
4425
|
},
|
|
3966
4426
|
};
|
|
@@ -7868,7 +8328,7 @@ exports.StorageSpace = {
|
|
|
7868
8328
|
},
|
|
7869
8329
|
};
|
|
7870
8330
|
function createBaseStoragePartition() {
|
|
7871
|
-
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
8331
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
|
|
7872
8332
|
}
|
|
7873
8333
|
exports.StoragePartition = {
|
|
7874
8334
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -7884,6 +8344,9 @@ exports.StoragePartition = {
|
|
|
7884
8344
|
if (message.mountPath !== "") {
|
|
7885
8345
|
writer.uint32(34).string(message.mountPath);
|
|
7886
8346
|
}
|
|
8347
|
+
if (message.label !== "") {
|
|
8348
|
+
writer.uint32(42).string(message.label);
|
|
8349
|
+
}
|
|
7887
8350
|
return writer;
|
|
7888
8351
|
},
|
|
7889
8352
|
decode(input, length) {
|
|
@@ -7921,6 +8384,13 @@ exports.StoragePartition = {
|
|
|
7921
8384
|
message.mountPath = reader.string();
|
|
7922
8385
|
continue;
|
|
7923
8386
|
}
|
|
8387
|
+
case 5: {
|
|
8388
|
+
if (tag !== 42) {
|
|
8389
|
+
break;
|
|
8390
|
+
}
|
|
8391
|
+
message.label = reader.string();
|
|
8392
|
+
continue;
|
|
8393
|
+
}
|
|
7924
8394
|
}
|
|
7925
8395
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7926
8396
|
break;
|
|
@@ -7935,6 +8405,7 @@ exports.StoragePartition = {
|
|
|
7935
8405
|
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7936
8406
|
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7937
8407
|
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
8408
|
+
label: isSet(object.label) ? gt.String(object.label) : "",
|
|
7938
8409
|
};
|
|
7939
8410
|
},
|
|
7940
8411
|
toJSON(message) {
|
|
@@ -7951,6 +8422,9 @@ exports.StoragePartition = {
|
|
|
7951
8422
|
if (message.mountPath !== "") {
|
|
7952
8423
|
obj.mountPath = message.mountPath;
|
|
7953
8424
|
}
|
|
8425
|
+
if (message.label !== "") {
|
|
8426
|
+
obj.label = message.label;
|
|
8427
|
+
}
|
|
7954
8428
|
return obj;
|
|
7955
8429
|
},
|
|
7956
8430
|
create(base) {
|
|
@@ -7964,6 +8438,7 @@ exports.StoragePartition = {
|
|
|
7964
8438
|
message.fileSystemType = object.fileSystemType ?? "";
|
|
7965
8439
|
message.devicePath = object.devicePath ?? "";
|
|
7966
8440
|
message.mountPath = object.mountPath ?? "";
|
|
8441
|
+
message.label = object.label ?? "";
|
|
7967
8442
|
return message;
|
|
7968
8443
|
},
|
|
7969
8444
|
};
|
|
@@ -9677,6 +10152,9 @@ function createBaseCameraParameters() {
|
|
|
9677
10152
|
streamingProtocol: 0,
|
|
9678
10153
|
framerate: 0,
|
|
9679
10154
|
camera: 0,
|
|
10155
|
+
mtuSize: 0,
|
|
10156
|
+
recordingCodec: 0,
|
|
10157
|
+
recordingBitrate: 0,
|
|
9680
10158
|
};
|
|
9681
10159
|
}
|
|
9682
10160
|
exports.CameraParameters = {
|
|
@@ -9747,6 +10225,15 @@ exports.CameraParameters = {
|
|
|
9747
10225
|
if (message.camera !== 0) {
|
|
9748
10226
|
writer.uint32(64).int32(message.camera);
|
|
9749
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
|
+
}
|
|
9750
10237
|
return writer;
|
|
9751
10238
|
},
|
|
9752
10239
|
decode(input, length) {
|
|
@@ -9910,6 +10397,27 @@ exports.CameraParameters = {
|
|
|
9910
10397
|
message.camera = reader.int32();
|
|
9911
10398
|
continue;
|
|
9912
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
|
+
}
|
|
9913
10421
|
}
|
|
9914
10422
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9915
10423
|
break;
|
|
@@ -9942,6 +10450,9 @@ exports.CameraParameters = {
|
|
|
9942
10450
|
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9943
10451
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9944
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,
|
|
9945
10456
|
};
|
|
9946
10457
|
},
|
|
9947
10458
|
toJSON(message) {
|
|
@@ -10012,6 +10523,15 @@ exports.CameraParameters = {
|
|
|
10012
10523
|
if (message.camera !== 0) {
|
|
10013
10524
|
obj.camera = cameraToJSON(message.camera);
|
|
10014
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
|
+
}
|
|
10015
10535
|
return obj;
|
|
10016
10536
|
},
|
|
10017
10537
|
create(base) {
|
|
@@ -10041,6 +10561,9 @@ exports.CameraParameters = {
|
|
|
10041
10561
|
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
10042
10562
|
message.framerate = object.framerate ?? 0;
|
|
10043
10563
|
message.camera = object.camera ?? 0;
|
|
10564
|
+
message.mtuSize = object.mtuSize ?? 0;
|
|
10565
|
+
message.recordingCodec = object.recordingCodec ?? 0;
|
|
10566
|
+
message.recordingBitrate = object.recordingBitrate ?? 0;
|
|
10044
10567
|
return message;
|
|
10045
10568
|
},
|
|
10046
10569
|
};
|
|
@@ -12896,23 +13419,26 @@ exports.CPUInfo = {
|
|
|
12896
13419
|
return message;
|
|
12897
13420
|
},
|
|
12898
13421
|
};
|
|
12899
|
-
function
|
|
12900
|
-
return {
|
|
13422
|
+
function createBaseCpuCoreLoad() {
|
|
13423
|
+
return { coreIndex: 0, load: 0, frequencyMhz: 0 };
|
|
12901
13424
|
}
|
|
12902
|
-
exports.
|
|
13425
|
+
exports.CpuCoreLoad = {
|
|
12903
13426
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12904
|
-
if (message.
|
|
12905
|
-
writer.uint32(8).
|
|
13427
|
+
if (message.coreIndex !== 0) {
|
|
13428
|
+
writer.uint32(8).uint32(message.coreIndex);
|
|
12906
13429
|
}
|
|
12907
|
-
if (message.
|
|
12908
|
-
writer.uint32(21).float(message.
|
|
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);
|
|
12909
13435
|
}
|
|
12910
13436
|
return writer;
|
|
12911
13437
|
},
|
|
12912
13438
|
decode(input, length) {
|
|
12913
13439
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12914
13440
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12915
|
-
const message =
|
|
13441
|
+
const message = createBaseCpuCoreLoad();
|
|
12916
13442
|
while (reader.pos < end) {
|
|
12917
13443
|
const tag = reader.uint32();
|
|
12918
13444
|
switch (tag >>> 3) {
|
|
@@ -12920,14 +13446,1174 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
12920
13446
|
if (tag !== 8) {
|
|
12921
13447
|
break;
|
|
12922
13448
|
}
|
|
12923
|
-
message.
|
|
13449
|
+
message.coreIndex = reader.uint32();
|
|
12924
13450
|
continue;
|
|
12925
13451
|
}
|
|
12926
13452
|
case 2: {
|
|
12927
13453
|
if (tag !== 21) {
|
|
12928
13454
|
break;
|
|
12929
13455
|
}
|
|
12930
|
-
message.
|
|
13456
|
+
message.load = reader.float();
|
|
13457
|
+
continue;
|
|
13458
|
+
}
|
|
13459
|
+
case 3: {
|
|
13460
|
+
if (tag !== 29) {
|
|
13461
|
+
break;
|
|
13462
|
+
}
|
|
13463
|
+
message.frequencyMhz = reader.float();
|
|
13464
|
+
continue;
|
|
13465
|
+
}
|
|
13466
|
+
}
|
|
13467
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13468
|
+
break;
|
|
13469
|
+
}
|
|
13470
|
+
reader.skip(tag & 7);
|
|
13471
|
+
}
|
|
13472
|
+
return message;
|
|
13473
|
+
},
|
|
13474
|
+
fromJSON(object) {
|
|
13475
|
+
return {
|
|
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,
|
|
13479
|
+
};
|
|
13480
|
+
},
|
|
13481
|
+
toJSON(message) {
|
|
13482
|
+
const obj = {};
|
|
13483
|
+
if (message.coreIndex !== 0) {
|
|
13484
|
+
obj.coreIndex = Math.round(message.coreIndex);
|
|
13485
|
+
}
|
|
13486
|
+
if (message.load !== 0) {
|
|
13487
|
+
obj.load = message.load;
|
|
13488
|
+
}
|
|
13489
|
+
if (message.frequencyMhz !== 0) {
|
|
13490
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13491
|
+
}
|
|
13492
|
+
return obj;
|
|
13493
|
+
},
|
|
13494
|
+
create(base) {
|
|
13495
|
+
return exports.CpuCoreLoad.fromPartial(base ?? {});
|
|
13496
|
+
},
|
|
13497
|
+
fromPartial(object) {
|
|
13498
|
+
const message = createBaseCpuCoreLoad();
|
|
13499
|
+
message.coreIndex = object.coreIndex ?? 0;
|
|
13500
|
+
message.load = object.load ?? 0;
|
|
13501
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13502
|
+
return message;
|
|
13503
|
+
},
|
|
13504
|
+
};
|
|
13505
|
+
function createBaseGpuInfo() {
|
|
13506
|
+
return { load: 0, frequencyMhz: 0 };
|
|
13507
|
+
}
|
|
13508
|
+
exports.GpuInfo = {
|
|
13509
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
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);
|
|
13515
|
+
}
|
|
13516
|
+
return writer;
|
|
13517
|
+
},
|
|
13518
|
+
decode(input, length) {
|
|
13519
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13520
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13521
|
+
const message = createBaseGpuInfo();
|
|
13522
|
+
while (reader.pos < end) {
|
|
13523
|
+
const tag = reader.uint32();
|
|
13524
|
+
switch (tag >>> 3) {
|
|
13525
|
+
case 1: {
|
|
13526
|
+
if (tag !== 13) {
|
|
13527
|
+
break;
|
|
13528
|
+
}
|
|
13529
|
+
message.load = reader.float();
|
|
13530
|
+
continue;
|
|
13531
|
+
}
|
|
13532
|
+
case 2: {
|
|
13533
|
+
if (tag !== 21) {
|
|
13534
|
+
break;
|
|
13535
|
+
}
|
|
13536
|
+
message.frequencyMhz = reader.float();
|
|
13537
|
+
continue;
|
|
13538
|
+
}
|
|
13539
|
+
}
|
|
13540
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13541
|
+
break;
|
|
13542
|
+
}
|
|
13543
|
+
reader.skip(tag & 7);
|
|
13544
|
+
}
|
|
13545
|
+
return message;
|
|
13546
|
+
},
|
|
13547
|
+
fromJSON(object) {
|
|
13548
|
+
return {
|
|
13549
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13550
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13551
|
+
};
|
|
13552
|
+
},
|
|
13553
|
+
toJSON(message) {
|
|
13554
|
+
const obj = {};
|
|
13555
|
+
if (message.load !== 0) {
|
|
13556
|
+
obj.load = message.load;
|
|
13557
|
+
}
|
|
13558
|
+
if (message.frequencyMhz !== 0) {
|
|
13559
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13560
|
+
}
|
|
13561
|
+
return obj;
|
|
13562
|
+
},
|
|
13563
|
+
create(base) {
|
|
13564
|
+
return exports.GpuInfo.fromPartial(base ?? {});
|
|
13565
|
+
},
|
|
13566
|
+
fromPartial(object) {
|
|
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();
|
|
12931
14617
|
continue;
|
|
12932
14618
|
}
|
|
12933
14619
|
}
|
|
@@ -12940,44 +14626,73 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
12940
14626
|
},
|
|
12941
14627
|
fromJSON(object) {
|
|
12942
14628
|
return {
|
|
12943
|
-
|
|
12944
|
-
|
|
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,
|
|
12945
14634
|
};
|
|
12946
14635
|
},
|
|
12947
14636
|
toJSON(message) {
|
|
12948
14637
|
const obj = {};
|
|
12949
|
-
if (message.
|
|
12950
|
-
obj.
|
|
14638
|
+
if (message.boundingBox !== undefined) {
|
|
14639
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
12951
14640
|
}
|
|
12952
|
-
if (message.
|
|
12953
|
-
obj.
|
|
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);
|
|
12954
14652
|
}
|
|
12955
14653
|
return obj;
|
|
12956
14654
|
},
|
|
12957
14655
|
create(base) {
|
|
12958
|
-
return exports.
|
|
14656
|
+
return exports.ObjectDetection.fromPartial(base ?? {});
|
|
12959
14657
|
},
|
|
12960
14658
|
fromPartial(object) {
|
|
12961
|
-
const message =
|
|
12962
|
-
message.
|
|
12963
|
-
|
|
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;
|
|
12964
14667
|
return message;
|
|
12965
14668
|
},
|
|
12966
14669
|
};
|
|
12967
|
-
function
|
|
12968
|
-
return {
|
|
14670
|
+
function createBaseModelDetections() {
|
|
14671
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
12969
14672
|
}
|
|
12970
|
-
exports.
|
|
14673
|
+
exports.ModelDetections = {
|
|
12971
14674
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12972
|
-
|
|
12973
|
-
writer.uint32(10).
|
|
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
|
+
if (message.modelName !== "") {
|
|
14688
|
+
writer.uint32(42).string(message.modelName);
|
|
12974
14689
|
}
|
|
12975
14690
|
return writer;
|
|
12976
14691
|
},
|
|
12977
14692
|
decode(input, length) {
|
|
12978
14693
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12979
14694
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12980
|
-
const message =
|
|
14695
|
+
const message = createBaseModelDetections();
|
|
12981
14696
|
while (reader.pos < end) {
|
|
12982
14697
|
const tag = reader.uint32();
|
|
12983
14698
|
switch (tag >>> 3) {
|
|
@@ -12985,7 +14700,35 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
12985
14700
|
if (tag !== 10) {
|
|
12986
14701
|
break;
|
|
12987
14702
|
}
|
|
12988
|
-
message.
|
|
14703
|
+
message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
|
|
14704
|
+
continue;
|
|
14705
|
+
}
|
|
14706
|
+
case 2: {
|
|
14707
|
+
if (tag !== 16) {
|
|
14708
|
+
break;
|
|
14709
|
+
}
|
|
14710
|
+
message.camera = reader.int32();
|
|
14711
|
+
continue;
|
|
14712
|
+
}
|
|
14713
|
+
case 3: {
|
|
14714
|
+
if (tag !== 24) {
|
|
14715
|
+
break;
|
|
14716
|
+
}
|
|
14717
|
+
message.imageWidth = reader.uint32();
|
|
14718
|
+
continue;
|
|
14719
|
+
}
|
|
14720
|
+
case 4: {
|
|
14721
|
+
if (tag !== 32) {
|
|
14722
|
+
break;
|
|
14723
|
+
}
|
|
14724
|
+
message.imageHeight = reader.uint32();
|
|
14725
|
+
continue;
|
|
14726
|
+
}
|
|
14727
|
+
case 5: {
|
|
14728
|
+
if (tag !== 42) {
|
|
14729
|
+
break;
|
|
14730
|
+
}
|
|
14731
|
+
message.modelName = reader.string();
|
|
12989
14732
|
continue;
|
|
12990
14733
|
}
|
|
12991
14734
|
}
|
|
@@ -12997,21 +14740,264 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
12997
14740
|
return message;
|
|
12998
14741
|
},
|
|
12999
14742
|
fromJSON(object) {
|
|
13000
|
-
return {
|
|
14743
|
+
return {
|
|
14744
|
+
detections: gt.Array.isArray(object?.detections)
|
|
14745
|
+
? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
|
|
14746
|
+
: [],
|
|
14747
|
+
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
14748
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
14749
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
14750
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
14751
|
+
};
|
|
13001
14752
|
},
|
|
13002
14753
|
toJSON(message) {
|
|
13003
14754
|
const obj = {};
|
|
13004
|
-
if (message.
|
|
13005
|
-
obj.
|
|
14755
|
+
if (message.detections?.length) {
|
|
14756
|
+
obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
|
|
14757
|
+
}
|
|
14758
|
+
if (message.camera !== 0) {
|
|
14759
|
+
obj.camera = cameraToJSON(message.camera);
|
|
14760
|
+
}
|
|
14761
|
+
if (message.imageWidth !== 0) {
|
|
14762
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
14763
|
+
}
|
|
14764
|
+
if (message.imageHeight !== 0) {
|
|
14765
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
14766
|
+
}
|
|
14767
|
+
if (message.modelName !== "") {
|
|
14768
|
+
obj.modelName = message.modelName;
|
|
13006
14769
|
}
|
|
13007
14770
|
return obj;
|
|
13008
14771
|
},
|
|
13009
14772
|
create(base) {
|
|
13010
|
-
return exports.
|
|
14773
|
+
return exports.ModelDetections.fromPartial(base ?? {});
|
|
13011
14774
|
},
|
|
13012
14775
|
fromPartial(object) {
|
|
13013
|
-
const message =
|
|
13014
|
-
message.
|
|
14776
|
+
const message = createBaseModelDetections();
|
|
14777
|
+
message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
|
|
14778
|
+
message.camera = object.camera ?? 0;
|
|
14779
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
14780
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
14781
|
+
message.modelName = object.modelName ?? "";
|
|
14782
|
+
return message;
|
|
14783
|
+
},
|
|
14784
|
+
};
|
|
14785
|
+
function createBaseFilterMessage() {
|
|
14786
|
+
return { enabled: false, intensity: 0 };
|
|
14787
|
+
}
|
|
14788
|
+
exports.FilterMessage = {
|
|
14789
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14790
|
+
if (message.enabled !== false) {
|
|
14791
|
+
writer.uint32(8).bool(message.enabled);
|
|
14792
|
+
}
|
|
14793
|
+
if (message.intensity !== 0) {
|
|
14794
|
+
writer.uint32(21).float(message.intensity);
|
|
14795
|
+
}
|
|
14796
|
+
return writer;
|
|
14797
|
+
},
|
|
14798
|
+
decode(input, length) {
|
|
14799
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14800
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14801
|
+
const message = createBaseFilterMessage();
|
|
14802
|
+
while (reader.pos < end) {
|
|
14803
|
+
const tag = reader.uint32();
|
|
14804
|
+
switch (tag >>> 3) {
|
|
14805
|
+
case 1: {
|
|
14806
|
+
if (tag !== 8) {
|
|
14807
|
+
break;
|
|
14808
|
+
}
|
|
14809
|
+
message.enabled = reader.bool();
|
|
14810
|
+
continue;
|
|
14811
|
+
}
|
|
14812
|
+
case 2: {
|
|
14813
|
+
if (tag !== 21) {
|
|
14814
|
+
break;
|
|
14815
|
+
}
|
|
14816
|
+
message.intensity = reader.float();
|
|
14817
|
+
continue;
|
|
14818
|
+
}
|
|
14819
|
+
}
|
|
14820
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14821
|
+
break;
|
|
14822
|
+
}
|
|
14823
|
+
reader.skip(tag & 7);
|
|
14824
|
+
}
|
|
14825
|
+
return message;
|
|
14826
|
+
},
|
|
14827
|
+
fromJSON(object) {
|
|
14828
|
+
return {
|
|
14829
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
14830
|
+
intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
|
|
14831
|
+
};
|
|
14832
|
+
},
|
|
14833
|
+
toJSON(message) {
|
|
14834
|
+
const obj = {};
|
|
14835
|
+
if (message.enabled !== false) {
|
|
14836
|
+
obj.enabled = message.enabled;
|
|
14837
|
+
}
|
|
14838
|
+
if (message.intensity !== 0) {
|
|
14839
|
+
obj.intensity = message.intensity;
|
|
14840
|
+
}
|
|
14841
|
+
return obj;
|
|
14842
|
+
},
|
|
14843
|
+
create(base) {
|
|
14844
|
+
return exports.FilterMessage.fromPartial(base ?? {});
|
|
14845
|
+
},
|
|
14846
|
+
fromPartial(object) {
|
|
14847
|
+
const message = createBaseFilterMessage();
|
|
14848
|
+
message.enabled = object.enabled ?? false;
|
|
14849
|
+
message.intensity = object.intensity ?? 0;
|
|
14850
|
+
return message;
|
|
14851
|
+
},
|
|
14852
|
+
};
|
|
14853
|
+
function createBaseCameraPanTiltZoom() {
|
|
14854
|
+
return { pan: 0, tilt: 0, zoom: 0 };
|
|
14855
|
+
}
|
|
14856
|
+
exports.CameraPanTiltZoom = {
|
|
14857
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14858
|
+
if (message.pan !== 0) {
|
|
14859
|
+
writer.uint32(13).float(message.pan);
|
|
14860
|
+
}
|
|
14861
|
+
if (message.tilt !== 0) {
|
|
14862
|
+
writer.uint32(21).float(message.tilt);
|
|
14863
|
+
}
|
|
14864
|
+
if (message.zoom !== 0) {
|
|
14865
|
+
writer.uint32(29).float(message.zoom);
|
|
14866
|
+
}
|
|
14867
|
+
return writer;
|
|
14868
|
+
},
|
|
14869
|
+
decode(input, length) {
|
|
14870
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14871
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14872
|
+
const message = createBaseCameraPanTiltZoom();
|
|
14873
|
+
while (reader.pos < end) {
|
|
14874
|
+
const tag = reader.uint32();
|
|
14875
|
+
switch (tag >>> 3) {
|
|
14876
|
+
case 1: {
|
|
14877
|
+
if (tag !== 13) {
|
|
14878
|
+
break;
|
|
14879
|
+
}
|
|
14880
|
+
message.pan = reader.float();
|
|
14881
|
+
continue;
|
|
14882
|
+
}
|
|
14883
|
+
case 2: {
|
|
14884
|
+
if (tag !== 21) {
|
|
14885
|
+
break;
|
|
14886
|
+
}
|
|
14887
|
+
message.tilt = reader.float();
|
|
14888
|
+
continue;
|
|
14889
|
+
}
|
|
14890
|
+
case 3: {
|
|
14891
|
+
if (tag !== 29) {
|
|
14892
|
+
break;
|
|
14893
|
+
}
|
|
14894
|
+
message.zoom = reader.float();
|
|
14895
|
+
continue;
|
|
14896
|
+
}
|
|
14897
|
+
}
|
|
14898
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14899
|
+
break;
|
|
14900
|
+
}
|
|
14901
|
+
reader.skip(tag & 7);
|
|
14902
|
+
}
|
|
14903
|
+
return message;
|
|
14904
|
+
},
|
|
14905
|
+
fromJSON(object) {
|
|
14906
|
+
return {
|
|
14907
|
+
pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
|
|
14908
|
+
tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
|
|
14909
|
+
zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
|
|
14910
|
+
};
|
|
14911
|
+
},
|
|
14912
|
+
toJSON(message) {
|
|
14913
|
+
const obj = {};
|
|
14914
|
+
if (message.pan !== 0) {
|
|
14915
|
+
obj.pan = message.pan;
|
|
14916
|
+
}
|
|
14917
|
+
if (message.tilt !== 0) {
|
|
14918
|
+
obj.tilt = message.tilt;
|
|
14919
|
+
}
|
|
14920
|
+
if (message.zoom !== 0) {
|
|
14921
|
+
obj.zoom = message.zoom;
|
|
14922
|
+
}
|
|
14923
|
+
return obj;
|
|
14924
|
+
},
|
|
14925
|
+
create(base) {
|
|
14926
|
+
return exports.CameraPanTiltZoom.fromPartial(base ?? {});
|
|
14927
|
+
},
|
|
14928
|
+
fromPartial(object) {
|
|
14929
|
+
const message = createBaseCameraPanTiltZoom();
|
|
14930
|
+
message.pan = object.pan ?? 0;
|
|
14931
|
+
message.tilt = object.tilt ?? 0;
|
|
14932
|
+
message.zoom = object.zoom ?? 0;
|
|
14933
|
+
return message;
|
|
14934
|
+
},
|
|
14935
|
+
};
|
|
14936
|
+
function createBaseOperatorInfo() {
|
|
14937
|
+
return { name: "", email: "" };
|
|
14938
|
+
}
|
|
14939
|
+
exports.OperatorInfo = {
|
|
14940
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14941
|
+
if (message.name !== "") {
|
|
14942
|
+
writer.uint32(10).string(message.name);
|
|
14943
|
+
}
|
|
14944
|
+
if (message.email !== "") {
|
|
14945
|
+
writer.uint32(18).string(message.email);
|
|
14946
|
+
}
|
|
14947
|
+
return writer;
|
|
14948
|
+
},
|
|
14949
|
+
decode(input, length) {
|
|
14950
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14951
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14952
|
+
const message = createBaseOperatorInfo();
|
|
14953
|
+
while (reader.pos < end) {
|
|
14954
|
+
const tag = reader.uint32();
|
|
14955
|
+
switch (tag >>> 3) {
|
|
14956
|
+
case 1: {
|
|
14957
|
+
if (tag !== 10) {
|
|
14958
|
+
break;
|
|
14959
|
+
}
|
|
14960
|
+
message.name = reader.string();
|
|
14961
|
+
continue;
|
|
14962
|
+
}
|
|
14963
|
+
case 2: {
|
|
14964
|
+
if (tag !== 18) {
|
|
14965
|
+
break;
|
|
14966
|
+
}
|
|
14967
|
+
message.email = reader.string();
|
|
14968
|
+
continue;
|
|
14969
|
+
}
|
|
14970
|
+
}
|
|
14971
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14972
|
+
break;
|
|
14973
|
+
}
|
|
14974
|
+
reader.skip(tag & 7);
|
|
14975
|
+
}
|
|
14976
|
+
return message;
|
|
14977
|
+
},
|
|
14978
|
+
fromJSON(object) {
|
|
14979
|
+
return {
|
|
14980
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
14981
|
+
email: isSet(object.email) ? gt.String(object.email) : "",
|
|
14982
|
+
};
|
|
14983
|
+
},
|
|
14984
|
+
toJSON(message) {
|
|
14985
|
+
const obj = {};
|
|
14986
|
+
if (message.name !== "") {
|
|
14987
|
+
obj.name = message.name;
|
|
14988
|
+
}
|
|
14989
|
+
if (message.email !== "") {
|
|
14990
|
+
obj.email = message.email;
|
|
14991
|
+
}
|
|
14992
|
+
return obj;
|
|
14993
|
+
},
|
|
14994
|
+
create(base) {
|
|
14995
|
+
return exports.OperatorInfo.fromPartial(base ?? {});
|
|
14996
|
+
},
|
|
14997
|
+
fromPartial(object) {
|
|
14998
|
+
const message = createBaseOperatorInfo();
|
|
14999
|
+
message.name = object.name ?? "";
|
|
15000
|
+
message.email = object.email ?? "";
|
|
13015
15001
|
return message;
|
|
13016
15002
|
},
|
|
13017
15003
|
};
|