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