@blueyerobotics/protocol-definitions 3.2.0-3e0ba702 → 3.2.0-45dcae42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +165 -0
- package/README.npm.md +40 -0
- package/dist/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 +245 -11
- package/dist/message_formats.js +1433 -59
- package/dist/mission_planning.js +1 -1
- package/dist/req_rep.js +1 -1
- package/dist/telemetry.d.ts +26 -2
- package/dist/telemetry.js +223 -5
- package/package.json +8 -6
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.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = void 0;
|
|
10
|
+
exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -22,6 +22,8 @@ exports.notificationTypeFromJSON = notificationTypeFromJSON;
|
|
|
22
22
|
exports.notificationTypeToJSON = notificationTypeToJSON;
|
|
23
23
|
exports.notificationLevelFromJSON = notificationLevelFromJSON;
|
|
24
24
|
exports.notificationLevelToJSON = notificationLevelToJSON;
|
|
25
|
+
exports.storageLocationFromJSON = storageLocationFromJSON;
|
|
26
|
+
exports.storageLocationToJSON = storageLocationToJSON;
|
|
25
27
|
exports.modelFromJSON = modelFromJSON;
|
|
26
28
|
exports.modelToJSON = modelToJSON;
|
|
27
29
|
exports.pressureSensorTypeFromJSON = pressureSensorTypeFromJSON;
|
|
@@ -32,6 +34,8 @@ exports.framerateFromJSON = framerateFromJSON;
|
|
|
32
34
|
exports.framerateToJSON = framerateToJSON;
|
|
33
35
|
exports.cameraFromJSON = cameraFromJSON;
|
|
34
36
|
exports.cameraToJSON = cameraToJSON;
|
|
37
|
+
exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
|
|
38
|
+
exports.streamingProtocolToJSON = streamingProtocolToJSON;
|
|
35
39
|
exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
|
|
36
40
|
exports.temperatureUnitToJSON = temperatureUnitToJSON;
|
|
37
41
|
exports.logoTypeFromJSON = logoTypeFromJSON;
|
|
@@ -54,16 +58,24 @@ 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;
|
|
63
|
+
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
64
|
+
exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
|
|
57
65
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
58
66
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
59
67
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
60
68
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON;
|
|
69
|
+
exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFromJSON;
|
|
70
|
+
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
61
71
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
62
72
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
63
73
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
64
74
|
exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
|
|
65
75
|
exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
|
|
66
76
|
exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
|
|
77
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
|
|
78
|
+
exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
|
|
67
79
|
/* eslint-disable */
|
|
68
80
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
69
81
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -585,6 +597,51 @@ function notificationLevelToJSON(object) {
|
|
|
585
597
|
return "UNRECOGNIZED";
|
|
586
598
|
}
|
|
587
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Storage location.
|
|
602
|
+
*
|
|
603
|
+
* Used to specify which storage location to use for recording photos and videos.
|
|
604
|
+
*/
|
|
605
|
+
var StorageLocation;
|
|
606
|
+
(function (StorageLocation) {
|
|
607
|
+
/** STORAGE_LOCATION_UNSPECIFIED - Unspecified. */
|
|
608
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_UNSPECIFIED"] = 0] = "STORAGE_LOCATION_UNSPECIFIED";
|
|
609
|
+
/** STORAGE_LOCATION_INTERNAL - Internal storage of the drone. */
|
|
610
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_INTERNAL"] = 1] = "STORAGE_LOCATION_INTERNAL";
|
|
611
|
+
/** STORAGE_LOCATION_REMOVABLE - Removable storage device. */
|
|
612
|
+
StorageLocation[StorageLocation["STORAGE_LOCATION_REMOVABLE"] = 2] = "STORAGE_LOCATION_REMOVABLE";
|
|
613
|
+
StorageLocation[StorageLocation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
614
|
+
})(StorageLocation || (exports.StorageLocation = StorageLocation = {}));
|
|
615
|
+
function storageLocationFromJSON(object) {
|
|
616
|
+
switch (object) {
|
|
617
|
+
case 0:
|
|
618
|
+
case "STORAGE_LOCATION_UNSPECIFIED":
|
|
619
|
+
return StorageLocation.STORAGE_LOCATION_UNSPECIFIED;
|
|
620
|
+
case 1:
|
|
621
|
+
case "STORAGE_LOCATION_INTERNAL":
|
|
622
|
+
return StorageLocation.STORAGE_LOCATION_INTERNAL;
|
|
623
|
+
case 2:
|
|
624
|
+
case "STORAGE_LOCATION_REMOVABLE":
|
|
625
|
+
return StorageLocation.STORAGE_LOCATION_REMOVABLE;
|
|
626
|
+
case -1:
|
|
627
|
+
case "UNRECOGNIZED":
|
|
628
|
+
default:
|
|
629
|
+
return StorageLocation.UNRECOGNIZED;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function storageLocationToJSON(object) {
|
|
633
|
+
switch (object) {
|
|
634
|
+
case StorageLocation.STORAGE_LOCATION_UNSPECIFIED:
|
|
635
|
+
return "STORAGE_LOCATION_UNSPECIFIED";
|
|
636
|
+
case StorageLocation.STORAGE_LOCATION_INTERNAL:
|
|
637
|
+
return "STORAGE_LOCATION_INTERNAL";
|
|
638
|
+
case StorageLocation.STORAGE_LOCATION_REMOVABLE:
|
|
639
|
+
return "STORAGE_LOCATION_REMOVABLE";
|
|
640
|
+
case StorageLocation.UNRECOGNIZED:
|
|
641
|
+
default:
|
|
642
|
+
return "UNRECOGNIZED";
|
|
643
|
+
}
|
|
644
|
+
}
|
|
588
645
|
/** Drone models produced by Blueye. */
|
|
589
646
|
var Model;
|
|
590
647
|
(function (Model) {
|
|
@@ -714,11 +771,13 @@ var Resolution;
|
|
|
714
771
|
(function (Resolution) {
|
|
715
772
|
/** RESOLUTION_UNSPECIFIED - Resolution not specified. */
|
|
716
773
|
Resolution[Resolution["RESOLUTION_UNSPECIFIED"] = 0] = "RESOLUTION_UNSPECIFIED";
|
|
717
|
-
/**
|
|
718
|
-
Resolution[Resolution["
|
|
719
|
-
/** RESOLUTION_HD_720P - 720p HD
|
|
774
|
+
/** RESOLUTION_VGA_480P - VGA (640x480). */
|
|
775
|
+
Resolution[Resolution["RESOLUTION_VGA_480P"] = 4] = "RESOLUTION_VGA_480P";
|
|
776
|
+
/** RESOLUTION_HD_720P - 720p HD (1280x720). */
|
|
720
777
|
Resolution[Resolution["RESOLUTION_HD_720P"] = 2] = "RESOLUTION_HD_720P";
|
|
721
|
-
/**
|
|
778
|
+
/** RESOLUTION_FULLHD_1080P - 1080p Full HD (1920x1080). */
|
|
779
|
+
Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
|
|
780
|
+
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
722
781
|
Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
|
|
723
782
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
724
783
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
@@ -727,12 +786,15 @@ function resolutionFromJSON(object) {
|
|
|
727
786
|
case 0:
|
|
728
787
|
case "RESOLUTION_UNSPECIFIED":
|
|
729
788
|
return Resolution.RESOLUTION_UNSPECIFIED;
|
|
730
|
-
case
|
|
731
|
-
case "
|
|
732
|
-
return Resolution.
|
|
789
|
+
case 4:
|
|
790
|
+
case "RESOLUTION_VGA_480P":
|
|
791
|
+
return Resolution.RESOLUTION_VGA_480P;
|
|
733
792
|
case 2:
|
|
734
793
|
case "RESOLUTION_HD_720P":
|
|
735
794
|
return Resolution.RESOLUTION_HD_720P;
|
|
795
|
+
case 1:
|
|
796
|
+
case "RESOLUTION_FULLHD_1080P":
|
|
797
|
+
return Resolution.RESOLUTION_FULLHD_1080P;
|
|
736
798
|
case 3:
|
|
737
799
|
case "RESOLUTION_UHD_4K":
|
|
738
800
|
return Resolution.RESOLUTION_UHD_4K;
|
|
@@ -746,10 +808,12 @@ function resolutionToJSON(object) {
|
|
|
746
808
|
switch (object) {
|
|
747
809
|
case Resolution.RESOLUTION_UNSPECIFIED:
|
|
748
810
|
return "RESOLUTION_UNSPECIFIED";
|
|
749
|
-
case Resolution.
|
|
750
|
-
return "
|
|
811
|
+
case Resolution.RESOLUTION_VGA_480P:
|
|
812
|
+
return "RESOLUTION_VGA_480P";
|
|
751
813
|
case Resolution.RESOLUTION_HD_720P:
|
|
752
814
|
return "RESOLUTION_HD_720P";
|
|
815
|
+
case Resolution.RESOLUTION_FULLHD_1080P:
|
|
816
|
+
return "RESOLUTION_FULLHD_1080P";
|
|
753
817
|
case Resolution.RESOLUTION_UHD_4K:
|
|
754
818
|
return "RESOLUTION_UHD_4K";
|
|
755
819
|
case Resolution.UNRECOGNIZED:
|
|
@@ -764,7 +828,7 @@ var Framerate;
|
|
|
764
828
|
Framerate[Framerate["FRAMERATE_UNSPECIFIED"] = 0] = "FRAMERATE_UNSPECIFIED";
|
|
765
829
|
/** FRAMERATE_FPS_30 - 30 frames per second. */
|
|
766
830
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
767
|
-
/** FRAMERATE_FPS_25 - 25 frames per second. */
|
|
831
|
+
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
768
832
|
Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
|
|
769
833
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
770
834
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
@@ -839,6 +903,46 @@ function cameraToJSON(object) {
|
|
|
839
903
|
return "UNRECOGNIZED";
|
|
840
904
|
}
|
|
841
905
|
}
|
|
906
|
+
var StreamingProtocol;
|
|
907
|
+
(function (StreamingProtocol) {
|
|
908
|
+
/** STREAMING_PROTOCOL_UNSPECIFIED - Streaming protocol not specified. */
|
|
909
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_UNSPECIFIED"] = 0] = "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
910
|
+
/** STREAMING_PROTOCOL_RTSP_H264 - RTSP streaming protocol using H264 codec. */
|
|
911
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_H264"] = 1] = "STREAMING_PROTOCOL_RTSP_H264";
|
|
912
|
+
/** STREAMING_PROTOCOL_RTSP_MJPEG - RTSP streaming protocol using MJPEG codec. No recording when activated. */
|
|
913
|
+
StreamingProtocol[StreamingProtocol["STREAMING_PROTOCOL_RTSP_MJPEG"] = 2] = "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
914
|
+
StreamingProtocol[StreamingProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
915
|
+
})(StreamingProtocol || (exports.StreamingProtocol = StreamingProtocol = {}));
|
|
916
|
+
function streamingProtocolFromJSON(object) {
|
|
917
|
+
switch (object) {
|
|
918
|
+
case 0:
|
|
919
|
+
case "STREAMING_PROTOCOL_UNSPECIFIED":
|
|
920
|
+
return StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED;
|
|
921
|
+
case 1:
|
|
922
|
+
case "STREAMING_PROTOCOL_RTSP_H264":
|
|
923
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264;
|
|
924
|
+
case 2:
|
|
925
|
+
case "STREAMING_PROTOCOL_RTSP_MJPEG":
|
|
926
|
+
return StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG;
|
|
927
|
+
case -1:
|
|
928
|
+
case "UNRECOGNIZED":
|
|
929
|
+
default:
|
|
930
|
+
return StreamingProtocol.UNRECOGNIZED;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
function streamingProtocolToJSON(object) {
|
|
934
|
+
switch (object) {
|
|
935
|
+
case StreamingProtocol.STREAMING_PROTOCOL_UNSPECIFIED:
|
|
936
|
+
return "STREAMING_PROTOCOL_UNSPECIFIED";
|
|
937
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_H264:
|
|
938
|
+
return "STREAMING_PROTOCOL_RTSP_H264";
|
|
939
|
+
case StreamingProtocol.STREAMING_PROTOCOL_RTSP_MJPEG:
|
|
940
|
+
return "STREAMING_PROTOCOL_RTSP_MJPEG";
|
|
941
|
+
case StreamingProtocol.UNRECOGNIZED:
|
|
942
|
+
default:
|
|
943
|
+
return "UNRECOGNIZED";
|
|
944
|
+
}
|
|
945
|
+
}
|
|
842
946
|
/** Available temperature units. */
|
|
843
947
|
var TemperatureUnit;
|
|
844
948
|
(function (TemperatureUnit) {
|
|
@@ -1172,6 +1276,8 @@ var GuestPortDeviceID;
|
|
|
1172
1276
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1173
1277
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1174
1278
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1279
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
|
|
1280
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1175
1281
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1176
1282
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1177
1283
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1311,6 +1417,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1311
1417
|
case 44:
|
|
1312
1418
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
|
|
1313
1419
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650;
|
|
1420
|
+
case 45:
|
|
1421
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1422
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1314
1423
|
case -1:
|
|
1315
1424
|
case "UNRECOGNIZED":
|
|
1316
1425
|
default:
|
|
@@ -1409,6 +1518,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1409
1518
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1410
1519
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
|
|
1411
1520
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1521
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1522
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1412
1523
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1413
1524
|
default:
|
|
1414
1525
|
return "UNRECOGNIZED";
|
|
@@ -1685,6 +1796,157 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1685
1796
|
return "UNRECOGNIZED";
|
|
1686
1797
|
}
|
|
1687
1798
|
}
|
|
1799
|
+
var LogEntry_LogLevel;
|
|
1800
|
+
(function (LogEntry_LogLevel) {
|
|
1801
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1802
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
1803
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
1804
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
|
|
1805
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
1806
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
|
|
1807
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
1808
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
|
|
1809
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
1810
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
|
|
1811
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
1812
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
|
|
1813
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
1814
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
|
|
1815
|
+
LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1816
|
+
})(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
|
|
1817
|
+
function logEntry_LogLevelFromJSON(object) {
|
|
1818
|
+
switch (object) {
|
|
1819
|
+
case 0:
|
|
1820
|
+
case "LOG_LEVEL_UNSPECIFIED":
|
|
1821
|
+
return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
|
|
1822
|
+
case 1:
|
|
1823
|
+
case "LOG_LEVEL_TRACE":
|
|
1824
|
+
return LogEntry_LogLevel.LOG_LEVEL_TRACE;
|
|
1825
|
+
case 2:
|
|
1826
|
+
case "LOG_LEVEL_DEBUG":
|
|
1827
|
+
return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
|
|
1828
|
+
case 3:
|
|
1829
|
+
case "LOG_LEVEL_INFO":
|
|
1830
|
+
return LogEntry_LogLevel.LOG_LEVEL_INFO;
|
|
1831
|
+
case 4:
|
|
1832
|
+
case "LOG_LEVEL_WARNING":
|
|
1833
|
+
return LogEntry_LogLevel.LOG_LEVEL_WARNING;
|
|
1834
|
+
case 5:
|
|
1835
|
+
case "LOG_LEVEL_ERROR":
|
|
1836
|
+
return LogEntry_LogLevel.LOG_LEVEL_ERROR;
|
|
1837
|
+
case 6:
|
|
1838
|
+
case "LOG_LEVEL_CRITICAL":
|
|
1839
|
+
return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
|
|
1840
|
+
case -1:
|
|
1841
|
+
case "UNRECOGNIZED":
|
|
1842
|
+
default:
|
|
1843
|
+
return LogEntry_LogLevel.UNRECOGNIZED;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
function logEntry_LogLevelToJSON(object) {
|
|
1847
|
+
switch (object) {
|
|
1848
|
+
case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
|
|
1849
|
+
return "LOG_LEVEL_UNSPECIFIED";
|
|
1850
|
+
case LogEntry_LogLevel.LOG_LEVEL_TRACE:
|
|
1851
|
+
return "LOG_LEVEL_TRACE";
|
|
1852
|
+
case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
|
|
1853
|
+
return "LOG_LEVEL_DEBUG";
|
|
1854
|
+
case LogEntry_LogLevel.LOG_LEVEL_INFO:
|
|
1855
|
+
return "LOG_LEVEL_INFO";
|
|
1856
|
+
case LogEntry_LogLevel.LOG_LEVEL_WARNING:
|
|
1857
|
+
return "LOG_LEVEL_WARNING";
|
|
1858
|
+
case LogEntry_LogLevel.LOG_LEVEL_ERROR:
|
|
1859
|
+
return "LOG_LEVEL_ERROR";
|
|
1860
|
+
case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
|
|
1861
|
+
return "LOG_LEVEL_CRITICAL";
|
|
1862
|
+
case LogEntry_LogLevel.UNRECOGNIZED:
|
|
1863
|
+
default:
|
|
1864
|
+
return "UNRECOGNIZED";
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
/** Kernel log level. */
|
|
1868
|
+
var KernelLogEntry_KernelLogLevel;
|
|
1869
|
+
(function (KernelLogEntry_KernelLogLevel) {
|
|
1870
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1871
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1872
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
1873
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
|
|
1874
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
1875
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
|
|
1876
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
1877
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
|
|
1878
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
1879
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
|
|
1880
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
1881
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
|
|
1882
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
1883
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
|
|
1884
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
1885
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
|
|
1886
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
1887
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
|
|
1888
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1889
|
+
})(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
|
|
1890
|
+
function kernelLogEntry_KernelLogLevelFromJSON(object) {
|
|
1891
|
+
switch (object) {
|
|
1892
|
+
case 0:
|
|
1893
|
+
case "KERNEL_LOG_LEVEL_UNSPECIFIED":
|
|
1894
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
|
|
1895
|
+
case 1:
|
|
1896
|
+
case "KERNEL_LOG_LEVEL_EMERG":
|
|
1897
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
|
|
1898
|
+
case 2:
|
|
1899
|
+
case "KERNEL_LOG_LEVEL_ALERT":
|
|
1900
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
|
|
1901
|
+
case 3:
|
|
1902
|
+
case "KERNEL_LOG_LEVEL_CRIT":
|
|
1903
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
|
|
1904
|
+
case 4:
|
|
1905
|
+
case "KERNEL_LOG_LEVEL_ERR":
|
|
1906
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
|
|
1907
|
+
case 5:
|
|
1908
|
+
case "KERNEL_LOG_LEVEL_WARNING":
|
|
1909
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
|
|
1910
|
+
case 6:
|
|
1911
|
+
case "KERNEL_LOG_LEVEL_NOTICE":
|
|
1912
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
|
|
1913
|
+
case 7:
|
|
1914
|
+
case "KERNEL_LOG_LEVEL_INFO":
|
|
1915
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
|
|
1916
|
+
case 8:
|
|
1917
|
+
case "KERNEL_LOG_LEVEL_DEBUG":
|
|
1918
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
|
|
1919
|
+
case -1:
|
|
1920
|
+
case "UNRECOGNIZED":
|
|
1921
|
+
default:
|
|
1922
|
+
return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
function kernelLogEntry_KernelLogLevelToJSON(object) {
|
|
1926
|
+
switch (object) {
|
|
1927
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
|
|
1928
|
+
return "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1929
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
|
|
1930
|
+
return "KERNEL_LOG_LEVEL_EMERG";
|
|
1931
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
|
|
1932
|
+
return "KERNEL_LOG_LEVEL_ALERT";
|
|
1933
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
|
|
1934
|
+
return "KERNEL_LOG_LEVEL_CRIT";
|
|
1935
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
|
|
1936
|
+
return "KERNEL_LOG_LEVEL_ERR";
|
|
1937
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
|
|
1938
|
+
return "KERNEL_LOG_LEVEL_WARNING";
|
|
1939
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
|
|
1940
|
+
return "KERNEL_LOG_LEVEL_NOTICE";
|
|
1941
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
|
|
1942
|
+
return "KERNEL_LOG_LEVEL_INFO";
|
|
1943
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
|
|
1944
|
+
return "KERNEL_LOG_LEVEL_DEBUG";
|
|
1945
|
+
case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
|
|
1946
|
+
default:
|
|
1947
|
+
return "UNRECOGNIZED";
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1688
1950
|
var PingerConfiguration_MountingDirection;
|
|
1689
1951
|
(function (PingerConfiguration_MountingDirection) {
|
|
1690
1952
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -1799,10 +2061,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1799
2061
|
return "UNRECOGNIZED";
|
|
1800
2062
|
}
|
|
1801
2063
|
}
|
|
2064
|
+
/** Overall status of the storage device. */
|
|
2065
|
+
var RemovableStorageDevice_Status;
|
|
2066
|
+
(function (RemovableStorageDevice_Status) {
|
|
2067
|
+
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
2068
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
2069
|
+
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
2070
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
2071
|
+
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
2072
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
2073
|
+
/** STATUS_ERROR - The storage device is in an error state. */
|
|
2074
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
2075
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2076
|
+
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
2077
|
+
function removableStorageDevice_StatusFromJSON(object) {
|
|
2078
|
+
switch (object) {
|
|
2079
|
+
case 0:
|
|
2080
|
+
case "STATUS_UNSPECIFIED":
|
|
2081
|
+
return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
|
|
2082
|
+
case 1:
|
|
2083
|
+
case "STATUS_READY":
|
|
2084
|
+
return RemovableStorageDevice_Status.STATUS_READY;
|
|
2085
|
+
case 2:
|
|
2086
|
+
case "STATUS_FORMATTING":
|
|
2087
|
+
return RemovableStorageDevice_Status.STATUS_FORMATTING;
|
|
2088
|
+
case 3:
|
|
2089
|
+
case "STATUS_ERROR":
|
|
2090
|
+
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
2091
|
+
case -1:
|
|
2092
|
+
case "UNRECOGNIZED":
|
|
2093
|
+
default:
|
|
2094
|
+
return RemovableStorageDevice_Status.UNRECOGNIZED;
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
function removableStorageDevice_StatusToJSON(object) {
|
|
2098
|
+
switch (object) {
|
|
2099
|
+
case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
|
|
2100
|
+
return "STATUS_UNSPECIFIED";
|
|
2101
|
+
case RemovableStorageDevice_Status.STATUS_READY:
|
|
2102
|
+
return "STATUS_READY";
|
|
2103
|
+
case RemovableStorageDevice_Status.STATUS_FORMATTING:
|
|
2104
|
+
return "STATUS_FORMATTING";
|
|
2105
|
+
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
2106
|
+
return "STATUS_ERROR";
|
|
2107
|
+
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
2108
|
+
default:
|
|
2109
|
+
return "UNRECOGNIZED";
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
1802
2112
|
/**
|
|
1803
2113
|
* Status of the compass calibration procedure.
|
|
1804
2114
|
*
|
|
1805
|
-
* When calibration is started, the status will indicate the active (
|
|
2115
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1806
2116
|
*/
|
|
1807
2117
|
var CalibrationState_Status;
|
|
1808
2118
|
(function (CalibrationState_Status) {
|
|
@@ -1824,7 +2134,7 @@ var CalibrationState_Status;
|
|
|
1824
2134
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1825
2135
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1826
2136
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1827
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
2137
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1828
2138
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1829
2139
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1830
2140
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -2015,6 +2325,49 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
|
|
|
2015
2325
|
return "UNRECOGNIZED";
|
|
2016
2326
|
}
|
|
2017
2327
|
}
|
|
2328
|
+
var SurfaceUnitBatteryInfo_ChargeStatus;
|
|
2329
|
+
(function (SurfaceUnitBatteryInfo_ChargeStatus) {
|
|
2330
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_UNSPECIFIED"] = 0] = "CHARGE_STATUS_UNSPECIFIED";
|
|
2331
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_DISCHARGE"] = 1] = "CHARGE_STATUS_DISCHARGE";
|
|
2332
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE"] = 2] = "CHARGE_STATUS_CHARGE";
|
|
2333
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE_ERROR"] = 3] = "CHARGE_STATUS_CHARGE_ERROR";
|
|
2334
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2335
|
+
})(SurfaceUnitBatteryInfo_ChargeStatus || (exports.SurfaceUnitBatteryInfo_ChargeStatus = SurfaceUnitBatteryInfo_ChargeStatus = {}));
|
|
2336
|
+
function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object) {
|
|
2337
|
+
switch (object) {
|
|
2338
|
+
case 0:
|
|
2339
|
+
case "CHARGE_STATUS_UNSPECIFIED":
|
|
2340
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED;
|
|
2341
|
+
case 1:
|
|
2342
|
+
case "CHARGE_STATUS_DISCHARGE":
|
|
2343
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE;
|
|
2344
|
+
case 2:
|
|
2345
|
+
case "CHARGE_STATUS_CHARGE":
|
|
2346
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE;
|
|
2347
|
+
case 3:
|
|
2348
|
+
case "CHARGE_STATUS_CHARGE_ERROR":
|
|
2349
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR;
|
|
2350
|
+
case -1:
|
|
2351
|
+
case "UNRECOGNIZED":
|
|
2352
|
+
default:
|
|
2353
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED;
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
2357
|
+
switch (object) {
|
|
2358
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED:
|
|
2359
|
+
return "CHARGE_STATUS_UNSPECIFIED";
|
|
2360
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE:
|
|
2361
|
+
return "CHARGE_STATUS_DISCHARGE";
|
|
2362
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE:
|
|
2363
|
+
return "CHARGE_STATUS_CHARGE";
|
|
2364
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR:
|
|
2365
|
+
return "CHARGE_STATUS_CHARGE_ERROR";
|
|
2366
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED:
|
|
2367
|
+
default:
|
|
2368
|
+
return "UNRECOGNIZED";
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2018
2371
|
function createBaseBinlogRecord() {
|
|
2019
2372
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2020
2373
|
}
|
|
@@ -2049,14 +2402,347 @@ exports.BinlogRecord = {
|
|
|
2049
2402
|
if (tag !== 18) {
|
|
2050
2403
|
break;
|
|
2051
2404
|
}
|
|
2052
|
-
message.unixTimestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2405
|
+
message.unixTimestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2406
|
+
continue;
|
|
2407
|
+
}
|
|
2408
|
+
case 3: {
|
|
2409
|
+
if (tag !== 26) {
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
message.clockMonotonic = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2413
|
+
continue;
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
reader.skip(tag & 7);
|
|
2420
|
+
}
|
|
2421
|
+
return message;
|
|
2422
|
+
},
|
|
2423
|
+
fromJSON(object) {
|
|
2424
|
+
return {
|
|
2425
|
+
payload: isSet(object.payload) ? any_1.Any.fromJSON(object.payload) : undefined,
|
|
2426
|
+
unixTimestamp: isSet(object.unixTimestamp) ? fromJsonTimestamp(object.unixTimestamp) : undefined,
|
|
2427
|
+
clockMonotonic: isSet(object.clockMonotonic) ? fromJsonTimestamp(object.clockMonotonic) : undefined,
|
|
2428
|
+
};
|
|
2429
|
+
},
|
|
2430
|
+
toJSON(message) {
|
|
2431
|
+
const obj = {};
|
|
2432
|
+
if (message.payload !== undefined) {
|
|
2433
|
+
obj.payload = any_1.Any.toJSON(message.payload);
|
|
2434
|
+
}
|
|
2435
|
+
if (message.unixTimestamp !== undefined) {
|
|
2436
|
+
obj.unixTimestamp = message.unixTimestamp.toISOString();
|
|
2437
|
+
}
|
|
2438
|
+
if (message.clockMonotonic !== undefined) {
|
|
2439
|
+
obj.clockMonotonic = message.clockMonotonic.toISOString();
|
|
2440
|
+
}
|
|
2441
|
+
return obj;
|
|
2442
|
+
},
|
|
2443
|
+
create(base) {
|
|
2444
|
+
return exports.BinlogRecord.fromPartial(base ?? {});
|
|
2445
|
+
},
|
|
2446
|
+
fromPartial(object) {
|
|
2447
|
+
const message = createBaseBinlogRecord();
|
|
2448
|
+
message.payload = (object.payload !== undefined && object.payload !== null)
|
|
2449
|
+
? any_1.Any.fromPartial(object.payload)
|
|
2450
|
+
: undefined;
|
|
2451
|
+
message.unixTimestamp = object.unixTimestamp ?? undefined;
|
|
2452
|
+
message.clockMonotonic = object.clockMonotonic ?? undefined;
|
|
2453
|
+
return message;
|
|
2454
|
+
},
|
|
2455
|
+
};
|
|
2456
|
+
function createBaseLogEntry() {
|
|
2457
|
+
return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
|
|
2458
|
+
}
|
|
2459
|
+
exports.LogEntry = {
|
|
2460
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2461
|
+
if (message.timestamp !== undefined) {
|
|
2462
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
2463
|
+
}
|
|
2464
|
+
if (message.processName !== "") {
|
|
2465
|
+
writer.uint32(18).string(message.processName);
|
|
2466
|
+
}
|
|
2467
|
+
if (message.processId !== 0) {
|
|
2468
|
+
writer.uint32(24).uint64(message.processId);
|
|
2469
|
+
}
|
|
2470
|
+
if (message.threadId !== 0) {
|
|
2471
|
+
writer.uint32(32).uint64(message.threadId);
|
|
2472
|
+
}
|
|
2473
|
+
if (message.source !== "") {
|
|
2474
|
+
writer.uint32(42).string(message.source);
|
|
2475
|
+
}
|
|
2476
|
+
if (message.level !== 0) {
|
|
2477
|
+
writer.uint32(48).int32(message.level);
|
|
2478
|
+
}
|
|
2479
|
+
if (message.message !== "") {
|
|
2480
|
+
writer.uint32(58).string(message.message);
|
|
2481
|
+
}
|
|
2482
|
+
return writer;
|
|
2483
|
+
},
|
|
2484
|
+
decode(input, length) {
|
|
2485
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2486
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2487
|
+
const message = createBaseLogEntry();
|
|
2488
|
+
while (reader.pos < end) {
|
|
2489
|
+
const tag = reader.uint32();
|
|
2490
|
+
switch (tag >>> 3) {
|
|
2491
|
+
case 1: {
|
|
2492
|
+
if (tag !== 10) {
|
|
2493
|
+
break;
|
|
2494
|
+
}
|
|
2495
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2496
|
+
continue;
|
|
2497
|
+
}
|
|
2498
|
+
case 2: {
|
|
2499
|
+
if (tag !== 18) {
|
|
2500
|
+
break;
|
|
2501
|
+
}
|
|
2502
|
+
message.processName = reader.string();
|
|
2503
|
+
continue;
|
|
2504
|
+
}
|
|
2505
|
+
case 3: {
|
|
2506
|
+
if (tag !== 24) {
|
|
2507
|
+
break;
|
|
2508
|
+
}
|
|
2509
|
+
message.processId = longToNumber(reader.uint64());
|
|
2510
|
+
continue;
|
|
2511
|
+
}
|
|
2512
|
+
case 4: {
|
|
2513
|
+
if (tag !== 32) {
|
|
2514
|
+
break;
|
|
2515
|
+
}
|
|
2516
|
+
message.threadId = longToNumber(reader.uint64());
|
|
2517
|
+
continue;
|
|
2518
|
+
}
|
|
2519
|
+
case 5: {
|
|
2520
|
+
if (tag !== 42) {
|
|
2521
|
+
break;
|
|
2522
|
+
}
|
|
2523
|
+
message.source = reader.string();
|
|
2524
|
+
continue;
|
|
2525
|
+
}
|
|
2526
|
+
case 6: {
|
|
2527
|
+
if (tag !== 48) {
|
|
2528
|
+
break;
|
|
2529
|
+
}
|
|
2530
|
+
message.level = reader.int32();
|
|
2531
|
+
continue;
|
|
2532
|
+
}
|
|
2533
|
+
case 7: {
|
|
2534
|
+
if (tag !== 58) {
|
|
2535
|
+
break;
|
|
2536
|
+
}
|
|
2537
|
+
message.message = reader.string();
|
|
2538
|
+
continue;
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
reader.skip(tag & 7);
|
|
2545
|
+
}
|
|
2546
|
+
return message;
|
|
2547
|
+
},
|
|
2548
|
+
fromJSON(object) {
|
|
2549
|
+
return {
|
|
2550
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2551
|
+
processName: isSet(object.processName) ? gt.String(object.processName) : "",
|
|
2552
|
+
processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
|
|
2553
|
+
threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
|
|
2554
|
+
source: isSet(object.source) ? gt.String(object.source) : "",
|
|
2555
|
+
level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
|
|
2556
|
+
message: isSet(object.message) ? gt.String(object.message) : "",
|
|
2557
|
+
};
|
|
2558
|
+
},
|
|
2559
|
+
toJSON(message) {
|
|
2560
|
+
const obj = {};
|
|
2561
|
+
if (message.timestamp !== undefined) {
|
|
2562
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2563
|
+
}
|
|
2564
|
+
if (message.processName !== "") {
|
|
2565
|
+
obj.processName = message.processName;
|
|
2566
|
+
}
|
|
2567
|
+
if (message.processId !== 0) {
|
|
2568
|
+
obj.processId = Math.round(message.processId);
|
|
2569
|
+
}
|
|
2570
|
+
if (message.threadId !== 0) {
|
|
2571
|
+
obj.threadId = Math.round(message.threadId);
|
|
2572
|
+
}
|
|
2573
|
+
if (message.source !== "") {
|
|
2574
|
+
obj.source = message.source;
|
|
2575
|
+
}
|
|
2576
|
+
if (message.level !== 0) {
|
|
2577
|
+
obj.level = logEntry_LogLevelToJSON(message.level);
|
|
2578
|
+
}
|
|
2579
|
+
if (message.message !== "") {
|
|
2580
|
+
obj.message = message.message;
|
|
2581
|
+
}
|
|
2582
|
+
return obj;
|
|
2583
|
+
},
|
|
2584
|
+
create(base) {
|
|
2585
|
+
return exports.LogEntry.fromPartial(base ?? {});
|
|
2586
|
+
},
|
|
2587
|
+
fromPartial(object) {
|
|
2588
|
+
const message = createBaseLogEntry();
|
|
2589
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2590
|
+
message.processName = object.processName ?? "";
|
|
2591
|
+
message.processId = object.processId ?? 0;
|
|
2592
|
+
message.threadId = object.threadId ?? 0;
|
|
2593
|
+
message.source = object.source ?? "";
|
|
2594
|
+
message.level = object.level ?? 0;
|
|
2595
|
+
message.message = object.message ?? "";
|
|
2596
|
+
return message;
|
|
2597
|
+
},
|
|
2598
|
+
};
|
|
2599
|
+
function createBaseKernelLogEntry() {
|
|
2600
|
+
return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
|
|
2601
|
+
}
|
|
2602
|
+
exports.KernelLogEntry = {
|
|
2603
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2604
|
+
if (message.level !== 0) {
|
|
2605
|
+
writer.uint32(8).int32(message.level);
|
|
2606
|
+
}
|
|
2607
|
+
if (message.seqnum !== 0) {
|
|
2608
|
+
writer.uint32(16).uint32(message.seqnum);
|
|
2609
|
+
}
|
|
2610
|
+
if (message.timestamp !== undefined) {
|
|
2611
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
|
|
2612
|
+
}
|
|
2613
|
+
for (const v of message.messages) {
|
|
2614
|
+
writer.uint32(34).string(v);
|
|
2615
|
+
}
|
|
2616
|
+
for (const v of message.fields) {
|
|
2617
|
+
exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
|
|
2618
|
+
}
|
|
2619
|
+
return writer;
|
|
2620
|
+
},
|
|
2621
|
+
decode(input, length) {
|
|
2622
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2623
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2624
|
+
const message = createBaseKernelLogEntry();
|
|
2625
|
+
while (reader.pos < end) {
|
|
2626
|
+
const tag = reader.uint32();
|
|
2627
|
+
switch (tag >>> 3) {
|
|
2628
|
+
case 1: {
|
|
2629
|
+
if (tag !== 8) {
|
|
2630
|
+
break;
|
|
2631
|
+
}
|
|
2632
|
+
message.level = reader.int32();
|
|
2633
|
+
continue;
|
|
2634
|
+
}
|
|
2635
|
+
case 2: {
|
|
2636
|
+
if (tag !== 16) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.seqnum = reader.uint32();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
case 3: {
|
|
2643
|
+
if (tag !== 26) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 4: {
|
|
2650
|
+
if (tag !== 34) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.messages.push(reader.string());
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
case 5: {
|
|
2657
|
+
if (tag !== 42) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
|
|
2661
|
+
continue;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
reader.skip(tag & 7);
|
|
2668
|
+
}
|
|
2669
|
+
return message;
|
|
2670
|
+
},
|
|
2671
|
+
fromJSON(object) {
|
|
2672
|
+
return {
|
|
2673
|
+
level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
|
|
2674
|
+
seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
|
|
2675
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2676
|
+
messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
|
|
2677
|
+
fields: gt.Array.isArray(object?.fields)
|
|
2678
|
+
? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
|
|
2679
|
+
: [],
|
|
2680
|
+
};
|
|
2681
|
+
},
|
|
2682
|
+
toJSON(message) {
|
|
2683
|
+
const obj = {};
|
|
2684
|
+
if (message.level !== 0) {
|
|
2685
|
+
obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
|
|
2686
|
+
}
|
|
2687
|
+
if (message.seqnum !== 0) {
|
|
2688
|
+
obj.seqnum = Math.round(message.seqnum);
|
|
2689
|
+
}
|
|
2690
|
+
if (message.timestamp !== undefined) {
|
|
2691
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2692
|
+
}
|
|
2693
|
+
if (message.messages?.length) {
|
|
2694
|
+
obj.messages = message.messages;
|
|
2695
|
+
}
|
|
2696
|
+
if (message.fields?.length) {
|
|
2697
|
+
obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
|
|
2698
|
+
}
|
|
2699
|
+
return obj;
|
|
2700
|
+
},
|
|
2701
|
+
create(base) {
|
|
2702
|
+
return exports.KernelLogEntry.fromPartial(base ?? {});
|
|
2703
|
+
},
|
|
2704
|
+
fromPartial(object) {
|
|
2705
|
+
const message = createBaseKernelLogEntry();
|
|
2706
|
+
message.level = object.level ?? 0;
|
|
2707
|
+
message.seqnum = object.seqnum ?? 0;
|
|
2708
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2709
|
+
message.messages = object.messages?.map((e) => e) || [];
|
|
2710
|
+
message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
|
|
2711
|
+
return message;
|
|
2712
|
+
},
|
|
2713
|
+
};
|
|
2714
|
+
function createBaseKernelLogEntry_KeyValuePair() {
|
|
2715
|
+
return { key: "", value: "" };
|
|
2716
|
+
}
|
|
2717
|
+
exports.KernelLogEntry_KeyValuePair = {
|
|
2718
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2719
|
+
if (message.key !== "") {
|
|
2720
|
+
writer.uint32(10).string(message.key);
|
|
2721
|
+
}
|
|
2722
|
+
if (message.value !== "") {
|
|
2723
|
+
writer.uint32(18).string(message.value);
|
|
2724
|
+
}
|
|
2725
|
+
return writer;
|
|
2726
|
+
},
|
|
2727
|
+
decode(input, length) {
|
|
2728
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2729
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2730
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2731
|
+
while (reader.pos < end) {
|
|
2732
|
+
const tag = reader.uint32();
|
|
2733
|
+
switch (tag >>> 3) {
|
|
2734
|
+
case 1: {
|
|
2735
|
+
if (tag !== 10) {
|
|
2736
|
+
break;
|
|
2737
|
+
}
|
|
2738
|
+
message.key = reader.string();
|
|
2053
2739
|
continue;
|
|
2054
2740
|
}
|
|
2055
|
-
case
|
|
2056
|
-
if (tag !==
|
|
2741
|
+
case 2: {
|
|
2742
|
+
if (tag !== 18) {
|
|
2057
2743
|
break;
|
|
2058
2744
|
}
|
|
2059
|
-
message.
|
|
2745
|
+
message.value = reader.string();
|
|
2060
2746
|
continue;
|
|
2061
2747
|
}
|
|
2062
2748
|
}
|
|
@@ -2069,34 +2755,27 @@ exports.BinlogRecord = {
|
|
|
2069
2755
|
},
|
|
2070
2756
|
fromJSON(object) {
|
|
2071
2757
|
return {
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
clockMonotonic: isSet(object.clockMonotonic) ? fromJsonTimestamp(object.clockMonotonic) : undefined,
|
|
2758
|
+
key: isSet(object.key) ? gt.String(object.key) : "",
|
|
2759
|
+
value: isSet(object.value) ? gt.String(object.value) : "",
|
|
2075
2760
|
};
|
|
2076
2761
|
},
|
|
2077
2762
|
toJSON(message) {
|
|
2078
2763
|
const obj = {};
|
|
2079
|
-
if (message.
|
|
2080
|
-
obj.
|
|
2081
|
-
}
|
|
2082
|
-
if (message.unixTimestamp !== undefined) {
|
|
2083
|
-
obj.unixTimestamp = message.unixTimestamp.toISOString();
|
|
2764
|
+
if (message.key !== "") {
|
|
2765
|
+
obj.key = message.key;
|
|
2084
2766
|
}
|
|
2085
|
-
if (message.
|
|
2086
|
-
obj.
|
|
2767
|
+
if (message.value !== "") {
|
|
2768
|
+
obj.value = message.value;
|
|
2087
2769
|
}
|
|
2088
2770
|
return obj;
|
|
2089
2771
|
},
|
|
2090
2772
|
create(base) {
|
|
2091
|
-
return exports.
|
|
2773
|
+
return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
|
|
2092
2774
|
},
|
|
2093
2775
|
fromPartial(object) {
|
|
2094
|
-
const message =
|
|
2095
|
-
message.
|
|
2096
|
-
|
|
2097
|
-
: undefined;
|
|
2098
|
-
message.unixTimestamp = object.unixTimestamp ?? undefined;
|
|
2099
|
-
message.clockMonotonic = object.clockMonotonic ?? undefined;
|
|
2776
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2777
|
+
message.key = object.key ?? "";
|
|
2778
|
+
message.value = object.value ?? "";
|
|
2100
2779
|
return message;
|
|
2101
2780
|
},
|
|
2102
2781
|
};
|
|
@@ -3381,6 +4060,7 @@ function createBaseRecordState() {
|
|
|
3381
4060
|
multibeamIsRecording: false,
|
|
3382
4061
|
multibeamSeconds: 0,
|
|
3383
4062
|
multibeamFps: 0,
|
|
4063
|
+
storageLocation: 0,
|
|
3384
4064
|
};
|
|
3385
4065
|
}
|
|
3386
4066
|
exports.RecordState = {
|
|
@@ -3412,6 +4092,9 @@ exports.RecordState = {
|
|
|
3412
4092
|
if (message.multibeamFps !== 0) {
|
|
3413
4093
|
writer.uint32(77).float(message.multibeamFps);
|
|
3414
4094
|
}
|
|
4095
|
+
if (message.storageLocation !== 0) {
|
|
4096
|
+
writer.uint32(80).int32(message.storageLocation);
|
|
4097
|
+
}
|
|
3415
4098
|
return writer;
|
|
3416
4099
|
},
|
|
3417
4100
|
decode(input, length) {
|
|
@@ -3484,6 +4167,13 @@ exports.RecordState = {
|
|
|
3484
4167
|
message.multibeamFps = reader.float();
|
|
3485
4168
|
continue;
|
|
3486
4169
|
}
|
|
4170
|
+
case 10: {
|
|
4171
|
+
if (tag !== 80) {
|
|
4172
|
+
break;
|
|
4173
|
+
}
|
|
4174
|
+
message.storageLocation = reader.int32();
|
|
4175
|
+
continue;
|
|
4176
|
+
}
|
|
3487
4177
|
}
|
|
3488
4178
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3489
4179
|
break;
|
|
@@ -3503,6 +4193,7 @@ exports.RecordState = {
|
|
|
3503
4193
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3504
4194
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3505
4195
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4196
|
+
storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
|
|
3506
4197
|
};
|
|
3507
4198
|
},
|
|
3508
4199
|
toJSON(message) {
|
|
@@ -3534,6 +4225,9 @@ exports.RecordState = {
|
|
|
3534
4225
|
if (message.multibeamFps !== 0) {
|
|
3535
4226
|
obj.multibeamFps = message.multibeamFps;
|
|
3536
4227
|
}
|
|
4228
|
+
if (message.storageLocation !== 0) {
|
|
4229
|
+
obj.storageLocation = storageLocationToJSON(message.storageLocation);
|
|
4230
|
+
}
|
|
3537
4231
|
return obj;
|
|
3538
4232
|
},
|
|
3539
4233
|
create(base) {
|
|
@@ -3550,6 +4244,7 @@ exports.RecordState = {
|
|
|
3550
4244
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3551
4245
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3552
4246
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4247
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
3553
4248
|
return message;
|
|
3554
4249
|
},
|
|
3555
4250
|
};
|
|
@@ -7388,38 +8083,385 @@ exports.RecordOn = {
|
|
|
7388
8083
|
return message;
|
|
7389
8084
|
},
|
|
7390
8085
|
};
|
|
7391
|
-
function createBaseStorageSpace() {
|
|
7392
|
-
return { totalSpace: 0, freeSpace: 0 };
|
|
8086
|
+
function createBaseStorageSpace() {
|
|
8087
|
+
return { totalSpace: 0, freeSpace: 0 };
|
|
8088
|
+
}
|
|
8089
|
+
exports.StorageSpace = {
|
|
8090
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8091
|
+
if (message.totalSpace !== 0) {
|
|
8092
|
+
writer.uint32(8).int64(message.totalSpace);
|
|
8093
|
+
}
|
|
8094
|
+
if (message.freeSpace !== 0) {
|
|
8095
|
+
writer.uint32(16).int64(message.freeSpace);
|
|
8096
|
+
}
|
|
8097
|
+
return writer;
|
|
8098
|
+
},
|
|
8099
|
+
decode(input, length) {
|
|
8100
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8101
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8102
|
+
const message = createBaseStorageSpace();
|
|
8103
|
+
while (reader.pos < end) {
|
|
8104
|
+
const tag = reader.uint32();
|
|
8105
|
+
switch (tag >>> 3) {
|
|
8106
|
+
case 1: {
|
|
8107
|
+
if (tag !== 8) {
|
|
8108
|
+
break;
|
|
8109
|
+
}
|
|
8110
|
+
message.totalSpace = longToNumber(reader.int64());
|
|
8111
|
+
continue;
|
|
8112
|
+
}
|
|
8113
|
+
case 2: {
|
|
8114
|
+
if (tag !== 16) {
|
|
8115
|
+
break;
|
|
8116
|
+
}
|
|
8117
|
+
message.freeSpace = longToNumber(reader.int64());
|
|
8118
|
+
continue;
|
|
8119
|
+
}
|
|
8120
|
+
}
|
|
8121
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8122
|
+
break;
|
|
8123
|
+
}
|
|
8124
|
+
reader.skip(tag & 7);
|
|
8125
|
+
}
|
|
8126
|
+
return message;
|
|
8127
|
+
},
|
|
8128
|
+
fromJSON(object) {
|
|
8129
|
+
return {
|
|
8130
|
+
totalSpace: isSet(object.totalSpace) ? gt.Number(object.totalSpace) : 0,
|
|
8131
|
+
freeSpace: isSet(object.freeSpace) ? gt.Number(object.freeSpace) : 0,
|
|
8132
|
+
};
|
|
8133
|
+
},
|
|
8134
|
+
toJSON(message) {
|
|
8135
|
+
const obj = {};
|
|
8136
|
+
if (message.totalSpace !== 0) {
|
|
8137
|
+
obj.totalSpace = Math.round(message.totalSpace);
|
|
8138
|
+
}
|
|
8139
|
+
if (message.freeSpace !== 0) {
|
|
8140
|
+
obj.freeSpace = Math.round(message.freeSpace);
|
|
8141
|
+
}
|
|
8142
|
+
return obj;
|
|
8143
|
+
},
|
|
8144
|
+
create(base) {
|
|
8145
|
+
return exports.StorageSpace.fromPartial(base ?? {});
|
|
8146
|
+
},
|
|
8147
|
+
fromPartial(object) {
|
|
8148
|
+
const message = createBaseStorageSpace();
|
|
8149
|
+
message.totalSpace = object.totalSpace ?? 0;
|
|
8150
|
+
message.freeSpace = object.freeSpace ?? 0;
|
|
8151
|
+
return message;
|
|
8152
|
+
},
|
|
8153
|
+
};
|
|
8154
|
+
function createBaseStoragePartition() {
|
|
8155
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
8156
|
+
}
|
|
8157
|
+
exports.StoragePartition = {
|
|
8158
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8159
|
+
if (message.storageSpace !== undefined) {
|
|
8160
|
+
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
8161
|
+
}
|
|
8162
|
+
if (message.fileSystemType !== "") {
|
|
8163
|
+
writer.uint32(18).string(message.fileSystemType);
|
|
8164
|
+
}
|
|
8165
|
+
if (message.devicePath !== "") {
|
|
8166
|
+
writer.uint32(26).string(message.devicePath);
|
|
8167
|
+
}
|
|
8168
|
+
if (message.mountPath !== "") {
|
|
8169
|
+
writer.uint32(34).string(message.mountPath);
|
|
8170
|
+
}
|
|
8171
|
+
return writer;
|
|
8172
|
+
},
|
|
8173
|
+
decode(input, length) {
|
|
8174
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8175
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8176
|
+
const message = createBaseStoragePartition();
|
|
8177
|
+
while (reader.pos < end) {
|
|
8178
|
+
const tag = reader.uint32();
|
|
8179
|
+
switch (tag >>> 3) {
|
|
8180
|
+
case 1: {
|
|
8181
|
+
if (tag !== 10) {
|
|
8182
|
+
break;
|
|
8183
|
+
}
|
|
8184
|
+
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
8185
|
+
continue;
|
|
8186
|
+
}
|
|
8187
|
+
case 2: {
|
|
8188
|
+
if (tag !== 18) {
|
|
8189
|
+
break;
|
|
8190
|
+
}
|
|
8191
|
+
message.fileSystemType = reader.string();
|
|
8192
|
+
continue;
|
|
8193
|
+
}
|
|
8194
|
+
case 3: {
|
|
8195
|
+
if (tag !== 26) {
|
|
8196
|
+
break;
|
|
8197
|
+
}
|
|
8198
|
+
message.devicePath = reader.string();
|
|
8199
|
+
continue;
|
|
8200
|
+
}
|
|
8201
|
+
case 4: {
|
|
8202
|
+
if (tag !== 34) {
|
|
8203
|
+
break;
|
|
8204
|
+
}
|
|
8205
|
+
message.mountPath = reader.string();
|
|
8206
|
+
continue;
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8210
|
+
break;
|
|
8211
|
+
}
|
|
8212
|
+
reader.skip(tag & 7);
|
|
8213
|
+
}
|
|
8214
|
+
return message;
|
|
8215
|
+
},
|
|
8216
|
+
fromJSON(object) {
|
|
8217
|
+
return {
|
|
8218
|
+
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
8219
|
+
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
8220
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8221
|
+
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
8222
|
+
};
|
|
8223
|
+
},
|
|
8224
|
+
toJSON(message) {
|
|
8225
|
+
const obj = {};
|
|
8226
|
+
if (message.storageSpace !== undefined) {
|
|
8227
|
+
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
8228
|
+
}
|
|
8229
|
+
if (message.fileSystemType !== "") {
|
|
8230
|
+
obj.fileSystemType = message.fileSystemType;
|
|
8231
|
+
}
|
|
8232
|
+
if (message.devicePath !== "") {
|
|
8233
|
+
obj.devicePath = message.devicePath;
|
|
8234
|
+
}
|
|
8235
|
+
if (message.mountPath !== "") {
|
|
8236
|
+
obj.mountPath = message.mountPath;
|
|
8237
|
+
}
|
|
8238
|
+
return obj;
|
|
8239
|
+
},
|
|
8240
|
+
create(base) {
|
|
8241
|
+
return exports.StoragePartition.fromPartial(base ?? {});
|
|
8242
|
+
},
|
|
8243
|
+
fromPartial(object) {
|
|
8244
|
+
const message = createBaseStoragePartition();
|
|
8245
|
+
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
8246
|
+
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
8247
|
+
: undefined;
|
|
8248
|
+
message.fileSystemType = object.fileSystemType ?? "";
|
|
8249
|
+
message.devicePath = object.devicePath ?? "";
|
|
8250
|
+
message.mountPath = object.mountPath ?? "";
|
|
8251
|
+
return message;
|
|
8252
|
+
},
|
|
8253
|
+
};
|
|
8254
|
+
function createBaseRemovableStorageDevice() {
|
|
8255
|
+
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
8256
|
+
}
|
|
8257
|
+
exports.RemovableStorageDevice = {
|
|
8258
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8259
|
+
if (message.vendorName !== "") {
|
|
8260
|
+
writer.uint32(10).string(message.vendorName);
|
|
8261
|
+
}
|
|
8262
|
+
if (message.modelName !== "") {
|
|
8263
|
+
writer.uint32(18).string(message.modelName);
|
|
8264
|
+
}
|
|
8265
|
+
if (message.devicePath !== "") {
|
|
8266
|
+
writer.uint32(26).string(message.devicePath);
|
|
8267
|
+
}
|
|
8268
|
+
if (message.status !== 0) {
|
|
8269
|
+
writer.uint32(32).int32(message.status);
|
|
8270
|
+
}
|
|
8271
|
+
if (message.errorFlags !== undefined) {
|
|
8272
|
+
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
8273
|
+
}
|
|
8274
|
+
for (const v of message.partitions) {
|
|
8275
|
+
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
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 = createBaseRemovableStorageDevice();
|
|
8283
|
+
while (reader.pos < end) {
|
|
8284
|
+
const tag = reader.uint32();
|
|
8285
|
+
switch (tag >>> 3) {
|
|
8286
|
+
case 1: {
|
|
8287
|
+
if (tag !== 10) {
|
|
8288
|
+
break;
|
|
8289
|
+
}
|
|
8290
|
+
message.vendorName = reader.string();
|
|
8291
|
+
continue;
|
|
8292
|
+
}
|
|
8293
|
+
case 2: {
|
|
8294
|
+
if (tag !== 18) {
|
|
8295
|
+
break;
|
|
8296
|
+
}
|
|
8297
|
+
message.modelName = reader.string();
|
|
8298
|
+
continue;
|
|
8299
|
+
}
|
|
8300
|
+
case 3: {
|
|
8301
|
+
if (tag !== 26) {
|
|
8302
|
+
break;
|
|
8303
|
+
}
|
|
8304
|
+
message.devicePath = reader.string();
|
|
8305
|
+
continue;
|
|
8306
|
+
}
|
|
8307
|
+
case 4: {
|
|
8308
|
+
if (tag !== 32) {
|
|
8309
|
+
break;
|
|
8310
|
+
}
|
|
8311
|
+
message.status = reader.int32();
|
|
8312
|
+
continue;
|
|
8313
|
+
}
|
|
8314
|
+
case 5: {
|
|
8315
|
+
if (tag !== 42) {
|
|
8316
|
+
break;
|
|
8317
|
+
}
|
|
8318
|
+
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
8319
|
+
continue;
|
|
8320
|
+
}
|
|
8321
|
+
case 6: {
|
|
8322
|
+
if (tag !== 50) {
|
|
8323
|
+
break;
|
|
8324
|
+
}
|
|
8325
|
+
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
8326
|
+
continue;
|
|
8327
|
+
}
|
|
8328
|
+
}
|
|
8329
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8330
|
+
break;
|
|
8331
|
+
}
|
|
8332
|
+
reader.skip(tag & 7);
|
|
8333
|
+
}
|
|
8334
|
+
return message;
|
|
8335
|
+
},
|
|
8336
|
+
fromJSON(object) {
|
|
8337
|
+
return {
|
|
8338
|
+
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
8339
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
8340
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8341
|
+
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
8342
|
+
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
8343
|
+
partitions: gt.Array.isArray(object?.partitions)
|
|
8344
|
+
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
8345
|
+
: [],
|
|
8346
|
+
};
|
|
8347
|
+
},
|
|
8348
|
+
toJSON(message) {
|
|
8349
|
+
const obj = {};
|
|
8350
|
+
if (message.vendorName !== "") {
|
|
8351
|
+
obj.vendorName = message.vendorName;
|
|
8352
|
+
}
|
|
8353
|
+
if (message.modelName !== "") {
|
|
8354
|
+
obj.modelName = message.modelName;
|
|
8355
|
+
}
|
|
8356
|
+
if (message.devicePath !== "") {
|
|
8357
|
+
obj.devicePath = message.devicePath;
|
|
8358
|
+
}
|
|
8359
|
+
if (message.status !== 0) {
|
|
8360
|
+
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
8361
|
+
}
|
|
8362
|
+
if (message.errorFlags !== undefined) {
|
|
8363
|
+
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
8364
|
+
}
|
|
8365
|
+
if (message.partitions?.length) {
|
|
8366
|
+
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
8367
|
+
}
|
|
8368
|
+
return obj;
|
|
8369
|
+
},
|
|
8370
|
+
create(base) {
|
|
8371
|
+
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
8372
|
+
},
|
|
8373
|
+
fromPartial(object) {
|
|
8374
|
+
const message = createBaseRemovableStorageDevice();
|
|
8375
|
+
message.vendorName = object.vendorName ?? "";
|
|
8376
|
+
message.modelName = object.modelName ?? "";
|
|
8377
|
+
message.devicePath = object.devicePath ?? "";
|
|
8378
|
+
message.status = object.status ?? 0;
|
|
8379
|
+
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
8380
|
+
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
8381
|
+
: undefined;
|
|
8382
|
+
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
8383
|
+
return message;
|
|
8384
|
+
},
|
|
8385
|
+
};
|
|
8386
|
+
function createBaseRemovableStorageErrorFlags() {
|
|
8387
|
+
return {
|
|
8388
|
+
errorMessage: "",
|
|
8389
|
+
noPartitionsFound: false,
|
|
8390
|
+
multiplePartitionsFound: false,
|
|
8391
|
+
wrongFileSystemFound: false,
|
|
8392
|
+
deviceIsReadOnly: false,
|
|
8393
|
+
formattingFailed: false,
|
|
8394
|
+
};
|
|
7393
8395
|
}
|
|
7394
|
-
exports.
|
|
8396
|
+
exports.RemovableStorageErrorFlags = {
|
|
7395
8397
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7396
|
-
if (message.
|
|
7397
|
-
writer.uint32(
|
|
8398
|
+
if (message.errorMessage !== "") {
|
|
8399
|
+
writer.uint32(10).string(message.errorMessage);
|
|
7398
8400
|
}
|
|
7399
|
-
if (message.
|
|
7400
|
-
writer.uint32(16).
|
|
8401
|
+
if (message.noPartitionsFound !== false) {
|
|
8402
|
+
writer.uint32(16).bool(message.noPartitionsFound);
|
|
8403
|
+
}
|
|
8404
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8405
|
+
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
8406
|
+
}
|
|
8407
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8408
|
+
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
8409
|
+
}
|
|
8410
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8411
|
+
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
8412
|
+
}
|
|
8413
|
+
if (message.formattingFailed !== false) {
|
|
8414
|
+
writer.uint32(48).bool(message.formattingFailed);
|
|
7401
8415
|
}
|
|
7402
8416
|
return writer;
|
|
7403
8417
|
},
|
|
7404
8418
|
decode(input, length) {
|
|
7405
8419
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7406
8420
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7407
|
-
const message =
|
|
8421
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
7408
8422
|
while (reader.pos < end) {
|
|
7409
8423
|
const tag = reader.uint32();
|
|
7410
8424
|
switch (tag >>> 3) {
|
|
7411
8425
|
case 1: {
|
|
7412
|
-
if (tag !==
|
|
8426
|
+
if (tag !== 10) {
|
|
7413
8427
|
break;
|
|
7414
8428
|
}
|
|
7415
|
-
message.
|
|
8429
|
+
message.errorMessage = reader.string();
|
|
7416
8430
|
continue;
|
|
7417
8431
|
}
|
|
7418
8432
|
case 2: {
|
|
7419
8433
|
if (tag !== 16) {
|
|
7420
8434
|
break;
|
|
7421
8435
|
}
|
|
7422
|
-
message.
|
|
8436
|
+
message.noPartitionsFound = reader.bool();
|
|
8437
|
+
continue;
|
|
8438
|
+
}
|
|
8439
|
+
case 3: {
|
|
8440
|
+
if (tag !== 24) {
|
|
8441
|
+
break;
|
|
8442
|
+
}
|
|
8443
|
+
message.multiplePartitionsFound = reader.bool();
|
|
8444
|
+
continue;
|
|
8445
|
+
}
|
|
8446
|
+
case 4: {
|
|
8447
|
+
if (tag !== 32) {
|
|
8448
|
+
break;
|
|
8449
|
+
}
|
|
8450
|
+
message.wrongFileSystemFound = reader.bool();
|
|
8451
|
+
continue;
|
|
8452
|
+
}
|
|
8453
|
+
case 5: {
|
|
8454
|
+
if (tag !== 40) {
|
|
8455
|
+
break;
|
|
8456
|
+
}
|
|
8457
|
+
message.deviceIsReadOnly = reader.bool();
|
|
8458
|
+
continue;
|
|
8459
|
+
}
|
|
8460
|
+
case 6: {
|
|
8461
|
+
if (tag !== 48) {
|
|
8462
|
+
break;
|
|
8463
|
+
}
|
|
8464
|
+
message.formattingFailed = reader.bool();
|
|
7423
8465
|
continue;
|
|
7424
8466
|
}
|
|
7425
8467
|
}
|
|
@@ -7432,27 +8474,49 @@ exports.StorageSpace = {
|
|
|
7432
8474
|
},
|
|
7433
8475
|
fromJSON(object) {
|
|
7434
8476
|
return {
|
|
7435
|
-
|
|
7436
|
-
|
|
8477
|
+
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
8478
|
+
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
8479
|
+
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
8480
|
+
? gt.Boolean(object.multiplePartitionsFound)
|
|
8481
|
+
: false,
|
|
8482
|
+
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
8483
|
+
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
8484
|
+
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
7437
8485
|
};
|
|
7438
8486
|
},
|
|
7439
8487
|
toJSON(message) {
|
|
7440
8488
|
const obj = {};
|
|
7441
|
-
if (message.
|
|
7442
|
-
obj.
|
|
8489
|
+
if (message.errorMessage !== "") {
|
|
8490
|
+
obj.errorMessage = message.errorMessage;
|
|
7443
8491
|
}
|
|
7444
|
-
if (message.
|
|
7445
|
-
obj.
|
|
8492
|
+
if (message.noPartitionsFound !== false) {
|
|
8493
|
+
obj.noPartitionsFound = message.noPartitionsFound;
|
|
8494
|
+
}
|
|
8495
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8496
|
+
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
8497
|
+
}
|
|
8498
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8499
|
+
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
8500
|
+
}
|
|
8501
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8502
|
+
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
8503
|
+
}
|
|
8504
|
+
if (message.formattingFailed !== false) {
|
|
8505
|
+
obj.formattingFailed = message.formattingFailed;
|
|
7446
8506
|
}
|
|
7447
8507
|
return obj;
|
|
7448
8508
|
},
|
|
7449
8509
|
create(base) {
|
|
7450
|
-
return exports.
|
|
8510
|
+
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
7451
8511
|
},
|
|
7452
8512
|
fromPartial(object) {
|
|
7453
|
-
const message =
|
|
7454
|
-
message.
|
|
7455
|
-
message.
|
|
8513
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8514
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
8515
|
+
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
8516
|
+
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
8517
|
+
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
8518
|
+
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
8519
|
+
message.formattingFailed = object.formattingFailed ?? false;
|
|
7456
8520
|
return message;
|
|
7457
8521
|
},
|
|
7458
8522
|
};
|
|
@@ -8881,9 +9945,20 @@ function createBaseCameraParameters() {
|
|
|
8881
9945
|
whiteBalance: 0,
|
|
8882
9946
|
hue: 0,
|
|
8883
9947
|
gain: 0,
|
|
9948
|
+
brightness: 0,
|
|
9949
|
+
contrast: 0,
|
|
9950
|
+
saturation: 0,
|
|
9951
|
+
gamma: 0,
|
|
9952
|
+
sharpness: 0,
|
|
9953
|
+
backlightCompensation: 0,
|
|
9954
|
+
denoise: 0,
|
|
9955
|
+
ehdrEnabled: false,
|
|
9956
|
+
ehdrExposureMinNumber: 0,
|
|
9957
|
+
ehdrExposureMaxNumber: 0,
|
|
8884
9958
|
resolution: 0,
|
|
8885
9959
|
streamResolution: 0,
|
|
8886
9960
|
recordingResolution: 0,
|
|
9961
|
+
streamingProtocol: 0,
|
|
8887
9962
|
framerate: 0,
|
|
8888
9963
|
camera: 0,
|
|
8889
9964
|
};
|
|
@@ -8908,6 +9983,36 @@ exports.CameraParameters = {
|
|
|
8908
9983
|
if (message.gain !== 0) {
|
|
8909
9984
|
writer.uint32(77).float(message.gain);
|
|
8910
9985
|
}
|
|
9986
|
+
if (message.brightness !== 0) {
|
|
9987
|
+
writer.uint32(96).int32(message.brightness);
|
|
9988
|
+
}
|
|
9989
|
+
if (message.contrast !== 0) {
|
|
9990
|
+
writer.uint32(104).int32(message.contrast);
|
|
9991
|
+
}
|
|
9992
|
+
if (message.saturation !== 0) {
|
|
9993
|
+
writer.uint32(112).int32(message.saturation);
|
|
9994
|
+
}
|
|
9995
|
+
if (message.gamma !== 0) {
|
|
9996
|
+
writer.uint32(120).int32(message.gamma);
|
|
9997
|
+
}
|
|
9998
|
+
if (message.sharpness !== 0) {
|
|
9999
|
+
writer.uint32(128).int32(message.sharpness);
|
|
10000
|
+
}
|
|
10001
|
+
if (message.backlightCompensation !== 0) {
|
|
10002
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
10003
|
+
}
|
|
10004
|
+
if (message.denoise !== 0) {
|
|
10005
|
+
writer.uint32(144).int32(message.denoise);
|
|
10006
|
+
}
|
|
10007
|
+
if (message.ehdrEnabled !== false) {
|
|
10008
|
+
writer.uint32(168).bool(message.ehdrEnabled);
|
|
10009
|
+
}
|
|
10010
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10011
|
+
writer.uint32(176).int32(message.ehdrExposureMinNumber);
|
|
10012
|
+
}
|
|
10013
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10014
|
+
writer.uint32(184).int32(message.ehdrExposureMaxNumber);
|
|
10015
|
+
}
|
|
8911
10016
|
if (message.resolution !== 0) {
|
|
8912
10017
|
writer.uint32(48).int32(message.resolution);
|
|
8913
10018
|
}
|
|
@@ -8917,6 +10022,9 @@ exports.CameraParameters = {
|
|
|
8917
10022
|
if (message.recordingResolution !== 0) {
|
|
8918
10023
|
writer.uint32(88).int32(message.recordingResolution);
|
|
8919
10024
|
}
|
|
10025
|
+
if (message.streamingProtocol !== 0) {
|
|
10026
|
+
writer.uint32(160).int32(message.streamingProtocol);
|
|
10027
|
+
}
|
|
8920
10028
|
if (message.framerate !== 0) {
|
|
8921
10029
|
writer.uint32(56).int32(message.framerate);
|
|
8922
10030
|
}
|
|
@@ -8974,6 +10082,76 @@ exports.CameraParameters = {
|
|
|
8974
10082
|
message.gain = reader.float();
|
|
8975
10083
|
continue;
|
|
8976
10084
|
}
|
|
10085
|
+
case 12: {
|
|
10086
|
+
if (tag !== 96) {
|
|
10087
|
+
break;
|
|
10088
|
+
}
|
|
10089
|
+
message.brightness = reader.int32();
|
|
10090
|
+
continue;
|
|
10091
|
+
}
|
|
10092
|
+
case 13: {
|
|
10093
|
+
if (tag !== 104) {
|
|
10094
|
+
break;
|
|
10095
|
+
}
|
|
10096
|
+
message.contrast = reader.int32();
|
|
10097
|
+
continue;
|
|
10098
|
+
}
|
|
10099
|
+
case 14: {
|
|
10100
|
+
if (tag !== 112) {
|
|
10101
|
+
break;
|
|
10102
|
+
}
|
|
10103
|
+
message.saturation = reader.int32();
|
|
10104
|
+
continue;
|
|
10105
|
+
}
|
|
10106
|
+
case 15: {
|
|
10107
|
+
if (tag !== 120) {
|
|
10108
|
+
break;
|
|
10109
|
+
}
|
|
10110
|
+
message.gamma = reader.int32();
|
|
10111
|
+
continue;
|
|
10112
|
+
}
|
|
10113
|
+
case 16: {
|
|
10114
|
+
if (tag !== 128) {
|
|
10115
|
+
break;
|
|
10116
|
+
}
|
|
10117
|
+
message.sharpness = reader.int32();
|
|
10118
|
+
continue;
|
|
10119
|
+
}
|
|
10120
|
+
case 17: {
|
|
10121
|
+
if (tag !== 136) {
|
|
10122
|
+
break;
|
|
10123
|
+
}
|
|
10124
|
+
message.backlightCompensation = reader.int32();
|
|
10125
|
+
continue;
|
|
10126
|
+
}
|
|
10127
|
+
case 18: {
|
|
10128
|
+
if (tag !== 144) {
|
|
10129
|
+
break;
|
|
10130
|
+
}
|
|
10131
|
+
message.denoise = reader.int32();
|
|
10132
|
+
continue;
|
|
10133
|
+
}
|
|
10134
|
+
case 21: {
|
|
10135
|
+
if (tag !== 168) {
|
|
10136
|
+
break;
|
|
10137
|
+
}
|
|
10138
|
+
message.ehdrEnabled = reader.bool();
|
|
10139
|
+
continue;
|
|
10140
|
+
}
|
|
10141
|
+
case 22: {
|
|
10142
|
+
if (tag !== 176) {
|
|
10143
|
+
break;
|
|
10144
|
+
}
|
|
10145
|
+
message.ehdrExposureMinNumber = reader.int32();
|
|
10146
|
+
continue;
|
|
10147
|
+
}
|
|
10148
|
+
case 23: {
|
|
10149
|
+
if (tag !== 184) {
|
|
10150
|
+
break;
|
|
10151
|
+
}
|
|
10152
|
+
message.ehdrExposureMaxNumber = reader.int32();
|
|
10153
|
+
continue;
|
|
10154
|
+
}
|
|
8977
10155
|
case 6: {
|
|
8978
10156
|
if (tag !== 48) {
|
|
8979
10157
|
break;
|
|
@@ -8995,6 +10173,13 @@ exports.CameraParameters = {
|
|
|
8995
10173
|
message.recordingResolution = reader.int32();
|
|
8996
10174
|
continue;
|
|
8997
10175
|
}
|
|
10176
|
+
case 20: {
|
|
10177
|
+
if (tag !== 160) {
|
|
10178
|
+
break;
|
|
10179
|
+
}
|
|
10180
|
+
message.streamingProtocol = reader.int32();
|
|
10181
|
+
continue;
|
|
10182
|
+
}
|
|
8998
10183
|
case 7: {
|
|
8999
10184
|
if (tag !== 56) {
|
|
9000
10185
|
break;
|
|
@@ -9025,9 +10210,20 @@ exports.CameraParameters = {
|
|
|
9025
10210
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9026
10211
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9027
10212
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
10213
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
10214
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
10215
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
10216
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
10217
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
10218
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
10219
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
10220
|
+
ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
|
|
10221
|
+
ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
|
|
10222
|
+
ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
|
|
9028
10223
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9029
10224
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9030
10225
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
10226
|
+
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9031
10227
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9032
10228
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9033
10229
|
};
|
|
@@ -9052,6 +10248,36 @@ exports.CameraParameters = {
|
|
|
9052
10248
|
if (message.gain !== 0) {
|
|
9053
10249
|
obj.gain = message.gain;
|
|
9054
10250
|
}
|
|
10251
|
+
if (message.brightness !== 0) {
|
|
10252
|
+
obj.brightness = Math.round(message.brightness);
|
|
10253
|
+
}
|
|
10254
|
+
if (message.contrast !== 0) {
|
|
10255
|
+
obj.contrast = Math.round(message.contrast);
|
|
10256
|
+
}
|
|
10257
|
+
if (message.saturation !== 0) {
|
|
10258
|
+
obj.saturation = Math.round(message.saturation);
|
|
10259
|
+
}
|
|
10260
|
+
if (message.gamma !== 0) {
|
|
10261
|
+
obj.gamma = Math.round(message.gamma);
|
|
10262
|
+
}
|
|
10263
|
+
if (message.sharpness !== 0) {
|
|
10264
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
10265
|
+
}
|
|
10266
|
+
if (message.backlightCompensation !== 0) {
|
|
10267
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
10268
|
+
}
|
|
10269
|
+
if (message.denoise !== 0) {
|
|
10270
|
+
obj.denoise = Math.round(message.denoise);
|
|
10271
|
+
}
|
|
10272
|
+
if (message.ehdrEnabled !== false) {
|
|
10273
|
+
obj.ehdrEnabled = message.ehdrEnabled;
|
|
10274
|
+
}
|
|
10275
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10276
|
+
obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
|
|
10277
|
+
}
|
|
10278
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10279
|
+
obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
|
|
10280
|
+
}
|
|
9055
10281
|
if (message.resolution !== 0) {
|
|
9056
10282
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9057
10283
|
}
|
|
@@ -9061,6 +10287,9 @@ exports.CameraParameters = {
|
|
|
9061
10287
|
if (message.recordingResolution !== 0) {
|
|
9062
10288
|
obj.recordingResolution = resolutionToJSON(message.recordingResolution);
|
|
9063
10289
|
}
|
|
10290
|
+
if (message.streamingProtocol !== 0) {
|
|
10291
|
+
obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
|
|
10292
|
+
}
|
|
9064
10293
|
if (message.framerate !== 0) {
|
|
9065
10294
|
obj.framerate = framerateToJSON(message.framerate);
|
|
9066
10295
|
}
|
|
@@ -9080,9 +10309,20 @@ exports.CameraParameters = {
|
|
|
9080
10309
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9081
10310
|
message.hue = object.hue ?? 0;
|
|
9082
10311
|
message.gain = object.gain ?? 0;
|
|
10312
|
+
message.brightness = object.brightness ?? 0;
|
|
10313
|
+
message.contrast = object.contrast ?? 0;
|
|
10314
|
+
message.saturation = object.saturation ?? 0;
|
|
10315
|
+
message.gamma = object.gamma ?? 0;
|
|
10316
|
+
message.sharpness = object.sharpness ?? 0;
|
|
10317
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
10318
|
+
message.denoise = object.denoise ?? 0;
|
|
10319
|
+
message.ehdrEnabled = object.ehdrEnabled ?? false;
|
|
10320
|
+
message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
|
|
10321
|
+
message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
|
|
9083
10322
|
message.resolution = object.resolution ?? 0;
|
|
9084
10323
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9085
10324
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
10325
|
+
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
9086
10326
|
message.framerate = object.framerate ?? 0;
|
|
9087
10327
|
message.camera = object.camera ?? 0;
|
|
9088
10328
|
return message;
|
|
@@ -11828,7 +13068,7 @@ exports.PersistentStorageSettings = {
|
|
|
11828
13068
|
},
|
|
11829
13069
|
};
|
|
11830
13070
|
function createBaseCPUInfo() {
|
|
11831
|
-
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0 };
|
|
13071
|
+
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0, commQueueLoad: 0 };
|
|
11832
13072
|
}
|
|
11833
13073
|
exports.CPUInfo = {
|
|
11834
13074
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -11844,6 +13084,9 @@ exports.CPUInfo = {
|
|
|
11844
13084
|
if (message.guestportQueueLoad !== 0) {
|
|
11845
13085
|
writer.uint32(37).float(message.guestportQueueLoad);
|
|
11846
13086
|
}
|
|
13087
|
+
if (message.commQueueLoad !== 0) {
|
|
13088
|
+
writer.uint32(45).float(message.commQueueLoad);
|
|
13089
|
+
}
|
|
11847
13090
|
return writer;
|
|
11848
13091
|
},
|
|
11849
13092
|
decode(input, length) {
|
|
@@ -11881,6 +13124,13 @@ exports.CPUInfo = {
|
|
|
11881
13124
|
message.guestportQueueLoad = reader.float();
|
|
11882
13125
|
continue;
|
|
11883
13126
|
}
|
|
13127
|
+
case 5: {
|
|
13128
|
+
if (tag !== 45) {
|
|
13129
|
+
break;
|
|
13130
|
+
}
|
|
13131
|
+
message.commQueueLoad = reader.float();
|
|
13132
|
+
continue;
|
|
13133
|
+
}
|
|
11884
13134
|
}
|
|
11885
13135
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11886
13136
|
break;
|
|
@@ -11895,6 +13145,7 @@ exports.CPUInfo = {
|
|
|
11895
13145
|
memoryBusLoad: isSet(object.memoryBusLoad) ? gt.Number(object.memoryBusLoad) : 0,
|
|
11896
13146
|
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
11897
13147
|
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
13148
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
11898
13149
|
};
|
|
11899
13150
|
},
|
|
11900
13151
|
toJSON(message) {
|
|
@@ -11911,6 +13162,9 @@ exports.CPUInfo = {
|
|
|
11911
13162
|
if (message.guestportQueueLoad !== 0) {
|
|
11912
13163
|
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
11913
13164
|
}
|
|
13165
|
+
if (message.commQueueLoad !== 0) {
|
|
13166
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
13167
|
+
}
|
|
11914
13168
|
return obj;
|
|
11915
13169
|
},
|
|
11916
13170
|
create(base) {
|
|
@@ -11922,6 +13176,126 @@ exports.CPUInfo = {
|
|
|
11922
13176
|
message.memoryBusLoad = object.memoryBusLoad ?? 0;
|
|
11923
13177
|
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
11924
13178
|
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
13179
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
13180
|
+
return message;
|
|
13181
|
+
},
|
|
13182
|
+
};
|
|
13183
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
13184
|
+
return { status: 0, level: 0 };
|
|
13185
|
+
}
|
|
13186
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
13187
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13188
|
+
if (message.status !== 0) {
|
|
13189
|
+
writer.uint32(8).int32(message.status);
|
|
13190
|
+
}
|
|
13191
|
+
if (message.level !== 0) {
|
|
13192
|
+
writer.uint32(21).float(message.level);
|
|
13193
|
+
}
|
|
13194
|
+
return writer;
|
|
13195
|
+
},
|
|
13196
|
+
decode(input, length) {
|
|
13197
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13198
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13199
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13200
|
+
while (reader.pos < end) {
|
|
13201
|
+
const tag = reader.uint32();
|
|
13202
|
+
switch (tag >>> 3) {
|
|
13203
|
+
case 1: {
|
|
13204
|
+
if (tag !== 8) {
|
|
13205
|
+
break;
|
|
13206
|
+
}
|
|
13207
|
+
message.status = reader.int32();
|
|
13208
|
+
continue;
|
|
13209
|
+
}
|
|
13210
|
+
case 2: {
|
|
13211
|
+
if (tag !== 21) {
|
|
13212
|
+
break;
|
|
13213
|
+
}
|
|
13214
|
+
message.level = reader.float();
|
|
13215
|
+
continue;
|
|
13216
|
+
}
|
|
13217
|
+
}
|
|
13218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13219
|
+
break;
|
|
13220
|
+
}
|
|
13221
|
+
reader.skip(tag & 7);
|
|
13222
|
+
}
|
|
13223
|
+
return message;
|
|
13224
|
+
},
|
|
13225
|
+
fromJSON(object) {
|
|
13226
|
+
return {
|
|
13227
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
13228
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
13229
|
+
};
|
|
13230
|
+
},
|
|
13231
|
+
toJSON(message) {
|
|
13232
|
+
const obj = {};
|
|
13233
|
+
if (message.status !== 0) {
|
|
13234
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
13235
|
+
}
|
|
13236
|
+
if (message.level !== 0) {
|
|
13237
|
+
obj.level = message.level;
|
|
13238
|
+
}
|
|
13239
|
+
return obj;
|
|
13240
|
+
},
|
|
13241
|
+
create(base) {
|
|
13242
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
13243
|
+
},
|
|
13244
|
+
fromPartial(object) {
|
|
13245
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13246
|
+
message.status = object.status ?? 0;
|
|
13247
|
+
message.level = object.level ?? 0;
|
|
13248
|
+
return message;
|
|
13249
|
+
},
|
|
13250
|
+
};
|
|
13251
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
13252
|
+
return { version: "" };
|
|
13253
|
+
}
|
|
13254
|
+
exports.SurfaceUnitVersionInfo = {
|
|
13255
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13256
|
+
if (message.version !== "") {
|
|
13257
|
+
writer.uint32(10).string(message.version);
|
|
13258
|
+
}
|
|
13259
|
+
return writer;
|
|
13260
|
+
},
|
|
13261
|
+
decode(input, length) {
|
|
13262
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13263
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13264
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13265
|
+
while (reader.pos < end) {
|
|
13266
|
+
const tag = reader.uint32();
|
|
13267
|
+
switch (tag >>> 3) {
|
|
13268
|
+
case 1: {
|
|
13269
|
+
if (tag !== 10) {
|
|
13270
|
+
break;
|
|
13271
|
+
}
|
|
13272
|
+
message.version = reader.string();
|
|
13273
|
+
continue;
|
|
13274
|
+
}
|
|
13275
|
+
}
|
|
13276
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13277
|
+
break;
|
|
13278
|
+
}
|
|
13279
|
+
reader.skip(tag & 7);
|
|
13280
|
+
}
|
|
13281
|
+
return message;
|
|
13282
|
+
},
|
|
13283
|
+
fromJSON(object) {
|
|
13284
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
13285
|
+
},
|
|
13286
|
+
toJSON(message) {
|
|
13287
|
+
const obj = {};
|
|
13288
|
+
if (message.version !== "") {
|
|
13289
|
+
obj.version = message.version;
|
|
13290
|
+
}
|
|
13291
|
+
return obj;
|
|
13292
|
+
},
|
|
13293
|
+
create(base) {
|
|
13294
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
13295
|
+
},
|
|
13296
|
+
fromPartial(object) {
|
|
13297
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13298
|
+
message.version = object.version ?? "";
|
|
11925
13299
|
return message;
|
|
11926
13300
|
},
|
|
11927
13301
|
};
|