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