@blueyerobotics/protocol-definitions 3.2.0-9f6199cf → 3.2.0-ac052e11
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/dist/aquatroll.js +1 -1
- package/dist/control.d.ts +17 -2
- package/dist/control.js +78 -10
- package/dist/google/protobuf/any.js +1 -1
- package/dist/google/protobuf/duration.js +1 -1
- package/dist/google/protobuf/timestamp.js +1 -1
- package/dist/index.blueye.js +1 -1
- package/dist/index.blueye.protocol.js +1 -1
- package/dist/index.google.js +1 -1
- package/dist/index.google.protobuf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/message_formats.d.ts +161 -13
- package/dist/message_formats.js +1037 -144
- package/dist/mission_planning.js +1 -1
- package/dist/req_rep.js +1 -1
- package/dist/telemetry.d.ts +18 -2
- package/dist/telemetry.js +151 -5
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
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 = void 0;
|
|
8
|
+
exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = 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 = 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;
|
|
@@ -60,12 +64,16 @@ exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_Moun
|
|
|
60
64
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
61
65
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
62
66
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON;
|
|
67
|
+
exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFromJSON;
|
|
68
|
+
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
63
69
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
64
70
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
65
71
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
66
72
|
exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
|
|
67
73
|
exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
|
|
68
74
|
exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
|
|
75
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
|
|
76
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
|
|
69
77
|
/* eslint-disable */
|
|
70
78
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
71
79
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -587,6 +595,51 @@ function notificationLevelToJSON(object) {
|
|
|
587
595
|
return "UNRECOGNIZED";
|
|
588
596
|
}
|
|
589
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Storage location.
|
|
600
|
+
*
|
|
601
|
+
* Used to specify which storage location to use for recording photos and videos.
|
|
602
|
+
*/
|
|
603
|
+
var StorageLocation;
|
|
604
|
+
(function (StorageLocation) {
|
|
605
|
+
/** STORAGE_LOCATION_UNSPECIFIED - Unspecified. */
|
|
606
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_UNSPECIFIED"] = 0] = "STORAGE_LOCATION_UNSPECIFIED";
|
|
607
|
+
/** STORAGE_LOCATION_INTERNAL - Internal storage of the drone. */
|
|
608
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_INTERNAL"] = 1] = "STORAGE_LOCATION_INTERNAL";
|
|
609
|
+
/** STORAGE_LOCATION_REMOVABLE - Removable storage device. */
|
|
610
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_REMOVABLE"] = 2] = "STORAGE_LOCATION_REMOVABLE";
|
|
611
|
+
StorageLocation[StorageLocation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
612
|
+
})(StorageLocation || (exports.StorageLocation = StorageLocation = {}));
|
|
613
|
+
function storageLocationFromJSON(object) {
|
|
614
|
+
switch (object) {
|
|
615
|
+
case 0:
|
|
616
|
+
case "STORAGE_LOCATION_UNSPECIFIED":
|
|
617
|
+
return StorageLocation.STORAGE_LOCATION_UNSPECIFIED;
|
|
618
|
+
case 1:
|
|
619
|
+
case "STORAGE_LOCATION_INTERNAL":
|
|
620
|
+
return StorageLocation.STORAGE_LOCATION_INTERNAL;
|
|
621
|
+
case 2:
|
|
622
|
+
case "STORAGE_LOCATION_REMOVABLE":
|
|
623
|
+
return StorageLocation.STORAGE_LOCATION_REMOVABLE;
|
|
624
|
+
case -1:
|
|
625
|
+
case "UNRECOGNIZED":
|
|
626
|
+
default:
|
|
627
|
+
return StorageLocation.UNRECOGNIZED;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function storageLocationToJSON(object) {
|
|
631
|
+
switch (object) {
|
|
632
|
+
case StorageLocation.STORAGE_LOCATION_UNSPECIFIED:
|
|
633
|
+
return "STORAGE_LOCATION_UNSPECIFIED";
|
|
634
|
+
case StorageLocation.STORAGE_LOCATION_INTERNAL:
|
|
635
|
+
return "STORAGE_LOCATION_INTERNAL";
|
|
636
|
+
case StorageLocation.STORAGE_LOCATION_REMOVABLE:
|
|
637
|
+
return "STORAGE_LOCATION_REMOVABLE";
|
|
638
|
+
case StorageLocation.UNRECOGNIZED:
|
|
639
|
+
default:
|
|
640
|
+
return "UNRECOGNIZED";
|
|
641
|
+
}
|
|
642
|
+
}
|
|
590
643
|
/** Drone models produced by Blueye. */
|
|
591
644
|
var Model;
|
|
592
645
|
(function (Model) {
|
|
@@ -716,11 +769,13 @@ var Resolution;
|
|
|
716
769
|
(function (Resolution) {
|
|
717
770
|
/** RESOLUTION_UNSPECIFIED - Resolution not specified. */
|
|
718
771
|
Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
|
|
719
|
-
/**
|
|
720
|
-
Resolution[Resolution["
|
|
721
|
-
/** RESOLUTION_HD_720P - 720p HD
|
|
772
|
+
/** RESOLUTION_VGA_480P - VGA (640x480). */
|
|
773
|
+
Resolution[Resolution["RESOLUTION_VGA_480P"] = 4] = "RESOLUTION_VGA_480P";
|
|
774
|
+
/** RESOLUTION_HD_720P - 720p HD (1280x720). */
|
|
722
775
|
Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
|
|
723
|
-
/**
|
|
776
|
+
/** RESOLUTION_FULLHD_1080P - 1080p Full HD (1920x1080). */
|
|
777
|
+
Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
|
|
778
|
+
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
724
779
|
Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
|
|
725
780
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
726
781
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
@@ -729,12 +784,15 @@ function resolutionFromJSON(object) {
|
|
|
729
784
|
case 0:
|
|
730
785
|
case "RESOLUTION_UNSPECIFIED":
|
|
731
786
|
return Resolution.RESOLUTION_UNSPECIFIED;
|
|
732
|
-
case
|
|
733
|
-
case "
|
|
734
|
-
return Resolution.
|
|
787
|
+
case 4:
|
|
788
|
+
case "RESOLUTION_VGA_480P":
|
|
789
|
+
return Resolution.RESOLUTION_VGA_480P;
|
|
735
790
|
case 2:
|
|
736
791
|
case "RESOLUTION_HD_720P":
|
|
737
792
|
return Resolution.RESOLUTION_HD_720P;
|
|
793
|
+
case 1:
|
|
794
|
+
case "RESOLUTION_FULLHD_1080P":
|
|
795
|
+
return Resolution.RESOLUTION_FULLHD_1080P;
|
|
738
796
|
case 3:
|
|
739
797
|
case "RESOLUTION_UHD_4K":
|
|
740
798
|
return Resolution.RESOLUTION_UHD_4K;
|
|
@@ -748,10 +806,12 @@ function resolutionToJSON(object) {
|
|
|
748
806
|
switch (object) {
|
|
749
807
|
case Resolution.RESOLUTION_UNSPECIFIED:
|
|
750
808
|
return "RESOLUTION_UNSPECIFIED";
|
|
751
|
-
case Resolution.
|
|
752
|
-
return "
|
|
809
|
+
case Resolution.RESOLUTION_VGA_480P:
|
|
810
|
+
return "RESOLUTION_VGA_480P";
|
|
753
811
|
case Resolution.RESOLUTION_HD_720P:
|
|
754
812
|
return "RESOLUTION_HD_720P";
|
|
813
|
+
case Resolution.RESOLUTION_FULLHD_1080P:
|
|
814
|
+
return "RESOLUTION_FULLHD_1080P";
|
|
755
815
|
case Resolution.RESOLUTION_UHD_4K:
|
|
756
816
|
return "RESOLUTION_UHD_4K";
|
|
757
817
|
case Resolution.UNRECOGNIZED:
|
|
@@ -766,7 +826,7 @@ var Framerate;
|
|
|
766
826
|
Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
|
|
767
827
|
/** FRAMERATE_FPS_30 - 30 frames per second. */
|
|
768
828
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
769
|
-
/** FRAMERATE_FPS_25 - 25 frames per second. */
|
|
829
|
+
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
770
830
|
Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
|
|
771
831
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
772
832
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
@@ -841,6 +901,46 @@ function cameraToJSON(object) {
|
|
|
841
901
|
return "UNRECOGNIZED";
|
|
842
902
|
}
|
|
843
903
|
}
|
|
904
|
+
var StreamingProtocol;
|
|
905
|
+
(function (StreamingProtocol) {
|
|
906
|
+
/** STREAMING_PROTOCOL_UNSPECIFIED - Streaming protocol not specified. */
|
|
907
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_UNSPECIFIED"] = 0] = "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
908
|
+
/** STREAMING_PROTOCOL_RTSP_H264 - RTSP streaming protocol using H264 codec. */
|
|
909
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_H264"] = 1] = "STREAMING_PROTOCOL_RTSP_H264";
|
|
910
|
+
/** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. No recording when activated. */
|
|
911
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_MJPEG"] = 2] = "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
912
|
+
StreamingProtocol[StreamingProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
913
|
+
})(StreamingProtocol || (exports.StreamingProtocol = StreamingProtocol = {}));
|
|
914
|
+
function streamingProtocolFromJSON(object) {
|
|
915
|
+
switch (object) {
|
|
916
|
+
case 0:
|
|
917
|
+
case "STREAMING_PROTOCOL_UNSPECIFIED":
|
|
918
|
+
return StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED;
|
|
919
|
+
case 1:
|
|
920
|
+
case "STREAMING_PROTOCOL_RTSP_H264":
|
|
921
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264;
|
|
922
|
+
case 2:
|
|
923
|
+
case "STREAMING_PROTOCOL_RTSP_MJPEG":
|
|
924
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG;
|
|
925
|
+
case -1:
|
|
926
|
+
case "UNRECOGNIZED":
|
|
927
|
+
default:
|
|
928
|
+
return StreamingProtocol.UNRECOGNIZED;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
function streamingProtocolToJSON(object) {
|
|
932
|
+
switch (object) {
|
|
933
|
+
case StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED:
|
|
934
|
+
return "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
935
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264:
|
|
936
|
+
return "STREAMING_PROTOCOL_RTSP_H264";
|
|
937
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG:
|
|
938
|
+
return "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
939
|
+
case StreamingProtocol.UNRECOGNIZED:
|
|
940
|
+
default:
|
|
941
|
+
return "UNRECOGNIZED";
|
|
942
|
+
}
|
|
943
|
+
}
|
|
844
944
|
/** Available temperature units. */
|
|
845
945
|
var TemperatureUnit;
|
|
846
946
|
(function (TemperatureUnit) {
|
|
@@ -1174,6 +1274,8 @@ var GuestPortDeviceID;
|
|
|
1174
1274
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1175
1275
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1176
1276
|
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 */
|
|
1278
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1177
1279
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1178
1280
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1179
1281
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1313,6 +1415,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1313
1415
|
case 44:
|
|
1314
1416
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
|
|
1315
1417
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650;
|
|
1418
|
+
case 45:
|
|
1419
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1420
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1316
1421
|
case -1:
|
|
1317
1422
|
case "UNRECOGNIZED":
|
|
1318
1423
|
default:
|
|
@@ -1411,6 +1516,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1411
1516
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1412
1517
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
|
|
1413
1518
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1519
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1520
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1414
1521
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1415
1522
|
default:
|
|
1416
1523
|
return "UNRECOGNIZED";
|
|
@@ -1869,10 +1976,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1869
1976
|
return "UNRECOGNIZED";
|
|
1870
1977
|
}
|
|
1871
1978
|
}
|
|
1979
|
+
/** Overall status of the storage device. */
|
|
1980
|
+
var RemovableStorageDevice_Status;
|
|
1981
|
+
(function (RemovableStorageDevice_Status) {
|
|
1982
|
+
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
1983
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
1984
|
+
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1985
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
1986
|
+
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
1987
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
1988
|
+
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1989
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
1990
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1991
|
+
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
1992
|
+
function removableStorageDevice_StatusFromJSON(object) {
|
|
1993
|
+
switch (object) {
|
|
1994
|
+
case 0:
|
|
1995
|
+
case "STATUS_UNSPECIFIED":
|
|
1996
|
+
return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
|
|
1997
|
+
case 1:
|
|
1998
|
+
case "STATUS_READY":
|
|
1999
|
+
return RemovableStorageDevice_Status.STATUS_READY;
|
|
2000
|
+
case 2:
|
|
2001
|
+
case "STATUS_FORMATTING":
|
|
2002
|
+
return RemovableStorageDevice_Status.STATUS_FORMATTING;
|
|
2003
|
+
case 3:
|
|
2004
|
+
case "STATUS_ERROR":
|
|
2005
|
+
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
2006
|
+
case -1:
|
|
2007
|
+
case "UNRECOGNIZED":
|
|
2008
|
+
default:
|
|
2009
|
+
return RemovableStorageDevice_Status.UNRECOGNIZED;
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
function removableStorageDevice_StatusToJSON(object) {
|
|
2013
|
+
switch (object) {
|
|
2014
|
+
case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
|
|
2015
|
+
return "STATUS_UNSPECIFIED";
|
|
2016
|
+
case RemovableStorageDevice_Status.STATUS_READY:
|
|
2017
|
+
return "STATUS_READY";
|
|
2018
|
+
case RemovableStorageDevice_Status.STATUS_FORMATTING:
|
|
2019
|
+
return "STATUS_FORMATTING";
|
|
2020
|
+
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
2021
|
+
return "STATUS_ERROR";
|
|
2022
|
+
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
2023
|
+
default:
|
|
2024
|
+
return "UNRECOGNIZED";
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
1872
2027
|
/**
|
|
1873
2028
|
* Status of the compass calibration procedure.
|
|
1874
2029
|
*
|
|
1875
|
-
* When calibration is started, the status will indicate the active (
|
|
2030
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1876
2031
|
*/
|
|
1877
2032
|
var CalibrationState_Status;
|
|
1878
2033
|
(function (CalibrationState_Status) {
|
|
@@ -1894,7 +2049,7 @@ var CalibrationState_Status;
|
|
|
1894
2049
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1895
2050
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1896
2051
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1897
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
2052
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1898
2053
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1899
2054
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1900
2055
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -2085,6 +2240,49 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
|
|
|
2085
2240
|
return "UNRECOGNIZED";
|
|
2086
2241
|
}
|
|
2087
2242
|
}
|
|
2243
|
+
var SurfaceUnitBatteryInfo_ChargeStatus;
|
|
2244
|
+
(function (SurfaceUnitBatteryInfo_ChargeStatus) {
|
|
2245
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_UNSPECIFIED"] = 0] = "CHARGE_STATUS_UNSPECIFIED";
|
|
2246
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_DISCHARGE"] = 1] = "CHARGE_STATUS_DISCHARGE";
|
|
2247
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE"] = 2] = "CHARGE_STATUS_CHARGE";
|
|
2248
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE_ERROR"] = 3] = "CHARGE_STATUS_CHARGE_ERROR";
|
|
2249
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2250
|
+
})(SurfaceUnitBatteryInfo_ChargeStatus || (exports.SurfaceUnitBatteryInfo_ChargeStatus = SurfaceUnitBatteryInfo_ChargeStatus = {}));
|
|
2251
|
+
function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object) {
|
|
2252
|
+
switch (object) {
|
|
2253
|
+
case 0:
|
|
2254
|
+
case "CHARGE_STATUS_UNSPECIFIED":
|
|
2255
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED;
|
|
2256
|
+
case 1:
|
|
2257
|
+
case "CHARGE_STATUS_DISCHARGE":
|
|
2258
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE;
|
|
2259
|
+
case 2:
|
|
2260
|
+
case "CHARGE_STATUS_CHARGE":
|
|
2261
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE;
|
|
2262
|
+
case 3:
|
|
2263
|
+
case "CHARGE_STATUS_CHARGE_ERROR":
|
|
2264
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR;
|
|
2265
|
+
case -1:
|
|
2266
|
+
case "UNRECOGNIZED":
|
|
2267
|
+
default:
|
|
2268
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED;
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
2272
|
+
switch (object) {
|
|
2273
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED:
|
|
2274
|
+
return "CHARGE_STATUS_UNSPECIFIED";
|
|
2275
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE:
|
|
2276
|
+
return "CHARGE_STATUS_DISCHARGE";
|
|
2277
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE:
|
|
2278
|
+
return "CHARGE_STATUS_CHARGE";
|
|
2279
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR:
|
|
2280
|
+
return "CHARGE_STATUS_CHARGE_ERROR";
|
|
2281
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED:
|
|
2282
|
+
default:
|
|
2283
|
+
return "UNRECOGNIZED";
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2088
2286
|
function createBaseBinlogRecord() {
|
|
2089
2287
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2090
2288
|
}
|
|
@@ -3594,6 +3792,7 @@ function createBaseRecordState() {
|
|
|
3594
3792
|
multibeamIsRecording: false,
|
|
3595
3793
|
multibeamSeconds: 0,
|
|
3596
3794
|
multibeamFps: 0,
|
|
3795
|
+
storageLocation: 0,
|
|
3597
3796
|
};
|
|
3598
3797
|
}
|
|
3599
3798
|
exports.RecordState = {
|
|
@@ -3625,6 +3824,9 @@ exports.RecordState = {
|
|
|
3625
3824
|
if (message.multibeamFps !== 0) {
|
|
3626
3825
|
writer.uint32(77).float(message.multibeamFps);
|
|
3627
3826
|
}
|
|
3827
|
+
if (message.storageLocation !== 0) {
|
|
3828
|
+
writer.uint32(80).int32(message.storageLocation);
|
|
3829
|
+
}
|
|
3628
3830
|
return writer;
|
|
3629
3831
|
},
|
|
3630
3832
|
decode(input, length) {
|
|
@@ -3697,6 +3899,13 @@ exports.RecordState = {
|
|
|
3697
3899
|
message.multibeamFps = reader.float();
|
|
3698
3900
|
continue;
|
|
3699
3901
|
}
|
|
3902
|
+
case 10: {
|
|
3903
|
+
if (tag !== 80) {
|
|
3904
|
+
break;
|
|
3905
|
+
}
|
|
3906
|
+
message.storageLocation = reader.int32();
|
|
3907
|
+
continue;
|
|
3908
|
+
}
|
|
3700
3909
|
}
|
|
3701
3910
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3702
3911
|
break;
|
|
@@ -3716,6 +3925,7 @@ exports.RecordState = {
|
|
|
3716
3925
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3717
3926
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3718
3927
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
3928
|
+
storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
|
|
3719
3929
|
};
|
|
3720
3930
|
},
|
|
3721
3931
|
toJSON(message) {
|
|
@@ -3747,6 +3957,9 @@ exports.RecordState = {
|
|
|
3747
3957
|
if (message.multibeamFps !== 0) {
|
|
3748
3958
|
obj.multibeamFps = message.multibeamFps;
|
|
3749
3959
|
}
|
|
3960
|
+
if (message.storageLocation !== 0) {
|
|
3961
|
+
obj.storageLocation = storageLocationToJSON(message.storageLocation);
|
|
3962
|
+
}
|
|
3750
3963
|
return obj;
|
|
3751
3964
|
},
|
|
3752
3965
|
create(base) {
|
|
@@ -3763,6 +3976,7 @@ exports.RecordState = {
|
|
|
3763
3976
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3764
3977
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3765
3978
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
3979
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
3766
3980
|
return message;
|
|
3767
3981
|
},
|
|
3768
3982
|
};
|
|
@@ -7669,107 +7883,58 @@ exports.StorageSpace = {
|
|
|
7669
7883
|
return message;
|
|
7670
7884
|
},
|
|
7671
7885
|
};
|
|
7672
|
-
function
|
|
7673
|
-
return {
|
|
7674
|
-
status: 0,
|
|
7675
|
-
progressXPositive: 0,
|
|
7676
|
-
progressXNegative: 0,
|
|
7677
|
-
progressYPositive: 0,
|
|
7678
|
-
progressYNegative: 0,
|
|
7679
|
-
progressZPositive: 0,
|
|
7680
|
-
progressZNegative: 0,
|
|
7681
|
-
progressThruster: 0,
|
|
7682
|
-
};
|
|
7886
|
+
function createBaseStoragePartition() {
|
|
7887
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
7683
7888
|
}
|
|
7684
|
-
exports.
|
|
7889
|
+
exports.StoragePartition = {
|
|
7685
7890
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7686
|
-
if (message.
|
|
7687
|
-
writer.uint32(
|
|
7688
|
-
}
|
|
7689
|
-
if (message.progressXPositive !== 0) {
|
|
7690
|
-
writer.uint32(21).float(message.progressXPositive);
|
|
7691
|
-
}
|
|
7692
|
-
if (message.progressXNegative !== 0) {
|
|
7693
|
-
writer.uint32(29).float(message.progressXNegative);
|
|
7891
|
+
if (message.storageSpace !== undefined) {
|
|
7892
|
+
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
7694
7893
|
}
|
|
7695
|
-
if (message.
|
|
7696
|
-
writer.uint32(
|
|
7697
|
-
}
|
|
7698
|
-
if (message.progressYNegative !== 0) {
|
|
7699
|
-
writer.uint32(45).float(message.progressYNegative);
|
|
7700
|
-
}
|
|
7701
|
-
if (message.progressZPositive !== 0) {
|
|
7702
|
-
writer.uint32(53).float(message.progressZPositive);
|
|
7894
|
+
if (message.fileSystemType !== "") {
|
|
7895
|
+
writer.uint32(18).string(message.fileSystemType);
|
|
7703
7896
|
}
|
|
7704
|
-
if (message.
|
|
7705
|
-
writer.uint32(
|
|
7897
|
+
if (message.devicePath !== "") {
|
|
7898
|
+
writer.uint32(26).string(message.devicePath);
|
|
7706
7899
|
}
|
|
7707
|
-
if (message.
|
|
7708
|
-
writer.uint32(
|
|
7900
|
+
if (message.mountPath !== "") {
|
|
7901
|
+
writer.uint32(34).string(message.mountPath);
|
|
7709
7902
|
}
|
|
7710
7903
|
return writer;
|
|
7711
7904
|
},
|
|
7712
7905
|
decode(input, length) {
|
|
7713
7906
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7714
7907
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7715
|
-
const message =
|
|
7908
|
+
const message = createBaseStoragePartition();
|
|
7716
7909
|
while (reader.pos < end) {
|
|
7717
7910
|
const tag = reader.uint32();
|
|
7718
7911
|
switch (tag >>> 3) {
|
|
7719
7912
|
case 1: {
|
|
7720
|
-
if (tag !==
|
|
7913
|
+
if (tag !== 10) {
|
|
7721
7914
|
break;
|
|
7722
7915
|
}
|
|
7723
|
-
message.
|
|
7916
|
+
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
7724
7917
|
continue;
|
|
7725
7918
|
}
|
|
7726
7919
|
case 2: {
|
|
7727
|
-
if (tag !==
|
|
7920
|
+
if (tag !== 18) {
|
|
7728
7921
|
break;
|
|
7729
7922
|
}
|
|
7730
|
-
message.
|
|
7923
|
+
message.fileSystemType = reader.string();
|
|
7731
7924
|
continue;
|
|
7732
7925
|
}
|
|
7733
7926
|
case 3: {
|
|
7734
|
-
if (tag !==
|
|
7927
|
+
if (tag !== 26) {
|
|
7735
7928
|
break;
|
|
7736
7929
|
}
|
|
7737
|
-
message.
|
|
7930
|
+
message.devicePath = reader.string();
|
|
7738
7931
|
continue;
|
|
7739
7932
|
}
|
|
7740
7933
|
case 4: {
|
|
7741
|
-
if (tag !==
|
|
7742
|
-
break;
|
|
7743
|
-
}
|
|
7744
|
-
message.progressYPositive = reader.float();
|
|
7745
|
-
continue;
|
|
7746
|
-
}
|
|
7747
|
-
case 5: {
|
|
7748
|
-
if (tag !== 45) {
|
|
7749
|
-
break;
|
|
7750
|
-
}
|
|
7751
|
-
message.progressYNegative = reader.float();
|
|
7752
|
-
continue;
|
|
7753
|
-
}
|
|
7754
|
-
case 6: {
|
|
7755
|
-
if (tag !== 53) {
|
|
7756
|
-
break;
|
|
7757
|
-
}
|
|
7758
|
-
message.progressZPositive = reader.float();
|
|
7759
|
-
continue;
|
|
7760
|
-
}
|
|
7761
|
-
case 7: {
|
|
7762
|
-
if (tag !== 61) {
|
|
7763
|
-
break;
|
|
7764
|
-
}
|
|
7765
|
-
message.progressZNegative = reader.float();
|
|
7766
|
-
continue;
|
|
7767
|
-
}
|
|
7768
|
-
case 8: {
|
|
7769
|
-
if (tag !== 69) {
|
|
7934
|
+
if (tag !== 34) {
|
|
7770
7935
|
break;
|
|
7771
7936
|
}
|
|
7772
|
-
message.
|
|
7937
|
+
message.mountPath = reader.string();
|
|
7773
7938
|
continue;
|
|
7774
7939
|
}
|
|
7775
7940
|
}
|
|
@@ -7782,92 +7947,114 @@ exports.CalibrationState = {
|
|
|
7782
7947
|
},
|
|
7783
7948
|
fromJSON(object) {
|
|
7784
7949
|
return {
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
progressYNegative: isSet(object.progressYNegative) ? gt.Number(object.progressYNegative) : 0,
|
|
7790
|
-
progressZPositive: isSet(object.progressZPositive) ? gt.Number(object.progressZPositive) : 0,
|
|
7791
|
-
progressZNegative: isSet(object.progressZNegative) ? gt.Number(object.progressZNegative) : 0,
|
|
7792
|
-
progressThruster: isSet(object.progressThruster) ? gt.Number(object.progressThruster) : 0,
|
|
7950
|
+
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
7951
|
+
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7952
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7953
|
+
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
7793
7954
|
};
|
|
7794
7955
|
},
|
|
7795
7956
|
toJSON(message) {
|
|
7796
7957
|
const obj = {};
|
|
7797
|
-
if (message.
|
|
7798
|
-
obj.
|
|
7799
|
-
}
|
|
7800
|
-
if (message.progressXPositive !== 0) {
|
|
7801
|
-
obj.progressXPositive = message.progressXPositive;
|
|
7802
|
-
}
|
|
7803
|
-
if (message.progressXNegative !== 0) {
|
|
7804
|
-
obj.progressXNegative = message.progressXNegative;
|
|
7805
|
-
}
|
|
7806
|
-
if (message.progressYPositive !== 0) {
|
|
7807
|
-
obj.progressYPositive = message.progressYPositive;
|
|
7958
|
+
if (message.storageSpace !== undefined) {
|
|
7959
|
+
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
7808
7960
|
}
|
|
7809
|
-
if (message.
|
|
7810
|
-
obj.
|
|
7811
|
-
}
|
|
7812
|
-
if (message.progressZPositive !== 0) {
|
|
7813
|
-
obj.progressZPositive = message.progressZPositive;
|
|
7961
|
+
if (message.fileSystemType !== "") {
|
|
7962
|
+
obj.fileSystemType = message.fileSystemType;
|
|
7814
7963
|
}
|
|
7815
|
-
if (message.
|
|
7816
|
-
obj.
|
|
7964
|
+
if (message.devicePath !== "") {
|
|
7965
|
+
obj.devicePath = message.devicePath;
|
|
7817
7966
|
}
|
|
7818
|
-
if (message.
|
|
7819
|
-
obj.
|
|
7967
|
+
if (message.mountPath !== "") {
|
|
7968
|
+
obj.mountPath = message.mountPath;
|
|
7820
7969
|
}
|
|
7821
7970
|
return obj;
|
|
7822
7971
|
},
|
|
7823
7972
|
create(base) {
|
|
7824
|
-
return exports.
|
|
7973
|
+
return exports.StoragePartition.fromPartial(base ?? {});
|
|
7825
7974
|
},
|
|
7826
7975
|
fromPartial(object) {
|
|
7827
|
-
const message =
|
|
7828
|
-
message.
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
message.
|
|
7832
|
-
message.
|
|
7833
|
-
message.
|
|
7834
|
-
message.progressZNegative = object.progressZNegative ?? 0;
|
|
7835
|
-
message.progressThruster = object.progressThruster ?? 0;
|
|
7976
|
+
const message = createBaseStoragePartition();
|
|
7977
|
+
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
7978
|
+
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
7979
|
+
: undefined;
|
|
7980
|
+
message.fileSystemType = object.fileSystemType ?? "";
|
|
7981
|
+
message.devicePath = object.devicePath ?? "";
|
|
7982
|
+
message.mountPath = object.mountPath ?? "";
|
|
7836
7983
|
return message;
|
|
7837
7984
|
},
|
|
7838
7985
|
};
|
|
7839
|
-
function
|
|
7840
|
-
return {
|
|
7986
|
+
function createBaseRemovableStorageDevice() {
|
|
7987
|
+
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
7841
7988
|
}
|
|
7842
|
-
exports.
|
|
7989
|
+
exports.RemovableStorageDevice = {
|
|
7843
7990
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7844
|
-
if (message.
|
|
7845
|
-
writer.uint32(
|
|
7991
|
+
if (message.vendorName !== "") {
|
|
7992
|
+
writer.uint32(10).string(message.vendorName);
|
|
7846
7993
|
}
|
|
7847
|
-
if (message.
|
|
7848
|
-
writer.uint32(
|
|
7994
|
+
if (message.modelName !== "") {
|
|
7995
|
+
writer.uint32(18).string(message.modelName);
|
|
7996
|
+
}
|
|
7997
|
+
if (message.devicePath !== "") {
|
|
7998
|
+
writer.uint32(26).string(message.devicePath);
|
|
7999
|
+
}
|
|
8000
|
+
if (message.status !== 0) {
|
|
8001
|
+
writer.uint32(32).int32(message.status);
|
|
8002
|
+
}
|
|
8003
|
+
if (message.errorFlags !== undefined) {
|
|
8004
|
+
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
8005
|
+
}
|
|
8006
|
+
for (const v of message.partitions) {
|
|
8007
|
+
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
7849
8008
|
}
|
|
7850
8009
|
return writer;
|
|
7851
8010
|
},
|
|
7852
8011
|
decode(input, length) {
|
|
7853
8012
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7854
8013
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7855
|
-
const message =
|
|
8014
|
+
const message = createBaseRemovableStorageDevice();
|
|
7856
8015
|
while (reader.pos < end) {
|
|
7857
8016
|
const tag = reader.uint32();
|
|
7858
8017
|
switch (tag >>> 3) {
|
|
7859
8018
|
case 1: {
|
|
7860
|
-
if (tag !==
|
|
8019
|
+
if (tag !== 10) {
|
|
7861
8020
|
break;
|
|
7862
8021
|
}
|
|
7863
|
-
message.
|
|
8022
|
+
message.vendorName = reader.string();
|
|
7864
8023
|
continue;
|
|
7865
8024
|
}
|
|
7866
8025
|
case 2: {
|
|
7867
|
-
if (tag !==
|
|
8026
|
+
if (tag !== 18) {
|
|
7868
8027
|
break;
|
|
7869
8028
|
}
|
|
7870
|
-
message.
|
|
8029
|
+
message.modelName = reader.string();
|
|
8030
|
+
continue;
|
|
8031
|
+
}
|
|
8032
|
+
case 3: {
|
|
8033
|
+
if (tag !== 26) {
|
|
8034
|
+
break;
|
|
8035
|
+
}
|
|
8036
|
+
message.devicePath = reader.string();
|
|
8037
|
+
continue;
|
|
8038
|
+
}
|
|
8039
|
+
case 4: {
|
|
8040
|
+
if (tag !== 32) {
|
|
8041
|
+
break;
|
|
8042
|
+
}
|
|
8043
|
+
message.status = reader.int32();
|
|
8044
|
+
continue;
|
|
8045
|
+
}
|
|
8046
|
+
case 5: {
|
|
8047
|
+
if (tag !== 42) {
|
|
8048
|
+
break;
|
|
8049
|
+
}
|
|
8050
|
+
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
8051
|
+
continue;
|
|
8052
|
+
}
|
|
8053
|
+
case 6: {
|
|
8054
|
+
if (tag !== 50) {
|
|
8055
|
+
break;
|
|
8056
|
+
}
|
|
8057
|
+
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
7871
8058
|
continue;
|
|
7872
8059
|
}
|
|
7873
8060
|
}
|
|
@@ -7880,25 +8067,421 @@ exports.IperfStatus = {
|
|
|
7880
8067
|
},
|
|
7881
8068
|
fromJSON(object) {
|
|
7882
8069
|
return {
|
|
7883
|
-
|
|
7884
|
-
|
|
8070
|
+
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
8071
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
8072
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8073
|
+
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
8074
|
+
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
8075
|
+
partitions: gt.Array.isArray(object?.partitions)
|
|
8076
|
+
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
8077
|
+
: [],
|
|
7885
8078
|
};
|
|
7886
8079
|
},
|
|
7887
8080
|
toJSON(message) {
|
|
7888
8081
|
const obj = {};
|
|
7889
|
-
if (message.
|
|
7890
|
-
obj.
|
|
8082
|
+
if (message.vendorName !== "") {
|
|
8083
|
+
obj.vendorName = message.vendorName;
|
|
7891
8084
|
}
|
|
7892
|
-
if (message.
|
|
7893
|
-
obj.
|
|
8085
|
+
if (message.modelName !== "") {
|
|
8086
|
+
obj.modelName = message.modelName;
|
|
8087
|
+
}
|
|
8088
|
+
if (message.devicePath !== "") {
|
|
8089
|
+
obj.devicePath = message.devicePath;
|
|
8090
|
+
}
|
|
8091
|
+
if (message.status !== 0) {
|
|
8092
|
+
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
8093
|
+
}
|
|
8094
|
+
if (message.errorFlags !== undefined) {
|
|
8095
|
+
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
8096
|
+
}
|
|
8097
|
+
if (message.partitions?.length) {
|
|
8098
|
+
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
7894
8099
|
}
|
|
7895
8100
|
return obj;
|
|
7896
8101
|
},
|
|
7897
8102
|
create(base) {
|
|
7898
|
-
return exports.
|
|
8103
|
+
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
7899
8104
|
},
|
|
7900
8105
|
fromPartial(object) {
|
|
7901
|
-
const message =
|
|
8106
|
+
const message = createBaseRemovableStorageDevice();
|
|
8107
|
+
message.vendorName = object.vendorName ?? "";
|
|
8108
|
+
message.modelName = object.modelName ?? "";
|
|
8109
|
+
message.devicePath = object.devicePath ?? "";
|
|
8110
|
+
message.status = object.status ?? 0;
|
|
8111
|
+
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
8112
|
+
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
8113
|
+
: undefined;
|
|
8114
|
+
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
8115
|
+
return message;
|
|
8116
|
+
},
|
|
8117
|
+
};
|
|
8118
|
+
function createBaseRemovableStorageErrorFlags() {
|
|
8119
|
+
return {
|
|
8120
|
+
errorMessage: "",
|
|
8121
|
+
noPartitionsFound: false,
|
|
8122
|
+
multiplePartitionsFound: false,
|
|
8123
|
+
wrongFileSystemFound: false,
|
|
8124
|
+
deviceIsReadOnly: false,
|
|
8125
|
+
formattingFailed: false,
|
|
8126
|
+
};
|
|
8127
|
+
}
|
|
8128
|
+
exports.RemovableStorageErrorFlags = {
|
|
8129
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8130
|
+
if (message.errorMessage !== "") {
|
|
8131
|
+
writer.uint32(10).string(message.errorMessage);
|
|
8132
|
+
}
|
|
8133
|
+
if (message.noPartitionsFound !== false) {
|
|
8134
|
+
writer.uint32(16).bool(message.noPartitionsFound);
|
|
8135
|
+
}
|
|
8136
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8137
|
+
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
8138
|
+
}
|
|
8139
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8140
|
+
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
8141
|
+
}
|
|
8142
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8143
|
+
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
8144
|
+
}
|
|
8145
|
+
if (message.formattingFailed !== false) {
|
|
8146
|
+
writer.uint32(48).bool(message.formattingFailed);
|
|
8147
|
+
}
|
|
8148
|
+
return writer;
|
|
8149
|
+
},
|
|
8150
|
+
decode(input, length) {
|
|
8151
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8152
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8153
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8154
|
+
while (reader.pos < end) {
|
|
8155
|
+
const tag = reader.uint32();
|
|
8156
|
+
switch (tag >>> 3) {
|
|
8157
|
+
case 1: {
|
|
8158
|
+
if (tag !== 10) {
|
|
8159
|
+
break;
|
|
8160
|
+
}
|
|
8161
|
+
message.errorMessage = reader.string();
|
|
8162
|
+
continue;
|
|
8163
|
+
}
|
|
8164
|
+
case 2: {
|
|
8165
|
+
if (tag !== 16) {
|
|
8166
|
+
break;
|
|
8167
|
+
}
|
|
8168
|
+
message.noPartitionsFound = reader.bool();
|
|
8169
|
+
continue;
|
|
8170
|
+
}
|
|
8171
|
+
case 3: {
|
|
8172
|
+
if (tag !== 24) {
|
|
8173
|
+
break;
|
|
8174
|
+
}
|
|
8175
|
+
message.multiplePartitionsFound = reader.bool();
|
|
8176
|
+
continue;
|
|
8177
|
+
}
|
|
8178
|
+
case 4: {
|
|
8179
|
+
if (tag !== 32) {
|
|
8180
|
+
break;
|
|
8181
|
+
}
|
|
8182
|
+
message.wrongFileSystemFound = reader.bool();
|
|
8183
|
+
continue;
|
|
8184
|
+
}
|
|
8185
|
+
case 5: {
|
|
8186
|
+
if (tag !== 40) {
|
|
8187
|
+
break;
|
|
8188
|
+
}
|
|
8189
|
+
message.deviceIsReadOnly = reader.bool();
|
|
8190
|
+
continue;
|
|
8191
|
+
}
|
|
8192
|
+
case 6: {
|
|
8193
|
+
if (tag !== 48) {
|
|
8194
|
+
break;
|
|
8195
|
+
}
|
|
8196
|
+
message.formattingFailed = reader.bool();
|
|
8197
|
+
continue;
|
|
8198
|
+
}
|
|
8199
|
+
}
|
|
8200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8201
|
+
break;
|
|
8202
|
+
}
|
|
8203
|
+
reader.skip(tag & 7);
|
|
8204
|
+
}
|
|
8205
|
+
return message;
|
|
8206
|
+
},
|
|
8207
|
+
fromJSON(object) {
|
|
8208
|
+
return {
|
|
8209
|
+
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
8210
|
+
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
8211
|
+
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
8212
|
+
? gt.Boolean(object.multiplePartitionsFound)
|
|
8213
|
+
: false,
|
|
8214
|
+
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
8215
|
+
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
8216
|
+
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
8217
|
+
};
|
|
8218
|
+
},
|
|
8219
|
+
toJSON(message) {
|
|
8220
|
+
const obj = {};
|
|
8221
|
+
if (message.errorMessage !== "") {
|
|
8222
|
+
obj.errorMessage = message.errorMessage;
|
|
8223
|
+
}
|
|
8224
|
+
if (message.noPartitionsFound !== false) {
|
|
8225
|
+
obj.noPartitionsFound = message.noPartitionsFound;
|
|
8226
|
+
}
|
|
8227
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8228
|
+
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
8229
|
+
}
|
|
8230
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8231
|
+
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
8232
|
+
}
|
|
8233
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8234
|
+
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
8235
|
+
}
|
|
8236
|
+
if (message.formattingFailed !== false) {
|
|
8237
|
+
obj.formattingFailed = message.formattingFailed;
|
|
8238
|
+
}
|
|
8239
|
+
return obj;
|
|
8240
|
+
},
|
|
8241
|
+
create(base) {
|
|
8242
|
+
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
8243
|
+
},
|
|
8244
|
+
fromPartial(object) {
|
|
8245
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8246
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
8247
|
+
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
8248
|
+
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
8249
|
+
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
8250
|
+
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
8251
|
+
message.formattingFailed = object.formattingFailed ?? false;
|
|
8252
|
+
return message;
|
|
8253
|
+
},
|
|
8254
|
+
};
|
|
8255
|
+
function createBaseCalibrationState() {
|
|
8256
|
+
return {
|
|
8257
|
+
status: 0,
|
|
8258
|
+
progressXPositive: 0,
|
|
8259
|
+
progressXNegative: 0,
|
|
8260
|
+
progressYPositive: 0,
|
|
8261
|
+
progressYNegative: 0,
|
|
8262
|
+
progressZPositive: 0,
|
|
8263
|
+
progressZNegative: 0,
|
|
8264
|
+
progressThruster: 0,
|
|
8265
|
+
};
|
|
8266
|
+
}
|
|
8267
|
+
exports.CalibrationState = {
|
|
8268
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8269
|
+
if (message.status !== 0) {
|
|
8270
|
+
writer.uint32(8).int32(message.status);
|
|
8271
|
+
}
|
|
8272
|
+
if (message.progressXPositive !== 0) {
|
|
8273
|
+
writer.uint32(21).float(message.progressXPositive);
|
|
8274
|
+
}
|
|
8275
|
+
if (message.progressXNegative !== 0) {
|
|
8276
|
+
writer.uint32(29).float(message.progressXNegative);
|
|
8277
|
+
}
|
|
8278
|
+
if (message.progressYPositive !== 0) {
|
|
8279
|
+
writer.uint32(37).float(message.progressYPositive);
|
|
8280
|
+
}
|
|
8281
|
+
if (message.progressYNegative !== 0) {
|
|
8282
|
+
writer.uint32(45).float(message.progressYNegative);
|
|
8283
|
+
}
|
|
8284
|
+
if (message.progressZPositive !== 0) {
|
|
8285
|
+
writer.uint32(53).float(message.progressZPositive);
|
|
8286
|
+
}
|
|
8287
|
+
if (message.progressZNegative !== 0) {
|
|
8288
|
+
writer.uint32(61).float(message.progressZNegative);
|
|
8289
|
+
}
|
|
8290
|
+
if (message.progressThruster !== 0) {
|
|
8291
|
+
writer.uint32(69).float(message.progressThruster);
|
|
8292
|
+
}
|
|
8293
|
+
return writer;
|
|
8294
|
+
},
|
|
8295
|
+
decode(input, length) {
|
|
8296
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8297
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8298
|
+
const message = createBaseCalibrationState();
|
|
8299
|
+
while (reader.pos < end) {
|
|
8300
|
+
const tag = reader.uint32();
|
|
8301
|
+
switch (tag >>> 3) {
|
|
8302
|
+
case 1: {
|
|
8303
|
+
if (tag !== 8) {
|
|
8304
|
+
break;
|
|
8305
|
+
}
|
|
8306
|
+
message.status = reader.int32();
|
|
8307
|
+
continue;
|
|
8308
|
+
}
|
|
8309
|
+
case 2: {
|
|
8310
|
+
if (tag !== 21) {
|
|
8311
|
+
break;
|
|
8312
|
+
}
|
|
8313
|
+
message.progressXPositive = reader.float();
|
|
8314
|
+
continue;
|
|
8315
|
+
}
|
|
8316
|
+
case 3: {
|
|
8317
|
+
if (tag !== 29) {
|
|
8318
|
+
break;
|
|
8319
|
+
}
|
|
8320
|
+
message.progressXNegative = reader.float();
|
|
8321
|
+
continue;
|
|
8322
|
+
}
|
|
8323
|
+
case 4: {
|
|
8324
|
+
if (tag !== 37) {
|
|
8325
|
+
break;
|
|
8326
|
+
}
|
|
8327
|
+
message.progressYPositive = reader.float();
|
|
8328
|
+
continue;
|
|
8329
|
+
}
|
|
8330
|
+
case 5: {
|
|
8331
|
+
if (tag !== 45) {
|
|
8332
|
+
break;
|
|
8333
|
+
}
|
|
8334
|
+
message.progressYNegative = reader.float();
|
|
8335
|
+
continue;
|
|
8336
|
+
}
|
|
8337
|
+
case 6: {
|
|
8338
|
+
if (tag !== 53) {
|
|
8339
|
+
break;
|
|
8340
|
+
}
|
|
8341
|
+
message.progressZPositive = reader.float();
|
|
8342
|
+
continue;
|
|
8343
|
+
}
|
|
8344
|
+
case 7: {
|
|
8345
|
+
if (tag !== 61) {
|
|
8346
|
+
break;
|
|
8347
|
+
}
|
|
8348
|
+
message.progressZNegative = reader.float();
|
|
8349
|
+
continue;
|
|
8350
|
+
}
|
|
8351
|
+
case 8: {
|
|
8352
|
+
if (tag !== 69) {
|
|
8353
|
+
break;
|
|
8354
|
+
}
|
|
8355
|
+
message.progressThruster = reader.float();
|
|
8356
|
+
continue;
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8360
|
+
break;
|
|
8361
|
+
}
|
|
8362
|
+
reader.skip(tag & 7);
|
|
8363
|
+
}
|
|
8364
|
+
return message;
|
|
8365
|
+
},
|
|
8366
|
+
fromJSON(object) {
|
|
8367
|
+
return {
|
|
8368
|
+
status: isSet(object.status) ? calibrationState_StatusFromJSON(object.status) : 0,
|
|
8369
|
+
progressXPositive: isSet(object.progressXPositive) ? gt.Number(object.progressXPositive) : 0,
|
|
8370
|
+
progressXNegative: isSet(object.progressXNegative) ? gt.Number(object.progressXNegative) : 0,
|
|
8371
|
+
progressYPositive: isSet(object.progressYPositive) ? gt.Number(object.progressYPositive) : 0,
|
|
8372
|
+
progressYNegative: isSet(object.progressYNegative) ? gt.Number(object.progressYNegative) : 0,
|
|
8373
|
+
progressZPositive: isSet(object.progressZPositive) ? gt.Number(object.progressZPositive) : 0,
|
|
8374
|
+
progressZNegative: isSet(object.progressZNegative) ? gt.Number(object.progressZNegative) : 0,
|
|
8375
|
+
progressThruster: isSet(object.progressThruster) ? gt.Number(object.progressThruster) : 0,
|
|
8376
|
+
};
|
|
8377
|
+
},
|
|
8378
|
+
toJSON(message) {
|
|
8379
|
+
const obj = {};
|
|
8380
|
+
if (message.status !== 0) {
|
|
8381
|
+
obj.status = calibrationState_StatusToJSON(message.status);
|
|
8382
|
+
}
|
|
8383
|
+
if (message.progressXPositive !== 0) {
|
|
8384
|
+
obj.progressXPositive = message.progressXPositive;
|
|
8385
|
+
}
|
|
8386
|
+
if (message.progressXNegative !== 0) {
|
|
8387
|
+
obj.progressXNegative = message.progressXNegative;
|
|
8388
|
+
}
|
|
8389
|
+
if (message.progressYPositive !== 0) {
|
|
8390
|
+
obj.progressYPositive = message.progressYPositive;
|
|
8391
|
+
}
|
|
8392
|
+
if (message.progressYNegative !== 0) {
|
|
8393
|
+
obj.progressYNegative = message.progressYNegative;
|
|
8394
|
+
}
|
|
8395
|
+
if (message.progressZPositive !== 0) {
|
|
8396
|
+
obj.progressZPositive = message.progressZPositive;
|
|
8397
|
+
}
|
|
8398
|
+
if (message.progressZNegative !== 0) {
|
|
8399
|
+
obj.progressZNegative = message.progressZNegative;
|
|
8400
|
+
}
|
|
8401
|
+
if (message.progressThruster !== 0) {
|
|
8402
|
+
obj.progressThruster = message.progressThruster;
|
|
8403
|
+
}
|
|
8404
|
+
return obj;
|
|
8405
|
+
},
|
|
8406
|
+
create(base) {
|
|
8407
|
+
return exports.CalibrationState.fromPartial(base ?? {});
|
|
8408
|
+
},
|
|
8409
|
+
fromPartial(object) {
|
|
8410
|
+
const message = createBaseCalibrationState();
|
|
8411
|
+
message.status = object.status ?? 0;
|
|
8412
|
+
message.progressXPositive = object.progressXPositive ?? 0;
|
|
8413
|
+
message.progressXNegative = object.progressXNegative ?? 0;
|
|
8414
|
+
message.progressYPositive = object.progressYPositive ?? 0;
|
|
8415
|
+
message.progressYNegative = object.progressYNegative ?? 0;
|
|
8416
|
+
message.progressZPositive = object.progressZPositive ?? 0;
|
|
8417
|
+
message.progressZNegative = object.progressZNegative ?? 0;
|
|
8418
|
+
message.progressThruster = object.progressThruster ?? 0;
|
|
8419
|
+
return message;
|
|
8420
|
+
},
|
|
8421
|
+
};
|
|
8422
|
+
function createBaseIperfStatus() {
|
|
8423
|
+
return { sent: 0, received: 0 };
|
|
8424
|
+
}
|
|
8425
|
+
exports.IperfStatus = {
|
|
8426
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8427
|
+
if (message.sent !== 0) {
|
|
8428
|
+
writer.uint32(13).float(message.sent);
|
|
8429
|
+
}
|
|
8430
|
+
if (message.received !== 0) {
|
|
8431
|
+
writer.uint32(21).float(message.received);
|
|
8432
|
+
}
|
|
8433
|
+
return writer;
|
|
8434
|
+
},
|
|
8435
|
+
decode(input, length) {
|
|
8436
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8437
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8438
|
+
const message = createBaseIperfStatus();
|
|
8439
|
+
while (reader.pos < end) {
|
|
8440
|
+
const tag = reader.uint32();
|
|
8441
|
+
switch (tag >>> 3) {
|
|
8442
|
+
case 1: {
|
|
8443
|
+
if (tag !== 13) {
|
|
8444
|
+
break;
|
|
8445
|
+
}
|
|
8446
|
+
message.sent = reader.float();
|
|
8447
|
+
continue;
|
|
8448
|
+
}
|
|
8449
|
+
case 2: {
|
|
8450
|
+
if (tag !== 21) {
|
|
8451
|
+
break;
|
|
8452
|
+
}
|
|
8453
|
+
message.received = reader.float();
|
|
8454
|
+
continue;
|
|
8455
|
+
}
|
|
8456
|
+
}
|
|
8457
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8458
|
+
break;
|
|
8459
|
+
}
|
|
8460
|
+
reader.skip(tag & 7);
|
|
8461
|
+
}
|
|
8462
|
+
return message;
|
|
8463
|
+
},
|
|
8464
|
+
fromJSON(object) {
|
|
8465
|
+
return {
|
|
8466
|
+
sent: isSet(object.sent) ? gt.Number(object.sent) : 0,
|
|
8467
|
+
received: isSet(object.received) ? gt.Number(object.received) : 0,
|
|
8468
|
+
};
|
|
8469
|
+
},
|
|
8470
|
+
toJSON(message) {
|
|
8471
|
+
const obj = {};
|
|
8472
|
+
if (message.sent !== 0) {
|
|
8473
|
+
obj.sent = message.sent;
|
|
8474
|
+
}
|
|
8475
|
+
if (message.received !== 0) {
|
|
8476
|
+
obj.received = message.received;
|
|
8477
|
+
}
|
|
8478
|
+
return obj;
|
|
8479
|
+
},
|
|
8480
|
+
create(base) {
|
|
8481
|
+
return exports.IperfStatus.fromPartial(base ?? {});
|
|
8482
|
+
},
|
|
8483
|
+
fromPartial(object) {
|
|
8484
|
+
const message = createBaseIperfStatus();
|
|
7902
8485
|
message.sent = object.sent ?? 0;
|
|
7903
8486
|
message.received = object.received ?? 0;
|
|
7904
8487
|
return message;
|
|
@@ -9094,9 +9677,20 @@ function createBaseCameraParameters() {
|
|
|
9094
9677
|
whiteBalance: 0,
|
|
9095
9678
|
hue: 0,
|
|
9096
9679
|
gain: 0,
|
|
9680
|
+
brightness: 0,
|
|
9681
|
+
contrast: 0,
|
|
9682
|
+
saturation: 0,
|
|
9683
|
+
gamma: 0,
|
|
9684
|
+
sharpness: 0,
|
|
9685
|
+
backlightCompensation: 0,
|
|
9686
|
+
denoise: 0,
|
|
9687
|
+
ehdrEnabled: false,
|
|
9688
|
+
ehdrExposureMinNumber: 0,
|
|
9689
|
+
ehdrExposureMaxNumber: 0,
|
|
9097
9690
|
resolution: 0,
|
|
9098
9691
|
streamResolution: 0,
|
|
9099
9692
|
recordingResolution: 0,
|
|
9693
|
+
streamingProtocol: 0,
|
|
9100
9694
|
framerate: 0,
|
|
9101
9695
|
camera: 0,
|
|
9102
9696
|
};
|
|
@@ -9121,6 +9715,36 @@ exports.CameraParameters = {
|
|
|
9121
9715
|
if (message.gain !== 0) {
|
|
9122
9716
|
writer.uint32(77).float(message.gain);
|
|
9123
9717
|
}
|
|
9718
|
+
if (message.brightness !== 0) {
|
|
9719
|
+
writer.uint32(96).int32(message.brightness);
|
|
9720
|
+
}
|
|
9721
|
+
if (message.contrast !== 0) {
|
|
9722
|
+
writer.uint32(104).int32(message.contrast);
|
|
9723
|
+
}
|
|
9724
|
+
if (message.saturation !== 0) {
|
|
9725
|
+
writer.uint32(112).int32(message.saturation);
|
|
9726
|
+
}
|
|
9727
|
+
if (message.gamma !== 0) {
|
|
9728
|
+
writer.uint32(120).int32(message.gamma);
|
|
9729
|
+
}
|
|
9730
|
+
if (message.sharpness !== 0) {
|
|
9731
|
+
writer.uint32(128).int32(message.sharpness);
|
|
9732
|
+
}
|
|
9733
|
+
if (message.backlightCompensation !== 0) {
|
|
9734
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
9735
|
+
}
|
|
9736
|
+
if (message.denoise !== 0) {
|
|
9737
|
+
writer.uint32(144).int32(message.denoise);
|
|
9738
|
+
}
|
|
9739
|
+
if (message.ehdrEnabled !== false) {
|
|
9740
|
+
writer.uint32(168).bool(message.ehdrEnabled);
|
|
9741
|
+
}
|
|
9742
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
9743
|
+
writer.uint32(176).int32(message.ehdrExposureMinNumber);
|
|
9744
|
+
}
|
|
9745
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
9746
|
+
writer.uint32(184).int32(message.ehdrExposureMaxNumber);
|
|
9747
|
+
}
|
|
9124
9748
|
if (message.resolution !== 0) {
|
|
9125
9749
|
writer.uint32(48).int32(message.resolution);
|
|
9126
9750
|
}
|
|
@@ -9130,6 +9754,9 @@ exports.CameraParameters = {
|
|
|
9130
9754
|
if (message.recordingResolution !== 0) {
|
|
9131
9755
|
writer.uint32(88).int32(message.recordingResolution);
|
|
9132
9756
|
}
|
|
9757
|
+
if (message.streamingProtocol !== 0) {
|
|
9758
|
+
writer.uint32(160).int32(message.streamingProtocol);
|
|
9759
|
+
}
|
|
9133
9760
|
if (message.framerate !== 0) {
|
|
9134
9761
|
writer.uint32(56).int32(message.framerate);
|
|
9135
9762
|
}
|
|
@@ -9187,6 +9814,76 @@ exports.CameraParameters = {
|
|
|
9187
9814
|
message.gain = reader.float();
|
|
9188
9815
|
continue;
|
|
9189
9816
|
}
|
|
9817
|
+
case 12: {
|
|
9818
|
+
if (tag !== 96) {
|
|
9819
|
+
break;
|
|
9820
|
+
}
|
|
9821
|
+
message.brightness = reader.int32();
|
|
9822
|
+
continue;
|
|
9823
|
+
}
|
|
9824
|
+
case 13: {
|
|
9825
|
+
if (tag !== 104) {
|
|
9826
|
+
break;
|
|
9827
|
+
}
|
|
9828
|
+
message.contrast = reader.int32();
|
|
9829
|
+
continue;
|
|
9830
|
+
}
|
|
9831
|
+
case 14: {
|
|
9832
|
+
if (tag !== 112) {
|
|
9833
|
+
break;
|
|
9834
|
+
}
|
|
9835
|
+
message.saturation = reader.int32();
|
|
9836
|
+
continue;
|
|
9837
|
+
}
|
|
9838
|
+
case 15: {
|
|
9839
|
+
if (tag !== 120) {
|
|
9840
|
+
break;
|
|
9841
|
+
}
|
|
9842
|
+
message.gamma = reader.int32();
|
|
9843
|
+
continue;
|
|
9844
|
+
}
|
|
9845
|
+
case 16: {
|
|
9846
|
+
if (tag !== 128) {
|
|
9847
|
+
break;
|
|
9848
|
+
}
|
|
9849
|
+
message.sharpness = reader.int32();
|
|
9850
|
+
continue;
|
|
9851
|
+
}
|
|
9852
|
+
case 17: {
|
|
9853
|
+
if (tag !== 136) {
|
|
9854
|
+
break;
|
|
9855
|
+
}
|
|
9856
|
+
message.backlightCompensation = reader.int32();
|
|
9857
|
+
continue;
|
|
9858
|
+
}
|
|
9859
|
+
case 18: {
|
|
9860
|
+
if (tag !== 144) {
|
|
9861
|
+
break;
|
|
9862
|
+
}
|
|
9863
|
+
message.denoise = reader.int32();
|
|
9864
|
+
continue;
|
|
9865
|
+
}
|
|
9866
|
+
case 21: {
|
|
9867
|
+
if (tag !== 168) {
|
|
9868
|
+
break;
|
|
9869
|
+
}
|
|
9870
|
+
message.ehdrEnabled = reader.bool();
|
|
9871
|
+
continue;
|
|
9872
|
+
}
|
|
9873
|
+
case 22: {
|
|
9874
|
+
if (tag !== 176) {
|
|
9875
|
+
break;
|
|
9876
|
+
}
|
|
9877
|
+
message.ehdrExposureMinNumber = reader.int32();
|
|
9878
|
+
continue;
|
|
9879
|
+
}
|
|
9880
|
+
case 23: {
|
|
9881
|
+
if (tag !== 184) {
|
|
9882
|
+
break;
|
|
9883
|
+
}
|
|
9884
|
+
message.ehdrExposureMaxNumber = reader.int32();
|
|
9885
|
+
continue;
|
|
9886
|
+
}
|
|
9190
9887
|
case 6: {
|
|
9191
9888
|
if (tag !== 48) {
|
|
9192
9889
|
break;
|
|
@@ -9208,6 +9905,13 @@ exports.CameraParameters = {
|
|
|
9208
9905
|
message.recordingResolution = reader.int32();
|
|
9209
9906
|
continue;
|
|
9210
9907
|
}
|
|
9908
|
+
case 20: {
|
|
9909
|
+
if (tag !== 160) {
|
|
9910
|
+
break;
|
|
9911
|
+
}
|
|
9912
|
+
message.streamingProtocol = reader.int32();
|
|
9913
|
+
continue;
|
|
9914
|
+
}
|
|
9211
9915
|
case 7: {
|
|
9212
9916
|
if (tag !== 56) {
|
|
9213
9917
|
break;
|
|
@@ -9238,9 +9942,20 @@ exports.CameraParameters = {
|
|
|
9238
9942
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9239
9943
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9240
9944
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
9945
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
9946
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
9947
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
9948
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
9949
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
9950
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
9951
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
9952
|
+
ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
|
|
9953
|
+
ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
|
|
9954
|
+
ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
|
|
9241
9955
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9242
9956
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9243
9957
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
9958
|
+
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9244
9959
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9245
9960
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9246
9961
|
};
|
|
@@ -9265,6 +9980,36 @@ exports.CameraParameters = {
|
|
|
9265
9980
|
if (message.gain !== 0) {
|
|
9266
9981
|
obj.gain = message.gain;
|
|
9267
9982
|
}
|
|
9983
|
+
if (message.brightness !== 0) {
|
|
9984
|
+
obj.brightness = Math.round(message.brightness);
|
|
9985
|
+
}
|
|
9986
|
+
if (message.contrast !== 0) {
|
|
9987
|
+
obj.contrast = Math.round(message.contrast);
|
|
9988
|
+
}
|
|
9989
|
+
if (message.saturation !== 0) {
|
|
9990
|
+
obj.saturation = Math.round(message.saturation);
|
|
9991
|
+
}
|
|
9992
|
+
if (message.gamma !== 0) {
|
|
9993
|
+
obj.gamma = Math.round(message.gamma);
|
|
9994
|
+
}
|
|
9995
|
+
if (message.sharpness !== 0) {
|
|
9996
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
9997
|
+
}
|
|
9998
|
+
if (message.backlightCompensation !== 0) {
|
|
9999
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
10000
|
+
}
|
|
10001
|
+
if (message.denoise !== 0) {
|
|
10002
|
+
obj.denoise = Math.round(message.denoise);
|
|
10003
|
+
}
|
|
10004
|
+
if (message.ehdrEnabled !== false) {
|
|
10005
|
+
obj.ehdrEnabled = message.ehdrEnabled;
|
|
10006
|
+
}
|
|
10007
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10008
|
+
obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
|
|
10009
|
+
}
|
|
10010
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10011
|
+
obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
|
|
10012
|
+
}
|
|
9268
10013
|
if (message.resolution !== 0) {
|
|
9269
10014
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9270
10015
|
}
|
|
@@ -9274,6 +10019,9 @@ exports.CameraParameters = {
|
|
|
9274
10019
|
if (message.recordingResolution !== 0) {
|
|
9275
10020
|
obj.recordingResolution = resolutionToJSON(message.recordingResolution);
|
|
9276
10021
|
}
|
|
10022
|
+
if (message.streamingProtocol !== 0) {
|
|
10023
|
+
obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
|
|
10024
|
+
}
|
|
9277
10025
|
if (message.framerate !== 0) {
|
|
9278
10026
|
obj.framerate = framerateToJSON(message.framerate);
|
|
9279
10027
|
}
|
|
@@ -9293,9 +10041,20 @@ exports.CameraParameters = {
|
|
|
9293
10041
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9294
10042
|
message.hue = object.hue ?? 0;
|
|
9295
10043
|
message.gain = object.gain ?? 0;
|
|
10044
|
+
message.brightness = object.brightness ?? 0;
|
|
10045
|
+
message.contrast = object.contrast ?? 0;
|
|
10046
|
+
message.saturation = object.saturation ?? 0;
|
|
10047
|
+
message.gamma = object.gamma ?? 0;
|
|
10048
|
+
message.sharpness = object.sharpness ?? 0;
|
|
10049
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
10050
|
+
message.denoise = object.denoise ?? 0;
|
|
10051
|
+
message.ehdrEnabled = object.ehdrEnabled ?? false;
|
|
10052
|
+
message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
|
|
10053
|
+
message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
|
|
9296
10054
|
message.resolution = object.resolution ?? 0;
|
|
9297
10055
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9298
10056
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
10057
|
+
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
9299
10058
|
message.framerate = object.framerate ?? 0;
|
|
9300
10059
|
message.camera = object.camera ?? 0;
|
|
9301
10060
|
return message;
|
|
@@ -12041,7 +12800,7 @@ exports.PersistentStorageSettings = {
|
|
|
12041
12800
|
},
|
|
12042
12801
|
};
|
|
12043
12802
|
function createBaseCPUInfo() {
|
|
12044
|
-
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0 };
|
|
12803
|
+
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0, commQueueLoad: 0 };
|
|
12045
12804
|
}
|
|
12046
12805
|
exports.CPUInfo = {
|
|
12047
12806
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -12057,6 +12816,9 @@ exports.CPUInfo = {
|
|
|
12057
12816
|
if (message.guestportQueueLoad !== 0) {
|
|
12058
12817
|
writer.uint32(37).float(message.guestportQueueLoad);
|
|
12059
12818
|
}
|
|
12819
|
+
if (message.commQueueLoad !== 0) {
|
|
12820
|
+
writer.uint32(45).float(message.commQueueLoad);
|
|
12821
|
+
}
|
|
12060
12822
|
return writer;
|
|
12061
12823
|
},
|
|
12062
12824
|
decode(input, length) {
|
|
@@ -12094,6 +12856,13 @@ exports.CPUInfo = {
|
|
|
12094
12856
|
message.guestportQueueLoad = reader.float();
|
|
12095
12857
|
continue;
|
|
12096
12858
|
}
|
|
12859
|
+
case 5: {
|
|
12860
|
+
if (tag !== 45) {
|
|
12861
|
+
break;
|
|
12862
|
+
}
|
|
12863
|
+
message.commQueueLoad = reader.float();
|
|
12864
|
+
continue;
|
|
12865
|
+
}
|
|
12097
12866
|
}
|
|
12098
12867
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12099
12868
|
break;
|
|
@@ -12108,6 +12877,7 @@ exports.CPUInfo = {
|
|
|
12108
12877
|
memoryBusLoad: isSet(object.memoryBusLoad) ? gt.Number(object.memoryBusLoad) : 0,
|
|
12109
12878
|
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
12110
12879
|
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
12880
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
12111
12881
|
};
|
|
12112
12882
|
},
|
|
12113
12883
|
toJSON(message) {
|
|
@@ -12124,6 +12894,9 @@ exports.CPUInfo = {
|
|
|
12124
12894
|
if (message.guestportQueueLoad !== 0) {
|
|
12125
12895
|
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
12126
12896
|
}
|
|
12897
|
+
if (message.commQueueLoad !== 0) {
|
|
12898
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
12899
|
+
}
|
|
12127
12900
|
return obj;
|
|
12128
12901
|
},
|
|
12129
12902
|
create(base) {
|
|
@@ -12135,6 +12908,126 @@ exports.CPUInfo = {
|
|
|
12135
12908
|
message.memoryBusLoad = object.memoryBusLoad ?? 0;
|
|
12136
12909
|
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
12137
12910
|
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
12911
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
12912
|
+
return message;
|
|
12913
|
+
},
|
|
12914
|
+
};
|
|
12915
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
12916
|
+
return { status: 0, level: 0 };
|
|
12917
|
+
}
|
|
12918
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
12919
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12920
|
+
if (message.status !== 0) {
|
|
12921
|
+
writer.uint32(8).int32(message.status);
|
|
12922
|
+
}
|
|
12923
|
+
if (message.level !== 0) {
|
|
12924
|
+
writer.uint32(21).float(message.level);
|
|
12925
|
+
}
|
|
12926
|
+
return writer;
|
|
12927
|
+
},
|
|
12928
|
+
decode(input, length) {
|
|
12929
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12930
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12931
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
12932
|
+
while (reader.pos < end) {
|
|
12933
|
+
const tag = reader.uint32();
|
|
12934
|
+
switch (tag >>> 3) {
|
|
12935
|
+
case 1: {
|
|
12936
|
+
if (tag !== 8) {
|
|
12937
|
+
break;
|
|
12938
|
+
}
|
|
12939
|
+
message.status = reader.int32();
|
|
12940
|
+
continue;
|
|
12941
|
+
}
|
|
12942
|
+
case 2: {
|
|
12943
|
+
if (tag !== 21) {
|
|
12944
|
+
break;
|
|
12945
|
+
}
|
|
12946
|
+
message.level = reader.float();
|
|
12947
|
+
continue;
|
|
12948
|
+
}
|
|
12949
|
+
}
|
|
12950
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12951
|
+
break;
|
|
12952
|
+
}
|
|
12953
|
+
reader.skip(tag & 7);
|
|
12954
|
+
}
|
|
12955
|
+
return message;
|
|
12956
|
+
},
|
|
12957
|
+
fromJSON(object) {
|
|
12958
|
+
return {
|
|
12959
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
12960
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
12961
|
+
};
|
|
12962
|
+
},
|
|
12963
|
+
toJSON(message) {
|
|
12964
|
+
const obj = {};
|
|
12965
|
+
if (message.status !== 0) {
|
|
12966
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
12967
|
+
}
|
|
12968
|
+
if (message.level !== 0) {
|
|
12969
|
+
obj.level = message.level;
|
|
12970
|
+
}
|
|
12971
|
+
return obj;
|
|
12972
|
+
},
|
|
12973
|
+
create(base) {
|
|
12974
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
12975
|
+
},
|
|
12976
|
+
fromPartial(object) {
|
|
12977
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
12978
|
+
message.status = object.status ?? 0;
|
|
12979
|
+
message.level = object.level ?? 0;
|
|
12980
|
+
return message;
|
|
12981
|
+
},
|
|
12982
|
+
};
|
|
12983
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
12984
|
+
return { version: "" };
|
|
12985
|
+
}
|
|
12986
|
+
exports.SurfaceUnitVersionInfo = {
|
|
12987
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12988
|
+
if (message.version !== "") {
|
|
12989
|
+
writer.uint32(10).string(message.version);
|
|
12990
|
+
}
|
|
12991
|
+
return writer;
|
|
12992
|
+
},
|
|
12993
|
+
decode(input, length) {
|
|
12994
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12995
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12996
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
12997
|
+
while (reader.pos < end) {
|
|
12998
|
+
const tag = reader.uint32();
|
|
12999
|
+
switch (tag >>> 3) {
|
|
13000
|
+
case 1: {
|
|
13001
|
+
if (tag !== 10) {
|
|
13002
|
+
break;
|
|
13003
|
+
}
|
|
13004
|
+
message.version = reader.string();
|
|
13005
|
+
continue;
|
|
13006
|
+
}
|
|
13007
|
+
}
|
|
13008
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13009
|
+
break;
|
|
13010
|
+
}
|
|
13011
|
+
reader.skip(tag & 7);
|
|
13012
|
+
}
|
|
13013
|
+
return message;
|
|
13014
|
+
},
|
|
13015
|
+
fromJSON(object) {
|
|
13016
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
13017
|
+
},
|
|
13018
|
+
toJSON(message) {
|
|
13019
|
+
const obj = {};
|
|
13020
|
+
if (message.version !== "") {
|
|
13021
|
+
obj.version = message.version;
|
|
13022
|
+
}
|
|
13023
|
+
return obj;
|
|
13024
|
+
},
|
|
13025
|
+
create(base) {
|
|
13026
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
13027
|
+
},
|
|
13028
|
+
fromPartial(object) {
|
|
13029
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13030
|
+
message.version = object.version ?? "";
|
|
12138
13031
|
return message;
|
|
12139
13032
|
},
|
|
12140
13033
|
};
|