4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include <boost/units/quantity.hpp>
34 #include <boost/units/absolute.hpp>
35 #include <boost/units/dimensionless_type.hpp>
36 #include <boost/units/make_scaled_unit.hpp>
38 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
43 static const ::google::protobuf::internal::ParseTableField
entries[];
44 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
45 static const ::google::protobuf::internal::ParseTable
schema[1];
48 static const ::google::protobuf::uint32
offsets[];
54 class ControlSurfaces;
55 class ControlSurfacesDefaultTypeInternal;
83 *
this = ::std::move(from);
87 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88 if (
this != &from) InternalSwap(&from);
96 return _internal_metadata_.unknown_fields();
99 return _internal_metadata_.mutable_unknown_fields();
102 static const ::google::protobuf::Descriptor*
descriptor();
121 return CreateMaybeMessage<ControlSurfaces>(NULL);
125 return CreateMaybeMessage<ControlSurfaces>(arena);
127 void CopyFrom(const ::google::protobuf::Message& from)
final;
128 void MergeFrom(const ::google::protobuf::Message& from)
final;
136 ::
google::protobuf::io::CodedInputStream* input) final;
138 ::
google::protobuf::io::CodedOutputStream* output) const final;
140 bool deterministic, ::
google::protobuf::uint8* target) const final;
146 void SetCachedSize(
int size)
const final;
149 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
152 inline void* MaybeArenaPtr()
const {
157 ::google::protobuf::Metadata
GetMetadata() const final;
207 void set_has_motor();
208 void clear_has_motor();
209 void set_has_port_elevator();
210 void clear_has_port_elevator();
211 void set_has_stbd_elevator();
212 void clear_has_stbd_elevator();
213 void set_has_rudder();
214 void clear_has_rudder();
215 void set_has_timeout();
216 void clear_has_timeout();
217 void set_has_led_switch_on();
218 void clear_has_led_switch_on();
221 size_t RequiredFieldsByteSizeFallback() const;
223 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224 ::
google::protobuf::internal::HasBits<1> _has_bits_;
225 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
226 ::
google::protobuf::int32 motor_;
227 ::
google::protobuf::int32 port_elevator_;
228 ::
google::protobuf::int32 stbd_elevator_;
229 ::
google::protobuf::int32 rudder_;
230 ::
google::protobuf::int32 timeout_;
240 #pragma GCC diagnostic push
241 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
247 return (_has_bits_[0] & 0x00000001u) != 0;
249 inline void ControlSurfaces::set_has_motor() {
250 _has_bits_[0] |= 0x00000001u;
252 inline void ControlSurfaces::clear_has_motor() {
253 _has_bits_[0] &= ~0x00000001u;
271 return (_has_bits_[0] & 0x00000002u) != 0;
273 inline void ControlSurfaces::set_has_port_elevator() {
274 _has_bits_[0] |= 0x00000002u;
276 inline void ControlSurfaces::clear_has_port_elevator() {
277 _has_bits_[0] &= ~0x00000002u;
281 clear_has_port_elevator();
285 return port_elevator_;
288 set_has_port_elevator();
289 port_elevator_ = value;
295 return (_has_bits_[0] & 0x00000004u) != 0;
297 inline void ControlSurfaces::set_has_stbd_elevator() {
298 _has_bits_[0] |= 0x00000004u;
300 inline void ControlSurfaces::clear_has_stbd_elevator() {
301 _has_bits_[0] &= ~0x00000004u;
305 clear_has_stbd_elevator();
309 return stbd_elevator_;
312 set_has_stbd_elevator();
313 stbd_elevator_ = value;
319 return (_has_bits_[0] & 0x00000008u) != 0;
321 inline void ControlSurfaces::set_has_rudder() {
322 _has_bits_[0] |= 0x00000008u;
324 inline void ControlSurfaces::clear_has_rudder() {
325 _has_bits_[0] &= ~0x00000008u;
343 return (_has_bits_[0] & 0x00000010u) != 0;
345 inline void ControlSurfaces::set_has_timeout() {
346 _has_bits_[0] |= 0x00000010u;
348 inline void ControlSurfaces::clear_has_timeout() {
349 _has_bits_[0] &= ~0x00000010u;
367 return (_has_bits_[0] & 0x00000020u) != 0;
369 inline void ControlSurfaces::set_has_led_switch_on() {
370 _has_bits_[0] |= 0x00000020u;
372 inline void ControlSurfaces::clear_has_led_switch_on() {
373 _has_bits_[0] &= ~0x00000020u;
376 led_switch_on_ =
false;
377 clear_has_led_switch_on();
381 return led_switch_on_;
384 set_has_led_switch_on();
385 led_switch_on_ = value;
390 #pragma GCC diagnostic pop
400 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto