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 < 3021000
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 3021012 < 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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
40PROTOBUF_NAMESPACE_OPEN
44PROTOBUF_NAMESPACE_CLOSE
54struct ControlSurfacesDefaultTypeInternal;
58PROTOBUF_NAMESPACE_OPEN
60PROTOBUF_NAMESPACE_CLOSE
67 public ::PROTOBUF_NAMESPACE_ID::Message {
71 explicit PROTOBUF_CONSTEXPR
ControlSurfaces(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
76 *
this = ::std::move(from);
84 if (
this == &from)
return *
this;
85 if (GetOwningArena() == from.GetOwningArena()
86 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
87 && GetOwningArena() !=
nullptr
97 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet&
unknown_fields()
const {
98 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
101 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
104 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
127 if (other ==
this)
return;
128 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
129 if (GetOwningArena() !=
nullptr &&
130 GetOwningArena() == other->GetOwningArena()) {
132 if (GetOwningArena() == other->GetOwningArena()) {
136 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
140 if (other ==
this)
return;
141 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
148 return CreateMaybeMessage<ControlSurfaces>(arena);
150 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
152 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
154 ControlSurfaces::MergeImpl(*
this, from);
157 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
165 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
171 void SetCachedSize(
int size)
const final;
175 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
176 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
177 return "jaiabot.protobuf.ControlSurfaces";
181 bool is_message_owned =
false);
185 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
204 bool _internal_has_motor()
const;
207 int32_t
motor()
const;
210 int32_t _internal_motor()
const;
211 void _internal_set_motor(int32_t value);
217 bool _internal_has_port_elevator()
const;
223 int32_t _internal_port_elevator()
const;
224 void _internal_set_port_elevator(int32_t value);
230 bool _internal_has_stbd_elevator()
const;
236 int32_t _internal_stbd_elevator()
const;
237 void _internal_set_stbd_elevator(int32_t value);
243 bool _internal_has_rudder()
const;
249 int32_t _internal_rudder()
const;
250 void _internal_set_rudder(int32_t value);
256 bool _internal_has_timeout()
const;
262 int32_t _internal_timeout()
const;
263 void _internal_set_timeout(int32_t value);
269 bool _internal_has_led_switch_on()
const;
275 bool _internal_led_switch_on()
const;
276 void _internal_set_led_switch_on(
bool value);
284 size_t RequiredFieldsByteSizeFallback()
const;
286 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
287 typedef void InternalArenaConstructable_;
288 typedef void DestructorSkippable_;
290 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
291 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 int32_t port_elevator_;
294 int32_t stbd_elevator_;
300 friend struct ::TableStruct_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto;
308 #pragma GCC diagnostic push
309 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
314inline bool ControlSurfaces::_internal_has_motor()
const {
315 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
319 return _internal_has_motor();
323 _impl_._has_bits_[0] &= ~0x00000001u;
325inline int32_t ControlSurfaces::_internal_motor()
const {
330 return _internal_motor();
332inline void ControlSurfaces::_internal_set_motor(int32_t value) {
333 _impl_._has_bits_[0] |= 0x00000001u;
337 _internal_set_motor(value);
342inline bool ControlSurfaces::_internal_has_port_elevator()
const {
343 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
347 return _internal_has_port_elevator();
350 _impl_.port_elevator_ = 0;
351 _impl_._has_bits_[0] &= ~0x00000002u;
353inline int32_t ControlSurfaces::_internal_port_elevator()
const {
354 return _impl_.port_elevator_;
358 return _internal_port_elevator();
360inline void ControlSurfaces::_internal_set_port_elevator(int32_t value) {
361 _impl_._has_bits_[0] |= 0x00000002u;
362 _impl_.port_elevator_ = value;
365 _internal_set_port_elevator(value);
370inline bool ControlSurfaces::_internal_has_stbd_elevator()
const {
371 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
375 return _internal_has_stbd_elevator();
378 _impl_.stbd_elevator_ = 0;
379 _impl_._has_bits_[0] &= ~0x00000004u;
381inline int32_t ControlSurfaces::_internal_stbd_elevator()
const {
382 return _impl_.stbd_elevator_;
386 return _internal_stbd_elevator();
388inline void ControlSurfaces::_internal_set_stbd_elevator(int32_t value) {
389 _impl_._has_bits_[0] |= 0x00000004u;
390 _impl_.stbd_elevator_ = value;
393 _internal_set_stbd_elevator(value);
398inline bool ControlSurfaces::_internal_has_rudder()
const {
399 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
403 return _internal_has_rudder();
407 _impl_._has_bits_[0] &= ~0x00000008u;
409inline int32_t ControlSurfaces::_internal_rudder()
const {
414 return _internal_rudder();
416inline void ControlSurfaces::_internal_set_rudder(int32_t value) {
417 _impl_._has_bits_[0] |= 0x00000008u;
421 _internal_set_rudder(value);
426inline bool ControlSurfaces::_internal_has_timeout()
const {
427 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
431 return _internal_has_timeout();
435 _impl_._has_bits_[0] &= ~0x00000010u;
437inline int32_t ControlSurfaces::_internal_timeout()
const {
442 return _internal_timeout();
444inline void ControlSurfaces::_internal_set_timeout(int32_t value) {
445 _impl_._has_bits_[0] |= 0x00000010u;
449 _internal_set_timeout(value);
454inline bool ControlSurfaces::_internal_has_led_switch_on()
const {
455 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
459 return _internal_has_led_switch_on();
462 _impl_.led_switch_on_ =
false;
463 _impl_._has_bits_[0] &= ~0x00000020u;
465inline bool ControlSurfaces::_internal_led_switch_on()
const {
466 return _impl_.led_switch_on_;
470 return _internal_led_switch_on();
472inline void ControlSurfaces::_internal_set_led_switch_on(
bool value) {
473 _impl_._has_bits_[0] |= 0x00000020u;
474 _impl_.led_switch_on_ = value;
477 _internal_set_led_switch_on(value);
482 #pragma GCC diagnostic pop
492#include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
~ControlSurfaces() override
static const ClassData _class_data_
void set_port_elevator(int32_t value)
void clear_stbd_elevator()
ControlSurfaces(ControlSurfaces &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void Swap(ControlSurfaces *other)
void set_rudder(int32_t value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
ControlSurfaces(const ControlSurfaces &from)
int GetCachedSize() const final
friend void swap(ControlSurfaces &a, ControlSurfaces &b)
void clear_led_switch_on()
ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
int32_t port_elevator() const
bool IsInitialized() const final
void CopyFrom(const ControlSurfaces &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const ControlSurfaces &from)
bool has_led_switch_on() const
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_motor(int32_t value)
void set_stbd_elevator(int32_t value)
bool led_switch_on() const
void clear_port_elevator()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
int32_t stbd_elevator() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static constexpr int kIndexInFileMessages
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_led_switch_on(bool value)
ControlSurfaces & operator=(ControlSurfaces &&from) noexcept
PROTOBUF_CONSTEXPR ControlSurfaces(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
ControlSurfaces & operator=(const ControlSurfaces &from)
static const ControlSurfaces * internal_default_instance()
@ kLedSwitchOnFieldNumber
@ kStbdElevatorFieldNumber
@ kPortElevatorFieldNumber
bool has_stbd_elevator() const
ControlSurfaces * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
bool has_port_elevator() const
void set_timeout(int32_t value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ControlSurfaces & default_instance()
void UnsafeArenaSwap(ControlSurfaces *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fcontrol_5fsurfaces_2eproto
ControlSurfacesDefaultTypeInternal _ControlSurfaces_default_instance_
static const uint32_t offsets[]