@blueyerobotics/protocol-definitions 3.2.0-3e0ba702 → 3.2.0-3e35b5c5

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.js CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: control.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- 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.ClearSotTargetCtrl = exports.SetSotTargetCtrl = exports.StopLogStreamingCtrl = exports.StartLogStreamingCtrl = exports.CameraPanTiltZoomCtrl = exports.SetColorCorrectionCtrl = 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
+ exports.AnnotationCtrl = void 0;
9
10
  /* eslint-disable */
10
11
  const wire_1 = require("@bufbuild/protobuf/wire");
11
12
  const aquatroll_1 = require("./aquatroll");
@@ -399,13 +400,16 @@ exports.WatchdogCtrl = {
399
400
  },
400
401
  };
401
402
  function createBaseRecordCtrl() {
402
- return { recordOn: undefined };
403
+ return { recordOn: undefined, storageLocation: 0 };
403
404
  }
404
405
  exports.RecordCtrl = {
405
406
  encode(message, writer = new wire_1.BinaryWriter()) {
406
407
  if (message.recordOn !== undefined) {
407
408
  message_formats_1.RecordOn.encode(message.recordOn, writer.uint32(10).fork()).join();
408
409
  }
410
+ if (message.storageLocation !== 0) {
411
+ writer.uint32(16).int32(message.storageLocation);
412
+ }
409
413
  return writer;
410
414
  },
411
415
  decode(input, length) {
@@ -422,6 +426,13 @@ exports.RecordCtrl = {
422
426
  message.recordOn = message_formats_1.RecordOn.decode(reader, reader.uint32());
423
427
  continue;
424
428
  }
429
+ case 2: {
430
+ if (tag !== 16) {
431
+ break;
432
+ }
433
+ message.storageLocation = reader.int32();
434
+ continue;
435
+ }
425
436
  }
426
437
  if ((tag & 7) === 4 || tag === 0) {
427
438
  break;
@@ -431,13 +442,19 @@ exports.RecordCtrl = {
431
442
  return message;
432
443
  },
433
444
  fromJSON(object) {
434
- return { recordOn: isSet(object.recordOn) ? message_formats_1.RecordOn.fromJSON(object.recordOn) : undefined };
445
+ return {
446
+ recordOn: isSet(object.recordOn) ? message_formats_1.RecordOn.fromJSON(object.recordOn) : undefined,
447
+ storageLocation: isSet(object.storageLocation) ? (0, message_formats_1.storageLocationFromJSON)(object.storageLocation) : 0,
448
+ };
435
449
  },
436
450
  toJSON(message) {
437
451
  const obj = {};
438
452
  if (message.recordOn !== undefined) {
439
453
  obj.recordOn = message_formats_1.RecordOn.toJSON(message.recordOn);
440
454
  }
455
+ if (message.storageLocation !== 0) {
456
+ obj.storageLocation = (0, message_formats_1.storageLocationToJSON)(message.storageLocation);
457
+ }
441
458
  return obj;
442
459
  },
443
460
  create(base) {
@@ -448,14 +465,18 @@ exports.RecordCtrl = {
448
465
  message.recordOn = (object.recordOn !== undefined && object.recordOn !== null)
449
466
  ? message_formats_1.RecordOn.fromPartial(object.recordOn)
450
467
  : undefined;
468
+ message.storageLocation = object.storageLocation ?? 0;
451
469
  return message;
452
470
  },
453
471
  };
454
472
  function createBaseTakePictureCtrl() {
455
- return {};
473
+ return { storageLocation: 0 };
456
474
  }
457
475
  exports.TakePictureCtrl = {
458
- encode(_, writer = new wire_1.BinaryWriter()) {
476
+ encode(message, writer = new wire_1.BinaryWriter()) {
477
+ if (message.storageLocation !== 0) {
478
+ writer.uint32(8).int32(message.storageLocation);
479
+ }
459
480
  return writer;
460
481
  },
461
482
  decode(input, length) {
@@ -465,6 +486,13 @@ exports.TakePictureCtrl = {
465
486
  while (reader.pos < end) {
466
487
  const tag = reader.uint32();
467
488
  switch (tag >>> 3) {
489
+ case 1: {
490
+ if (tag !== 8) {
491
+ break;
492
+ }
493
+ message.storageLocation = reader.int32();
494
+ continue;
495
+ }
468
496
  }
469
497
  if ((tag & 7) === 4 || tag === 0) {
470
498
  break;
@@ -473,18 +501,22 @@ exports.TakePictureCtrl = {
473
501
  }
474
502
  return message;
475
503
  },
476
- fromJSON(_) {
477
- return {};
504
+ fromJSON(object) {
505
+ return { storageLocation: isSet(object.storageLocation) ? (0, message_formats_1.storageLocationFromJSON)(object.storageLocation) : 0 };
478
506
  },
479
- toJSON(_) {
507
+ toJSON(message) {
480
508
  const obj = {};
509
+ if (message.storageLocation !== 0) {
510
+ obj.storageLocation = (0, message_formats_1.storageLocationToJSON)(message.storageLocation);
511
+ }
481
512
  return obj;
482
513
  },
483
514
  create(base) {
484
515
  return exports.TakePictureCtrl.fromPartial(base ?? {});
485
516
  },
486
- fromPartial(_) {
517
+ fromPartial(object) {
487
518
  const message = createBaseTakePictureCtrl();
519
+ message.storageLocation = object.storageLocation ?? 0;
488
520
  return message;
489
521
  },
490
522
  };
@@ -1968,10 +2000,13 @@ exports.DeactivateMultibeamCtrl = {
1968
2000
  },
1969
2001
  };
1970
2002
  function createBaseStartDiveCtrl() {
1971
- return {};
2003
+ return { operatorInfo: undefined };
1972
2004
  }
1973
2005
  exports.StartDiveCtrl = {
1974
- encode(_, writer = new wire_1.BinaryWriter()) {
2006
+ encode(message, writer = new wire_1.BinaryWriter()) {
2007
+ if (message.operatorInfo !== undefined) {
2008
+ message_formats_1.OperatorInfo.encode(message.operatorInfo, writer.uint32(10).fork()).join();
2009
+ }
1975
2010
  return writer;
1976
2011
  },
1977
2012
  decode(input, length) {
@@ -1981,6 +2016,13 @@ exports.StartDiveCtrl = {
1981
2016
  while (reader.pos < end) {
1982
2017
  const tag = reader.uint32();
1983
2018
  switch (tag >>> 3) {
2019
+ case 1: {
2020
+ if (tag !== 10) {
2021
+ break;
2022
+ }
2023
+ message.operatorInfo = message_formats_1.OperatorInfo.decode(reader, reader.uint32());
2024
+ continue;
2025
+ }
1984
2026
  }
1985
2027
  if ((tag & 7) === 4 || tag === 0) {
1986
2028
  break;
@@ -1989,18 +2031,24 @@ exports.StartDiveCtrl = {
1989
2031
  }
1990
2032
  return message;
1991
2033
  },
1992
- fromJSON(_) {
1993
- return {};
2034
+ fromJSON(object) {
2035
+ return { operatorInfo: isSet(object.operatorInfo) ? message_formats_1.OperatorInfo.fromJSON(object.operatorInfo) : undefined };
1994
2036
  },
1995
- toJSON(_) {
2037
+ toJSON(message) {
1996
2038
  const obj = {};
2039
+ if (message.operatorInfo !== undefined) {
2040
+ obj.operatorInfo = message_formats_1.OperatorInfo.toJSON(message.operatorInfo);
2041
+ }
1997
2042
  return obj;
1998
2043
  },
1999
2044
  create(base) {
2000
2045
  return exports.StartDiveCtrl.fromPartial(base ?? {});
2001
2046
  },
2002
- fromPartial(_) {
2047
+ fromPartial(object) {
2003
2048
  const message = createBaseStartDiveCtrl();
2049
+ message.operatorInfo = (object.operatorInfo !== undefined && object.operatorInfo !== null)
2050
+ ? message_formats_1.OperatorInfo.fromPartial(object.operatorInfo)
2051
+ : undefined;
2004
2052
  return message;
2005
2053
  },
2006
2054
  };
@@ -2041,6 +2089,462 @@ exports.EndDiveCtrl = {
2041
2089
  return message;
2042
2090
  },
2043
2091
  };
2092
+ function createBaseFormatRemovableStorageDeviceCtrl() {
2093
+ return {};
2094
+ }
2095
+ exports.FormatRemovableStorageDeviceCtrl = {
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 = createBaseFormatRemovableStorageDeviceCtrl();
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.FormatRemovableStorageDeviceCtrl.fromPartial(base ?? {});
2123
+ },
2124
+ fromPartial(_) {
2125
+ const message = createBaseFormatRemovableStorageDeviceCtrl();
2126
+ return message;
2127
+ },
2128
+ };
2129
+ function createBaseSetTurbidityFilterCtrl() {
2130
+ return { turbidityFilter: undefined };
2131
+ }
2132
+ exports.SetTurbidityFilterCtrl = {
2133
+ encode(message, writer = new wire_1.BinaryWriter()) {
2134
+ if (message.turbidityFilter !== undefined) {
2135
+ message_formats_1.FilterMessage.encode(message.turbidityFilter, writer.uint32(10).fork()).join();
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 = createBaseSetTurbidityFilterCtrl();
2143
+ while (reader.pos < end) {
2144
+ const tag = reader.uint32();
2145
+ switch (tag >>> 3) {
2146
+ case 1: {
2147
+ if (tag !== 10) {
2148
+ break;
2149
+ }
2150
+ message.turbidityFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
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 {
2163
+ turbidityFilter: isSet(object.turbidityFilter) ? message_formats_1.FilterMessage.fromJSON(object.turbidityFilter) : undefined,
2164
+ };
2165
+ },
2166
+ toJSON(message) {
2167
+ const obj = {};
2168
+ if (message.turbidityFilter !== undefined) {
2169
+ obj.turbidityFilter = message_formats_1.FilterMessage.toJSON(message.turbidityFilter);
2170
+ }
2171
+ return obj;
2172
+ },
2173
+ create(base) {
2174
+ return exports.SetTurbidityFilterCtrl.fromPartial(base ?? {});
2175
+ },
2176
+ fromPartial(object) {
2177
+ const message = createBaseSetTurbidityFilterCtrl();
2178
+ message.turbidityFilter = (object.turbidityFilter !== undefined && object.turbidityFilter !== null)
2179
+ ? message_formats_1.FilterMessage.fromPartial(object.turbidityFilter)
2180
+ : undefined;
2181
+ return message;
2182
+ },
2183
+ };
2184
+ function createBaseSetColorCorrectionCtrl() {
2185
+ return { colorCorrectionFilter: undefined };
2186
+ }
2187
+ exports.SetColorCorrectionCtrl = {
2188
+ encode(message, writer = new wire_1.BinaryWriter()) {
2189
+ if (message.colorCorrectionFilter !== undefined) {
2190
+ message_formats_1.FilterMessage.encode(message.colorCorrectionFilter, writer.uint32(10).fork()).join();
2191
+ }
2192
+ return writer;
2193
+ },
2194
+ decode(input, length) {
2195
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2196
+ const end = length === undefined ? reader.len : reader.pos + length;
2197
+ const message = createBaseSetColorCorrectionCtrl();
2198
+ while (reader.pos < end) {
2199
+ const tag = reader.uint32();
2200
+ switch (tag >>> 3) {
2201
+ case 1: {
2202
+ if (tag !== 10) {
2203
+ break;
2204
+ }
2205
+ message.colorCorrectionFilter = message_formats_1.FilterMessage.decode(reader, reader.uint32());
2206
+ continue;
2207
+ }
2208
+ }
2209
+ if ((tag & 7) === 4 || tag === 0) {
2210
+ break;
2211
+ }
2212
+ reader.skip(tag & 7);
2213
+ }
2214
+ return message;
2215
+ },
2216
+ fromJSON(object) {
2217
+ return {
2218
+ colorCorrectionFilter: isSet(object.colorCorrectionFilter)
2219
+ ? message_formats_1.FilterMessage.fromJSON(object.colorCorrectionFilter)
2220
+ : undefined,
2221
+ };
2222
+ },
2223
+ toJSON(message) {
2224
+ const obj = {};
2225
+ if (message.colorCorrectionFilter !== undefined) {
2226
+ obj.colorCorrectionFilter = message_formats_1.FilterMessage.toJSON(message.colorCorrectionFilter);
2227
+ }
2228
+ return obj;
2229
+ },
2230
+ create(base) {
2231
+ return exports.SetColorCorrectionCtrl.fromPartial(base ?? {});
2232
+ },
2233
+ fromPartial(object) {
2234
+ const message = createBaseSetColorCorrectionCtrl();
2235
+ message.colorCorrectionFilter =
2236
+ (object.colorCorrectionFilter !== undefined && object.colorCorrectionFilter !== null)
2237
+ ? message_formats_1.FilterMessage.fromPartial(object.colorCorrectionFilter)
2238
+ : undefined;
2239
+ return message;
2240
+ },
2241
+ };
2242
+ function createBaseCameraPanTiltZoomCtrl() {
2243
+ return { cameraPanTiltZoom: undefined };
2244
+ }
2245
+ exports.CameraPanTiltZoomCtrl = {
2246
+ encode(message, writer = new wire_1.BinaryWriter()) {
2247
+ if (message.cameraPanTiltZoom !== undefined) {
2248
+ message_formats_1.CameraPanTiltZoom.encode(message.cameraPanTiltZoom, writer.uint32(10).fork()).join();
2249
+ }
2250
+ return writer;
2251
+ },
2252
+ decode(input, length) {
2253
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2254
+ const end = length === undefined ? reader.len : reader.pos + length;
2255
+ const message = createBaseCameraPanTiltZoomCtrl();
2256
+ while (reader.pos < end) {
2257
+ const tag = reader.uint32();
2258
+ switch (tag >>> 3) {
2259
+ case 1: {
2260
+ if (tag !== 10) {
2261
+ break;
2262
+ }
2263
+ message.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.decode(reader, reader.uint32());
2264
+ continue;
2265
+ }
2266
+ }
2267
+ if ((tag & 7) === 4 || tag === 0) {
2268
+ break;
2269
+ }
2270
+ reader.skip(tag & 7);
2271
+ }
2272
+ return message;
2273
+ },
2274
+ fromJSON(object) {
2275
+ return {
2276
+ cameraPanTiltZoom: isSet(object.cameraPanTiltZoom)
2277
+ ? message_formats_1.CameraPanTiltZoom.fromJSON(object.cameraPanTiltZoom)
2278
+ : undefined,
2279
+ };
2280
+ },
2281
+ toJSON(message) {
2282
+ const obj = {};
2283
+ if (message.cameraPanTiltZoom !== undefined) {
2284
+ obj.cameraPanTiltZoom = message_formats_1.CameraPanTiltZoom.toJSON(message.cameraPanTiltZoom);
2285
+ }
2286
+ return obj;
2287
+ },
2288
+ create(base) {
2289
+ return exports.CameraPanTiltZoomCtrl.fromPartial(base ?? {});
2290
+ },
2291
+ fromPartial(object) {
2292
+ const message = createBaseCameraPanTiltZoomCtrl();
2293
+ message.cameraPanTiltZoom = (object.cameraPanTiltZoom !== undefined && object.cameraPanTiltZoom !== null)
2294
+ ? message_formats_1.CameraPanTiltZoom.fromPartial(object.cameraPanTiltZoom)
2295
+ : undefined;
2296
+ return message;
2297
+ },
2298
+ };
2299
+ function createBaseStartLogStreamingCtrl() {
2300
+ return {};
2301
+ }
2302
+ exports.StartLogStreamingCtrl = {
2303
+ encode(_, writer = new wire_1.BinaryWriter()) {
2304
+ return writer;
2305
+ },
2306
+ decode(input, length) {
2307
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2308
+ const end = length === undefined ? reader.len : reader.pos + length;
2309
+ const message = createBaseStartLogStreamingCtrl();
2310
+ while (reader.pos < end) {
2311
+ const tag = reader.uint32();
2312
+ switch (tag >>> 3) {
2313
+ }
2314
+ if ((tag & 7) === 4 || tag === 0) {
2315
+ break;
2316
+ }
2317
+ reader.skip(tag & 7);
2318
+ }
2319
+ return message;
2320
+ },
2321
+ fromJSON(_) {
2322
+ return {};
2323
+ },
2324
+ toJSON(_) {
2325
+ const obj = {};
2326
+ return obj;
2327
+ },
2328
+ create(base) {
2329
+ return exports.StartLogStreamingCtrl.fromPartial(base ?? {});
2330
+ },
2331
+ fromPartial(_) {
2332
+ const message = createBaseStartLogStreamingCtrl();
2333
+ return message;
2334
+ },
2335
+ };
2336
+ function createBaseStopLogStreamingCtrl() {
2337
+ return {};
2338
+ }
2339
+ exports.StopLogStreamingCtrl = {
2340
+ encode(_, writer = new wire_1.BinaryWriter()) {
2341
+ return writer;
2342
+ },
2343
+ decode(input, length) {
2344
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2345
+ const end = length === undefined ? reader.len : reader.pos + length;
2346
+ const message = createBaseStopLogStreamingCtrl();
2347
+ while (reader.pos < end) {
2348
+ const tag = reader.uint32();
2349
+ switch (tag >>> 3) {
2350
+ }
2351
+ if ((tag & 7) === 4 || tag === 0) {
2352
+ break;
2353
+ }
2354
+ reader.skip(tag & 7);
2355
+ }
2356
+ return message;
2357
+ },
2358
+ fromJSON(_) {
2359
+ return {};
2360
+ },
2361
+ toJSON(_) {
2362
+ const obj = {};
2363
+ return obj;
2364
+ },
2365
+ create(base) {
2366
+ return exports.StopLogStreamingCtrl.fromPartial(base ?? {});
2367
+ },
2368
+ fromPartial(_) {
2369
+ const message = createBaseStopLogStreamingCtrl();
2370
+ return message;
2371
+ },
2372
+ };
2373
+ function createBaseSetSotTargetCtrl() {
2374
+ return { boundingBox: undefined, imageWidth: 0, imageHeight: 0 };
2375
+ }
2376
+ exports.SetSotTargetCtrl = {
2377
+ encode(message, writer = new wire_1.BinaryWriter()) {
2378
+ if (message.boundingBox !== undefined) {
2379
+ message_formats_1.BoundingBox.encode(message.boundingBox, writer.uint32(10).fork()).join();
2380
+ }
2381
+ if (message.imageWidth !== 0) {
2382
+ writer.uint32(16).uint32(message.imageWidth);
2383
+ }
2384
+ if (message.imageHeight !== 0) {
2385
+ writer.uint32(24).uint32(message.imageHeight);
2386
+ }
2387
+ return writer;
2388
+ },
2389
+ decode(input, length) {
2390
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2391
+ const end = length === undefined ? reader.len : reader.pos + length;
2392
+ const message = createBaseSetSotTargetCtrl();
2393
+ while (reader.pos < end) {
2394
+ const tag = reader.uint32();
2395
+ switch (tag >>> 3) {
2396
+ case 1: {
2397
+ if (tag !== 10) {
2398
+ break;
2399
+ }
2400
+ message.boundingBox = message_formats_1.BoundingBox.decode(reader, reader.uint32());
2401
+ continue;
2402
+ }
2403
+ case 2: {
2404
+ if (tag !== 16) {
2405
+ break;
2406
+ }
2407
+ message.imageWidth = reader.uint32();
2408
+ continue;
2409
+ }
2410
+ case 3: {
2411
+ if (tag !== 24) {
2412
+ break;
2413
+ }
2414
+ message.imageHeight = reader.uint32();
2415
+ continue;
2416
+ }
2417
+ }
2418
+ if ((tag & 7) === 4 || tag === 0) {
2419
+ break;
2420
+ }
2421
+ reader.skip(tag & 7);
2422
+ }
2423
+ return message;
2424
+ },
2425
+ fromJSON(object) {
2426
+ return {
2427
+ boundingBox: isSet(object.boundingBox) ? message_formats_1.BoundingBox.fromJSON(object.boundingBox) : undefined,
2428
+ imageWidth: isSet(object.imageWidth) ? gt.Number(object.imageWidth) : 0,
2429
+ imageHeight: isSet(object.imageHeight) ? gt.Number(object.imageHeight) : 0,
2430
+ };
2431
+ },
2432
+ toJSON(message) {
2433
+ const obj = {};
2434
+ if (message.boundingBox !== undefined) {
2435
+ obj.boundingBox = message_formats_1.BoundingBox.toJSON(message.boundingBox);
2436
+ }
2437
+ if (message.imageWidth !== 0) {
2438
+ obj.imageWidth = Math.round(message.imageWidth);
2439
+ }
2440
+ if (message.imageHeight !== 0) {
2441
+ obj.imageHeight = Math.round(message.imageHeight);
2442
+ }
2443
+ return obj;
2444
+ },
2445
+ create(base) {
2446
+ return exports.SetSotTargetCtrl.fromPartial(base ?? {});
2447
+ },
2448
+ fromPartial(object) {
2449
+ const message = createBaseSetSotTargetCtrl();
2450
+ message.boundingBox = (object.boundingBox !== undefined && object.boundingBox !== null)
2451
+ ? message_formats_1.BoundingBox.fromPartial(object.boundingBox)
2452
+ : undefined;
2453
+ message.imageWidth = object.imageWidth ?? 0;
2454
+ message.imageHeight = object.imageHeight ?? 0;
2455
+ return message;
2456
+ },
2457
+ };
2458
+ function createBaseClearSotTargetCtrl() {
2459
+ return {};
2460
+ }
2461
+ exports.ClearSotTargetCtrl = {
2462
+ encode(_, writer = new wire_1.BinaryWriter()) {
2463
+ return writer;
2464
+ },
2465
+ decode(input, length) {
2466
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2467
+ const end = length === undefined ? reader.len : reader.pos + length;
2468
+ const message = createBaseClearSotTargetCtrl();
2469
+ while (reader.pos < end) {
2470
+ const tag = reader.uint32();
2471
+ switch (tag >>> 3) {
2472
+ }
2473
+ if ((tag & 7) === 4 || tag === 0) {
2474
+ break;
2475
+ }
2476
+ reader.skip(tag & 7);
2477
+ }
2478
+ return message;
2479
+ },
2480
+ fromJSON(_) {
2481
+ return {};
2482
+ },
2483
+ toJSON(_) {
2484
+ const obj = {};
2485
+ return obj;
2486
+ },
2487
+ create(base) {
2488
+ return exports.ClearSotTargetCtrl.fromPartial(base ?? {});
2489
+ },
2490
+ fromPartial(_) {
2491
+ const message = createBaseClearSotTargetCtrl();
2492
+ return message;
2493
+ },
2494
+ };
2495
+ function createBaseAnnotationCtrl() {
2496
+ return { annotation: undefined };
2497
+ }
2498
+ exports.AnnotationCtrl = {
2499
+ encode(message, writer = new wire_1.BinaryWriter()) {
2500
+ if (message.annotation !== undefined) {
2501
+ message_formats_1.Annotation.encode(message.annotation, writer.uint32(10).fork()).join();
2502
+ }
2503
+ return writer;
2504
+ },
2505
+ decode(input, length) {
2506
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2507
+ const end = length === undefined ? reader.len : reader.pos + length;
2508
+ const message = createBaseAnnotationCtrl();
2509
+ while (reader.pos < end) {
2510
+ const tag = reader.uint32();
2511
+ switch (tag >>> 3) {
2512
+ case 1: {
2513
+ if (tag !== 10) {
2514
+ break;
2515
+ }
2516
+ message.annotation = message_formats_1.Annotation.decode(reader, reader.uint32());
2517
+ continue;
2518
+ }
2519
+ }
2520
+ if ((tag & 7) === 4 || tag === 0) {
2521
+ break;
2522
+ }
2523
+ reader.skip(tag & 7);
2524
+ }
2525
+ return message;
2526
+ },
2527
+ fromJSON(object) {
2528
+ return { annotation: isSet(object.annotation) ? message_formats_1.Annotation.fromJSON(object.annotation) : undefined };
2529
+ },
2530
+ toJSON(message) {
2531
+ const obj = {};
2532
+ if (message.annotation !== undefined) {
2533
+ obj.annotation = message_formats_1.Annotation.toJSON(message.annotation);
2534
+ }
2535
+ return obj;
2536
+ },
2537
+ create(base) {
2538
+ return exports.AnnotationCtrl.fromPartial(base ?? {});
2539
+ },
2540
+ fromPartial(object) {
2541
+ const message = createBaseAnnotationCtrl();
2542
+ message.annotation = (object.annotation !== undefined && object.annotation !== null)
2543
+ ? message_formats_1.Annotation.fromPartial(object.annotation)
2544
+ : undefined;
2545
+ return message;
2546
+ },
2547
+ };
2044
2548
  const gt = (() => {
2045
2549
  if (typeof globalThis !== "undefined") {
2046
2550
  return globalThis;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/any.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/duration.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/timestamp.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;