@blueyerobotics/protocol-definitions 3.2.0-c75f3166 → 3.2.0-d0f59472
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 +330 -3
- package/dist/message_formats.js +2115 -38
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +10 -0
- package/dist/req_rep.js +89 -1
- package/dist/telemetry.d.ts +51 -2
- package/dist/telemetry.js +279 -1
- 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.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.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.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = 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 = 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. */
|
|
@@ -2224,6 +2361,43 @@ function calibrationState_StatusToJSON(object) {
|
|
|
2224
2361
|
return "UNRECOGNIZED";
|
|
2225
2362
|
}
|
|
2226
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
|
+
}
|
|
2227
2401
|
/** Defines the desired ping rate to use when capturing sonar data. */
|
|
2228
2402
|
var MultibeamConfig_PingRate;
|
|
2229
2403
|
(function (MultibeamConfig_PingRate) {
|
|
@@ -2389,6 +2563,54 @@ function surfaceUnitBatteryInfo_ChargeStatusToJSON(object) {
|
|
|
2389
2563
|
return "UNRECOGNIZED";
|
|
2390
2564
|
}
|
|
2391
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
|
+
}
|
|
2392
2614
|
function createBaseBinlogRecord() {
|
|
2393
2615
|
return { payload: undefined, unixTimestamp: undefined, clockMonotonic: undefined };
|
|
2394
2616
|
}
|
|
@@ -8997,6 +9219,134 @@ exports.TiltVelocity = {
|
|
|
8997
9219
|
return message;
|
|
8998
9220
|
},
|
|
8999
9221
|
};
|
|
9222
|
+
function createBaseCvModelInfo() {
|
|
9223
|
+
return { name: "", type: 0, running: false, device: "", packageId: "", labels: [] };
|
|
9224
|
+
}
|
|
9225
|
+
exports.CvModelInfo = {
|
|
9226
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
9227
|
+
if (message.name !== "") {
|
|
9228
|
+
writer.uint32(10).string(message.name);
|
|
9229
|
+
}
|
|
9230
|
+
if (message.type !== 0) {
|
|
9231
|
+
writer.uint32(16).int32(message.type);
|
|
9232
|
+
}
|
|
9233
|
+
if (message.running !== false) {
|
|
9234
|
+
writer.uint32(24).bool(message.running);
|
|
9235
|
+
}
|
|
9236
|
+
if (message.device !== "") {
|
|
9237
|
+
writer.uint32(34).string(message.device);
|
|
9238
|
+
}
|
|
9239
|
+
if (message.packageId !== "") {
|
|
9240
|
+
writer.uint32(42).string(message.packageId);
|
|
9241
|
+
}
|
|
9242
|
+
for (const v of message.labels) {
|
|
9243
|
+
writer.uint32(50).string(v);
|
|
9244
|
+
}
|
|
9245
|
+
return writer;
|
|
9246
|
+
},
|
|
9247
|
+
decode(input, length) {
|
|
9248
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
9249
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9250
|
+
const message = createBaseCvModelInfo();
|
|
9251
|
+
while (reader.pos < end) {
|
|
9252
|
+
const tag = reader.uint32();
|
|
9253
|
+
switch (tag >>> 3) {
|
|
9254
|
+
case 1: {
|
|
9255
|
+
if (tag !== 10) {
|
|
9256
|
+
break;
|
|
9257
|
+
}
|
|
9258
|
+
message.name = reader.string();
|
|
9259
|
+
continue;
|
|
9260
|
+
}
|
|
9261
|
+
case 2: {
|
|
9262
|
+
if (tag !== 16) {
|
|
9263
|
+
break;
|
|
9264
|
+
}
|
|
9265
|
+
message.type = reader.int32();
|
|
9266
|
+
continue;
|
|
9267
|
+
}
|
|
9268
|
+
case 3: {
|
|
9269
|
+
if (tag !== 24) {
|
|
9270
|
+
break;
|
|
9271
|
+
}
|
|
9272
|
+
message.running = reader.bool();
|
|
9273
|
+
continue;
|
|
9274
|
+
}
|
|
9275
|
+
case 4: {
|
|
9276
|
+
if (tag !== 34) {
|
|
9277
|
+
break;
|
|
9278
|
+
}
|
|
9279
|
+
message.device = reader.string();
|
|
9280
|
+
continue;
|
|
9281
|
+
}
|
|
9282
|
+
case 5: {
|
|
9283
|
+
if (tag !== 42) {
|
|
9284
|
+
break;
|
|
9285
|
+
}
|
|
9286
|
+
message.packageId = reader.string();
|
|
9287
|
+
continue;
|
|
9288
|
+
}
|
|
9289
|
+
case 6: {
|
|
9290
|
+
if (tag !== 50) {
|
|
9291
|
+
break;
|
|
9292
|
+
}
|
|
9293
|
+
message.labels.push(reader.string());
|
|
9294
|
+
continue;
|
|
9295
|
+
}
|
|
9296
|
+
}
|
|
9297
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9298
|
+
break;
|
|
9299
|
+
}
|
|
9300
|
+
reader.skip(tag & 7);
|
|
9301
|
+
}
|
|
9302
|
+
return message;
|
|
9303
|
+
},
|
|
9304
|
+
fromJSON(object) {
|
|
9305
|
+
return {
|
|
9306
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
9307
|
+
type: isSet(object.type) ? cvModelInfo_ModelTypeFromJSON(object.type) : 0,
|
|
9308
|
+
running: isSet(object.running) ? gt.Boolean(object.running) : false,
|
|
9309
|
+
device: isSet(object.device) ? gt.String(object.device) : "",
|
|
9310
|
+
packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
|
|
9311
|
+
labels: gt.Array.isArray(object?.labels) ? object.labels.map((e) => gt.String(e)) : [],
|
|
9312
|
+
};
|
|
9313
|
+
},
|
|
9314
|
+
toJSON(message) {
|
|
9315
|
+
const obj = {};
|
|
9316
|
+
if (message.name !== "") {
|
|
9317
|
+
obj.name = message.name;
|
|
9318
|
+
}
|
|
9319
|
+
if (message.type !== 0) {
|
|
9320
|
+
obj.type = cvModelInfo_ModelTypeToJSON(message.type);
|
|
9321
|
+
}
|
|
9322
|
+
if (message.running !== false) {
|
|
9323
|
+
obj.running = message.running;
|
|
9324
|
+
}
|
|
9325
|
+
if (message.device !== "") {
|
|
9326
|
+
obj.device = message.device;
|
|
9327
|
+
}
|
|
9328
|
+
if (message.packageId !== "") {
|
|
9329
|
+
obj.packageId = message.packageId;
|
|
9330
|
+
}
|
|
9331
|
+
if (message.labels?.length) {
|
|
9332
|
+
obj.labels = message.labels;
|
|
9333
|
+
}
|
|
9334
|
+
return obj;
|
|
9335
|
+
},
|
|
9336
|
+
create(base) {
|
|
9337
|
+
return exports.CvModelInfo.fromPartial(base ?? {});
|
|
9338
|
+
},
|
|
9339
|
+
fromPartial(object) {
|
|
9340
|
+
const message = createBaseCvModelInfo();
|
|
9341
|
+
message.name = object.name ?? "";
|
|
9342
|
+
message.type = object.type ?? 0;
|
|
9343
|
+
message.running = object.running ?? false;
|
|
9344
|
+
message.device = object.device ?? "";
|
|
9345
|
+
message.packageId = object.packageId ?? "";
|
|
9346
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
9347
|
+
return message;
|
|
9348
|
+
},
|
|
9349
|
+
};
|
|
9000
9350
|
function createBaseDroneInfo() {
|
|
9001
9351
|
return {
|
|
9002
9352
|
blunuxVersion: "",
|
|
@@ -9010,6 +9360,7 @@ function createBaseDroneInfo() {
|
|
|
9010
9360
|
bbUid: new Uint8Array(0),
|
|
9011
9361
|
gp: undefined,
|
|
9012
9362
|
depthSensor: 0,
|
|
9363
|
+
cvModels: [],
|
|
9013
9364
|
};
|
|
9014
9365
|
}
|
|
9015
9366
|
exports.DroneInfo = {
|
|
@@ -9047,6 +9398,9 @@ exports.DroneInfo = {
|
|
|
9047
9398
|
if (message.depthSensor !== 0) {
|
|
9048
9399
|
writer.uint32(88).int32(message.depthSensor);
|
|
9049
9400
|
}
|
|
9401
|
+
for (const v of message.cvModels) {
|
|
9402
|
+
exports.CvModelInfo.encode(v, writer.uint32(98).fork()).join();
|
|
9403
|
+
}
|
|
9050
9404
|
return writer;
|
|
9051
9405
|
},
|
|
9052
9406
|
decode(input, length) {
|
|
@@ -9133,6 +9487,13 @@ exports.DroneInfo = {
|
|
|
9133
9487
|
message.depthSensor = reader.int32();
|
|
9134
9488
|
continue;
|
|
9135
9489
|
}
|
|
9490
|
+
case 12: {
|
|
9491
|
+
if (tag !== 98) {
|
|
9492
|
+
break;
|
|
9493
|
+
}
|
|
9494
|
+
message.cvModels.push(exports.CvModelInfo.decode(reader, reader.uint32()));
|
|
9495
|
+
continue;
|
|
9496
|
+
}
|
|
9136
9497
|
}
|
|
9137
9498
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9138
9499
|
break;
|
|
@@ -9154,6 +9515,7 @@ exports.DroneInfo = {
|
|
|
9154
9515
|
bbUid: isSet(object.bbUid) ? bytesFromBase64(object.bbUid) : new Uint8Array(0),
|
|
9155
9516
|
gp: isSet(object.gp) ? exports.GuestPortInfo.fromJSON(object.gp) : undefined,
|
|
9156
9517
|
depthSensor: isSet(object.depthSensor) ? pressureSensorTypeFromJSON(object.depthSensor) : 0,
|
|
9518
|
+
cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => exports.CvModelInfo.fromJSON(e)) : [],
|
|
9157
9519
|
};
|
|
9158
9520
|
},
|
|
9159
9521
|
toJSON(message) {
|
|
@@ -9191,6 +9553,9 @@ exports.DroneInfo = {
|
|
|
9191
9553
|
if (message.depthSensor !== 0) {
|
|
9192
9554
|
obj.depthSensor = pressureSensorTypeToJSON(message.depthSensor);
|
|
9193
9555
|
}
|
|
9556
|
+
if (message.cvModels?.length) {
|
|
9557
|
+
obj.cvModels = message.cvModels.map((e) => exports.CvModelInfo.toJSON(e));
|
|
9558
|
+
}
|
|
9194
9559
|
return obj;
|
|
9195
9560
|
},
|
|
9196
9561
|
create(base) {
|
|
@@ -9209,6 +9574,7 @@ exports.DroneInfo = {
|
|
|
9209
9574
|
message.bbUid = object.bbUid ?? new Uint8Array(0);
|
|
9210
9575
|
message.gp = (object.gp !== undefined && object.gp !== null) ? exports.GuestPortInfo.fromPartial(object.gp) : undefined;
|
|
9211
9576
|
message.depthSensor = object.depthSensor ?? 0;
|
|
9577
|
+
message.cvModels = object.cvModels?.map((e) => exports.CvModelInfo.fromPartial(e)) || [];
|
|
9212
9578
|
return message;
|
|
9213
9579
|
},
|
|
9214
9580
|
};
|
|
@@ -10033,6 +10399,9 @@ function createBaseCameraParameters() {
|
|
|
10033
10399
|
streamingProtocol: 0,
|
|
10034
10400
|
framerate: 0,
|
|
10035
10401
|
camera: 0,
|
|
10402
|
+
mtuSize: 0,
|
|
10403
|
+
recordingCodec: 0,
|
|
10404
|
+
recordingBitrate: 0,
|
|
10036
10405
|
};
|
|
10037
10406
|
}
|
|
10038
10407
|
exports.CameraParameters = {
|
|
@@ -10103,6 +10472,15 @@ exports.CameraParameters = {
|
|
|
10103
10472
|
if (message.camera !== 0) {
|
|
10104
10473
|
writer.uint32(64).int32(message.camera);
|
|
10105
10474
|
}
|
|
10475
|
+
if (message.mtuSize !== 0) {
|
|
10476
|
+
writer.uint32(192).uint32(message.mtuSize);
|
|
10477
|
+
}
|
|
10478
|
+
if (message.recordingCodec !== 0) {
|
|
10479
|
+
writer.uint32(200).int32(message.recordingCodec);
|
|
10480
|
+
}
|
|
10481
|
+
if (message.recordingBitrate !== 0) {
|
|
10482
|
+
writer.uint32(208).int32(message.recordingBitrate);
|
|
10483
|
+
}
|
|
10106
10484
|
return writer;
|
|
10107
10485
|
},
|
|
10108
10486
|
decode(input, length) {
|
|
@@ -10266,6 +10644,27 @@ exports.CameraParameters = {
|
|
|
10266
10644
|
message.camera = reader.int32();
|
|
10267
10645
|
continue;
|
|
10268
10646
|
}
|
|
10647
|
+
case 24: {
|
|
10648
|
+
if (tag !== 192) {
|
|
10649
|
+
break;
|
|
10650
|
+
}
|
|
10651
|
+
message.mtuSize = reader.uint32();
|
|
10652
|
+
continue;
|
|
10653
|
+
}
|
|
10654
|
+
case 25: {
|
|
10655
|
+
if (tag !== 200) {
|
|
10656
|
+
break;
|
|
10657
|
+
}
|
|
10658
|
+
message.recordingCodec = reader.int32();
|
|
10659
|
+
continue;
|
|
10660
|
+
}
|
|
10661
|
+
case 26: {
|
|
10662
|
+
if (tag !== 208) {
|
|
10663
|
+
break;
|
|
10664
|
+
}
|
|
10665
|
+
message.recordingBitrate = reader.int32();
|
|
10666
|
+
continue;
|
|
10667
|
+
}
|
|
10269
10668
|
}
|
|
10270
10669
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10271
10670
|
break;
|
|
@@ -10298,6 +10697,9 @@ exports.CameraParameters = {
|
|
|
10298
10697
|
streamingProtocol: isSet(object.streamingProtocol) ? streamingProtocolFromJSON(object.streamingProtocol) : 0,
|
|
10299
10698
|
framerate: isSet(object.framerate) ? framerateFromJSON(object.framerate) : 0,
|
|
10300
10699
|
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
10700
|
+
mtuSize: isSet(object.mtuSize) ? gt.Number(object.mtuSize) : 0,
|
|
10701
|
+
recordingCodec: isSet(object.recordingCodec) ? recordingCodecFromJSON(object.recordingCodec) : 0,
|
|
10702
|
+
recordingBitrate: isSet(object.recordingBitrate) ? gt.Number(object.recordingBitrate) : 0,
|
|
10301
10703
|
};
|
|
10302
10704
|
},
|
|
10303
10705
|
toJSON(message) {
|
|
@@ -10368,6 +10770,15 @@ exports.CameraParameters = {
|
|
|
10368
10770
|
if (message.camera !== 0) {
|
|
10369
10771
|
obj.camera = cameraToJSON(message.camera);
|
|
10370
10772
|
}
|
|
10773
|
+
if (message.mtuSize !== 0) {
|
|
10774
|
+
obj.mtuSize = Math.round(message.mtuSize);
|
|
10775
|
+
}
|
|
10776
|
+
if (message.recordingCodec !== 0) {
|
|
10777
|
+
obj.recordingCodec = recordingCodecToJSON(message.recordingCodec);
|
|
10778
|
+
}
|
|
10779
|
+
if (message.recordingBitrate !== 0) {
|
|
10780
|
+
obj.recordingBitrate = Math.round(message.recordingBitrate);
|
|
10781
|
+
}
|
|
10371
10782
|
return obj;
|
|
10372
10783
|
},
|
|
10373
10784
|
create(base) {
|
|
@@ -10397,6 +10808,9 @@ exports.CameraParameters = {
|
|
|
10397
10808
|
message.streamingProtocol = object.streamingProtocol ?? 0;
|
|
10398
10809
|
message.framerate = object.framerate ?? 0;
|
|
10399
10810
|
message.camera = object.camera ?? 0;
|
|
10811
|
+
message.mtuSize = object.mtuSize ?? 0;
|
|
10812
|
+
message.recordingCodec = object.recordingCodec ?? 0;
|
|
10813
|
+
message.recordingBitrate = object.recordingBitrate ?? 0;
|
|
10400
10814
|
return message;
|
|
10401
10815
|
},
|
|
10402
10816
|
};
|
|
@@ -13252,23 +13666,26 @@ exports.CPUInfo = {
|
|
|
13252
13666
|
return message;
|
|
13253
13667
|
},
|
|
13254
13668
|
};
|
|
13255
|
-
function
|
|
13256
|
-
return {
|
|
13669
|
+
function createBaseCpuCoreLoad() {
|
|
13670
|
+
return { coreIndex: 0, load: 0, frequencyMhz: 0 };
|
|
13257
13671
|
}
|
|
13258
|
-
exports.
|
|
13672
|
+
exports.CpuCoreLoad = {
|
|
13259
13673
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13260
|
-
if (message.
|
|
13261
|
-
writer.uint32(8).
|
|
13674
|
+
if (message.coreIndex !== 0) {
|
|
13675
|
+
writer.uint32(8).uint32(message.coreIndex);
|
|
13262
13676
|
}
|
|
13263
|
-
if (message.
|
|
13264
|
-
writer.uint32(21).float(message.
|
|
13677
|
+
if (message.load !== 0) {
|
|
13678
|
+
writer.uint32(21).float(message.load);
|
|
13679
|
+
}
|
|
13680
|
+
if (message.frequencyMhz !== 0) {
|
|
13681
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
13265
13682
|
}
|
|
13266
13683
|
return writer;
|
|
13267
13684
|
},
|
|
13268
13685
|
decode(input, length) {
|
|
13269
13686
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13270
13687
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13271
|
-
const message =
|
|
13688
|
+
const message = createBaseCpuCoreLoad();
|
|
13272
13689
|
while (reader.pos < end) {
|
|
13273
13690
|
const tag = reader.uint32();
|
|
13274
13691
|
switch (tag >>> 3) {
|
|
@@ -13276,14 +13693,21 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13276
13693
|
if (tag !== 8) {
|
|
13277
13694
|
break;
|
|
13278
13695
|
}
|
|
13279
|
-
message.
|
|
13696
|
+
message.coreIndex = reader.uint32();
|
|
13280
13697
|
continue;
|
|
13281
13698
|
}
|
|
13282
13699
|
case 2: {
|
|
13283
13700
|
if (tag !== 21) {
|
|
13284
13701
|
break;
|
|
13285
13702
|
}
|
|
13286
|
-
message.
|
|
13703
|
+
message.load = reader.float();
|
|
13704
|
+
continue;
|
|
13705
|
+
}
|
|
13706
|
+
case 3: {
|
|
13707
|
+
if (tag !== 29) {
|
|
13708
|
+
break;
|
|
13709
|
+
}
|
|
13710
|
+
message.frequencyMhz = reader.float();
|
|
13287
13711
|
continue;
|
|
13288
13712
|
}
|
|
13289
13713
|
}
|
|
@@ -13296,52 +13720,67 @@ exports.SurfaceUnitBatteryInfo = {
|
|
|
13296
13720
|
},
|
|
13297
13721
|
fromJSON(object) {
|
|
13298
13722
|
return {
|
|
13299
|
-
|
|
13300
|
-
|
|
13723
|
+
coreIndex: isSet(object.coreIndex) ? gt.Number(object.coreIndex) : 0,
|
|
13724
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13725
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13301
13726
|
};
|
|
13302
13727
|
},
|
|
13303
13728
|
toJSON(message) {
|
|
13304
13729
|
const obj = {};
|
|
13305
|
-
if (message.
|
|
13306
|
-
obj.
|
|
13730
|
+
if (message.coreIndex !== 0) {
|
|
13731
|
+
obj.coreIndex = Math.round(message.coreIndex);
|
|
13307
13732
|
}
|
|
13308
|
-
if (message.
|
|
13309
|
-
obj.
|
|
13733
|
+
if (message.load !== 0) {
|
|
13734
|
+
obj.load = message.load;
|
|
13735
|
+
}
|
|
13736
|
+
if (message.frequencyMhz !== 0) {
|
|
13737
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13310
13738
|
}
|
|
13311
13739
|
return obj;
|
|
13312
13740
|
},
|
|
13313
13741
|
create(base) {
|
|
13314
|
-
return exports.
|
|
13742
|
+
return exports.CpuCoreLoad.fromPartial(base ?? {});
|
|
13315
13743
|
},
|
|
13316
13744
|
fromPartial(object) {
|
|
13317
|
-
const message =
|
|
13318
|
-
message.
|
|
13319
|
-
message.
|
|
13745
|
+
const message = createBaseCpuCoreLoad();
|
|
13746
|
+
message.coreIndex = object.coreIndex ?? 0;
|
|
13747
|
+
message.load = object.load ?? 0;
|
|
13748
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13320
13749
|
return message;
|
|
13321
13750
|
},
|
|
13322
13751
|
};
|
|
13323
|
-
function
|
|
13324
|
-
return {
|
|
13752
|
+
function createBaseGpuInfo() {
|
|
13753
|
+
return { load: 0, frequencyMhz: 0 };
|
|
13325
13754
|
}
|
|
13326
|
-
exports.
|
|
13755
|
+
exports.GpuInfo = {
|
|
13327
13756
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13328
|
-
if (message.
|
|
13329
|
-
writer.uint32(
|
|
13757
|
+
if (message.load !== 0) {
|
|
13758
|
+
writer.uint32(13).float(message.load);
|
|
13759
|
+
}
|
|
13760
|
+
if (message.frequencyMhz !== 0) {
|
|
13761
|
+
writer.uint32(21).float(message.frequencyMhz);
|
|
13330
13762
|
}
|
|
13331
13763
|
return writer;
|
|
13332
13764
|
},
|
|
13333
13765
|
decode(input, length) {
|
|
13334
13766
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13335
13767
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13336
|
-
const message =
|
|
13768
|
+
const message = createBaseGpuInfo();
|
|
13337
13769
|
while (reader.pos < end) {
|
|
13338
13770
|
const tag = reader.uint32();
|
|
13339
13771
|
switch (tag >>> 3) {
|
|
13340
13772
|
case 1: {
|
|
13341
|
-
if (tag !==
|
|
13773
|
+
if (tag !== 13) {
|
|
13342
13774
|
break;
|
|
13343
13775
|
}
|
|
13344
|
-
message.
|
|
13776
|
+
message.load = reader.float();
|
|
13777
|
+
continue;
|
|
13778
|
+
}
|
|
13779
|
+
case 2: {
|
|
13780
|
+
if (tag !== 21) {
|
|
13781
|
+
break;
|
|
13782
|
+
}
|
|
13783
|
+
message.frequencyMhz = reader.float();
|
|
13345
13784
|
continue;
|
|
13346
13785
|
}
|
|
13347
13786
|
}
|
|
@@ -13353,21 +13792,1659 @@ exports.SurfaceUnitVersionInfo = {
|
|
|
13353
13792
|
return message;
|
|
13354
13793
|
},
|
|
13355
13794
|
fromJSON(object) {
|
|
13356
|
-
return {
|
|
13795
|
+
return {
|
|
13796
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13797
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13798
|
+
};
|
|
13357
13799
|
},
|
|
13358
13800
|
toJSON(message) {
|
|
13359
13801
|
const obj = {};
|
|
13360
|
-
if (message.
|
|
13361
|
-
obj.
|
|
13802
|
+
if (message.load !== 0) {
|
|
13803
|
+
obj.load = message.load;
|
|
13804
|
+
}
|
|
13805
|
+
if (message.frequencyMhz !== 0) {
|
|
13806
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13362
13807
|
}
|
|
13363
13808
|
return obj;
|
|
13364
13809
|
},
|
|
13365
13810
|
create(base) {
|
|
13366
|
-
return exports.
|
|
13811
|
+
return exports.GpuInfo.fromPartial(base ?? {});
|
|
13367
13812
|
},
|
|
13368
13813
|
fromPartial(object) {
|
|
13369
|
-
const message =
|
|
13370
|
-
message.
|
|
13814
|
+
const message = createBaseGpuInfo();
|
|
13815
|
+
message.load = object.load ?? 0;
|
|
13816
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13817
|
+
return message;
|
|
13818
|
+
},
|
|
13819
|
+
};
|
|
13820
|
+
function createBaseDlaInfo() {
|
|
13821
|
+
return { engineIndex: 0, load: 0, frequencyMhz: 0, enabled: false, falconFrequencyMhz: 0 };
|
|
13822
|
+
}
|
|
13823
|
+
exports.DlaInfo = {
|
|
13824
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13825
|
+
if (message.engineIndex !== 0) {
|
|
13826
|
+
writer.uint32(8).uint32(message.engineIndex);
|
|
13827
|
+
}
|
|
13828
|
+
if (message.load !== 0) {
|
|
13829
|
+
writer.uint32(21).float(message.load);
|
|
13830
|
+
}
|
|
13831
|
+
if (message.frequencyMhz !== 0) {
|
|
13832
|
+
writer.uint32(29).float(message.frequencyMhz);
|
|
13833
|
+
}
|
|
13834
|
+
if (message.enabled !== false) {
|
|
13835
|
+
writer.uint32(32).bool(message.enabled);
|
|
13836
|
+
}
|
|
13837
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
13838
|
+
writer.uint32(45).float(message.falconFrequencyMhz);
|
|
13839
|
+
}
|
|
13840
|
+
return writer;
|
|
13841
|
+
},
|
|
13842
|
+
decode(input, length) {
|
|
13843
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13844
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13845
|
+
const message = createBaseDlaInfo();
|
|
13846
|
+
while (reader.pos < end) {
|
|
13847
|
+
const tag = reader.uint32();
|
|
13848
|
+
switch (tag >>> 3) {
|
|
13849
|
+
case 1: {
|
|
13850
|
+
if (tag !== 8) {
|
|
13851
|
+
break;
|
|
13852
|
+
}
|
|
13853
|
+
message.engineIndex = reader.uint32();
|
|
13854
|
+
continue;
|
|
13855
|
+
}
|
|
13856
|
+
case 2: {
|
|
13857
|
+
if (tag !== 21) {
|
|
13858
|
+
break;
|
|
13859
|
+
}
|
|
13860
|
+
message.load = reader.float();
|
|
13861
|
+
continue;
|
|
13862
|
+
}
|
|
13863
|
+
case 3: {
|
|
13864
|
+
if (tag !== 29) {
|
|
13865
|
+
break;
|
|
13866
|
+
}
|
|
13867
|
+
message.frequencyMhz = reader.float();
|
|
13868
|
+
continue;
|
|
13869
|
+
}
|
|
13870
|
+
case 4: {
|
|
13871
|
+
if (tag !== 32) {
|
|
13872
|
+
break;
|
|
13873
|
+
}
|
|
13874
|
+
message.enabled = reader.bool();
|
|
13875
|
+
continue;
|
|
13876
|
+
}
|
|
13877
|
+
case 5: {
|
|
13878
|
+
if (tag !== 45) {
|
|
13879
|
+
break;
|
|
13880
|
+
}
|
|
13881
|
+
message.falconFrequencyMhz = reader.float();
|
|
13882
|
+
continue;
|
|
13883
|
+
}
|
|
13884
|
+
}
|
|
13885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13886
|
+
break;
|
|
13887
|
+
}
|
|
13888
|
+
reader.skip(tag & 7);
|
|
13889
|
+
}
|
|
13890
|
+
return message;
|
|
13891
|
+
},
|
|
13892
|
+
fromJSON(object) {
|
|
13893
|
+
return {
|
|
13894
|
+
engineIndex: isSet(object.engineIndex) ? gt.Number(object.engineIndex) : 0,
|
|
13895
|
+
load: isSet(object.load) ? gt.Number(object.load) : 0,
|
|
13896
|
+
frequencyMhz: isSet(object.frequencyMhz) ? gt.Number(object.frequencyMhz) : 0,
|
|
13897
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
13898
|
+
falconFrequencyMhz: isSet(object.falconFrequencyMhz) ? gt.Number(object.falconFrequencyMhz) : 0,
|
|
13899
|
+
};
|
|
13900
|
+
},
|
|
13901
|
+
toJSON(message) {
|
|
13902
|
+
const obj = {};
|
|
13903
|
+
if (message.engineIndex !== 0) {
|
|
13904
|
+
obj.engineIndex = Math.round(message.engineIndex);
|
|
13905
|
+
}
|
|
13906
|
+
if (message.load !== 0) {
|
|
13907
|
+
obj.load = message.load;
|
|
13908
|
+
}
|
|
13909
|
+
if (message.frequencyMhz !== 0) {
|
|
13910
|
+
obj.frequencyMhz = message.frequencyMhz;
|
|
13911
|
+
}
|
|
13912
|
+
if (message.enabled !== false) {
|
|
13913
|
+
obj.enabled = message.enabled;
|
|
13914
|
+
}
|
|
13915
|
+
if (message.falconFrequencyMhz !== 0) {
|
|
13916
|
+
obj.falconFrequencyMhz = message.falconFrequencyMhz;
|
|
13917
|
+
}
|
|
13918
|
+
return obj;
|
|
13919
|
+
},
|
|
13920
|
+
create(base) {
|
|
13921
|
+
return exports.DlaInfo.fromPartial(base ?? {});
|
|
13922
|
+
},
|
|
13923
|
+
fromPartial(object) {
|
|
13924
|
+
const message = createBaseDlaInfo();
|
|
13925
|
+
message.engineIndex = object.engineIndex ?? 0;
|
|
13926
|
+
message.load = object.load ?? 0;
|
|
13927
|
+
message.frequencyMhz = object.frequencyMhz ?? 0;
|
|
13928
|
+
message.enabled = object.enabled ?? false;
|
|
13929
|
+
message.falconFrequencyMhz = object.falconFrequencyMhz ?? 0;
|
|
13930
|
+
return message;
|
|
13931
|
+
},
|
|
13932
|
+
};
|
|
13933
|
+
function createBaseMemoryInfo() {
|
|
13934
|
+
return { totalBytes: 0, usedBytes: 0, cachedBytes: 0, busLoad: 0 };
|
|
13935
|
+
}
|
|
13936
|
+
exports.MemoryInfo = {
|
|
13937
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13938
|
+
if (message.totalBytes !== 0) {
|
|
13939
|
+
writer.uint32(8).uint64(message.totalBytes);
|
|
13940
|
+
}
|
|
13941
|
+
if (message.usedBytes !== 0) {
|
|
13942
|
+
writer.uint32(16).uint64(message.usedBytes);
|
|
13943
|
+
}
|
|
13944
|
+
if (message.cachedBytes !== 0) {
|
|
13945
|
+
writer.uint32(24).uint64(message.cachedBytes);
|
|
13946
|
+
}
|
|
13947
|
+
if (message.busLoad !== 0) {
|
|
13948
|
+
writer.uint32(37).float(message.busLoad);
|
|
13949
|
+
}
|
|
13950
|
+
return writer;
|
|
13951
|
+
},
|
|
13952
|
+
decode(input, length) {
|
|
13953
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13954
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13955
|
+
const message = createBaseMemoryInfo();
|
|
13956
|
+
while (reader.pos < end) {
|
|
13957
|
+
const tag = reader.uint32();
|
|
13958
|
+
switch (tag >>> 3) {
|
|
13959
|
+
case 1: {
|
|
13960
|
+
if (tag !== 8) {
|
|
13961
|
+
break;
|
|
13962
|
+
}
|
|
13963
|
+
message.totalBytes = longToNumber(reader.uint64());
|
|
13964
|
+
continue;
|
|
13965
|
+
}
|
|
13966
|
+
case 2: {
|
|
13967
|
+
if (tag !== 16) {
|
|
13968
|
+
break;
|
|
13969
|
+
}
|
|
13970
|
+
message.usedBytes = longToNumber(reader.uint64());
|
|
13971
|
+
continue;
|
|
13972
|
+
}
|
|
13973
|
+
case 3: {
|
|
13974
|
+
if (tag !== 24) {
|
|
13975
|
+
break;
|
|
13976
|
+
}
|
|
13977
|
+
message.cachedBytes = longToNumber(reader.uint64());
|
|
13978
|
+
continue;
|
|
13979
|
+
}
|
|
13980
|
+
case 4: {
|
|
13981
|
+
if (tag !== 37) {
|
|
13982
|
+
break;
|
|
13983
|
+
}
|
|
13984
|
+
message.busLoad = reader.float();
|
|
13985
|
+
continue;
|
|
13986
|
+
}
|
|
13987
|
+
}
|
|
13988
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13989
|
+
break;
|
|
13990
|
+
}
|
|
13991
|
+
reader.skip(tag & 7);
|
|
13992
|
+
}
|
|
13993
|
+
return message;
|
|
13994
|
+
},
|
|
13995
|
+
fromJSON(object) {
|
|
13996
|
+
return {
|
|
13997
|
+
totalBytes: isSet(object.totalBytes) ? gt.Number(object.totalBytes) : 0,
|
|
13998
|
+
usedBytes: isSet(object.usedBytes) ? gt.Number(object.usedBytes) : 0,
|
|
13999
|
+
cachedBytes: isSet(object.cachedBytes) ? gt.Number(object.cachedBytes) : 0,
|
|
14000
|
+
busLoad: isSet(object.busLoad) ? gt.Number(object.busLoad) : 0,
|
|
14001
|
+
};
|
|
14002
|
+
},
|
|
14003
|
+
toJSON(message) {
|
|
14004
|
+
const obj = {};
|
|
14005
|
+
if (message.totalBytes !== 0) {
|
|
14006
|
+
obj.totalBytes = Math.round(message.totalBytes);
|
|
14007
|
+
}
|
|
14008
|
+
if (message.usedBytes !== 0) {
|
|
14009
|
+
obj.usedBytes = Math.round(message.usedBytes);
|
|
14010
|
+
}
|
|
14011
|
+
if (message.cachedBytes !== 0) {
|
|
14012
|
+
obj.cachedBytes = Math.round(message.cachedBytes);
|
|
14013
|
+
}
|
|
14014
|
+
if (message.busLoad !== 0) {
|
|
14015
|
+
obj.busLoad = message.busLoad;
|
|
14016
|
+
}
|
|
14017
|
+
return obj;
|
|
14018
|
+
},
|
|
14019
|
+
create(base) {
|
|
14020
|
+
return exports.MemoryInfo.fromPartial(base ?? {});
|
|
14021
|
+
},
|
|
14022
|
+
fromPartial(object) {
|
|
14023
|
+
const message = createBaseMemoryInfo();
|
|
14024
|
+
message.totalBytes = object.totalBytes ?? 0;
|
|
14025
|
+
message.usedBytes = object.usedBytes ?? 0;
|
|
14026
|
+
message.cachedBytes = object.cachedBytes ?? 0;
|
|
14027
|
+
message.busLoad = object.busLoad ?? 0;
|
|
14028
|
+
return message;
|
|
14029
|
+
},
|
|
14030
|
+
};
|
|
14031
|
+
function createBaseThermalZone() {
|
|
14032
|
+
return { zone: 0, temperature: 0 };
|
|
14033
|
+
}
|
|
14034
|
+
exports.ThermalZone = {
|
|
14035
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14036
|
+
if (message.zone !== 0) {
|
|
14037
|
+
writer.uint32(8).int32(message.zone);
|
|
14038
|
+
}
|
|
14039
|
+
if (message.temperature !== 0) {
|
|
14040
|
+
writer.uint32(21).float(message.temperature);
|
|
14041
|
+
}
|
|
14042
|
+
return writer;
|
|
14043
|
+
},
|
|
14044
|
+
decode(input, length) {
|
|
14045
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14046
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14047
|
+
const message = createBaseThermalZone();
|
|
14048
|
+
while (reader.pos < end) {
|
|
14049
|
+
const tag = reader.uint32();
|
|
14050
|
+
switch (tag >>> 3) {
|
|
14051
|
+
case 1: {
|
|
14052
|
+
if (tag !== 8) {
|
|
14053
|
+
break;
|
|
14054
|
+
}
|
|
14055
|
+
message.zone = reader.int32();
|
|
14056
|
+
continue;
|
|
14057
|
+
}
|
|
14058
|
+
case 2: {
|
|
14059
|
+
if (tag !== 21) {
|
|
14060
|
+
break;
|
|
14061
|
+
}
|
|
14062
|
+
message.temperature = reader.float();
|
|
14063
|
+
continue;
|
|
14064
|
+
}
|
|
14065
|
+
}
|
|
14066
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14067
|
+
break;
|
|
14068
|
+
}
|
|
14069
|
+
reader.skip(tag & 7);
|
|
14070
|
+
}
|
|
14071
|
+
return message;
|
|
14072
|
+
},
|
|
14073
|
+
fromJSON(object) {
|
|
14074
|
+
return {
|
|
14075
|
+
zone: isSet(object.zone) ? thermalZoneIdFromJSON(object.zone) : 0,
|
|
14076
|
+
temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
|
|
14077
|
+
};
|
|
14078
|
+
},
|
|
14079
|
+
toJSON(message) {
|
|
14080
|
+
const obj = {};
|
|
14081
|
+
if (message.zone !== 0) {
|
|
14082
|
+
obj.zone = thermalZoneIdToJSON(message.zone);
|
|
14083
|
+
}
|
|
14084
|
+
if (message.temperature !== 0) {
|
|
14085
|
+
obj.temperature = message.temperature;
|
|
14086
|
+
}
|
|
14087
|
+
return obj;
|
|
14088
|
+
},
|
|
14089
|
+
create(base) {
|
|
14090
|
+
return exports.ThermalZone.fromPartial(base ?? {});
|
|
14091
|
+
},
|
|
14092
|
+
fromPartial(object) {
|
|
14093
|
+
const message = createBaseThermalZone();
|
|
14094
|
+
message.zone = object.zone ?? 0;
|
|
14095
|
+
message.temperature = object.temperature ?? 0;
|
|
14096
|
+
return message;
|
|
14097
|
+
},
|
|
14098
|
+
};
|
|
14099
|
+
function createBaseVideoCodecInfo() {
|
|
14100
|
+
return {
|
|
14101
|
+
encoderActive: false,
|
|
14102
|
+
encoderFrequencyMhz: 0,
|
|
14103
|
+
decoderActive: false,
|
|
14104
|
+
decoderFrequencyMhz: 0,
|
|
14105
|
+
nvjpgActive: false,
|
|
14106
|
+
nvjpgFrequencyMhz: 0,
|
|
14107
|
+
vicActive: false,
|
|
14108
|
+
vicFrequencyMhz: 0,
|
|
14109
|
+
vpuActive: false,
|
|
14110
|
+
vpuFrequencyMhz: 0,
|
|
14111
|
+
vpuCodecIrqCount: 0,
|
|
14112
|
+
vpuJpgIrqCount: 0,
|
|
14113
|
+
};
|
|
14114
|
+
}
|
|
14115
|
+
exports.VideoCodecInfo = {
|
|
14116
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14117
|
+
if (message.encoderActive !== false) {
|
|
14118
|
+
writer.uint32(8).bool(message.encoderActive);
|
|
14119
|
+
}
|
|
14120
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
14121
|
+
writer.uint32(21).float(message.encoderFrequencyMhz);
|
|
14122
|
+
}
|
|
14123
|
+
if (message.decoderActive !== false) {
|
|
14124
|
+
writer.uint32(24).bool(message.decoderActive);
|
|
14125
|
+
}
|
|
14126
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
14127
|
+
writer.uint32(37).float(message.decoderFrequencyMhz);
|
|
14128
|
+
}
|
|
14129
|
+
if (message.nvjpgActive !== false) {
|
|
14130
|
+
writer.uint32(40).bool(message.nvjpgActive);
|
|
14131
|
+
}
|
|
14132
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
14133
|
+
writer.uint32(53).float(message.nvjpgFrequencyMhz);
|
|
14134
|
+
}
|
|
14135
|
+
if (message.vicActive !== false) {
|
|
14136
|
+
writer.uint32(56).bool(message.vicActive);
|
|
14137
|
+
}
|
|
14138
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
14139
|
+
writer.uint32(69).float(message.vicFrequencyMhz);
|
|
14140
|
+
}
|
|
14141
|
+
if (message.vpuActive !== false) {
|
|
14142
|
+
writer.uint32(72).bool(message.vpuActive);
|
|
14143
|
+
}
|
|
14144
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
14145
|
+
writer.uint32(85).float(message.vpuFrequencyMhz);
|
|
14146
|
+
}
|
|
14147
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
14148
|
+
writer.uint32(88).uint32(message.vpuCodecIrqCount);
|
|
14149
|
+
}
|
|
14150
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
14151
|
+
writer.uint32(96).uint32(message.vpuJpgIrqCount);
|
|
14152
|
+
}
|
|
14153
|
+
return writer;
|
|
14154
|
+
},
|
|
14155
|
+
decode(input, length) {
|
|
14156
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14157
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14158
|
+
const message = createBaseVideoCodecInfo();
|
|
14159
|
+
while (reader.pos < end) {
|
|
14160
|
+
const tag = reader.uint32();
|
|
14161
|
+
switch (tag >>> 3) {
|
|
14162
|
+
case 1: {
|
|
14163
|
+
if (tag !== 8) {
|
|
14164
|
+
break;
|
|
14165
|
+
}
|
|
14166
|
+
message.encoderActive = reader.bool();
|
|
14167
|
+
continue;
|
|
14168
|
+
}
|
|
14169
|
+
case 2: {
|
|
14170
|
+
if (tag !== 21) {
|
|
14171
|
+
break;
|
|
14172
|
+
}
|
|
14173
|
+
message.encoderFrequencyMhz = reader.float();
|
|
14174
|
+
continue;
|
|
14175
|
+
}
|
|
14176
|
+
case 3: {
|
|
14177
|
+
if (tag !== 24) {
|
|
14178
|
+
break;
|
|
14179
|
+
}
|
|
14180
|
+
message.decoderActive = reader.bool();
|
|
14181
|
+
continue;
|
|
14182
|
+
}
|
|
14183
|
+
case 4: {
|
|
14184
|
+
if (tag !== 37) {
|
|
14185
|
+
break;
|
|
14186
|
+
}
|
|
14187
|
+
message.decoderFrequencyMhz = reader.float();
|
|
14188
|
+
continue;
|
|
14189
|
+
}
|
|
14190
|
+
case 5: {
|
|
14191
|
+
if (tag !== 40) {
|
|
14192
|
+
break;
|
|
14193
|
+
}
|
|
14194
|
+
message.nvjpgActive = reader.bool();
|
|
14195
|
+
continue;
|
|
14196
|
+
}
|
|
14197
|
+
case 6: {
|
|
14198
|
+
if (tag !== 53) {
|
|
14199
|
+
break;
|
|
14200
|
+
}
|
|
14201
|
+
message.nvjpgFrequencyMhz = reader.float();
|
|
14202
|
+
continue;
|
|
14203
|
+
}
|
|
14204
|
+
case 7: {
|
|
14205
|
+
if (tag !== 56) {
|
|
14206
|
+
break;
|
|
14207
|
+
}
|
|
14208
|
+
message.vicActive = reader.bool();
|
|
14209
|
+
continue;
|
|
14210
|
+
}
|
|
14211
|
+
case 8: {
|
|
14212
|
+
if (tag !== 69) {
|
|
14213
|
+
break;
|
|
14214
|
+
}
|
|
14215
|
+
message.vicFrequencyMhz = reader.float();
|
|
14216
|
+
continue;
|
|
14217
|
+
}
|
|
14218
|
+
case 9: {
|
|
14219
|
+
if (tag !== 72) {
|
|
14220
|
+
break;
|
|
14221
|
+
}
|
|
14222
|
+
message.vpuActive = reader.bool();
|
|
14223
|
+
continue;
|
|
14224
|
+
}
|
|
14225
|
+
case 10: {
|
|
14226
|
+
if (tag !== 85) {
|
|
14227
|
+
break;
|
|
14228
|
+
}
|
|
14229
|
+
message.vpuFrequencyMhz = reader.float();
|
|
14230
|
+
continue;
|
|
14231
|
+
}
|
|
14232
|
+
case 11: {
|
|
14233
|
+
if (tag !== 88) {
|
|
14234
|
+
break;
|
|
14235
|
+
}
|
|
14236
|
+
message.vpuCodecIrqCount = reader.uint32();
|
|
14237
|
+
continue;
|
|
14238
|
+
}
|
|
14239
|
+
case 12: {
|
|
14240
|
+
if (tag !== 96) {
|
|
14241
|
+
break;
|
|
14242
|
+
}
|
|
14243
|
+
message.vpuJpgIrqCount = reader.uint32();
|
|
14244
|
+
continue;
|
|
14245
|
+
}
|
|
14246
|
+
}
|
|
14247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14248
|
+
break;
|
|
14249
|
+
}
|
|
14250
|
+
reader.skip(tag & 7);
|
|
14251
|
+
}
|
|
14252
|
+
return message;
|
|
14253
|
+
},
|
|
14254
|
+
fromJSON(object) {
|
|
14255
|
+
return {
|
|
14256
|
+
encoderActive: isSet(object.encoderActive) ? gt.Boolean(object.encoderActive) : false,
|
|
14257
|
+
encoderFrequencyMhz: isSet(object.encoderFrequencyMhz) ? gt.Number(object.encoderFrequencyMhz) : 0,
|
|
14258
|
+
decoderActive: isSet(object.decoderActive) ? gt.Boolean(object.decoderActive) : false,
|
|
14259
|
+
decoderFrequencyMhz: isSet(object.decoderFrequencyMhz) ? gt.Number(object.decoderFrequencyMhz) : 0,
|
|
14260
|
+
nvjpgActive: isSet(object.nvjpgActive) ? gt.Boolean(object.nvjpgActive) : false,
|
|
14261
|
+
nvjpgFrequencyMhz: isSet(object.nvjpgFrequencyMhz) ? gt.Number(object.nvjpgFrequencyMhz) : 0,
|
|
14262
|
+
vicActive: isSet(object.vicActive) ? gt.Boolean(object.vicActive) : false,
|
|
14263
|
+
vicFrequencyMhz: isSet(object.vicFrequencyMhz) ? gt.Number(object.vicFrequencyMhz) : 0,
|
|
14264
|
+
vpuActive: isSet(object.vpuActive) ? gt.Boolean(object.vpuActive) : false,
|
|
14265
|
+
vpuFrequencyMhz: isSet(object.vpuFrequencyMhz) ? gt.Number(object.vpuFrequencyMhz) : 0,
|
|
14266
|
+
vpuCodecIrqCount: isSet(object.vpuCodecIrqCount) ? gt.Number(object.vpuCodecIrqCount) : 0,
|
|
14267
|
+
vpuJpgIrqCount: isSet(object.vpuJpgIrqCount) ? gt.Number(object.vpuJpgIrqCount) : 0,
|
|
14268
|
+
};
|
|
14269
|
+
},
|
|
14270
|
+
toJSON(message) {
|
|
14271
|
+
const obj = {};
|
|
14272
|
+
if (message.encoderActive !== false) {
|
|
14273
|
+
obj.encoderActive = message.encoderActive;
|
|
14274
|
+
}
|
|
14275
|
+
if (message.encoderFrequencyMhz !== 0) {
|
|
14276
|
+
obj.encoderFrequencyMhz = message.encoderFrequencyMhz;
|
|
14277
|
+
}
|
|
14278
|
+
if (message.decoderActive !== false) {
|
|
14279
|
+
obj.decoderActive = message.decoderActive;
|
|
14280
|
+
}
|
|
14281
|
+
if (message.decoderFrequencyMhz !== 0) {
|
|
14282
|
+
obj.decoderFrequencyMhz = message.decoderFrequencyMhz;
|
|
14283
|
+
}
|
|
14284
|
+
if (message.nvjpgActive !== false) {
|
|
14285
|
+
obj.nvjpgActive = message.nvjpgActive;
|
|
14286
|
+
}
|
|
14287
|
+
if (message.nvjpgFrequencyMhz !== 0) {
|
|
14288
|
+
obj.nvjpgFrequencyMhz = message.nvjpgFrequencyMhz;
|
|
14289
|
+
}
|
|
14290
|
+
if (message.vicActive !== false) {
|
|
14291
|
+
obj.vicActive = message.vicActive;
|
|
14292
|
+
}
|
|
14293
|
+
if (message.vicFrequencyMhz !== 0) {
|
|
14294
|
+
obj.vicFrequencyMhz = message.vicFrequencyMhz;
|
|
14295
|
+
}
|
|
14296
|
+
if (message.vpuActive !== false) {
|
|
14297
|
+
obj.vpuActive = message.vpuActive;
|
|
14298
|
+
}
|
|
14299
|
+
if (message.vpuFrequencyMhz !== 0) {
|
|
14300
|
+
obj.vpuFrequencyMhz = message.vpuFrequencyMhz;
|
|
14301
|
+
}
|
|
14302
|
+
if (message.vpuCodecIrqCount !== 0) {
|
|
14303
|
+
obj.vpuCodecIrqCount = Math.round(message.vpuCodecIrqCount);
|
|
14304
|
+
}
|
|
14305
|
+
if (message.vpuJpgIrqCount !== 0) {
|
|
14306
|
+
obj.vpuJpgIrqCount = Math.round(message.vpuJpgIrqCount);
|
|
14307
|
+
}
|
|
14308
|
+
return obj;
|
|
14309
|
+
},
|
|
14310
|
+
create(base) {
|
|
14311
|
+
return exports.VideoCodecInfo.fromPartial(base ?? {});
|
|
14312
|
+
},
|
|
14313
|
+
fromPartial(object) {
|
|
14314
|
+
const message = createBaseVideoCodecInfo();
|
|
14315
|
+
message.encoderActive = object.encoderActive ?? false;
|
|
14316
|
+
message.encoderFrequencyMhz = object.encoderFrequencyMhz ?? 0;
|
|
14317
|
+
message.decoderActive = object.decoderActive ?? false;
|
|
14318
|
+
message.decoderFrequencyMhz = object.decoderFrequencyMhz ?? 0;
|
|
14319
|
+
message.nvjpgActive = object.nvjpgActive ?? false;
|
|
14320
|
+
message.nvjpgFrequencyMhz = object.nvjpgFrequencyMhz ?? 0;
|
|
14321
|
+
message.vicActive = object.vicActive ?? false;
|
|
14322
|
+
message.vicFrequencyMhz = object.vicFrequencyMhz ?? 0;
|
|
14323
|
+
message.vpuActive = object.vpuActive ?? false;
|
|
14324
|
+
message.vpuFrequencyMhz = object.vpuFrequencyMhz ?? 0;
|
|
14325
|
+
message.vpuCodecIrqCount = object.vpuCodecIrqCount ?? 0;
|
|
14326
|
+
message.vpuJpgIrqCount = object.vpuJpgIrqCount ?? 0;
|
|
14327
|
+
return message;
|
|
14328
|
+
},
|
|
14329
|
+
};
|
|
14330
|
+
function createBaseSystemPerformanceInfo() {
|
|
14331
|
+
return {
|
|
14332
|
+
cpuCores: [],
|
|
14333
|
+
cpuUtilization: 0,
|
|
14334
|
+
gpu: undefined,
|
|
14335
|
+
dlaEngines: [],
|
|
14336
|
+
memory: undefined,
|
|
14337
|
+
thermalZones: [],
|
|
14338
|
+
videoCodec: undefined,
|
|
14339
|
+
mainQueueLoad: 0,
|
|
14340
|
+
guestportQueueLoad: 0,
|
|
14341
|
+
commQueueLoad: 0,
|
|
14342
|
+
cameraQueueLoad: 0,
|
|
14343
|
+
overlayQueueLoad: 0,
|
|
14344
|
+
positionObserverQueueLoad: 0,
|
|
14345
|
+
};
|
|
14346
|
+
}
|
|
14347
|
+
exports.SystemPerformanceInfo = {
|
|
14348
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14349
|
+
for (const v of message.cpuCores) {
|
|
14350
|
+
exports.CpuCoreLoad.encode(v, writer.uint32(10).fork()).join();
|
|
14351
|
+
}
|
|
14352
|
+
if (message.cpuUtilization !== 0) {
|
|
14353
|
+
writer.uint32(21).float(message.cpuUtilization);
|
|
14354
|
+
}
|
|
14355
|
+
if (message.gpu !== undefined) {
|
|
14356
|
+
exports.GpuInfo.encode(message.gpu, writer.uint32(26).fork()).join();
|
|
14357
|
+
}
|
|
14358
|
+
for (const v of message.dlaEngines) {
|
|
14359
|
+
exports.DlaInfo.encode(v, writer.uint32(34).fork()).join();
|
|
14360
|
+
}
|
|
14361
|
+
if (message.memory !== undefined) {
|
|
14362
|
+
exports.MemoryInfo.encode(message.memory, writer.uint32(42).fork()).join();
|
|
14363
|
+
}
|
|
14364
|
+
for (const v of message.thermalZones) {
|
|
14365
|
+
exports.ThermalZone.encode(v, writer.uint32(50).fork()).join();
|
|
14366
|
+
}
|
|
14367
|
+
if (message.videoCodec !== undefined) {
|
|
14368
|
+
exports.VideoCodecInfo.encode(message.videoCodec, writer.uint32(58).fork()).join();
|
|
14369
|
+
}
|
|
14370
|
+
if (message.mainQueueLoad !== 0) {
|
|
14371
|
+
writer.uint32(69).float(message.mainQueueLoad);
|
|
14372
|
+
}
|
|
14373
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14374
|
+
writer.uint32(77).float(message.guestportQueueLoad);
|
|
14375
|
+
}
|
|
14376
|
+
if (message.commQueueLoad !== 0) {
|
|
14377
|
+
writer.uint32(85).float(message.commQueueLoad);
|
|
14378
|
+
}
|
|
14379
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14380
|
+
writer.uint32(93).float(message.cameraQueueLoad);
|
|
14381
|
+
}
|
|
14382
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14383
|
+
writer.uint32(101).float(message.overlayQueueLoad);
|
|
14384
|
+
}
|
|
14385
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14386
|
+
writer.uint32(109).float(message.positionObserverQueueLoad);
|
|
14387
|
+
}
|
|
14388
|
+
return writer;
|
|
14389
|
+
},
|
|
14390
|
+
decode(input, length) {
|
|
14391
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14392
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14393
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14394
|
+
while (reader.pos < end) {
|
|
14395
|
+
const tag = reader.uint32();
|
|
14396
|
+
switch (tag >>> 3) {
|
|
14397
|
+
case 1: {
|
|
14398
|
+
if (tag !== 10) {
|
|
14399
|
+
break;
|
|
14400
|
+
}
|
|
14401
|
+
message.cpuCores.push(exports.CpuCoreLoad.decode(reader, reader.uint32()));
|
|
14402
|
+
continue;
|
|
14403
|
+
}
|
|
14404
|
+
case 2: {
|
|
14405
|
+
if (tag !== 21) {
|
|
14406
|
+
break;
|
|
14407
|
+
}
|
|
14408
|
+
message.cpuUtilization = reader.float();
|
|
14409
|
+
continue;
|
|
14410
|
+
}
|
|
14411
|
+
case 3: {
|
|
14412
|
+
if (tag !== 26) {
|
|
14413
|
+
break;
|
|
14414
|
+
}
|
|
14415
|
+
message.gpu = exports.GpuInfo.decode(reader, reader.uint32());
|
|
14416
|
+
continue;
|
|
14417
|
+
}
|
|
14418
|
+
case 4: {
|
|
14419
|
+
if (tag !== 34) {
|
|
14420
|
+
break;
|
|
14421
|
+
}
|
|
14422
|
+
message.dlaEngines.push(exports.DlaInfo.decode(reader, reader.uint32()));
|
|
14423
|
+
continue;
|
|
14424
|
+
}
|
|
14425
|
+
case 5: {
|
|
14426
|
+
if (tag !== 42) {
|
|
14427
|
+
break;
|
|
14428
|
+
}
|
|
14429
|
+
message.memory = exports.MemoryInfo.decode(reader, reader.uint32());
|
|
14430
|
+
continue;
|
|
14431
|
+
}
|
|
14432
|
+
case 6: {
|
|
14433
|
+
if (tag !== 50) {
|
|
14434
|
+
break;
|
|
14435
|
+
}
|
|
14436
|
+
message.thermalZones.push(exports.ThermalZone.decode(reader, reader.uint32()));
|
|
14437
|
+
continue;
|
|
14438
|
+
}
|
|
14439
|
+
case 7: {
|
|
14440
|
+
if (tag !== 58) {
|
|
14441
|
+
break;
|
|
14442
|
+
}
|
|
14443
|
+
message.videoCodec = exports.VideoCodecInfo.decode(reader, reader.uint32());
|
|
14444
|
+
continue;
|
|
14445
|
+
}
|
|
14446
|
+
case 8: {
|
|
14447
|
+
if (tag !== 69) {
|
|
14448
|
+
break;
|
|
14449
|
+
}
|
|
14450
|
+
message.mainQueueLoad = reader.float();
|
|
14451
|
+
continue;
|
|
14452
|
+
}
|
|
14453
|
+
case 9: {
|
|
14454
|
+
if (tag !== 77) {
|
|
14455
|
+
break;
|
|
14456
|
+
}
|
|
14457
|
+
message.guestportQueueLoad = reader.float();
|
|
14458
|
+
continue;
|
|
14459
|
+
}
|
|
14460
|
+
case 10: {
|
|
14461
|
+
if (tag !== 85) {
|
|
14462
|
+
break;
|
|
14463
|
+
}
|
|
14464
|
+
message.commQueueLoad = reader.float();
|
|
14465
|
+
continue;
|
|
14466
|
+
}
|
|
14467
|
+
case 11: {
|
|
14468
|
+
if (tag !== 93) {
|
|
14469
|
+
break;
|
|
14470
|
+
}
|
|
14471
|
+
message.cameraQueueLoad = reader.float();
|
|
14472
|
+
continue;
|
|
14473
|
+
}
|
|
14474
|
+
case 12: {
|
|
14475
|
+
if (tag !== 101) {
|
|
14476
|
+
break;
|
|
14477
|
+
}
|
|
14478
|
+
message.overlayQueueLoad = reader.float();
|
|
14479
|
+
continue;
|
|
14480
|
+
}
|
|
14481
|
+
case 13: {
|
|
14482
|
+
if (tag !== 109) {
|
|
14483
|
+
break;
|
|
14484
|
+
}
|
|
14485
|
+
message.positionObserverQueueLoad = reader.float();
|
|
14486
|
+
continue;
|
|
14487
|
+
}
|
|
14488
|
+
}
|
|
14489
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14490
|
+
break;
|
|
14491
|
+
}
|
|
14492
|
+
reader.skip(tag & 7);
|
|
14493
|
+
}
|
|
14494
|
+
return message;
|
|
14495
|
+
},
|
|
14496
|
+
fromJSON(object) {
|
|
14497
|
+
return {
|
|
14498
|
+
cpuCores: gt.Array.isArray(object?.cpuCores) ? object.cpuCores.map((e) => exports.CpuCoreLoad.fromJSON(e)) : [],
|
|
14499
|
+
cpuUtilization: isSet(object.cpuUtilization) ? gt.Number(object.cpuUtilization) : 0,
|
|
14500
|
+
gpu: isSet(object.gpu) ? exports.GpuInfo.fromJSON(object.gpu) : undefined,
|
|
14501
|
+
dlaEngines: gt.Array.isArray(object?.dlaEngines) ? object.dlaEngines.map((e) => exports.DlaInfo.fromJSON(e)) : [],
|
|
14502
|
+
memory: isSet(object.memory) ? exports.MemoryInfo.fromJSON(object.memory) : undefined,
|
|
14503
|
+
thermalZones: gt.Array.isArray(object?.thermalZones)
|
|
14504
|
+
? object.thermalZones.map((e) => exports.ThermalZone.fromJSON(e))
|
|
14505
|
+
: [],
|
|
14506
|
+
videoCodec: isSet(object.videoCodec) ? exports.VideoCodecInfo.fromJSON(object.videoCodec) : undefined,
|
|
14507
|
+
mainQueueLoad: isSet(object.mainQueueLoad) ? gt.Number(object.mainQueueLoad) : 0,
|
|
14508
|
+
guestportQueueLoad: isSet(object.guestportQueueLoad) ? gt.Number(object.guestportQueueLoad) : 0,
|
|
14509
|
+
commQueueLoad: isSet(object.commQueueLoad) ? gt.Number(object.commQueueLoad) : 0,
|
|
14510
|
+
cameraQueueLoad: isSet(object.cameraQueueLoad) ? gt.Number(object.cameraQueueLoad) : 0,
|
|
14511
|
+
overlayQueueLoad: isSet(object.overlayQueueLoad) ? gt.Number(object.overlayQueueLoad) : 0,
|
|
14512
|
+
positionObserverQueueLoad: isSet(object.positionObserverQueueLoad)
|
|
14513
|
+
? gt.Number(object.positionObserverQueueLoad)
|
|
14514
|
+
: 0,
|
|
14515
|
+
};
|
|
14516
|
+
},
|
|
14517
|
+
toJSON(message) {
|
|
14518
|
+
const obj = {};
|
|
14519
|
+
if (message.cpuCores?.length) {
|
|
14520
|
+
obj.cpuCores = message.cpuCores.map((e) => exports.CpuCoreLoad.toJSON(e));
|
|
14521
|
+
}
|
|
14522
|
+
if (message.cpuUtilization !== 0) {
|
|
14523
|
+
obj.cpuUtilization = message.cpuUtilization;
|
|
14524
|
+
}
|
|
14525
|
+
if (message.gpu !== undefined) {
|
|
14526
|
+
obj.gpu = exports.GpuInfo.toJSON(message.gpu);
|
|
14527
|
+
}
|
|
14528
|
+
if (message.dlaEngines?.length) {
|
|
14529
|
+
obj.dlaEngines = message.dlaEngines.map((e) => exports.DlaInfo.toJSON(e));
|
|
14530
|
+
}
|
|
14531
|
+
if (message.memory !== undefined) {
|
|
14532
|
+
obj.memory = exports.MemoryInfo.toJSON(message.memory);
|
|
14533
|
+
}
|
|
14534
|
+
if (message.thermalZones?.length) {
|
|
14535
|
+
obj.thermalZones = message.thermalZones.map((e) => exports.ThermalZone.toJSON(e));
|
|
14536
|
+
}
|
|
14537
|
+
if (message.videoCodec !== undefined) {
|
|
14538
|
+
obj.videoCodec = exports.VideoCodecInfo.toJSON(message.videoCodec);
|
|
14539
|
+
}
|
|
14540
|
+
if (message.mainQueueLoad !== 0) {
|
|
14541
|
+
obj.mainQueueLoad = message.mainQueueLoad;
|
|
14542
|
+
}
|
|
14543
|
+
if (message.guestportQueueLoad !== 0) {
|
|
14544
|
+
obj.guestportQueueLoad = message.guestportQueueLoad;
|
|
14545
|
+
}
|
|
14546
|
+
if (message.commQueueLoad !== 0) {
|
|
14547
|
+
obj.commQueueLoad = message.commQueueLoad;
|
|
14548
|
+
}
|
|
14549
|
+
if (message.cameraQueueLoad !== 0) {
|
|
14550
|
+
obj.cameraQueueLoad = message.cameraQueueLoad;
|
|
14551
|
+
}
|
|
14552
|
+
if (message.overlayQueueLoad !== 0) {
|
|
14553
|
+
obj.overlayQueueLoad = message.overlayQueueLoad;
|
|
14554
|
+
}
|
|
14555
|
+
if (message.positionObserverQueueLoad !== 0) {
|
|
14556
|
+
obj.positionObserverQueueLoad = message.positionObserverQueueLoad;
|
|
14557
|
+
}
|
|
14558
|
+
return obj;
|
|
14559
|
+
},
|
|
14560
|
+
create(base) {
|
|
14561
|
+
return exports.SystemPerformanceInfo.fromPartial(base ?? {});
|
|
14562
|
+
},
|
|
14563
|
+
fromPartial(object) {
|
|
14564
|
+
const message = createBaseSystemPerformanceInfo();
|
|
14565
|
+
message.cpuCores = object.cpuCores?.map((e) => exports.CpuCoreLoad.fromPartial(e)) || [];
|
|
14566
|
+
message.cpuUtilization = object.cpuUtilization ?? 0;
|
|
14567
|
+
message.gpu = (object.gpu !== undefined && object.gpu !== null) ? exports.GpuInfo.fromPartial(object.gpu) : undefined;
|
|
14568
|
+
message.dlaEngines = object.dlaEngines?.map((e) => exports.DlaInfo.fromPartial(e)) || [];
|
|
14569
|
+
message.memory = (object.memory !== undefined && object.memory !== null)
|
|
14570
|
+
? exports.MemoryInfo.fromPartial(object.memory)
|
|
14571
|
+
: undefined;
|
|
14572
|
+
message.thermalZones = object.thermalZones?.map((e) => exports.ThermalZone.fromPartial(e)) || [];
|
|
14573
|
+
message.videoCodec = (object.videoCodec !== undefined && object.videoCodec !== null)
|
|
14574
|
+
? exports.VideoCodecInfo.fromPartial(object.videoCodec)
|
|
14575
|
+
: undefined;
|
|
14576
|
+
message.mainQueueLoad = object.mainQueueLoad ?? 0;
|
|
14577
|
+
message.guestportQueueLoad = object.guestportQueueLoad ?? 0;
|
|
14578
|
+
message.commQueueLoad = object.commQueueLoad ?? 0;
|
|
14579
|
+
message.cameraQueueLoad = object.cameraQueueLoad ?? 0;
|
|
14580
|
+
message.overlayQueueLoad = object.overlayQueueLoad ?? 0;
|
|
14581
|
+
message.positionObserverQueueLoad = object.positionObserverQueueLoad ?? 0;
|
|
14582
|
+
return message;
|
|
14583
|
+
},
|
|
14584
|
+
};
|
|
14585
|
+
function createBaseSurfaceUnitBatteryInfo() {
|
|
14586
|
+
return { status: 0, level: 0 };
|
|
14587
|
+
}
|
|
14588
|
+
exports.SurfaceUnitBatteryInfo = {
|
|
14589
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14590
|
+
if (message.status !== 0) {
|
|
14591
|
+
writer.uint32(8).int32(message.status);
|
|
14592
|
+
}
|
|
14593
|
+
if (message.level !== 0) {
|
|
14594
|
+
writer.uint32(21).float(message.level);
|
|
14595
|
+
}
|
|
14596
|
+
return writer;
|
|
14597
|
+
},
|
|
14598
|
+
decode(input, length) {
|
|
14599
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14600
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14601
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14602
|
+
while (reader.pos < end) {
|
|
14603
|
+
const tag = reader.uint32();
|
|
14604
|
+
switch (tag >>> 3) {
|
|
14605
|
+
case 1: {
|
|
14606
|
+
if (tag !== 8) {
|
|
14607
|
+
break;
|
|
14608
|
+
}
|
|
14609
|
+
message.status = reader.int32();
|
|
14610
|
+
continue;
|
|
14611
|
+
}
|
|
14612
|
+
case 2: {
|
|
14613
|
+
if (tag !== 21) {
|
|
14614
|
+
break;
|
|
14615
|
+
}
|
|
14616
|
+
message.level = reader.float();
|
|
14617
|
+
continue;
|
|
14618
|
+
}
|
|
14619
|
+
}
|
|
14620
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14621
|
+
break;
|
|
14622
|
+
}
|
|
14623
|
+
reader.skip(tag & 7);
|
|
14624
|
+
}
|
|
14625
|
+
return message;
|
|
14626
|
+
},
|
|
14627
|
+
fromJSON(object) {
|
|
14628
|
+
return {
|
|
14629
|
+
status: isSet(object.status) ? surfaceUnitBatteryInfo_ChargeStatusFromJSON(object.status) : 0,
|
|
14630
|
+
level: isSet(object.level) ? gt.Number(object.level) : 0,
|
|
14631
|
+
};
|
|
14632
|
+
},
|
|
14633
|
+
toJSON(message) {
|
|
14634
|
+
const obj = {};
|
|
14635
|
+
if (message.status !== 0) {
|
|
14636
|
+
obj.status = surfaceUnitBatteryInfo_ChargeStatusToJSON(message.status);
|
|
14637
|
+
}
|
|
14638
|
+
if (message.level !== 0) {
|
|
14639
|
+
obj.level = message.level;
|
|
14640
|
+
}
|
|
14641
|
+
return obj;
|
|
14642
|
+
},
|
|
14643
|
+
create(base) {
|
|
14644
|
+
return exports.SurfaceUnitBatteryInfo.fromPartial(base ?? {});
|
|
14645
|
+
},
|
|
14646
|
+
fromPartial(object) {
|
|
14647
|
+
const message = createBaseSurfaceUnitBatteryInfo();
|
|
14648
|
+
message.status = object.status ?? 0;
|
|
14649
|
+
message.level = object.level ?? 0;
|
|
14650
|
+
return message;
|
|
14651
|
+
},
|
|
14652
|
+
};
|
|
14653
|
+
function createBaseSurfaceUnitVersionInfo() {
|
|
14654
|
+
return { version: "" };
|
|
14655
|
+
}
|
|
14656
|
+
exports.SurfaceUnitVersionInfo = {
|
|
14657
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14658
|
+
if (message.version !== "") {
|
|
14659
|
+
writer.uint32(10).string(message.version);
|
|
14660
|
+
}
|
|
14661
|
+
return writer;
|
|
14662
|
+
},
|
|
14663
|
+
decode(input, length) {
|
|
14664
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14665
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14666
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14667
|
+
while (reader.pos < end) {
|
|
14668
|
+
const tag = reader.uint32();
|
|
14669
|
+
switch (tag >>> 3) {
|
|
14670
|
+
case 1: {
|
|
14671
|
+
if (tag !== 10) {
|
|
14672
|
+
break;
|
|
14673
|
+
}
|
|
14674
|
+
message.version = reader.string();
|
|
14675
|
+
continue;
|
|
14676
|
+
}
|
|
14677
|
+
}
|
|
14678
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14679
|
+
break;
|
|
14680
|
+
}
|
|
14681
|
+
reader.skip(tag & 7);
|
|
14682
|
+
}
|
|
14683
|
+
return message;
|
|
14684
|
+
},
|
|
14685
|
+
fromJSON(object) {
|
|
14686
|
+
return { version: isSet(object.version) ? gt.String(object.version) : "" };
|
|
14687
|
+
},
|
|
14688
|
+
toJSON(message) {
|
|
14689
|
+
const obj = {};
|
|
14690
|
+
if (message.version !== "") {
|
|
14691
|
+
obj.version = message.version;
|
|
14692
|
+
}
|
|
14693
|
+
return obj;
|
|
14694
|
+
},
|
|
14695
|
+
create(base) {
|
|
14696
|
+
return exports.SurfaceUnitVersionInfo.fromPartial(base ?? {});
|
|
14697
|
+
},
|
|
14698
|
+
fromPartial(object) {
|
|
14699
|
+
const message = createBaseSurfaceUnitVersionInfo();
|
|
14700
|
+
message.version = object.version ?? "";
|
|
14701
|
+
return message;
|
|
14702
|
+
},
|
|
14703
|
+
};
|
|
14704
|
+
function createBaseBoundingBox() {
|
|
14705
|
+
return { x: 0, y: 0, width: 0, height: 0 };
|
|
14706
|
+
}
|
|
14707
|
+
exports.BoundingBox = {
|
|
14708
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14709
|
+
if (message.x !== 0) {
|
|
14710
|
+
writer.uint32(8).uint32(message.x);
|
|
14711
|
+
}
|
|
14712
|
+
if (message.y !== 0) {
|
|
14713
|
+
writer.uint32(16).uint32(message.y);
|
|
14714
|
+
}
|
|
14715
|
+
if (message.width !== 0) {
|
|
14716
|
+
writer.uint32(24).uint32(message.width);
|
|
14717
|
+
}
|
|
14718
|
+
if (message.height !== 0) {
|
|
14719
|
+
writer.uint32(32).uint32(message.height);
|
|
14720
|
+
}
|
|
14721
|
+
return writer;
|
|
14722
|
+
},
|
|
14723
|
+
decode(input, length) {
|
|
14724
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14725
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14726
|
+
const message = createBaseBoundingBox();
|
|
14727
|
+
while (reader.pos < end) {
|
|
14728
|
+
const tag = reader.uint32();
|
|
14729
|
+
switch (tag >>> 3) {
|
|
14730
|
+
case 1: {
|
|
14731
|
+
if (tag !== 8) {
|
|
14732
|
+
break;
|
|
14733
|
+
}
|
|
14734
|
+
message.x = reader.uint32();
|
|
14735
|
+
continue;
|
|
14736
|
+
}
|
|
14737
|
+
case 2: {
|
|
14738
|
+
if (tag !== 16) {
|
|
14739
|
+
break;
|
|
14740
|
+
}
|
|
14741
|
+
message.y = reader.uint32();
|
|
14742
|
+
continue;
|
|
14743
|
+
}
|
|
14744
|
+
case 3: {
|
|
14745
|
+
if (tag !== 24) {
|
|
14746
|
+
break;
|
|
14747
|
+
}
|
|
14748
|
+
message.width = reader.uint32();
|
|
14749
|
+
continue;
|
|
14750
|
+
}
|
|
14751
|
+
case 4: {
|
|
14752
|
+
if (tag !== 32) {
|
|
14753
|
+
break;
|
|
14754
|
+
}
|
|
14755
|
+
message.height = reader.uint32();
|
|
14756
|
+
continue;
|
|
14757
|
+
}
|
|
14758
|
+
}
|
|
14759
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14760
|
+
break;
|
|
14761
|
+
}
|
|
14762
|
+
reader.skip(tag & 7);
|
|
14763
|
+
}
|
|
14764
|
+
return message;
|
|
14765
|
+
},
|
|
14766
|
+
fromJSON(object) {
|
|
14767
|
+
return {
|
|
14768
|
+
x: isSet(object.x) ? gt.Number(object.x) : 0,
|
|
14769
|
+
y: isSet(object.y) ? gt.Number(object.y) : 0,
|
|
14770
|
+
width: isSet(object.width) ? gt.Number(object.width) : 0,
|
|
14771
|
+
height: isSet(object.height) ? gt.Number(object.height) : 0,
|
|
14772
|
+
};
|
|
14773
|
+
},
|
|
14774
|
+
toJSON(message) {
|
|
14775
|
+
const obj = {};
|
|
14776
|
+
if (message.x !== 0) {
|
|
14777
|
+
obj.x = Math.round(message.x);
|
|
14778
|
+
}
|
|
14779
|
+
if (message.y !== 0) {
|
|
14780
|
+
obj.y = Math.round(message.y);
|
|
14781
|
+
}
|
|
14782
|
+
if (message.width !== 0) {
|
|
14783
|
+
obj.width = Math.round(message.width);
|
|
14784
|
+
}
|
|
14785
|
+
if (message.height !== 0) {
|
|
14786
|
+
obj.height = Math.round(message.height);
|
|
14787
|
+
}
|
|
14788
|
+
return obj;
|
|
14789
|
+
},
|
|
14790
|
+
create(base) {
|
|
14791
|
+
return exports.BoundingBox.fromPartial(base ?? {});
|
|
14792
|
+
},
|
|
14793
|
+
fromPartial(object) {
|
|
14794
|
+
const message = createBaseBoundingBox();
|
|
14795
|
+
message.x = object.x ?? 0;
|
|
14796
|
+
message.y = object.y ?? 0;
|
|
14797
|
+
message.width = object.width ?? 0;
|
|
14798
|
+
message.height = object.height ?? 0;
|
|
14799
|
+
return message;
|
|
14800
|
+
},
|
|
14801
|
+
};
|
|
14802
|
+
function createBaseSegmentationMask() {
|
|
14803
|
+
return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0) };
|
|
14804
|
+
}
|
|
14805
|
+
exports.SegmentationMask = {
|
|
14806
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14807
|
+
if (message.maskWidth !== 0) {
|
|
14808
|
+
writer.uint32(8).uint32(message.maskWidth);
|
|
14809
|
+
}
|
|
14810
|
+
if (message.maskHeight !== 0) {
|
|
14811
|
+
writer.uint32(16).uint32(message.maskHeight);
|
|
14812
|
+
}
|
|
14813
|
+
if (message.counts.length !== 0) {
|
|
14814
|
+
writer.uint32(26).bytes(message.counts);
|
|
14815
|
+
}
|
|
14816
|
+
return writer;
|
|
14817
|
+
},
|
|
14818
|
+
decode(input, length) {
|
|
14819
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14820
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14821
|
+
const message = createBaseSegmentationMask();
|
|
14822
|
+
while (reader.pos < end) {
|
|
14823
|
+
const tag = reader.uint32();
|
|
14824
|
+
switch (tag >>> 3) {
|
|
14825
|
+
case 1: {
|
|
14826
|
+
if (tag !== 8) {
|
|
14827
|
+
break;
|
|
14828
|
+
}
|
|
14829
|
+
message.maskWidth = reader.uint32();
|
|
14830
|
+
continue;
|
|
14831
|
+
}
|
|
14832
|
+
case 2: {
|
|
14833
|
+
if (tag !== 16) {
|
|
14834
|
+
break;
|
|
14835
|
+
}
|
|
14836
|
+
message.maskHeight = reader.uint32();
|
|
14837
|
+
continue;
|
|
14838
|
+
}
|
|
14839
|
+
case 3: {
|
|
14840
|
+
if (tag !== 26) {
|
|
14841
|
+
break;
|
|
14842
|
+
}
|
|
14843
|
+
message.counts = reader.bytes();
|
|
14844
|
+
continue;
|
|
14845
|
+
}
|
|
14846
|
+
}
|
|
14847
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14848
|
+
break;
|
|
14849
|
+
}
|
|
14850
|
+
reader.skip(tag & 7);
|
|
14851
|
+
}
|
|
14852
|
+
return message;
|
|
14853
|
+
},
|
|
14854
|
+
fromJSON(object) {
|
|
14855
|
+
return {
|
|
14856
|
+
maskWidth: isSet(object.maskWidth) ? gt.Number(object.maskWidth) : 0,
|
|
14857
|
+
maskHeight: isSet(object.maskHeight) ? gt.Number(object.maskHeight) : 0,
|
|
14858
|
+
counts: isSet(object.counts) ? bytesFromBase64(object.counts) : new Uint8Array(0),
|
|
14859
|
+
};
|
|
14860
|
+
},
|
|
14861
|
+
toJSON(message) {
|
|
14862
|
+
const obj = {};
|
|
14863
|
+
if (message.maskWidth !== 0) {
|
|
14864
|
+
obj.maskWidth = Math.round(message.maskWidth);
|
|
14865
|
+
}
|
|
14866
|
+
if (message.maskHeight !== 0) {
|
|
14867
|
+
obj.maskHeight = Math.round(message.maskHeight);
|
|
14868
|
+
}
|
|
14869
|
+
if (message.counts.length !== 0) {
|
|
14870
|
+
obj.counts = base64FromBytes(message.counts);
|
|
14871
|
+
}
|
|
14872
|
+
return obj;
|
|
14873
|
+
},
|
|
14874
|
+
create(base) {
|
|
14875
|
+
return exports.SegmentationMask.fromPartial(base ?? {});
|
|
14876
|
+
},
|
|
14877
|
+
fromPartial(object) {
|
|
14878
|
+
const message = createBaseSegmentationMask();
|
|
14879
|
+
message.maskWidth = object.maskWidth ?? 0;
|
|
14880
|
+
message.maskHeight = object.maskHeight ?? 0;
|
|
14881
|
+
message.counts = object.counts ?? new Uint8Array(0);
|
|
14882
|
+
return message;
|
|
14883
|
+
},
|
|
14884
|
+
};
|
|
14885
|
+
function createBaseObjectDetection() {
|
|
14886
|
+
return { boundingBox: undefined, confidence: 0, classId: 0, className: "", trackingId: 0, mask: undefined };
|
|
14887
|
+
}
|
|
14888
|
+
exports.ObjectDetection = {
|
|
14889
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14890
|
+
if (message.boundingBox !== undefined) {
|
|
14891
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
|
|
14892
|
+
}
|
|
14893
|
+
if (message.confidence !== 0) {
|
|
14894
|
+
writer.uint32(21).float(message.confidence);
|
|
14895
|
+
}
|
|
14896
|
+
if (message.classId !== 0) {
|
|
14897
|
+
writer.uint32(24).uint32(message.classId);
|
|
14898
|
+
}
|
|
14899
|
+
if (message.className !== "") {
|
|
14900
|
+
writer.uint32(34).string(message.className);
|
|
14901
|
+
}
|
|
14902
|
+
if (message.trackingId !== 0) {
|
|
14903
|
+
writer.uint32(40).uint32(message.trackingId);
|
|
14904
|
+
}
|
|
14905
|
+
if (message.mask !== undefined) {
|
|
14906
|
+
exports.SegmentationMask.encode(message.mask, writer.uint32(50).fork()).join();
|
|
14907
|
+
}
|
|
14908
|
+
return writer;
|
|
14909
|
+
},
|
|
14910
|
+
decode(input, length) {
|
|
14911
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14912
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14913
|
+
const message = createBaseObjectDetection();
|
|
14914
|
+
while (reader.pos < end) {
|
|
14915
|
+
const tag = reader.uint32();
|
|
14916
|
+
switch (tag >>> 3) {
|
|
14917
|
+
case 1: {
|
|
14918
|
+
if (tag !== 10) {
|
|
14919
|
+
break;
|
|
14920
|
+
}
|
|
14921
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
14922
|
+
continue;
|
|
14923
|
+
}
|
|
14924
|
+
case 2: {
|
|
14925
|
+
if (tag !== 21) {
|
|
14926
|
+
break;
|
|
14927
|
+
}
|
|
14928
|
+
message.confidence = reader.float();
|
|
14929
|
+
continue;
|
|
14930
|
+
}
|
|
14931
|
+
case 3: {
|
|
14932
|
+
if (tag !== 24) {
|
|
14933
|
+
break;
|
|
14934
|
+
}
|
|
14935
|
+
message.classId = reader.uint32();
|
|
14936
|
+
continue;
|
|
14937
|
+
}
|
|
14938
|
+
case 4: {
|
|
14939
|
+
if (tag !== 34) {
|
|
14940
|
+
break;
|
|
14941
|
+
}
|
|
14942
|
+
message.className = reader.string();
|
|
14943
|
+
continue;
|
|
14944
|
+
}
|
|
14945
|
+
case 5: {
|
|
14946
|
+
if (tag !== 40) {
|
|
14947
|
+
break;
|
|
14948
|
+
}
|
|
14949
|
+
message.trackingId = reader.uint32();
|
|
14950
|
+
continue;
|
|
14951
|
+
}
|
|
14952
|
+
case 6: {
|
|
14953
|
+
if (tag !== 50) {
|
|
14954
|
+
break;
|
|
14955
|
+
}
|
|
14956
|
+
message.mask = exports.SegmentationMask.decode(reader, reader.uint32());
|
|
14957
|
+
continue;
|
|
14958
|
+
}
|
|
14959
|
+
}
|
|
14960
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14961
|
+
break;
|
|
14962
|
+
}
|
|
14963
|
+
reader.skip(tag & 7);
|
|
14964
|
+
}
|
|
14965
|
+
return message;
|
|
14966
|
+
},
|
|
14967
|
+
fromJSON(object) {
|
|
14968
|
+
return {
|
|
14969
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
14970
|
+
confidence: isSet(object.confidence) ? gt.Number(object.confidence) : 0,
|
|
14971
|
+
classId: isSet(object.classId) ? gt.Number(object.classId) : 0,
|
|
14972
|
+
className: isSet(object.className) ? gt.String(object.className) : "",
|
|
14973
|
+
trackingId: isSet(object.trackingId) ? gt.Number(object.trackingId) : 0,
|
|
14974
|
+
mask: isSet(object.mask) ? exports.SegmentationMask.fromJSON(object.mask) : undefined,
|
|
14975
|
+
};
|
|
14976
|
+
},
|
|
14977
|
+
toJSON(message) {
|
|
14978
|
+
const obj = {};
|
|
14979
|
+
if (message.boundingBox !== undefined) {
|
|
14980
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
14981
|
+
}
|
|
14982
|
+
if (message.confidence !== 0) {
|
|
14983
|
+
obj.confidence = message.confidence;
|
|
14984
|
+
}
|
|
14985
|
+
if (message.classId !== 0) {
|
|
14986
|
+
obj.classId = Math.round(message.classId);
|
|
14987
|
+
}
|
|
14988
|
+
if (message.className !== "") {
|
|
14989
|
+
obj.className = message.className;
|
|
14990
|
+
}
|
|
14991
|
+
if (message.trackingId !== 0) {
|
|
14992
|
+
obj.trackingId = Math.round(message.trackingId);
|
|
14993
|
+
}
|
|
14994
|
+
if (message.mask !== undefined) {
|
|
14995
|
+
obj.mask = exports.SegmentationMask.toJSON(message.mask);
|
|
14996
|
+
}
|
|
14997
|
+
return obj;
|
|
14998
|
+
},
|
|
14999
|
+
create(base) {
|
|
15000
|
+
return exports.ObjectDetection.fromPartial(base ?? {});
|
|
15001
|
+
},
|
|
15002
|
+
fromPartial(object) {
|
|
15003
|
+
const message = createBaseObjectDetection();
|
|
15004
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
15005
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
15006
|
+
: undefined;
|
|
15007
|
+
message.confidence = object.confidence ?? 0;
|
|
15008
|
+
message.classId = object.classId ?? 0;
|
|
15009
|
+
message.className = object.className ?? "";
|
|
15010
|
+
message.trackingId = object.trackingId ?? 0;
|
|
15011
|
+
message.mask = (object.mask !== undefined && object.mask !== null)
|
|
15012
|
+
? exports.SegmentationMask.fromPartial(object.mask)
|
|
15013
|
+
: undefined;
|
|
15014
|
+
return message;
|
|
15015
|
+
},
|
|
15016
|
+
};
|
|
15017
|
+
function createBaseModelDetections() {
|
|
15018
|
+
return { detections: [], camera: 0, imageWidth: 0, imageHeight: 0, modelName: "" };
|
|
15019
|
+
}
|
|
15020
|
+
exports.ModelDetections = {
|
|
15021
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15022
|
+
for (const v of message.detections) {
|
|
15023
|
+
exports.ObjectDetection.encode(v, writer.uint32(10).fork()).join();
|
|
15024
|
+
}
|
|
15025
|
+
if (message.camera !== 0) {
|
|
15026
|
+
writer.uint32(16).int32(message.camera);
|
|
15027
|
+
}
|
|
15028
|
+
if (message.imageWidth !== 0) {
|
|
15029
|
+
writer.uint32(24).uint32(message.imageWidth);
|
|
15030
|
+
}
|
|
15031
|
+
if (message.imageHeight !== 0) {
|
|
15032
|
+
writer.uint32(32).uint32(message.imageHeight);
|
|
15033
|
+
}
|
|
15034
|
+
if (message.modelName !== "") {
|
|
15035
|
+
writer.uint32(42).string(message.modelName);
|
|
15036
|
+
}
|
|
15037
|
+
return writer;
|
|
15038
|
+
},
|
|
15039
|
+
decode(input, length) {
|
|
15040
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15041
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15042
|
+
const message = createBaseModelDetections();
|
|
15043
|
+
while (reader.pos < end) {
|
|
15044
|
+
const tag = reader.uint32();
|
|
15045
|
+
switch (tag >>> 3) {
|
|
15046
|
+
case 1: {
|
|
15047
|
+
if (tag !== 10) {
|
|
15048
|
+
break;
|
|
15049
|
+
}
|
|
15050
|
+
message.detections.push(exports.ObjectDetection.decode(reader, reader.uint32()));
|
|
15051
|
+
continue;
|
|
15052
|
+
}
|
|
15053
|
+
case 2: {
|
|
15054
|
+
if (tag !== 16) {
|
|
15055
|
+
break;
|
|
15056
|
+
}
|
|
15057
|
+
message.camera = reader.int32();
|
|
15058
|
+
continue;
|
|
15059
|
+
}
|
|
15060
|
+
case 3: {
|
|
15061
|
+
if (tag !== 24) {
|
|
15062
|
+
break;
|
|
15063
|
+
}
|
|
15064
|
+
message.imageWidth = reader.uint32();
|
|
15065
|
+
continue;
|
|
15066
|
+
}
|
|
15067
|
+
case 4: {
|
|
15068
|
+
if (tag !== 32) {
|
|
15069
|
+
break;
|
|
15070
|
+
}
|
|
15071
|
+
message.imageHeight = reader.uint32();
|
|
15072
|
+
continue;
|
|
15073
|
+
}
|
|
15074
|
+
case 5: {
|
|
15075
|
+
if (tag !== 42) {
|
|
15076
|
+
break;
|
|
15077
|
+
}
|
|
15078
|
+
message.modelName = reader.string();
|
|
15079
|
+
continue;
|
|
15080
|
+
}
|
|
15081
|
+
}
|
|
15082
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15083
|
+
break;
|
|
15084
|
+
}
|
|
15085
|
+
reader.skip(tag & 7);
|
|
15086
|
+
}
|
|
15087
|
+
return message;
|
|
15088
|
+
},
|
|
15089
|
+
fromJSON(object) {
|
|
15090
|
+
return {
|
|
15091
|
+
detections: gt.Array.isArray(object?.detections)
|
|
15092
|
+
? object.detections.map((e) => exports.ObjectDetection.fromJSON(e))
|
|
15093
|
+
: [],
|
|
15094
|
+
camera: isSet(object.camera) ? cameraFromJSON(object.camera) : 0,
|
|
15095
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
15096
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
15097
|
+
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
15098
|
+
};
|
|
15099
|
+
},
|
|
15100
|
+
toJSON(message) {
|
|
15101
|
+
const obj = {};
|
|
15102
|
+
if (message.detections?.length) {
|
|
15103
|
+
obj.detections = message.detections.map((e) => exports.ObjectDetection.toJSON(e));
|
|
15104
|
+
}
|
|
15105
|
+
if (message.camera !== 0) {
|
|
15106
|
+
obj.camera = cameraToJSON(message.camera);
|
|
15107
|
+
}
|
|
15108
|
+
if (message.imageWidth !== 0) {
|
|
15109
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
15110
|
+
}
|
|
15111
|
+
if (message.imageHeight !== 0) {
|
|
15112
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
15113
|
+
}
|
|
15114
|
+
if (message.modelName !== "") {
|
|
15115
|
+
obj.modelName = message.modelName;
|
|
15116
|
+
}
|
|
15117
|
+
return obj;
|
|
15118
|
+
},
|
|
15119
|
+
create(base) {
|
|
15120
|
+
return exports.ModelDetections.fromPartial(base ?? {});
|
|
15121
|
+
},
|
|
15122
|
+
fromPartial(object) {
|
|
15123
|
+
const message = createBaseModelDetections();
|
|
15124
|
+
message.detections = object.detections?.map((e) => exports.ObjectDetection.fromPartial(e)) || [];
|
|
15125
|
+
message.camera = object.camera ?? 0;
|
|
15126
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
15127
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
15128
|
+
message.modelName = object.modelName ?? "";
|
|
15129
|
+
return message;
|
|
15130
|
+
},
|
|
15131
|
+
};
|
|
15132
|
+
function createBaseFilterMessage() {
|
|
15133
|
+
return { enabled: false, intensity: 0 };
|
|
15134
|
+
}
|
|
15135
|
+
exports.FilterMessage = {
|
|
15136
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15137
|
+
if (message.enabled !== false) {
|
|
15138
|
+
writer.uint32(8).bool(message.enabled);
|
|
15139
|
+
}
|
|
15140
|
+
if (message.intensity !== 0) {
|
|
15141
|
+
writer.uint32(21).float(message.intensity);
|
|
15142
|
+
}
|
|
15143
|
+
return writer;
|
|
15144
|
+
},
|
|
15145
|
+
decode(input, length) {
|
|
15146
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15147
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15148
|
+
const message = createBaseFilterMessage();
|
|
15149
|
+
while (reader.pos < end) {
|
|
15150
|
+
const tag = reader.uint32();
|
|
15151
|
+
switch (tag >>> 3) {
|
|
15152
|
+
case 1: {
|
|
15153
|
+
if (tag !== 8) {
|
|
15154
|
+
break;
|
|
15155
|
+
}
|
|
15156
|
+
message.enabled = reader.bool();
|
|
15157
|
+
continue;
|
|
15158
|
+
}
|
|
15159
|
+
case 2: {
|
|
15160
|
+
if (tag !== 21) {
|
|
15161
|
+
break;
|
|
15162
|
+
}
|
|
15163
|
+
message.intensity = reader.float();
|
|
15164
|
+
continue;
|
|
15165
|
+
}
|
|
15166
|
+
}
|
|
15167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15168
|
+
break;
|
|
15169
|
+
}
|
|
15170
|
+
reader.skip(tag & 7);
|
|
15171
|
+
}
|
|
15172
|
+
return message;
|
|
15173
|
+
},
|
|
15174
|
+
fromJSON(object) {
|
|
15175
|
+
return {
|
|
15176
|
+
enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false,
|
|
15177
|
+
intensity: isSet(object.intensity) ? gt.Number(object.intensity) : 0,
|
|
15178
|
+
};
|
|
15179
|
+
},
|
|
15180
|
+
toJSON(message) {
|
|
15181
|
+
const obj = {};
|
|
15182
|
+
if (message.enabled !== false) {
|
|
15183
|
+
obj.enabled = message.enabled;
|
|
15184
|
+
}
|
|
15185
|
+
if (message.intensity !== 0) {
|
|
15186
|
+
obj.intensity = message.intensity;
|
|
15187
|
+
}
|
|
15188
|
+
return obj;
|
|
15189
|
+
},
|
|
15190
|
+
create(base) {
|
|
15191
|
+
return exports.FilterMessage.fromPartial(base ?? {});
|
|
15192
|
+
},
|
|
15193
|
+
fromPartial(object) {
|
|
15194
|
+
const message = createBaseFilterMessage();
|
|
15195
|
+
message.enabled = object.enabled ?? false;
|
|
15196
|
+
message.intensity = object.intensity ?? 0;
|
|
15197
|
+
return message;
|
|
15198
|
+
},
|
|
15199
|
+
};
|
|
15200
|
+
function createBaseCameraPanTiltZoom() {
|
|
15201
|
+
return { pan: 0, tilt: 0, zoom: 0 };
|
|
15202
|
+
}
|
|
15203
|
+
exports.CameraPanTiltZoom = {
|
|
15204
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15205
|
+
if (message.pan !== 0) {
|
|
15206
|
+
writer.uint32(13).float(message.pan);
|
|
15207
|
+
}
|
|
15208
|
+
if (message.tilt !== 0) {
|
|
15209
|
+
writer.uint32(21).float(message.tilt);
|
|
15210
|
+
}
|
|
15211
|
+
if (message.zoom !== 0) {
|
|
15212
|
+
writer.uint32(29).float(message.zoom);
|
|
15213
|
+
}
|
|
15214
|
+
return writer;
|
|
15215
|
+
},
|
|
15216
|
+
decode(input, length) {
|
|
15217
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15218
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15219
|
+
const message = createBaseCameraPanTiltZoom();
|
|
15220
|
+
while (reader.pos < end) {
|
|
15221
|
+
const tag = reader.uint32();
|
|
15222
|
+
switch (tag >>> 3) {
|
|
15223
|
+
case 1: {
|
|
15224
|
+
if (tag !== 13) {
|
|
15225
|
+
break;
|
|
15226
|
+
}
|
|
15227
|
+
message.pan = reader.float();
|
|
15228
|
+
continue;
|
|
15229
|
+
}
|
|
15230
|
+
case 2: {
|
|
15231
|
+
if (tag !== 21) {
|
|
15232
|
+
break;
|
|
15233
|
+
}
|
|
15234
|
+
message.tilt = reader.float();
|
|
15235
|
+
continue;
|
|
15236
|
+
}
|
|
15237
|
+
case 3: {
|
|
15238
|
+
if (tag !== 29) {
|
|
15239
|
+
break;
|
|
15240
|
+
}
|
|
15241
|
+
message.zoom = reader.float();
|
|
15242
|
+
continue;
|
|
15243
|
+
}
|
|
15244
|
+
}
|
|
15245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15246
|
+
break;
|
|
15247
|
+
}
|
|
15248
|
+
reader.skip(tag & 7);
|
|
15249
|
+
}
|
|
15250
|
+
return message;
|
|
15251
|
+
},
|
|
15252
|
+
fromJSON(object) {
|
|
15253
|
+
return {
|
|
15254
|
+
pan: isSet(object.pan) ? gt.Number(object.pan) : 0,
|
|
15255
|
+
tilt: isSet(object.tilt) ? gt.Number(object.tilt) : 0,
|
|
15256
|
+
zoom: isSet(object.zoom) ? gt.Number(object.zoom) : 0,
|
|
15257
|
+
};
|
|
15258
|
+
},
|
|
15259
|
+
toJSON(message) {
|
|
15260
|
+
const obj = {};
|
|
15261
|
+
if (message.pan !== 0) {
|
|
15262
|
+
obj.pan = message.pan;
|
|
15263
|
+
}
|
|
15264
|
+
if (message.tilt !== 0) {
|
|
15265
|
+
obj.tilt = message.tilt;
|
|
15266
|
+
}
|
|
15267
|
+
if (message.zoom !== 0) {
|
|
15268
|
+
obj.zoom = message.zoom;
|
|
15269
|
+
}
|
|
15270
|
+
return obj;
|
|
15271
|
+
},
|
|
15272
|
+
create(base) {
|
|
15273
|
+
return exports.CameraPanTiltZoom.fromPartial(base ?? {});
|
|
15274
|
+
},
|
|
15275
|
+
fromPartial(object) {
|
|
15276
|
+
const message = createBaseCameraPanTiltZoom();
|
|
15277
|
+
message.pan = object.pan ?? 0;
|
|
15278
|
+
message.tilt = object.tilt ?? 0;
|
|
15279
|
+
message.zoom = object.zoom ?? 0;
|
|
15280
|
+
return message;
|
|
15281
|
+
},
|
|
15282
|
+
};
|
|
15283
|
+
function createBaseOperatorInfo() {
|
|
15284
|
+
return { name: "", email: "" };
|
|
15285
|
+
}
|
|
15286
|
+
exports.OperatorInfo = {
|
|
15287
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15288
|
+
if (message.name !== "") {
|
|
15289
|
+
writer.uint32(10).string(message.name);
|
|
15290
|
+
}
|
|
15291
|
+
if (message.email !== "") {
|
|
15292
|
+
writer.uint32(18).string(message.email);
|
|
15293
|
+
}
|
|
15294
|
+
return writer;
|
|
15295
|
+
},
|
|
15296
|
+
decode(input, length) {
|
|
15297
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15298
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15299
|
+
const message = createBaseOperatorInfo();
|
|
15300
|
+
while (reader.pos < end) {
|
|
15301
|
+
const tag = reader.uint32();
|
|
15302
|
+
switch (tag >>> 3) {
|
|
15303
|
+
case 1: {
|
|
15304
|
+
if (tag !== 10) {
|
|
15305
|
+
break;
|
|
15306
|
+
}
|
|
15307
|
+
message.name = reader.string();
|
|
15308
|
+
continue;
|
|
15309
|
+
}
|
|
15310
|
+
case 2: {
|
|
15311
|
+
if (tag !== 18) {
|
|
15312
|
+
break;
|
|
15313
|
+
}
|
|
15314
|
+
message.email = reader.string();
|
|
15315
|
+
continue;
|
|
15316
|
+
}
|
|
15317
|
+
}
|
|
15318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15319
|
+
break;
|
|
15320
|
+
}
|
|
15321
|
+
reader.skip(tag & 7);
|
|
15322
|
+
}
|
|
15323
|
+
return message;
|
|
15324
|
+
},
|
|
15325
|
+
fromJSON(object) {
|
|
15326
|
+
return {
|
|
15327
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
15328
|
+
email: isSet(object.email) ? gt.String(object.email) : "",
|
|
15329
|
+
};
|
|
15330
|
+
},
|
|
15331
|
+
toJSON(message) {
|
|
15332
|
+
const obj = {};
|
|
15333
|
+
if (message.name !== "") {
|
|
15334
|
+
obj.name = message.name;
|
|
15335
|
+
}
|
|
15336
|
+
if (message.email !== "") {
|
|
15337
|
+
obj.email = message.email;
|
|
15338
|
+
}
|
|
15339
|
+
return obj;
|
|
15340
|
+
},
|
|
15341
|
+
create(base) {
|
|
15342
|
+
return exports.OperatorInfo.fromPartial(base ?? {});
|
|
15343
|
+
},
|
|
15344
|
+
fromPartial(object) {
|
|
15345
|
+
const message = createBaseOperatorInfo();
|
|
15346
|
+
message.name = object.name ?? "";
|
|
15347
|
+
message.email = object.email ?? "";
|
|
15348
|
+
return message;
|
|
15349
|
+
},
|
|
15350
|
+
};
|
|
15351
|
+
function createBaseSotState() {
|
|
15352
|
+
return { state: 0, boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
|
|
15353
|
+
}
|
|
15354
|
+
exports.SotState = {
|
|
15355
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
15356
|
+
if (message.state !== 0) {
|
|
15357
|
+
writer.uint32(8).int32(message.state);
|
|
15358
|
+
}
|
|
15359
|
+
if (message.boundingBox !== undefined) {
|
|
15360
|
+
exports.BoundingBox.encode(message.boundingBox, writer.uint32(18).fork()).join();
|
|
15361
|
+
}
|
|
15362
|
+
if (message.imageWidth !== 0) {
|
|
15363
|
+
writer.uint32(24).uint32(message.imageWidth);
|
|
15364
|
+
}
|
|
15365
|
+
if (message.imageHeight !== 0) {
|
|
15366
|
+
writer.uint32(32).uint32(message.imageHeight);
|
|
15367
|
+
}
|
|
15368
|
+
return writer;
|
|
15369
|
+
},
|
|
15370
|
+
decode(input, length) {
|
|
15371
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
15372
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15373
|
+
const message = createBaseSotState();
|
|
15374
|
+
while (reader.pos < end) {
|
|
15375
|
+
const tag = reader.uint32();
|
|
15376
|
+
switch (tag >>> 3) {
|
|
15377
|
+
case 1: {
|
|
15378
|
+
if (tag !== 8) {
|
|
15379
|
+
break;
|
|
15380
|
+
}
|
|
15381
|
+
message.state = reader.int32();
|
|
15382
|
+
continue;
|
|
15383
|
+
}
|
|
15384
|
+
case 2: {
|
|
15385
|
+
if (tag !== 18) {
|
|
15386
|
+
break;
|
|
15387
|
+
}
|
|
15388
|
+
message.boundingBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
15389
|
+
continue;
|
|
15390
|
+
}
|
|
15391
|
+
case 3: {
|
|
15392
|
+
if (tag !== 24) {
|
|
15393
|
+
break;
|
|
15394
|
+
}
|
|
15395
|
+
message.imageWidth = reader.uint32();
|
|
15396
|
+
continue;
|
|
15397
|
+
}
|
|
15398
|
+
case 4: {
|
|
15399
|
+
if (tag !== 32) {
|
|
15400
|
+
break;
|
|
15401
|
+
}
|
|
15402
|
+
message.imageHeight = reader.uint32();
|
|
15403
|
+
continue;
|
|
15404
|
+
}
|
|
15405
|
+
}
|
|
15406
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15407
|
+
break;
|
|
15408
|
+
}
|
|
15409
|
+
reader.skip(tag & 7);
|
|
15410
|
+
}
|
|
15411
|
+
return message;
|
|
15412
|
+
},
|
|
15413
|
+
fromJSON(object) {
|
|
15414
|
+
return {
|
|
15415
|
+
state: isSet(object.state) ? sotState_StateFromJSON(object.state) : 0,
|
|
15416
|
+
boundingBox: isSet(object.boundingBox) ? exports.BoundingBox.fromJSON(object.boundingBox) : undefined,
|
|
15417
|
+
imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
|
|
15418
|
+
imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
|
|
15419
|
+
};
|
|
15420
|
+
},
|
|
15421
|
+
toJSON(message) {
|
|
15422
|
+
const obj = {};
|
|
15423
|
+
if (message.state !== 0) {
|
|
15424
|
+
obj.state = sotState_StateToJSON(message.state);
|
|
15425
|
+
}
|
|
15426
|
+
if (message.boundingBox !== undefined) {
|
|
15427
|
+
obj.boundingBox = exports.BoundingBox.toJSON(message.boundingBox);
|
|
15428
|
+
}
|
|
15429
|
+
if (message.imageWidth !== 0) {
|
|
15430
|
+
obj.imageWidth = Math.round(message.imageWidth);
|
|
15431
|
+
}
|
|
15432
|
+
if (message.imageHeight !== 0) {
|
|
15433
|
+
obj.imageHeight = Math.round(message.imageHeight);
|
|
15434
|
+
}
|
|
15435
|
+
return obj;
|
|
15436
|
+
},
|
|
15437
|
+
create(base) {
|
|
15438
|
+
return exports.SotState.fromPartial(base ?? {});
|
|
15439
|
+
},
|
|
15440
|
+
fromPartial(object) {
|
|
15441
|
+
const message = createBaseSotState();
|
|
15442
|
+
message.state = object.state ?? 0;
|
|
15443
|
+
message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
|
|
15444
|
+
? exports.BoundingBox.fromPartial(object.boundingBox)
|
|
15445
|
+
: undefined;
|
|
15446
|
+
message.imageWidth = object.imageWidth ?? 0;
|
|
15447
|
+
message.imageHeight = object.imageHeight ?? 0;
|
|
13371
15448
|
return message;
|
|
13372
15449
|
},
|
|
13373
15450
|
};
|