4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2ffeather_2eproto
44 static const ::google::protobuf::internal::ParseTableField
entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
46 static const ::google::protobuf::internal::ParseTable
schema[2];
49 static const ::google::protobuf::uint32
offsets[];
56 class LoRaMessageDefaultTypeInternal;
58 class LoRaMessage_ControlSurfaces;
59 class LoRaMessage_ControlSurfacesDefaultTypeInternal;
89 return ::google::protobuf::internal::NameOfEnum(
94 return ::google::protobuf::internal::ParseNamedEnum<LoRaMessage_MessageType>(
111 return ::google::protobuf::internal::NameOfEnum(
116 return ::google::protobuf::internal::ParseNamedEnum<LoRaMessage_ModemConfigChoice>(
135 *
this = ::std::move(from);
139 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
140 if (
this != &from) InternalSwap(&from);
148 return _internal_metadata_.unknown_fields();
151 return _internal_metadata_.mutable_unknown_fields();
154 static const ::google::protobuf::Descriptor*
descriptor();
173 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(NULL);
177 return CreateMaybeMessage<LoRaMessage_ControlSurfaces>(arena);
179 void CopyFrom(const ::google::protobuf::Message& from)
final;
180 void MergeFrom(const ::google::protobuf::Message& from)
final;
188 ::
google::protobuf::io::CodedInputStream* input) final;
190 ::
google::protobuf::io::CodedOutputStream* output) const final;
192 bool deterministic, ::
google::protobuf::uint8* target) const final;
198 void SetCachedSize(
int size)
const final;
201 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
204 inline void* MaybeArenaPtr()
const {
209 ::google::protobuf::Metadata
GetMetadata() const final;
245 void set_has_motor();
246 void clear_has_motor();
247 void set_has_port_elevator();
248 void clear_has_port_elevator();
249 void set_has_stbd_elevator();
250 void clear_has_stbd_elevator();
251 void set_has_rudder();
252 void clear_has_rudder();
255 size_t RequiredFieldsByteSizeFallback() const;
257 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
258 ::
google::protobuf::internal::HasBits<1> _has_bits_;
259 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
260 ::
google::protobuf::int32 motor_;
261 ::
google::protobuf::int32 port_elevator_;
262 ::
google::protobuf::int32 stbd_elevator_;
263 ::
google::protobuf::int32 rudder_;
282 *
this = ::std::move(from);
285 inline LoRaMessage&
operator=(LoRaMessage&& from) noexcept {
286 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
287 if (
this != &from) InternalSwap(&from);
295 return _internal_metadata_.unknown_fields();
298 return _internal_metadata_.mutable_unknown_fields();
301 static const ::google::protobuf::Descriptor*
descriptor();
320 return CreateMaybeMessage<LoRaMessage>(NULL);
324 return CreateMaybeMessage<LoRaMessage>(arena);
326 void CopyFrom(const ::google::protobuf::Message& from)
final;
327 void MergeFrom(const ::google::protobuf::Message& from)
final;
335 ::
google::protobuf::io::CodedInputStream* input) final;
337 ::
google::protobuf::io::CodedOutputStream* output) const final;
339 bool deterministic, ::
google::protobuf::uint8* target) const final;
345 void SetCachedSize(
int size)
const final;
348 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
351 inline void* MaybeArenaPtr()
const {
356 ::google::protobuf::Metadata
GetMetadata() const final;
379 static inline
bool MessageType_IsValid(
int value) {
386 static const int MessageType_ARRAYSIZE =
388 static inline const ::google::protobuf::EnumDescriptor*
418 static const int ModemConfigChoice_ARRAYSIZE =
420 static inline const ::google::protobuf::EnumDescriptor*
435 bool has_data()
const;
437 static const int kDataFieldNumber = 3;
438 const ::std::string& data()
const;
439 void set_data(const ::std::string& value);
441 void set_data(::std::string&& value);
443 void set_data(
const char* value);
444 void set_data(
const void* value,
size_t size);
445 ::std::string* mutable_data();
446 ::std::string* release_data();
447 void set_allocated_data(::std::string* data);
450 bool has_control()
const;
451 void clear_control();
452 static const int kControlFieldNumber = 30;
454 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& _internal_control()
const;
456 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& control()
const;
462 bool has_src()
const;
464 static const int kSrcFieldNumber = 1;
465 ::google::protobuf::int32 src()
const;
466 void set_src(::google::protobuf::int32 value);
469 bool has_dest()
const;
471 static const int kDestFieldNumber = 2;
472 ::google::protobuf::int32 dest()
const;
473 void set_dest(::google::protobuf::int32 value);
478 static const int kIdFieldNumber = 5;
479 ::google::protobuf::int32 id()
const;
480 void set_id(::google::protobuf::int32 value);
483 bool has_flags()
const;
485 static const int kFlagsFieldNumber = 6;
486 ::google::protobuf::int32 flags()
const;
487 void set_flags(::google::protobuf::int32 value);
490 bool has_rssi()
const;
492 static const int kRssiFieldNumber = 7;
493 ::google::protobuf::int32 rssi()
const;
494 void set_rssi(::google::protobuf::int32 value);
497 bool has_transmit_successful()
const;
498 void clear_transmit_successful();
499 static const int kTransmitSuccessfulFieldNumber = 10;
500 bool transmit_successful()
const;
501 void set_transmit_successful(
bool value);
504 bool has_tx_power()
const;
505 void clear_tx_power();
506 static const int kTxPowerFieldNumber = 21;
507 ::google::protobuf::int32 tx_power()
const;
508 void set_tx_power(::google::protobuf::int32 value);
511 bool has_type()
const;
513 static const int kTypeFieldNumber = 4;
518 bool has_modem_config()
const;
519 void clear_modem_config();
520 static const int kModemConfigFieldNumber = 20;
527 void clear_has_src();
529 void clear_has_dest();
531 void clear_has_data();
533 void clear_has_type();
536 void set_has_flags();
537 void clear_has_flags();
539 void clear_has_rssi();
540 void set_has_transmit_successful();
541 void clear_has_transmit_successful();
542 void set_has_modem_config();
543 void clear_has_modem_config();
544 void set_has_tx_power();
545 void clear_has_tx_power();
546 void set_has_control();
547 void clear_has_control();
550 size_t RequiredFieldsByteSizeFallback()
const;
552 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
553 ::google::protobuf::internal::HasBits<1> _has_bits_;
554 mutable ::google::protobuf::internal::CachedSize _cached_size_;
555 ::google::protobuf::internal::ArenaStringPtr data_;
557 ::google::protobuf::int32 src_;
558 ::google::protobuf::int32 dest_;
559 ::google::protobuf::int32 id_;
560 ::google::protobuf::int32 flags_;
561 ::google::protobuf::int32 rssi_;
562 bool transmit_successful_;
563 ::google::protobuf::int32 tx_power_;
566 friend struct ::protobuf_jaiabot_2fmessages_2ffeather_2eproto::TableStruct;
574 #pragma GCC diagnostic push
575 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
581 return (_has_bits_[0] & 0x00000001u) != 0;
583 inline void LoRaMessage_ControlSurfaces::set_has_motor() {
584 _has_bits_[0] |= 0x00000001u;
586 inline void LoRaMessage_ControlSurfaces::clear_has_motor() {
587 _has_bits_[0] &= ~0x00000001u;
605 return (_has_bits_[0] & 0x00000002u) != 0;
607 inline void LoRaMessage_ControlSurfaces::set_has_port_elevator() {
608 _has_bits_[0] |= 0x00000002u;
610 inline void LoRaMessage_ControlSurfaces::clear_has_port_elevator() {
611 _has_bits_[0] &= ~0x00000002u;
615 clear_has_port_elevator();
619 return port_elevator_;
622 set_has_port_elevator();
623 port_elevator_ = value;
629 return (_has_bits_[0] & 0x00000004u) != 0;
631 inline void LoRaMessage_ControlSurfaces::set_has_stbd_elevator() {
632 _has_bits_[0] |= 0x00000004u;
634 inline void LoRaMessage_ControlSurfaces::clear_has_stbd_elevator() {
635 _has_bits_[0] &= ~0x00000004u;
639 clear_has_stbd_elevator();
643 return stbd_elevator_;
646 set_has_stbd_elevator();
647 stbd_elevator_ = value;
653 return (_has_bits_[0] & 0x00000008u) != 0;
655 inline void LoRaMessage_ControlSurfaces::set_has_rudder() {
656 _has_bits_[0] |= 0x00000008u;
658 inline void LoRaMessage_ControlSurfaces::clear_has_rudder() {
659 _has_bits_[0] &= ~0x00000008u;
681 return (_has_bits_[0] & 0x00000004u) != 0;
683 inline void LoRaMessage::set_has_src() {
684 _has_bits_[0] |= 0x00000004u;
686 inline void LoRaMessage::clear_has_src() {
687 _has_bits_[0] &= ~0x00000004u;
705 return (_has_bits_[0] & 0x00000008u) != 0;
707 inline void LoRaMessage::set_has_dest() {
708 _has_bits_[0] |= 0x00000008u;
710 inline void LoRaMessage::clear_has_dest() {
711 _has_bits_[0] &= ~0x00000008u;
729 return (_has_bits_[0] & 0x00000001u) != 0;
731 inline void LoRaMessage::set_has_data() {
732 _has_bits_[0] |= 0x00000001u;
734 inline void LoRaMessage::clear_has_data() {
735 _has_bits_[0] &= ~0x00000001u;
738 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
743 return data_.GetNoArena();
747 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
754 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
759 GOOGLE_DCHECK(value != NULL);
761 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
766 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
767 ::std::string(
reinterpret_cast<const char*
>(value), size));
773 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
781 return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
789 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
795 return (_has_bits_[0] & 0x00000200u) != 0;
797 inline void LoRaMessage::set_has_type() {
798 _has_bits_[0] |= 0x00000200u;
800 inline void LoRaMessage::clear_has_type() {
801 _has_bits_[0] &= ~0x00000200u;
820 return (_has_bits_[0] & 0x00000010u) != 0;
822 inline void LoRaMessage::set_has_id() {
823 _has_bits_[0] |= 0x00000010u;
825 inline void LoRaMessage::clear_has_id() {
826 _has_bits_[0] &= ~0x00000010u;
844 return (_has_bits_[0] & 0x00000020u) != 0;
846 inline void LoRaMessage::set_has_flags() {
847 _has_bits_[0] |= 0x00000020u;
849 inline void LoRaMessage::clear_has_flags() {
850 _has_bits_[0] &= ~0x00000020u;
868 return (_has_bits_[0] & 0x00000040u) != 0;
870 inline void LoRaMessage::set_has_rssi() {
871 _has_bits_[0] |= 0x00000040u;
873 inline void LoRaMessage::clear_has_rssi() {
874 _has_bits_[0] &= ~0x00000040u;
892 return (_has_bits_[0] & 0x00000080u) != 0;
894 inline void LoRaMessage::set_has_transmit_successful() {
895 _has_bits_[0] |= 0x00000080u;
897 inline void LoRaMessage::clear_has_transmit_successful() {
898 _has_bits_[0] &= ~0x00000080u;
901 transmit_successful_ =
false;
902 clear_has_transmit_successful();
906 return transmit_successful_;
909 set_has_transmit_successful();
910 transmit_successful_ = value;
916 return (_has_bits_[0] & 0x00000400u) != 0;
918 inline void LoRaMessage::set_has_modem_config() {
919 _has_bits_[0] |= 0x00000400u;
921 inline void LoRaMessage::clear_has_modem_config() {
922 _has_bits_[0] &= ~0x00000400u;
926 clear_has_modem_config();
934 set_has_modem_config();
935 modem_config_ = value;
941 return (_has_bits_[0] & 0x00000100u) != 0;
943 inline void LoRaMessage::set_has_tx_power() {
944 _has_bits_[0] |= 0x00000100u;
946 inline void LoRaMessage::clear_has_tx_power() {
947 _has_bits_[0] &= ~0x00000100u;
951 clear_has_tx_power();
965 return (_has_bits_[0] & 0x00000002u) != 0;
967 inline void LoRaMessage::set_has_control() {
968 _has_bits_[0] |= 0x00000002u;
970 inline void LoRaMessage::clear_has_control() {
971 _has_bits_[0] &= ~0x00000002u;
974 if (control_ != NULL) control_->Clear();
977 inline const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces& LoRaMessage::_internal_control()
const {
981 const ::jaiabot::protobuf::LoRaMessage_ControlSurfaces* p = control_;
995 if (control_ == NULL) {
996 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage_ControlSurfaces>(GetArenaNoVirtual());
1003 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1004 if (message_arena == NULL) {
1008 ::google::protobuf::Arena* submessage_arena = NULL;
1009 if (message_arena != submessage_arena) {
1010 control = ::google::protobuf::internal::GetOwnedMessage(
1011 message_arena, control, submessage_arena);
1015 clear_has_control();
1022 #pragma GCC diagnostic pop
1033 namespace protobuf {
1037 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_MessageType>() {
1042 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaMessage_ModemConfigChoice>() {
1051 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2ffeather_2eproto