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,1439 @@
1
+ /* eslint-disable */
2
+ // source: component_information_server/component_information_server.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_server.ComponentInformationServerResult', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.FloatParam', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.FloatParamResponse', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.FloatParamUpdate', null, global);
32
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest', null, global);
33
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse', null, global);
34
+ goog.exportSymbol('proto.mavsdk.rpc.component_information_server.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_server.FloatParam = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.mavsdk.rpc.component_information_server.FloatParam, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.mavsdk.rpc.component_information_server.FloatParam.displayName = 'proto.mavsdk.rpc.component_information_server.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_server.ProvideFloatParamRequest = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.displayName = 'proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest';
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_server.ProvideFloatParamResponse = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.displayName = 'proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse';
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_server.FloatParamUpdate = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.mavsdk.rpc.component_information_server.FloatParamUpdate, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.displayName = 'proto.mavsdk.rpc.component_information_server.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_server.SubscribeFloatParamRequest = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
131
+ };
132
+ goog.inherits(proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.displayName = 'proto.mavsdk.rpc.component_information_server.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_server.FloatParamResponse = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.mavsdk.rpc.component_information_server.FloatParamResponse, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.displayName = 'proto.mavsdk.rpc.component_information_server.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_server.ComponentInformationServerResult = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
173
+ };
174
+ goog.inherits(proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.displayName = 'proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult';
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_server.FloatParam.prototype.toObject = function(opt_includeInstance) {
199
+ return proto.mavsdk.rpc.component_information_server.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_server.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_server.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_server.FloatParam}
237
+ */
238
+ proto.mavsdk.rpc.component_information_server.FloatParam.deserializeBinary = function(bytes) {
239
+ var reader = new jspb.BinaryReader(bytes);
240
+ var msg = new proto.mavsdk.rpc.component_information_server.FloatParam;
241
+ return proto.mavsdk.rpc.component_information_server.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_server.FloatParam} msg The message object to deserialize into.
249
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
250
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParam}
251
+ */
252
+ proto.mavsdk.rpc.component_information_server.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_server.FloatParam.prototype.serializeBinary = function() {
309
+ var writer = new jspb.BinaryWriter();
310
+ proto.mavsdk.rpc.component_information_server.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_server.FloatParam} message
319
+ * @param {!jspb.BinaryWriter} writer
320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
321
+ */
322
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
402
+ */
403
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
420
+ */
421
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
438
+ */
439
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
456
+ */
457
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
474
+ */
475
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
492
+ */
493
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
510
+ */
511
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
528
+ */
529
+ proto.mavsdk.rpc.component_information_server.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_server.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_server.FloatParam} returns this
546
+ */
547
+ proto.mavsdk.rpc.component_information_server.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_server.ProvideFloatParamRequest.prototype.toObject = function(opt_includeInstance) {
569
+ return proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.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_server.ProvideFloatParamRequest} 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_server.ProvideFloatParamRequest.toObject = function(includeInstance, msg) {
583
+ var f, obj = {
584
+ param: (f = msg.getParam()) && proto.mavsdk.rpc.component_information_server.FloatParam.toObject(includeInstance, f)
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_server.ProvideFloatParamRequest}
599
+ */
600
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.deserializeBinary = function(bytes) {
601
+ var reader = new jspb.BinaryReader(bytes);
602
+ var msg = new proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest;
603
+ return proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.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_server.ProvideFloatParamRequest} msg The message object to deserialize into.
611
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
612
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest}
613
+ */
614
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.deserializeBinaryFromReader = function(msg, reader) {
615
+ while (reader.nextField()) {
616
+ if (reader.isEndGroup()) {
617
+ break;
618
+ }
619
+ var field = reader.getFieldNumber();
620
+ switch (field) {
621
+ case 1:
622
+ var value = new proto.mavsdk.rpc.component_information_server.FloatParam;
623
+ reader.readMessage(value,proto.mavsdk.rpc.component_information_server.FloatParam.deserializeBinaryFromReader);
624
+ msg.setParam(value);
625
+ break;
626
+ default:
627
+ reader.skipField();
628
+ break;
629
+ }
630
+ }
631
+ return msg;
632
+ };
633
+
634
+
635
+ /**
636
+ * Serializes the message to binary data (in protobuf wire format).
637
+ * @return {!Uint8Array}
638
+ */
639
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.prototype.serializeBinary = function() {
640
+ var writer = new jspb.BinaryWriter();
641
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.serializeBinaryToWriter(this, writer);
642
+ return writer.getResultBuffer();
643
+ };
644
+
645
+
646
+ /**
647
+ * Serializes the given message to binary data (in protobuf wire
648
+ * format), writing to the given BinaryWriter.
649
+ * @param {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest} message
650
+ * @param {!jspb.BinaryWriter} writer
651
+ * @suppress {unusedLocalVariables} f is only used for nested messages
652
+ */
653
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.serializeBinaryToWriter = function(message, writer) {
654
+ var f = undefined;
655
+ f = message.getParam();
656
+ if (f != null) {
657
+ writer.writeMessage(
658
+ 1,
659
+ f,
660
+ proto.mavsdk.rpc.component_information_server.FloatParam.serializeBinaryToWriter
661
+ );
662
+ }
663
+ };
664
+
665
+
666
+ /**
667
+ * optional FloatParam param = 1;
668
+ * @return {?proto.mavsdk.rpc.component_information_server.FloatParam}
669
+ */
670
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.prototype.getParam = function() {
671
+ return /** @type{?proto.mavsdk.rpc.component_information_server.FloatParam} */ (
672
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.component_information_server.FloatParam, 1));
673
+ };
674
+
675
+
676
+ /**
677
+ * @param {?proto.mavsdk.rpc.component_information_server.FloatParam|undefined} value
678
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest} returns this
679
+ */
680
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.prototype.setParam = function(value) {
681
+ return jspb.Message.setWrapperField(this, 1, value);
682
+ };
683
+
684
+
685
+ /**
686
+ * Clears the message field making it undefined.
687
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest} returns this
688
+ */
689
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.prototype.clearParam = function() {
690
+ return this.setParam(undefined);
691
+ };
692
+
693
+
694
+ /**
695
+ * Returns whether this field is set.
696
+ * @return {boolean}
697
+ */
698
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamRequest.prototype.hasParam = function() {
699
+ return jspb.Message.getField(this, 1) != null;
700
+ };
701
+
702
+
703
+
704
+
705
+
706
+ if (jspb.Message.GENERATE_TO_OBJECT) {
707
+ /**
708
+ * Creates an object representation of this proto.
709
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
710
+ * Optional fields that are not set will be set to undefined.
711
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
712
+ * For the list of reserved names please see:
713
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
714
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
715
+ * JSPB instance for transitional soy proto support:
716
+ * http://goto/soy-param-migration
717
+ * @return {!Object}
718
+ */
719
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.toObject = function(opt_includeInstance) {
720
+ return proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.toObject(opt_includeInstance, this);
721
+ };
722
+
723
+
724
+ /**
725
+ * Static version of the {@see toObject} method.
726
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
727
+ * the JSPB instance for transitional soy proto support:
728
+ * http://goto/soy-param-migration
729
+ * @param {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse} msg The msg instance to transform.
730
+ * @return {!Object}
731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
732
+ */
733
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.toObject = function(includeInstance, msg) {
734
+ var f, obj = {
735
+ componentInformationServerResult: (f = msg.getComponentInformationServerResult()) && proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.toObject(includeInstance, f)
736
+ };
737
+
738
+ if (includeInstance) {
739
+ obj.$jspbMessageInstance = msg;
740
+ }
741
+ return obj;
742
+ };
743
+ }
744
+
745
+
746
+ /**
747
+ * Deserializes binary data (in protobuf wire format).
748
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
749
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse}
750
+ */
751
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.deserializeBinary = function(bytes) {
752
+ var reader = new jspb.BinaryReader(bytes);
753
+ var msg = new proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse;
754
+ return proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.deserializeBinaryFromReader(msg, reader);
755
+ };
756
+
757
+
758
+ /**
759
+ * Deserializes binary data (in protobuf wire format) from the
760
+ * given reader into the given message object.
761
+ * @param {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse} msg The message object to deserialize into.
762
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
763
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse}
764
+ */
765
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.deserializeBinaryFromReader = function(msg, reader) {
766
+ while (reader.nextField()) {
767
+ if (reader.isEndGroup()) {
768
+ break;
769
+ }
770
+ var field = reader.getFieldNumber();
771
+ switch (field) {
772
+ case 1:
773
+ var value = new proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult;
774
+ reader.readMessage(value,proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.deserializeBinaryFromReader);
775
+ msg.setComponentInformationServerResult(value);
776
+ break;
777
+ default:
778
+ reader.skipField();
779
+ break;
780
+ }
781
+ }
782
+ return msg;
783
+ };
784
+
785
+
786
+ /**
787
+ * Serializes the message to binary data (in protobuf wire format).
788
+ * @return {!Uint8Array}
789
+ */
790
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.serializeBinary = function() {
791
+ var writer = new jspb.BinaryWriter();
792
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.serializeBinaryToWriter(this, writer);
793
+ return writer.getResultBuffer();
794
+ };
795
+
796
+
797
+ /**
798
+ * Serializes the given message to binary data (in protobuf wire
799
+ * format), writing to the given BinaryWriter.
800
+ * @param {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse} message
801
+ * @param {!jspb.BinaryWriter} writer
802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
803
+ */
804
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.serializeBinaryToWriter = function(message, writer) {
805
+ var f = undefined;
806
+ f = message.getComponentInformationServerResult();
807
+ if (f != null) {
808
+ writer.writeMessage(
809
+ 1,
810
+ f,
811
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.serializeBinaryToWriter
812
+ );
813
+ }
814
+ };
815
+
816
+
817
+ /**
818
+ * optional ComponentInformationServerResult component_information_server_result = 1;
819
+ * @return {?proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult}
820
+ */
821
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.getComponentInformationServerResult = function() {
822
+ return /** @type{?proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} */ (
823
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult, 1));
824
+ };
825
+
826
+
827
+ /**
828
+ * @param {?proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult|undefined} value
829
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse} returns this
830
+ */
831
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.setComponentInformationServerResult = function(value) {
832
+ return jspb.Message.setWrapperField(this, 1, value);
833
+ };
834
+
835
+
836
+ /**
837
+ * Clears the message field making it undefined.
838
+ * @return {!proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse} returns this
839
+ */
840
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.clearComponentInformationServerResult = function() {
841
+ return this.setComponentInformationServerResult(undefined);
842
+ };
843
+
844
+
845
+ /**
846
+ * Returns whether this field is set.
847
+ * @return {boolean}
848
+ */
849
+ proto.mavsdk.rpc.component_information_server.ProvideFloatParamResponse.prototype.hasComponentInformationServerResult = function() {
850
+ return jspb.Message.getField(this, 1) != null;
851
+ };
852
+
853
+
854
+
855
+
856
+
857
+ if (jspb.Message.GENERATE_TO_OBJECT) {
858
+ /**
859
+ * Creates an object representation of this proto.
860
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
861
+ * Optional fields that are not set will be set to undefined.
862
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
863
+ * For the list of reserved names please see:
864
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
865
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
866
+ * JSPB instance for transitional soy proto support:
867
+ * http://goto/soy-param-migration
868
+ * @return {!Object}
869
+ */
870
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.toObject = function(opt_includeInstance) {
871
+ return proto.mavsdk.rpc.component_information_server.FloatParamUpdate.toObject(opt_includeInstance, this);
872
+ };
873
+
874
+
875
+ /**
876
+ * Static version of the {@see toObject} method.
877
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
878
+ * the JSPB instance for transitional soy proto support:
879
+ * http://goto/soy-param-migration
880
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate} msg The msg instance to transform.
881
+ * @return {!Object}
882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
883
+ */
884
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.toObject = function(includeInstance, msg) {
885
+ var f, obj = {
886
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
887
+ value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
888
+ };
889
+
890
+ if (includeInstance) {
891
+ obj.$jspbMessageInstance = msg;
892
+ }
893
+ return obj;
894
+ };
895
+ }
896
+
897
+
898
+ /**
899
+ * Deserializes binary data (in protobuf wire format).
900
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
901
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate}
902
+ */
903
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.deserializeBinary = function(bytes) {
904
+ var reader = new jspb.BinaryReader(bytes);
905
+ var msg = new proto.mavsdk.rpc.component_information_server.FloatParamUpdate;
906
+ return proto.mavsdk.rpc.component_information_server.FloatParamUpdate.deserializeBinaryFromReader(msg, reader);
907
+ };
908
+
909
+
910
+ /**
911
+ * Deserializes binary data (in protobuf wire format) from the
912
+ * given reader into the given message object.
913
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate} msg The message object to deserialize into.
914
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
915
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate}
916
+ */
917
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.deserializeBinaryFromReader = function(msg, reader) {
918
+ while (reader.nextField()) {
919
+ if (reader.isEndGroup()) {
920
+ break;
921
+ }
922
+ var field = reader.getFieldNumber();
923
+ switch (field) {
924
+ case 1:
925
+ var value = /** @type {string} */ (reader.readString());
926
+ msg.setName(value);
927
+ break;
928
+ case 2:
929
+ var value = /** @type {number} */ (reader.readFloat());
930
+ msg.setValue(value);
931
+ break;
932
+ default:
933
+ reader.skipField();
934
+ break;
935
+ }
936
+ }
937
+ return msg;
938
+ };
939
+
940
+
941
+ /**
942
+ * Serializes the message to binary data (in protobuf wire format).
943
+ * @return {!Uint8Array}
944
+ */
945
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.serializeBinary = function() {
946
+ var writer = new jspb.BinaryWriter();
947
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.serializeBinaryToWriter(this, writer);
948
+ return writer.getResultBuffer();
949
+ };
950
+
951
+
952
+ /**
953
+ * Serializes the given message to binary data (in protobuf wire
954
+ * format), writing to the given BinaryWriter.
955
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate} message
956
+ * @param {!jspb.BinaryWriter} writer
957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
958
+ */
959
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.serializeBinaryToWriter = function(message, writer) {
960
+ var f = undefined;
961
+ f = message.getName();
962
+ if (f.length > 0) {
963
+ writer.writeString(
964
+ 1,
965
+ f
966
+ );
967
+ }
968
+ f = message.getValue();
969
+ if (f !== 0.0) {
970
+ writer.writeFloat(
971
+ 2,
972
+ f
973
+ );
974
+ }
975
+ };
976
+
977
+
978
+ /**
979
+ * optional string name = 1;
980
+ * @return {string}
981
+ */
982
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.getName = function() {
983
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
984
+ };
985
+
986
+
987
+ /**
988
+ * @param {string} value
989
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate} returns this
990
+ */
991
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.setName = function(value) {
992
+ return jspb.Message.setProto3StringField(this, 1, value);
993
+ };
994
+
995
+
996
+ /**
997
+ * optional float value = 2;
998
+ * @return {number}
999
+ */
1000
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.getValue = function() {
1001
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
1002
+ };
1003
+
1004
+
1005
+ /**
1006
+ * @param {number} value
1007
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamUpdate} returns this
1008
+ */
1009
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.prototype.setValue = function(value) {
1010
+ return jspb.Message.setProto3FloatField(this, 2, value);
1011
+ };
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1018
+ /**
1019
+ * Creates an object representation of this proto.
1020
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1021
+ * Optional fields that are not set will be set to undefined.
1022
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1023
+ * For the list of reserved names please see:
1024
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1025
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1026
+ * JSPB instance for transitional soy proto support:
1027
+ * http://goto/soy-param-migration
1028
+ * @return {!Object}
1029
+ */
1030
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.prototype.toObject = function(opt_includeInstance) {
1031
+ return proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.toObject(opt_includeInstance, this);
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * Static version of the {@see toObject} method.
1037
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1038
+ * the JSPB instance for transitional soy proto support:
1039
+ * http://goto/soy-param-migration
1040
+ * @param {!proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest} msg The msg instance to transform.
1041
+ * @return {!Object}
1042
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1043
+ */
1044
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.toObject = function(includeInstance, msg) {
1045
+ var f, obj = {
1046
+
1047
+ };
1048
+
1049
+ if (includeInstance) {
1050
+ obj.$jspbMessageInstance = msg;
1051
+ }
1052
+ return obj;
1053
+ };
1054
+ }
1055
+
1056
+
1057
+ /**
1058
+ * Deserializes binary data (in protobuf wire format).
1059
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1060
+ * @return {!proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest}
1061
+ */
1062
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.deserializeBinary = function(bytes) {
1063
+ var reader = new jspb.BinaryReader(bytes);
1064
+ var msg = new proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest;
1065
+ return proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.deserializeBinaryFromReader(msg, reader);
1066
+ };
1067
+
1068
+
1069
+ /**
1070
+ * Deserializes binary data (in protobuf wire format) from the
1071
+ * given reader into the given message object.
1072
+ * @param {!proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest} msg The message object to deserialize into.
1073
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1074
+ * @return {!proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest}
1075
+ */
1076
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.deserializeBinaryFromReader = function(msg, reader) {
1077
+ while (reader.nextField()) {
1078
+ if (reader.isEndGroup()) {
1079
+ break;
1080
+ }
1081
+ var field = reader.getFieldNumber();
1082
+ switch (field) {
1083
+ default:
1084
+ reader.skipField();
1085
+ break;
1086
+ }
1087
+ }
1088
+ return msg;
1089
+ };
1090
+
1091
+
1092
+ /**
1093
+ * Serializes the message to binary data (in protobuf wire format).
1094
+ * @return {!Uint8Array}
1095
+ */
1096
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.prototype.serializeBinary = function() {
1097
+ var writer = new jspb.BinaryWriter();
1098
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.serializeBinaryToWriter(this, writer);
1099
+ return writer.getResultBuffer();
1100
+ };
1101
+
1102
+
1103
+ /**
1104
+ * Serializes the given message to binary data (in protobuf wire
1105
+ * format), writing to the given BinaryWriter.
1106
+ * @param {!proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest} message
1107
+ * @param {!jspb.BinaryWriter} writer
1108
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1109
+ */
1110
+ proto.mavsdk.rpc.component_information_server.SubscribeFloatParamRequest.serializeBinaryToWriter = function(message, writer) {
1111
+ var f = undefined;
1112
+ };
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1119
+ /**
1120
+ * Creates an object representation of this proto.
1121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1122
+ * Optional fields that are not set will be set to undefined.
1123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1124
+ * For the list of reserved names please see:
1125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1127
+ * JSPB instance for transitional soy proto support:
1128
+ * http://goto/soy-param-migration
1129
+ * @return {!Object}
1130
+ */
1131
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.toObject = function(opt_includeInstance) {
1132
+ return proto.mavsdk.rpc.component_information_server.FloatParamResponse.toObject(opt_includeInstance, this);
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * Static version of the {@see toObject} method.
1138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1139
+ * the JSPB instance for transitional soy proto support:
1140
+ * http://goto/soy-param-migration
1141
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamResponse} msg The msg instance to transform.
1142
+ * @return {!Object}
1143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1144
+ */
1145
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.toObject = function(includeInstance, msg) {
1146
+ var f, obj = {
1147
+ paramUpdate: (f = msg.getParamUpdate()) && proto.mavsdk.rpc.component_information_server.FloatParamUpdate.toObject(includeInstance, f)
1148
+ };
1149
+
1150
+ if (includeInstance) {
1151
+ obj.$jspbMessageInstance = msg;
1152
+ }
1153
+ return obj;
1154
+ };
1155
+ }
1156
+
1157
+
1158
+ /**
1159
+ * Deserializes binary data (in protobuf wire format).
1160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1161
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamResponse}
1162
+ */
1163
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.deserializeBinary = function(bytes) {
1164
+ var reader = new jspb.BinaryReader(bytes);
1165
+ var msg = new proto.mavsdk.rpc.component_information_server.FloatParamResponse;
1166
+ return proto.mavsdk.rpc.component_information_server.FloatParamResponse.deserializeBinaryFromReader(msg, reader);
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * Deserializes binary data (in protobuf wire format) from the
1172
+ * given reader into the given message object.
1173
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamResponse} msg The message object to deserialize into.
1174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1175
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamResponse}
1176
+ */
1177
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.deserializeBinaryFromReader = function(msg, reader) {
1178
+ while (reader.nextField()) {
1179
+ if (reader.isEndGroup()) {
1180
+ break;
1181
+ }
1182
+ var field = reader.getFieldNumber();
1183
+ switch (field) {
1184
+ case 1:
1185
+ var value = new proto.mavsdk.rpc.component_information_server.FloatParamUpdate;
1186
+ reader.readMessage(value,proto.mavsdk.rpc.component_information_server.FloatParamUpdate.deserializeBinaryFromReader);
1187
+ msg.setParamUpdate(value);
1188
+ break;
1189
+ default:
1190
+ reader.skipField();
1191
+ break;
1192
+ }
1193
+ }
1194
+ return msg;
1195
+ };
1196
+
1197
+
1198
+ /**
1199
+ * Serializes the message to binary data (in protobuf wire format).
1200
+ * @return {!Uint8Array}
1201
+ */
1202
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.serializeBinary = function() {
1203
+ var writer = new jspb.BinaryWriter();
1204
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.serializeBinaryToWriter(this, writer);
1205
+ return writer.getResultBuffer();
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Serializes the given message to binary data (in protobuf wire
1211
+ * format), writing to the given BinaryWriter.
1212
+ * @param {!proto.mavsdk.rpc.component_information_server.FloatParamResponse} message
1213
+ * @param {!jspb.BinaryWriter} writer
1214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1215
+ */
1216
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.serializeBinaryToWriter = function(message, writer) {
1217
+ var f = undefined;
1218
+ f = message.getParamUpdate();
1219
+ if (f != null) {
1220
+ writer.writeMessage(
1221
+ 1,
1222
+ f,
1223
+ proto.mavsdk.rpc.component_information_server.FloatParamUpdate.serializeBinaryToWriter
1224
+ );
1225
+ }
1226
+ };
1227
+
1228
+
1229
+ /**
1230
+ * optional FloatParamUpdate param_update = 1;
1231
+ * @return {?proto.mavsdk.rpc.component_information_server.FloatParamUpdate}
1232
+ */
1233
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.getParamUpdate = function() {
1234
+ return /** @type{?proto.mavsdk.rpc.component_information_server.FloatParamUpdate} */ (
1235
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.component_information_server.FloatParamUpdate, 1));
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * @param {?proto.mavsdk.rpc.component_information_server.FloatParamUpdate|undefined} value
1241
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamResponse} returns this
1242
+ */
1243
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.setParamUpdate = function(value) {
1244
+ return jspb.Message.setWrapperField(this, 1, value);
1245
+ };
1246
+
1247
+
1248
+ /**
1249
+ * Clears the message field making it undefined.
1250
+ * @return {!proto.mavsdk.rpc.component_information_server.FloatParamResponse} returns this
1251
+ */
1252
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.clearParamUpdate = function() {
1253
+ return this.setParamUpdate(undefined);
1254
+ };
1255
+
1256
+
1257
+ /**
1258
+ * Returns whether this field is set.
1259
+ * @return {boolean}
1260
+ */
1261
+ proto.mavsdk.rpc.component_information_server.FloatParamResponse.prototype.hasParamUpdate = function() {
1262
+ return jspb.Message.getField(this, 1) != null;
1263
+ };
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1270
+ /**
1271
+ * Creates an object representation of this proto.
1272
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1273
+ * Optional fields that are not set will be set to undefined.
1274
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1275
+ * For the list of reserved names please see:
1276
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1277
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1278
+ * JSPB instance for transitional soy proto support:
1279
+ * http://goto/soy-param-migration
1280
+ * @return {!Object}
1281
+ */
1282
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.toObject = function(opt_includeInstance) {
1283
+ return proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.toObject(opt_includeInstance, this);
1284
+ };
1285
+
1286
+
1287
+ /**
1288
+ * Static version of the {@see toObject} method.
1289
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1290
+ * the JSPB instance for transitional soy proto support:
1291
+ * http://goto/soy-param-migration
1292
+ * @param {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} msg The msg instance to transform.
1293
+ * @return {!Object}
1294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1295
+ */
1296
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.toObject = function(includeInstance, msg) {
1297
+ var f, obj = {
1298
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
1299
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
1300
+ };
1301
+
1302
+ if (includeInstance) {
1303
+ obj.$jspbMessageInstance = msg;
1304
+ }
1305
+ return obj;
1306
+ };
1307
+ }
1308
+
1309
+
1310
+ /**
1311
+ * Deserializes binary data (in protobuf wire format).
1312
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1313
+ * @return {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult}
1314
+ */
1315
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.deserializeBinary = function(bytes) {
1316
+ var reader = new jspb.BinaryReader(bytes);
1317
+ var msg = new proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult;
1318
+ return proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.deserializeBinaryFromReader(msg, reader);
1319
+ };
1320
+
1321
+
1322
+ /**
1323
+ * Deserializes binary data (in protobuf wire format) from the
1324
+ * given reader into the given message object.
1325
+ * @param {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} msg The message object to deserialize into.
1326
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1327
+ * @return {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult}
1328
+ */
1329
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.deserializeBinaryFromReader = function(msg, reader) {
1330
+ while (reader.nextField()) {
1331
+ if (reader.isEndGroup()) {
1332
+ break;
1333
+ }
1334
+ var field = reader.getFieldNumber();
1335
+ switch (field) {
1336
+ case 1:
1337
+ var value = /** @type {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result} */ (reader.readEnum());
1338
+ msg.setResult(value);
1339
+ break;
1340
+ case 2:
1341
+ var value = /** @type {string} */ (reader.readString());
1342
+ msg.setResultStr(value);
1343
+ break;
1344
+ default:
1345
+ reader.skipField();
1346
+ break;
1347
+ }
1348
+ }
1349
+ return msg;
1350
+ };
1351
+
1352
+
1353
+ /**
1354
+ * Serializes the message to binary data (in protobuf wire format).
1355
+ * @return {!Uint8Array}
1356
+ */
1357
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.serializeBinary = function() {
1358
+ var writer = new jspb.BinaryWriter();
1359
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.serializeBinaryToWriter(this, writer);
1360
+ return writer.getResultBuffer();
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * Serializes the given message to binary data (in protobuf wire
1366
+ * format), writing to the given BinaryWriter.
1367
+ * @param {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} message
1368
+ * @param {!jspb.BinaryWriter} writer
1369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1370
+ */
1371
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.serializeBinaryToWriter = function(message, writer) {
1372
+ var f = undefined;
1373
+ f = message.getResult();
1374
+ if (f !== 0.0) {
1375
+ writer.writeEnum(
1376
+ 1,
1377
+ f
1378
+ );
1379
+ }
1380
+ f = message.getResultStr();
1381
+ if (f.length > 0) {
1382
+ writer.writeString(
1383
+ 2,
1384
+ f
1385
+ );
1386
+ }
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * @enum {number}
1392
+ */
1393
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result = {
1394
+ RESULT_UNKNOWN: 0,
1395
+ RESULT_SUCCESS: 1,
1396
+ RESULT_DUPLICATE_PARAM: 2,
1397
+ RESULT_INVALID_PARAM_START_VALUE: 3,
1398
+ RESULT_INVALID_PARAM_DEFAULT_VALUE: 4,
1399
+ RESULT_INVALID_PARAM_NAME: 5,
1400
+ RESULT_NO_SYSTEM: 6
1401
+ };
1402
+
1403
+ /**
1404
+ * optional Result result = 1;
1405
+ * @return {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result}
1406
+ */
1407
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.getResult = function() {
1408
+ return /** @type {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1409
+ };
1410
+
1411
+
1412
+ /**
1413
+ * @param {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.Result} value
1414
+ * @return {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} returns this
1415
+ */
1416
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.setResult = function(value) {
1417
+ return jspb.Message.setProto3EnumField(this, 1, value);
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * optional string result_str = 2;
1423
+ * @return {string}
1424
+ */
1425
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.getResultStr = function() {
1426
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * @param {string} value
1432
+ * @return {!proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult} returns this
1433
+ */
1434
+ proto.mavsdk.rpc.component_information_server.ComponentInformationServerResult.prototype.setResultStr = function(value) {
1435
+ return jspb.Message.setProto3StringField(this, 2, value);
1436
+ };
1437
+
1438
+
1439
+ goog.object.extend(exports, proto.mavsdk.rpc.component_information_server);