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.
- package/README.md +24 -0
- package/action/ActionServiceClientPb.ts +985 -0
- package/action/action_pb.d.ts +875 -0
- package/action/action_pb.js +7317 -0
- package/action_server/Action_serverServiceClientPb.ts +408 -0
- package/action_server/action_server_pb.d.ts +571 -0
- package/action_server/action_server_pb.js +4624 -0
- package/calibration/CalibrationServiceClientPb.ts +192 -0
- package/calibration/calibration_pb.d.ts +306 -0
- package/calibration/calibration_pb.js +2501 -0
- package/camera/CameraServiceClientPb.ts +838 -0
- package/camera/camera_pb.d.ts +1260 -0
- package/camera/camera_pb.js +10338 -0
- package/camera_server/Camera_serverServiceClientPb.ts +818 -0
- package/camera_server/camera_server_pb.d.ts +1180 -0
- package/camera_server/camera_server_pb.js +9586 -0
- package/component_information/Component_informationServiceClientPb.ts +104 -0
- package/component_information/component_information_pb.d.ts +179 -0
- package/component_information/component_information_pb.js +1445 -0
- package/component_information_server/Component_information_serverServiceClientPb.ts +104 -0
- package/component_information_server/component_information_server_pb.d.ts +183 -0
- package/component_information_server/component_information_server_pb.js +1439 -0
- package/core/CoreServiceClientPb.ts +104 -0
- package/core/core_pb.d.ts +88 -0
- package/core/core_pb.js +748 -0
- package/failure/FailureServiceClientPb.ts +82 -0
- package/failure/failure_pb.d.ts +111 -0
- package/failure/failure_pb.js +646 -0
- package/follow_me/Follow_meServiceClientPb.ts +340 -0
- package/follow_me/follow_me_pb.d.ts +369 -0
- package/follow_me/follow_me_pb.js +2990 -0
- package/ftp/FtpServiceClientPb.ts +384 -0
- package/ftp/ftp_pb.d.ts +449 -0
- package/ftp/ftp_pb.js +3674 -0
- package/ftp_server/Ftp_serverServiceClientPb.ts +82 -0
- package/ftp_server/ftp_server_pb.d.ts +72 -0
- package/ftp_server/ftp_server_pb.js +545 -0
- package/geofence/GeofenceServiceClientPb.ts +125 -0
- package/geofence/geofence_pb.d.ts +216 -0
- package/geofence/geofence_pb.js +1737 -0
- package/gimbal/GimbalServiceClientPb.ts +362 -0
- package/gimbal/gimbal_pb.d.ts +398 -0
- package/gimbal/gimbal_pb.js +3233 -0
- package/gripper/GripperServiceClientPb.ts +125 -0
- package/gripper/gripper_pb.d.ts +116 -0
- package/gripper/gripper_pb.js +880 -0
- package/info/InfoServiceClientPb.ts +254 -0
- package/info/info_pb.d.ts +377 -0
- package/info/info_pb.js +3035 -0
- package/log_files/Log_filesServiceClientPb.ts +147 -0
- package/log_files/log_files_pb.d.ts +206 -0
- package/log_files/log_files_pb.js +1667 -0
- package/manual_control/Manual_controlServiceClientPb.ts +168 -0
- package/manual_control/manual_control_pb.d.ts +157 -0
- package/manual_control/manual_control_pb.js +1232 -0
- package/mavsdk_options_pb.d.ts +10 -0
- package/mavsdk_options_pb.js +141 -0
- package/mission/MissionServiceClientPb.ts +578 -0
- package/mission/mission_pb.d.ts +749 -0
- package/mission/mission_pb.js +6095 -0
- package/mission_raw/Mission_rawServiceClientPb.ts +599 -0
- package/mission_raw/mission_raw_pb.d.ts +691 -0
- package/mission_raw/mission_raw_pb.js +5766 -0
- package/mission_raw_server/Mission_raw_serverServiceClientPb.ts +148 -0
- package/mission_raw_server/mission_raw_server_pb.d.ts +285 -0
- package/mission_raw_server/mission_raw_server_pb.js +2269 -0
- package/mocap/MocapServiceClientPb.ts +168 -0
- package/mocap/mocap_pb.d.ts +445 -0
- package/mocap/mocap_pb.js +3637 -0
- package/offboard/OffboardServiceClientPb.ts +598 -0
- package/offboard/offboard_pb.d.ts +813 -0
- package/offboard/offboard_pb.js +6771 -0
- package/package.json +15 -0
- package/param/ParamServiceClientPb.ts +383 -0
- package/param/param_pb.d.ts +469 -0
- package/param/param_pb.js +3849 -0
- package/param_server/Param_serverServiceClientPb.ts +406 -0
- package/param_server/param_server_pb.d.ts +523 -0
- package/param_server/param_server_pb.js +4371 -0
- package/rtk/RtkServiceClientPb.ts +82 -0
- package/rtk/rtk_pb.d.ts +93 -0
- package/rtk/rtk_pb.js +719 -0
- package/server_utility/Server_utilityServiceClientPb.ts +82 -0
- package/server_utility/server_utility_pb.d.ts +87 -0
- package/server_utility/server_utility_pb.js +591 -0
- package/shell/ShellServiceClientPb.ts +104 -0
- package/shell/shell_pb.d.ts +106 -0
- package/shell/shell_pb.js +822 -0
- package/telemetry/TelemetryServiceClientPb.ts +1862 -0
- package/telemetry/telemetry_pb.d.ts +3201 -0
- package/telemetry/telemetry_pb.js +26682 -0
- package/telemetry_server/Telemetry_serverServiceClientPb.ts +684 -0
- package/telemetry_server/telemetry_server_pb.d.ts +1562 -0
- package/telemetry_server/telemetry_server_pb.js +12735 -0
- package/tracking_server/Tracking_serverServiceClientPb.ts +363 -0
- package/tracking_server/tracking_server_pb.d.ts +407 -0
- package/tracking_server/tracking_server_pb.js +3366 -0
- package/transponder/TransponderServiceClientPb.ts +104 -0
- package/transponder/transponder_pb.d.ts +196 -0
- package/transponder/transponder_pb.js +1360 -0
- package/tsconfig.json +9 -0
- package/tune/TuneServiceClientPb.ts +82 -0
- package/tune/tune_pb.d.ts +122 -0
- package/tune/tune_pb.js +804 -0
- package/winch/WinchServiceClientPb.ts +491 -0
- package/winch/winch_pb.d.ts +593 -0
- package/winch/winch_pb.js +4801 -0
|
@@ -0,0 +1,4801 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// source: winch/winch.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.winch.AbandonLineRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.AbandonLineResponse', null, global);
|
|
29
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.DeliverRequest', null, global);
|
|
30
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.DeliverResponse', null, global);
|
|
31
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.HoldRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.HoldResponse', null, global);
|
|
33
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LoadLineRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LoadLineResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LoadPayloadRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LoadPayloadResponse', null, global);
|
|
37
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LockRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.LockResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RateControlRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RateControlResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RelativeLengthControlRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RelativeLengthControlResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RelaxRequest', null, global);
|
|
44
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RelaxResponse', null, global);
|
|
45
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RetractRequest', null, global);
|
|
46
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.RetractResponse', null, global);
|
|
47
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.Status', null, global);
|
|
48
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.StatusFlags', null, global);
|
|
49
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.StatusResponse', null, global);
|
|
50
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.SubscribeStatusRequest', null, global);
|
|
51
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.WinchAction', null, global);
|
|
52
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.WinchResult', null, global);
|
|
53
|
+
goog.exportSymbol('proto.mavsdk.rpc.winch.WinchResult.Result', null, global);
|
|
54
|
+
/**
|
|
55
|
+
* Generated by JsPbCodeGenerator.
|
|
56
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
57
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
58
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
59
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
60
|
+
* valid.
|
|
61
|
+
* @extends {jspb.Message}
|
|
62
|
+
* @constructor
|
|
63
|
+
*/
|
|
64
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest = function(opt_data) {
|
|
65
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
66
|
+
};
|
|
67
|
+
goog.inherits(proto.mavsdk.rpc.winch.SubscribeStatusRequest, jspb.Message);
|
|
68
|
+
if (goog.DEBUG && !COMPILED) {
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
* @override
|
|
72
|
+
*/
|
|
73
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.displayName = 'proto.mavsdk.rpc.winch.SubscribeStatusRequest';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Generated by JsPbCodeGenerator.
|
|
77
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
78
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
79
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
80
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
81
|
+
* valid.
|
|
82
|
+
* @extends {jspb.Message}
|
|
83
|
+
* @constructor
|
|
84
|
+
*/
|
|
85
|
+
proto.mavsdk.rpc.winch.StatusResponse = function(opt_data) {
|
|
86
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
87
|
+
};
|
|
88
|
+
goog.inherits(proto.mavsdk.rpc.winch.StatusResponse, jspb.Message);
|
|
89
|
+
if (goog.DEBUG && !COMPILED) {
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
* @override
|
|
93
|
+
*/
|
|
94
|
+
proto.mavsdk.rpc.winch.StatusResponse.displayName = 'proto.mavsdk.rpc.winch.StatusResponse';
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Generated by JsPbCodeGenerator.
|
|
98
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
99
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
100
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
101
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
102
|
+
* valid.
|
|
103
|
+
* @extends {jspb.Message}
|
|
104
|
+
* @constructor
|
|
105
|
+
*/
|
|
106
|
+
proto.mavsdk.rpc.winch.StatusFlags = function(opt_data) {
|
|
107
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
108
|
+
};
|
|
109
|
+
goog.inherits(proto.mavsdk.rpc.winch.StatusFlags, jspb.Message);
|
|
110
|
+
if (goog.DEBUG && !COMPILED) {
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
* @override
|
|
114
|
+
*/
|
|
115
|
+
proto.mavsdk.rpc.winch.StatusFlags.displayName = 'proto.mavsdk.rpc.winch.StatusFlags';
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Generated by JsPbCodeGenerator.
|
|
119
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
120
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
121
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
122
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
123
|
+
* valid.
|
|
124
|
+
* @extends {jspb.Message}
|
|
125
|
+
* @constructor
|
|
126
|
+
*/
|
|
127
|
+
proto.mavsdk.rpc.winch.Status = function(opt_data) {
|
|
128
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
129
|
+
};
|
|
130
|
+
goog.inherits(proto.mavsdk.rpc.winch.Status, jspb.Message);
|
|
131
|
+
if (goog.DEBUG && !COMPILED) {
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
* @override
|
|
135
|
+
*/
|
|
136
|
+
proto.mavsdk.rpc.winch.Status.displayName = 'proto.mavsdk.rpc.winch.Status';
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Generated by JsPbCodeGenerator.
|
|
140
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
141
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
142
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
143
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
144
|
+
* valid.
|
|
145
|
+
* @extends {jspb.Message}
|
|
146
|
+
* @constructor
|
|
147
|
+
*/
|
|
148
|
+
proto.mavsdk.rpc.winch.RelaxRequest = function(opt_data) {
|
|
149
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
150
|
+
};
|
|
151
|
+
goog.inherits(proto.mavsdk.rpc.winch.RelaxRequest, jspb.Message);
|
|
152
|
+
if (goog.DEBUG && !COMPILED) {
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
* @override
|
|
156
|
+
*/
|
|
157
|
+
proto.mavsdk.rpc.winch.RelaxRequest.displayName = 'proto.mavsdk.rpc.winch.RelaxRequest';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Generated by JsPbCodeGenerator.
|
|
161
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
162
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
163
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
164
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
165
|
+
* valid.
|
|
166
|
+
* @extends {jspb.Message}
|
|
167
|
+
* @constructor
|
|
168
|
+
*/
|
|
169
|
+
proto.mavsdk.rpc.winch.RelaxResponse = function(opt_data) {
|
|
170
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
171
|
+
};
|
|
172
|
+
goog.inherits(proto.mavsdk.rpc.winch.RelaxResponse, jspb.Message);
|
|
173
|
+
if (goog.DEBUG && !COMPILED) {
|
|
174
|
+
/**
|
|
175
|
+
* @public
|
|
176
|
+
* @override
|
|
177
|
+
*/
|
|
178
|
+
proto.mavsdk.rpc.winch.RelaxResponse.displayName = 'proto.mavsdk.rpc.winch.RelaxResponse';
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Generated by JsPbCodeGenerator.
|
|
182
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
183
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
184
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
185
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
186
|
+
* valid.
|
|
187
|
+
* @extends {jspb.Message}
|
|
188
|
+
* @constructor
|
|
189
|
+
*/
|
|
190
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest = function(opt_data) {
|
|
191
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
192
|
+
};
|
|
193
|
+
goog.inherits(proto.mavsdk.rpc.winch.RelativeLengthControlRequest, jspb.Message);
|
|
194
|
+
if (goog.DEBUG && !COMPILED) {
|
|
195
|
+
/**
|
|
196
|
+
* @public
|
|
197
|
+
* @override
|
|
198
|
+
*/
|
|
199
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.displayName = 'proto.mavsdk.rpc.winch.RelativeLengthControlRequest';
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Generated by JsPbCodeGenerator.
|
|
203
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
204
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
205
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
206
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
207
|
+
* valid.
|
|
208
|
+
* @extends {jspb.Message}
|
|
209
|
+
* @constructor
|
|
210
|
+
*/
|
|
211
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse = function(opt_data) {
|
|
212
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
213
|
+
};
|
|
214
|
+
goog.inherits(proto.mavsdk.rpc.winch.RelativeLengthControlResponse, jspb.Message);
|
|
215
|
+
if (goog.DEBUG && !COMPILED) {
|
|
216
|
+
/**
|
|
217
|
+
* @public
|
|
218
|
+
* @override
|
|
219
|
+
*/
|
|
220
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.displayName = 'proto.mavsdk.rpc.winch.RelativeLengthControlResponse';
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Generated by JsPbCodeGenerator.
|
|
224
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
225
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
226
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
227
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
228
|
+
* valid.
|
|
229
|
+
* @extends {jspb.Message}
|
|
230
|
+
* @constructor
|
|
231
|
+
*/
|
|
232
|
+
proto.mavsdk.rpc.winch.RateControlRequest = function(opt_data) {
|
|
233
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
234
|
+
};
|
|
235
|
+
goog.inherits(proto.mavsdk.rpc.winch.RateControlRequest, jspb.Message);
|
|
236
|
+
if (goog.DEBUG && !COMPILED) {
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
* @override
|
|
240
|
+
*/
|
|
241
|
+
proto.mavsdk.rpc.winch.RateControlRequest.displayName = 'proto.mavsdk.rpc.winch.RateControlRequest';
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Generated by JsPbCodeGenerator.
|
|
245
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
246
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
247
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
248
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
249
|
+
* valid.
|
|
250
|
+
* @extends {jspb.Message}
|
|
251
|
+
* @constructor
|
|
252
|
+
*/
|
|
253
|
+
proto.mavsdk.rpc.winch.RateControlResponse = function(opt_data) {
|
|
254
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
255
|
+
};
|
|
256
|
+
goog.inherits(proto.mavsdk.rpc.winch.RateControlResponse, jspb.Message);
|
|
257
|
+
if (goog.DEBUG && !COMPILED) {
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
* @override
|
|
261
|
+
*/
|
|
262
|
+
proto.mavsdk.rpc.winch.RateControlResponse.displayName = 'proto.mavsdk.rpc.winch.RateControlResponse';
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Generated by JsPbCodeGenerator.
|
|
266
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
267
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
268
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
269
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
270
|
+
* valid.
|
|
271
|
+
* @extends {jspb.Message}
|
|
272
|
+
* @constructor
|
|
273
|
+
*/
|
|
274
|
+
proto.mavsdk.rpc.winch.LockRequest = function(opt_data) {
|
|
275
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
276
|
+
};
|
|
277
|
+
goog.inherits(proto.mavsdk.rpc.winch.LockRequest, jspb.Message);
|
|
278
|
+
if (goog.DEBUG && !COMPILED) {
|
|
279
|
+
/**
|
|
280
|
+
* @public
|
|
281
|
+
* @override
|
|
282
|
+
*/
|
|
283
|
+
proto.mavsdk.rpc.winch.LockRequest.displayName = 'proto.mavsdk.rpc.winch.LockRequest';
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Generated by JsPbCodeGenerator.
|
|
287
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
288
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
289
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
290
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
291
|
+
* valid.
|
|
292
|
+
* @extends {jspb.Message}
|
|
293
|
+
* @constructor
|
|
294
|
+
*/
|
|
295
|
+
proto.mavsdk.rpc.winch.LockResponse = function(opt_data) {
|
|
296
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
297
|
+
};
|
|
298
|
+
goog.inherits(proto.mavsdk.rpc.winch.LockResponse, jspb.Message);
|
|
299
|
+
if (goog.DEBUG && !COMPILED) {
|
|
300
|
+
/**
|
|
301
|
+
* @public
|
|
302
|
+
* @override
|
|
303
|
+
*/
|
|
304
|
+
proto.mavsdk.rpc.winch.LockResponse.displayName = 'proto.mavsdk.rpc.winch.LockResponse';
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Generated by JsPbCodeGenerator.
|
|
308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
312
|
+
* valid.
|
|
313
|
+
* @extends {jspb.Message}
|
|
314
|
+
* @constructor
|
|
315
|
+
*/
|
|
316
|
+
proto.mavsdk.rpc.winch.DeliverRequest = function(opt_data) {
|
|
317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
318
|
+
};
|
|
319
|
+
goog.inherits(proto.mavsdk.rpc.winch.DeliverRequest, jspb.Message);
|
|
320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
* @override
|
|
324
|
+
*/
|
|
325
|
+
proto.mavsdk.rpc.winch.DeliverRequest.displayName = 'proto.mavsdk.rpc.winch.DeliverRequest';
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Generated by JsPbCodeGenerator.
|
|
329
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
330
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
331
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
332
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
333
|
+
* valid.
|
|
334
|
+
* @extends {jspb.Message}
|
|
335
|
+
* @constructor
|
|
336
|
+
*/
|
|
337
|
+
proto.mavsdk.rpc.winch.DeliverResponse = function(opt_data) {
|
|
338
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
339
|
+
};
|
|
340
|
+
goog.inherits(proto.mavsdk.rpc.winch.DeliverResponse, jspb.Message);
|
|
341
|
+
if (goog.DEBUG && !COMPILED) {
|
|
342
|
+
/**
|
|
343
|
+
* @public
|
|
344
|
+
* @override
|
|
345
|
+
*/
|
|
346
|
+
proto.mavsdk.rpc.winch.DeliverResponse.displayName = 'proto.mavsdk.rpc.winch.DeliverResponse';
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Generated by JsPbCodeGenerator.
|
|
350
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
351
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
352
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
353
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
354
|
+
* valid.
|
|
355
|
+
* @extends {jspb.Message}
|
|
356
|
+
* @constructor
|
|
357
|
+
*/
|
|
358
|
+
proto.mavsdk.rpc.winch.HoldRequest = function(opt_data) {
|
|
359
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
360
|
+
};
|
|
361
|
+
goog.inherits(proto.mavsdk.rpc.winch.HoldRequest, jspb.Message);
|
|
362
|
+
if (goog.DEBUG && !COMPILED) {
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
* @override
|
|
366
|
+
*/
|
|
367
|
+
proto.mavsdk.rpc.winch.HoldRequest.displayName = 'proto.mavsdk.rpc.winch.HoldRequest';
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Generated by JsPbCodeGenerator.
|
|
371
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
372
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
373
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
374
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
375
|
+
* valid.
|
|
376
|
+
* @extends {jspb.Message}
|
|
377
|
+
* @constructor
|
|
378
|
+
*/
|
|
379
|
+
proto.mavsdk.rpc.winch.HoldResponse = function(opt_data) {
|
|
380
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
381
|
+
};
|
|
382
|
+
goog.inherits(proto.mavsdk.rpc.winch.HoldResponse, jspb.Message);
|
|
383
|
+
if (goog.DEBUG && !COMPILED) {
|
|
384
|
+
/**
|
|
385
|
+
* @public
|
|
386
|
+
* @override
|
|
387
|
+
*/
|
|
388
|
+
proto.mavsdk.rpc.winch.HoldResponse.displayName = 'proto.mavsdk.rpc.winch.HoldResponse';
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Generated by JsPbCodeGenerator.
|
|
392
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
393
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
394
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
395
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
396
|
+
* valid.
|
|
397
|
+
* @extends {jspb.Message}
|
|
398
|
+
* @constructor
|
|
399
|
+
*/
|
|
400
|
+
proto.mavsdk.rpc.winch.RetractRequest = function(opt_data) {
|
|
401
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
402
|
+
};
|
|
403
|
+
goog.inherits(proto.mavsdk.rpc.winch.RetractRequest, jspb.Message);
|
|
404
|
+
if (goog.DEBUG && !COMPILED) {
|
|
405
|
+
/**
|
|
406
|
+
* @public
|
|
407
|
+
* @override
|
|
408
|
+
*/
|
|
409
|
+
proto.mavsdk.rpc.winch.RetractRequest.displayName = 'proto.mavsdk.rpc.winch.RetractRequest';
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Generated by JsPbCodeGenerator.
|
|
413
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
414
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
415
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
416
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
417
|
+
* valid.
|
|
418
|
+
* @extends {jspb.Message}
|
|
419
|
+
* @constructor
|
|
420
|
+
*/
|
|
421
|
+
proto.mavsdk.rpc.winch.RetractResponse = function(opt_data) {
|
|
422
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
423
|
+
};
|
|
424
|
+
goog.inherits(proto.mavsdk.rpc.winch.RetractResponse, jspb.Message);
|
|
425
|
+
if (goog.DEBUG && !COMPILED) {
|
|
426
|
+
/**
|
|
427
|
+
* @public
|
|
428
|
+
* @override
|
|
429
|
+
*/
|
|
430
|
+
proto.mavsdk.rpc.winch.RetractResponse.displayName = 'proto.mavsdk.rpc.winch.RetractResponse';
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Generated by JsPbCodeGenerator.
|
|
434
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
435
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
436
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
437
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
438
|
+
* valid.
|
|
439
|
+
* @extends {jspb.Message}
|
|
440
|
+
* @constructor
|
|
441
|
+
*/
|
|
442
|
+
proto.mavsdk.rpc.winch.LoadLineRequest = function(opt_data) {
|
|
443
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
444
|
+
};
|
|
445
|
+
goog.inherits(proto.mavsdk.rpc.winch.LoadLineRequest, jspb.Message);
|
|
446
|
+
if (goog.DEBUG && !COMPILED) {
|
|
447
|
+
/**
|
|
448
|
+
* @public
|
|
449
|
+
* @override
|
|
450
|
+
*/
|
|
451
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.displayName = 'proto.mavsdk.rpc.winch.LoadLineRequest';
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Generated by JsPbCodeGenerator.
|
|
455
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
456
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
457
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
458
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
459
|
+
* valid.
|
|
460
|
+
* @extends {jspb.Message}
|
|
461
|
+
* @constructor
|
|
462
|
+
*/
|
|
463
|
+
proto.mavsdk.rpc.winch.LoadLineResponse = function(opt_data) {
|
|
464
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
465
|
+
};
|
|
466
|
+
goog.inherits(proto.mavsdk.rpc.winch.LoadLineResponse, jspb.Message);
|
|
467
|
+
if (goog.DEBUG && !COMPILED) {
|
|
468
|
+
/**
|
|
469
|
+
* @public
|
|
470
|
+
* @override
|
|
471
|
+
*/
|
|
472
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.displayName = 'proto.mavsdk.rpc.winch.LoadLineResponse';
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Generated by JsPbCodeGenerator.
|
|
476
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
477
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
478
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
479
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
480
|
+
* valid.
|
|
481
|
+
* @extends {jspb.Message}
|
|
482
|
+
* @constructor
|
|
483
|
+
*/
|
|
484
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest = function(opt_data) {
|
|
485
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
486
|
+
};
|
|
487
|
+
goog.inherits(proto.mavsdk.rpc.winch.AbandonLineRequest, jspb.Message);
|
|
488
|
+
if (goog.DEBUG && !COMPILED) {
|
|
489
|
+
/**
|
|
490
|
+
* @public
|
|
491
|
+
* @override
|
|
492
|
+
*/
|
|
493
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.displayName = 'proto.mavsdk.rpc.winch.AbandonLineRequest';
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Generated by JsPbCodeGenerator.
|
|
497
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
498
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
499
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
500
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
501
|
+
* valid.
|
|
502
|
+
* @extends {jspb.Message}
|
|
503
|
+
* @constructor
|
|
504
|
+
*/
|
|
505
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse = function(opt_data) {
|
|
506
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
507
|
+
};
|
|
508
|
+
goog.inherits(proto.mavsdk.rpc.winch.AbandonLineResponse, jspb.Message);
|
|
509
|
+
if (goog.DEBUG && !COMPILED) {
|
|
510
|
+
/**
|
|
511
|
+
* @public
|
|
512
|
+
* @override
|
|
513
|
+
*/
|
|
514
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.displayName = 'proto.mavsdk.rpc.winch.AbandonLineResponse';
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Generated by JsPbCodeGenerator.
|
|
518
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
519
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
520
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
521
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
522
|
+
* valid.
|
|
523
|
+
* @extends {jspb.Message}
|
|
524
|
+
* @constructor
|
|
525
|
+
*/
|
|
526
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest = function(opt_data) {
|
|
527
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
528
|
+
};
|
|
529
|
+
goog.inherits(proto.mavsdk.rpc.winch.LoadPayloadRequest, jspb.Message);
|
|
530
|
+
if (goog.DEBUG && !COMPILED) {
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* @override
|
|
534
|
+
*/
|
|
535
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.displayName = 'proto.mavsdk.rpc.winch.LoadPayloadRequest';
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Generated by JsPbCodeGenerator.
|
|
539
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
540
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
541
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
542
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
543
|
+
* valid.
|
|
544
|
+
* @extends {jspb.Message}
|
|
545
|
+
* @constructor
|
|
546
|
+
*/
|
|
547
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse = function(opt_data) {
|
|
548
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
549
|
+
};
|
|
550
|
+
goog.inherits(proto.mavsdk.rpc.winch.LoadPayloadResponse, jspb.Message);
|
|
551
|
+
if (goog.DEBUG && !COMPILED) {
|
|
552
|
+
/**
|
|
553
|
+
* @public
|
|
554
|
+
* @override
|
|
555
|
+
*/
|
|
556
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.displayName = 'proto.mavsdk.rpc.winch.LoadPayloadResponse';
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Generated by JsPbCodeGenerator.
|
|
560
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
561
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
562
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
563
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
564
|
+
* valid.
|
|
565
|
+
* @extends {jspb.Message}
|
|
566
|
+
* @constructor
|
|
567
|
+
*/
|
|
568
|
+
proto.mavsdk.rpc.winch.WinchResult = function(opt_data) {
|
|
569
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
570
|
+
};
|
|
571
|
+
goog.inherits(proto.mavsdk.rpc.winch.WinchResult, jspb.Message);
|
|
572
|
+
if (goog.DEBUG && !COMPILED) {
|
|
573
|
+
/**
|
|
574
|
+
* @public
|
|
575
|
+
* @override
|
|
576
|
+
*/
|
|
577
|
+
proto.mavsdk.rpc.winch.WinchResult.displayName = 'proto.mavsdk.rpc.winch.WinchResult';
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
583
|
+
/**
|
|
584
|
+
* Creates an object representation of this proto.
|
|
585
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
586
|
+
* Optional fields that are not set will be set to undefined.
|
|
587
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
588
|
+
* For the list of reserved names please see:
|
|
589
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
590
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
591
|
+
* JSPB instance for transitional soy proto support:
|
|
592
|
+
* http://goto/soy-param-migration
|
|
593
|
+
* @return {!Object}
|
|
594
|
+
*/
|
|
595
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
596
|
+
return proto.mavsdk.rpc.winch.SubscribeStatusRequest.toObject(opt_includeInstance, this);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Static version of the {@see toObject} method.
|
|
602
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
603
|
+
* the JSPB instance for transitional soy proto support:
|
|
604
|
+
* http://goto/soy-param-migration
|
|
605
|
+
* @param {!proto.mavsdk.rpc.winch.SubscribeStatusRequest} msg The msg instance to transform.
|
|
606
|
+
* @return {!Object}
|
|
607
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
608
|
+
*/
|
|
609
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.toObject = function(includeInstance, msg) {
|
|
610
|
+
var f, obj = {
|
|
611
|
+
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
if (includeInstance) {
|
|
615
|
+
obj.$jspbMessageInstance = msg;
|
|
616
|
+
}
|
|
617
|
+
return obj;
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Deserializes binary data (in protobuf wire format).
|
|
624
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
625
|
+
* @return {!proto.mavsdk.rpc.winch.SubscribeStatusRequest}
|
|
626
|
+
*/
|
|
627
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.deserializeBinary = function(bytes) {
|
|
628
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
629
|
+
var msg = new proto.mavsdk.rpc.winch.SubscribeStatusRequest;
|
|
630
|
+
return proto.mavsdk.rpc.winch.SubscribeStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
636
|
+
* given reader into the given message object.
|
|
637
|
+
* @param {!proto.mavsdk.rpc.winch.SubscribeStatusRequest} msg The message object to deserialize into.
|
|
638
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
639
|
+
* @return {!proto.mavsdk.rpc.winch.SubscribeStatusRequest}
|
|
640
|
+
*/
|
|
641
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
642
|
+
while (reader.nextField()) {
|
|
643
|
+
if (reader.isEndGroup()) {
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
var field = reader.getFieldNumber();
|
|
647
|
+
switch (field) {
|
|
648
|
+
default:
|
|
649
|
+
reader.skipField();
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return msg;
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
659
|
+
* @return {!Uint8Array}
|
|
660
|
+
*/
|
|
661
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.prototype.serializeBinary = function() {
|
|
662
|
+
var writer = new jspb.BinaryWriter();
|
|
663
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.serializeBinaryToWriter(this, writer);
|
|
664
|
+
return writer.getResultBuffer();
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
670
|
+
* format), writing to the given BinaryWriter.
|
|
671
|
+
* @param {!proto.mavsdk.rpc.winch.SubscribeStatusRequest} message
|
|
672
|
+
* @param {!jspb.BinaryWriter} writer
|
|
673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
674
|
+
*/
|
|
675
|
+
proto.mavsdk.rpc.winch.SubscribeStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
676
|
+
var f = undefined;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
684
|
+
/**
|
|
685
|
+
* Creates an object representation of this proto.
|
|
686
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
687
|
+
* Optional fields that are not set will be set to undefined.
|
|
688
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
689
|
+
* For the list of reserved names please see:
|
|
690
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
691
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
692
|
+
* JSPB instance for transitional soy proto support:
|
|
693
|
+
* http://goto/soy-param-migration
|
|
694
|
+
* @return {!Object}
|
|
695
|
+
*/
|
|
696
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
697
|
+
return proto.mavsdk.rpc.winch.StatusResponse.toObject(opt_includeInstance, this);
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Static version of the {@see toObject} method.
|
|
703
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
704
|
+
* the JSPB instance for transitional soy proto support:
|
|
705
|
+
* http://goto/soy-param-migration
|
|
706
|
+
* @param {!proto.mavsdk.rpc.winch.StatusResponse} msg The msg instance to transform.
|
|
707
|
+
* @return {!Object}
|
|
708
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
709
|
+
*/
|
|
710
|
+
proto.mavsdk.rpc.winch.StatusResponse.toObject = function(includeInstance, msg) {
|
|
711
|
+
var f, obj = {
|
|
712
|
+
status: (f = msg.getStatus()) && proto.mavsdk.rpc.winch.Status.toObject(includeInstance, f)
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
if (includeInstance) {
|
|
716
|
+
obj.$jspbMessageInstance = msg;
|
|
717
|
+
}
|
|
718
|
+
return obj;
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Deserializes binary data (in protobuf wire format).
|
|
725
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
726
|
+
* @return {!proto.mavsdk.rpc.winch.StatusResponse}
|
|
727
|
+
*/
|
|
728
|
+
proto.mavsdk.rpc.winch.StatusResponse.deserializeBinary = function(bytes) {
|
|
729
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
730
|
+
var msg = new proto.mavsdk.rpc.winch.StatusResponse;
|
|
731
|
+
return proto.mavsdk.rpc.winch.StatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
737
|
+
* given reader into the given message object.
|
|
738
|
+
* @param {!proto.mavsdk.rpc.winch.StatusResponse} msg The message object to deserialize into.
|
|
739
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
740
|
+
* @return {!proto.mavsdk.rpc.winch.StatusResponse}
|
|
741
|
+
*/
|
|
742
|
+
proto.mavsdk.rpc.winch.StatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
743
|
+
while (reader.nextField()) {
|
|
744
|
+
if (reader.isEndGroup()) {
|
|
745
|
+
break;
|
|
746
|
+
}
|
|
747
|
+
var field = reader.getFieldNumber();
|
|
748
|
+
switch (field) {
|
|
749
|
+
case 1:
|
|
750
|
+
var value = new proto.mavsdk.rpc.winch.Status;
|
|
751
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.Status.deserializeBinaryFromReader);
|
|
752
|
+
msg.setStatus(value);
|
|
753
|
+
break;
|
|
754
|
+
default:
|
|
755
|
+
reader.skipField();
|
|
756
|
+
break;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
return msg;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
765
|
+
* @return {!Uint8Array}
|
|
766
|
+
*/
|
|
767
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.serializeBinary = function() {
|
|
768
|
+
var writer = new jspb.BinaryWriter();
|
|
769
|
+
proto.mavsdk.rpc.winch.StatusResponse.serializeBinaryToWriter(this, writer);
|
|
770
|
+
return writer.getResultBuffer();
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
776
|
+
* format), writing to the given BinaryWriter.
|
|
777
|
+
* @param {!proto.mavsdk.rpc.winch.StatusResponse} message
|
|
778
|
+
* @param {!jspb.BinaryWriter} writer
|
|
779
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
780
|
+
*/
|
|
781
|
+
proto.mavsdk.rpc.winch.StatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
782
|
+
var f = undefined;
|
|
783
|
+
f = message.getStatus();
|
|
784
|
+
if (f != null) {
|
|
785
|
+
writer.writeMessage(
|
|
786
|
+
1,
|
|
787
|
+
f,
|
|
788
|
+
proto.mavsdk.rpc.winch.Status.serializeBinaryToWriter
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* optional Status status = 1;
|
|
796
|
+
* @return {?proto.mavsdk.rpc.winch.Status}
|
|
797
|
+
*/
|
|
798
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.getStatus = function() {
|
|
799
|
+
return /** @type{?proto.mavsdk.rpc.winch.Status} */ (
|
|
800
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.Status, 1));
|
|
801
|
+
};
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* @param {?proto.mavsdk.rpc.winch.Status|undefined} value
|
|
806
|
+
* @return {!proto.mavsdk.rpc.winch.StatusResponse} returns this
|
|
807
|
+
*/
|
|
808
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.setStatus = function(value) {
|
|
809
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Clears the message field making it undefined.
|
|
815
|
+
* @return {!proto.mavsdk.rpc.winch.StatusResponse} returns this
|
|
816
|
+
*/
|
|
817
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.clearStatus = function() {
|
|
818
|
+
return this.setStatus(undefined);
|
|
819
|
+
};
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Returns whether this field is set.
|
|
824
|
+
* @return {boolean}
|
|
825
|
+
*/
|
|
826
|
+
proto.mavsdk.rpc.winch.StatusResponse.prototype.hasStatus = function() {
|
|
827
|
+
return jspb.Message.getField(this, 1) != null;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
835
|
+
/**
|
|
836
|
+
* Creates an object representation of this proto.
|
|
837
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
838
|
+
* Optional fields that are not set will be set to undefined.
|
|
839
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
840
|
+
* For the list of reserved names please see:
|
|
841
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
842
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
843
|
+
* JSPB instance for transitional soy proto support:
|
|
844
|
+
* http://goto/soy-param-migration
|
|
845
|
+
* @return {!Object}
|
|
846
|
+
*/
|
|
847
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.toObject = function(opt_includeInstance) {
|
|
848
|
+
return proto.mavsdk.rpc.winch.StatusFlags.toObject(opt_includeInstance, this);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Static version of the {@see toObject} method.
|
|
854
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
855
|
+
* the JSPB instance for transitional soy proto support:
|
|
856
|
+
* http://goto/soy-param-migration
|
|
857
|
+
* @param {!proto.mavsdk.rpc.winch.StatusFlags} msg The msg instance to transform.
|
|
858
|
+
* @return {!Object}
|
|
859
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
860
|
+
*/
|
|
861
|
+
proto.mavsdk.rpc.winch.StatusFlags.toObject = function(includeInstance, msg) {
|
|
862
|
+
var f, obj = {
|
|
863
|
+
healthy: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
864
|
+
fullyRetracted: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
865
|
+
moving: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
866
|
+
clutchEngaged: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
867
|
+
locked: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
868
|
+
dropping: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
869
|
+
arresting: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
870
|
+
groundSense: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
871
|
+
retracting: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
872
|
+
redeliver: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
873
|
+
abandonLine: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
874
|
+
locking: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
875
|
+
loadLine: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
876
|
+
loadPayload: jspb.Message.getBooleanFieldWithDefault(msg, 14, false)
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
if (includeInstance) {
|
|
880
|
+
obj.$jspbMessageInstance = msg;
|
|
881
|
+
}
|
|
882
|
+
return obj;
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Deserializes binary data (in protobuf wire format).
|
|
889
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
890
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags}
|
|
891
|
+
*/
|
|
892
|
+
proto.mavsdk.rpc.winch.StatusFlags.deserializeBinary = function(bytes) {
|
|
893
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
894
|
+
var msg = new proto.mavsdk.rpc.winch.StatusFlags;
|
|
895
|
+
return proto.mavsdk.rpc.winch.StatusFlags.deserializeBinaryFromReader(msg, reader);
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
901
|
+
* given reader into the given message object.
|
|
902
|
+
* @param {!proto.mavsdk.rpc.winch.StatusFlags} msg The message object to deserialize into.
|
|
903
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
904
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags}
|
|
905
|
+
*/
|
|
906
|
+
proto.mavsdk.rpc.winch.StatusFlags.deserializeBinaryFromReader = function(msg, reader) {
|
|
907
|
+
while (reader.nextField()) {
|
|
908
|
+
if (reader.isEndGroup()) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
var field = reader.getFieldNumber();
|
|
912
|
+
switch (field) {
|
|
913
|
+
case 1:
|
|
914
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
915
|
+
msg.setHealthy(value);
|
|
916
|
+
break;
|
|
917
|
+
case 2:
|
|
918
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
919
|
+
msg.setFullyRetracted(value);
|
|
920
|
+
break;
|
|
921
|
+
case 3:
|
|
922
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
923
|
+
msg.setMoving(value);
|
|
924
|
+
break;
|
|
925
|
+
case 4:
|
|
926
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
927
|
+
msg.setClutchEngaged(value);
|
|
928
|
+
break;
|
|
929
|
+
case 5:
|
|
930
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
931
|
+
msg.setLocked(value);
|
|
932
|
+
break;
|
|
933
|
+
case 6:
|
|
934
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
935
|
+
msg.setDropping(value);
|
|
936
|
+
break;
|
|
937
|
+
case 7:
|
|
938
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
939
|
+
msg.setArresting(value);
|
|
940
|
+
break;
|
|
941
|
+
case 8:
|
|
942
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
943
|
+
msg.setGroundSense(value);
|
|
944
|
+
break;
|
|
945
|
+
case 9:
|
|
946
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
947
|
+
msg.setRetracting(value);
|
|
948
|
+
break;
|
|
949
|
+
case 10:
|
|
950
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
951
|
+
msg.setRedeliver(value);
|
|
952
|
+
break;
|
|
953
|
+
case 11:
|
|
954
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
955
|
+
msg.setAbandonLine(value);
|
|
956
|
+
break;
|
|
957
|
+
case 12:
|
|
958
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
959
|
+
msg.setLocking(value);
|
|
960
|
+
break;
|
|
961
|
+
case 13:
|
|
962
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
963
|
+
msg.setLoadLine(value);
|
|
964
|
+
break;
|
|
965
|
+
case 14:
|
|
966
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
967
|
+
msg.setLoadPayload(value);
|
|
968
|
+
break;
|
|
969
|
+
default:
|
|
970
|
+
reader.skipField();
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
return msg;
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
980
|
+
* @return {!Uint8Array}
|
|
981
|
+
*/
|
|
982
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.serializeBinary = function() {
|
|
983
|
+
var writer = new jspb.BinaryWriter();
|
|
984
|
+
proto.mavsdk.rpc.winch.StatusFlags.serializeBinaryToWriter(this, writer);
|
|
985
|
+
return writer.getResultBuffer();
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
991
|
+
* format), writing to the given BinaryWriter.
|
|
992
|
+
* @param {!proto.mavsdk.rpc.winch.StatusFlags} message
|
|
993
|
+
* @param {!jspb.BinaryWriter} writer
|
|
994
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
995
|
+
*/
|
|
996
|
+
proto.mavsdk.rpc.winch.StatusFlags.serializeBinaryToWriter = function(message, writer) {
|
|
997
|
+
var f = undefined;
|
|
998
|
+
f = message.getHealthy();
|
|
999
|
+
if (f) {
|
|
1000
|
+
writer.writeBool(
|
|
1001
|
+
1,
|
|
1002
|
+
f
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
1005
|
+
f = message.getFullyRetracted();
|
|
1006
|
+
if (f) {
|
|
1007
|
+
writer.writeBool(
|
|
1008
|
+
2,
|
|
1009
|
+
f
|
|
1010
|
+
);
|
|
1011
|
+
}
|
|
1012
|
+
f = message.getMoving();
|
|
1013
|
+
if (f) {
|
|
1014
|
+
writer.writeBool(
|
|
1015
|
+
3,
|
|
1016
|
+
f
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
1019
|
+
f = message.getClutchEngaged();
|
|
1020
|
+
if (f) {
|
|
1021
|
+
writer.writeBool(
|
|
1022
|
+
4,
|
|
1023
|
+
f
|
|
1024
|
+
);
|
|
1025
|
+
}
|
|
1026
|
+
f = message.getLocked();
|
|
1027
|
+
if (f) {
|
|
1028
|
+
writer.writeBool(
|
|
1029
|
+
5,
|
|
1030
|
+
f
|
|
1031
|
+
);
|
|
1032
|
+
}
|
|
1033
|
+
f = message.getDropping();
|
|
1034
|
+
if (f) {
|
|
1035
|
+
writer.writeBool(
|
|
1036
|
+
6,
|
|
1037
|
+
f
|
|
1038
|
+
);
|
|
1039
|
+
}
|
|
1040
|
+
f = message.getArresting();
|
|
1041
|
+
if (f) {
|
|
1042
|
+
writer.writeBool(
|
|
1043
|
+
7,
|
|
1044
|
+
f
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1047
|
+
f = message.getGroundSense();
|
|
1048
|
+
if (f) {
|
|
1049
|
+
writer.writeBool(
|
|
1050
|
+
8,
|
|
1051
|
+
f
|
|
1052
|
+
);
|
|
1053
|
+
}
|
|
1054
|
+
f = message.getRetracting();
|
|
1055
|
+
if (f) {
|
|
1056
|
+
writer.writeBool(
|
|
1057
|
+
9,
|
|
1058
|
+
f
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
f = message.getRedeliver();
|
|
1062
|
+
if (f) {
|
|
1063
|
+
writer.writeBool(
|
|
1064
|
+
10,
|
|
1065
|
+
f
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
f = message.getAbandonLine();
|
|
1069
|
+
if (f) {
|
|
1070
|
+
writer.writeBool(
|
|
1071
|
+
11,
|
|
1072
|
+
f
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1075
|
+
f = message.getLocking();
|
|
1076
|
+
if (f) {
|
|
1077
|
+
writer.writeBool(
|
|
1078
|
+
12,
|
|
1079
|
+
f
|
|
1080
|
+
);
|
|
1081
|
+
}
|
|
1082
|
+
f = message.getLoadLine();
|
|
1083
|
+
if (f) {
|
|
1084
|
+
writer.writeBool(
|
|
1085
|
+
13,
|
|
1086
|
+
f
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
f = message.getLoadPayload();
|
|
1090
|
+
if (f) {
|
|
1091
|
+
writer.writeBool(
|
|
1092
|
+
14,
|
|
1093
|
+
f
|
|
1094
|
+
);
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* optional bool healthy = 1;
|
|
1101
|
+
* @return {boolean}
|
|
1102
|
+
*/
|
|
1103
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getHealthy = function() {
|
|
1104
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* @param {boolean} value
|
|
1110
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1111
|
+
*/
|
|
1112
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setHealthy = function(value) {
|
|
1113
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* optional bool fully_retracted = 2;
|
|
1119
|
+
* @return {boolean}
|
|
1120
|
+
*/
|
|
1121
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getFullyRetracted = function() {
|
|
1122
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* @param {boolean} value
|
|
1128
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1129
|
+
*/
|
|
1130
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setFullyRetracted = function(value) {
|
|
1131
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* optional bool moving = 3;
|
|
1137
|
+
* @return {boolean}
|
|
1138
|
+
*/
|
|
1139
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getMoving = function() {
|
|
1140
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* @param {boolean} value
|
|
1146
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1147
|
+
*/
|
|
1148
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setMoving = function(value) {
|
|
1149
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* optional bool clutch_engaged = 4;
|
|
1155
|
+
* @return {boolean}
|
|
1156
|
+
*/
|
|
1157
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getClutchEngaged = function() {
|
|
1158
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @param {boolean} value
|
|
1164
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1165
|
+
*/
|
|
1166
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setClutchEngaged = function(value) {
|
|
1167
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* optional bool locked = 5;
|
|
1173
|
+
* @return {boolean}
|
|
1174
|
+
*/
|
|
1175
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getLocked = function() {
|
|
1176
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* @param {boolean} value
|
|
1182
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1183
|
+
*/
|
|
1184
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setLocked = function(value) {
|
|
1185
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* optional bool dropping = 6;
|
|
1191
|
+
* @return {boolean}
|
|
1192
|
+
*/
|
|
1193
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getDropping = function() {
|
|
1194
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @param {boolean} value
|
|
1200
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1201
|
+
*/
|
|
1202
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setDropping = function(value) {
|
|
1203
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* optional bool arresting = 7;
|
|
1209
|
+
* @return {boolean}
|
|
1210
|
+
*/
|
|
1211
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getArresting = function() {
|
|
1212
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* @param {boolean} value
|
|
1218
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1219
|
+
*/
|
|
1220
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setArresting = function(value) {
|
|
1221
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* optional bool ground_sense = 8;
|
|
1227
|
+
* @return {boolean}
|
|
1228
|
+
*/
|
|
1229
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getGroundSense = function() {
|
|
1230
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* @param {boolean} value
|
|
1236
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1237
|
+
*/
|
|
1238
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setGroundSense = function(value) {
|
|
1239
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
1240
|
+
};
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* optional bool retracting = 9;
|
|
1245
|
+
* @return {boolean}
|
|
1246
|
+
*/
|
|
1247
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getRetracting = function() {
|
|
1248
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* @param {boolean} value
|
|
1254
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1255
|
+
*/
|
|
1256
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setRetracting = function(value) {
|
|
1257
|
+
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* optional bool redeliver = 10;
|
|
1263
|
+
* @return {boolean}
|
|
1264
|
+
*/
|
|
1265
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getRedeliver = function() {
|
|
1266
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* @param {boolean} value
|
|
1272
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1273
|
+
*/
|
|
1274
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setRedeliver = function(value) {
|
|
1275
|
+
return jspb.Message.setProto3BooleanField(this, 10, value);
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* optional bool abandon_line = 11;
|
|
1281
|
+
* @return {boolean}
|
|
1282
|
+
*/
|
|
1283
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getAbandonLine = function() {
|
|
1284
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* @param {boolean} value
|
|
1290
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1291
|
+
*/
|
|
1292
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setAbandonLine = function(value) {
|
|
1293
|
+
return jspb.Message.setProto3BooleanField(this, 11, value);
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* optional bool locking = 12;
|
|
1299
|
+
* @return {boolean}
|
|
1300
|
+
*/
|
|
1301
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getLocking = function() {
|
|
1302
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @param {boolean} value
|
|
1308
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1309
|
+
*/
|
|
1310
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setLocking = function(value) {
|
|
1311
|
+
return jspb.Message.setProto3BooleanField(this, 12, value);
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* optional bool load_line = 13;
|
|
1317
|
+
* @return {boolean}
|
|
1318
|
+
*/
|
|
1319
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getLoadLine = function() {
|
|
1320
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* @param {boolean} value
|
|
1326
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1327
|
+
*/
|
|
1328
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setLoadLine = function(value) {
|
|
1329
|
+
return jspb.Message.setProto3BooleanField(this, 13, value);
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
* optional bool load_payload = 14;
|
|
1335
|
+
* @return {boolean}
|
|
1336
|
+
*/
|
|
1337
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.getLoadPayload = function() {
|
|
1338
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* @param {boolean} value
|
|
1344
|
+
* @return {!proto.mavsdk.rpc.winch.StatusFlags} returns this
|
|
1345
|
+
*/
|
|
1346
|
+
proto.mavsdk.rpc.winch.StatusFlags.prototype.setLoadPayload = function(value) {
|
|
1347
|
+
return jspb.Message.setProto3BooleanField(this, 14, value);
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates an object representation of this proto.
|
|
1357
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1358
|
+
* Optional fields that are not set will be set to undefined.
|
|
1359
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1360
|
+
* For the list of reserved names please see:
|
|
1361
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1362
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1363
|
+
* JSPB instance for transitional soy proto support:
|
|
1364
|
+
* http://goto/soy-param-migration
|
|
1365
|
+
* @return {!Object}
|
|
1366
|
+
*/
|
|
1367
|
+
proto.mavsdk.rpc.winch.Status.prototype.toObject = function(opt_includeInstance) {
|
|
1368
|
+
return proto.mavsdk.rpc.winch.Status.toObject(opt_includeInstance, this);
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Static version of the {@see toObject} method.
|
|
1374
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1375
|
+
* the JSPB instance for transitional soy proto support:
|
|
1376
|
+
* http://goto/soy-param-migration
|
|
1377
|
+
* @param {!proto.mavsdk.rpc.winch.Status} msg The msg instance to transform.
|
|
1378
|
+
* @return {!Object}
|
|
1379
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1380
|
+
*/
|
|
1381
|
+
proto.mavsdk.rpc.winch.Status.toObject = function(includeInstance, msg) {
|
|
1382
|
+
var f, obj = {
|
|
1383
|
+
timeUsec: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1384
|
+
lineLengthM: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
1385
|
+
speedMS: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
1386
|
+
tensionKg: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
1387
|
+
voltageV: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
1388
|
+
currentA: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
1389
|
+
temperatureC: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
1390
|
+
statusFlags: (f = msg.getStatusFlags()) && proto.mavsdk.rpc.winch.StatusFlags.toObject(includeInstance, f)
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
if (includeInstance) {
|
|
1394
|
+
obj.$jspbMessageInstance = msg;
|
|
1395
|
+
}
|
|
1396
|
+
return obj;
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1403
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1404
|
+
* @return {!proto.mavsdk.rpc.winch.Status}
|
|
1405
|
+
*/
|
|
1406
|
+
proto.mavsdk.rpc.winch.Status.deserializeBinary = function(bytes) {
|
|
1407
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1408
|
+
var msg = new proto.mavsdk.rpc.winch.Status;
|
|
1409
|
+
return proto.mavsdk.rpc.winch.Status.deserializeBinaryFromReader(msg, reader);
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1415
|
+
* given reader into the given message object.
|
|
1416
|
+
* @param {!proto.mavsdk.rpc.winch.Status} msg The message object to deserialize into.
|
|
1417
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1418
|
+
* @return {!proto.mavsdk.rpc.winch.Status}
|
|
1419
|
+
*/
|
|
1420
|
+
proto.mavsdk.rpc.winch.Status.deserializeBinaryFromReader = function(msg, reader) {
|
|
1421
|
+
while (reader.nextField()) {
|
|
1422
|
+
if (reader.isEndGroup()) {
|
|
1423
|
+
break;
|
|
1424
|
+
}
|
|
1425
|
+
var field = reader.getFieldNumber();
|
|
1426
|
+
switch (field) {
|
|
1427
|
+
case 1:
|
|
1428
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
1429
|
+
msg.setTimeUsec(value);
|
|
1430
|
+
break;
|
|
1431
|
+
case 2:
|
|
1432
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
1433
|
+
msg.setLineLengthM(value);
|
|
1434
|
+
break;
|
|
1435
|
+
case 3:
|
|
1436
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
1437
|
+
msg.setSpeedMS(value);
|
|
1438
|
+
break;
|
|
1439
|
+
case 4:
|
|
1440
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
1441
|
+
msg.setTensionKg(value);
|
|
1442
|
+
break;
|
|
1443
|
+
case 5:
|
|
1444
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
1445
|
+
msg.setVoltageV(value);
|
|
1446
|
+
break;
|
|
1447
|
+
case 6:
|
|
1448
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
1449
|
+
msg.setCurrentA(value);
|
|
1450
|
+
break;
|
|
1451
|
+
case 7:
|
|
1452
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1453
|
+
msg.setTemperatureC(value);
|
|
1454
|
+
break;
|
|
1455
|
+
case 8:
|
|
1456
|
+
var value = new proto.mavsdk.rpc.winch.StatusFlags;
|
|
1457
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.StatusFlags.deserializeBinaryFromReader);
|
|
1458
|
+
msg.setStatusFlags(value);
|
|
1459
|
+
break;
|
|
1460
|
+
default:
|
|
1461
|
+
reader.skipField();
|
|
1462
|
+
break;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return msg;
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1471
|
+
* @return {!Uint8Array}
|
|
1472
|
+
*/
|
|
1473
|
+
proto.mavsdk.rpc.winch.Status.prototype.serializeBinary = function() {
|
|
1474
|
+
var writer = new jspb.BinaryWriter();
|
|
1475
|
+
proto.mavsdk.rpc.winch.Status.serializeBinaryToWriter(this, writer);
|
|
1476
|
+
return writer.getResultBuffer();
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1482
|
+
* format), writing to the given BinaryWriter.
|
|
1483
|
+
* @param {!proto.mavsdk.rpc.winch.Status} message
|
|
1484
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1485
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1486
|
+
*/
|
|
1487
|
+
proto.mavsdk.rpc.winch.Status.serializeBinaryToWriter = function(message, writer) {
|
|
1488
|
+
var f = undefined;
|
|
1489
|
+
f = message.getTimeUsec();
|
|
1490
|
+
if (f !== 0) {
|
|
1491
|
+
writer.writeUint64(
|
|
1492
|
+
1,
|
|
1493
|
+
f
|
|
1494
|
+
);
|
|
1495
|
+
}
|
|
1496
|
+
f = message.getLineLengthM();
|
|
1497
|
+
if (f !== 0.0) {
|
|
1498
|
+
writer.writeFloat(
|
|
1499
|
+
2,
|
|
1500
|
+
f
|
|
1501
|
+
);
|
|
1502
|
+
}
|
|
1503
|
+
f = message.getSpeedMS();
|
|
1504
|
+
if (f !== 0.0) {
|
|
1505
|
+
writer.writeFloat(
|
|
1506
|
+
3,
|
|
1507
|
+
f
|
|
1508
|
+
);
|
|
1509
|
+
}
|
|
1510
|
+
f = message.getTensionKg();
|
|
1511
|
+
if (f !== 0.0) {
|
|
1512
|
+
writer.writeFloat(
|
|
1513
|
+
4,
|
|
1514
|
+
f
|
|
1515
|
+
);
|
|
1516
|
+
}
|
|
1517
|
+
f = message.getVoltageV();
|
|
1518
|
+
if (f !== 0.0) {
|
|
1519
|
+
writer.writeFloat(
|
|
1520
|
+
5,
|
|
1521
|
+
f
|
|
1522
|
+
);
|
|
1523
|
+
}
|
|
1524
|
+
f = message.getCurrentA();
|
|
1525
|
+
if (f !== 0.0) {
|
|
1526
|
+
writer.writeFloat(
|
|
1527
|
+
6,
|
|
1528
|
+
f
|
|
1529
|
+
);
|
|
1530
|
+
}
|
|
1531
|
+
f = message.getTemperatureC();
|
|
1532
|
+
if (f !== 0) {
|
|
1533
|
+
writer.writeInt32(
|
|
1534
|
+
7,
|
|
1535
|
+
f
|
|
1536
|
+
);
|
|
1537
|
+
}
|
|
1538
|
+
f = message.getStatusFlags();
|
|
1539
|
+
if (f != null) {
|
|
1540
|
+
writer.writeMessage(
|
|
1541
|
+
8,
|
|
1542
|
+
f,
|
|
1543
|
+
proto.mavsdk.rpc.winch.StatusFlags.serializeBinaryToWriter
|
|
1544
|
+
);
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* optional uint64 time_usec = 1;
|
|
1551
|
+
* @return {number}
|
|
1552
|
+
*/
|
|
1553
|
+
proto.mavsdk.rpc.winch.Status.prototype.getTimeUsec = function() {
|
|
1554
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* @param {number} value
|
|
1560
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1561
|
+
*/
|
|
1562
|
+
proto.mavsdk.rpc.winch.Status.prototype.setTimeUsec = function(value) {
|
|
1563
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1564
|
+
};
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* optional float line_length_m = 2;
|
|
1569
|
+
* @return {number}
|
|
1570
|
+
*/
|
|
1571
|
+
proto.mavsdk.rpc.winch.Status.prototype.getLineLengthM = function() {
|
|
1572
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* @param {number} value
|
|
1578
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1579
|
+
*/
|
|
1580
|
+
proto.mavsdk.rpc.winch.Status.prototype.setLineLengthM = function(value) {
|
|
1581
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* optional float speed_m_s = 3;
|
|
1587
|
+
* @return {number}
|
|
1588
|
+
*/
|
|
1589
|
+
proto.mavsdk.rpc.winch.Status.prototype.getSpeedMS = function() {
|
|
1590
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @param {number} value
|
|
1596
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1597
|
+
*/
|
|
1598
|
+
proto.mavsdk.rpc.winch.Status.prototype.setSpeedMS = function(value) {
|
|
1599
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* optional float tension_kg = 4;
|
|
1605
|
+
* @return {number}
|
|
1606
|
+
*/
|
|
1607
|
+
proto.mavsdk.rpc.winch.Status.prototype.getTensionKg = function() {
|
|
1608
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* @param {number} value
|
|
1614
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1615
|
+
*/
|
|
1616
|
+
proto.mavsdk.rpc.winch.Status.prototype.setTensionKg = function(value) {
|
|
1617
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* optional float voltage_v = 5;
|
|
1623
|
+
* @return {number}
|
|
1624
|
+
*/
|
|
1625
|
+
proto.mavsdk.rpc.winch.Status.prototype.getVoltageV = function() {
|
|
1626
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* @param {number} value
|
|
1632
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1633
|
+
*/
|
|
1634
|
+
proto.mavsdk.rpc.winch.Status.prototype.setVoltageV = function(value) {
|
|
1635
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* optional float current_a = 6;
|
|
1641
|
+
* @return {number}
|
|
1642
|
+
*/
|
|
1643
|
+
proto.mavsdk.rpc.winch.Status.prototype.getCurrentA = function() {
|
|
1644
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* @param {number} value
|
|
1650
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1651
|
+
*/
|
|
1652
|
+
proto.mavsdk.rpc.winch.Status.prototype.setCurrentA = function(value) {
|
|
1653
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* optional int32 temperature_c = 7;
|
|
1659
|
+
* @return {number}
|
|
1660
|
+
*/
|
|
1661
|
+
proto.mavsdk.rpc.winch.Status.prototype.getTemperatureC = function() {
|
|
1662
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* @param {number} value
|
|
1668
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1669
|
+
*/
|
|
1670
|
+
proto.mavsdk.rpc.winch.Status.prototype.setTemperatureC = function(value) {
|
|
1671
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* optional StatusFlags status_flags = 8;
|
|
1677
|
+
* @return {?proto.mavsdk.rpc.winch.StatusFlags}
|
|
1678
|
+
*/
|
|
1679
|
+
proto.mavsdk.rpc.winch.Status.prototype.getStatusFlags = function() {
|
|
1680
|
+
return /** @type{?proto.mavsdk.rpc.winch.StatusFlags} */ (
|
|
1681
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.StatusFlags, 8));
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* @param {?proto.mavsdk.rpc.winch.StatusFlags|undefined} value
|
|
1687
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1688
|
+
*/
|
|
1689
|
+
proto.mavsdk.rpc.winch.Status.prototype.setStatusFlags = function(value) {
|
|
1690
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Clears the message field making it undefined.
|
|
1696
|
+
* @return {!proto.mavsdk.rpc.winch.Status} returns this
|
|
1697
|
+
*/
|
|
1698
|
+
proto.mavsdk.rpc.winch.Status.prototype.clearStatusFlags = function() {
|
|
1699
|
+
return this.setStatusFlags(undefined);
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Returns whether this field is set.
|
|
1705
|
+
* @return {boolean}
|
|
1706
|
+
*/
|
|
1707
|
+
proto.mavsdk.rpc.winch.Status.prototype.hasStatusFlags = function() {
|
|
1708
|
+
return jspb.Message.getField(this, 8) != null;
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1716
|
+
/**
|
|
1717
|
+
* Creates an object representation of this proto.
|
|
1718
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1719
|
+
* Optional fields that are not set will be set to undefined.
|
|
1720
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1721
|
+
* For the list of reserved names please see:
|
|
1722
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1723
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1724
|
+
* JSPB instance for transitional soy proto support:
|
|
1725
|
+
* http://goto/soy-param-migration
|
|
1726
|
+
* @return {!Object}
|
|
1727
|
+
*/
|
|
1728
|
+
proto.mavsdk.rpc.winch.RelaxRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1729
|
+
return proto.mavsdk.rpc.winch.RelaxRequest.toObject(opt_includeInstance, this);
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Static version of the {@see toObject} method.
|
|
1735
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1736
|
+
* the JSPB instance for transitional soy proto support:
|
|
1737
|
+
* http://goto/soy-param-migration
|
|
1738
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxRequest} msg The msg instance to transform.
|
|
1739
|
+
* @return {!Object}
|
|
1740
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1741
|
+
*/
|
|
1742
|
+
proto.mavsdk.rpc.winch.RelaxRequest.toObject = function(includeInstance, msg) {
|
|
1743
|
+
var f, obj = {
|
|
1744
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
if (includeInstance) {
|
|
1748
|
+
obj.$jspbMessageInstance = msg;
|
|
1749
|
+
}
|
|
1750
|
+
return obj;
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1757
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1758
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxRequest}
|
|
1759
|
+
*/
|
|
1760
|
+
proto.mavsdk.rpc.winch.RelaxRequest.deserializeBinary = function(bytes) {
|
|
1761
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1762
|
+
var msg = new proto.mavsdk.rpc.winch.RelaxRequest;
|
|
1763
|
+
return proto.mavsdk.rpc.winch.RelaxRequest.deserializeBinaryFromReader(msg, reader);
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1769
|
+
* given reader into the given message object.
|
|
1770
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxRequest} msg The message object to deserialize into.
|
|
1771
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1772
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxRequest}
|
|
1773
|
+
*/
|
|
1774
|
+
proto.mavsdk.rpc.winch.RelaxRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1775
|
+
while (reader.nextField()) {
|
|
1776
|
+
if (reader.isEndGroup()) {
|
|
1777
|
+
break;
|
|
1778
|
+
}
|
|
1779
|
+
var field = reader.getFieldNumber();
|
|
1780
|
+
switch (field) {
|
|
1781
|
+
case 1:
|
|
1782
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1783
|
+
msg.setInstance(value);
|
|
1784
|
+
break;
|
|
1785
|
+
default:
|
|
1786
|
+
reader.skipField();
|
|
1787
|
+
break;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
return msg;
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1796
|
+
* @return {!Uint8Array}
|
|
1797
|
+
*/
|
|
1798
|
+
proto.mavsdk.rpc.winch.RelaxRequest.prototype.serializeBinary = function() {
|
|
1799
|
+
var writer = new jspb.BinaryWriter();
|
|
1800
|
+
proto.mavsdk.rpc.winch.RelaxRequest.serializeBinaryToWriter(this, writer);
|
|
1801
|
+
return writer.getResultBuffer();
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1807
|
+
* format), writing to the given BinaryWriter.
|
|
1808
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxRequest} message
|
|
1809
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1810
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1811
|
+
*/
|
|
1812
|
+
proto.mavsdk.rpc.winch.RelaxRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1813
|
+
var f = undefined;
|
|
1814
|
+
f = message.getInstance();
|
|
1815
|
+
if (f !== 0) {
|
|
1816
|
+
writer.writeUint32(
|
|
1817
|
+
1,
|
|
1818
|
+
f
|
|
1819
|
+
);
|
|
1820
|
+
}
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* optional uint32 instance = 1;
|
|
1826
|
+
* @return {number}
|
|
1827
|
+
*/
|
|
1828
|
+
proto.mavsdk.rpc.winch.RelaxRequest.prototype.getInstance = function() {
|
|
1829
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* @param {number} value
|
|
1835
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxRequest} returns this
|
|
1836
|
+
*/
|
|
1837
|
+
proto.mavsdk.rpc.winch.RelaxRequest.prototype.setInstance = function(value) {
|
|
1838
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1846
|
+
/**
|
|
1847
|
+
* Creates an object representation of this proto.
|
|
1848
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1849
|
+
* Optional fields that are not set will be set to undefined.
|
|
1850
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1851
|
+
* For the list of reserved names please see:
|
|
1852
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1853
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1854
|
+
* JSPB instance for transitional soy proto support:
|
|
1855
|
+
* http://goto/soy-param-migration
|
|
1856
|
+
* @return {!Object}
|
|
1857
|
+
*/
|
|
1858
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1859
|
+
return proto.mavsdk.rpc.winch.RelaxResponse.toObject(opt_includeInstance, this);
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Static version of the {@see toObject} method.
|
|
1865
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1866
|
+
* the JSPB instance for transitional soy proto support:
|
|
1867
|
+
* http://goto/soy-param-migration
|
|
1868
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxResponse} msg The msg instance to transform.
|
|
1869
|
+
* @return {!Object}
|
|
1870
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1871
|
+
*/
|
|
1872
|
+
proto.mavsdk.rpc.winch.RelaxResponse.toObject = function(includeInstance, msg) {
|
|
1873
|
+
var f, obj = {
|
|
1874
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
if (includeInstance) {
|
|
1878
|
+
obj.$jspbMessageInstance = msg;
|
|
1879
|
+
}
|
|
1880
|
+
return obj;
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1887
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1888
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxResponse}
|
|
1889
|
+
*/
|
|
1890
|
+
proto.mavsdk.rpc.winch.RelaxResponse.deserializeBinary = function(bytes) {
|
|
1891
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1892
|
+
var msg = new proto.mavsdk.rpc.winch.RelaxResponse;
|
|
1893
|
+
return proto.mavsdk.rpc.winch.RelaxResponse.deserializeBinaryFromReader(msg, reader);
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
/**
|
|
1898
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1899
|
+
* given reader into the given message object.
|
|
1900
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxResponse} msg The message object to deserialize into.
|
|
1901
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1902
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxResponse}
|
|
1903
|
+
*/
|
|
1904
|
+
proto.mavsdk.rpc.winch.RelaxResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1905
|
+
while (reader.nextField()) {
|
|
1906
|
+
if (reader.isEndGroup()) {
|
|
1907
|
+
break;
|
|
1908
|
+
}
|
|
1909
|
+
var field = reader.getFieldNumber();
|
|
1910
|
+
switch (field) {
|
|
1911
|
+
case 1:
|
|
1912
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
1913
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
1914
|
+
msg.setWinchResult(value);
|
|
1915
|
+
break;
|
|
1916
|
+
default:
|
|
1917
|
+
reader.skipField();
|
|
1918
|
+
break;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
return msg;
|
|
1922
|
+
};
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1927
|
+
* @return {!Uint8Array}
|
|
1928
|
+
*/
|
|
1929
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.serializeBinary = function() {
|
|
1930
|
+
var writer = new jspb.BinaryWriter();
|
|
1931
|
+
proto.mavsdk.rpc.winch.RelaxResponse.serializeBinaryToWriter(this, writer);
|
|
1932
|
+
return writer.getResultBuffer();
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1938
|
+
* format), writing to the given BinaryWriter.
|
|
1939
|
+
* @param {!proto.mavsdk.rpc.winch.RelaxResponse} message
|
|
1940
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1941
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1942
|
+
*/
|
|
1943
|
+
proto.mavsdk.rpc.winch.RelaxResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1944
|
+
var f = undefined;
|
|
1945
|
+
f = message.getWinchResult();
|
|
1946
|
+
if (f != null) {
|
|
1947
|
+
writer.writeMessage(
|
|
1948
|
+
1,
|
|
1949
|
+
f,
|
|
1950
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
1951
|
+
);
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
/**
|
|
1957
|
+
* optional WinchResult winch_result = 1;
|
|
1958
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
1959
|
+
*/
|
|
1960
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.getWinchResult = function() {
|
|
1961
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
1962
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
1968
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxResponse} returns this
|
|
1969
|
+
*/
|
|
1970
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.setWinchResult = function(value) {
|
|
1971
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1972
|
+
};
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* Clears the message field making it undefined.
|
|
1977
|
+
* @return {!proto.mavsdk.rpc.winch.RelaxResponse} returns this
|
|
1978
|
+
*/
|
|
1979
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.clearWinchResult = function() {
|
|
1980
|
+
return this.setWinchResult(undefined);
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* Returns whether this field is set.
|
|
1986
|
+
* @return {boolean}
|
|
1987
|
+
*/
|
|
1988
|
+
proto.mavsdk.rpc.winch.RelaxResponse.prototype.hasWinchResult = function() {
|
|
1989
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1997
|
+
/**
|
|
1998
|
+
* Creates an object representation of this proto.
|
|
1999
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2000
|
+
* Optional fields that are not set will be set to undefined.
|
|
2001
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2002
|
+
* For the list of reserved names please see:
|
|
2003
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2004
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2005
|
+
* JSPB instance for transitional soy proto support:
|
|
2006
|
+
* http://goto/soy-param-migration
|
|
2007
|
+
* @return {!Object}
|
|
2008
|
+
*/
|
|
2009
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2010
|
+
return proto.mavsdk.rpc.winch.RelativeLengthControlRequest.toObject(opt_includeInstance, this);
|
|
2011
|
+
};
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
/**
|
|
2015
|
+
* Static version of the {@see toObject} method.
|
|
2016
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2017
|
+
* the JSPB instance for transitional soy proto support:
|
|
2018
|
+
* http://goto/soy-param-migration
|
|
2019
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} msg The msg instance to transform.
|
|
2020
|
+
* @return {!Object}
|
|
2021
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2022
|
+
*/
|
|
2023
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.toObject = function(includeInstance, msg) {
|
|
2024
|
+
var f, obj = {
|
|
2025
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2026
|
+
lengthM: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
2027
|
+
rateMS: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
if (includeInstance) {
|
|
2031
|
+
obj.$jspbMessageInstance = msg;
|
|
2032
|
+
}
|
|
2033
|
+
return obj;
|
|
2034
|
+
};
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2040
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2041
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest}
|
|
2042
|
+
*/
|
|
2043
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.deserializeBinary = function(bytes) {
|
|
2044
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2045
|
+
var msg = new proto.mavsdk.rpc.winch.RelativeLengthControlRequest;
|
|
2046
|
+
return proto.mavsdk.rpc.winch.RelativeLengthControlRequest.deserializeBinaryFromReader(msg, reader);
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2052
|
+
* given reader into the given message object.
|
|
2053
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} msg The message object to deserialize into.
|
|
2054
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2055
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest}
|
|
2056
|
+
*/
|
|
2057
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2058
|
+
while (reader.nextField()) {
|
|
2059
|
+
if (reader.isEndGroup()) {
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
var field = reader.getFieldNumber();
|
|
2063
|
+
switch (field) {
|
|
2064
|
+
case 1:
|
|
2065
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2066
|
+
msg.setInstance(value);
|
|
2067
|
+
break;
|
|
2068
|
+
case 2:
|
|
2069
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
2070
|
+
msg.setLengthM(value);
|
|
2071
|
+
break;
|
|
2072
|
+
case 3:
|
|
2073
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
2074
|
+
msg.setRateMS(value);
|
|
2075
|
+
break;
|
|
2076
|
+
default:
|
|
2077
|
+
reader.skipField();
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
return msg;
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2087
|
+
* @return {!Uint8Array}
|
|
2088
|
+
*/
|
|
2089
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.serializeBinary = function() {
|
|
2090
|
+
var writer = new jspb.BinaryWriter();
|
|
2091
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.serializeBinaryToWriter(this, writer);
|
|
2092
|
+
return writer.getResultBuffer();
|
|
2093
|
+
};
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2098
|
+
* format), writing to the given BinaryWriter.
|
|
2099
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} message
|
|
2100
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2101
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2102
|
+
*/
|
|
2103
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2104
|
+
var f = undefined;
|
|
2105
|
+
f = message.getInstance();
|
|
2106
|
+
if (f !== 0) {
|
|
2107
|
+
writer.writeUint32(
|
|
2108
|
+
1,
|
|
2109
|
+
f
|
|
2110
|
+
);
|
|
2111
|
+
}
|
|
2112
|
+
f = message.getLengthM();
|
|
2113
|
+
if (f !== 0.0) {
|
|
2114
|
+
writer.writeFloat(
|
|
2115
|
+
2,
|
|
2116
|
+
f
|
|
2117
|
+
);
|
|
2118
|
+
}
|
|
2119
|
+
f = message.getRateMS();
|
|
2120
|
+
if (f !== 0.0) {
|
|
2121
|
+
writer.writeFloat(
|
|
2122
|
+
3,
|
|
2123
|
+
f
|
|
2124
|
+
);
|
|
2125
|
+
}
|
|
2126
|
+
};
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
/**
|
|
2130
|
+
* optional uint32 instance = 1;
|
|
2131
|
+
* @return {number}
|
|
2132
|
+
*/
|
|
2133
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.getInstance = function() {
|
|
2134
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* @param {number} value
|
|
2140
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} returns this
|
|
2141
|
+
*/
|
|
2142
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.setInstance = function(value) {
|
|
2143
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2144
|
+
};
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* optional float length_m = 2;
|
|
2149
|
+
* @return {number}
|
|
2150
|
+
*/
|
|
2151
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.getLengthM = function() {
|
|
2152
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* @param {number} value
|
|
2158
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} returns this
|
|
2159
|
+
*/
|
|
2160
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.setLengthM = function(value) {
|
|
2161
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2162
|
+
};
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* optional float rate_m_s = 3;
|
|
2167
|
+
* @return {number}
|
|
2168
|
+
*/
|
|
2169
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.getRateMS = function() {
|
|
2170
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
/**
|
|
2175
|
+
* @param {number} value
|
|
2176
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlRequest} returns this
|
|
2177
|
+
*/
|
|
2178
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlRequest.prototype.setRateMS = function(value) {
|
|
2179
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2187
|
+
/**
|
|
2188
|
+
* Creates an object representation of this proto.
|
|
2189
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2190
|
+
* Optional fields that are not set will be set to undefined.
|
|
2191
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2192
|
+
* For the list of reserved names please see:
|
|
2193
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2194
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2195
|
+
* JSPB instance for transitional soy proto support:
|
|
2196
|
+
* http://goto/soy-param-migration
|
|
2197
|
+
* @return {!Object}
|
|
2198
|
+
*/
|
|
2199
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2200
|
+
return proto.mavsdk.rpc.winch.RelativeLengthControlResponse.toObject(opt_includeInstance, this);
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* Static version of the {@see toObject} method.
|
|
2206
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2207
|
+
* the JSPB instance for transitional soy proto support:
|
|
2208
|
+
* http://goto/soy-param-migration
|
|
2209
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse} msg The msg instance to transform.
|
|
2210
|
+
* @return {!Object}
|
|
2211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2212
|
+
*/
|
|
2213
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.toObject = function(includeInstance, msg) {
|
|
2214
|
+
var f, obj = {
|
|
2215
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
if (includeInstance) {
|
|
2219
|
+
obj.$jspbMessageInstance = msg;
|
|
2220
|
+
}
|
|
2221
|
+
return obj;
|
|
2222
|
+
};
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2228
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2229
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse}
|
|
2230
|
+
*/
|
|
2231
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.deserializeBinary = function(bytes) {
|
|
2232
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2233
|
+
var msg = new proto.mavsdk.rpc.winch.RelativeLengthControlResponse;
|
|
2234
|
+
return proto.mavsdk.rpc.winch.RelativeLengthControlResponse.deserializeBinaryFromReader(msg, reader);
|
|
2235
|
+
};
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2240
|
+
* given reader into the given message object.
|
|
2241
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse} msg The message object to deserialize into.
|
|
2242
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2243
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse}
|
|
2244
|
+
*/
|
|
2245
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2246
|
+
while (reader.nextField()) {
|
|
2247
|
+
if (reader.isEndGroup()) {
|
|
2248
|
+
break;
|
|
2249
|
+
}
|
|
2250
|
+
var field = reader.getFieldNumber();
|
|
2251
|
+
switch (field) {
|
|
2252
|
+
case 1:
|
|
2253
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
2254
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
2255
|
+
msg.setWinchResult(value);
|
|
2256
|
+
break;
|
|
2257
|
+
default:
|
|
2258
|
+
reader.skipField();
|
|
2259
|
+
break;
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
return msg;
|
|
2263
|
+
};
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2268
|
+
* @return {!Uint8Array}
|
|
2269
|
+
*/
|
|
2270
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.serializeBinary = function() {
|
|
2271
|
+
var writer = new jspb.BinaryWriter();
|
|
2272
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.serializeBinaryToWriter(this, writer);
|
|
2273
|
+
return writer.getResultBuffer();
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2279
|
+
* format), writing to the given BinaryWriter.
|
|
2280
|
+
* @param {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse} message
|
|
2281
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2282
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2283
|
+
*/
|
|
2284
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2285
|
+
var f = undefined;
|
|
2286
|
+
f = message.getWinchResult();
|
|
2287
|
+
if (f != null) {
|
|
2288
|
+
writer.writeMessage(
|
|
2289
|
+
1,
|
|
2290
|
+
f,
|
|
2291
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
2292
|
+
);
|
|
2293
|
+
}
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* optional WinchResult winch_result = 1;
|
|
2299
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
2300
|
+
*/
|
|
2301
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.getWinchResult = function() {
|
|
2302
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
2303
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
2309
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse} returns this
|
|
2310
|
+
*/
|
|
2311
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.setWinchResult = function(value) {
|
|
2312
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Clears the message field making it undefined.
|
|
2318
|
+
* @return {!proto.mavsdk.rpc.winch.RelativeLengthControlResponse} returns this
|
|
2319
|
+
*/
|
|
2320
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.clearWinchResult = function() {
|
|
2321
|
+
return this.setWinchResult(undefined);
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* Returns whether this field is set.
|
|
2327
|
+
* @return {boolean}
|
|
2328
|
+
*/
|
|
2329
|
+
proto.mavsdk.rpc.winch.RelativeLengthControlResponse.prototype.hasWinchResult = function() {
|
|
2330
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2331
|
+
};
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2338
|
+
/**
|
|
2339
|
+
* Creates an object representation of this proto.
|
|
2340
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2341
|
+
* Optional fields that are not set will be set to undefined.
|
|
2342
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2343
|
+
* For the list of reserved names please see:
|
|
2344
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2345
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2346
|
+
* JSPB instance for transitional soy proto support:
|
|
2347
|
+
* http://goto/soy-param-migration
|
|
2348
|
+
* @return {!Object}
|
|
2349
|
+
*/
|
|
2350
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2351
|
+
return proto.mavsdk.rpc.winch.RateControlRequest.toObject(opt_includeInstance, this);
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* Static version of the {@see toObject} method.
|
|
2357
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2358
|
+
* the JSPB instance for transitional soy proto support:
|
|
2359
|
+
* http://goto/soy-param-migration
|
|
2360
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlRequest} msg The msg instance to transform.
|
|
2361
|
+
* @return {!Object}
|
|
2362
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2363
|
+
*/
|
|
2364
|
+
proto.mavsdk.rpc.winch.RateControlRequest.toObject = function(includeInstance, msg) {
|
|
2365
|
+
var f, obj = {
|
|
2366
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2367
|
+
rateMS: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
2368
|
+
};
|
|
2369
|
+
|
|
2370
|
+
if (includeInstance) {
|
|
2371
|
+
obj.$jspbMessageInstance = msg;
|
|
2372
|
+
}
|
|
2373
|
+
return obj;
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
/**
|
|
2379
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2380
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2381
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlRequest}
|
|
2382
|
+
*/
|
|
2383
|
+
proto.mavsdk.rpc.winch.RateControlRequest.deserializeBinary = function(bytes) {
|
|
2384
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2385
|
+
var msg = new proto.mavsdk.rpc.winch.RateControlRequest;
|
|
2386
|
+
return proto.mavsdk.rpc.winch.RateControlRequest.deserializeBinaryFromReader(msg, reader);
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2392
|
+
* given reader into the given message object.
|
|
2393
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlRequest} msg The message object to deserialize into.
|
|
2394
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2395
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlRequest}
|
|
2396
|
+
*/
|
|
2397
|
+
proto.mavsdk.rpc.winch.RateControlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2398
|
+
while (reader.nextField()) {
|
|
2399
|
+
if (reader.isEndGroup()) {
|
|
2400
|
+
break;
|
|
2401
|
+
}
|
|
2402
|
+
var field = reader.getFieldNumber();
|
|
2403
|
+
switch (field) {
|
|
2404
|
+
case 1:
|
|
2405
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2406
|
+
msg.setInstance(value);
|
|
2407
|
+
break;
|
|
2408
|
+
case 2:
|
|
2409
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
2410
|
+
msg.setRateMS(value);
|
|
2411
|
+
break;
|
|
2412
|
+
default:
|
|
2413
|
+
reader.skipField();
|
|
2414
|
+
break;
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
return msg;
|
|
2418
|
+
};
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2423
|
+
* @return {!Uint8Array}
|
|
2424
|
+
*/
|
|
2425
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.serializeBinary = function() {
|
|
2426
|
+
var writer = new jspb.BinaryWriter();
|
|
2427
|
+
proto.mavsdk.rpc.winch.RateControlRequest.serializeBinaryToWriter(this, writer);
|
|
2428
|
+
return writer.getResultBuffer();
|
|
2429
|
+
};
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2434
|
+
* format), writing to the given BinaryWriter.
|
|
2435
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlRequest} message
|
|
2436
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2437
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2438
|
+
*/
|
|
2439
|
+
proto.mavsdk.rpc.winch.RateControlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2440
|
+
var f = undefined;
|
|
2441
|
+
f = message.getInstance();
|
|
2442
|
+
if (f !== 0) {
|
|
2443
|
+
writer.writeUint32(
|
|
2444
|
+
1,
|
|
2445
|
+
f
|
|
2446
|
+
);
|
|
2447
|
+
}
|
|
2448
|
+
f = message.getRateMS();
|
|
2449
|
+
if (f !== 0.0) {
|
|
2450
|
+
writer.writeFloat(
|
|
2451
|
+
2,
|
|
2452
|
+
f
|
|
2453
|
+
);
|
|
2454
|
+
}
|
|
2455
|
+
};
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* optional uint32 instance = 1;
|
|
2460
|
+
* @return {number}
|
|
2461
|
+
*/
|
|
2462
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.getInstance = function() {
|
|
2463
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2464
|
+
};
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* @param {number} value
|
|
2469
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlRequest} returns this
|
|
2470
|
+
*/
|
|
2471
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.setInstance = function(value) {
|
|
2472
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* optional float rate_m_s = 2;
|
|
2478
|
+
* @return {number}
|
|
2479
|
+
*/
|
|
2480
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.getRateMS = function() {
|
|
2481
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
2482
|
+
};
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* @param {number} value
|
|
2487
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlRequest} returns this
|
|
2488
|
+
*/
|
|
2489
|
+
proto.mavsdk.rpc.winch.RateControlRequest.prototype.setRateMS = function(value) {
|
|
2490
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
2491
|
+
};
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2498
|
+
/**
|
|
2499
|
+
* Creates an object representation of this proto.
|
|
2500
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2501
|
+
* Optional fields that are not set will be set to undefined.
|
|
2502
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2503
|
+
* For the list of reserved names please see:
|
|
2504
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2505
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2506
|
+
* JSPB instance for transitional soy proto support:
|
|
2507
|
+
* http://goto/soy-param-migration
|
|
2508
|
+
* @return {!Object}
|
|
2509
|
+
*/
|
|
2510
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2511
|
+
return proto.mavsdk.rpc.winch.RateControlResponse.toObject(opt_includeInstance, this);
|
|
2512
|
+
};
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* Static version of the {@see toObject} method.
|
|
2517
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2518
|
+
* the JSPB instance for transitional soy proto support:
|
|
2519
|
+
* http://goto/soy-param-migration
|
|
2520
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlResponse} msg The msg instance to transform.
|
|
2521
|
+
* @return {!Object}
|
|
2522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2523
|
+
*/
|
|
2524
|
+
proto.mavsdk.rpc.winch.RateControlResponse.toObject = function(includeInstance, msg) {
|
|
2525
|
+
var f, obj = {
|
|
2526
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
if (includeInstance) {
|
|
2530
|
+
obj.$jspbMessageInstance = msg;
|
|
2531
|
+
}
|
|
2532
|
+
return obj;
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2539
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2540
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlResponse}
|
|
2541
|
+
*/
|
|
2542
|
+
proto.mavsdk.rpc.winch.RateControlResponse.deserializeBinary = function(bytes) {
|
|
2543
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2544
|
+
var msg = new proto.mavsdk.rpc.winch.RateControlResponse;
|
|
2545
|
+
return proto.mavsdk.rpc.winch.RateControlResponse.deserializeBinaryFromReader(msg, reader);
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2551
|
+
* given reader into the given message object.
|
|
2552
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlResponse} msg The message object to deserialize into.
|
|
2553
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2554
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlResponse}
|
|
2555
|
+
*/
|
|
2556
|
+
proto.mavsdk.rpc.winch.RateControlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2557
|
+
while (reader.nextField()) {
|
|
2558
|
+
if (reader.isEndGroup()) {
|
|
2559
|
+
break;
|
|
2560
|
+
}
|
|
2561
|
+
var field = reader.getFieldNumber();
|
|
2562
|
+
switch (field) {
|
|
2563
|
+
case 1:
|
|
2564
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
2565
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
2566
|
+
msg.setWinchResult(value);
|
|
2567
|
+
break;
|
|
2568
|
+
default:
|
|
2569
|
+
reader.skipField();
|
|
2570
|
+
break;
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
return msg;
|
|
2574
|
+
};
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2579
|
+
* @return {!Uint8Array}
|
|
2580
|
+
*/
|
|
2581
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.serializeBinary = function() {
|
|
2582
|
+
var writer = new jspb.BinaryWriter();
|
|
2583
|
+
proto.mavsdk.rpc.winch.RateControlResponse.serializeBinaryToWriter(this, writer);
|
|
2584
|
+
return writer.getResultBuffer();
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2590
|
+
* format), writing to the given BinaryWriter.
|
|
2591
|
+
* @param {!proto.mavsdk.rpc.winch.RateControlResponse} message
|
|
2592
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2594
|
+
*/
|
|
2595
|
+
proto.mavsdk.rpc.winch.RateControlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2596
|
+
var f = undefined;
|
|
2597
|
+
f = message.getWinchResult();
|
|
2598
|
+
if (f != null) {
|
|
2599
|
+
writer.writeMessage(
|
|
2600
|
+
1,
|
|
2601
|
+
f,
|
|
2602
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
2603
|
+
);
|
|
2604
|
+
}
|
|
2605
|
+
};
|
|
2606
|
+
|
|
2607
|
+
|
|
2608
|
+
/**
|
|
2609
|
+
* optional WinchResult winch_result = 1;
|
|
2610
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
2611
|
+
*/
|
|
2612
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.getWinchResult = function() {
|
|
2613
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
2614
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
2615
|
+
};
|
|
2616
|
+
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
2620
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlResponse} returns this
|
|
2621
|
+
*/
|
|
2622
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.setWinchResult = function(value) {
|
|
2623
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2624
|
+
};
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
* Clears the message field making it undefined.
|
|
2629
|
+
* @return {!proto.mavsdk.rpc.winch.RateControlResponse} returns this
|
|
2630
|
+
*/
|
|
2631
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.clearWinchResult = function() {
|
|
2632
|
+
return this.setWinchResult(undefined);
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* Returns whether this field is set.
|
|
2638
|
+
* @return {boolean}
|
|
2639
|
+
*/
|
|
2640
|
+
proto.mavsdk.rpc.winch.RateControlResponse.prototype.hasWinchResult = function() {
|
|
2641
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
|
|
2647
|
+
|
|
2648
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2649
|
+
/**
|
|
2650
|
+
* Creates an object representation of this proto.
|
|
2651
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2652
|
+
* Optional fields that are not set will be set to undefined.
|
|
2653
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2654
|
+
* For the list of reserved names please see:
|
|
2655
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2656
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2657
|
+
* JSPB instance for transitional soy proto support:
|
|
2658
|
+
* http://goto/soy-param-migration
|
|
2659
|
+
* @return {!Object}
|
|
2660
|
+
*/
|
|
2661
|
+
proto.mavsdk.rpc.winch.LockRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2662
|
+
return proto.mavsdk.rpc.winch.LockRequest.toObject(opt_includeInstance, this);
|
|
2663
|
+
};
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* Static version of the {@see toObject} method.
|
|
2668
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2669
|
+
* the JSPB instance for transitional soy proto support:
|
|
2670
|
+
* http://goto/soy-param-migration
|
|
2671
|
+
* @param {!proto.mavsdk.rpc.winch.LockRequest} msg The msg instance to transform.
|
|
2672
|
+
* @return {!Object}
|
|
2673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2674
|
+
*/
|
|
2675
|
+
proto.mavsdk.rpc.winch.LockRequest.toObject = function(includeInstance, msg) {
|
|
2676
|
+
var f, obj = {
|
|
2677
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2680
|
+
if (includeInstance) {
|
|
2681
|
+
obj.$jspbMessageInstance = msg;
|
|
2682
|
+
}
|
|
2683
|
+
return obj;
|
|
2684
|
+
};
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2690
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2691
|
+
* @return {!proto.mavsdk.rpc.winch.LockRequest}
|
|
2692
|
+
*/
|
|
2693
|
+
proto.mavsdk.rpc.winch.LockRequest.deserializeBinary = function(bytes) {
|
|
2694
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2695
|
+
var msg = new proto.mavsdk.rpc.winch.LockRequest;
|
|
2696
|
+
return proto.mavsdk.rpc.winch.LockRequest.deserializeBinaryFromReader(msg, reader);
|
|
2697
|
+
};
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2702
|
+
* given reader into the given message object.
|
|
2703
|
+
* @param {!proto.mavsdk.rpc.winch.LockRequest} msg The message object to deserialize into.
|
|
2704
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2705
|
+
* @return {!proto.mavsdk.rpc.winch.LockRequest}
|
|
2706
|
+
*/
|
|
2707
|
+
proto.mavsdk.rpc.winch.LockRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2708
|
+
while (reader.nextField()) {
|
|
2709
|
+
if (reader.isEndGroup()) {
|
|
2710
|
+
break;
|
|
2711
|
+
}
|
|
2712
|
+
var field = reader.getFieldNumber();
|
|
2713
|
+
switch (field) {
|
|
2714
|
+
case 1:
|
|
2715
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2716
|
+
msg.setInstance(value);
|
|
2717
|
+
break;
|
|
2718
|
+
default:
|
|
2719
|
+
reader.skipField();
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
return msg;
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2729
|
+
* @return {!Uint8Array}
|
|
2730
|
+
*/
|
|
2731
|
+
proto.mavsdk.rpc.winch.LockRequest.prototype.serializeBinary = function() {
|
|
2732
|
+
var writer = new jspb.BinaryWriter();
|
|
2733
|
+
proto.mavsdk.rpc.winch.LockRequest.serializeBinaryToWriter(this, writer);
|
|
2734
|
+
return writer.getResultBuffer();
|
|
2735
|
+
};
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2740
|
+
* format), writing to the given BinaryWriter.
|
|
2741
|
+
* @param {!proto.mavsdk.rpc.winch.LockRequest} message
|
|
2742
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2743
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2744
|
+
*/
|
|
2745
|
+
proto.mavsdk.rpc.winch.LockRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2746
|
+
var f = undefined;
|
|
2747
|
+
f = message.getInstance();
|
|
2748
|
+
if (f !== 0) {
|
|
2749
|
+
writer.writeUint32(
|
|
2750
|
+
1,
|
|
2751
|
+
f
|
|
2752
|
+
);
|
|
2753
|
+
}
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
* optional uint32 instance = 1;
|
|
2759
|
+
* @return {number}
|
|
2760
|
+
*/
|
|
2761
|
+
proto.mavsdk.rpc.winch.LockRequest.prototype.getInstance = function() {
|
|
2762
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2765
|
+
|
|
2766
|
+
/**
|
|
2767
|
+
* @param {number} value
|
|
2768
|
+
* @return {!proto.mavsdk.rpc.winch.LockRequest} returns this
|
|
2769
|
+
*/
|
|
2770
|
+
proto.mavsdk.rpc.winch.LockRequest.prototype.setInstance = function(value) {
|
|
2771
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2772
|
+
};
|
|
2773
|
+
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
|
|
2777
|
+
|
|
2778
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2779
|
+
/**
|
|
2780
|
+
* Creates an object representation of this proto.
|
|
2781
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2782
|
+
* Optional fields that are not set will be set to undefined.
|
|
2783
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2784
|
+
* For the list of reserved names please see:
|
|
2785
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2786
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2787
|
+
* JSPB instance for transitional soy proto support:
|
|
2788
|
+
* http://goto/soy-param-migration
|
|
2789
|
+
* @return {!Object}
|
|
2790
|
+
*/
|
|
2791
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2792
|
+
return proto.mavsdk.rpc.winch.LockResponse.toObject(opt_includeInstance, this);
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Static version of the {@see toObject} method.
|
|
2798
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2799
|
+
* the JSPB instance for transitional soy proto support:
|
|
2800
|
+
* http://goto/soy-param-migration
|
|
2801
|
+
* @param {!proto.mavsdk.rpc.winch.LockResponse} msg The msg instance to transform.
|
|
2802
|
+
* @return {!Object}
|
|
2803
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2804
|
+
*/
|
|
2805
|
+
proto.mavsdk.rpc.winch.LockResponse.toObject = function(includeInstance, msg) {
|
|
2806
|
+
var f, obj = {
|
|
2807
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
2808
|
+
};
|
|
2809
|
+
|
|
2810
|
+
if (includeInstance) {
|
|
2811
|
+
obj.$jspbMessageInstance = msg;
|
|
2812
|
+
}
|
|
2813
|
+
return obj;
|
|
2814
|
+
};
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2820
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2821
|
+
* @return {!proto.mavsdk.rpc.winch.LockResponse}
|
|
2822
|
+
*/
|
|
2823
|
+
proto.mavsdk.rpc.winch.LockResponse.deserializeBinary = function(bytes) {
|
|
2824
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2825
|
+
var msg = new proto.mavsdk.rpc.winch.LockResponse;
|
|
2826
|
+
return proto.mavsdk.rpc.winch.LockResponse.deserializeBinaryFromReader(msg, reader);
|
|
2827
|
+
};
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2832
|
+
* given reader into the given message object.
|
|
2833
|
+
* @param {!proto.mavsdk.rpc.winch.LockResponse} msg The message object to deserialize into.
|
|
2834
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2835
|
+
* @return {!proto.mavsdk.rpc.winch.LockResponse}
|
|
2836
|
+
*/
|
|
2837
|
+
proto.mavsdk.rpc.winch.LockResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2838
|
+
while (reader.nextField()) {
|
|
2839
|
+
if (reader.isEndGroup()) {
|
|
2840
|
+
break;
|
|
2841
|
+
}
|
|
2842
|
+
var field = reader.getFieldNumber();
|
|
2843
|
+
switch (field) {
|
|
2844
|
+
case 1:
|
|
2845
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
2846
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
2847
|
+
msg.setWinchResult(value);
|
|
2848
|
+
break;
|
|
2849
|
+
default:
|
|
2850
|
+
reader.skipField();
|
|
2851
|
+
break;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
return msg;
|
|
2855
|
+
};
|
|
2856
|
+
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2860
|
+
* @return {!Uint8Array}
|
|
2861
|
+
*/
|
|
2862
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.serializeBinary = function() {
|
|
2863
|
+
var writer = new jspb.BinaryWriter();
|
|
2864
|
+
proto.mavsdk.rpc.winch.LockResponse.serializeBinaryToWriter(this, writer);
|
|
2865
|
+
return writer.getResultBuffer();
|
|
2866
|
+
};
|
|
2867
|
+
|
|
2868
|
+
|
|
2869
|
+
/**
|
|
2870
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2871
|
+
* format), writing to the given BinaryWriter.
|
|
2872
|
+
* @param {!proto.mavsdk.rpc.winch.LockResponse} message
|
|
2873
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2874
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2875
|
+
*/
|
|
2876
|
+
proto.mavsdk.rpc.winch.LockResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2877
|
+
var f = undefined;
|
|
2878
|
+
f = message.getWinchResult();
|
|
2879
|
+
if (f != null) {
|
|
2880
|
+
writer.writeMessage(
|
|
2881
|
+
1,
|
|
2882
|
+
f,
|
|
2883
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* optional WinchResult winch_result = 1;
|
|
2891
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
2892
|
+
*/
|
|
2893
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.getWinchResult = function() {
|
|
2894
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
2895
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
2896
|
+
};
|
|
2897
|
+
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
2901
|
+
* @return {!proto.mavsdk.rpc.winch.LockResponse} returns this
|
|
2902
|
+
*/
|
|
2903
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.setWinchResult = function(value) {
|
|
2904
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Clears the message field making it undefined.
|
|
2910
|
+
* @return {!proto.mavsdk.rpc.winch.LockResponse} returns this
|
|
2911
|
+
*/
|
|
2912
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.clearWinchResult = function() {
|
|
2913
|
+
return this.setWinchResult(undefined);
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Returns whether this field is set.
|
|
2919
|
+
* @return {boolean}
|
|
2920
|
+
*/
|
|
2921
|
+
proto.mavsdk.rpc.winch.LockResponse.prototype.hasWinchResult = function() {
|
|
2922
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2930
|
+
/**
|
|
2931
|
+
* Creates an object representation of this proto.
|
|
2932
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2933
|
+
* Optional fields that are not set will be set to undefined.
|
|
2934
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2935
|
+
* For the list of reserved names please see:
|
|
2936
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2937
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2938
|
+
* JSPB instance for transitional soy proto support:
|
|
2939
|
+
* http://goto/soy-param-migration
|
|
2940
|
+
* @return {!Object}
|
|
2941
|
+
*/
|
|
2942
|
+
proto.mavsdk.rpc.winch.DeliverRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2943
|
+
return proto.mavsdk.rpc.winch.DeliverRequest.toObject(opt_includeInstance, this);
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
/**
|
|
2948
|
+
* Static version of the {@see toObject} method.
|
|
2949
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2950
|
+
* the JSPB instance for transitional soy proto support:
|
|
2951
|
+
* http://goto/soy-param-migration
|
|
2952
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverRequest} msg The msg instance to transform.
|
|
2953
|
+
* @return {!Object}
|
|
2954
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2955
|
+
*/
|
|
2956
|
+
proto.mavsdk.rpc.winch.DeliverRequest.toObject = function(includeInstance, msg) {
|
|
2957
|
+
var f, obj = {
|
|
2958
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2959
|
+
};
|
|
2960
|
+
|
|
2961
|
+
if (includeInstance) {
|
|
2962
|
+
obj.$jspbMessageInstance = msg;
|
|
2963
|
+
}
|
|
2964
|
+
return obj;
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2971
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2972
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverRequest}
|
|
2973
|
+
*/
|
|
2974
|
+
proto.mavsdk.rpc.winch.DeliverRequest.deserializeBinary = function(bytes) {
|
|
2975
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2976
|
+
var msg = new proto.mavsdk.rpc.winch.DeliverRequest;
|
|
2977
|
+
return proto.mavsdk.rpc.winch.DeliverRequest.deserializeBinaryFromReader(msg, reader);
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2983
|
+
* given reader into the given message object.
|
|
2984
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverRequest} msg The message object to deserialize into.
|
|
2985
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2986
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverRequest}
|
|
2987
|
+
*/
|
|
2988
|
+
proto.mavsdk.rpc.winch.DeliverRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2989
|
+
while (reader.nextField()) {
|
|
2990
|
+
if (reader.isEndGroup()) {
|
|
2991
|
+
break;
|
|
2992
|
+
}
|
|
2993
|
+
var field = reader.getFieldNumber();
|
|
2994
|
+
switch (field) {
|
|
2995
|
+
case 1:
|
|
2996
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2997
|
+
msg.setInstance(value);
|
|
2998
|
+
break;
|
|
2999
|
+
default:
|
|
3000
|
+
reader.skipField();
|
|
3001
|
+
break;
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
return msg;
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3010
|
+
* @return {!Uint8Array}
|
|
3011
|
+
*/
|
|
3012
|
+
proto.mavsdk.rpc.winch.DeliverRequest.prototype.serializeBinary = function() {
|
|
3013
|
+
var writer = new jspb.BinaryWriter();
|
|
3014
|
+
proto.mavsdk.rpc.winch.DeliverRequest.serializeBinaryToWriter(this, writer);
|
|
3015
|
+
return writer.getResultBuffer();
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
/**
|
|
3020
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3021
|
+
* format), writing to the given BinaryWriter.
|
|
3022
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverRequest} message
|
|
3023
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3024
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3025
|
+
*/
|
|
3026
|
+
proto.mavsdk.rpc.winch.DeliverRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3027
|
+
var f = undefined;
|
|
3028
|
+
f = message.getInstance();
|
|
3029
|
+
if (f !== 0) {
|
|
3030
|
+
writer.writeUint32(
|
|
3031
|
+
1,
|
|
3032
|
+
f
|
|
3033
|
+
);
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* optional uint32 instance = 1;
|
|
3040
|
+
* @return {number}
|
|
3041
|
+
*/
|
|
3042
|
+
proto.mavsdk.rpc.winch.DeliverRequest.prototype.getInstance = function() {
|
|
3043
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3044
|
+
};
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
/**
|
|
3048
|
+
* @param {number} value
|
|
3049
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverRequest} returns this
|
|
3050
|
+
*/
|
|
3051
|
+
proto.mavsdk.rpc.winch.DeliverRequest.prototype.setInstance = function(value) {
|
|
3052
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3053
|
+
};
|
|
3054
|
+
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3060
|
+
/**
|
|
3061
|
+
* Creates an object representation of this proto.
|
|
3062
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3063
|
+
* Optional fields that are not set will be set to undefined.
|
|
3064
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3065
|
+
* For the list of reserved names please see:
|
|
3066
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3067
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3068
|
+
* JSPB instance for transitional soy proto support:
|
|
3069
|
+
* http://goto/soy-param-migration
|
|
3070
|
+
* @return {!Object}
|
|
3071
|
+
*/
|
|
3072
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3073
|
+
return proto.mavsdk.rpc.winch.DeliverResponse.toObject(opt_includeInstance, this);
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* Static version of the {@see toObject} method.
|
|
3079
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3080
|
+
* the JSPB instance for transitional soy proto support:
|
|
3081
|
+
* http://goto/soy-param-migration
|
|
3082
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverResponse} msg The msg instance to transform.
|
|
3083
|
+
* @return {!Object}
|
|
3084
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3085
|
+
*/
|
|
3086
|
+
proto.mavsdk.rpc.winch.DeliverResponse.toObject = function(includeInstance, msg) {
|
|
3087
|
+
var f, obj = {
|
|
3088
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
3089
|
+
};
|
|
3090
|
+
|
|
3091
|
+
if (includeInstance) {
|
|
3092
|
+
obj.$jspbMessageInstance = msg;
|
|
3093
|
+
}
|
|
3094
|
+
return obj;
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3101
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3102
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverResponse}
|
|
3103
|
+
*/
|
|
3104
|
+
proto.mavsdk.rpc.winch.DeliverResponse.deserializeBinary = function(bytes) {
|
|
3105
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3106
|
+
var msg = new proto.mavsdk.rpc.winch.DeliverResponse;
|
|
3107
|
+
return proto.mavsdk.rpc.winch.DeliverResponse.deserializeBinaryFromReader(msg, reader);
|
|
3108
|
+
};
|
|
3109
|
+
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3113
|
+
* given reader into the given message object.
|
|
3114
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverResponse} msg The message object to deserialize into.
|
|
3115
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3116
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverResponse}
|
|
3117
|
+
*/
|
|
3118
|
+
proto.mavsdk.rpc.winch.DeliverResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3119
|
+
while (reader.nextField()) {
|
|
3120
|
+
if (reader.isEndGroup()) {
|
|
3121
|
+
break;
|
|
3122
|
+
}
|
|
3123
|
+
var field = reader.getFieldNumber();
|
|
3124
|
+
switch (field) {
|
|
3125
|
+
case 1:
|
|
3126
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
3127
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
3128
|
+
msg.setWinchResult(value);
|
|
3129
|
+
break;
|
|
3130
|
+
default:
|
|
3131
|
+
reader.skipField();
|
|
3132
|
+
break;
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
return msg;
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3141
|
+
* @return {!Uint8Array}
|
|
3142
|
+
*/
|
|
3143
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.serializeBinary = function() {
|
|
3144
|
+
var writer = new jspb.BinaryWriter();
|
|
3145
|
+
proto.mavsdk.rpc.winch.DeliverResponse.serializeBinaryToWriter(this, writer);
|
|
3146
|
+
return writer.getResultBuffer();
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3152
|
+
* format), writing to the given BinaryWriter.
|
|
3153
|
+
* @param {!proto.mavsdk.rpc.winch.DeliverResponse} message
|
|
3154
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3155
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3156
|
+
*/
|
|
3157
|
+
proto.mavsdk.rpc.winch.DeliverResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3158
|
+
var f = undefined;
|
|
3159
|
+
f = message.getWinchResult();
|
|
3160
|
+
if (f != null) {
|
|
3161
|
+
writer.writeMessage(
|
|
3162
|
+
1,
|
|
3163
|
+
f,
|
|
3164
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
3165
|
+
);
|
|
3166
|
+
}
|
|
3167
|
+
};
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
/**
|
|
3171
|
+
* optional WinchResult winch_result = 1;
|
|
3172
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
3173
|
+
*/
|
|
3174
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.getWinchResult = function() {
|
|
3175
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
3176
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
3177
|
+
};
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
/**
|
|
3181
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
3182
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverResponse} returns this
|
|
3183
|
+
*/
|
|
3184
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.setWinchResult = function(value) {
|
|
3185
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Clears the message field making it undefined.
|
|
3191
|
+
* @return {!proto.mavsdk.rpc.winch.DeliverResponse} returns this
|
|
3192
|
+
*/
|
|
3193
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.clearWinchResult = function() {
|
|
3194
|
+
return this.setWinchResult(undefined);
|
|
3195
|
+
};
|
|
3196
|
+
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* Returns whether this field is set.
|
|
3200
|
+
* @return {boolean}
|
|
3201
|
+
*/
|
|
3202
|
+
proto.mavsdk.rpc.winch.DeliverResponse.prototype.hasWinchResult = function() {
|
|
3203
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3204
|
+
};
|
|
3205
|
+
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3211
|
+
/**
|
|
3212
|
+
* Creates an object representation of this proto.
|
|
3213
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3214
|
+
* Optional fields that are not set will be set to undefined.
|
|
3215
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3216
|
+
* For the list of reserved names please see:
|
|
3217
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3218
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3219
|
+
* JSPB instance for transitional soy proto support:
|
|
3220
|
+
* http://goto/soy-param-migration
|
|
3221
|
+
* @return {!Object}
|
|
3222
|
+
*/
|
|
3223
|
+
proto.mavsdk.rpc.winch.HoldRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3224
|
+
return proto.mavsdk.rpc.winch.HoldRequest.toObject(opt_includeInstance, this);
|
|
3225
|
+
};
|
|
3226
|
+
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* Static version of the {@see toObject} method.
|
|
3230
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3231
|
+
* the JSPB instance for transitional soy proto support:
|
|
3232
|
+
* http://goto/soy-param-migration
|
|
3233
|
+
* @param {!proto.mavsdk.rpc.winch.HoldRequest} msg The msg instance to transform.
|
|
3234
|
+
* @return {!Object}
|
|
3235
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3236
|
+
*/
|
|
3237
|
+
proto.mavsdk.rpc.winch.HoldRequest.toObject = function(includeInstance, msg) {
|
|
3238
|
+
var f, obj = {
|
|
3239
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
if (includeInstance) {
|
|
3243
|
+
obj.$jspbMessageInstance = msg;
|
|
3244
|
+
}
|
|
3245
|
+
return obj;
|
|
3246
|
+
};
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
/**
|
|
3251
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3252
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3253
|
+
* @return {!proto.mavsdk.rpc.winch.HoldRequest}
|
|
3254
|
+
*/
|
|
3255
|
+
proto.mavsdk.rpc.winch.HoldRequest.deserializeBinary = function(bytes) {
|
|
3256
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3257
|
+
var msg = new proto.mavsdk.rpc.winch.HoldRequest;
|
|
3258
|
+
return proto.mavsdk.rpc.winch.HoldRequest.deserializeBinaryFromReader(msg, reader);
|
|
3259
|
+
};
|
|
3260
|
+
|
|
3261
|
+
|
|
3262
|
+
/**
|
|
3263
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3264
|
+
* given reader into the given message object.
|
|
3265
|
+
* @param {!proto.mavsdk.rpc.winch.HoldRequest} msg The message object to deserialize into.
|
|
3266
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3267
|
+
* @return {!proto.mavsdk.rpc.winch.HoldRequest}
|
|
3268
|
+
*/
|
|
3269
|
+
proto.mavsdk.rpc.winch.HoldRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3270
|
+
while (reader.nextField()) {
|
|
3271
|
+
if (reader.isEndGroup()) {
|
|
3272
|
+
break;
|
|
3273
|
+
}
|
|
3274
|
+
var field = reader.getFieldNumber();
|
|
3275
|
+
switch (field) {
|
|
3276
|
+
case 1:
|
|
3277
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3278
|
+
msg.setInstance(value);
|
|
3279
|
+
break;
|
|
3280
|
+
default:
|
|
3281
|
+
reader.skipField();
|
|
3282
|
+
break;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
return msg;
|
|
3286
|
+
};
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
/**
|
|
3290
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3291
|
+
* @return {!Uint8Array}
|
|
3292
|
+
*/
|
|
3293
|
+
proto.mavsdk.rpc.winch.HoldRequest.prototype.serializeBinary = function() {
|
|
3294
|
+
var writer = new jspb.BinaryWriter();
|
|
3295
|
+
proto.mavsdk.rpc.winch.HoldRequest.serializeBinaryToWriter(this, writer);
|
|
3296
|
+
return writer.getResultBuffer();
|
|
3297
|
+
};
|
|
3298
|
+
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3302
|
+
* format), writing to the given BinaryWriter.
|
|
3303
|
+
* @param {!proto.mavsdk.rpc.winch.HoldRequest} message
|
|
3304
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3305
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3306
|
+
*/
|
|
3307
|
+
proto.mavsdk.rpc.winch.HoldRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3308
|
+
var f = undefined;
|
|
3309
|
+
f = message.getInstance();
|
|
3310
|
+
if (f !== 0) {
|
|
3311
|
+
writer.writeUint32(
|
|
3312
|
+
1,
|
|
3313
|
+
f
|
|
3314
|
+
);
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* optional uint32 instance = 1;
|
|
3321
|
+
* @return {number}
|
|
3322
|
+
*/
|
|
3323
|
+
proto.mavsdk.rpc.winch.HoldRequest.prototype.getInstance = function() {
|
|
3324
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* @param {number} value
|
|
3330
|
+
* @return {!proto.mavsdk.rpc.winch.HoldRequest} returns this
|
|
3331
|
+
*/
|
|
3332
|
+
proto.mavsdk.rpc.winch.HoldRequest.prototype.setInstance = function(value) {
|
|
3333
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3341
|
+
/**
|
|
3342
|
+
* Creates an object representation of this proto.
|
|
3343
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3344
|
+
* Optional fields that are not set will be set to undefined.
|
|
3345
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3346
|
+
* For the list of reserved names please see:
|
|
3347
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3348
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3349
|
+
* JSPB instance for transitional soy proto support:
|
|
3350
|
+
* http://goto/soy-param-migration
|
|
3351
|
+
* @return {!Object}
|
|
3352
|
+
*/
|
|
3353
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3354
|
+
return proto.mavsdk.rpc.winch.HoldResponse.toObject(opt_includeInstance, this);
|
|
3355
|
+
};
|
|
3356
|
+
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* Static version of the {@see toObject} method.
|
|
3360
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3361
|
+
* the JSPB instance for transitional soy proto support:
|
|
3362
|
+
* http://goto/soy-param-migration
|
|
3363
|
+
* @param {!proto.mavsdk.rpc.winch.HoldResponse} msg The msg instance to transform.
|
|
3364
|
+
* @return {!Object}
|
|
3365
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3366
|
+
*/
|
|
3367
|
+
proto.mavsdk.rpc.winch.HoldResponse.toObject = function(includeInstance, msg) {
|
|
3368
|
+
var f, obj = {
|
|
3369
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
3370
|
+
};
|
|
3371
|
+
|
|
3372
|
+
if (includeInstance) {
|
|
3373
|
+
obj.$jspbMessageInstance = msg;
|
|
3374
|
+
}
|
|
3375
|
+
return obj;
|
|
3376
|
+
};
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3382
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3383
|
+
* @return {!proto.mavsdk.rpc.winch.HoldResponse}
|
|
3384
|
+
*/
|
|
3385
|
+
proto.mavsdk.rpc.winch.HoldResponse.deserializeBinary = function(bytes) {
|
|
3386
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3387
|
+
var msg = new proto.mavsdk.rpc.winch.HoldResponse;
|
|
3388
|
+
return proto.mavsdk.rpc.winch.HoldResponse.deserializeBinaryFromReader(msg, reader);
|
|
3389
|
+
};
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
/**
|
|
3393
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3394
|
+
* given reader into the given message object.
|
|
3395
|
+
* @param {!proto.mavsdk.rpc.winch.HoldResponse} msg The message object to deserialize into.
|
|
3396
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3397
|
+
* @return {!proto.mavsdk.rpc.winch.HoldResponse}
|
|
3398
|
+
*/
|
|
3399
|
+
proto.mavsdk.rpc.winch.HoldResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3400
|
+
while (reader.nextField()) {
|
|
3401
|
+
if (reader.isEndGroup()) {
|
|
3402
|
+
break;
|
|
3403
|
+
}
|
|
3404
|
+
var field = reader.getFieldNumber();
|
|
3405
|
+
switch (field) {
|
|
3406
|
+
case 1:
|
|
3407
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
3408
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
3409
|
+
msg.setWinchResult(value);
|
|
3410
|
+
break;
|
|
3411
|
+
default:
|
|
3412
|
+
reader.skipField();
|
|
3413
|
+
break;
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
return msg;
|
|
3417
|
+
};
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3422
|
+
* @return {!Uint8Array}
|
|
3423
|
+
*/
|
|
3424
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.serializeBinary = function() {
|
|
3425
|
+
var writer = new jspb.BinaryWriter();
|
|
3426
|
+
proto.mavsdk.rpc.winch.HoldResponse.serializeBinaryToWriter(this, writer);
|
|
3427
|
+
return writer.getResultBuffer();
|
|
3428
|
+
};
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3433
|
+
* format), writing to the given BinaryWriter.
|
|
3434
|
+
* @param {!proto.mavsdk.rpc.winch.HoldResponse} message
|
|
3435
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3436
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3437
|
+
*/
|
|
3438
|
+
proto.mavsdk.rpc.winch.HoldResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3439
|
+
var f = undefined;
|
|
3440
|
+
f = message.getWinchResult();
|
|
3441
|
+
if (f != null) {
|
|
3442
|
+
writer.writeMessage(
|
|
3443
|
+
1,
|
|
3444
|
+
f,
|
|
3445
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
3446
|
+
);
|
|
3447
|
+
}
|
|
3448
|
+
};
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
* optional WinchResult winch_result = 1;
|
|
3453
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
3454
|
+
*/
|
|
3455
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.getWinchResult = function() {
|
|
3456
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
3457
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
3458
|
+
};
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
/**
|
|
3462
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
3463
|
+
* @return {!proto.mavsdk.rpc.winch.HoldResponse} returns this
|
|
3464
|
+
*/
|
|
3465
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.setWinchResult = function(value) {
|
|
3466
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3467
|
+
};
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* Clears the message field making it undefined.
|
|
3472
|
+
* @return {!proto.mavsdk.rpc.winch.HoldResponse} returns this
|
|
3473
|
+
*/
|
|
3474
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.clearWinchResult = function() {
|
|
3475
|
+
return this.setWinchResult(undefined);
|
|
3476
|
+
};
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
/**
|
|
3480
|
+
* Returns whether this field is set.
|
|
3481
|
+
* @return {boolean}
|
|
3482
|
+
*/
|
|
3483
|
+
proto.mavsdk.rpc.winch.HoldResponse.prototype.hasWinchResult = function() {
|
|
3484
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3485
|
+
};
|
|
3486
|
+
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3492
|
+
/**
|
|
3493
|
+
* Creates an object representation of this proto.
|
|
3494
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3495
|
+
* Optional fields that are not set will be set to undefined.
|
|
3496
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3497
|
+
* For the list of reserved names please see:
|
|
3498
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3499
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3500
|
+
* JSPB instance for transitional soy proto support:
|
|
3501
|
+
* http://goto/soy-param-migration
|
|
3502
|
+
* @return {!Object}
|
|
3503
|
+
*/
|
|
3504
|
+
proto.mavsdk.rpc.winch.RetractRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3505
|
+
return proto.mavsdk.rpc.winch.RetractRequest.toObject(opt_includeInstance, this);
|
|
3506
|
+
};
|
|
3507
|
+
|
|
3508
|
+
|
|
3509
|
+
/**
|
|
3510
|
+
* Static version of the {@see toObject} method.
|
|
3511
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3512
|
+
* the JSPB instance for transitional soy proto support:
|
|
3513
|
+
* http://goto/soy-param-migration
|
|
3514
|
+
* @param {!proto.mavsdk.rpc.winch.RetractRequest} msg The msg instance to transform.
|
|
3515
|
+
* @return {!Object}
|
|
3516
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3517
|
+
*/
|
|
3518
|
+
proto.mavsdk.rpc.winch.RetractRequest.toObject = function(includeInstance, msg) {
|
|
3519
|
+
var f, obj = {
|
|
3520
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3521
|
+
};
|
|
3522
|
+
|
|
3523
|
+
if (includeInstance) {
|
|
3524
|
+
obj.$jspbMessageInstance = msg;
|
|
3525
|
+
}
|
|
3526
|
+
return obj;
|
|
3527
|
+
};
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
/**
|
|
3532
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3533
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3534
|
+
* @return {!proto.mavsdk.rpc.winch.RetractRequest}
|
|
3535
|
+
*/
|
|
3536
|
+
proto.mavsdk.rpc.winch.RetractRequest.deserializeBinary = function(bytes) {
|
|
3537
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3538
|
+
var msg = new proto.mavsdk.rpc.winch.RetractRequest;
|
|
3539
|
+
return proto.mavsdk.rpc.winch.RetractRequest.deserializeBinaryFromReader(msg, reader);
|
|
3540
|
+
};
|
|
3541
|
+
|
|
3542
|
+
|
|
3543
|
+
/**
|
|
3544
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3545
|
+
* given reader into the given message object.
|
|
3546
|
+
* @param {!proto.mavsdk.rpc.winch.RetractRequest} msg The message object to deserialize into.
|
|
3547
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3548
|
+
* @return {!proto.mavsdk.rpc.winch.RetractRequest}
|
|
3549
|
+
*/
|
|
3550
|
+
proto.mavsdk.rpc.winch.RetractRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3551
|
+
while (reader.nextField()) {
|
|
3552
|
+
if (reader.isEndGroup()) {
|
|
3553
|
+
break;
|
|
3554
|
+
}
|
|
3555
|
+
var field = reader.getFieldNumber();
|
|
3556
|
+
switch (field) {
|
|
3557
|
+
case 1:
|
|
3558
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3559
|
+
msg.setInstance(value);
|
|
3560
|
+
break;
|
|
3561
|
+
default:
|
|
3562
|
+
reader.skipField();
|
|
3563
|
+
break;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
return msg;
|
|
3567
|
+
};
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3572
|
+
* @return {!Uint8Array}
|
|
3573
|
+
*/
|
|
3574
|
+
proto.mavsdk.rpc.winch.RetractRequest.prototype.serializeBinary = function() {
|
|
3575
|
+
var writer = new jspb.BinaryWriter();
|
|
3576
|
+
proto.mavsdk.rpc.winch.RetractRequest.serializeBinaryToWriter(this, writer);
|
|
3577
|
+
return writer.getResultBuffer();
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
/**
|
|
3582
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3583
|
+
* format), writing to the given BinaryWriter.
|
|
3584
|
+
* @param {!proto.mavsdk.rpc.winch.RetractRequest} message
|
|
3585
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3586
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3587
|
+
*/
|
|
3588
|
+
proto.mavsdk.rpc.winch.RetractRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3589
|
+
var f = undefined;
|
|
3590
|
+
f = message.getInstance();
|
|
3591
|
+
if (f !== 0) {
|
|
3592
|
+
writer.writeUint32(
|
|
3593
|
+
1,
|
|
3594
|
+
f
|
|
3595
|
+
);
|
|
3596
|
+
}
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* optional uint32 instance = 1;
|
|
3602
|
+
* @return {number}
|
|
3603
|
+
*/
|
|
3604
|
+
proto.mavsdk.rpc.winch.RetractRequest.prototype.getInstance = function() {
|
|
3605
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
* @param {number} value
|
|
3611
|
+
* @return {!proto.mavsdk.rpc.winch.RetractRequest} returns this
|
|
3612
|
+
*/
|
|
3613
|
+
proto.mavsdk.rpc.winch.RetractRequest.prototype.setInstance = function(value) {
|
|
3614
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3615
|
+
};
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3622
|
+
/**
|
|
3623
|
+
* Creates an object representation of this proto.
|
|
3624
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3625
|
+
* Optional fields that are not set will be set to undefined.
|
|
3626
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3627
|
+
* For the list of reserved names please see:
|
|
3628
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3629
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3630
|
+
* JSPB instance for transitional soy proto support:
|
|
3631
|
+
* http://goto/soy-param-migration
|
|
3632
|
+
* @return {!Object}
|
|
3633
|
+
*/
|
|
3634
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3635
|
+
return proto.mavsdk.rpc.winch.RetractResponse.toObject(opt_includeInstance, this);
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
|
|
3639
|
+
/**
|
|
3640
|
+
* Static version of the {@see toObject} method.
|
|
3641
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3642
|
+
* the JSPB instance for transitional soy proto support:
|
|
3643
|
+
* http://goto/soy-param-migration
|
|
3644
|
+
* @param {!proto.mavsdk.rpc.winch.RetractResponse} msg The msg instance to transform.
|
|
3645
|
+
* @return {!Object}
|
|
3646
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3647
|
+
*/
|
|
3648
|
+
proto.mavsdk.rpc.winch.RetractResponse.toObject = function(includeInstance, msg) {
|
|
3649
|
+
var f, obj = {
|
|
3650
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
if (includeInstance) {
|
|
3654
|
+
obj.$jspbMessageInstance = msg;
|
|
3655
|
+
}
|
|
3656
|
+
return obj;
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3664
|
+
* @return {!proto.mavsdk.rpc.winch.RetractResponse}
|
|
3665
|
+
*/
|
|
3666
|
+
proto.mavsdk.rpc.winch.RetractResponse.deserializeBinary = function(bytes) {
|
|
3667
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3668
|
+
var msg = new proto.mavsdk.rpc.winch.RetractResponse;
|
|
3669
|
+
return proto.mavsdk.rpc.winch.RetractResponse.deserializeBinaryFromReader(msg, reader);
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3675
|
+
* given reader into the given message object.
|
|
3676
|
+
* @param {!proto.mavsdk.rpc.winch.RetractResponse} msg The message object to deserialize into.
|
|
3677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3678
|
+
* @return {!proto.mavsdk.rpc.winch.RetractResponse}
|
|
3679
|
+
*/
|
|
3680
|
+
proto.mavsdk.rpc.winch.RetractResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3681
|
+
while (reader.nextField()) {
|
|
3682
|
+
if (reader.isEndGroup()) {
|
|
3683
|
+
break;
|
|
3684
|
+
}
|
|
3685
|
+
var field = reader.getFieldNumber();
|
|
3686
|
+
switch (field) {
|
|
3687
|
+
case 1:
|
|
3688
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
3689
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
3690
|
+
msg.setWinchResult(value);
|
|
3691
|
+
break;
|
|
3692
|
+
default:
|
|
3693
|
+
reader.skipField();
|
|
3694
|
+
break;
|
|
3695
|
+
}
|
|
3696
|
+
}
|
|
3697
|
+
return msg;
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3703
|
+
* @return {!Uint8Array}
|
|
3704
|
+
*/
|
|
3705
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.serializeBinary = function() {
|
|
3706
|
+
var writer = new jspb.BinaryWriter();
|
|
3707
|
+
proto.mavsdk.rpc.winch.RetractResponse.serializeBinaryToWriter(this, writer);
|
|
3708
|
+
return writer.getResultBuffer();
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
/**
|
|
3713
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3714
|
+
* format), writing to the given BinaryWriter.
|
|
3715
|
+
* @param {!proto.mavsdk.rpc.winch.RetractResponse} message
|
|
3716
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3717
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3718
|
+
*/
|
|
3719
|
+
proto.mavsdk.rpc.winch.RetractResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3720
|
+
var f = undefined;
|
|
3721
|
+
f = message.getWinchResult();
|
|
3722
|
+
if (f != null) {
|
|
3723
|
+
writer.writeMessage(
|
|
3724
|
+
1,
|
|
3725
|
+
f,
|
|
3726
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
3727
|
+
);
|
|
3728
|
+
}
|
|
3729
|
+
};
|
|
3730
|
+
|
|
3731
|
+
|
|
3732
|
+
/**
|
|
3733
|
+
* optional WinchResult winch_result = 1;
|
|
3734
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
3735
|
+
*/
|
|
3736
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.getWinchResult = function() {
|
|
3737
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
3738
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
3744
|
+
* @return {!proto.mavsdk.rpc.winch.RetractResponse} returns this
|
|
3745
|
+
*/
|
|
3746
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.setWinchResult = function(value) {
|
|
3747
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3748
|
+
};
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
/**
|
|
3752
|
+
* Clears the message field making it undefined.
|
|
3753
|
+
* @return {!proto.mavsdk.rpc.winch.RetractResponse} returns this
|
|
3754
|
+
*/
|
|
3755
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.clearWinchResult = function() {
|
|
3756
|
+
return this.setWinchResult(undefined);
|
|
3757
|
+
};
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
/**
|
|
3761
|
+
* Returns whether this field is set.
|
|
3762
|
+
* @return {boolean}
|
|
3763
|
+
*/
|
|
3764
|
+
proto.mavsdk.rpc.winch.RetractResponse.prototype.hasWinchResult = function() {
|
|
3765
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3766
|
+
};
|
|
3767
|
+
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3773
|
+
/**
|
|
3774
|
+
* Creates an object representation of this proto.
|
|
3775
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3776
|
+
* Optional fields that are not set will be set to undefined.
|
|
3777
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3778
|
+
* For the list of reserved names please see:
|
|
3779
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3780
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3781
|
+
* JSPB instance for transitional soy proto support:
|
|
3782
|
+
* http://goto/soy-param-migration
|
|
3783
|
+
* @return {!Object}
|
|
3784
|
+
*/
|
|
3785
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3786
|
+
return proto.mavsdk.rpc.winch.LoadLineRequest.toObject(opt_includeInstance, this);
|
|
3787
|
+
};
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* Static version of the {@see toObject} method.
|
|
3792
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3793
|
+
* the JSPB instance for transitional soy proto support:
|
|
3794
|
+
* http://goto/soy-param-migration
|
|
3795
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineRequest} msg The msg instance to transform.
|
|
3796
|
+
* @return {!Object}
|
|
3797
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3798
|
+
*/
|
|
3799
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.toObject = function(includeInstance, msg) {
|
|
3800
|
+
var f, obj = {
|
|
3801
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3802
|
+
};
|
|
3803
|
+
|
|
3804
|
+
if (includeInstance) {
|
|
3805
|
+
obj.$jspbMessageInstance = msg;
|
|
3806
|
+
}
|
|
3807
|
+
return obj;
|
|
3808
|
+
};
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
/**
|
|
3813
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3814
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3815
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineRequest}
|
|
3816
|
+
*/
|
|
3817
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.deserializeBinary = function(bytes) {
|
|
3818
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3819
|
+
var msg = new proto.mavsdk.rpc.winch.LoadLineRequest;
|
|
3820
|
+
return proto.mavsdk.rpc.winch.LoadLineRequest.deserializeBinaryFromReader(msg, reader);
|
|
3821
|
+
};
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
/**
|
|
3825
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3826
|
+
* given reader into the given message object.
|
|
3827
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineRequest} msg The message object to deserialize into.
|
|
3828
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3829
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineRequest}
|
|
3830
|
+
*/
|
|
3831
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3832
|
+
while (reader.nextField()) {
|
|
3833
|
+
if (reader.isEndGroup()) {
|
|
3834
|
+
break;
|
|
3835
|
+
}
|
|
3836
|
+
var field = reader.getFieldNumber();
|
|
3837
|
+
switch (field) {
|
|
3838
|
+
case 1:
|
|
3839
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3840
|
+
msg.setInstance(value);
|
|
3841
|
+
break;
|
|
3842
|
+
default:
|
|
3843
|
+
reader.skipField();
|
|
3844
|
+
break;
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
return msg;
|
|
3848
|
+
};
|
|
3849
|
+
|
|
3850
|
+
|
|
3851
|
+
/**
|
|
3852
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3853
|
+
* @return {!Uint8Array}
|
|
3854
|
+
*/
|
|
3855
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.prototype.serializeBinary = function() {
|
|
3856
|
+
var writer = new jspb.BinaryWriter();
|
|
3857
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.serializeBinaryToWriter(this, writer);
|
|
3858
|
+
return writer.getResultBuffer();
|
|
3859
|
+
};
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3864
|
+
* format), writing to the given BinaryWriter.
|
|
3865
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineRequest} message
|
|
3866
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3867
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3868
|
+
*/
|
|
3869
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3870
|
+
var f = undefined;
|
|
3871
|
+
f = message.getInstance();
|
|
3872
|
+
if (f !== 0) {
|
|
3873
|
+
writer.writeUint32(
|
|
3874
|
+
1,
|
|
3875
|
+
f
|
|
3876
|
+
);
|
|
3877
|
+
}
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
/**
|
|
3882
|
+
* optional uint32 instance = 1;
|
|
3883
|
+
* @return {number}
|
|
3884
|
+
*/
|
|
3885
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.prototype.getInstance = function() {
|
|
3886
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3887
|
+
};
|
|
3888
|
+
|
|
3889
|
+
|
|
3890
|
+
/**
|
|
3891
|
+
* @param {number} value
|
|
3892
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineRequest} returns this
|
|
3893
|
+
*/
|
|
3894
|
+
proto.mavsdk.rpc.winch.LoadLineRequest.prototype.setInstance = function(value) {
|
|
3895
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3896
|
+
};
|
|
3897
|
+
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3903
|
+
/**
|
|
3904
|
+
* Creates an object representation of this proto.
|
|
3905
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3906
|
+
* Optional fields that are not set will be set to undefined.
|
|
3907
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3908
|
+
* For the list of reserved names please see:
|
|
3909
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3910
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3911
|
+
* JSPB instance for transitional soy proto support:
|
|
3912
|
+
* http://goto/soy-param-migration
|
|
3913
|
+
* @return {!Object}
|
|
3914
|
+
*/
|
|
3915
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3916
|
+
return proto.mavsdk.rpc.winch.LoadLineResponse.toObject(opt_includeInstance, this);
|
|
3917
|
+
};
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Static version of the {@see toObject} method.
|
|
3922
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3923
|
+
* the JSPB instance for transitional soy proto support:
|
|
3924
|
+
* http://goto/soy-param-migration
|
|
3925
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineResponse} msg The msg instance to transform.
|
|
3926
|
+
* @return {!Object}
|
|
3927
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3928
|
+
*/
|
|
3929
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.toObject = function(includeInstance, msg) {
|
|
3930
|
+
var f, obj = {
|
|
3931
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
if (includeInstance) {
|
|
3935
|
+
obj.$jspbMessageInstance = msg;
|
|
3936
|
+
}
|
|
3937
|
+
return obj;
|
|
3938
|
+
};
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
|
|
3942
|
+
/**
|
|
3943
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3944
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3945
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineResponse}
|
|
3946
|
+
*/
|
|
3947
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.deserializeBinary = function(bytes) {
|
|
3948
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3949
|
+
var msg = new proto.mavsdk.rpc.winch.LoadLineResponse;
|
|
3950
|
+
return proto.mavsdk.rpc.winch.LoadLineResponse.deserializeBinaryFromReader(msg, reader);
|
|
3951
|
+
};
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3956
|
+
* given reader into the given message object.
|
|
3957
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineResponse} msg The message object to deserialize into.
|
|
3958
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3959
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineResponse}
|
|
3960
|
+
*/
|
|
3961
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3962
|
+
while (reader.nextField()) {
|
|
3963
|
+
if (reader.isEndGroup()) {
|
|
3964
|
+
break;
|
|
3965
|
+
}
|
|
3966
|
+
var field = reader.getFieldNumber();
|
|
3967
|
+
switch (field) {
|
|
3968
|
+
case 1:
|
|
3969
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
3970
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
3971
|
+
msg.setWinchResult(value);
|
|
3972
|
+
break;
|
|
3973
|
+
default:
|
|
3974
|
+
reader.skipField();
|
|
3975
|
+
break;
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
3978
|
+
return msg;
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3981
|
+
|
|
3982
|
+
/**
|
|
3983
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3984
|
+
* @return {!Uint8Array}
|
|
3985
|
+
*/
|
|
3986
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.serializeBinary = function() {
|
|
3987
|
+
var writer = new jspb.BinaryWriter();
|
|
3988
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.serializeBinaryToWriter(this, writer);
|
|
3989
|
+
return writer.getResultBuffer();
|
|
3990
|
+
};
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
/**
|
|
3994
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3995
|
+
* format), writing to the given BinaryWriter.
|
|
3996
|
+
* @param {!proto.mavsdk.rpc.winch.LoadLineResponse} message
|
|
3997
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3998
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3999
|
+
*/
|
|
4000
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4001
|
+
var f = undefined;
|
|
4002
|
+
f = message.getWinchResult();
|
|
4003
|
+
if (f != null) {
|
|
4004
|
+
writer.writeMessage(
|
|
4005
|
+
1,
|
|
4006
|
+
f,
|
|
4007
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
4008
|
+
);
|
|
4009
|
+
}
|
|
4010
|
+
};
|
|
4011
|
+
|
|
4012
|
+
|
|
4013
|
+
/**
|
|
4014
|
+
* optional WinchResult winch_result = 1;
|
|
4015
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
4016
|
+
*/
|
|
4017
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.getWinchResult = function() {
|
|
4018
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
4019
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
4020
|
+
};
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
/**
|
|
4024
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
4025
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineResponse} returns this
|
|
4026
|
+
*/
|
|
4027
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.setWinchResult = function(value) {
|
|
4028
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* Clears the message field making it undefined.
|
|
4034
|
+
* @return {!proto.mavsdk.rpc.winch.LoadLineResponse} returns this
|
|
4035
|
+
*/
|
|
4036
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.clearWinchResult = function() {
|
|
4037
|
+
return this.setWinchResult(undefined);
|
|
4038
|
+
};
|
|
4039
|
+
|
|
4040
|
+
|
|
4041
|
+
/**
|
|
4042
|
+
* Returns whether this field is set.
|
|
4043
|
+
* @return {boolean}
|
|
4044
|
+
*/
|
|
4045
|
+
proto.mavsdk.rpc.winch.LoadLineResponse.prototype.hasWinchResult = function() {
|
|
4046
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4047
|
+
};
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
|
|
4053
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4054
|
+
/**
|
|
4055
|
+
* Creates an object representation of this proto.
|
|
4056
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4057
|
+
* Optional fields that are not set will be set to undefined.
|
|
4058
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4059
|
+
* For the list of reserved names please see:
|
|
4060
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4061
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4062
|
+
* JSPB instance for transitional soy proto support:
|
|
4063
|
+
* http://goto/soy-param-migration
|
|
4064
|
+
* @return {!Object}
|
|
4065
|
+
*/
|
|
4066
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4067
|
+
return proto.mavsdk.rpc.winch.AbandonLineRequest.toObject(opt_includeInstance, this);
|
|
4068
|
+
};
|
|
4069
|
+
|
|
4070
|
+
|
|
4071
|
+
/**
|
|
4072
|
+
* Static version of the {@see toObject} method.
|
|
4073
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4074
|
+
* the JSPB instance for transitional soy proto support:
|
|
4075
|
+
* http://goto/soy-param-migration
|
|
4076
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineRequest} msg The msg instance to transform.
|
|
4077
|
+
* @return {!Object}
|
|
4078
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4079
|
+
*/
|
|
4080
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.toObject = function(includeInstance, msg) {
|
|
4081
|
+
var f, obj = {
|
|
4082
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4083
|
+
};
|
|
4084
|
+
|
|
4085
|
+
if (includeInstance) {
|
|
4086
|
+
obj.$jspbMessageInstance = msg;
|
|
4087
|
+
}
|
|
4088
|
+
return obj;
|
|
4089
|
+
};
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4095
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4096
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineRequest}
|
|
4097
|
+
*/
|
|
4098
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.deserializeBinary = function(bytes) {
|
|
4099
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4100
|
+
var msg = new proto.mavsdk.rpc.winch.AbandonLineRequest;
|
|
4101
|
+
return proto.mavsdk.rpc.winch.AbandonLineRequest.deserializeBinaryFromReader(msg, reader);
|
|
4102
|
+
};
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4107
|
+
* given reader into the given message object.
|
|
4108
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineRequest} msg The message object to deserialize into.
|
|
4109
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4110
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineRequest}
|
|
4111
|
+
*/
|
|
4112
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4113
|
+
while (reader.nextField()) {
|
|
4114
|
+
if (reader.isEndGroup()) {
|
|
4115
|
+
break;
|
|
4116
|
+
}
|
|
4117
|
+
var field = reader.getFieldNumber();
|
|
4118
|
+
switch (field) {
|
|
4119
|
+
case 1:
|
|
4120
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
4121
|
+
msg.setInstance(value);
|
|
4122
|
+
break;
|
|
4123
|
+
default:
|
|
4124
|
+
reader.skipField();
|
|
4125
|
+
break;
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
return msg;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4134
|
+
* @return {!Uint8Array}
|
|
4135
|
+
*/
|
|
4136
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.prototype.serializeBinary = function() {
|
|
4137
|
+
var writer = new jspb.BinaryWriter();
|
|
4138
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.serializeBinaryToWriter(this, writer);
|
|
4139
|
+
return writer.getResultBuffer();
|
|
4140
|
+
};
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4145
|
+
* format), writing to the given BinaryWriter.
|
|
4146
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineRequest} message
|
|
4147
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4148
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4149
|
+
*/
|
|
4150
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4151
|
+
var f = undefined;
|
|
4152
|
+
f = message.getInstance();
|
|
4153
|
+
if (f !== 0) {
|
|
4154
|
+
writer.writeUint32(
|
|
4155
|
+
1,
|
|
4156
|
+
f
|
|
4157
|
+
);
|
|
4158
|
+
}
|
|
4159
|
+
};
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
/**
|
|
4163
|
+
* optional uint32 instance = 1;
|
|
4164
|
+
* @return {number}
|
|
4165
|
+
*/
|
|
4166
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.prototype.getInstance = function() {
|
|
4167
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4168
|
+
};
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* @param {number} value
|
|
4173
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineRequest} returns this
|
|
4174
|
+
*/
|
|
4175
|
+
proto.mavsdk.rpc.winch.AbandonLineRequest.prototype.setInstance = function(value) {
|
|
4176
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4177
|
+
};
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4184
|
+
/**
|
|
4185
|
+
* Creates an object representation of this proto.
|
|
4186
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4187
|
+
* Optional fields that are not set will be set to undefined.
|
|
4188
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4189
|
+
* For the list of reserved names please see:
|
|
4190
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4191
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4192
|
+
* JSPB instance for transitional soy proto support:
|
|
4193
|
+
* http://goto/soy-param-migration
|
|
4194
|
+
* @return {!Object}
|
|
4195
|
+
*/
|
|
4196
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4197
|
+
return proto.mavsdk.rpc.winch.AbandonLineResponse.toObject(opt_includeInstance, this);
|
|
4198
|
+
};
|
|
4199
|
+
|
|
4200
|
+
|
|
4201
|
+
/**
|
|
4202
|
+
* Static version of the {@see toObject} method.
|
|
4203
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4204
|
+
* the JSPB instance for transitional soy proto support:
|
|
4205
|
+
* http://goto/soy-param-migration
|
|
4206
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineResponse} msg The msg instance to transform.
|
|
4207
|
+
* @return {!Object}
|
|
4208
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4209
|
+
*/
|
|
4210
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.toObject = function(includeInstance, msg) {
|
|
4211
|
+
var f, obj = {
|
|
4212
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
4213
|
+
};
|
|
4214
|
+
|
|
4215
|
+
if (includeInstance) {
|
|
4216
|
+
obj.$jspbMessageInstance = msg;
|
|
4217
|
+
}
|
|
4218
|
+
return obj;
|
|
4219
|
+
};
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
|
|
4223
|
+
/**
|
|
4224
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4225
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4226
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineResponse}
|
|
4227
|
+
*/
|
|
4228
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.deserializeBinary = function(bytes) {
|
|
4229
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4230
|
+
var msg = new proto.mavsdk.rpc.winch.AbandonLineResponse;
|
|
4231
|
+
return proto.mavsdk.rpc.winch.AbandonLineResponse.deserializeBinaryFromReader(msg, reader);
|
|
4232
|
+
};
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
/**
|
|
4236
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4237
|
+
* given reader into the given message object.
|
|
4238
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineResponse} msg The message object to deserialize into.
|
|
4239
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4240
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineResponse}
|
|
4241
|
+
*/
|
|
4242
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4243
|
+
while (reader.nextField()) {
|
|
4244
|
+
if (reader.isEndGroup()) {
|
|
4245
|
+
break;
|
|
4246
|
+
}
|
|
4247
|
+
var field = reader.getFieldNumber();
|
|
4248
|
+
switch (field) {
|
|
4249
|
+
case 1:
|
|
4250
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
4251
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
4252
|
+
msg.setWinchResult(value);
|
|
4253
|
+
break;
|
|
4254
|
+
default:
|
|
4255
|
+
reader.skipField();
|
|
4256
|
+
break;
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
return msg;
|
|
4260
|
+
};
|
|
4261
|
+
|
|
4262
|
+
|
|
4263
|
+
/**
|
|
4264
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4265
|
+
* @return {!Uint8Array}
|
|
4266
|
+
*/
|
|
4267
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.serializeBinary = function() {
|
|
4268
|
+
var writer = new jspb.BinaryWriter();
|
|
4269
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.serializeBinaryToWriter(this, writer);
|
|
4270
|
+
return writer.getResultBuffer();
|
|
4271
|
+
};
|
|
4272
|
+
|
|
4273
|
+
|
|
4274
|
+
/**
|
|
4275
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4276
|
+
* format), writing to the given BinaryWriter.
|
|
4277
|
+
* @param {!proto.mavsdk.rpc.winch.AbandonLineResponse} message
|
|
4278
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4279
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4280
|
+
*/
|
|
4281
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4282
|
+
var f = undefined;
|
|
4283
|
+
f = message.getWinchResult();
|
|
4284
|
+
if (f != null) {
|
|
4285
|
+
writer.writeMessage(
|
|
4286
|
+
1,
|
|
4287
|
+
f,
|
|
4288
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
4289
|
+
);
|
|
4290
|
+
}
|
|
4291
|
+
};
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
/**
|
|
4295
|
+
* optional WinchResult winch_result = 1;
|
|
4296
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
4297
|
+
*/
|
|
4298
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.getWinchResult = function() {
|
|
4299
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
4300
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
4301
|
+
};
|
|
4302
|
+
|
|
4303
|
+
|
|
4304
|
+
/**
|
|
4305
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
4306
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineResponse} returns this
|
|
4307
|
+
*/
|
|
4308
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.setWinchResult = function(value) {
|
|
4309
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4310
|
+
};
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
/**
|
|
4314
|
+
* Clears the message field making it undefined.
|
|
4315
|
+
* @return {!proto.mavsdk.rpc.winch.AbandonLineResponse} returns this
|
|
4316
|
+
*/
|
|
4317
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.clearWinchResult = function() {
|
|
4318
|
+
return this.setWinchResult(undefined);
|
|
4319
|
+
};
|
|
4320
|
+
|
|
4321
|
+
|
|
4322
|
+
/**
|
|
4323
|
+
* Returns whether this field is set.
|
|
4324
|
+
* @return {boolean}
|
|
4325
|
+
*/
|
|
4326
|
+
proto.mavsdk.rpc.winch.AbandonLineResponse.prototype.hasWinchResult = function() {
|
|
4327
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
|
|
4331
|
+
|
|
4332
|
+
|
|
4333
|
+
|
|
4334
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4335
|
+
/**
|
|
4336
|
+
* Creates an object representation of this proto.
|
|
4337
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4338
|
+
* Optional fields that are not set will be set to undefined.
|
|
4339
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4340
|
+
* For the list of reserved names please see:
|
|
4341
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4342
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4343
|
+
* JSPB instance for transitional soy proto support:
|
|
4344
|
+
* http://goto/soy-param-migration
|
|
4345
|
+
* @return {!Object}
|
|
4346
|
+
*/
|
|
4347
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4348
|
+
return proto.mavsdk.rpc.winch.LoadPayloadRequest.toObject(opt_includeInstance, this);
|
|
4349
|
+
};
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* Static version of the {@see toObject} method.
|
|
4354
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4355
|
+
* the JSPB instance for transitional soy proto support:
|
|
4356
|
+
* http://goto/soy-param-migration
|
|
4357
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadRequest} msg The msg instance to transform.
|
|
4358
|
+
* @return {!Object}
|
|
4359
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4360
|
+
*/
|
|
4361
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.toObject = function(includeInstance, msg) {
|
|
4362
|
+
var f, obj = {
|
|
4363
|
+
instance: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4364
|
+
};
|
|
4365
|
+
|
|
4366
|
+
if (includeInstance) {
|
|
4367
|
+
obj.$jspbMessageInstance = msg;
|
|
4368
|
+
}
|
|
4369
|
+
return obj;
|
|
4370
|
+
};
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4376
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4377
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadRequest}
|
|
4378
|
+
*/
|
|
4379
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.deserializeBinary = function(bytes) {
|
|
4380
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4381
|
+
var msg = new proto.mavsdk.rpc.winch.LoadPayloadRequest;
|
|
4382
|
+
return proto.mavsdk.rpc.winch.LoadPayloadRequest.deserializeBinaryFromReader(msg, reader);
|
|
4383
|
+
};
|
|
4384
|
+
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4388
|
+
* given reader into the given message object.
|
|
4389
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadRequest} msg The message object to deserialize into.
|
|
4390
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4391
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadRequest}
|
|
4392
|
+
*/
|
|
4393
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4394
|
+
while (reader.nextField()) {
|
|
4395
|
+
if (reader.isEndGroup()) {
|
|
4396
|
+
break;
|
|
4397
|
+
}
|
|
4398
|
+
var field = reader.getFieldNumber();
|
|
4399
|
+
switch (field) {
|
|
4400
|
+
case 1:
|
|
4401
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
4402
|
+
msg.setInstance(value);
|
|
4403
|
+
break;
|
|
4404
|
+
default:
|
|
4405
|
+
reader.skipField();
|
|
4406
|
+
break;
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
return msg;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
|
|
4413
|
+
/**
|
|
4414
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4415
|
+
* @return {!Uint8Array}
|
|
4416
|
+
*/
|
|
4417
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.prototype.serializeBinary = function() {
|
|
4418
|
+
var writer = new jspb.BinaryWriter();
|
|
4419
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.serializeBinaryToWriter(this, writer);
|
|
4420
|
+
return writer.getResultBuffer();
|
|
4421
|
+
};
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4426
|
+
* format), writing to the given BinaryWriter.
|
|
4427
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadRequest} message
|
|
4428
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4429
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4430
|
+
*/
|
|
4431
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4432
|
+
var f = undefined;
|
|
4433
|
+
f = message.getInstance();
|
|
4434
|
+
if (f !== 0) {
|
|
4435
|
+
writer.writeUint32(
|
|
4436
|
+
1,
|
|
4437
|
+
f
|
|
4438
|
+
);
|
|
4439
|
+
}
|
|
4440
|
+
};
|
|
4441
|
+
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* optional uint32 instance = 1;
|
|
4445
|
+
* @return {number}
|
|
4446
|
+
*/
|
|
4447
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.prototype.getInstance = function() {
|
|
4448
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4449
|
+
};
|
|
4450
|
+
|
|
4451
|
+
|
|
4452
|
+
/**
|
|
4453
|
+
* @param {number} value
|
|
4454
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadRequest} returns this
|
|
4455
|
+
*/
|
|
4456
|
+
proto.mavsdk.rpc.winch.LoadPayloadRequest.prototype.setInstance = function(value) {
|
|
4457
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
|
|
4461
|
+
|
|
4462
|
+
|
|
4463
|
+
|
|
4464
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4465
|
+
/**
|
|
4466
|
+
* Creates an object representation of this proto.
|
|
4467
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4468
|
+
* Optional fields that are not set will be set to undefined.
|
|
4469
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4470
|
+
* For the list of reserved names please see:
|
|
4471
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4472
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4473
|
+
* JSPB instance for transitional soy proto support:
|
|
4474
|
+
* http://goto/soy-param-migration
|
|
4475
|
+
* @return {!Object}
|
|
4476
|
+
*/
|
|
4477
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4478
|
+
return proto.mavsdk.rpc.winch.LoadPayloadResponse.toObject(opt_includeInstance, this);
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
|
|
4482
|
+
/**
|
|
4483
|
+
* Static version of the {@see toObject} method.
|
|
4484
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4485
|
+
* the JSPB instance for transitional soy proto support:
|
|
4486
|
+
* http://goto/soy-param-migration
|
|
4487
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadResponse} msg The msg instance to transform.
|
|
4488
|
+
* @return {!Object}
|
|
4489
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4490
|
+
*/
|
|
4491
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.toObject = function(includeInstance, msg) {
|
|
4492
|
+
var f, obj = {
|
|
4493
|
+
winchResult: (f = msg.getWinchResult()) && proto.mavsdk.rpc.winch.WinchResult.toObject(includeInstance, f)
|
|
4494
|
+
};
|
|
4495
|
+
|
|
4496
|
+
if (includeInstance) {
|
|
4497
|
+
obj.$jspbMessageInstance = msg;
|
|
4498
|
+
}
|
|
4499
|
+
return obj;
|
|
4500
|
+
};
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
|
|
4504
|
+
/**
|
|
4505
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4506
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4507
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadResponse}
|
|
4508
|
+
*/
|
|
4509
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.deserializeBinary = function(bytes) {
|
|
4510
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4511
|
+
var msg = new proto.mavsdk.rpc.winch.LoadPayloadResponse;
|
|
4512
|
+
return proto.mavsdk.rpc.winch.LoadPayloadResponse.deserializeBinaryFromReader(msg, reader);
|
|
4513
|
+
};
|
|
4514
|
+
|
|
4515
|
+
|
|
4516
|
+
/**
|
|
4517
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4518
|
+
* given reader into the given message object.
|
|
4519
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadResponse} msg The message object to deserialize into.
|
|
4520
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4521
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadResponse}
|
|
4522
|
+
*/
|
|
4523
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4524
|
+
while (reader.nextField()) {
|
|
4525
|
+
if (reader.isEndGroup()) {
|
|
4526
|
+
break;
|
|
4527
|
+
}
|
|
4528
|
+
var field = reader.getFieldNumber();
|
|
4529
|
+
switch (field) {
|
|
4530
|
+
case 1:
|
|
4531
|
+
var value = new proto.mavsdk.rpc.winch.WinchResult;
|
|
4532
|
+
reader.readMessage(value,proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader);
|
|
4533
|
+
msg.setWinchResult(value);
|
|
4534
|
+
break;
|
|
4535
|
+
default:
|
|
4536
|
+
reader.skipField();
|
|
4537
|
+
break;
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
return msg;
|
|
4541
|
+
};
|
|
4542
|
+
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4546
|
+
* @return {!Uint8Array}
|
|
4547
|
+
*/
|
|
4548
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.serializeBinary = function() {
|
|
4549
|
+
var writer = new jspb.BinaryWriter();
|
|
4550
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.serializeBinaryToWriter(this, writer);
|
|
4551
|
+
return writer.getResultBuffer();
|
|
4552
|
+
};
|
|
4553
|
+
|
|
4554
|
+
|
|
4555
|
+
/**
|
|
4556
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4557
|
+
* format), writing to the given BinaryWriter.
|
|
4558
|
+
* @param {!proto.mavsdk.rpc.winch.LoadPayloadResponse} message
|
|
4559
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4560
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4561
|
+
*/
|
|
4562
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4563
|
+
var f = undefined;
|
|
4564
|
+
f = message.getWinchResult();
|
|
4565
|
+
if (f != null) {
|
|
4566
|
+
writer.writeMessage(
|
|
4567
|
+
1,
|
|
4568
|
+
f,
|
|
4569
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter
|
|
4570
|
+
);
|
|
4571
|
+
}
|
|
4572
|
+
};
|
|
4573
|
+
|
|
4574
|
+
|
|
4575
|
+
/**
|
|
4576
|
+
* optional WinchResult winch_result = 1;
|
|
4577
|
+
* @return {?proto.mavsdk.rpc.winch.WinchResult}
|
|
4578
|
+
*/
|
|
4579
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.getWinchResult = function() {
|
|
4580
|
+
return /** @type{?proto.mavsdk.rpc.winch.WinchResult} */ (
|
|
4581
|
+
jspb.Message.getWrapperField(this, proto.mavsdk.rpc.winch.WinchResult, 1));
|
|
4582
|
+
};
|
|
4583
|
+
|
|
4584
|
+
|
|
4585
|
+
/**
|
|
4586
|
+
* @param {?proto.mavsdk.rpc.winch.WinchResult|undefined} value
|
|
4587
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadResponse} returns this
|
|
4588
|
+
*/
|
|
4589
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.setWinchResult = function(value) {
|
|
4590
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4591
|
+
};
|
|
4592
|
+
|
|
4593
|
+
|
|
4594
|
+
/**
|
|
4595
|
+
* Clears the message field making it undefined.
|
|
4596
|
+
* @return {!proto.mavsdk.rpc.winch.LoadPayloadResponse} returns this
|
|
4597
|
+
*/
|
|
4598
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.clearWinchResult = function() {
|
|
4599
|
+
return this.setWinchResult(undefined);
|
|
4600
|
+
};
|
|
4601
|
+
|
|
4602
|
+
|
|
4603
|
+
/**
|
|
4604
|
+
* Returns whether this field is set.
|
|
4605
|
+
* @return {boolean}
|
|
4606
|
+
*/
|
|
4607
|
+
proto.mavsdk.rpc.winch.LoadPayloadResponse.prototype.hasWinchResult = function() {
|
|
4608
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4611
|
+
|
|
4612
|
+
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4616
|
+
/**
|
|
4617
|
+
* Creates an object representation of this proto.
|
|
4618
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4619
|
+
* Optional fields that are not set will be set to undefined.
|
|
4620
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4621
|
+
* For the list of reserved names please see:
|
|
4622
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4623
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4624
|
+
* JSPB instance for transitional soy proto support:
|
|
4625
|
+
* http://goto/soy-param-migration
|
|
4626
|
+
* @return {!Object}
|
|
4627
|
+
*/
|
|
4628
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.toObject = function(opt_includeInstance) {
|
|
4629
|
+
return proto.mavsdk.rpc.winch.WinchResult.toObject(opt_includeInstance, this);
|
|
4630
|
+
};
|
|
4631
|
+
|
|
4632
|
+
|
|
4633
|
+
/**
|
|
4634
|
+
* Static version of the {@see toObject} method.
|
|
4635
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4636
|
+
* the JSPB instance for transitional soy proto support:
|
|
4637
|
+
* http://goto/soy-param-migration
|
|
4638
|
+
* @param {!proto.mavsdk.rpc.winch.WinchResult} msg The msg instance to transform.
|
|
4639
|
+
* @return {!Object}
|
|
4640
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4641
|
+
*/
|
|
4642
|
+
proto.mavsdk.rpc.winch.WinchResult.toObject = function(includeInstance, msg) {
|
|
4643
|
+
var f, obj = {
|
|
4644
|
+
result: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4645
|
+
resultStr: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4646
|
+
};
|
|
4647
|
+
|
|
4648
|
+
if (includeInstance) {
|
|
4649
|
+
obj.$jspbMessageInstance = msg;
|
|
4650
|
+
}
|
|
4651
|
+
return obj;
|
|
4652
|
+
};
|
|
4653
|
+
}
|
|
4654
|
+
|
|
4655
|
+
|
|
4656
|
+
/**
|
|
4657
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4658
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4659
|
+
* @return {!proto.mavsdk.rpc.winch.WinchResult}
|
|
4660
|
+
*/
|
|
4661
|
+
proto.mavsdk.rpc.winch.WinchResult.deserializeBinary = function(bytes) {
|
|
4662
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4663
|
+
var msg = new proto.mavsdk.rpc.winch.WinchResult;
|
|
4664
|
+
return proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader(msg, reader);
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
/**
|
|
4669
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4670
|
+
* given reader into the given message object.
|
|
4671
|
+
* @param {!proto.mavsdk.rpc.winch.WinchResult} msg The message object to deserialize into.
|
|
4672
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4673
|
+
* @return {!proto.mavsdk.rpc.winch.WinchResult}
|
|
4674
|
+
*/
|
|
4675
|
+
proto.mavsdk.rpc.winch.WinchResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
4676
|
+
while (reader.nextField()) {
|
|
4677
|
+
if (reader.isEndGroup()) {
|
|
4678
|
+
break;
|
|
4679
|
+
}
|
|
4680
|
+
var field = reader.getFieldNumber();
|
|
4681
|
+
switch (field) {
|
|
4682
|
+
case 1:
|
|
4683
|
+
var value = /** @type {!proto.mavsdk.rpc.winch.WinchResult.Result} */ (reader.readEnum());
|
|
4684
|
+
msg.setResult(value);
|
|
4685
|
+
break;
|
|
4686
|
+
case 2:
|
|
4687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4688
|
+
msg.setResultStr(value);
|
|
4689
|
+
break;
|
|
4690
|
+
default:
|
|
4691
|
+
reader.skipField();
|
|
4692
|
+
break;
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4695
|
+
return msg;
|
|
4696
|
+
};
|
|
4697
|
+
|
|
4698
|
+
|
|
4699
|
+
/**
|
|
4700
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4701
|
+
* @return {!Uint8Array}
|
|
4702
|
+
*/
|
|
4703
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.serializeBinary = function() {
|
|
4704
|
+
var writer = new jspb.BinaryWriter();
|
|
4705
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter(this, writer);
|
|
4706
|
+
return writer.getResultBuffer();
|
|
4707
|
+
};
|
|
4708
|
+
|
|
4709
|
+
|
|
4710
|
+
/**
|
|
4711
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4712
|
+
* format), writing to the given BinaryWriter.
|
|
4713
|
+
* @param {!proto.mavsdk.rpc.winch.WinchResult} message
|
|
4714
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4715
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4716
|
+
*/
|
|
4717
|
+
proto.mavsdk.rpc.winch.WinchResult.serializeBinaryToWriter = function(message, writer) {
|
|
4718
|
+
var f = undefined;
|
|
4719
|
+
f = message.getResult();
|
|
4720
|
+
if (f !== 0.0) {
|
|
4721
|
+
writer.writeEnum(
|
|
4722
|
+
1,
|
|
4723
|
+
f
|
|
4724
|
+
);
|
|
4725
|
+
}
|
|
4726
|
+
f = message.getResultStr();
|
|
4727
|
+
if (f.length > 0) {
|
|
4728
|
+
writer.writeString(
|
|
4729
|
+
2,
|
|
4730
|
+
f
|
|
4731
|
+
);
|
|
4732
|
+
}
|
|
4733
|
+
};
|
|
4734
|
+
|
|
4735
|
+
|
|
4736
|
+
/**
|
|
4737
|
+
* @enum {number}
|
|
4738
|
+
*/
|
|
4739
|
+
proto.mavsdk.rpc.winch.WinchResult.Result = {
|
|
4740
|
+
RESULT_UNKNOWN: 0,
|
|
4741
|
+
RESULT_SUCCESS: 1,
|
|
4742
|
+
RESULT_NO_SYSTEM: 2,
|
|
4743
|
+
RESULT_BUSY: 3,
|
|
4744
|
+
RESULT_TIMEOUT: 4,
|
|
4745
|
+
RESULT_UNSUPPORTED: 5,
|
|
4746
|
+
RESULT_FAILED: 6
|
|
4747
|
+
};
|
|
4748
|
+
|
|
4749
|
+
/**
|
|
4750
|
+
* optional Result result = 1;
|
|
4751
|
+
* @return {!proto.mavsdk.rpc.winch.WinchResult.Result}
|
|
4752
|
+
*/
|
|
4753
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.getResult = function() {
|
|
4754
|
+
return /** @type {!proto.mavsdk.rpc.winch.WinchResult.Result} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
4755
|
+
};
|
|
4756
|
+
|
|
4757
|
+
|
|
4758
|
+
/**
|
|
4759
|
+
* @param {!proto.mavsdk.rpc.winch.WinchResult.Result} value
|
|
4760
|
+
* @return {!proto.mavsdk.rpc.winch.WinchResult} returns this
|
|
4761
|
+
*/
|
|
4762
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.setResult = function(value) {
|
|
4763
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
4764
|
+
};
|
|
4765
|
+
|
|
4766
|
+
|
|
4767
|
+
/**
|
|
4768
|
+
* optional string result_str = 2;
|
|
4769
|
+
* @return {string}
|
|
4770
|
+
*/
|
|
4771
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.getResultStr = function() {
|
|
4772
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4773
|
+
};
|
|
4774
|
+
|
|
4775
|
+
|
|
4776
|
+
/**
|
|
4777
|
+
* @param {string} value
|
|
4778
|
+
* @return {!proto.mavsdk.rpc.winch.WinchResult} returns this
|
|
4779
|
+
*/
|
|
4780
|
+
proto.mavsdk.rpc.winch.WinchResult.prototype.setResultStr = function(value) {
|
|
4781
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4782
|
+
};
|
|
4783
|
+
|
|
4784
|
+
|
|
4785
|
+
/**
|
|
4786
|
+
* @enum {number}
|
|
4787
|
+
*/
|
|
4788
|
+
proto.mavsdk.rpc.winch.WinchAction = {
|
|
4789
|
+
WINCH_ACTION_RELAXED: 0,
|
|
4790
|
+
WINCH_ACTION_RELATIVE_LENGTH_CONTROL: 1,
|
|
4791
|
+
WINCH_ACTION_RATE_CONTROL: 2,
|
|
4792
|
+
WINCH_ACTION_LOCK: 3,
|
|
4793
|
+
WINCH_ACTION_DELIVER: 4,
|
|
4794
|
+
WINCH_ACTION_HOLD: 5,
|
|
4795
|
+
WINCH_ACTION_RETRACT: 6,
|
|
4796
|
+
WINCH_ACTION_LOAD_LINE: 7,
|
|
4797
|
+
WINCH_ACTION_ABANDON_LINE: 8,
|
|
4798
|
+
WINCH_ACTION_LOAD_PAYLOAD: 9
|
|
4799
|
+
};
|
|
4800
|
+
|
|
4801
|
+
goog.object.extend(exports, proto.mavsdk.rpc.winch);
|