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,822 @@
1
+ /* eslint-disable */
2
+ // source: shell/shell.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.shell.ReceiveResponse', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.shell.SendRequest', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.shell.SendResponse', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.shell.ShellResult', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.shell.ShellResult.Result', null, global);
32
+ goog.exportSymbol('proto.mavsdk.rpc.shell.SubscribeReceiveRequest', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.mavsdk.rpc.shell.SendRequest = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.mavsdk.rpc.shell.SendRequest, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.mavsdk.rpc.shell.SendRequest.displayName = 'proto.mavsdk.rpc.shell.SendRequest';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.mavsdk.rpc.shell.SendResponse = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.mavsdk.rpc.shell.SendResponse, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.mavsdk.rpc.shell.SendResponse.displayName = 'proto.mavsdk.rpc.shell.SendResponse';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
87
+ };
88
+ goog.inherits(proto.mavsdk.rpc.shell.SubscribeReceiveRequest, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.displayName = 'proto.mavsdk.rpc.shell.SubscribeReceiveRequest';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.mavsdk.rpc.shell.ReceiveResponse = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
+ };
109
+ goog.inherits(proto.mavsdk.rpc.shell.ReceiveResponse, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.mavsdk.rpc.shell.ReceiveResponse.displayName = 'proto.mavsdk.rpc.shell.ReceiveResponse';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.mavsdk.rpc.shell.ShellResult = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.mavsdk.rpc.shell.ShellResult, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.mavsdk.rpc.shell.ShellResult.displayName = 'proto.mavsdk.rpc.shell.ShellResult';
137
+ }
138
+
139
+
140
+
141
+ if (jspb.Message.GENERATE_TO_OBJECT) {
142
+ /**
143
+ * Creates an object representation of this proto.
144
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
145
+ * Optional fields that are not set will be set to undefined.
146
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
147
+ * For the list of reserved names please see:
148
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
149
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
150
+ * JSPB instance for transitional soy proto support:
151
+ * http://goto/soy-param-migration
152
+ * @return {!Object}
153
+ */
154
+ proto.mavsdk.rpc.shell.SendRequest.prototype.toObject = function(opt_includeInstance) {
155
+ return proto.mavsdk.rpc.shell.SendRequest.toObject(opt_includeInstance, this);
156
+ };
157
+
158
+
159
+ /**
160
+ * Static version of the {@see toObject} method.
161
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
162
+ * the JSPB instance for transitional soy proto support:
163
+ * http://goto/soy-param-migration
164
+ * @param {!proto.mavsdk.rpc.shell.SendRequest} msg The msg instance to transform.
165
+ * @return {!Object}
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.mavsdk.rpc.shell.SendRequest.toObject = function(includeInstance, msg) {
169
+ var f, obj = {
170
+ command: jspb.Message.getFieldWithDefault(msg, 1, "")
171
+ };
172
+
173
+ if (includeInstance) {
174
+ obj.$jspbMessageInstance = msg;
175
+ }
176
+ return obj;
177
+ };
178
+ }
179
+
180
+
181
+ /**
182
+ * Deserializes binary data (in protobuf wire format).
183
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
184
+ * @return {!proto.mavsdk.rpc.shell.SendRequest}
185
+ */
186
+ proto.mavsdk.rpc.shell.SendRequest.deserializeBinary = function(bytes) {
187
+ var reader = new jspb.BinaryReader(bytes);
188
+ var msg = new proto.mavsdk.rpc.shell.SendRequest;
189
+ return proto.mavsdk.rpc.shell.SendRequest.deserializeBinaryFromReader(msg, reader);
190
+ };
191
+
192
+
193
+ /**
194
+ * Deserializes binary data (in protobuf wire format) from the
195
+ * given reader into the given message object.
196
+ * @param {!proto.mavsdk.rpc.shell.SendRequest} msg The message object to deserialize into.
197
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
198
+ * @return {!proto.mavsdk.rpc.shell.SendRequest}
199
+ */
200
+ proto.mavsdk.rpc.shell.SendRequest.deserializeBinaryFromReader = function(msg, reader) {
201
+ while (reader.nextField()) {
202
+ if (reader.isEndGroup()) {
203
+ break;
204
+ }
205
+ var field = reader.getFieldNumber();
206
+ switch (field) {
207
+ case 1:
208
+ var value = /** @type {string} */ (reader.readString());
209
+ msg.setCommand(value);
210
+ break;
211
+ default:
212
+ reader.skipField();
213
+ break;
214
+ }
215
+ }
216
+ return msg;
217
+ };
218
+
219
+
220
+ /**
221
+ * Serializes the message to binary data (in protobuf wire format).
222
+ * @return {!Uint8Array}
223
+ */
224
+ proto.mavsdk.rpc.shell.SendRequest.prototype.serializeBinary = function() {
225
+ var writer = new jspb.BinaryWriter();
226
+ proto.mavsdk.rpc.shell.SendRequest.serializeBinaryToWriter(this, writer);
227
+ return writer.getResultBuffer();
228
+ };
229
+
230
+
231
+ /**
232
+ * Serializes the given message to binary data (in protobuf wire
233
+ * format), writing to the given BinaryWriter.
234
+ * @param {!proto.mavsdk.rpc.shell.SendRequest} message
235
+ * @param {!jspb.BinaryWriter} writer
236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
237
+ */
238
+ proto.mavsdk.rpc.shell.SendRequest.serializeBinaryToWriter = function(message, writer) {
239
+ var f = undefined;
240
+ f = message.getCommand();
241
+ if (f.length > 0) {
242
+ writer.writeString(
243
+ 1,
244
+ f
245
+ );
246
+ }
247
+ };
248
+
249
+
250
+ /**
251
+ * optional string command = 1;
252
+ * @return {string}
253
+ */
254
+ proto.mavsdk.rpc.shell.SendRequest.prototype.getCommand = function() {
255
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
256
+ };
257
+
258
+
259
+ /**
260
+ * @param {string} value
261
+ * @return {!proto.mavsdk.rpc.shell.SendRequest} returns this
262
+ */
263
+ proto.mavsdk.rpc.shell.SendRequest.prototype.setCommand = function(value) {
264
+ return jspb.Message.setProto3StringField(this, 1, value);
265
+ };
266
+
267
+
268
+
269
+
270
+
271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
272
+ /**
273
+ * Creates an object representation of this proto.
274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
275
+ * Optional fields that are not set will be set to undefined.
276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
277
+ * For the list of reserved names please see:
278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
280
+ * JSPB instance for transitional soy proto support:
281
+ * http://goto/soy-param-migration
282
+ * @return {!Object}
283
+ */
284
+ proto.mavsdk.rpc.shell.SendResponse.prototype.toObject = function(opt_includeInstance) {
285
+ return proto.mavsdk.rpc.shell.SendResponse.toObject(opt_includeInstance, this);
286
+ };
287
+
288
+
289
+ /**
290
+ * Static version of the {@see toObject} method.
291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
292
+ * the JSPB instance for transitional soy proto support:
293
+ * http://goto/soy-param-migration
294
+ * @param {!proto.mavsdk.rpc.shell.SendResponse} msg The msg instance to transform.
295
+ * @return {!Object}
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.mavsdk.rpc.shell.SendResponse.toObject = function(includeInstance, msg) {
299
+ var f, obj = {
300
+ shellResult: (f = msg.getShellResult()) && proto.mavsdk.rpc.shell.ShellResult.toObject(includeInstance, f)
301
+ };
302
+
303
+ if (includeInstance) {
304
+ obj.$jspbMessageInstance = msg;
305
+ }
306
+ return obj;
307
+ };
308
+ }
309
+
310
+
311
+ /**
312
+ * Deserializes binary data (in protobuf wire format).
313
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
314
+ * @return {!proto.mavsdk.rpc.shell.SendResponse}
315
+ */
316
+ proto.mavsdk.rpc.shell.SendResponse.deserializeBinary = function(bytes) {
317
+ var reader = new jspb.BinaryReader(bytes);
318
+ var msg = new proto.mavsdk.rpc.shell.SendResponse;
319
+ return proto.mavsdk.rpc.shell.SendResponse.deserializeBinaryFromReader(msg, reader);
320
+ };
321
+
322
+
323
+ /**
324
+ * Deserializes binary data (in protobuf wire format) from the
325
+ * given reader into the given message object.
326
+ * @param {!proto.mavsdk.rpc.shell.SendResponse} msg The message object to deserialize into.
327
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
328
+ * @return {!proto.mavsdk.rpc.shell.SendResponse}
329
+ */
330
+ proto.mavsdk.rpc.shell.SendResponse.deserializeBinaryFromReader = function(msg, reader) {
331
+ while (reader.nextField()) {
332
+ if (reader.isEndGroup()) {
333
+ break;
334
+ }
335
+ var field = reader.getFieldNumber();
336
+ switch (field) {
337
+ case 1:
338
+ var value = new proto.mavsdk.rpc.shell.ShellResult;
339
+ reader.readMessage(value,proto.mavsdk.rpc.shell.ShellResult.deserializeBinaryFromReader);
340
+ msg.setShellResult(value);
341
+ break;
342
+ default:
343
+ reader.skipField();
344
+ break;
345
+ }
346
+ }
347
+ return msg;
348
+ };
349
+
350
+
351
+ /**
352
+ * Serializes the message to binary data (in protobuf wire format).
353
+ * @return {!Uint8Array}
354
+ */
355
+ proto.mavsdk.rpc.shell.SendResponse.prototype.serializeBinary = function() {
356
+ var writer = new jspb.BinaryWriter();
357
+ proto.mavsdk.rpc.shell.SendResponse.serializeBinaryToWriter(this, writer);
358
+ return writer.getResultBuffer();
359
+ };
360
+
361
+
362
+ /**
363
+ * Serializes the given message to binary data (in protobuf wire
364
+ * format), writing to the given BinaryWriter.
365
+ * @param {!proto.mavsdk.rpc.shell.SendResponse} message
366
+ * @param {!jspb.BinaryWriter} writer
367
+ * @suppress {unusedLocalVariables} f is only used for nested messages
368
+ */
369
+ proto.mavsdk.rpc.shell.SendResponse.serializeBinaryToWriter = function(message, writer) {
370
+ var f = undefined;
371
+ f = message.getShellResult();
372
+ if (f != null) {
373
+ writer.writeMessage(
374
+ 1,
375
+ f,
376
+ proto.mavsdk.rpc.shell.ShellResult.serializeBinaryToWriter
377
+ );
378
+ }
379
+ };
380
+
381
+
382
+ /**
383
+ * optional ShellResult shell_result = 1;
384
+ * @return {?proto.mavsdk.rpc.shell.ShellResult}
385
+ */
386
+ proto.mavsdk.rpc.shell.SendResponse.prototype.getShellResult = function() {
387
+ return /** @type{?proto.mavsdk.rpc.shell.ShellResult} */ (
388
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.shell.ShellResult, 1));
389
+ };
390
+
391
+
392
+ /**
393
+ * @param {?proto.mavsdk.rpc.shell.ShellResult|undefined} value
394
+ * @return {!proto.mavsdk.rpc.shell.SendResponse} returns this
395
+ */
396
+ proto.mavsdk.rpc.shell.SendResponse.prototype.setShellResult = function(value) {
397
+ return jspb.Message.setWrapperField(this, 1, value);
398
+ };
399
+
400
+
401
+ /**
402
+ * Clears the message field making it undefined.
403
+ * @return {!proto.mavsdk.rpc.shell.SendResponse} returns this
404
+ */
405
+ proto.mavsdk.rpc.shell.SendResponse.prototype.clearShellResult = function() {
406
+ return this.setShellResult(undefined);
407
+ };
408
+
409
+
410
+ /**
411
+ * Returns whether this field is set.
412
+ * @return {boolean}
413
+ */
414
+ proto.mavsdk.rpc.shell.SendResponse.prototype.hasShellResult = function() {
415
+ return jspb.Message.getField(this, 1) != null;
416
+ };
417
+
418
+
419
+
420
+
421
+
422
+ if (jspb.Message.GENERATE_TO_OBJECT) {
423
+ /**
424
+ * Creates an object representation of this proto.
425
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
426
+ * Optional fields that are not set will be set to undefined.
427
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
428
+ * For the list of reserved names please see:
429
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
430
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
431
+ * JSPB instance for transitional soy proto support:
432
+ * http://goto/soy-param-migration
433
+ * @return {!Object}
434
+ */
435
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.prototype.toObject = function(opt_includeInstance) {
436
+ return proto.mavsdk.rpc.shell.SubscribeReceiveRequest.toObject(opt_includeInstance, this);
437
+ };
438
+
439
+
440
+ /**
441
+ * Static version of the {@see toObject} method.
442
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
443
+ * the JSPB instance for transitional soy proto support:
444
+ * http://goto/soy-param-migration
445
+ * @param {!proto.mavsdk.rpc.shell.SubscribeReceiveRequest} msg The msg instance to transform.
446
+ * @return {!Object}
447
+ * @suppress {unusedLocalVariables} f is only used for nested messages
448
+ */
449
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.toObject = function(includeInstance, msg) {
450
+ var f, obj = {
451
+
452
+ };
453
+
454
+ if (includeInstance) {
455
+ obj.$jspbMessageInstance = msg;
456
+ }
457
+ return obj;
458
+ };
459
+ }
460
+
461
+
462
+ /**
463
+ * Deserializes binary data (in protobuf wire format).
464
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
465
+ * @return {!proto.mavsdk.rpc.shell.SubscribeReceiveRequest}
466
+ */
467
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.deserializeBinary = function(bytes) {
468
+ var reader = new jspb.BinaryReader(bytes);
469
+ var msg = new proto.mavsdk.rpc.shell.SubscribeReceiveRequest;
470
+ return proto.mavsdk.rpc.shell.SubscribeReceiveRequest.deserializeBinaryFromReader(msg, reader);
471
+ };
472
+
473
+
474
+ /**
475
+ * Deserializes binary data (in protobuf wire format) from the
476
+ * given reader into the given message object.
477
+ * @param {!proto.mavsdk.rpc.shell.SubscribeReceiveRequest} msg The message object to deserialize into.
478
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
479
+ * @return {!proto.mavsdk.rpc.shell.SubscribeReceiveRequest}
480
+ */
481
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.deserializeBinaryFromReader = function(msg, reader) {
482
+ while (reader.nextField()) {
483
+ if (reader.isEndGroup()) {
484
+ break;
485
+ }
486
+ var field = reader.getFieldNumber();
487
+ switch (field) {
488
+ default:
489
+ reader.skipField();
490
+ break;
491
+ }
492
+ }
493
+ return msg;
494
+ };
495
+
496
+
497
+ /**
498
+ * Serializes the message to binary data (in protobuf wire format).
499
+ * @return {!Uint8Array}
500
+ */
501
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.prototype.serializeBinary = function() {
502
+ var writer = new jspb.BinaryWriter();
503
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.serializeBinaryToWriter(this, writer);
504
+ return writer.getResultBuffer();
505
+ };
506
+
507
+
508
+ /**
509
+ * Serializes the given message to binary data (in protobuf wire
510
+ * format), writing to the given BinaryWriter.
511
+ * @param {!proto.mavsdk.rpc.shell.SubscribeReceiveRequest} message
512
+ * @param {!jspb.BinaryWriter} writer
513
+ * @suppress {unusedLocalVariables} f is only used for nested messages
514
+ */
515
+ proto.mavsdk.rpc.shell.SubscribeReceiveRequest.serializeBinaryToWriter = function(message, writer) {
516
+ var f = undefined;
517
+ };
518
+
519
+
520
+
521
+
522
+
523
+ if (jspb.Message.GENERATE_TO_OBJECT) {
524
+ /**
525
+ * Creates an object representation of this proto.
526
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
527
+ * Optional fields that are not set will be set to undefined.
528
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
529
+ * For the list of reserved names please see:
530
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
531
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
532
+ * JSPB instance for transitional soy proto support:
533
+ * http://goto/soy-param-migration
534
+ * @return {!Object}
535
+ */
536
+ proto.mavsdk.rpc.shell.ReceiveResponse.prototype.toObject = function(opt_includeInstance) {
537
+ return proto.mavsdk.rpc.shell.ReceiveResponse.toObject(opt_includeInstance, this);
538
+ };
539
+
540
+
541
+ /**
542
+ * Static version of the {@see toObject} method.
543
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
544
+ * the JSPB instance for transitional soy proto support:
545
+ * http://goto/soy-param-migration
546
+ * @param {!proto.mavsdk.rpc.shell.ReceiveResponse} msg The msg instance to transform.
547
+ * @return {!Object}
548
+ * @suppress {unusedLocalVariables} f is only used for nested messages
549
+ */
550
+ proto.mavsdk.rpc.shell.ReceiveResponse.toObject = function(includeInstance, msg) {
551
+ var f, obj = {
552
+ data: jspb.Message.getFieldWithDefault(msg, 1, "")
553
+ };
554
+
555
+ if (includeInstance) {
556
+ obj.$jspbMessageInstance = msg;
557
+ }
558
+ return obj;
559
+ };
560
+ }
561
+
562
+
563
+ /**
564
+ * Deserializes binary data (in protobuf wire format).
565
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
566
+ * @return {!proto.mavsdk.rpc.shell.ReceiveResponse}
567
+ */
568
+ proto.mavsdk.rpc.shell.ReceiveResponse.deserializeBinary = function(bytes) {
569
+ var reader = new jspb.BinaryReader(bytes);
570
+ var msg = new proto.mavsdk.rpc.shell.ReceiveResponse;
571
+ return proto.mavsdk.rpc.shell.ReceiveResponse.deserializeBinaryFromReader(msg, reader);
572
+ };
573
+
574
+
575
+ /**
576
+ * Deserializes binary data (in protobuf wire format) from the
577
+ * given reader into the given message object.
578
+ * @param {!proto.mavsdk.rpc.shell.ReceiveResponse} msg The message object to deserialize into.
579
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
580
+ * @return {!proto.mavsdk.rpc.shell.ReceiveResponse}
581
+ */
582
+ proto.mavsdk.rpc.shell.ReceiveResponse.deserializeBinaryFromReader = function(msg, reader) {
583
+ while (reader.nextField()) {
584
+ if (reader.isEndGroup()) {
585
+ break;
586
+ }
587
+ var field = reader.getFieldNumber();
588
+ switch (field) {
589
+ case 1:
590
+ var value = /** @type {string} */ (reader.readString());
591
+ msg.setData(value);
592
+ break;
593
+ default:
594
+ reader.skipField();
595
+ break;
596
+ }
597
+ }
598
+ return msg;
599
+ };
600
+
601
+
602
+ /**
603
+ * Serializes the message to binary data (in protobuf wire format).
604
+ * @return {!Uint8Array}
605
+ */
606
+ proto.mavsdk.rpc.shell.ReceiveResponse.prototype.serializeBinary = function() {
607
+ var writer = new jspb.BinaryWriter();
608
+ proto.mavsdk.rpc.shell.ReceiveResponse.serializeBinaryToWriter(this, writer);
609
+ return writer.getResultBuffer();
610
+ };
611
+
612
+
613
+ /**
614
+ * Serializes the given message to binary data (in protobuf wire
615
+ * format), writing to the given BinaryWriter.
616
+ * @param {!proto.mavsdk.rpc.shell.ReceiveResponse} message
617
+ * @param {!jspb.BinaryWriter} writer
618
+ * @suppress {unusedLocalVariables} f is only used for nested messages
619
+ */
620
+ proto.mavsdk.rpc.shell.ReceiveResponse.serializeBinaryToWriter = function(message, writer) {
621
+ var f = undefined;
622
+ f = message.getData();
623
+ if (f.length > 0) {
624
+ writer.writeString(
625
+ 1,
626
+ f
627
+ );
628
+ }
629
+ };
630
+
631
+
632
+ /**
633
+ * optional string data = 1;
634
+ * @return {string}
635
+ */
636
+ proto.mavsdk.rpc.shell.ReceiveResponse.prototype.getData = function() {
637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
638
+ };
639
+
640
+
641
+ /**
642
+ * @param {string} value
643
+ * @return {!proto.mavsdk.rpc.shell.ReceiveResponse} returns this
644
+ */
645
+ proto.mavsdk.rpc.shell.ReceiveResponse.prototype.setData = function(value) {
646
+ return jspb.Message.setProto3StringField(this, 1, value);
647
+ };
648
+
649
+
650
+
651
+
652
+
653
+ if (jspb.Message.GENERATE_TO_OBJECT) {
654
+ /**
655
+ * Creates an object representation of this proto.
656
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
657
+ * Optional fields that are not set will be set to undefined.
658
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
659
+ * For the list of reserved names please see:
660
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
661
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
662
+ * JSPB instance for transitional soy proto support:
663
+ * http://goto/soy-param-migration
664
+ * @return {!Object}
665
+ */
666
+ proto.mavsdk.rpc.shell.ShellResult.prototype.toObject = function(opt_includeInstance) {
667
+ return proto.mavsdk.rpc.shell.ShellResult.toObject(opt_includeInstance, this);
668
+ };
669
+
670
+
671
+ /**
672
+ * Static version of the {@see toObject} method.
673
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
674
+ * the JSPB instance for transitional soy proto support:
675
+ * http://goto/soy-param-migration
676
+ * @param {!proto.mavsdk.rpc.shell.ShellResult} msg The msg instance to transform.
677
+ * @return {!Object}
678
+ * @suppress {unusedLocalVariables} f is only used for nested messages
679
+ */
680
+ proto.mavsdk.rpc.shell.ShellResult.toObject = function(includeInstance, msg) {
681
+ var f, obj = {
682
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
683
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
684
+ };
685
+
686
+ if (includeInstance) {
687
+ obj.$jspbMessageInstance = msg;
688
+ }
689
+ return obj;
690
+ };
691
+ }
692
+
693
+
694
+ /**
695
+ * Deserializes binary data (in protobuf wire format).
696
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
697
+ * @return {!proto.mavsdk.rpc.shell.ShellResult}
698
+ */
699
+ proto.mavsdk.rpc.shell.ShellResult.deserializeBinary = function(bytes) {
700
+ var reader = new jspb.BinaryReader(bytes);
701
+ var msg = new proto.mavsdk.rpc.shell.ShellResult;
702
+ return proto.mavsdk.rpc.shell.ShellResult.deserializeBinaryFromReader(msg, reader);
703
+ };
704
+
705
+
706
+ /**
707
+ * Deserializes binary data (in protobuf wire format) from the
708
+ * given reader into the given message object.
709
+ * @param {!proto.mavsdk.rpc.shell.ShellResult} msg The message object to deserialize into.
710
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
711
+ * @return {!proto.mavsdk.rpc.shell.ShellResult}
712
+ */
713
+ proto.mavsdk.rpc.shell.ShellResult.deserializeBinaryFromReader = function(msg, reader) {
714
+ while (reader.nextField()) {
715
+ if (reader.isEndGroup()) {
716
+ break;
717
+ }
718
+ var field = reader.getFieldNumber();
719
+ switch (field) {
720
+ case 1:
721
+ var value = /** @type {!proto.mavsdk.rpc.shell.ShellResult.Result} */ (reader.readEnum());
722
+ msg.setResult(value);
723
+ break;
724
+ case 2:
725
+ var value = /** @type {string} */ (reader.readString());
726
+ msg.setResultStr(value);
727
+ break;
728
+ default:
729
+ reader.skipField();
730
+ break;
731
+ }
732
+ }
733
+ return msg;
734
+ };
735
+
736
+
737
+ /**
738
+ * Serializes the message to binary data (in protobuf wire format).
739
+ * @return {!Uint8Array}
740
+ */
741
+ proto.mavsdk.rpc.shell.ShellResult.prototype.serializeBinary = function() {
742
+ var writer = new jspb.BinaryWriter();
743
+ proto.mavsdk.rpc.shell.ShellResult.serializeBinaryToWriter(this, writer);
744
+ return writer.getResultBuffer();
745
+ };
746
+
747
+
748
+ /**
749
+ * Serializes the given message to binary data (in protobuf wire
750
+ * format), writing to the given BinaryWriter.
751
+ * @param {!proto.mavsdk.rpc.shell.ShellResult} message
752
+ * @param {!jspb.BinaryWriter} writer
753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
754
+ */
755
+ proto.mavsdk.rpc.shell.ShellResult.serializeBinaryToWriter = function(message, writer) {
756
+ var f = undefined;
757
+ f = message.getResult();
758
+ if (f !== 0.0) {
759
+ writer.writeEnum(
760
+ 1,
761
+ f
762
+ );
763
+ }
764
+ f = message.getResultStr();
765
+ if (f.length > 0) {
766
+ writer.writeString(
767
+ 2,
768
+ f
769
+ );
770
+ }
771
+ };
772
+
773
+
774
+ /**
775
+ * @enum {number}
776
+ */
777
+ proto.mavsdk.rpc.shell.ShellResult.Result = {
778
+ RESULT_UNKNOWN: 0,
779
+ RESULT_SUCCESS: 1,
780
+ RESULT_NO_SYSTEM: 2,
781
+ RESULT_CONNECTION_ERROR: 3,
782
+ RESULT_NO_RESPONSE: 4,
783
+ RESULT_BUSY: 5
784
+ };
785
+
786
+ /**
787
+ * optional Result result = 1;
788
+ * @return {!proto.mavsdk.rpc.shell.ShellResult.Result}
789
+ */
790
+ proto.mavsdk.rpc.shell.ShellResult.prototype.getResult = function() {
791
+ return /** @type {!proto.mavsdk.rpc.shell.ShellResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
792
+ };
793
+
794
+
795
+ /**
796
+ * @param {!proto.mavsdk.rpc.shell.ShellResult.Result} value
797
+ * @return {!proto.mavsdk.rpc.shell.ShellResult} returns this
798
+ */
799
+ proto.mavsdk.rpc.shell.ShellResult.prototype.setResult = function(value) {
800
+ return jspb.Message.setProto3EnumField(this, 1, value);
801
+ };
802
+
803
+
804
+ /**
805
+ * optional string result_str = 2;
806
+ * @return {string}
807
+ */
808
+ proto.mavsdk.rpc.shell.ShellResult.prototype.getResultStr = function() {
809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
810
+ };
811
+
812
+
813
+ /**
814
+ * @param {string} value
815
+ * @return {!proto.mavsdk.rpc.shell.ShellResult} returns this
816
+ */
817
+ proto.mavsdk.rpc.shell.ShellResult.prototype.setResultStr = function(value) {
818
+ return jspb.Message.setProto3StringField(this, 2, value);
819
+ };
820
+
821
+
822
+ goog.object.extend(exports, proto.mavsdk.rpc.shell);