4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #include <google/protobuf/port_def.inc>
41 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
42 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
50 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
58 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
63 class ControlSurfaces;
64 class ControlSurfacesDefaultTypeInternal;
68 PROTOBUF_NAMESPACE_OPEN
69 template<> ::jaiabot::protobuf::ControlSurfaces* Arena::CreateMaybeMessage<::jaiabot::protobuf::ControlSurfaces>(Arena*);
70 PROTOBUF_NAMESPACE_CLOSE
76 class ControlSurfaces PROTOBUF_FINAL :
77 public ::PROTOBUF_NAMESPACE_ID::Message {
85 *
this = ::std::move(from);
93 if (GetArena() == from.GetArena()) {
94 if (
this != &from) InternalSwap(&from);
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
109 return GetDescriptor();
112 return GetMetadataStatic().descriptor;
115 return GetMetadataStatic().reflection;
124 static constexpr
int kIndexInFileMessages =
131 if (other ==
this)
return;
132 if (GetArena() == other->GetArena()) {
135 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
139 if (other ==
this)
return;
140 GOOGLE_DCHECK(GetArena() == other->GetArena());
147 return CreateMaybeMessage<ControlSurfaces>(
nullptr);
151 return CreateMaybeMessage<ControlSurfaces>(arena);
153 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
154 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
158 bool IsInitialized() const final;
160 size_t ByteSizeLong() const final;
161 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(ControlSurfaces* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "jaiabot.protobuf.ControlSurfaces";
178 static void ArenaDtor(
void*
object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196 kMotorFieldNumber = 1,
197 kPortElevatorFieldNumber = 2,
198 kStbdElevatorFieldNumber = 3,
199 kRudderFieldNumber = 4,
200 kTimeoutFieldNumber = 5,
201 kLedSwitchOnFieldNumber = 6,
206 bool _internal_has_motor()
const;
209 ::PROTOBUF_NAMESPACE_ID::int32
motor()
const;
212 ::PROTOBUF_NAMESPACE_ID::int32 _internal_motor()
const;
213 void _internal_set_motor(::PROTOBUF_NAMESPACE_ID::int32 value);
219 bool _internal_has_port_elevator()
const;
225 ::PROTOBUF_NAMESPACE_ID::int32 _internal_port_elevator()
const;
226 void _internal_set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
232 bool _internal_has_stbd_elevator()
const;
238 ::PROTOBUF_NAMESPACE_ID::int32 _internal_stbd_elevator()
const;
239 void _internal_set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
245 bool _internal_has_rudder()
const;
248 ::PROTOBUF_NAMESPACE_ID::int32
rudder()
const;
251 ::PROTOBUF_NAMESPACE_ID::int32 _internal_rudder()
const;
252 void _internal_set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value);
258 bool _internal_has_timeout()
const;
261 ::PROTOBUF_NAMESPACE_ID::int32
timeout()
const;
264 ::PROTOBUF_NAMESPACE_ID::int32 _internal_timeout()
const;
265 void _internal_set_timeout(::PROTOBUF_NAMESPACE_ID::int32 value);
271 bool _internal_has_led_switch_on()
const;
277 bool _internal_led_switch_on()
const;
278 void _internal_set_led_switch_on(
bool value);
286 size_t RequiredFieldsByteSizeFallback()
const;
288 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
289 typedef void InternalArenaConstructable_;
290 typedef void DestructorSkippable_;
291 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 ::PROTOBUF_NAMESPACE_ID::int32 motor_;
294 ::PROTOBUF_NAMESPACE_ID::int32 port_elevator_;
295 ::PROTOBUF_NAMESPACE_ID::int32 stbd_elevator_;
296 ::PROTOBUF_NAMESPACE_ID::int32 rudder_;
297 ::PROTOBUF_NAMESPACE_ID::int32 timeout_;
299 friend struct ::TableStruct_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto;
307 #pragma GCC diagnostic push
308 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
313 inline bool ControlSurfaces::_internal_has_motor()
const {
314 bool value = (_has_bits_[0] & 0x00000001u) != 0;
317 inline bool ControlSurfaces::has_motor()
const {
318 return _internal_has_motor();
320 inline void ControlSurfaces::clear_motor() {
322 _has_bits_[0] &= ~0x00000001u;
324 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::_internal_motor()
const {
327 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::motor()
const {
329 return _internal_motor();
331 inline void ControlSurfaces::_internal_set_motor(::PROTOBUF_NAMESPACE_ID::int32 value) {
332 _has_bits_[0] |= 0x00000001u;
335 inline void ControlSurfaces::set_motor(::PROTOBUF_NAMESPACE_ID::int32 value) {
336 _internal_set_motor(value);
341 inline bool ControlSurfaces::_internal_has_port_elevator()
const {
342 bool value = (_has_bits_[0] & 0x00000002u) != 0;
345 inline bool ControlSurfaces::has_port_elevator()
const {
346 return _internal_has_port_elevator();
348 inline void ControlSurfaces::clear_port_elevator() {
350 _has_bits_[0] &= ~0x00000002u;
352 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::_internal_port_elevator()
const {
353 return port_elevator_;
355 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::port_elevator()
const {
357 return _internal_port_elevator();
359 inline void ControlSurfaces::_internal_set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
360 _has_bits_[0] |= 0x00000002u;
361 port_elevator_ = value;
363 inline void ControlSurfaces::set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
364 _internal_set_port_elevator(value);
369 inline bool ControlSurfaces::_internal_has_stbd_elevator()
const {
370 bool value = (_has_bits_[0] & 0x00000004u) != 0;
373 inline bool ControlSurfaces::has_stbd_elevator()
const {
374 return _internal_has_stbd_elevator();
376 inline void ControlSurfaces::clear_stbd_elevator() {
378 _has_bits_[0] &= ~0x00000004u;
380 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::_internal_stbd_elevator()
const {
381 return stbd_elevator_;
383 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::stbd_elevator()
const {
385 return _internal_stbd_elevator();
387 inline void ControlSurfaces::_internal_set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
388 _has_bits_[0] |= 0x00000004u;
389 stbd_elevator_ = value;
391 inline void ControlSurfaces::set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
392 _internal_set_stbd_elevator(value);
397 inline bool ControlSurfaces::_internal_has_rudder()
const {
398 bool value = (_has_bits_[0] & 0x00000008u) != 0;
401 inline bool ControlSurfaces::has_rudder()
const {
402 return _internal_has_rudder();
404 inline void ControlSurfaces::clear_rudder() {
406 _has_bits_[0] &= ~0x00000008u;
408 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::_internal_rudder()
const {
411 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::rudder()
const {
413 return _internal_rudder();
415 inline void ControlSurfaces::_internal_set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value) {
416 _has_bits_[0] |= 0x00000008u;
419 inline void ControlSurfaces::set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value) {
420 _internal_set_rudder(value);
425 inline bool ControlSurfaces::_internal_has_timeout()
const {
426 bool value = (_has_bits_[0] & 0x00000010u) != 0;
429 inline bool ControlSurfaces::has_timeout()
const {
430 return _internal_has_timeout();
432 inline void ControlSurfaces::clear_timeout() {
434 _has_bits_[0] &= ~0x00000010u;
436 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::_internal_timeout()
const {
439 inline ::PROTOBUF_NAMESPACE_ID::int32 ControlSurfaces::timeout()
const {
441 return _internal_timeout();
443 inline void ControlSurfaces::_internal_set_timeout(::PROTOBUF_NAMESPACE_ID::int32 value) {
444 _has_bits_[0] |= 0x00000010u;
447 inline void ControlSurfaces::set_timeout(::PROTOBUF_NAMESPACE_ID::int32 value) {
448 _internal_set_timeout(value);
453 inline bool ControlSurfaces::_internal_has_led_switch_on()
const {
454 bool value = (_has_bits_[0] & 0x00000020u) != 0;
457 inline bool ControlSurfaces::has_led_switch_on()
const {
458 return _internal_has_led_switch_on();
460 inline void ControlSurfaces::clear_led_switch_on() {
461 led_switch_on_ =
false;
462 _has_bits_[0] &= ~0x00000020u;
464 inline bool ControlSurfaces::_internal_led_switch_on()
const {
465 return led_switch_on_;
467 inline bool ControlSurfaces::led_switch_on()
const {
469 return _internal_led_switch_on();
471 inline void ControlSurfaces::_internal_set_led_switch_on(
bool value) {
472 _has_bits_[0] |= 0x00000020u;
473 led_switch_on_ = value;
475 inline void ControlSurfaces::set_led_switch_on(
bool value) {
476 _internal_set_led_switch_on(value);
481 #pragma GCC diagnostic pop
491 #include <google/protobuf/port_undef.inc>
void set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value)
bool led_switch_on() const
void Swap(ControlSurfaces *other)
void set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
ControlSurfaces & operator=(ControlSurfaces &&from) noexcept
bool has_stbd_elevator() const
virtual ~ControlSurfaces()
void set_timeout(::PROTOBUF_NAMESPACE_ID::int32 value)
ControlSurfaces(const ControlSurfaces &from)
friend void swap(ControlSurfaces &a, ControlSurfaces &b)
ControlSurfaces(ControlSurfaces &&from) noexcept
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::int32 port_elevator() const
LoRaMessage_ControlSurfaces ControlSurfaces
void set_led_switch_on(bool value)
bool has_port_elevator() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const ControlSurfaces &from)
ControlSurfaces * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_motor(::PROTOBUF_NAMESPACE_ID::int32 value)
::PROTOBUF_NAMESPACE_ID::int32 rudder() const
ControlSurfaces & operator=(const ControlSurfaces &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void clear_port_elevator()
void set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value)
bool has_led_switch_on() const
::PROTOBUF_NAMESPACE_ID::int32 timeout() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
ControlSurfaces * New() const final
static const ControlSurfaces * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void UnsafeArenaSwap(ControlSurfaces *other)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static void InitAsDefaultInstance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void clear_led_switch_on()
void clear_stbd_elevator()
static const ControlSurfaces & default_instance()
void CopyFrom(const ControlSurfaces &from)
::PROTOBUF_NAMESPACE_ID::int32 motor() const
::PROTOBUF_NAMESPACE_ID::int32 stbd_elevator() const
ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
ControlSurfacesDefaultTypeInternal _ControlSurfaces_default_instance_
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)