mavsdk-types 1.0.0

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.
Files changed (107) hide show
  1. package/README.md +24 -0
  2. package/action/ActionServiceClientPb.ts +985 -0
  3. package/action/action_pb.d.ts +875 -0
  4. package/action/action_pb.js +7317 -0
  5. package/action_server/Action_serverServiceClientPb.ts +408 -0
  6. package/action_server/action_server_pb.d.ts +571 -0
  7. package/action_server/action_server_pb.js +4624 -0
  8. package/calibration/CalibrationServiceClientPb.ts +192 -0
  9. package/calibration/calibration_pb.d.ts +306 -0
  10. package/calibration/calibration_pb.js +2501 -0
  11. package/camera/CameraServiceClientPb.ts +838 -0
  12. package/camera/camera_pb.d.ts +1260 -0
  13. package/camera/camera_pb.js +10338 -0
  14. package/camera_server/Camera_serverServiceClientPb.ts +818 -0
  15. package/camera_server/camera_server_pb.d.ts +1180 -0
  16. package/camera_server/camera_server_pb.js +9586 -0
  17. package/component_information/Component_informationServiceClientPb.ts +104 -0
  18. package/component_information/component_information_pb.d.ts +179 -0
  19. package/component_information/component_information_pb.js +1445 -0
  20. package/component_information_server/Component_information_serverServiceClientPb.ts +104 -0
  21. package/component_information_server/component_information_server_pb.d.ts +183 -0
  22. package/component_information_server/component_information_server_pb.js +1439 -0
  23. package/core/CoreServiceClientPb.ts +104 -0
  24. package/core/core_pb.d.ts +88 -0
  25. package/core/core_pb.js +748 -0
  26. package/failure/FailureServiceClientPb.ts +82 -0
  27. package/failure/failure_pb.d.ts +111 -0
  28. package/failure/failure_pb.js +646 -0
  29. package/follow_me/Follow_meServiceClientPb.ts +340 -0
  30. package/follow_me/follow_me_pb.d.ts +369 -0
  31. package/follow_me/follow_me_pb.js +2990 -0
  32. package/ftp/FtpServiceClientPb.ts +384 -0
  33. package/ftp/ftp_pb.d.ts +449 -0
  34. package/ftp/ftp_pb.js +3674 -0
  35. package/ftp_server/Ftp_serverServiceClientPb.ts +82 -0
  36. package/ftp_server/ftp_server_pb.d.ts +72 -0
  37. package/ftp_server/ftp_server_pb.js +545 -0
  38. package/geofence/GeofenceServiceClientPb.ts +125 -0
  39. package/geofence/geofence_pb.d.ts +216 -0
  40. package/geofence/geofence_pb.js +1737 -0
  41. package/gimbal/GimbalServiceClientPb.ts +362 -0
  42. package/gimbal/gimbal_pb.d.ts +398 -0
  43. package/gimbal/gimbal_pb.js +3233 -0
  44. package/gripper/GripperServiceClientPb.ts +125 -0
  45. package/gripper/gripper_pb.d.ts +116 -0
  46. package/gripper/gripper_pb.js +880 -0
  47. package/info/InfoServiceClientPb.ts +254 -0
  48. package/info/info_pb.d.ts +377 -0
  49. package/info/info_pb.js +3035 -0
  50. package/log_files/Log_filesServiceClientPb.ts +147 -0
  51. package/log_files/log_files_pb.d.ts +206 -0
  52. package/log_files/log_files_pb.js +1667 -0
  53. package/manual_control/Manual_controlServiceClientPb.ts +168 -0
  54. package/manual_control/manual_control_pb.d.ts +157 -0
  55. package/manual_control/manual_control_pb.js +1232 -0
  56. package/mavsdk_options_pb.d.ts +10 -0
  57. package/mavsdk_options_pb.js +141 -0
  58. package/mission/MissionServiceClientPb.ts +578 -0
  59. package/mission/mission_pb.d.ts +749 -0
  60. package/mission/mission_pb.js +6095 -0
  61. package/mission_raw/Mission_rawServiceClientPb.ts +599 -0
  62. package/mission_raw/mission_raw_pb.d.ts +691 -0
  63. package/mission_raw/mission_raw_pb.js +5766 -0
  64. package/mission_raw_server/Mission_raw_serverServiceClientPb.ts +148 -0
  65. package/mission_raw_server/mission_raw_server_pb.d.ts +285 -0
  66. package/mission_raw_server/mission_raw_server_pb.js +2269 -0
  67. package/mocap/MocapServiceClientPb.ts +168 -0
  68. package/mocap/mocap_pb.d.ts +445 -0
  69. package/mocap/mocap_pb.js +3637 -0
  70. package/offboard/OffboardServiceClientPb.ts +598 -0
  71. package/offboard/offboard_pb.d.ts +813 -0
  72. package/offboard/offboard_pb.js +6771 -0
  73. package/package.json +15 -0
  74. package/param/ParamServiceClientPb.ts +383 -0
  75. package/param/param_pb.d.ts +469 -0
  76. package/param/param_pb.js +3849 -0
  77. package/param_server/Param_serverServiceClientPb.ts +406 -0
  78. package/param_server/param_server_pb.d.ts +523 -0
  79. package/param_server/param_server_pb.js +4371 -0
  80. package/rtk/RtkServiceClientPb.ts +82 -0
  81. package/rtk/rtk_pb.d.ts +93 -0
  82. package/rtk/rtk_pb.js +719 -0
  83. package/server_utility/Server_utilityServiceClientPb.ts +82 -0
  84. package/server_utility/server_utility_pb.d.ts +87 -0
  85. package/server_utility/server_utility_pb.js +591 -0
  86. package/shell/ShellServiceClientPb.ts +104 -0
  87. package/shell/shell_pb.d.ts +106 -0
  88. package/shell/shell_pb.js +822 -0
  89. package/telemetry/TelemetryServiceClientPb.ts +1862 -0
  90. package/telemetry/telemetry_pb.d.ts +3201 -0
  91. package/telemetry/telemetry_pb.js +26682 -0
  92. package/telemetry_server/Telemetry_serverServiceClientPb.ts +684 -0
  93. package/telemetry_server/telemetry_server_pb.d.ts +1562 -0
  94. package/telemetry_server/telemetry_server_pb.js +12735 -0
  95. package/tracking_server/Tracking_serverServiceClientPb.ts +363 -0
  96. package/tracking_server/tracking_server_pb.d.ts +407 -0
  97. package/tracking_server/tracking_server_pb.js +3366 -0
  98. package/transponder/TransponderServiceClientPb.ts +104 -0
  99. package/transponder/transponder_pb.d.ts +196 -0
  100. package/transponder/transponder_pb.js +1360 -0
  101. package/tsconfig.json +9 -0
  102. package/tune/TuneServiceClientPb.ts +82 -0
  103. package/tune/tune_pb.d.ts +122 -0
  104. package/tune/tune_pb.js +804 -0
  105. package/winch/WinchServiceClientPb.ts +491 -0
  106. package/winch/winch_pb.d.ts +593 -0
  107. package/winch/winch_pb.js +4801 -0
