4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2flora_5ftest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2flora_5ftest_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>
36 #include "dccl/option_extensions.pb.h"
38 #include "goby/middleware/protobuf/gpsd.pb.h"
40 #include <boost/units/quantity.hpp>
41 #include <boost/units/absolute.hpp>
42 #include <boost/units/dimensionless_type.hpp>
43 #include <boost/units/make_scaled_unit.hpp>
45 #include <boost/units/systems/si.hpp>
47 #include <google/protobuf/port_def.inc>
48 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2flora_5ftest_2eproto
49 PROTOBUF_NAMESPACE_OPEN
53 PROTOBUF_NAMESPACE_CLOSE
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
65 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
71 class LoRaReportDefaultTypeInternal;
74 class LoRaTestDataDefaultTypeInternal;
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::jaiabot::protobuf::LoRaReport* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaReport>(Arena*);
80 template<> ::jaiabot::protobuf::LoRaTestData* Arena::CreateMaybeMessage<::jaiabot::protobuf::LoRaTestData>(Arena*);
81 PROTOBUF_NAMESPACE_CLOSE
97 static_assert(::std::is_same<T, LoRaReport_Status>::value ||
98 ::std::is_integral<T>::value,
99 "Incorrect type passed to function LoRaReport_Status_Name.");
100 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
105 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<LoRaReport_Status>(
110 class LoRaTestData PROTOBUF_FINAL :
111 public ::PROTOBUF_NAMESPACE_ID::Message {
119 *
this = ::std::move(from);
122 inline LoRaTestData&
operator=(
const LoRaTestData& from) {
126 inline LoRaTestData&
operator=(LoRaTestData&& from) noexcept {
127 if (GetArena() == from.GetArena()) {
128 if (
this != &from) InternalSwap(&from);
136 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
139 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
143 return GetDescriptor();
146 return GetMetadataStatic().descriptor;
149 return GetMetadataStatic().reflection;
155 return reinterpret_cast<const LoRaTestData*
>(
158 static constexpr
int kIndexInFileMessages =
161 friend void swap(LoRaTestData& a, LoRaTestData& b) {
164 inline void Swap(LoRaTestData* other) {
165 if (other ==
this)
return;
166 if (GetArena() == other->GetArena()) {
169 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
173 if (other ==
this)
return;
174 GOOGLE_DCHECK(GetArena() == other->GetArena());
180 inline LoRaTestData*
New() const final {
181 return CreateMaybeMessage<LoRaTestData>(
nullptr);
184 LoRaTestData*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
185 return CreateMaybeMessage<LoRaTestData>(arena);
187 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
188 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
191 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
192 bool IsInitialized() const final;
194 size_t ByteSizeLong() const final;
195 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
196 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
197 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
198 int GetCachedSize() const final {
return _cached_size_.Get(); }
201 inline void SharedCtor();
202 inline void SharedDtor();
203 void SetCachedSize(
int size)
const final;
204 void InternalSwap(LoRaTestData* other);
205 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
206 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
207 return "jaiabot.protobuf.LoRaTestData";
212 static void ArenaDtor(
void*
object);
213 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
218 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
230 kLocationFieldNumber = 10,
231 kTimeFieldNumber = 1,
232 kIndexFieldNumber = 2,
237 bool _internal_has_location()
const;
240 const ::jaiabot::protobuf::GeographicCoordinate&
location()
const;
245 const ::jaiabot::protobuf::GeographicCoordinate& _internal_location()
const;
246 ::jaiabot::protobuf::GeographicCoordinate* _internal_mutable_location();
249 ::jaiabot::protobuf::GeographicCoordinate* location);
255 bool _internal_has_time()
const;
258 ::PROTOBUF_NAMESPACE_ID::uint64
time()
const;
259 void set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
261 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time()
const;
262 void _internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
268 bool _internal_has_index()
const;
271 ::PROTOBUF_NAMESPACE_ID::uint32
index()
const;
274 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_index()
const;
275 void _internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value);
281 typedef boost::units::make_scaled_unit<boost::units::unit<time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type
time_unit;
283 template<
typename Quantity >
285 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
287 template<
typename Quantity >
289 {
return Quantity(time() *
time_unit()); };
292 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
299 size_t RequiredFieldsByteSizeFallback()
const;
301 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
302 typedef void InternalArenaConstructable_;
303 typedef void DestructorSkippable_;
304 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
305 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
306 ::jaiabot::protobuf::GeographicCoordinate* location_;
307 ::PROTOBUF_NAMESPACE_ID::uint64 time_;
308 ::PROTOBUF_NAMESPACE_ID::uint32 index_;
309 friend struct ::TableStruct_jaiabot_2fmessages_2flora_5ftest_2eproto;
314 public ::PROTOBUF_NAMESPACE_ID::Message {
322 *
this = ::std::move(from);
329 inline LoRaReport&
operator=(LoRaReport&& from) noexcept {
330 if (GetArena() == from.GetArena()) {
331 if (
this != &from) InternalSwap(&from);
339 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
342 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
345 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
346 return GetDescriptor();
349 return GetMetadataStatic().descriptor;
352 return GetMetadataStatic().reflection;
358 return reinterpret_cast<const LoRaReport*
>(
361 static constexpr
int kIndexInFileMessages =
364 friend void swap(LoRaReport& a, LoRaReport& b) {
367 inline void Swap(LoRaReport* other) {
368 if (other ==
this)
return;
369 if (GetArena() == other->GetArena()) {
372 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
376 if (other ==
this)
return;
377 GOOGLE_DCHECK(GetArena() == other->GetArena());
383 inline LoRaReport*
New() const final {
384 return CreateMaybeMessage<LoRaReport>(
nullptr);
387 LoRaReport*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
388 return CreateMaybeMessage<LoRaReport>(arena);
390 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
391 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
394 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
395 bool IsInitialized() const final;
397 size_t ByteSizeLong() const final;
398 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
399 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
400 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
401 int GetCachedSize() const final {
return _cached_size_.Get(); }
404 inline void SharedCtor();
405 inline void SharedDtor();
406 void SetCachedSize(
int size)
const final;
407 void InternalSwap(LoRaReport* other);
408 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
409 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
410 return "jaiabot.protobuf.LoRaReport";
415 static void ArenaDtor(
void*
object);
416 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
421 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
442 static constexpr
int Status_ARRAYSIZE =
444 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
450 static_assert(::std::is_same<T, Status>::value ||
451 ::std::is_integral<T>::value,
452 "Incorrect type passed to function Status_Name.");
463 kFeatherMsgFieldNumber = 20,
464 kTestDataFieldNumber = 30,
465 kGpsTpvFieldNumber = 40,
466 kTimeFieldNumber = 1,
467 kRangeFieldNumber = 50,
468 kPacketSuccessFieldNumber = 60,
469 kStatusFieldNumber = 10,
474 bool _internal_has_feather_msg()
const;
482 const ::jaiabot::protobuf::LoRaMessage& _internal_feather_msg()
const;
483 ::jaiabot::protobuf::LoRaMessage* _internal_mutable_feather_msg();
486 ::jaiabot::protobuf::LoRaMessage* feather_msg);
492 bool _internal_has_test_data()
const;
495 const ::jaiabot::protobuf::LoRaTestData&
test_data()
const;
500 const ::jaiabot::protobuf::LoRaTestData& _internal_test_data()
const;
501 ::jaiabot::protobuf::LoRaTestData* _internal_mutable_test_data();
504 ::jaiabot::protobuf::LoRaTestData* test_data);
510 bool _internal_has_gps_tpv()
const;
513 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity&
gps_tpv()
const;
518 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity& _internal_gps_tpv()
const;
519 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* _internal_mutable_gps_tpv();
522 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* gps_tpv);
528 bool _internal_has_time()
const;
531 ::PROTOBUF_NAMESPACE_ID::uint64
time()
const;
532 void set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
534 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time()
const;
535 void _internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
541 bool _internal_has_range()
const;
547 double _internal_range()
const;
548 void _internal_set_range(
double value);
554 bool _internal_has_packet_success()
const;
560 double _internal_packet_success()
const;
561 void _internal_set_packet_success(
double value);
567 bool _internal_has_status()
const;
579 typedef boost::units::make_scaled_unit<boost::units::unit<time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type
time_unit;
581 template<
typename Quantity >
583 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
585 template<
typename Quantity >
587 {
return Quantity(time() *
time_unit()); };
590 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
592 typedef boost::units::derived_dimension< boost::units::length_base_dimension,1 >::type
range_dimension;
594 typedef boost::units::unit<range_dimension,boost::units::si::system>
range_unit;
596 template<
typename Quantity >
598 { set_range(boost::units::quantity<range_unit,double >(value_w_units).value() ); };
600 template<
typename Quantity >
605 {
return range_with_units<boost::units::quantity< range_unit,double > >(); };
612 size_t RequiredFieldsByteSizeFallback()
const;
614 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
615 typedef void InternalArenaConstructable_;
616 typedef void DestructorSkippable_;
617 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
618 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
619 ::jaiabot::protobuf::LoRaMessage* feather_msg_;
620 ::jaiabot::protobuf::LoRaTestData* test_data_;
621 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* gps_tpv_;
622 ::PROTOBUF_NAMESPACE_ID::uint64 time_;
624 double packet_success_;
626 friend struct ::TableStruct_jaiabot_2fmessages_2flora_5ftest_2eproto;
634 #pragma GCC diagnostic push
635 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
640 inline bool LoRaTestData::_internal_has_time()
const {
641 bool value = (_has_bits_[0] & 0x00000002u) != 0;
644 inline bool LoRaTestData::has_time()
const {
645 return _internal_has_time();
647 inline void LoRaTestData::clear_time() {
648 time_ = PROTOBUF_ULONGLONG(0);
649 _has_bits_[0] &= ~0x00000002u;
651 inline ::PROTOBUF_NAMESPACE_ID::uint64 LoRaTestData::_internal_time()
const {
654 inline ::PROTOBUF_NAMESPACE_ID::uint64 LoRaTestData::time()
const {
656 return _internal_time();
658 inline void LoRaTestData::_internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
659 _has_bits_[0] |= 0x00000002u;
662 inline void LoRaTestData::set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
663 _internal_set_time(value);
668 inline bool LoRaTestData::_internal_has_index()
const {
669 bool value = (_has_bits_[0] & 0x00000004u) != 0;
672 inline bool LoRaTestData::has_index()
const {
673 return _internal_has_index();
675 inline void LoRaTestData::clear_index() {
677 _has_bits_[0] &= ~0x00000004u;
679 inline ::PROTOBUF_NAMESPACE_ID::uint32 LoRaTestData::_internal_index()
const {
682 inline ::PROTOBUF_NAMESPACE_ID::uint32 LoRaTestData::index()
const {
684 return _internal_index();
686 inline void LoRaTestData::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) {
687 _has_bits_[0] |= 0x00000004u;
690 inline void LoRaTestData::set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) {
691 _internal_set_index(value);
696 inline bool LoRaTestData::_internal_has_location()
const {
697 bool value = (_has_bits_[0] & 0x00000001u) != 0;
698 PROTOBUF_ASSUME(!value || location_ !=
nullptr);
701 inline bool LoRaTestData::has_location()
const {
702 return _internal_has_location();
704 inline const ::jaiabot::protobuf::GeographicCoordinate& LoRaTestData::_internal_location()
const {
705 const ::jaiabot::protobuf::GeographicCoordinate* p = location_;
706 return p !=
nullptr ? *p : *
reinterpret_cast<const ::jaiabot::protobuf::GeographicCoordinate*
>(
709 inline const ::jaiabot::protobuf::GeographicCoordinate& LoRaTestData::location()
const {
711 return _internal_location();
713 inline void LoRaTestData::unsafe_arena_set_allocated_location(
714 ::jaiabot::protobuf::GeographicCoordinate* location) {
715 if (GetArena() ==
nullptr) {
716 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(location_);
718 location_ = location;
720 _has_bits_[0] |= 0x00000001u;
722 _has_bits_[0] &= ~0x00000001u;
726 inline ::jaiabot::protobuf::GeographicCoordinate* LoRaTestData::release_location() {
727 auto temp = unsafe_arena_release_location();
728 if (GetArena() !=
nullptr) {
729 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
733 inline ::jaiabot::protobuf::GeographicCoordinate* LoRaTestData::unsafe_arena_release_location() {
735 _has_bits_[0] &= ~0x00000001u;
736 ::jaiabot::protobuf::GeographicCoordinate* temp = location_;
740 inline ::jaiabot::protobuf::GeographicCoordinate* LoRaTestData::_internal_mutable_location() {
741 _has_bits_[0] |= 0x00000001u;
742 if (location_ ==
nullptr) {
743 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArena());
748 inline ::jaiabot::protobuf::GeographicCoordinate* LoRaTestData::mutable_location() {
750 return _internal_mutable_location();
752 inline void LoRaTestData::set_allocated_location(::jaiabot::protobuf::GeographicCoordinate* location) {
753 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
754 if (message_arena ==
nullptr) {
755 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(location_);
758 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
759 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(location)->GetArena();
760 if (message_arena != submessage_arena) {
761 location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
762 message_arena, location, submessage_arena);
764 _has_bits_[0] |= 0x00000001u;
766 _has_bits_[0] &= ~0x00000001u;
768 location_ = location;
777 inline bool LoRaReport::_internal_has_time()
const {
778 bool value = (_has_bits_[0] & 0x00000008u) != 0;
781 inline bool LoRaReport::has_time()
const {
782 return _internal_has_time();
784 inline void LoRaReport::clear_time() {
785 time_ = PROTOBUF_ULONGLONG(0);
786 _has_bits_[0] &= ~0x00000008u;
788 inline ::PROTOBUF_NAMESPACE_ID::uint64 LoRaReport::_internal_time()
const {
791 inline ::PROTOBUF_NAMESPACE_ID::uint64 LoRaReport::time()
const {
793 return _internal_time();
795 inline void LoRaReport::_internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
796 _has_bits_[0] |= 0x00000008u;
799 inline void LoRaReport::set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
800 _internal_set_time(value);
805 inline bool LoRaReport::_internal_has_status()
const {
806 bool value = (_has_bits_[0] & 0x00000040u) != 0;
809 inline bool LoRaReport::has_status()
const {
810 return _internal_has_status();
812 inline void LoRaReport::clear_status() {
814 _has_bits_[0] &= ~0x00000040u;
821 return _internal_status();
825 _has_bits_[0] |= 0x00000040u;
829 _internal_set_status(value);
834 inline bool LoRaReport::_internal_has_feather_msg()
const {
835 bool value = (_has_bits_[0] & 0x00000001u) != 0;
836 PROTOBUF_ASSUME(!value || feather_msg_ !=
nullptr);
839 inline bool LoRaReport::has_feather_msg()
const {
840 return _internal_has_feather_msg();
842 inline const ::jaiabot::protobuf::LoRaMessage& LoRaReport::_internal_feather_msg()
const {
843 const ::jaiabot::protobuf::LoRaMessage* p = feather_msg_;
844 return p !=
nullptr ? *p : *
reinterpret_cast<const ::jaiabot::protobuf::LoRaMessage*
>(
847 inline const ::jaiabot::protobuf::LoRaMessage& LoRaReport::feather_msg()
const {
849 return _internal_feather_msg();
851 inline void LoRaReport::unsafe_arena_set_allocated_feather_msg(
852 ::jaiabot::protobuf::LoRaMessage* feather_msg) {
853 if (GetArena() ==
nullptr) {
854 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(feather_msg_);
856 feather_msg_ = feather_msg;
858 _has_bits_[0] |= 0x00000001u;
860 _has_bits_[0] &= ~0x00000001u;
864 inline ::jaiabot::protobuf::LoRaMessage* LoRaReport::release_feather_msg() {
865 auto temp = unsafe_arena_release_feather_msg();
866 if (GetArena() !=
nullptr) {
867 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
871 inline ::jaiabot::protobuf::LoRaMessage* LoRaReport::unsafe_arena_release_feather_msg() {
873 _has_bits_[0] &= ~0x00000001u;
874 ::jaiabot::protobuf::LoRaMessage* temp = feather_msg_;
875 feather_msg_ =
nullptr;
878 inline ::jaiabot::protobuf::LoRaMessage* LoRaReport::_internal_mutable_feather_msg() {
879 _has_bits_[0] |= 0x00000001u;
880 if (feather_msg_ ==
nullptr) {
881 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage>(GetArena());
886 inline ::jaiabot::protobuf::LoRaMessage* LoRaReport::mutable_feather_msg() {
888 return _internal_mutable_feather_msg();
890 inline void LoRaReport::set_allocated_feather_msg(::jaiabot::protobuf::LoRaMessage* feather_msg) {
891 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
892 if (message_arena ==
nullptr) {
893 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(feather_msg_);
896 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
897 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(feather_msg)->GetArena();
898 if (message_arena != submessage_arena) {
899 feather_msg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
900 message_arena, feather_msg, submessage_arena);
902 _has_bits_[0] |= 0x00000001u;
904 _has_bits_[0] &= ~0x00000001u;
906 feather_msg_ = feather_msg;
911 inline bool LoRaReport::_internal_has_test_data()
const {
912 bool value = (_has_bits_[0] & 0x00000002u) != 0;
913 PROTOBUF_ASSUME(!value || test_data_ !=
nullptr);
916 inline bool LoRaReport::has_test_data()
const {
917 return _internal_has_test_data();
919 inline void LoRaReport::clear_test_data() {
920 if (test_data_ !=
nullptr) test_data_->Clear();
921 _has_bits_[0] &= ~0x00000002u;
923 inline const ::jaiabot::protobuf::LoRaTestData& LoRaReport::_internal_test_data()
const {
924 const ::jaiabot::protobuf::LoRaTestData* p = test_data_;
925 return p !=
nullptr ? *p : *
reinterpret_cast<const ::jaiabot::protobuf::LoRaTestData*
>(
928 inline const ::jaiabot::protobuf::LoRaTestData& LoRaReport::test_data()
const {
930 return _internal_test_data();
932 inline void LoRaReport::unsafe_arena_set_allocated_test_data(
933 ::jaiabot::protobuf::LoRaTestData* test_data) {
934 if (GetArena() ==
nullptr) {
935 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(test_data_);
937 test_data_ = test_data;
939 _has_bits_[0] |= 0x00000002u;
941 _has_bits_[0] &= ~0x00000002u;
945 inline ::jaiabot::protobuf::LoRaTestData* LoRaReport::release_test_data() {
946 auto temp = unsafe_arena_release_test_data();
947 if (GetArena() !=
nullptr) {
948 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
952 inline ::jaiabot::protobuf::LoRaTestData* LoRaReport::unsafe_arena_release_test_data() {
954 _has_bits_[0] &= ~0x00000002u;
955 ::jaiabot::protobuf::LoRaTestData* temp = test_data_;
956 test_data_ =
nullptr;
959 inline ::jaiabot::protobuf::LoRaTestData* LoRaReport::_internal_mutable_test_data() {
960 _has_bits_[0] |= 0x00000002u;
961 if (test_data_ ==
nullptr) {
962 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaTestData>(GetArena());
967 inline ::jaiabot::protobuf::LoRaTestData* LoRaReport::mutable_test_data() {
969 return _internal_mutable_test_data();
971 inline void LoRaReport::set_allocated_test_data(::jaiabot::protobuf::LoRaTestData* test_data) {
972 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
973 if (message_arena ==
nullptr) {
977 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
978 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(test_data);
979 if (message_arena != submessage_arena) {
980 test_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
981 message_arena, test_data, submessage_arena);
983 _has_bits_[0] |= 0x00000002u;
985 _has_bits_[0] &= ~0x00000002u;
987 test_data_ = test_data;
992 inline bool LoRaReport::_internal_has_gps_tpv()
const {
993 bool value = (_has_bits_[0] & 0x00000004u) != 0;
994 PROTOBUF_ASSUME(!value || gps_tpv_ !=
nullptr);
997 inline bool LoRaReport::has_gps_tpv()
const {
998 return _internal_has_gps_tpv();
1000 inline const ::goby::middleware::protobuf::gpsd::TimePositionVelocity& LoRaReport::_internal_gps_tpv()
const {
1001 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity* p = gps_tpv_;
1002 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::gpsd::TimePositionVelocity*
>(
1003 &::goby::middleware::protobuf::gpsd::_TimePositionVelocity_default_instance_);
1005 inline const ::goby::middleware::protobuf::gpsd::TimePositionVelocity& LoRaReport::gps_tpv()
const {
1007 return _internal_gps_tpv();
1009 inline void LoRaReport::unsafe_arena_set_allocated_gps_tpv(
1010 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* gps_tpv) {
1011 if (GetArena() ==
nullptr) {
1012 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gps_tpv_);
1016 _has_bits_[0] |= 0x00000004u;
1018 _has_bits_[0] &= ~0x00000004u;
1022 inline ::goby::middleware::protobuf::gpsd::TimePositionVelocity* LoRaReport::release_gps_tpv() {
1023 auto temp = unsafe_arena_release_gps_tpv();
1024 if (GetArena() !=
nullptr) {
1025 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1029 inline ::goby::middleware::protobuf::gpsd::TimePositionVelocity* LoRaReport::unsafe_arena_release_gps_tpv() {
1031 _has_bits_[0] &= ~0x00000004u;
1032 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* temp = gps_tpv_;
1036 inline ::goby::middleware::protobuf::gpsd::TimePositionVelocity* LoRaReport::_internal_mutable_gps_tpv() {
1037 _has_bits_[0] |= 0x00000004u;
1038 if (gps_tpv_ ==
nullptr) {
1039 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::gpsd::TimePositionVelocity>(GetArena());
1044 inline ::goby::middleware::protobuf::gpsd::TimePositionVelocity* LoRaReport::mutable_gps_tpv() {
1046 return _internal_mutable_gps_tpv();
1048 inline void LoRaReport::set_allocated_gps_tpv(::goby::middleware::protobuf::gpsd::TimePositionVelocity* gps_tpv) {
1049 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1050 if (message_arena ==
nullptr) {
1051 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gps_tpv_);
1054 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1055 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(gps_tpv)->GetArena();
1056 if (message_arena != submessage_arena) {
1057 gps_tpv = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1058 message_arena, gps_tpv, submessage_arena);
1060 _has_bits_[0] |= 0x00000004u;
1062 _has_bits_[0] &= ~0x00000004u;
1069 inline bool LoRaReport::_internal_has_range()
const {
1070 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1073 inline bool LoRaReport::has_range()
const {
1074 return _internal_has_range();
1076 inline void LoRaReport::clear_range() {
1078 _has_bits_[0] &= ~0x00000010u;
1080 inline double LoRaReport::_internal_range()
const {
1083 inline double LoRaReport::range()
const {
1085 return _internal_range();
1087 inline void LoRaReport::_internal_set_range(
double value) {
1088 _has_bits_[0] |= 0x00000010u;
1091 inline void LoRaReport::set_range(
double value) {
1092 _internal_set_range(value);
1097 inline bool LoRaReport::_internal_has_packet_success()
const {
1098 bool value = (_has_bits_[0] & 0x00000020u) != 0;
1101 inline bool LoRaReport::has_packet_success()
const {
1102 return _internal_has_packet_success();
1104 inline void LoRaReport::clear_packet_success() {
1105 packet_success_ = 0;
1106 _has_bits_[0] &= ~0x00000020u;
1108 inline double LoRaReport::_internal_packet_success()
const {
1109 return packet_success_;
1111 inline double LoRaReport::packet_success()
const {
1113 return _internal_packet_success();
1115 inline void LoRaReport::_internal_set_packet_success(
double value) {
1116 _has_bits_[0] |= 0x00000020u;
1117 packet_success_ = value;
1119 inline void LoRaReport::set_packet_success(
double value) {
1120 _internal_set_packet_success(value);
1125 #pragma GCC diagnostic pop
1135 PROTOBUF_NAMESPACE_OPEN
1139 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaReport_Status>() {
1143 PROTOBUF_NAMESPACE_CLOSE
1147 #include <google/protobuf/port_undef.inc>
void set_index(::PROTOBUF_NAMESPACE_ID::uint32 value)
LoRaReport * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
friend void swap(LoRaReport &a, LoRaReport &b)
void set_allocated_test_data(::jaiabot::protobuf::LoRaTestData *test_data)
LoRaReport(LoRaReport &&from) noexcept
static const LoRaReport & default_instance()
::goby::middleware::protobuf::gpsd::TimePositionVelocity * mutable_gps_tpv()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static bool Status_IsValid(int value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Status_descriptor()
void set_time_with_units(Quantity value_w_units)
::jaiabot::protobuf::GeographicCoordinate * mutable_location()
static const LoRaReport * internal_default_instance()
LoRaTestData & operator=(const LoRaTestData &from)
const ::goby::middleware::protobuf::gpsd::TimePositionVelocity & gps_tpv() const
static const LoRaTestData & default_instance()
boost::units::derived_dimension< boost::units::length_base_dimension, 1 >::type range_dimension
void UnsafeArenaSwap(LoRaTestData *other)
void CopyFrom(const LoRaReport &from)
boost::units::unit< range_dimension, boost::units::si::system > range_unit
boost::units::time_dimension time_dimension
::jaiabot::protobuf::LoRaMessage * mutable_feather_msg()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::jaiabot::protobuf::LoRaTestData * mutable_test_data()
LoRaTestData(LoRaTestData &&from) noexcept
LoRaReport * New() const final
::jaiabot::protobuf::LoRaTestData * unsafe_arena_release_test_data()
static const std::string & Status_Name(T enum_t_value)
::jaiabot::protobuf::LoRaReport_Status status() const
void Swap(LoRaTestData *other)
bool has_test_data() const
LoRaTestData(const LoRaTestData &from)
LoRaReport & operator=(const LoRaReport &from)
void set_allocated_feather_msg(::jaiabot::protobuf::LoRaMessage *feather_msg)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
LoRaReport & operator=(LoRaReport &&from) noexcept
void MergeFrom(const LoRaTestData &from)
const ::jaiabot::protobuf::GeographicCoordinate & location() const
::jaiabot::protobuf::GeographicCoordinate * release_location()
::goby::middleware::protobuf::gpsd::TimePositionVelocity * release_gps_tpv()
double packet_success() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void Swap(LoRaReport *other)
void UnsafeArenaSwap(LoRaReport *other)
void unsafe_arena_set_allocated_location(::jaiabot::protobuf::GeographicCoordinate *location)
::jaiabot::protobuf::GeographicCoordinate * unsafe_arena_release_location()
const ::jaiabot::protobuf::LoRaTestData & test_data() const
::jaiabot::protobuf::LoRaTestData * release_test_data()
::PROTOBUF_NAMESPACE_ID::uint64 time() const
::goby::middleware::protobuf::gpsd::TimePositionVelocity * unsafe_arena_release_gps_tpv()
void set_range(double value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_range_with_units(Quantity value_w_units)
LoRaTestData * New() const final
void MergeFrom(const LoRaReport &from)
Quantity range_with_units() const
LoRaTestData * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void unsafe_arena_set_allocated_feather_msg(::jaiabot::protobuf::LoRaMessage *feather_msg)
boost::units::quantity< range_unit, double > range_with_units() const
::jaiabot::protobuf::LoRaMessage * unsafe_arena_release_feather_msg()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_time(::PROTOBUF_NAMESPACE_ID::uint64 value)
void unsafe_arena_set_allocated_test_data(::jaiabot::protobuf::LoRaTestData *test_data)
const ::jaiabot::protobuf::LoRaMessage & feather_msg() const
LoRaTestData & operator=(LoRaTestData &&from) noexcept
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
LoRaReport(const LoRaReport &from)
bool has_feather_msg() const
void unsafe_arena_set_allocated_gps_tpv(::goby::middleware::protobuf::gpsd::TimePositionVelocity *gps_tpv)
static void InitAsDefaultInstance()
LoRaTestData(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::uint32 index() const
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(LoRaTestData &a, LoRaTestData &b)
void set_allocated_gps_tpv(::goby::middleware::protobuf::gpsd::TimePositionVelocity *gps_tpv)
bool has_location() const
::jaiabot::protobuf::LoRaMessage * release_feather_msg()
void set_packet_success(double value)
static bool Status_Parse(const std::string &name, Status *value)
LoRaReport(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Quantity time_with_units() const
void CopyFrom(const LoRaTestData &from)
void set_status(::jaiabot::protobuf::LoRaReport_Status value)
bool has_packet_success() const
void set_allocated_location(::jaiabot::protobuf::GeographicCoordinate *location)
static const LoRaTestData * internal_default_instance()
void clear_packet_success()
boost::units::make_scaled_unit< boost::units::unit< time_dimension, boost::units::si::system >, boost::units::scale< 10, boost::units::static_rational<-6 > > >::type time_unit
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2flora_5ftest_2eproto
constexpr LoRaReport_Status LoRaReport_Status_Status_MAX
bool LoRaReport_Status_Parse(const std::string &name, LoRaReport_Status *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * LoRaReport_Status_descriptor()
constexpr LoRaReport_Status LoRaReport_Status_Status_MIN
LoRaTestDataDefaultTypeInternal _LoRaTestData_default_instance_
LoRaReportDefaultTypeInternal _LoRaReport_default_instance_
bool LoRaReport_Status_IsValid(int value)
@ LoRaReport_Status_NO_PACKET
@ LoRaReport_Status_GOOD_RECEPTION
GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_
constexpr int LoRaReport_Status_Status_ARRAYSIZE
LoRaMessageDefaultTypeInternal _LoRaMessage_default_instance_
const std::string & LoRaReport_Status_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)