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,804 @@
1
+ /* eslint-disable */
2
+ // source: tune/tune.proto
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {missingRequire} reports error on implicit type usages.
7
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
8
+ * field starts with 'MSG_' and isn't a translatable message.
9
+ * @public
10
+ */
11
+ // GENERATED CODE -- DO NOT EDIT!
12
+ /* eslint-disable */
13
+ // @ts-nocheck
14
+
15
+ var jspb = require('google-protobuf');
16
+ var goog = jspb;
17
+ var global = (function() {
18
+ if (this) { return this; }
19
+ if (typeof window !== 'undefined') { return window; }
20
+ if (typeof global !== 'undefined') { return global; }
21
+ if (typeof self !== 'undefined') { return self; }
22
+ return Function('return this')();
23
+ }.call(null));
24
+
25
+ goog.exportSymbol('proto.mavsdk.rpc.tune.PlayTuneRequest', null, global);
26
+ goog.exportSymbol('proto.mavsdk.rpc.tune.PlayTuneResponse', null, global);
27
+ goog.exportSymbol('proto.mavsdk.rpc.tune.SongElement', null, global);
28
+ goog.exportSymbol('proto.mavsdk.rpc.tune.TuneDescription', null, global);
29
+ goog.exportSymbol('proto.mavsdk.rpc.tune.TuneResult', null, global);
30
+ goog.exportSymbol('proto.mavsdk.rpc.tune.TuneResult.Result', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.mavsdk.rpc.tune.PlayTuneRequest = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.mavsdk.rpc.tune.PlayTuneRequest, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.mavsdk.rpc.tune.PlayTuneRequest.displayName = 'proto.mavsdk.rpc.tune.PlayTuneRequest';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.mavsdk.rpc.tune.PlayTuneResponse = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.mavsdk.rpc.tune.PlayTuneResponse, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.mavsdk.rpc.tune.PlayTuneResponse.displayName = 'proto.mavsdk.rpc.tune.PlayTuneResponse';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.mavsdk.rpc.tune.TuneDescription = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.mavsdk.rpc.tune.TuneDescription.repeatedFields_, null);
85
+ };
86
+ goog.inherits(proto.mavsdk.rpc.tune.TuneDescription, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.mavsdk.rpc.tune.TuneDescription.displayName = 'proto.mavsdk.rpc.tune.TuneDescription';
93
+ }
94
+ /**
95
+ * Generated by JsPbCodeGenerator.
96
+ * @param {Array=} opt_data Optional initial data array, typically from a
97
+ * server response, or constructed directly in Javascript. The array is used
98
+ * in place and becomes part of the constructed object. It is not cloned.
99
+ * If no data is provided, the constructed object will be empty, but still
100
+ * valid.
101
+ * @extends {jspb.Message}
102
+ * @constructor
103
+ */
104
+ proto.mavsdk.rpc.tune.TuneResult = function(opt_data) {
105
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
+ };
107
+ goog.inherits(proto.mavsdk.rpc.tune.TuneResult, jspb.Message);
108
+ if (goog.DEBUG && !COMPILED) {
109
+ /**
110
+ * @public
111
+ * @override
112
+ */
113
+ proto.mavsdk.rpc.tune.TuneResult.displayName = 'proto.mavsdk.rpc.tune.TuneResult';
114
+ }
115
+
116
+
117
+
118
+ if (jspb.Message.GENERATE_TO_OBJECT) {
119
+ /**
120
+ * Creates an object representation of this proto.
121
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
122
+ * Optional fields that are not set will be set to undefined.
123
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
124
+ * For the list of reserved names please see:
125
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
126
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
127
+ * JSPB instance for transitional soy proto support:
128
+ * http://goto/soy-param-migration
129
+ * @return {!Object}
130
+ */
131
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.toObject = function(opt_includeInstance) {
132
+ return proto.mavsdk.rpc.tune.PlayTuneRequest.toObject(opt_includeInstance, this);
133
+ };
134
+
135
+
136
+ /**
137
+ * Static version of the {@see toObject} method.
138
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
139
+ * the JSPB instance for transitional soy proto support:
140
+ * http://goto/soy-param-migration
141
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneRequest} msg The msg instance to transform.
142
+ * @return {!Object}
143
+ * @suppress {unusedLocalVariables} f is only used for nested messages
144
+ */
145
+ proto.mavsdk.rpc.tune.PlayTuneRequest.toObject = function(includeInstance, msg) {
146
+ var f, obj = {
147
+ tuneDescription: (f = msg.getTuneDescription()) && proto.mavsdk.rpc.tune.TuneDescription.toObject(includeInstance, f)
148
+ };
149
+
150
+ if (includeInstance) {
151
+ obj.$jspbMessageInstance = msg;
152
+ }
153
+ return obj;
154
+ };
155
+ }
156
+
157
+
158
+ /**
159
+ * Deserializes binary data (in protobuf wire format).
160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
161
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneRequest}
162
+ */
163
+ proto.mavsdk.rpc.tune.PlayTuneRequest.deserializeBinary = function(bytes) {
164
+ var reader = new jspb.BinaryReader(bytes);
165
+ var msg = new proto.mavsdk.rpc.tune.PlayTuneRequest;
166
+ return proto.mavsdk.rpc.tune.PlayTuneRequest.deserializeBinaryFromReader(msg, reader);
167
+ };
168
+
169
+
170
+ /**
171
+ * Deserializes binary data (in protobuf wire format) from the
172
+ * given reader into the given message object.
173
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneRequest} msg The message object to deserialize into.
174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
175
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneRequest}
176
+ */
177
+ proto.mavsdk.rpc.tune.PlayTuneRequest.deserializeBinaryFromReader = function(msg, reader) {
178
+ while (reader.nextField()) {
179
+ if (reader.isEndGroup()) {
180
+ break;
181
+ }
182
+ var field = reader.getFieldNumber();
183
+ switch (field) {
184
+ case 1:
185
+ var value = new proto.mavsdk.rpc.tune.TuneDescription;
186
+ reader.readMessage(value,proto.mavsdk.rpc.tune.TuneDescription.deserializeBinaryFromReader);
187
+ msg.setTuneDescription(value);
188
+ break;
189
+ default:
190
+ reader.skipField();
191
+ break;
192
+ }
193
+ }
194
+ return msg;
195
+ };
196
+
197
+
198
+ /**
199
+ * Serializes the message to binary data (in protobuf wire format).
200
+ * @return {!Uint8Array}
201
+ */
202
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.serializeBinary = function() {
203
+ var writer = new jspb.BinaryWriter();
204
+ proto.mavsdk.rpc.tune.PlayTuneRequest.serializeBinaryToWriter(this, writer);
205
+ return writer.getResultBuffer();
206
+ };
207
+
208
+
209
+ /**
210
+ * Serializes the given message to binary data (in protobuf wire
211
+ * format), writing to the given BinaryWriter.
212
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneRequest} message
213
+ * @param {!jspb.BinaryWriter} writer
214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
215
+ */
216
+ proto.mavsdk.rpc.tune.PlayTuneRequest.serializeBinaryToWriter = function(message, writer) {
217
+ var f = undefined;
218
+ f = message.getTuneDescription();
219
+ if (f != null) {
220
+ writer.writeMessage(
221
+ 1,
222
+ f,
223
+ proto.mavsdk.rpc.tune.TuneDescription.serializeBinaryToWriter
224
+ );
225
+ }
226
+ };
227
+
228
+
229
+ /**
230
+ * optional TuneDescription tune_description = 1;
231
+ * @return {?proto.mavsdk.rpc.tune.TuneDescription}
232
+ */
233
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.getTuneDescription = function() {
234
+ return /** @type{?proto.mavsdk.rpc.tune.TuneDescription} */ (
235
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.tune.TuneDescription, 1));
236
+ };
237
+
238
+
239
+ /**
240
+ * @param {?proto.mavsdk.rpc.tune.TuneDescription|undefined} value
241
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneRequest} returns this
242
+ */
243
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.setTuneDescription = function(value) {
244
+ return jspb.Message.setWrapperField(this, 1, value);
245
+ };
246
+
247
+
248
+ /**
249
+ * Clears the message field making it undefined.
250
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneRequest} returns this
251
+ */
252
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.clearTuneDescription = function() {
253
+ return this.setTuneDescription(undefined);
254
+ };
255
+
256
+
257
+ /**
258
+ * Returns whether this field is set.
259
+ * @return {boolean}
260
+ */
261
+ proto.mavsdk.rpc.tune.PlayTuneRequest.prototype.hasTuneDescription = function() {
262
+ return jspb.Message.getField(this, 1) != null;
263
+ };
264
+
265
+
266
+
267
+
268
+
269
+ if (jspb.Message.GENERATE_TO_OBJECT) {
270
+ /**
271
+ * Creates an object representation of this proto.
272
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
273
+ * Optional fields that are not set will be set to undefined.
274
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
275
+ * For the list of reserved names please see:
276
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
277
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
278
+ * JSPB instance for transitional soy proto support:
279
+ * http://goto/soy-param-migration
280
+ * @return {!Object}
281
+ */
282
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.toObject = function(opt_includeInstance) {
283
+ return proto.mavsdk.rpc.tune.PlayTuneResponse.toObject(opt_includeInstance, this);
284
+ };
285
+
286
+
287
+ /**
288
+ * Static version of the {@see toObject} method.
289
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
290
+ * the JSPB instance for transitional soy proto support:
291
+ * http://goto/soy-param-migration
292
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneResponse} msg The msg instance to transform.
293
+ * @return {!Object}
294
+ * @suppress {unusedLocalVariables} f is only used for nested messages
295
+ */
296
+ proto.mavsdk.rpc.tune.PlayTuneResponse.toObject = function(includeInstance, msg) {
297
+ var f, obj = {
298
+ tuneResult: (f = msg.getTuneResult()) && proto.mavsdk.rpc.tune.TuneResult.toObject(includeInstance, f)
299
+ };
300
+
301
+ if (includeInstance) {
302
+ obj.$jspbMessageInstance = msg;
303
+ }
304
+ return obj;
305
+ };
306
+ }
307
+
308
+
309
+ /**
310
+ * Deserializes binary data (in protobuf wire format).
311
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
312
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneResponse}
313
+ */
314
+ proto.mavsdk.rpc.tune.PlayTuneResponse.deserializeBinary = function(bytes) {
315
+ var reader = new jspb.BinaryReader(bytes);
316
+ var msg = new proto.mavsdk.rpc.tune.PlayTuneResponse;
317
+ return proto.mavsdk.rpc.tune.PlayTuneResponse.deserializeBinaryFromReader(msg, reader);
318
+ };
319
+
320
+
321
+ /**
322
+ * Deserializes binary data (in protobuf wire format) from the
323
+ * given reader into the given message object.
324
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneResponse} msg The message object to deserialize into.
325
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
326
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneResponse}
327
+ */
328
+ proto.mavsdk.rpc.tune.PlayTuneResponse.deserializeBinaryFromReader = function(msg, reader) {
329
+ while (reader.nextField()) {
330
+ if (reader.isEndGroup()) {
331
+ break;
332
+ }
333
+ var field = reader.getFieldNumber();
334
+ switch (field) {
335
+ case 1:
336
+ var value = new proto.mavsdk.rpc.tune.TuneResult;
337
+ reader.readMessage(value,proto.mavsdk.rpc.tune.TuneResult.deserializeBinaryFromReader);
338
+ msg.setTuneResult(value);
339
+ break;
340
+ default:
341
+ reader.skipField();
342
+ break;
343
+ }
344
+ }
345
+ return msg;
346
+ };
347
+
348
+
349
+ /**
350
+ * Serializes the message to binary data (in protobuf wire format).
351
+ * @return {!Uint8Array}
352
+ */
353
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.serializeBinary = function() {
354
+ var writer = new jspb.BinaryWriter();
355
+ proto.mavsdk.rpc.tune.PlayTuneResponse.serializeBinaryToWriter(this, writer);
356
+ return writer.getResultBuffer();
357
+ };
358
+
359
+
360
+ /**
361
+ * Serializes the given message to binary data (in protobuf wire
362
+ * format), writing to the given BinaryWriter.
363
+ * @param {!proto.mavsdk.rpc.tune.PlayTuneResponse} message
364
+ * @param {!jspb.BinaryWriter} writer
365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
366
+ */
367
+ proto.mavsdk.rpc.tune.PlayTuneResponse.serializeBinaryToWriter = function(message, writer) {
368
+ var f = undefined;
369
+ f = message.getTuneResult();
370
+ if (f != null) {
371
+ writer.writeMessage(
372
+ 1,
373
+ f,
374
+ proto.mavsdk.rpc.tune.TuneResult.serializeBinaryToWriter
375
+ );
376
+ }
377
+ };
378
+
379
+
380
+ /**
381
+ * optional TuneResult tune_result = 1;
382
+ * @return {?proto.mavsdk.rpc.tune.TuneResult}
383
+ */
384
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.getTuneResult = function() {
385
+ return /** @type{?proto.mavsdk.rpc.tune.TuneResult} */ (
386
+ jspb.Message.getWrapperField(this, proto.mavsdk.rpc.tune.TuneResult, 1));
387
+ };
388
+
389
+
390
+ /**
391
+ * @param {?proto.mavsdk.rpc.tune.TuneResult|undefined} value
392
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneResponse} returns this
393
+ */
394
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.setTuneResult = function(value) {
395
+ return jspb.Message.setWrapperField(this, 1, value);
396
+ };
397
+
398
+
399
+ /**
400
+ * Clears the message field making it undefined.
401
+ * @return {!proto.mavsdk.rpc.tune.PlayTuneResponse} returns this
402
+ */
403
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.clearTuneResult = function() {
404
+ return this.setTuneResult(undefined);
405
+ };
406
+
407
+
408
+ /**
409
+ * Returns whether this field is set.
410
+ * @return {boolean}
411
+ */
412
+ proto.mavsdk.rpc.tune.PlayTuneResponse.prototype.hasTuneResult = function() {
413
+ return jspb.Message.getField(this, 1) != null;
414
+ };
415
+
416
+
417
+
418
+ /**
419
+ * List of repeated fields within this message type.
420
+ * @private {!Array<number>}
421
+ * @const
422
+ */
423
+ proto.mavsdk.rpc.tune.TuneDescription.repeatedFields_ = [1];
424
+
425
+
426
+
427
+ if (jspb.Message.GENERATE_TO_OBJECT) {
428
+ /**
429
+ * Creates an object representation of this proto.
430
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
431
+ * Optional fields that are not set will be set to undefined.
432
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
433
+ * For the list of reserved names please see:
434
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
435
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
436
+ * JSPB instance for transitional soy proto support:
437
+ * http://goto/soy-param-migration
438
+ * @return {!Object}
439
+ */
440
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.toObject = function(opt_includeInstance) {
441
+ return proto.mavsdk.rpc.tune.TuneDescription.toObject(opt_includeInstance, this);
442
+ };
443
+
444
+
445
+ /**
446
+ * Static version of the {@see toObject} method.
447
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
448
+ * the JSPB instance for transitional soy proto support:
449
+ * http://goto/soy-param-migration
450
+ * @param {!proto.mavsdk.rpc.tune.TuneDescription} msg The msg instance to transform.
451
+ * @return {!Object}
452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
453
+ */
454
+ proto.mavsdk.rpc.tune.TuneDescription.toObject = function(includeInstance, msg) {
455
+ var f, obj = {
456
+ songElementsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
457
+ tempo: jspb.Message.getFieldWithDefault(msg, 2, 0)
458
+ };
459
+
460
+ if (includeInstance) {
461
+ obj.$jspbMessageInstance = msg;
462
+ }
463
+ return obj;
464
+ };
465
+ }
466
+
467
+
468
+ /**
469
+ * Deserializes binary data (in protobuf wire format).
470
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
471
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription}
472
+ */
473
+ proto.mavsdk.rpc.tune.TuneDescription.deserializeBinary = function(bytes) {
474
+ var reader = new jspb.BinaryReader(bytes);
475
+ var msg = new proto.mavsdk.rpc.tune.TuneDescription;
476
+ return proto.mavsdk.rpc.tune.TuneDescription.deserializeBinaryFromReader(msg, reader);
477
+ };
478
+
479
+
480
+ /**
481
+ * Deserializes binary data (in protobuf wire format) from the
482
+ * given reader into the given message object.
483
+ * @param {!proto.mavsdk.rpc.tune.TuneDescription} msg The message object to deserialize into.
484
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
485
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription}
486
+ */
487
+ proto.mavsdk.rpc.tune.TuneDescription.deserializeBinaryFromReader = function(msg, reader) {
488
+ while (reader.nextField()) {
489
+ if (reader.isEndGroup()) {
490
+ break;
491
+ }
492
+ var field = reader.getFieldNumber();
493
+ switch (field) {
494
+ case 1:
495
+ var values = /** @type {!Array<!proto.mavsdk.rpc.tune.SongElement>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
496
+ for (var i = 0; i < values.length; i++) {
497
+ msg.addSongElements(values[i]);
498
+ }
499
+ break;
500
+ case 2:
501
+ var value = /** @type {number} */ (reader.readInt32());
502
+ msg.setTempo(value);
503
+ break;
504
+ default:
505
+ reader.skipField();
506
+ break;
507
+ }
508
+ }
509
+ return msg;
510
+ };
511
+
512
+
513
+ /**
514
+ * Serializes the message to binary data (in protobuf wire format).
515
+ * @return {!Uint8Array}
516
+ */
517
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.serializeBinary = function() {
518
+ var writer = new jspb.BinaryWriter();
519
+ proto.mavsdk.rpc.tune.TuneDescription.serializeBinaryToWriter(this, writer);
520
+ return writer.getResultBuffer();
521
+ };
522
+
523
+
524
+ /**
525
+ * Serializes the given message to binary data (in protobuf wire
526
+ * format), writing to the given BinaryWriter.
527
+ * @param {!proto.mavsdk.rpc.tune.TuneDescription} message
528
+ * @param {!jspb.BinaryWriter} writer
529
+ * @suppress {unusedLocalVariables} f is only used for nested messages
530
+ */
531
+ proto.mavsdk.rpc.tune.TuneDescription.serializeBinaryToWriter = function(message, writer) {
532
+ var f = undefined;
533
+ f = message.getSongElementsList();
534
+ if (f.length > 0) {
535
+ writer.writePackedEnum(
536
+ 1,
537
+ f
538
+ );
539
+ }
540
+ f = message.getTempo();
541
+ if (f !== 0) {
542
+ writer.writeInt32(
543
+ 2,
544
+ f
545
+ );
546
+ }
547
+ };
548
+
549
+
550
+ /**
551
+ * repeated SongElement song_elements = 1;
552
+ * @return {!Array<!proto.mavsdk.rpc.tune.SongElement>}
553
+ */
554
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.getSongElementsList = function() {
555
+ return /** @type {!Array<!proto.mavsdk.rpc.tune.SongElement>} */ (jspb.Message.getRepeatedField(this, 1));
556
+ };
557
+
558
+
559
+ /**
560
+ * @param {!Array<!proto.mavsdk.rpc.tune.SongElement>} value
561
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription} returns this
562
+ */
563
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.setSongElementsList = function(value) {
564
+ return jspb.Message.setField(this, 1, value || []);
565
+ };
566
+
567
+
568
+ /**
569
+ * @param {!proto.mavsdk.rpc.tune.SongElement} value
570
+ * @param {number=} opt_index
571
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription} returns this
572
+ */
573
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.addSongElements = function(value, opt_index) {
574
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
575
+ };
576
+
577
+
578
+ /**
579
+ * Clears the list making it empty but non-null.
580
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription} returns this
581
+ */
582
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.clearSongElementsList = function() {
583
+ return this.setSongElementsList([]);
584
+ };
585
+
586
+
587
+ /**
588
+ * optional int32 tempo = 2;
589
+ * @return {number}
590
+ */
591
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.getTempo = function() {
592
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
593
+ };
594
+
595
+
596
+ /**
597
+ * @param {number} value
598
+ * @return {!proto.mavsdk.rpc.tune.TuneDescription} returns this
599
+ */
600
+ proto.mavsdk.rpc.tune.TuneDescription.prototype.setTempo = function(value) {
601
+ return jspb.Message.setProto3IntField(this, 2, value);
602
+ };
603
+
604
+
605
+
606
+
607
+
608
+ if (jspb.Message.GENERATE_TO_OBJECT) {
609
+ /**
610
+ * Creates an object representation of this proto.
611
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
612
+ * Optional fields that are not set will be set to undefined.
613
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
614
+ * For the list of reserved names please see:
615
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
616
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
617
+ * JSPB instance for transitional soy proto support:
618
+ * http://goto/soy-param-migration
619
+ * @return {!Object}
620
+ */
621
+ proto.mavsdk.rpc.tune.TuneResult.prototype.toObject = function(opt_includeInstance) {
622
+ return proto.mavsdk.rpc.tune.TuneResult.toObject(opt_includeInstance, this);
623
+ };
624
+
625
+
626
+ /**
627
+ * Static version of the {@see toObject} method.
628
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
629
+ * the JSPB instance for transitional soy proto support:
630
+ * http://goto/soy-param-migration
631
+ * @param {!proto.mavsdk.rpc.tune.TuneResult} msg The msg instance to transform.
632
+ * @return {!Object}
633
+ * @suppress {unusedLocalVariables} f is only used for nested messages
634
+ */
635
+ proto.mavsdk.rpc.tune.TuneResult.toObject = function(includeInstance, msg) {
636
+ var f, obj = {
637
+ result: jspb.Message.getFieldWithDefault(msg, 1, 0),
638
+ resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
639
+ };
640
+
641
+ if (includeInstance) {
642
+ obj.$jspbMessageInstance = msg;
643
+ }
644
+ return obj;
645
+ };
646
+ }
647
+
648
+
649
+ /**
650
+ * Deserializes binary data (in protobuf wire format).
651
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
652
+ * @return {!proto.mavsdk.rpc.tune.TuneResult}
653
+ */
654
+ proto.mavsdk.rpc.tune.TuneResult.deserializeBinary = function(bytes) {
655
+ var reader = new jspb.BinaryReader(bytes);
656
+ var msg = new proto.mavsdk.rpc.tune.TuneResult;
657
+ return proto.mavsdk.rpc.tune.TuneResult.deserializeBinaryFromReader(msg, reader);
658
+ };
659
+
660
+
661
+ /**
662
+ * Deserializes binary data (in protobuf wire format) from the
663
+ * given reader into the given message object.
664
+ * @param {!proto.mavsdk.rpc.tune.TuneResult} msg The message object to deserialize into.
665
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
666
+ * @return {!proto.mavsdk.rpc.tune.TuneResult}
667
+ */
668
+ proto.mavsdk.rpc.tune.TuneResult.deserializeBinaryFromReader = function(msg, reader) {
669
+ while (reader.nextField()) {
670
+ if (reader.isEndGroup()) {
671
+ break;
672
+ }
673
+ var field = reader.getFieldNumber();
674
+ switch (field) {
675
+ case 1:
676
+ var value = /** @type {!proto.mavsdk.rpc.tune.TuneResult.Result} */ (reader.readEnum());
677
+ msg.setResult(value);
678
+ break;
679
+ case 2:
680
+ var value = /** @type {string} */ (reader.readString());
681
+ msg.setResultStr(value);
682
+ break;
683
+ default:
684
+ reader.skipField();
685
+ break;
686
+ }
687
+ }
688
+ return msg;
689
+ };
690
+
691
+
692
+ /**
693
+ * Serializes the message to binary data (in protobuf wire format).
694
+ * @return {!Uint8Array}
695
+ */
696
+ proto.mavsdk.rpc.tune.TuneResult.prototype.serializeBinary = function() {
697
+ var writer = new jspb.BinaryWriter();
698
+ proto.mavsdk.rpc.tune.TuneResult.serializeBinaryToWriter(this, writer);
699
+ return writer.getResultBuffer();
700
+ };
701
+
702
+
703
+ /**
704
+ * Serializes the given message to binary data (in protobuf wire
705
+ * format), writing to the given BinaryWriter.
706
+ * @param {!proto.mavsdk.rpc.tune.TuneResult} message
707
+ * @param {!jspb.BinaryWriter} writer
708
+ * @suppress {unusedLocalVariables} f is only used for nested messages
709
+ */
710
+ proto.mavsdk.rpc.tune.TuneResult.serializeBinaryToWriter = function(message, writer) {
711
+ var f = undefined;
712
+ f = message.getResult();
713
+ if (f !== 0.0) {
714
+ writer.writeEnum(
715
+ 1,
716
+ f
717
+ );
718
+ }
719
+ f = message.getResultStr();
720
+ if (f.length > 0) {
721
+ writer.writeString(
722
+ 2,
723
+ f
724
+ );
725
+ }
726
+ };
727
+
728
+
729
+ /**
730
+ * @enum {number}
731
+ */
732
+ proto.mavsdk.rpc.tune.TuneResult.Result = {
733
+ RESULT_UNKNOWN: 0,
734
+ RESULT_SUCCESS: 1,
735
+ RESULT_INVALID_TEMPO: 2,
736
+ RESULT_TUNE_TOO_LONG: 3,
737
+ RESULT_ERROR: 4,
738
+ RESULT_NO_SYSTEM: 5
739
+ };
740
+
741
+ /**
742
+ * optional Result result = 1;
743
+ * @return {!proto.mavsdk.rpc.tune.TuneResult.Result}
744
+ */
745
+ proto.mavsdk.rpc.tune.TuneResult.prototype.getResult = function() {
746
+ return /** @type {!proto.mavsdk.rpc.tune.TuneResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
747
+ };
748
+
749
+
750
+ /**
751
+ * @param {!proto.mavsdk.rpc.tune.TuneResult.Result} value
752
+ * @return {!proto.mavsdk.rpc.tune.TuneResult} returns this
753
+ */
754
+ proto.mavsdk.rpc.tune.TuneResult.prototype.setResult = function(value) {
755
+ return jspb.Message.setProto3EnumField(this, 1, value);
756
+ };
757
+
758
+
759
+ /**
760
+ * optional string result_str = 2;
761
+ * @return {string}
762
+ */
763
+ proto.mavsdk.rpc.tune.TuneResult.prototype.getResultStr = function() {
764
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
765
+ };
766
+
767
+
768
+ /**
769
+ * @param {string} value
770
+ * @return {!proto.mavsdk.rpc.tune.TuneResult} returns this
771
+ */
772
+ proto.mavsdk.rpc.tune.TuneResult.prototype.setResultStr = function(value) {
773
+ return jspb.Message.setProto3StringField(this, 2, value);
774
+ };
775
+
776
+
777
+ /**
778
+ * @enum {number}
779
+ */
780
+ proto.mavsdk.rpc.tune.SongElement = {
781
+ SONG_ELEMENT_STYLE_LEGATO: 0,
782
+ SONG_ELEMENT_STYLE_NORMAL: 1,
783
+ SONG_ELEMENT_STYLE_STACCATO: 2,
784
+ SONG_ELEMENT_DURATION_1: 3,
785
+ SONG_ELEMENT_DURATION_2: 4,
786
+ SONG_ELEMENT_DURATION_4: 5,
787
+ SONG_ELEMENT_DURATION_8: 6,
788
+ SONG_ELEMENT_DURATION_16: 7,
789
+ SONG_ELEMENT_DURATION_32: 8,
790
+ SONG_ELEMENT_NOTE_A: 9,
791
+ SONG_ELEMENT_NOTE_B: 10,
792
+ SONG_ELEMENT_NOTE_C: 11,
793
+ SONG_ELEMENT_NOTE_D: 12,
794
+ SONG_ELEMENT_NOTE_E: 13,
795
+ SONG_ELEMENT_NOTE_F: 14,
796
+ SONG_ELEMENT_NOTE_G: 15,
797
+ SONG_ELEMENT_NOTE_PAUSE: 16,
798
+ SONG_ELEMENT_SHARP: 17,
799
+ SONG_ELEMENT_FLAT: 18,
800
+ SONG_ELEMENT_OCTAVE_UP: 19,
801
+ SONG_ELEMENT_OCTAVE_DOWN: 20
802
+ };
803
+
804
+ goog.object.extend(exports, proto.mavsdk.rpc.tune);