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 < 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/generated_enum_reflection.h>
33#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_2ffeather_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
50 static const uint32_t
offsets[];
56struct LoRaMessageDefaultTypeInternal;
58class LoRaMessage_ControlSurfaces;
59struct LoRaMessage_ControlSurfacesDefaultTypeInternal;
63PROTOBUF_NAMESPACE_OPEN
66PROTOBUF_NAMESPACE_CLOSE
88 static_assert(::std::is_same<T, LoRaMessage_MessageType>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function LoRaMessage_MessageType_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_MessageType>(
114 static_assert(::std::is_same<T, LoRaMessage_ModemConfigChoice>::value ||
115 ::std::is_integral<T>::value,
116 "Incorrect type passed to function LoRaMessage_ModemConfigChoice_Name.");
117 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
122 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaMessage_ModemConfigChoice>(
127class LoRaMessage_ControlSurfaces final :
128 public ::PROTOBUF_NAMESPACE_ID::Message {
137 *
this = ::std::move(from);
145 if (
this == &from)
return *
this;
146 if (GetOwningArena() == from.GetOwningArena()
147 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
148 && GetOwningArena() !=
nullptr
158 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet&
unknown_fields()
const {
159 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
162 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
165 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
168 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
171 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
188 if (other ==
this)
return;
189 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
190 if (GetOwningArena() !=
nullptr &&
191 GetOwningArena() == other->GetOwningArena()) {
193 if (GetOwningArena() == other->GetOwningArena()) {
197 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
201 if (other ==
this)
return;
202 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
209 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(arena);
211 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
213 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
215 LoRaMessage_ControlSurfaces::MergeImpl(*
this, from);
218 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
220 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
226 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
230 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
232 void SetCachedSize(
int size)
const final;
236 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
237 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
238 return "jaiabot.protobuf.LoRaMessage.ControlSurfaces";
242 bool is_message_owned =
false);
246 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
248 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
263 bool _internal_has_motor()
const;
266 int32_t
motor()
const;
269 int32_t _internal_motor()
const;
270 void _internal_set_motor(int32_t value);
276 bool _internal_has_port_elevator()
const;
282 int32_t _internal_port_elevator()
const;
283 void _internal_set_port_elevator(int32_t value);
289 bool _internal_has_stbd_elevator()
const;
295 int32_t _internal_stbd_elevator()
const;
296 void _internal_set_stbd_elevator(int32_t value);
302 bool _internal_has_rudder()
const;
308 int32_t _internal_rudder()
const;
309 void _internal_set_rudder(int32_t value);
317 size_t RequiredFieldsByteSizeFallback()
const;
319 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
320 typedef void InternalArenaConstructable_;
321 typedef void DestructorSkippable_;
323 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
324 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
326 int32_t port_elevator_;
327 int32_t stbd_elevator_;
331 friend struct ::TableStruct_jaiabot_2fmessages_2ffeather_2eproto;
335class LoRaMessage final :
336 public ::PROTOBUF_NAMESPACE_ID::Message {
338 inline LoRaMessage() : LoRaMessage(nullptr) {}
339 ~LoRaMessage()
override;
340 explicit PROTOBUF_CONSTEXPR LoRaMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
342 LoRaMessage(
const LoRaMessage& from);
343 LoRaMessage(LoRaMessage&& from) noexcept
345 *
this = ::std::move(from);
348 inline LoRaMessage& operator=(
const LoRaMessage& from) {
352 inline LoRaMessage& operator=(LoRaMessage&& from)
noexcept {
353 if (
this == &from)
return *
this;
354 if (GetOwningArena() == from.GetOwningArena()
355 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
356 && GetOwningArena() !=
nullptr
366 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields()
const {
367 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
369 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
370 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
373 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
374 return GetDescriptor();
376 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
377 return default_instance().GetMetadata().descriptor;
379 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
380 return default_instance().GetMetadata().reflection;
382 static const LoRaMessage& default_instance() {
383 return *internal_default_instance();
385 static inline const LoRaMessage* internal_default_instance() {
386 return reinterpret_cast<const LoRaMessage*
>(
389 static constexpr int kIndexInFileMessages =
392 friend void swap(LoRaMessage& a, LoRaMessage& b) {
395 inline void Swap(LoRaMessage* other) {
396 if (other ==
this)
return;
397 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
398 if (GetOwningArena() !=
nullptr &&
399 GetOwningArena() == other->GetOwningArena()) {
401 if (GetOwningArena() == other->GetOwningArena()) {
405 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
408 void UnsafeArenaSwap(LoRaMessage* other) {
409 if (other ==
this)
return;
410 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
416 LoRaMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
417 return CreateMaybeMessage<LoRaMessage>(arena);
419 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
420 void CopyFrom(
const LoRaMessage& from);
421 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
422 void MergeFrom(
const LoRaMessage& from) {
423 LoRaMessage::MergeImpl(*
this, from);
426 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
428 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
429 bool IsInitialized() const final;
431 size_t ByteSizeLong() const final;
432 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
433 uint8_t* _InternalSerialize(
434 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
435 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
438 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
440 void SetCachedSize(
int size)
const final;
441 void InternalSwap(LoRaMessage* other);
444 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
445 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
446 return "jaiabot.protobuf.LoRaMessage";
449 explicit LoRaMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
450 bool is_message_owned =
false);
453 static const ClassData _class_data_;
454 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
456 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
460 typedef LoRaMessage_ControlSurfaces ControlSurfaces;
462 typedef LoRaMessage_MessageType MessageType;
463 static constexpr MessageType LORA_DATA =
464 LoRaMessage_MessageType_LORA_DATA;
465 static constexpr MessageType SET_PARAMETERS =
466 LoRaMessage_MessageType_SET_PARAMETERS;
467 static constexpr MessageType PARAMETERS_ACCEPTED =
468 LoRaMessage_MessageType_PARAMETERS_ACCEPTED;
469 static constexpr MessageType PARAMETERS_REJECTED =
470 LoRaMessage_MessageType_PARAMETERS_REJECTED;
471 static constexpr MessageType FEATHER_READY =
472 LoRaMessage_MessageType_FEATHER_READY;
473 static constexpr MessageType TRANSMIT_RESULT =
474 LoRaMessage_MessageType_TRANSMIT_RESULT;
475 static constexpr MessageType LOW_CONTROL =
476 LoRaMessage_MessageType_LOW_CONTROL;
477 static constexpr MessageType DEBUG_MESSAGE =
478 LoRaMessage_MessageType_DEBUG_MESSAGE;
479 static inline
bool MessageType_IsValid(
int value) {
482 static constexpr MessageType MessageType_MIN =
484 static constexpr MessageType MessageType_MAX =
486 static constexpr int MessageType_ARRAYSIZE =
488 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
489 MessageType_descriptor() {
493 static inline const std::string& MessageType_Name(T enum_t_value) {
494 static_assert(::std::is_same<T, MessageType>::value ||
495 ::std::is_integral<T>::value,
496 "Incorrect type passed to function MessageType_Name.");
499 static inline bool MessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
500 MessageType* value) {
505 static constexpr ModemConfigChoice Bw125Cr45Sf128 =
507 static constexpr ModemConfigChoice Bw500Cr45Sf128 =
509 static constexpr ModemConfigChoice Bw31_25Cr48Sf512 =
511 static constexpr ModemConfigChoice Bw125Cr48Sf4096 =
513 static constexpr ModemConfigChoice Bw125Cr45Sf2048 =
515 static inline bool ModemConfigChoice_IsValid(
int value) {
518 static constexpr ModemConfigChoice ModemConfigChoice_MIN =
520 static constexpr ModemConfigChoice ModemConfigChoice_MAX =
522 static constexpr int ModemConfigChoice_ARRAYSIZE =
524 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
525 ModemConfigChoice_descriptor() {
529 static inline const std::string& ModemConfigChoice_Name(T enum_t_value) {
530 static_assert(::std::is_same<T, ModemConfigChoice>::value ||
531 ::std::is_integral<T>::value,
532 "Incorrect type passed to function ModemConfigChoice_Name.");
535 static inline bool ModemConfigChoice_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
536 ModemConfigChoice* value) {
543 kDataFieldNumber = 3,
544 kControlFieldNumber = 30,
546 kDestFieldNumber = 2,
548 kFlagsFieldNumber = 6,
549 kRssiFieldNumber = 7,
550 kTransmitSuccessfulFieldNumber = 10,
551 kTxPowerFieldNumber = 21,
552 kTypeFieldNumber = 4,
553 kModemConfigFieldNumber = 20,
556 bool has_data()
const;
558 bool _internal_has_data()
const;
561 const std::string& data()
const;
562 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
563 void set_data(ArgT0&& arg0, ArgT... args);
564 std::string* mutable_data();
565 PROTOBUF_NODISCARD std::string* release_data();
566 void set_allocated_data(std::string* data);
568 const std::string& _internal_data()
const;
569 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_data(
const std::string& value);
570 std::string* _internal_mutable_data();
574 bool has_control()
const;
576 bool _internal_has_control()
const;
578 void clear_control();
579 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& control()
const;
580 PROTOBUF_NODISCARD ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* release_control();
584 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& _internal_control()
const;
587 void unsafe_arena_set_allocated_control(
592 bool has_src()
const;
594 bool _internal_has_src()
const;
598 void set_src(int32_t value);
600 int32_t _internal_src()
const;
601 void _internal_set_src(int32_t value);
605 bool has_dest()
const;
607 bool _internal_has_dest()
const;
610 int32_t dest()
const;
611 void set_dest(int32_t value);
613 int32_t _internal_dest()
const;
614 void _internal_set_dest(int32_t value);
620 bool _internal_has_id()
const;
624 void set_id(int32_t value);
626 int32_t _internal_id()
const;
627 void _internal_set_id(int32_t value);
631 bool has_flags()
const;
633 bool _internal_has_flags()
const;
636 int32_t flags()
const;
637 void set_flags(int32_t value);
639 int32_t _internal_flags()
const;
640 void _internal_set_flags(int32_t value);
644 bool has_rssi()
const;
646 bool _internal_has_rssi()
const;
649 int32_t rssi()
const;
650 void set_rssi(int32_t value);
652 int32_t _internal_rssi()
const;
653 void _internal_set_rssi(int32_t value);
657 bool has_transmit_successful()
const;
659 bool _internal_has_transmit_successful()
const;
661 void clear_transmit_successful();
662 bool transmit_successful()
const;
663 void set_transmit_successful(
bool value);
665 bool _internal_transmit_successful()
const;
666 void _internal_set_transmit_successful(
bool value);
670 bool has_tx_power()
const;
672 bool _internal_has_tx_power()
const;
674 void clear_tx_power();
675 int32_t tx_power()
const;
676 void set_tx_power(int32_t value);
678 int32_t _internal_tx_power()
const;
679 void _internal_set_tx_power(int32_t value);
683 bool has_type()
const;
685 bool _internal_has_type()
const;
696 bool has_modem_config()
const;
698 bool _internal_has_modem_config()
const;
700 void clear_modem_config();
713 size_t RequiredFieldsByteSizeFallback()
const;
715 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
716 typedef void InternalArenaConstructable_;
717 typedef void DestructorSkippable_;
719 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
720 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
721 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
728 bool transmit_successful_;
733 union { Impl_ _impl_; };
734 friend struct ::TableStruct_jaiabot_2fmessages_2ffeather_2eproto;
742 #pragma GCC diagnostic push
743 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
748inline bool LoRaMessage_ControlSurfaces::_internal_has_motor()
const {
749 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
752inline bool LoRaMessage_ControlSurfaces::has_motor()
const {
753 return _internal_has_motor();
755inline void LoRaMessage_ControlSurfaces::clear_motor() {
757 _impl_._has_bits_[0] &= ~0x00000001u;
759inline int32_t LoRaMessage_ControlSurfaces::_internal_motor()
const {
760 return _impl_.motor_;
762inline int32_t LoRaMessage_ControlSurfaces::motor()
const {
764 return _internal_motor();
766inline void LoRaMessage_ControlSurfaces::_internal_set_motor(int32_t value) {
767 _impl_._has_bits_[0] |= 0x00000001u;
768 _impl_.motor_ = value;
770inline void LoRaMessage_ControlSurfaces::set_motor(int32_t value) {
771 _internal_set_motor(value);
776inline bool LoRaMessage_ControlSurfaces::_internal_has_port_elevator()
const {
777 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
780inline bool LoRaMessage_ControlSurfaces::has_port_elevator()
const {
781 return _internal_has_port_elevator();
783inline void LoRaMessage_ControlSurfaces::clear_port_elevator() {
784 _impl_.port_elevator_ = 0;
785 _impl_._has_bits_[0] &= ~0x00000002u;
787inline int32_t LoRaMessage_ControlSurfaces::_internal_port_elevator()
const {
788 return _impl_.port_elevator_;
790inline int32_t LoRaMessage_ControlSurfaces::port_elevator()
const {
792 return _internal_port_elevator();
794inline void LoRaMessage_ControlSurfaces::_internal_set_port_elevator(int32_t value) {
795 _impl_._has_bits_[0] |= 0x00000002u;
796 _impl_.port_elevator_ = value;
798inline void LoRaMessage_ControlSurfaces::set_port_elevator(int32_t value) {
799 _internal_set_port_elevator(value);
804inline bool LoRaMessage_ControlSurfaces::_internal_has_stbd_elevator()
const {
805 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
808inline bool LoRaMessage_ControlSurfaces::has_stbd_elevator()
const {
809 return _internal_has_stbd_elevator();
811inline void LoRaMessage_ControlSurfaces::clear_stbd_elevator() {
812 _impl_.stbd_elevator_ = 0;
813 _impl_._has_bits_[0] &= ~0x00000004u;
815inline int32_t LoRaMessage_ControlSurfaces::_internal_stbd_elevator()
const {
816 return _impl_.stbd_elevator_;
818inline int32_t LoRaMessage_ControlSurfaces::stbd_elevator()
const {
820 return _internal_stbd_elevator();
822inline void LoRaMessage_ControlSurfaces::_internal_set_stbd_elevator(int32_t value) {
823 _impl_._has_bits_[0] |= 0x00000004u;
824 _impl_.stbd_elevator_ = value;
826inline void LoRaMessage_ControlSurfaces::set_stbd_elevator(int32_t value) {
827 _internal_set_stbd_elevator(value);
832inline bool LoRaMessage_ControlSurfaces::_internal_has_rudder()
const {
833 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
836inline bool LoRaMessage_ControlSurfaces::has_rudder()
const {
837 return _internal_has_rudder();
839inline void LoRaMessage_ControlSurfaces::clear_rudder() {
841 _impl_._has_bits_[0] &= ~0x00000008u;
843inline int32_t LoRaMessage_ControlSurfaces::_internal_rudder()
const {
844 return _impl_.rudder_;
846inline int32_t LoRaMessage_ControlSurfaces::rudder()
const {
848 return _internal_rudder();
850inline void LoRaMessage_ControlSurfaces::_internal_set_rudder(int32_t value) {
851 _impl_._has_bits_[0] |= 0x00000008u;
852 _impl_.rudder_ = value;
854inline void LoRaMessage_ControlSurfaces::set_rudder(int32_t value) {
855 _internal_set_rudder(value);
864inline bool LoRaMessage::_internal_has_src()
const {
865 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
868inline bool LoRaMessage::has_src()
const {
869 return _internal_has_src();
871inline void LoRaMessage::clear_src() {
873 _impl_._has_bits_[0] &= ~0x00000004u;
875inline int32_t LoRaMessage::_internal_src()
const {
878inline int32_t LoRaMessage::src()
const {
880 return _internal_src();
882inline void LoRaMessage::_internal_set_src(int32_t value) {
883 _impl_._has_bits_[0] |= 0x00000004u;
886inline void LoRaMessage::set_src(int32_t value) {
887 _internal_set_src(value);
892inline bool LoRaMessage::_internal_has_dest()
const {
893 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
896inline bool LoRaMessage::has_dest()
const {
897 return _internal_has_dest();
899inline void LoRaMessage::clear_dest() {
901 _impl_._has_bits_[0] &= ~0x00000008u;
903inline int32_t LoRaMessage::_internal_dest()
const {
906inline int32_t LoRaMessage::dest()
const {
908 return _internal_dest();
910inline void LoRaMessage::_internal_set_dest(int32_t value) {
911 _impl_._has_bits_[0] |= 0x00000008u;
912 _impl_.dest_ = value;
914inline void LoRaMessage::set_dest(int32_t value) {
915 _internal_set_dest(value);
920inline bool LoRaMessage::_internal_has_data()
const {
921 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
924inline bool LoRaMessage::has_data()
const {
925 return _internal_has_data();
927inline void LoRaMessage::clear_data() {
928 _impl_.data_.ClearToEmpty();
929 _impl_._has_bits_[0] &= ~0x00000001u;
931inline const std::string& LoRaMessage::data()
const {
933 return _internal_data();
935template <
typename ArgT0,
typename... ArgT>
936inline PROTOBUF_ALWAYS_INLINE
937void LoRaMessage::set_data(ArgT0&& arg0, ArgT... args) {
938 _impl_._has_bits_[0] |= 0x00000001u;
939 _impl_.data_.SetBytes(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
942inline std::string* LoRaMessage::mutable_data() {
943 std::string* _s = _internal_mutable_data();
947inline const std::string& LoRaMessage::_internal_data()
const {
948 return _impl_.data_.Get();
950inline void LoRaMessage::_internal_set_data(
const std::string& value) {
951 _impl_._has_bits_[0] |= 0x00000001u;
952 _impl_.data_.Set(value, GetArenaForAllocation());
954inline std::string* LoRaMessage::_internal_mutable_data() {
955 _impl_._has_bits_[0] |= 0x00000001u;
956 return _impl_.data_.Mutable(GetArenaForAllocation());
958inline std::string* LoRaMessage::release_data() {
960 if (!_internal_has_data()) {
963 _impl_._has_bits_[0] &= ~0x00000001u;
964 auto* p = _impl_.data_.Release();
965#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
966 if (_impl_.data_.IsDefault()) {
967 _impl_.data_.Set(
"", GetArenaForAllocation());
972inline void LoRaMessage::set_allocated_data(std::string* data) {
973 if (data !=
nullptr) {
974 _impl_._has_bits_[0] |= 0x00000001u;
976 _impl_._has_bits_[0] &= ~0x00000001u;
978 _impl_.data_.SetAllocated(data, GetArenaForAllocation());
979#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
980 if (_impl_.data_.IsDefault()) {
981 _impl_.data_.Set(
"", GetArenaForAllocation());
988inline bool LoRaMessage::_internal_has_type()
const {
989 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
992inline bool LoRaMessage::has_type()
const {
993 return _internal_has_type();
995inline void LoRaMessage::clear_type() {
997 _impl_._has_bits_[0] &= ~0x00000200u;
999inline ::jaiabot::protobuf::LoRaMessage_MessageType LoRaMessage::_internal_type()
const {
1002inline ::jaiabot::protobuf::LoRaMessage_MessageType LoRaMessage::type()
const {
1004 return _internal_type();
1008 _impl_._has_bits_[0] |= 0x00000200u;
1009 _impl_.type_ = value;
1012 _internal_set_type(value);
1017inline bool LoRaMessage::_internal_has_id()
const {
1018 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1021inline bool LoRaMessage::has_id()
const {
1022 return _internal_has_id();
1024inline void LoRaMessage::clear_id() {
1026 _impl_._has_bits_[0] &= ~0x00000010u;
1028inline int32_t LoRaMessage::_internal_id()
const {
1031inline int32_t LoRaMessage::id()
const {
1033 return _internal_id();
1035inline void LoRaMessage::_internal_set_id(int32_t value) {
1036 _impl_._has_bits_[0] |= 0x00000010u;
1039inline void LoRaMessage::set_id(int32_t value) {
1040 _internal_set_id(value);
1045inline bool LoRaMessage::_internal_has_flags()
const {
1046 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1049inline bool LoRaMessage::has_flags()
const {
1050 return _internal_has_flags();
1052inline void LoRaMessage::clear_flags() {
1054 _impl_._has_bits_[0] &= ~0x00000020u;
1056inline int32_t LoRaMessage::_internal_flags()
const {
1057 return _impl_.flags_;
1059inline int32_t LoRaMessage::flags()
const {
1061 return _internal_flags();
1063inline void LoRaMessage::_internal_set_flags(int32_t value) {
1064 _impl_._has_bits_[0] |= 0x00000020u;
1065 _impl_.flags_ = value;
1067inline void LoRaMessage::set_flags(int32_t value) {
1068 _internal_set_flags(value);
1073inline bool LoRaMessage::_internal_has_rssi()
const {
1074 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1077inline bool LoRaMessage::has_rssi()
const {
1078 return _internal_has_rssi();
1080inline void LoRaMessage::clear_rssi() {
1082 _impl_._has_bits_[0] &= ~0x00000040u;
1084inline int32_t LoRaMessage::_internal_rssi()
const {
1085 return _impl_.rssi_;
1087inline int32_t LoRaMessage::rssi()
const {
1089 return _internal_rssi();
1091inline void LoRaMessage::_internal_set_rssi(int32_t value) {
1092 _impl_._has_bits_[0] |= 0x00000040u;
1093 _impl_.rssi_ = value;
1095inline void LoRaMessage::set_rssi(int32_t value) {
1096 _internal_set_rssi(value);
1101inline bool LoRaMessage::_internal_has_transmit_successful()
const {
1102 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
1105inline bool LoRaMessage::has_transmit_successful()
const {
1106 return _internal_has_transmit_successful();
1108inline void LoRaMessage::clear_transmit_successful() {
1109 _impl_.transmit_successful_ =
false;
1110 _impl_._has_bits_[0] &= ~0x00000080u;
1112inline bool LoRaMessage::_internal_transmit_successful()
const {
1113 return _impl_.transmit_successful_;
1115inline bool LoRaMessage::transmit_successful()
const {
1117 return _internal_transmit_successful();
1119inline void LoRaMessage::_internal_set_transmit_successful(
bool value) {
1120 _impl_._has_bits_[0] |= 0x00000080u;
1121 _impl_.transmit_successful_ = value;
1123inline void LoRaMessage::set_transmit_successful(
bool value) {
1124 _internal_set_transmit_successful(value);
1129inline bool LoRaMessage::_internal_has_modem_config()
const {
1130 bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
1133inline bool LoRaMessage::has_modem_config()
const {
1134 return _internal_has_modem_config();
1136inline void LoRaMessage::clear_modem_config() {
1137 _impl_.modem_config_ = 1;
1138 _impl_._has_bits_[0] &= ~0x00000400u;
1140inline ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice LoRaMessage::_internal_modem_config()
const {
1143inline ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice LoRaMessage::modem_config()
const {
1145 return _internal_modem_config();
1149 _impl_._has_bits_[0] |= 0x00000400u;
1150 _impl_.modem_config_ = value;
1153 _internal_set_modem_config(value);
1158inline bool LoRaMessage::_internal_has_tx_power()
const {
1159 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1162inline bool LoRaMessage::has_tx_power()
const {
1163 return _internal_has_tx_power();
1165inline void LoRaMessage::clear_tx_power() {
1166 _impl_.tx_power_ = 13;
1167 _impl_._has_bits_[0] &= ~0x00000100u;
1169inline int32_t LoRaMessage::_internal_tx_power()
const {
1170 return _impl_.tx_power_;
1172inline int32_t LoRaMessage::tx_power()
const {
1174 return _internal_tx_power();
1176inline void LoRaMessage::_internal_set_tx_power(int32_t value) {
1177 _impl_._has_bits_[0] |= 0x00000100u;
1178 _impl_.tx_power_ = value;
1180inline void LoRaMessage::set_tx_power(int32_t value) {
1181 _internal_set_tx_power(value);
1186inline bool LoRaMessage::_internal_has_control()
const {
1187 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1188 PROTOBUF_ASSUME(!value || _impl_.control_ !=
nullptr);
1191inline bool LoRaMessage::has_control()
const {
1192 return _internal_has_control();
1194inline void LoRaMessage::clear_control() {
1195 if (_impl_.control_ !=
nullptr) _impl_.control_->Clear();
1196 _impl_._has_bits_[0] &= ~0x00000002u;
1198inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::_internal_control()
const {
1199 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* p = _impl_.control_;
1203inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::control()
const {
1205 return _internal_control();
1207inline void LoRaMessage::unsafe_arena_set_allocated_control(
1209 if (GetArenaForAllocation() ==
nullptr) {
1210 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.control_);
1212 _impl_.control_ = control;
1214 _impl_._has_bits_[0] |= 0x00000002u;
1216 _impl_._has_bits_[0] &= ~0x00000002u;
1220inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::release_control() {
1221 _impl_._has_bits_[0] &= ~0x00000002u;
1223 _impl_.control_ =
nullptr;
1224#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1225 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1226 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1227 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1229 if (GetArenaForAllocation() !=
nullptr) {
1230 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1235inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::unsafe_arena_release_control() {
1237 _impl_._has_bits_[0] &= ~0x00000002u;
1239 _impl_.control_ =
nullptr;
1242inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::_internal_mutable_control() {
1243 _impl_._has_bits_[0] |= 0x00000002u;
1244 if (_impl_.control_ ==
nullptr) {
1246 _impl_.control_ = p;
1248 return _impl_.control_;
1250inline ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* LoRaMessage::mutable_control() {
1256 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1257 if (message_arena ==
nullptr) {
1258 delete _impl_.control_;
1261 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1262 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(control);
1263 if (message_arena != submessage_arena) {
1264 control = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1265 message_arena, control, submessage_arena);
1267 _impl_._has_bits_[0] |= 0x00000002u;
1269 _impl_._has_bits_[0] &= ~0x00000002u;
1271 _impl_.control_ = control;
1276 #pragma GCC diagnostic pop
1286PROTOBUF_NAMESPACE_OPEN
1291 return ::jaiabot::protobuf::LoRaMessage_MessageType_descriptor();
1296 return ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice_descriptor();
1299PROTOBUF_NAMESPACE_CLOSE
1303#include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
@ kPortElevatorFieldNumber
@ kStbdElevatorFieldNumber
friend void swap(LoRaMessage_ControlSurfaces &a, LoRaMessage_ControlSurfaces &b)
int32_t port_elevator() const
int GetCachedSize() const final
void set_stbd_elevator(int32_t value)
void Swap(LoRaMessage_ControlSurfaces *other)
size_t ByteSizeLong() const final
bool IsInitialized() const final
bool has_port_elevator() const
void clear_stbd_elevator()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const LoRaMessage_ControlSurfaces & default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ClassData _class_data_
~LoRaMessage_ControlSurfaces() override
void set_rudder(int32_t value)
LoRaMessage_ControlSurfaces * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const LoRaMessage_ControlSurfaces * internal_default_instance()
void set_port_elevator(int32_t value)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void clear_port_elevator()
void CopyFrom(const LoRaMessage_ControlSurfaces &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
int32_t stbd_elevator() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
LoRaMessage_ControlSurfaces()
static constexpr int kIndexInFileMessages
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
LoRaMessage_ControlSurfaces & operator=(const LoRaMessage_ControlSurfaces &from)
void MergeFrom(const LoRaMessage_ControlSurfaces &from)
void set_motor(int32_t value)
void UnsafeArenaSwap(LoRaMessage_ControlSurfaces *other)
bool has_stbd_elevator() const
const std::string & LoRaMessage_MessageType_Name(T enum_t_value)
@ 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
bool LoRaMessage_ModemConfigChoice_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_ModemConfigChoice *value)
constexpr int LoRaMessage_MessageType_MessageType_ARRAYSIZE
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_ModemConfigChoice_descriptor()
bool LoRaMessage_MessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LoRaMessage_MessageType *value)
LoRaMessage_ModemConfigChoice
@ LoRaMessage_ModemConfigChoice_Bw500Cr45Sf128
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf2048
@ LoRaMessage_ModemConfigChoice_Bw31_25Cr48Sf512
@ LoRaMessage_ModemConfigChoice_Bw125Cr45Sf128
@ LoRaMessage_ModemConfigChoice_Bw125Cr48Sf4096
bool LoRaMessage_MessageType_IsValid(int value)
constexpr int LoRaMessage_ModemConfigChoice_ModemConfigChoice_ARRAYSIZE
const std::string & LoRaMessage_ModemConfigChoice_Name(T enum_t_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
constexpr LoRaMessage_ModemConfigChoice LoRaMessage_ModemConfigChoice_ModemConfigChoice_MIN
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaMessage_MessageType_descriptor()
LoRaMessageDefaultTypeInternal _LoRaMessage_default_instance_
constexpr LoRaMessage_MessageType LoRaMessage_MessageType_MessageType_MAX
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2ffeather_2eproto
::jaiabot::protobuf::LoRaMessage_ControlSurfaces * Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_MessageType >()
static const uint32_t offsets[]