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,3035 @@
1
+ /* eslint-disable */
2
+ // source: info/info.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.info.FlightInfo', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetFlightInformationRequest', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetFlightInformationResponse', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetIdentificationRequest', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetIdentificationResponse', null, global);
32
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetProductRequest', null, global);
33
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetProductResponse', null, global);
34
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetSpeedFactorRequest', null, global);
35
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetSpeedFactorResponse', null, global);
36
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetVersionRequest', null, global);
37
+ goog.exportSymbol('proto.mavsdk.rpc.info.GetVersionResponse', null, global);
38
+ goog.exportSymbol('proto.mavsdk.rpc.info.Identification', null, global);
39
+ goog.exportSymbol('proto.mavsdk.rpc.info.InfoResult', null, global);
40
+ goog.exportSymbol('proto.mavsdk.rpc.info.InfoResult.Result', null, global);
41
+ goog.exportSymbol('proto.mavsdk.rpc.info.Product', null, global);
42
+ goog.exportSymbol('proto.mavsdk.rpc.info.Version', null, global);
43
+ goog.exportSymbol('proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType', null, global);
44
+ /**
45
+ * Generated by JsPbCodeGenerator.
46
+ * @param {Array=} opt_data Optional initial data array, typically from a
47
+ * server response, or constructed directly in Javascript. The array is used
48
+ * in place and becomes part of the constructed object. It is not cloned.
49
+ * If no data is provided, the constructed object will be empty, but still
50
+ * valid.
51
+ * @extends {jspb.Message}
52
+ * @constructor
53
+ */
54
+ proto.mavsdk.rpc.info.GetFlightInformationRequest = function(opt_data) {
55
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
56
+ };
57
+ goog.inherits(proto.mavsdk.rpc.info.GetFlightInformationRequest, jspb.Message);
58
+ if (goog.DEBUG && !COMPILED) {
59
+ /**
60
+ * @public
61
+ * @override
62
+ */
63
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.displayName = 'proto.mavsdk.rpc.info.GetFlightInformationRequest';
64
+ }
65
+ /**
66
+ * Generated by JsPbCodeGenerator.
67
+ * @param {Array=} opt_data Optional initial data array, typically from a
68
+ * server response, or constructed directly in Javascript. The array is used
69
+ * in place and becomes part of the constructed object. It is not cloned.
70
+ * If no data is provided, the constructed object will be empty, but still
71
+ * valid.
72
+ * @extends {jspb.Message}
73
+ * @constructor
74
+ */
75
+ proto.mavsdk.rpc.info.GetFlightInformationResponse = function(opt_data) {
76
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
77
+ };
78
+ goog.inherits(proto.mavsdk.rpc.info.GetFlightInformationResponse, jspb.Message);
79
+ if (goog.DEBUG && !COMPILED) {
80
+ /**
81
+ * @public
82
+ * @override
83
+ */
84
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.displayName = 'proto.mavsdk.rpc.info.GetFlightInformationResponse';
85
+ }
86
+ /**
87
+ * Generated by JsPbCodeGenerator.
88
+ * @param {Array=} opt_data Optional initial data array, typically from a
89
+ * server response, or constructed directly in Javascript. The array is used
90
+ * in place and becomes part of the constructed object. It is not cloned.
91
+ * If no data is provided, the constructed object will be empty, but still
92
+ * valid.
93
+ * @extends {jspb.Message}
94
+ * @constructor
95
+ */
96
+ proto.mavsdk.rpc.info.GetIdentificationRequest = function(opt_data) {
97
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
98
+ };
99
+ goog.inherits(proto.mavsdk.rpc.info.GetIdentificationRequest, jspb.Message);
100
+ if (goog.DEBUG && !COMPILED) {
101
+ /**
102
+ * @public
103
+ * @override
104
+ */
105
+ proto.mavsdk.rpc.info.GetIdentificationRequest.displayName = 'proto.mavsdk.rpc.info.GetIdentificationRequest';
106
+ }
107
+ /**
108
+ * Generated by JsPbCodeGenerator.
109
+ * @param {Array=} opt_data Optional initial data array, typically from a
110
+ * server response, or constructed directly in Javascript. The array is used
111
+ * in place and becomes part of the constructed object. It is not cloned.
112
+ * If no data is provided, the constructed object will be empty, but still
113
+ * valid.
114
+ * @extends {jspb.Message}
115
+ * @constructor
116
+ */
117
+ proto.mavsdk.rpc.info.GetIdentificationResponse = function(opt_data) {
118
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
119
+ };
120
+ goog.inherits(proto.mavsdk.rpc.info.GetIdentificationResponse, jspb.Message);
121
+ if (goog.DEBUG && !COMPILED) {
122
+ /**
123
+ * @public
124
+ * @override
125
+ */
126
+ proto.mavsdk.rpc.info.GetIdentificationResponse.displayName = 'proto.mavsdk.rpc.info.GetIdentificationResponse';
127
+ }
128
+ /**
129
+ * Generated by JsPbCodeGenerator.
130
+ * @param {Array=} opt_data Optional initial data array, typically from a
131
+ * server response, or constructed directly in Javascript. The array is used
132
+ * in place and becomes part of the constructed object. It is not cloned.
133
+ * If no data is provided, the constructed object will be empty, but still
134
+ * valid.
135
+ * @extends {jspb.Message}
136
+ * @constructor
137
+ */
138
+ proto.mavsdk.rpc.info.GetProductRequest = function(opt_data) {
139
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
140
+ };
141
+ goog.inherits(proto.mavsdk.rpc.info.GetProductRequest, jspb.Message);
142
+ if (goog.DEBUG && !COMPILED) {
143
+ /**
144
+ * @public
145
+ * @override
146
+ */
147
+ proto.mavsdk.rpc.info.GetProductRequest.displayName = 'proto.mavsdk.rpc.info.GetProductRequest';
148
+ }
149
+ /**
150
+ * Generated by JsPbCodeGenerator.
151
+ * @param {Array=} opt_data Optional initial data array, typically from a
152
+ * server response, or constructed directly in Javascript. The array is used
153
+ * in place and becomes part of the constructed object. It is not cloned.
154
+ * If no data is provided, the constructed object will be empty, but still
155
+ * valid.
156
+ * @extends {jspb.Message}
157
+ * @constructor
158
+ */
159
+ proto.mavsdk.rpc.info.GetProductResponse = function(opt_data) {
160
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
161
+ };
162
+ goog.inherits(proto.mavsdk.rpc.info.GetProductResponse, jspb.Message);
163
+ if (goog.DEBUG && !COMPILED) {
164
+ /**
165
+ * @public
166
+ * @override
167
+ */
168
+ proto.mavsdk.rpc.info.GetProductResponse.displayName = 'proto.mavsdk.rpc.info.GetProductResponse';
169
+ }
170
+ /**
171
+ * Generated by JsPbCodeGenerator.
172
+ * @param {Array=} opt_data Optional initial data array, typically from a
173
+ * server response, or constructed directly in Javascript. The array is used
174
+ * in place and becomes part of the constructed object. It is not cloned.
175
+ * If no data is provided, the constructed object will be empty, but still
176
+ * valid.
177
+ * @extends {jspb.Message}
178
+ * @constructor
179
+ */
180
+ proto.mavsdk.rpc.info.GetVersionRequest = function(opt_data) {
181
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
182
+ };
183
+ goog.inherits(proto.mavsdk.rpc.info.GetVersionRequest, jspb.Message);
184
+ if (goog.DEBUG && !COMPILED) {
185
+ /**
186
+ * @public
187
+ * @override
188
+ */
189
+ proto.mavsdk.rpc.info.GetVersionRequest.displayName = 'proto.mavsdk.rpc.info.GetVersionRequest';
190
+ }
191
+ /**
192
+ * Generated by JsPbCodeGenerator.
193
+ * @param {Array=} opt_data Optional initial data array, typically from a
194
+ * server response, or constructed directly in Javascript. The array is used
195
+ * in place and becomes part of the constructed object. It is not cloned.
196
+ * If no data is provided, the constructed object will be empty, but still
197
+ * valid.
198
+ * @extends {jspb.Message}
199
+ * @constructor
200
+ */
201
+ proto.mavsdk.rpc.info.GetVersionResponse = function(opt_data) {
202
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
203
+ };
204
+ goog.inherits(proto.mavsdk.rpc.info.GetVersionResponse, jspb.Message);
205
+ if (goog.DEBUG && !COMPILED) {
206
+ /**
207
+ * @public
208
+ * @override
209
+ */
210
+ proto.mavsdk.rpc.info.GetVersionResponse.displayName = 'proto.mavsdk.rpc.info.GetVersionResponse';
211
+ }
212
+ /**
213
+ * Generated by JsPbCodeGenerator.
214
+ * @param {Array=} opt_data Optional initial data array, typically from a
215
+ * server response, or constructed directly in Javascript. The array is used
216
+ * in place and becomes part of the constructed object. It is not cloned.
217
+ * If no data is provided, the constructed object will be empty, but still
218
+ * valid.
219
+ * @extends {jspb.Message}
220
+ * @constructor
221
+ */
222
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest = function(opt_data) {
223
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
224
+ };
225
+ goog.inherits(proto.mavsdk.rpc.info.GetSpeedFactorRequest, jspb.Message);
226
+ if (goog.DEBUG && !COMPILED) {
227
+ /**
228
+ * @public
229
+ * @override
230
+ */
231
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.displayName = 'proto.mavsdk.rpc.info.GetSpeedFactorRequest';
232
+ }
233
+ /**
234
+ * Generated by JsPbCodeGenerator.
235
+ * @param {Array=} opt_data Optional initial data array, typically from a
236
+ * server response, or constructed directly in Javascript. The array is used
237
+ * in place and becomes part of the constructed object. It is not cloned.
238
+ * If no data is provided, the constructed object will be empty, but still
239
+ * valid.
240
+ * @extends {jspb.Message}
241
+ * @constructor
242
+ */
243
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse = function(opt_data) {
244
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
245
+ };
246
+ goog.inherits(proto.mavsdk.rpc.info.GetSpeedFactorResponse, jspb.Message);
247
+ if (goog.DEBUG && !COMPILED) {
248
+ /**
249
+ * @public
250
+ * @override
251
+ */
252
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.displayName = 'proto.mavsdk.rpc.info.GetSpeedFactorResponse';
253
+ }
254
+ /**
255
+ * Generated by JsPbCodeGenerator.
256
+ * @param {Array=} opt_data Optional initial data array, typically from a
257
+ * server response, or constructed directly in Javascript. The array is used
258
+ * in place and becomes part of the constructed object. It is not cloned.
259
+ * If no data is provided, the constructed object will be empty, but still
260
+ * valid.
261
+ * @extends {jspb.Message}
262
+ * @constructor
263
+ */
264
+ proto.mavsdk.rpc.info.FlightInfo = function(opt_data) {
265
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
266
+ };
267
+ goog.inherits(proto.mavsdk.rpc.info.FlightInfo, jspb.Message);
268
+ if (goog.DEBUG && !COMPILED) {
269
+ /**
270
+ * @public
271
+ * @override
272
+ */
273
+ proto.mavsdk.rpc.info.FlightInfo.displayName = 'proto.mavsdk.rpc.info.FlightInfo';
274
+ }
275
+ /**
276
+ * Generated by JsPbCodeGenerator.
277
+ * @param {Array=} opt_data Optional initial data array, typically from a
278
+ * server response, or constructed directly in Javascript. The array is used
279
+ * in place and becomes part of the constructed object. It is not cloned.
280
+ * If no data is provided, the constructed object will be empty, but still
281
+ * valid.
282
+ * @extends {jspb.Message}
283
+ * @constructor
284
+ */
285
+ proto.mavsdk.rpc.info.Identification = function(opt_data) {
286
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
287
+ };
288
+ goog.inherits(proto.mavsdk.rpc.info.Identification, jspb.Message);
289
+ if (goog.DEBUG && !COMPILED) {
290
+ /**
291
+ * @public
292
+ * @override
293
+ */
294
+ proto.mavsdk.rpc.info.Identification.displayName = 'proto.mavsdk.rpc.info.Identification';
295
+ }
296
+ /**
297
+ * Generated by JsPbCodeGenerator.
298
+ * @param {Array=} opt_data Optional initial data array, typically from a
299
+ * server response, or constructed directly in Javascript. The array is used
300
+ * in place and becomes part of the constructed object. It is not cloned.
301
+ * If no data is provided, the constructed object will be empty, but still
302
+ * valid.
303
+ * @extends {jspb.Message}
304
+ * @constructor
305
+ */
306
+ proto.mavsdk.rpc.info.Product = function(opt_data) {
307
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
308
+ };
309
+ goog.inherits(proto.mavsdk.rpc.info.Product, jspb.Message);
310
+ if (goog.DEBUG && !COMPILED) {
311
+ /**
312
+ * @public
313
+ * @override
314
+ */
315
+ proto.mavsdk.rpc.info.Product.displayName = 'proto.mavsdk.rpc.info.Product';
316
+ }
317
+ /**
318
+ * Generated by JsPbCodeGenerator.
319
+ * @param {Array=} opt_data Optional initial data array, typically from a
320
+ * server response, or constructed directly in Javascript. The array is used
321
+ * in place and becomes part of the constructed object. It is not cloned.
322
+ * If no data is provided, the constructed object will be empty, but still
323
+ * valid.
324
+ * @extends {jspb.Message}
325
+ * @constructor
326
+ */
327
+ proto.mavsdk.rpc.info.Version = function(opt_data) {
328
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
329
+ };
330
+ goog.inherits(proto.mavsdk.rpc.info.Version, jspb.Message);
331
+ if (goog.DEBUG && !COMPILED) {
332
+ /**
333
+ * @public
334
+ * @override
335
+ */
336
+ proto.mavsdk.rpc.info.Version.displayName = 'proto.mavsdk.rpc.info.Version';
337
+ }
338
+ /**
339
+ * Generated by JsPbCodeGenerator.
340
+ * @param {Array=} opt_data Optional initial data array, typically from a
341
+ * server response, or constructed directly in Javascript. The array is used
342
+ * in place and becomes part of the constructed object. It is not cloned.
343
+ * If no data is provided, the constructed object will be empty, but still
344
+ * valid.
345
+ * @extends {jspb.Message}
346
+ * @constructor
347
+ */
348
+ proto.mavsdk.rpc.info.InfoResult = function(opt_data) {
349
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
350
+ };
351
+ goog.inherits(proto.mavsdk.rpc.info.InfoResult, jspb.Message);
352
+ if (goog.DEBUG && !COMPILED) {
353
+ /**
354
+ * @public
355
+ * @override
356
+ */
357
+ proto.mavsdk.rpc.info.InfoResult.displayName = 'proto.mavsdk.rpc.info.InfoResult';
358
+ }
359
+
360
+
361
+
362
+ if (jspb.Message.GENERATE_TO_OBJECT) {
363
+ /**
364
+ * Creates an object representation of this proto.
365
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
366
+ * Optional fields that are not set will be set to undefined.
367
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
368
+ * For the list of reserved names please see:
369
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
370
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
371
+ * JSPB instance for transitional soy proto support:
372
+ * http://goto/soy-param-migration
373
+ * @return {!Object}
374
+ */
375
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.prototype.toObject = function(opt_includeInstance) {
376
+ return proto.mavsdk.rpc.info.GetFlightInformationRequest.toObject(opt_includeInstance, this);
377
+ };
378
+
379
+
380
+ /**
381
+ * Static version of the {@see toObject} method.
382
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
383
+ * the JSPB instance for transitional soy proto support:
384
+ * http://goto/soy-param-migration
385
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationRequest} msg The msg instance to transform.
386
+ * @return {!Object}
387
+ * @suppress {unusedLocalVariables} f is only used for nested messages
388
+ */
389
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.toObject = function(includeInstance, msg) {
390
+ var f, obj = {
391
+
392
+ };
393
+
394
+ if (includeInstance) {
395
+ obj.$jspbMessageInstance = msg;
396
+ }
397
+ return obj;
398
+ };
399
+ }
400
+
401
+
402
+ /**
403
+ * Deserializes binary data (in protobuf wire format).
404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
405
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationRequest}
406
+ */
407
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.deserializeBinary = function(bytes) {
408
+ var reader = new jspb.BinaryReader(bytes);
409
+ var msg = new proto.mavsdk.rpc.info.GetFlightInformationRequest;
410
+ return proto.mavsdk.rpc.info.GetFlightInformationRequest.deserializeBinaryFromReader(msg, reader);
411
+ };
412
+
413
+
414
+ /**
415
+ * Deserializes binary data (in protobuf wire format) from the
416
+ * given reader into the given message object.
417
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationRequest} msg The message object to deserialize into.
418
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
419
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationRequest}
420
+ */
421
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.deserializeBinaryFromReader = function(msg, reader) {
422
+ while (reader.nextField()) {
423
+ if (reader.isEndGroup()) {
424
+ break;
425
+ }
426
+ var field = reader.getFieldNumber();
427
+ switch (field) {
428
+ default:
429
+ reader.skipField();
430
+ break;
431
+ }
432
+ }
433
+ return msg;
434
+ };
435
+
436
+
437
+ /**
438
+ * Serializes the message to binary data (in protobuf wire format).
439
+ * @return {!Uint8Array}
440
+ */
441
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.prototype.serializeBinary = function() {
442
+ var writer = new jspb.BinaryWriter();
443
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.serializeBinaryToWriter(this, writer);
444
+ return writer.getResultBuffer();
445
+ };
446
+
447
+
448
+ /**
449
+ * Serializes the given message to binary data (in protobuf wire
450
+ * format), writing to the given BinaryWriter.
451
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationRequest} message
452
+ * @param {!jspb.BinaryWriter} writer
453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
454
+ */
455
+ proto.mavsdk.rpc.info.GetFlightInformationRequest.serializeBinaryToWriter = function(message, writer) {
456
+ var f = undefined;
457
+ };
458
+
459
+
460
+
461
+
462
+
463
+ if (jspb.Message.GENERATE_TO_OBJECT) {
464
+ /**
465
+ * Creates an object representation of this proto.
466
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
467
+ * Optional fields that are not set will be set to undefined.
468
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
469
+ * For the list of reserved names please see:
470
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
471
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
472
+ * JSPB instance for transitional soy proto support:
473
+ * http://goto/soy-param-migration
474
+ * @return {!Object}
475
+ */
476
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.toObject = function(opt_includeInstance) {
477
+ return proto.mavsdk.rpc.info.GetFlightInformationResponse.toObject(opt_includeInstance, this);
478
+ };
479
+
480
+
481
+ /**
482
+ * Static version of the {@see toObject} method.
483
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
484
+ * the JSPB instance for transitional soy proto support:
485
+ * http://goto/soy-param-migration
486
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationResponse} msg The msg instance to transform.
487
+ * @return {!Object}
488
+ * @suppress {unusedLocalVariables} f is only used for nested messages
489
+ */
490
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.toObject = function(includeInstance, msg) {
491
+ var f, obj = {
492
+ infoResult: (f = msg.getInfoResult()) && proto.mavsdk.rpc.info.InfoResult.toObject(includeInstance, f),
493
+ flightInfo: (f = msg.getFlightInfo()) && proto.mavsdk.rpc.info.FlightInfo.toObject(includeInstance, f)
494
+ };
495
+
496
+ if (includeInstance) {
497
+ obj.$jspbMessageInstance = msg;
498
+ }
499
+ return obj;
500
+ };
501
+ }
502
+
503
+
504
+ /**
505
+ * Deserializes binary data (in protobuf wire format).
506
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
507
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse}
508
+ */
509
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.deserializeBinary = function(bytes) {
510
+ var reader = new jspb.BinaryReader(bytes);
511
+ var msg = new proto.mavsdk.rpc.info.GetFlightInformationResponse;
512
+ return proto.mavsdk.rpc.info.GetFlightInformationResponse.deserializeBinaryFromReader(msg, reader);
513
+ };
514
+
515
+
516
+ /**
517
+ * Deserializes binary data (in protobuf wire format) from the
518
+ * given reader into the given message object.
519
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationResponse} msg The message object to deserialize into.
520
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
521
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse}
522
+ */
523
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.deserializeBinaryFromReader = function(msg, reader) {
524
+ while (reader.nextField()) {
525
+ if (reader.isEndGroup()) {
526
+ break;
527
+ }
528
+ var field = reader.getFieldNumber();
529
+ switch (field) {
530
+ case 1:
531
+ var value = new proto.mavsdk.rpc.info.InfoResult;
532
+ reader.readMessage(value,proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader);
533
+ msg.setInfoResult(value);
534
+ break;
535
+ case 2:
536
+ var value = new proto.mavsdk.rpc.info.FlightInfo;
537
+ reader.readMessage(value,proto.mavsdk.rpc.info.FlightInfo.deserializeBinaryFromReader);
538
+ msg.setFlightInfo(value);
539
+ break;
540
+ default:
541
+ reader.skipField();
542
+ break;
543
+ }
544
+ }
545
+ return msg;
546
+ };
547
+
548
+
549
+ /**
550
+ * Serializes the message to binary data (in protobuf wire format).
551
+ * @return {!Uint8Array}
552
+ */
553
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.serializeBinary = function() {
554
+ var writer = new jspb.BinaryWriter();
555
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.serializeBinaryToWriter(this, writer);
556
+ return writer.getResultBuffer();
557
+ };
558
+
559
+
560
+ /**
561
+ * Serializes the given message to binary data (in protobuf wire
562
+ * format), writing to the given BinaryWriter.
563
+ * @param {!proto.mavsdk.rpc.info.GetFlightInformationResponse} message
564
+ * @param {!jspb.BinaryWriter} writer
565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
566
+ */
567
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.serializeBinaryToWriter = function(message, writer) {
568
+ var f = undefined;
569
+ f = message.getInfoResult();
570
+ if (f != null) {
571
+ writer.writeMessage(
572
+ 1,
573
+ f,
574
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter
575
+ );
576
+ }
577
+ f = message.getFlightInfo();
578
+ if (f != null) {
579
+ writer.writeMessage(
580
+ 2,
581
+ f,
582
+ proto.mavsdk.rpc.info.FlightInfo.serializeBinaryToWriter
583
+ );
584
+ }
585
+ };
586
+
587
+
588
+ /**
589
+ * optional InfoResult info_result = 1;
590
+ * @return {?proto.mavsdk.rpc.info.InfoResult}
591
+ */
592
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.getInfoResult = function() {
593
+ return /** @type{?proto.mavsdk.rpc.info.InfoResult} */ (
594
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.InfoResult, 1));
595
+ };
596
+
597
+
598
+ /**
599
+ * @param {?proto.mavsdk.rpc.info.InfoResult|undefined} value
600
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse} returns this
601
+ */
602
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.setInfoResult = function(value) {
603
+ return jspb.Message.setWrapperField(this, 1, value);
604
+ };
605
+
606
+
607
+ /**
608
+ * Clears the message field making it undefined.
609
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse} returns this
610
+ */
611
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.clearInfoResult = function() {
612
+ return this.setInfoResult(undefined);
613
+ };
614
+
615
+
616
+ /**
617
+ * Returns whether this field is set.
618
+ * @return {boolean}
619
+ */
620
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.hasInfoResult = function() {
621
+ return jspb.Message.getField(this, 1) != null;
622
+ };
623
+
624
+
625
+ /**
626
+ * optional FlightInfo flight_info = 2;
627
+ * @return {?proto.mavsdk.rpc.info.FlightInfo}
628
+ */
629
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.getFlightInfo = function() {
630
+ return /** @type{?proto.mavsdk.rpc.info.FlightInfo} */ (
631
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.FlightInfo, 2));
632
+ };
633
+
634
+
635
+ /**
636
+ * @param {?proto.mavsdk.rpc.info.FlightInfo|undefined} value
637
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse} returns this
638
+ */
639
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.setFlightInfo = function(value) {
640
+ return jspb.Message.setWrapperField(this, 2, value);
641
+ };
642
+
643
+
644
+ /**
645
+ * Clears the message field making it undefined.
646
+ * @return {!proto.mavsdk.rpc.info.GetFlightInformationResponse} returns this
647
+ */
648
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.clearFlightInfo = function() {
649
+ return this.setFlightInfo(undefined);
650
+ };
651
+
652
+
653
+ /**
654
+ * Returns whether this field is set.
655
+ * @return {boolean}
656
+ */
657
+ proto.mavsdk.rpc.info.GetFlightInformationResponse.prototype.hasFlightInfo = function() {
658
+ return jspb.Message.getField(this, 2) != null;
659
+ };
660
+
661
+
662
+
663
+
664
+
665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
666
+ /**
667
+ * Creates an object representation of this proto.
668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
669
+ * Optional fields that are not set will be set to undefined.
670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
671
+ * For the list of reserved names please see:
672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
674
+ * JSPB instance for transitional soy proto support:
675
+ * http://goto/soy-param-migration
676
+ * @return {!Object}
677
+ */
678
+ proto.mavsdk.rpc.info.GetIdentificationRequest.prototype.toObject = function(opt_includeInstance) {
679
+ return proto.mavsdk.rpc.info.GetIdentificationRequest.toObject(opt_includeInstance, this);
680
+ };
681
+
682
+
683
+ /**
684
+ * Static version of the {@see toObject} method.
685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
686
+ * the JSPB instance for transitional soy proto support:
687
+ * http://goto/soy-param-migration
688
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationRequest} msg The msg instance to transform.
689
+ * @return {!Object}
690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
691
+ */
692
+ proto.mavsdk.rpc.info.GetIdentificationRequest.toObject = function(includeInstance, msg) {
693
+ var f, obj = {
694
+
695
+ };
696
+
697
+ if (includeInstance) {
698
+ obj.$jspbMessageInstance = msg;
699
+ }
700
+ return obj;
701
+ };
702
+ }
703
+
704
+
705
+ /**
706
+ * Deserializes binary data (in protobuf wire format).
707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
708
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationRequest}
709
+ */
710
+ proto.mavsdk.rpc.info.GetIdentificationRequest.deserializeBinary = function(bytes) {
711
+ var reader = new jspb.BinaryReader(bytes);
712
+ var msg = new proto.mavsdk.rpc.info.GetIdentificationRequest;
713
+ return proto.mavsdk.rpc.info.GetIdentificationRequest.deserializeBinaryFromReader(msg, reader);
714
+ };
715
+
716
+
717
+ /**
718
+ * Deserializes binary data (in protobuf wire format) from the
719
+ * given reader into the given message object.
720
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationRequest} msg The message object to deserialize into.
721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
722
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationRequest}
723
+ */
724
+ proto.mavsdk.rpc.info.GetIdentificationRequest.deserializeBinaryFromReader = function(msg, reader) {
725
+ while (reader.nextField()) {
726
+ if (reader.isEndGroup()) {
727
+ break;
728
+ }
729
+ var field = reader.getFieldNumber();
730
+ switch (field) {
731
+ default:
732
+ reader.skipField();
733
+ break;
734
+ }
735
+ }
736
+ return msg;
737
+ };
738
+
739
+
740
+ /**
741
+ * Serializes the message to binary data (in protobuf wire format).
742
+ * @return {!Uint8Array}
743
+ */
744
+ proto.mavsdk.rpc.info.GetIdentificationRequest.prototype.serializeBinary = function() {
745
+ var writer = new jspb.BinaryWriter();
746
+ proto.mavsdk.rpc.info.GetIdentificationRequest.serializeBinaryToWriter(this, writer);
747
+ return writer.getResultBuffer();
748
+ };
749
+
750
+
751
+ /**
752
+ * Serializes the given message to binary data (in protobuf wire
753
+ * format), writing to the given BinaryWriter.
754
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationRequest} message
755
+ * @param {!jspb.BinaryWriter} writer
756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
757
+ */
758
+ proto.mavsdk.rpc.info.GetIdentificationRequest.serializeBinaryToWriter = function(message, writer) {
759
+ var f = undefined;
760
+ };
761
+
762
+
763
+
764
+
765
+
766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
767
+ /**
768
+ * Creates an object representation of this proto.
769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
770
+ * Optional fields that are not set will be set to undefined.
771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
772
+ * For the list of reserved names please see:
773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
775
+ * JSPB instance for transitional soy proto support:
776
+ * http://goto/soy-param-migration
777
+ * @return {!Object}
778
+ */
779
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.toObject = function(opt_includeInstance) {
780
+ return proto.mavsdk.rpc.info.GetIdentificationResponse.toObject(opt_includeInstance, this);
781
+ };
782
+
783
+
784
+ /**
785
+ * Static version of the {@see toObject} method.
786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
787
+ * the JSPB instance for transitional soy proto support:
788
+ * http://goto/soy-param-migration
789
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationResponse} msg The msg instance to transform.
790
+ * @return {!Object}
791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
792
+ */
793
+ proto.mavsdk.rpc.info.GetIdentificationResponse.toObject = function(includeInstance, msg) {
794
+ var f, obj = {
795
+ infoResult: (f = msg.getInfoResult()) && proto.mavsdk.rpc.info.InfoResult.toObject(includeInstance, f),
796
+ identification: (f = msg.getIdentification()) && proto.mavsdk.rpc.info.Identification.toObject(includeInstance, f)
797
+ };
798
+
799
+ if (includeInstance) {
800
+ obj.$jspbMessageInstance = msg;
801
+ }
802
+ return obj;
803
+ };
804
+ }
805
+
806
+
807
+ /**
808
+ * Deserializes binary data (in protobuf wire format).
809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
810
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse}
811
+ */
812
+ proto.mavsdk.rpc.info.GetIdentificationResponse.deserializeBinary = function(bytes) {
813
+ var reader = new jspb.BinaryReader(bytes);
814
+ var msg = new proto.mavsdk.rpc.info.GetIdentificationResponse;
815
+ return proto.mavsdk.rpc.info.GetIdentificationResponse.deserializeBinaryFromReader(msg, reader);
816
+ };
817
+
818
+
819
+ /**
820
+ * Deserializes binary data (in protobuf wire format) from the
821
+ * given reader into the given message object.
822
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationResponse} msg The message object to deserialize into.
823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
824
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse}
825
+ */
826
+ proto.mavsdk.rpc.info.GetIdentificationResponse.deserializeBinaryFromReader = function(msg, reader) {
827
+ while (reader.nextField()) {
828
+ if (reader.isEndGroup()) {
829
+ break;
830
+ }
831
+ var field = reader.getFieldNumber();
832
+ switch (field) {
833
+ case 1:
834
+ var value = new proto.mavsdk.rpc.info.InfoResult;
835
+ reader.readMessage(value,proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader);
836
+ msg.setInfoResult(value);
837
+ break;
838
+ case 2:
839
+ var value = new proto.mavsdk.rpc.info.Identification;
840
+ reader.readMessage(value,proto.mavsdk.rpc.info.Identification.deserializeBinaryFromReader);
841
+ msg.setIdentification(value);
842
+ break;
843
+ default:
844
+ reader.skipField();
845
+ break;
846
+ }
847
+ }
848
+ return msg;
849
+ };
850
+
851
+
852
+ /**
853
+ * Serializes the message to binary data (in protobuf wire format).
854
+ * @return {!Uint8Array}
855
+ */
856
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.serializeBinary = function() {
857
+ var writer = new jspb.BinaryWriter();
858
+ proto.mavsdk.rpc.info.GetIdentificationResponse.serializeBinaryToWriter(this, writer);
859
+ return writer.getResultBuffer();
860
+ };
861
+
862
+
863
+ /**
864
+ * Serializes the given message to binary data (in protobuf wire
865
+ * format), writing to the given BinaryWriter.
866
+ * @param {!proto.mavsdk.rpc.info.GetIdentificationResponse} message
867
+ * @param {!jspb.BinaryWriter} writer
868
+ * @suppress {unusedLocalVariables} f is only used for nested messages
869
+ */
870
+ proto.mavsdk.rpc.info.GetIdentificationResponse.serializeBinaryToWriter = function(message, writer) {
871
+ var f = undefined;
872
+ f = message.getInfoResult();
873
+ if (f != null) {
874
+ writer.writeMessage(
875
+ 1,
876
+ f,
877
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter
878
+ );
879
+ }
880
+ f = message.getIdentification();
881
+ if (f != null) {
882
+ writer.writeMessage(
883
+ 2,
884
+ f,
885
+ proto.mavsdk.rpc.info.Identification.serializeBinaryToWriter
886
+ );
887
+ }
888
+ };
889
+
890
+
891
+ /**
892
+ * optional InfoResult info_result = 1;
893
+ * @return {?proto.mavsdk.rpc.info.InfoResult}
894
+ */
895
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.getInfoResult = function() {
896
+ return /** @type{?proto.mavsdk.rpc.info.InfoResult} */ (
897
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.InfoResult, 1));
898
+ };
899
+
900
+
901
+ /**
902
+ * @param {?proto.mavsdk.rpc.info.InfoResult|undefined} value
903
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse} returns this
904
+ */
905
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.setInfoResult = function(value) {
906
+ return jspb.Message.setWrapperField(this, 1, value);
907
+ };
908
+
909
+
910
+ /**
911
+ * Clears the message field making it undefined.
912
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse} returns this
913
+ */
914
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.clearInfoResult = function() {
915
+ return this.setInfoResult(undefined);
916
+ };
917
+
918
+
919
+ /**
920
+ * Returns whether this field is set.
921
+ * @return {boolean}
922
+ */
923
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.hasInfoResult = function() {
924
+ return jspb.Message.getField(this, 1) != null;
925
+ };
926
+
927
+
928
+ /**
929
+ * optional Identification identification = 2;
930
+ * @return {?proto.mavsdk.rpc.info.Identification}
931
+ */
932
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.getIdentification = function() {
933
+ return /** @type{?proto.mavsdk.rpc.info.Identification} */ (
934
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.Identification, 2));
935
+ };
936
+
937
+
938
+ /**
939
+ * @param {?proto.mavsdk.rpc.info.Identification|undefined} value
940
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse} returns this
941
+ */
942
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.setIdentification = function(value) {
943
+ return jspb.Message.setWrapperField(this, 2, value);
944
+ };
945
+
946
+
947
+ /**
948
+ * Clears the message field making it undefined.
949
+ * @return {!proto.mavsdk.rpc.info.GetIdentificationResponse} returns this
950
+ */
951
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.clearIdentification = function() {
952
+ return this.setIdentification(undefined);
953
+ };
954
+
955
+
956
+ /**
957
+ * Returns whether this field is set.
958
+ * @return {boolean}
959
+ */
960
+ proto.mavsdk.rpc.info.GetIdentificationResponse.prototype.hasIdentification = function() {
961
+ return jspb.Message.getField(this, 2) != null;
962
+ };
963
+
964
+
965
+
966
+
967
+
968
+ if (jspb.Message.GENERATE_TO_OBJECT) {
969
+ /**
970
+ * Creates an object representation of this proto.
971
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
972
+ * Optional fields that are not set will be set to undefined.
973
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
974
+ * For the list of reserved names please see:
975
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
976
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
977
+ * JSPB instance for transitional soy proto support:
978
+ * http://goto/soy-param-migration
979
+ * @return {!Object}
980
+ */
981
+ proto.mavsdk.rpc.info.GetProductRequest.prototype.toObject = function(opt_includeInstance) {
982
+ return proto.mavsdk.rpc.info.GetProductRequest.toObject(opt_includeInstance, this);
983
+ };
984
+
985
+
986
+ /**
987
+ * Static version of the {@see toObject} method.
988
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
989
+ * the JSPB instance for transitional soy proto support:
990
+ * http://goto/soy-param-migration
991
+ * @param {!proto.mavsdk.rpc.info.GetProductRequest} msg The msg instance to transform.
992
+ * @return {!Object}
993
+ * @suppress {unusedLocalVariables} f is only used for nested messages
994
+ */
995
+ proto.mavsdk.rpc.info.GetProductRequest.toObject = function(includeInstance, msg) {
996
+ var f, obj = {
997
+
998
+ };
999
+
1000
+ if (includeInstance) {
1001
+ obj.$jspbMessageInstance = msg;
1002
+ }
1003
+ return obj;
1004
+ };
1005
+ }
1006
+
1007
+
1008
+ /**
1009
+ * Deserializes binary data (in protobuf wire format).
1010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1011
+ * @return {!proto.mavsdk.rpc.info.GetProductRequest}
1012
+ */
1013
+ proto.mavsdk.rpc.info.GetProductRequest.deserializeBinary = function(bytes) {
1014
+ var reader = new jspb.BinaryReader(bytes);
1015
+ var msg = new proto.mavsdk.rpc.info.GetProductRequest;
1016
+ return proto.mavsdk.rpc.info.GetProductRequest.deserializeBinaryFromReader(msg, reader);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Deserializes binary data (in protobuf wire format) from the
1022
+ * given reader into the given message object.
1023
+ * @param {!proto.mavsdk.rpc.info.GetProductRequest} msg The message object to deserialize into.
1024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1025
+ * @return {!proto.mavsdk.rpc.info.GetProductRequest}
1026
+ */
1027
+ proto.mavsdk.rpc.info.GetProductRequest.deserializeBinaryFromReader = function(msg, reader) {
1028
+ while (reader.nextField()) {
1029
+ if (reader.isEndGroup()) {
1030
+ break;
1031
+ }
1032
+ var field = reader.getFieldNumber();
1033
+ switch (field) {
1034
+ default:
1035
+ reader.skipField();
1036
+ break;
1037
+ }
1038
+ }
1039
+ return msg;
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * Serializes the message to binary data (in protobuf wire format).
1045
+ * @return {!Uint8Array}
1046
+ */
1047
+ proto.mavsdk.rpc.info.GetProductRequest.prototype.serializeBinary = function() {
1048
+ var writer = new jspb.BinaryWriter();
1049
+ proto.mavsdk.rpc.info.GetProductRequest.serializeBinaryToWriter(this, writer);
1050
+ return writer.getResultBuffer();
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * Serializes the given message to binary data (in protobuf wire
1056
+ * format), writing to the given BinaryWriter.
1057
+ * @param {!proto.mavsdk.rpc.info.GetProductRequest} message
1058
+ * @param {!jspb.BinaryWriter} writer
1059
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1060
+ */
1061
+ proto.mavsdk.rpc.info.GetProductRequest.serializeBinaryToWriter = function(message, writer) {
1062
+ var f = undefined;
1063
+ };
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1070
+ /**
1071
+ * Creates an object representation of this proto.
1072
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1073
+ * Optional fields that are not set will be set to undefined.
1074
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1075
+ * For the list of reserved names please see:
1076
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1077
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1078
+ * JSPB instance for transitional soy proto support:
1079
+ * http://goto/soy-param-migration
1080
+ * @return {!Object}
1081
+ */
1082
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.toObject = function(opt_includeInstance) {
1083
+ return proto.mavsdk.rpc.info.GetProductResponse.toObject(opt_includeInstance, this);
1084
+ };
1085
+
1086
+
1087
+ /**
1088
+ * Static version of the {@see toObject} method.
1089
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1090
+ * the JSPB instance for transitional soy proto support:
1091
+ * http://goto/soy-param-migration
1092
+ * @param {!proto.mavsdk.rpc.info.GetProductResponse} msg The msg instance to transform.
1093
+ * @return {!Object}
1094
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1095
+ */
1096
+ proto.mavsdk.rpc.info.GetProductResponse.toObject = function(includeInstance, msg) {
1097
+ var f, obj = {
1098
+ infoResult: (f = msg.getInfoResult()) && proto.mavsdk.rpc.info.InfoResult.toObject(includeInstance, f),
1099
+ product: (f = msg.getProduct()) && proto.mavsdk.rpc.info.Product.toObject(includeInstance, f)
1100
+ };
1101
+
1102
+ if (includeInstance) {
1103
+ obj.$jspbMessageInstance = msg;
1104
+ }
1105
+ return obj;
1106
+ };
1107
+ }
1108
+
1109
+
1110
+ /**
1111
+ * Deserializes binary data (in protobuf wire format).
1112
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1113
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse}
1114
+ */
1115
+ proto.mavsdk.rpc.info.GetProductResponse.deserializeBinary = function(bytes) {
1116
+ var reader = new jspb.BinaryReader(bytes);
1117
+ var msg = new proto.mavsdk.rpc.info.GetProductResponse;
1118
+ return proto.mavsdk.rpc.info.GetProductResponse.deserializeBinaryFromReader(msg, reader);
1119
+ };
1120
+
1121
+
1122
+ /**
1123
+ * Deserializes binary data (in protobuf wire format) from the
1124
+ * given reader into the given message object.
1125
+ * @param {!proto.mavsdk.rpc.info.GetProductResponse} msg The message object to deserialize into.
1126
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1127
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse}
1128
+ */
1129
+ proto.mavsdk.rpc.info.GetProductResponse.deserializeBinaryFromReader = function(msg, reader) {
1130
+ while (reader.nextField()) {
1131
+ if (reader.isEndGroup()) {
1132
+ break;
1133
+ }
1134
+ var field = reader.getFieldNumber();
1135
+ switch (field) {
1136
+ case 1:
1137
+ var value = new proto.mavsdk.rpc.info.InfoResult;
1138
+ reader.readMessage(value,proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader);
1139
+ msg.setInfoResult(value);
1140
+ break;
1141
+ case 2:
1142
+ var value = new proto.mavsdk.rpc.info.Product;
1143
+ reader.readMessage(value,proto.mavsdk.rpc.info.Product.deserializeBinaryFromReader);
1144
+ msg.setProduct(value);
1145
+ break;
1146
+ default:
1147
+ reader.skipField();
1148
+ break;
1149
+ }
1150
+ }
1151
+ return msg;
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * Serializes the message to binary data (in protobuf wire format).
1157
+ * @return {!Uint8Array}
1158
+ */
1159
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.serializeBinary = function() {
1160
+ var writer = new jspb.BinaryWriter();
1161
+ proto.mavsdk.rpc.info.GetProductResponse.serializeBinaryToWriter(this, writer);
1162
+ return writer.getResultBuffer();
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * Serializes the given message to binary data (in protobuf wire
1168
+ * format), writing to the given BinaryWriter.
1169
+ * @param {!proto.mavsdk.rpc.info.GetProductResponse} message
1170
+ * @param {!jspb.BinaryWriter} writer
1171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1172
+ */
1173
+ proto.mavsdk.rpc.info.GetProductResponse.serializeBinaryToWriter = function(message, writer) {
1174
+ var f = undefined;
1175
+ f = message.getInfoResult();
1176
+ if (f != null) {
1177
+ writer.writeMessage(
1178
+ 1,
1179
+ f,
1180
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter
1181
+ );
1182
+ }
1183
+ f = message.getProduct();
1184
+ if (f != null) {
1185
+ writer.writeMessage(
1186
+ 2,
1187
+ f,
1188
+ proto.mavsdk.rpc.info.Product.serializeBinaryToWriter
1189
+ );
1190
+ }
1191
+ };
1192
+
1193
+
1194
+ /**
1195
+ * optional InfoResult info_result = 1;
1196
+ * @return {?proto.mavsdk.rpc.info.InfoResult}
1197
+ */
1198
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.getInfoResult = function() {
1199
+ return /** @type{?proto.mavsdk.rpc.info.InfoResult} */ (
1200
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.InfoResult, 1));
1201
+ };
1202
+
1203
+
1204
+ /**
1205
+ * @param {?proto.mavsdk.rpc.info.InfoResult|undefined} value
1206
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse} returns this
1207
+ */
1208
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.setInfoResult = function(value) {
1209
+ return jspb.Message.setWrapperField(this, 1, value);
1210
+ };
1211
+
1212
+
1213
+ /**
1214
+ * Clears the message field making it undefined.
1215
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse} returns this
1216
+ */
1217
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.clearInfoResult = function() {
1218
+ return this.setInfoResult(undefined);
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * Returns whether this field is set.
1224
+ * @return {boolean}
1225
+ */
1226
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.hasInfoResult = function() {
1227
+ return jspb.Message.getField(this, 1) != null;
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * optional Product product = 2;
1233
+ * @return {?proto.mavsdk.rpc.info.Product}
1234
+ */
1235
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.getProduct = function() {
1236
+ return /** @type{?proto.mavsdk.rpc.info.Product} */ (
1237
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.Product, 2));
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * @param {?proto.mavsdk.rpc.info.Product|undefined} value
1243
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse} returns this
1244
+ */
1245
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.setProduct = function(value) {
1246
+ return jspb.Message.setWrapperField(this, 2, value);
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * Clears the message field making it undefined.
1252
+ * @return {!proto.mavsdk.rpc.info.GetProductResponse} returns this
1253
+ */
1254
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.clearProduct = function() {
1255
+ return this.setProduct(undefined);
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * Returns whether this field is set.
1261
+ * @return {boolean}
1262
+ */
1263
+ proto.mavsdk.rpc.info.GetProductResponse.prototype.hasProduct = function() {
1264
+ return jspb.Message.getField(this, 2) != null;
1265
+ };
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1272
+ /**
1273
+ * Creates an object representation of this proto.
1274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1275
+ * Optional fields that are not set will be set to undefined.
1276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1277
+ * For the list of reserved names please see:
1278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1280
+ * JSPB instance for transitional soy proto support:
1281
+ * http://goto/soy-param-migration
1282
+ * @return {!Object}
1283
+ */
1284
+ proto.mavsdk.rpc.info.GetVersionRequest.prototype.toObject = function(opt_includeInstance) {
1285
+ return proto.mavsdk.rpc.info.GetVersionRequest.toObject(opt_includeInstance, this);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * Static version of the {@see toObject} method.
1291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1292
+ * the JSPB instance for transitional soy proto support:
1293
+ * http://goto/soy-param-migration
1294
+ * @param {!proto.mavsdk.rpc.info.GetVersionRequest} msg The msg instance to transform.
1295
+ * @return {!Object}
1296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1297
+ */
1298
+ proto.mavsdk.rpc.info.GetVersionRequest.toObject = function(includeInstance, msg) {
1299
+ var f, obj = {
1300
+
1301
+ };
1302
+
1303
+ if (includeInstance) {
1304
+ obj.$jspbMessageInstance = msg;
1305
+ }
1306
+ return obj;
1307
+ };
1308
+ }
1309
+
1310
+
1311
+ /**
1312
+ * Deserializes binary data (in protobuf wire format).
1313
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1314
+ * @return {!proto.mavsdk.rpc.info.GetVersionRequest}
1315
+ */
1316
+ proto.mavsdk.rpc.info.GetVersionRequest.deserializeBinary = function(bytes) {
1317
+ var reader = new jspb.BinaryReader(bytes);
1318
+ var msg = new proto.mavsdk.rpc.info.GetVersionRequest;
1319
+ return proto.mavsdk.rpc.info.GetVersionRequest.deserializeBinaryFromReader(msg, reader);
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Deserializes binary data (in protobuf wire format) from the
1325
+ * given reader into the given message object.
1326
+ * @param {!proto.mavsdk.rpc.info.GetVersionRequest} msg The message object to deserialize into.
1327
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1328
+ * @return {!proto.mavsdk.rpc.info.GetVersionRequest}
1329
+ */
1330
+ proto.mavsdk.rpc.info.GetVersionRequest.deserializeBinaryFromReader = function(msg, reader) {
1331
+ while (reader.nextField()) {
1332
+ if (reader.isEndGroup()) {
1333
+ break;
1334
+ }
1335
+ var field = reader.getFieldNumber();
1336
+ switch (field) {
1337
+ default:
1338
+ reader.skipField();
1339
+ break;
1340
+ }
1341
+ }
1342
+ return msg;
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * Serializes the message to binary data (in protobuf wire format).
1348
+ * @return {!Uint8Array}
1349
+ */
1350
+ proto.mavsdk.rpc.info.GetVersionRequest.prototype.serializeBinary = function() {
1351
+ var writer = new jspb.BinaryWriter();
1352
+ proto.mavsdk.rpc.info.GetVersionRequest.serializeBinaryToWriter(this, writer);
1353
+ return writer.getResultBuffer();
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * Serializes the given message to binary data (in protobuf wire
1359
+ * format), writing to the given BinaryWriter.
1360
+ * @param {!proto.mavsdk.rpc.info.GetVersionRequest} message
1361
+ * @param {!jspb.BinaryWriter} writer
1362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1363
+ */
1364
+ proto.mavsdk.rpc.info.GetVersionRequest.serializeBinaryToWriter = function(message, writer) {
1365
+ var f = undefined;
1366
+ };
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1373
+ /**
1374
+ * Creates an object representation of this proto.
1375
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1376
+ * Optional fields that are not set will be set to undefined.
1377
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1378
+ * For the list of reserved names please see:
1379
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1380
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1381
+ * JSPB instance for transitional soy proto support:
1382
+ * http://goto/soy-param-migration
1383
+ * @return {!Object}
1384
+ */
1385
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.toObject = function(opt_includeInstance) {
1386
+ return proto.mavsdk.rpc.info.GetVersionResponse.toObject(opt_includeInstance, this);
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Static version of the {@see toObject} method.
1392
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1393
+ * the JSPB instance for transitional soy proto support:
1394
+ * http://goto/soy-param-migration
1395
+ * @param {!proto.mavsdk.rpc.info.GetVersionResponse} msg The msg instance to transform.
1396
+ * @return {!Object}
1397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1398
+ */
1399
+ proto.mavsdk.rpc.info.GetVersionResponse.toObject = function(includeInstance, msg) {
1400
+ var f, obj = {
1401
+ infoResult: (f = msg.getInfoResult()) && proto.mavsdk.rpc.info.InfoResult.toObject(includeInstance, f),
1402
+ version: (f = msg.getVersion()) && proto.mavsdk.rpc.info.Version.toObject(includeInstance, f)
1403
+ };
1404
+
1405
+ if (includeInstance) {
1406
+ obj.$jspbMessageInstance = msg;
1407
+ }
1408
+ return obj;
1409
+ };
1410
+ }
1411
+
1412
+
1413
+ /**
1414
+ * Deserializes binary data (in protobuf wire format).
1415
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1416
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse}
1417
+ */
1418
+ proto.mavsdk.rpc.info.GetVersionResponse.deserializeBinary = function(bytes) {
1419
+ var reader = new jspb.BinaryReader(bytes);
1420
+ var msg = new proto.mavsdk.rpc.info.GetVersionResponse;
1421
+ return proto.mavsdk.rpc.info.GetVersionResponse.deserializeBinaryFromReader(msg, reader);
1422
+ };
1423
+
1424
+
1425
+ /**
1426
+ * Deserializes binary data (in protobuf wire format) from the
1427
+ * given reader into the given message object.
1428
+ * @param {!proto.mavsdk.rpc.info.GetVersionResponse} msg The message object to deserialize into.
1429
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1430
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse}
1431
+ */
1432
+ proto.mavsdk.rpc.info.GetVersionResponse.deserializeBinaryFromReader = function(msg, reader) {
1433
+ while (reader.nextField()) {
1434
+ if (reader.isEndGroup()) {
1435
+ break;
1436
+ }
1437
+ var field = reader.getFieldNumber();
1438
+ switch (field) {
1439
+ case 1:
1440
+ var value = new proto.mavsdk.rpc.info.InfoResult;
1441
+ reader.readMessage(value,proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader);
1442
+ msg.setInfoResult(value);
1443
+ break;
1444
+ case 2:
1445
+ var value = new proto.mavsdk.rpc.info.Version;
1446
+ reader.readMessage(value,proto.mavsdk.rpc.info.Version.deserializeBinaryFromReader);
1447
+ msg.setVersion(value);
1448
+ break;
1449
+ default:
1450
+ reader.skipField();
1451
+ break;
1452
+ }
1453
+ }
1454
+ return msg;
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * Serializes the message to binary data (in protobuf wire format).
1460
+ * @return {!Uint8Array}
1461
+ */
1462
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.serializeBinary = function() {
1463
+ var writer = new jspb.BinaryWriter();
1464
+ proto.mavsdk.rpc.info.GetVersionResponse.serializeBinaryToWriter(this, writer);
1465
+ return writer.getResultBuffer();
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * Serializes the given message to binary data (in protobuf wire
1471
+ * format), writing to the given BinaryWriter.
1472
+ * @param {!proto.mavsdk.rpc.info.GetVersionResponse} message
1473
+ * @param {!jspb.BinaryWriter} writer
1474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1475
+ */
1476
+ proto.mavsdk.rpc.info.GetVersionResponse.serializeBinaryToWriter = function(message, writer) {
1477
+ var f = undefined;
1478
+ f = message.getInfoResult();
1479
+ if (f != null) {
1480
+ writer.writeMessage(
1481
+ 1,
1482
+ f,
1483
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter
1484
+ );
1485
+ }
1486
+ f = message.getVersion();
1487
+ if (f != null) {
1488
+ writer.writeMessage(
1489
+ 2,
1490
+ f,
1491
+ proto.mavsdk.rpc.info.Version.serializeBinaryToWriter
1492
+ );
1493
+ }
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * optional InfoResult info_result = 1;
1499
+ * @return {?proto.mavsdk.rpc.info.InfoResult}
1500
+ */
1501
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.getInfoResult = function() {
1502
+ return /** @type{?proto.mavsdk.rpc.info.InfoResult} */ (
1503
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.InfoResult, 1));
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * @param {?proto.mavsdk.rpc.info.InfoResult|undefined} value
1509
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse} returns this
1510
+ */
1511
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.setInfoResult = function(value) {
1512
+ return jspb.Message.setWrapperField(this, 1, value);
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * Clears the message field making it undefined.
1518
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse} returns this
1519
+ */
1520
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.clearInfoResult = function() {
1521
+ return this.setInfoResult(undefined);
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * Returns whether this field is set.
1527
+ * @return {boolean}
1528
+ */
1529
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.hasInfoResult = function() {
1530
+ return jspb.Message.getField(this, 1) != null;
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * optional Version version = 2;
1536
+ * @return {?proto.mavsdk.rpc.info.Version}
1537
+ */
1538
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.getVersion = function() {
1539
+ return /** @type{?proto.mavsdk.rpc.info.Version} */ (
1540
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.Version, 2));
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * @param {?proto.mavsdk.rpc.info.Version|undefined} value
1546
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse} returns this
1547
+ */
1548
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.setVersion = function(value) {
1549
+ return jspb.Message.setWrapperField(this, 2, value);
1550
+ };
1551
+
1552
+
1553
+ /**
1554
+ * Clears the message field making it undefined.
1555
+ * @return {!proto.mavsdk.rpc.info.GetVersionResponse} returns this
1556
+ */
1557
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.clearVersion = function() {
1558
+ return this.setVersion(undefined);
1559
+ };
1560
+
1561
+
1562
+ /**
1563
+ * Returns whether this field is set.
1564
+ * @return {boolean}
1565
+ */
1566
+ proto.mavsdk.rpc.info.GetVersionResponse.prototype.hasVersion = function() {
1567
+ return jspb.Message.getField(this, 2) != null;
1568
+ };
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1575
+ /**
1576
+ * Creates an object representation of this proto.
1577
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1578
+ * Optional fields that are not set will be set to undefined.
1579
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1580
+ * For the list of reserved names please see:
1581
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1582
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1583
+ * JSPB instance for transitional soy proto support:
1584
+ * http://goto/soy-param-migration
1585
+ * @return {!Object}
1586
+ */
1587
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.prototype.toObject = function(opt_includeInstance) {
1588
+ return proto.mavsdk.rpc.info.GetSpeedFactorRequest.toObject(opt_includeInstance, this);
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * Static version of the {@see toObject} method.
1594
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1595
+ * the JSPB instance for transitional soy proto support:
1596
+ * http://goto/soy-param-migration
1597
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorRequest} msg The msg instance to transform.
1598
+ * @return {!Object}
1599
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1600
+ */
1601
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.toObject = function(includeInstance, msg) {
1602
+ var f, obj = {
1603
+
1604
+ };
1605
+
1606
+ if (includeInstance) {
1607
+ obj.$jspbMessageInstance = msg;
1608
+ }
1609
+ return obj;
1610
+ };
1611
+ }
1612
+
1613
+
1614
+ /**
1615
+ * Deserializes binary data (in protobuf wire format).
1616
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1617
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorRequest}
1618
+ */
1619
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.deserializeBinary = function(bytes) {
1620
+ var reader = new jspb.BinaryReader(bytes);
1621
+ var msg = new proto.mavsdk.rpc.info.GetSpeedFactorRequest;
1622
+ return proto.mavsdk.rpc.info.GetSpeedFactorRequest.deserializeBinaryFromReader(msg, reader);
1623
+ };
1624
+
1625
+
1626
+ /**
1627
+ * Deserializes binary data (in protobuf wire format) from the
1628
+ * given reader into the given message object.
1629
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorRequest} msg The message object to deserialize into.
1630
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1631
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorRequest}
1632
+ */
1633
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.deserializeBinaryFromReader = function(msg, reader) {
1634
+ while (reader.nextField()) {
1635
+ if (reader.isEndGroup()) {
1636
+ break;
1637
+ }
1638
+ var field = reader.getFieldNumber();
1639
+ switch (field) {
1640
+ default:
1641
+ reader.skipField();
1642
+ break;
1643
+ }
1644
+ }
1645
+ return msg;
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * Serializes the message to binary data (in protobuf wire format).
1651
+ * @return {!Uint8Array}
1652
+ */
1653
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.prototype.serializeBinary = function() {
1654
+ var writer = new jspb.BinaryWriter();
1655
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.serializeBinaryToWriter(this, writer);
1656
+ return writer.getResultBuffer();
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * Serializes the given message to binary data (in protobuf wire
1662
+ * format), writing to the given BinaryWriter.
1663
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorRequest} message
1664
+ * @param {!jspb.BinaryWriter} writer
1665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1666
+ */
1667
+ proto.mavsdk.rpc.info.GetSpeedFactorRequest.serializeBinaryToWriter = function(message, writer) {
1668
+ var f = undefined;
1669
+ };
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1676
+ /**
1677
+ * Creates an object representation of this proto.
1678
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1679
+ * Optional fields that are not set will be set to undefined.
1680
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1681
+ * For the list of reserved names please see:
1682
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1683
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1684
+ * JSPB instance for transitional soy proto support:
1685
+ * http://goto/soy-param-migration
1686
+ * @return {!Object}
1687
+ */
1688
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.toObject = function(opt_includeInstance) {
1689
+ return proto.mavsdk.rpc.info.GetSpeedFactorResponse.toObject(opt_includeInstance, this);
1690
+ };
1691
+
1692
+
1693
+ /**
1694
+ * Static version of the {@see toObject} method.
1695
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1696
+ * the JSPB instance for transitional soy proto support:
1697
+ * http://goto/soy-param-migration
1698
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} msg The msg instance to transform.
1699
+ * @return {!Object}
1700
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1701
+ */
1702
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.toObject = function(includeInstance, msg) {
1703
+ var f, obj = {
1704
+ infoResult: (f = msg.getInfoResult()) && proto.mavsdk.rpc.info.InfoResult.toObject(includeInstance, f),
1705
+ speedFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
1706
+ };
1707
+
1708
+ if (includeInstance) {
1709
+ obj.$jspbMessageInstance = msg;
1710
+ }
1711
+ return obj;
1712
+ };
1713
+ }
1714
+
1715
+
1716
+ /**
1717
+ * Deserializes binary data (in protobuf wire format).
1718
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1719
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorResponse}
1720
+ */
1721
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.deserializeBinary = function(bytes) {
1722
+ var reader = new jspb.BinaryReader(bytes);
1723
+ var msg = new proto.mavsdk.rpc.info.GetSpeedFactorResponse;
1724
+ return proto.mavsdk.rpc.info.GetSpeedFactorResponse.deserializeBinaryFromReader(msg, reader);
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * Deserializes binary data (in protobuf wire format) from the
1730
+ * given reader into the given message object.
1731
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} msg The message object to deserialize into.
1732
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1733
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorResponse}
1734
+ */
1735
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.deserializeBinaryFromReader = function(msg, reader) {
1736
+ while (reader.nextField()) {
1737
+ if (reader.isEndGroup()) {
1738
+ break;
1739
+ }
1740
+ var field = reader.getFieldNumber();
1741
+ switch (field) {
1742
+ case 1:
1743
+ var value = new proto.mavsdk.rpc.info.InfoResult;
1744
+ reader.readMessage(value,proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader);
1745
+ msg.setInfoResult(value);
1746
+ break;
1747
+ case 2:
1748
+ var value = /** @type {number} */ (reader.readDouble());
1749
+ msg.setSpeedFactor(value);
1750
+ break;
1751
+ default:
1752
+ reader.skipField();
1753
+ break;
1754
+ }
1755
+ }
1756
+ return msg;
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Serializes the message to binary data (in protobuf wire format).
1762
+ * @return {!Uint8Array}
1763
+ */
1764
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.serializeBinary = function() {
1765
+ var writer = new jspb.BinaryWriter();
1766
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.serializeBinaryToWriter(this, writer);
1767
+ return writer.getResultBuffer();
1768
+ };
1769
+
1770
+
1771
+ /**
1772
+ * Serializes the given message to binary data (in protobuf wire
1773
+ * format), writing to the given BinaryWriter.
1774
+ * @param {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} message
1775
+ * @param {!jspb.BinaryWriter} writer
1776
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1777
+ */
1778
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.serializeBinaryToWriter = function(message, writer) {
1779
+ var f = undefined;
1780
+ f = message.getInfoResult();
1781
+ if (f != null) {
1782
+ writer.writeMessage(
1783
+ 1,
1784
+ f,
1785
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter
1786
+ );
1787
+ }
1788
+ f = message.getSpeedFactor();
1789
+ if (f !== 0.0) {
1790
+ writer.writeDouble(
1791
+ 2,
1792
+ f
1793
+ );
1794
+ }
1795
+ };
1796
+
1797
+
1798
+ /**
1799
+ * optional InfoResult info_result = 1;
1800
+ * @return {?proto.mavsdk.rpc.info.InfoResult}
1801
+ */
1802
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.getInfoResult = function() {
1803
+ return /** @type{?proto.mavsdk.rpc.info.InfoResult} */ (
1804
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.info.InfoResult, 1));
1805
+ };
1806
+
1807
+
1808
+ /**
1809
+ * @param {?proto.mavsdk.rpc.info.InfoResult|undefined} value
1810
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} returns this
1811
+ */
1812
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.setInfoResult = function(value) {
1813
+ return jspb.Message.setWrapperField(this, 1, value);
1814
+ };
1815
+
1816
+
1817
+ /**
1818
+ * Clears the message field making it undefined.
1819
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} returns this
1820
+ */
1821
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.clearInfoResult = function() {
1822
+ return this.setInfoResult(undefined);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * Returns whether this field is set.
1828
+ * @return {boolean}
1829
+ */
1830
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.hasInfoResult = function() {
1831
+ return jspb.Message.getField(this, 1) != null;
1832
+ };
1833
+
1834
+
1835
+ /**
1836
+ * optional double speed_factor = 2;
1837
+ * @return {number}
1838
+ */
1839
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.getSpeedFactor = function() {
1840
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1841
+ };
1842
+
1843
+
1844
+ /**
1845
+ * @param {number} value
1846
+ * @return {!proto.mavsdk.rpc.info.GetSpeedFactorResponse} returns this
1847
+ */
1848
+ proto.mavsdk.rpc.info.GetSpeedFactorResponse.prototype.setSpeedFactor = function(value) {
1849
+ return jspb.Message.setProto3FloatField(this, 2, value);
1850
+ };
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1857
+ /**
1858
+ * Creates an object representation of this proto.
1859
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1860
+ * Optional fields that are not set will be set to undefined.
1861
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1862
+ * For the list of reserved names please see:
1863
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1864
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1865
+ * JSPB instance for transitional soy proto support:
1866
+ * http://goto/soy-param-migration
1867
+ * @return {!Object}
1868
+ */
1869
+ proto.mavsdk.rpc.info.FlightInfo.prototype.toObject = function(opt_includeInstance) {
1870
+ return proto.mavsdk.rpc.info.FlightInfo.toObject(opt_includeInstance, this);
1871
+ };
1872
+
1873
+
1874
+ /**
1875
+ * Static version of the {@see toObject} method.
1876
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1877
+ * the JSPB instance for transitional soy proto support:
1878
+ * http://goto/soy-param-migration
1879
+ * @param {!proto.mavsdk.rpc.info.FlightInfo} msg The msg instance to transform.
1880
+ * @return {!Object}
1881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1882
+ */
1883
+ proto.mavsdk.rpc.info.FlightInfo.toObject = function(includeInstance, msg) {
1884
+ var f, obj = {
1885
+ timeBootMs: jspb.Message.getFieldWithDefault(msg, 1, 0),
1886
+ flightUid: jspb.Message.getFieldWithDefault(msg, 2, 0)
1887
+ };
1888
+
1889
+ if (includeInstance) {
1890
+ obj.$jspbMessageInstance = msg;
1891
+ }
1892
+ return obj;
1893
+ };
1894
+ }
1895
+
1896
+
1897
+ /**
1898
+ * Deserializes binary data (in protobuf wire format).
1899
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1900
+ * @return {!proto.mavsdk.rpc.info.FlightInfo}
1901
+ */
1902
+ proto.mavsdk.rpc.info.FlightInfo.deserializeBinary = function(bytes) {
1903
+ var reader = new jspb.BinaryReader(bytes);
1904
+ var msg = new proto.mavsdk.rpc.info.FlightInfo;
1905
+ return proto.mavsdk.rpc.info.FlightInfo.deserializeBinaryFromReader(msg, reader);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Deserializes binary data (in protobuf wire format) from the
1911
+ * given reader into the given message object.
1912
+ * @param {!proto.mavsdk.rpc.info.FlightInfo} msg The message object to deserialize into.
1913
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1914
+ * @return {!proto.mavsdk.rpc.info.FlightInfo}
1915
+ */
1916
+ proto.mavsdk.rpc.info.FlightInfo.deserializeBinaryFromReader = function(msg, reader) {
1917
+ while (reader.nextField()) {
1918
+ if (reader.isEndGroup()) {
1919
+ break;
1920
+ }
1921
+ var field = reader.getFieldNumber();
1922
+ switch (field) {
1923
+ case 1:
1924
+ var value = /** @type {number} */ (reader.readUint32());
1925
+ msg.setTimeBootMs(value);
1926
+ break;
1927
+ case 2:
1928
+ var value = /** @type {number} */ (reader.readUint64());
1929
+ msg.setFlightUid(value);
1930
+ break;
1931
+ default:
1932
+ reader.skipField();
1933
+ break;
1934
+ }
1935
+ }
1936
+ return msg;
1937
+ };
1938
+
1939
+
1940
+ /**
1941
+ * Serializes the message to binary data (in protobuf wire format).
1942
+ * @return {!Uint8Array}
1943
+ */
1944
+ proto.mavsdk.rpc.info.FlightInfo.prototype.serializeBinary = function() {
1945
+ var writer = new jspb.BinaryWriter();
1946
+ proto.mavsdk.rpc.info.FlightInfo.serializeBinaryToWriter(this, writer);
1947
+ return writer.getResultBuffer();
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * Serializes the given message to binary data (in protobuf wire
1953
+ * format), writing to the given BinaryWriter.
1954
+ * @param {!proto.mavsdk.rpc.info.FlightInfo} message
1955
+ * @param {!jspb.BinaryWriter} writer
1956
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1957
+ */
1958
+ proto.mavsdk.rpc.info.FlightInfo.serializeBinaryToWriter = function(message, writer) {
1959
+ var f = undefined;
1960
+ f = message.getTimeBootMs();
1961
+ if (f !== 0) {
1962
+ writer.writeUint32(
1963
+ 1,
1964
+ f
1965
+ );
1966
+ }
1967
+ f = message.getFlightUid();
1968
+ if (f !== 0) {
1969
+ writer.writeUint64(
1970
+ 2,
1971
+ f
1972
+ );
1973
+ }
1974
+ };
1975
+
1976
+
1977
+ /**
1978
+ * optional uint32 time_boot_ms = 1;
1979
+ * @return {number}
1980
+ */
1981
+ proto.mavsdk.rpc.info.FlightInfo.prototype.getTimeBootMs = function() {
1982
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1983
+ };
1984
+
1985
+
1986
+ /**
1987
+ * @param {number} value
1988
+ * @return {!proto.mavsdk.rpc.info.FlightInfo} returns this
1989
+ */
1990
+ proto.mavsdk.rpc.info.FlightInfo.prototype.setTimeBootMs = function(value) {
1991
+ return jspb.Message.setProto3IntField(this, 1, value);
1992
+ };
1993
+
1994
+
1995
+ /**
1996
+ * optional uint64 flight_uid = 2;
1997
+ * @return {number}
1998
+ */
1999
+ proto.mavsdk.rpc.info.FlightInfo.prototype.getFlightUid = function() {
2000
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2001
+ };
2002
+
2003
+
2004
+ /**
2005
+ * @param {number} value
2006
+ * @return {!proto.mavsdk.rpc.info.FlightInfo} returns this
2007
+ */
2008
+ proto.mavsdk.rpc.info.FlightInfo.prototype.setFlightUid = function(value) {
2009
+ return jspb.Message.setProto3IntField(this, 2, value);
2010
+ };
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2017
+ /**
2018
+ * Creates an object representation of this proto.
2019
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2020
+ * Optional fields that are not set will be set to undefined.
2021
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2022
+ * For the list of reserved names please see:
2023
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2024
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2025
+ * JSPB instance for transitional soy proto support:
2026
+ * http://goto/soy-param-migration
2027
+ * @return {!Object}
2028
+ */
2029
+ proto.mavsdk.rpc.info.Identification.prototype.toObject = function(opt_includeInstance) {
2030
+ return proto.mavsdk.rpc.info.Identification.toObject(opt_includeInstance, this);
2031
+ };
2032
+
2033
+
2034
+ /**
2035
+ * Static version of the {@see toObject} method.
2036
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2037
+ * the JSPB instance for transitional soy proto support:
2038
+ * http://goto/soy-param-migration
2039
+ * @param {!proto.mavsdk.rpc.info.Identification} msg The msg instance to transform.
2040
+ * @return {!Object}
2041
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2042
+ */
2043
+ proto.mavsdk.rpc.info.Identification.toObject = function(includeInstance, msg) {
2044
+ var f, obj = {
2045
+ hardwareUid: jspb.Message.getFieldWithDefault(msg, 1, ""),
2046
+ legacyUid: jspb.Message.getFieldWithDefault(msg, 2, 0)
2047
+ };
2048
+
2049
+ if (includeInstance) {
2050
+ obj.$jspbMessageInstance = msg;
2051
+ }
2052
+ return obj;
2053
+ };
2054
+ }
2055
+
2056
+
2057
+ /**
2058
+ * Deserializes binary data (in protobuf wire format).
2059
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2060
+ * @return {!proto.mavsdk.rpc.info.Identification}
2061
+ */
2062
+ proto.mavsdk.rpc.info.Identification.deserializeBinary = function(bytes) {
2063
+ var reader = new jspb.BinaryReader(bytes);
2064
+ var msg = new proto.mavsdk.rpc.info.Identification;
2065
+ return proto.mavsdk.rpc.info.Identification.deserializeBinaryFromReader(msg, reader);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * Deserializes binary data (in protobuf wire format) from the
2071
+ * given reader into the given message object.
2072
+ * @param {!proto.mavsdk.rpc.info.Identification} msg The message object to deserialize into.
2073
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2074
+ * @return {!proto.mavsdk.rpc.info.Identification}
2075
+ */
2076
+ proto.mavsdk.rpc.info.Identification.deserializeBinaryFromReader = function(msg, reader) {
2077
+ while (reader.nextField()) {
2078
+ if (reader.isEndGroup()) {
2079
+ break;
2080
+ }
2081
+ var field = reader.getFieldNumber();
2082
+ switch (field) {
2083
+ case 1:
2084
+ var value = /** @type {string} */ (reader.readString());
2085
+ msg.setHardwareUid(value);
2086
+ break;
2087
+ case 2:
2088
+ var value = /** @type {number} */ (reader.readUint64());
2089
+ msg.setLegacyUid(value);
2090
+ break;
2091
+ default:
2092
+ reader.skipField();
2093
+ break;
2094
+ }
2095
+ }
2096
+ return msg;
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * Serializes the message to binary data (in protobuf wire format).
2102
+ * @return {!Uint8Array}
2103
+ */
2104
+ proto.mavsdk.rpc.info.Identification.prototype.serializeBinary = function() {
2105
+ var writer = new jspb.BinaryWriter();
2106
+ proto.mavsdk.rpc.info.Identification.serializeBinaryToWriter(this, writer);
2107
+ return writer.getResultBuffer();
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * Serializes the given message to binary data (in protobuf wire
2113
+ * format), writing to the given BinaryWriter.
2114
+ * @param {!proto.mavsdk.rpc.info.Identification} message
2115
+ * @param {!jspb.BinaryWriter} writer
2116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2117
+ */
2118
+ proto.mavsdk.rpc.info.Identification.serializeBinaryToWriter = function(message, writer) {
2119
+ var f = undefined;
2120
+ f = message.getHardwareUid();
2121
+ if (f.length > 0) {
2122
+ writer.writeString(
2123
+ 1,
2124
+ f
2125
+ );
2126
+ }
2127
+ f = message.getLegacyUid();
2128
+ if (f !== 0) {
2129
+ writer.writeUint64(
2130
+ 2,
2131
+ f
2132
+ );
2133
+ }
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * optional string hardware_uid = 1;
2139
+ * @return {string}
2140
+ */
2141
+ proto.mavsdk.rpc.info.Identification.prototype.getHardwareUid = function() {
2142
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * @param {string} value
2148
+ * @return {!proto.mavsdk.rpc.info.Identification} returns this
2149
+ */
2150
+ proto.mavsdk.rpc.info.Identification.prototype.setHardwareUid = function(value) {
2151
+ return jspb.Message.setProto3StringField(this, 1, value);
2152
+ };
2153
+
2154
+
2155
+ /**
2156
+ * optional uint64 legacy_uid = 2;
2157
+ * @return {number}
2158
+ */
2159
+ proto.mavsdk.rpc.info.Identification.prototype.getLegacyUid = function() {
2160
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2161
+ };
2162
+
2163
+
2164
+ /**
2165
+ * @param {number} value
2166
+ * @return {!proto.mavsdk.rpc.info.Identification} returns this
2167
+ */
2168
+ proto.mavsdk.rpc.info.Identification.prototype.setLegacyUid = function(value) {
2169
+ return jspb.Message.setProto3IntField(this, 2, value);
2170
+ };
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2177
+ /**
2178
+ * Creates an object representation of this proto.
2179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2180
+ * Optional fields that are not set will be set to undefined.
2181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2182
+ * For the list of reserved names please see:
2183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2185
+ * JSPB instance for transitional soy proto support:
2186
+ * http://goto/soy-param-migration
2187
+ * @return {!Object}
2188
+ */
2189
+ proto.mavsdk.rpc.info.Product.prototype.toObject = function(opt_includeInstance) {
2190
+ return proto.mavsdk.rpc.info.Product.toObject(opt_includeInstance, this);
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * Static version of the {@see toObject} method.
2196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2197
+ * the JSPB instance for transitional soy proto support:
2198
+ * http://goto/soy-param-migration
2199
+ * @param {!proto.mavsdk.rpc.info.Product} msg The msg instance to transform.
2200
+ * @return {!Object}
2201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2202
+ */
2203
+ proto.mavsdk.rpc.info.Product.toObject = function(includeInstance, msg) {
2204
+ var f, obj = {
2205
+ vendorId: jspb.Message.getFieldWithDefault(msg, 1, 0),
2206
+ vendorName: jspb.Message.getFieldWithDefault(msg, 2, ""),
2207
+ productId: jspb.Message.getFieldWithDefault(msg, 3, 0),
2208
+ productName: jspb.Message.getFieldWithDefault(msg, 4, "")
2209
+ };
2210
+
2211
+ if (includeInstance) {
2212
+ obj.$jspbMessageInstance = msg;
2213
+ }
2214
+ return obj;
2215
+ };
2216
+ }
2217
+
2218
+
2219
+ /**
2220
+ * Deserializes binary data (in protobuf wire format).
2221
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2222
+ * @return {!proto.mavsdk.rpc.info.Product}
2223
+ */
2224
+ proto.mavsdk.rpc.info.Product.deserializeBinary = function(bytes) {
2225
+ var reader = new jspb.BinaryReader(bytes);
2226
+ var msg = new proto.mavsdk.rpc.info.Product;
2227
+ return proto.mavsdk.rpc.info.Product.deserializeBinaryFromReader(msg, reader);
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * Deserializes binary data (in protobuf wire format) from the
2233
+ * given reader into the given message object.
2234
+ * @param {!proto.mavsdk.rpc.info.Product} msg The message object to deserialize into.
2235
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2236
+ * @return {!proto.mavsdk.rpc.info.Product}
2237
+ */
2238
+ proto.mavsdk.rpc.info.Product.deserializeBinaryFromReader = function(msg, reader) {
2239
+ while (reader.nextField()) {
2240
+ if (reader.isEndGroup()) {
2241
+ break;
2242
+ }
2243
+ var field = reader.getFieldNumber();
2244
+ switch (field) {
2245
+ case 1:
2246
+ var value = /** @type {number} */ (reader.readInt32());
2247
+ msg.setVendorId(value);
2248
+ break;
2249
+ case 2:
2250
+ var value = /** @type {string} */ (reader.readString());
2251
+ msg.setVendorName(value);
2252
+ break;
2253
+ case 3:
2254
+ var value = /** @type {number} */ (reader.readInt32());
2255
+ msg.setProductId(value);
2256
+ break;
2257
+ case 4:
2258
+ var value = /** @type {string} */ (reader.readString());
2259
+ msg.setProductName(value);
2260
+ break;
2261
+ default:
2262
+ reader.skipField();
2263
+ break;
2264
+ }
2265
+ }
2266
+ return msg;
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Serializes the message to binary data (in protobuf wire format).
2272
+ * @return {!Uint8Array}
2273
+ */
2274
+ proto.mavsdk.rpc.info.Product.prototype.serializeBinary = function() {
2275
+ var writer = new jspb.BinaryWriter();
2276
+ proto.mavsdk.rpc.info.Product.serializeBinaryToWriter(this, writer);
2277
+ return writer.getResultBuffer();
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Serializes the given message to binary data (in protobuf wire
2283
+ * format), writing to the given BinaryWriter.
2284
+ * @param {!proto.mavsdk.rpc.info.Product} message
2285
+ * @param {!jspb.BinaryWriter} writer
2286
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2287
+ */
2288
+ proto.mavsdk.rpc.info.Product.serializeBinaryToWriter = function(message, writer) {
2289
+ var f = undefined;
2290
+ f = message.getVendorId();
2291
+ if (f !== 0) {
2292
+ writer.writeInt32(
2293
+ 1,
2294
+ f
2295
+ );
2296
+ }
2297
+ f = message.getVendorName();
2298
+ if (f.length > 0) {
2299
+ writer.writeString(
2300
+ 2,
2301
+ f
2302
+ );
2303
+ }
2304
+ f = message.getProductId();
2305
+ if (f !== 0) {
2306
+ writer.writeInt32(
2307
+ 3,
2308
+ f
2309
+ );
2310
+ }
2311
+ f = message.getProductName();
2312
+ if (f.length > 0) {
2313
+ writer.writeString(
2314
+ 4,
2315
+ f
2316
+ );
2317
+ }
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * optional int32 vendor_id = 1;
2323
+ * @return {number}
2324
+ */
2325
+ proto.mavsdk.rpc.info.Product.prototype.getVendorId = function() {
2326
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * @param {number} value
2332
+ * @return {!proto.mavsdk.rpc.info.Product} returns this
2333
+ */
2334
+ proto.mavsdk.rpc.info.Product.prototype.setVendorId = function(value) {
2335
+ return jspb.Message.setProto3IntField(this, 1, value);
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * optional string vendor_name = 2;
2341
+ * @return {string}
2342
+ */
2343
+ proto.mavsdk.rpc.info.Product.prototype.getVendorName = function() {
2344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * @param {string} value
2350
+ * @return {!proto.mavsdk.rpc.info.Product} returns this
2351
+ */
2352
+ proto.mavsdk.rpc.info.Product.prototype.setVendorName = function(value) {
2353
+ return jspb.Message.setProto3StringField(this, 2, value);
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional int32 product_id = 3;
2359
+ * @return {number}
2360
+ */
2361
+ proto.mavsdk.rpc.info.Product.prototype.getProductId = function() {
2362
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {number} value
2368
+ * @return {!proto.mavsdk.rpc.info.Product} returns this
2369
+ */
2370
+ proto.mavsdk.rpc.info.Product.prototype.setProductId = function(value) {
2371
+ return jspb.Message.setProto3IntField(this, 3, value);
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * optional string product_name = 4;
2377
+ * @return {string}
2378
+ */
2379
+ proto.mavsdk.rpc.info.Product.prototype.getProductName = function() {
2380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * @param {string} value
2386
+ * @return {!proto.mavsdk.rpc.info.Product} returns this
2387
+ */
2388
+ proto.mavsdk.rpc.info.Product.prototype.setProductName = function(value) {
2389
+ return jspb.Message.setProto3StringField(this, 4, value);
2390
+ };
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2397
+ /**
2398
+ * Creates an object representation of this proto.
2399
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2400
+ * Optional fields that are not set will be set to undefined.
2401
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2402
+ * For the list of reserved names please see:
2403
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2404
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2405
+ * JSPB instance for transitional soy proto support:
2406
+ * http://goto/soy-param-migration
2407
+ * @return {!Object}
2408
+ */
2409
+ proto.mavsdk.rpc.info.Version.prototype.toObject = function(opt_includeInstance) {
2410
+ return proto.mavsdk.rpc.info.Version.toObject(opt_includeInstance, this);
2411
+ };
2412
+
2413
+
2414
+ /**
2415
+ * Static version of the {@see toObject} method.
2416
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2417
+ * the JSPB instance for transitional soy proto support:
2418
+ * http://goto/soy-param-migration
2419
+ * @param {!proto.mavsdk.rpc.info.Version} msg The msg instance to transform.
2420
+ * @return {!Object}
2421
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2422
+ */
2423
+ proto.mavsdk.rpc.info.Version.toObject = function(includeInstance, msg) {
2424
+ var f, obj = {
2425
+ flightSwMajor: jspb.Message.getFieldWithDefault(msg, 1, 0),
2426
+ flightSwMinor: jspb.Message.getFieldWithDefault(msg, 2, 0),
2427
+ flightSwPatch: jspb.Message.getFieldWithDefault(msg, 3, 0),
2428
+ flightSwVendorMajor: jspb.Message.getFieldWithDefault(msg, 4, 0),
2429
+ flightSwVendorMinor: jspb.Message.getFieldWithDefault(msg, 5, 0),
2430
+ flightSwVendorPatch: jspb.Message.getFieldWithDefault(msg, 6, 0),
2431
+ osSwMajor: jspb.Message.getFieldWithDefault(msg, 7, 0),
2432
+ osSwMinor: jspb.Message.getFieldWithDefault(msg, 8, 0),
2433
+ osSwPatch: jspb.Message.getFieldWithDefault(msg, 9, 0),
2434
+ flightSwGitHash: jspb.Message.getFieldWithDefault(msg, 10, ""),
2435
+ osSwGitHash: jspb.Message.getFieldWithDefault(msg, 11, ""),
2436
+ flightSwVersionType: jspb.Message.getFieldWithDefault(msg, 12, 0)
2437
+ };
2438
+
2439
+ if (includeInstance) {
2440
+ obj.$jspbMessageInstance = msg;
2441
+ }
2442
+ return obj;
2443
+ };
2444
+ }
2445
+
2446
+
2447
+ /**
2448
+ * Deserializes binary data (in protobuf wire format).
2449
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2450
+ * @return {!proto.mavsdk.rpc.info.Version}
2451
+ */
2452
+ proto.mavsdk.rpc.info.Version.deserializeBinary = function(bytes) {
2453
+ var reader = new jspb.BinaryReader(bytes);
2454
+ var msg = new proto.mavsdk.rpc.info.Version;
2455
+ return proto.mavsdk.rpc.info.Version.deserializeBinaryFromReader(msg, reader);
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * Deserializes binary data (in protobuf wire format) from the
2461
+ * given reader into the given message object.
2462
+ * @param {!proto.mavsdk.rpc.info.Version} msg The message object to deserialize into.
2463
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2464
+ * @return {!proto.mavsdk.rpc.info.Version}
2465
+ */
2466
+ proto.mavsdk.rpc.info.Version.deserializeBinaryFromReader = function(msg, reader) {
2467
+ while (reader.nextField()) {
2468
+ if (reader.isEndGroup()) {
2469
+ break;
2470
+ }
2471
+ var field = reader.getFieldNumber();
2472
+ switch (field) {
2473
+ case 1:
2474
+ var value = /** @type {number} */ (reader.readInt32());
2475
+ msg.setFlightSwMajor(value);
2476
+ break;
2477
+ case 2:
2478
+ var value = /** @type {number} */ (reader.readInt32());
2479
+ msg.setFlightSwMinor(value);
2480
+ break;
2481
+ case 3:
2482
+ var value = /** @type {number} */ (reader.readInt32());
2483
+ msg.setFlightSwPatch(value);
2484
+ break;
2485
+ case 4:
2486
+ var value = /** @type {number} */ (reader.readInt32());
2487
+ msg.setFlightSwVendorMajor(value);
2488
+ break;
2489
+ case 5:
2490
+ var value = /** @type {number} */ (reader.readInt32());
2491
+ msg.setFlightSwVendorMinor(value);
2492
+ break;
2493
+ case 6:
2494
+ var value = /** @type {number} */ (reader.readInt32());
2495
+ msg.setFlightSwVendorPatch(value);
2496
+ break;
2497
+ case 7:
2498
+ var value = /** @type {number} */ (reader.readInt32());
2499
+ msg.setOsSwMajor(value);
2500
+ break;
2501
+ case 8:
2502
+ var value = /** @type {number} */ (reader.readInt32());
2503
+ msg.setOsSwMinor(value);
2504
+ break;
2505
+ case 9:
2506
+ var value = /** @type {number} */ (reader.readInt32());
2507
+ msg.setOsSwPatch(value);
2508
+ break;
2509
+ case 10:
2510
+ var value = /** @type {string} */ (reader.readString());
2511
+ msg.setFlightSwGitHash(value);
2512
+ break;
2513
+ case 11:
2514
+ var value = /** @type {string} */ (reader.readString());
2515
+ msg.setOsSwGitHash(value);
2516
+ break;
2517
+ case 12:
2518
+ var value = /** @type {!proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType} */ (reader.readEnum());
2519
+ msg.setFlightSwVersionType(value);
2520
+ break;
2521
+ default:
2522
+ reader.skipField();
2523
+ break;
2524
+ }
2525
+ }
2526
+ return msg;
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Serializes the message to binary data (in protobuf wire format).
2532
+ * @return {!Uint8Array}
2533
+ */
2534
+ proto.mavsdk.rpc.info.Version.prototype.serializeBinary = function() {
2535
+ var writer = new jspb.BinaryWriter();
2536
+ proto.mavsdk.rpc.info.Version.serializeBinaryToWriter(this, writer);
2537
+ return writer.getResultBuffer();
2538
+ };
2539
+
2540
+
2541
+ /**
2542
+ * Serializes the given message to binary data (in protobuf wire
2543
+ * format), writing to the given BinaryWriter.
2544
+ * @param {!proto.mavsdk.rpc.info.Version} message
2545
+ * @param {!jspb.BinaryWriter} writer
2546
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2547
+ */
2548
+ proto.mavsdk.rpc.info.Version.serializeBinaryToWriter = function(message, writer) {
2549
+ var f = undefined;
2550
+ f = message.getFlightSwMajor();
2551
+ if (f !== 0) {
2552
+ writer.writeInt32(
2553
+ 1,
2554
+ f
2555
+ );
2556
+ }
2557
+ f = message.getFlightSwMinor();
2558
+ if (f !== 0) {
2559
+ writer.writeInt32(
2560
+ 2,
2561
+ f
2562
+ );
2563
+ }
2564
+ f = message.getFlightSwPatch();
2565
+ if (f !== 0) {
2566
+ writer.writeInt32(
2567
+ 3,
2568
+ f
2569
+ );
2570
+ }
2571
+ f = message.getFlightSwVendorMajor();
2572
+ if (f !== 0) {
2573
+ writer.writeInt32(
2574
+ 4,
2575
+ f
2576
+ );
2577
+ }
2578
+ f = message.getFlightSwVendorMinor();
2579
+ if (f !== 0) {
2580
+ writer.writeInt32(
2581
+ 5,
2582
+ f
2583
+ );
2584
+ }
2585
+ f = message.getFlightSwVendorPatch();
2586
+ if (f !== 0) {
2587
+ writer.writeInt32(
2588
+ 6,
2589
+ f
2590
+ );
2591
+ }
2592
+ f = message.getOsSwMajor();
2593
+ if (f !== 0) {
2594
+ writer.writeInt32(
2595
+ 7,
2596
+ f
2597
+ );
2598
+ }
2599
+ f = message.getOsSwMinor();
2600
+ if (f !== 0) {
2601
+ writer.writeInt32(
2602
+ 8,
2603
+ f
2604
+ );
2605
+ }
2606
+ f = message.getOsSwPatch();
2607
+ if (f !== 0) {
2608
+ writer.writeInt32(
2609
+ 9,
2610
+ f
2611
+ );
2612
+ }
2613
+ f = message.getFlightSwGitHash();
2614
+ if (f.length > 0) {
2615
+ writer.writeString(
2616
+ 10,
2617
+ f
2618
+ );
2619
+ }
2620
+ f = message.getOsSwGitHash();
2621
+ if (f.length > 0) {
2622
+ writer.writeString(
2623
+ 11,
2624
+ f
2625
+ );
2626
+ }
2627
+ f = message.getFlightSwVersionType();
2628
+ if (f !== 0.0) {
2629
+ writer.writeEnum(
2630
+ 12,
2631
+ f
2632
+ );
2633
+ }
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * @enum {number}
2639
+ */
2640
+ proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType = {
2641
+ FLIGHT_SOFTWARE_VERSION_TYPE_UNKNOWN: 0,
2642
+ FLIGHT_SOFTWARE_VERSION_TYPE_DEV: 1,
2643
+ FLIGHT_SOFTWARE_VERSION_TYPE_ALPHA: 2,
2644
+ FLIGHT_SOFTWARE_VERSION_TYPE_BETA: 3,
2645
+ FLIGHT_SOFTWARE_VERSION_TYPE_RC: 4,
2646
+ FLIGHT_SOFTWARE_VERSION_TYPE_RELEASE: 5
2647
+ };
2648
+
2649
+ /**
2650
+ * optional int32 flight_sw_major = 1;
2651
+ * @return {number}
2652
+ */
2653
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwMajor = function() {
2654
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2655
+ };
2656
+
2657
+
2658
+ /**
2659
+ * @param {number} value
2660
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2661
+ */
2662
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwMajor = function(value) {
2663
+ return jspb.Message.setProto3IntField(this, 1, value);
2664
+ };
2665
+
2666
+
2667
+ /**
2668
+ * optional int32 flight_sw_minor = 2;
2669
+ * @return {number}
2670
+ */
2671
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwMinor = function() {
2672
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2673
+ };
2674
+
2675
+
2676
+ /**
2677
+ * @param {number} value
2678
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2679
+ */
2680
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwMinor = function(value) {
2681
+ return jspb.Message.setProto3IntField(this, 2, value);
2682
+ };
2683
+
2684
+
2685
+ /**
2686
+ * optional int32 flight_sw_patch = 3;
2687
+ * @return {number}
2688
+ */
2689
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwPatch = function() {
2690
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2691
+ };
2692
+
2693
+
2694
+ /**
2695
+ * @param {number} value
2696
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2697
+ */
2698
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwPatch = function(value) {
2699
+ return jspb.Message.setProto3IntField(this, 3, value);
2700
+ };
2701
+
2702
+
2703
+ /**
2704
+ * optional int32 flight_sw_vendor_major = 4;
2705
+ * @return {number}
2706
+ */
2707
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwVendorMajor = function() {
2708
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * @param {number} value
2714
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2715
+ */
2716
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwVendorMajor = function(value) {
2717
+ return jspb.Message.setProto3IntField(this, 4, value);
2718
+ };
2719
+
2720
+
2721
+ /**
2722
+ * optional int32 flight_sw_vendor_minor = 5;
2723
+ * @return {number}
2724
+ */
2725
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwVendorMinor = function() {
2726
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * @param {number} value
2732
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2733
+ */
2734
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwVendorMinor = function(value) {
2735
+ return jspb.Message.setProto3IntField(this, 5, value);
2736
+ };
2737
+
2738
+
2739
+ /**
2740
+ * optional int32 flight_sw_vendor_patch = 6;
2741
+ * @return {number}
2742
+ */
2743
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwVendorPatch = function() {
2744
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2745
+ };
2746
+
2747
+
2748
+ /**
2749
+ * @param {number} value
2750
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2751
+ */
2752
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwVendorPatch = function(value) {
2753
+ return jspb.Message.setProto3IntField(this, 6, value);
2754
+ };
2755
+
2756
+
2757
+ /**
2758
+ * optional int32 os_sw_major = 7;
2759
+ * @return {number}
2760
+ */
2761
+ proto.mavsdk.rpc.info.Version.prototype.getOsSwMajor = function() {
2762
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2763
+ };
2764
+
2765
+
2766
+ /**
2767
+ * @param {number} value
2768
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2769
+ */
2770
+ proto.mavsdk.rpc.info.Version.prototype.setOsSwMajor = function(value) {
2771
+ return jspb.Message.setProto3IntField(this, 7, value);
2772
+ };
2773
+
2774
+
2775
+ /**
2776
+ * optional int32 os_sw_minor = 8;
2777
+ * @return {number}
2778
+ */
2779
+ proto.mavsdk.rpc.info.Version.prototype.getOsSwMinor = function() {
2780
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * @param {number} value
2786
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2787
+ */
2788
+ proto.mavsdk.rpc.info.Version.prototype.setOsSwMinor = function(value) {
2789
+ return jspb.Message.setProto3IntField(this, 8, value);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * optional int32 os_sw_patch = 9;
2795
+ * @return {number}
2796
+ */
2797
+ proto.mavsdk.rpc.info.Version.prototype.getOsSwPatch = function() {
2798
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * @param {number} value
2804
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2805
+ */
2806
+ proto.mavsdk.rpc.info.Version.prototype.setOsSwPatch = function(value) {
2807
+ return jspb.Message.setProto3IntField(this, 9, value);
2808
+ };
2809
+
2810
+
2811
+ /**
2812
+ * optional string flight_sw_git_hash = 10;
2813
+ * @return {string}
2814
+ */
2815
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwGitHash = function() {
2816
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2817
+ };
2818
+
2819
+
2820
+ /**
2821
+ * @param {string} value
2822
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2823
+ */
2824
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwGitHash = function(value) {
2825
+ return jspb.Message.setProto3StringField(this, 10, value);
2826
+ };
2827
+
2828
+
2829
+ /**
2830
+ * optional string os_sw_git_hash = 11;
2831
+ * @return {string}
2832
+ */
2833
+ proto.mavsdk.rpc.info.Version.prototype.getOsSwGitHash = function() {
2834
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2835
+ };
2836
+
2837
+
2838
+ /**
2839
+ * @param {string} value
2840
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2841
+ */
2842
+ proto.mavsdk.rpc.info.Version.prototype.setOsSwGitHash = function(value) {
2843
+ return jspb.Message.setProto3StringField(this, 11, value);
2844
+ };
2845
+
2846
+
2847
+ /**
2848
+ * optional FlightSoftwareVersionType flight_sw_version_type = 12;
2849
+ * @return {!proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType}
2850
+ */
2851
+ proto.mavsdk.rpc.info.Version.prototype.getFlightSwVersionType = function() {
2852
+ return /** @type {!proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2853
+ };
2854
+
2855
+
2856
+ /**
2857
+ * @param {!proto.mavsdk.rpc.info.Version.FlightSoftwareVersionType} value
2858
+ * @return {!proto.mavsdk.rpc.info.Version} returns this
2859
+ */
2860
+ proto.mavsdk.rpc.info.Version.prototype.setFlightSwVersionType = function(value) {
2861
+ return jspb.Message.setProto3EnumField(this, 12, value);
2862
+ };
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2869
+ /**
2870
+ * Creates an object representation of this proto.
2871
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2872
+ * Optional fields that are not set will be set to undefined.
2873
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2874
+ * For the list of reserved names please see:
2875
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2876
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2877
+ * JSPB instance for transitional soy proto support:
2878
+ * http://goto/soy-param-migration
2879
+ * @return {!Object}
2880
+ */
2881
+ proto.mavsdk.rpc.info.InfoResult.prototype.toObject = function(opt_includeInstance) {
2882
+ return proto.mavsdk.rpc.info.InfoResult.toObject(opt_includeInstance, this);
2883
+ };
2884
+
2885
+
2886
+ /**
2887
+ * Static version of the {@see toObject} method.
2888
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2889
+ * the JSPB instance for transitional soy proto support:
2890
+ * http://goto/soy-param-migration
2891
+ * @param {!proto.mavsdk.rpc.info.InfoResult} msg The msg instance to transform.
2892
+ * @return {!Object}
2893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2894
+ */
2895
+ proto.mavsdk.rpc.info.InfoResult.toObject = function(includeInstance, msg) {
2896
+ var f, obj = {
2897
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
2898
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
2899
+ };
2900
+
2901
+ if (includeInstance) {
2902
+ obj.$jspbMessageInstance = msg;
2903
+ }
2904
+ return obj;
2905
+ };
2906
+ }
2907
+
2908
+
2909
+ /**
2910
+ * Deserializes binary data (in protobuf wire format).
2911
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2912
+ * @return {!proto.mavsdk.rpc.info.InfoResult}
2913
+ */
2914
+ proto.mavsdk.rpc.info.InfoResult.deserializeBinary = function(bytes) {
2915
+ var reader = new jspb.BinaryReader(bytes);
2916
+ var msg = new proto.mavsdk.rpc.info.InfoResult;
2917
+ return proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader(msg, reader);
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * Deserializes binary data (in protobuf wire format) from the
2923
+ * given reader into the given message object.
2924
+ * @param {!proto.mavsdk.rpc.info.InfoResult} msg The message object to deserialize into.
2925
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2926
+ * @return {!proto.mavsdk.rpc.info.InfoResult}
2927
+ */
2928
+ proto.mavsdk.rpc.info.InfoResult.deserializeBinaryFromReader = function(msg, reader) {
2929
+ while (reader.nextField()) {
2930
+ if (reader.isEndGroup()) {
2931
+ break;
2932
+ }
2933
+ var field = reader.getFieldNumber();
2934
+ switch (field) {
2935
+ case 1:
2936
+ var value = /** @type {!proto.mavsdk.rpc.info.InfoResult.Result} */ (reader.readEnum());
2937
+ msg.setResult(value);
2938
+ break;
2939
+ case 2:
2940
+ var value = /** @type {string} */ (reader.readString());
2941
+ msg.setResultStr(value);
2942
+ break;
2943
+ default:
2944
+ reader.skipField();
2945
+ break;
2946
+ }
2947
+ }
2948
+ return msg;
2949
+ };
2950
+
2951
+
2952
+ /**
2953
+ * Serializes the message to binary data (in protobuf wire format).
2954
+ * @return {!Uint8Array}
2955
+ */
2956
+ proto.mavsdk.rpc.info.InfoResult.prototype.serializeBinary = function() {
2957
+ var writer = new jspb.BinaryWriter();
2958
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter(this, writer);
2959
+ return writer.getResultBuffer();
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * Serializes the given message to binary data (in protobuf wire
2965
+ * format), writing to the given BinaryWriter.
2966
+ * @param {!proto.mavsdk.rpc.info.InfoResult} message
2967
+ * @param {!jspb.BinaryWriter} writer
2968
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2969
+ */
2970
+ proto.mavsdk.rpc.info.InfoResult.serializeBinaryToWriter = function(message, writer) {
2971
+ var f = undefined;
2972
+ f = message.getResult();
2973
+ if (f !== 0.0) {
2974
+ writer.writeEnum(
2975
+ 1,
2976
+ f
2977
+ );
2978
+ }
2979
+ f = message.getResultStr();
2980
+ if (f.length > 0) {
2981
+ writer.writeString(
2982
+ 2,
2983
+ f
2984
+ );
2985
+ }
2986
+ };
2987
+
2988
+
2989
+ /**
2990
+ * @enum {number}
2991
+ */
2992
+ proto.mavsdk.rpc.info.InfoResult.Result = {
2993
+ RESULT_UNKNOWN: 0,
2994
+ RESULT_SUCCESS: 1,
2995
+ RESULT_INFORMATION_NOT_RECEIVED_YET: 2,
2996
+ RESULT_NO_SYSTEM: 3
2997
+ };
2998
+
2999
+ /**
3000
+ * optional Result result = 1;
3001
+ * @return {!proto.mavsdk.rpc.info.InfoResult.Result}
3002
+ */
3003
+ proto.mavsdk.rpc.info.InfoResult.prototype.getResult = function() {
3004
+ return /** @type {!proto.mavsdk.rpc.info.InfoResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * @param {!proto.mavsdk.rpc.info.InfoResult.Result} value
3010
+ * @return {!proto.mavsdk.rpc.info.InfoResult} returns this
3011
+ */
3012
+ proto.mavsdk.rpc.info.InfoResult.prototype.setResult = function(value) {
3013
+ return jspb.Message.setProto3EnumField(this, 1, value);
3014
+ };
3015
+
3016
+
3017
+ /**
3018
+ * optional string result_str = 2;
3019
+ * @return {string}
3020
+ */
3021
+ proto.mavsdk.rpc.info.InfoResult.prototype.getResultStr = function() {
3022
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * @param {string} value
3028
+ * @return {!proto.mavsdk.rpc.info.InfoResult} returns this
3029
+ */
3030
+ proto.mavsdk.rpc.info.InfoResult.prototype.setResultStr = function(value) {
3031
+ return jspb.Message.setProto3StringField(this, 2, value);
3032
+ };
3033
+
3034
+
3035
+ goog.object.extend(exports, proto.mavsdk.rpc.info);