@blueyerobotics/protocol-definitions 3.2.0-28a7294b → 3.2.0-2bcfe527
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 +8 -0
- package/dist/control.js +75 -1
- package/dist/message_formats.d.ts +166 -5
- package/dist/message_formats.js +1244 -151
- package/dist/req_rep.d.ts +10 -0
- package/dist/req_rep.js +89 -1
- package/dist/telemetry.d.ts +16 -5
- package/dist/telemetry.js +69 -11
- package/package.json +1 -1
package/dist/req_rep.d.ts
CHANGED
|
@@ -227,6 +227,14 @@ export interface GetIperfStatusRep {
|
|
|
227
227
|
/** If background iperf task is enabled or disabled. */
|
|
228
228
|
enabled: boolean;
|
|
229
229
|
}
|
|
230
|
+
/** Request to get the current log streaming status. */
|
|
231
|
+
export interface GetLogStreamingStatusReq {
|
|
232
|
+
}
|
|
233
|
+
/** Response with the current log streaming status. */
|
|
234
|
+
export interface GetLogStreamingStatusRep {
|
|
235
|
+
/** If log streaming is enabled or disabled. */
|
|
236
|
+
enabled: boolean;
|
|
237
|
+
}
|
|
230
238
|
export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
|
|
231
239
|
export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
|
|
232
240
|
export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
|
|
@@ -269,6 +277,8 @@ export declare const SetIperfStatusReq: MessageFns<SetIperfStatusReq>;
|
|
|
269
277
|
export declare const SetIperfStatusRep: MessageFns<SetIperfStatusRep>;
|
|
270
278
|
export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
|
|
271
279
|
export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
|
|
280
|
+
export declare const GetLogStreamingStatusReq: MessageFns<GetLogStreamingStatusReq>;
|
|
281
|
+
export declare const GetLogStreamingStatusRep: MessageFns<GetLogStreamingStatusRep>;
|
|
272
282
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
273
283
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
274
284
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/req_rep.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: req_rep.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
8
|
+
exports.GetLogStreamingStatusRep = exports.GetLogStreamingStatusReq = exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -2089,6 +2089,94 @@ exports.GetIperfStatusRep = {
|
|
|
2089
2089
|
return message;
|
|
2090
2090
|
},
|
|
2091
2091
|
};
|
|
2092
|
+
function createBaseGetLogStreamingStatusReq() {
|
|
2093
|
+
return {};
|
|
2094
|
+
}
|
|
2095
|
+
exports.GetLogStreamingStatusReq = {
|
|
2096
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2097
|
+
return writer;
|
|
2098
|
+
},
|
|
2099
|
+
decode(input, length) {
|
|
2100
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2101
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2102
|
+
const message = createBaseGetLogStreamingStatusReq();
|
|
2103
|
+
while (reader.pos < end) {
|
|
2104
|
+
const tag = reader.uint32();
|
|
2105
|
+
switch (tag >>> 3) {
|
|
2106
|
+
}
|
|
2107
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2108
|
+
break;
|
|
2109
|
+
}
|
|
2110
|
+
reader.skip(tag & 7);
|
|
2111
|
+
}
|
|
2112
|
+
return message;
|
|
2113
|
+
},
|
|
2114
|
+
fromJSON(_) {
|
|
2115
|
+
return {};
|
|
2116
|
+
},
|
|
2117
|
+
toJSON(_) {
|
|
2118
|
+
const obj = {};
|
|
2119
|
+
return obj;
|
|
2120
|
+
},
|
|
2121
|
+
create(base) {
|
|
2122
|
+
return exports.GetLogStreamingStatusReq.fromPartial(base ?? {});
|
|
2123
|
+
},
|
|
2124
|
+
fromPartial(_) {
|
|
2125
|
+
const message = createBaseGetLogStreamingStatusReq();
|
|
2126
|
+
return message;
|
|
2127
|
+
},
|
|
2128
|
+
};
|
|
2129
|
+
function createBaseGetLogStreamingStatusRep() {
|
|
2130
|
+
return { enabled: false };
|
|
2131
|
+
}
|
|
2132
|
+
exports.GetLogStreamingStatusRep = {
|
|
2133
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2134
|
+
if (message.enabled !== false) {
|
|
2135
|
+
writer.uint32(8).bool(message.enabled);
|
|
2136
|
+
}
|
|
2137
|
+
return writer;
|
|
2138
|
+
},
|
|
2139
|
+
decode(input, length) {
|
|
2140
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2141
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2142
|
+
const message = createBaseGetLogStreamingStatusRep();
|
|
2143
|
+
while (reader.pos < end) {
|
|
2144
|
+
const tag = reader.uint32();
|
|
2145
|
+
switch (tag >>> 3) {
|
|
2146
|
+
case 1: {
|
|
2147
|
+
if (tag !== 8) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
message.enabled = reader.bool();
|
|
2151
|
+
continue;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
reader.skip(tag & 7);
|
|
2158
|
+
}
|
|
2159
|
+
return message;
|
|
2160
|
+
},
|
|
2161
|
+
fromJSON(object) {
|
|
2162
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
2163
|
+
},
|
|
2164
|
+
toJSON(message) {
|
|
2165
|
+
const obj = {};
|
|
2166
|
+
if (message.enabled !== false) {
|
|
2167
|
+
obj.enabled = message.enabled;
|
|
2168
|
+
}
|
|
2169
|
+
return obj;
|
|
2170
|
+
},
|
|
2171
|
+
create(base) {
|
|
2172
|
+
return exports.GetLogStreamingStatusRep.fromPartial(base ?? {});
|
|
2173
|
+
},
|
|
2174
|
+
fromPartial(object) {
|
|
2175
|
+
const message = createBaseGetLogStreamingStatusRep();
|
|
2176
|
+
message.enabled = object.enabled ?? false;
|
|
2177
|
+
return message;
|
|
2178
|
+
},
|
|
2179
|
+
};
|
|
2092
2180
|
const gt = (() => {
|
|
2093
2181
|
if (typeof globalThis !== "undefined") {
|
|
2094
2182
|
return globalThis;
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll";
|
|
3
|
-
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers,
|
|
3
|
+
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -300,11 +300,21 @@ export interface MultibeamDiscoveryTel {
|
|
|
300
300
|
/** Discovery data from a multibeam sonar. */
|
|
301
301
|
discovery: MultibeamDiscovery | undefined;
|
|
302
302
|
}
|
|
303
|
-
/** Information about
|
|
303
|
+
/** Information about CPU and memory usage (deprecated, use SystemPerformanceInfoTel instead). */
|
|
304
304
|
export interface CPUInfoTel {
|
|
305
305
|
/** CPU information. */
|
|
306
306
|
cpuInfo: CPUInfo | undefined;
|
|
307
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* System performance telemetry message.
|
|
310
|
+
*
|
|
311
|
+
* Comprehensive performance metrics including per-core CPU, GPU, DLA,
|
|
312
|
+
* memory, thermals, and video codec utilization.
|
|
313
|
+
*/
|
|
314
|
+
export interface SystemPerformanceInfoTel {
|
|
315
|
+
/** System performance information. */
|
|
316
|
+
systemPerformanceInfo: SystemPerformanceInfo | undefined;
|
|
317
|
+
}
|
|
308
318
|
/** Surface Unit telemetry message. */
|
|
309
319
|
export interface SurfaceUnitTel {
|
|
310
320
|
/** Battery information. */
|
|
@@ -319,10 +329,10 @@ export interface LogEntryTel {
|
|
|
319
329
|
/** Kernel log entry. */
|
|
320
330
|
kernel?: KernelLogEntry | undefined;
|
|
321
331
|
}
|
|
322
|
-
/** Object detections from
|
|
332
|
+
/** Object detections from all active computer vision models. */
|
|
323
333
|
export interface ObjectDetectionsTel {
|
|
324
|
-
/**
|
|
325
|
-
|
|
334
|
+
/** Per-model detection results. */
|
|
335
|
+
modelDetections: ModelDetections[];
|
|
326
336
|
}
|
|
327
337
|
/**
|
|
328
338
|
* Turbidity filter settings telemetry message.
|
|
@@ -400,6 +410,7 @@ export declare const MultibeamPingTel: MessageFns<MultibeamPingTel>;
|
|
|
400
410
|
export declare const MultibeamConfigTel: MessageFns<MultibeamConfigTel>;
|
|
401
411
|
export declare const MultibeamDiscoveryTel: MessageFns<MultibeamDiscoveryTel>;
|
|
402
412
|
export declare const CPUInfoTel: MessageFns<CPUInfoTel>;
|
|
413
|
+
export declare const SystemPerformanceInfoTel: MessageFns<SystemPerformanceInfoTel>;
|
|
403
414
|
export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
|
|
404
415
|
export declare const LogEntryTel: MessageFns<LogEntryTel>;
|
|
405
416
|
export declare const ObjectDetectionsTel: MessageFns<ObjectDetectionsTel>;
|
package/dist/telemetry.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Imu2Tel = exports.Imu1Tel = exports.CalibratedImuTel = exports.GuestPortCurrentTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
|
|
9
|
-
exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
9
|
+
exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -3130,6 +3130,64 @@ exports.CPUInfoTel = {
|
|
|
3130
3130
|
return message;
|
|
3131
3131
|
},
|
|
3132
3132
|
};
|
|
3133
|
+
function createBaseSystemPerformanceInfoTel() {
|
|
3134
|
+
return { systemPerformanceInfo: undefined };
|
|
3135
|
+
}
|
|
3136
|
+
exports.SystemPerformanceInfoTel = {
|
|
3137
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3138
|
+
if (message.systemPerformanceInfo !== undefined) {
|
|
3139
|
+
message_formats_1.SystemPerformanceInfo.encode(message.systemPerformanceInfo, writer.uint32(10).fork()).join();
|
|
3140
|
+
}
|
|
3141
|
+
return writer;
|
|
3142
|
+
},
|
|
3143
|
+
decode(input, length) {
|
|
3144
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3145
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3146
|
+
const message = createBaseSystemPerformanceInfoTel();
|
|
3147
|
+
while (reader.pos < end) {
|
|
3148
|
+
const tag = reader.uint32();
|
|
3149
|
+
switch (tag >>> 3) {
|
|
3150
|
+
case 1: {
|
|
3151
|
+
if (tag !== 10) {
|
|
3152
|
+
break;
|
|
3153
|
+
}
|
|
3154
|
+
message.systemPerformanceInfo = message_formats_1.SystemPerformanceInfo.decode(reader, reader.uint32());
|
|
3155
|
+
continue;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3159
|
+
break;
|
|
3160
|
+
}
|
|
3161
|
+
reader.skip(tag & 7);
|
|
3162
|
+
}
|
|
3163
|
+
return message;
|
|
3164
|
+
},
|
|
3165
|
+
fromJSON(object) {
|
|
3166
|
+
return {
|
|
3167
|
+
systemPerformanceInfo: isSet(object.systemPerformanceInfo)
|
|
3168
|
+
? message_formats_1.SystemPerformanceInfo.fromJSON(object.systemPerformanceInfo)
|
|
3169
|
+
: undefined,
|
|
3170
|
+
};
|
|
3171
|
+
},
|
|
3172
|
+
toJSON(message) {
|
|
3173
|
+
const obj = {};
|
|
3174
|
+
if (message.systemPerformanceInfo !== undefined) {
|
|
3175
|
+
obj.systemPerformanceInfo = message_formats_1.SystemPerformanceInfo.toJSON(message.systemPerformanceInfo);
|
|
3176
|
+
}
|
|
3177
|
+
return obj;
|
|
3178
|
+
},
|
|
3179
|
+
create(base) {
|
|
3180
|
+
return exports.SystemPerformanceInfoTel.fromPartial(base ?? {});
|
|
3181
|
+
},
|
|
3182
|
+
fromPartial(object) {
|
|
3183
|
+
const message = createBaseSystemPerformanceInfoTel();
|
|
3184
|
+
message.systemPerformanceInfo =
|
|
3185
|
+
(object.systemPerformanceInfo !== undefined && object.systemPerformanceInfo !== null)
|
|
3186
|
+
? message_formats_1.SystemPerformanceInfo.fromPartial(object.systemPerformanceInfo)
|
|
3187
|
+
: undefined;
|
|
3188
|
+
return message;
|
|
3189
|
+
},
|
|
3190
|
+
};
|
|
3133
3191
|
function createBaseSurfaceUnitTel() {
|
|
3134
3192
|
return { batteryInfo: undefined, versionInfo: undefined };
|
|
3135
3193
|
}
|
|
@@ -3275,12 +3333,12 @@ exports.LogEntryTel = {
|
|
|
3275
3333
|
},
|
|
3276
3334
|
};
|
|
3277
3335
|
function createBaseObjectDetectionsTel() {
|
|
3278
|
-
return {
|
|
3336
|
+
return { modelDetections: [] };
|
|
3279
3337
|
}
|
|
3280
3338
|
exports.ObjectDetectionsTel = {
|
|
3281
3339
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3282
|
-
|
|
3283
|
-
message_formats_1.
|
|
3340
|
+
for (const v of message.modelDetections) {
|
|
3341
|
+
message_formats_1.ModelDetections.encode(v, writer.uint32(10).fork()).join();
|
|
3284
3342
|
}
|
|
3285
3343
|
return writer;
|
|
3286
3344
|
},
|
|
@@ -3295,7 +3353,7 @@ exports.ObjectDetectionsTel = {
|
|
|
3295
3353
|
if (tag !== 10) {
|
|
3296
3354
|
break;
|
|
3297
3355
|
}
|
|
3298
|
-
message.
|
|
3356
|
+
message.modelDetections.push(message_formats_1.ModelDetections.decode(reader, reader.uint32()));
|
|
3299
3357
|
continue;
|
|
3300
3358
|
}
|
|
3301
3359
|
}
|
|
@@ -3308,13 +3366,15 @@ exports.ObjectDetectionsTel = {
|
|
|
3308
3366
|
},
|
|
3309
3367
|
fromJSON(object) {
|
|
3310
3368
|
return {
|
|
3311
|
-
|
|
3369
|
+
modelDetections: gt.Array.isArray(object?.modelDetections)
|
|
3370
|
+
? object.modelDetections.map((e) => message_formats_1.ModelDetections.fromJSON(e))
|
|
3371
|
+
: [],
|
|
3312
3372
|
};
|
|
3313
3373
|
},
|
|
3314
3374
|
toJSON(message) {
|
|
3315
3375
|
const obj = {};
|
|
3316
|
-
if (message.
|
|
3317
|
-
obj.
|
|
3376
|
+
if (message.modelDetections?.length) {
|
|
3377
|
+
obj.modelDetections = message.modelDetections.map((e) => message_formats_1.ModelDetections.toJSON(e));
|
|
3318
3378
|
}
|
|
3319
3379
|
return obj;
|
|
3320
3380
|
},
|
|
@@ -3323,9 +3383,7 @@ exports.ObjectDetectionsTel = {
|
|
|
3323
3383
|
},
|
|
3324
3384
|
fromPartial(object) {
|
|
3325
3385
|
const message = createBaseObjectDetectionsTel();
|
|
3326
|
-
message.
|
|
3327
|
-
? message_formats_1.ObjectDetections.fromPartial(object.objectDetections)
|
|
3328
|
-
: undefined;
|
|
3386
|
+
message.modelDetections = object.modelDetections?.map((e) => message_formats_1.ModelDetections.fromPartial(e)) || [];
|
|
3329
3387
|
return message;
|
|
3330
3388
|
},
|
|
3331
3389
|
};
|