@blueyerobotics/protocol-definitions 3.2.0-8a0f8e61 → 3.2.0-9615ba25
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/README.md +40 -0
- package/dist/aquatroll.d.ts +2 -8
- package/dist/control.d.ts +13 -8
- package/dist/control.js +38 -1
- package/dist/google/protobuf/any.d.ts +2 -8
- package/dist/google/protobuf/duration.d.ts +2 -8
- package/dist/google/protobuf/timestamp.d.ts +2 -8
- package/dist/message_formats.d.ts +105 -10
- package/dist/message_formats.js +644 -5
- package/dist/mission_planning.d.ts +2 -8
- package/dist/req_rep.d.ts +2 -8
- package/dist/telemetry.d.ts +12 -10
- package/dist/telemetry.js +78 -4
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: message_formats.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = void 0;
|
|
8
|
+
exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.LogEntry = exports.BinlogRecord = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = void 0;
|
|
10
|
+
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -54,10 +54,14 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
54
54
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
55
55
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
56
56
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
57
|
+
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
58
|
+
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
57
59
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
58
60
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
59
61
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
60
62
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON;
|
|
63
|
+
exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFromJSON;
|
|
64
|
+
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
61
65
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
62
66
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
63
67
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
@@ -1172,6 +1176,8 @@ var GuestPortDeviceID;
|
|
|
1172
1176
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15"] = 43] = "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1173
1177
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
|
|
1174
1178
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650"] = 44] = "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1179
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
|
|
1180
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1175
1181
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1176
1182
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1177
1183
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1311,6 +1317,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1311
1317
|
case 44:
|
|
1312
1318
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650":
|
|
1313
1319
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650;
|
|
1320
|
+
case 45:
|
|
1321
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE":
|
|
1322
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE;
|
|
1314
1323
|
case -1:
|
|
1315
1324
|
case "UNRECOGNIZED":
|
|
1316
1325
|
default:
|
|
@@ -1409,6 +1418,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1409
1418
|
return "GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15";
|
|
1410
1419
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650:
|
|
1411
1420
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650";
|
|
1421
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE:
|
|
1422
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1412
1423
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1413
1424
|
default:
|
|
1414
1425
|
return "UNRECOGNIZED";
|
|
@@ -1685,6 +1696,74 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1685
1696
|
return "UNRECOGNIZED";
|
|
1686
1697
|
}
|
|
1687
1698
|
}
|
|
1699
|
+
var LogEntry_LogLevel;
|
|
1700
|
+
(function (LogEntry_LogLevel) {
|
|
1701
|
+
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1702
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
|
|
1703
|
+
/** LOG_LEVEL_TRACE - Trace log level. */
|
|
1704
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
|
|
1705
|
+
/** LOG_LEVEL_DEBUG - Debug log level. */
|
|
1706
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
|
|
1707
|
+
/** LOG_LEVEL_INFO - Info log level. */
|
|
1708
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
|
|
1709
|
+
/** LOG_LEVEL_WARNING - Warning log level. */
|
|
1710
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
|
|
1711
|
+
/** LOG_LEVEL_ERROR - Error log level. */
|
|
1712
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
|
|
1713
|
+
/** LOG_LEVEL_CRITICAL - Critical log level. */
|
|
1714
|
+
LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
|
|
1715
|
+
LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1716
|
+
})(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
|
|
1717
|
+
function logEntry_LogLevelFromJSON(object) {
|
|
1718
|
+
switch (object) {
|
|
1719
|
+
case 0:
|
|
1720
|
+
case "LOG_LEVEL_UNSPECIFIED":
|
|
1721
|
+
return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
|
|
1722
|
+
case 1:
|
|
1723
|
+
case "LOG_LEVEL_TRACE":
|
|
1724
|
+
return LogEntry_LogLevel.LOG_LEVEL_TRACE;
|
|
1725
|
+
case 2:
|
|
1726
|
+
case "LOG_LEVEL_DEBUG":
|
|
1727
|
+
return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
|
|
1728
|
+
case 3:
|
|
1729
|
+
case "LOG_LEVEL_INFO":
|
|
1730
|
+
return LogEntry_LogLevel.LOG_LEVEL_INFO;
|
|
1731
|
+
case 4:
|
|
1732
|
+
case "LOG_LEVEL_WARNING":
|
|
1733
|
+
return LogEntry_LogLevel.LOG_LEVEL_WARNING;
|
|
1734
|
+
case 5:
|
|
1735
|
+
case "LOG_LEVEL_ERROR":
|
|
1736
|
+
return LogEntry_LogLevel.LOG_LEVEL_ERROR;
|
|
1737
|
+
case 6:
|
|
1738
|
+
case "LOG_LEVEL_CRITICAL":
|
|
1739
|
+
return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
|
|
1740
|
+
case -1:
|
|
1741
|
+
case "UNRECOGNIZED":
|
|
1742
|
+
default:
|
|
1743
|
+
return LogEntry_LogLevel.UNRECOGNIZED;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
function logEntry_LogLevelToJSON(object) {
|
|
1747
|
+
switch (object) {
|
|
1748
|
+
case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
|
|
1749
|
+
return "LOG_LEVEL_UNSPECIFIED";
|
|
1750
|
+
case LogEntry_LogLevel.LOG_LEVEL_TRACE:
|
|
1751
|
+
return "LOG_LEVEL_TRACE";
|
|
1752
|
+
case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
|
|
1753
|
+
return "LOG_LEVEL_DEBUG";
|
|
1754
|
+
case LogEntry_LogLevel.LOG_LEVEL_INFO:
|
|
1755
|
+
return "LOG_LEVEL_INFO";
|
|
1756
|
+
case LogEntry_LogLevel.LOG_LEVEL_WARNING:
|
|
1757
|
+
return "LOG_LEVEL_WARNING";
|
|
1758
|
+
case LogEntry_LogLevel.LOG_LEVEL_ERROR:
|
|
1759
|
+
return "LOG_LEVEL_ERROR";
|
|
1760
|
+
case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
|
|
1761
|
+
return "LOG_LEVEL_CRITICAL";
|
|
1762
|
+
case LogEntry_LogLevel.UNRECOGNIZED:
|
|
1763
|
+
default:
|
|
1764
|
+
return "UNRECOGNIZED";
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1688
1767
|
var PingerConfiguration_MountingDirection;
|
|
1689
1768
|
(function (PingerConfiguration_MountingDirection) {
|
|
1690
1769
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -1799,10 +1878,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1799
1878
|
return "UNRECOGNIZED";
|
|
1800
1879
|
}
|
|
1801
1880
|
}
|
|
1881
|
+
/** Overall status of the storage device. */
|
|
1882
|
+
var RemovableStorageDevice_Status;
|
|
1883
|
+
(function (RemovableStorageDevice_Status) {
|
|
1884
|
+
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
1885
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
1886
|
+
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1887
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
1888
|
+
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
1889
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
1890
|
+
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1891
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
1892
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1893
|
+
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
1894
|
+
function removableStorageDevice_StatusFromJSON(object) {
|
|
1895
|
+
switch (object) {
|
|
1896
|
+
case 0:
|
|
1897
|
+
case "STATUS_UNSPECIFIED":
|
|
1898
|
+
return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
|
|
1899
|
+
case 1:
|
|
1900
|
+
case "STATUS_READY":
|
|
1901
|
+
return RemovableStorageDevice_Status.STATUS_READY;
|
|
1902
|
+
case 2:
|
|
1903
|
+
case "STATUS_FORMATTING":
|
|
1904
|
+
return RemovableStorageDevice_Status.STATUS_FORMATTING;
|
|
1905
|
+
case 3:
|
|
1906
|
+
case "STATUS_ERROR":
|
|
1907
|
+
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
1908
|
+
case -1:
|
|
1909
|
+
case "UNRECOGNIZED":
|
|
1910
|
+
default:
|
|
1911
|
+
return RemovableStorageDevice_Status.UNRECOGNIZED;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
function removableStorageDevice_StatusToJSON(object) {
|
|
1915
|
+
switch (object) {
|
|
1916
|
+
case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
|
|
1917
|
+
return "STATUS_UNSPECIFIED";
|
|
1918
|
+
case RemovableStorageDevice_Status.STATUS_READY:
|
|
1919
|
+
return "STATUS_READY";
|
|
1920
|
+
case RemovableStorageDevice_Status.STATUS_FORMATTING:
|
|
1921
|
+
return "STATUS_FORMATTING";
|
|
1922
|
+
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
1923
|
+
return "STATUS_ERROR";
|
|
1924
|
+
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
1925
|
+
default:
|
|
1926
|
+
return "UNRECOGNIZED";
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1802
1929
|
/**
|
|
1803
1930
|
* Status of the compass calibration procedure.
|
|
1804
1931
|
*
|
|
1805
|
-
* When calibration is started, the status will indicate the active (
|
|
1932
|
+
* When calibration is started, the status will indicate the active (up facing) axis.
|
|
1806
1933
|
*/
|
|
1807
1934
|
var CalibrationState_Status;
|
|
1808
1935
|
(function (CalibrationState_Status) {
|
|
@@ -1824,7 +1951,7 @@ var CalibrationState_Status;
|
|
|
1824
1951
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1825
1952
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1826
1953
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1827
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
1954
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
|
|
1828
1955
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1829
1956
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1830
1957
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -2100,6 +2227,149 @@ exports.BinlogRecord = {
|
|
|
2100
2227
|
return message;
|
|
2101
2228
|
},
|
|
2102
2229
|
};
|
|
2230
|
+
function createBaseLogEntry() {
|
|
2231
|
+
return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
|
|
2232
|
+
}
|
|
2233
|
+
exports.LogEntry = {
|
|
2234
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2235
|
+
if (message.timestamp !== undefined) {
|
|
2236
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
2237
|
+
}
|
|
2238
|
+
if (message.processName !== "") {
|
|
2239
|
+
writer.uint32(18).string(message.processName);
|
|
2240
|
+
}
|
|
2241
|
+
if (message.processId !== 0) {
|
|
2242
|
+
writer.uint32(24).uint64(message.processId);
|
|
2243
|
+
}
|
|
2244
|
+
if (message.threadId !== 0) {
|
|
2245
|
+
writer.uint32(32).uint64(message.threadId);
|
|
2246
|
+
}
|
|
2247
|
+
if (message.source !== "") {
|
|
2248
|
+
writer.uint32(42).string(message.source);
|
|
2249
|
+
}
|
|
2250
|
+
if (message.level !== 0) {
|
|
2251
|
+
writer.uint32(48).int32(message.level);
|
|
2252
|
+
}
|
|
2253
|
+
if (message.message !== "") {
|
|
2254
|
+
writer.uint32(58).string(message.message);
|
|
2255
|
+
}
|
|
2256
|
+
return writer;
|
|
2257
|
+
},
|
|
2258
|
+
decode(input, length) {
|
|
2259
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2260
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2261
|
+
const message = createBaseLogEntry();
|
|
2262
|
+
while (reader.pos < end) {
|
|
2263
|
+
const tag = reader.uint32();
|
|
2264
|
+
switch (tag >>> 3) {
|
|
2265
|
+
case 1: {
|
|
2266
|
+
if (tag !== 10) {
|
|
2267
|
+
break;
|
|
2268
|
+
}
|
|
2269
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2270
|
+
continue;
|
|
2271
|
+
}
|
|
2272
|
+
case 2: {
|
|
2273
|
+
if (tag !== 18) {
|
|
2274
|
+
break;
|
|
2275
|
+
}
|
|
2276
|
+
message.processName = reader.string();
|
|
2277
|
+
continue;
|
|
2278
|
+
}
|
|
2279
|
+
case 3: {
|
|
2280
|
+
if (tag !== 24) {
|
|
2281
|
+
break;
|
|
2282
|
+
}
|
|
2283
|
+
message.processId = longToNumber(reader.uint64());
|
|
2284
|
+
continue;
|
|
2285
|
+
}
|
|
2286
|
+
case 4: {
|
|
2287
|
+
if (tag !== 32) {
|
|
2288
|
+
break;
|
|
2289
|
+
}
|
|
2290
|
+
message.threadId = longToNumber(reader.uint64());
|
|
2291
|
+
continue;
|
|
2292
|
+
}
|
|
2293
|
+
case 5: {
|
|
2294
|
+
if (tag !== 42) {
|
|
2295
|
+
break;
|
|
2296
|
+
}
|
|
2297
|
+
message.source = reader.string();
|
|
2298
|
+
continue;
|
|
2299
|
+
}
|
|
2300
|
+
case 6: {
|
|
2301
|
+
if (tag !== 48) {
|
|
2302
|
+
break;
|
|
2303
|
+
}
|
|
2304
|
+
message.level = reader.int32();
|
|
2305
|
+
continue;
|
|
2306
|
+
}
|
|
2307
|
+
case 7: {
|
|
2308
|
+
if (tag !== 58) {
|
|
2309
|
+
break;
|
|
2310
|
+
}
|
|
2311
|
+
message.message = reader.string();
|
|
2312
|
+
continue;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2316
|
+
break;
|
|
2317
|
+
}
|
|
2318
|
+
reader.skip(tag & 7);
|
|
2319
|
+
}
|
|
2320
|
+
return message;
|
|
2321
|
+
},
|
|
2322
|
+
fromJSON(object) {
|
|
2323
|
+
return {
|
|
2324
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2325
|
+
processName: isSet(object.processName) ? gt.String(object.processName) : "",
|
|
2326
|
+
processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
|
|
2327
|
+
threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
|
|
2328
|
+
source: isSet(object.source) ? gt.String(object.source) : "",
|
|
2329
|
+
level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
|
|
2330
|
+
message: isSet(object.message) ? gt.String(object.message) : "",
|
|
2331
|
+
};
|
|
2332
|
+
},
|
|
2333
|
+
toJSON(message) {
|
|
2334
|
+
const obj = {};
|
|
2335
|
+
if (message.timestamp !== undefined) {
|
|
2336
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2337
|
+
}
|
|
2338
|
+
if (message.processName !== "") {
|
|
2339
|
+
obj.processName = message.processName;
|
|
2340
|
+
}
|
|
2341
|
+
if (message.processId !== 0) {
|
|
2342
|
+
obj.processId = Math.round(message.processId);
|
|
2343
|
+
}
|
|
2344
|
+
if (message.threadId !== 0) {
|
|
2345
|
+
obj.threadId = Math.round(message.threadId);
|
|
2346
|
+
}
|
|
2347
|
+
if (message.source !== "") {
|
|
2348
|
+
obj.source = message.source;
|
|
2349
|
+
}
|
|
2350
|
+
if (message.level !== 0) {
|
|
2351
|
+
obj.level = logEntry_LogLevelToJSON(message.level);
|
|
2352
|
+
}
|
|
2353
|
+
if (message.message !== "") {
|
|
2354
|
+
obj.message = message.message;
|
|
2355
|
+
}
|
|
2356
|
+
return obj;
|
|
2357
|
+
},
|
|
2358
|
+
create(base) {
|
|
2359
|
+
return exports.LogEntry.fromPartial(base ?? {});
|
|
2360
|
+
},
|
|
2361
|
+
fromPartial(object) {
|
|
2362
|
+
const message = createBaseLogEntry();
|
|
2363
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2364
|
+
message.processName = object.processName ?? "";
|
|
2365
|
+
message.processId = object.processId ?? 0;
|
|
2366
|
+
message.threadId = object.threadId ?? 0;
|
|
2367
|
+
message.source = object.source ?? "";
|
|
2368
|
+
message.level = object.level ?? 0;
|
|
2369
|
+
message.message = object.message ?? "";
|
|
2370
|
+
return message;
|
|
2371
|
+
},
|
|
2372
|
+
};
|
|
2103
2373
|
function createBaseMotionInput() {
|
|
2104
2374
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2105
2375
|
}
|
|
@@ -7456,6 +7726,375 @@ exports.StorageSpace = {
|
|
|
7456
7726
|
return message;
|
|
7457
7727
|
},
|
|
7458
7728
|
};
|
|
7729
|
+
function createBaseStoragePartition() {
|
|
7730
|
+
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
7731
|
+
}
|
|
7732
|
+
exports.StoragePartition = {
|
|
7733
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7734
|
+
if (message.storageSpace !== undefined) {
|
|
7735
|
+
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
7736
|
+
}
|
|
7737
|
+
if (message.fileSystemType !== "") {
|
|
7738
|
+
writer.uint32(18).string(message.fileSystemType);
|
|
7739
|
+
}
|
|
7740
|
+
if (message.devicePath !== "") {
|
|
7741
|
+
writer.uint32(26).string(message.devicePath);
|
|
7742
|
+
}
|
|
7743
|
+
if (message.mountPath !== "") {
|
|
7744
|
+
writer.uint32(34).string(message.mountPath);
|
|
7745
|
+
}
|
|
7746
|
+
return writer;
|
|
7747
|
+
},
|
|
7748
|
+
decode(input, length) {
|
|
7749
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7750
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7751
|
+
const message = createBaseStoragePartition();
|
|
7752
|
+
while (reader.pos < end) {
|
|
7753
|
+
const tag = reader.uint32();
|
|
7754
|
+
switch (tag >>> 3) {
|
|
7755
|
+
case 1: {
|
|
7756
|
+
if (tag !== 10) {
|
|
7757
|
+
break;
|
|
7758
|
+
}
|
|
7759
|
+
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
7760
|
+
continue;
|
|
7761
|
+
}
|
|
7762
|
+
case 2: {
|
|
7763
|
+
if (tag !== 18) {
|
|
7764
|
+
break;
|
|
7765
|
+
}
|
|
7766
|
+
message.fileSystemType = reader.string();
|
|
7767
|
+
continue;
|
|
7768
|
+
}
|
|
7769
|
+
case 3: {
|
|
7770
|
+
if (tag !== 26) {
|
|
7771
|
+
break;
|
|
7772
|
+
}
|
|
7773
|
+
message.devicePath = reader.string();
|
|
7774
|
+
continue;
|
|
7775
|
+
}
|
|
7776
|
+
case 4: {
|
|
7777
|
+
if (tag !== 34) {
|
|
7778
|
+
break;
|
|
7779
|
+
}
|
|
7780
|
+
message.mountPath = reader.string();
|
|
7781
|
+
continue;
|
|
7782
|
+
}
|
|
7783
|
+
}
|
|
7784
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7785
|
+
break;
|
|
7786
|
+
}
|
|
7787
|
+
reader.skip(tag & 7);
|
|
7788
|
+
}
|
|
7789
|
+
return message;
|
|
7790
|
+
},
|
|
7791
|
+
fromJSON(object) {
|
|
7792
|
+
return {
|
|
7793
|
+
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
7794
|
+
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7795
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7796
|
+
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
7797
|
+
};
|
|
7798
|
+
},
|
|
7799
|
+
toJSON(message) {
|
|
7800
|
+
const obj = {};
|
|
7801
|
+
if (message.storageSpace !== undefined) {
|
|
7802
|
+
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
7803
|
+
}
|
|
7804
|
+
if (message.fileSystemType !== "") {
|
|
7805
|
+
obj.fileSystemType = message.fileSystemType;
|
|
7806
|
+
}
|
|
7807
|
+
if (message.devicePath !== "") {
|
|
7808
|
+
obj.devicePath = message.devicePath;
|
|
7809
|
+
}
|
|
7810
|
+
if (message.mountPath !== "") {
|
|
7811
|
+
obj.mountPath = message.mountPath;
|
|
7812
|
+
}
|
|
7813
|
+
return obj;
|
|
7814
|
+
},
|
|
7815
|
+
create(base) {
|
|
7816
|
+
return exports.StoragePartition.fromPartial(base ?? {});
|
|
7817
|
+
},
|
|
7818
|
+
fromPartial(object) {
|
|
7819
|
+
const message = createBaseStoragePartition();
|
|
7820
|
+
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
7821
|
+
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
7822
|
+
: undefined;
|
|
7823
|
+
message.fileSystemType = object.fileSystemType ?? "";
|
|
7824
|
+
message.devicePath = object.devicePath ?? "";
|
|
7825
|
+
message.mountPath = object.mountPath ?? "";
|
|
7826
|
+
return message;
|
|
7827
|
+
},
|
|
7828
|
+
};
|
|
7829
|
+
function createBaseRemovableStorageDevice() {
|
|
7830
|
+
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
7831
|
+
}
|
|
7832
|
+
exports.RemovableStorageDevice = {
|
|
7833
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7834
|
+
if (message.vendorName !== "") {
|
|
7835
|
+
writer.uint32(10).string(message.vendorName);
|
|
7836
|
+
}
|
|
7837
|
+
if (message.modelName !== "") {
|
|
7838
|
+
writer.uint32(18).string(message.modelName);
|
|
7839
|
+
}
|
|
7840
|
+
if (message.devicePath !== "") {
|
|
7841
|
+
writer.uint32(26).string(message.devicePath);
|
|
7842
|
+
}
|
|
7843
|
+
if (message.status !== 0) {
|
|
7844
|
+
writer.uint32(32).int32(message.status);
|
|
7845
|
+
}
|
|
7846
|
+
if (message.errorFlags !== undefined) {
|
|
7847
|
+
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
7848
|
+
}
|
|
7849
|
+
for (const v of message.partitions) {
|
|
7850
|
+
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
7851
|
+
}
|
|
7852
|
+
return writer;
|
|
7853
|
+
},
|
|
7854
|
+
decode(input, length) {
|
|
7855
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7856
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7857
|
+
const message = createBaseRemovableStorageDevice();
|
|
7858
|
+
while (reader.pos < end) {
|
|
7859
|
+
const tag = reader.uint32();
|
|
7860
|
+
switch (tag >>> 3) {
|
|
7861
|
+
case 1: {
|
|
7862
|
+
if (tag !== 10) {
|
|
7863
|
+
break;
|
|
7864
|
+
}
|
|
7865
|
+
message.vendorName = reader.string();
|
|
7866
|
+
continue;
|
|
7867
|
+
}
|
|
7868
|
+
case 2: {
|
|
7869
|
+
if (tag !== 18) {
|
|
7870
|
+
break;
|
|
7871
|
+
}
|
|
7872
|
+
message.modelName = reader.string();
|
|
7873
|
+
continue;
|
|
7874
|
+
}
|
|
7875
|
+
case 3: {
|
|
7876
|
+
if (tag !== 26) {
|
|
7877
|
+
break;
|
|
7878
|
+
}
|
|
7879
|
+
message.devicePath = reader.string();
|
|
7880
|
+
continue;
|
|
7881
|
+
}
|
|
7882
|
+
case 4: {
|
|
7883
|
+
if (tag !== 32) {
|
|
7884
|
+
break;
|
|
7885
|
+
}
|
|
7886
|
+
message.status = reader.int32();
|
|
7887
|
+
continue;
|
|
7888
|
+
}
|
|
7889
|
+
case 5: {
|
|
7890
|
+
if (tag !== 42) {
|
|
7891
|
+
break;
|
|
7892
|
+
}
|
|
7893
|
+
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
7894
|
+
continue;
|
|
7895
|
+
}
|
|
7896
|
+
case 6: {
|
|
7897
|
+
if (tag !== 50) {
|
|
7898
|
+
break;
|
|
7899
|
+
}
|
|
7900
|
+
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
7901
|
+
continue;
|
|
7902
|
+
}
|
|
7903
|
+
}
|
|
7904
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7905
|
+
break;
|
|
7906
|
+
}
|
|
7907
|
+
reader.skip(tag & 7);
|
|
7908
|
+
}
|
|
7909
|
+
return message;
|
|
7910
|
+
},
|
|
7911
|
+
fromJSON(object) {
|
|
7912
|
+
return {
|
|
7913
|
+
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
7914
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
7915
|
+
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7916
|
+
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
7917
|
+
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
7918
|
+
partitions: gt.Array.isArray(object?.partitions)
|
|
7919
|
+
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
7920
|
+
: [],
|
|
7921
|
+
};
|
|
7922
|
+
},
|
|
7923
|
+
toJSON(message) {
|
|
7924
|
+
const obj = {};
|
|
7925
|
+
if (message.vendorName !== "") {
|
|
7926
|
+
obj.vendorName = message.vendorName;
|
|
7927
|
+
}
|
|
7928
|
+
if (message.modelName !== "") {
|
|
7929
|
+
obj.modelName = message.modelName;
|
|
7930
|
+
}
|
|
7931
|
+
if (message.devicePath !== "") {
|
|
7932
|
+
obj.devicePath = message.devicePath;
|
|
7933
|
+
}
|
|
7934
|
+
if (message.status !== 0) {
|
|
7935
|
+
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
7936
|
+
}
|
|
7937
|
+
if (message.errorFlags !== undefined) {
|
|
7938
|
+
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
7939
|
+
}
|
|
7940
|
+
if (message.partitions?.length) {
|
|
7941
|
+
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
7942
|
+
}
|
|
7943
|
+
return obj;
|
|
7944
|
+
},
|
|
7945
|
+
create(base) {
|
|
7946
|
+
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
7947
|
+
},
|
|
7948
|
+
fromPartial(object) {
|
|
7949
|
+
const message = createBaseRemovableStorageDevice();
|
|
7950
|
+
message.vendorName = object.vendorName ?? "";
|
|
7951
|
+
message.modelName = object.modelName ?? "";
|
|
7952
|
+
message.devicePath = object.devicePath ?? "";
|
|
7953
|
+
message.status = object.status ?? 0;
|
|
7954
|
+
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
7955
|
+
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
7956
|
+
: undefined;
|
|
7957
|
+
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
7958
|
+
return message;
|
|
7959
|
+
},
|
|
7960
|
+
};
|
|
7961
|
+
function createBaseRemovableStorageErrorFlags() {
|
|
7962
|
+
return {
|
|
7963
|
+
errorMessage: "",
|
|
7964
|
+
noPartitionsFound: false,
|
|
7965
|
+
multiplePartitionsFound: false,
|
|
7966
|
+
wrongFileSystemFound: false,
|
|
7967
|
+
deviceIsReadOnly: false,
|
|
7968
|
+
formattingFailed: false,
|
|
7969
|
+
};
|
|
7970
|
+
}
|
|
7971
|
+
exports.RemovableStorageErrorFlags = {
|
|
7972
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7973
|
+
if (message.errorMessage !== "") {
|
|
7974
|
+
writer.uint32(10).string(message.errorMessage);
|
|
7975
|
+
}
|
|
7976
|
+
if (message.noPartitionsFound !== false) {
|
|
7977
|
+
writer.uint32(16).bool(message.noPartitionsFound);
|
|
7978
|
+
}
|
|
7979
|
+
if (message.multiplePartitionsFound !== false) {
|
|
7980
|
+
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
7981
|
+
}
|
|
7982
|
+
if (message.wrongFileSystemFound !== false) {
|
|
7983
|
+
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
7984
|
+
}
|
|
7985
|
+
if (message.deviceIsReadOnly !== false) {
|
|
7986
|
+
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
7987
|
+
}
|
|
7988
|
+
if (message.formattingFailed !== false) {
|
|
7989
|
+
writer.uint32(48).bool(message.formattingFailed);
|
|
7990
|
+
}
|
|
7991
|
+
return writer;
|
|
7992
|
+
},
|
|
7993
|
+
decode(input, length) {
|
|
7994
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7995
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7996
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
7997
|
+
while (reader.pos < end) {
|
|
7998
|
+
const tag = reader.uint32();
|
|
7999
|
+
switch (tag >>> 3) {
|
|
8000
|
+
case 1: {
|
|
8001
|
+
if (tag !== 10) {
|
|
8002
|
+
break;
|
|
8003
|
+
}
|
|
8004
|
+
message.errorMessage = reader.string();
|
|
8005
|
+
continue;
|
|
8006
|
+
}
|
|
8007
|
+
case 2: {
|
|
8008
|
+
if (tag !== 16) {
|
|
8009
|
+
break;
|
|
8010
|
+
}
|
|
8011
|
+
message.noPartitionsFound = reader.bool();
|
|
8012
|
+
continue;
|
|
8013
|
+
}
|
|
8014
|
+
case 3: {
|
|
8015
|
+
if (tag !== 24) {
|
|
8016
|
+
break;
|
|
8017
|
+
}
|
|
8018
|
+
message.multiplePartitionsFound = reader.bool();
|
|
8019
|
+
continue;
|
|
8020
|
+
}
|
|
8021
|
+
case 4: {
|
|
8022
|
+
if (tag !== 32) {
|
|
8023
|
+
break;
|
|
8024
|
+
}
|
|
8025
|
+
message.wrongFileSystemFound = reader.bool();
|
|
8026
|
+
continue;
|
|
8027
|
+
}
|
|
8028
|
+
case 5: {
|
|
8029
|
+
if (tag !== 40) {
|
|
8030
|
+
break;
|
|
8031
|
+
}
|
|
8032
|
+
message.deviceIsReadOnly = reader.bool();
|
|
8033
|
+
continue;
|
|
8034
|
+
}
|
|
8035
|
+
case 6: {
|
|
8036
|
+
if (tag !== 48) {
|
|
8037
|
+
break;
|
|
8038
|
+
}
|
|
8039
|
+
message.formattingFailed = reader.bool();
|
|
8040
|
+
continue;
|
|
8041
|
+
}
|
|
8042
|
+
}
|
|
8043
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8044
|
+
break;
|
|
8045
|
+
}
|
|
8046
|
+
reader.skip(tag & 7);
|
|
8047
|
+
}
|
|
8048
|
+
return message;
|
|
8049
|
+
},
|
|
8050
|
+
fromJSON(object) {
|
|
8051
|
+
return {
|
|
8052
|
+
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
8053
|
+
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
8054
|
+
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
8055
|
+
? gt.Boolean(object.multiplePartitionsFound)
|
|
8056
|
+
: false,
|
|
8057
|
+
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
8058
|
+
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
8059
|
+
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
8060
|
+
};
|
|
8061
|
+
},
|
|
8062
|
+
toJSON(message) {
|
|
8063
|
+
const obj = {};
|
|
8064
|
+
if (message.errorMessage !== "") {
|
|
8065
|
+
obj.errorMessage = message.errorMessage;
|
|
8066
|
+
}
|
|
8067
|
+
if (message.noPartitionsFound !== false) {
|
|
8068
|
+
obj.noPartitionsFound = message.noPartitionsFound;
|
|
8069
|
+
}
|
|
8070
|
+
if (message.multiplePartitionsFound !== false) {
|
|
8071
|
+
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
8072
|
+
}
|
|
8073
|
+
if (message.wrongFileSystemFound !== false) {
|
|
8074
|
+
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
8075
|
+
}
|
|
8076
|
+
if (message.deviceIsReadOnly !== false) {
|
|
8077
|
+
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
8078
|
+
}
|
|
8079
|
+
if (message.formattingFailed !== false) {
|
|
8080
|
+
obj.formattingFailed = message.formattingFailed;
|
|
8081
|
+
}
|
|
8082
|
+
return obj;
|
|
8083
|
+
},
|
|
8084
|
+
create(base) {
|
|
8085
|
+
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
8086
|
+
},
|
|
8087
|
+
fromPartial(object) {
|
|
8088
|
+
const message = createBaseRemovableStorageErrorFlags();
|
|
8089
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
8090
|
+
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
8091
|
+
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
8092
|
+
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
8093
|
+
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
8094
|
+
message.formattingFailed = object.formattingFailed ?? false;
|
|
8095
|
+
return message;
|
|
8096
|
+
},
|
|
8097
|
+
};
|
|
7459
8098
|
function createBaseCalibrationState() {
|
|
7460
8099
|
return {
|
|
7461
8100
|
status: 0,
|