@blueyerobotics/protocol-definitions 3.2.0-9c4aad9c → 3.2.0-9cd842f0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { SetAquaTrollConnectionStatus, SetAquaTrollParameterUnit } from "./aquatroll";
3
- import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, ConnectionDuration, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
3
+ import { Annotation, AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, BoundingBox, CameraPanTiltZoom, ConnectionDuration, FilterMessage, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, OperatorInfo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
4
4
  /**
5
5
  * Control
6
6
  *
@@ -200,6 +200,8 @@ export interface DeactivateMultibeamCtrl {
200
200
  * at which point the user entered the dive view.
201
201
  */
202
202
  export interface StartDiveCtrl {
203
+ /** Optional information about the operator who started the dive. */
204
+ operatorInfo: OperatorInfo | undefined;
203
205
  }
204
206
  /**
205
207
  * Message sent when the user hits the end dive button in the app.
@@ -219,6 +221,55 @@ export interface EndDiveCtrl {
219
221
  */
220
222
  export interface FormatRemovableStorageDeviceCtrl {
221
223
  }
224
+ /** Message sent when the user wants to set turbidity filter settings. */
225
+ export interface SetTurbidityFilterCtrl {
226
+ /** Message with the turbidity filter settings to set. */
227
+ turbidityFilter: FilterMessage | undefined;
228
+ }
229
+ /**
230
+ * Issue a command to set the digital pan, tilt, and zoom of the main camera.
231
+ *
232
+ * Only supported on X3 Ultra.
233
+ */
234
+ export interface CameraPanTiltZoomCtrl {
235
+ /** The desired pan, tilt, and zoom state. */
236
+ cameraPanTiltZoom: CameraPanTiltZoom | undefined;
237
+ }
238
+ /** Message sent to start streaming log entries to the client. */
239
+ export interface StartLogStreamingCtrl {
240
+ }
241
+ /** Message sent to stop streaming log entries to the client. */
242
+ export interface StopLogStreamingCtrl {
243
+ }
244
+ /**
245
+ * Issue a command to set the single-object tracking (SOT) target.
246
+ *
247
+ * Send a bounding box to start tracking a new target. The CV pipeline will
248
+ * initialize the SOT tracker on the specified region of the video frame.
249
+ */
250
+ export interface SetSotTargetCtrl {
251
+ /** Target bounding box. */
252
+ boundingBox: BoundingBox | undefined;
253
+ /** Width of the frame the bounding box was drawn on. */
254
+ imageWidth: number;
255
+ /** Height of the frame the bounding box was drawn on. */
256
+ imageHeight: number;
257
+ }
258
+ /** Issue a command to clear the single-object tracking (SOT) target (stop tracking). */
259
+ export interface ClearSotTargetCtrl {
260
+ }
261
+ /**
262
+ * Request to add an annotation to the current dive.
263
+ *
264
+ * Sent by the app when a diver picks a type from the in-dive command palette.
265
+ * The drone stamps the authoritative time, publishes the result as an
266
+ * AnnotationTel to every connected client, and writes it to the dive logfile, so
267
+ * all clients converge on the same set. Fire-and-forget, like LightsCtrl.
268
+ */
269
+ export interface AnnotationCtrl {
270
+ /** The annotation to record. The drone owns the timestamp, not this message. */
271
+ annotation: Annotation | undefined;
272
+ }
222
273
  export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
223
274
  export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
224
275
  export declare const LightsCtrl: MessageFns<LightsCtrl>;
@@ -262,6 +313,13 @@ export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl
262
313
  export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
263
314
  export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
264
315
  export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
316
+ export declare const SetTurbidityFilterCtrl: MessageFns<SetTurbidityFilterCtrl>;
317
+ export declare const CameraPanTiltZoomCtrl: MessageFns<CameraPanTiltZoomCtrl>;
318
+ export declare const StartLogStreamingCtrl: MessageFns<StartLogStreamingCtrl>;
319
+ export declare const StopLogStreamingCtrl: MessageFns<StopLogStreamingCtrl>;
320
+ export declare const SetSotTargetCtrl: MessageFns<SetSotTargetCtrl>;
321
+ export declare const ClearSotTargetCtrl: MessageFns<ClearSotTargetCtrl>;
322
+ export declare const AnnotationCtrl: MessageFns<AnnotationCtrl>;
265
323
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
266
324
  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 {} ? {
267
325
  [K in keyof T]?: DeepPartial<T[K]>;
package/dist/control.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v3.21.12
6
6
  // source: control.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.FormatRemovableStorageDeviceCtrl = exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
8
+ exports.AnnotationCtrl = exports.ClearSotTargetCtrl = exports.SetSotTargetCtrl = exports.StopLogStreamingCtrl = exports.StartLogStreamingCtrl = exports.CameraPanTiltZoomCtrl = exports.SetTurbidityFilterCtrl = exports.FormatRemovableStorageDeviceCtrl = exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const aquatroll_1 = require("./aquatroll");
@@ -1999,10 +1999,13 @@ exports.DeactivateMultibeamCtrl = {
1999
1999
  },
2000
2000
  };
2001
2001
  function createBaseStartDiveCtrl() {
2002
- return {};
2002
+ return { operatorInfo: undefined };
2003
2003
  }
2004
2004
  exports.StartDiveCtrl = {
2005
- encode(_, writer = new wire_1.BinaryWriter()) {
2005
+ encode(message, writer = new wire_1.BinaryWriter()) {
2006
+ if (message.operatorInfo !== undefined) {
2007
+ message_formats_1.OperatorInfo.encode(message.operatorInfo, writer.uint32(10).fork()).join();
2008
+ }
2006
2009
  return writer;
2007
2010
  },
2008
2011
  decode(input, length) {
@@ -2012,6 +2015,13 @@ exports.StartDiveCtrl = {
2012
2015
  while (reader.pos < end) {
2013
2016
  const tag = reader.uint32();
2014
2017
  switch (tag >>> 3) {
2018
+ case 1: {
2019
+ if (tag !== 10) {
2020
+ break;
2021
+ }
2022
+ message.operatorInfo = message_formats_1.OperatorInfo.decode(reader, reader.uint32());
2023
+ continue;
2024
+ }
2015
2025
  }
2016
2026
  if ((tag & 7) === 4 || tag === 0) {
2017
2027
  break;
@@ -2020,18 +2030,24 @@ exports.StartDiveCtrl = {
2020
2030
  }
2021
2031
  return message;
2022
2032
  },
2023
- fromJSON(_) {
2024
- return {};
2033
+ fromJSON(object) {
2034
+ return { operatorInfo: isSet(object.operatorInfo) ? message_formats_1.OperatorInfo.fromJSON(object.operatorInfo) : undefined };
2025
2035
  },
2026
- toJSON(_) {
2036
+ toJSON(message) {
2027
2037
  const obj = {};
2038
+ if (message.operatorInfo !== undefined) {
2039
+ obj.operatorInfo = message_formats_1.OperatorInfo.toJSON(message.operatorInfo);
2040
+ }
2028
2041
  return obj;
2029
2042
  },
2030
2043
  create(base) {
2031
2044
  return exports.StartDiveCtrl.fromPartial(base ?? {});
2032
2045
  },
2033
- fromPartial(_) {
2046
+ fromPartial(object) {
2034
2047
  const message = createBaseStartDiveCtrl();
2048
+ message.operatorInfo = (object.operatorInfo !== undefined && object.operatorInfo !== null)
2049
+ ? message_formats_1.OperatorInfo.fromPartial(object.operatorInfo)
2050
+ : undefined;
2035
2051
  return message;
2036
2052
  },
2037
2053
  };
@@ -2109,6 +2125,367 @@ exports.FormatRemovableStorageDeviceCtrl = {
2109
2125
  return message;
2110
2126
  },
2111
2127
  };
2128
+ function createBaseSetTurbidityFilterCtrl() {
2129
+ return { turbidityFilter: undefined };
2130
+ }
2131
+ exports.SetTurbidityFilterCtrl = {
2132
+ encode(message, writer = new wire_1.BinaryWriter()) {
2133
+ if (message.turbidityFilter !== undefined) {
2134
+ message_formats_1.FilterMessage.encode(message.turbidityFilter, writer.uint32(10).fork()).join();
2135
+ }
2136
+ return writer;
2137
+ },
2138
+ decode(input, length) {
2139
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2140
+ const end = length === undefined ? reader.len : reader.pos + length;
2141
+ const message = createBaseSetTurbidityFilterCtrl();
2142
+ while (reader.pos < end) {
2143
+ const tag = reader.uint32();
2144
+ switch (tag >>> 3) {
2145
+ case 1: {
2146
+ if (tag !== 10) {
2147
+ break;
2148
+ }
2149
+ message.turbidityFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
2150
+ continue;
2151
+ }
2152
+ }
2153
+ if ((tag & 7) === 4 || tag === 0) {
2154
+ break;
2155
+ }
2156
+ reader.skip(tag & 7);
2157
+ }
2158
+ return message;
2159
+ },
2160
+ fromJSON(object) {
2161
+ return {
2162
+ turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.FilterMessage.fromJSON(object.turbidityFilter) : undefined,
2163
+ };
2164
+ },
2165
+ toJSON(message) {
2166
+ const obj = {};
2167
+ if (message.turbidityFilter !== undefined) {
2168
+ obj.turbidityFilter = message_formats_1.FilterMessage.toJSON(message.turbidityFilter);
2169
+ }
2170
+ return obj;
2171
+ },
2172
+ create(base) {
2173
+ return exports.SetTurbidityFilterCtrl.fromPartial(base ?? {});
2174
+ },
2175
+ fromPartial(object) {
2176
+ const message = createBaseSetTurbidityFilterCtrl();
2177
+ message.turbidityFilter = (object.turbidityFilter !== undefined && object.turbidityFilter !== null)
2178
+ ? message_formats_1.FilterMessage.fromPartial(object.turbidityFilter)
2179
+ : undefined;
2180
+ return message;
2181
+ },
2182
+ };
2183
+ function createBaseCameraPanTiltZoomCtrl() {
2184
+ return { cameraPanTiltZoom: undefined };
2185
+ }
2186
+ exports.CameraPanTiltZoomCtrl = {
2187
+ encode(message, writer = new wire_1.BinaryWriter()) {
2188
+ if (message.cameraPanTiltZoom !== undefined) {
2189
+ message_formats_1.CameraPanTiltZoom.encode(message.cameraPanTiltZoom, writer.uint32(10).fork()).join();
2190
+ }
2191
+ return writer;
2192
+ },
2193
+ decode(input, length) {
2194
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2195
+ const end = length === undefined ? reader.len : reader.pos + length;
2196
+ const message = createBaseCameraPanTiltZoomCtrl();
2197
+ while (reader.pos < end) {
2198
+ const tag = reader.uint32();
2199
+ switch (tag >>> 3) {
2200
+ case 1: {
2201
+ if (tag !== 10) {
2202
+ break;
2203
+ }
2204
+ message.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.decode(reader, reader.uint32());
2205
+ continue;
2206
+ }
2207
+ }
2208
+ if ((tag & 7) === 4 || tag === 0) {
2209
+ break;
2210
+ }
2211
+ reader.skip(tag & 7);
2212
+ }
2213
+ return message;
2214
+ },
2215
+ fromJSON(object) {
2216
+ return {
2217
+ cameraPanTiltZoom: isSet(object.cameraPanTiltZoom)
2218
+ ? message_formats_1.CameraPanTiltZoom.fromJSON(object.cameraPanTiltZoom)
2219
+ : undefined,
2220
+ };
2221
+ },
2222
+ toJSON(message) {
2223
+ const obj = {};
2224
+ if (message.cameraPanTiltZoom !== undefined) {
2225
+ obj.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.toJSON(message.cameraPanTiltZoom);
2226
+ }
2227
+ return obj;
2228
+ },
2229
+ create(base) {
2230
+ return exports.CameraPanTiltZoomCtrl.fromPartial(base ?? {});
2231
+ },
2232
+ fromPartial(object) {
2233
+ const message = createBaseCameraPanTiltZoomCtrl();
2234
+ message.cameraPanTiltZoom = (object.cameraPanTiltZoom !== undefined && object.cameraPanTiltZoom !== null)
2235
+ ? message_formats_1.CameraPanTiltZoom.fromPartial(object.cameraPanTiltZoom)
2236
+ : undefined;
2237
+ return message;
2238
+ },
2239
+ };
2240
+ function createBaseStartLogStreamingCtrl() {
2241
+ return {};
2242
+ }
2243
+ exports.StartLogStreamingCtrl = {
2244
+ encode(_, writer = new wire_1.BinaryWriter()) {
2245
+ return writer;
2246
+ },
2247
+ decode(input, length) {
2248
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2249
+ const end = length === undefined ? reader.len : reader.pos + length;
2250
+ const message = createBaseStartLogStreamingCtrl();
2251
+ while (reader.pos < end) {
2252
+ const tag = reader.uint32();
2253
+ switch (tag >>> 3) {
2254
+ }
2255
+ if ((tag & 7) === 4 || tag === 0) {
2256
+ break;
2257
+ }
2258
+ reader.skip(tag & 7);
2259
+ }
2260
+ return message;
2261
+ },
2262
+ fromJSON(_) {
2263
+ return {};
2264
+ },
2265
+ toJSON(_) {
2266
+ const obj = {};
2267
+ return obj;
2268
+ },
2269
+ create(base) {
2270
+ return exports.StartLogStreamingCtrl.fromPartial(base ?? {});
2271
+ },
2272
+ fromPartial(_) {
2273
+ const message = createBaseStartLogStreamingCtrl();
2274
+ return message;
2275
+ },
2276
+ };
2277
+ function createBaseStopLogStreamingCtrl() {
2278
+ return {};
2279
+ }
2280
+ exports.StopLogStreamingCtrl = {
2281
+ encode(_, writer = new wire_1.BinaryWriter()) {
2282
+ return writer;
2283
+ },
2284
+ decode(input, length) {
2285
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2286
+ const end = length === undefined ? reader.len : reader.pos + length;
2287
+ const message = createBaseStopLogStreamingCtrl();
2288
+ while (reader.pos < end) {
2289
+ const tag = reader.uint32();
2290
+ switch (tag >>> 3) {
2291
+ }
2292
+ if ((tag & 7) === 4 || tag === 0) {
2293
+ break;
2294
+ }
2295
+ reader.skip(tag & 7);
2296
+ }
2297
+ return message;
2298
+ },
2299
+ fromJSON(_) {
2300
+ return {};
2301
+ },
2302
+ toJSON(_) {
2303
+ const obj = {};
2304
+ return obj;
2305
+ },
2306
+ create(base) {
2307
+ return exports.StopLogStreamingCtrl.fromPartial(base ?? {});
2308
+ },
2309
+ fromPartial(_) {
2310
+ const message = createBaseStopLogStreamingCtrl();
2311
+ return message;
2312
+ },
2313
+ };
2314
+ function createBaseSetSotTargetCtrl() {
2315
+ return { boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
2316
+ }
2317
+ exports.SetSotTargetCtrl = {
2318
+ encode(message, writer = new wire_1.BinaryWriter()) {
2319
+ if (message.boundingBox !== undefined) {
2320
+ message_formats_1.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
2321
+ }
2322
+ if (message.imageWidth !== 0) {
2323
+ writer.uint32(16).uint32(message.imageWidth);
2324
+ }
2325
+ if (message.imageHeight !== 0) {
2326
+ writer.uint32(24).uint32(message.imageHeight);
2327
+ }
2328
+ return writer;
2329
+ },
2330
+ decode(input, length) {
2331
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2332
+ const end = length === undefined ? reader.len : reader.pos + length;
2333
+ const message = createBaseSetSotTargetCtrl();
2334
+ while (reader.pos < end) {
2335
+ const tag = reader.uint32();
2336
+ switch (tag >>> 3) {
2337
+ case 1: {
2338
+ if (tag !== 10) {
2339
+ break;
2340
+ }
2341
+ message.boundingBox = message_formats_1.BoundingBox.decode(reader, reader.uint32());
2342
+ continue;
2343
+ }
2344
+ case 2: {
2345
+ if (tag !== 16) {
2346
+ break;
2347
+ }
2348
+ message.imageWidth = reader.uint32();
2349
+ continue;
2350
+ }
2351
+ case 3: {
2352
+ if (tag !== 24) {
2353
+ break;
2354
+ }
2355
+ message.imageHeight = reader.uint32();
2356
+ continue;
2357
+ }
2358
+ }
2359
+ if ((tag & 7) === 4 || tag === 0) {
2360
+ break;
2361
+ }
2362
+ reader.skip(tag & 7);
2363
+ }
2364
+ return message;
2365
+ },
2366
+ fromJSON(object) {
2367
+ return {
2368
+ boundingBox: isSet(object.boundingBox) ? message_formats_1.BoundingBox.fromJSON(object.boundingBox) : undefined,
2369
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
2370
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
2371
+ };
2372
+ },
2373
+ toJSON(message) {
2374
+ const obj = {};
2375
+ if (message.boundingBox !== undefined) {
2376
+ obj.boundingBox = message_formats_1.BoundingBox.toJSON(message.boundingBox);
2377
+ }
2378
+ if (message.imageWidth !== 0) {
2379
+ obj.imageWidth = Math.round(message.imageWidth);
2380
+ }
2381
+ if (message.imageHeight !== 0) {
2382
+ obj.imageHeight = Math.round(message.imageHeight);
2383
+ }
2384
+ return obj;
2385
+ },
2386
+ create(base) {
2387
+ return exports.SetSotTargetCtrl.fromPartial(base ?? {});
2388
+ },
2389
+ fromPartial(object) {
2390
+ const message = createBaseSetSotTargetCtrl();
2391
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
2392
+ ? message_formats_1.BoundingBox.fromPartial(object.boundingBox)
2393
+ : undefined;
2394
+ message.imageWidth = object.imageWidth ?? 0;
2395
+ message.imageHeight = object.imageHeight ?? 0;
2396
+ return message;
2397
+ },
2398
+ };
2399
+ function createBaseClearSotTargetCtrl() {
2400
+ return {};
2401
+ }
2402
+ exports.ClearSotTargetCtrl = {
2403
+ encode(_, writer = new wire_1.BinaryWriter()) {
2404
+ return writer;
2405
+ },
2406
+ decode(input, length) {
2407
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2408
+ const end = length === undefined ? reader.len : reader.pos + length;
2409
+ const message = createBaseClearSotTargetCtrl();
2410
+ while (reader.pos < end) {
2411
+ const tag = reader.uint32();
2412
+ switch (tag >>> 3) {
2413
+ }
2414
+ if ((tag & 7) === 4 || tag === 0) {
2415
+ break;
2416
+ }
2417
+ reader.skip(tag & 7);
2418
+ }
2419
+ return message;
2420
+ },
2421
+ fromJSON(_) {
2422
+ return {};
2423
+ },
2424
+ toJSON(_) {
2425
+ const obj = {};
2426
+ return obj;
2427
+ },
2428
+ create(base) {
2429
+ return exports.ClearSotTargetCtrl.fromPartial(base ?? {});
2430
+ },
2431
+ fromPartial(_) {
2432
+ const message = createBaseClearSotTargetCtrl();
2433
+ return message;
2434
+ },
2435
+ };
2436
+ function createBaseAnnotationCtrl() {
2437
+ return { annotation: undefined };
2438
+ }
2439
+ exports.AnnotationCtrl = {
2440
+ encode(message, writer = new wire_1.BinaryWriter()) {
2441
+ if (message.annotation !== undefined) {
2442
+ message_formats_1.Annotation.encode(message.annotation, writer.uint32(10).fork()).join();
2443
+ }
2444
+ return writer;
2445
+ },
2446
+ decode(input, length) {
2447
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2448
+ const end = length === undefined ? reader.len : reader.pos + length;
2449
+ const message = createBaseAnnotationCtrl();
2450
+ while (reader.pos < end) {
2451
+ const tag = reader.uint32();
2452
+ switch (tag >>> 3) {
2453
+ case 1: {
2454
+ if (tag !== 10) {
2455
+ break;
2456
+ }
2457
+ message.annotation = message_formats_1.Annotation.decode(reader, reader.uint32());
2458
+ continue;
2459
+ }
2460
+ }
2461
+ if ((tag & 7) === 4 || tag === 0) {
2462
+ break;
2463
+ }
2464
+ reader.skip(tag & 7);
2465
+ }
2466
+ return message;
2467
+ },
2468
+ fromJSON(object) {
2469
+ return { annotation: isSet(object.annotation) ? message_formats_1.Annotation.fromJSON(object.annotation) : undefined };
2470
+ },
2471
+ toJSON(message) {
2472
+ const obj = {};
2473
+ if (message.annotation !== undefined) {
2474
+ obj.annotation = message_formats_1.Annotation.toJSON(message.annotation);
2475
+ }
2476
+ return obj;
2477
+ },
2478
+ create(base) {
2479
+ return exports.AnnotationCtrl.fromPartial(base ?? {});
2480
+ },
2481
+ fromPartial(object) {
2482
+ const message = createBaseAnnotationCtrl();
2483
+ message.annotation = (object.annotation !== undefined && object.annotation !== null)
2484
+ ? message_formats_1.Annotation.fromPartial(object.annotation)
2485
+ : undefined;
2486
+ return message;
2487
+ },
2488
+ };
2112
2489
  const gt = (() => {
2113
2490
  if (typeof globalThis !== "undefined") {
2114
2491
  return globalThis;