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,2501 @@
1
+ /* eslint-disable */
2
+ // source: calibration/calibration.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.calibration.CalibrateAccelerometerResponse', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrateGyroResponse', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse', null, global);
31
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse', null, global);
32
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrationResult', null, global);
33
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CalibrationResult.Result', null, global);
34
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CancelRequest', null, global);
35
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.CancelResponse', null, global);
36
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.ProgressData', null, global);
37
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest', null, global);
38
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest', null, global);
39
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest', null, global);
40
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest', null, global);
41
+ goog.exportSymbol('proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.displayName = 'proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
+ };
76
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrateGyroResponse, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.displayName = 'proto.mavsdk.rpc.calibration.CalibrateGyroResponse';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.displayName = 'proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
117
+ };
118
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.displayName = 'proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.displayName = 'proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
159
+ };
160
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.displayName = 'proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse';
167
+ }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
+ };
181
+ goog.inherits(proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.displayName = 'proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest';
188
+ }
189
+ /**
190
+ * Generated by JsPbCodeGenerator.
191
+ * @param {Array=} opt_data Optional initial data array, typically from a
192
+ * server response, or constructed directly in Javascript. The array is used
193
+ * in place and becomes part of the constructed object. It is not cloned.
194
+ * If no data is provided, the constructed object will be empty, but still
195
+ * valid.
196
+ * @extends {jspb.Message}
197
+ * @constructor
198
+ */
199
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse = function(opt_data) {
200
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
+ };
202
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse, jspb.Message);
203
+ if (goog.DEBUG && !COMPILED) {
204
+ /**
205
+ * @public
206
+ * @override
207
+ */
208
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.displayName = 'proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse';
209
+ }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
+ };
223
+ goog.inherits(proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.displayName = 'proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.displayName = 'proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse';
251
+ }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.mavsdk.rpc.calibration.CancelRequest = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
264
+ };
265
+ goog.inherits(proto.mavsdk.rpc.calibration.CancelRequest, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.mavsdk.rpc.calibration.CancelRequest.displayName = 'proto.mavsdk.rpc.calibration.CancelRequest';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.mavsdk.rpc.calibration.CancelResponse = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
285
+ };
286
+ goog.inherits(proto.mavsdk.rpc.calibration.CancelResponse, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.mavsdk.rpc.calibration.CancelResponse.displayName = 'proto.mavsdk.rpc.calibration.CancelResponse';
293
+ }
294
+ /**
295
+ * Generated by JsPbCodeGenerator.
296
+ * @param {Array=} opt_data Optional initial data array, typically from a
297
+ * server response, or constructed directly in Javascript. The array is used
298
+ * in place and becomes part of the constructed object. It is not cloned.
299
+ * If no data is provided, the constructed object will be empty, but still
300
+ * valid.
301
+ * @extends {jspb.Message}
302
+ * @constructor
303
+ */
304
+ proto.mavsdk.rpc.calibration.CalibrationResult = function(opt_data) {
305
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
+ };
307
+ goog.inherits(proto.mavsdk.rpc.calibration.CalibrationResult, jspb.Message);
308
+ if (goog.DEBUG && !COMPILED) {
309
+ /**
310
+ * @public
311
+ * @override
312
+ */
313
+ proto.mavsdk.rpc.calibration.CalibrationResult.displayName = 'proto.mavsdk.rpc.calibration.CalibrationResult';
314
+ }
315
+ /**
316
+ * Generated by JsPbCodeGenerator.
317
+ * @param {Array=} opt_data Optional initial data array, typically from a
318
+ * server response, or constructed directly in Javascript. The array is used
319
+ * in place and becomes part of the constructed object. It is not cloned.
320
+ * If no data is provided, the constructed object will be empty, but still
321
+ * valid.
322
+ * @extends {jspb.Message}
323
+ * @constructor
324
+ */
325
+ proto.mavsdk.rpc.calibration.ProgressData = function(opt_data) {
326
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
327
+ };
328
+ goog.inherits(proto.mavsdk.rpc.calibration.ProgressData, jspb.Message);
329
+ if (goog.DEBUG && !COMPILED) {
330
+ /**
331
+ * @public
332
+ * @override
333
+ */
334
+ proto.mavsdk.rpc.calibration.ProgressData.displayName = 'proto.mavsdk.rpc.calibration.ProgressData';
335
+ }
336
+
337
+
338
+
339
+ if (jspb.Message.GENERATE_TO_OBJECT) {
340
+ /**
341
+ * Creates an object representation of this proto.
342
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
343
+ * Optional fields that are not set will be set to undefined.
344
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
345
+ * For the list of reserved names please see:
346
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
347
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
348
+ * JSPB instance for transitional soy proto support:
349
+ * http://goto/soy-param-migration
350
+ * @return {!Object}
351
+ */
352
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.prototype.toObject = function(opt_includeInstance) {
353
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.toObject(opt_includeInstance, this);
354
+ };
355
+
356
+
357
+ /**
358
+ * Static version of the {@see toObject} method.
359
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
360
+ * the JSPB instance for transitional soy proto support:
361
+ * http://goto/soy-param-migration
362
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest} msg The msg instance to transform.
363
+ * @return {!Object}
364
+ * @suppress {unusedLocalVariables} f is only used for nested messages
365
+ */
366
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.toObject = function(includeInstance, msg) {
367
+ var f, obj = {
368
+
369
+ };
370
+
371
+ if (includeInstance) {
372
+ obj.$jspbMessageInstance = msg;
373
+ }
374
+ return obj;
375
+ };
376
+ }
377
+
378
+
379
+ /**
380
+ * Deserializes binary data (in protobuf wire format).
381
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
382
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest}
383
+ */
384
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.deserializeBinary = function(bytes) {
385
+ var reader = new jspb.BinaryReader(bytes);
386
+ var msg = new proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest;
387
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.deserializeBinaryFromReader(msg, reader);
388
+ };
389
+
390
+
391
+ /**
392
+ * Deserializes binary data (in protobuf wire format) from the
393
+ * given reader into the given message object.
394
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest} msg The message object to deserialize into.
395
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
396
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest}
397
+ */
398
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.deserializeBinaryFromReader = function(msg, reader) {
399
+ while (reader.nextField()) {
400
+ if (reader.isEndGroup()) {
401
+ break;
402
+ }
403
+ var field = reader.getFieldNumber();
404
+ switch (field) {
405
+ default:
406
+ reader.skipField();
407
+ break;
408
+ }
409
+ }
410
+ return msg;
411
+ };
412
+
413
+
414
+ /**
415
+ * Serializes the message to binary data (in protobuf wire format).
416
+ * @return {!Uint8Array}
417
+ */
418
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.prototype.serializeBinary = function() {
419
+ var writer = new jspb.BinaryWriter();
420
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.serializeBinaryToWriter(this, writer);
421
+ return writer.getResultBuffer();
422
+ };
423
+
424
+
425
+ /**
426
+ * Serializes the given message to binary data (in protobuf wire
427
+ * format), writing to the given BinaryWriter.
428
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest} message
429
+ * @param {!jspb.BinaryWriter} writer
430
+ * @suppress {unusedLocalVariables} f is only used for nested messages
431
+ */
432
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGyroRequest.serializeBinaryToWriter = function(message, writer) {
433
+ var f = undefined;
434
+ };
435
+
436
+
437
+
438
+
439
+
440
+ if (jspb.Message.GENERATE_TO_OBJECT) {
441
+ /**
442
+ * Creates an object representation of this proto.
443
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
444
+ * Optional fields that are not set will be set to undefined.
445
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
446
+ * For the list of reserved names please see:
447
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
448
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
449
+ * JSPB instance for transitional soy proto support:
450
+ * http://goto/soy-param-migration
451
+ * @return {!Object}
452
+ */
453
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.toObject = function(opt_includeInstance) {
454
+ return proto.mavsdk.rpc.calibration.CalibrateGyroResponse.toObject(opt_includeInstance, this);
455
+ };
456
+
457
+
458
+ /**
459
+ * Static version of the {@see toObject} method.
460
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
461
+ * the JSPB instance for transitional soy proto support:
462
+ * http://goto/soy-param-migration
463
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} msg The msg instance to transform.
464
+ * @return {!Object}
465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
466
+ */
467
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.toObject = function(includeInstance, msg) {
468
+ var f, obj = {
469
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f),
470
+ progressData: (f = msg.getProgressData()) && proto.mavsdk.rpc.calibration.ProgressData.toObject(includeInstance, f)
471
+ };
472
+
473
+ if (includeInstance) {
474
+ obj.$jspbMessageInstance = msg;
475
+ }
476
+ return obj;
477
+ };
478
+ }
479
+
480
+
481
+ /**
482
+ * Deserializes binary data (in protobuf wire format).
483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
484
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse}
485
+ */
486
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.deserializeBinary = function(bytes) {
487
+ var reader = new jspb.BinaryReader(bytes);
488
+ var msg = new proto.mavsdk.rpc.calibration.CalibrateGyroResponse;
489
+ return proto.mavsdk.rpc.calibration.CalibrateGyroResponse.deserializeBinaryFromReader(msg, reader);
490
+ };
491
+
492
+
493
+ /**
494
+ * Deserializes binary data (in protobuf wire format) from the
495
+ * given reader into the given message object.
496
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} msg The message object to deserialize into.
497
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
498
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse}
499
+ */
500
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.deserializeBinaryFromReader = function(msg, reader) {
501
+ while (reader.nextField()) {
502
+ if (reader.isEndGroup()) {
503
+ break;
504
+ }
505
+ var field = reader.getFieldNumber();
506
+ switch (field) {
507
+ case 1:
508
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
509
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
510
+ msg.setCalibrationResult(value);
511
+ break;
512
+ case 2:
513
+ var value = new proto.mavsdk.rpc.calibration.ProgressData;
514
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader);
515
+ msg.setProgressData(value);
516
+ break;
517
+ default:
518
+ reader.skipField();
519
+ break;
520
+ }
521
+ }
522
+ return msg;
523
+ };
524
+
525
+
526
+ /**
527
+ * Serializes the message to binary data (in protobuf wire format).
528
+ * @return {!Uint8Array}
529
+ */
530
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.serializeBinary = function() {
531
+ var writer = new jspb.BinaryWriter();
532
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.serializeBinaryToWriter(this, writer);
533
+ return writer.getResultBuffer();
534
+ };
535
+
536
+
537
+ /**
538
+ * Serializes the given message to binary data (in protobuf wire
539
+ * format), writing to the given BinaryWriter.
540
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} message
541
+ * @param {!jspb.BinaryWriter} writer
542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
543
+ */
544
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.serializeBinaryToWriter = function(message, writer) {
545
+ var f = undefined;
546
+ f = message.getCalibrationResult();
547
+ if (f != null) {
548
+ writer.writeMessage(
549
+ 1,
550
+ f,
551
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
552
+ );
553
+ }
554
+ f = message.getProgressData();
555
+ if (f != null) {
556
+ writer.writeMessage(
557
+ 2,
558
+ f,
559
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter
560
+ );
561
+ }
562
+ };
563
+
564
+
565
+ /**
566
+ * optional CalibrationResult calibration_result = 1;
567
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
568
+ */
569
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.getCalibrationResult = function() {
570
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
571
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
572
+ };
573
+
574
+
575
+ /**
576
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
577
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} returns this
578
+ */
579
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.setCalibrationResult = function(value) {
580
+ return jspb.Message.setWrapperField(this, 1, value);
581
+ };
582
+
583
+
584
+ /**
585
+ * Clears the message field making it undefined.
586
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} returns this
587
+ */
588
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.clearCalibrationResult = function() {
589
+ return this.setCalibrationResult(undefined);
590
+ };
591
+
592
+
593
+ /**
594
+ * Returns whether this field is set.
595
+ * @return {boolean}
596
+ */
597
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.hasCalibrationResult = function() {
598
+ return jspb.Message.getField(this, 1) != null;
599
+ };
600
+
601
+
602
+ /**
603
+ * optional ProgressData progress_data = 2;
604
+ * @return {?proto.mavsdk.rpc.calibration.ProgressData}
605
+ */
606
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.getProgressData = function() {
607
+ return /** @type{?proto.mavsdk.rpc.calibration.ProgressData} */ (
608
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.ProgressData, 2));
609
+ };
610
+
611
+
612
+ /**
613
+ * @param {?proto.mavsdk.rpc.calibration.ProgressData|undefined} value
614
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} returns this
615
+ */
616
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.setProgressData = function(value) {
617
+ return jspb.Message.setWrapperField(this, 2, value);
618
+ };
619
+
620
+
621
+ /**
622
+ * Clears the message field making it undefined.
623
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGyroResponse} returns this
624
+ */
625
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.clearProgressData = function() {
626
+ return this.setProgressData(undefined);
627
+ };
628
+
629
+
630
+ /**
631
+ * Returns whether this field is set.
632
+ * @return {boolean}
633
+ */
634
+ proto.mavsdk.rpc.calibration.CalibrateGyroResponse.prototype.hasProgressData = function() {
635
+ return jspb.Message.getField(this, 2) != null;
636
+ };
637
+
638
+
639
+
640
+
641
+
642
+ if (jspb.Message.GENERATE_TO_OBJECT) {
643
+ /**
644
+ * Creates an object representation of this proto.
645
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
646
+ * Optional fields that are not set will be set to undefined.
647
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
648
+ * For the list of reserved names please see:
649
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
650
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
651
+ * JSPB instance for transitional soy proto support:
652
+ * http://goto/soy-param-migration
653
+ * @return {!Object}
654
+ */
655
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.prototype.toObject = function(opt_includeInstance) {
656
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.toObject(opt_includeInstance, this);
657
+ };
658
+
659
+
660
+ /**
661
+ * Static version of the {@see toObject} method.
662
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
663
+ * the JSPB instance for transitional soy proto support:
664
+ * http://goto/soy-param-migration
665
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest} msg The msg instance to transform.
666
+ * @return {!Object}
667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
668
+ */
669
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.toObject = function(includeInstance, msg) {
670
+ var f, obj = {
671
+
672
+ };
673
+
674
+ if (includeInstance) {
675
+ obj.$jspbMessageInstance = msg;
676
+ }
677
+ return obj;
678
+ };
679
+ }
680
+
681
+
682
+ /**
683
+ * Deserializes binary data (in protobuf wire format).
684
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
685
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest}
686
+ */
687
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.deserializeBinary = function(bytes) {
688
+ var reader = new jspb.BinaryReader(bytes);
689
+ var msg = new proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest;
690
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.deserializeBinaryFromReader(msg, reader);
691
+ };
692
+
693
+
694
+ /**
695
+ * Deserializes binary data (in protobuf wire format) from the
696
+ * given reader into the given message object.
697
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest} msg The message object to deserialize into.
698
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
699
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest}
700
+ */
701
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.deserializeBinaryFromReader = function(msg, reader) {
702
+ while (reader.nextField()) {
703
+ if (reader.isEndGroup()) {
704
+ break;
705
+ }
706
+ var field = reader.getFieldNumber();
707
+ switch (field) {
708
+ default:
709
+ reader.skipField();
710
+ break;
711
+ }
712
+ }
713
+ return msg;
714
+ };
715
+
716
+
717
+ /**
718
+ * Serializes the message to binary data (in protobuf wire format).
719
+ * @return {!Uint8Array}
720
+ */
721
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.prototype.serializeBinary = function() {
722
+ var writer = new jspb.BinaryWriter();
723
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.serializeBinaryToWriter(this, writer);
724
+ return writer.getResultBuffer();
725
+ };
726
+
727
+
728
+ /**
729
+ * Serializes the given message to binary data (in protobuf wire
730
+ * format), writing to the given BinaryWriter.
731
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest} message
732
+ * @param {!jspb.BinaryWriter} writer
733
+ * @suppress {unusedLocalVariables} f is only used for nested messages
734
+ */
735
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateAccelerometerRequest.serializeBinaryToWriter = function(message, writer) {
736
+ var f = undefined;
737
+ };
738
+
739
+
740
+
741
+
742
+
743
+ if (jspb.Message.GENERATE_TO_OBJECT) {
744
+ /**
745
+ * Creates an object representation of this proto.
746
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
747
+ * Optional fields that are not set will be set to undefined.
748
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
749
+ * For the list of reserved names please see:
750
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
751
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
752
+ * JSPB instance for transitional soy proto support:
753
+ * http://goto/soy-param-migration
754
+ * @return {!Object}
755
+ */
756
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.toObject = function(opt_includeInstance) {
757
+ return proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.toObject(opt_includeInstance, this);
758
+ };
759
+
760
+
761
+ /**
762
+ * Static version of the {@see toObject} method.
763
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
764
+ * the JSPB instance for transitional soy proto support:
765
+ * http://goto/soy-param-migration
766
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} msg The msg instance to transform.
767
+ * @return {!Object}
768
+ * @suppress {unusedLocalVariables} f is only used for nested messages
769
+ */
770
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.toObject = function(includeInstance, msg) {
771
+ var f, obj = {
772
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f),
773
+ progressData: (f = msg.getProgressData()) && proto.mavsdk.rpc.calibration.ProgressData.toObject(includeInstance, f)
774
+ };
775
+
776
+ if (includeInstance) {
777
+ obj.$jspbMessageInstance = msg;
778
+ }
779
+ return obj;
780
+ };
781
+ }
782
+
783
+
784
+ /**
785
+ * Deserializes binary data (in protobuf wire format).
786
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
787
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse}
788
+ */
789
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.deserializeBinary = function(bytes) {
790
+ var reader = new jspb.BinaryReader(bytes);
791
+ var msg = new proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse;
792
+ return proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.deserializeBinaryFromReader(msg, reader);
793
+ };
794
+
795
+
796
+ /**
797
+ * Deserializes binary data (in protobuf wire format) from the
798
+ * given reader into the given message object.
799
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} msg The message object to deserialize into.
800
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
801
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse}
802
+ */
803
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.deserializeBinaryFromReader = function(msg, reader) {
804
+ while (reader.nextField()) {
805
+ if (reader.isEndGroup()) {
806
+ break;
807
+ }
808
+ var field = reader.getFieldNumber();
809
+ switch (field) {
810
+ case 1:
811
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
812
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
813
+ msg.setCalibrationResult(value);
814
+ break;
815
+ case 2:
816
+ var value = new proto.mavsdk.rpc.calibration.ProgressData;
817
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader);
818
+ msg.setProgressData(value);
819
+ break;
820
+ default:
821
+ reader.skipField();
822
+ break;
823
+ }
824
+ }
825
+ return msg;
826
+ };
827
+
828
+
829
+ /**
830
+ * Serializes the message to binary data (in protobuf wire format).
831
+ * @return {!Uint8Array}
832
+ */
833
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.serializeBinary = function() {
834
+ var writer = new jspb.BinaryWriter();
835
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.serializeBinaryToWriter(this, writer);
836
+ return writer.getResultBuffer();
837
+ };
838
+
839
+
840
+ /**
841
+ * Serializes the given message to binary data (in protobuf wire
842
+ * format), writing to the given BinaryWriter.
843
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} message
844
+ * @param {!jspb.BinaryWriter} writer
845
+ * @suppress {unusedLocalVariables} f is only used for nested messages
846
+ */
847
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.serializeBinaryToWriter = function(message, writer) {
848
+ var f = undefined;
849
+ f = message.getCalibrationResult();
850
+ if (f != null) {
851
+ writer.writeMessage(
852
+ 1,
853
+ f,
854
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
855
+ );
856
+ }
857
+ f = message.getProgressData();
858
+ if (f != null) {
859
+ writer.writeMessage(
860
+ 2,
861
+ f,
862
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter
863
+ );
864
+ }
865
+ };
866
+
867
+
868
+ /**
869
+ * optional CalibrationResult calibration_result = 1;
870
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
871
+ */
872
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.getCalibrationResult = function() {
873
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
874
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
875
+ };
876
+
877
+
878
+ /**
879
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
880
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} returns this
881
+ */
882
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.setCalibrationResult = function(value) {
883
+ return jspb.Message.setWrapperField(this, 1, value);
884
+ };
885
+
886
+
887
+ /**
888
+ * Clears the message field making it undefined.
889
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} returns this
890
+ */
891
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.clearCalibrationResult = function() {
892
+ return this.setCalibrationResult(undefined);
893
+ };
894
+
895
+
896
+ /**
897
+ * Returns whether this field is set.
898
+ * @return {boolean}
899
+ */
900
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.hasCalibrationResult = function() {
901
+ return jspb.Message.getField(this, 1) != null;
902
+ };
903
+
904
+
905
+ /**
906
+ * optional ProgressData progress_data = 2;
907
+ * @return {?proto.mavsdk.rpc.calibration.ProgressData}
908
+ */
909
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.getProgressData = function() {
910
+ return /** @type{?proto.mavsdk.rpc.calibration.ProgressData} */ (
911
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.ProgressData, 2));
912
+ };
913
+
914
+
915
+ /**
916
+ * @param {?proto.mavsdk.rpc.calibration.ProgressData|undefined} value
917
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} returns this
918
+ */
919
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.setProgressData = function(value) {
920
+ return jspb.Message.setWrapperField(this, 2, value);
921
+ };
922
+
923
+
924
+ /**
925
+ * Clears the message field making it undefined.
926
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse} returns this
927
+ */
928
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.clearProgressData = function() {
929
+ return this.setProgressData(undefined);
930
+ };
931
+
932
+
933
+ /**
934
+ * Returns whether this field is set.
935
+ * @return {boolean}
936
+ */
937
+ proto.mavsdk.rpc.calibration.CalibrateAccelerometerResponse.prototype.hasProgressData = function() {
938
+ return jspb.Message.getField(this, 2) != null;
939
+ };
940
+
941
+
942
+
943
+
944
+
945
+ if (jspb.Message.GENERATE_TO_OBJECT) {
946
+ /**
947
+ * Creates an object representation of this proto.
948
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
949
+ * Optional fields that are not set will be set to undefined.
950
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
951
+ * For the list of reserved names please see:
952
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
953
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
954
+ * JSPB instance for transitional soy proto support:
955
+ * http://goto/soy-param-migration
956
+ * @return {!Object}
957
+ */
958
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.prototype.toObject = function(opt_includeInstance) {
959
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.toObject(opt_includeInstance, this);
960
+ };
961
+
962
+
963
+ /**
964
+ * Static version of the {@see toObject} method.
965
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
966
+ * the JSPB instance for transitional soy proto support:
967
+ * http://goto/soy-param-migration
968
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest} msg The msg instance to transform.
969
+ * @return {!Object}
970
+ * @suppress {unusedLocalVariables} f is only used for nested messages
971
+ */
972
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.toObject = function(includeInstance, msg) {
973
+ var f, obj = {
974
+
975
+ };
976
+
977
+ if (includeInstance) {
978
+ obj.$jspbMessageInstance = msg;
979
+ }
980
+ return obj;
981
+ };
982
+ }
983
+
984
+
985
+ /**
986
+ * Deserializes binary data (in protobuf wire format).
987
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
988
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest}
989
+ */
990
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.deserializeBinary = function(bytes) {
991
+ var reader = new jspb.BinaryReader(bytes);
992
+ var msg = new proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest;
993
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.deserializeBinaryFromReader(msg, reader);
994
+ };
995
+
996
+
997
+ /**
998
+ * Deserializes binary data (in protobuf wire format) from the
999
+ * given reader into the given message object.
1000
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest} msg The message object to deserialize into.
1001
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1002
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest}
1003
+ */
1004
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.deserializeBinaryFromReader = function(msg, reader) {
1005
+ while (reader.nextField()) {
1006
+ if (reader.isEndGroup()) {
1007
+ break;
1008
+ }
1009
+ var field = reader.getFieldNumber();
1010
+ switch (field) {
1011
+ default:
1012
+ reader.skipField();
1013
+ break;
1014
+ }
1015
+ }
1016
+ return msg;
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Serializes the message to binary data (in protobuf wire format).
1022
+ * @return {!Uint8Array}
1023
+ */
1024
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.prototype.serializeBinary = function() {
1025
+ var writer = new jspb.BinaryWriter();
1026
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.serializeBinaryToWriter(this, writer);
1027
+ return writer.getResultBuffer();
1028
+ };
1029
+
1030
+
1031
+ /**
1032
+ * Serializes the given message to binary data (in protobuf wire
1033
+ * format), writing to the given BinaryWriter.
1034
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest} message
1035
+ * @param {!jspb.BinaryWriter} writer
1036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1037
+ */
1038
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateMagnetometerRequest.serializeBinaryToWriter = function(message, writer) {
1039
+ var f = undefined;
1040
+ };
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1047
+ /**
1048
+ * Creates an object representation of this proto.
1049
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1050
+ * Optional fields that are not set will be set to undefined.
1051
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1052
+ * For the list of reserved names please see:
1053
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1054
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1055
+ * JSPB instance for transitional soy proto support:
1056
+ * http://goto/soy-param-migration
1057
+ * @return {!Object}
1058
+ */
1059
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.toObject = function(opt_includeInstance) {
1060
+ return proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.toObject(opt_includeInstance, this);
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * Static version of the {@see toObject} method.
1066
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1067
+ * the JSPB instance for transitional soy proto support:
1068
+ * http://goto/soy-param-migration
1069
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} msg The msg instance to transform.
1070
+ * @return {!Object}
1071
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1072
+ */
1073
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.toObject = function(includeInstance, msg) {
1074
+ var f, obj = {
1075
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f),
1076
+ progressData: (f = msg.getProgressData()) && proto.mavsdk.rpc.calibration.ProgressData.toObject(includeInstance, f)
1077
+ };
1078
+
1079
+ if (includeInstance) {
1080
+ obj.$jspbMessageInstance = msg;
1081
+ }
1082
+ return obj;
1083
+ };
1084
+ }
1085
+
1086
+
1087
+ /**
1088
+ * Deserializes binary data (in protobuf wire format).
1089
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1090
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse}
1091
+ */
1092
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.deserializeBinary = function(bytes) {
1093
+ var reader = new jspb.BinaryReader(bytes);
1094
+ var msg = new proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse;
1095
+ return proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.deserializeBinaryFromReader(msg, reader);
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * Deserializes binary data (in protobuf wire format) from the
1101
+ * given reader into the given message object.
1102
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} msg The message object to deserialize into.
1103
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1104
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse}
1105
+ */
1106
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.deserializeBinaryFromReader = function(msg, reader) {
1107
+ while (reader.nextField()) {
1108
+ if (reader.isEndGroup()) {
1109
+ break;
1110
+ }
1111
+ var field = reader.getFieldNumber();
1112
+ switch (field) {
1113
+ case 1:
1114
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
1115
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
1116
+ msg.setCalibrationResult(value);
1117
+ break;
1118
+ case 2:
1119
+ var value = new proto.mavsdk.rpc.calibration.ProgressData;
1120
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader);
1121
+ msg.setProgressData(value);
1122
+ break;
1123
+ default:
1124
+ reader.skipField();
1125
+ break;
1126
+ }
1127
+ }
1128
+ return msg;
1129
+ };
1130
+
1131
+
1132
+ /**
1133
+ * Serializes the message to binary data (in protobuf wire format).
1134
+ * @return {!Uint8Array}
1135
+ */
1136
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.serializeBinary = function() {
1137
+ var writer = new jspb.BinaryWriter();
1138
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.serializeBinaryToWriter(this, writer);
1139
+ return writer.getResultBuffer();
1140
+ };
1141
+
1142
+
1143
+ /**
1144
+ * Serializes the given message to binary data (in protobuf wire
1145
+ * format), writing to the given BinaryWriter.
1146
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} message
1147
+ * @param {!jspb.BinaryWriter} writer
1148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1149
+ */
1150
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.serializeBinaryToWriter = function(message, writer) {
1151
+ var f = undefined;
1152
+ f = message.getCalibrationResult();
1153
+ if (f != null) {
1154
+ writer.writeMessage(
1155
+ 1,
1156
+ f,
1157
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
1158
+ );
1159
+ }
1160
+ f = message.getProgressData();
1161
+ if (f != null) {
1162
+ writer.writeMessage(
1163
+ 2,
1164
+ f,
1165
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter
1166
+ );
1167
+ }
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * optional CalibrationResult calibration_result = 1;
1173
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
1174
+ */
1175
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.getCalibrationResult = function() {
1176
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
1177
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
1183
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} returns this
1184
+ */
1185
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.setCalibrationResult = function(value) {
1186
+ return jspb.Message.setWrapperField(this, 1, value);
1187
+ };
1188
+
1189
+
1190
+ /**
1191
+ * Clears the message field making it undefined.
1192
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} returns this
1193
+ */
1194
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.clearCalibrationResult = function() {
1195
+ return this.setCalibrationResult(undefined);
1196
+ };
1197
+
1198
+
1199
+ /**
1200
+ * Returns whether this field is set.
1201
+ * @return {boolean}
1202
+ */
1203
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.hasCalibrationResult = function() {
1204
+ return jspb.Message.getField(this, 1) != null;
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * optional ProgressData progress_data = 2;
1210
+ * @return {?proto.mavsdk.rpc.calibration.ProgressData}
1211
+ */
1212
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.getProgressData = function() {
1213
+ return /** @type{?proto.mavsdk.rpc.calibration.ProgressData} */ (
1214
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.ProgressData, 2));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {?proto.mavsdk.rpc.calibration.ProgressData|undefined} value
1220
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} returns this
1221
+ */
1222
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.setProgressData = function(value) {
1223
+ return jspb.Message.setWrapperField(this, 2, value);
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * Clears the message field making it undefined.
1229
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse} returns this
1230
+ */
1231
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.clearProgressData = function() {
1232
+ return this.setProgressData(undefined);
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Returns whether this field is set.
1238
+ * @return {boolean}
1239
+ */
1240
+ proto.mavsdk.rpc.calibration.CalibrateMagnetometerResponse.prototype.hasProgressData = function() {
1241
+ return jspb.Message.getField(this, 2) != null;
1242
+ };
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1249
+ /**
1250
+ * Creates an object representation of this proto.
1251
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1252
+ * Optional fields that are not set will be set to undefined.
1253
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1254
+ * For the list of reserved names please see:
1255
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1256
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1257
+ * JSPB instance for transitional soy proto support:
1258
+ * http://goto/soy-param-migration
1259
+ * @return {!Object}
1260
+ */
1261
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.prototype.toObject = function(opt_includeInstance) {
1262
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.toObject(opt_includeInstance, this);
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * Static version of the {@see toObject} method.
1268
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1269
+ * the JSPB instance for transitional soy proto support:
1270
+ * http://goto/soy-param-migration
1271
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest} msg The msg instance to transform.
1272
+ * @return {!Object}
1273
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1274
+ */
1275
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.toObject = function(includeInstance, msg) {
1276
+ var f, obj = {
1277
+
1278
+ };
1279
+
1280
+ if (includeInstance) {
1281
+ obj.$jspbMessageInstance = msg;
1282
+ }
1283
+ return obj;
1284
+ };
1285
+ }
1286
+
1287
+
1288
+ /**
1289
+ * Deserializes binary data (in protobuf wire format).
1290
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1291
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest}
1292
+ */
1293
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.deserializeBinary = function(bytes) {
1294
+ var reader = new jspb.BinaryReader(bytes);
1295
+ var msg = new proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest;
1296
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.deserializeBinaryFromReader(msg, reader);
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * Deserializes binary data (in protobuf wire format) from the
1302
+ * given reader into the given message object.
1303
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest} msg The message object to deserialize into.
1304
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1305
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest}
1306
+ */
1307
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.deserializeBinaryFromReader = function(msg, reader) {
1308
+ while (reader.nextField()) {
1309
+ if (reader.isEndGroup()) {
1310
+ break;
1311
+ }
1312
+ var field = reader.getFieldNumber();
1313
+ switch (field) {
1314
+ default:
1315
+ reader.skipField();
1316
+ break;
1317
+ }
1318
+ }
1319
+ return msg;
1320
+ };
1321
+
1322
+
1323
+ /**
1324
+ * Serializes the message to binary data (in protobuf wire format).
1325
+ * @return {!Uint8Array}
1326
+ */
1327
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.prototype.serializeBinary = function() {
1328
+ var writer = new jspb.BinaryWriter();
1329
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.serializeBinaryToWriter(this, writer);
1330
+ return writer.getResultBuffer();
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * Serializes the given message to binary data (in protobuf wire
1336
+ * format), writing to the given BinaryWriter.
1337
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest} message
1338
+ * @param {!jspb.BinaryWriter} writer
1339
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1340
+ */
1341
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateLevelHorizonRequest.serializeBinaryToWriter = function(message, writer) {
1342
+ var f = undefined;
1343
+ };
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1350
+ /**
1351
+ * Creates an object representation of this proto.
1352
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1353
+ * Optional fields that are not set will be set to undefined.
1354
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1355
+ * For the list of reserved names please see:
1356
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1357
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1358
+ * JSPB instance for transitional soy proto support:
1359
+ * http://goto/soy-param-migration
1360
+ * @return {!Object}
1361
+ */
1362
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.toObject = function(opt_includeInstance) {
1363
+ return proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.toObject(opt_includeInstance, this);
1364
+ };
1365
+
1366
+
1367
+ /**
1368
+ * Static version of the {@see toObject} method.
1369
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1370
+ * the JSPB instance for transitional soy proto support:
1371
+ * http://goto/soy-param-migration
1372
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} msg The msg instance to transform.
1373
+ * @return {!Object}
1374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1375
+ */
1376
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.toObject = function(includeInstance, msg) {
1377
+ var f, obj = {
1378
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f),
1379
+ progressData: (f = msg.getProgressData()) && proto.mavsdk.rpc.calibration.ProgressData.toObject(includeInstance, f)
1380
+ };
1381
+
1382
+ if (includeInstance) {
1383
+ obj.$jspbMessageInstance = msg;
1384
+ }
1385
+ return obj;
1386
+ };
1387
+ }
1388
+
1389
+
1390
+ /**
1391
+ * Deserializes binary data (in protobuf wire format).
1392
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1393
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse}
1394
+ */
1395
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.deserializeBinary = function(bytes) {
1396
+ var reader = new jspb.BinaryReader(bytes);
1397
+ var msg = new proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse;
1398
+ return proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.deserializeBinaryFromReader(msg, reader);
1399
+ };
1400
+
1401
+
1402
+ /**
1403
+ * Deserializes binary data (in protobuf wire format) from the
1404
+ * given reader into the given message object.
1405
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} msg The message object to deserialize into.
1406
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1407
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse}
1408
+ */
1409
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.deserializeBinaryFromReader = function(msg, reader) {
1410
+ while (reader.nextField()) {
1411
+ if (reader.isEndGroup()) {
1412
+ break;
1413
+ }
1414
+ var field = reader.getFieldNumber();
1415
+ switch (field) {
1416
+ case 1:
1417
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
1418
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
1419
+ msg.setCalibrationResult(value);
1420
+ break;
1421
+ case 2:
1422
+ var value = new proto.mavsdk.rpc.calibration.ProgressData;
1423
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader);
1424
+ msg.setProgressData(value);
1425
+ break;
1426
+ default:
1427
+ reader.skipField();
1428
+ break;
1429
+ }
1430
+ }
1431
+ return msg;
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * Serializes the message to binary data (in protobuf wire format).
1437
+ * @return {!Uint8Array}
1438
+ */
1439
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.serializeBinary = function() {
1440
+ var writer = new jspb.BinaryWriter();
1441
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.serializeBinaryToWriter(this, writer);
1442
+ return writer.getResultBuffer();
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * Serializes the given message to binary data (in protobuf wire
1448
+ * format), writing to the given BinaryWriter.
1449
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} message
1450
+ * @param {!jspb.BinaryWriter} writer
1451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1452
+ */
1453
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.serializeBinaryToWriter = function(message, writer) {
1454
+ var f = undefined;
1455
+ f = message.getCalibrationResult();
1456
+ if (f != null) {
1457
+ writer.writeMessage(
1458
+ 1,
1459
+ f,
1460
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
1461
+ );
1462
+ }
1463
+ f = message.getProgressData();
1464
+ if (f != null) {
1465
+ writer.writeMessage(
1466
+ 2,
1467
+ f,
1468
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter
1469
+ );
1470
+ }
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * optional CalibrationResult calibration_result = 1;
1476
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
1477
+ */
1478
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.getCalibrationResult = function() {
1479
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
1480
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
1486
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} returns this
1487
+ */
1488
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.setCalibrationResult = function(value) {
1489
+ return jspb.Message.setWrapperField(this, 1, value);
1490
+ };
1491
+
1492
+
1493
+ /**
1494
+ * Clears the message field making it undefined.
1495
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} returns this
1496
+ */
1497
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.clearCalibrationResult = function() {
1498
+ return this.setCalibrationResult(undefined);
1499
+ };
1500
+
1501
+
1502
+ /**
1503
+ * Returns whether this field is set.
1504
+ * @return {boolean}
1505
+ */
1506
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.hasCalibrationResult = function() {
1507
+ return jspb.Message.getField(this, 1) != null;
1508
+ };
1509
+
1510
+
1511
+ /**
1512
+ * optional ProgressData progress_data = 2;
1513
+ * @return {?proto.mavsdk.rpc.calibration.ProgressData}
1514
+ */
1515
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.getProgressData = function() {
1516
+ return /** @type{?proto.mavsdk.rpc.calibration.ProgressData} */ (
1517
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.ProgressData, 2));
1518
+ };
1519
+
1520
+
1521
+ /**
1522
+ * @param {?proto.mavsdk.rpc.calibration.ProgressData|undefined} value
1523
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} returns this
1524
+ */
1525
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.setProgressData = function(value) {
1526
+ return jspb.Message.setWrapperField(this, 2, value);
1527
+ };
1528
+
1529
+
1530
+ /**
1531
+ * Clears the message field making it undefined.
1532
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse} returns this
1533
+ */
1534
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.clearProgressData = function() {
1535
+ return this.setProgressData(undefined);
1536
+ };
1537
+
1538
+
1539
+ /**
1540
+ * Returns whether this field is set.
1541
+ * @return {boolean}
1542
+ */
1543
+ proto.mavsdk.rpc.calibration.CalibrateLevelHorizonResponse.prototype.hasProgressData = function() {
1544
+ return jspb.Message.getField(this, 2) != null;
1545
+ };
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1552
+ /**
1553
+ * Creates an object representation of this proto.
1554
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1555
+ * Optional fields that are not set will be set to undefined.
1556
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1557
+ * For the list of reserved names please see:
1558
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1559
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1560
+ * JSPB instance for transitional soy proto support:
1561
+ * http://goto/soy-param-migration
1562
+ * @return {!Object}
1563
+ */
1564
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.prototype.toObject = function(opt_includeInstance) {
1565
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.toObject(opt_includeInstance, this);
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * Static version of the {@see toObject} method.
1571
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1572
+ * the JSPB instance for transitional soy proto support:
1573
+ * http://goto/soy-param-migration
1574
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest} msg The msg instance to transform.
1575
+ * @return {!Object}
1576
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1577
+ */
1578
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.toObject = function(includeInstance, msg) {
1579
+ var f, obj = {
1580
+
1581
+ };
1582
+
1583
+ if (includeInstance) {
1584
+ obj.$jspbMessageInstance = msg;
1585
+ }
1586
+ return obj;
1587
+ };
1588
+ }
1589
+
1590
+
1591
+ /**
1592
+ * Deserializes binary data (in protobuf wire format).
1593
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1594
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest}
1595
+ */
1596
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.deserializeBinary = function(bytes) {
1597
+ var reader = new jspb.BinaryReader(bytes);
1598
+ var msg = new proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest;
1599
+ return proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.deserializeBinaryFromReader(msg, reader);
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * Deserializes binary data (in protobuf wire format) from the
1605
+ * given reader into the given message object.
1606
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest} msg The message object to deserialize into.
1607
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1608
+ * @return {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest}
1609
+ */
1610
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.deserializeBinaryFromReader = function(msg, reader) {
1611
+ while (reader.nextField()) {
1612
+ if (reader.isEndGroup()) {
1613
+ break;
1614
+ }
1615
+ var field = reader.getFieldNumber();
1616
+ switch (field) {
1617
+ default:
1618
+ reader.skipField();
1619
+ break;
1620
+ }
1621
+ }
1622
+ return msg;
1623
+ };
1624
+
1625
+
1626
+ /**
1627
+ * Serializes the message to binary data (in protobuf wire format).
1628
+ * @return {!Uint8Array}
1629
+ */
1630
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.prototype.serializeBinary = function() {
1631
+ var writer = new jspb.BinaryWriter();
1632
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.serializeBinaryToWriter(this, writer);
1633
+ return writer.getResultBuffer();
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * Serializes the given message to binary data (in protobuf wire
1639
+ * format), writing to the given BinaryWriter.
1640
+ * @param {!proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest} message
1641
+ * @param {!jspb.BinaryWriter} writer
1642
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1643
+ */
1644
+ proto.mavsdk.rpc.calibration.SubscribeCalibrateGimbalAccelerometerRequest.serializeBinaryToWriter = function(message, writer) {
1645
+ var f = undefined;
1646
+ };
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1653
+ /**
1654
+ * Creates an object representation of this proto.
1655
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1656
+ * Optional fields that are not set will be set to undefined.
1657
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1658
+ * For the list of reserved names please see:
1659
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1660
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1661
+ * JSPB instance for transitional soy proto support:
1662
+ * http://goto/soy-param-migration
1663
+ * @return {!Object}
1664
+ */
1665
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.toObject = function(opt_includeInstance) {
1666
+ return proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.toObject(opt_includeInstance, this);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Static version of the {@see toObject} method.
1672
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1673
+ * the JSPB instance for transitional soy proto support:
1674
+ * http://goto/soy-param-migration
1675
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} msg The msg instance to transform.
1676
+ * @return {!Object}
1677
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1678
+ */
1679
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.toObject = function(includeInstance, msg) {
1680
+ var f, obj = {
1681
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f),
1682
+ progressData: (f = msg.getProgressData()) && proto.mavsdk.rpc.calibration.ProgressData.toObject(includeInstance, f)
1683
+ };
1684
+
1685
+ if (includeInstance) {
1686
+ obj.$jspbMessageInstance = msg;
1687
+ }
1688
+ return obj;
1689
+ };
1690
+ }
1691
+
1692
+
1693
+ /**
1694
+ * Deserializes binary data (in protobuf wire format).
1695
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1696
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse}
1697
+ */
1698
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.deserializeBinary = function(bytes) {
1699
+ var reader = new jspb.BinaryReader(bytes);
1700
+ var msg = new proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse;
1701
+ return proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.deserializeBinaryFromReader(msg, reader);
1702
+ };
1703
+
1704
+
1705
+ /**
1706
+ * Deserializes binary data (in protobuf wire format) from the
1707
+ * given reader into the given message object.
1708
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} msg The message object to deserialize into.
1709
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1710
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse}
1711
+ */
1712
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.deserializeBinaryFromReader = function(msg, reader) {
1713
+ while (reader.nextField()) {
1714
+ if (reader.isEndGroup()) {
1715
+ break;
1716
+ }
1717
+ var field = reader.getFieldNumber();
1718
+ switch (field) {
1719
+ case 1:
1720
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
1721
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
1722
+ msg.setCalibrationResult(value);
1723
+ break;
1724
+ case 2:
1725
+ var value = new proto.mavsdk.rpc.calibration.ProgressData;
1726
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader);
1727
+ msg.setProgressData(value);
1728
+ break;
1729
+ default:
1730
+ reader.skipField();
1731
+ break;
1732
+ }
1733
+ }
1734
+ return msg;
1735
+ };
1736
+
1737
+
1738
+ /**
1739
+ * Serializes the message to binary data (in protobuf wire format).
1740
+ * @return {!Uint8Array}
1741
+ */
1742
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.serializeBinary = function() {
1743
+ var writer = new jspb.BinaryWriter();
1744
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.serializeBinaryToWriter(this, writer);
1745
+ return writer.getResultBuffer();
1746
+ };
1747
+
1748
+
1749
+ /**
1750
+ * Serializes the given message to binary data (in protobuf wire
1751
+ * format), writing to the given BinaryWriter.
1752
+ * @param {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} message
1753
+ * @param {!jspb.BinaryWriter} writer
1754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1755
+ */
1756
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.serializeBinaryToWriter = function(message, writer) {
1757
+ var f = undefined;
1758
+ f = message.getCalibrationResult();
1759
+ if (f != null) {
1760
+ writer.writeMessage(
1761
+ 1,
1762
+ f,
1763
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
1764
+ );
1765
+ }
1766
+ f = message.getProgressData();
1767
+ if (f != null) {
1768
+ writer.writeMessage(
1769
+ 2,
1770
+ f,
1771
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter
1772
+ );
1773
+ }
1774
+ };
1775
+
1776
+
1777
+ /**
1778
+ * optional CalibrationResult calibration_result = 1;
1779
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
1780
+ */
1781
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.getCalibrationResult = function() {
1782
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
1783
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
1784
+ };
1785
+
1786
+
1787
+ /**
1788
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
1789
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} returns this
1790
+ */
1791
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.setCalibrationResult = function(value) {
1792
+ return jspb.Message.setWrapperField(this, 1, value);
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * Clears the message field making it undefined.
1798
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} returns this
1799
+ */
1800
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.clearCalibrationResult = function() {
1801
+ return this.setCalibrationResult(undefined);
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * Returns whether this field is set.
1807
+ * @return {boolean}
1808
+ */
1809
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.hasCalibrationResult = function() {
1810
+ return jspb.Message.getField(this, 1) != null;
1811
+ };
1812
+
1813
+
1814
+ /**
1815
+ * optional ProgressData progress_data = 2;
1816
+ * @return {?proto.mavsdk.rpc.calibration.ProgressData}
1817
+ */
1818
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.getProgressData = function() {
1819
+ return /** @type{?proto.mavsdk.rpc.calibration.ProgressData} */ (
1820
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.ProgressData, 2));
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * @param {?proto.mavsdk.rpc.calibration.ProgressData|undefined} value
1826
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} returns this
1827
+ */
1828
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.setProgressData = function(value) {
1829
+ return jspb.Message.setWrapperField(this, 2, value);
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * Clears the message field making it undefined.
1835
+ * @return {!proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse} returns this
1836
+ */
1837
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.clearProgressData = function() {
1838
+ return this.setProgressData(undefined);
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * Returns whether this field is set.
1844
+ * @return {boolean}
1845
+ */
1846
+ proto.mavsdk.rpc.calibration.CalibrateGimbalAccelerometerResponse.prototype.hasProgressData = function() {
1847
+ return jspb.Message.getField(this, 2) != null;
1848
+ };
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1855
+ /**
1856
+ * Creates an object representation of this proto.
1857
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1858
+ * Optional fields that are not set will be set to undefined.
1859
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1860
+ * For the list of reserved names please see:
1861
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1862
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1863
+ * JSPB instance for transitional soy proto support:
1864
+ * http://goto/soy-param-migration
1865
+ * @return {!Object}
1866
+ */
1867
+ proto.mavsdk.rpc.calibration.CancelRequest.prototype.toObject = function(opt_includeInstance) {
1868
+ return proto.mavsdk.rpc.calibration.CancelRequest.toObject(opt_includeInstance, this);
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * Static version of the {@see toObject} method.
1874
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1875
+ * the JSPB instance for transitional soy proto support:
1876
+ * http://goto/soy-param-migration
1877
+ * @param {!proto.mavsdk.rpc.calibration.CancelRequest} msg The msg instance to transform.
1878
+ * @return {!Object}
1879
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1880
+ */
1881
+ proto.mavsdk.rpc.calibration.CancelRequest.toObject = function(includeInstance, msg) {
1882
+ var f, obj = {
1883
+
1884
+ };
1885
+
1886
+ if (includeInstance) {
1887
+ obj.$jspbMessageInstance = msg;
1888
+ }
1889
+ return obj;
1890
+ };
1891
+ }
1892
+
1893
+
1894
+ /**
1895
+ * Deserializes binary data (in protobuf wire format).
1896
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1897
+ * @return {!proto.mavsdk.rpc.calibration.CancelRequest}
1898
+ */
1899
+ proto.mavsdk.rpc.calibration.CancelRequest.deserializeBinary = function(bytes) {
1900
+ var reader = new jspb.BinaryReader(bytes);
1901
+ var msg = new proto.mavsdk.rpc.calibration.CancelRequest;
1902
+ return proto.mavsdk.rpc.calibration.CancelRequest.deserializeBinaryFromReader(msg, reader);
1903
+ };
1904
+
1905
+
1906
+ /**
1907
+ * Deserializes binary data (in protobuf wire format) from the
1908
+ * given reader into the given message object.
1909
+ * @param {!proto.mavsdk.rpc.calibration.CancelRequest} msg The message object to deserialize into.
1910
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1911
+ * @return {!proto.mavsdk.rpc.calibration.CancelRequest}
1912
+ */
1913
+ proto.mavsdk.rpc.calibration.CancelRequest.deserializeBinaryFromReader = function(msg, reader) {
1914
+ while (reader.nextField()) {
1915
+ if (reader.isEndGroup()) {
1916
+ break;
1917
+ }
1918
+ var field = reader.getFieldNumber();
1919
+ switch (field) {
1920
+ default:
1921
+ reader.skipField();
1922
+ break;
1923
+ }
1924
+ }
1925
+ return msg;
1926
+ };
1927
+
1928
+
1929
+ /**
1930
+ * Serializes the message to binary data (in protobuf wire format).
1931
+ * @return {!Uint8Array}
1932
+ */
1933
+ proto.mavsdk.rpc.calibration.CancelRequest.prototype.serializeBinary = function() {
1934
+ var writer = new jspb.BinaryWriter();
1935
+ proto.mavsdk.rpc.calibration.CancelRequest.serializeBinaryToWriter(this, writer);
1936
+ return writer.getResultBuffer();
1937
+ };
1938
+
1939
+
1940
+ /**
1941
+ * Serializes the given message to binary data (in protobuf wire
1942
+ * format), writing to the given BinaryWriter.
1943
+ * @param {!proto.mavsdk.rpc.calibration.CancelRequest} message
1944
+ * @param {!jspb.BinaryWriter} writer
1945
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1946
+ */
1947
+ proto.mavsdk.rpc.calibration.CancelRequest.serializeBinaryToWriter = function(message, writer) {
1948
+ var f = undefined;
1949
+ };
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1956
+ /**
1957
+ * Creates an object representation of this proto.
1958
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1959
+ * Optional fields that are not set will be set to undefined.
1960
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1961
+ * For the list of reserved names please see:
1962
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1963
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1964
+ * JSPB instance for transitional soy proto support:
1965
+ * http://goto/soy-param-migration
1966
+ * @return {!Object}
1967
+ */
1968
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.toObject = function(opt_includeInstance) {
1969
+ return proto.mavsdk.rpc.calibration.CancelResponse.toObject(opt_includeInstance, this);
1970
+ };
1971
+
1972
+
1973
+ /**
1974
+ * Static version of the {@see toObject} method.
1975
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1976
+ * the JSPB instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @param {!proto.mavsdk.rpc.calibration.CancelResponse} msg The msg instance to transform.
1979
+ * @return {!Object}
1980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1981
+ */
1982
+ proto.mavsdk.rpc.calibration.CancelResponse.toObject = function(includeInstance, msg) {
1983
+ var f, obj = {
1984
+ calibrationResult: (f = msg.getCalibrationResult()) && proto.mavsdk.rpc.calibration.CalibrationResult.toObject(includeInstance, f)
1985
+ };
1986
+
1987
+ if (includeInstance) {
1988
+ obj.$jspbMessageInstance = msg;
1989
+ }
1990
+ return obj;
1991
+ };
1992
+ }
1993
+
1994
+
1995
+ /**
1996
+ * Deserializes binary data (in protobuf wire format).
1997
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1998
+ * @return {!proto.mavsdk.rpc.calibration.CancelResponse}
1999
+ */
2000
+ proto.mavsdk.rpc.calibration.CancelResponse.deserializeBinary = function(bytes) {
2001
+ var reader = new jspb.BinaryReader(bytes);
2002
+ var msg = new proto.mavsdk.rpc.calibration.CancelResponse;
2003
+ return proto.mavsdk.rpc.calibration.CancelResponse.deserializeBinaryFromReader(msg, reader);
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Deserializes binary data (in protobuf wire format) from the
2009
+ * given reader into the given message object.
2010
+ * @param {!proto.mavsdk.rpc.calibration.CancelResponse} msg The message object to deserialize into.
2011
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2012
+ * @return {!proto.mavsdk.rpc.calibration.CancelResponse}
2013
+ */
2014
+ proto.mavsdk.rpc.calibration.CancelResponse.deserializeBinaryFromReader = function(msg, reader) {
2015
+ while (reader.nextField()) {
2016
+ if (reader.isEndGroup()) {
2017
+ break;
2018
+ }
2019
+ var field = reader.getFieldNumber();
2020
+ switch (field) {
2021
+ case 1:
2022
+ var value = new proto.mavsdk.rpc.calibration.CalibrationResult;
2023
+ reader.readMessage(value,proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader);
2024
+ msg.setCalibrationResult(value);
2025
+ break;
2026
+ default:
2027
+ reader.skipField();
2028
+ break;
2029
+ }
2030
+ }
2031
+ return msg;
2032
+ };
2033
+
2034
+
2035
+ /**
2036
+ * Serializes the message to binary data (in protobuf wire format).
2037
+ * @return {!Uint8Array}
2038
+ */
2039
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.serializeBinary = function() {
2040
+ var writer = new jspb.BinaryWriter();
2041
+ proto.mavsdk.rpc.calibration.CancelResponse.serializeBinaryToWriter(this, writer);
2042
+ return writer.getResultBuffer();
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * Serializes the given message to binary data (in protobuf wire
2048
+ * format), writing to the given BinaryWriter.
2049
+ * @param {!proto.mavsdk.rpc.calibration.CancelResponse} message
2050
+ * @param {!jspb.BinaryWriter} writer
2051
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2052
+ */
2053
+ proto.mavsdk.rpc.calibration.CancelResponse.serializeBinaryToWriter = function(message, writer) {
2054
+ var f = undefined;
2055
+ f = message.getCalibrationResult();
2056
+ if (f != null) {
2057
+ writer.writeMessage(
2058
+ 1,
2059
+ f,
2060
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter
2061
+ );
2062
+ }
2063
+ };
2064
+
2065
+
2066
+ /**
2067
+ * optional CalibrationResult calibration_result = 1;
2068
+ * @return {?proto.mavsdk.rpc.calibration.CalibrationResult}
2069
+ */
2070
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.getCalibrationResult = function() {
2071
+ return /** @type{?proto.mavsdk.rpc.calibration.CalibrationResult} */ (
2072
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.calibration.CalibrationResult, 1));
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * @param {?proto.mavsdk.rpc.calibration.CalibrationResult|undefined} value
2078
+ * @return {!proto.mavsdk.rpc.calibration.CancelResponse} returns this
2079
+ */
2080
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.setCalibrationResult = function(value) {
2081
+ return jspb.Message.setWrapperField(this, 1, value);
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * Clears the message field making it undefined.
2087
+ * @return {!proto.mavsdk.rpc.calibration.CancelResponse} returns this
2088
+ */
2089
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.clearCalibrationResult = function() {
2090
+ return this.setCalibrationResult(undefined);
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * Returns whether this field is set.
2096
+ * @return {boolean}
2097
+ */
2098
+ proto.mavsdk.rpc.calibration.CancelResponse.prototype.hasCalibrationResult = function() {
2099
+ return jspb.Message.getField(this, 1) != null;
2100
+ };
2101
+
2102
+
2103
+
2104
+
2105
+
2106
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2107
+ /**
2108
+ * Creates an object representation of this proto.
2109
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2110
+ * Optional fields that are not set will be set to undefined.
2111
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2112
+ * For the list of reserved names please see:
2113
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2114
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2115
+ * JSPB instance for transitional soy proto support:
2116
+ * http://goto/soy-param-migration
2117
+ * @return {!Object}
2118
+ */
2119
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.toObject = function(opt_includeInstance) {
2120
+ return proto.mavsdk.rpc.calibration.CalibrationResult.toObject(opt_includeInstance, this);
2121
+ };
2122
+
2123
+
2124
+ /**
2125
+ * Static version of the {@see toObject} method.
2126
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2127
+ * the JSPB instance for transitional soy proto support:
2128
+ * http://goto/soy-param-migration
2129
+ * @param {!proto.mavsdk.rpc.calibration.CalibrationResult} msg The msg instance to transform.
2130
+ * @return {!Object}
2131
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2132
+ */
2133
+ proto.mavsdk.rpc.calibration.CalibrationResult.toObject = function(includeInstance, msg) {
2134
+ var f, obj = {
2135
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
2136
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
2137
+ };
2138
+
2139
+ if (includeInstance) {
2140
+ obj.$jspbMessageInstance = msg;
2141
+ }
2142
+ return obj;
2143
+ };
2144
+ }
2145
+
2146
+
2147
+ /**
2148
+ * Deserializes binary data (in protobuf wire format).
2149
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2150
+ * @return {!proto.mavsdk.rpc.calibration.CalibrationResult}
2151
+ */
2152
+ proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinary = function(bytes) {
2153
+ var reader = new jspb.BinaryReader(bytes);
2154
+ var msg = new proto.mavsdk.rpc.calibration.CalibrationResult;
2155
+ return proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader(msg, reader);
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * Deserializes binary data (in protobuf wire format) from the
2161
+ * given reader into the given message object.
2162
+ * @param {!proto.mavsdk.rpc.calibration.CalibrationResult} msg The message object to deserialize into.
2163
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2164
+ * @return {!proto.mavsdk.rpc.calibration.CalibrationResult}
2165
+ */
2166
+ proto.mavsdk.rpc.calibration.CalibrationResult.deserializeBinaryFromReader = function(msg, reader) {
2167
+ while (reader.nextField()) {
2168
+ if (reader.isEndGroup()) {
2169
+ break;
2170
+ }
2171
+ var field = reader.getFieldNumber();
2172
+ switch (field) {
2173
+ case 1:
2174
+ var value = /** @type {!proto.mavsdk.rpc.calibration.CalibrationResult.Result} */ (reader.readEnum());
2175
+ msg.setResult(value);
2176
+ break;
2177
+ case 2:
2178
+ var value = /** @type {string} */ (reader.readString());
2179
+ msg.setResultStr(value);
2180
+ break;
2181
+ default:
2182
+ reader.skipField();
2183
+ break;
2184
+ }
2185
+ }
2186
+ return msg;
2187
+ };
2188
+
2189
+
2190
+ /**
2191
+ * Serializes the message to binary data (in protobuf wire format).
2192
+ * @return {!Uint8Array}
2193
+ */
2194
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.serializeBinary = function() {
2195
+ var writer = new jspb.BinaryWriter();
2196
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter(this, writer);
2197
+ return writer.getResultBuffer();
2198
+ };
2199
+
2200
+
2201
+ /**
2202
+ * Serializes the given message to binary data (in protobuf wire
2203
+ * format), writing to the given BinaryWriter.
2204
+ * @param {!proto.mavsdk.rpc.calibration.CalibrationResult} message
2205
+ * @param {!jspb.BinaryWriter} writer
2206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2207
+ */
2208
+ proto.mavsdk.rpc.calibration.CalibrationResult.serializeBinaryToWriter = function(message, writer) {
2209
+ var f = undefined;
2210
+ f = message.getResult();
2211
+ if (f !== 0.0) {
2212
+ writer.writeEnum(
2213
+ 1,
2214
+ f
2215
+ );
2216
+ }
2217
+ f = message.getResultStr();
2218
+ if (f.length > 0) {
2219
+ writer.writeString(
2220
+ 2,
2221
+ f
2222
+ );
2223
+ }
2224
+ };
2225
+
2226
+
2227
+ /**
2228
+ * @enum {number}
2229
+ */
2230
+ proto.mavsdk.rpc.calibration.CalibrationResult.Result = {
2231
+ RESULT_UNKNOWN: 0,
2232
+ RESULT_SUCCESS: 1,
2233
+ RESULT_NEXT: 2,
2234
+ RESULT_FAILED: 3,
2235
+ RESULT_NO_SYSTEM: 4,
2236
+ RESULT_CONNECTION_ERROR: 5,
2237
+ RESULT_BUSY: 6,
2238
+ RESULT_COMMAND_DENIED: 7,
2239
+ RESULT_TIMEOUT: 8,
2240
+ RESULT_CANCELLED: 9,
2241
+ RESULT_FAILED_ARMED: 10,
2242
+ RESULT_UNSUPPORTED: 11
2243
+ };
2244
+
2245
+ /**
2246
+ * optional Result result = 1;
2247
+ * @return {!proto.mavsdk.rpc.calibration.CalibrationResult.Result}
2248
+ */
2249
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.getResult = function() {
2250
+ return /** @type {!proto.mavsdk.rpc.calibration.CalibrationResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2251
+ };
2252
+
2253
+
2254
+ /**
2255
+ * @param {!proto.mavsdk.rpc.calibration.CalibrationResult.Result} value
2256
+ * @return {!proto.mavsdk.rpc.calibration.CalibrationResult} returns this
2257
+ */
2258
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.setResult = function(value) {
2259
+ return jspb.Message.setProto3EnumField(this, 1, value);
2260
+ };
2261
+
2262
+
2263
+ /**
2264
+ * optional string result_str = 2;
2265
+ * @return {string}
2266
+ */
2267
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.getResultStr = function() {
2268
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * @param {string} value
2274
+ * @return {!proto.mavsdk.rpc.calibration.CalibrationResult} returns this
2275
+ */
2276
+ proto.mavsdk.rpc.calibration.CalibrationResult.prototype.setResultStr = function(value) {
2277
+ return jspb.Message.setProto3StringField(this, 2, value);
2278
+ };
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2285
+ /**
2286
+ * Creates an object representation of this proto.
2287
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2288
+ * Optional fields that are not set will be set to undefined.
2289
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2290
+ * For the list of reserved names please see:
2291
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2292
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2293
+ * JSPB instance for transitional soy proto support:
2294
+ * http://goto/soy-param-migration
2295
+ * @return {!Object}
2296
+ */
2297
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.toObject = function(opt_includeInstance) {
2298
+ return proto.mavsdk.rpc.calibration.ProgressData.toObject(opt_includeInstance, this);
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * Static version of the {@see toObject} method.
2304
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2305
+ * the JSPB instance for transitional soy proto support:
2306
+ * http://goto/soy-param-migration
2307
+ * @param {!proto.mavsdk.rpc.calibration.ProgressData} msg The msg instance to transform.
2308
+ * @return {!Object}
2309
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2310
+ */
2311
+ proto.mavsdk.rpc.calibration.ProgressData.toObject = function(includeInstance, msg) {
2312
+ var f, obj = {
2313
+ hasProgress: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
2314
+ progress: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2315
+ hasStatusText: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2316
+ statusText: jspb.Message.getFieldWithDefault(msg, 4, "")
2317
+ };
2318
+
2319
+ if (includeInstance) {
2320
+ obj.$jspbMessageInstance = msg;
2321
+ }
2322
+ return obj;
2323
+ };
2324
+ }
2325
+
2326
+
2327
+ /**
2328
+ * Deserializes binary data (in protobuf wire format).
2329
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2330
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData}
2331
+ */
2332
+ proto.mavsdk.rpc.calibration.ProgressData.deserializeBinary = function(bytes) {
2333
+ var reader = new jspb.BinaryReader(bytes);
2334
+ var msg = new proto.mavsdk.rpc.calibration.ProgressData;
2335
+ return proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader(msg, reader);
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * Deserializes binary data (in protobuf wire format) from the
2341
+ * given reader into the given message object.
2342
+ * @param {!proto.mavsdk.rpc.calibration.ProgressData} msg The message object to deserialize into.
2343
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2344
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData}
2345
+ */
2346
+ proto.mavsdk.rpc.calibration.ProgressData.deserializeBinaryFromReader = function(msg, reader) {
2347
+ while (reader.nextField()) {
2348
+ if (reader.isEndGroup()) {
2349
+ break;
2350
+ }
2351
+ var field = reader.getFieldNumber();
2352
+ switch (field) {
2353
+ case 1:
2354
+ var value = /** @type {boolean} */ (reader.readBool());
2355
+ msg.setHasProgress(value);
2356
+ break;
2357
+ case 2:
2358
+ var value = /** @type {number} */ (reader.readFloat());
2359
+ msg.setProgress(value);
2360
+ break;
2361
+ case 3:
2362
+ var value = /** @type {boolean} */ (reader.readBool());
2363
+ msg.setHasStatusText(value);
2364
+ break;
2365
+ case 4:
2366
+ var value = /** @type {string} */ (reader.readString());
2367
+ msg.setStatusText(value);
2368
+ break;
2369
+ default:
2370
+ reader.skipField();
2371
+ break;
2372
+ }
2373
+ }
2374
+ return msg;
2375
+ };
2376
+
2377
+
2378
+ /**
2379
+ * Serializes the message to binary data (in protobuf wire format).
2380
+ * @return {!Uint8Array}
2381
+ */
2382
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.serializeBinary = function() {
2383
+ var writer = new jspb.BinaryWriter();
2384
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter(this, writer);
2385
+ return writer.getResultBuffer();
2386
+ };
2387
+
2388
+
2389
+ /**
2390
+ * Serializes the given message to binary data (in protobuf wire
2391
+ * format), writing to the given BinaryWriter.
2392
+ * @param {!proto.mavsdk.rpc.calibration.ProgressData} message
2393
+ * @param {!jspb.BinaryWriter} writer
2394
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2395
+ */
2396
+ proto.mavsdk.rpc.calibration.ProgressData.serializeBinaryToWriter = function(message, writer) {
2397
+ var f = undefined;
2398
+ f = message.getHasProgress();
2399
+ if (f) {
2400
+ writer.writeBool(
2401
+ 1,
2402
+ f
2403
+ );
2404
+ }
2405
+ f = message.getProgress();
2406
+ if (f !== 0.0) {
2407
+ writer.writeFloat(
2408
+ 2,
2409
+ f
2410
+ );
2411
+ }
2412
+ f = message.getHasStatusText();
2413
+ if (f) {
2414
+ writer.writeBool(
2415
+ 3,
2416
+ f
2417
+ );
2418
+ }
2419
+ f = message.getStatusText();
2420
+ if (f.length > 0) {
2421
+ writer.writeString(
2422
+ 4,
2423
+ f
2424
+ );
2425
+ }
2426
+ };
2427
+
2428
+
2429
+ /**
2430
+ * optional bool has_progress = 1;
2431
+ * @return {boolean}
2432
+ */
2433
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.getHasProgress = function() {
2434
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
2435
+ };
2436
+
2437
+
2438
+ /**
2439
+ * @param {boolean} value
2440
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData} returns this
2441
+ */
2442
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.setHasProgress = function(value) {
2443
+ return jspb.Message.setProto3BooleanField(this, 1, value);
2444
+ };
2445
+
2446
+
2447
+ /**
2448
+ * optional float progress = 2;
2449
+ * @return {number}
2450
+ */
2451
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.getProgress = function() {
2452
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2453
+ };
2454
+
2455
+
2456
+ /**
2457
+ * @param {number} value
2458
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData} returns this
2459
+ */
2460
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.setProgress = function(value) {
2461
+ return jspb.Message.setProto3FloatField(this, 2, value);
2462
+ };
2463
+
2464
+
2465
+ /**
2466
+ * optional bool has_status_text = 3;
2467
+ * @return {boolean}
2468
+ */
2469
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.getHasStatusText = function() {
2470
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2471
+ };
2472
+
2473
+
2474
+ /**
2475
+ * @param {boolean} value
2476
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData} returns this
2477
+ */
2478
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.setHasStatusText = function(value) {
2479
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2480
+ };
2481
+
2482
+
2483
+ /**
2484
+ * optional string status_text = 4;
2485
+ * @return {string}
2486
+ */
2487
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.getStatusText = function() {
2488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2489
+ };
2490
+
2491
+
2492
+ /**
2493
+ * @param {string} value
2494
+ * @return {!proto.mavsdk.rpc.calibration.ProgressData} returns this
2495
+ */
2496
+ proto.mavsdk.rpc.calibration.ProgressData.prototype.setStatusText = function(value) {
2497
+ return jspb.Message.setProto3StringField(this, 4, value);
2498
+ };
2499
+
2500
+
2501
+ goog.object.extend(exports, proto.mavsdk.rpc.calibration);