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