@blueyerobotics/protocol-definitions 3.2.0-725468ab → 3.2.0-7541158c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/control.d.ts +46 -1
- package/dist/control.js +331 -7
- package/dist/message_formats.d.ts +381 -6
- package/dist/message_formats.js +2457 -56
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +24 -0
- package/dist/req_rep.js +208 -1
- package/dist/telemetry.d.ts +53 -2
- package/dist/telemetry.js +300 -3
- 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.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;
|
|
8
|
+
exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.LaserDetection = exports.Point2D = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SotState_State = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CvModelInfo_ModelType = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = 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.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 = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = void 0;
|
|
10
|
+
exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.VideoCodecInfo = exports.ThermalZone = exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = 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 = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.CvModelInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -36,6 +36,8 @@ exports.cameraFromJSON = cameraFromJSON;
|
|
|
36
36
|
exports.cameraToJSON = cameraToJSON;
|
|
37
37
|
exports.streamingProtocolFromJSON = streamingProtocolFromJSON;
|
|
38
38
|
exports.streamingProtocolToJSON = streamingProtocolToJSON;
|
|
39
|
+
exports.recordingCodecFromJSON = recordingCodecFromJSON;
|
|
40
|
+
exports.recordingCodecToJSON = recordingCodecToJSON;
|
|
39
41
|
exports.temperatureUnitFromJSON = temperatureUnitFromJSON;
|
|
40
42
|
exports.temperatureUnitToJSON = temperatureUnitToJSON;
|
|
41
43
|
exports.logoTypeFromJSON = logoTypeFromJSON;
|
|
@@ -58,6 +60,8 @@ exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
|
58
60
|
exports.guestPortErrorToJSON = guestPortErrorToJSON;
|
|
59
61
|
exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
60
62
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
63
|
+
exports.thermalZoneIdFromJSON = thermalZoneIdFromJSON;
|
|
64
|
+
exports.thermalZoneIdToJSON = thermalZoneIdToJSON;
|
|
61
65
|
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
62
66
|
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
63
67
|
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
@@ -70,12 +74,16 @@ exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFro
|
|
|
70
74
|
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
71
75
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
72
76
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
77
|
+
exports.cvModelInfo_ModelTypeFromJSON = cvModelInfo_ModelTypeFromJSON;
|
|
78
|
+
exports.cvModelInfo_ModelTypeToJSON = cvModelInfo_ModelTypeToJSON;
|
|
73
79
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
74
80
|
exports.multibeamConfig_PingRateToJSON = multibeamConfig_PingRateToJSON;
|
|
75
81
|
exports.multibeamConfig_MaximumNumberOfBeamsFromJSON = multibeamConfig_MaximumNumberOfBeamsFromJSON;
|
|
76
82
|
exports.multibeamConfig_MaximumNumberOfBeamsToJSON = multibeamConfig_MaximumNumberOfBeamsToJSON;
|
|
77
83
|
exports.surfaceUnitBatteryInfo_ChargeStatusFromJSON = surfaceUnitBatteryInfo_ChargeStatusFromJSON;
|
|
78
84
|
exports.surfaceUnitBatteryInfo_ChargeStatusToJSON = surfaceUnitBatteryInfo_ChargeStatusToJSON;
|
|
85
|
+
exports.sotState_StateFromJSON = sotState_StateFromJSON;
|
|
86
|
+
exports.sotState_StateToJSON = sotState_StateToJSON;
|
|
79
87
|
/* eslint-disable */
|
|
80
88
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
81
89
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -367,6 +375,8 @@ var NotificationType;
|
|
|
367
375
|
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED"] = 31] = "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
|
|
368
376
|
/** NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED - DVL thermal protection mode detected. */
|
|
369
377
|
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED"] = 32] = "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
378
|
+
/** NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED - Video partition not mounted. */
|
|
379
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED"] = 33] = "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
370
380
|
NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
371
381
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
372
382
|
function notificationTypeFromJSON(object) {
|
|
@@ -470,6 +480,9 @@ function notificationTypeFromJSON(object) {
|
|
|
470
480
|
case 32:
|
|
471
481
|
case "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED":
|
|
472
482
|
return NotificationType.NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED;
|
|
483
|
+
case 33:
|
|
484
|
+
case "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED":
|
|
485
|
+
return NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED;
|
|
473
486
|
case -1:
|
|
474
487
|
case "UNRECOGNIZED":
|
|
475
488
|
default:
|
|
@@ -544,6 +557,8 @@ function notificationTypeToJSON(object) {
|
|
|
544
557
|
return "NOTIFICATION_TYPE_DVL_HIGH_TEMPERATURE_DETECTED";
|
|
545
558
|
case NotificationType.NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED:
|
|
546
559
|
return "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
560
|
+
case NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED:
|
|
561
|
+
return "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
547
562
|
case NotificationType.UNRECOGNIZED:
|
|
548
563
|
default:
|
|
549
564
|
return "UNRECOGNIZED";
|
|
@@ -657,6 +672,8 @@ var Model;
|
|
|
657
672
|
Model[Model["MODEL_X3"] = 3] = "MODEL_X3";
|
|
658
673
|
/** MODEL_X3_ULTRA - Blueye X3 Ultra. */
|
|
659
674
|
Model[Model["MODEL_X3_ULTRA"] = 6] = "MODEL_X3_ULTRA";
|
|
675
|
+
/** MODEL_X7 - Blueye X7. */
|
|
676
|
+
Model[Model["MODEL_X7"] = 7] = "MODEL_X7";
|
|
660
677
|
/** MODEL_NEXT - Blueye ? */
|
|
661
678
|
Model[Model["MODEL_NEXT"] = 5] = "MODEL_NEXT";
|
|
662
679
|
Model[Model["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
@@ -681,6 +698,9 @@ function modelFromJSON(object) {
|
|
|
681
698
|
case 6:
|
|
682
699
|
case "MODEL_X3_ULTRA":
|
|
683
700
|
return Model.MODEL_X3_ULTRA;
|
|
701
|
+
case 7:
|
|
702
|
+
case "MODEL_X7":
|
|
703
|
+
return Model.MODEL_X7;
|
|
684
704
|
case 5:
|
|
685
705
|
case "MODEL_NEXT":
|
|
686
706
|
return Model.MODEL_NEXT;
|
|
@@ -704,6 +724,8 @@ function modelToJSON(object) {
|
|
|
704
724
|
return "MODEL_X3";
|
|
705
725
|
case Model.MODEL_X3_ULTRA:
|
|
706
726
|
return "MODEL_X3_ULTRA";
|
|
727
|
+
case Model.MODEL_X7:
|
|
728
|
+
return "MODEL_X7";
|
|
707
729
|
case Model.MODEL_NEXT:
|
|
708
730
|
return "MODEL_NEXT";
|
|
709
731
|
case Model.UNRECOGNIZED:
|
|
@@ -779,6 +801,8 @@ var Resolution;
|
|
|
779
801
|
Resolution[Resolution["RESOLUTION_FULLHD_1080P"] = 1] = "RESOLUTION_FULLHD_1080P";
|
|
780
802
|
/** RESOLUTION_UHD_4K - 4K Ultra HD (3840x2160, Only supported on X3 Ultra). */
|
|
781
803
|
Resolution[Resolution["RESOLUTION_UHD_4K"] = 3] = "RESOLUTION_UHD_4K";
|
|
804
|
+
/** RESOLUTION_QHD_2K - 2K QHD (2560x1440, Only supported on X3 Ultra). */
|
|
805
|
+
Resolution[Resolution["RESOLUTION_QHD_2K"] = 5] = "RESOLUTION_QHD_2K";
|
|
782
806
|
Resolution[Resolution["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
783
807
|
})(Resolution || (exports.Resolution = Resolution = {}));
|
|
784
808
|
function resolutionFromJSON(object) {
|
|
@@ -798,6 +822,9 @@ function resolutionFromJSON(object) {
|
|
|
798
822
|
case 3:
|
|
799
823
|
case "RESOLUTION_UHD_4K":
|
|
800
824
|
return Resolution.RESOLUTION_UHD_4K;
|
|
825
|
+
case 5:
|
|
826
|
+
case "RESOLUTION_QHD_2K":
|
|
827
|
+
return Resolution.RESOLUTION_QHD_2K;
|
|
801
828
|
case -1:
|
|
802
829
|
case "UNRECOGNIZED":
|
|
803
830
|
default:
|
|
@@ -816,12 +843,19 @@ function resolutionToJSON(object) {
|
|
|
816
843
|
return "RESOLUTION_FULLHD_1080P";
|
|
817
844
|
case Resolution.RESOLUTION_UHD_4K:
|
|
818
845
|
return "RESOLUTION_UHD_4K";
|
|
846
|
+
case Resolution.RESOLUTION_QHD_2K:
|
|
847
|
+
return "RESOLUTION_QHD_2K";
|
|
819
848
|
case Resolution.UNRECOGNIZED:
|
|
820
849
|
default:
|
|
821
850
|
return "UNRECOGNIZED";
|
|
822
851
|
}
|
|
823
852
|
}
|
|
824
|
-
/**
|
|
853
|
+
/**
|
|
854
|
+
* Available camera frame rates.
|
|
855
|
+
*
|
|
856
|
+
* If the requested frame rate is higher than what is supported at the current resolution,
|
|
857
|
+
* the frame rate will be reduced while the resolution is respected.
|
|
858
|
+
*/
|
|
825
859
|
var Framerate;
|
|
826
860
|
(function (Framerate) {
|
|
827
861
|
/** FRAMERATE_UNSPECIFIED - Framerate not specified. */
|
|
@@ -830,6 +864,8 @@ var Framerate;
|
|
|
830
864
|
Framerate[Framerate["FRAMERATE_FPS_30"] = 1] = "FRAMERATE_FPS_30";
|
|
831
865
|
/** FRAMERATE_FPS_25 - 25 frames per second. (Only supported on Pioneer/Pro/X1/X3) */
|
|
832
866
|
Framerate[Framerate["FRAMERATE_FPS_25"] = 2] = "FRAMERATE_FPS_25";
|
|
867
|
+
/** FRAMERATE_FPS_60 - 60 frames per second. (Only supported on X3 Ultra at QHD, 1080p and 720p) */
|
|
868
|
+
Framerate[Framerate["FRAMERATE_FPS_60"] = 3] = "FRAMERATE_FPS_60";
|
|
833
869
|
Framerate[Framerate["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
834
870
|
})(Framerate || (exports.Framerate = Framerate = {}));
|
|
835
871
|
function framerateFromJSON(object) {
|
|
@@ -843,6 +879,9 @@ function framerateFromJSON(object) {
|
|
|
843
879
|
case 2:
|
|
844
880
|
case "FRAMERATE_FPS_25":
|
|
845
881
|
return Framerate.FRAMERATE_FPS_25;
|
|
882
|
+
case 3:
|
|
883
|
+
case "FRAMERATE_FPS_60":
|
|
884
|
+
return Framerate.FRAMERATE_FPS_60;
|
|
846
885
|
case -1:
|
|
847
886
|
case "UNRECOGNIZED":
|
|
848
887
|
default:
|
|
@@ -857,6 +896,8 @@ function framerateToJSON(object) {
|
|
|
857
896
|
return "FRAMERATE_FPS_30";
|
|
858
897
|
case Framerate.FRAMERATE_FPS_25:
|
|
859
898
|
return "FRAMERATE_FPS_25";
|
|
899
|
+
case Framerate.FRAMERATE_FPS_60:
|
|
900
|
+
return "FRAMERATE_FPS_60";
|
|
860
901
|
case Framerate.UNRECOGNIZED:
|
|
861
902
|
default:
|
|
862
903
|
return "UNRECOGNIZED";
|
|
@@ -943,6 +984,47 @@ function streamingProtocolToJSON(object) {
|
|
|
943
984
|
return "UNRECOGNIZED";
|
|
944
985
|
}
|
|
945
986
|
}
|
|
987
|
+
/** Recording video codec. */
|
|
988
|
+
var RecordingCodec;
|
|
989
|
+
(function (RecordingCodec) {
|
|
990
|
+
/** RECORDING_CODEC_UNSPECIFIED - Use platform default (H.264). */
|
|
991
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_UNSPECIFIED"] = 0] = "RECORDING_CODEC_UNSPECIFIED";
|
|
992
|
+
/** RECORDING_CODEC_H264 - H.264/AVC codec. Wider compatibility with players/editors. */
|
|
993
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_H264"] = 1] = "RECORDING_CODEC_H264";
|
|
994
|
+
/** RECORDING_CODEC_H265 - H.265/HEVC codec. Better compression, limited compatibility. Ultra only. */
|
|
995
|
+
RecordingCodec[RecordingCodec["RECORDING_CODEC_H265"] = 2] = "RECORDING_CODEC_H265";
|
|
996
|
+
RecordingCodec[RecordingCodec["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
997
|
+
})(RecordingCodec || (exports.RecordingCodec = RecordingCodec = {}));
|
|
998
|
+
function recordingCodecFromJSON(object) {
|
|
999
|
+
switch (object) {
|
|
1000
|
+
case 0:
|
|
1001
|
+
case "RECORDING_CODEC_UNSPECIFIED":
|
|
1002
|
+
return RecordingCodec.RECORDING_CODEC_UNSPECIFIED;
|
|
1003
|
+
case 1:
|
|
1004
|
+
case "RECORDING_CODEC_H264":
|
|
1005
|
+
return RecordingCodec.RECORDING_CODEC_H264;
|
|
1006
|
+
case 2:
|
|
1007
|
+
case "RECORDING_CODEC_H265":
|
|
1008
|
+
return RecordingCodec.RECORDING_CODEC_H265;
|
|
1009
|
+
case -1:
|
|
1010
|
+
case "UNRECOGNIZED":
|
|
1011
|
+
default:
|
|
1012
|
+
return RecordingCodec.UNRECOGNIZED;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
function recordingCodecToJSON(object) {
|
|
1016
|
+
switch (object) {
|
|
1017
|
+
case RecordingCodec.RECORDING_CODEC_UNSPECIFIED:
|
|
1018
|
+
return "RECORDING_CODEC_UNSPECIFIED";
|
|
1019
|
+
case RecordingCodec.RECORDING_CODEC_H264:
|
|
1020
|
+
return "RECORDING_CODEC_H264";
|
|
1021
|
+
case RecordingCodec.RECORDING_CODEC_H265:
|
|
1022
|
+
return "RECORDING_CODEC_H265";
|
|
1023
|
+
case RecordingCodec.UNRECOGNIZED:
|
|
1024
|
+
default:
|
|
1025
|
+
return "UNRECOGNIZED";
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
946
1028
|
/** Available temperature units. */
|
|
947
1029
|
var TemperatureUnit;
|
|
948
1030
|
(function (TemperatureUnit) {
|
|
@@ -1131,6 +1213,8 @@ var FontSize;
|
|
|
1131
1213
|
FontSize[FontSize["FONT_SIZE_PX35"] = 5] = "FONT_SIZE_PX35";
|
|
1132
1214
|
/** FONT_SIZE_PX40 - 40 px. */
|
|
1133
1215
|
FontSize[FontSize["FONT_SIZE_PX40"] = 6] = "FONT_SIZE_PX40";
|
|
1216
|
+
/** FONT_SIZE_PX50 - 50 px. */
|
|
1217
|
+
FontSize[FontSize["FONT_SIZE_PX50"] = 7] = "FONT_SIZE_PX50";
|
|
1134
1218
|
FontSize[FontSize["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1135
1219
|
})(FontSize || (exports.FontSize = FontSize = {}));
|
|
1136
1220
|
function fontSizeFromJSON(object) {
|
|
@@ -1156,6 +1240,9 @@ function fontSizeFromJSON(object) {
|
|
|
1156
1240
|
case 6:
|
|
1157
1241
|
case "FONT_SIZE_PX40":
|
|
1158
1242
|
return FontSize.FONT_SIZE_PX40;
|
|
1243
|
+
case 7:
|
|
1244
|
+
case "FONT_SIZE_PX50":
|
|
1245
|
+
return FontSize.FONT_SIZE_PX50;
|
|
1159
1246
|
case -1:
|
|
1160
1247
|
case "UNRECOGNIZED":
|
|
1161
1248
|
default:
|
|
@@ -1178,6 +1265,8 @@ function fontSizeToJSON(object) {
|
|
|
1178
1265
|
return "FONT_SIZE_PX35";
|
|
1179
1266
|
case FontSize.FONT_SIZE_PX40:
|
|
1180
1267
|
return "FONT_SIZE_PX40";
|
|
1268
|
+
case FontSize.FONT_SIZE_PX50:
|
|
1269
|
+
return "FONT_SIZE_PX50";
|
|
1181
1270
|
case FontSize.UNRECOGNIZED:
|
|
1182
1271
|
default:
|
|
1183
1272
|
return "UNRECOGNIZED";
|
|
@@ -1282,6 +1371,8 @@ var GuestPortDeviceID;
|
|
|
1282
1371
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1283
1372
|
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
1284
1373
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1374
|
+
/** GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER - Blueye Scaling Laser. */
|
|
1375
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER"] = 48] = "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1285
1376
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1286
1377
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1287
1378
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1430,6 +1521,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1430
1521
|
case 47:
|
|
1431
1522
|
case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
|
|
1432
1523
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
|
|
1524
|
+
case 48:
|
|
1525
|
+
case "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER":
|
|
1526
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER;
|
|
1433
1527
|
case -1:
|
|
1434
1528
|
case "UNRECOGNIZED":
|
|
1435
1529
|
default:
|
|
@@ -1534,6 +1628,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1534
1628
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1535
1629
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
|
|
1536
1630
|
return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1631
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER:
|
|
1632
|
+
return "GUEST_PORT_DEVICE_ID_BLUEYE_SCALING_LASER";
|
|
1537
1633
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1538
1634
|
default:
|
|
1539
1635
|
return "UNRECOGNIZED";
|
|
@@ -1810,6 +1906,47 @@ function multibeamFrequencyModeToJSON(object) {
|
|
|
1810
1906
|
return "UNRECOGNIZED";
|
|
1811
1907
|
}
|
|
1812
1908
|
}
|
|
1909
|
+
/** Thermal zone identifiers. */
|
|
1910
|
+
var ThermalZoneId;
|
|
1911
|
+
(function (ThermalZoneId) {
|
|
1912
|
+
/** THERMAL_ZONE_ID_UNSPECIFIED - Unspecified thermal zone. */
|
|
1913
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_UNSPECIFIED"] = 0] = "THERMAL_ZONE_ID_UNSPECIFIED";
|
|
1914
|
+
/** THERMAL_ZONE_ID_TJ - Junction temperature (Tj). */
|
|
1915
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_TJ"] = 1] = "THERMAL_ZONE_ID_TJ";
|
|
1916
|
+
/** THERMAL_ZONE_ID_CANISTER - Canister temperature. */
|
|
1917
|
+
ThermalZoneId[ThermalZoneId["THERMAL_ZONE_ID_CANISTER"] = 2] = "THERMAL_ZONE_ID_CANISTER";
|
|
1918
|
+
ThermalZoneId[ThermalZoneId["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1919
|
+
})(ThermalZoneId || (exports.ThermalZoneId = ThermalZoneId = {}));
|
|
1920
|
+
function thermalZoneIdFromJSON(object) {
|
|
1921
|
+
switch (object) {
|
|
1922
|
+
case 0:
|
|
1923
|
+
case "THERMAL_ZONE_ID_UNSPECIFIED":
|
|
1924
|
+
return ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED;
|
|
1925
|
+
case 1:
|
|
1926
|
+
case "THERMAL_ZONE_ID_TJ":
|
|
1927
|
+
return ThermalZoneId.THERMAL_ZONE_ID_TJ;
|
|
1928
|
+
case 2:
|
|
1929
|
+
case "THERMAL_ZONE_ID_CANISTER":
|
|
1930
|
+
return ThermalZoneId.THERMAL_ZONE_ID_CANISTER;
|
|
1931
|
+
case -1:
|
|
1932
|
+
case "UNRECOGNIZED":
|
|
1933
|
+
default:
|
|
1934
|
+
return ThermalZoneId.UNRECOGNIZED;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
function thermalZoneIdToJSON(object) {
|
|
1938
|
+
switch (object) {
|
|
1939
|
+
case ThermalZoneId.THERMAL_ZONE_ID_UNSPECIFIED:
|
|
1940
|
+
return "THERMAL_ZONE_ID_UNSPECIFIED";
|
|
1941
|
+
case ThermalZoneId.THERMAL_ZONE_ID_TJ:
|
|
1942
|
+
return "THERMAL_ZONE_ID_TJ";
|
|
1943
|
+
case ThermalZoneId.THERMAL_ZONE_ID_CANISTER:
|
|
1944
|
+
return "THERMAL_ZONE_ID_CANISTER";
|
|
1945
|
+
case ThermalZoneId.UNRECOGNIZED:
|
|
1946
|
+
default:
|
|
1947
|
+
return "UNRECOGNIZED";
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1813
1950
|
var LogEntry_LogLevel;
|
|
1814
1951
|
(function (LogEntry_LogLevel) {
|
|
1815
1952
|
/** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
@@ -2082,10 +2219,12 @@ var RemovableStorageDevice_Status;
|
|
|
2082
2219
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
2083
2220
|
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
2084
2221
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
2085
|
-
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
2222
|
+
/** STATUS_FORMATTING - The storage device is being formatted. */
|
|
2086
2223
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
2087
2224
|
/** STATUS_ERROR - The storage device is in an error state. */
|
|
2088
2225
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
2226
|
+
/** STATUS_UNPLUGGED - The storage device is not present. */
|
|
2227
|
+
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNPLUGGED"] = 4] = "STATUS_UNPLUGGED";
|
|
2089
2228
|
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2090
2229
|
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
2091
2230
|
function removableStorageDevice_StatusFromJSON(object) {
|
|
@@ -2102,6 +2241,9 @@ function removableStorageDevice_StatusFromJSON(object) {
|
|
|
2102
2241
|
case 3:
|
|
2103
2242
|
case "STATUS_ERROR":
|
|
2104
2243
|
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
2244
|
+
case 4:
|
|
2245
|
+
case "STATUS_UNPLUGGED":
|
|
2246
|
+
return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
|
|
2105
2247
|
case -1:
|
|
2106
2248
|
case "UNRECOGNIZED":
|
|
2107
2249
|
default:
|
|
@@ -2118,6 +2260,8 @@ function removableStorageDevice_StatusToJSON(object) {
|
|
|
2118
2260
|
return "STATUS_FORMATTING";
|
|
2119
2261
|
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
2120
2262
|
return "STATUS_ERROR";
|
|
2263
|
+
case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
|
|
2264
|
+
return "STATUS_UNPLUGGED";
|
|
2121
2265
|
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
2122
2266
|
default:
|
|
2123
2267
|
return "UNRECOGNIZED";
|
|
@@ -2217,6 +2361,43 @@ function calibrationState_StatusToJSON(object) {
|
|
|
2217
2361
|
return "UNRECOGNIZED";
|
|
2218
2362
|
}
|
|
2219
2363
|
}
|
|
2364
|
+
var CvModelInfo_ModelType;
|
|
2365
|
+
(function (CvModelInfo_ModelType) {
|
|
2366
|
+
CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_UNSPECIFIED"] = 0] = "MODEL_TYPE_UNSPECIFIED";
|
|
2367
|
+
CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_DETECTION"] = 1] = "MODEL_TYPE_DETECTION";
|
|
2368
|
+
CvModelInfo_ModelType[CvModelInfo_ModelType["MODEL_TYPE_SOT"] = 2] = "MODEL_TYPE_SOT";
|
|
2369
|
+
CvModelInfo_ModelType[CvModelInfo_ModelType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2370
|
+
})(CvModelInfo_ModelType || (exports.CvModelInfo_ModelType = CvModelInfo_ModelType = {}));
|
|
2371
|
+
function cvModelInfo_ModelTypeFromJSON(object) {
|
|
2372
|
+
switch (object) {
|
|
2373
|
+
case 0:
|
|
2374
|
+
case "MODEL_TYPE_UNSPECIFIED":
|
|
2375
|
+
return CvModelInfo_ModelType.MODEL_TYPE_UNSPECIFIED;
|
|
2376
|
+
case 1:
|
|
2377
|
+
case "MODEL_TYPE_DETECTION":
|
|
2378
|
+
return CvModelInfo_ModelType.MODEL_TYPE_DETECTION;
|
|
2379
|
+
case 2:
|
|
2380
|
+
case "MODEL_TYPE_SOT":
|
|
2381
|
+
return CvModelInfo_ModelType.MODEL_TYPE_SOT;
|
|
2382
|
+
case -1:
|
|
2383
|
+
case "UNRECOGNIZED":
|
|
2384
|
+
default:
|
|
2385
|
+
return CvModelInfo_ModelType.UNRECOGNIZED;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
function cvModelInfo_ModelTypeToJSON(object) {
|
|
2389
|
+
switch (object) {
|
|
2390
|
+
case CvModelInfo_ModelType.MODEL_TYPE_UNSPECIFIED:
|
|
2391
|
+
return "MODEL_TYPE_UNSPECIFIED";
|
|
2392
|
+
case CvModelInfo_ModelType.MODEL_TYPE_DETECTION:
|
|
2393
|
+
return "MODEL_TYPE_DETECTION";
|
|
2394
|
+
case CvModelInfo_ModelType.MODEL_TYPE_SOT:
|
|
2395
|
+
return "MODEL_TYPE_SOT";
|
|
2396
|
+
case CvModelInfo_ModelType.UNRECOGNIZED:
|
|
2397
|
+
default:
|
|
2398
|
+
return "UNRECOGNIZED";
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2220
2401
|
/** Defines the desired ping rate to use when capturing sonar data. */
|
|
2221
2402
|
var MultibeamConfig_PingRate;
|
|
2222
2403
|
(function (MultibeamConfig_PingRate) {
|
|
@@ -2382,6 +2563,54 @@ function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
|
2382
2563
|
return "UNRECOGNIZED";
|
|
2383
2564
|
}
|
|
2384
2565
|
}
|
|
2566
|
+
/** Current state of the SOT tracker. */
|
|
2567
|
+
var SotState_State;
|
|
2568
|
+
(function (SotState_State) {
|
|
2569
|
+
/** STATE_UNSPECIFIED - Unspecified state. */
|
|
2570
|
+
SotState_State[SotState_State["STATE_UNSPECIFIED"] = 0] = "STATE_UNSPECIFIED";
|
|
2571
|
+
/** STATE_IDLE - No target selected, waiting for a target bounding box. */
|
|
2572
|
+
SotState_State[SotState_State["STATE_IDLE"] = 1] = "STATE_IDLE";
|
|
2573
|
+
/** STATE_TRACKING - Actively tracking a target. */
|
|
2574
|
+
SotState_State[SotState_State["STATE_TRACKING"] = 2] = "STATE_TRACKING";
|
|
2575
|
+
/** STATE_LOST - Target was lost (tracker failed to follow the object). */
|
|
2576
|
+
SotState_State[SotState_State["STATE_LOST"] = 3] = "STATE_LOST";
|
|
2577
|
+
SotState_State[SotState_State["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2578
|
+
})(SotState_State || (exports.SotState_State = SotState_State = {}));
|
|
2579
|
+
function sotState_StateFromJSON(object) {
|
|
2580
|
+
switch (object) {
|
|
2581
|
+
case 0:
|
|
2582
|
+
case "STATE_UNSPECIFIED":
|
|
2583
|
+
return SotState_State.STATE_UNSPECIFIED;
|
|
2584
|
+
case 1:
|
|
2585
|
+
case "STATE_IDLE":
|
|
2586
|
+
return SotState_State.STATE_IDLE;
|
|
2587
|
+
case 2:
|
|
2588
|
+
case "STATE_TRACKING":
|
|
2589
|
+
return SotState_State.STATE_TRACKING;
|
|
2590
|
+
case 3:
|
|
2591
|
+
case "STATE_LOST":
|
|
2592
|
+
return SotState_State.STATE_LOST;
|
|
2593
|
+
case -1:
|
|
2594
|
+
case "UNRECOGNIZED":
|
|
2595
|
+
default:
|
|
2596
|
+
return SotState_State.UNRECOGNIZED;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
function sotState_StateToJSON(object) {
|
|
2600
|
+
switch (object) {
|
|
2601
|
+
case SotState_State.STATE_UNSPECIFIED:
|
|
2602
|
+
return "STATE_UNSPECIFIED";
|
|
2603
|
+
case SotState_State.STATE_IDLE:
|
|
2604
|
+
return "STATE_IDLE";
|
|
2605
|
+
case SotState_State.STATE_TRACKING:
|
|
2606
|
+
return "STATE_TRACKING";
|
|
2607
|
+
case SotState_State.STATE_LOST:
|
|
2608
|
+
return "STATE_LOST";
|
|
2609
|
+
case SotState_State.UNRECOGNIZED:
|
|
2610
|
+
default:
|
|
2611
|
+
return "UNRECOGNIZED";
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2385
2614
|
function createBaseBinlogRecord() {
|
|
2386
2615
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2387
2616
|
}
|
|
@@ -3003,13 +3232,16 @@ exports.Lights = {
|
|
|
3003
3232
|
},
|
|
3004
3233
|
};
|
|
3005
3234
|
function createBaseLaser() {
|
|
3006
|
-
return { value: 0 };
|
|
3235
|
+
return { value: 0, modulated: false };
|
|
3007
3236
|
}
|
|
3008
3237
|
exports.Laser = {
|
|
3009
3238
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3010
3239
|
if (message.value !== 0) {
|
|
3011
3240
|
writer.uint32(13).float(message.value);
|
|
3012
3241
|
}
|
|
3242
|
+
if (message.modulated !== false) {
|
|
3243
|
+
writer.uint32(16).bool(message.modulated);
|
|
3244
|
+
}
|
|
3013
3245
|
return writer;
|
|
3014
3246
|
},
|
|
3015
3247
|
decode(input, length) {
|
|
@@ -3026,6 +3258,13 @@ exports.Laser = {
|
|
|
3026
3258
|
message.value = reader.float();
|
|
3027
3259
|
continue;
|
|
3028
3260
|
}
|
|
3261
|
+
case 2: {
|
|
3262
|
+
if (tag !== 16) {
|
|
3263
|
+
break;
|
|
3264
|
+
}
|
|
3265
|
+
message.modulated = reader.bool();
|
|
3266
|
+
continue;
|
|
3267
|
+
}
|
|
3029
3268
|
}
|
|
3030
3269
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3031
3270
|
break;
|
|
@@ -3035,13 +3274,19 @@ exports.Laser = {
|
|
|
3035
3274
|
return message;
|
|
3036
3275
|
},
|
|
3037
3276
|
fromJSON(object) {
|
|
3038
|
-
return {
|
|
3277
|
+
return {
|
|
3278
|
+
value: isSet(object.value) ? gt.Number(object.value) : 0,
|
|
3279
|
+
modulated: isSet(object.modulated) ? gt.Boolean(object.modulated) : false,
|
|
3280
|
+
};
|
|
3039
3281
|
},
|
|
3040
3282
|
toJSON(message) {
|
|
3041
3283
|
const obj = {};
|
|
3042
3284
|
if (message.value !== 0) {
|
|
3043
3285
|
obj.value = message.value;
|
|
3044
3286
|
}
|
|
3287
|
+
if (message.modulated !== false) {
|
|
3288
|
+
obj.modulated = message.modulated;
|
|
3289
|
+
}
|
|
3045
3290
|
return obj;
|
|
3046
3291
|
},
|
|
3047
3292
|
create(base) {
|
|
@@ -3050,6 +3295,271 @@ exports.Laser = {
|
|
|
3050
3295
|
fromPartial(object) {
|
|
3051
3296
|
const message = createBaseLaser();
|
|
3052
3297
|
message.value = object.value ?? 0;
|
|
3298
|
+
message.modulated = object.modulated ?? false;
|
|
3299
|
+
return message;
|
|
3300
|
+
},
|
|
3301
|
+
};
|
|
3302
|
+
function createBasePoint2D() {
|
|
3303
|
+
return { x: 0, y: 0 };
|
|
3304
|
+
}
|
|
3305
|
+
exports.Point2D = {
|
|
3306
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3307
|
+
if (message.x !== 0) {
|
|
3308
|
+
writer.uint32(13).float(message.x);
|
|
3309
|
+
}
|
|
3310
|
+
if (message.y !== 0) {
|
|
3311
|
+
writer.uint32(21).float(message.y);
|
|
3312
|
+
}
|
|
3313
|
+
return writer;
|
|
3314
|
+
},
|
|
3315
|
+
decode(input, length) {
|
|
3316
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3317
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3318
|
+
const message = createBasePoint2D();
|
|
3319
|
+
while (reader.pos < end) {
|
|
3320
|
+
const tag = reader.uint32();
|
|
3321
|
+
switch (tag >>> 3) {
|
|
3322
|
+
case 1: {
|
|
3323
|
+
if (tag !== 13) {
|
|
3324
|
+
break;
|
|
3325
|
+
}
|
|
3326
|
+
message.x = reader.float();
|
|
3327
|
+
continue;
|
|
3328
|
+
}
|
|
3329
|
+
case 2: {
|
|
3330
|
+
if (tag !== 21) {
|
|
3331
|
+
break;
|
|
3332
|
+
}
|
|
3333
|
+
message.y = reader.float();
|
|
3334
|
+
continue;
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3338
|
+
break;
|
|
3339
|
+
}
|
|
3340
|
+
reader.skip(tag & 7);
|
|
3341
|
+
}
|
|
3342
|
+
return message;
|
|
3343
|
+
},
|
|
3344
|
+
fromJSON(object) {
|
|
3345
|
+
return { x: isSet(object.x) ? gt.Number(object.x) : 0, y: isSet(object.y) ? gt.Number(object.y) : 0 };
|
|
3346
|
+
},
|
|
3347
|
+
toJSON(message) {
|
|
3348
|
+
const obj = {};
|
|
3349
|
+
if (message.x !== 0) {
|
|
3350
|
+
obj.x = message.x;
|
|
3351
|
+
}
|
|
3352
|
+
if (message.y !== 0) {
|
|
3353
|
+
obj.y = message.y;
|
|
3354
|
+
}
|
|
3355
|
+
return obj;
|
|
3356
|
+
},
|
|
3357
|
+
create(base) {
|
|
3358
|
+
return exports.Point2D.fromPartial(base ?? {});
|
|
3359
|
+
},
|
|
3360
|
+
fromPartial(object) {
|
|
3361
|
+
const message = createBasePoint2D();
|
|
3362
|
+
message.x = object.x ?? 0;
|
|
3363
|
+
message.y = object.y ?? 0;
|
|
3364
|
+
return message;
|
|
3365
|
+
},
|
|
3366
|
+
};
|
|
3367
|
+
function createBaseLaserDetection() {
|
|
3368
|
+
return {
|
|
3369
|
+
detected: false,
|
|
3370
|
+
dot1: undefined,
|
|
3371
|
+
dot2: undefined,
|
|
3372
|
+
pixelDistance: 0,
|
|
3373
|
+
confidence: 0,
|
|
3374
|
+
imageWidth: 0,
|
|
3375
|
+
imageHeight: 0,
|
|
3376
|
+
laserWidth: 0,
|
|
3377
|
+
correctedPixelDistance: 0,
|
|
3378
|
+
estimatedDistance: 0,
|
|
3379
|
+
};
|
|
3380
|
+
}
|
|
3381
|
+
exports.LaserDetection = {
|
|
3382
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3383
|
+
if (message.detected !== false) {
|
|
3384
|
+
writer.uint32(8).bool(message.detected);
|
|
3385
|
+
}
|
|
3386
|
+
if (message.dot1 !== undefined) {
|
|
3387
|
+
exports.Point2D.encode(message.dot1, writer.uint32(18).fork()).join();
|
|
3388
|
+
}
|
|
3389
|
+
if (message.dot2 !== undefined) {
|
|
3390
|
+
exports.Point2D.encode(message.dot2, writer.uint32(26).fork()).join();
|
|
3391
|
+
}
|
|
3392
|
+
if (message.pixelDistance !== 0) {
|
|
3393
|
+
writer.uint32(37).float(message.pixelDistance);
|
|
3394
|
+
}
|
|
3395
|
+
if (message.confidence !== 0) {
|
|
3396
|
+
writer.uint32(45).float(message.confidence);
|
|
3397
|
+
}
|
|
3398
|
+
if (message.imageWidth !== 0) {
|
|
3399
|
+
writer.uint32(48).uint32(message.imageWidth);
|
|
3400
|
+
}
|
|
3401
|
+
if (message.imageHeight !== 0) {
|
|
3402
|
+
writer.uint32(56).uint32(message.imageHeight);
|
|
3403
|
+
}
|
|
3404
|
+
if (message.laserWidth !== 0) {
|
|
3405
|
+
writer.uint32(69).float(message.laserWidth);
|
|
3406
|
+
}
|
|
3407
|
+
if (message.correctedPixelDistance !== 0) {
|
|
3408
|
+
writer.uint32(77).float(message.correctedPixelDistance);
|
|
3409
|
+
}
|
|
3410
|
+
if (message.estimatedDistance !== 0) {
|
|
3411
|
+
writer.uint32(85).float(message.estimatedDistance);
|
|
3412
|
+
}
|
|
3413
|
+
return writer;
|
|
3414
|
+
},
|
|
3415
|
+
decode(input, length) {
|
|
3416
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3417
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3418
|
+
const message = createBaseLaserDetection();
|
|
3419
|
+
while (reader.pos < end) {
|
|
3420
|
+
const tag = reader.uint32();
|
|
3421
|
+
switch (tag >>> 3) {
|
|
3422
|
+
case 1: {
|
|
3423
|
+
if (tag !== 8) {
|
|
3424
|
+
break;
|
|
3425
|
+
}
|
|
3426
|
+
message.detected = reader.bool();
|
|
3427
|
+
continue;
|
|
3428
|
+
}
|
|
3429
|
+
case 2: {
|
|
3430
|
+
if (tag !== 18) {
|
|
3431
|
+
break;
|
|
3432
|
+
}
|
|
3433
|
+
message.dot1 = exports.Point2D.decode(reader, reader.uint32());
|
|
3434
|
+
continue;
|
|
3435
|
+
}
|
|
3436
|
+
case 3: {
|
|
3437
|
+
if (tag !== 26) {
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
message.dot2 = exports.Point2D.decode(reader, reader.uint32());
|
|
3441
|
+
continue;
|
|
3442
|
+
}
|
|
3443
|
+
case 4: {
|
|
3444
|
+
if (tag !== 37) {
|
|
3445
|
+
break;
|
|
3446
|
+
}
|
|
3447
|
+
message.pixelDistance = reader.float();
|
|
3448
|
+
continue;
|
|
3449
|
+
}
|
|
3450
|
+
case 5: {
|
|
3451
|
+
if (tag !== 45) {
|
|
3452
|
+
break;
|
|
3453
|
+
}
|
|
3454
|
+
message.confidence = reader.float();
|
|
3455
|
+
continue;
|
|
3456
|
+
}
|
|
3457
|
+
case 6: {
|
|
3458
|
+
if (tag !== 48) {
|
|
3459
|
+
break;
|
|
3460
|
+
}
|
|
3461
|
+
message.imageWidth = reader.uint32();
|
|
3462
|
+
continue;
|
|
3463
|
+
}
|
|
3464
|
+
case 7: {
|
|
3465
|
+
if (tag !== 56) {
|
|
3466
|
+
break;
|
|
3467
|
+
}
|
|
3468
|
+
message.imageHeight = reader.uint32();
|
|
3469
|
+
continue;
|
|
3470
|
+
}
|
|
3471
|
+
case 8: {
|
|
3472
|
+
if (tag !== 69) {
|
|
3473
|
+
break;
|
|
3474
|
+
}
|
|
3475
|
+
message.laserWidth = reader.float();
|
|
3476
|
+
continue;
|
|
3477
|
+
}
|
|
3478
|
+
case 9: {
|
|
3479
|
+
if (tag !== 77) {
|
|
3480
|
+
break;
|
|
3481
|
+
}
|
|
3482
|
+
message.correctedPixelDistance = reader.float();
|
|
3483
|
+
continue;
|
|
3484
|
+
}
|
|
3485
|
+
case 10: {
|
|
3486
|
+
if (tag !== 85) {
|
|
3487
|
+
break;
|
|
3488
|
+
}
|
|
3489
|
+
message.estimatedDistance = reader.float();
|
|
3490
|
+
continue;
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3494
|
+
break;
|
|
3495
|
+
}
|
|
3496
|
+
reader.skip(tag & 7);
|
|
3497
|
+
}
|
|
3498
|
+
return message;
|
|
3499
|
+
},
|
|
3500
|
+
fromJSON(object) {
|
|
3501
|
+
return {
|
|
3502
|
+
detected: isSet(object.detected) ? gt.Boolean(object.detected) : false,
|
|
3503
|
+
dot1: isSet(object.dot1) ? exports.Point2D.fromJSON(object.dot1) : undefined,
|
|
3504
|
+
dot2: isSet(object.dot2) ? exports.Point2D.fromJSON(object.dot2) : undefined,
|
|
3505
|
+
pixelDistance: isSet(object.pixelDistance) ? gt.Number(object.pixelDistance) : 0,
|
|
3506
|
+
confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
|
|
3507
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
3508
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
3509
|
+
laserWidth: isSet(object.laserWidth) ? gt.Number(object.laserWidth) : 0,
|
|
3510
|
+
correctedPixelDistance: isSet(object.correctedPixelDistance) ? gt.Number(object.correctedPixelDistance) : 0,
|
|
3511
|
+
estimatedDistance: isSet(object.estimatedDistance) ? gt.Number(object.estimatedDistance) : 0,
|
|
3512
|
+
};
|
|
3513
|
+
},
|
|
3514
|
+
toJSON(message) {
|
|
3515
|
+
const obj = {};
|
|
3516
|
+
if (message.detected !== false) {
|
|
3517
|
+
obj.detected = message.detected;
|
|
3518
|
+
}
|
|
3519
|
+
if (message.dot1 !== undefined) {
|
|
3520
|
+
obj.dot1 = exports.Point2D.toJSON(message.dot1);
|
|
3521
|
+
}
|
|
3522
|
+
if (message.dot2 !== undefined) {
|
|
3523
|
+
obj.dot2 = exports.Point2D.toJSON(message.dot2);
|
|
3524
|
+
}
|
|
3525
|
+
if (message.pixelDistance !== 0) {
|
|
3526
|
+
obj.pixelDistance = message.pixelDistance;
|
|
3527
|
+
}
|
|
3528
|
+
if (message.confidence !== 0) {
|
|
3529
|
+
obj.confidence = message.confidence;
|
|
3530
|
+
}
|
|
3531
|
+
if (message.imageWidth !== 0) {
|
|
3532
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
3533
|
+
}
|
|
3534
|
+
if (message.imageHeight !== 0) {
|
|
3535
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
3536
|
+
}
|
|
3537
|
+
if (message.laserWidth !== 0) {
|
|
3538
|
+
obj.laserWidth = message.laserWidth;
|
|
3539
|
+
}
|
|
3540
|
+
if (message.correctedPixelDistance !== 0) {
|
|
3541
|
+
obj.correctedPixelDistance = message.correctedPixelDistance;
|
|
3542
|
+
}
|
|
3543
|
+
if (message.estimatedDistance !== 0) {
|
|
3544
|
+
obj.estimatedDistance = message.estimatedDistance;
|
|
3545
|
+
}
|
|
3546
|
+
return obj;
|
|
3547
|
+
},
|
|
3548
|
+
create(base) {
|
|
3549
|
+
return exports.LaserDetection.fromPartial(base ?? {});
|
|
3550
|
+
},
|
|
3551
|
+
fromPartial(object) {
|
|
3552
|
+
const message = createBaseLaserDetection();
|
|
3553
|
+
message.detected = object.detected ?? false;
|
|
3554
|
+
message.dot1 = (object.dot1 !== undefined && object.dot1 !== null) ? exports.Point2D.fromPartial(object.dot1) : undefined;
|
|
3555
|
+
message.dot2 = (object.dot2 !== undefined && object.dot2 !== null) ? exports.Point2D.fromPartial(object.dot2) : undefined;
|
|
3556
|
+
message.pixelDistance = object.pixelDistance ?? 0;
|
|
3557
|
+
message.confidence = object.confidence ?? 0;
|
|
3558
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
3559
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
3560
|
+
message.laserWidth = object.laserWidth ?? 0;
|
|
3561
|
+
message.correctedPixelDistance = object.correctedPixelDistance ?? 0;
|
|
3562
|
+
message.estimatedDistance = object.estimatedDistance ?? 0;
|
|
3053
3563
|
return message;
|
|
3054
3564
|
},
|
|
3055
3565
|
};
|
|
@@ -4074,7 +4584,9 @@ function createBaseRecordState() {
|
|
|
4074
4584
|
multibeamIsRecording: false,
|
|
4075
4585
|
multibeamSeconds: 0,
|
|
4076
4586
|
multibeamFps: 0,
|
|
4077
|
-
|
|
4587
|
+
mainStorageLocation: 0,
|
|
4588
|
+
guestportStorageLocation: 0,
|
|
4589
|
+
multibeamStorageLocation: 0,
|
|
4078
4590
|
};
|
|
4079
4591
|
}
|
|
4080
4592
|
exports.RecordState = {
|
|
@@ -4106,8 +4618,14 @@ exports.RecordState = {
|
|
|
4106
4618
|
if (message.multibeamFps !== 0) {
|
|
4107
4619
|
writer.uint32(77).float(message.multibeamFps);
|
|
4108
4620
|
}
|
|
4109
|
-
if (message.
|
|
4110
|
-
writer.uint32(80).int32(message.
|
|
4621
|
+
if (message.mainStorageLocation !== 0) {
|
|
4622
|
+
writer.uint32(80).int32(message.mainStorageLocation);
|
|
4623
|
+
}
|
|
4624
|
+
if (message.guestportStorageLocation !== 0) {
|
|
4625
|
+
writer.uint32(88).int32(message.guestportStorageLocation);
|
|
4626
|
+
}
|
|
4627
|
+
if (message.multibeamStorageLocation !== 0) {
|
|
4628
|
+
writer.uint32(96).int32(message.multibeamStorageLocation);
|
|
4111
4629
|
}
|
|
4112
4630
|
return writer;
|
|
4113
4631
|
},
|
|
@@ -4185,16 +4703,30 @@ exports.RecordState = {
|
|
|
4185
4703
|
if (tag !== 80) {
|
|
4186
4704
|
break;
|
|
4187
4705
|
}
|
|
4188
|
-
message.
|
|
4706
|
+
message.mainStorageLocation = reader.int32();
|
|
4189
4707
|
continue;
|
|
4190
4708
|
}
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4709
|
+
case 11: {
|
|
4710
|
+
if (tag !== 88) {
|
|
4711
|
+
break;
|
|
4712
|
+
}
|
|
4713
|
+
message.guestportStorageLocation = reader.int32();
|
|
4714
|
+
continue;
|
|
4715
|
+
}
|
|
4716
|
+
case 12: {
|
|
4717
|
+
if (tag !== 96) {
|
|
4718
|
+
break;
|
|
4719
|
+
}
|
|
4720
|
+
message.multibeamStorageLocation = reader.int32();
|
|
4721
|
+
continue;
|
|
4722
|
+
}
|
|
4723
|
+
}
|
|
4724
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4725
|
+
break;
|
|
4726
|
+
}
|
|
4727
|
+
reader.skip(tag & 7);
|
|
4728
|
+
}
|
|
4729
|
+
return message;
|
|
4198
4730
|
},
|
|
4199
4731
|
fromJSON(object) {
|
|
4200
4732
|
return {
|
|
@@ -4207,7 +4739,13 @@ exports.RecordState = {
|
|
|
4207
4739
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
4208
4740
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
4209
4741
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4210
|
-
|
|
4742
|
+
mainStorageLocation: isSet(object.mainStorageLocation) ? storageLocationFromJSON(object.mainStorageLocation) : 0,
|
|
4743
|
+
guestportStorageLocation: isSet(object.guestportStorageLocation)
|
|
4744
|
+
? storageLocationFromJSON(object.guestportStorageLocation)
|
|
4745
|
+
: 0,
|
|
4746
|
+
multibeamStorageLocation: isSet(object.multibeamStorageLocation)
|
|
4747
|
+
? storageLocationFromJSON(object.multibeamStorageLocation)
|
|
4748
|
+
: 0,
|
|
4211
4749
|
};
|
|
4212
4750
|
},
|
|
4213
4751
|
toJSON(message) {
|
|
@@ -4239,8 +4777,14 @@ exports.RecordState = {
|
|
|
4239
4777
|
if (message.multibeamFps !== 0) {
|
|
4240
4778
|
obj.multibeamFps = message.multibeamFps;
|
|
4241
4779
|
}
|
|
4242
|
-
if (message.
|
|
4243
|
-
obj.
|
|
4780
|
+
if (message.mainStorageLocation !== 0) {
|
|
4781
|
+
obj.mainStorageLocation = storageLocationToJSON(message.mainStorageLocation);
|
|
4782
|
+
}
|
|
4783
|
+
if (message.guestportStorageLocation !== 0) {
|
|
4784
|
+
obj.guestportStorageLocation = storageLocationToJSON(message.guestportStorageLocation);
|
|
4785
|
+
}
|
|
4786
|
+
if (message.multibeamStorageLocation !== 0) {
|
|
4787
|
+
obj.multibeamStorageLocation = storageLocationToJSON(message.multibeamStorageLocation);
|
|
4244
4788
|
}
|
|
4245
4789
|
return obj;
|
|
4246
4790
|
},
|
|
@@ -4258,7 +4802,9 @@ exports.RecordState = {
|
|
|
4258
4802
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
4259
4803
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
4260
4804
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4261
|
-
message.
|
|
4805
|
+
message.mainStorageLocation = object.mainStorageLocation ?? 0;
|
|
4806
|
+
message.guestportStorageLocation = object.guestportStorageLocation ?? 0;
|
|
4807
|
+
message.multibeamStorageLocation = object.multibeamStorageLocation ?? 0;
|
|
4262
4808
|
return message;
|
|
4263
4809
|
},
|
|
4264
4810
|
};
|
|
@@ -8954,6 +9500,134 @@ exports.TiltVelocity = {
|
|
|
8954
9500
|
return message;
|
|
8955
9501
|
},
|
|
8956
9502
|
};
|
|
9503
|
+
function createBaseCvModelInfo() {
|
|
9504
|
+
return { name: "", type: 0, running: false, device: "", packageId: "", labels: [] };
|
|
9505
|
+
}
|
|
9506
|
+
exports.CvModelInfo = {
|
|
9507
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9508
|
+
if (message.name !== "") {
|
|
9509
|
+
writer.uint32(10).string(message.name);
|
|
9510
|
+
}
|
|
9511
|
+
if (message.type !== 0) {
|
|
9512
|
+
writer.uint32(16).int32(message.type);
|
|
9513
|
+
}
|
|
9514
|
+
if (message.running !== false) {
|
|
9515
|
+
writer.uint32(24).bool(message.running);
|
|
9516
|
+
}
|
|
9517
|
+
if (message.device !== "") {
|
|
9518
|
+
writer.uint32(34).string(message.device);
|
|
9519
|
+
}
|
|
9520
|
+
if (message.packageId !== "") {
|
|
9521
|
+
writer.uint32(42).string(message.packageId);
|
|
9522
|
+
}
|
|
9523
|
+
for (const v of message.labels) {
|
|
9524
|
+
writer.uint32(50).string(v);
|
|
9525
|
+
}
|
|
9526
|
+
return writer;
|
|
9527
|
+
},
|
|
9528
|
+
decode(input, length) {
|
|
9529
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9530
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9531
|
+
const message = createBaseCvModelInfo();
|
|
9532
|
+
while (reader.pos < end) {
|
|
9533
|
+
const tag = reader.uint32();
|
|
9534
|
+
switch (tag >>> 3) {
|
|
9535
|
+
case 1: {
|
|
9536
|
+
if (tag !== 10) {
|
|
9537
|
+
break;
|
|
9538
|
+
}
|
|
9539
|
+
message.name = reader.string();
|
|
9540
|
+
continue;
|
|
9541
|
+
}
|
|
9542
|
+
case 2: {
|
|
9543
|
+
if (tag !== 16) {
|
|
9544
|
+
break;
|
|
9545
|
+
}
|
|
9546
|
+
message.type = reader.int32();
|
|
9547
|
+
continue;
|
|
9548
|
+
}
|
|
9549
|
+
case 3: {
|
|
9550
|
+
if (tag !== 24) {
|
|
9551
|
+
break;
|
|
9552
|
+
}
|
|
9553
|
+
message.running = reader.bool();
|
|
9554
|
+
continue;
|
|
9555
|
+
}
|
|
9556
|
+
case 4: {
|
|
9557
|
+
if (tag !== 34) {
|
|
9558
|
+
break;
|
|
9559
|
+
}
|
|
9560
|
+
message.device = reader.string();
|
|
9561
|
+
continue;
|
|
9562
|
+
}
|
|
9563
|
+
case 5: {
|
|
9564
|
+
if (tag !== 42) {
|
|
9565
|
+
break;
|
|
9566
|
+
}
|
|
9567
|
+
message.packageId = reader.string();
|
|
9568
|
+
continue;
|
|
9569
|
+
}
|
|
9570
|
+
case 6: {
|
|
9571
|
+
if (tag !== 50) {
|
|
9572
|
+
break;
|
|
9573
|
+
}
|
|
9574
|
+
message.labels.push(reader.string());
|
|
9575
|
+
continue;
|
|
9576
|
+
}
|
|
9577
|
+
}
|
|
9578
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9579
|
+
break;
|
|
9580
|
+
}
|
|
9581
|
+
reader.skip(tag & 7);
|
|
9582
|
+
}
|
|
9583
|
+
return message;
|
|
9584
|
+
},
|
|
9585
|
+
fromJSON(object) {
|
|
9586
|
+
return {
|
|
9587
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
9588
|
+
type: isSet(object.type) ? cvModelInfo_ModelTypeFromJSON(object.type) : 0,
|
|
9589
|
+
running: isSet(object.running) ? gt.Boolean(object.running) : false,
|
|
9590
|
+
device: isSet(object.device) ? gt.String(object.device) : "",
|
|
9591
|
+
packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
|
|
9592
|
+
labels: gt.Array.isArray(object?.labels) ? object.labels.map((e) => gt.String(e)) : [],
|
|
9593
|
+
};
|
|
9594
|
+
},
|
|
9595
|
+
toJSON(message) {
|
|
9596
|
+
const obj = {};
|
|
9597
|
+
if (message.name !== "") {
|
|
9598
|
+
obj.name = message.name;
|
|
9599
|
+
}
|
|
9600
|
+
if (message.type !== 0) {
|
|
9601
|
+
obj.type = cvModelInfo_ModelTypeToJSON(message.type);
|
|
9602
|
+
}
|
|
9603
|
+
if (message.running !== false) {
|
|
9604
|
+
obj.running = message.running;
|
|
9605
|
+
}
|
|
9606
|
+
if (message.device !== "") {
|
|
9607
|
+
obj.device = message.device;
|
|
9608
|
+
}
|
|
9609
|
+
if (message.packageId !== "") {
|
|
9610
|
+
obj.packageId = message.packageId;
|
|
9611
|
+
}
|
|
9612
|
+
if (message.labels?.length) {
|
|
9613
|
+
obj.labels = message.labels;
|
|
9614
|
+
}
|
|
9615
|
+
return obj;
|
|
9616
|
+
},
|
|
9617
|
+
create(base) {
|
|
9618
|
+
return exports.CvModelInfo.fromPartial(base ?? {});
|
|
9619
|
+
},
|
|
9620
|
+
fromPartial(object) {
|
|
9621
|
+
const message = createBaseCvModelInfo();
|
|
9622
|
+
message.name = object.name ?? "";
|
|
9623
|
+
message.type = object.type ?? 0;
|
|
9624
|
+
message.running = object.running ?? false;
|
|
9625
|
+
message.device = object.device ?? "";
|
|
9626
|
+
message.packageId = object.packageId ?? "";
|
|
9627
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
9628
|
+
return message;
|
|
9629
|
+
},
|
|
9630
|
+
};
|
|
8957
9631
|
function createBaseDroneInfo() {
|
|
8958
9632
|
return {
|
|
8959
9633
|
blunuxVersion: "",
|
|
@@ -8967,6 +9641,7 @@ function createBaseDroneInfo() {
|
|
|
8967
9641
|
bbUid: new Uint8Array(0),
|
|
8968
9642
|
gp: undefined,
|
|
8969
9643
|
depthSensor: 0,
|
|
9644
|
+
cvModels: [],
|
|
8970
9645
|
};
|
|
8971
9646
|
}
|
|
8972
9647
|
exports.DroneInfo = {
|
|
@@ -9004,6 +9679,9 @@ exports.DroneInfo = {
|
|
|
9004
9679
|
if (message.depthSensor !== 0) {
|
|
9005
9680
|
writer.uint32(88).int32(message.depthSensor);
|
|
9006
9681
|
}
|
|
9682
|
+
for (const v of message.cvModels) {
|
|
9683
|
+
exports.CvModelInfo.encode(v, writer.uint32(98).fork()).join();
|
|
9684
|
+
}
|
|
9007
9685
|
return writer;
|
|
9008
9686
|
},
|
|
9009
9687
|
decode(input, length) {
|
|
@@ -9090,6 +9768,13 @@ exports.DroneInfo = {
|
|
|
9090
9768
|
message.depthSensor = reader.int32();
|
|
9091
9769
|
continue;
|
|
9092
9770
|
}
|
|
9771
|
+
case 12: {
|
|
9772
|
+
if (tag !== 98) {
|
|
9773
|
+
break;
|
|
9774
|
+
}
|
|
9775
|
+
message.cvModels.push(exports.CvModelInfo.decode(reader, reader.uint32()));
|
|
9776
|
+
continue;
|
|
9777
|
+
}
|
|
9093
9778
|
}
|
|
9094
9779
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9095
9780
|
break;
|
|
@@ -9111,6 +9796,7 @@ exports.DroneInfo = {
|
|
|
9111
9796
|
bbUid: isSet(object.bbUid) ? bytesFromBase64(object.bbUid) : new Uint8Array(0),
|
|
9112
9797
|
gp: isSet(object.gp) ? exports.GuestPortInfo.fromJSON(object.gp) : undefined,
|
|
9113
9798
|
depthSensor: isSet(object.depthSensor) ? pressureSensorTypeFromJSON(object.depthSensor) : 0,
|
|
9799
|
+
cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => exports.CvModelInfo.fromJSON(e)) : [],
|
|
9114
9800
|
};
|
|
9115
9801
|
},
|
|
9116
9802
|
toJSON(message) {
|
|
@@ -9148,6 +9834,9 @@ exports.DroneInfo = {
|
|
|
9148
9834
|
if (message.depthSensor !== 0) {
|
|
9149
9835
|
obj.depthSensor = pressureSensorTypeToJSON(message.depthSensor);
|
|
9150
9836
|
}
|
|
9837
|
+
if (message.cvModels?.length) {
|
|
9838
|
+
obj.cvModels = message.cvModels.map((e) => exports.CvModelInfo.toJSON(e));
|
|
9839
|
+
}
|
|
9151
9840
|
return obj;
|
|
9152
9841
|
},
|
|
9153
9842
|
create(base) {
|
|
@@ -9166,6 +9855,7 @@ exports.DroneInfo = {
|
|
|
9166
9855
|
message.bbUid = object.bbUid ?? new Uint8Array(0);
|
|
9167
9856
|
message.gp = (object.gp !== undefined && object.gp !== null) ? exports.GuestPortInfo.fromPartial(object.gp) : undefined;
|
|
9168
9857
|
message.depthSensor = object.depthSensor ?? 0;
|
|
9858
|
+
message.cvModels = object.cvModels?.map((e) => exports.CvModelInfo.fromPartial(e)) || [];
|
|
9169
9859
|
return message;
|
|
9170
9860
|
},
|
|
9171
9861
|
};
|
|
@@ -9990,6 +10680,9 @@ function createBaseCameraParameters() {
|
|
|
9990
10680
|
streamingProtocol: 0,
|
|
9991
10681
|
framerate: 0,
|
|
9992
10682
|
camera: 0,
|
|
10683
|
+
mtuSize: 0,
|
|
10684
|
+
recordingCodec: 0,
|
|
10685
|
+
recordingBitrate: 0,
|
|
9993
10686
|
};
|
|
9994
10687
|
}
|
|
9995
10688
|
exports.CameraParameters = {
|
|
@@ -10060,6 +10753,15 @@ exports.CameraParameters = {
|
|
|
10060
10753
|
if (message.camera !== 0) {
|
|
10061
10754
|
writer.uint32(64).int32(message.camera);
|
|
10062
10755
|
}
|
|
10756
|
+
if (message.mtuSize !== 0) {
|
|
10757
|
+
writer.uint32(192).uint32(message.mtuSize);
|
|
10758
|
+
}
|
|
10759
|
+
if (message.recordingCodec !== 0) {
|
|
10760
|
+
writer.uint32(200).int32(message.recordingCodec);
|
|
10761
|
+
}
|
|
10762
|
+
if (message.recordingBitrate !== 0) {
|
|
10763
|
+
writer.uint32(208).int32(message.recordingBitrate);
|
|
10764
|
+
}
|
|
10063
10765
|
return writer;
|
|
10064
10766
|
},
|
|
10065
10767
|
decode(input, length) {
|
|
@@ -10223,6 +10925,27 @@ exports.CameraParameters = {
|
|
|
10223
10925
|
message.camera = reader.int32();
|
|
10224
10926
|
continue;
|
|
10225
10927
|
}
|
|
10928
|
+
case 24: {
|
|
10929
|
+
if (tag !== 192) {
|
|
10930
|
+
break;
|
|
10931
|
+
}
|
|
10932
|
+
message.mtuSize = reader.uint32();
|
|
10933
|
+
continue;
|
|
10934
|
+
}
|
|
10935
|
+
case 25: {
|
|
10936
|
+
if (tag !== 200) {
|
|
10937
|
+
break;
|
|
10938
|
+
}
|
|
10939
|
+
message.recordingCodec = reader.int32();
|
|
10940
|
+
continue;
|
|
10941
|
+
}
|
|
10942
|
+
case 26: {
|
|
10943
|
+
if (tag !== 208) {
|
|
10944
|
+
break;
|
|
10945
|
+
}
|
|
10946
|
+
message.recordingBitrate = reader.int32();
|
|
10947
|
+
continue;
|
|
10948
|
+
}
|
|
10226
10949
|
}
|
|
10227
10950
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10228
10951
|
break;
|
|
@@ -10255,6 +10978,9 @@ exports.CameraParameters = {
|
|
|
10255
10978
|
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
10256
10979
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
10257
10980
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
10981
|
+
mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
|
|
10982
|
+
recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
|
|
10983
|
+
recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
|
|
10258
10984
|
};
|
|
10259
10985
|
},
|
|
10260
10986
|
toJSON(message) {
|
|
@@ -10325,6 +11051,15 @@ exports.CameraParameters = {
|
|
|
10325
11051
|
if (message.camera !== 0) {
|
|
10326
11052
|
obj.camera = cameraToJSON(message.camera);
|
|
10327
11053
|
}
|
|
11054
|
+
if (message.mtuSize !== 0) {
|
|
11055
|
+
obj.mtuSize = Math.round(message.mtuSize);
|
|
11056
|
+
}
|
|
11057
|
+
if (message.recordingCodec !== 0) {
|
|
11058
|
+
obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
|
|
11059
|
+
}
|
|
11060
|
+
if (message.recordingBitrate !== 0) {
|
|
11061
|
+
obj.recordingBitrate = Math.round(message.recordingBitrate);
|
|
11062
|
+
}
|
|
10328
11063
|
return obj;
|
|
10329
11064
|
},
|
|
10330
11065
|
create(base) {
|
|
@@ -10354,6 +11089,9 @@ exports.CameraParameters = {
|
|
|
10354
11089
|
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
10355
11090
|
message.framerate = object.framerate ?? 0;
|
|
10356
11091
|
message.camera = object.camera ?? 0;
|
|
11092
|
+
message.mtuSize = object.mtuSize ?? 0;
|
|
11093
|
+
message.recordingCodec = object.recordingCodec ?? 0;
|
|
11094
|
+
message.recordingBitrate = object.recordingBitrate ?? 0;
|
|
10357
11095
|
return message;
|
|
10358
11096
|
},
|
|
10359
11097
|
};
|
|
@@ -13209,23 +13947,26 @@ exports.CPUInfo = {
|
|
|
13209
13947
|
return message;
|
|
13210
13948
|
},
|
|
13211
13949
|
};
|
|
13212
|
-
function
|
|
13213
|
-
return {
|
|
13950
|
+
function createBaseCpuCoreLoad() {
|
|
13951
|
+
return { coreIndex: 0, load: 0, frequencyMhz: 0 };
|
|
13214
13952
|
}
|
|
13215
|
-
exports.
|
|
13953
|
+
exports.CpuCoreLoad = {
|
|
13216
13954
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13217
|
-
if (message.
|
|
13218
|
-
writer.uint32(8).
|
|
13955
|
+
if (message.coreIndex !== 0) {
|
|
13956
|
+
writer.uint32(8).uint32(message.coreIndex);
|
|
13219
13957
|
}
|
|
13220
|
-
if (message.
|
|
13221
|
-
writer.uint32(21).float(message.
|
|
13958
|
+
if (message.load !== 0) {
|
|
13959
|
+
writer.uint32(21).float(message.load);
|
|
13960
|
+
}
|
|
13961
|
+
if (message.frequencyMhz !== 0) {
|
|
13962
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
13222
13963
|
}
|
|
13223
13964
|
return writer;
|
|
13224
13965
|
},
|
|
13225
13966
|
decode(input, length) {
|
|
13226
13967
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13227
13968
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13228
|
-
const message =
|
|
13969
|
+
const message = createBaseCpuCoreLoad();
|
|
13229
13970
|
while (reader.pos < end) {
|
|
13230
13971
|
const tag = reader.uint32();
|
|
13231
13972
|
switch (tag >>> 3) {
|
|
@@ -13233,14 +13974,21 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13233
13974
|
if (tag !== 8) {
|
|
13234
13975
|
break;
|
|
13235
13976
|
}
|
|
13236
|
-
message.
|
|
13977
|
+
message.coreIndex = reader.uint32();
|
|
13237
13978
|
continue;
|
|
13238
13979
|
}
|
|
13239
13980
|
case 2: {
|
|
13240
13981
|
if (tag !== 21) {
|
|
13241
13982
|
break;
|
|
13242
13983
|
}
|
|
13243
|
-
message.
|
|
13984
|
+
message.load = reader.float();
|
|
13985
|
+
continue;
|
|
13986
|
+
}
|
|
13987
|
+
case 3: {
|
|
13988
|
+
if (tag !== 29) {
|
|
13989
|
+
break;
|
|
13990
|
+
}
|
|
13991
|
+
message.frequencyMhz = reader.float();
|
|
13244
13992
|
continue;
|
|
13245
13993
|
}
|
|
13246
13994
|
}
|
|
@@ -13253,52 +14001,67 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13253
14001
|
},
|
|
13254
14002
|
fromJSON(object) {
|
|
13255
14003
|
return {
|
|
13256
|
-
|
|
13257
|
-
|
|
14004
|
+
coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
|
|
14005
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
14006
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13258
14007
|
};
|
|
13259
14008
|
},
|
|
13260
14009
|
toJSON(message) {
|
|
13261
14010
|
const obj = {};
|
|
13262
|
-
if (message.
|
|
13263
|
-
obj.
|
|
14011
|
+
if (message.coreIndex !== 0) {
|
|
14012
|
+
obj.coreIndex = Math.round(message.coreIndex);
|
|
13264
14013
|
}
|
|
13265
|
-
if (message.
|
|
13266
|
-
obj.
|
|
14014
|
+
if (message.load !== 0) {
|
|
14015
|
+
obj.load = message.load;
|
|
14016
|
+
}
|
|
14017
|
+
if (message.frequencyMhz !== 0) {
|
|
14018
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13267
14019
|
}
|
|
13268
14020
|
return obj;
|
|
13269
14021
|
},
|
|
13270
14022
|
create(base) {
|
|
13271
|
-
return exports.
|
|
14023
|
+
return exports.CpuCoreLoad.fromPartial(base ?? {});
|
|
13272
14024
|
},
|
|
13273
14025
|
fromPartial(object) {
|
|
13274
|
-
const message =
|
|
13275
|
-
message.
|
|
13276
|
-
message.
|
|
14026
|
+
const message = createBaseCpuCoreLoad();
|
|
14027
|
+
message.coreIndex = object.coreIndex ?? 0;
|
|
14028
|
+
message.load = object.load ?? 0;
|
|
14029
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13277
14030
|
return message;
|
|
13278
14031
|
},
|
|
13279
14032
|
};
|
|
13280
|
-
function
|
|
13281
|
-
return {
|
|
14033
|
+
function createBaseGpuInfo() {
|
|
14034
|
+
return { load: 0, frequencyMhz: 0 };
|
|
13282
14035
|
}
|
|
13283
|
-
exports.
|
|
14036
|
+
exports.GpuInfo = {
|
|
13284
14037
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13285
|
-
if (message.
|
|
13286
|
-
writer.uint32(
|
|
14038
|
+
if (message.load !== 0) {
|
|
14039
|
+
writer.uint32(13).float(message.load);
|
|
14040
|
+
}
|
|
14041
|
+
if (message.frequencyMhz !== 0) {
|
|
14042
|
+
writer.uint32(21).float(message.frequencyMhz);
|
|
13287
14043
|
}
|
|
13288
14044
|
return writer;
|
|
13289
14045
|
},
|
|
13290
14046
|
decode(input, length) {
|
|
13291
14047
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13292
14048
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13293
|
-
const message =
|
|
14049
|
+
const message = createBaseGpuInfo();
|
|
13294
14050
|
while (reader.pos < end) {
|
|
13295
14051
|
const tag = reader.uint32();
|
|
13296
14052
|
switch (tag >>> 3) {
|
|
13297
14053
|
case 1: {
|
|
13298
|
-
if (tag !==
|
|
14054
|
+
if (tag !== 13) {
|
|
13299
14055
|
break;
|
|
13300
14056
|
}
|
|
13301
|
-
message.
|
|
14057
|
+
message.load = reader.float();
|
|
14058
|
+
continue;
|
|
14059
|
+
}
|
|
14060
|
+
case 2: {
|
|
14061
|
+
if (tag !== 21) {
|
|
14062
|
+
break;
|
|
14063
|
+
}
|
|
14064
|
+
message.frequencyMhz = reader.float();
|
|
13302
14065
|
continue;
|
|
13303
14066
|
}
|
|
13304
14067
|
}
|
|
@@ -13310,21 +14073,1659 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
13310
14073
|
return message;
|
|
13311
14074
|
},
|
|
13312
14075
|
fromJSON(object) {
|
|
13313
|
-
return {
|
|
14076
|
+
return {
|
|
14077
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
14078
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
14079
|
+
};
|
|
13314
14080
|
},
|
|
13315
14081
|
toJSON(message) {
|
|
13316
14082
|
const obj = {};
|
|
13317
|
-
if (message.
|
|
13318
|
-
obj.
|
|
14083
|
+
if (message.load !== 0) {
|
|
14084
|
+
obj.load = message.load;
|
|
14085
|
+
}
|
|
14086
|
+
if (message.frequencyMhz !== 0) {
|
|
14087
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13319
14088
|
}
|
|
13320
14089
|
return obj;
|
|
13321
14090
|
},
|
|
13322
14091
|
create(base) {
|
|
13323
|
-
return exports.
|
|
14092
|
+
return exports.GpuInfo.fromPartial(base ?? {});
|
|
13324
14093
|
},
|
|
13325
14094
|
fromPartial(object) {
|
|
13326
|
-
const message =
|
|
13327
|
-
message.
|
|
14095
|
+
const message = createBaseGpuInfo();
|
|
14096
|
+
message.load = object.load ?? 0;
|
|
14097
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
14098
|
+
return message;
|
|
14099
|
+
},
|
|
14100
|
+
};
|
|
14101
|
+
function createBaseDlaInfo() {
|
|
14102
|
+
return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
|
|
14103
|
+
}
|
|
14104
|
+
exports.DlaInfo = {
|
|
14105
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14106
|
+
if (message.engineIndex !== 0) {
|
|
14107
|
+
writer.uint32(8).uint32(message.engineIndex);
|
|
14108
|
+
}
|
|
14109
|
+
if (message.load !== 0) {
|
|
14110
|
+
writer.uint32(21).float(message.load);
|
|
14111
|
+
}
|
|
14112
|
+
if (message.frequencyMhz !== 0) {
|
|
14113
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
14114
|
+
}
|
|
14115
|
+
if (message.enabled !== false) {
|
|
14116
|
+
writer.uint32(32).bool(message.enabled);
|
|
14117
|
+
}
|
|
14118
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
14119
|
+
writer.uint32(45).float(message.falconFrequencyMhz);
|
|
14120
|
+
}
|
|
14121
|
+
return writer;
|
|
14122
|
+
},
|
|
14123
|
+
decode(input, length) {
|
|
14124
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14125
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14126
|
+
const message = createBaseDlaInfo();
|
|
14127
|
+
while (reader.pos < end) {
|
|
14128
|
+
const tag = reader.uint32();
|
|
14129
|
+
switch (tag >>> 3) {
|
|
14130
|
+
case 1: {
|
|
14131
|
+
if (tag !== 8) {
|
|
14132
|
+
break;
|
|
14133
|
+
}
|
|
14134
|
+
message.engineIndex = reader.uint32();
|
|
14135
|
+
continue;
|
|
14136
|
+
}
|
|
14137
|
+
case 2: {
|
|
14138
|
+
if (tag !== 21) {
|
|
14139
|
+
break;
|
|
14140
|
+
}
|
|
14141
|
+
message.load = reader.float();
|
|
14142
|
+
continue;
|
|
14143
|
+
}
|
|
14144
|
+
case 3: {
|
|
14145
|
+
if (tag !== 29) {
|
|
14146
|
+
break;
|
|
14147
|
+
}
|
|
14148
|
+
message.frequencyMhz = reader.float();
|
|
14149
|
+
continue;
|
|
14150
|
+
}
|
|
14151
|
+
case 4: {
|
|
14152
|
+
if (tag !== 32) {
|
|
14153
|
+
break;
|
|
14154
|
+
}
|
|
14155
|
+
message.enabled = reader.bool();
|
|
14156
|
+
continue;
|
|
14157
|
+
}
|
|
14158
|
+
case 5: {
|
|
14159
|
+
if (tag !== 45) {
|
|
14160
|
+
break;
|
|
14161
|
+
}
|
|
14162
|
+
message.falconFrequencyMhz = reader.float();
|
|
14163
|
+
continue;
|
|
14164
|
+
}
|
|
14165
|
+
}
|
|
14166
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14167
|
+
break;
|
|
14168
|
+
}
|
|
14169
|
+
reader.skip(tag & 7);
|
|
14170
|
+
}
|
|
14171
|
+
return message;
|
|
14172
|
+
},
|
|
14173
|
+
fromJSON(object) {
|
|
14174
|
+
return {
|
|
14175
|
+
engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
|
|
14176
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
14177
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
14178
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
14179
|
+
falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
|
|
14180
|
+
};
|
|
14181
|
+
},
|
|
14182
|
+
toJSON(message) {
|
|
14183
|
+
const obj = {};
|
|
14184
|
+
if (message.engineIndex !== 0) {
|
|
14185
|
+
obj.engineIndex = Math.round(message.engineIndex);
|
|
14186
|
+
}
|
|
14187
|
+
if (message.load !== 0) {
|
|
14188
|
+
obj.load = message.load;
|
|
14189
|
+
}
|
|
14190
|
+
if (message.frequencyMhz !== 0) {
|
|
14191
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
14192
|
+
}
|
|
14193
|
+
if (message.enabled !== false) {
|
|
14194
|
+
obj.enabled = message.enabled;
|
|
14195
|
+
}
|
|
14196
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
14197
|
+
obj.falconFrequencyMhz = message.falconFrequencyMhz;
|
|
14198
|
+
}
|
|
14199
|
+
return obj;
|
|
14200
|
+
},
|
|
14201
|
+
create(base) {
|
|
14202
|
+
return exports.DlaInfo.fromPartial(base ?? {});
|
|
14203
|
+
},
|
|
14204
|
+
fromPartial(object) {
|
|
14205
|
+
const message = createBaseDlaInfo();
|
|
14206
|
+
message.engineIndex = object.engineIndex ?? 0;
|
|
14207
|
+
message.load = object.load ?? 0;
|
|
14208
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
14209
|
+
message.enabled = object.enabled ?? false;
|
|
14210
|
+
message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
|
|
14211
|
+
return message;
|
|
14212
|
+
},
|
|
14213
|
+
};
|
|
14214
|
+
function createBaseMemoryInfo() {
|
|
14215
|
+
return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
|
|
14216
|
+
}
|
|
14217
|
+
exports.MemoryInfo = {
|
|
14218
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14219
|
+
if (message.totalBytes !== 0) {
|
|
14220
|
+
writer.uint32(8).uint64(message.totalBytes);
|
|
14221
|
+
}
|
|
14222
|
+
if (message.usedBytes !== 0) {
|
|
14223
|
+
writer.uint32(16).uint64(message.usedBytes);
|
|
14224
|
+
}
|
|
14225
|
+
if (message.cachedBytes !== 0) {
|
|
14226
|
+
writer.uint32(24).uint64(message.cachedBytes);
|
|
14227
|
+
}
|
|
14228
|
+
if (message.busLoad !== 0) {
|
|
14229
|
+
writer.uint32(37).float(message.busLoad);
|
|
14230
|
+
}
|
|
14231
|
+
return writer;
|
|
14232
|
+
},
|
|
14233
|
+
decode(input, length) {
|
|
14234
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14235
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14236
|
+
const message = createBaseMemoryInfo();
|
|
14237
|
+
while (reader.pos < end) {
|
|
14238
|
+
const tag = reader.uint32();
|
|
14239
|
+
switch (tag >>> 3) {
|
|
14240
|
+
case 1: {
|
|
14241
|
+
if (tag !== 8) {
|
|
14242
|
+
break;
|
|
14243
|
+
}
|
|
14244
|
+
message.totalBytes = longToNumber(reader.uint64());
|
|
14245
|
+
continue;
|
|
14246
|
+
}
|
|
14247
|
+
case 2: {
|
|
14248
|
+
if (tag !== 16) {
|
|
14249
|
+
break;
|
|
14250
|
+
}
|
|
14251
|
+
message.usedBytes = longToNumber(reader.uint64());
|
|
14252
|
+
continue;
|
|
14253
|
+
}
|
|
14254
|
+
case 3: {
|
|
14255
|
+
if (tag !== 24) {
|
|
14256
|
+
break;
|
|
14257
|
+
}
|
|
14258
|
+
message.cachedBytes = longToNumber(reader.uint64());
|
|
14259
|
+
continue;
|
|
14260
|
+
}
|
|
14261
|
+
case 4: {
|
|
14262
|
+
if (tag !== 37) {
|
|
14263
|
+
break;
|
|
14264
|
+
}
|
|
14265
|
+
message.busLoad = reader.float();
|
|
14266
|
+
continue;
|
|
14267
|
+
}
|
|
14268
|
+
}
|
|
14269
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14270
|
+
break;
|
|
14271
|
+
}
|
|
14272
|
+
reader.skip(tag & 7);
|
|
14273
|
+
}
|
|
14274
|
+
return message;
|
|
14275
|
+
},
|
|
14276
|
+
fromJSON(object) {
|
|
14277
|
+
return {
|
|
14278
|
+
totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
|
|
14279
|
+
usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
|
|
14280
|
+
cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
|
|
14281
|
+
busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
|
|
14282
|
+
};
|
|
14283
|
+
},
|
|
14284
|
+
toJSON(message) {
|
|
14285
|
+
const obj = {};
|
|
14286
|
+
if (message.totalBytes !== 0) {
|
|
14287
|
+
obj.totalBytes = Math.round(message.totalBytes);
|
|
14288
|
+
}
|
|
14289
|
+
if (message.usedBytes !== 0) {
|
|
14290
|
+
obj.usedBytes = Math.round(message.usedBytes);
|
|
14291
|
+
}
|
|
14292
|
+
if (message.cachedBytes !== 0) {
|
|
14293
|
+
obj.cachedBytes = Math.round(message.cachedBytes);
|
|
14294
|
+
}
|
|
14295
|
+
if (message.busLoad !== 0) {
|
|
14296
|
+
obj.busLoad = message.busLoad;
|
|
14297
|
+
}
|
|
14298
|
+
return obj;
|
|
14299
|
+
},
|
|
14300
|
+
create(base) {
|
|
14301
|
+
return exports.MemoryInfo.fromPartial(base ?? {});
|
|
14302
|
+
},
|
|
14303
|
+
fromPartial(object) {
|
|
14304
|
+
const message = createBaseMemoryInfo();
|
|
14305
|
+
message.totalBytes = object.totalBytes ?? 0;
|
|
14306
|
+
message.usedBytes = object.usedBytes ?? 0;
|
|
14307
|
+
message.cachedBytes = object.cachedBytes ?? 0;
|
|
14308
|
+
message.busLoad = object.busLoad ?? 0;
|
|
14309
|
+
return message;
|
|
14310
|
+
},
|
|
14311
|
+
};
|
|
14312
|
+
function createBaseThermalZone() {
|
|
14313
|
+
return { zone: 0, temperature: 0 };
|
|
14314
|
+
}
|
|
14315
|
+
exports.ThermalZone = {
|
|
14316
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14317
|
+
if (message.zone !== 0) {
|
|
14318
|
+
writer.uint32(8).int32(message.zone);
|
|
14319
|
+
}
|
|
14320
|
+
if (message.temperature !== 0) {
|
|
14321
|
+
writer.uint32(21).float(message.temperature);
|
|
14322
|
+
}
|
|
14323
|
+
return writer;
|
|
14324
|
+
},
|
|
14325
|
+
decode(input, length) {
|
|
14326
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14327
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14328
|
+
const message = createBaseThermalZone();
|
|
14329
|
+
while (reader.pos < end) {
|
|
14330
|
+
const tag = reader.uint32();
|
|
14331
|
+
switch (tag >>> 3) {
|
|
14332
|
+
case 1: {
|
|
14333
|
+
if (tag !== 8) {
|
|
14334
|
+
break;
|
|
14335
|
+
}
|
|
14336
|
+
message.zone = reader.int32();
|
|
14337
|
+
continue;
|
|
14338
|
+
}
|
|
14339
|
+
case 2: {
|
|
14340
|
+
if (tag !== 21) {
|
|
14341
|
+
break;
|
|
14342
|
+
}
|
|
14343
|
+
message.temperature = reader.float();
|
|
14344
|
+
continue;
|
|
14345
|
+
}
|
|
14346
|
+
}
|
|
14347
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14348
|
+
break;
|
|
14349
|
+
}
|
|
14350
|
+
reader.skip(tag & 7);
|
|
14351
|
+
}
|
|
14352
|
+
return message;
|
|
14353
|
+
},
|
|
14354
|
+
fromJSON(object) {
|
|
14355
|
+
return {
|
|
14356
|
+
zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
|
|
14357
|
+
temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
|
|
14358
|
+
};
|
|
14359
|
+
},
|
|
14360
|
+
toJSON(message) {
|
|
14361
|
+
const obj = {};
|
|
14362
|
+
if (message.zone !== 0) {
|
|
14363
|
+
obj.zone = thermalZoneIdToJSON(message.zone);
|
|
14364
|
+
}
|
|
14365
|
+
if (message.temperature !== 0) {
|
|
14366
|
+
obj.temperature = message.temperature;
|
|
14367
|
+
}
|
|
14368
|
+
return obj;
|
|
14369
|
+
},
|
|
14370
|
+
create(base) {
|
|
14371
|
+
return exports.ThermalZone.fromPartial(base ?? {});
|
|
14372
|
+
},
|
|
14373
|
+
fromPartial(object) {
|
|
14374
|
+
const message = createBaseThermalZone();
|
|
14375
|
+
message.zone = object.zone ?? 0;
|
|
14376
|
+
message.temperature = object.temperature ?? 0;
|
|
14377
|
+
return message;
|
|
14378
|
+
},
|
|
14379
|
+
};
|
|
14380
|
+
function createBaseVideoCodecInfo() {
|
|
14381
|
+
return {
|
|
14382
|
+
encoderActive: false,
|
|
14383
|
+
encoderFrequencyMhz: 0,
|
|
14384
|
+
decoderActive: false,
|
|
14385
|
+
decoderFrequencyMhz: 0,
|
|
14386
|
+
nvjpgActive: false,
|
|
14387
|
+
nvjpgFrequencyMhz: 0,
|
|
14388
|
+
vicActive: false,
|
|
14389
|
+
vicFrequencyMhz: 0,
|
|
14390
|
+
vpuActive: false,
|
|
14391
|
+
vpuFrequencyMhz: 0,
|
|
14392
|
+
vpuCodecIrqCount: 0,
|
|
14393
|
+
vpuJpgIrqCount: 0,
|
|
14394
|
+
};
|
|
14395
|
+
}
|
|
14396
|
+
exports.VideoCodecInfo = {
|
|
14397
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14398
|
+
if (message.encoderActive !== false) {
|
|
14399
|
+
writer.uint32(8).bool(message.encoderActive);
|
|
14400
|
+
}
|
|
14401
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
14402
|
+
writer.uint32(21).float(message.encoderFrequencyMhz);
|
|
14403
|
+
}
|
|
14404
|
+
if (message.decoderActive !== false) {
|
|
14405
|
+
writer.uint32(24).bool(message.decoderActive);
|
|
14406
|
+
}
|
|
14407
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
14408
|
+
writer.uint32(37).float(message.decoderFrequencyMhz);
|
|
14409
|
+
}
|
|
14410
|
+
if (message.nvjpgActive !== false) {
|
|
14411
|
+
writer.uint32(40).bool(message.nvjpgActive);
|
|
14412
|
+
}
|
|
14413
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
14414
|
+
writer.uint32(53).float(message.nvjpgFrequencyMhz);
|
|
14415
|
+
}
|
|
14416
|
+
if (message.vicActive !== false) {
|
|
14417
|
+
writer.uint32(56).bool(message.vicActive);
|
|
14418
|
+
}
|
|
14419
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
14420
|
+
writer.uint32(69).float(message.vicFrequencyMhz);
|
|
14421
|
+
}
|
|
14422
|
+
if (message.vpuActive !== false) {
|
|
14423
|
+
writer.uint32(72).bool(message.vpuActive);
|
|
14424
|
+
}
|
|
14425
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
14426
|
+
writer.uint32(85).float(message.vpuFrequencyMhz);
|
|
14427
|
+
}
|
|
14428
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
14429
|
+
writer.uint32(88).uint32(message.vpuCodecIrqCount);
|
|
14430
|
+
}
|
|
14431
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
14432
|
+
writer.uint32(96).uint32(message.vpuJpgIrqCount);
|
|
14433
|
+
}
|
|
14434
|
+
return writer;
|
|
14435
|
+
},
|
|
14436
|
+
decode(input, length) {
|
|
14437
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14438
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14439
|
+
const message = createBaseVideoCodecInfo();
|
|
14440
|
+
while (reader.pos < end) {
|
|
14441
|
+
const tag = reader.uint32();
|
|
14442
|
+
switch (tag >>> 3) {
|
|
14443
|
+
case 1: {
|
|
14444
|
+
if (tag !== 8) {
|
|
14445
|
+
break;
|
|
14446
|
+
}
|
|
14447
|
+
message.encoderActive = reader.bool();
|
|
14448
|
+
continue;
|
|
14449
|
+
}
|
|
14450
|
+
case 2: {
|
|
14451
|
+
if (tag !== 21) {
|
|
14452
|
+
break;
|
|
14453
|
+
}
|
|
14454
|
+
message.encoderFrequencyMhz = reader.float();
|
|
14455
|
+
continue;
|
|
14456
|
+
}
|
|
14457
|
+
case 3: {
|
|
14458
|
+
if (tag !== 24) {
|
|
14459
|
+
break;
|
|
14460
|
+
}
|
|
14461
|
+
message.decoderActive = reader.bool();
|
|
14462
|
+
continue;
|
|
14463
|
+
}
|
|
14464
|
+
case 4: {
|
|
14465
|
+
if (tag !== 37) {
|
|
14466
|
+
break;
|
|
14467
|
+
}
|
|
14468
|
+
message.decoderFrequencyMhz = reader.float();
|
|
14469
|
+
continue;
|
|
14470
|
+
}
|
|
14471
|
+
case 5: {
|
|
14472
|
+
if (tag !== 40) {
|
|
14473
|
+
break;
|
|
14474
|
+
}
|
|
14475
|
+
message.nvjpgActive = reader.bool();
|
|
14476
|
+
continue;
|
|
14477
|
+
}
|
|
14478
|
+
case 6: {
|
|
14479
|
+
if (tag !== 53) {
|
|
14480
|
+
break;
|
|
14481
|
+
}
|
|
14482
|
+
message.nvjpgFrequencyMhz = reader.float();
|
|
14483
|
+
continue;
|
|
14484
|
+
}
|
|
14485
|
+
case 7: {
|
|
14486
|
+
if (tag !== 56) {
|
|
14487
|
+
break;
|
|
14488
|
+
}
|
|
14489
|
+
message.vicActive = reader.bool();
|
|
14490
|
+
continue;
|
|
14491
|
+
}
|
|
14492
|
+
case 8: {
|
|
14493
|
+
if (tag !== 69) {
|
|
14494
|
+
break;
|
|
14495
|
+
}
|
|
14496
|
+
message.vicFrequencyMhz = reader.float();
|
|
14497
|
+
continue;
|
|
14498
|
+
}
|
|
14499
|
+
case 9: {
|
|
14500
|
+
if (tag !== 72) {
|
|
14501
|
+
break;
|
|
14502
|
+
}
|
|
14503
|
+
message.vpuActive = reader.bool();
|
|
14504
|
+
continue;
|
|
14505
|
+
}
|
|
14506
|
+
case 10: {
|
|
14507
|
+
if (tag !== 85) {
|
|
14508
|
+
break;
|
|
14509
|
+
}
|
|
14510
|
+
message.vpuFrequencyMhz = reader.float();
|
|
14511
|
+
continue;
|
|
14512
|
+
}
|
|
14513
|
+
case 11: {
|
|
14514
|
+
if (tag !== 88) {
|
|
14515
|
+
break;
|
|
14516
|
+
}
|
|
14517
|
+
message.vpuCodecIrqCount = reader.uint32();
|
|
14518
|
+
continue;
|
|
14519
|
+
}
|
|
14520
|
+
case 12: {
|
|
14521
|
+
if (tag !== 96) {
|
|
14522
|
+
break;
|
|
14523
|
+
}
|
|
14524
|
+
message.vpuJpgIrqCount = reader.uint32();
|
|
14525
|
+
continue;
|
|
14526
|
+
}
|
|
14527
|
+
}
|
|
14528
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14529
|
+
break;
|
|
14530
|
+
}
|
|
14531
|
+
reader.skip(tag & 7);
|
|
14532
|
+
}
|
|
14533
|
+
return message;
|
|
14534
|
+
},
|
|
14535
|
+
fromJSON(object) {
|
|
14536
|
+
return {
|
|
14537
|
+
encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
|
|
14538
|
+
encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
|
|
14539
|
+
decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
|
|
14540
|
+
decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
|
|
14541
|
+
nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
|
|
14542
|
+
nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
|
|
14543
|
+
vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
|
|
14544
|
+
vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
|
|
14545
|
+
vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
|
|
14546
|
+
vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
|
|
14547
|
+
vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
|
|
14548
|
+
vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
|
|
14549
|
+
};
|
|
14550
|
+
},
|
|
14551
|
+
toJSON(message) {
|
|
14552
|
+
const obj = {};
|
|
14553
|
+
if (message.encoderActive !== false) {
|
|
14554
|
+
obj.encoderActive = message.encoderActive;
|
|
14555
|
+
}
|
|
14556
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
14557
|
+
obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
|
|
14558
|
+
}
|
|
14559
|
+
if (message.decoderActive !== false) {
|
|
14560
|
+
obj.decoderActive = message.decoderActive;
|
|
14561
|
+
}
|
|
14562
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
14563
|
+
obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
|
|
14564
|
+
}
|
|
14565
|
+
if (message.nvjpgActive !== false) {
|
|
14566
|
+
obj.nvjpgActive = message.nvjpgActive;
|
|
14567
|
+
}
|
|
14568
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
14569
|
+
obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
|
|
14570
|
+
}
|
|
14571
|
+
if (message.vicActive !== false) {
|
|
14572
|
+
obj.vicActive = message.vicActive;
|
|
14573
|
+
}
|
|
14574
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
14575
|
+
obj.vicFrequencyMhz = message.vicFrequencyMhz;
|
|
14576
|
+
}
|
|
14577
|
+
if (message.vpuActive !== false) {
|
|
14578
|
+
obj.vpuActive = message.vpuActive;
|
|
14579
|
+
}
|
|
14580
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
14581
|
+
obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
|
|
14582
|
+
}
|
|
14583
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
14584
|
+
obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
|
|
14585
|
+
}
|
|
14586
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
14587
|
+
obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
|
|
14588
|
+
}
|
|
14589
|
+
return obj;
|
|
14590
|
+
},
|
|
14591
|
+
create(base) {
|
|
14592
|
+
return exports.VideoCodecInfo.fromPartial(base ?? {});
|
|
14593
|
+
},
|
|
14594
|
+
fromPartial(object) {
|
|
14595
|
+
const message = createBaseVideoCodecInfo();
|
|
14596
|
+
message.encoderActive = object.encoderActive ?? false;
|
|
14597
|
+
message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
|
|
14598
|
+
message.decoderActive = object.decoderActive ?? false;
|
|
14599
|
+
message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
|
|
14600
|
+
message.nvjpgActive = object.nvjpgActive ?? false;
|
|
14601
|
+
message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
|
|
14602
|
+
message.vicActive = object.vicActive ?? false;
|
|
14603
|
+
message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
|
|
14604
|
+
message.vpuActive = object.vpuActive ?? false;
|
|
14605
|
+
message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
|
|
14606
|
+
message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
|
|
14607
|
+
message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
|
|
14608
|
+
return message;
|
|
14609
|
+
},
|
|
14610
|
+
};
|
|
14611
|
+
function createBaseSystemPerformanceInfo() {
|
|
14612
|
+
return {
|
|
14613
|
+
cpuCores: [],
|
|
14614
|
+
cpuUtilization: 0,
|
|
14615
|
+
gpu: undefined,
|
|
14616
|
+
dlaEngines: [],
|
|
14617
|
+
memory: undefined,
|
|
14618
|
+
thermalZones: [],
|
|
14619
|
+
videoCodec: undefined,
|
|
14620
|
+
mainQueueLoad: 0,
|
|
14621
|
+
guestportQueueLoad: 0,
|
|
14622
|
+
commQueueLoad: 0,
|
|
14623
|
+
cameraQueueLoad: 0,
|
|
14624
|
+
overlayQueueLoad: 0,
|
|
14625
|
+
positionObserverQueueLoad: 0,
|
|
14626
|
+
};
|
|
14627
|
+
}
|
|
14628
|
+
exports.SystemPerformanceInfo = {
|
|
14629
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14630
|
+
for (const v of message.cpuCores) {
|
|
14631
|
+
exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
|
|
14632
|
+
}
|
|
14633
|
+
if (message.cpuUtilization !== 0) {
|
|
14634
|
+
writer.uint32(21).float(message.cpuUtilization);
|
|
14635
|
+
}
|
|
14636
|
+
if (message.gpu !== undefined) {
|
|
14637
|
+
exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
|
|
14638
|
+
}
|
|
14639
|
+
for (const v of message.dlaEngines) {
|
|
14640
|
+
exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
|
|
14641
|
+
}
|
|
14642
|
+
if (message.memory !== undefined) {
|
|
14643
|
+
exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
|
|
14644
|
+
}
|
|
14645
|
+
for (const v of message.thermalZones) {
|
|
14646
|
+
exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
|
|
14647
|
+
}
|
|
14648
|
+
if (message.videoCodec !== undefined) {
|
|
14649
|
+
exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
|
|
14650
|
+
}
|
|
14651
|
+
if (message.mainQueueLoad !== 0) {
|
|
14652
|
+
writer.uint32(69).float(message.mainQueueLoad);
|
|
14653
|
+
}
|
|
14654
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14655
|
+
writer.uint32(77).float(message.guestportQueueLoad);
|
|
14656
|
+
}
|
|
14657
|
+
if (message.commQueueLoad !== 0) {
|
|
14658
|
+
writer.uint32(85).float(message.commQueueLoad);
|
|
14659
|
+
}
|
|
14660
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14661
|
+
writer.uint32(93).float(message.cameraQueueLoad);
|
|
14662
|
+
}
|
|
14663
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14664
|
+
writer.uint32(101).float(message.overlayQueueLoad);
|
|
14665
|
+
}
|
|
14666
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14667
|
+
writer.uint32(109).float(message.positionObserverQueueLoad);
|
|
14668
|
+
}
|
|
14669
|
+
return writer;
|
|
14670
|
+
},
|
|
14671
|
+
decode(input, length) {
|
|
14672
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14673
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14674
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14675
|
+
while (reader.pos < end) {
|
|
14676
|
+
const tag = reader.uint32();
|
|
14677
|
+
switch (tag >>> 3) {
|
|
14678
|
+
case 1: {
|
|
14679
|
+
if (tag !== 10) {
|
|
14680
|
+
break;
|
|
14681
|
+
}
|
|
14682
|
+
message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
|
|
14683
|
+
continue;
|
|
14684
|
+
}
|
|
14685
|
+
case 2: {
|
|
14686
|
+
if (tag !== 21) {
|
|
14687
|
+
break;
|
|
14688
|
+
}
|
|
14689
|
+
message.cpuUtilization = reader.float();
|
|
14690
|
+
continue;
|
|
14691
|
+
}
|
|
14692
|
+
case 3: {
|
|
14693
|
+
if (tag !== 26) {
|
|
14694
|
+
break;
|
|
14695
|
+
}
|
|
14696
|
+
message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
|
|
14697
|
+
continue;
|
|
14698
|
+
}
|
|
14699
|
+
case 4: {
|
|
14700
|
+
if (tag !== 34) {
|
|
14701
|
+
break;
|
|
14702
|
+
}
|
|
14703
|
+
message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
|
|
14704
|
+
continue;
|
|
14705
|
+
}
|
|
14706
|
+
case 5: {
|
|
14707
|
+
if (tag !== 42) {
|
|
14708
|
+
break;
|
|
14709
|
+
}
|
|
14710
|
+
message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
|
|
14711
|
+
continue;
|
|
14712
|
+
}
|
|
14713
|
+
case 6: {
|
|
14714
|
+
if (tag !== 50) {
|
|
14715
|
+
break;
|
|
14716
|
+
}
|
|
14717
|
+
message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
|
|
14718
|
+
continue;
|
|
14719
|
+
}
|
|
14720
|
+
case 7: {
|
|
14721
|
+
if (tag !== 58) {
|
|
14722
|
+
break;
|
|
14723
|
+
}
|
|
14724
|
+
message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
|
|
14725
|
+
continue;
|
|
14726
|
+
}
|
|
14727
|
+
case 8: {
|
|
14728
|
+
if (tag !== 69) {
|
|
14729
|
+
break;
|
|
14730
|
+
}
|
|
14731
|
+
message.mainQueueLoad = reader.float();
|
|
14732
|
+
continue;
|
|
14733
|
+
}
|
|
14734
|
+
case 9: {
|
|
14735
|
+
if (tag !== 77) {
|
|
14736
|
+
break;
|
|
14737
|
+
}
|
|
14738
|
+
message.guestportQueueLoad = reader.float();
|
|
14739
|
+
continue;
|
|
14740
|
+
}
|
|
14741
|
+
case 10: {
|
|
14742
|
+
if (tag !== 85) {
|
|
14743
|
+
break;
|
|
14744
|
+
}
|
|
14745
|
+
message.commQueueLoad = reader.float();
|
|
14746
|
+
continue;
|
|
14747
|
+
}
|
|
14748
|
+
case 11: {
|
|
14749
|
+
if (tag !== 93) {
|
|
14750
|
+
break;
|
|
14751
|
+
}
|
|
14752
|
+
message.cameraQueueLoad = reader.float();
|
|
14753
|
+
continue;
|
|
14754
|
+
}
|
|
14755
|
+
case 12: {
|
|
14756
|
+
if (tag !== 101) {
|
|
14757
|
+
break;
|
|
14758
|
+
}
|
|
14759
|
+
message.overlayQueueLoad = reader.float();
|
|
14760
|
+
continue;
|
|
14761
|
+
}
|
|
14762
|
+
case 13: {
|
|
14763
|
+
if (tag !== 109) {
|
|
14764
|
+
break;
|
|
14765
|
+
}
|
|
14766
|
+
message.positionObserverQueueLoad = reader.float();
|
|
14767
|
+
continue;
|
|
14768
|
+
}
|
|
14769
|
+
}
|
|
14770
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14771
|
+
break;
|
|
14772
|
+
}
|
|
14773
|
+
reader.skip(tag & 7);
|
|
14774
|
+
}
|
|
14775
|
+
return message;
|
|
14776
|
+
},
|
|
14777
|
+
fromJSON(object) {
|
|
14778
|
+
return {
|
|
14779
|
+
cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
|
|
14780
|
+
cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
|
|
14781
|
+
gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
|
|
14782
|
+
dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
|
|
14783
|
+
memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
|
|
14784
|
+
thermalZones: gt.Array.isArray(object?.thermalZones)
|
|
14785
|
+
? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
|
|
14786
|
+
: [],
|
|
14787
|
+
videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
|
|
14788
|
+
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
14789
|
+
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
14790
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
14791
|
+
cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
|
|
14792
|
+
overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
|
|
14793
|
+
positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
|
|
14794
|
+
? gt.Number(object.positionObserverQueueLoad)
|
|
14795
|
+
: 0,
|
|
14796
|
+
};
|
|
14797
|
+
},
|
|
14798
|
+
toJSON(message) {
|
|
14799
|
+
const obj = {};
|
|
14800
|
+
if (message.cpuCores?.length) {
|
|
14801
|
+
obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
|
|
14802
|
+
}
|
|
14803
|
+
if (message.cpuUtilization !== 0) {
|
|
14804
|
+
obj.cpuUtilization = message.cpuUtilization;
|
|
14805
|
+
}
|
|
14806
|
+
if (message.gpu !== undefined) {
|
|
14807
|
+
obj.gpu = exports.GpuInfo.toJSON(message.gpu);
|
|
14808
|
+
}
|
|
14809
|
+
if (message.dlaEngines?.length) {
|
|
14810
|
+
obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
|
|
14811
|
+
}
|
|
14812
|
+
if (message.memory !== undefined) {
|
|
14813
|
+
obj.memory = exports.MemoryInfo.toJSON(message.memory);
|
|
14814
|
+
}
|
|
14815
|
+
if (message.thermalZones?.length) {
|
|
14816
|
+
obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
|
|
14817
|
+
}
|
|
14818
|
+
if (message.videoCodec !== undefined) {
|
|
14819
|
+
obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
|
|
14820
|
+
}
|
|
14821
|
+
if (message.mainQueueLoad !== 0) {
|
|
14822
|
+
obj.mainQueueLoad = message.mainQueueLoad;
|
|
14823
|
+
}
|
|
14824
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14825
|
+
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
14826
|
+
}
|
|
14827
|
+
if (message.commQueueLoad !== 0) {
|
|
14828
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
14829
|
+
}
|
|
14830
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14831
|
+
obj.cameraQueueLoad = message.cameraQueueLoad;
|
|
14832
|
+
}
|
|
14833
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14834
|
+
obj.overlayQueueLoad = message.overlayQueueLoad;
|
|
14835
|
+
}
|
|
14836
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14837
|
+
obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
|
|
14838
|
+
}
|
|
14839
|
+
return obj;
|
|
14840
|
+
},
|
|
14841
|
+
create(base) {
|
|
14842
|
+
return exports.SystemPerformanceInfo.fromPartial(base ?? {});
|
|
14843
|
+
},
|
|
14844
|
+
fromPartial(object) {
|
|
14845
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14846
|
+
message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
|
|
14847
|
+
message.cpuUtilization = object.cpuUtilization ?? 0;
|
|
14848
|
+
message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
|
|
14849
|
+
message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
|
|
14850
|
+
message.memory = (object.memory !== undefined && object.memory !== null)
|
|
14851
|
+
? exports.MemoryInfo.fromPartial(object.memory)
|
|
14852
|
+
: undefined;
|
|
14853
|
+
message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
|
|
14854
|
+
message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
|
|
14855
|
+
? exports.VideoCodecInfo.fromPartial(object.videoCodec)
|
|
14856
|
+
: undefined;
|
|
14857
|
+
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
14858
|
+
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
14859
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
14860
|
+
message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
|
|
14861
|
+
message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
|
|
14862
|
+
message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
|
|
14863
|
+
return message;
|
|
14864
|
+
},
|
|
14865
|
+
};
|
|
14866
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
14867
|
+
return { status: 0, level: 0 };
|
|
14868
|
+
}
|
|
14869
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
14870
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14871
|
+
if (message.status !== 0) {
|
|
14872
|
+
writer.uint32(8).int32(message.status);
|
|
14873
|
+
}
|
|
14874
|
+
if (message.level !== 0) {
|
|
14875
|
+
writer.uint32(21).float(message.level);
|
|
14876
|
+
}
|
|
14877
|
+
return writer;
|
|
14878
|
+
},
|
|
14879
|
+
decode(input, length) {
|
|
14880
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14881
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14882
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14883
|
+
while (reader.pos < end) {
|
|
14884
|
+
const tag = reader.uint32();
|
|
14885
|
+
switch (tag >>> 3) {
|
|
14886
|
+
case 1: {
|
|
14887
|
+
if (tag !== 8) {
|
|
14888
|
+
break;
|
|
14889
|
+
}
|
|
14890
|
+
message.status = reader.int32();
|
|
14891
|
+
continue;
|
|
14892
|
+
}
|
|
14893
|
+
case 2: {
|
|
14894
|
+
if (tag !== 21) {
|
|
14895
|
+
break;
|
|
14896
|
+
}
|
|
14897
|
+
message.level = reader.float();
|
|
14898
|
+
continue;
|
|
14899
|
+
}
|
|
14900
|
+
}
|
|
14901
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14902
|
+
break;
|
|
14903
|
+
}
|
|
14904
|
+
reader.skip(tag & 7);
|
|
14905
|
+
}
|
|
14906
|
+
return message;
|
|
14907
|
+
},
|
|
14908
|
+
fromJSON(object) {
|
|
14909
|
+
return {
|
|
14910
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
14911
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
14912
|
+
};
|
|
14913
|
+
},
|
|
14914
|
+
toJSON(message) {
|
|
14915
|
+
const obj = {};
|
|
14916
|
+
if (message.status !== 0) {
|
|
14917
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
14918
|
+
}
|
|
14919
|
+
if (message.level !== 0) {
|
|
14920
|
+
obj.level = message.level;
|
|
14921
|
+
}
|
|
14922
|
+
return obj;
|
|
14923
|
+
},
|
|
14924
|
+
create(base) {
|
|
14925
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
14926
|
+
},
|
|
14927
|
+
fromPartial(object) {
|
|
14928
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14929
|
+
message.status = object.status ?? 0;
|
|
14930
|
+
message.level = object.level ?? 0;
|
|
14931
|
+
return message;
|
|
14932
|
+
},
|
|
14933
|
+
};
|
|
14934
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
14935
|
+
return { version: "" };
|
|
14936
|
+
}
|
|
14937
|
+
exports.SurfaceUnitVersionInfo = {
|
|
14938
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14939
|
+
if (message.version !== "") {
|
|
14940
|
+
writer.uint32(10).string(message.version);
|
|
14941
|
+
}
|
|
14942
|
+
return writer;
|
|
14943
|
+
},
|
|
14944
|
+
decode(input, length) {
|
|
14945
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14946
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14947
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14948
|
+
while (reader.pos < end) {
|
|
14949
|
+
const tag = reader.uint32();
|
|
14950
|
+
switch (tag >>> 3) {
|
|
14951
|
+
case 1: {
|
|
14952
|
+
if (tag !== 10) {
|
|
14953
|
+
break;
|
|
14954
|
+
}
|
|
14955
|
+
message.version = reader.string();
|
|
14956
|
+
continue;
|
|
14957
|
+
}
|
|
14958
|
+
}
|
|
14959
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14960
|
+
break;
|
|
14961
|
+
}
|
|
14962
|
+
reader.skip(tag & 7);
|
|
14963
|
+
}
|
|
14964
|
+
return message;
|
|
14965
|
+
},
|
|
14966
|
+
fromJSON(object) {
|
|
14967
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
14968
|
+
},
|
|
14969
|
+
toJSON(message) {
|
|
14970
|
+
const obj = {};
|
|
14971
|
+
if (message.version !== "") {
|
|
14972
|
+
obj.version = message.version;
|
|
14973
|
+
}
|
|
14974
|
+
return obj;
|
|
14975
|
+
},
|
|
14976
|
+
create(base) {
|
|
14977
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
14978
|
+
},
|
|
14979
|
+
fromPartial(object) {
|
|
14980
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14981
|
+
message.version = object.version ?? "";
|
|
14982
|
+
return message;
|
|
14983
|
+
},
|
|
14984
|
+
};
|
|
14985
|
+
function createBaseBoundingBox() {
|
|
14986
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
14987
|
+
}
|
|
14988
|
+
exports.BoundingBox = {
|
|
14989
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14990
|
+
if (message.x !== 0) {
|
|
14991
|
+
writer.uint32(8).uint32(message.x);
|
|
14992
|
+
}
|
|
14993
|
+
if (message.y !== 0) {
|
|
14994
|
+
writer.uint32(16).uint32(message.y);
|
|
14995
|
+
}
|
|
14996
|
+
if (message.width !== 0) {
|
|
14997
|
+
writer.uint32(24).uint32(message.width);
|
|
14998
|
+
}
|
|
14999
|
+
if (message.height !== 0) {
|
|
15000
|
+
writer.uint32(32).uint32(message.height);
|
|
15001
|
+
}
|
|
15002
|
+
return writer;
|
|
15003
|
+
},
|
|
15004
|
+
decode(input, length) {
|
|
15005
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15006
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15007
|
+
const message = createBaseBoundingBox();
|
|
15008
|
+
while (reader.pos < end) {
|
|
15009
|
+
const tag = reader.uint32();
|
|
15010
|
+
switch (tag >>> 3) {
|
|
15011
|
+
case 1: {
|
|
15012
|
+
if (tag !== 8) {
|
|
15013
|
+
break;
|
|
15014
|
+
}
|
|
15015
|
+
message.x = reader.uint32();
|
|
15016
|
+
continue;
|
|
15017
|
+
}
|
|
15018
|
+
case 2: {
|
|
15019
|
+
if (tag !== 16) {
|
|
15020
|
+
break;
|
|
15021
|
+
}
|
|
15022
|
+
message.y = reader.uint32();
|
|
15023
|
+
continue;
|
|
15024
|
+
}
|
|
15025
|
+
case 3: {
|
|
15026
|
+
if (tag !== 24) {
|
|
15027
|
+
break;
|
|
15028
|
+
}
|
|
15029
|
+
message.width = reader.uint32();
|
|
15030
|
+
continue;
|
|
15031
|
+
}
|
|
15032
|
+
case 4: {
|
|
15033
|
+
if (tag !== 32) {
|
|
15034
|
+
break;
|
|
15035
|
+
}
|
|
15036
|
+
message.height = reader.uint32();
|
|
15037
|
+
continue;
|
|
15038
|
+
}
|
|
15039
|
+
}
|
|
15040
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15041
|
+
break;
|
|
15042
|
+
}
|
|
15043
|
+
reader.skip(tag & 7);
|
|
15044
|
+
}
|
|
15045
|
+
return message;
|
|
15046
|
+
},
|
|
15047
|
+
fromJSON(object) {
|
|
15048
|
+
return {
|
|
15049
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
15050
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
15051
|
+
width: isSet(object.width) ? gt.Number(object.width) : 0,
|
|
15052
|
+
height: isSet(object.height) ? gt.Number(object.height) : 0,
|
|
15053
|
+
};
|
|
15054
|
+
},
|
|
15055
|
+
toJSON(message) {
|
|
15056
|
+
const obj = {};
|
|
15057
|
+
if (message.x !== 0) {
|
|
15058
|
+
obj.x = Math.round(message.x);
|
|
15059
|
+
}
|
|
15060
|
+
if (message.y !== 0) {
|
|
15061
|
+
obj.y = Math.round(message.y);
|
|
15062
|
+
}
|
|
15063
|
+
if (message.width !== 0) {
|
|
15064
|
+
obj.width = Math.round(message.width);
|
|
15065
|
+
}
|
|
15066
|
+
if (message.height !== 0) {
|
|
15067
|
+
obj.height = Math.round(message.height);
|
|
15068
|
+
}
|
|
15069
|
+
return obj;
|
|
15070
|
+
},
|
|
15071
|
+
create(base) {
|
|
15072
|
+
return exports.BoundingBox.fromPartial(base ?? {});
|
|
15073
|
+
},
|
|
15074
|
+
fromPartial(object) {
|
|
15075
|
+
const message = createBaseBoundingBox();
|
|
15076
|
+
message.x = object.x ?? 0;
|
|
15077
|
+
message.y = object.y ?? 0;
|
|
15078
|
+
message.width = object.width ?? 0;
|
|
15079
|
+
message.height = object.height ?? 0;
|
|
15080
|
+
return message;
|
|
15081
|
+
},
|
|
15082
|
+
};
|
|
15083
|
+
function createBaseSegmentationMask() {
|
|
15084
|
+
return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0) };
|
|
15085
|
+
}
|
|
15086
|
+
exports.SegmentationMask = {
|
|
15087
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15088
|
+
if (message.maskWidth !== 0) {
|
|
15089
|
+
writer.uint32(8).uint32(message.maskWidth);
|
|
15090
|
+
}
|
|
15091
|
+
if (message.maskHeight !== 0) {
|
|
15092
|
+
writer.uint32(16).uint32(message.maskHeight);
|
|
15093
|
+
}
|
|
15094
|
+
if (message.counts.length !== 0) {
|
|
15095
|
+
writer.uint32(26).bytes(message.counts);
|
|
15096
|
+
}
|
|
15097
|
+
return writer;
|
|
15098
|
+
},
|
|
15099
|
+
decode(input, length) {
|
|
15100
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15101
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15102
|
+
const message = createBaseSegmentationMask();
|
|
15103
|
+
while (reader.pos < end) {
|
|
15104
|
+
const tag = reader.uint32();
|
|
15105
|
+
switch (tag >>> 3) {
|
|
15106
|
+
case 1: {
|
|
15107
|
+
if (tag !== 8) {
|
|
15108
|
+
break;
|
|
15109
|
+
}
|
|
15110
|
+
message.maskWidth = reader.uint32();
|
|
15111
|
+
continue;
|
|
15112
|
+
}
|
|
15113
|
+
case 2: {
|
|
15114
|
+
if (tag !== 16) {
|
|
15115
|
+
break;
|
|
15116
|
+
}
|
|
15117
|
+
message.maskHeight = reader.uint32();
|
|
15118
|
+
continue;
|
|
15119
|
+
}
|
|
15120
|
+
case 3: {
|
|
15121
|
+
if (tag !== 26) {
|
|
15122
|
+
break;
|
|
15123
|
+
}
|
|
15124
|
+
message.counts = reader.bytes();
|
|
15125
|
+
continue;
|
|
15126
|
+
}
|
|
15127
|
+
}
|
|
15128
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15129
|
+
break;
|
|
15130
|
+
}
|
|
15131
|
+
reader.skip(tag & 7);
|
|
15132
|
+
}
|
|
15133
|
+
return message;
|
|
15134
|
+
},
|
|
15135
|
+
fromJSON(object) {
|
|
15136
|
+
return {
|
|
15137
|
+
maskWidth: isSet(object.maskWidth) ? gt.Number(object.maskWidth) : 0,
|
|
15138
|
+
maskHeight: isSet(object.maskHeight) ? gt.Number(object.maskHeight) : 0,
|
|
15139
|
+
counts: isSet(object.counts) ? bytesFromBase64(object.counts) : new Uint8Array(0),
|
|
15140
|
+
};
|
|
15141
|
+
},
|
|
15142
|
+
toJSON(message) {
|
|
15143
|
+
const obj = {};
|
|
15144
|
+
if (message.maskWidth !== 0) {
|
|
15145
|
+
obj.maskWidth = Math.round(message.maskWidth);
|
|
15146
|
+
}
|
|
15147
|
+
if (message.maskHeight !== 0) {
|
|
15148
|
+
obj.maskHeight = Math.round(message.maskHeight);
|
|
15149
|
+
}
|
|
15150
|
+
if (message.counts.length !== 0) {
|
|
15151
|
+
obj.counts = base64FromBytes(message.counts);
|
|
15152
|
+
}
|
|
15153
|
+
return obj;
|
|
15154
|
+
},
|
|
15155
|
+
create(base) {
|
|
15156
|
+
return exports.SegmentationMask.fromPartial(base ?? {});
|
|
15157
|
+
},
|
|
15158
|
+
fromPartial(object) {
|
|
15159
|
+
const message = createBaseSegmentationMask();
|
|
15160
|
+
message.maskWidth = object.maskWidth ?? 0;
|
|
15161
|
+
message.maskHeight = object.maskHeight ?? 0;
|
|
15162
|
+
message.counts = object.counts ?? new Uint8Array(0);
|
|
15163
|
+
return message;
|
|
15164
|
+
},
|
|
15165
|
+
};
|
|
15166
|
+
function createBaseObjectDetection() {
|
|
15167
|
+
return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0, mask: undefined };
|
|
15168
|
+
}
|
|
15169
|
+
exports.ObjectDetection = {
|
|
15170
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15171
|
+
if (message.boundingBox !== undefined) {
|
|
15172
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
15173
|
+
}
|
|
15174
|
+
if (message.confidence !== 0) {
|
|
15175
|
+
writer.uint32(21).float(message.confidence);
|
|
15176
|
+
}
|
|
15177
|
+
if (message.classId !== 0) {
|
|
15178
|
+
writer.uint32(24).uint32(message.classId);
|
|
15179
|
+
}
|
|
15180
|
+
if (message.className !== "") {
|
|
15181
|
+
writer.uint32(34).string(message.className);
|
|
15182
|
+
}
|
|
15183
|
+
if (message.trackingId !== 0) {
|
|
15184
|
+
writer.uint32(40).uint32(message.trackingId);
|
|
15185
|
+
}
|
|
15186
|
+
if (message.mask !== undefined) {
|
|
15187
|
+
exports.SegmentationMask.encode(message.mask, writer.uint32(50).fork()).join();
|
|
15188
|
+
}
|
|
15189
|
+
return writer;
|
|
15190
|
+
},
|
|
15191
|
+
decode(input, length) {
|
|
15192
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15193
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15194
|
+
const message = createBaseObjectDetection();
|
|
15195
|
+
while (reader.pos < end) {
|
|
15196
|
+
const tag = reader.uint32();
|
|
15197
|
+
switch (tag >>> 3) {
|
|
15198
|
+
case 1: {
|
|
15199
|
+
if (tag !== 10) {
|
|
15200
|
+
break;
|
|
15201
|
+
}
|
|
15202
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
15203
|
+
continue;
|
|
15204
|
+
}
|
|
15205
|
+
case 2: {
|
|
15206
|
+
if (tag !== 21) {
|
|
15207
|
+
break;
|
|
15208
|
+
}
|
|
15209
|
+
message.confidence = reader.float();
|
|
15210
|
+
continue;
|
|
15211
|
+
}
|
|
15212
|
+
case 3: {
|
|
15213
|
+
if (tag !== 24) {
|
|
15214
|
+
break;
|
|
15215
|
+
}
|
|
15216
|
+
message.classId = reader.uint32();
|
|
15217
|
+
continue;
|
|
15218
|
+
}
|
|
15219
|
+
case 4: {
|
|
15220
|
+
if (tag !== 34) {
|
|
15221
|
+
break;
|
|
15222
|
+
}
|
|
15223
|
+
message.className = reader.string();
|
|
15224
|
+
continue;
|
|
15225
|
+
}
|
|
15226
|
+
case 5: {
|
|
15227
|
+
if (tag !== 40) {
|
|
15228
|
+
break;
|
|
15229
|
+
}
|
|
15230
|
+
message.trackingId = reader.uint32();
|
|
15231
|
+
continue;
|
|
15232
|
+
}
|
|
15233
|
+
case 6: {
|
|
15234
|
+
if (tag !== 50) {
|
|
15235
|
+
break;
|
|
15236
|
+
}
|
|
15237
|
+
message.mask = exports.SegmentationMask.decode(reader, reader.uint32());
|
|
15238
|
+
continue;
|
|
15239
|
+
}
|
|
15240
|
+
}
|
|
15241
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15242
|
+
break;
|
|
15243
|
+
}
|
|
15244
|
+
reader.skip(tag & 7);
|
|
15245
|
+
}
|
|
15246
|
+
return message;
|
|
15247
|
+
},
|
|
15248
|
+
fromJSON(object) {
|
|
15249
|
+
return {
|
|
15250
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
15251
|
+
confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
|
|
15252
|
+
classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
|
|
15253
|
+
className: isSet(object.className) ? gt.String(object.className) : "",
|
|
15254
|
+
trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
|
|
15255
|
+
mask: isSet(object.mask) ? exports.SegmentationMask.fromJSON(object.mask) : undefined,
|
|
15256
|
+
};
|
|
15257
|
+
},
|
|
15258
|
+
toJSON(message) {
|
|
15259
|
+
const obj = {};
|
|
15260
|
+
if (message.boundingBox !== undefined) {
|
|
15261
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
15262
|
+
}
|
|
15263
|
+
if (message.confidence !== 0) {
|
|
15264
|
+
obj.confidence = message.confidence;
|
|
15265
|
+
}
|
|
15266
|
+
if (message.classId !== 0) {
|
|
15267
|
+
obj.classId = Math.round(message.classId);
|
|
15268
|
+
}
|
|
15269
|
+
if (message.className !== "") {
|
|
15270
|
+
obj.className = message.className;
|
|
15271
|
+
}
|
|
15272
|
+
if (message.trackingId !== 0) {
|
|
15273
|
+
obj.trackingId = Math.round(message.trackingId);
|
|
15274
|
+
}
|
|
15275
|
+
if (message.mask !== undefined) {
|
|
15276
|
+
obj.mask = exports.SegmentationMask.toJSON(message.mask);
|
|
15277
|
+
}
|
|
15278
|
+
return obj;
|
|
15279
|
+
},
|
|
15280
|
+
create(base) {
|
|
15281
|
+
return exports.ObjectDetection.fromPartial(base ?? {});
|
|
15282
|
+
},
|
|
15283
|
+
fromPartial(object) {
|
|
15284
|
+
const message = createBaseObjectDetection();
|
|
15285
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
15286
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
15287
|
+
: undefined;
|
|
15288
|
+
message.confidence = object.confidence ?? 0;
|
|
15289
|
+
message.classId = object.classId ?? 0;
|
|
15290
|
+
message.className = object.className ?? "";
|
|
15291
|
+
message.trackingId = object.trackingId ?? 0;
|
|
15292
|
+
message.mask = (object.mask !== undefined && object.mask !== null)
|
|
15293
|
+
? exports.SegmentationMask.fromPartial(object.mask)
|
|
15294
|
+
: undefined;
|
|
15295
|
+
return message;
|
|
15296
|
+
},
|
|
15297
|
+
};
|
|
15298
|
+
function createBaseModelDetections() {
|
|
15299
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
15300
|
+
}
|
|
15301
|
+
exports.ModelDetections = {
|
|
15302
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15303
|
+
for (const v of message.detections) {
|
|
15304
|
+
exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
|
|
15305
|
+
}
|
|
15306
|
+
if (message.camera !== 0) {
|
|
15307
|
+
writer.uint32(16).int32(message.camera);
|
|
15308
|
+
}
|
|
15309
|
+
if (message.imageWidth !== 0) {
|
|
15310
|
+
writer.uint32(24).uint32(message.imageWidth);
|
|
15311
|
+
}
|
|
15312
|
+
if (message.imageHeight !== 0) {
|
|
15313
|
+
writer.uint32(32).uint32(message.imageHeight);
|
|
15314
|
+
}
|
|
15315
|
+
if (message.modelName !== "") {
|
|
15316
|
+
writer.uint32(42).string(message.modelName);
|
|
15317
|
+
}
|
|
15318
|
+
return writer;
|
|
15319
|
+
},
|
|
15320
|
+
decode(input, length) {
|
|
15321
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15322
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15323
|
+
const message = createBaseModelDetections();
|
|
15324
|
+
while (reader.pos < end) {
|
|
15325
|
+
const tag = reader.uint32();
|
|
15326
|
+
switch (tag >>> 3) {
|
|
15327
|
+
case 1: {
|
|
15328
|
+
if (tag !== 10) {
|
|
15329
|
+
break;
|
|
15330
|
+
}
|
|
15331
|
+
message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
|
|
15332
|
+
continue;
|
|
15333
|
+
}
|
|
15334
|
+
case 2: {
|
|
15335
|
+
if (tag !== 16) {
|
|
15336
|
+
break;
|
|
15337
|
+
}
|
|
15338
|
+
message.camera = reader.int32();
|
|
15339
|
+
continue;
|
|
15340
|
+
}
|
|
15341
|
+
case 3: {
|
|
15342
|
+
if (tag !== 24) {
|
|
15343
|
+
break;
|
|
15344
|
+
}
|
|
15345
|
+
message.imageWidth = reader.uint32();
|
|
15346
|
+
continue;
|
|
15347
|
+
}
|
|
15348
|
+
case 4: {
|
|
15349
|
+
if (tag !== 32) {
|
|
15350
|
+
break;
|
|
15351
|
+
}
|
|
15352
|
+
message.imageHeight = reader.uint32();
|
|
15353
|
+
continue;
|
|
15354
|
+
}
|
|
15355
|
+
case 5: {
|
|
15356
|
+
if (tag !== 42) {
|
|
15357
|
+
break;
|
|
15358
|
+
}
|
|
15359
|
+
message.modelName = reader.string();
|
|
15360
|
+
continue;
|
|
15361
|
+
}
|
|
15362
|
+
}
|
|
15363
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15364
|
+
break;
|
|
15365
|
+
}
|
|
15366
|
+
reader.skip(tag & 7);
|
|
15367
|
+
}
|
|
15368
|
+
return message;
|
|
15369
|
+
},
|
|
15370
|
+
fromJSON(object) {
|
|
15371
|
+
return {
|
|
15372
|
+
detections: gt.Array.isArray(object?.detections)
|
|
15373
|
+
? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
|
|
15374
|
+
: [],
|
|
15375
|
+
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
15376
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
15377
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
15378
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
15379
|
+
};
|
|
15380
|
+
},
|
|
15381
|
+
toJSON(message) {
|
|
15382
|
+
const obj = {};
|
|
15383
|
+
if (message.detections?.length) {
|
|
15384
|
+
obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
|
|
15385
|
+
}
|
|
15386
|
+
if (message.camera !== 0) {
|
|
15387
|
+
obj.camera = cameraToJSON(message.camera);
|
|
15388
|
+
}
|
|
15389
|
+
if (message.imageWidth !== 0) {
|
|
15390
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
15391
|
+
}
|
|
15392
|
+
if (message.imageHeight !== 0) {
|
|
15393
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
15394
|
+
}
|
|
15395
|
+
if (message.modelName !== "") {
|
|
15396
|
+
obj.modelName = message.modelName;
|
|
15397
|
+
}
|
|
15398
|
+
return obj;
|
|
15399
|
+
},
|
|
15400
|
+
create(base) {
|
|
15401
|
+
return exports.ModelDetections.fromPartial(base ?? {});
|
|
15402
|
+
},
|
|
15403
|
+
fromPartial(object) {
|
|
15404
|
+
const message = createBaseModelDetections();
|
|
15405
|
+
message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
|
|
15406
|
+
message.camera = object.camera ?? 0;
|
|
15407
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
15408
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
15409
|
+
message.modelName = object.modelName ?? "";
|
|
15410
|
+
return message;
|
|
15411
|
+
},
|
|
15412
|
+
};
|
|
15413
|
+
function createBaseFilterMessage() {
|
|
15414
|
+
return { enabled: false, intensity: 0 };
|
|
15415
|
+
}
|
|
15416
|
+
exports.FilterMessage = {
|
|
15417
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15418
|
+
if (message.enabled !== false) {
|
|
15419
|
+
writer.uint32(8).bool(message.enabled);
|
|
15420
|
+
}
|
|
15421
|
+
if (message.intensity !== 0) {
|
|
15422
|
+
writer.uint32(21).float(message.intensity);
|
|
15423
|
+
}
|
|
15424
|
+
return writer;
|
|
15425
|
+
},
|
|
15426
|
+
decode(input, length) {
|
|
15427
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15428
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15429
|
+
const message = createBaseFilterMessage();
|
|
15430
|
+
while (reader.pos < end) {
|
|
15431
|
+
const tag = reader.uint32();
|
|
15432
|
+
switch (tag >>> 3) {
|
|
15433
|
+
case 1: {
|
|
15434
|
+
if (tag !== 8) {
|
|
15435
|
+
break;
|
|
15436
|
+
}
|
|
15437
|
+
message.enabled = reader.bool();
|
|
15438
|
+
continue;
|
|
15439
|
+
}
|
|
15440
|
+
case 2: {
|
|
15441
|
+
if (tag !== 21) {
|
|
15442
|
+
break;
|
|
15443
|
+
}
|
|
15444
|
+
message.intensity = reader.float();
|
|
15445
|
+
continue;
|
|
15446
|
+
}
|
|
15447
|
+
}
|
|
15448
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15449
|
+
break;
|
|
15450
|
+
}
|
|
15451
|
+
reader.skip(tag & 7);
|
|
15452
|
+
}
|
|
15453
|
+
return message;
|
|
15454
|
+
},
|
|
15455
|
+
fromJSON(object) {
|
|
15456
|
+
return {
|
|
15457
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
15458
|
+
intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
|
|
15459
|
+
};
|
|
15460
|
+
},
|
|
15461
|
+
toJSON(message) {
|
|
15462
|
+
const obj = {};
|
|
15463
|
+
if (message.enabled !== false) {
|
|
15464
|
+
obj.enabled = message.enabled;
|
|
15465
|
+
}
|
|
15466
|
+
if (message.intensity !== 0) {
|
|
15467
|
+
obj.intensity = message.intensity;
|
|
15468
|
+
}
|
|
15469
|
+
return obj;
|
|
15470
|
+
},
|
|
15471
|
+
create(base) {
|
|
15472
|
+
return exports.FilterMessage.fromPartial(base ?? {});
|
|
15473
|
+
},
|
|
15474
|
+
fromPartial(object) {
|
|
15475
|
+
const message = createBaseFilterMessage();
|
|
15476
|
+
message.enabled = object.enabled ?? false;
|
|
15477
|
+
message.intensity = object.intensity ?? 0;
|
|
15478
|
+
return message;
|
|
15479
|
+
},
|
|
15480
|
+
};
|
|
15481
|
+
function createBaseCameraPanTiltZoom() {
|
|
15482
|
+
return { pan: 0, tilt: 0, zoom: 0 };
|
|
15483
|
+
}
|
|
15484
|
+
exports.CameraPanTiltZoom = {
|
|
15485
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15486
|
+
if (message.pan !== 0) {
|
|
15487
|
+
writer.uint32(13).float(message.pan);
|
|
15488
|
+
}
|
|
15489
|
+
if (message.tilt !== 0) {
|
|
15490
|
+
writer.uint32(21).float(message.tilt);
|
|
15491
|
+
}
|
|
15492
|
+
if (message.zoom !== 0) {
|
|
15493
|
+
writer.uint32(29).float(message.zoom);
|
|
15494
|
+
}
|
|
15495
|
+
return writer;
|
|
15496
|
+
},
|
|
15497
|
+
decode(input, length) {
|
|
15498
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15499
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15500
|
+
const message = createBaseCameraPanTiltZoom();
|
|
15501
|
+
while (reader.pos < end) {
|
|
15502
|
+
const tag = reader.uint32();
|
|
15503
|
+
switch (tag >>> 3) {
|
|
15504
|
+
case 1: {
|
|
15505
|
+
if (tag !== 13) {
|
|
15506
|
+
break;
|
|
15507
|
+
}
|
|
15508
|
+
message.pan = reader.float();
|
|
15509
|
+
continue;
|
|
15510
|
+
}
|
|
15511
|
+
case 2: {
|
|
15512
|
+
if (tag !== 21) {
|
|
15513
|
+
break;
|
|
15514
|
+
}
|
|
15515
|
+
message.tilt = reader.float();
|
|
15516
|
+
continue;
|
|
15517
|
+
}
|
|
15518
|
+
case 3: {
|
|
15519
|
+
if (tag !== 29) {
|
|
15520
|
+
break;
|
|
15521
|
+
}
|
|
15522
|
+
message.zoom = reader.float();
|
|
15523
|
+
continue;
|
|
15524
|
+
}
|
|
15525
|
+
}
|
|
15526
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15527
|
+
break;
|
|
15528
|
+
}
|
|
15529
|
+
reader.skip(tag & 7);
|
|
15530
|
+
}
|
|
15531
|
+
return message;
|
|
15532
|
+
},
|
|
15533
|
+
fromJSON(object) {
|
|
15534
|
+
return {
|
|
15535
|
+
pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
|
|
15536
|
+
tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
|
|
15537
|
+
zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
|
|
15538
|
+
};
|
|
15539
|
+
},
|
|
15540
|
+
toJSON(message) {
|
|
15541
|
+
const obj = {};
|
|
15542
|
+
if (message.pan !== 0) {
|
|
15543
|
+
obj.pan = message.pan;
|
|
15544
|
+
}
|
|
15545
|
+
if (message.tilt !== 0) {
|
|
15546
|
+
obj.tilt = message.tilt;
|
|
15547
|
+
}
|
|
15548
|
+
if (message.zoom !== 0) {
|
|
15549
|
+
obj.zoom = message.zoom;
|
|
15550
|
+
}
|
|
15551
|
+
return obj;
|
|
15552
|
+
},
|
|
15553
|
+
create(base) {
|
|
15554
|
+
return exports.CameraPanTiltZoom.fromPartial(base ?? {});
|
|
15555
|
+
},
|
|
15556
|
+
fromPartial(object) {
|
|
15557
|
+
const message = createBaseCameraPanTiltZoom();
|
|
15558
|
+
message.pan = object.pan ?? 0;
|
|
15559
|
+
message.tilt = object.tilt ?? 0;
|
|
15560
|
+
message.zoom = object.zoom ?? 0;
|
|
15561
|
+
return message;
|
|
15562
|
+
},
|
|
15563
|
+
};
|
|
15564
|
+
function createBaseOperatorInfo() {
|
|
15565
|
+
return { name: "", email: "" };
|
|
15566
|
+
}
|
|
15567
|
+
exports.OperatorInfo = {
|
|
15568
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15569
|
+
if (message.name !== "") {
|
|
15570
|
+
writer.uint32(10).string(message.name);
|
|
15571
|
+
}
|
|
15572
|
+
if (message.email !== "") {
|
|
15573
|
+
writer.uint32(18).string(message.email);
|
|
15574
|
+
}
|
|
15575
|
+
return writer;
|
|
15576
|
+
},
|
|
15577
|
+
decode(input, length) {
|
|
15578
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15579
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15580
|
+
const message = createBaseOperatorInfo();
|
|
15581
|
+
while (reader.pos < end) {
|
|
15582
|
+
const tag = reader.uint32();
|
|
15583
|
+
switch (tag >>> 3) {
|
|
15584
|
+
case 1: {
|
|
15585
|
+
if (tag !== 10) {
|
|
15586
|
+
break;
|
|
15587
|
+
}
|
|
15588
|
+
message.name = reader.string();
|
|
15589
|
+
continue;
|
|
15590
|
+
}
|
|
15591
|
+
case 2: {
|
|
15592
|
+
if (tag !== 18) {
|
|
15593
|
+
break;
|
|
15594
|
+
}
|
|
15595
|
+
message.email = reader.string();
|
|
15596
|
+
continue;
|
|
15597
|
+
}
|
|
15598
|
+
}
|
|
15599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15600
|
+
break;
|
|
15601
|
+
}
|
|
15602
|
+
reader.skip(tag & 7);
|
|
15603
|
+
}
|
|
15604
|
+
return message;
|
|
15605
|
+
},
|
|
15606
|
+
fromJSON(object) {
|
|
15607
|
+
return {
|
|
15608
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
15609
|
+
email: isSet(object.email) ? gt.String(object.email) : "",
|
|
15610
|
+
};
|
|
15611
|
+
},
|
|
15612
|
+
toJSON(message) {
|
|
15613
|
+
const obj = {};
|
|
15614
|
+
if (message.name !== "") {
|
|
15615
|
+
obj.name = message.name;
|
|
15616
|
+
}
|
|
15617
|
+
if (message.email !== "") {
|
|
15618
|
+
obj.email = message.email;
|
|
15619
|
+
}
|
|
15620
|
+
return obj;
|
|
15621
|
+
},
|
|
15622
|
+
create(base) {
|
|
15623
|
+
return exports.OperatorInfo.fromPartial(base ?? {});
|
|
15624
|
+
},
|
|
15625
|
+
fromPartial(object) {
|
|
15626
|
+
const message = createBaseOperatorInfo();
|
|
15627
|
+
message.name = object.name ?? "";
|
|
15628
|
+
message.email = object.email ?? "";
|
|
15629
|
+
return message;
|
|
15630
|
+
},
|
|
15631
|
+
};
|
|
15632
|
+
function createBaseSotState() {
|
|
15633
|
+
return { state: 0, boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
|
|
15634
|
+
}
|
|
15635
|
+
exports.SotState = {
|
|
15636
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15637
|
+
if (message.state !== 0) {
|
|
15638
|
+
writer.uint32(8).int32(message.state);
|
|
15639
|
+
}
|
|
15640
|
+
if (message.boundingBox !== undefined) {
|
|
15641
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(18).fork()).join();
|
|
15642
|
+
}
|
|
15643
|
+
if (message.imageWidth !== 0) {
|
|
15644
|
+
writer.uint32(24).uint32(message.imageWidth);
|
|
15645
|
+
}
|
|
15646
|
+
if (message.imageHeight !== 0) {
|
|
15647
|
+
writer.uint32(32).uint32(message.imageHeight);
|
|
15648
|
+
}
|
|
15649
|
+
return writer;
|
|
15650
|
+
},
|
|
15651
|
+
decode(input, length) {
|
|
15652
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15653
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15654
|
+
const message = createBaseSotState();
|
|
15655
|
+
while (reader.pos < end) {
|
|
15656
|
+
const tag = reader.uint32();
|
|
15657
|
+
switch (tag >>> 3) {
|
|
15658
|
+
case 1: {
|
|
15659
|
+
if (tag !== 8) {
|
|
15660
|
+
break;
|
|
15661
|
+
}
|
|
15662
|
+
message.state = reader.int32();
|
|
15663
|
+
continue;
|
|
15664
|
+
}
|
|
15665
|
+
case 2: {
|
|
15666
|
+
if (tag !== 18) {
|
|
15667
|
+
break;
|
|
15668
|
+
}
|
|
15669
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
15670
|
+
continue;
|
|
15671
|
+
}
|
|
15672
|
+
case 3: {
|
|
15673
|
+
if (tag !== 24) {
|
|
15674
|
+
break;
|
|
15675
|
+
}
|
|
15676
|
+
message.imageWidth = reader.uint32();
|
|
15677
|
+
continue;
|
|
15678
|
+
}
|
|
15679
|
+
case 4: {
|
|
15680
|
+
if (tag !== 32) {
|
|
15681
|
+
break;
|
|
15682
|
+
}
|
|
15683
|
+
message.imageHeight = reader.uint32();
|
|
15684
|
+
continue;
|
|
15685
|
+
}
|
|
15686
|
+
}
|
|
15687
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15688
|
+
break;
|
|
15689
|
+
}
|
|
15690
|
+
reader.skip(tag & 7);
|
|
15691
|
+
}
|
|
15692
|
+
return message;
|
|
15693
|
+
},
|
|
15694
|
+
fromJSON(object) {
|
|
15695
|
+
return {
|
|
15696
|
+
state: isSet(object.state) ? sotState_StateFromJSON(object.state) : 0,
|
|
15697
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
15698
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
15699
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
15700
|
+
};
|
|
15701
|
+
},
|
|
15702
|
+
toJSON(message) {
|
|
15703
|
+
const obj = {};
|
|
15704
|
+
if (message.state !== 0) {
|
|
15705
|
+
obj.state = sotState_StateToJSON(message.state);
|
|
15706
|
+
}
|
|
15707
|
+
if (message.boundingBox !== undefined) {
|
|
15708
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
15709
|
+
}
|
|
15710
|
+
if (message.imageWidth !== 0) {
|
|
15711
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
15712
|
+
}
|
|
15713
|
+
if (message.imageHeight !== 0) {
|
|
15714
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
15715
|
+
}
|
|
15716
|
+
return obj;
|
|
15717
|
+
},
|
|
15718
|
+
create(base) {
|
|
15719
|
+
return exports.SotState.fromPartial(base ?? {});
|
|
15720
|
+
},
|
|
15721
|
+
fromPartial(object) {
|
|
15722
|
+
const message = createBaseSotState();
|
|
15723
|
+
message.state = object.state ?? 0;
|
|
15724
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
15725
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
15726
|
+
: undefined;
|
|
15727
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
15728
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
13328
15729
|
return message;
|
|
13329
15730
|
},
|
|
13330
15731
|
};
|