@blueyerobotics/protocol-definitions 3.2.0-35603a2b → 3.2.0-43e7a52a
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 +6 -2
- package/dist/control.js +39 -8
- package/dist/message_formats.d.ts +148 -12
- package/dist/message_formats.js +764 -15
- package/dist/req_rep.d.ts +22 -0
- package/dist/req_rep.js +191 -1
- package/dist/telemetry.d.ts +33 -1
- package/dist/telemetry.js +285 -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.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = void 0;
|
|
8
|
+
exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = void 0;
|
|
10
|
+
exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -22,6 +22,8 @@ exports.notificationTypeFromJSON = notificationTypeFromJSON;
|
|
|
22
22
|
exports.notificationTypeToJSON = notificationTypeToJSON;
|
|
23
23
|
exports.notificationLevelFromJSON = notificationLevelFromJSON;
|
|
24
24
|
exports.notificationLevelToJSON = notificationLevelToJSON;
|
|
25
|
+
exports.storageLocationFromJSON = storageLocationFromJSON;
|
|
26
|
+
exports.storageLocationToJSON = storageLocationToJSON;
|
|
25
27
|
exports.modelFromJSON = modelFromJSON;
|
|
26
28
|
exports.modelToJSON = modelToJSON;
|
|
27
29
|
exports.pressureSensorTypeFromJSON = pressureSensorTypeFromJSON;
|
|
@@ -32,6 +34,8 @@ exports.framerateFromJSON = framerateFromJSON;
|
|
|
32
34
|
exports.framerateToJSON = framerateToJSON;
|
|
33
35
|
exports.cameraFromJSON = cameraFromJSON;
|
|
34
36
|
exports.cameraToJSON = cameraToJSON;
|
|
37
|
+
exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
|
|
38
|
+
exports.streamingProtocolToJSON = streamingProtocolToJSON;
|
|
35
39
|
exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
|
|
36
40
|
exports.temperatureUnitToJSON = temperatureUnitToJSON;
|
|
37
41
|
exports.logoTypeFromJSON = logoTypeFromJSON;
|
|
@@ -56,6 +60,8 @@ exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
|
56
60
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
57
61
|
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
58
62
|
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
63
|
+
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
64
|
+
exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
|
|
59
65
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
60
66
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
61
67
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
@@ -68,6 +74,8 @@ exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
|
68
74
|
exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
|
|
69
75
|
exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
|
|
70
76
|
exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
|
|
77
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
|
|
78
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
|
|
71
79
|
/* eslint-disable */
|
|
72
80
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
73
81
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -589,6 +597,51 @@ function notificationLevelToJSON(object) {
|
|
|
589
597
|
return "UNRECOGNIZED";
|
|
590
598
|
}
|
|
591
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Storage location.
|
|
602
|
+
*
|
|
603
|
+
* Used to specify which storage location to use for recording photos and videos.
|
|
604
|
+
*/
|
|
605
|
+
var StorageLocation;
|
|
606
|
+
(function (StorageLocation) {
|
|
607
|
+
/** STORAGE_LOCATION_UNSPECIFIED - Unspecified. */
|
|
608
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_UNSPECIFIED"] = 0] = "STORAGE_LOCATION_UNSPECIFIED";
|
|
609
|
+
/** STORAGE_LOCATION_INTERNAL - Internal storage of the drone. */
|
|
610
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_INTERNAL"] = 1] = "STORAGE_LOCATION_INTERNAL";
|
|
611
|
+
/** STORAGE_LOCATION_REMOVABLE - Removable storage device. */
|
|
612
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_REMOVABLE"] = 2] = "STORAGE_LOCATION_REMOVABLE";
|
|
613
|
+
StorageLocation[StorageLocation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
614
|
+
})(StorageLocation || (exports.StorageLocation = StorageLocation = {}));
|
|
615
|
+
function storageLocationFromJSON(object) {
|
|
616
|
+
switch (object) {
|
|
617
|
+
case 0:
|
|
618
|
+
case "STORAGE_LOCATION_UNSPECIFIED":
|
|
619
|
+
return StorageLocation.STORAGE_LOCATION_UNSPECIFIED;
|
|
620
|
+
case 1:
|
|
621
|
+
case "STORAGE_LOCATION_INTERNAL":
|
|
622
|
+
return StorageLocation.STORAGE_LOCATION_INTERNAL;
|
|
623
|
+
case 2:
|
|
624
|
+
case "STORAGE_LOCATION_REMOVABLE":
|
|
625
|
+
return StorageLocation.STORAGE_LOCATION_REMOVABLE;
|
|
626
|
+
case -1:
|
|
627
|
+
case "UNRECOGNIZED":
|
|
628
|
+
default:
|
|
629
|
+
return StorageLocation.UNRECOGNIZED;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function storageLocationToJSON(object) {
|
|
633
|
+
switch (object) {
|
|
634
|
+
case StorageLocation.STORAGE_LOCATION_UNSPECIFIED:
|
|
635
|
+
return "STORAGE_LOCATION_UNSPECIFIED";
|
|
636
|
+
case StorageLocation.STORAGE_LOCATION_INTERNAL:
|
|
637
|
+
return "STORAGE_LOCATION_INTERNAL";
|
|
638
|
+
case StorageLocation.STORAGE_LOCATION_REMOVABLE:
|
|
639
|
+
return "STORAGE_LOCATION_REMOVABLE";
|
|
640
|
+
case StorageLocation.UNRECOGNIZED:
|
|
641
|
+
default:
|
|
642
|
+
return "UNRECOGNIZED";
|
|
643
|
+
}
|
|
644
|
+
}
|
|
592
645
|
/** Drone models produced by Blueye. */
|
|
593
646
|
var Model;
|
|
594
647
|
(function (Model) {
|
|
@@ -718,11 +771,13 @@ var Resolution;
|
|
|
718
771
|
(function (Resolution) {
|
|
719
772
|
/** RESOLUTION_UNSPECIFIED - Resolution not specified. */
|
|
720
773
|
Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
|
|
721
|
-
/**
|
|
722
|
-
Resolution[Resolution["
|
|
723
|
-
/** RESOLUTION_HD_720P - 720p HD
|
|
774
|
+
/** RESOLUTION_VGA_480P - VGA (640x480). */
|
|
775
|
+
Resolution[Resolution["RESOLUTION_VGA_480P"] = 4] = "RESOLUTION_VGA_480P";
|
|
776
|
+
/** RESOLUTION_HD_720P - 720p HD (1280x720). */
|
|
724
777
|
Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
|
|
725
|
-
/**
|
|
778
|
+
/** RESOLUTION_FULLHD_1080P - 1080p Full HD (1920x1080). */
|
|
779
|
+
Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
|
|
780
|
+
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
726
781
|
Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
|
|
727
782
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
728
783
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
@@ -731,12 +786,15 @@ function resolutionFromJSON(object) {
|
|
|
731
786
|
case 0:
|
|
732
787
|
case "RESOLUTION_UNSPECIFIED":
|
|
733
788
|
return Resolution.RESOLUTION_UNSPECIFIED;
|
|
734
|
-
case
|
|
735
|
-
case "
|
|
736
|
-
return Resolution.
|
|
789
|
+
case 4:
|
|
790
|
+
case "RESOLUTION_VGA_480P":
|
|
791
|
+
return Resolution.RESOLUTION_VGA_480P;
|
|
737
792
|
case 2:
|
|
738
793
|
case "RESOLUTION_HD_720P":
|
|
739
794
|
return Resolution.RESOLUTION_HD_720P;
|
|
795
|
+
case 1:
|
|
796
|
+
case "RESOLUTION_FULLHD_1080P":
|
|
797
|
+
return Resolution.RESOLUTION_FULLHD_1080P;
|
|
740
798
|
case 3:
|
|
741
799
|
case "RESOLUTION_UHD_4K":
|
|
742
800
|
return Resolution.RESOLUTION_UHD_4K;
|
|
@@ -750,10 +808,12 @@ function resolutionToJSON(object) {
|
|
|
750
808
|
switch (object) {
|
|
751
809
|
case Resolution.RESOLUTION_UNSPECIFIED:
|
|
752
810
|
return "RESOLUTION_UNSPECIFIED";
|
|
753
|
-
case Resolution.
|
|
754
|
-
return "
|
|
811
|
+
case Resolution.RESOLUTION_VGA_480P:
|
|
812
|
+
return "RESOLUTION_VGA_480P";
|
|
755
813
|
case Resolution.RESOLUTION_HD_720P:
|
|
756
814
|
return "RESOLUTION_HD_720P";
|
|
815
|
+
case Resolution.RESOLUTION_FULLHD_1080P:
|
|
816
|
+
return "RESOLUTION_FULLHD_1080P";
|
|
757
817
|
case Resolution.RESOLUTION_UHD_4K:
|
|
758
818
|
return "RESOLUTION_UHD_4K";
|
|
759
819
|
case Resolution.UNRECOGNIZED:
|
|
@@ -768,7 +828,7 @@ var Framerate;
|
|
|
768
828
|
Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
|
|
769
829
|
/** FRAMERATE_FPS_30 - 30 frames per second. */
|
|
770
830
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
771
|
-
/** FRAMERATE_FPS_25 - 25 frames per second. */
|
|
831
|
+
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
772
832
|
Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
|
|
773
833
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
774
834
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
@@ -843,6 +903,46 @@ function cameraToJSON(object) {
|
|
|
843
903
|
return "UNRECOGNIZED";
|
|
844
904
|
}
|
|
845
905
|
}
|
|
906
|
+
var StreamingProtocol;
|
|
907
|
+
(function (StreamingProtocol) {
|
|
908
|
+
/** STREAMING_PROTOCOL_UNSPECIFIED - Streaming protocol not specified. */
|
|
909
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_UNSPECIFIED"] = 0] = "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
910
|
+
/** STREAMING_PROTOCOL_RTSP_H264 - RTSP streaming protocol using H264 codec. */
|
|
911
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_H264"] = 1] = "STREAMING_PROTOCOL_RTSP_H264";
|
|
912
|
+
/** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. No recording when activated. */
|
|
913
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_MJPEG"] = 2] = "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
914
|
+
StreamingProtocol[StreamingProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
915
|
+
})(StreamingProtocol || (exports.StreamingProtocol = StreamingProtocol = {}));
|
|
916
|
+
function streamingProtocolFromJSON(object) {
|
|
917
|
+
switch (object) {
|
|
918
|
+
case 0:
|
|
919
|
+
case "STREAMING_PROTOCOL_UNSPECIFIED":
|
|
920
|
+
return StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED;
|
|
921
|
+
case 1:
|
|
922
|
+
case "STREAMING_PROTOCOL_RTSP_H264":
|
|
923
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264;
|
|
924
|
+
case 2:
|
|
925
|
+
case "STREAMING_PROTOCOL_RTSP_MJPEG":
|
|
926
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG;
|
|
927
|
+
case -1:
|
|
928
|
+
case "UNRECOGNIZED":
|
|
929
|
+
default:
|
|
930
|
+
return StreamingProtocol.UNRECOGNIZED;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
function streamingProtocolToJSON(object) {
|
|
934
|
+
switch (object) {
|
|
935
|
+
case StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED:
|
|
936
|
+
return "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
937
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264:
|
|
938
|
+
return "STREAMING_PROTOCOL_RTSP_H264";
|
|
939
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG:
|
|
940
|
+
return "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
941
|
+
case StreamingProtocol.UNRECOGNIZED:
|
|
942
|
+
default:
|
|
943
|
+
return "UNRECOGNIZED";
|
|
944
|
+
}
|
|
945
|
+
}
|
|
846
946
|
/** Available temperature units. */
|
|
847
947
|
var TemperatureUnit;
|
|
848
948
|
(function (TemperatureUnit) {
|
|
@@ -1176,8 +1276,12 @@ var GuestPortDeviceID;
|
|
|
1176
1276
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1177
1277
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1178
1278
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1179
|
-
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
|
|
1279
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage. */
|
|
1180
1280
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1281
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
|
|
1282
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1283
|
+
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
1284
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1181
1285
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1182
1286
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1183
1287
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1320,6 +1424,12 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1320
1424
|
case 45:
|
|
1321
1425
|
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1322
1426
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1427
|
+
case 46:
|
|
1428
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
|
|
1429
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
|
|
1430
|
+
case 47:
|
|
1431
|
+
case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
|
|
1432
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
|
|
1323
1433
|
case -1:
|
|
1324
1434
|
case "UNRECOGNIZED":
|
|
1325
1435
|
default:
|
|
@@ -1420,6 +1530,10 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1420
1530
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1421
1531
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1422
1532
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1533
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
|
|
1534
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1535
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
|
|
1536
|
+
return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1423
1537
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1424
1538
|
default:
|
|
1425
1539
|
return "UNRECOGNIZED";
|
|
@@ -1764,6 +1878,89 @@ function logEntry_LogLevelToJSON(object) {
|
|
|
1764
1878
|
return "UNRECOGNIZED";
|
|
1765
1879
|
}
|
|
1766
1880
|
}
|
|
1881
|
+
/** Kernel log level. */
|
|
1882
|
+
var KernelLogEntry_KernelLogLevel;
|
|
1883
|
+
(function (KernelLogEntry_KernelLogLevel) {
|
|
1884
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1885
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1886
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
1887
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
|
|
1888
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
1889
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
|
|
1890
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
1891
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
|
|
1892
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
1893
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
|
|
1894
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
1895
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
|
|
1896
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
1897
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
|
|
1898
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
1899
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
|
|
1900
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
1901
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
|
|
1902
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1903
|
+
})(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
|
|
1904
|
+
function kernelLogEntry_KernelLogLevelFromJSON(object) {
|
|
1905
|
+
switch (object) {
|
|
1906
|
+
case 0:
|
|
1907
|
+
case "KERNEL_LOG_LEVEL_UNSPECIFIED":
|
|
1908
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
|
|
1909
|
+
case 1:
|
|
1910
|
+
case "KERNEL_LOG_LEVEL_EMERG":
|
|
1911
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
|
|
1912
|
+
case 2:
|
|
1913
|
+
case "KERNEL_LOG_LEVEL_ALERT":
|
|
1914
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
|
|
1915
|
+
case 3:
|
|
1916
|
+
case "KERNEL_LOG_LEVEL_CRIT":
|
|
1917
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
|
|
1918
|
+
case 4:
|
|
1919
|
+
case "KERNEL_LOG_LEVEL_ERR":
|
|
1920
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
|
|
1921
|
+
case 5:
|
|
1922
|
+
case "KERNEL_LOG_LEVEL_WARNING":
|
|
1923
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
|
|
1924
|
+
case 6:
|
|
1925
|
+
case "KERNEL_LOG_LEVEL_NOTICE":
|
|
1926
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
|
|
1927
|
+
case 7:
|
|
1928
|
+
case "KERNEL_LOG_LEVEL_INFO":
|
|
1929
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
|
|
1930
|
+
case 8:
|
|
1931
|
+
case "KERNEL_LOG_LEVEL_DEBUG":
|
|
1932
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
|
|
1933
|
+
case -1:
|
|
1934
|
+
case "UNRECOGNIZED":
|
|
1935
|
+
default:
|
|
1936
|
+
return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
function kernelLogEntry_KernelLogLevelToJSON(object) {
|
|
1940
|
+
switch (object) {
|
|
1941
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
|
|
1942
|
+
return "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1943
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
|
|
1944
|
+
return "KERNEL_LOG_LEVEL_EMERG";
|
|
1945
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
|
|
1946
|
+
return "KERNEL_LOG_LEVEL_ALERT";
|
|
1947
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
|
|
1948
|
+
return "KERNEL_LOG_LEVEL_CRIT";
|
|
1949
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
|
|
1950
|
+
return "KERNEL_LOG_LEVEL_ERR";
|
|
1951
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
|
|
1952
|
+
return "KERNEL_LOG_LEVEL_WARNING";
|
|
1953
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
|
|
1954
|
+
return "KERNEL_LOG_LEVEL_NOTICE";
|
|
1955
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
|
|
1956
|
+
return "KERNEL_LOG_LEVEL_INFO";
|
|
1957
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
|
|
1958
|
+
return "KERNEL_LOG_LEVEL_DEBUG";
|
|
1959
|
+
case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
|
|
1960
|
+
default:
|
|
1961
|
+
return "UNRECOGNIZED";
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1767
1964
|
var PingerConfiguration_MountingDirection;
|
|
1768
1965
|
(function (PingerConfiguration_MountingDirection) {
|
|
1769
1966
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -2142,6 +2339,49 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
|
|
|
2142
2339
|
return "UNRECOGNIZED";
|
|
2143
2340
|
}
|
|
2144
2341
|
}
|
|
2342
|
+
var SurfaceUnitBatteryInfo_ChargeStatus;
|
|
2343
|
+
(function (SurfaceUnitBatteryInfo_ChargeStatus) {
|
|
2344
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_UNSPECIFIED"] = 0] = "CHARGE_STATUS_UNSPECIFIED";
|
|
2345
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_DISCHARGE"] = 1] = "CHARGE_STATUS_DISCHARGE";
|
|
2346
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE"] = 2] = "CHARGE_STATUS_CHARGE";
|
|
2347
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE_ERROR"] = 3] = "CHARGE_STATUS_CHARGE_ERROR";
|
|
2348
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2349
|
+
})(SurfaceUnitBatteryInfo_ChargeStatus || (exports.SurfaceUnitBatteryInfo_ChargeStatus = SurfaceUnitBatteryInfo_ChargeStatus = {}));
|
|
2350
|
+
function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object) {
|
|
2351
|
+
switch (object) {
|
|
2352
|
+
case 0:
|
|
2353
|
+
case "CHARGE_STATUS_UNSPECIFIED":
|
|
2354
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED;
|
|
2355
|
+
case 1:
|
|
2356
|
+
case "CHARGE_STATUS_DISCHARGE":
|
|
2357
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE;
|
|
2358
|
+
case 2:
|
|
2359
|
+
case "CHARGE_STATUS_CHARGE":
|
|
2360
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE;
|
|
2361
|
+
case 3:
|
|
2362
|
+
case "CHARGE_STATUS_CHARGE_ERROR":
|
|
2363
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR;
|
|
2364
|
+
case -1:
|
|
2365
|
+
case "UNRECOGNIZED":
|
|
2366
|
+
default:
|
|
2367
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
2371
|
+
switch (object) {
|
|
2372
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED:
|
|
2373
|
+
return "CHARGE_STATUS_UNSPECIFIED";
|
|
2374
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE:
|
|
2375
|
+
return "CHARGE_STATUS_DISCHARGE";
|
|
2376
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE:
|
|
2377
|
+
return "CHARGE_STATUS_CHARGE";
|
|
2378
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR:
|
|
2379
|
+
return "CHARGE_STATUS_CHARGE_ERROR";
|
|
2380
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED:
|
|
2381
|
+
default:
|
|
2382
|
+
return "UNRECOGNIZED";
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2145
2385
|
function createBaseBinlogRecord() {
|
|
2146
2386
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2147
2387
|
}
|
|
@@ -2370,6 +2610,189 @@ exports.LogEntry = {
|
|
|
2370
2610
|
return message;
|
|
2371
2611
|
},
|
|
2372
2612
|
};
|
|
2613
|
+
function createBaseKernelLogEntry() {
|
|
2614
|
+
return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
|
|
2615
|
+
}
|
|
2616
|
+
exports.KernelLogEntry = {
|
|
2617
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2618
|
+
if (message.level !== 0) {
|
|
2619
|
+
writer.uint32(8).int32(message.level);
|
|
2620
|
+
}
|
|
2621
|
+
if (message.seqnum !== 0) {
|
|
2622
|
+
writer.uint32(16).uint32(message.seqnum);
|
|
2623
|
+
}
|
|
2624
|
+
if (message.timestamp !== undefined) {
|
|
2625
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
|
|
2626
|
+
}
|
|
2627
|
+
for (const v of message.messages) {
|
|
2628
|
+
writer.uint32(34).string(v);
|
|
2629
|
+
}
|
|
2630
|
+
for (const v of message.fields) {
|
|
2631
|
+
exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
|
|
2632
|
+
}
|
|
2633
|
+
return writer;
|
|
2634
|
+
},
|
|
2635
|
+
decode(input, length) {
|
|
2636
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2637
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2638
|
+
const message = createBaseKernelLogEntry();
|
|
2639
|
+
while (reader.pos < end) {
|
|
2640
|
+
const tag = reader.uint32();
|
|
2641
|
+
switch (tag >>> 3) {
|
|
2642
|
+
case 1: {
|
|
2643
|
+
if (tag !== 8) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.level = reader.int32();
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 2: {
|
|
2650
|
+
if (tag !== 16) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.seqnum = reader.uint32();
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
case 3: {
|
|
2657
|
+
if (tag !== 26) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2661
|
+
continue;
|
|
2662
|
+
}
|
|
2663
|
+
case 4: {
|
|
2664
|
+
if (tag !== 34) {
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
message.messages.push(reader.string());
|
|
2668
|
+
continue;
|
|
2669
|
+
}
|
|
2670
|
+
case 5: {
|
|
2671
|
+
if (tag !== 42) {
|
|
2672
|
+
break;
|
|
2673
|
+
}
|
|
2674
|
+
message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
|
|
2675
|
+
continue;
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2679
|
+
break;
|
|
2680
|
+
}
|
|
2681
|
+
reader.skip(tag & 7);
|
|
2682
|
+
}
|
|
2683
|
+
return message;
|
|
2684
|
+
},
|
|
2685
|
+
fromJSON(object) {
|
|
2686
|
+
return {
|
|
2687
|
+
level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
|
|
2688
|
+
seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
|
|
2689
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2690
|
+
messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
|
|
2691
|
+
fields: gt.Array.isArray(object?.fields)
|
|
2692
|
+
? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
|
|
2693
|
+
: [],
|
|
2694
|
+
};
|
|
2695
|
+
},
|
|
2696
|
+
toJSON(message) {
|
|
2697
|
+
const obj = {};
|
|
2698
|
+
if (message.level !== 0) {
|
|
2699
|
+
obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
|
|
2700
|
+
}
|
|
2701
|
+
if (message.seqnum !== 0) {
|
|
2702
|
+
obj.seqnum = Math.round(message.seqnum);
|
|
2703
|
+
}
|
|
2704
|
+
if (message.timestamp !== undefined) {
|
|
2705
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2706
|
+
}
|
|
2707
|
+
if (message.messages?.length) {
|
|
2708
|
+
obj.messages = message.messages;
|
|
2709
|
+
}
|
|
2710
|
+
if (message.fields?.length) {
|
|
2711
|
+
obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
|
|
2712
|
+
}
|
|
2713
|
+
return obj;
|
|
2714
|
+
},
|
|
2715
|
+
create(base) {
|
|
2716
|
+
return exports.KernelLogEntry.fromPartial(base ?? {});
|
|
2717
|
+
},
|
|
2718
|
+
fromPartial(object) {
|
|
2719
|
+
const message = createBaseKernelLogEntry();
|
|
2720
|
+
message.level = object.level ?? 0;
|
|
2721
|
+
message.seqnum = object.seqnum ?? 0;
|
|
2722
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2723
|
+
message.messages = object.messages?.map((e) => e) || [];
|
|
2724
|
+
message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
|
|
2725
|
+
return message;
|
|
2726
|
+
},
|
|
2727
|
+
};
|
|
2728
|
+
function createBaseKernelLogEntry_KeyValuePair() {
|
|
2729
|
+
return { key: "", value: "" };
|
|
2730
|
+
}
|
|
2731
|
+
exports.KernelLogEntry_KeyValuePair = {
|
|
2732
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2733
|
+
if (message.key !== "") {
|
|
2734
|
+
writer.uint32(10).string(message.key);
|
|
2735
|
+
}
|
|
2736
|
+
if (message.value !== "") {
|
|
2737
|
+
writer.uint32(18).string(message.value);
|
|
2738
|
+
}
|
|
2739
|
+
return writer;
|
|
2740
|
+
},
|
|
2741
|
+
decode(input, length) {
|
|
2742
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2743
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2744
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2745
|
+
while (reader.pos < end) {
|
|
2746
|
+
const tag = reader.uint32();
|
|
2747
|
+
switch (tag >>> 3) {
|
|
2748
|
+
case 1: {
|
|
2749
|
+
if (tag !== 10) {
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
message.key = reader.string();
|
|
2753
|
+
continue;
|
|
2754
|
+
}
|
|
2755
|
+
case 2: {
|
|
2756
|
+
if (tag !== 18) {
|
|
2757
|
+
break;
|
|
2758
|
+
}
|
|
2759
|
+
message.value = reader.string();
|
|
2760
|
+
continue;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2764
|
+
break;
|
|
2765
|
+
}
|
|
2766
|
+
reader.skip(tag & 7);
|
|
2767
|
+
}
|
|
2768
|
+
return message;
|
|
2769
|
+
},
|
|
2770
|
+
fromJSON(object) {
|
|
2771
|
+
return {
|
|
2772
|
+
key: isSet(object.key) ? gt.String(object.key) : "",
|
|
2773
|
+
value: isSet(object.value) ? gt.String(object.value) : "",
|
|
2774
|
+
};
|
|
2775
|
+
},
|
|
2776
|
+
toJSON(message) {
|
|
2777
|
+
const obj = {};
|
|
2778
|
+
if (message.key !== "") {
|
|
2779
|
+
obj.key = message.key;
|
|
2780
|
+
}
|
|
2781
|
+
if (message.value !== "") {
|
|
2782
|
+
obj.value = message.value;
|
|
2783
|
+
}
|
|
2784
|
+
return obj;
|
|
2785
|
+
},
|
|
2786
|
+
create(base) {
|
|
2787
|
+
return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
|
|
2788
|
+
},
|
|
2789
|
+
fromPartial(object) {
|
|
2790
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2791
|
+
message.key = object.key ?? "";
|
|
2792
|
+
message.value = object.value ?? "";
|
|
2793
|
+
return message;
|
|
2794
|
+
},
|
|
2795
|
+
};
|
|
2373
2796
|
function createBaseMotionInput() {
|
|
2374
2797
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2375
2798
|
}
|
|
@@ -3651,6 +4074,7 @@ function createBaseRecordState() {
|
|
|
3651
4074
|
multibeamIsRecording: false,
|
|
3652
4075
|
multibeamSeconds: 0,
|
|
3653
4076
|
multibeamFps: 0,
|
|
4077
|
+
storageLocation: 0,
|
|
3654
4078
|
};
|
|
3655
4079
|
}
|
|
3656
4080
|
exports.RecordState = {
|
|
@@ -3682,6 +4106,9 @@ exports.RecordState = {
|
|
|
3682
4106
|
if (message.multibeamFps !== 0) {
|
|
3683
4107
|
writer.uint32(77).float(message.multibeamFps);
|
|
3684
4108
|
}
|
|
4109
|
+
if (message.storageLocation !== 0) {
|
|
4110
|
+
writer.uint32(80).int32(message.storageLocation);
|
|
4111
|
+
}
|
|
3685
4112
|
return writer;
|
|
3686
4113
|
},
|
|
3687
4114
|
decode(input, length) {
|
|
@@ -3754,6 +4181,13 @@ exports.RecordState = {
|
|
|
3754
4181
|
message.multibeamFps = reader.float();
|
|
3755
4182
|
continue;
|
|
3756
4183
|
}
|
|
4184
|
+
case 10: {
|
|
4185
|
+
if (tag !== 80) {
|
|
4186
|
+
break;
|
|
4187
|
+
}
|
|
4188
|
+
message.storageLocation = reader.int32();
|
|
4189
|
+
continue;
|
|
4190
|
+
}
|
|
3757
4191
|
}
|
|
3758
4192
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3759
4193
|
break;
|
|
@@ -3773,6 +4207,7 @@ exports.RecordState = {
|
|
|
3773
4207
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3774
4208
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3775
4209
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4210
|
+
storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
|
|
3776
4211
|
};
|
|
3777
4212
|
},
|
|
3778
4213
|
toJSON(message) {
|
|
@@ -3804,6 +4239,9 @@ exports.RecordState = {
|
|
|
3804
4239
|
if (message.multibeamFps !== 0) {
|
|
3805
4240
|
obj.multibeamFps = message.multibeamFps;
|
|
3806
4241
|
}
|
|
4242
|
+
if (message.storageLocation !== 0) {
|
|
4243
|
+
obj.storageLocation = storageLocationToJSON(message.storageLocation);
|
|
4244
|
+
}
|
|
3807
4245
|
return obj;
|
|
3808
4246
|
},
|
|
3809
4247
|
create(base) {
|
|
@@ -3820,6 +4258,7 @@ exports.RecordState = {
|
|
|
3820
4258
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3821
4259
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3822
4260
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4261
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
3823
4262
|
return message;
|
|
3824
4263
|
},
|
|
3825
4264
|
};
|
|
@@ -7727,7 +8166,7 @@ exports.StorageSpace = {
|
|
|
7727
8166
|
},
|
|
7728
8167
|
};
|
|
7729
8168
|
function createBaseStoragePartition() {
|
|
7730
|
-
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
8169
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
|
|
7731
8170
|
}
|
|
7732
8171
|
exports.StoragePartition = {
|
|
7733
8172
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -7743,6 +8182,9 @@ exports.StoragePartition = {
|
|
|
7743
8182
|
if (message.mountPath !== "") {
|
|
7744
8183
|
writer.uint32(34).string(message.mountPath);
|
|
7745
8184
|
}
|
|
8185
|
+
if (message.label !== "") {
|
|
8186
|
+
writer.uint32(42).string(message.label);
|
|
8187
|
+
}
|
|
7746
8188
|
return writer;
|
|
7747
8189
|
},
|
|
7748
8190
|
decode(input, length) {
|
|
@@ -7780,6 +8222,13 @@ exports.StoragePartition = {
|
|
|
7780
8222
|
message.mountPath = reader.string();
|
|
7781
8223
|
continue;
|
|
7782
8224
|
}
|
|
8225
|
+
case 5: {
|
|
8226
|
+
if (tag !== 42) {
|
|
8227
|
+
break;
|
|
8228
|
+
}
|
|
8229
|
+
message.label = reader.string();
|
|
8230
|
+
continue;
|
|
8231
|
+
}
|
|
7783
8232
|
}
|
|
7784
8233
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7785
8234
|
break;
|
|
@@ -7794,6 +8243,7 @@ exports.StoragePartition = {
|
|
|
7794
8243
|
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7795
8244
|
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7796
8245
|
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
8246
|
+
label: isSet(object.label) ? gt.String(object.label) : "",
|
|
7797
8247
|
};
|
|
7798
8248
|
},
|
|
7799
8249
|
toJSON(message) {
|
|
@@ -7810,6 +8260,9 @@ exports.StoragePartition = {
|
|
|
7810
8260
|
if (message.mountPath !== "") {
|
|
7811
8261
|
obj.mountPath = message.mountPath;
|
|
7812
8262
|
}
|
|
8263
|
+
if (message.label !== "") {
|
|
8264
|
+
obj.label = message.label;
|
|
8265
|
+
}
|
|
7813
8266
|
return obj;
|
|
7814
8267
|
},
|
|
7815
8268
|
create(base) {
|
|
@@ -7823,6 +8276,7 @@ exports.StoragePartition = {
|
|
|
7823
8276
|
message.fileSystemType = object.fileSystemType ?? "";
|
|
7824
8277
|
message.devicePath = object.devicePath ?? "";
|
|
7825
8278
|
message.mountPath = object.mountPath ?? "";
|
|
8279
|
+
message.label = object.label ?? "";
|
|
7826
8280
|
return message;
|
|
7827
8281
|
},
|
|
7828
8282
|
};
|
|
@@ -9520,9 +9974,20 @@ function createBaseCameraParameters() {
|
|
|
9520
9974
|
whiteBalance: 0,
|
|
9521
9975
|
hue: 0,
|
|
9522
9976
|
gain: 0,
|
|
9977
|
+
brightness: 0,
|
|
9978
|
+
contrast: 0,
|
|
9979
|
+
saturation: 0,
|
|
9980
|
+
gamma: 0,
|
|
9981
|
+
sharpness: 0,
|
|
9982
|
+
backlightCompensation: 0,
|
|
9983
|
+
denoise: 0,
|
|
9984
|
+
ehdrEnabled: false,
|
|
9985
|
+
ehdrExposureMinNumber: 0,
|
|
9986
|
+
ehdrExposureMaxNumber: 0,
|
|
9523
9987
|
resolution: 0,
|
|
9524
9988
|
streamResolution: 0,
|
|
9525
9989
|
recordingResolution: 0,
|
|
9990
|
+
streamingProtocol: 0,
|
|
9526
9991
|
framerate: 0,
|
|
9527
9992
|
camera: 0,
|
|
9528
9993
|
};
|
|
@@ -9547,6 +10012,36 @@ exports.CameraParameters = {
|
|
|
9547
10012
|
if (message.gain !== 0) {
|
|
9548
10013
|
writer.uint32(77).float(message.gain);
|
|
9549
10014
|
}
|
|
10015
|
+
if (message.brightness !== 0) {
|
|
10016
|
+
writer.uint32(96).int32(message.brightness);
|
|
10017
|
+
}
|
|
10018
|
+
if (message.contrast !== 0) {
|
|
10019
|
+
writer.uint32(104).int32(message.contrast);
|
|
10020
|
+
}
|
|
10021
|
+
if (message.saturation !== 0) {
|
|
10022
|
+
writer.uint32(112).int32(message.saturation);
|
|
10023
|
+
}
|
|
10024
|
+
if (message.gamma !== 0) {
|
|
10025
|
+
writer.uint32(120).int32(message.gamma);
|
|
10026
|
+
}
|
|
10027
|
+
if (message.sharpness !== 0) {
|
|
10028
|
+
writer.uint32(128).int32(message.sharpness);
|
|
10029
|
+
}
|
|
10030
|
+
if (message.backlightCompensation !== 0) {
|
|
10031
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
10032
|
+
}
|
|
10033
|
+
if (message.denoise !== 0) {
|
|
10034
|
+
writer.uint32(144).int32(message.denoise);
|
|
10035
|
+
}
|
|
10036
|
+
if (message.ehdrEnabled !== false) {
|
|
10037
|
+
writer.uint32(168).bool(message.ehdrEnabled);
|
|
10038
|
+
}
|
|
10039
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10040
|
+
writer.uint32(176).int32(message.ehdrExposureMinNumber);
|
|
10041
|
+
}
|
|
10042
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10043
|
+
writer.uint32(184).int32(message.ehdrExposureMaxNumber);
|
|
10044
|
+
}
|
|
9550
10045
|
if (message.resolution !== 0) {
|
|
9551
10046
|
writer.uint32(48).int32(message.resolution);
|
|
9552
10047
|
}
|
|
@@ -9556,6 +10051,9 @@ exports.CameraParameters = {
|
|
|
9556
10051
|
if (message.recordingResolution !== 0) {
|
|
9557
10052
|
writer.uint32(88).int32(message.recordingResolution);
|
|
9558
10053
|
}
|
|
10054
|
+
if (message.streamingProtocol !== 0) {
|
|
10055
|
+
writer.uint32(160).int32(message.streamingProtocol);
|
|
10056
|
+
}
|
|
9559
10057
|
if (message.framerate !== 0) {
|
|
9560
10058
|
writer.uint32(56).int32(message.framerate);
|
|
9561
10059
|
}
|
|
@@ -9613,6 +10111,76 @@ exports.CameraParameters = {
|
|
|
9613
10111
|
message.gain = reader.float();
|
|
9614
10112
|
continue;
|
|
9615
10113
|
}
|
|
10114
|
+
case 12: {
|
|
10115
|
+
if (tag !== 96) {
|
|
10116
|
+
break;
|
|
10117
|
+
}
|
|
10118
|
+
message.brightness = reader.int32();
|
|
10119
|
+
continue;
|
|
10120
|
+
}
|
|
10121
|
+
case 13: {
|
|
10122
|
+
if (tag !== 104) {
|
|
10123
|
+
break;
|
|
10124
|
+
}
|
|
10125
|
+
message.contrast = reader.int32();
|
|
10126
|
+
continue;
|
|
10127
|
+
}
|
|
10128
|
+
case 14: {
|
|
10129
|
+
if (tag !== 112) {
|
|
10130
|
+
break;
|
|
10131
|
+
}
|
|
10132
|
+
message.saturation = reader.int32();
|
|
10133
|
+
continue;
|
|
10134
|
+
}
|
|
10135
|
+
case 15: {
|
|
10136
|
+
if (tag !== 120) {
|
|
10137
|
+
break;
|
|
10138
|
+
}
|
|
10139
|
+
message.gamma = reader.int32();
|
|
10140
|
+
continue;
|
|
10141
|
+
}
|
|
10142
|
+
case 16: {
|
|
10143
|
+
if (tag !== 128) {
|
|
10144
|
+
break;
|
|
10145
|
+
}
|
|
10146
|
+
message.sharpness = reader.int32();
|
|
10147
|
+
continue;
|
|
10148
|
+
}
|
|
10149
|
+
case 17: {
|
|
10150
|
+
if (tag !== 136) {
|
|
10151
|
+
break;
|
|
10152
|
+
}
|
|
10153
|
+
message.backlightCompensation = reader.int32();
|
|
10154
|
+
continue;
|
|
10155
|
+
}
|
|
10156
|
+
case 18: {
|
|
10157
|
+
if (tag !== 144) {
|
|
10158
|
+
break;
|
|
10159
|
+
}
|
|
10160
|
+
message.denoise = reader.int32();
|
|
10161
|
+
continue;
|
|
10162
|
+
}
|
|
10163
|
+
case 21: {
|
|
10164
|
+
if (tag !== 168) {
|
|
10165
|
+
break;
|
|
10166
|
+
}
|
|
10167
|
+
message.ehdrEnabled = reader.bool();
|
|
10168
|
+
continue;
|
|
10169
|
+
}
|
|
10170
|
+
case 22: {
|
|
10171
|
+
if (tag !== 176) {
|
|
10172
|
+
break;
|
|
10173
|
+
}
|
|
10174
|
+
message.ehdrExposureMinNumber = reader.int32();
|
|
10175
|
+
continue;
|
|
10176
|
+
}
|
|
10177
|
+
case 23: {
|
|
10178
|
+
if (tag !== 184) {
|
|
10179
|
+
break;
|
|
10180
|
+
}
|
|
10181
|
+
message.ehdrExposureMaxNumber = reader.int32();
|
|
10182
|
+
continue;
|
|
10183
|
+
}
|
|
9616
10184
|
case 6: {
|
|
9617
10185
|
if (tag !== 48) {
|
|
9618
10186
|
break;
|
|
@@ -9634,6 +10202,13 @@ exports.CameraParameters = {
|
|
|
9634
10202
|
message.recordingResolution = reader.int32();
|
|
9635
10203
|
continue;
|
|
9636
10204
|
}
|
|
10205
|
+
case 20: {
|
|
10206
|
+
if (tag !== 160) {
|
|
10207
|
+
break;
|
|
10208
|
+
}
|
|
10209
|
+
message.streamingProtocol = reader.int32();
|
|
10210
|
+
continue;
|
|
10211
|
+
}
|
|
9637
10212
|
case 7: {
|
|
9638
10213
|
if (tag !== 56) {
|
|
9639
10214
|
break;
|
|
@@ -9664,9 +10239,20 @@ exports.CameraParameters = {
|
|
|
9664
10239
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9665
10240
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9666
10241
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
10242
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
10243
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
10244
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
10245
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
10246
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
10247
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
10248
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
10249
|
+
ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
|
|
10250
|
+
ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
|
|
10251
|
+
ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
|
|
9667
10252
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9668
10253
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9669
10254
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
10255
|
+
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9670
10256
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9671
10257
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9672
10258
|
};
|
|
@@ -9691,6 +10277,36 @@ exports.CameraParameters = {
|
|
|
9691
10277
|
if (message.gain !== 0) {
|
|
9692
10278
|
obj.gain = message.gain;
|
|
9693
10279
|
}
|
|
10280
|
+
if (message.brightness !== 0) {
|
|
10281
|
+
obj.brightness = Math.round(message.brightness);
|
|
10282
|
+
}
|
|
10283
|
+
if (message.contrast !== 0) {
|
|
10284
|
+
obj.contrast = Math.round(message.contrast);
|
|
10285
|
+
}
|
|
10286
|
+
if (message.saturation !== 0) {
|
|
10287
|
+
obj.saturation = Math.round(message.saturation);
|
|
10288
|
+
}
|
|
10289
|
+
if (message.gamma !== 0) {
|
|
10290
|
+
obj.gamma = Math.round(message.gamma);
|
|
10291
|
+
}
|
|
10292
|
+
if (message.sharpness !== 0) {
|
|
10293
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
10294
|
+
}
|
|
10295
|
+
if (message.backlightCompensation !== 0) {
|
|
10296
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
10297
|
+
}
|
|
10298
|
+
if (message.denoise !== 0) {
|
|
10299
|
+
obj.denoise = Math.round(message.denoise);
|
|
10300
|
+
}
|
|
10301
|
+
if (message.ehdrEnabled !== false) {
|
|
10302
|
+
obj.ehdrEnabled = message.ehdrEnabled;
|
|
10303
|
+
}
|
|
10304
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10305
|
+
obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
|
|
10306
|
+
}
|
|
10307
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10308
|
+
obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
|
|
10309
|
+
}
|
|
9694
10310
|
if (message.resolution !== 0) {
|
|
9695
10311
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9696
10312
|
}
|
|
@@ -9700,6 +10316,9 @@ exports.CameraParameters = {
|
|
|
9700
10316
|
if (message.recordingResolution !== 0) {
|
|
9701
10317
|
obj.recordingResolution = resolutionToJSON(message.recordingResolution);
|
|
9702
10318
|
}
|
|
10319
|
+
if (message.streamingProtocol !== 0) {
|
|
10320
|
+
obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
|
|
10321
|
+
}
|
|
9703
10322
|
if (message.framerate !== 0) {
|
|
9704
10323
|
obj.framerate = framerateToJSON(message.framerate);
|
|
9705
10324
|
}
|
|
@@ -9719,9 +10338,20 @@ exports.CameraParameters = {
|
|
|
9719
10338
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9720
10339
|
message.hue = object.hue ?? 0;
|
|
9721
10340
|
message.gain = object.gain ?? 0;
|
|
10341
|
+
message.brightness = object.brightness ?? 0;
|
|
10342
|
+
message.contrast = object.contrast ?? 0;
|
|
10343
|
+
message.saturation = object.saturation ?? 0;
|
|
10344
|
+
message.gamma = object.gamma ?? 0;
|
|
10345
|
+
message.sharpness = object.sharpness ?? 0;
|
|
10346
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
10347
|
+
message.denoise = object.denoise ?? 0;
|
|
10348
|
+
message.ehdrEnabled = object.ehdrEnabled ?? false;
|
|
10349
|
+
message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
|
|
10350
|
+
message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
|
|
9722
10351
|
message.resolution = object.resolution ?? 0;
|
|
9723
10352
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9724
10353
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
10354
|
+
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
9725
10355
|
message.framerate = object.framerate ?? 0;
|
|
9726
10356
|
message.camera = object.camera ?? 0;
|
|
9727
10357
|
return message;
|
|
@@ -12579,6 +13209,125 @@ exports.CPUInfo = {
|
|
|
12579
13209
|
return message;
|
|
12580
13210
|
},
|
|
12581
13211
|
};
|
|
13212
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
13213
|
+
return { status: 0, level: 0 };
|
|
13214
|
+
}
|
|
13215
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
13216
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13217
|
+
if (message.status !== 0) {
|
|
13218
|
+
writer.uint32(8).int32(message.status);
|
|
13219
|
+
}
|
|
13220
|
+
if (message.level !== 0) {
|
|
13221
|
+
writer.uint32(21).float(message.level);
|
|
13222
|
+
}
|
|
13223
|
+
return writer;
|
|
13224
|
+
},
|
|
13225
|
+
decode(input, length) {
|
|
13226
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13227
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13228
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13229
|
+
while (reader.pos < end) {
|
|
13230
|
+
const tag = reader.uint32();
|
|
13231
|
+
switch (tag >>> 3) {
|
|
13232
|
+
case 1: {
|
|
13233
|
+
if (tag !== 8) {
|
|
13234
|
+
break;
|
|
13235
|
+
}
|
|
13236
|
+
message.status = reader.int32();
|
|
13237
|
+
continue;
|
|
13238
|
+
}
|
|
13239
|
+
case 2: {
|
|
13240
|
+
if (tag !== 21) {
|
|
13241
|
+
break;
|
|
13242
|
+
}
|
|
13243
|
+
message.level = reader.float();
|
|
13244
|
+
continue;
|
|
13245
|
+
}
|
|
13246
|
+
}
|
|
13247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13248
|
+
break;
|
|
13249
|
+
}
|
|
13250
|
+
reader.skip(tag & 7);
|
|
13251
|
+
}
|
|
13252
|
+
return message;
|
|
13253
|
+
},
|
|
13254
|
+
fromJSON(object) {
|
|
13255
|
+
return {
|
|
13256
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
13257
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
13258
|
+
};
|
|
13259
|
+
},
|
|
13260
|
+
toJSON(message) {
|
|
13261
|
+
const obj = {};
|
|
13262
|
+
if (message.status !== 0) {
|
|
13263
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
13264
|
+
}
|
|
13265
|
+
if (message.level !== 0) {
|
|
13266
|
+
obj.level = message.level;
|
|
13267
|
+
}
|
|
13268
|
+
return obj;
|
|
13269
|
+
},
|
|
13270
|
+
create(base) {
|
|
13271
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
13272
|
+
},
|
|
13273
|
+
fromPartial(object) {
|
|
13274
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13275
|
+
message.status = object.status ?? 0;
|
|
13276
|
+
message.level = object.level ?? 0;
|
|
13277
|
+
return message;
|
|
13278
|
+
},
|
|
13279
|
+
};
|
|
13280
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
13281
|
+
return { version: "" };
|
|
13282
|
+
}
|
|
13283
|
+
exports.SurfaceUnitVersionInfo = {
|
|
13284
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13285
|
+
if (message.version !== "") {
|
|
13286
|
+
writer.uint32(10).string(message.version);
|
|
13287
|
+
}
|
|
13288
|
+
return writer;
|
|
13289
|
+
},
|
|
13290
|
+
decode(input, length) {
|
|
13291
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13292
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13293
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13294
|
+
while (reader.pos < end) {
|
|
13295
|
+
const tag = reader.uint32();
|
|
13296
|
+
switch (tag >>> 3) {
|
|
13297
|
+
case 1: {
|
|
13298
|
+
if (tag !== 10) {
|
|
13299
|
+
break;
|
|
13300
|
+
}
|
|
13301
|
+
message.version = reader.string();
|
|
13302
|
+
continue;
|
|
13303
|
+
}
|
|
13304
|
+
}
|
|
13305
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13306
|
+
break;
|
|
13307
|
+
}
|
|
13308
|
+
reader.skip(tag & 7);
|
|
13309
|
+
}
|
|
13310
|
+
return message;
|
|
13311
|
+
},
|
|
13312
|
+
fromJSON(object) {
|
|
13313
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
13314
|
+
},
|
|
13315
|
+
toJSON(message) {
|
|
13316
|
+
const obj = {};
|
|
13317
|
+
if (message.version !== "") {
|
|
13318
|
+
obj.version = message.version;
|
|
13319
|
+
}
|
|
13320
|
+
return obj;
|
|
13321
|
+
},
|
|
13322
|
+
create(base) {
|
|
13323
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
13324
|
+
},
|
|
13325
|
+
fromPartial(object) {
|
|
13326
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13327
|
+
message.version = object.version ?? "";
|
|
13328
|
+
return message;
|
|
13329
|
+
},
|
|
13330
|
+
};
|
|
12582
13331
|
const gt = (() => {
|
|
12583
13332
|
if (typeof globalThis !== "undefined") {
|
|
12584
13333
|
return globalThis;
|