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,1232 @@
1
+ /* eslint-disable */
2
+ // source: manual_control/manual_control.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.manual_control.ManualControlResult', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.ManualControlResult.Result', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.SetManualControlInputRequest', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.SetManualControlInputResponse', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest', null, global);
32
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse', null, global);
33
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.StartPositionControlRequest', null, global);
34
+ goog.exportSymbol('proto.mavsdk.rpc.manual_control.StartPositionControlResponse', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.mavsdk.rpc.manual_control.StartPositionControlRequest, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.displayName = 'proto.mavsdk.rpc.manual_control.StartPositionControlRequest';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.mavsdk.rpc.manual_control.StartPositionControlResponse, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.displayName = 'proto.mavsdk.rpc.manual_control.StartPositionControlResponse';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.displayName = 'proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.displayName = 'proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse';
118
+ }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.mavsdk.rpc.manual_control.SetManualControlInputRequest, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.displayName = 'proto.mavsdk.rpc.manual_control.SetManualControlInputRequest';
139
+ }
140
+ /**
141
+ * Generated by JsPbCodeGenerator.
142
+ * @param {Array=} opt_data Optional initial data array, typically from a
143
+ * server response, or constructed directly in Javascript. The array is used
144
+ * in place and becomes part of the constructed object. It is not cloned.
145
+ * If no data is provided, the constructed object will be empty, but still
146
+ * valid.
147
+ * @extends {jspb.Message}
148
+ * @constructor
149
+ */
150
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.mavsdk.rpc.manual_control.SetManualControlInputResponse, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.displayName = 'proto.mavsdk.rpc.manual_control.SetManualControlInputResponse';
160
+ }
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array=} opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message}
169
+ * @constructor
170
+ */
171
+ proto.mavsdk.rpc.manual_control.ManualControlResult = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
+ };
174
+ goog.inherits(proto.mavsdk.rpc.manual_control.ManualControlResult, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.mavsdk.rpc.manual_control.ManualControlResult.displayName = 'proto.mavsdk.rpc.manual_control.ManualControlResult';
181
+ }
182
+
183
+
184
+
185
+ if (jspb.Message.GENERATE_TO_OBJECT) {
186
+ /**
187
+ * Creates an object representation of this proto.
188
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
189
+ * Optional fields that are not set will be set to undefined.
190
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
191
+ * For the list of reserved names please see:
192
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
193
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
194
+ * JSPB instance for transitional soy proto support:
195
+ * http://goto/soy-param-migration
196
+ * @return {!Object}
197
+ */
198
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.prototype.toObject = function(opt_includeInstance) {
199
+ return proto.mavsdk.rpc.manual_control.StartPositionControlRequest.toObject(opt_includeInstance, this);
200
+ };
201
+
202
+
203
+ /**
204
+ * Static version of the {@see toObject} method.
205
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
206
+ * the JSPB instance for transitional soy proto support:
207
+ * http://goto/soy-param-migration
208
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlRequest} msg The msg instance to transform.
209
+ * @return {!Object}
210
+ * @suppress {unusedLocalVariables} f is only used for nested messages
211
+ */
212
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.toObject = function(includeInstance, msg) {
213
+ var f, obj = {
214
+
215
+ };
216
+
217
+ if (includeInstance) {
218
+ obj.$jspbMessageInstance = msg;
219
+ }
220
+ return obj;
221
+ };
222
+ }
223
+
224
+
225
+ /**
226
+ * Deserializes binary data (in protobuf wire format).
227
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
228
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlRequest}
229
+ */
230
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.deserializeBinary = function(bytes) {
231
+ var reader = new jspb.BinaryReader(bytes);
232
+ var msg = new proto.mavsdk.rpc.manual_control.StartPositionControlRequest;
233
+ return proto.mavsdk.rpc.manual_control.StartPositionControlRequest.deserializeBinaryFromReader(msg, reader);
234
+ };
235
+
236
+
237
+ /**
238
+ * Deserializes binary data (in protobuf wire format) from the
239
+ * given reader into the given message object.
240
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlRequest} msg The message object to deserialize into.
241
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
242
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlRequest}
243
+ */
244
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.deserializeBinaryFromReader = function(msg, reader) {
245
+ while (reader.nextField()) {
246
+ if (reader.isEndGroup()) {
247
+ break;
248
+ }
249
+ var field = reader.getFieldNumber();
250
+ switch (field) {
251
+ default:
252
+ reader.skipField();
253
+ break;
254
+ }
255
+ }
256
+ return msg;
257
+ };
258
+
259
+
260
+ /**
261
+ * Serializes the message to binary data (in protobuf wire format).
262
+ * @return {!Uint8Array}
263
+ */
264
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.prototype.serializeBinary = function() {
265
+ var writer = new jspb.BinaryWriter();
266
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.serializeBinaryToWriter(this, writer);
267
+ return writer.getResultBuffer();
268
+ };
269
+
270
+
271
+ /**
272
+ * Serializes the given message to binary data (in protobuf wire
273
+ * format), writing to the given BinaryWriter.
274
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlRequest} message
275
+ * @param {!jspb.BinaryWriter} writer
276
+ * @suppress {unusedLocalVariables} f is only used for nested messages
277
+ */
278
+ proto.mavsdk.rpc.manual_control.StartPositionControlRequest.serializeBinaryToWriter = function(message, writer) {
279
+ var f = undefined;
280
+ };
281
+
282
+
283
+
284
+
285
+
286
+ if (jspb.Message.GENERATE_TO_OBJECT) {
287
+ /**
288
+ * Creates an object representation of this proto.
289
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
290
+ * Optional fields that are not set will be set to undefined.
291
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
292
+ * For the list of reserved names please see:
293
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
294
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
295
+ * JSPB instance for transitional soy proto support:
296
+ * http://goto/soy-param-migration
297
+ * @return {!Object}
298
+ */
299
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.toObject = function(opt_includeInstance) {
300
+ return proto.mavsdk.rpc.manual_control.StartPositionControlResponse.toObject(opt_includeInstance, this);
301
+ };
302
+
303
+
304
+ /**
305
+ * Static version of the {@see toObject} method.
306
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
307
+ * the JSPB instance for transitional soy proto support:
308
+ * http://goto/soy-param-migration
309
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse} msg The msg instance to transform.
310
+ * @return {!Object}
311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
312
+ */
313
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.toObject = function(includeInstance, msg) {
314
+ var f, obj = {
315
+ manualControlResult: (f = msg.getManualControlResult()) && proto.mavsdk.rpc.manual_control.ManualControlResult.toObject(includeInstance, f)
316
+ };
317
+
318
+ if (includeInstance) {
319
+ obj.$jspbMessageInstance = msg;
320
+ }
321
+ return obj;
322
+ };
323
+ }
324
+
325
+
326
+ /**
327
+ * Deserializes binary data (in protobuf wire format).
328
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
329
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse}
330
+ */
331
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.deserializeBinary = function(bytes) {
332
+ var reader = new jspb.BinaryReader(bytes);
333
+ var msg = new proto.mavsdk.rpc.manual_control.StartPositionControlResponse;
334
+ return proto.mavsdk.rpc.manual_control.StartPositionControlResponse.deserializeBinaryFromReader(msg, reader);
335
+ };
336
+
337
+
338
+ /**
339
+ * Deserializes binary data (in protobuf wire format) from the
340
+ * given reader into the given message object.
341
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse} msg The message object to deserialize into.
342
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
343
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse}
344
+ */
345
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.deserializeBinaryFromReader = function(msg, reader) {
346
+ while (reader.nextField()) {
347
+ if (reader.isEndGroup()) {
348
+ break;
349
+ }
350
+ var field = reader.getFieldNumber();
351
+ switch (field) {
352
+ case 1:
353
+ var value = new proto.mavsdk.rpc.manual_control.ManualControlResult;
354
+ reader.readMessage(value,proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinaryFromReader);
355
+ msg.setManualControlResult(value);
356
+ break;
357
+ default:
358
+ reader.skipField();
359
+ break;
360
+ }
361
+ }
362
+ return msg;
363
+ };
364
+
365
+
366
+ /**
367
+ * Serializes the message to binary data (in protobuf wire format).
368
+ * @return {!Uint8Array}
369
+ */
370
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.serializeBinary = function() {
371
+ var writer = new jspb.BinaryWriter();
372
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.serializeBinaryToWriter(this, writer);
373
+ return writer.getResultBuffer();
374
+ };
375
+
376
+
377
+ /**
378
+ * Serializes the given message to binary data (in protobuf wire
379
+ * format), writing to the given BinaryWriter.
380
+ * @param {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse} message
381
+ * @param {!jspb.BinaryWriter} writer
382
+ * @suppress {unusedLocalVariables} f is only used for nested messages
383
+ */
384
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.serializeBinaryToWriter = function(message, writer) {
385
+ var f = undefined;
386
+ f = message.getManualControlResult();
387
+ if (f != null) {
388
+ writer.writeMessage(
389
+ 1,
390
+ f,
391
+ proto.mavsdk.rpc.manual_control.ManualControlResult.serializeBinaryToWriter
392
+ );
393
+ }
394
+ };
395
+
396
+
397
+ /**
398
+ * optional ManualControlResult manual_control_result = 1;
399
+ * @return {?proto.mavsdk.rpc.manual_control.ManualControlResult}
400
+ */
401
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.getManualControlResult = function() {
402
+ return /** @type{?proto.mavsdk.rpc.manual_control.ManualControlResult} */ (
403
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.manual_control.ManualControlResult, 1));
404
+ };
405
+
406
+
407
+ /**
408
+ * @param {?proto.mavsdk.rpc.manual_control.ManualControlResult|undefined} value
409
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse} returns this
410
+ */
411
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.setManualControlResult = function(value) {
412
+ return jspb.Message.setWrapperField(this, 1, value);
413
+ };
414
+
415
+
416
+ /**
417
+ * Clears the message field making it undefined.
418
+ * @return {!proto.mavsdk.rpc.manual_control.StartPositionControlResponse} returns this
419
+ */
420
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.clearManualControlResult = function() {
421
+ return this.setManualControlResult(undefined);
422
+ };
423
+
424
+
425
+ /**
426
+ * Returns whether this field is set.
427
+ * @return {boolean}
428
+ */
429
+ proto.mavsdk.rpc.manual_control.StartPositionControlResponse.prototype.hasManualControlResult = function() {
430
+ return jspb.Message.getField(this, 1) != null;
431
+ };
432
+
433
+
434
+
435
+
436
+
437
+ if (jspb.Message.GENERATE_TO_OBJECT) {
438
+ /**
439
+ * Creates an object representation of this proto.
440
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
441
+ * Optional fields that are not set will be set to undefined.
442
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
443
+ * For the list of reserved names please see:
444
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
445
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
446
+ * JSPB instance for transitional soy proto support:
447
+ * http://goto/soy-param-migration
448
+ * @return {!Object}
449
+ */
450
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.prototype.toObject = function(opt_includeInstance) {
451
+ return proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.toObject(opt_includeInstance, this);
452
+ };
453
+
454
+
455
+ /**
456
+ * Static version of the {@see toObject} method.
457
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
458
+ * the JSPB instance for transitional soy proto support:
459
+ * http://goto/soy-param-migration
460
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest} msg The msg instance to transform.
461
+ * @return {!Object}
462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
463
+ */
464
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.toObject = function(includeInstance, msg) {
465
+ var f, obj = {
466
+
467
+ };
468
+
469
+ if (includeInstance) {
470
+ obj.$jspbMessageInstance = msg;
471
+ }
472
+ return obj;
473
+ };
474
+ }
475
+
476
+
477
+ /**
478
+ * Deserializes binary data (in protobuf wire format).
479
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
480
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest}
481
+ */
482
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.deserializeBinary = function(bytes) {
483
+ var reader = new jspb.BinaryReader(bytes);
484
+ var msg = new proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest;
485
+ return proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.deserializeBinaryFromReader(msg, reader);
486
+ };
487
+
488
+
489
+ /**
490
+ * Deserializes binary data (in protobuf wire format) from the
491
+ * given reader into the given message object.
492
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest} msg The message object to deserialize into.
493
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
494
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest}
495
+ */
496
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.deserializeBinaryFromReader = function(msg, reader) {
497
+ while (reader.nextField()) {
498
+ if (reader.isEndGroup()) {
499
+ break;
500
+ }
501
+ var field = reader.getFieldNumber();
502
+ switch (field) {
503
+ default:
504
+ reader.skipField();
505
+ break;
506
+ }
507
+ }
508
+ return msg;
509
+ };
510
+
511
+
512
+ /**
513
+ * Serializes the message to binary data (in protobuf wire format).
514
+ * @return {!Uint8Array}
515
+ */
516
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.prototype.serializeBinary = function() {
517
+ var writer = new jspb.BinaryWriter();
518
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.serializeBinaryToWriter(this, writer);
519
+ return writer.getResultBuffer();
520
+ };
521
+
522
+
523
+ /**
524
+ * Serializes the given message to binary data (in protobuf wire
525
+ * format), writing to the given BinaryWriter.
526
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest} message
527
+ * @param {!jspb.BinaryWriter} writer
528
+ * @suppress {unusedLocalVariables} f is only used for nested messages
529
+ */
530
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlRequest.serializeBinaryToWriter = function(message, writer) {
531
+ var f = undefined;
532
+ };
533
+
534
+
535
+
536
+
537
+
538
+ if (jspb.Message.GENERATE_TO_OBJECT) {
539
+ /**
540
+ * Creates an object representation of this proto.
541
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
542
+ * Optional fields that are not set will be set to undefined.
543
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
544
+ * For the list of reserved names please see:
545
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
546
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
547
+ * JSPB instance for transitional soy proto support:
548
+ * http://goto/soy-param-migration
549
+ * @return {!Object}
550
+ */
551
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.toObject = function(opt_includeInstance) {
552
+ return proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.toObject(opt_includeInstance, this);
553
+ };
554
+
555
+
556
+ /**
557
+ * Static version of the {@see toObject} method.
558
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
559
+ * the JSPB instance for transitional soy proto support:
560
+ * http://goto/soy-param-migration
561
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse} msg The msg instance to transform.
562
+ * @return {!Object}
563
+ * @suppress {unusedLocalVariables} f is only used for nested messages
564
+ */
565
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.toObject = function(includeInstance, msg) {
566
+ var f, obj = {
567
+ manualControlResult: (f = msg.getManualControlResult()) && proto.mavsdk.rpc.manual_control.ManualControlResult.toObject(includeInstance, f)
568
+ };
569
+
570
+ if (includeInstance) {
571
+ obj.$jspbMessageInstance = msg;
572
+ }
573
+ return obj;
574
+ };
575
+ }
576
+
577
+
578
+ /**
579
+ * Deserializes binary data (in protobuf wire format).
580
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
581
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse}
582
+ */
583
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.deserializeBinary = function(bytes) {
584
+ var reader = new jspb.BinaryReader(bytes);
585
+ var msg = new proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse;
586
+ return proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.deserializeBinaryFromReader(msg, reader);
587
+ };
588
+
589
+
590
+ /**
591
+ * Deserializes binary data (in protobuf wire format) from the
592
+ * given reader into the given message object.
593
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse} msg The message object to deserialize into.
594
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
595
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse}
596
+ */
597
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.deserializeBinaryFromReader = function(msg, reader) {
598
+ while (reader.nextField()) {
599
+ if (reader.isEndGroup()) {
600
+ break;
601
+ }
602
+ var field = reader.getFieldNumber();
603
+ switch (field) {
604
+ case 1:
605
+ var value = new proto.mavsdk.rpc.manual_control.ManualControlResult;
606
+ reader.readMessage(value,proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinaryFromReader);
607
+ msg.setManualControlResult(value);
608
+ break;
609
+ default:
610
+ reader.skipField();
611
+ break;
612
+ }
613
+ }
614
+ return msg;
615
+ };
616
+
617
+
618
+ /**
619
+ * Serializes the message to binary data (in protobuf wire format).
620
+ * @return {!Uint8Array}
621
+ */
622
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.serializeBinary = function() {
623
+ var writer = new jspb.BinaryWriter();
624
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.serializeBinaryToWriter(this, writer);
625
+ return writer.getResultBuffer();
626
+ };
627
+
628
+
629
+ /**
630
+ * Serializes the given message to binary data (in protobuf wire
631
+ * format), writing to the given BinaryWriter.
632
+ * @param {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse} message
633
+ * @param {!jspb.BinaryWriter} writer
634
+ * @suppress {unusedLocalVariables} f is only used for nested messages
635
+ */
636
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.serializeBinaryToWriter = function(message, writer) {
637
+ var f = undefined;
638
+ f = message.getManualControlResult();
639
+ if (f != null) {
640
+ writer.writeMessage(
641
+ 1,
642
+ f,
643
+ proto.mavsdk.rpc.manual_control.ManualControlResult.serializeBinaryToWriter
644
+ );
645
+ }
646
+ };
647
+
648
+
649
+ /**
650
+ * optional ManualControlResult manual_control_result = 1;
651
+ * @return {?proto.mavsdk.rpc.manual_control.ManualControlResult}
652
+ */
653
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.getManualControlResult = function() {
654
+ return /** @type{?proto.mavsdk.rpc.manual_control.ManualControlResult} */ (
655
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.manual_control.ManualControlResult, 1));
656
+ };
657
+
658
+
659
+ /**
660
+ * @param {?proto.mavsdk.rpc.manual_control.ManualControlResult|undefined} value
661
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse} returns this
662
+ */
663
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.setManualControlResult = function(value) {
664
+ return jspb.Message.setWrapperField(this, 1, value);
665
+ };
666
+
667
+
668
+ /**
669
+ * Clears the message field making it undefined.
670
+ * @return {!proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse} returns this
671
+ */
672
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.clearManualControlResult = function() {
673
+ return this.setManualControlResult(undefined);
674
+ };
675
+
676
+
677
+ /**
678
+ * Returns whether this field is set.
679
+ * @return {boolean}
680
+ */
681
+ proto.mavsdk.rpc.manual_control.StartAltitudeControlResponse.prototype.hasManualControlResult = function() {
682
+ return jspb.Message.getField(this, 1) != null;
683
+ };
684
+
685
+
686
+
687
+
688
+
689
+ if (jspb.Message.GENERATE_TO_OBJECT) {
690
+ /**
691
+ * Creates an object representation of this proto.
692
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
693
+ * Optional fields that are not set will be set to undefined.
694
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
695
+ * For the list of reserved names please see:
696
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
697
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
698
+ * JSPB instance for transitional soy proto support:
699
+ * http://goto/soy-param-migration
700
+ * @return {!Object}
701
+ */
702
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.toObject = function(opt_includeInstance) {
703
+ return proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.toObject(opt_includeInstance, this);
704
+ };
705
+
706
+
707
+ /**
708
+ * Static version of the {@see toObject} method.
709
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
710
+ * the JSPB instance for transitional soy proto support:
711
+ * http://goto/soy-param-migration
712
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} msg The msg instance to transform.
713
+ * @return {!Object}
714
+ * @suppress {unusedLocalVariables} f is only used for nested messages
715
+ */
716
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.toObject = function(includeInstance, msg) {
717
+ var f, obj = {
718
+ x: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
719
+ y: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
720
+ z: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
721
+ r: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
722
+ };
723
+
724
+ if (includeInstance) {
725
+ obj.$jspbMessageInstance = msg;
726
+ }
727
+ return obj;
728
+ };
729
+ }
730
+
731
+
732
+ /**
733
+ * Deserializes binary data (in protobuf wire format).
734
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
735
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest}
736
+ */
737
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.deserializeBinary = function(bytes) {
738
+ var reader = new jspb.BinaryReader(bytes);
739
+ var msg = new proto.mavsdk.rpc.manual_control.SetManualControlInputRequest;
740
+ return proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.deserializeBinaryFromReader(msg, reader);
741
+ };
742
+
743
+
744
+ /**
745
+ * Deserializes binary data (in protobuf wire format) from the
746
+ * given reader into the given message object.
747
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} msg The message object to deserialize into.
748
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
749
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest}
750
+ */
751
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.deserializeBinaryFromReader = function(msg, reader) {
752
+ while (reader.nextField()) {
753
+ if (reader.isEndGroup()) {
754
+ break;
755
+ }
756
+ var field = reader.getFieldNumber();
757
+ switch (field) {
758
+ case 1:
759
+ var value = /** @type {number} */ (reader.readFloat());
760
+ msg.setX(value);
761
+ break;
762
+ case 2:
763
+ var value = /** @type {number} */ (reader.readFloat());
764
+ msg.setY(value);
765
+ break;
766
+ case 3:
767
+ var value = /** @type {number} */ (reader.readFloat());
768
+ msg.setZ(value);
769
+ break;
770
+ case 4:
771
+ var value = /** @type {number} */ (reader.readFloat());
772
+ msg.setR(value);
773
+ break;
774
+ default:
775
+ reader.skipField();
776
+ break;
777
+ }
778
+ }
779
+ return msg;
780
+ };
781
+
782
+
783
+ /**
784
+ * Serializes the message to binary data (in protobuf wire format).
785
+ * @return {!Uint8Array}
786
+ */
787
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.serializeBinary = function() {
788
+ var writer = new jspb.BinaryWriter();
789
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.serializeBinaryToWriter(this, writer);
790
+ return writer.getResultBuffer();
791
+ };
792
+
793
+
794
+ /**
795
+ * Serializes the given message to binary data (in protobuf wire
796
+ * format), writing to the given BinaryWriter.
797
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} message
798
+ * @param {!jspb.BinaryWriter} writer
799
+ * @suppress {unusedLocalVariables} f is only used for nested messages
800
+ */
801
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.serializeBinaryToWriter = function(message, writer) {
802
+ var f = undefined;
803
+ f = message.getX();
804
+ if (f !== 0.0) {
805
+ writer.writeFloat(
806
+ 1,
807
+ f
808
+ );
809
+ }
810
+ f = message.getY();
811
+ if (f !== 0.0) {
812
+ writer.writeFloat(
813
+ 2,
814
+ f
815
+ );
816
+ }
817
+ f = message.getZ();
818
+ if (f !== 0.0) {
819
+ writer.writeFloat(
820
+ 3,
821
+ f
822
+ );
823
+ }
824
+ f = message.getR();
825
+ if (f !== 0.0) {
826
+ writer.writeFloat(
827
+ 4,
828
+ f
829
+ );
830
+ }
831
+ };
832
+
833
+
834
+ /**
835
+ * optional float x = 1;
836
+ * @return {number}
837
+ */
838
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.getX = function() {
839
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
840
+ };
841
+
842
+
843
+ /**
844
+ * @param {number} value
845
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} returns this
846
+ */
847
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.setX = function(value) {
848
+ return jspb.Message.setProto3FloatField(this, 1, value);
849
+ };
850
+
851
+
852
+ /**
853
+ * optional float y = 2;
854
+ * @return {number}
855
+ */
856
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.getY = function() {
857
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
858
+ };
859
+
860
+
861
+ /**
862
+ * @param {number} value
863
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} returns this
864
+ */
865
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.setY = function(value) {
866
+ return jspb.Message.setProto3FloatField(this, 2, value);
867
+ };
868
+
869
+
870
+ /**
871
+ * optional float z = 3;
872
+ * @return {number}
873
+ */
874
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.getZ = function() {
875
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
876
+ };
877
+
878
+
879
+ /**
880
+ * @param {number} value
881
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} returns this
882
+ */
883
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.setZ = function(value) {
884
+ return jspb.Message.setProto3FloatField(this, 3, value);
885
+ };
886
+
887
+
888
+ /**
889
+ * optional float r = 4;
890
+ * @return {number}
891
+ */
892
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.getR = function() {
893
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
894
+ };
895
+
896
+
897
+ /**
898
+ * @param {number} value
899
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputRequest} returns this
900
+ */
901
+ proto.mavsdk.rpc.manual_control.SetManualControlInputRequest.prototype.setR = function(value) {
902
+ return jspb.Message.setProto3FloatField(this, 4, value);
903
+ };
904
+
905
+
906
+
907
+
908
+
909
+ if (jspb.Message.GENERATE_TO_OBJECT) {
910
+ /**
911
+ * Creates an object representation of this proto.
912
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
913
+ * Optional fields that are not set will be set to undefined.
914
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
915
+ * For the list of reserved names please see:
916
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
917
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
918
+ * JSPB instance for transitional soy proto support:
919
+ * http://goto/soy-param-migration
920
+ * @return {!Object}
921
+ */
922
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.toObject = function(opt_includeInstance) {
923
+ return proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.toObject(opt_includeInstance, this);
924
+ };
925
+
926
+
927
+ /**
928
+ * Static version of the {@see toObject} method.
929
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
930
+ * the JSPB instance for transitional soy proto support:
931
+ * http://goto/soy-param-migration
932
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse} msg The msg instance to transform.
933
+ * @return {!Object}
934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
935
+ */
936
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.toObject = function(includeInstance, msg) {
937
+ var f, obj = {
938
+ manualControlResult: (f = msg.getManualControlResult()) && proto.mavsdk.rpc.manual_control.ManualControlResult.toObject(includeInstance, f)
939
+ };
940
+
941
+ if (includeInstance) {
942
+ obj.$jspbMessageInstance = msg;
943
+ }
944
+ return obj;
945
+ };
946
+ }
947
+
948
+
949
+ /**
950
+ * Deserializes binary data (in protobuf wire format).
951
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
952
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse}
953
+ */
954
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.deserializeBinary = function(bytes) {
955
+ var reader = new jspb.BinaryReader(bytes);
956
+ var msg = new proto.mavsdk.rpc.manual_control.SetManualControlInputResponse;
957
+ return proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.deserializeBinaryFromReader(msg, reader);
958
+ };
959
+
960
+
961
+ /**
962
+ * Deserializes binary data (in protobuf wire format) from the
963
+ * given reader into the given message object.
964
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse} msg The message object to deserialize into.
965
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
966
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse}
967
+ */
968
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.deserializeBinaryFromReader = function(msg, reader) {
969
+ while (reader.nextField()) {
970
+ if (reader.isEndGroup()) {
971
+ break;
972
+ }
973
+ var field = reader.getFieldNumber();
974
+ switch (field) {
975
+ case 1:
976
+ var value = new proto.mavsdk.rpc.manual_control.ManualControlResult;
977
+ reader.readMessage(value,proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinaryFromReader);
978
+ msg.setManualControlResult(value);
979
+ break;
980
+ default:
981
+ reader.skipField();
982
+ break;
983
+ }
984
+ }
985
+ return msg;
986
+ };
987
+
988
+
989
+ /**
990
+ * Serializes the message to binary data (in protobuf wire format).
991
+ * @return {!Uint8Array}
992
+ */
993
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.serializeBinary = function() {
994
+ var writer = new jspb.BinaryWriter();
995
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.serializeBinaryToWriter(this, writer);
996
+ return writer.getResultBuffer();
997
+ };
998
+
999
+
1000
+ /**
1001
+ * Serializes the given message to binary data (in protobuf wire
1002
+ * format), writing to the given BinaryWriter.
1003
+ * @param {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse} message
1004
+ * @param {!jspb.BinaryWriter} writer
1005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1006
+ */
1007
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.serializeBinaryToWriter = function(message, writer) {
1008
+ var f = undefined;
1009
+ f = message.getManualControlResult();
1010
+ if (f != null) {
1011
+ writer.writeMessage(
1012
+ 1,
1013
+ f,
1014
+ proto.mavsdk.rpc.manual_control.ManualControlResult.serializeBinaryToWriter
1015
+ );
1016
+ }
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * optional ManualControlResult manual_control_result = 1;
1022
+ * @return {?proto.mavsdk.rpc.manual_control.ManualControlResult}
1023
+ */
1024
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.getManualControlResult = function() {
1025
+ return /** @type{?proto.mavsdk.rpc.manual_control.ManualControlResult} */ (
1026
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.manual_control.ManualControlResult, 1));
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * @param {?proto.mavsdk.rpc.manual_control.ManualControlResult|undefined} value
1032
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse} returns this
1033
+ */
1034
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.setManualControlResult = function(value) {
1035
+ return jspb.Message.setWrapperField(this, 1, value);
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * Clears the message field making it undefined.
1041
+ * @return {!proto.mavsdk.rpc.manual_control.SetManualControlInputResponse} returns this
1042
+ */
1043
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.clearManualControlResult = function() {
1044
+ return this.setManualControlResult(undefined);
1045
+ };
1046
+
1047
+
1048
+ /**
1049
+ * Returns whether this field is set.
1050
+ * @return {boolean}
1051
+ */
1052
+ proto.mavsdk.rpc.manual_control.SetManualControlInputResponse.prototype.hasManualControlResult = function() {
1053
+ return jspb.Message.getField(this, 1) != null;
1054
+ };
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1061
+ /**
1062
+ * Creates an object representation of this proto.
1063
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1064
+ * Optional fields that are not set will be set to undefined.
1065
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1066
+ * For the list of reserved names please see:
1067
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1068
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1069
+ * JSPB instance for transitional soy proto support:
1070
+ * http://goto/soy-param-migration
1071
+ * @return {!Object}
1072
+ */
1073
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.toObject = function(opt_includeInstance) {
1074
+ return proto.mavsdk.rpc.manual_control.ManualControlResult.toObject(opt_includeInstance, this);
1075
+ };
1076
+
1077
+
1078
+ /**
1079
+ * Static version of the {@see toObject} method.
1080
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1081
+ * the JSPB instance for transitional soy proto support:
1082
+ * http://goto/soy-param-migration
1083
+ * @param {!proto.mavsdk.rpc.manual_control.ManualControlResult} msg The msg instance to transform.
1084
+ * @return {!Object}
1085
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1086
+ */
1087
+ proto.mavsdk.rpc.manual_control.ManualControlResult.toObject = function(includeInstance, msg) {
1088
+ var f, obj = {
1089
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
1090
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
1091
+ };
1092
+
1093
+ if (includeInstance) {
1094
+ obj.$jspbMessageInstance = msg;
1095
+ }
1096
+ return obj;
1097
+ };
1098
+ }
1099
+
1100
+
1101
+ /**
1102
+ * Deserializes binary data (in protobuf wire format).
1103
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1104
+ * @return {!proto.mavsdk.rpc.manual_control.ManualControlResult}
1105
+ */
1106
+ proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinary = function(bytes) {
1107
+ var reader = new jspb.BinaryReader(bytes);
1108
+ var msg = new proto.mavsdk.rpc.manual_control.ManualControlResult;
1109
+ return proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinaryFromReader(msg, reader);
1110
+ };
1111
+
1112
+
1113
+ /**
1114
+ * Deserializes binary data (in protobuf wire format) from the
1115
+ * given reader into the given message object.
1116
+ * @param {!proto.mavsdk.rpc.manual_control.ManualControlResult} msg The message object to deserialize into.
1117
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1118
+ * @return {!proto.mavsdk.rpc.manual_control.ManualControlResult}
1119
+ */
1120
+ proto.mavsdk.rpc.manual_control.ManualControlResult.deserializeBinaryFromReader = function(msg, reader) {
1121
+ while (reader.nextField()) {
1122
+ if (reader.isEndGroup()) {
1123
+ break;
1124
+ }
1125
+ var field = reader.getFieldNumber();
1126
+ switch (field) {
1127
+ case 1:
1128
+ var value = /** @type {!proto.mavsdk.rpc.manual_control.ManualControlResult.Result} */ (reader.readEnum());
1129
+ msg.setResult(value);
1130
+ break;
1131
+ case 2:
1132
+ var value = /** @type {string} */ (reader.readString());
1133
+ msg.setResultStr(value);
1134
+ break;
1135
+ default:
1136
+ reader.skipField();
1137
+ break;
1138
+ }
1139
+ }
1140
+ return msg;
1141
+ };
1142
+
1143
+
1144
+ /**
1145
+ * Serializes the message to binary data (in protobuf wire format).
1146
+ * @return {!Uint8Array}
1147
+ */
1148
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.serializeBinary = function() {
1149
+ var writer = new jspb.BinaryWriter();
1150
+ proto.mavsdk.rpc.manual_control.ManualControlResult.serializeBinaryToWriter(this, writer);
1151
+ return writer.getResultBuffer();
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * Serializes the given message to binary data (in protobuf wire
1157
+ * format), writing to the given BinaryWriter.
1158
+ * @param {!proto.mavsdk.rpc.manual_control.ManualControlResult} message
1159
+ * @param {!jspb.BinaryWriter} writer
1160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1161
+ */
1162
+ proto.mavsdk.rpc.manual_control.ManualControlResult.serializeBinaryToWriter = function(message, writer) {
1163
+ var f = undefined;
1164
+ f = message.getResult();
1165
+ if (f !== 0.0) {
1166
+ writer.writeEnum(
1167
+ 1,
1168
+ f
1169
+ );
1170
+ }
1171
+ f = message.getResultStr();
1172
+ if (f.length > 0) {
1173
+ writer.writeString(
1174
+ 2,
1175
+ f
1176
+ );
1177
+ }
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @enum {number}
1183
+ */
1184
+ proto.mavsdk.rpc.manual_control.ManualControlResult.Result = {
1185
+ RESULT_UNKNOWN: 0,
1186
+ RESULT_SUCCESS: 1,
1187
+ RESULT_NO_SYSTEM: 2,
1188
+ RESULT_CONNECTION_ERROR: 3,
1189
+ RESULT_BUSY: 4,
1190
+ RESULT_COMMAND_DENIED: 5,
1191
+ RESULT_TIMEOUT: 6,
1192
+ RESULT_INPUT_OUT_OF_RANGE: 7,
1193
+ RESULT_INPUT_NOT_SET: 8
1194
+ };
1195
+
1196
+ /**
1197
+ * optional Result result = 1;
1198
+ * @return {!proto.mavsdk.rpc.manual_control.ManualControlResult.Result}
1199
+ */
1200
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.getResult = function() {
1201
+ return /** @type {!proto.mavsdk.rpc.manual_control.ManualControlResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * @param {!proto.mavsdk.rpc.manual_control.ManualControlResult.Result} value
1207
+ * @return {!proto.mavsdk.rpc.manual_control.ManualControlResult} returns this
1208
+ */
1209
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.setResult = function(value) {
1210
+ return jspb.Message.setProto3EnumField(this, 1, value);
1211
+ };
1212
+
1213
+
1214
+ /**
1215
+ * optional string result_str = 2;
1216
+ * @return {string}
1217
+ */
1218
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.getResultStr = function() {
1219
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * @param {string} value
1225
+ * @return {!proto.mavsdk.rpc.manual_control.ManualControlResult} returns this
1226
+ */
1227
+ proto.mavsdk.rpc.manual_control.ManualControlResult.prototype.setResultStr = function(value) {
1228
+ return jspb.Message.setProto3StringField(this, 2, value);
1229
+ };
1230
+
1231
+
1232
+ goog.object.extend(exports, proto.mavsdk.rpc.manual_control);