@blueyerobotics/protocol-definitions 3.2.0-9a7703f5 → 3.2.0-c785049b

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.
@@ -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.WaterDensity = exports.TimeLapseState = exports.RecordState = 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.BinlogRecord = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = 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.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = 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.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 = 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 = 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;
@@ -1685,6 +1689,74 @@ function multibeamFrequencyModeToJSON(object) {
1685
1689
  return "UNRECOGNIZED";
1686
1690
  }
1687
1691
  }
1692
+ var LogEntry_LogLevel;
1693
+ (function (LogEntry_LogLevel) {
1694
+ /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
1695
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_UNSPECIFIED"] = 0] = "LOG_LEVEL_UNSPECIFIED";
1696
+ /** LOG_LEVEL_TRACE - Trace log level. */
1697
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_TRACE"] = 1] = "LOG_LEVEL_TRACE";
1698
+ /** LOG_LEVEL_DEBUG - Debug log level. */
1699
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_DEBUG"] = 2] = "LOG_LEVEL_DEBUG";
1700
+ /** LOG_LEVEL_INFO - Info log level. */
1701
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_INFO"] = 3] = "LOG_LEVEL_INFO";
1702
+ /** LOG_LEVEL_WARNING - Warning log level. */
1703
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_WARNING"] = 4] = "LOG_LEVEL_WARNING";
1704
+ /** LOG_LEVEL_ERROR - Error log level. */
1705
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_ERROR"] = 5] = "LOG_LEVEL_ERROR";
1706
+ /** LOG_LEVEL_CRITICAL - Critical log level. */
1707
+ LogEntry_LogLevel[LogEntry_LogLevel["LOG_LEVEL_CRITICAL"] = 6] = "LOG_LEVEL_CRITICAL";
1708
+ LogEntry_LogLevel[LogEntry_LogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1709
+ })(LogEntry_LogLevel || (exports.LogEntry_LogLevel = LogEntry_LogLevel = {}));
1710
+ function logEntry_LogLevelFromJSON(object) {
1711
+ switch (object) {
1712
+ case 0:
1713
+ case "LOG_LEVEL_UNSPECIFIED":
1714
+ return LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED;
1715
+ case 1:
1716
+ case "LOG_LEVEL_TRACE":
1717
+ return LogEntry_LogLevel.LOG_LEVEL_TRACE;
1718
+ case 2:
1719
+ case "LOG_LEVEL_DEBUG":
1720
+ return LogEntry_LogLevel.LOG_LEVEL_DEBUG;
1721
+ case 3:
1722
+ case "LOG_LEVEL_INFO":
1723
+ return LogEntry_LogLevel.LOG_LEVEL_INFO;
1724
+ case 4:
1725
+ case "LOG_LEVEL_WARNING":
1726
+ return LogEntry_LogLevel.LOG_LEVEL_WARNING;
1727
+ case 5:
1728
+ case "LOG_LEVEL_ERROR":
1729
+ return LogEntry_LogLevel.LOG_LEVEL_ERROR;
1730
+ case 6:
1731
+ case "LOG_LEVEL_CRITICAL":
1732
+ return LogEntry_LogLevel.LOG_LEVEL_CRITICAL;
1733
+ case -1:
1734
+ case "UNRECOGNIZED":
1735
+ default:
1736
+ return LogEntry_LogLevel.UNRECOGNIZED;
1737
+ }
1738
+ }
1739
+ function logEntry_LogLevelToJSON(object) {
1740
+ switch (object) {
1741
+ case LogEntry_LogLevel.LOG_LEVEL_UNSPECIFIED:
1742
+ return "LOG_LEVEL_UNSPECIFIED";
1743
+ case LogEntry_LogLevel.LOG_LEVEL_TRACE:
1744
+ return "LOG_LEVEL_TRACE";
1745
+ case LogEntry_LogLevel.LOG_LEVEL_DEBUG:
1746
+ return "LOG_LEVEL_DEBUG";
1747
+ case LogEntry_LogLevel.LOG_LEVEL_INFO:
1748
+ return "LOG_LEVEL_INFO";
1749
+ case LogEntry_LogLevel.LOG_LEVEL_WARNING:
1750
+ return "LOG_LEVEL_WARNING";
1751
+ case LogEntry_LogLevel.LOG_LEVEL_ERROR:
1752
+ return "LOG_LEVEL_ERROR";
1753
+ case LogEntry_LogLevel.LOG_LEVEL_CRITICAL:
1754
+ return "LOG_LEVEL_CRITICAL";
1755
+ case LogEntry_LogLevel.UNRECOGNIZED:
1756
+ default:
1757
+ return "UNRECOGNIZED";
1758
+ }
1759
+ }
1688
1760
  var PingerConfiguration_MountingDirection;
1689
1761
  (function (PingerConfiguration_MountingDirection) {
1690
1762
  /** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
@@ -1799,10 +1871,58 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
1799
1871
  return "UNRECOGNIZED";
1800
1872
  }
1801
1873
  }
1874
+ /** Overall status of the storage device. */
1875
+ var RemovableStorageDevice_Status;
1876
+ (function (RemovableStorageDevice_Status) {
1877
+ /** STATUS_UNSPECIFIED - Unspecified. */
1878
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
1879
+ /** STATUS_READY - The storage device is valid and ready for use. */
1880
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
1881
+ /** STATUS_FORMATTING - The storage device is being formatted */
1882
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
1883
+ /** STATUS_ERROR - The storage device is in an error state. */
1884
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
1885
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1886
+ })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
1887
+ function removableStorageDevice_StatusFromJSON(object) {
1888
+ switch (object) {
1889
+ case 0:
1890
+ case "STATUS_UNSPECIFIED":
1891
+ return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
1892
+ case 1:
1893
+ case "STATUS_READY":
1894
+ return RemovableStorageDevice_Status.STATUS_READY;
1895
+ case 2:
1896
+ case "STATUS_FORMATTING":
1897
+ return RemovableStorageDevice_Status.STATUS_FORMATTING;
1898
+ case 3:
1899
+ case "STATUS_ERROR":
1900
+ return RemovableStorageDevice_Status.STATUS_ERROR;
1901
+ case -1:
1902
+ case "UNRECOGNIZED":
1903
+ default:
1904
+ return RemovableStorageDevice_Status.UNRECOGNIZED;
1905
+ }
1906
+ }
1907
+ function removableStorageDevice_StatusToJSON(object) {
1908
+ switch (object) {
1909
+ case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
1910
+ return "STATUS_UNSPECIFIED";
1911
+ case RemovableStorageDevice_Status.STATUS_READY:
1912
+ return "STATUS_READY";
1913
+ case RemovableStorageDevice_Status.STATUS_FORMATTING:
1914
+ return "STATUS_FORMATTING";
1915
+ case RemovableStorageDevice_Status.STATUS_ERROR:
1916
+ return "STATUS_ERROR";
1917
+ case RemovableStorageDevice_Status.UNRECOGNIZED:
1918
+ default:
1919
+ return "UNRECOGNIZED";
1920
+ }
1921
+ }
1802
1922
  /**
1803
1923
  * Status of the compass calibration procedure.
1804
1924
  *
1805
- * When calibration is started, the status will indicate the active (upfacing) axis.
1925
+ * When calibration is started, the status will indicate the active (up facing) axis.
1806
1926
  */
1807
1927
  var CalibrationState_Status;
1808
1928
  (function (CalibrationState_Status) {
@@ -1824,7 +1944,7 @@ var CalibrationState_Status;
1824
1944
  CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
1825
1945
  /** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
1826
1946
  CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
1827
- /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interferance. */
1947
+ /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
1828
1948
  CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
1829
1949
  CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1830
1950
  })(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
@@ -2100,6 +2220,149 @@ exports.BinlogRecord = {
2100
2220
  return message;
2101
2221
  },
2102
2222
  };
2223
+ function createBaseLogEntry() {
2224
+ return { timestamp: undefined, processName: "", processId: 0, threadId: 0, source: "", level: 0, message: "" };
2225
+ }
2226
+ exports.LogEntry = {
2227
+ encode(message, writer = new wire_1.BinaryWriter()) {
2228
+ if (message.timestamp !== undefined) {
2229
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
2230
+ }
2231
+ if (message.processName !== "") {
2232
+ writer.uint32(18).string(message.processName);
2233
+ }
2234
+ if (message.processId !== 0) {
2235
+ writer.uint32(24).uint64(message.processId);
2236
+ }
2237
+ if (message.threadId !== 0) {
2238
+ writer.uint32(32).uint64(message.threadId);
2239
+ }
2240
+ if (message.source !== "") {
2241
+ writer.uint32(42).string(message.source);
2242
+ }
2243
+ if (message.level !== 0) {
2244
+ writer.uint32(48).int32(message.level);
2245
+ }
2246
+ if (message.message !== "") {
2247
+ writer.uint32(58).string(message.message);
2248
+ }
2249
+ return writer;
2250
+ },
2251
+ decode(input, length) {
2252
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2253
+ const end = length === undefined ? reader.len : reader.pos + length;
2254
+ const message = createBaseLogEntry();
2255
+ while (reader.pos < end) {
2256
+ const tag = reader.uint32();
2257
+ switch (tag >>> 3) {
2258
+ case 1: {
2259
+ if (tag !== 10) {
2260
+ break;
2261
+ }
2262
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
2263
+ continue;
2264
+ }
2265
+ case 2: {
2266
+ if (tag !== 18) {
2267
+ break;
2268
+ }
2269
+ message.processName = reader.string();
2270
+ continue;
2271
+ }
2272
+ case 3: {
2273
+ if (tag !== 24) {
2274
+ break;
2275
+ }
2276
+ message.processId = longToNumber(reader.uint64());
2277
+ continue;
2278
+ }
2279
+ case 4: {
2280
+ if (tag !== 32) {
2281
+ break;
2282
+ }
2283
+ message.threadId = longToNumber(reader.uint64());
2284
+ continue;
2285
+ }
2286
+ case 5: {
2287
+ if (tag !== 42) {
2288
+ break;
2289
+ }
2290
+ message.source = reader.string();
2291
+ continue;
2292
+ }
2293
+ case 6: {
2294
+ if (tag !== 48) {
2295
+ break;
2296
+ }
2297
+ message.level = reader.int32();
2298
+ continue;
2299
+ }
2300
+ case 7: {
2301
+ if (tag !== 58) {
2302
+ break;
2303
+ }
2304
+ message.message = reader.string();
2305
+ continue;
2306
+ }
2307
+ }
2308
+ if ((tag & 7) === 4 || tag === 0) {
2309
+ break;
2310
+ }
2311
+ reader.skip(tag & 7);
2312
+ }
2313
+ return message;
2314
+ },
2315
+ fromJSON(object) {
2316
+ return {
2317
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
2318
+ processName: isSet(object.processName) ? gt.String(object.processName) : "",
2319
+ processId: isSet(object.processId) ? gt.Number(object.processId) : 0,
2320
+ threadId: isSet(object.threadId) ? gt.Number(object.threadId) : 0,
2321
+ source: isSet(object.source) ? gt.String(object.source) : "",
2322
+ level: isSet(object.level) ? logEntry_LogLevelFromJSON(object.level) : 0,
2323
+ message: isSet(object.message) ? gt.String(object.message) : "",
2324
+ };
2325
+ },
2326
+ toJSON(message) {
2327
+ const obj = {};
2328
+ if (message.timestamp !== undefined) {
2329
+ obj.timestamp = message.timestamp.toISOString();
2330
+ }
2331
+ if (message.processName !== "") {
2332
+ obj.processName = message.processName;
2333
+ }
2334
+ if (message.processId !== 0) {
2335
+ obj.processId = Math.round(message.processId);
2336
+ }
2337
+ if (message.threadId !== 0) {
2338
+ obj.threadId = Math.round(message.threadId);
2339
+ }
2340
+ if (message.source !== "") {
2341
+ obj.source = message.source;
2342
+ }
2343
+ if (message.level !== 0) {
2344
+ obj.level = logEntry_LogLevelToJSON(message.level);
2345
+ }
2346
+ if (message.message !== "") {
2347
+ obj.message = message.message;
2348
+ }
2349
+ return obj;
2350
+ },
2351
+ create(base) {
2352
+ return exports.LogEntry.fromPartial(base ?? {});
2353
+ },
2354
+ fromPartial(object) {
2355
+ const message = createBaseLogEntry();
2356
+ message.timestamp = object.timestamp ?? undefined;
2357
+ message.processName = object.processName ?? "";
2358
+ message.processId = object.processId ?? 0;
2359
+ message.threadId = object.threadId ?? 0;
2360
+ message.source = object.source ?? "";
2361
+ message.level = object.level ?? 0;
2362
+ message.message = object.message ?? "";
2363
+ return message;
2364
+ },
2365
+ };
2103
2366
  function createBaseMotionInput() {
2104
2367
  return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
2105
2368
  }
@@ -7456,6 +7719,375 @@ exports.StorageSpace = {
7456
7719
  return message;
7457
7720
  },
7458
7721
  };
7722
+ function createBaseStoragePartition() {
7723
+ return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
7724
+ }
7725
+ exports.StoragePartition = {
7726
+ encode(message, writer = new wire_1.BinaryWriter()) {
7727
+ if (message.storageSpace !== undefined) {
7728
+ exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
7729
+ }
7730
+ if (message.fileSystemType !== "") {
7731
+ writer.uint32(18).string(message.fileSystemType);
7732
+ }
7733
+ if (message.devicePath !== "") {
7734
+ writer.uint32(26).string(message.devicePath);
7735
+ }
7736
+ if (message.mountPath !== "") {
7737
+ writer.uint32(34).string(message.mountPath);
7738
+ }
7739
+ return writer;
7740
+ },
7741
+ decode(input, length) {
7742
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7743
+ const end = length === undefined ? reader.len : reader.pos + length;
7744
+ const message = createBaseStoragePartition();
7745
+ while (reader.pos < end) {
7746
+ const tag = reader.uint32();
7747
+ switch (tag >>> 3) {
7748
+ case 1: {
7749
+ if (tag !== 10) {
7750
+ break;
7751
+ }
7752
+ message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
7753
+ continue;
7754
+ }
7755
+ case 2: {
7756
+ if (tag !== 18) {
7757
+ break;
7758
+ }
7759
+ message.fileSystemType = reader.string();
7760
+ continue;
7761
+ }
7762
+ case 3: {
7763
+ if (tag !== 26) {
7764
+ break;
7765
+ }
7766
+ message.devicePath = reader.string();
7767
+ continue;
7768
+ }
7769
+ case 4: {
7770
+ if (tag !== 34) {
7771
+ break;
7772
+ }
7773
+ message.mountPath = reader.string();
7774
+ continue;
7775
+ }
7776
+ }
7777
+ if ((tag & 7) === 4 || tag === 0) {
7778
+ break;
7779
+ }
7780
+ reader.skip(tag & 7);
7781
+ }
7782
+ return message;
7783
+ },
7784
+ fromJSON(object) {
7785
+ return {
7786
+ storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
7787
+ fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
7788
+ devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
7789
+ mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
7790
+ };
7791
+ },
7792
+ toJSON(message) {
7793
+ const obj = {};
7794
+ if (message.storageSpace !== undefined) {
7795
+ obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
7796
+ }
7797
+ if (message.fileSystemType !== "") {
7798
+ obj.fileSystemType = message.fileSystemType;
7799
+ }
7800
+ if (message.devicePath !== "") {
7801
+ obj.devicePath = message.devicePath;
7802
+ }
7803
+ if (message.mountPath !== "") {
7804
+ obj.mountPath = message.mountPath;
7805
+ }
7806
+ return obj;
7807
+ },
7808
+ create(base) {
7809
+ return exports.StoragePartition.fromPartial(base ?? {});
7810
+ },
7811
+ fromPartial(object) {
7812
+ const message = createBaseStoragePartition();
7813
+ message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
7814
+ ? exports.StorageSpace.fromPartial(object.storageSpace)
7815
+ : undefined;
7816
+ message.fileSystemType = object.fileSystemType ?? "";
7817
+ message.devicePath = object.devicePath ?? "";
7818
+ message.mountPath = object.mountPath ?? "";
7819
+ return message;
7820
+ },
7821
+ };
7822
+ function createBaseRemovableStorageDevice() {
7823
+ return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
7824
+ }
7825
+ exports.RemovableStorageDevice = {
7826
+ encode(message, writer = new wire_1.BinaryWriter()) {
7827
+ if (message.vendorName !== "") {
7828
+ writer.uint32(10).string(message.vendorName);
7829
+ }
7830
+ if (message.modelName !== "") {
7831
+ writer.uint32(18).string(message.modelName);
7832
+ }
7833
+ if (message.devicePath !== "") {
7834
+ writer.uint32(26).string(message.devicePath);
7835
+ }
7836
+ if (message.status !== 0) {
7837
+ writer.uint32(32).int32(message.status);
7838
+ }
7839
+ if (message.errorFlags !== undefined) {
7840
+ exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
7841
+ }
7842
+ for (const v of message.partitions) {
7843
+ exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
7844
+ }
7845
+ return writer;
7846
+ },
7847
+ decode(input, length) {
7848
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7849
+ const end = length === undefined ? reader.len : reader.pos + length;
7850
+ const message = createBaseRemovableStorageDevice();
7851
+ while (reader.pos < end) {
7852
+ const tag = reader.uint32();
7853
+ switch (tag >>> 3) {
7854
+ case 1: {
7855
+ if (tag !== 10) {
7856
+ break;
7857
+ }
7858
+ message.vendorName = reader.string();
7859
+ continue;
7860
+ }
7861
+ case 2: {
7862
+ if (tag !== 18) {
7863
+ break;
7864
+ }
7865
+ message.modelName = reader.string();
7866
+ continue;
7867
+ }
7868
+ case 3: {
7869
+ if (tag !== 26) {
7870
+ break;
7871
+ }
7872
+ message.devicePath = reader.string();
7873
+ continue;
7874
+ }
7875
+ case 4: {
7876
+ if (tag !== 32) {
7877
+ break;
7878
+ }
7879
+ message.status = reader.int32();
7880
+ continue;
7881
+ }
7882
+ case 5: {
7883
+ if (tag !== 42) {
7884
+ break;
7885
+ }
7886
+ message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
7887
+ continue;
7888
+ }
7889
+ case 6: {
7890
+ if (tag !== 50) {
7891
+ break;
7892
+ }
7893
+ message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
7894
+ continue;
7895
+ }
7896
+ }
7897
+ if ((tag & 7) === 4 || tag === 0) {
7898
+ break;
7899
+ }
7900
+ reader.skip(tag & 7);
7901
+ }
7902
+ return message;
7903
+ },
7904
+ fromJSON(object) {
7905
+ return {
7906
+ vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
7907
+ modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
7908
+ devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
7909
+ status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
7910
+ errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
7911
+ partitions: gt.Array.isArray(object?.partitions)
7912
+ ? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
7913
+ : [],
7914
+ };
7915
+ },
7916
+ toJSON(message) {
7917
+ const obj = {};
7918
+ if (message.vendorName !== "") {
7919
+ obj.vendorName = message.vendorName;
7920
+ }
7921
+ if (message.modelName !== "") {
7922
+ obj.modelName = message.modelName;
7923
+ }
7924
+ if (message.devicePath !== "") {
7925
+ obj.devicePath = message.devicePath;
7926
+ }
7927
+ if (message.status !== 0) {
7928
+ obj.status = removableStorageDevice_StatusToJSON(message.status);
7929
+ }
7930
+ if (message.errorFlags !== undefined) {
7931
+ obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
7932
+ }
7933
+ if (message.partitions?.length) {
7934
+ obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
7935
+ }
7936
+ return obj;
7937
+ },
7938
+ create(base) {
7939
+ return exports.RemovableStorageDevice.fromPartial(base ?? {});
7940
+ },
7941
+ fromPartial(object) {
7942
+ const message = createBaseRemovableStorageDevice();
7943
+ message.vendorName = object.vendorName ?? "";
7944
+ message.modelName = object.modelName ?? "";
7945
+ message.devicePath = object.devicePath ?? "";
7946
+ message.status = object.status ?? 0;
7947
+ message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
7948
+ ? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
7949
+ : undefined;
7950
+ message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
7951
+ return message;
7952
+ },
7953
+ };
7954
+ function createBaseRemovableStorageErrorFlags() {
7955
+ return {
7956
+ errorMessage: "",
7957
+ noPartitionsFound: false,
7958
+ multiplePartitionsFound: false,
7959
+ wrongFileSystemFound: false,
7960
+ deviceIsReadOnly: false,
7961
+ formattingFailed: false,
7962
+ };
7963
+ }
7964
+ exports.RemovableStorageErrorFlags = {
7965
+ encode(message, writer = new wire_1.BinaryWriter()) {
7966
+ if (message.errorMessage !== "") {
7967
+ writer.uint32(10).string(message.errorMessage);
7968
+ }
7969
+ if (message.noPartitionsFound !== false) {
7970
+ writer.uint32(16).bool(message.noPartitionsFound);
7971
+ }
7972
+ if (message.multiplePartitionsFound !== false) {
7973
+ writer.uint32(24).bool(message.multiplePartitionsFound);
7974
+ }
7975
+ if (message.wrongFileSystemFound !== false) {
7976
+ writer.uint32(32).bool(message.wrongFileSystemFound);
7977
+ }
7978
+ if (message.deviceIsReadOnly !== false) {
7979
+ writer.uint32(40).bool(message.deviceIsReadOnly);
7980
+ }
7981
+ if (message.formattingFailed !== false) {
7982
+ writer.uint32(48).bool(message.formattingFailed);
7983
+ }
7984
+ return writer;
7985
+ },
7986
+ decode(input, length) {
7987
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
7988
+ const end = length === undefined ? reader.len : reader.pos + length;
7989
+ const message = createBaseRemovableStorageErrorFlags();
7990
+ while (reader.pos < end) {
7991
+ const tag = reader.uint32();
7992
+ switch (tag >>> 3) {
7993
+ case 1: {
7994
+ if (tag !== 10) {
7995
+ break;
7996
+ }
7997
+ message.errorMessage = reader.string();
7998
+ continue;
7999
+ }
8000
+ case 2: {
8001
+ if (tag !== 16) {
8002
+ break;
8003
+ }
8004
+ message.noPartitionsFound = reader.bool();
8005
+ continue;
8006
+ }
8007
+ case 3: {
8008
+ if (tag !== 24) {
8009
+ break;
8010
+ }
8011
+ message.multiplePartitionsFound = reader.bool();
8012
+ continue;
8013
+ }
8014
+ case 4: {
8015
+ if (tag !== 32) {
8016
+ break;
8017
+ }
8018
+ message.wrongFileSystemFound = reader.bool();
8019
+ continue;
8020
+ }
8021
+ case 5: {
8022
+ if (tag !== 40) {
8023
+ break;
8024
+ }
8025
+ message.deviceIsReadOnly = reader.bool();
8026
+ continue;
8027
+ }
8028
+ case 6: {
8029
+ if (tag !== 48) {
8030
+ break;
8031
+ }
8032
+ message.formattingFailed = reader.bool();
8033
+ continue;
8034
+ }
8035
+ }
8036
+ if ((tag & 7) === 4 || tag === 0) {
8037
+ break;
8038
+ }
8039
+ reader.skip(tag & 7);
8040
+ }
8041
+ return message;
8042
+ },
8043
+ fromJSON(object) {
8044
+ return {
8045
+ errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
8046
+ noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
8047
+ multiplePartitionsFound: isSet(object.multiplePartitionsFound)
8048
+ ? gt.Boolean(object.multiplePartitionsFound)
8049
+ : false,
8050
+ wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
8051
+ deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
8052
+ formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
8053
+ };
8054
+ },
8055
+ toJSON(message) {
8056
+ const obj = {};
8057
+ if (message.errorMessage !== "") {
8058
+ obj.errorMessage = message.errorMessage;
8059
+ }
8060
+ if (message.noPartitionsFound !== false) {
8061
+ obj.noPartitionsFound = message.noPartitionsFound;
8062
+ }
8063
+ if (message.multiplePartitionsFound !== false) {
8064
+ obj.multiplePartitionsFound = message.multiplePartitionsFound;
8065
+ }
8066
+ if (message.wrongFileSystemFound !== false) {
8067
+ obj.wrongFileSystemFound = message.wrongFileSystemFound;
8068
+ }
8069
+ if (message.deviceIsReadOnly !== false) {
8070
+ obj.deviceIsReadOnly = message.deviceIsReadOnly;
8071
+ }
8072
+ if (message.formattingFailed !== false) {
8073
+ obj.formattingFailed = message.formattingFailed;
8074
+ }
8075
+ return obj;
8076
+ },
8077
+ create(base) {
8078
+ return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
8079
+ },
8080
+ fromPartial(object) {
8081
+ const message = createBaseRemovableStorageErrorFlags();
8082
+ message.errorMessage = object.errorMessage ?? "";
8083
+ message.noPartitionsFound = object.noPartitionsFound ?? false;
8084
+ message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
8085
+ message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
8086
+ message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
8087
+ message.formattingFailed = object.formattingFailed ?? false;
8088
+ return message;
8089
+ },
8090
+ };
7459
8091
  function createBaseCalibrationState() {
7460
8092
  return {
7461
8093
  status: 0,