@blueyerobotics/protocol-definitions 3.2.0-dc5787fd → 3.2.0-e9cac0e4
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.d.ts +2 -8
- package/dist/aquatroll.js +1 -1
- package/dist/control.d.ts +19 -10
- package/dist/control.js +78 -10
- package/dist/google/protobuf/any.d.ts +2 -8
- package/dist/google/protobuf/any.js +1 -1
- package/dist/google/protobuf/duration.d.ts +2 -8
- package/dist/google/protobuf/duration.js +1 -1
- package/dist/google/protobuf/timestamp.d.ts +2 -8
- 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 +200 -19
- package/dist/message_formats.js +1167 -77
- package/dist/mission_planning.d.ts +2 -8
- package/dist/mission_planning.js +1 -1
- package/dist/req_rep.d.ts +2 -8
- package/dist/req_rep.js +1 -1
- package/dist/telemetry.d.ts +20 -10
- 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 = 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;
|
|
@@ -54,16 +58,22 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
54
58
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
55
59
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
56
60
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
61
|
+
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
62
|
+
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
57
63
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
58
64
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
59
65
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
60
66
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON;
|
|
67
|
+
exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFromJSON;
|
|
68
|
+
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
61
69
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
62
70
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
63
71
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
64
72
|
exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
|
|
65
73
|
exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
|
|
66
74
|
exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
|
|
75
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
|
|
76
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
|
|
67
77
|
/* eslint-disable */
|
|
68
78
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
69
79
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -585,6 +595,51 @@ function notificationLevelToJSON(object) {
|
|
|
585
595
|
return "UNRECOGNIZED";
|
|
586
596
|
}
|
|
587
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
|
+
}
|
|
588
643
|
/** Drone models produced by Blueye. */
|
|
589
644
|
var Model;
|
|
590
645
|
(function (Model) {
|
|
@@ -714,11 +769,13 @@ var Resolution;
|
|
|
714
769
|
(function (Resolution) {
|
|
715
770
|
/** RESOLUTION_UNSPECIFIED - Resolution not specified. */
|
|
716
771
|
Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
|
|
717
|
-
/**
|
|
718
|
-
Resolution[Resolution["
|
|
719
|
-
/** 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). */
|
|
720
775
|
Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
|
|
721
|
-
/**
|
|
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). */
|
|
722
779
|
Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
|
|
723
780
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
724
781
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
@@ -727,12 +784,15 @@ function resolutionFromJSON(object) {
|
|
|
727
784
|
case 0:
|
|
728
785
|
case "RESOLUTION_UNSPECIFIED":
|
|
729
786
|
return Resolution.RESOLUTION_UNSPECIFIED;
|
|
730
|
-
case
|
|
731
|
-
case "
|
|
732
|
-
return Resolution.
|
|
787
|
+
case 4:
|
|
788
|
+
case "RESOLUTION_VGA_480P":
|
|
789
|
+
return Resolution.RESOLUTION_VGA_480P;
|
|
733
790
|
case 2:
|
|
734
791
|
case "RESOLUTION_HD_720P":
|
|
735
792
|
return Resolution.RESOLUTION_HD_720P;
|
|
793
|
+
case 1:
|
|
794
|
+
case "RESOLUTION_FULLHD_1080P":
|
|
795
|
+
return Resolution.RESOLUTION_FULLHD_1080P;
|
|
736
796
|
case 3:
|
|
737
797
|
case "RESOLUTION_UHD_4K":
|
|
738
798
|
return Resolution.RESOLUTION_UHD_4K;
|
|
@@ -746,10 +806,12 @@ function resolutionToJSON(object) {
|
|
|
746
806
|
switch (object) {
|
|
747
807
|
case Resolution.RESOLUTION_UNSPECIFIED:
|
|
748
808
|
return "RESOLUTION_UNSPECIFIED";
|
|
749
|
-
case Resolution.
|
|
750
|
-
return "
|
|
809
|
+
case Resolution.RESOLUTION_VGA_480P:
|
|
810
|
+
return "RESOLUTION_VGA_480P";
|
|
751
811
|
case Resolution.RESOLUTION_HD_720P:
|
|
752
812
|
return "RESOLUTION_HD_720P";
|
|
813
|
+
case Resolution.RESOLUTION_FULLHD_1080P:
|
|
814
|
+
return "RESOLUTION_FULLHD_1080P";
|
|
753
815
|
case Resolution.RESOLUTION_UHD_4K:
|
|
754
816
|
return "RESOLUTION_UHD_4K";
|
|
755
817
|
case Resolution.UNRECOGNIZED:
|
|
@@ -764,7 +826,7 @@ var Framerate;
|
|
|
764
826
|
Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
|
|
765
827
|
/** FRAMERATE_FPS_30 - 30 frames per second. */
|
|
766
828
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
767
|
-
/** FRAMERATE_FPS_25 - 25 frames per second. */
|
|
829
|
+
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
768
830
|
Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
|
|
769
831
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
770
832
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
@@ -839,6 +901,46 @@ function cameraToJSON(object) {
|
|
|
839
901
|
return "UNRECOGNIZED";
|
|
840
902
|
}
|
|
841
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
|
+
}
|
|
842
944
|
/** Available temperature units. */
|
|
843
945
|
var TemperatureUnit;
|
|
844
946
|
(function (TemperatureUnit) {
|
|
@@ -1172,6 +1274,8 @@ var GuestPortDeviceID;
|
|
|
1172
1274
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1173
1275
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1174
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";
|
|
1175
1279
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1176
1280
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1177
1281
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1311,6 +1415,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1311
1415
|
case 44:
|
|
1312
1416
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
|
|
1313
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;
|
|
1314
1421
|
case -1:
|
|
1315
1422
|
case "UNRECOGNIZED":
|
|
1316
1423
|
default:
|
|
@@ -1409,6 +1516,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1409
1516
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1410
1517
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
|
|
1411
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";
|
|
1412
1521
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1413
1522
|
default:
|
|
1414
1523
|
return "UNRECOGNIZED";
|
|
@@ -1685,6 +1794,74 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1685
1794
|
return "UNRECOGNIZED";
|
|
1686
1795
|
}
|
|
1687
1796
|
}
|
|
1797
|
+
var LogEntry_LogLevel;
|
|
1798
|
+
(function (LogEntry_LogLevel) {
|
|
1799
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1800
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
1801
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
1802
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
|
|
1803
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
1804
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
|
|
1805
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
1806
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
|
|
1807
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
1808
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
|
|
1809
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
1810
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
|
|
1811
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
1812
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
|
|
1813
|
+
LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1814
|
+
})(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
|
|
1815
|
+
function logEntry_LogLevelFromJSON(object) {
|
|
1816
|
+
switch (object) {
|
|
1817
|
+
case 0:
|
|
1818
|
+
case "LOG_LEVEL_UNSPECIFIED":
|
|
1819
|
+
return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
|
|
1820
|
+
case 1:
|
|
1821
|
+
case "LOG_LEVEL_TRACE":
|
|
1822
|
+
return LogEntry_LogLevel.LOG_LEVEL_TRACE;
|
|
1823
|
+
case 2:
|
|
1824
|
+
case "LOG_LEVEL_DEBUG":
|
|
1825
|
+
return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
|
|
1826
|
+
case 3:
|
|
1827
|
+
case "LOG_LEVEL_INFO":
|
|
1828
|
+
return LogEntry_LogLevel.LOG_LEVEL_INFO;
|
|
1829
|
+
case 4:
|
|
1830
|
+
case "LOG_LEVEL_WARNING":
|
|
1831
|
+
return LogEntry_LogLevel.LOG_LEVEL_WARNING;
|
|
1832
|
+
case 5:
|
|
1833
|
+
case "LOG_LEVEL_ERROR":
|
|
1834
|
+
return LogEntry_LogLevel.LOG_LEVEL_ERROR;
|
|
1835
|
+
case 6:
|
|
1836
|
+
case "LOG_LEVEL_CRITICAL":
|
|
1837
|
+
return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
|
|
1838
|
+
case -1:
|
|
1839
|
+
case "UNRECOGNIZED":
|
|
1840
|
+
default:
|
|
1841
|
+
return LogEntry_LogLevel.UNRECOGNIZED;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
function logEntry_LogLevelToJSON(object) {
|
|
1845
|
+
switch (object) {
|
|
1846
|
+
case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
|
|
1847
|
+
return "LOG_LEVEL_UNSPECIFIED";
|
|
1848
|
+
case LogEntry_LogLevel.LOG_LEVEL_TRACE:
|
|
1849
|
+
return "LOG_LEVEL_TRACE";
|
|
1850
|
+
case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
|
|
1851
|
+
return "LOG_LEVEL_DEBUG";
|
|
1852
|
+
case LogEntry_LogLevel.LOG_LEVEL_INFO:
|
|
1853
|
+
return "LOG_LEVEL_INFO";
|
|
1854
|
+
case LogEntry_LogLevel.LOG_LEVEL_WARNING:
|
|
1855
|
+
return "LOG_LEVEL_WARNING";
|
|
1856
|
+
case LogEntry_LogLevel.LOG_LEVEL_ERROR:
|
|
1857
|
+
return "LOG_LEVEL_ERROR";
|
|
1858
|
+
case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
|
|
1859
|
+
return "LOG_LEVEL_CRITICAL";
|
|
1860
|
+
case LogEntry_LogLevel.UNRECOGNIZED:
|
|
1861
|
+
default:
|
|
1862
|
+
return "UNRECOGNIZED";
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1688
1865
|
var PingerConfiguration_MountingDirection;
|
|
1689
1866
|
(function (PingerConfiguration_MountingDirection) {
|
|
1690
1867
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -1799,10 +1976,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1799
1976
|
return "UNRECOGNIZED";
|
|
1800
1977
|
}
|
|
1801
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
|
+
}
|
|
1802
2027
|
/**
|
|
1803
2028
|
* Status of the compass calibration procedure.
|
|
1804
2029
|
*
|
|
1805
|
-
* When calibration is started, the status will indicate the active (
|
|
2030
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1806
2031
|
*/
|
|
1807
2032
|
var CalibrationState_Status;
|
|
1808
2033
|
(function (CalibrationState_Status) {
|
|
@@ -1824,7 +2049,7 @@ var CalibrationState_Status;
|
|
|
1824
2049
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1825
2050
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1826
2051
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1827
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
2052
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1828
2053
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1829
2054
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1830
2055
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -2015,6 +2240,49 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
|
|
|
2015
2240
|
return "UNRECOGNIZED";
|
|
2016
2241
|
}
|
|
2017
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
|
+
}
|
|
2018
2286
|
function createBaseBinlogRecord() {
|
|
2019
2287
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2020
2288
|
}
|
|
@@ -2100,6 +2368,149 @@ exports.BinlogRecord = {
|
|
|
2100
2368
|
return message;
|
|
2101
2369
|
},
|
|
2102
2370
|
};
|
|
2371
|
+
function createBaseLogEntry() {
|
|
2372
|
+
return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
|
|
2373
|
+
}
|
|
2374
|
+
exports.LogEntry = {
|
|
2375
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2376
|
+
if (message.timestamp !== undefined) {
|
|
2377
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
2378
|
+
}
|
|
2379
|
+
if (message.processName !== "") {
|
|
2380
|
+
writer.uint32(18).string(message.processName);
|
|
2381
|
+
}
|
|
2382
|
+
if (message.processId !== 0) {
|
|
2383
|
+
writer.uint32(24).uint64(message.processId);
|
|
2384
|
+
}
|
|
2385
|
+
if (message.threadId !== 0) {
|
|
2386
|
+
writer.uint32(32).uint64(message.threadId);
|
|
2387
|
+
}
|
|
2388
|
+
if (message.source !== "") {
|
|
2389
|
+
writer.uint32(42).string(message.source);
|
|
2390
|
+
}
|
|
2391
|
+
if (message.level !== 0) {
|
|
2392
|
+
writer.uint32(48).int32(message.level);
|
|
2393
|
+
}
|
|
2394
|
+
if (message.message !== "") {
|
|
2395
|
+
writer.uint32(58).string(message.message);
|
|
2396
|
+
}
|
|
2397
|
+
return writer;
|
|
2398
|
+
},
|
|
2399
|
+
decode(input, length) {
|
|
2400
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2401
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2402
|
+
const message = createBaseLogEntry();
|
|
2403
|
+
while (reader.pos < end) {
|
|
2404
|
+
const tag = reader.uint32();
|
|
2405
|
+
switch (tag >>> 3) {
|
|
2406
|
+
case 1: {
|
|
2407
|
+
if (tag !== 10) {
|
|
2408
|
+
break;
|
|
2409
|
+
}
|
|
2410
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2411
|
+
continue;
|
|
2412
|
+
}
|
|
2413
|
+
case 2: {
|
|
2414
|
+
if (tag !== 18) {
|
|
2415
|
+
break;
|
|
2416
|
+
}
|
|
2417
|
+
message.processName = reader.string();
|
|
2418
|
+
continue;
|
|
2419
|
+
}
|
|
2420
|
+
case 3: {
|
|
2421
|
+
if (tag !== 24) {
|
|
2422
|
+
break;
|
|
2423
|
+
}
|
|
2424
|
+
message.processId = longToNumber(reader.uint64());
|
|
2425
|
+
continue;
|
|
2426
|
+
}
|
|
2427
|
+
case 4: {
|
|
2428
|
+
if (tag !== 32) {
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
message.threadId = longToNumber(reader.uint64());
|
|
2432
|
+
continue;
|
|
2433
|
+
}
|
|
2434
|
+
case 5: {
|
|
2435
|
+
if (tag !== 42) {
|
|
2436
|
+
break;
|
|
2437
|
+
}
|
|
2438
|
+
message.source = reader.string();
|
|
2439
|
+
continue;
|
|
2440
|
+
}
|
|
2441
|
+
case 6: {
|
|
2442
|
+
if (tag !== 48) {
|
|
2443
|
+
break;
|
|
2444
|
+
}
|
|
2445
|
+
message.level = reader.int32();
|
|
2446
|
+
continue;
|
|
2447
|
+
}
|
|
2448
|
+
case 7: {
|
|
2449
|
+
if (tag !== 58) {
|
|
2450
|
+
break;
|
|
2451
|
+
}
|
|
2452
|
+
message.message = reader.string();
|
|
2453
|
+
continue;
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2457
|
+
break;
|
|
2458
|
+
}
|
|
2459
|
+
reader.skip(tag & 7);
|
|
2460
|
+
}
|
|
2461
|
+
return message;
|
|
2462
|
+
},
|
|
2463
|
+
fromJSON(object) {
|
|
2464
|
+
return {
|
|
2465
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2466
|
+
processName: isSet(object.processName) ? gt.String(object.processName) : "",
|
|
2467
|
+
processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
|
|
2468
|
+
threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
|
|
2469
|
+
source: isSet(object.source) ? gt.String(object.source) : "",
|
|
2470
|
+
level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
|
|
2471
|
+
message: isSet(object.message) ? gt.String(object.message) : "",
|
|
2472
|
+
};
|
|
2473
|
+
},
|
|
2474
|
+
toJSON(message) {
|
|
2475
|
+
const obj = {};
|
|
2476
|
+
if (message.timestamp !== undefined) {
|
|
2477
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2478
|
+
}
|
|
2479
|
+
if (message.processName !== "") {
|
|
2480
|
+
obj.processName = message.processName;
|
|
2481
|
+
}
|
|
2482
|
+
if (message.processId !== 0) {
|
|
2483
|
+
obj.processId = Math.round(message.processId);
|
|
2484
|
+
}
|
|
2485
|
+
if (message.threadId !== 0) {
|
|
2486
|
+
obj.threadId = Math.round(message.threadId);
|
|
2487
|
+
}
|
|
2488
|
+
if (message.source !== "") {
|
|
2489
|
+
obj.source = message.source;
|
|
2490
|
+
}
|
|
2491
|
+
if (message.level !== 0) {
|
|
2492
|
+
obj.level = logEntry_LogLevelToJSON(message.level);
|
|
2493
|
+
}
|
|
2494
|
+
if (message.message !== "") {
|
|
2495
|
+
obj.message = message.message;
|
|
2496
|
+
}
|
|
2497
|
+
return obj;
|
|
2498
|
+
},
|
|
2499
|
+
create(base) {
|
|
2500
|
+
return exports.LogEntry.fromPartial(base ?? {});
|
|
2501
|
+
},
|
|
2502
|
+
fromPartial(object) {
|
|
2503
|
+
const message = createBaseLogEntry();
|
|
2504
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2505
|
+
message.processName = object.processName ?? "";
|
|
2506
|
+
message.processId = object.processId ?? 0;
|
|
2507
|
+
message.threadId = object.threadId ?? 0;
|
|
2508
|
+
message.source = object.source ?? "";
|
|
2509
|
+
message.level = object.level ?? 0;
|
|
2510
|
+
message.message = object.message ?? "";
|
|
2511
|
+
return message;
|
|
2512
|
+
},
|
|
2513
|
+
};
|
|
2103
2514
|
function createBaseMotionInput() {
|
|
2104
2515
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2105
2516
|
}
|
|
@@ -7456,100 +7867,469 @@ exports.StorageSpace = {
|
|
|
7456
7867
|
return message;
|
|
7457
7868
|
},
|
|
7458
7869
|
};
|
|
7459
|
-
function
|
|
7460
|
-
return {
|
|
7461
|
-
status: 0,
|
|
7462
|
-
progressXPositive: 0,
|
|
7463
|
-
progressXNegative: 0,
|
|
7464
|
-
progressYPositive: 0,
|
|
7465
|
-
progressYNegative: 0,
|
|
7466
|
-
progressZPositive: 0,
|
|
7467
|
-
progressZNegative: 0,
|
|
7468
|
-
progressThruster: 0,
|
|
7469
|
-
};
|
|
7870
|
+
function createBaseStoragePartition() {
|
|
7871
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
7470
7872
|
}
|
|
7471
|
-
exports.
|
|
7873
|
+
exports.StoragePartition = {
|
|
7472
7874
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7473
|
-
if (message.
|
|
7474
|
-
writer.uint32(
|
|
7475
|
-
}
|
|
7476
|
-
if (message.progressXPositive !== 0) {
|
|
7477
|
-
writer.uint32(21).float(message.progressXPositive);
|
|
7478
|
-
}
|
|
7479
|
-
if (message.progressXNegative !== 0) {
|
|
7480
|
-
writer.uint32(29).float(message.progressXNegative);
|
|
7481
|
-
}
|
|
7482
|
-
if (message.progressYPositive !== 0) {
|
|
7483
|
-
writer.uint32(37).float(message.progressYPositive);
|
|
7484
|
-
}
|
|
7485
|
-
if (message.progressYNegative !== 0) {
|
|
7486
|
-
writer.uint32(45).float(message.progressYNegative);
|
|
7875
|
+
if (message.storageSpace !== undefined) {
|
|
7876
|
+
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
7487
7877
|
}
|
|
7488
|
-
if (message.
|
|
7489
|
-
writer.uint32(
|
|
7878
|
+
if (message.fileSystemType !== "") {
|
|
7879
|
+
writer.uint32(18).string(message.fileSystemType);
|
|
7490
7880
|
}
|
|
7491
|
-
if (message.
|
|
7492
|
-
writer.uint32(
|
|
7881
|
+
if (message.devicePath !== "") {
|
|
7882
|
+
writer.uint32(26).string(message.devicePath);
|
|
7493
7883
|
}
|
|
7494
|
-
if (message.
|
|
7495
|
-
writer.uint32(
|
|
7884
|
+
if (message.mountPath !== "") {
|
|
7885
|
+
writer.uint32(34).string(message.mountPath);
|
|
7496
7886
|
}
|
|
7497
7887
|
return writer;
|
|
7498
7888
|
},
|
|
7499
7889
|
decode(input, length) {
|
|
7500
7890
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7501
7891
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7502
|
-
const message =
|
|
7892
|
+
const message = createBaseStoragePartition();
|
|
7503
7893
|
while (reader.pos < end) {
|
|
7504
7894
|
const tag = reader.uint32();
|
|
7505
7895
|
switch (tag >>> 3) {
|
|
7506
7896
|
case 1: {
|
|
7507
|
-
if (tag !==
|
|
7897
|
+
if (tag !== 10) {
|
|
7508
7898
|
break;
|
|
7509
7899
|
}
|
|
7510
|
-
message.
|
|
7900
|
+
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
7511
7901
|
continue;
|
|
7512
7902
|
}
|
|
7513
7903
|
case 2: {
|
|
7514
|
-
if (tag !==
|
|
7904
|
+
if (tag !== 18) {
|
|
7515
7905
|
break;
|
|
7516
7906
|
}
|
|
7517
|
-
message.
|
|
7907
|
+
message.fileSystemType = reader.string();
|
|
7518
7908
|
continue;
|
|
7519
7909
|
}
|
|
7520
7910
|
case 3: {
|
|
7521
|
-
if (tag !==
|
|
7911
|
+
if (tag !== 26) {
|
|
7522
7912
|
break;
|
|
7523
7913
|
}
|
|
7524
|
-
message.
|
|
7914
|
+
message.devicePath = reader.string();
|
|
7525
7915
|
continue;
|
|
7526
7916
|
}
|
|
7527
7917
|
case 4: {
|
|
7528
|
-
if (tag !==
|
|
7529
|
-
break;
|
|
7530
|
-
}
|
|
7531
|
-
message.progressYPositive = reader.float();
|
|
7532
|
-
continue;
|
|
7533
|
-
}
|
|
7534
|
-
case 5: {
|
|
7535
|
-
if (tag !== 45) {
|
|
7536
|
-
break;
|
|
7537
|
-
}
|
|
7538
|
-
message.progressYNegative = reader.float();
|
|
7539
|
-
continue;
|
|
7540
|
-
}
|
|
7541
|
-
case 6: {
|
|
7542
|
-
if (tag !== 53) {
|
|
7918
|
+
if (tag !== 34) {
|
|
7543
7919
|
break;
|
|
7544
7920
|
}
|
|
7545
|
-
message.
|
|
7921
|
+
message.mountPath = reader.string();
|
|
7546
7922
|
continue;
|
|
7547
7923
|
}
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7924
|
+
}
|
|
7925
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7926
|
+
break;
|
|
7927
|
+
}
|
|
7928
|
+
reader.skip(tag & 7);
|
|
7929
|
+
}
|
|
7930
|
+
return message;
|
|
7931
|
+
},
|
|
7932
|
+
fromJSON(object) {
|
|
7933
|
+
return {
|
|
7934
|
+
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
7935
|
+
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7936
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7937
|
+
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
7938
|
+
};
|
|
7939
|
+
},
|
|
7940
|
+
toJSON(message) {
|
|
7941
|
+
const obj = {};
|
|
7942
|
+
if (message.storageSpace !== undefined) {
|
|
7943
|
+
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
7944
|
+
}
|
|
7945
|
+
if (message.fileSystemType !== "") {
|
|
7946
|
+
obj.fileSystemType = message.fileSystemType;
|
|
7947
|
+
}
|
|
7948
|
+
if (message.devicePath !== "") {
|
|
7949
|
+
obj.devicePath = message.devicePath;
|
|
7950
|
+
}
|
|
7951
|
+
if (message.mountPath !== "") {
|
|
7952
|
+
obj.mountPath = message.mountPath;
|
|
7953
|
+
}
|
|
7954
|
+
return obj;
|
|
7955
|
+
},
|
|
7956
|
+
create(base) {
|
|
7957
|
+
return exports.StoragePartition.fromPartial(base ?? {});
|
|
7958
|
+
},
|
|
7959
|
+
fromPartial(object) {
|
|
7960
|
+
const message = createBaseStoragePartition();
|
|
7961
|
+
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
7962
|
+
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
7963
|
+
: undefined;
|
|
7964
|
+
message.fileSystemType = object.fileSystemType ?? "";
|
|
7965
|
+
message.devicePath = object.devicePath ?? "";
|
|
7966
|
+
message.mountPath = object.mountPath ?? "";
|
|
7967
|
+
return message;
|
|
7968
|
+
},
|
|
7969
|
+
};
|
|
7970
|
+
function createBaseRemovableStorageDevice() {
|
|
7971
|
+
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
7972
|
+
}
|
|
7973
|
+
exports.RemovableStorageDevice = {
|
|
7974
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7975
|
+
if (message.vendorName !== "") {
|
|
7976
|
+
writer.uint32(10).string(message.vendorName);
|
|
7977
|
+
}
|
|
7978
|
+
if (message.modelName !== "") {
|
|
7979
|
+
writer.uint32(18).string(message.modelName);
|
|
7980
|
+
}
|
|
7981
|
+
if (message.devicePath !== "") {
|
|
7982
|
+
writer.uint32(26).string(message.devicePath);
|
|
7983
|
+
}
|
|
7984
|
+
if (message.status !== 0) {
|
|
7985
|
+
writer.uint32(32).int32(message.status);
|
|
7986
|
+
}
|
|
7987
|
+
if (message.errorFlags !== undefined) {
|
|
7988
|
+
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
7989
|
+
}
|
|
7990
|
+
for (const v of message.partitions) {
|
|
7991
|
+
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
7992
|
+
}
|
|
7993
|
+
return writer;
|
|
7994
|
+
},
|
|
7995
|
+
decode(input, length) {
|
|
7996
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7997
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7998
|
+
const message = createBaseRemovableStorageDevice();
|
|
7999
|
+
while (reader.pos < end) {
|
|
8000
|
+
const tag = reader.uint32();
|
|
8001
|
+
switch (tag >>> 3) {
|
|
8002
|
+
case 1: {
|
|
8003
|
+
if (tag !== 10) {
|
|
8004
|
+
break;
|
|
8005
|
+
}
|
|
8006
|
+
message.vendorName = reader.string();
|
|
8007
|
+
continue;
|
|
8008
|
+
}
|
|
8009
|
+
case 2: {
|
|
8010
|
+
if (tag !== 18) {
|
|
8011
|
+
break;
|
|
8012
|
+
}
|
|
8013
|
+
message.modelName = reader.string();
|
|
8014
|
+
continue;
|
|
8015
|
+
}
|
|
8016
|
+
case 3: {
|
|
8017
|
+
if (tag !== 26) {
|
|
8018
|
+
break;
|
|
8019
|
+
}
|
|
8020
|
+
message.devicePath = reader.string();
|
|
8021
|
+
continue;
|
|
8022
|
+
}
|
|
8023
|
+
case 4: {
|
|
8024
|
+
if (tag !== 32) {
|
|
8025
|
+
break;
|
|
8026
|
+
}
|
|
8027
|
+
message.status = reader.int32();
|
|
8028
|
+
continue;
|
|
8029
|
+
}
|
|
8030
|
+
case 5: {
|
|
8031
|
+
if (tag !== 42) {
|
|
8032
|
+
break;
|
|
8033
|
+
}
|
|
8034
|
+
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
8035
|
+
continue;
|
|
8036
|
+
}
|
|
8037
|
+
case 6: {
|
|
8038
|
+
if (tag !== 50) {
|
|
8039
|
+
break;
|
|
8040
|
+
}
|
|
8041
|
+
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
8042
|
+
continue;
|
|
8043
|
+
}
|
|
8044
|
+
}
|
|
8045
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8046
|
+
break;
|
|
8047
|
+
}
|
|
8048
|
+
reader.skip(tag & 7);
|
|
8049
|
+
}
|
|
8050
|
+
return message;
|
|
8051
|
+
},
|
|
8052
|
+
fromJSON(object) {
|
|
8053
|
+
return {
|
|
8054
|
+
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
8055
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
8056
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8057
|
+
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
8058
|
+
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
8059
|
+
partitions: gt.Array.isArray(object?.partitions)
|
|
8060
|
+
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
8061
|
+
: [],
|
|
8062
|
+
};
|
|
8063
|
+
},
|
|
8064
|
+
toJSON(message) {
|
|
8065
|
+
const obj = {};
|
|
8066
|
+
if (message.vendorName !== "") {
|
|
8067
|
+
obj.vendorName = message.vendorName;
|
|
8068
|
+
}
|
|
8069
|
+
if (message.modelName !== "") {
|
|
8070
|
+
obj.modelName = message.modelName;
|
|
8071
|
+
}
|
|
8072
|
+
if (message.devicePath !== "") {
|
|
8073
|
+
obj.devicePath = message.devicePath;
|
|
8074
|
+
}
|
|
8075
|
+
if (message.status !== 0) {
|
|
8076
|
+
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
8077
|
+
}
|
|
8078
|
+
if (message.errorFlags !== undefined) {
|
|
8079
|
+
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
8080
|
+
}
|
|
8081
|
+
if (message.partitions?.length) {
|
|
8082
|
+
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
8083
|
+
}
|
|
8084
|
+
return obj;
|
|
8085
|
+
},
|
|
8086
|
+
create(base) {
|
|
8087
|
+
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
8088
|
+
},
|
|
8089
|
+
fromPartial(object) {
|
|
8090
|
+
const message = createBaseRemovableStorageDevice();
|
|
8091
|
+
message.vendorName = object.vendorName ?? "";
|
|
8092
|
+
message.modelName = object.modelName ?? "";
|
|
8093
|
+
message.devicePath = object.devicePath ?? "";
|
|
8094
|
+
message.status = object.status ?? 0;
|
|
8095
|
+
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
8096
|
+
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
8097
|
+
: undefined;
|
|
8098
|
+
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
8099
|
+
return message;
|
|
8100
|
+
},
|
|
8101
|
+
};
|
|
8102
|
+
function createBaseRemovableStorageErrorFlags() {
|
|
8103
|
+
return {
|
|
8104
|
+
errorMessage: "",
|
|
8105
|
+
noPartitionsFound: false,
|
|
8106
|
+
multiplePartitionsFound: false,
|
|
8107
|
+
wrongFileSystemFound: false,
|
|
8108
|
+
deviceIsReadOnly: false,
|
|
8109
|
+
formattingFailed: false,
|
|
8110
|
+
};
|
|
8111
|
+
}
|
|
8112
|
+
exports.RemovableStorageErrorFlags = {
|
|
8113
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8114
|
+
if (message.errorMessage !== "") {
|
|
8115
|
+
writer.uint32(10).string(message.errorMessage);
|
|
8116
|
+
}
|
|
8117
|
+
if (message.noPartitionsFound !== false) {
|
|
8118
|
+
writer.uint32(16).bool(message.noPartitionsFound);
|
|
8119
|
+
}
|
|
8120
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8121
|
+
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
8122
|
+
}
|
|
8123
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8124
|
+
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
8125
|
+
}
|
|
8126
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8127
|
+
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
8128
|
+
}
|
|
8129
|
+
if (message.formattingFailed !== false) {
|
|
8130
|
+
writer.uint32(48).bool(message.formattingFailed);
|
|
8131
|
+
}
|
|
8132
|
+
return writer;
|
|
8133
|
+
},
|
|
8134
|
+
decode(input, length) {
|
|
8135
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8136
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8137
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8138
|
+
while (reader.pos < end) {
|
|
8139
|
+
const tag = reader.uint32();
|
|
8140
|
+
switch (tag >>> 3) {
|
|
8141
|
+
case 1: {
|
|
8142
|
+
if (tag !== 10) {
|
|
8143
|
+
break;
|
|
8144
|
+
}
|
|
8145
|
+
message.errorMessage = reader.string();
|
|
8146
|
+
continue;
|
|
8147
|
+
}
|
|
8148
|
+
case 2: {
|
|
8149
|
+
if (tag !== 16) {
|
|
8150
|
+
break;
|
|
8151
|
+
}
|
|
8152
|
+
message.noPartitionsFound = reader.bool();
|
|
8153
|
+
continue;
|
|
8154
|
+
}
|
|
8155
|
+
case 3: {
|
|
8156
|
+
if (tag !== 24) {
|
|
8157
|
+
break;
|
|
8158
|
+
}
|
|
8159
|
+
message.multiplePartitionsFound = reader.bool();
|
|
8160
|
+
continue;
|
|
8161
|
+
}
|
|
8162
|
+
case 4: {
|
|
8163
|
+
if (tag !== 32) {
|
|
8164
|
+
break;
|
|
8165
|
+
}
|
|
8166
|
+
message.wrongFileSystemFound = reader.bool();
|
|
8167
|
+
continue;
|
|
8168
|
+
}
|
|
8169
|
+
case 5: {
|
|
8170
|
+
if (tag !== 40) {
|
|
8171
|
+
break;
|
|
8172
|
+
}
|
|
8173
|
+
message.deviceIsReadOnly = reader.bool();
|
|
8174
|
+
continue;
|
|
8175
|
+
}
|
|
8176
|
+
case 6: {
|
|
8177
|
+
if (tag !== 48) {
|
|
8178
|
+
break;
|
|
8179
|
+
}
|
|
8180
|
+
message.formattingFailed = reader.bool();
|
|
8181
|
+
continue;
|
|
8182
|
+
}
|
|
8183
|
+
}
|
|
8184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8185
|
+
break;
|
|
8186
|
+
}
|
|
8187
|
+
reader.skip(tag & 7);
|
|
8188
|
+
}
|
|
8189
|
+
return message;
|
|
8190
|
+
},
|
|
8191
|
+
fromJSON(object) {
|
|
8192
|
+
return {
|
|
8193
|
+
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
8194
|
+
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
8195
|
+
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
8196
|
+
? gt.Boolean(object.multiplePartitionsFound)
|
|
8197
|
+
: false,
|
|
8198
|
+
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
8199
|
+
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
8200
|
+
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
8201
|
+
};
|
|
8202
|
+
},
|
|
8203
|
+
toJSON(message) {
|
|
8204
|
+
const obj = {};
|
|
8205
|
+
if (message.errorMessage !== "") {
|
|
8206
|
+
obj.errorMessage = message.errorMessage;
|
|
8207
|
+
}
|
|
8208
|
+
if (message.noPartitionsFound !== false) {
|
|
8209
|
+
obj.noPartitionsFound = message.noPartitionsFound;
|
|
8210
|
+
}
|
|
8211
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8212
|
+
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
8213
|
+
}
|
|
8214
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8215
|
+
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
8216
|
+
}
|
|
8217
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8218
|
+
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
8219
|
+
}
|
|
8220
|
+
if (message.formattingFailed !== false) {
|
|
8221
|
+
obj.formattingFailed = message.formattingFailed;
|
|
8222
|
+
}
|
|
8223
|
+
return obj;
|
|
8224
|
+
},
|
|
8225
|
+
create(base) {
|
|
8226
|
+
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
8227
|
+
},
|
|
8228
|
+
fromPartial(object) {
|
|
8229
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8230
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
8231
|
+
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
8232
|
+
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
8233
|
+
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
8234
|
+
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
8235
|
+
message.formattingFailed = object.formattingFailed ?? false;
|
|
8236
|
+
return message;
|
|
8237
|
+
},
|
|
8238
|
+
};
|
|
8239
|
+
function createBaseCalibrationState() {
|
|
8240
|
+
return {
|
|
8241
|
+
status: 0,
|
|
8242
|
+
progressXPositive: 0,
|
|
8243
|
+
progressXNegative: 0,
|
|
8244
|
+
progressYPositive: 0,
|
|
8245
|
+
progressYNegative: 0,
|
|
8246
|
+
progressZPositive: 0,
|
|
8247
|
+
progressZNegative: 0,
|
|
8248
|
+
progressThruster: 0,
|
|
8249
|
+
};
|
|
8250
|
+
}
|
|
8251
|
+
exports.CalibrationState = {
|
|
8252
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8253
|
+
if (message.status !== 0) {
|
|
8254
|
+
writer.uint32(8).int32(message.status);
|
|
8255
|
+
}
|
|
8256
|
+
if (message.progressXPositive !== 0) {
|
|
8257
|
+
writer.uint32(21).float(message.progressXPositive);
|
|
8258
|
+
}
|
|
8259
|
+
if (message.progressXNegative !== 0) {
|
|
8260
|
+
writer.uint32(29).float(message.progressXNegative);
|
|
8261
|
+
}
|
|
8262
|
+
if (message.progressYPositive !== 0) {
|
|
8263
|
+
writer.uint32(37).float(message.progressYPositive);
|
|
8264
|
+
}
|
|
8265
|
+
if (message.progressYNegative !== 0) {
|
|
8266
|
+
writer.uint32(45).float(message.progressYNegative);
|
|
8267
|
+
}
|
|
8268
|
+
if (message.progressZPositive !== 0) {
|
|
8269
|
+
writer.uint32(53).float(message.progressZPositive);
|
|
8270
|
+
}
|
|
8271
|
+
if (message.progressZNegative !== 0) {
|
|
8272
|
+
writer.uint32(61).float(message.progressZNegative);
|
|
8273
|
+
}
|
|
8274
|
+
if (message.progressThruster !== 0) {
|
|
8275
|
+
writer.uint32(69).float(message.progressThruster);
|
|
8276
|
+
}
|
|
8277
|
+
return writer;
|
|
8278
|
+
},
|
|
8279
|
+
decode(input, length) {
|
|
8280
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8281
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8282
|
+
const message = createBaseCalibrationState();
|
|
8283
|
+
while (reader.pos < end) {
|
|
8284
|
+
const tag = reader.uint32();
|
|
8285
|
+
switch (tag >>> 3) {
|
|
8286
|
+
case 1: {
|
|
8287
|
+
if (tag !== 8) {
|
|
8288
|
+
break;
|
|
8289
|
+
}
|
|
8290
|
+
message.status = reader.int32();
|
|
8291
|
+
continue;
|
|
8292
|
+
}
|
|
8293
|
+
case 2: {
|
|
8294
|
+
if (tag !== 21) {
|
|
8295
|
+
break;
|
|
8296
|
+
}
|
|
8297
|
+
message.progressXPositive = reader.float();
|
|
8298
|
+
continue;
|
|
8299
|
+
}
|
|
8300
|
+
case 3: {
|
|
8301
|
+
if (tag !== 29) {
|
|
8302
|
+
break;
|
|
8303
|
+
}
|
|
8304
|
+
message.progressXNegative = reader.float();
|
|
8305
|
+
continue;
|
|
8306
|
+
}
|
|
8307
|
+
case 4: {
|
|
8308
|
+
if (tag !== 37) {
|
|
8309
|
+
break;
|
|
8310
|
+
}
|
|
8311
|
+
message.progressYPositive = reader.float();
|
|
8312
|
+
continue;
|
|
8313
|
+
}
|
|
8314
|
+
case 5: {
|
|
8315
|
+
if (tag !== 45) {
|
|
8316
|
+
break;
|
|
8317
|
+
}
|
|
8318
|
+
message.progressYNegative = reader.float();
|
|
8319
|
+
continue;
|
|
8320
|
+
}
|
|
8321
|
+
case 6: {
|
|
8322
|
+
if (tag !== 53) {
|
|
8323
|
+
break;
|
|
8324
|
+
}
|
|
8325
|
+
message.progressZPositive = reader.float();
|
|
8326
|
+
continue;
|
|
8327
|
+
}
|
|
8328
|
+
case 7: {
|
|
8329
|
+
if (tag !== 61) {
|
|
8330
|
+
break;
|
|
8331
|
+
}
|
|
8332
|
+
message.progressZNegative = reader.float();
|
|
7553
8333
|
continue;
|
|
7554
8334
|
}
|
|
7555
8335
|
case 8: {
|
|
@@ -8881,9 +9661,20 @@ function createBaseCameraParameters() {
|
|
|
8881
9661
|
whiteBalance: 0,
|
|
8882
9662
|
hue: 0,
|
|
8883
9663
|
gain: 0,
|
|
9664
|
+
brightness: 0,
|
|
9665
|
+
contrast: 0,
|
|
9666
|
+
saturation: 0,
|
|
9667
|
+
gamma: 0,
|
|
9668
|
+
sharpness: 0,
|
|
9669
|
+
backlightCompensation: 0,
|
|
9670
|
+
denoise: 0,
|
|
9671
|
+
ehdrEnabled: false,
|
|
9672
|
+
ehdrExposureMinNumber: 0,
|
|
9673
|
+
ehdrExposureMaxNumber: 0,
|
|
8884
9674
|
resolution: 0,
|
|
8885
9675
|
streamResolution: 0,
|
|
8886
9676
|
recordingResolution: 0,
|
|
9677
|
+
streamingProtocol: 0,
|
|
8887
9678
|
framerate: 0,
|
|
8888
9679
|
camera: 0,
|
|
8889
9680
|
};
|
|
@@ -8908,6 +9699,36 @@ exports.CameraParameters = {
|
|
|
8908
9699
|
if (message.gain !== 0) {
|
|
8909
9700
|
writer.uint32(77).float(message.gain);
|
|
8910
9701
|
}
|
|
9702
|
+
if (message.brightness !== 0) {
|
|
9703
|
+
writer.uint32(96).int32(message.brightness);
|
|
9704
|
+
}
|
|
9705
|
+
if (message.contrast !== 0) {
|
|
9706
|
+
writer.uint32(104).int32(message.contrast);
|
|
9707
|
+
}
|
|
9708
|
+
if (message.saturation !== 0) {
|
|
9709
|
+
writer.uint32(112).int32(message.saturation);
|
|
9710
|
+
}
|
|
9711
|
+
if (message.gamma !== 0) {
|
|
9712
|
+
writer.uint32(120).int32(message.gamma);
|
|
9713
|
+
}
|
|
9714
|
+
if (message.sharpness !== 0) {
|
|
9715
|
+
writer.uint32(128).int32(message.sharpness);
|
|
9716
|
+
}
|
|
9717
|
+
if (message.backlightCompensation !== 0) {
|
|
9718
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
9719
|
+
}
|
|
9720
|
+
if (message.denoise !== 0) {
|
|
9721
|
+
writer.uint32(144).int32(message.denoise);
|
|
9722
|
+
}
|
|
9723
|
+
if (message.ehdrEnabled !== false) {
|
|
9724
|
+
writer.uint32(168).bool(message.ehdrEnabled);
|
|
9725
|
+
}
|
|
9726
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
9727
|
+
writer.uint32(176).int32(message.ehdrExposureMinNumber);
|
|
9728
|
+
}
|
|
9729
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
9730
|
+
writer.uint32(184).int32(message.ehdrExposureMaxNumber);
|
|
9731
|
+
}
|
|
8911
9732
|
if (message.resolution !== 0) {
|
|
8912
9733
|
writer.uint32(48).int32(message.resolution);
|
|
8913
9734
|
}
|
|
@@ -8917,6 +9738,9 @@ exports.CameraParameters = {
|
|
|
8917
9738
|
if (message.recordingResolution !== 0) {
|
|
8918
9739
|
writer.uint32(88).int32(message.recordingResolution);
|
|
8919
9740
|
}
|
|
9741
|
+
if (message.streamingProtocol !== 0) {
|
|
9742
|
+
writer.uint32(160).int32(message.streamingProtocol);
|
|
9743
|
+
}
|
|
8920
9744
|
if (message.framerate !== 0) {
|
|
8921
9745
|
writer.uint32(56).int32(message.framerate);
|
|
8922
9746
|
}
|
|
@@ -8974,6 +9798,76 @@ exports.CameraParameters = {
|
|
|
8974
9798
|
message.gain = reader.float();
|
|
8975
9799
|
continue;
|
|
8976
9800
|
}
|
|
9801
|
+
case 12: {
|
|
9802
|
+
if (tag !== 96) {
|
|
9803
|
+
break;
|
|
9804
|
+
}
|
|
9805
|
+
message.brightness = reader.int32();
|
|
9806
|
+
continue;
|
|
9807
|
+
}
|
|
9808
|
+
case 13: {
|
|
9809
|
+
if (tag !== 104) {
|
|
9810
|
+
break;
|
|
9811
|
+
}
|
|
9812
|
+
message.contrast = reader.int32();
|
|
9813
|
+
continue;
|
|
9814
|
+
}
|
|
9815
|
+
case 14: {
|
|
9816
|
+
if (tag !== 112) {
|
|
9817
|
+
break;
|
|
9818
|
+
}
|
|
9819
|
+
message.saturation = reader.int32();
|
|
9820
|
+
continue;
|
|
9821
|
+
}
|
|
9822
|
+
case 15: {
|
|
9823
|
+
if (tag !== 120) {
|
|
9824
|
+
break;
|
|
9825
|
+
}
|
|
9826
|
+
message.gamma = reader.int32();
|
|
9827
|
+
continue;
|
|
9828
|
+
}
|
|
9829
|
+
case 16: {
|
|
9830
|
+
if (tag !== 128) {
|
|
9831
|
+
break;
|
|
9832
|
+
}
|
|
9833
|
+
message.sharpness = reader.int32();
|
|
9834
|
+
continue;
|
|
9835
|
+
}
|
|
9836
|
+
case 17: {
|
|
9837
|
+
if (tag !== 136) {
|
|
9838
|
+
break;
|
|
9839
|
+
}
|
|
9840
|
+
message.backlightCompensation = reader.int32();
|
|
9841
|
+
continue;
|
|
9842
|
+
}
|
|
9843
|
+
case 18: {
|
|
9844
|
+
if (tag !== 144) {
|
|
9845
|
+
break;
|
|
9846
|
+
}
|
|
9847
|
+
message.denoise = reader.int32();
|
|
9848
|
+
continue;
|
|
9849
|
+
}
|
|
9850
|
+
case 21: {
|
|
9851
|
+
if (tag !== 168) {
|
|
9852
|
+
break;
|
|
9853
|
+
}
|
|
9854
|
+
message.ehdrEnabled = reader.bool();
|
|
9855
|
+
continue;
|
|
9856
|
+
}
|
|
9857
|
+
case 22: {
|
|
9858
|
+
if (tag !== 176) {
|
|
9859
|
+
break;
|
|
9860
|
+
}
|
|
9861
|
+
message.ehdrExposureMinNumber = reader.int32();
|
|
9862
|
+
continue;
|
|
9863
|
+
}
|
|
9864
|
+
case 23: {
|
|
9865
|
+
if (tag !== 184) {
|
|
9866
|
+
break;
|
|
9867
|
+
}
|
|
9868
|
+
message.ehdrExposureMaxNumber = reader.int32();
|
|
9869
|
+
continue;
|
|
9870
|
+
}
|
|
8977
9871
|
case 6: {
|
|
8978
9872
|
if (tag !== 48) {
|
|
8979
9873
|
break;
|
|
@@ -8995,6 +9889,13 @@ exports.CameraParameters = {
|
|
|
8995
9889
|
message.recordingResolution = reader.int32();
|
|
8996
9890
|
continue;
|
|
8997
9891
|
}
|
|
9892
|
+
case 20: {
|
|
9893
|
+
if (tag !== 160) {
|
|
9894
|
+
break;
|
|
9895
|
+
}
|
|
9896
|
+
message.streamingProtocol = reader.int32();
|
|
9897
|
+
continue;
|
|
9898
|
+
}
|
|
8998
9899
|
case 7: {
|
|
8999
9900
|
if (tag !== 56) {
|
|
9000
9901
|
break;
|
|
@@ -9025,9 +9926,20 @@ exports.CameraParameters = {
|
|
|
9025
9926
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9026
9927
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9027
9928
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
9929
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
9930
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
9931
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
9932
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
9933
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
9934
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
9935
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
9936
|
+
ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
|
|
9937
|
+
ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
|
|
9938
|
+
ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
|
|
9028
9939
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9029
9940
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9030
9941
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
9942
|
+
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9031
9943
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9032
9944
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9033
9945
|
};
|
|
@@ -9052,6 +9964,36 @@ exports.CameraParameters = {
|
|
|
9052
9964
|
if (message.gain !== 0) {
|
|
9053
9965
|
obj.gain = message.gain;
|
|
9054
9966
|
}
|
|
9967
|
+
if (message.brightness !== 0) {
|
|
9968
|
+
obj.brightness = Math.round(message.brightness);
|
|
9969
|
+
}
|
|
9970
|
+
if (message.contrast !== 0) {
|
|
9971
|
+
obj.contrast = Math.round(message.contrast);
|
|
9972
|
+
}
|
|
9973
|
+
if (message.saturation !== 0) {
|
|
9974
|
+
obj.saturation = Math.round(message.saturation);
|
|
9975
|
+
}
|
|
9976
|
+
if (message.gamma !== 0) {
|
|
9977
|
+
obj.gamma = Math.round(message.gamma);
|
|
9978
|
+
}
|
|
9979
|
+
if (message.sharpness !== 0) {
|
|
9980
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
9981
|
+
}
|
|
9982
|
+
if (message.backlightCompensation !== 0) {
|
|
9983
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
9984
|
+
}
|
|
9985
|
+
if (message.denoise !== 0) {
|
|
9986
|
+
obj.denoise = Math.round(message.denoise);
|
|
9987
|
+
}
|
|
9988
|
+
if (message.ehdrEnabled !== false) {
|
|
9989
|
+
obj.ehdrEnabled = message.ehdrEnabled;
|
|
9990
|
+
}
|
|
9991
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
9992
|
+
obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
|
|
9993
|
+
}
|
|
9994
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
9995
|
+
obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
|
|
9996
|
+
}
|
|
9055
9997
|
if (message.resolution !== 0) {
|
|
9056
9998
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9057
9999
|
}
|
|
@@ -9061,6 +10003,9 @@ exports.CameraParameters = {
|
|
|
9061
10003
|
if (message.recordingResolution !== 0) {
|
|
9062
10004
|
obj.recordingResolution = resolutionToJSON(message.recordingResolution);
|
|
9063
10005
|
}
|
|
10006
|
+
if (message.streamingProtocol !== 0) {
|
|
10007
|
+
obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
|
|
10008
|
+
}
|
|
9064
10009
|
if (message.framerate !== 0) {
|
|
9065
10010
|
obj.framerate = framerateToJSON(message.framerate);
|
|
9066
10011
|
}
|
|
@@ -9080,9 +10025,20 @@ exports.CameraParameters = {
|
|
|
9080
10025
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9081
10026
|
message.hue = object.hue ?? 0;
|
|
9082
10027
|
message.gain = object.gain ?? 0;
|
|
10028
|
+
message.brightness = object.brightness ?? 0;
|
|
10029
|
+
message.contrast = object.contrast ?? 0;
|
|
10030
|
+
message.saturation = object.saturation ?? 0;
|
|
10031
|
+
message.gamma = object.gamma ?? 0;
|
|
10032
|
+
message.sharpness = object.sharpness ?? 0;
|
|
10033
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
10034
|
+
message.denoise = object.denoise ?? 0;
|
|
10035
|
+
message.ehdrEnabled = object.ehdrEnabled ?? false;
|
|
10036
|
+
message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
|
|
10037
|
+
message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
|
|
9083
10038
|
message.resolution = object.resolution ?? 0;
|
|
9084
10039
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9085
10040
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
10041
|
+
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
9086
10042
|
message.framerate = object.framerate ?? 0;
|
|
9087
10043
|
message.camera = object.camera ?? 0;
|
|
9088
10044
|
return message;
|
|
@@ -11828,7 +12784,7 @@ exports.PersistentStorageSettings = {
|
|
|
11828
12784
|
},
|
|
11829
12785
|
};
|
|
11830
12786
|
function createBaseCPUInfo() {
|
|
11831
|
-
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0 };
|
|
12787
|
+
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0, commQueueLoad: 0 };
|
|
11832
12788
|
}
|
|
11833
12789
|
exports.CPUInfo = {
|
|
11834
12790
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -11844,6 +12800,9 @@ exports.CPUInfo = {
|
|
|
11844
12800
|
if (message.guestportQueueLoad !== 0) {
|
|
11845
12801
|
writer.uint32(37).float(message.guestportQueueLoad);
|
|
11846
12802
|
}
|
|
12803
|
+
if (message.commQueueLoad !== 0) {
|
|
12804
|
+
writer.uint32(45).float(message.commQueueLoad);
|
|
12805
|
+
}
|
|
11847
12806
|
return writer;
|
|
11848
12807
|
},
|
|
11849
12808
|
decode(input, length) {
|
|
@@ -11881,6 +12840,13 @@ exports.CPUInfo = {
|
|
|
11881
12840
|
message.guestportQueueLoad = reader.float();
|
|
11882
12841
|
continue;
|
|
11883
12842
|
}
|
|
12843
|
+
case 5: {
|
|
12844
|
+
if (tag !== 45) {
|
|
12845
|
+
break;
|
|
12846
|
+
}
|
|
12847
|
+
message.commQueueLoad = reader.float();
|
|
12848
|
+
continue;
|
|
12849
|
+
}
|
|
11884
12850
|
}
|
|
11885
12851
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11886
12852
|
break;
|
|
@@ -11895,6 +12861,7 @@ exports.CPUInfo = {
|
|
|
11895
12861
|
memoryBusLoad: isSet(object.memoryBusLoad) ? gt.Number(object.memoryBusLoad) : 0,
|
|
11896
12862
|
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
11897
12863
|
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
12864
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
11898
12865
|
};
|
|
11899
12866
|
},
|
|
11900
12867
|
toJSON(message) {
|
|
@@ -11911,6 +12878,9 @@ exports.CPUInfo = {
|
|
|
11911
12878
|
if (message.guestportQueueLoad !== 0) {
|
|
11912
12879
|
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
11913
12880
|
}
|
|
12881
|
+
if (message.commQueueLoad !== 0) {
|
|
12882
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
12883
|
+
}
|
|
11914
12884
|
return obj;
|
|
11915
12885
|
},
|
|
11916
12886
|
create(base) {
|
|
@@ -11922,6 +12892,126 @@ exports.CPUInfo = {
|
|
|
11922
12892
|
message.memoryBusLoad = object.memoryBusLoad ?? 0;
|
|
11923
12893
|
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
11924
12894
|
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
12895
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
12896
|
+
return message;
|
|
12897
|
+
},
|
|
12898
|
+
};
|
|
12899
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
12900
|
+
return { status: 0, level: 0 };
|
|
12901
|
+
}
|
|
12902
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
12903
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12904
|
+
if (message.status !== 0) {
|
|
12905
|
+
writer.uint32(8).int32(message.status);
|
|
12906
|
+
}
|
|
12907
|
+
if (message.level !== 0) {
|
|
12908
|
+
writer.uint32(21).float(message.level);
|
|
12909
|
+
}
|
|
12910
|
+
return writer;
|
|
12911
|
+
},
|
|
12912
|
+
decode(input, length) {
|
|
12913
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12914
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12915
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
12916
|
+
while (reader.pos < end) {
|
|
12917
|
+
const tag = reader.uint32();
|
|
12918
|
+
switch (tag >>> 3) {
|
|
12919
|
+
case 1: {
|
|
12920
|
+
if (tag !== 8) {
|
|
12921
|
+
break;
|
|
12922
|
+
}
|
|
12923
|
+
message.status = reader.int32();
|
|
12924
|
+
continue;
|
|
12925
|
+
}
|
|
12926
|
+
case 2: {
|
|
12927
|
+
if (tag !== 21) {
|
|
12928
|
+
break;
|
|
12929
|
+
}
|
|
12930
|
+
message.level = reader.float();
|
|
12931
|
+
continue;
|
|
12932
|
+
}
|
|
12933
|
+
}
|
|
12934
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12935
|
+
break;
|
|
12936
|
+
}
|
|
12937
|
+
reader.skip(tag & 7);
|
|
12938
|
+
}
|
|
12939
|
+
return message;
|
|
12940
|
+
},
|
|
12941
|
+
fromJSON(object) {
|
|
12942
|
+
return {
|
|
12943
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
12944
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
12945
|
+
};
|
|
12946
|
+
},
|
|
12947
|
+
toJSON(message) {
|
|
12948
|
+
const obj = {};
|
|
12949
|
+
if (message.status !== 0) {
|
|
12950
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
12951
|
+
}
|
|
12952
|
+
if (message.level !== 0) {
|
|
12953
|
+
obj.level = message.level;
|
|
12954
|
+
}
|
|
12955
|
+
return obj;
|
|
12956
|
+
},
|
|
12957
|
+
create(base) {
|
|
12958
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
12959
|
+
},
|
|
12960
|
+
fromPartial(object) {
|
|
12961
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
12962
|
+
message.status = object.status ?? 0;
|
|
12963
|
+
message.level = object.level ?? 0;
|
|
12964
|
+
return message;
|
|
12965
|
+
},
|
|
12966
|
+
};
|
|
12967
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
12968
|
+
return { version: "" };
|
|
12969
|
+
}
|
|
12970
|
+
exports.SurfaceUnitVersionInfo = {
|
|
12971
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12972
|
+
if (message.version !== "") {
|
|
12973
|
+
writer.uint32(10).string(message.version);
|
|
12974
|
+
}
|
|
12975
|
+
return writer;
|
|
12976
|
+
},
|
|
12977
|
+
decode(input, length) {
|
|
12978
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
12979
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12980
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
12981
|
+
while (reader.pos < end) {
|
|
12982
|
+
const tag = reader.uint32();
|
|
12983
|
+
switch (tag >>> 3) {
|
|
12984
|
+
case 1: {
|
|
12985
|
+
if (tag !== 10) {
|
|
12986
|
+
break;
|
|
12987
|
+
}
|
|
12988
|
+
message.version = reader.string();
|
|
12989
|
+
continue;
|
|
12990
|
+
}
|
|
12991
|
+
}
|
|
12992
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12993
|
+
break;
|
|
12994
|
+
}
|
|
12995
|
+
reader.skip(tag & 7);
|
|
12996
|
+
}
|
|
12997
|
+
return message;
|
|
12998
|
+
},
|
|
12999
|
+
fromJSON(object) {
|
|
13000
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
13001
|
+
},
|
|
13002
|
+
toJSON(message) {
|
|
13003
|
+
const obj = {};
|
|
13004
|
+
if (message.version !== "") {
|
|
13005
|
+
obj.version = message.version;
|
|
13006
|
+
}
|
|
13007
|
+
return obj;
|
|
13008
|
+
},
|
|
13009
|
+
create(base) {
|
|
13010
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
13011
|
+
},
|
|
13012
|
+
fromPartial(object) {
|
|
13013
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13014
|
+
message.version = object.version ?? "";
|
|
11925
13015
|
return message;
|
|
11926
13016
|
},
|
|
11927
13017
|
};
|