@blueyerobotics/protocol-definitions 3.2.0-2de0da47 → 3.2.0-2e3e3a62
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 +43 -1
- package/dist/control.js +272 -7
- package/dist/message_formats.d.ts +555 -12
- package/dist/message_formats.js +3755 -216
- package/dist/req_rep.d.ts +24 -0
- package/dist/req_rep.js +208 -1
- package/dist/telemetry.d.ts +58 -6
- package/dist/telemetry.js +238 -17
- package/package.json +1 -1
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.AnnotationTel = exports.SotStateTel = 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");
|
|
@@ -820,13 +820,16 @@ exports.GuestPortLightsTel = {
|
|
|
820
820
|
},
|
|
821
821
|
};
|
|
822
822
|
function createBaseLaserTel() {
|
|
823
|
-
return { laser: undefined };
|
|
823
|
+
return { laser: undefined, laserDetection: undefined };
|
|
824
824
|
}
|
|
825
825
|
exports.LaserTel = {
|
|
826
826
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
827
827
|
if (message.laser !== undefined) {
|
|
828
828
|
message_formats_1.Laser.encode(message.laser, writer.uint32(10).fork()).join();
|
|
829
829
|
}
|
|
830
|
+
if (message.laserDetection !== undefined) {
|
|
831
|
+
message_formats_1.LaserDetection.encode(message.laserDetection, writer.uint32(18).fork()).join();
|
|
832
|
+
}
|
|
830
833
|
return writer;
|
|
831
834
|
},
|
|
832
835
|
decode(input, length) {
|
|
@@ -843,6 +846,13 @@ exports.LaserTel = {
|
|
|
843
846
|
message.laser = message_formats_1.Laser.decode(reader, reader.uint32());
|
|
844
847
|
continue;
|
|
845
848
|
}
|
|
849
|
+
case 2: {
|
|
850
|
+
if (tag !== 18) {
|
|
851
|
+
break;
|
|
852
|
+
}
|
|
853
|
+
message.laserDetection = message_formats_1.LaserDetection.decode(reader, reader.uint32());
|
|
854
|
+
continue;
|
|
855
|
+
}
|
|
846
856
|
}
|
|
847
857
|
if ((tag & 7) === 4 || tag === 0) {
|
|
848
858
|
break;
|
|
@@ -852,13 +862,19 @@ exports.LaserTel = {
|
|
|
852
862
|
return message;
|
|
853
863
|
},
|
|
854
864
|
fromJSON(object) {
|
|
855
|
-
return {
|
|
865
|
+
return {
|
|
866
|
+
laser: isSet(object.laser) ? message_formats_1.Laser.fromJSON(object.laser) : undefined,
|
|
867
|
+
laserDetection: isSet(object.laserDetection) ? message_formats_1.LaserDetection.fromJSON(object.laserDetection) : undefined,
|
|
868
|
+
};
|
|
856
869
|
},
|
|
857
870
|
toJSON(message) {
|
|
858
871
|
const obj = {};
|
|
859
872
|
if (message.laser !== undefined) {
|
|
860
873
|
obj.laser = message_formats_1.Laser.toJSON(message.laser);
|
|
861
874
|
}
|
|
875
|
+
if (message.laserDetection !== undefined) {
|
|
876
|
+
obj.laserDetection = message_formats_1.LaserDetection.toJSON(message.laserDetection);
|
|
877
|
+
}
|
|
862
878
|
return obj;
|
|
863
879
|
},
|
|
864
880
|
create(base) {
|
|
@@ -867,6 +883,9 @@ exports.LaserTel = {
|
|
|
867
883
|
fromPartial(object) {
|
|
868
884
|
const message = createBaseLaserTel();
|
|
869
885
|
message.laser = (object.laser !== undefined && object.laser !== null) ? message_formats_1.Laser.fromPartial(object.laser) : undefined;
|
|
886
|
+
message.laserDetection = (object.laserDetection !== undefined && object.laserDetection !== null)
|
|
887
|
+
? message_formats_1.LaserDetection.fromPartial(object.laserDetection)
|
|
888
|
+
: undefined;
|
|
870
889
|
return message;
|
|
871
890
|
},
|
|
872
891
|
};
|
|
@@ -1032,13 +1051,16 @@ exports.TimeLapseStateTel = {
|
|
|
1032
1051
|
},
|
|
1033
1052
|
};
|
|
1034
1053
|
function createBaseBatteryTel() {
|
|
1035
|
-
return { battery: undefined };
|
|
1054
|
+
return { battery: undefined, secondBattery: undefined };
|
|
1036
1055
|
}
|
|
1037
1056
|
exports.BatteryTel = {
|
|
1038
1057
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1039
1058
|
if (message.battery !== undefined) {
|
|
1040
1059
|
message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
|
|
1041
1060
|
}
|
|
1061
|
+
if (message.secondBattery !== undefined) {
|
|
1062
|
+
message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
|
|
1063
|
+
}
|
|
1042
1064
|
return writer;
|
|
1043
1065
|
},
|
|
1044
1066
|
decode(input, length) {
|
|
@@ -1055,6 +1077,13 @@ exports.BatteryTel = {
|
|
|
1055
1077
|
message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
1056
1078
|
continue;
|
|
1057
1079
|
}
|
|
1080
|
+
case 2: {
|
|
1081
|
+
if (tag !== 18) {
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
1085
|
+
continue;
|
|
1086
|
+
}
|
|
1058
1087
|
}
|
|
1059
1088
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1060
1089
|
break;
|
|
@@ -1064,13 +1093,19 @@ exports.BatteryTel = {
|
|
|
1064
1093
|
return message;
|
|
1065
1094
|
},
|
|
1066
1095
|
fromJSON(object) {
|
|
1067
|
-
return {
|
|
1096
|
+
return {
|
|
1097
|
+
battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
|
|
1098
|
+
secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
|
|
1099
|
+
};
|
|
1068
1100
|
},
|
|
1069
1101
|
toJSON(message) {
|
|
1070
1102
|
const obj = {};
|
|
1071
1103
|
if (message.battery !== undefined) {
|
|
1072
1104
|
obj.battery = message_formats_1.Battery.toJSON(message.battery);
|
|
1073
1105
|
}
|
|
1106
|
+
if (message.secondBattery !== undefined) {
|
|
1107
|
+
obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
|
|
1108
|
+
}
|
|
1074
1109
|
return obj;
|
|
1075
1110
|
},
|
|
1076
1111
|
create(base) {
|
|
@@ -1081,17 +1116,23 @@ exports.BatteryTel = {
|
|
|
1081
1116
|
message.battery = (object.battery !== undefined && object.battery !== null)
|
|
1082
1117
|
? message_formats_1.Battery.fromPartial(object.battery)
|
|
1083
1118
|
: undefined;
|
|
1119
|
+
message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
|
|
1120
|
+
? message_formats_1.Battery.fromPartial(object.secondBattery)
|
|
1121
|
+
: undefined;
|
|
1084
1122
|
return message;
|
|
1085
1123
|
},
|
|
1086
1124
|
};
|
|
1087
1125
|
function createBaseBatteryBQ40Z50Tel() {
|
|
1088
|
-
return { battery: undefined };
|
|
1126
|
+
return { battery: undefined, secondBattery: undefined };
|
|
1089
1127
|
}
|
|
1090
1128
|
exports.BatteryBQ40Z50Tel = {
|
|
1091
1129
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1092
1130
|
if (message.battery !== undefined) {
|
|
1093
1131
|
message_formats_1.BatteryBQ40Z50.encode(message.battery, writer.uint32(10).fork()).join();
|
|
1094
1132
|
}
|
|
1133
|
+
if (message.secondBattery !== undefined) {
|
|
1134
|
+
message_formats_1.BatteryBQ40Z50.encode(message.secondBattery, writer.uint32(18).fork()).join();
|
|
1135
|
+
}
|
|
1095
1136
|
return writer;
|
|
1096
1137
|
},
|
|
1097
1138
|
decode(input, length) {
|
|
@@ -1108,6 +1149,13 @@ exports.BatteryBQ40Z50Tel = {
|
|
|
1108
1149
|
message.battery = message_formats_1.BatteryBQ40Z50.decode(reader, reader.uint32());
|
|
1109
1150
|
continue;
|
|
1110
1151
|
}
|
|
1152
|
+
case 2: {
|
|
1153
|
+
if (tag !== 18) {
|
|
1154
|
+
break;
|
|
1155
|
+
}
|
|
1156
|
+
message.secondBattery = message_formats_1.BatteryBQ40Z50.decode(reader, reader.uint32());
|
|
1157
|
+
continue;
|
|
1158
|
+
}
|
|
1111
1159
|
}
|
|
1112
1160
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1113
1161
|
break;
|
|
@@ -1117,13 +1165,19 @@ exports.BatteryBQ40Z50Tel = {
|
|
|
1117
1165
|
return message;
|
|
1118
1166
|
},
|
|
1119
1167
|
fromJSON(object) {
|
|
1120
|
-
return {
|
|
1168
|
+
return {
|
|
1169
|
+
battery: isSet(object.battery) ? message_formats_1.BatteryBQ40Z50.fromJSON(object.battery) : undefined,
|
|
1170
|
+
secondBattery: isSet(object.secondBattery) ? message_formats_1.BatteryBQ40Z50.fromJSON(object.secondBattery) : undefined,
|
|
1171
|
+
};
|
|
1121
1172
|
},
|
|
1122
1173
|
toJSON(message) {
|
|
1123
1174
|
const obj = {};
|
|
1124
1175
|
if (message.battery !== undefined) {
|
|
1125
1176
|
obj.battery = message_formats_1.BatteryBQ40Z50.toJSON(message.battery);
|
|
1126
1177
|
}
|
|
1178
|
+
if (message.secondBattery !== undefined) {
|
|
1179
|
+
obj.secondBattery = message_formats_1.BatteryBQ40Z50.toJSON(message.secondBattery);
|
|
1180
|
+
}
|
|
1127
1181
|
return obj;
|
|
1128
1182
|
},
|
|
1129
1183
|
create(base) {
|
|
@@ -1134,6 +1188,9 @@ exports.BatteryBQ40Z50Tel = {
|
|
|
1134
1188
|
message.battery = (object.battery !== undefined && object.battery !== null)
|
|
1135
1189
|
? message_formats_1.BatteryBQ40Z50.fromPartial(object.battery)
|
|
1136
1190
|
: undefined;
|
|
1191
|
+
message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
|
|
1192
|
+
? message_formats_1.BatteryBQ40Z50.fromPartial(object.secondBattery)
|
|
1193
|
+
: undefined;
|
|
1137
1194
|
return message;
|
|
1138
1195
|
},
|
|
1139
1196
|
};
|
|
@@ -3130,6 +3187,64 @@ exports.CPUInfoTel = {
|
|
|
3130
3187
|
return message;
|
|
3131
3188
|
},
|
|
3132
3189
|
};
|
|
3190
|
+
function createBaseSystemPerformanceInfoTel() {
|
|
3191
|
+
return { systemPerformanceInfo: undefined };
|
|
3192
|
+
}
|
|
3193
|
+
exports.SystemPerformanceInfoTel = {
|
|
3194
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3195
|
+
if (message.systemPerformanceInfo !== undefined) {
|
|
3196
|
+
message_formats_1.SystemPerformanceInfo.encode(message.systemPerformanceInfo, writer.uint32(10).fork()).join();
|
|
3197
|
+
}
|
|
3198
|
+
return writer;
|
|
3199
|
+
},
|
|
3200
|
+
decode(input, length) {
|
|
3201
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3202
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3203
|
+
const message = createBaseSystemPerformanceInfoTel();
|
|
3204
|
+
while (reader.pos < end) {
|
|
3205
|
+
const tag = reader.uint32();
|
|
3206
|
+
switch (tag >>> 3) {
|
|
3207
|
+
case 1: {
|
|
3208
|
+
if (tag !== 10) {
|
|
3209
|
+
break;
|
|
3210
|
+
}
|
|
3211
|
+
message.systemPerformanceInfo = message_formats_1.SystemPerformanceInfo.decode(reader, reader.uint32());
|
|
3212
|
+
continue;
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3216
|
+
break;
|
|
3217
|
+
}
|
|
3218
|
+
reader.skip(tag & 7);
|
|
3219
|
+
}
|
|
3220
|
+
return message;
|
|
3221
|
+
},
|
|
3222
|
+
fromJSON(object) {
|
|
3223
|
+
return {
|
|
3224
|
+
systemPerformanceInfo: isSet(object.systemPerformanceInfo)
|
|
3225
|
+
? message_formats_1.SystemPerformanceInfo.fromJSON(object.systemPerformanceInfo)
|
|
3226
|
+
: undefined,
|
|
3227
|
+
};
|
|
3228
|
+
},
|
|
3229
|
+
toJSON(message) {
|
|
3230
|
+
const obj = {};
|
|
3231
|
+
if (message.systemPerformanceInfo !== undefined) {
|
|
3232
|
+
obj.systemPerformanceInfo = message_formats_1.SystemPerformanceInfo.toJSON(message.systemPerformanceInfo);
|
|
3233
|
+
}
|
|
3234
|
+
return obj;
|
|
3235
|
+
},
|
|
3236
|
+
create(base) {
|
|
3237
|
+
return exports.SystemPerformanceInfoTel.fromPartial(base ?? {});
|
|
3238
|
+
},
|
|
3239
|
+
fromPartial(object) {
|
|
3240
|
+
const message = createBaseSystemPerformanceInfoTel();
|
|
3241
|
+
message.systemPerformanceInfo =
|
|
3242
|
+
(object.systemPerformanceInfo !== undefined && object.systemPerformanceInfo !== null)
|
|
3243
|
+
? message_formats_1.SystemPerformanceInfo.fromPartial(object.systemPerformanceInfo)
|
|
3244
|
+
: undefined;
|
|
3245
|
+
return message;
|
|
3246
|
+
},
|
|
3247
|
+
};
|
|
3133
3248
|
function createBaseSurfaceUnitTel() {
|
|
3134
3249
|
return { batteryInfo: undefined, versionInfo: undefined };
|
|
3135
3250
|
}
|
|
@@ -3275,12 +3390,12 @@ exports.LogEntryTel = {
|
|
|
3275
3390
|
},
|
|
3276
3391
|
};
|
|
3277
3392
|
function createBaseObjectDetectionsTel() {
|
|
3278
|
-
return {
|
|
3393
|
+
return { modelDetections: [] };
|
|
3279
3394
|
}
|
|
3280
3395
|
exports.ObjectDetectionsTel = {
|
|
3281
3396
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3282
|
-
|
|
3283
|
-
message_formats_1.
|
|
3397
|
+
for (const v of message.modelDetections) {
|
|
3398
|
+
message_formats_1.ModelDetections.encode(v, writer.uint32(10).fork()).join();
|
|
3284
3399
|
}
|
|
3285
3400
|
return writer;
|
|
3286
3401
|
},
|
|
@@ -3295,7 +3410,7 @@ exports.ObjectDetectionsTel = {
|
|
|
3295
3410
|
if (tag !== 10) {
|
|
3296
3411
|
break;
|
|
3297
3412
|
}
|
|
3298
|
-
message.
|
|
3413
|
+
message.modelDetections.push(message_formats_1.ModelDetections.decode(reader, reader.uint32()));
|
|
3299
3414
|
continue;
|
|
3300
3415
|
}
|
|
3301
3416
|
}
|
|
@@ -3308,13 +3423,15 @@ exports.ObjectDetectionsTel = {
|
|
|
3308
3423
|
},
|
|
3309
3424
|
fromJSON(object) {
|
|
3310
3425
|
return {
|
|
3311
|
-
|
|
3426
|
+
modelDetections: gt.Array.isArray(object?.modelDetections)
|
|
3427
|
+
? object.modelDetections.map((e) => message_formats_1.ModelDetections.fromJSON(e))
|
|
3428
|
+
: [],
|
|
3312
3429
|
};
|
|
3313
3430
|
},
|
|
3314
3431
|
toJSON(message) {
|
|
3315
3432
|
const obj = {};
|
|
3316
|
-
if (message.
|
|
3317
|
-
obj.
|
|
3433
|
+
if (message.modelDetections?.length) {
|
|
3434
|
+
obj.modelDetections = message.modelDetections.map((e) => message_formats_1.ModelDetections.toJSON(e));
|
|
3318
3435
|
}
|
|
3319
3436
|
return obj;
|
|
3320
3437
|
},
|
|
@@ -3323,9 +3440,7 @@ exports.ObjectDetectionsTel = {
|
|
|
3323
3440
|
},
|
|
3324
3441
|
fromPartial(object) {
|
|
3325
3442
|
const message = createBaseObjectDetectionsTel();
|
|
3326
|
-
message.
|
|
3327
|
-
? message_formats_1.ObjectDetections.fromPartial(object.objectDetections)
|
|
3328
|
-
: undefined;
|
|
3443
|
+
message.modelDetections = object.modelDetections?.map((e) => message_formats_1.ModelDetections.fromPartial(e)) || [];
|
|
3329
3444
|
return message;
|
|
3330
3445
|
},
|
|
3331
3446
|
};
|
|
@@ -3441,6 +3556,112 @@ exports.CameraPanTiltZoomTel = {
|
|
|
3441
3556
|
return message;
|
|
3442
3557
|
},
|
|
3443
3558
|
};
|
|
3559
|
+
function createBaseSotStateTel() {
|
|
3560
|
+
return { sotState: undefined };
|
|
3561
|
+
}
|
|
3562
|
+
exports.SotStateTel = {
|
|
3563
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3564
|
+
if (message.sotState !== undefined) {
|
|
3565
|
+
message_formats_1.SotState.encode(message.sotState, writer.uint32(10).fork()).join();
|
|
3566
|
+
}
|
|
3567
|
+
return writer;
|
|
3568
|
+
},
|
|
3569
|
+
decode(input, length) {
|
|
3570
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3571
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3572
|
+
const message = createBaseSotStateTel();
|
|
3573
|
+
while (reader.pos < end) {
|
|
3574
|
+
const tag = reader.uint32();
|
|
3575
|
+
switch (tag >>> 3) {
|
|
3576
|
+
case 1: {
|
|
3577
|
+
if (tag !== 10) {
|
|
3578
|
+
break;
|
|
3579
|
+
}
|
|
3580
|
+
message.sotState = message_formats_1.SotState.decode(reader, reader.uint32());
|
|
3581
|
+
continue;
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3585
|
+
break;
|
|
3586
|
+
}
|
|
3587
|
+
reader.skip(tag & 7);
|
|
3588
|
+
}
|
|
3589
|
+
return message;
|
|
3590
|
+
},
|
|
3591
|
+
fromJSON(object) {
|
|
3592
|
+
return { sotState: isSet(object.sotState) ? message_formats_1.SotState.fromJSON(object.sotState) : undefined };
|
|
3593
|
+
},
|
|
3594
|
+
toJSON(message) {
|
|
3595
|
+
const obj = {};
|
|
3596
|
+
if (message.sotState !== undefined) {
|
|
3597
|
+
obj.sotState = message_formats_1.SotState.toJSON(message.sotState);
|
|
3598
|
+
}
|
|
3599
|
+
return obj;
|
|
3600
|
+
},
|
|
3601
|
+
create(base) {
|
|
3602
|
+
return exports.SotStateTel.fromPartial(base ?? {});
|
|
3603
|
+
},
|
|
3604
|
+
fromPartial(object) {
|
|
3605
|
+
const message = createBaseSotStateTel();
|
|
3606
|
+
message.sotState = (object.sotState !== undefined && object.sotState !== null)
|
|
3607
|
+
? message_formats_1.SotState.fromPartial(object.sotState)
|
|
3608
|
+
: undefined;
|
|
3609
|
+
return message;
|
|
3610
|
+
},
|
|
3611
|
+
};
|
|
3612
|
+
function createBaseAnnotationTel() {
|
|
3613
|
+
return { annotation: undefined };
|
|
3614
|
+
}
|
|
3615
|
+
exports.AnnotationTel = {
|
|
3616
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3617
|
+
if (message.annotation !== undefined) {
|
|
3618
|
+
message_formats_1.Annotation.encode(message.annotation, writer.uint32(10).fork()).join();
|
|
3619
|
+
}
|
|
3620
|
+
return writer;
|
|
3621
|
+
},
|
|
3622
|
+
decode(input, length) {
|
|
3623
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3624
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3625
|
+
const message = createBaseAnnotationTel();
|
|
3626
|
+
while (reader.pos < end) {
|
|
3627
|
+
const tag = reader.uint32();
|
|
3628
|
+
switch (tag >>> 3) {
|
|
3629
|
+
case 1: {
|
|
3630
|
+
if (tag !== 10) {
|
|
3631
|
+
break;
|
|
3632
|
+
}
|
|
3633
|
+
message.annotation = message_formats_1.Annotation.decode(reader, reader.uint32());
|
|
3634
|
+
continue;
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3638
|
+
break;
|
|
3639
|
+
}
|
|
3640
|
+
reader.skip(tag & 7);
|
|
3641
|
+
}
|
|
3642
|
+
return message;
|
|
3643
|
+
},
|
|
3644
|
+
fromJSON(object) {
|
|
3645
|
+
return { annotation: isSet(object.annotation) ? message_formats_1.Annotation.fromJSON(object.annotation) : undefined };
|
|
3646
|
+
},
|
|
3647
|
+
toJSON(message) {
|
|
3648
|
+
const obj = {};
|
|
3649
|
+
if (message.annotation !== undefined) {
|
|
3650
|
+
obj.annotation = message_formats_1.Annotation.toJSON(message.annotation);
|
|
3651
|
+
}
|
|
3652
|
+
return obj;
|
|
3653
|
+
},
|
|
3654
|
+
create(base) {
|
|
3655
|
+
return exports.AnnotationTel.fromPartial(base ?? {});
|
|
3656
|
+
},
|
|
3657
|
+
fromPartial(object) {
|
|
3658
|
+
const message = createBaseAnnotationTel();
|
|
3659
|
+
message.annotation = (object.annotation !== undefined && object.annotation !== null)
|
|
3660
|
+
? message_formats_1.Annotation.fromPartial(object.annotation)
|
|
3661
|
+
: undefined;
|
|
3662
|
+
return message;
|
|
3663
|
+
},
|
|
3664
|
+
};
|
|
3444
3665
|
const gt = (() => {
|
|
3445
3666
|
if (typeof globalThis !== "undefined") {
|
|
3446
3667
|
return globalThis;
|