@blueyerobotics/protocol-definitions 3.2.0-9a7703f5 → 3.2.0-9c4aad9c
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.md +40 -0
- package/README.npm.md +40 -0
- 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 +252 -21
- package/dist/message_formats.js +1451 -55
- package/dist/mission_planning.d.ts +2 -8
- package/dist/mission_planning.js +1 -1
- package/dist/req_rep.d.ts +24 -8
- package/dist/req_rep.js +192 -2
- package/dist/telemetry.d.ts +40 -10
- package/dist/telemetry.js +325 -5
- package/package.json +10 -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,10 @@ 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";
|
|
1281
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
|
|
1282
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1175
1283
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1176
1284
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1177
1285
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1311,6 +1419,12 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1311
1419
|
case 44:
|
|
1312
1420
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
|
|
1313
1421
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650;
|
|
1422
|
+
case 45:
|
|
1423
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1424
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1425
|
+
case 46:
|
|
1426
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
|
|
1427
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
|
|
1314
1428
|
case -1:
|
|
1315
1429
|
case "UNRECOGNIZED":
|
|
1316
1430
|
default:
|
|
@@ -1409,6 +1523,10 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1409
1523
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1410
1524
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
|
|
1411
1525
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1526
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1527
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1528
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
|
|
1529
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1412
1530
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1413
1531
|
default:
|
|
1414
1532
|
return "UNRECOGNIZED";
|
|
@@ -1685,6 +1803,157 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1685
1803
|
return "UNRECOGNIZED";
|
|
1686
1804
|
}
|
|
1687
1805
|
}
|
|
1806
|
+
var LogEntry_LogLevel;
|
|
1807
|
+
(function (LogEntry_LogLevel) {
|
|
1808
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1809
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
1810
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
1811
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
|
|
1812
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
1813
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
|
|
1814
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
1815
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
|
|
1816
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
1817
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
|
|
1818
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
1819
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
|
|
1820
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
1821
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
|
|
1822
|
+
LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1823
|
+
})(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
|
|
1824
|
+
function logEntry_LogLevelFromJSON(object) {
|
|
1825
|
+
switch (object) {
|
|
1826
|
+
case 0:
|
|
1827
|
+
case "LOG_LEVEL_UNSPECIFIED":
|
|
1828
|
+
return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
|
|
1829
|
+
case 1:
|
|
1830
|
+
case "LOG_LEVEL_TRACE":
|
|
1831
|
+
return LogEntry_LogLevel.LOG_LEVEL_TRACE;
|
|
1832
|
+
case 2:
|
|
1833
|
+
case "LOG_LEVEL_DEBUG":
|
|
1834
|
+
return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
|
|
1835
|
+
case 3:
|
|
1836
|
+
case "LOG_LEVEL_INFO":
|
|
1837
|
+
return LogEntry_LogLevel.LOG_LEVEL_INFO;
|
|
1838
|
+
case 4:
|
|
1839
|
+
case "LOG_LEVEL_WARNING":
|
|
1840
|
+
return LogEntry_LogLevel.LOG_LEVEL_WARNING;
|
|
1841
|
+
case 5:
|
|
1842
|
+
case "LOG_LEVEL_ERROR":
|
|
1843
|
+
return LogEntry_LogLevel.LOG_LEVEL_ERROR;
|
|
1844
|
+
case 6:
|
|
1845
|
+
case "LOG_LEVEL_CRITICAL":
|
|
1846
|
+
return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
|
|
1847
|
+
case -1:
|
|
1848
|
+
case "UNRECOGNIZED":
|
|
1849
|
+
default:
|
|
1850
|
+
return LogEntry_LogLevel.UNRECOGNIZED;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
function logEntry_LogLevelToJSON(object) {
|
|
1854
|
+
switch (object) {
|
|
1855
|
+
case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
|
|
1856
|
+
return "LOG_LEVEL_UNSPECIFIED";
|
|
1857
|
+
case LogEntry_LogLevel.LOG_LEVEL_TRACE:
|
|
1858
|
+
return "LOG_LEVEL_TRACE";
|
|
1859
|
+
case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
|
|
1860
|
+
return "LOG_LEVEL_DEBUG";
|
|
1861
|
+
case LogEntry_LogLevel.LOG_LEVEL_INFO:
|
|
1862
|
+
return "LOG_LEVEL_INFO";
|
|
1863
|
+
case LogEntry_LogLevel.LOG_LEVEL_WARNING:
|
|
1864
|
+
return "LOG_LEVEL_WARNING";
|
|
1865
|
+
case LogEntry_LogLevel.LOG_LEVEL_ERROR:
|
|
1866
|
+
return "LOG_LEVEL_ERROR";
|
|
1867
|
+
case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
|
|
1868
|
+
return "LOG_LEVEL_CRITICAL";
|
|
1869
|
+
case LogEntry_LogLevel.UNRECOGNIZED:
|
|
1870
|
+
default:
|
|
1871
|
+
return "UNRECOGNIZED";
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
/** Kernel log level. */
|
|
1875
|
+
var KernelLogEntry_KernelLogLevel;
|
|
1876
|
+
(function (KernelLogEntry_KernelLogLevel) {
|
|
1877
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1878
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1879
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
1880
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
|
|
1881
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
1882
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
|
|
1883
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
1884
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
|
|
1885
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
1886
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
|
|
1887
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
1888
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
|
|
1889
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
1890
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
|
|
1891
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
1892
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
|
|
1893
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
1894
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
|
|
1895
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1896
|
+
})(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
|
|
1897
|
+
function kernelLogEntry_KernelLogLevelFromJSON(object) {
|
|
1898
|
+
switch (object) {
|
|
1899
|
+
case 0:
|
|
1900
|
+
case "KERNEL_LOG_LEVEL_UNSPECIFIED":
|
|
1901
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
|
|
1902
|
+
case 1:
|
|
1903
|
+
case "KERNEL_LOG_LEVEL_EMERG":
|
|
1904
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
|
|
1905
|
+
case 2:
|
|
1906
|
+
case "KERNEL_LOG_LEVEL_ALERT":
|
|
1907
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
|
|
1908
|
+
case 3:
|
|
1909
|
+
case "KERNEL_LOG_LEVEL_CRIT":
|
|
1910
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
|
|
1911
|
+
case 4:
|
|
1912
|
+
case "KERNEL_LOG_LEVEL_ERR":
|
|
1913
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
|
|
1914
|
+
case 5:
|
|
1915
|
+
case "KERNEL_LOG_LEVEL_WARNING":
|
|
1916
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
|
|
1917
|
+
case 6:
|
|
1918
|
+
case "KERNEL_LOG_LEVEL_NOTICE":
|
|
1919
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
|
|
1920
|
+
case 7:
|
|
1921
|
+
case "KERNEL_LOG_LEVEL_INFO":
|
|
1922
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
|
|
1923
|
+
case 8:
|
|
1924
|
+
case "KERNEL_LOG_LEVEL_DEBUG":
|
|
1925
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
|
|
1926
|
+
case -1:
|
|
1927
|
+
case "UNRECOGNIZED":
|
|
1928
|
+
default:
|
|
1929
|
+
return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
function kernelLogEntry_KernelLogLevelToJSON(object) {
|
|
1933
|
+
switch (object) {
|
|
1934
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
|
|
1935
|
+
return "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1936
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
|
|
1937
|
+
return "KERNEL_LOG_LEVEL_EMERG";
|
|
1938
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
|
|
1939
|
+
return "KERNEL_LOG_LEVEL_ALERT";
|
|
1940
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
|
|
1941
|
+
return "KERNEL_LOG_LEVEL_CRIT";
|
|
1942
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
|
|
1943
|
+
return "KERNEL_LOG_LEVEL_ERR";
|
|
1944
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
|
|
1945
|
+
return "KERNEL_LOG_LEVEL_WARNING";
|
|
1946
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
|
|
1947
|
+
return "KERNEL_LOG_LEVEL_NOTICE";
|
|
1948
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
|
|
1949
|
+
return "KERNEL_LOG_LEVEL_INFO";
|
|
1950
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
|
|
1951
|
+
return "KERNEL_LOG_LEVEL_DEBUG";
|
|
1952
|
+
case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
|
|
1953
|
+
default:
|
|
1954
|
+
return "UNRECOGNIZED";
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1688
1957
|
var PingerConfiguration_MountingDirection;
|
|
1689
1958
|
(function (PingerConfiguration_MountingDirection) {
|
|
1690
1959
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -1799,10 +2068,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1799
2068
|
return "UNRECOGNIZED";
|
|
1800
2069
|
}
|
|
1801
2070
|
}
|
|
2071
|
+
/** Overall status of the storage device. */
|
|
2072
|
+
var RemovableStorageDevice_Status;
|
|
2073
|
+
(function (RemovableStorageDevice_Status) {
|
|
2074
|
+
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
2075
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
2076
|
+
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
2077
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
2078
|
+
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
2079
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
2080
|
+
/** STATUS_ERROR - The storage device is in an error state. */
|
|
2081
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
2082
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2083
|
+
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
2084
|
+
function removableStorageDevice_StatusFromJSON(object) {
|
|
2085
|
+
switch (object) {
|
|
2086
|
+
case 0:
|
|
2087
|
+
case "STATUS_UNSPECIFIED":
|
|
2088
|
+
return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
|
|
2089
|
+
case 1:
|
|
2090
|
+
case "STATUS_READY":
|
|
2091
|
+
return RemovableStorageDevice_Status.STATUS_READY;
|
|
2092
|
+
case 2:
|
|
2093
|
+
case "STATUS_FORMATTING":
|
|
2094
|
+
return RemovableStorageDevice_Status.STATUS_FORMATTING;
|
|
2095
|
+
case 3:
|
|
2096
|
+
case "STATUS_ERROR":
|
|
2097
|
+
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
2098
|
+
case -1:
|
|
2099
|
+
case "UNRECOGNIZED":
|
|
2100
|
+
default:
|
|
2101
|
+
return RemovableStorageDevice_Status.UNRECOGNIZED;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
function removableStorageDevice_StatusToJSON(object) {
|
|
2105
|
+
switch (object) {
|
|
2106
|
+
case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
|
|
2107
|
+
return "STATUS_UNSPECIFIED";
|
|
2108
|
+
case RemovableStorageDevice_Status.STATUS_READY:
|
|
2109
|
+
return "STATUS_READY";
|
|
2110
|
+
case RemovableStorageDevice_Status.STATUS_FORMATTING:
|
|
2111
|
+
return "STATUS_FORMATTING";
|
|
2112
|
+
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
2113
|
+
return "STATUS_ERROR";
|
|
2114
|
+
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
2115
|
+
default:
|
|
2116
|
+
return "UNRECOGNIZED";
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
1802
2119
|
/**
|
|
1803
2120
|
* Status of the compass calibration procedure.
|
|
1804
2121
|
*
|
|
1805
|
-
* When calibration is started, the status will indicate the active (
|
|
2122
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1806
2123
|
*/
|
|
1807
2124
|
var CalibrationState_Status;
|
|
1808
2125
|
(function (CalibrationState_Status) {
|
|
@@ -1824,7 +2141,7 @@ var CalibrationState_Status;
|
|
|
1824
2141
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1825
2142
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1826
2143
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1827
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
2144
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1828
2145
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1829
2146
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1830
2147
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -2015,6 +2332,49 @@ function multibeamConfig_MaximumNumberOfBeamsToJSON(object) {
|
|
|
2015
2332
|
return "UNRECOGNIZED";
|
|
2016
2333
|
}
|
|
2017
2334
|
}
|
|
2335
|
+
var SurfaceUnitBatteryInfo_ChargeStatus;
|
|
2336
|
+
(function (SurfaceUnitBatteryInfo_ChargeStatus) {
|
|
2337
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_UNSPECIFIED"] = 0] = "CHARGE_STATUS_UNSPECIFIED";
|
|
2338
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_DISCHARGE"] = 1] = "CHARGE_STATUS_DISCHARGE";
|
|
2339
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE"] = 2] = "CHARGE_STATUS_CHARGE";
|
|
2340
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["CHARGE_STATUS_CHARGE_ERROR"] = 3] = "CHARGE_STATUS_CHARGE_ERROR";
|
|
2341
|
+
SurfaceUnitBatteryInfo_ChargeStatus[SurfaceUnitBatteryInfo_ChargeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2342
|
+
})(SurfaceUnitBatteryInfo_ChargeStatus || (exports.SurfaceUnitBatteryInfo_ChargeStatus = SurfaceUnitBatteryInfo_ChargeStatus = {}));
|
|
2343
|
+
function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object) {
|
|
2344
|
+
switch (object) {
|
|
2345
|
+
case 0:
|
|
2346
|
+
case "CHARGE_STATUS_UNSPECIFIED":
|
|
2347
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED;
|
|
2348
|
+
case 1:
|
|
2349
|
+
case "CHARGE_STATUS_DISCHARGE":
|
|
2350
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE;
|
|
2351
|
+
case 2:
|
|
2352
|
+
case "CHARGE_STATUS_CHARGE":
|
|
2353
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE;
|
|
2354
|
+
case 3:
|
|
2355
|
+
case "CHARGE_STATUS_CHARGE_ERROR":
|
|
2356
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR;
|
|
2357
|
+
case -1:
|
|
2358
|
+
case "UNRECOGNIZED":
|
|
2359
|
+
default:
|
|
2360
|
+
return SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED;
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
2364
|
+
switch (object) {
|
|
2365
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_UNSPECIFIED:
|
|
2366
|
+
return "CHARGE_STATUS_UNSPECIFIED";
|
|
2367
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_DISCHARGE:
|
|
2368
|
+
return "CHARGE_STATUS_DISCHARGE";
|
|
2369
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE:
|
|
2370
|
+
return "CHARGE_STATUS_CHARGE";
|
|
2371
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.CHARGE_STATUS_CHARGE_ERROR:
|
|
2372
|
+
return "CHARGE_STATUS_CHARGE_ERROR";
|
|
2373
|
+
case SurfaceUnitBatteryInfo_ChargeStatus.UNRECOGNIZED:
|
|
2374
|
+
default:
|
|
2375
|
+
return "UNRECOGNIZED";
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2018
2378
|
function createBaseBinlogRecord() {
|
|
2019
2379
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2020
2380
|
}
|
|
@@ -2069,34 +2429,360 @@ exports.BinlogRecord = {
|
|
|
2069
2429
|
},
|
|
2070
2430
|
fromJSON(object) {
|
|
2071
2431
|
return {
|
|
2072
|
-
payload: isSet(object.payload) ? any_1.Any.fromJSON(object.payload) : undefined,
|
|
2073
|
-
unixTimestamp: isSet(object.unixTimestamp) ? fromJsonTimestamp(object.unixTimestamp) : undefined,
|
|
2074
|
-
clockMonotonic: isSet(object.clockMonotonic) ? fromJsonTimestamp(object.clockMonotonic) : undefined,
|
|
2432
|
+
payload: isSet(object.payload) ? any_1.Any.fromJSON(object.payload) : undefined,
|
|
2433
|
+
unixTimestamp: isSet(object.unixTimestamp) ? fromJsonTimestamp(object.unixTimestamp) : undefined,
|
|
2434
|
+
clockMonotonic: isSet(object.clockMonotonic) ? fromJsonTimestamp(object.clockMonotonic) : undefined,
|
|
2435
|
+
};
|
|
2436
|
+
},
|
|
2437
|
+
toJSON(message) {
|
|
2438
|
+
const obj = {};
|
|
2439
|
+
if (message.payload !== undefined) {
|
|
2440
|
+
obj.payload = any_1.Any.toJSON(message.payload);
|
|
2441
|
+
}
|
|
2442
|
+
if (message.unixTimestamp !== undefined) {
|
|
2443
|
+
obj.unixTimestamp = message.unixTimestamp.toISOString();
|
|
2444
|
+
}
|
|
2445
|
+
if (message.clockMonotonic !== undefined) {
|
|
2446
|
+
obj.clockMonotonic = message.clockMonotonic.toISOString();
|
|
2447
|
+
}
|
|
2448
|
+
return obj;
|
|
2449
|
+
},
|
|
2450
|
+
create(base) {
|
|
2451
|
+
return exports.BinlogRecord.fromPartial(base ?? {});
|
|
2452
|
+
},
|
|
2453
|
+
fromPartial(object) {
|
|
2454
|
+
const message = createBaseBinlogRecord();
|
|
2455
|
+
message.payload = (object.payload !== undefined && object.payload !== null)
|
|
2456
|
+
? any_1.Any.fromPartial(object.payload)
|
|
2457
|
+
: undefined;
|
|
2458
|
+
message.unixTimestamp = object.unixTimestamp ?? undefined;
|
|
2459
|
+
message.clockMonotonic = object.clockMonotonic ?? undefined;
|
|
2460
|
+
return message;
|
|
2461
|
+
},
|
|
2462
|
+
};
|
|
2463
|
+
function createBaseLogEntry() {
|
|
2464
|
+
return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
|
|
2465
|
+
}
|
|
2466
|
+
exports.LogEntry = {
|
|
2467
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2468
|
+
if (message.timestamp !== undefined) {
|
|
2469
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
2470
|
+
}
|
|
2471
|
+
if (message.processName !== "") {
|
|
2472
|
+
writer.uint32(18).string(message.processName);
|
|
2473
|
+
}
|
|
2474
|
+
if (message.processId !== 0) {
|
|
2475
|
+
writer.uint32(24).uint64(message.processId);
|
|
2476
|
+
}
|
|
2477
|
+
if (message.threadId !== 0) {
|
|
2478
|
+
writer.uint32(32).uint64(message.threadId);
|
|
2479
|
+
}
|
|
2480
|
+
if (message.source !== "") {
|
|
2481
|
+
writer.uint32(42).string(message.source);
|
|
2482
|
+
}
|
|
2483
|
+
if (message.level !== 0) {
|
|
2484
|
+
writer.uint32(48).int32(message.level);
|
|
2485
|
+
}
|
|
2486
|
+
if (message.message !== "") {
|
|
2487
|
+
writer.uint32(58).string(message.message);
|
|
2488
|
+
}
|
|
2489
|
+
return writer;
|
|
2490
|
+
},
|
|
2491
|
+
decode(input, length) {
|
|
2492
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2493
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2494
|
+
const message = createBaseLogEntry();
|
|
2495
|
+
while (reader.pos < end) {
|
|
2496
|
+
const tag = reader.uint32();
|
|
2497
|
+
switch (tag >>> 3) {
|
|
2498
|
+
case 1: {
|
|
2499
|
+
if (tag !== 10) {
|
|
2500
|
+
break;
|
|
2501
|
+
}
|
|
2502
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2503
|
+
continue;
|
|
2504
|
+
}
|
|
2505
|
+
case 2: {
|
|
2506
|
+
if (tag !== 18) {
|
|
2507
|
+
break;
|
|
2508
|
+
}
|
|
2509
|
+
message.processName = reader.string();
|
|
2510
|
+
continue;
|
|
2511
|
+
}
|
|
2512
|
+
case 3: {
|
|
2513
|
+
if (tag !== 24) {
|
|
2514
|
+
break;
|
|
2515
|
+
}
|
|
2516
|
+
message.processId = longToNumber(reader.uint64());
|
|
2517
|
+
continue;
|
|
2518
|
+
}
|
|
2519
|
+
case 4: {
|
|
2520
|
+
if (tag !== 32) {
|
|
2521
|
+
break;
|
|
2522
|
+
}
|
|
2523
|
+
message.threadId = longToNumber(reader.uint64());
|
|
2524
|
+
continue;
|
|
2525
|
+
}
|
|
2526
|
+
case 5: {
|
|
2527
|
+
if (tag !== 42) {
|
|
2528
|
+
break;
|
|
2529
|
+
}
|
|
2530
|
+
message.source = reader.string();
|
|
2531
|
+
continue;
|
|
2532
|
+
}
|
|
2533
|
+
case 6: {
|
|
2534
|
+
if (tag !== 48) {
|
|
2535
|
+
break;
|
|
2536
|
+
}
|
|
2537
|
+
message.level = reader.int32();
|
|
2538
|
+
continue;
|
|
2539
|
+
}
|
|
2540
|
+
case 7: {
|
|
2541
|
+
if (tag !== 58) {
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
message.message = reader.string();
|
|
2545
|
+
continue;
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2549
|
+
break;
|
|
2550
|
+
}
|
|
2551
|
+
reader.skip(tag & 7);
|
|
2552
|
+
}
|
|
2553
|
+
return message;
|
|
2554
|
+
},
|
|
2555
|
+
fromJSON(object) {
|
|
2556
|
+
return {
|
|
2557
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2558
|
+
processName: isSet(object.processName) ? gt.String(object.processName) : "",
|
|
2559
|
+
processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
|
|
2560
|
+
threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
|
|
2561
|
+
source: isSet(object.source) ? gt.String(object.source) : "",
|
|
2562
|
+
level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
|
|
2563
|
+
message: isSet(object.message) ? gt.String(object.message) : "",
|
|
2564
|
+
};
|
|
2565
|
+
},
|
|
2566
|
+
toJSON(message) {
|
|
2567
|
+
const obj = {};
|
|
2568
|
+
if (message.timestamp !== undefined) {
|
|
2569
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2570
|
+
}
|
|
2571
|
+
if (message.processName !== "") {
|
|
2572
|
+
obj.processName = message.processName;
|
|
2573
|
+
}
|
|
2574
|
+
if (message.processId !== 0) {
|
|
2575
|
+
obj.processId = Math.round(message.processId);
|
|
2576
|
+
}
|
|
2577
|
+
if (message.threadId !== 0) {
|
|
2578
|
+
obj.threadId = Math.round(message.threadId);
|
|
2579
|
+
}
|
|
2580
|
+
if (message.source !== "") {
|
|
2581
|
+
obj.source = message.source;
|
|
2582
|
+
}
|
|
2583
|
+
if (message.level !== 0) {
|
|
2584
|
+
obj.level = logEntry_LogLevelToJSON(message.level);
|
|
2585
|
+
}
|
|
2586
|
+
if (message.message !== "") {
|
|
2587
|
+
obj.message = message.message;
|
|
2588
|
+
}
|
|
2589
|
+
return obj;
|
|
2590
|
+
},
|
|
2591
|
+
create(base) {
|
|
2592
|
+
return exports.LogEntry.fromPartial(base ?? {});
|
|
2593
|
+
},
|
|
2594
|
+
fromPartial(object) {
|
|
2595
|
+
const message = createBaseLogEntry();
|
|
2596
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2597
|
+
message.processName = object.processName ?? "";
|
|
2598
|
+
message.processId = object.processId ?? 0;
|
|
2599
|
+
message.threadId = object.threadId ?? 0;
|
|
2600
|
+
message.source = object.source ?? "";
|
|
2601
|
+
message.level = object.level ?? 0;
|
|
2602
|
+
message.message = object.message ?? "";
|
|
2603
|
+
return message;
|
|
2604
|
+
},
|
|
2605
|
+
};
|
|
2606
|
+
function createBaseKernelLogEntry() {
|
|
2607
|
+
return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
|
|
2608
|
+
}
|
|
2609
|
+
exports.KernelLogEntry = {
|
|
2610
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2611
|
+
if (message.level !== 0) {
|
|
2612
|
+
writer.uint32(8).int32(message.level);
|
|
2613
|
+
}
|
|
2614
|
+
if (message.seqnum !== 0) {
|
|
2615
|
+
writer.uint32(16).uint32(message.seqnum);
|
|
2616
|
+
}
|
|
2617
|
+
if (message.timestamp !== undefined) {
|
|
2618
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
|
|
2619
|
+
}
|
|
2620
|
+
for (const v of message.messages) {
|
|
2621
|
+
writer.uint32(34).string(v);
|
|
2622
|
+
}
|
|
2623
|
+
for (const v of message.fields) {
|
|
2624
|
+
exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
|
|
2625
|
+
}
|
|
2626
|
+
return writer;
|
|
2627
|
+
},
|
|
2628
|
+
decode(input, length) {
|
|
2629
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2630
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2631
|
+
const message = createBaseKernelLogEntry();
|
|
2632
|
+
while (reader.pos < end) {
|
|
2633
|
+
const tag = reader.uint32();
|
|
2634
|
+
switch (tag >>> 3) {
|
|
2635
|
+
case 1: {
|
|
2636
|
+
if (tag !== 8) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.level = reader.int32();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
case 2: {
|
|
2643
|
+
if (tag !== 16) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.seqnum = reader.uint32();
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 3: {
|
|
2650
|
+
if (tag !== 26) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
case 4: {
|
|
2657
|
+
if (tag !== 34) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
message.messages.push(reader.string());
|
|
2661
|
+
continue;
|
|
2662
|
+
}
|
|
2663
|
+
case 5: {
|
|
2664
|
+
if (tag !== 42) {
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
|
|
2668
|
+
continue;
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2672
|
+
break;
|
|
2673
|
+
}
|
|
2674
|
+
reader.skip(tag & 7);
|
|
2675
|
+
}
|
|
2676
|
+
return message;
|
|
2677
|
+
},
|
|
2678
|
+
fromJSON(object) {
|
|
2679
|
+
return {
|
|
2680
|
+
level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
|
|
2681
|
+
seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
|
|
2682
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2683
|
+
messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
|
|
2684
|
+
fields: gt.Array.isArray(object?.fields)
|
|
2685
|
+
? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
|
|
2686
|
+
: [],
|
|
2687
|
+
};
|
|
2688
|
+
},
|
|
2689
|
+
toJSON(message) {
|
|
2690
|
+
const obj = {};
|
|
2691
|
+
if (message.level !== 0) {
|
|
2692
|
+
obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
|
|
2693
|
+
}
|
|
2694
|
+
if (message.seqnum !== 0) {
|
|
2695
|
+
obj.seqnum = Math.round(message.seqnum);
|
|
2696
|
+
}
|
|
2697
|
+
if (message.timestamp !== undefined) {
|
|
2698
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2699
|
+
}
|
|
2700
|
+
if (message.messages?.length) {
|
|
2701
|
+
obj.messages = message.messages;
|
|
2702
|
+
}
|
|
2703
|
+
if (message.fields?.length) {
|
|
2704
|
+
obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
|
|
2705
|
+
}
|
|
2706
|
+
return obj;
|
|
2707
|
+
},
|
|
2708
|
+
create(base) {
|
|
2709
|
+
return exports.KernelLogEntry.fromPartial(base ?? {});
|
|
2710
|
+
},
|
|
2711
|
+
fromPartial(object) {
|
|
2712
|
+
const message = createBaseKernelLogEntry();
|
|
2713
|
+
message.level = object.level ?? 0;
|
|
2714
|
+
message.seqnum = object.seqnum ?? 0;
|
|
2715
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2716
|
+
message.messages = object.messages?.map((e) => e) || [];
|
|
2717
|
+
message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
|
|
2718
|
+
return message;
|
|
2719
|
+
},
|
|
2720
|
+
};
|
|
2721
|
+
function createBaseKernelLogEntry_KeyValuePair() {
|
|
2722
|
+
return { key: "", value: "" };
|
|
2723
|
+
}
|
|
2724
|
+
exports.KernelLogEntry_KeyValuePair = {
|
|
2725
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2726
|
+
if (message.key !== "") {
|
|
2727
|
+
writer.uint32(10).string(message.key);
|
|
2728
|
+
}
|
|
2729
|
+
if (message.value !== "") {
|
|
2730
|
+
writer.uint32(18).string(message.value);
|
|
2731
|
+
}
|
|
2732
|
+
return writer;
|
|
2733
|
+
},
|
|
2734
|
+
decode(input, length) {
|
|
2735
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2736
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2737
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2738
|
+
while (reader.pos < end) {
|
|
2739
|
+
const tag = reader.uint32();
|
|
2740
|
+
switch (tag >>> 3) {
|
|
2741
|
+
case 1: {
|
|
2742
|
+
if (tag !== 10) {
|
|
2743
|
+
break;
|
|
2744
|
+
}
|
|
2745
|
+
message.key = reader.string();
|
|
2746
|
+
continue;
|
|
2747
|
+
}
|
|
2748
|
+
case 2: {
|
|
2749
|
+
if (tag !== 18) {
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
message.value = reader.string();
|
|
2753
|
+
continue;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2757
|
+
break;
|
|
2758
|
+
}
|
|
2759
|
+
reader.skip(tag & 7);
|
|
2760
|
+
}
|
|
2761
|
+
return message;
|
|
2762
|
+
},
|
|
2763
|
+
fromJSON(object) {
|
|
2764
|
+
return {
|
|
2765
|
+
key: isSet(object.key) ? gt.String(object.key) : "",
|
|
2766
|
+
value: isSet(object.value) ? gt.String(object.value) : "",
|
|
2075
2767
|
};
|
|
2076
2768
|
},
|
|
2077
2769
|
toJSON(message) {
|
|
2078
2770
|
const obj = {};
|
|
2079
|
-
if (message.
|
|
2080
|
-
obj.
|
|
2081
|
-
}
|
|
2082
|
-
if (message.unixTimestamp !== undefined) {
|
|
2083
|
-
obj.unixTimestamp = message.unixTimestamp.toISOString();
|
|
2771
|
+
if (message.key !== "") {
|
|
2772
|
+
obj.key = message.key;
|
|
2084
2773
|
}
|
|
2085
|
-
if (message.
|
|
2086
|
-
obj.
|
|
2774
|
+
if (message.value !== "") {
|
|
2775
|
+
obj.value = message.value;
|
|
2087
2776
|
}
|
|
2088
2777
|
return obj;
|
|
2089
2778
|
},
|
|
2090
2779
|
create(base) {
|
|
2091
|
-
return exports.
|
|
2780
|
+
return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
|
|
2092
2781
|
},
|
|
2093
2782
|
fromPartial(object) {
|
|
2094
|
-
const message =
|
|
2095
|
-
message.
|
|
2096
|
-
|
|
2097
|
-
: undefined;
|
|
2098
|
-
message.unixTimestamp = object.unixTimestamp ?? undefined;
|
|
2099
|
-
message.clockMonotonic = object.clockMonotonic ?? undefined;
|
|
2783
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2784
|
+
message.key = object.key ?? "";
|
|
2785
|
+
message.value = object.value ?? "";
|
|
2100
2786
|
return message;
|
|
2101
2787
|
},
|
|
2102
2788
|
};
|
|
@@ -3381,6 +4067,7 @@ function createBaseRecordState() {
|
|
|
3381
4067
|
multibeamIsRecording: false,
|
|
3382
4068
|
multibeamSeconds: 0,
|
|
3383
4069
|
multibeamFps: 0,
|
|
4070
|
+
storageLocation: 0,
|
|
3384
4071
|
};
|
|
3385
4072
|
}
|
|
3386
4073
|
exports.RecordState = {
|
|
@@ -3412,6 +4099,9 @@ exports.RecordState = {
|
|
|
3412
4099
|
if (message.multibeamFps !== 0) {
|
|
3413
4100
|
writer.uint32(77).float(message.multibeamFps);
|
|
3414
4101
|
}
|
|
4102
|
+
if (message.storageLocation !== 0) {
|
|
4103
|
+
writer.uint32(80).int32(message.storageLocation);
|
|
4104
|
+
}
|
|
3415
4105
|
return writer;
|
|
3416
4106
|
},
|
|
3417
4107
|
decode(input, length) {
|
|
@@ -3484,6 +4174,13 @@ exports.RecordState = {
|
|
|
3484
4174
|
message.multibeamFps = reader.float();
|
|
3485
4175
|
continue;
|
|
3486
4176
|
}
|
|
4177
|
+
case 10: {
|
|
4178
|
+
if (tag !== 80) {
|
|
4179
|
+
break;
|
|
4180
|
+
}
|
|
4181
|
+
message.storageLocation = reader.int32();
|
|
4182
|
+
continue;
|
|
4183
|
+
}
|
|
3487
4184
|
}
|
|
3488
4185
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3489
4186
|
break;
|
|
@@ -3503,6 +4200,7 @@ exports.RecordState = {
|
|
|
3503
4200
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3504
4201
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3505
4202
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4203
|
+
storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
|
|
3506
4204
|
};
|
|
3507
4205
|
},
|
|
3508
4206
|
toJSON(message) {
|
|
@@ -3534,6 +4232,9 @@ exports.RecordState = {
|
|
|
3534
4232
|
if (message.multibeamFps !== 0) {
|
|
3535
4233
|
obj.multibeamFps = message.multibeamFps;
|
|
3536
4234
|
}
|
|
4235
|
+
if (message.storageLocation !== 0) {
|
|
4236
|
+
obj.storageLocation = storageLocationToJSON(message.storageLocation);
|
|
4237
|
+
}
|
|
3537
4238
|
return obj;
|
|
3538
4239
|
},
|
|
3539
4240
|
create(base) {
|
|
@@ -3550,6 +4251,7 @@ exports.RecordState = {
|
|
|
3550
4251
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3551
4252
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3552
4253
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4254
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
3553
4255
|
return message;
|
|
3554
4256
|
},
|
|
3555
4257
|
};
|
|
@@ -7388,38 +8090,400 @@ exports.RecordOn = {
|
|
|
7388
8090
|
return message;
|
|
7389
8091
|
},
|
|
7390
8092
|
};
|
|
7391
|
-
function createBaseStorageSpace() {
|
|
7392
|
-
return { totalSpace: 0, freeSpace: 0 };
|
|
8093
|
+
function createBaseStorageSpace() {
|
|
8094
|
+
return { totalSpace: 0, freeSpace: 0 };
|
|
8095
|
+
}
|
|
8096
|
+
exports.StorageSpace = {
|
|
8097
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8098
|
+
if (message.totalSpace !== 0) {
|
|
8099
|
+
writer.uint32(8).int64(message.totalSpace);
|
|
8100
|
+
}
|
|
8101
|
+
if (message.freeSpace !== 0) {
|
|
8102
|
+
writer.uint32(16).int64(message.freeSpace);
|
|
8103
|
+
}
|
|
8104
|
+
return writer;
|
|
8105
|
+
},
|
|
8106
|
+
decode(input, length) {
|
|
8107
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8108
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8109
|
+
const message = createBaseStorageSpace();
|
|
8110
|
+
while (reader.pos < end) {
|
|
8111
|
+
const tag = reader.uint32();
|
|
8112
|
+
switch (tag >>> 3) {
|
|
8113
|
+
case 1: {
|
|
8114
|
+
if (tag !== 8) {
|
|
8115
|
+
break;
|
|
8116
|
+
}
|
|
8117
|
+
message.totalSpace = longToNumber(reader.int64());
|
|
8118
|
+
continue;
|
|
8119
|
+
}
|
|
8120
|
+
case 2: {
|
|
8121
|
+
if (tag !== 16) {
|
|
8122
|
+
break;
|
|
8123
|
+
}
|
|
8124
|
+
message.freeSpace = longToNumber(reader.int64());
|
|
8125
|
+
continue;
|
|
8126
|
+
}
|
|
8127
|
+
}
|
|
8128
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8129
|
+
break;
|
|
8130
|
+
}
|
|
8131
|
+
reader.skip(tag & 7);
|
|
8132
|
+
}
|
|
8133
|
+
return message;
|
|
8134
|
+
},
|
|
8135
|
+
fromJSON(object) {
|
|
8136
|
+
return {
|
|
8137
|
+
totalSpace: isSet(object.totalSpace) ? gt.Number(object.totalSpace) : 0,
|
|
8138
|
+
freeSpace: isSet(object.freeSpace) ? gt.Number(object.freeSpace) : 0,
|
|
8139
|
+
};
|
|
8140
|
+
},
|
|
8141
|
+
toJSON(message) {
|
|
8142
|
+
const obj = {};
|
|
8143
|
+
if (message.totalSpace !== 0) {
|
|
8144
|
+
obj.totalSpace = Math.round(message.totalSpace);
|
|
8145
|
+
}
|
|
8146
|
+
if (message.freeSpace !== 0) {
|
|
8147
|
+
obj.freeSpace = Math.round(message.freeSpace);
|
|
8148
|
+
}
|
|
8149
|
+
return obj;
|
|
8150
|
+
},
|
|
8151
|
+
create(base) {
|
|
8152
|
+
return exports.StorageSpace.fromPartial(base ?? {});
|
|
8153
|
+
},
|
|
8154
|
+
fromPartial(object) {
|
|
8155
|
+
const message = createBaseStorageSpace();
|
|
8156
|
+
message.totalSpace = object.totalSpace ?? 0;
|
|
8157
|
+
message.freeSpace = object.freeSpace ?? 0;
|
|
8158
|
+
return message;
|
|
8159
|
+
},
|
|
8160
|
+
};
|
|
8161
|
+
function createBaseStoragePartition() {
|
|
8162
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "", label: "" };
|
|
8163
|
+
}
|
|
8164
|
+
exports.StoragePartition = {
|
|
8165
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8166
|
+
if (message.storageSpace !== undefined) {
|
|
8167
|
+
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
8168
|
+
}
|
|
8169
|
+
if (message.fileSystemType !== "") {
|
|
8170
|
+
writer.uint32(18).string(message.fileSystemType);
|
|
8171
|
+
}
|
|
8172
|
+
if (message.devicePath !== "") {
|
|
8173
|
+
writer.uint32(26).string(message.devicePath);
|
|
8174
|
+
}
|
|
8175
|
+
if (message.mountPath !== "") {
|
|
8176
|
+
writer.uint32(34).string(message.mountPath);
|
|
8177
|
+
}
|
|
8178
|
+
if (message.label !== "") {
|
|
8179
|
+
writer.uint32(42).string(message.label);
|
|
8180
|
+
}
|
|
8181
|
+
return writer;
|
|
8182
|
+
},
|
|
8183
|
+
decode(input, length) {
|
|
8184
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8185
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8186
|
+
const message = createBaseStoragePartition();
|
|
8187
|
+
while (reader.pos < end) {
|
|
8188
|
+
const tag = reader.uint32();
|
|
8189
|
+
switch (tag >>> 3) {
|
|
8190
|
+
case 1: {
|
|
8191
|
+
if (tag !== 10) {
|
|
8192
|
+
break;
|
|
8193
|
+
}
|
|
8194
|
+
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
8195
|
+
continue;
|
|
8196
|
+
}
|
|
8197
|
+
case 2: {
|
|
8198
|
+
if (tag !== 18) {
|
|
8199
|
+
break;
|
|
8200
|
+
}
|
|
8201
|
+
message.fileSystemType = reader.string();
|
|
8202
|
+
continue;
|
|
8203
|
+
}
|
|
8204
|
+
case 3: {
|
|
8205
|
+
if (tag !== 26) {
|
|
8206
|
+
break;
|
|
8207
|
+
}
|
|
8208
|
+
message.devicePath = reader.string();
|
|
8209
|
+
continue;
|
|
8210
|
+
}
|
|
8211
|
+
case 4: {
|
|
8212
|
+
if (tag !== 34) {
|
|
8213
|
+
break;
|
|
8214
|
+
}
|
|
8215
|
+
message.mountPath = reader.string();
|
|
8216
|
+
continue;
|
|
8217
|
+
}
|
|
8218
|
+
case 5: {
|
|
8219
|
+
if (tag !== 42) {
|
|
8220
|
+
break;
|
|
8221
|
+
}
|
|
8222
|
+
message.label = reader.string();
|
|
8223
|
+
continue;
|
|
8224
|
+
}
|
|
8225
|
+
}
|
|
8226
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8227
|
+
break;
|
|
8228
|
+
}
|
|
8229
|
+
reader.skip(tag & 7);
|
|
8230
|
+
}
|
|
8231
|
+
return message;
|
|
8232
|
+
},
|
|
8233
|
+
fromJSON(object) {
|
|
8234
|
+
return {
|
|
8235
|
+
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
8236
|
+
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
8237
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8238
|
+
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
8239
|
+
label: isSet(object.label) ? gt.String(object.label) : "",
|
|
8240
|
+
};
|
|
8241
|
+
},
|
|
8242
|
+
toJSON(message) {
|
|
8243
|
+
const obj = {};
|
|
8244
|
+
if (message.storageSpace !== undefined) {
|
|
8245
|
+
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
8246
|
+
}
|
|
8247
|
+
if (message.fileSystemType !== "") {
|
|
8248
|
+
obj.fileSystemType = message.fileSystemType;
|
|
8249
|
+
}
|
|
8250
|
+
if (message.devicePath !== "") {
|
|
8251
|
+
obj.devicePath = message.devicePath;
|
|
8252
|
+
}
|
|
8253
|
+
if (message.mountPath !== "") {
|
|
8254
|
+
obj.mountPath = message.mountPath;
|
|
8255
|
+
}
|
|
8256
|
+
if (message.label !== "") {
|
|
8257
|
+
obj.label = message.label;
|
|
8258
|
+
}
|
|
8259
|
+
return obj;
|
|
8260
|
+
},
|
|
8261
|
+
create(base) {
|
|
8262
|
+
return exports.StoragePartition.fromPartial(base ?? {});
|
|
8263
|
+
},
|
|
8264
|
+
fromPartial(object) {
|
|
8265
|
+
const message = createBaseStoragePartition();
|
|
8266
|
+
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
8267
|
+
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
8268
|
+
: undefined;
|
|
8269
|
+
message.fileSystemType = object.fileSystemType ?? "";
|
|
8270
|
+
message.devicePath = object.devicePath ?? "";
|
|
8271
|
+
message.mountPath = object.mountPath ?? "";
|
|
8272
|
+
message.label = object.label ?? "";
|
|
8273
|
+
return message;
|
|
8274
|
+
},
|
|
8275
|
+
};
|
|
8276
|
+
function createBaseRemovableStorageDevice() {
|
|
8277
|
+
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
8278
|
+
}
|
|
8279
|
+
exports.RemovableStorageDevice = {
|
|
8280
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
8281
|
+
if (message.vendorName !== "") {
|
|
8282
|
+
writer.uint32(10).string(message.vendorName);
|
|
8283
|
+
}
|
|
8284
|
+
if (message.modelName !== "") {
|
|
8285
|
+
writer.uint32(18).string(message.modelName);
|
|
8286
|
+
}
|
|
8287
|
+
if (message.devicePath !== "") {
|
|
8288
|
+
writer.uint32(26).string(message.devicePath);
|
|
8289
|
+
}
|
|
8290
|
+
if (message.status !== 0) {
|
|
8291
|
+
writer.uint32(32).int32(message.status);
|
|
8292
|
+
}
|
|
8293
|
+
if (message.errorFlags !== undefined) {
|
|
8294
|
+
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
8295
|
+
}
|
|
8296
|
+
for (const v of message.partitions) {
|
|
8297
|
+
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
8298
|
+
}
|
|
8299
|
+
return writer;
|
|
8300
|
+
},
|
|
8301
|
+
decode(input, length) {
|
|
8302
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
8303
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8304
|
+
const message = createBaseRemovableStorageDevice();
|
|
8305
|
+
while (reader.pos < end) {
|
|
8306
|
+
const tag = reader.uint32();
|
|
8307
|
+
switch (tag >>> 3) {
|
|
8308
|
+
case 1: {
|
|
8309
|
+
if (tag !== 10) {
|
|
8310
|
+
break;
|
|
8311
|
+
}
|
|
8312
|
+
message.vendorName = reader.string();
|
|
8313
|
+
continue;
|
|
8314
|
+
}
|
|
8315
|
+
case 2: {
|
|
8316
|
+
if (tag !== 18) {
|
|
8317
|
+
break;
|
|
8318
|
+
}
|
|
8319
|
+
message.modelName = reader.string();
|
|
8320
|
+
continue;
|
|
8321
|
+
}
|
|
8322
|
+
case 3: {
|
|
8323
|
+
if (tag !== 26) {
|
|
8324
|
+
break;
|
|
8325
|
+
}
|
|
8326
|
+
message.devicePath = reader.string();
|
|
8327
|
+
continue;
|
|
8328
|
+
}
|
|
8329
|
+
case 4: {
|
|
8330
|
+
if (tag !== 32) {
|
|
8331
|
+
break;
|
|
8332
|
+
}
|
|
8333
|
+
message.status = reader.int32();
|
|
8334
|
+
continue;
|
|
8335
|
+
}
|
|
8336
|
+
case 5: {
|
|
8337
|
+
if (tag !== 42) {
|
|
8338
|
+
break;
|
|
8339
|
+
}
|
|
8340
|
+
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
8341
|
+
continue;
|
|
8342
|
+
}
|
|
8343
|
+
case 6: {
|
|
8344
|
+
if (tag !== 50) {
|
|
8345
|
+
break;
|
|
8346
|
+
}
|
|
8347
|
+
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
8348
|
+
continue;
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8352
|
+
break;
|
|
8353
|
+
}
|
|
8354
|
+
reader.skip(tag & 7);
|
|
8355
|
+
}
|
|
8356
|
+
return message;
|
|
8357
|
+
},
|
|
8358
|
+
fromJSON(object) {
|
|
8359
|
+
return {
|
|
8360
|
+
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
8361
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
8362
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
8363
|
+
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
8364
|
+
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
8365
|
+
partitions: gt.Array.isArray(object?.partitions)
|
|
8366
|
+
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
8367
|
+
: [],
|
|
8368
|
+
};
|
|
8369
|
+
},
|
|
8370
|
+
toJSON(message) {
|
|
8371
|
+
const obj = {};
|
|
8372
|
+
if (message.vendorName !== "") {
|
|
8373
|
+
obj.vendorName = message.vendorName;
|
|
8374
|
+
}
|
|
8375
|
+
if (message.modelName !== "") {
|
|
8376
|
+
obj.modelName = message.modelName;
|
|
8377
|
+
}
|
|
8378
|
+
if (message.devicePath !== "") {
|
|
8379
|
+
obj.devicePath = message.devicePath;
|
|
8380
|
+
}
|
|
8381
|
+
if (message.status !== 0) {
|
|
8382
|
+
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
8383
|
+
}
|
|
8384
|
+
if (message.errorFlags !== undefined) {
|
|
8385
|
+
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
8386
|
+
}
|
|
8387
|
+
if (message.partitions?.length) {
|
|
8388
|
+
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
8389
|
+
}
|
|
8390
|
+
return obj;
|
|
8391
|
+
},
|
|
8392
|
+
create(base) {
|
|
8393
|
+
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
8394
|
+
},
|
|
8395
|
+
fromPartial(object) {
|
|
8396
|
+
const message = createBaseRemovableStorageDevice();
|
|
8397
|
+
message.vendorName = object.vendorName ?? "";
|
|
8398
|
+
message.modelName = object.modelName ?? "";
|
|
8399
|
+
message.devicePath = object.devicePath ?? "";
|
|
8400
|
+
message.status = object.status ?? 0;
|
|
8401
|
+
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
8402
|
+
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
8403
|
+
: undefined;
|
|
8404
|
+
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
8405
|
+
return message;
|
|
8406
|
+
},
|
|
8407
|
+
};
|
|
8408
|
+
function createBaseRemovableStorageErrorFlags() {
|
|
8409
|
+
return {
|
|
8410
|
+
errorMessage: "",
|
|
8411
|
+
noPartitionsFound: false,
|
|
8412
|
+
multiplePartitionsFound: false,
|
|
8413
|
+
wrongFileSystemFound: false,
|
|
8414
|
+
deviceIsReadOnly: false,
|
|
8415
|
+
formattingFailed: false,
|
|
8416
|
+
};
|
|
7393
8417
|
}
|
|
7394
|
-
exports.
|
|
8418
|
+
exports.RemovableStorageErrorFlags = {
|
|
7395
8419
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7396
|
-
if (message.
|
|
7397
|
-
writer.uint32(
|
|
8420
|
+
if (message.errorMessage !== "") {
|
|
8421
|
+
writer.uint32(10).string(message.errorMessage);
|
|
7398
8422
|
}
|
|
7399
|
-
if (message.
|
|
7400
|
-
writer.uint32(16).
|
|
8423
|
+
if (message.noPartitionsFound !== false) {
|
|
8424
|
+
writer.uint32(16).bool(message.noPartitionsFound);
|
|
8425
|
+
}
|
|
8426
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8427
|
+
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
8428
|
+
}
|
|
8429
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8430
|
+
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
8431
|
+
}
|
|
8432
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8433
|
+
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
8434
|
+
}
|
|
8435
|
+
if (message.formattingFailed !== false) {
|
|
8436
|
+
writer.uint32(48).bool(message.formattingFailed);
|
|
7401
8437
|
}
|
|
7402
8438
|
return writer;
|
|
7403
8439
|
},
|
|
7404
8440
|
decode(input, length) {
|
|
7405
8441
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7406
8442
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7407
|
-
const message =
|
|
8443
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
7408
8444
|
while (reader.pos < end) {
|
|
7409
8445
|
const tag = reader.uint32();
|
|
7410
8446
|
switch (tag >>> 3) {
|
|
7411
8447
|
case 1: {
|
|
7412
|
-
if (tag !==
|
|
8448
|
+
if (tag !== 10) {
|
|
7413
8449
|
break;
|
|
7414
8450
|
}
|
|
7415
|
-
message.
|
|
8451
|
+
message.errorMessage = reader.string();
|
|
7416
8452
|
continue;
|
|
7417
8453
|
}
|
|
7418
8454
|
case 2: {
|
|
7419
8455
|
if (tag !== 16) {
|
|
7420
8456
|
break;
|
|
7421
8457
|
}
|
|
7422
|
-
message.
|
|
8458
|
+
message.noPartitionsFound = reader.bool();
|
|
8459
|
+
continue;
|
|
8460
|
+
}
|
|
8461
|
+
case 3: {
|
|
8462
|
+
if (tag !== 24) {
|
|
8463
|
+
break;
|
|
8464
|
+
}
|
|
8465
|
+
message.multiplePartitionsFound = reader.bool();
|
|
8466
|
+
continue;
|
|
8467
|
+
}
|
|
8468
|
+
case 4: {
|
|
8469
|
+
if (tag !== 32) {
|
|
8470
|
+
break;
|
|
8471
|
+
}
|
|
8472
|
+
message.wrongFileSystemFound = reader.bool();
|
|
8473
|
+
continue;
|
|
8474
|
+
}
|
|
8475
|
+
case 5: {
|
|
8476
|
+
if (tag !== 40) {
|
|
8477
|
+
break;
|
|
8478
|
+
}
|
|
8479
|
+
message.deviceIsReadOnly = reader.bool();
|
|
8480
|
+
continue;
|
|
8481
|
+
}
|
|
8482
|
+
case 6: {
|
|
8483
|
+
if (tag !== 48) {
|
|
8484
|
+
break;
|
|
8485
|
+
}
|
|
8486
|
+
message.formattingFailed = reader.bool();
|
|
7423
8487
|
continue;
|
|
7424
8488
|
}
|
|
7425
8489
|
}
|
|
@@ -7432,27 +8496,49 @@ exports.StorageSpace = {
|
|
|
7432
8496
|
},
|
|
7433
8497
|
fromJSON(object) {
|
|
7434
8498
|
return {
|
|
7435
|
-
|
|
7436
|
-
|
|
8499
|
+
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
8500
|
+
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
8501
|
+
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
8502
|
+
? gt.Boolean(object.multiplePartitionsFound)
|
|
8503
|
+
: false,
|
|
8504
|
+
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
8505
|
+
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
8506
|
+
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
7437
8507
|
};
|
|
7438
8508
|
},
|
|
7439
8509
|
toJSON(message) {
|
|
7440
8510
|
const obj = {};
|
|
7441
|
-
if (message.
|
|
7442
|
-
obj.
|
|
8511
|
+
if (message.errorMessage !== "") {
|
|
8512
|
+
obj.errorMessage = message.errorMessage;
|
|
7443
8513
|
}
|
|
7444
|
-
if (message.
|
|
7445
|
-
obj.
|
|
8514
|
+
if (message.noPartitionsFound !== false) {
|
|
8515
|
+
obj.noPartitionsFound = message.noPartitionsFound;
|
|
8516
|
+
}
|
|
8517
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8518
|
+
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
8519
|
+
}
|
|
8520
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8521
|
+
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
8522
|
+
}
|
|
8523
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8524
|
+
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
8525
|
+
}
|
|
8526
|
+
if (message.formattingFailed !== false) {
|
|
8527
|
+
obj.formattingFailed = message.formattingFailed;
|
|
7446
8528
|
}
|
|
7447
8529
|
return obj;
|
|
7448
8530
|
},
|
|
7449
8531
|
create(base) {
|
|
7450
|
-
return exports.
|
|
8532
|
+
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
7451
8533
|
},
|
|
7452
8534
|
fromPartial(object) {
|
|
7453
|
-
const message =
|
|
7454
|
-
message.
|
|
7455
|
-
message.
|
|
8535
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8536
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
8537
|
+
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
8538
|
+
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
8539
|
+
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
8540
|
+
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
8541
|
+
message.formattingFailed = object.formattingFailed ?? false;
|
|
7456
8542
|
return message;
|
|
7457
8543
|
},
|
|
7458
8544
|
};
|
|
@@ -8881,9 +9967,20 @@ function createBaseCameraParameters() {
|
|
|
8881
9967
|
whiteBalance: 0,
|
|
8882
9968
|
hue: 0,
|
|
8883
9969
|
gain: 0,
|
|
9970
|
+
brightness: 0,
|
|
9971
|
+
contrast: 0,
|
|
9972
|
+
saturation: 0,
|
|
9973
|
+
gamma: 0,
|
|
9974
|
+
sharpness: 0,
|
|
9975
|
+
backlightCompensation: 0,
|
|
9976
|
+
denoise: 0,
|
|
9977
|
+
ehdrEnabled: false,
|
|
9978
|
+
ehdrExposureMinNumber: 0,
|
|
9979
|
+
ehdrExposureMaxNumber: 0,
|
|
8884
9980
|
resolution: 0,
|
|
8885
9981
|
streamResolution: 0,
|
|
8886
9982
|
recordingResolution: 0,
|
|
9983
|
+
streamingProtocol: 0,
|
|
8887
9984
|
framerate: 0,
|
|
8888
9985
|
camera: 0,
|
|
8889
9986
|
};
|
|
@@ -8908,6 +10005,36 @@ exports.CameraParameters = {
|
|
|
8908
10005
|
if (message.gain !== 0) {
|
|
8909
10006
|
writer.uint32(77).float(message.gain);
|
|
8910
10007
|
}
|
|
10008
|
+
if (message.brightness !== 0) {
|
|
10009
|
+
writer.uint32(96).int32(message.brightness);
|
|
10010
|
+
}
|
|
10011
|
+
if (message.contrast !== 0) {
|
|
10012
|
+
writer.uint32(104).int32(message.contrast);
|
|
10013
|
+
}
|
|
10014
|
+
if (message.saturation !== 0) {
|
|
10015
|
+
writer.uint32(112).int32(message.saturation);
|
|
10016
|
+
}
|
|
10017
|
+
if (message.gamma !== 0) {
|
|
10018
|
+
writer.uint32(120).int32(message.gamma);
|
|
10019
|
+
}
|
|
10020
|
+
if (message.sharpness !== 0) {
|
|
10021
|
+
writer.uint32(128).int32(message.sharpness);
|
|
10022
|
+
}
|
|
10023
|
+
if (message.backlightCompensation !== 0) {
|
|
10024
|
+
writer.uint32(136).int32(message.backlightCompensation);
|
|
10025
|
+
}
|
|
10026
|
+
if (message.denoise !== 0) {
|
|
10027
|
+
writer.uint32(144).int32(message.denoise);
|
|
10028
|
+
}
|
|
10029
|
+
if (message.ehdrEnabled !== false) {
|
|
10030
|
+
writer.uint32(168).bool(message.ehdrEnabled);
|
|
10031
|
+
}
|
|
10032
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10033
|
+
writer.uint32(176).int32(message.ehdrExposureMinNumber);
|
|
10034
|
+
}
|
|
10035
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10036
|
+
writer.uint32(184).int32(message.ehdrExposureMaxNumber);
|
|
10037
|
+
}
|
|
8911
10038
|
if (message.resolution !== 0) {
|
|
8912
10039
|
writer.uint32(48).int32(message.resolution);
|
|
8913
10040
|
}
|
|
@@ -8917,6 +10044,9 @@ exports.CameraParameters = {
|
|
|
8917
10044
|
if (message.recordingResolution !== 0) {
|
|
8918
10045
|
writer.uint32(88).int32(message.recordingResolution);
|
|
8919
10046
|
}
|
|
10047
|
+
if (message.streamingProtocol !== 0) {
|
|
10048
|
+
writer.uint32(160).int32(message.streamingProtocol);
|
|
10049
|
+
}
|
|
8920
10050
|
if (message.framerate !== 0) {
|
|
8921
10051
|
writer.uint32(56).int32(message.framerate);
|
|
8922
10052
|
}
|
|
@@ -8974,6 +10104,76 @@ exports.CameraParameters = {
|
|
|
8974
10104
|
message.gain = reader.float();
|
|
8975
10105
|
continue;
|
|
8976
10106
|
}
|
|
10107
|
+
case 12: {
|
|
10108
|
+
if (tag !== 96) {
|
|
10109
|
+
break;
|
|
10110
|
+
}
|
|
10111
|
+
message.brightness = reader.int32();
|
|
10112
|
+
continue;
|
|
10113
|
+
}
|
|
10114
|
+
case 13: {
|
|
10115
|
+
if (tag !== 104) {
|
|
10116
|
+
break;
|
|
10117
|
+
}
|
|
10118
|
+
message.contrast = reader.int32();
|
|
10119
|
+
continue;
|
|
10120
|
+
}
|
|
10121
|
+
case 14: {
|
|
10122
|
+
if (tag !== 112) {
|
|
10123
|
+
break;
|
|
10124
|
+
}
|
|
10125
|
+
message.saturation = reader.int32();
|
|
10126
|
+
continue;
|
|
10127
|
+
}
|
|
10128
|
+
case 15: {
|
|
10129
|
+
if (tag !== 120) {
|
|
10130
|
+
break;
|
|
10131
|
+
}
|
|
10132
|
+
message.gamma = reader.int32();
|
|
10133
|
+
continue;
|
|
10134
|
+
}
|
|
10135
|
+
case 16: {
|
|
10136
|
+
if (tag !== 128) {
|
|
10137
|
+
break;
|
|
10138
|
+
}
|
|
10139
|
+
message.sharpness = reader.int32();
|
|
10140
|
+
continue;
|
|
10141
|
+
}
|
|
10142
|
+
case 17: {
|
|
10143
|
+
if (tag !== 136) {
|
|
10144
|
+
break;
|
|
10145
|
+
}
|
|
10146
|
+
message.backlightCompensation = reader.int32();
|
|
10147
|
+
continue;
|
|
10148
|
+
}
|
|
10149
|
+
case 18: {
|
|
10150
|
+
if (tag !== 144) {
|
|
10151
|
+
break;
|
|
10152
|
+
}
|
|
10153
|
+
message.denoise = reader.int32();
|
|
10154
|
+
continue;
|
|
10155
|
+
}
|
|
10156
|
+
case 21: {
|
|
10157
|
+
if (tag !== 168) {
|
|
10158
|
+
break;
|
|
10159
|
+
}
|
|
10160
|
+
message.ehdrEnabled = reader.bool();
|
|
10161
|
+
continue;
|
|
10162
|
+
}
|
|
10163
|
+
case 22: {
|
|
10164
|
+
if (tag !== 176) {
|
|
10165
|
+
break;
|
|
10166
|
+
}
|
|
10167
|
+
message.ehdrExposureMinNumber = reader.int32();
|
|
10168
|
+
continue;
|
|
10169
|
+
}
|
|
10170
|
+
case 23: {
|
|
10171
|
+
if (tag !== 184) {
|
|
10172
|
+
break;
|
|
10173
|
+
}
|
|
10174
|
+
message.ehdrExposureMaxNumber = reader.int32();
|
|
10175
|
+
continue;
|
|
10176
|
+
}
|
|
8977
10177
|
case 6: {
|
|
8978
10178
|
if (tag !== 48) {
|
|
8979
10179
|
break;
|
|
@@ -8995,6 +10195,13 @@ exports.CameraParameters = {
|
|
|
8995
10195
|
message.recordingResolution = reader.int32();
|
|
8996
10196
|
continue;
|
|
8997
10197
|
}
|
|
10198
|
+
case 20: {
|
|
10199
|
+
if (tag !== 160) {
|
|
10200
|
+
break;
|
|
10201
|
+
}
|
|
10202
|
+
message.streamingProtocol = reader.int32();
|
|
10203
|
+
continue;
|
|
10204
|
+
}
|
|
8998
10205
|
case 7: {
|
|
8999
10206
|
if (tag !== 56) {
|
|
9000
10207
|
break;
|
|
@@ -9025,9 +10232,20 @@ exports.CameraParameters = {
|
|
|
9025
10232
|
whiteBalance: isSet(object.whiteBalance) ? gt.Number(object.whiteBalance) : 0,
|
|
9026
10233
|
hue: isSet(object.hue) ? gt.Number(object.hue) : 0,
|
|
9027
10234
|
gain: isSet(object.gain) ? gt.Number(object.gain) : 0,
|
|
10235
|
+
brightness: isSet(object.brightness) ? gt.Number(object.brightness) : 0,
|
|
10236
|
+
contrast: isSet(object.contrast) ? gt.Number(object.contrast) : 0,
|
|
10237
|
+
saturation: isSet(object.saturation) ? gt.Number(object.saturation) : 0,
|
|
10238
|
+
gamma: isSet(object.gamma) ? gt.Number(object.gamma) : 0,
|
|
10239
|
+
sharpness: isSet(object.sharpness) ? gt.Number(object.sharpness) : 0,
|
|
10240
|
+
backlightCompensation: isSet(object.backlightCompensation) ? gt.Number(object.backlightCompensation) : 0,
|
|
10241
|
+
denoise: isSet(object.denoise) ? gt.Number(object.denoise) : 0,
|
|
10242
|
+
ehdrEnabled: isSet(object.ehdrEnabled) ? gt.Boolean(object.ehdrEnabled) : false,
|
|
10243
|
+
ehdrExposureMinNumber: isSet(object.ehdrExposureMinNumber) ? gt.Number(object.ehdrExposureMinNumber) : 0,
|
|
10244
|
+
ehdrExposureMaxNumber: isSet(object.ehdrExposureMaxNumber) ? gt.Number(object.ehdrExposureMaxNumber) : 0,
|
|
9028
10245
|
resolution: isSet(object.resolution) ? resolutionFromJSON(object.resolution) : 0,
|
|
9029
10246
|
streamResolution: isSet(object.streamResolution) ? resolutionFromJSON(object.streamResolution) : 0,
|
|
9030
10247
|
recordingResolution: isSet(object.recordingResolution) ? resolutionFromJSON(object.recordingResolution) : 0,
|
|
10248
|
+
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
9031
10249
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
9032
10250
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
9033
10251
|
};
|
|
@@ -9052,6 +10270,36 @@ exports.CameraParameters = {
|
|
|
9052
10270
|
if (message.gain !== 0) {
|
|
9053
10271
|
obj.gain = message.gain;
|
|
9054
10272
|
}
|
|
10273
|
+
if (message.brightness !== 0) {
|
|
10274
|
+
obj.brightness = Math.round(message.brightness);
|
|
10275
|
+
}
|
|
10276
|
+
if (message.contrast !== 0) {
|
|
10277
|
+
obj.contrast = Math.round(message.contrast);
|
|
10278
|
+
}
|
|
10279
|
+
if (message.saturation !== 0) {
|
|
10280
|
+
obj.saturation = Math.round(message.saturation);
|
|
10281
|
+
}
|
|
10282
|
+
if (message.gamma !== 0) {
|
|
10283
|
+
obj.gamma = Math.round(message.gamma);
|
|
10284
|
+
}
|
|
10285
|
+
if (message.sharpness !== 0) {
|
|
10286
|
+
obj.sharpness = Math.round(message.sharpness);
|
|
10287
|
+
}
|
|
10288
|
+
if (message.backlightCompensation !== 0) {
|
|
10289
|
+
obj.backlightCompensation = Math.round(message.backlightCompensation);
|
|
10290
|
+
}
|
|
10291
|
+
if (message.denoise !== 0) {
|
|
10292
|
+
obj.denoise = Math.round(message.denoise);
|
|
10293
|
+
}
|
|
10294
|
+
if (message.ehdrEnabled !== false) {
|
|
10295
|
+
obj.ehdrEnabled = message.ehdrEnabled;
|
|
10296
|
+
}
|
|
10297
|
+
if (message.ehdrExposureMinNumber !== 0) {
|
|
10298
|
+
obj.ehdrExposureMinNumber = Math.round(message.ehdrExposureMinNumber);
|
|
10299
|
+
}
|
|
10300
|
+
if (message.ehdrExposureMaxNumber !== 0) {
|
|
10301
|
+
obj.ehdrExposureMaxNumber = Math.round(message.ehdrExposureMaxNumber);
|
|
10302
|
+
}
|
|
9055
10303
|
if (message.resolution !== 0) {
|
|
9056
10304
|
obj.resolution = resolutionToJSON(message.resolution);
|
|
9057
10305
|
}
|
|
@@ -9061,6 +10309,9 @@ exports.CameraParameters = {
|
|
|
9061
10309
|
if (message.recordingResolution !== 0) {
|
|
9062
10310
|
obj.recordingResolution = resolutionToJSON(message.recordingResolution);
|
|
9063
10311
|
}
|
|
10312
|
+
if (message.streamingProtocol !== 0) {
|
|
10313
|
+
obj.streamingProtocol = streamingProtocolToJSON(message.streamingProtocol);
|
|
10314
|
+
}
|
|
9064
10315
|
if (message.framerate !== 0) {
|
|
9065
10316
|
obj.framerate = framerateToJSON(message.framerate);
|
|
9066
10317
|
}
|
|
@@ -9080,9 +10331,20 @@ exports.CameraParameters = {
|
|
|
9080
10331
|
message.whiteBalance = object.whiteBalance ?? 0;
|
|
9081
10332
|
message.hue = object.hue ?? 0;
|
|
9082
10333
|
message.gain = object.gain ?? 0;
|
|
10334
|
+
message.brightness = object.brightness ?? 0;
|
|
10335
|
+
message.contrast = object.contrast ?? 0;
|
|
10336
|
+
message.saturation = object.saturation ?? 0;
|
|
10337
|
+
message.gamma = object.gamma ?? 0;
|
|
10338
|
+
message.sharpness = object.sharpness ?? 0;
|
|
10339
|
+
message.backlightCompensation = object.backlightCompensation ?? 0;
|
|
10340
|
+
message.denoise = object.denoise ?? 0;
|
|
10341
|
+
message.ehdrEnabled = object.ehdrEnabled ?? false;
|
|
10342
|
+
message.ehdrExposureMinNumber = object.ehdrExposureMinNumber ?? 0;
|
|
10343
|
+
message.ehdrExposureMaxNumber = object.ehdrExposureMaxNumber ?? 0;
|
|
9083
10344
|
message.resolution = object.resolution ?? 0;
|
|
9084
10345
|
message.streamResolution = object.streamResolution ?? 0;
|
|
9085
10346
|
message.recordingResolution = object.recordingResolution ?? 0;
|
|
10347
|
+
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
9086
10348
|
message.framerate = object.framerate ?? 0;
|
|
9087
10349
|
message.camera = object.camera ?? 0;
|
|
9088
10350
|
return message;
|
|
@@ -11828,7 +13090,7 @@ exports.PersistentStorageSettings = {
|
|
|
11828
13090
|
},
|
|
11829
13091
|
};
|
|
11830
13092
|
function createBaseCPUInfo() {
|
|
11831
|
-
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0 };
|
|
13093
|
+
return { cpuLoad: 0, memoryBusLoad: 0, mainQueueLoad: 0, guestportQueueLoad: 0, commQueueLoad: 0 };
|
|
11832
13094
|
}
|
|
11833
13095
|
exports.CPUInfo = {
|
|
11834
13096
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -11844,6 +13106,9 @@ exports.CPUInfo = {
|
|
|
11844
13106
|
if (message.guestportQueueLoad !== 0) {
|
|
11845
13107
|
writer.uint32(37).float(message.guestportQueueLoad);
|
|
11846
13108
|
}
|
|
13109
|
+
if (message.commQueueLoad !== 0) {
|
|
13110
|
+
writer.uint32(45).float(message.commQueueLoad);
|
|
13111
|
+
}
|
|
11847
13112
|
return writer;
|
|
11848
13113
|
},
|
|
11849
13114
|
decode(input, length) {
|
|
@@ -11881,6 +13146,13 @@ exports.CPUInfo = {
|
|
|
11881
13146
|
message.guestportQueueLoad = reader.float();
|
|
11882
13147
|
continue;
|
|
11883
13148
|
}
|
|
13149
|
+
case 5: {
|
|
13150
|
+
if (tag !== 45) {
|
|
13151
|
+
break;
|
|
13152
|
+
}
|
|
13153
|
+
message.commQueueLoad = reader.float();
|
|
13154
|
+
continue;
|
|
13155
|
+
}
|
|
11884
13156
|
}
|
|
11885
13157
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11886
13158
|
break;
|
|
@@ -11895,6 +13167,7 @@ exports.CPUInfo = {
|
|
|
11895
13167
|
memoryBusLoad: isSet(object.memoryBusLoad) ? gt.Number(object.memoryBusLoad) : 0,
|
|
11896
13168
|
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
11897
13169
|
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
13170
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
11898
13171
|
};
|
|
11899
13172
|
},
|
|
11900
13173
|
toJSON(message) {
|
|
@@ -11911,6 +13184,9 @@ exports.CPUInfo = {
|
|
|
11911
13184
|
if (message.guestportQueueLoad !== 0) {
|
|
11912
13185
|
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
11913
13186
|
}
|
|
13187
|
+
if (message.commQueueLoad !== 0) {
|
|
13188
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
13189
|
+
}
|
|
11914
13190
|
return obj;
|
|
11915
13191
|
},
|
|
11916
13192
|
create(base) {
|
|
@@ -11922,6 +13198,126 @@ exports.CPUInfo = {
|
|
|
11922
13198
|
message.memoryBusLoad = object.memoryBusLoad ?? 0;
|
|
11923
13199
|
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
11924
13200
|
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
13201
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
13202
|
+
return message;
|
|
13203
|
+
},
|
|
13204
|
+
};
|
|
13205
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
13206
|
+
return { status: 0, level: 0 };
|
|
13207
|
+
}
|
|
13208
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
13209
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13210
|
+
if (message.status !== 0) {
|
|
13211
|
+
writer.uint32(8).int32(message.status);
|
|
13212
|
+
}
|
|
13213
|
+
if (message.level !== 0) {
|
|
13214
|
+
writer.uint32(21).float(message.level);
|
|
13215
|
+
}
|
|
13216
|
+
return writer;
|
|
13217
|
+
},
|
|
13218
|
+
decode(input, length) {
|
|
13219
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13220
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13221
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13222
|
+
while (reader.pos < end) {
|
|
13223
|
+
const tag = reader.uint32();
|
|
13224
|
+
switch (tag >>> 3) {
|
|
13225
|
+
case 1: {
|
|
13226
|
+
if (tag !== 8) {
|
|
13227
|
+
break;
|
|
13228
|
+
}
|
|
13229
|
+
message.status = reader.int32();
|
|
13230
|
+
continue;
|
|
13231
|
+
}
|
|
13232
|
+
case 2: {
|
|
13233
|
+
if (tag !== 21) {
|
|
13234
|
+
break;
|
|
13235
|
+
}
|
|
13236
|
+
message.level = reader.float();
|
|
13237
|
+
continue;
|
|
13238
|
+
}
|
|
13239
|
+
}
|
|
13240
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13241
|
+
break;
|
|
13242
|
+
}
|
|
13243
|
+
reader.skip(tag & 7);
|
|
13244
|
+
}
|
|
13245
|
+
return message;
|
|
13246
|
+
},
|
|
13247
|
+
fromJSON(object) {
|
|
13248
|
+
return {
|
|
13249
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
13250
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
13251
|
+
};
|
|
13252
|
+
},
|
|
13253
|
+
toJSON(message) {
|
|
13254
|
+
const obj = {};
|
|
13255
|
+
if (message.status !== 0) {
|
|
13256
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
13257
|
+
}
|
|
13258
|
+
if (message.level !== 0) {
|
|
13259
|
+
obj.level = message.level;
|
|
13260
|
+
}
|
|
13261
|
+
return obj;
|
|
13262
|
+
},
|
|
13263
|
+
create(base) {
|
|
13264
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
13265
|
+
},
|
|
13266
|
+
fromPartial(object) {
|
|
13267
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
13268
|
+
message.status = object.status ?? 0;
|
|
13269
|
+
message.level = object.level ?? 0;
|
|
13270
|
+
return message;
|
|
13271
|
+
},
|
|
13272
|
+
};
|
|
13273
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
13274
|
+
return { version: "" };
|
|
13275
|
+
}
|
|
13276
|
+
exports.SurfaceUnitVersionInfo = {
|
|
13277
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13278
|
+
if (message.version !== "") {
|
|
13279
|
+
writer.uint32(10).string(message.version);
|
|
13280
|
+
}
|
|
13281
|
+
return writer;
|
|
13282
|
+
},
|
|
13283
|
+
decode(input, length) {
|
|
13284
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13285
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13286
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13287
|
+
while (reader.pos < end) {
|
|
13288
|
+
const tag = reader.uint32();
|
|
13289
|
+
switch (tag >>> 3) {
|
|
13290
|
+
case 1: {
|
|
13291
|
+
if (tag !== 10) {
|
|
13292
|
+
break;
|
|
13293
|
+
}
|
|
13294
|
+
message.version = reader.string();
|
|
13295
|
+
continue;
|
|
13296
|
+
}
|
|
13297
|
+
}
|
|
13298
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13299
|
+
break;
|
|
13300
|
+
}
|
|
13301
|
+
reader.skip(tag & 7);
|
|
13302
|
+
}
|
|
13303
|
+
return message;
|
|
13304
|
+
},
|
|
13305
|
+
fromJSON(object) {
|
|
13306
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
13307
|
+
},
|
|
13308
|
+
toJSON(message) {
|
|
13309
|
+
const obj = {};
|
|
13310
|
+
if (message.version !== "") {
|
|
13311
|
+
obj.version = message.version;
|
|
13312
|
+
}
|
|
13313
|
+
return obj;
|
|
13314
|
+
},
|
|
13315
|
+
create(base) {
|
|
13316
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
13317
|
+
},
|
|
13318
|
+
fromPartial(object) {
|
|
13319
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
13320
|
+
message.version = object.version ?? "";
|
|
11925
13321
|
return message;
|
|
11926
13322
|
},
|
|
11927
13323
|
};
|