@@ -0,0 +1,591 @@
1
+ /* eslint-disable */
2
+ // source: server_utility/server_utility.proto
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {missingRequire} reports error on implicit type usages.
7
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
8
+ * field starts with 'MSG_' and isn't a translatable message.
9
+ * @public
10
+ */
11
+ // GENERATED CODE -- DO NOT EDIT!
12
+ /* eslint-disable */
13
+ // @ts-nocheck
14
+
15
+ var jspb = require('google-protobuf');
16
+ var goog = jspb;
17
+ var global = (function() {
18
+ if (this) { return this; }
19
+ if (typeof window !== 'undefined') { return window; }
20
+ if (typeof global !== 'undefined') { return global; }
21
+ if (typeof self !== 'undefined') { return self; }
22
+ return Function('return this')();
23
+ }.call(null));
24
+
25
+ var mavsdk_options_pb = require('../mavsdk_options_pb.js');
26
+ goog.object.extend(proto, mavsdk_options_pb);
27
+ goog.exportSymbol('proto.mavsdk.rpc.server_utility.SendStatusTextRequest', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.server_utility.SendStatusTextResponse', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.server_utility.ServerUtilityResult', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.server_utility.StatusTextType', null, global);
32
+ /**
33
+ * Generated by JsPbCodeGenerator.
34
+ * @param {Array=} opt_data Optional initial data array, typically from a
35
+ * server response, or constructed directly in Javascript. The array is used
36
+ * in place and becomes part of the constructed object. It is not cloned.
37
+ * If no data is provided, the constructed object will be empty, but still
38
+ * valid.
39
+ * @extends {jspb.Message}
40
+ * @constructor
41
+ */
42
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest = function(opt_data) {
43
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
44
+ };
45
+ goog.inherits(proto.mavsdk.rpc.server_utility.SendStatusTextRequest, jspb.Message);
46
+ if (goog.DEBUG && !COMPILED) {
47
+ /**
48
+ * @public
49
+ * @override
50
+ */
51
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.displayName = 'proto.mavsdk.rpc.server_utility.SendStatusTextRequest';
52
+ }
53
+ /**
54
+ * Generated by JsPbCodeGenerator.
55
+ * @param {Array=} opt_data Optional initial data array, typically from a
56
+ * server response, or constructed directly in Javascript. The array is used
57
+ * in place and becomes part of the constructed object. It is not cloned.
58
+ * If no data is provided, the constructed object will be empty, but still
59
+ * valid.
60
+ * @extends {jspb.Message}
61
+ * @constructor
62
+ */
63
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse = function(opt_data) {
64
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
65
+ };
66
+ goog.inherits(proto.mavsdk.rpc.server_utility.SendStatusTextResponse, jspb.Message);
67
+ if (goog.DEBUG && !COMPILED) {
68
+ /**
69
+ * @public
70
+ * @override
71
+ */
72
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.displayName = 'proto.mavsdk.rpc.server_utility.SendStatusTextResponse';
73
+ }
74
+ /**
75
+ * Generated by JsPbCodeGenerator.
76
+ * @param {Array=} opt_data Optional initial data array, typically from a
77
+ * server response, or constructed directly in Javascript. The array is used
78
+ * in place and becomes part of the constructed object. It is not cloned.
79
+ * If no data is provided, the constructed object will be empty, but still
80
+ * valid.
81
+ * @extends {jspb.Message}
82
+ * @constructor
83
+ */
84
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult = function(opt_data) {
85
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
+ };
87
+ goog.inherits(proto.mavsdk.rpc.server_utility.ServerUtilityResult, jspb.Message);
88
+ if (goog.DEBUG && !COMPILED) {
89
+ /**
90
+ * @public
91
+ * @override
92
+ */
93
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.displayName = 'proto.mavsdk.rpc.server_utility.ServerUtilityResult';
94
+ }
95
+
96
+
97
+
98
+ if (jspb.Message.GENERATE_TO_OBJECT) {
99
+ /**
100
+ * Creates an object representation of this proto.
101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
102
+ * Optional fields that are not set will be set to undefined.
103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
104
+ * For the list of reserved names please see:
105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
107
+ * JSPB instance for transitional soy proto support:
108
+ * http://goto/soy-param-migration
109
+ * @return {!Object}
110
+ */
111
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.toObject = function(opt_includeInstance) {
112
+ return proto.mavsdk.rpc.server_utility.SendStatusTextRequest.toObject(opt_includeInstance, this);
113
+ };
114
+
115
+
116
+ /**
117
+ * Static version of the {@see toObject} method.
118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
119
+ * the JSPB instance for transitional soy proto support:
120
+ * http://goto/soy-param-migration
121
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest} msg The msg instance to transform.
122
+ * @return {!Object}
123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
124
+ */
125
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.toObject = function(includeInstance, msg) {
126
+ var f, obj = {
127
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
128
+ text: jspb.Message.getFieldWithDefault(msg, 2, "")
129
+ };
130
+
131
+ if (includeInstance) {
132
+ obj.$jspbMessageInstance = msg;
133
+ }
134
+ return obj;
135
+ };
136
+ }
137
+
138
+
139
+ /**
140
+ * Deserializes binary data (in protobuf wire format).
141
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
142
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest}
143
+ */
144
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.deserializeBinary = function(bytes) {
145
+ var reader = new jspb.BinaryReader(bytes);
146
+ var msg = new proto.mavsdk.rpc.server_utility.SendStatusTextRequest;
147
+ return proto.mavsdk.rpc.server_utility.SendStatusTextRequest.deserializeBinaryFromReader(msg, reader);
148
+ };
149
+
150
+
151
+ /**
152
+ * Deserializes binary data (in protobuf wire format) from the
153
+ * given reader into the given message object.
154
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest} msg The message object to deserialize into.
155
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
156
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest}
157
+ */
158
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.deserializeBinaryFromReader = function(msg, reader) {
159
+ while (reader.nextField()) {
160
+ if (reader.isEndGroup()) {
161
+ break;
162
+ }
163
+ var field = reader.getFieldNumber();
164
+ switch (field) {
165
+ case 1:
166
+ var value = /** @type {!proto.mavsdk.rpc.server_utility.StatusTextType} */ (reader.readEnum());
167
+ msg.setType(value);
168
+ break;
169
+ case 2:
170
+ var value = /** @type {string} */ (reader.readString());
171
+ msg.setText(value);
172
+ break;
173
+ default:
174
+ reader.skipField();
175
+ break;
176
+ }
177
+ }
178
+ return msg;
179
+ };
180
+
181
+
182
+ /**
183
+ * Serializes the message to binary data (in protobuf wire format).
184
+ * @return {!Uint8Array}
185
+ */
186
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.serializeBinary = function() {
187
+ var writer = new jspb.BinaryWriter();
188
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.serializeBinaryToWriter(this, writer);
189
+ return writer.getResultBuffer();
190
+ };
191
+
192
+
193
+ /**
194
+ * Serializes the given message to binary data (in protobuf wire
195
+ * format), writing to the given BinaryWriter.
196
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest} message
197
+ * @param {!jspb.BinaryWriter} writer
198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
199
+ */
200
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.serializeBinaryToWriter = function(message, writer) {
201
+ var f = undefined;
202
+ f = message.getType();
203
+ if (f !== 0.0) {
204
+ writer.writeEnum(
205
+ 1,
206
+ f
207
+ );
208
+ }
209
+ f = message.getText();
210
+ if (f.length > 0) {
211
+ writer.writeString(
212
+ 2,
213
+ f
214
+ );
215
+ }
216
+ };
217
+
218
+
219
+ /**
220
+ * optional StatusTextType type = 1;
221
+ * @return {!proto.mavsdk.rpc.server_utility.StatusTextType}
222
+ */
223
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.getType = function() {
224
+ return /** @type {!proto.mavsdk.rpc.server_utility.StatusTextType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
225
+ };
226
+
227
+
228
+ /**
229
+ * @param {!proto.mavsdk.rpc.server_utility.StatusTextType} value
230
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest} returns this
231
+ */
232
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.setType = function(value) {
233
+ return jspb.Message.setProto3EnumField(this, 1, value);
234
+ };
235
+
236
+
237
+ /**
238
+ * optional string text = 2;
239
+ * @return {string}
240
+ */
241
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.getText = function() {
242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
243
+ };
244
+
245
+
246
+ /**
247
+ * @param {string} value
248
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextRequest} returns this
249
+ */
250
+ proto.mavsdk.rpc.server_utility.SendStatusTextRequest.prototype.setText = function(value) {
251
+ return jspb.Message.setProto3StringField(this, 2, value);
252
+ };
253
+
254
+
255
+
256
+
257
+
258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
259
+ /**
260
+ * Creates an object representation of this proto.
261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
262
+ * Optional fields that are not set will be set to undefined.
263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
264
+ * For the list of reserved names please see:
265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
267
+ * JSPB instance for transitional soy proto support:
268
+ * http://goto/soy-param-migration
269
+ * @return {!Object}
270
+ */
271
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.toObject = function(opt_includeInstance) {
272
+ return proto.mavsdk.rpc.server_utility.SendStatusTextResponse.toObject(opt_includeInstance, this);
273
+ };
274
+
275
+
276
+ /**
277
+ * Static version of the {@see toObject} method.
278
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
279
+ * the JSPB instance for transitional soy proto support:
280
+ * http://goto/soy-param-migration
281
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse} msg The msg instance to transform.
282
+ * @return {!Object}
283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
284
+ */
285
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.toObject = function(includeInstance, msg) {
286
+ var f, obj = {
287
+ serverUtilityResult: (f = msg.getServerUtilityResult()) && proto.mavsdk.rpc.server_utility.ServerUtilityResult.toObject(includeInstance, f)
288
+ };
289
+
290
+ if (includeInstance) {
291
+ obj.$jspbMessageInstance = msg;
292
+ }
293
+ return obj;
294
+ };
295
+ }
296
+
297
+
298
+ /**
299
+ * Deserializes binary data (in protobuf wire format).
300
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
301
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse}
302
+ */
303
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.deserializeBinary = function(bytes) {
304
+ var reader = new jspb.BinaryReader(bytes);
305
+ var msg = new proto.mavsdk.rpc.server_utility.SendStatusTextResponse;
306
+ return proto.mavsdk.rpc.server_utility.SendStatusTextResponse.deserializeBinaryFromReader(msg, reader);
307
+ };
308
+
309
+
310
+ /**
311
+ * Deserializes binary data (in protobuf wire format) from the
312
+ * given reader into the given message object.
313
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse} msg The message object to deserialize into.
314
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
315
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse}
316
+ */
317
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.deserializeBinaryFromReader = function(msg, reader) {
318
+ while (reader.nextField()) {
319
+ if (reader.isEndGroup()) {
320
+ break;
321
+ }
322
+ var field = reader.getFieldNumber();
323
+ switch (field) {
324
+ case 1:
325
+ var value = new proto.mavsdk.rpc.server_utility.ServerUtilityResult;
326
+ reader.readMessage(value,proto.mavsdk.rpc.server_utility.ServerUtilityResult.deserializeBinaryFromReader);
327
+ msg.setServerUtilityResult(value);
328
+ break;
329
+ default:
330
+ reader.skipField();
331
+ break;
332
+ }
333
+ }
334
+ return msg;
335
+ };
336
+
337
+
338
+ /**
339
+ * Serializes the message to binary data (in protobuf wire format).
340
+ * @return {!Uint8Array}
341
+ */
342
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.serializeBinary = function() {
343
+ var writer = new jspb.BinaryWriter();
344
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.serializeBinaryToWriter(this, writer);
345
+ return writer.getResultBuffer();
346
+ };
347
+
348
+
349
+ /**
350
+ * Serializes the given message to binary data (in protobuf wire
351
+ * format), writing to the given BinaryWriter.
352
+ * @param {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse} message
353
+ * @param {!jspb.BinaryWriter} writer
354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
355
+ */
356
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.serializeBinaryToWriter = function(message, writer) {
357
+ var f = undefined;
358
+ f = message.getServerUtilityResult();
359
+ if (f != null) {
360
+ writer.writeMessage(
361
+ 1,
362
+ f,
363
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.serializeBinaryToWriter
364
+ );
365
+ }
366
+ };
367
+
368
+
369
+ /**
370
+ * optional ServerUtilityResult server_utility_result = 1;
371
+ * @return {?proto.mavsdk.rpc.server_utility.ServerUtilityResult}
372
+ */
373
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.getServerUtilityResult = function() {
374
+ return /** @type{?proto.mavsdk.rpc.server_utility.ServerUtilityResult} */ (
375
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.server_utility.ServerUtilityResult, 1));
376
+ };
377
+
378
+
379
+ /**
380
+ * @param {?proto.mavsdk.rpc.server_utility.ServerUtilityResult|undefined} value
381
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse} returns this
382
+ */
383
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.setServerUtilityResult = function(value) {
384
+ return jspb.Message.setWrapperField(this, 1, value);
385
+ };
386
+
387
+
388
+ /**
389
+ * Clears the message field making it undefined.
390
+ * @return {!proto.mavsdk.rpc.server_utility.SendStatusTextResponse} returns this
391
+ */
392
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.clearServerUtilityResult = function() {
393
+ return this.setServerUtilityResult(undefined);
394
+ };
395
+
396
+
397
+ /**
398
+ * Returns whether this field is set.
399
+ * @return {boolean}
400
+ */
401
+ proto.mavsdk.rpc.server_utility.SendStatusTextResponse.prototype.hasServerUtilityResult = function() {
402
+ return jspb.Message.getField(this, 1) != null;
403
+ };
404
+
405
+
406
+
407
+
408
+
409
+ if (jspb.Message.GENERATE_TO_OBJECT) {
410
+ /**
411
+ * Creates an object representation of this proto.
412
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
413
+ * Optional fields that are not set will be set to undefined.
414
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
415
+ * For the list of reserved names please see:
416
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
417
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
418
+ * JSPB instance for transitional soy proto support:
419
+ * http://goto/soy-param-migration
420
+ * @return {!Object}
421
+ */
422
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.toObject = function(opt_includeInstance) {
423
+ return proto.mavsdk.rpc.server_utility.ServerUtilityResult.toObject(opt_includeInstance, this);
424
+ };
425
+
426
+
427
+ /**
428
+ * Static version of the {@see toObject} method.
429
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
430
+ * the JSPB instance for transitional soy proto support:
431
+ * http://goto/soy-param-migration
432
+ * @param {!proto.mavsdk.rpc.server_utility.ServerUtilityResult} msg The msg instance to transform.
433
+ * @return {!Object}
434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
435
+ */
436
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.toObject = function(includeInstance, msg) {
437
+ var f, obj = {
438
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
439
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
440
+ };
441
+
442
+ if (includeInstance) {
443
+ obj.$jspbMessageInstance = msg;
444
+ }
445
+ return obj;
446
+ };
447
+ }
448
+
449
+
450
+ /**
451
+ * Deserializes binary data (in protobuf wire format).
452
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
453
+ * @return {!proto.mavsdk.rpc.server_utility.ServerUtilityResult}
454
+ */
455
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.deserializeBinary = function(bytes) {
456
+ var reader = new jspb.BinaryReader(bytes);
457
+ var msg = new proto.mavsdk.rpc.server_utility.ServerUtilityResult;
458
+ return proto.mavsdk.rpc.server_utility.ServerUtilityResult.deserializeBinaryFromReader(msg, reader);
459
+ };
460
+
461
+
462
+ /**
463
+ * Deserializes binary data (in protobuf wire format) from the
464
+ * given reader into the given message object.
465
+ * @param {!proto.mavsdk.rpc.server_utility.ServerUtilityResult} msg The message object to deserialize into.
466
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
467
+ * @return {!proto.mavsdk.rpc.server_utility.ServerUtilityResult}
468
+ */
469
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.deserializeBinaryFromReader = function(msg, reader) {
470
+ while (reader.nextField()) {
471
+ if (reader.isEndGroup()) {
472
+ break;
473
+ }
474
+ var field = reader.getFieldNumber();
475
+ switch (field) {
476
+ case 1:
477
+ var value = /** @type {!proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result} */ (reader.readEnum());
478
+ msg.setResult(value);
479
+ break;
480
+ case 2:
481
+ var value = /** @type {string} */ (reader.readString());
482
+ msg.setResultStr(value);
483
+ break;
484
+ default:
485
+ reader.skipField();
486
+ break;
487
+ }
488
+ }
489
+ return msg;
490
+ };
491
+
492
+
493
+ /**
494
+ * Serializes the message to binary data (in protobuf wire format).
495
+ * @return {!Uint8Array}
496
+ */
497
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.serializeBinary = function() {
498
+ var writer = new jspb.BinaryWriter();
499
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.serializeBinaryToWriter(this, writer);
500
+ return writer.getResultBuffer();
501
+ };
502
+
503
+
504
+ /**
505
+ * Serializes the given message to binary data (in protobuf wire
506
+ * format), writing to the given BinaryWriter.
507
+ * @param {!proto.mavsdk.rpc.server_utility.ServerUtilityResult} message
508
+ * @param {!jspb.BinaryWriter} writer
509
+ * @suppress {unusedLocalVariables} f is only used for nested messages
510
+ */
511
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.serializeBinaryToWriter = function(message, writer) {
512
+ var f = undefined;
513
+ f = message.getResult();
514
+ if (f !== 0.0) {
515
+ writer.writeEnum(
516
+ 1,
517
+ f
518
+ );
519
+ }
520
+ f = message.getResultStr();
521
+ if (f.length > 0) {
522
+ writer.writeString(
523
+ 2,
524
+ f
525
+ );
526
+ }
527
+ };
528
+
529
+
530
+ /**
531
+ * @enum {number}
532
+ */
533
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result = {
534
+ RESULT_UNKNOWN: 0,
535
+ RESULT_SUCCESS: 1,
536
+ RESULT_NO_SYSTEM: 2,
537
+ RESULT_CONNECTION_ERROR: 3,
538
+ RESULT_INVALID_ARGUMENT: 4
539
+ };
540
+
541
+ /**
542
+ * optional Result result = 1;
543
+ * @return {!proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result}
544
+ */
545
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.getResult = function() {
546
+ return /** @type {!proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
547
+ };
548
+
549
+
550
+ /**
551
+ * @param {!proto.mavsdk.rpc.server_utility.ServerUtilityResult.Result} value
552
+ * @return {!proto.mavsdk.rpc.server_utility.ServerUtilityResult} returns this
553
+ */
554
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.setResult = function(value) {
555
+ return jspb.Message.setProto3EnumField(this, 1, value);
556
+ };
557
+
558
+
559
+ /**
560
+ * optional string result_str = 2;
561
+ * @return {string}
562
+ */
563
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.getResultStr = function() {
564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
565
+ };
566
+
567
+
568
+ /**
569
+ * @param {string} value
570
+ * @return {!proto.mavsdk.rpc.server_utility.ServerUtilityResult} returns this
571
+ */
572
+ proto.mavsdk.rpc.server_utility.ServerUtilityResult.prototype.setResultStr = function(value) {
573
+ return jspb.Message.setProto3StringField(this, 2, value);
574
+ };
575
+
576
+
577
+ /**
578
+ * @enum {number}
579
+ */
580
+ proto.mavsdk.rpc.server_utility.StatusTextType = {
581
+ STATUS_TEXT_TYPE_DEBUG: 0,
582
+ STATUS_TEXT_TYPE_INFO: 1,
583
+ STATUS_TEXT_TYPE_NOTICE: 2,
584
+ STATUS_TEXT_TYPE_WARNING: 3,
585
+ STATUS_TEXT_TYPE_ERROR: 4,
586
+ STATUS_TEXT_TYPE_CRITICAL: 5,
587
+ STATUS_TEXT_TYPE_ALERT: 6,
588
+ STATUS_TEXT_TYPE_EMERGENCY: 7
589
+ };
590
+
591
+ goog.object.extend(exports, proto.mavsdk.rpc.server_utility);
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for mavsdk.rpc.shell
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // GENERATED CODE -- DO NOT EDIT!
8
+
9
+
10
+ /* eslint-disable */
11
+ // @ts-nocheck
12
+
13
+
14
+ import * as grpcWeb from 'grpc-web';
15
+
16
+ import * as shell_shell_pb from '../shell/shell_pb';
17
+
18
+
19
+ export class ShellServiceClient {
20
+ client_: grpcWeb.AbstractClientBase;
21
+ hostname_: string;
22
+ credentials_: null | { [index: string]: string; };
23
+ options_: null | { [index: string]: any; };
24
+
25
+ constructor (hostname: string,
26
+ credentials?: null | { [index: string]: string; },
27
+ options?: null | { [index: string]: any; }) {
28
+ if (!options) options = {};
29
+ if (!credentials) credentials = {};
30
+ options['format'] = 'text';
31
+
32
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
33
+ this.hostname_ = hostname;
34
+ this.credentials_ = credentials;
35
+ this.options_ = options;
36
+ }
37
+
38
+ methodDescriptorSend = new grpcWeb.MethodDescriptor(
39
+ '/mavsdk.rpc.shell.ShellService/Send',
40
+ grpcWeb.MethodType.UNARY,
41
+ shell_shell_pb.SendRequest,
42
+ shell_shell_pb.SendResponse,
43
+ (request: shell_shell_pb.SendRequest) => {
44
+ return request.serializeBinary();
45
+ },
46
+ shell_shell_pb.SendResponse.deserializeBinary
47
+ );
48
+
49
+ send(
50
+ request: shell_shell_pb.SendRequest,
51
+ metadata: grpcWeb.Metadata | null): Promise<shell_shell_pb.SendResponse>;
52
+
53
+ send(
54
+ request: shell_shell_pb.SendRequest,
55
+ metadata: grpcWeb.Metadata | null,
56
+ callback: (err: grpcWeb.RpcError,
57
+ response: shell_shell_pb.SendResponse) => void): grpcWeb.ClientReadableStream<shell_shell_pb.SendResponse>;
58
+
59
+ send(
60
+ request: shell_shell_pb.SendRequest,
61
+ metadata: grpcWeb.Metadata | null,
62
+ callback?: (err: grpcWeb.RpcError,
63
+ response: shell_shell_pb.SendResponse) => void) {
64
+ if (callback !== undefined) {
65
+ return this.client_.rpcCall(
66
+ this.hostname_ +
67
+ '/mavsdk.rpc.shell.ShellService/Send',
68
+ request,
69
+ metadata || {},
70
+ this.methodDescriptorSend,
71
+ callback);
72
+ }
73
+ return this.client_.unaryCall(
74
+ this.hostname_ +
75
+ '/mavsdk.rpc.shell.ShellService/Send',
76
+ request,
77
+ metadata || {},
78
+ this.methodDescriptorSend);
79
+ }
80
+
81
+ methodDescriptorSubscribeReceive = new grpcWeb.MethodDescriptor(
82
+ '/mavsdk.rpc.shell.ShellService/SubscribeReceive',
83
+ grpcWeb.MethodType.SERVER_STREAMING,
84
+ shell_shell_pb.SubscribeReceiveRequest,
85
+ shell_shell_pb.ReceiveResponse,
86
+ (request: shell_shell_pb.SubscribeReceiveRequest) => {
87
+ return request.serializeBinary();
88
+ },
89
+ shell_shell_pb.ReceiveResponse.deserializeBinary
90
+ );
91
+
92
+ subscribeReceive(
93
+ request: shell_shell_pb.SubscribeReceiveRequest,
94
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<shell_shell_pb.ReceiveResponse> {
95
+ return this.client_.serverStreaming(
96
+ this.hostname_ +
97
+ '/mavsdk.rpc.shell.ShellService/SubscribeReceive',
98
+ request,
99
+ metadata || {},
100
+ this.methodDescriptorSubscribeReceive);
101
+ }
102
+
103
+ }
104
+