4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_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/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2ffeather_2eproto
44 PROTOBUF_NAMESPACE_OPEN
48 PROTOBUF_NAMESPACE_CLOSE
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
60 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
66 class LoRaMessageDefaultTypeInternal;
68 class LoRaMessage_ControlSurfaces;
69 class LoRaMessage_ControlSurfacesDefaultTypeInternal;
73 PROTOBUF_NAMESPACE_OPEN
74 template<> ::jaiabot::protobuf::LoRaMessage* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage>(Arena*);
75 template<> ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
98 static_assert(::std::is_same<T, LoRaMessage_MessageType>::value ||
99 ::std::is_integral<T>::value,
100 "Incorrect type passed to function LoRaMessage_MessageType_Name.");
101 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_MessageType>(
124 static_assert(::std::is_same<T, LoRaMessage_ModemConfigChoice>::value ||
125 ::std::is_integral<T>::value,
126 "Incorrect type passed to function LoRaMessage_ModemConfigChoice_Name.");
127 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
132 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_ModemConfigChoice>(
138 public ::PROTOBUF_NAMESPACE_ID::Message {
140 inline LoRaMessage_ControlSurfaces() : LoRaMessage_ControlSurfaces(nullptr) {};
141 virtual ~LoRaMessage_ControlSurfaces();
143 LoRaMessage_ControlSurfaces(
const LoRaMessage_ControlSurfaces& from);
144 LoRaMessage_ControlSurfaces(LoRaMessage_ControlSurfaces&& from) noexcept
145 : LoRaMessage_ControlSurfaces() {
146 *
this = ::std::move(from);
149 inline LoRaMessage_ControlSurfaces& operator=(
const LoRaMessage_ControlSurfaces& from) {
153 inline LoRaMessage_ControlSurfaces& operator=(LoRaMessage_ControlSurfaces&& from) noexcept {
154 if (GetArena() == from.GetArena()) {
155 if (
this != &from) InternalSwap(&from);
162 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
163 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
165 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
166 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
169 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
170 return GetDescriptor();
172 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
173 return GetMetadataStatic().descriptor;
175 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
176 return GetMetadataStatic().reflection;
178 static const LoRaMessage_ControlSurfaces& default_instance();
180 static void InitAsDefaultInstance();
181 static inline const LoRaMessage_ControlSurfaces* internal_default_instance() {
182 return reinterpret_cast<const LoRaMessage_ControlSurfaces*
>(
185 static constexpr
int kIndexInFileMessages =
188 friend void swap(LoRaMessage_ControlSurfaces& a, LoRaMessage_ControlSurfaces& b) {
191 inline void Swap(LoRaMessage_ControlSurfaces* other) {
192 if (other ==
this)
return;
193 if (GetArena() == other->GetArena()) {
196 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
199 void UnsafeArenaSwap(LoRaMessage_ControlSurfaces* other) {
200 if (other ==
this)
return;
201 GOOGLE_DCHECK(GetArena() == other->GetArena());
207 inline LoRaMessage_ControlSurfaces* New() const final {
208 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(
nullptr);
211 LoRaMessage_ControlSurfaces* New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
212 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(arena);
214 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
215 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
216 void CopyFrom(
const LoRaMessage_ControlSurfaces& from);
217 void MergeFrom(
const LoRaMessage_ControlSurfaces& from);
218 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
219 bool IsInitialized() const final;
221 size_t ByteSizeLong() const final;
222 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
223 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
224 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
225 int GetCachedSize() const final {
return _cached_size_.Get(); }
228 inline void SharedCtor();
229 inline void SharedDtor();
230 void SetCachedSize(
int size)
const final;
231 void InternalSwap(LoRaMessage_ControlSurfaces* other);
232 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
233 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
234 return "jaiabot.protobuf.LoRaMessage.ControlSurfaces";
237 explicit LoRaMessage_ControlSurfaces(::PROTOBUF_NAMESPACE_ID::Arena* arena);
239 static void ArenaDtor(
void*
object);
240 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
243 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
245 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
257 kMotorFieldNumber = 1,
258 kPortElevatorFieldNumber = 2,
259 kStbdElevatorFieldNumber = 3,
260 kRudderFieldNumber = 4,
263 bool has_motor()
const;
265 bool _internal_has_motor()
const;
268 ::PROTOBUF_NAMESPACE_ID::int32 motor()
const;
269 void set_motor(::PROTOBUF_NAMESPACE_ID::int32 value);
271 ::PROTOBUF_NAMESPACE_ID::int32 _internal_motor()
const;
272 void _internal_set_motor(::PROTOBUF_NAMESPACE_ID::int32 value);
276 bool has_port_elevator()
const;
278 bool _internal_has_port_elevator()
const;
280 void clear_port_elevator();
281 ::PROTOBUF_NAMESPACE_ID::int32 port_elevator()
const;
282 void set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
284 ::PROTOBUF_NAMESPACE_ID::int32 _internal_port_elevator()
const;
285 void _internal_set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
289 bool has_stbd_elevator()
const;
291 bool _internal_has_stbd_elevator()
const;
293 void clear_stbd_elevator();
294 ::PROTOBUF_NAMESPACE_ID::int32 stbd_elevator()
const;
295 void set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
297 ::PROTOBUF_NAMESPACE_ID::int32 _internal_stbd_elevator()
const;
298 void _internal_set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value);
302 bool has_rudder()
const;
304 bool _internal_has_rudder()
const;
307 ::PROTOBUF_NAMESPACE_ID::int32 rudder()
const;
308 void set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value);
310 ::PROTOBUF_NAMESPACE_ID::int32 _internal_rudder()
const;
311 void _internal_set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value);
319 size_t RequiredFieldsByteSizeFallback()
const;
321 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
322 typedef void InternalArenaConstructable_;
323 typedef void DestructorSkippable_;
324 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
325 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
326 ::PROTOBUF_NAMESPACE_ID::int32 motor_;
327 ::PROTOBUF_NAMESPACE_ID::int32 port_elevator_;
328 ::PROTOBUF_NAMESPACE_ID::int32 stbd_elevator_;
329 ::PROTOBUF_NAMESPACE_ID::int32 rudder_;
330 friend struct ::TableStruct_jaiabot_2fmessages_2ffeather_2eproto;
335 public ::PROTOBUF_NAMESPACE_ID::Message {
337 inline LoRaMessage() : LoRaMessage(nullptr) {};
338 virtual ~LoRaMessage();
340 LoRaMessage(
const LoRaMessage& from);
341 LoRaMessage(LoRaMessage&& from) noexcept
343 *
this = ::std::move(from);
346 inline LoRaMessage& operator=(
const LoRaMessage& from) {
350 inline LoRaMessage& operator=(LoRaMessage&& from) noexcept {
351 if (GetArena() == from.GetArena()) {
352 if (
this != &from) InternalSwap(&from);
359 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
360 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
362 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
363 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
366 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
367 return GetDescriptor();
369 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
370 return GetMetadataStatic().descriptor;
372 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
373 return GetMetadataStatic().reflection;
375 static const LoRaMessage& default_instance();
377 static void InitAsDefaultInstance();
378 static inline const LoRaMessage* internal_default_instance() {
379 return reinterpret_cast<const LoRaMessage*
>(
382 static constexpr
int kIndexInFileMessages =
385 friend void swap(LoRaMessage& a, LoRaMessage& b) {
388 inline void Swap(LoRaMessage* other) {
389 if (other ==
this)
return;
390 if (GetArena() == other->GetArena()) {
393 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
396 void UnsafeArenaSwap(LoRaMessage* other) {
397 if (other ==
this)
return;
398 GOOGLE_DCHECK(GetArena() == other->GetArena());
404 inline LoRaMessage* New() const final {
405 return CreateMaybeMessage<LoRaMessage>(
nullptr);
408 LoRaMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
409 return CreateMaybeMessage<LoRaMessage>(arena);
411 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
412 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
413 void CopyFrom(
const LoRaMessage& from);
414 void MergeFrom(
const LoRaMessage& from);
415 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
416 bool IsInitialized() const final;
418 size_t ByteSizeLong() const final;
419 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
420 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
421 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
422 int GetCachedSize() const final {
return _cached_size_.Get(); }
425 inline void SharedCtor();
426 inline void SharedDtor();
427 void SetCachedSize(
int size)
const final;
428 void InternalSwap(LoRaMessage* other);
429 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
430 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
431 return "jaiabot.protobuf.LoRaMessage";
434 explicit LoRaMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena);
436 static void ArenaDtor(
void*
object);
437 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
440 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
442 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
451 typedef LoRaMessage_ControlSurfaces ControlSurfaces;
454 static constexpr MessageType LORA_DATA =
456 static constexpr MessageType SET_PARAMETERS =
458 static constexpr MessageType PARAMETERS_ACCEPTED =
460 static constexpr MessageType PARAMETERS_REJECTED =
462 static constexpr MessageType FEATHER_READY =
464 static constexpr MessageType TRANSMIT_RESULT =
466 static constexpr MessageType LOW_CONTROL =
468 static constexpr MessageType DEBUG_MESSAGE =
470 static inline bool MessageType_IsValid(
int value) {
473 static constexpr MessageType MessageType_MIN =
475 static constexpr MessageType MessageType_MAX =
477 static constexpr
int MessageType_ARRAYSIZE =
479 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
480 MessageType_descriptor() {
484 static inline const std::string& MessageType_Name(T enum_t_value) {
485 static_assert(::std::is_same<T, MessageType>::value ||
486 ::std::is_integral<T>::value,
487 "Incorrect type passed to function MessageType_Name.");
490 static inline bool MessageType_Parse(
const std::string& name,
491 MessageType* value) {
496 static constexpr ModemConfigChoice Bw125Cr45Sf128 =
498 static constexpr ModemConfigChoice Bw500Cr45Sf128 =
500 static constexpr ModemConfigChoice Bw31_25Cr48Sf512 =
502 static constexpr ModemConfigChoice Bw125Cr48Sf4096 =
504 static constexpr ModemConfigChoice Bw125Cr45Sf2048 =
506 static inline bool ModemConfigChoice_IsValid(
int value) {
509 static constexpr ModemConfigChoice ModemConfigChoice_MIN =
511 static constexpr ModemConfigChoice ModemConfigChoice_MAX =
513 static constexpr
int ModemConfigChoice_ARRAYSIZE =
515 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
516 ModemConfigChoice_descriptor() {
520 static inline const std::string& ModemConfigChoice_Name(T enum_t_value) {
521 static_assert(::std::is_same<T, ModemConfigChoice>::value ||
522 ::std::is_integral<T>::value,
523 "Incorrect type passed to function ModemConfigChoice_Name.");
526 static inline bool ModemConfigChoice_Parse(
const std::string& name,
527 ModemConfigChoice* value) {
534 kDataFieldNumber = 3,
535 kControlFieldNumber = 30,
537 kDestFieldNumber = 2,
539 kFlagsFieldNumber = 6,
540 kRssiFieldNumber = 7,
541 kTransmitSuccessfulFieldNumber = 10,
542 kTxPowerFieldNumber = 21,
543 kTypeFieldNumber = 4,
544 kModemConfigFieldNumber = 20,
547 bool has_data()
const;
549 bool _internal_has_data()
const;
552 const std::string& data()
const;
553 void set_data(
const std::string& value);
554 void set_data(std::string&& value);
555 void set_data(
const char* value);
556 void set_data(
const void* value,
size_t size);
557 std::string* mutable_data();
558 std::string* release_data();
559 void set_allocated_data(std::string* data);
560 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
561 " string fields are deprecated and will be removed in a"
563 std::
string* unsafe_arena_release_data();
564 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
565 "
string fields are deprecated and will be removed in a"
567 void unsafe_arena_set_allocated_data(
570 const std::
string& _internal_data() const;
571 void _internal_set_data(const std::
string& value);
572 std::
string* _internal_mutable_data();
576 bool has_control() const;
578 bool _internal_has_control() const;
580 void clear_control();
581 const ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces& control() const;
582 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* release_control();
583 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* mutable_control();
584 void set_allocated_control(::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* control);
586 const ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces& _internal_control() const;
587 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* _internal_mutable_control();
589 void unsafe_arena_set_allocated_control(
590 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* control);
591 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* unsafe_arena_release_control();
594 bool has_src() const;
596 bool _internal_has_src() const;
599 ::PROTOBUF_NAMESPACE_ID::int32 src() const;
600 void set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
602 ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
603 void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
607 bool has_dest() const;
609 bool _internal_has_dest() const;
612 ::PROTOBUF_NAMESPACE_ID::int32 dest() const;
613 void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
615 ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
616 void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
622 bool _internal_has_id() const;
625 ::PROTOBUF_NAMESPACE_ID::int32
id() const;
626 void set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
628 ::PROTOBUF_NAMESPACE_ID::int32 _internal_id() const;
629 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value);
633 bool has_flags() const;
635 bool _internal_has_flags() const;
638 ::PROTOBUF_NAMESPACE_ID::int32 flags() const;
639 void set_flags(::PROTOBUF_NAMESPACE_ID::int32 value);
641 ::PROTOBUF_NAMESPACE_ID::int32 _internal_flags() const;
642 void _internal_set_flags(::PROTOBUF_NAMESPACE_ID::int32 value);
646 bool has_rssi() const;
648 bool _internal_has_rssi() const;
651 ::PROTOBUF_NAMESPACE_ID::int32 rssi() const;
652 void set_rssi(::PROTOBUF_NAMESPACE_ID::int32 value);
654 ::PROTOBUF_NAMESPACE_ID::int32 _internal_rssi() const;
655 void _internal_set_rssi(::PROTOBUF_NAMESPACE_ID::int32 value);
659 bool has_transmit_successful() const;
661 bool _internal_has_transmit_successful() const;
663 void clear_transmit_successful();
664 bool transmit_successful() const;
665 void set_transmit_successful(
bool value);
667 bool _internal_transmit_successful() const;
668 void _internal_set_transmit_successful(
bool value);
672 bool has_tx_power() const;
674 bool _internal_has_tx_power() const;
676 void clear_tx_power();
677 ::PROTOBUF_NAMESPACE_ID::int32 tx_power() const;
678 void set_tx_power(::PROTOBUF_NAMESPACE_ID::int32 value);
680 ::PROTOBUF_NAMESPACE_ID::int32 _internal_tx_power() const;
681 void _internal_set_tx_power(::PROTOBUF_NAMESPACE_ID::int32 value);
685 bool has_type() const;
687 bool _internal_has_type() const;
698 bool has_modem_config() const;
700 bool _internal_has_modem_config() const;
702 void clear_modem_config();
715 size_t RequiredFieldsByteSizeFallback() const;
717 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
718 typedef
void InternalArenaConstructable_;
719 typedef
void DestructorSkippable_;
720 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
721 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
722 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr data_;
723 ::
jaiabot::protobuf::LoRaMessage_ControlSurfaces* control_;
724 ::PROTOBUF_NAMESPACE_ID::int32 src_;
725 ::PROTOBUF_NAMESPACE_ID::int32 dest_;
726 ::PROTOBUF_NAMESPACE_ID::int32 id_;
727 ::PROTOBUF_NAMESPACE_ID::int32 flags_;
728 ::PROTOBUF_NAMESPACE_ID::int32 rssi_;
729 bool transmit_successful_;
730 ::PROTOBUF_NAMESPACE_ID::int32 tx_power_;
741 #pragma GCC diagnostic push
742 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
747 inline bool LoRaMessage_ControlSurfaces::_internal_has_motor()
const {
748 bool value = (_has_bits_[0] & 0x00000001u) != 0;
751 inline bool LoRaMessage_ControlSurfaces::has_motor()
const {
752 return _internal_has_motor();
754 inline void LoRaMessage_ControlSurfaces::clear_motor() {
756 _has_bits_[0] &= ~0x00000001u;
758 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::_internal_motor()
const {
761 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::motor()
const {
763 return _internal_motor();
765 inline void LoRaMessage_ControlSurfaces::_internal_set_motor(::PROTOBUF_NAMESPACE_ID::int32 value) {
766 _has_bits_[0] |= 0x00000001u;
769 inline void LoRaMessage_ControlSurfaces::set_motor(::PROTOBUF_NAMESPACE_ID::int32 value) {
770 _internal_set_motor(value);
775 inline bool LoRaMessage_ControlSurfaces::_internal_has_port_elevator()
const {
776 bool value = (_has_bits_[0] & 0x00000002u) != 0;
779 inline bool LoRaMessage_ControlSurfaces::has_port_elevator()
const {
780 return _internal_has_port_elevator();
782 inline void LoRaMessage_ControlSurfaces::clear_port_elevator() {
784 _has_bits_[0] &= ~0x00000002u;
786 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::_internal_port_elevator()
const {
787 return port_elevator_;
789 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::port_elevator()
const {
791 return _internal_port_elevator();
793 inline void LoRaMessage_ControlSurfaces::_internal_set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
794 _has_bits_[0] |= 0x00000002u;
795 port_elevator_ = value;
797 inline void LoRaMessage_ControlSurfaces::set_port_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
798 _internal_set_port_elevator(value);
803 inline bool LoRaMessage_ControlSurfaces::_internal_has_stbd_elevator()
const {
804 bool value = (_has_bits_[0] & 0x00000004u) != 0;
807 inline bool LoRaMessage_ControlSurfaces::has_stbd_elevator()
const {
808 return _internal_has_stbd_elevator();
810 inline void LoRaMessage_ControlSurfaces::clear_stbd_elevator() {
812 _has_bits_[0] &= ~0x00000004u;
814 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::_internal_stbd_elevator()
const {
815 return stbd_elevator_;
817 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::stbd_elevator()
const {
819 return _internal_stbd_elevator();
821 inline void LoRaMessage_ControlSurfaces::_internal_set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
822 _has_bits_[0] |= 0x00000004u;
823 stbd_elevator_ = value;
825 inline void LoRaMessage_ControlSurfaces::set_stbd_elevator(::PROTOBUF_NAMESPACE_ID::int32 value) {
826 _internal_set_stbd_elevator(value);
831 inline bool LoRaMessage_ControlSurfaces::_internal_has_rudder()
const {
832 bool value = (_has_bits_[0] & 0x00000008u) != 0;
835 inline bool LoRaMessage_ControlSurfaces::has_rudder()
const {
836 return _internal_has_rudder();
838 inline void LoRaMessage_ControlSurfaces::clear_rudder() {
840 _has_bits_[0] &= ~0x00000008u;
842 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::_internal_rudder()
const {
845 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage_ControlSurfaces::rudder()
const {
847 return _internal_rudder();
849 inline void LoRaMessage_ControlSurfaces::_internal_set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value) {
850 _has_bits_[0] |= 0x00000008u;
853 inline void LoRaMessage_ControlSurfaces::set_rudder(::PROTOBUF_NAMESPACE_ID::int32 value) {
854 _internal_set_rudder(value);
863 inline bool LoRaMessage::_internal_has_src()
const {
864 bool value = (_has_bits_[0] & 0x00000004u) != 0;
867 inline bool LoRaMessage::has_src()
const {
868 return _internal_has_src();
870 inline void LoRaMessage::clear_src() {
872 _has_bits_[0] &= ~0x00000004u;
874 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_src()
const {
877 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::src()
const {
879 return _internal_src();
881 inline void LoRaMessage::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
882 _has_bits_[0] |= 0x00000004u;
885 inline void LoRaMessage::set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
886 _internal_set_src(value);
891 inline bool LoRaMessage::_internal_has_dest()
const {
892 bool value = (_has_bits_[0] & 0x00000008u) != 0;
895 inline bool LoRaMessage::has_dest()
const {
896 return _internal_has_dest();
898 inline void LoRaMessage::clear_dest() {
900 _has_bits_[0] &= ~0x00000008u;
902 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_dest()
const {
905 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::dest()
const {
907 return _internal_dest();
909 inline void LoRaMessage::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
910 _has_bits_[0] |= 0x00000008u;
913 inline void LoRaMessage::set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
914 _internal_set_dest(value);
919 inline bool LoRaMessage::_internal_has_data()
const {
920 bool value = (_has_bits_[0] & 0x00000001u) != 0;
923 inline bool LoRaMessage::has_data()
const {
924 return _internal_has_data();
926 inline void LoRaMessage::clear_data() {
927 data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
928 _has_bits_[0] &= ~0x00000001u;
930 inline const std::string& LoRaMessage::data()
const {
932 return _internal_data();
934 inline void LoRaMessage::set_data(
const std::string& value) {
935 _internal_set_data(value);
938 inline std::string* LoRaMessage::mutable_data() {
940 return _internal_mutable_data();
942 inline const std::string& LoRaMessage::_internal_data()
const {
945 inline void LoRaMessage::_internal_set_data(
const std::string& value) {
946 _has_bits_[0] |= 0x00000001u;
947 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
949 inline void LoRaMessage::set_data(std::string&& value) {
950 _has_bits_[0] |= 0x00000001u;
952 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
955 inline void LoRaMessage::set_data(
const char* value) {
956 GOOGLE_DCHECK(value !=
nullptr);
957 _has_bits_[0] |= 0x00000001u;
958 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
962 inline void LoRaMessage::set_data(
const void* value,
964 _has_bits_[0] |= 0x00000001u;
965 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
966 reinterpret_cast<const char*
>(value), size), GetArena());
969 inline std::string* LoRaMessage::_internal_mutable_data() {
970 _has_bits_[0] |= 0x00000001u;
971 return data_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
973 inline std::string* LoRaMessage::release_data() {
975 if (!_internal_has_data()) {
978 _has_bits_[0] &= ~0x00000001u;
979 return data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
981 inline void LoRaMessage::set_allocated_data(std::string* data) {
982 if (data !=
nullptr) {
983 _has_bits_[0] |= 0x00000001u;
985 _has_bits_[0] &= ~0x00000001u;
987 data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
991 inline std::string* LoRaMessage::unsafe_arena_release_data() {
993 GOOGLE_DCHECK(GetArena() !=
nullptr);
994 _has_bits_[0] &= ~0x00000001u;
995 return data_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
998 inline void LoRaMessage::unsafe_arena_set_allocated_data(
1000 GOOGLE_DCHECK(GetArena() !=
nullptr);
1001 if (data !=
nullptr) {
1002 _has_bits_[0] |= 0x00000001u;
1004 _has_bits_[0] &= ~0x00000001u;
1006 data_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1012 inline bool LoRaMessage::_internal_has_type()
const {
1013 bool value = (_has_bits_[0] & 0x00000200u) != 0;
1016 inline bool LoRaMessage::has_type()
const {
1017 return _internal_has_type();
1019 inline void LoRaMessage::clear_type() {
1021 _has_bits_[0] &= ~0x00000200u;
1028 return _internal_type();
1032 _has_bits_[0] |= 0x00000200u;
1036 _internal_set_type(value);
1041 inline bool LoRaMessage::_internal_has_id()
const {
1042 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1045 inline bool LoRaMessage::has_id()
const {
1046 return _internal_has_id();
1048 inline void LoRaMessage::clear_id() {
1050 _has_bits_[0] &= ~0x00000010u;
1052 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_id()
const {
1055 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::id()
const {
1057 return _internal_id();
1059 inline void LoRaMessage::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
1060 _has_bits_[0] |= 0x00000010u;
1063 inline void LoRaMessage::set_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
1064 _internal_set_id(value);
1069 inline bool LoRaMessage::_internal_has_flags()
const {
1070 bool value = (_has_bits_[0] & 0x00000020u) != 0;
1073 inline bool LoRaMessage::has_flags()
const {
1074 return _internal_has_flags();
1076 inline void LoRaMessage::clear_flags() {
1078 _has_bits_[0] &= ~0x00000020u;
1080 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_flags()
const {
1083 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::flags()
const {
1085 return _internal_flags();
1087 inline void LoRaMessage::_internal_set_flags(::PROTOBUF_NAMESPACE_ID::int32 value) {
1088 _has_bits_[0] |= 0x00000020u;
1091 inline void LoRaMessage::set_flags(::PROTOBUF_NAMESPACE_ID::int32 value) {
1092 _internal_set_flags(value);
1097 inline bool LoRaMessage::_internal_has_rssi()
const {
1098 bool value = (_has_bits_[0] & 0x00000040u) != 0;
1101 inline bool LoRaMessage::has_rssi()
const {
1102 return _internal_has_rssi();
1104 inline void LoRaMessage::clear_rssi() {
1106 _has_bits_[0] &= ~0x00000040u;
1108 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_rssi()
const {
1111 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::rssi()
const {
1113 return _internal_rssi();
1115 inline void LoRaMessage::_internal_set_rssi(::PROTOBUF_NAMESPACE_ID::int32 value) {
1116 _has_bits_[0] |= 0x00000040u;
1119 inline void LoRaMessage::set_rssi(::PROTOBUF_NAMESPACE_ID::int32 value) {
1120 _internal_set_rssi(value);
1125 inline bool LoRaMessage::_internal_has_transmit_successful()
const {
1126 bool value = (_has_bits_[0] & 0x00000080u) != 0;
1129 inline bool LoRaMessage::has_transmit_successful()
const {
1130 return _internal_has_transmit_successful();
1132 inline void LoRaMessage::clear_transmit_successful() {
1133 transmit_successful_ =
false;
1134 _has_bits_[0] &= ~0x00000080u;
1136 inline bool LoRaMessage::_internal_transmit_successful()
const {
1137 return transmit_successful_;
1139 inline bool LoRaMessage::transmit_successful()
const {
1141 return _internal_transmit_successful();
1143 inline void LoRaMessage::_internal_set_transmit_successful(
bool value) {
1144 _has_bits_[0] |= 0x00000080u;
1145 transmit_successful_ = value;
1147 inline void LoRaMessage::set_transmit_successful(
bool value) {
1148 _internal_set_transmit_successful(value);
1153 inline bool LoRaMessage::_internal_has_modem_config()
const {
1154 bool value = (_has_bits_[0] & 0x00000400u) != 0;
1157 inline bool LoRaMessage::has_modem_config()
const {
1158 return _internal_has_modem_config();
1160 inline void LoRaMessage::clear_modem_config() {
1162 _has_bits_[0] &= ~0x00000400u;
1169 return _internal_modem_config();
1173 _has_bits_[0] |= 0x00000400u;
1174 modem_config_ = value;
1177 _internal_set_modem_config(value);
1182 inline bool LoRaMessage::_internal_has_tx_power()
const {
1183 bool value = (_has_bits_[0] & 0x00000100u) != 0;
1186 inline bool LoRaMessage::has_tx_power()
const {
1187 return _internal_has_tx_power();
1189 inline void LoRaMessage::clear_tx_power() {
1191 _has_bits_[0] &= ~0x00000100u;
1193 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::_internal_tx_power()
const {
1196 inline ::PROTOBUF_NAMESPACE_ID::int32 LoRaMessage::tx_power()
const {
1198 return _internal_tx_power();
1200 inline void LoRaMessage::_internal_set_tx_power(::PROTOBUF_NAMESPACE_ID::int32 value) {
1201 _has_bits_[0] |= 0x00000100u;
1204 inline void LoRaMessage::set_tx_power(::PROTOBUF_NAMESPACE_ID::int32 value) {
1205 _internal_set_tx_power(value);
1210 inline bool LoRaMessage::_internal_has_control()
const {
1211 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1212 PROTOBUF_ASSUME(!value || control_ !=
nullptr);
1215 inline bool LoRaMessage::has_control()
const {
1216 return _internal_has_control();
1218 inline void LoRaMessage::clear_control() {
1219 if (control_ !=
nullptr) control_->Clear();
1220 _has_bits_[0] &= ~0x00000002u;
1222 inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::_internal_control()
const {
1223 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* p = control_;
1224 return p !=
nullptr ? *p : *
reinterpret_cast<const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces*
>(
1227 inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::control()
const {
1229 return _internal_control();
1231 inline void LoRaMessage::unsafe_arena_set_allocated_control(
1232 ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* control) {
1233 if (GetArena() ==
nullptr) {
1234 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(control_);
1238 _has_bits_[0] |= 0x00000002u;
1240 _has_bits_[0] &= ~0x00000002u;
1244 inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::release_control() {
1245 auto temp = unsafe_arena_release_control();
1246 if (GetArena() !=
nullptr) {
1247 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1251 inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::unsafe_arena_release_control() {
1253 _has_bits_[0] &= ~0x00000002u;
1254 ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* temp = control_;
1258 inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::_internal_mutable_control() {
1259 _has_bits_[0] |= 0x00000002u;
1260 if (control_ ==
nullptr) {
1261 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces>(GetArena());
1266 inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::mutable_control() {
1268 return _internal_mutable_control();
1270 inline void LoRaMessage::set_allocated_control(::jaiabot::protobuf::LoRaMessage_ControlSurfaces* control) {
1271 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1272 if (message_arena ==
nullptr) {
1276 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1277 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(control);
1278 if (message_arena != submessage_arena) {
1279 control = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1280 message_arena, control, submessage_arena);
1282 _has_bits_[0] |= 0x00000002u;
1284 _has_bits_[0] &= ~0x00000002u;
1291 #pragma GCC diagnostic pop
1301 PROTOBUF_NAMESPACE_OPEN
1305 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_MessageType>() {
1310 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice>() {
1314 PROTOBUF_NAMESPACE_CLOSE
1318 #include <google/protobuf/port_undef.inc>
@ LoRaMessage_MessageType_PARAMETERS_ACCEPTED
@ LoRaMessage_MessageType_PARAMETERS_REJECTED
@ LoRaMessage_MessageType_FEATHER_READY
@ LoRaMessage_MessageType_LOW_CONTROL
@ LoRaMessage_MessageType_DEBUG_MESSAGE
@ LoRaMessage_MessageType_LORA_DATA
@ LoRaMessage_MessageType_SET_PARAMETERS
@ LoRaMessage_MessageType_TRANSMIT_RESULT
constexpr int LoRaMessage_MessageType_MessageType_ARRAYSIZE
LoRaMessage_ModemConfigChoice
@ LoRaMessage_ModemConfigChoice_Bw500Cr45Sf128
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
@ LoRaMessage_ModemConfigChoice_Bw31_25Cr48Sf512
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
@ LoRaMessage_ModemConfigChoice_Bw125Cr48Sf4096
bool LoRaMessage_MessageType_IsValid(int value)
const std::string & LoRaMessage_MessageType_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_MessageType_descriptor()
constexpr int LoRaMessage_ModemConfigChoice_ModemConfigChoice_ARRAYSIZE
bool LoRaMessage_MessageType_Parse(const std::string &name, LoRaMessage_MessageType *value)
bool LoRaMessage_ModemConfigChoice_IsValid(int value)
LoRaMessage_ControlSurfacesDefaultTypeInternal _LoRaMessage_ControlSurfaces_default_instance_
constexpr LoRaMessage_ModemConfigChoice LoRaMessage_ModemConfigChoice_ModemConfigChoice_MAX
constexpr LoRaMessage_MessageType LoRaMessage_MessageType_MessageType_MIN
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_ModemConfigChoice_descriptor()
constexpr LoRaMessage_ModemConfigChoice LoRaMessage_ModemConfigChoice_ModemConfigChoice_MIN
bool LoRaMessage_ModemConfigChoice_Parse(const std::string &name, LoRaMessage_ModemConfigChoice *value)
LoRaMessageDefaultTypeInternal _LoRaMessage_default_instance_
const std::string & LoRaMessage_ModemConfigChoice_Name(T enum_t_value)
constexpr LoRaMessage_MessageType LoRaMessage_MessageType_MessageType_MAX
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ffeather_2eproto
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)