4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2flora_5ftest_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2flora_5ftest_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 "dccl/option_extensions.pb.h"
36 #include "goby/middleware/protobuf/gpsd.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <boost/units/systems/si.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2flora_5ftest_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[2];
55 static const ::google::protobuf::uint32
offsets[];
62 class LoRaReportDefaultTypeInternal;
65 class LoRaTestDataDefaultTypeInternal;
89 return ::google::protobuf::internal::NameOfEnum(
94 return ::google::protobuf::internal::ParseNamedEnum<LoRaReport_Status>(
113 *
this = ::std::move(from);
117 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
118 if (
this != &from) InternalSwap(&from);
126 return _internal_metadata_.unknown_fields();
129 return _internal_metadata_.mutable_unknown_fields();
132 static const ::google::protobuf::Descriptor*
descriptor();
151 return CreateMaybeMessage<LoRaTestData>(NULL);
155 return CreateMaybeMessage<LoRaTestData>(arena);
157 void CopyFrom(const ::google::protobuf::Message& from)
final;
158 void MergeFrom(const ::google::protobuf::Message& from)
final;
166 ::
google::protobuf::io::CodedInputStream* input) final;
168 ::
google::protobuf::io::CodedOutputStream* output) const final;
170 bool deterministic, ::
google::protobuf::uint8* target) const final;
176 void SetCachedSize(
int size)
const final;
179 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
182 inline void* MaybeArenaPtr()
const {
187 ::google::protobuf::Metadata
GetMetadata() const final;
222 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;
224 template<
typename Quantity >
226 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
228 template<
typename Quantity >
233 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
238 void clear_has_time();
239 void set_has_index();
240 void clear_has_index();
241 void set_has_location();
242 void clear_has_location();
245 size_t RequiredFieldsByteSizeFallback()
const;
247 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
248 ::google::protobuf::internal::HasBits<1> _has_bits_;
249 mutable ::google::protobuf::internal::CachedSize _cached_size_;
251 ::google::protobuf::uint64 time_;
252 ::google::protobuf::uint32 index_;
253 friend struct ::protobuf_jaiabot_2fmessages_2flora_5ftest_2eproto::TableStruct;
271 *
this = ::std::move(from);
275 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
276 if (
this != &from) InternalSwap(&from);
284 return _internal_metadata_.unknown_fields();
287 return _internal_metadata_.mutable_unknown_fields();
290 static const ::google::protobuf::Descriptor*
descriptor();
309 return CreateMaybeMessage<LoRaReport>(NULL);
313 return CreateMaybeMessage<LoRaReport>(arena);
315 void CopyFrom(const ::google::protobuf::Message& from)
final;
316 void MergeFrom(const ::google::protobuf::Message& from)
final;
324 ::
google::protobuf::io::CodedInputStream* input) final;
326 ::
google::protobuf::io::CodedOutputStream* output) const final;
328 bool deterministic, ::
google::protobuf::uint8* target) const final;
334 void SetCachedSize(
int size)
const final;
337 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
340 inline void* MaybeArenaPtr()
const {
345 ::google::protobuf::Metadata
GetMetadata() const final;
363 static inline const ::google::protobuf::EnumDescriptor*
382 const ::jaiabot::protobuf::LoRaMessage& _internal_feather_msg()
const;
384 const ::jaiabot::protobuf::LoRaMessage&
feather_msg()
const;
394 const ::jaiabot::protobuf::LoRaTestData& _internal_test_data()
const;
396 const ::jaiabot::protobuf::LoRaTestData&
test_data()
const;
406 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity& _internal_gps_tpv()
const;
408 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity&
gps_tpv()
const;
409 ::goby::middleware::protobuf::gpsd::TimePositionVelocity*
release_gps_tpv();
410 ::goby::middleware::protobuf::gpsd::TimePositionVelocity*
mutable_gps_tpv();
417 ::google::protobuf::uint64
time()
const;
418 void set_time(::google::protobuf::uint64 value);
424 double range()
const;
443 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;
445 template<
typename Quantity >
447 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
449 template<
typename Quantity >
454 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
456 typedef boost::units::derived_dimension< boost::units::length_base_dimension,1 >::type
range_dimension;
458 typedef boost::units::unit<range_dimension,boost::units::si::system>
range_unit;
460 template<
typename Quantity >
462 {
set_range(boost::units::quantity<range_unit,double >(value_w_units).value() ); };
464 template<
typename Quantity >
469 {
return range_with_units<boost::units::quantity< range_unit,double > >(); };
474 void clear_has_time();
475 void set_has_status();
476 void clear_has_status();
477 void set_has_feather_msg();
478 void clear_has_feather_msg();
479 void set_has_test_data();
480 void clear_has_test_data();
481 void set_has_gps_tpv();
482 void clear_has_gps_tpv();
483 void set_has_range();
484 void clear_has_range();
485 void set_has_packet_success();
486 void clear_has_packet_success();
489 size_t RequiredFieldsByteSizeFallback()
const;
491 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
492 ::google::protobuf::internal::HasBits<1> _has_bits_;
493 mutable ::google::protobuf::internal::CachedSize _cached_size_;
496 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* gps_tpv_;
497 ::google::protobuf::uint64 time_;
499 double packet_success_;
501 friend struct ::protobuf_jaiabot_2fmessages_2flora_5ftest_2eproto::TableStruct;
509 #pragma GCC diagnostic push
510 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
516 return (_has_bits_[0] & 0x00000002u) != 0;
518 inline void LoRaTestData::set_has_time() {
519 _has_bits_[0] |= 0x00000002u;
521 inline void LoRaTestData::clear_has_time() {
522 _has_bits_[0] &= ~0x00000002u;
525 time_ = GOOGLE_ULONGLONG(0);
540 return (_has_bits_[0] & 0x00000004u) != 0;
542 inline void LoRaTestData::set_has_index() {
543 _has_bits_[0] |= 0x00000004u;
545 inline void LoRaTestData::clear_has_index() {
546 _has_bits_[0] &= ~0x00000004u;
564 return (_has_bits_[0] & 0x00000001u) != 0;
566 inline void LoRaTestData::set_has_location() {
567 _has_bits_[0] |= 0x00000001u;
569 inline void LoRaTestData::clear_has_location() {
570 _has_bits_[0] &= ~0x00000001u;
572 inline const ::jaiabot::protobuf::GeographicCoordinate& LoRaTestData::_internal_location()
const {
576 const ::jaiabot::protobuf::GeographicCoordinate* p = location_;
583 clear_has_location();
590 if (location_ == NULL) {
591 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArenaNoVirtual());
598 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
599 if (message_arena == NULL) {
600 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(location_);
603 ::google::protobuf::Arena* submessage_arena = NULL;
604 if (message_arena != submessage_arena) {
605 location = ::google::protobuf::internal::GetOwnedMessage(
606 message_arena,
location, submessage_arena);
610 clear_has_location();
622 return (_has_bits_[0] & 0x00000008u) != 0;
624 inline void LoRaReport::set_has_time() {
625 _has_bits_[0] |= 0x00000008u;
627 inline void LoRaReport::clear_has_time() {
628 _has_bits_[0] &= ~0x00000008u;
631 time_ = GOOGLE_ULONGLONG(0);
646 return (_has_bits_[0] & 0x00000040u) != 0;
648 inline void LoRaReport::set_has_status() {
649 _has_bits_[0] |= 0x00000040u;
651 inline void LoRaReport::clear_has_status() {
652 _has_bits_[0] &= ~0x00000040u;
671 return (_has_bits_[0] & 0x00000001u) != 0;
673 inline void LoRaReport::set_has_feather_msg() {
674 _has_bits_[0] |= 0x00000001u;
676 inline void LoRaReport::clear_has_feather_msg() {
677 _has_bits_[0] &= ~0x00000001u;
679 inline const ::jaiabot::protobuf::LoRaMessage& LoRaReport::_internal_feather_msg()
const {
680 return *feather_msg_;
683 const ::jaiabot::protobuf::LoRaMessage* p = feather_msg_;
690 clear_has_feather_msg();
696 set_has_feather_msg();
697 if (feather_msg_ == NULL) {
698 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaMessage>(GetArenaNoVirtual());
705 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
706 if (message_arena == NULL) {
707 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(feather_msg_);
710 ::google::protobuf::Arena* submessage_arena = NULL;
711 if (message_arena != submessage_arena) {
712 feather_msg = ::google::protobuf::internal::GetOwnedMessage(
715 set_has_feather_msg();
717 clear_has_feather_msg();
725 return (_has_bits_[0] & 0x00000002u) != 0;
727 inline void LoRaReport::set_has_test_data() {
728 _has_bits_[0] |= 0x00000002u;
730 inline void LoRaReport::clear_has_test_data() {
731 _has_bits_[0] &= ~0x00000002u;
734 if (test_data_ != NULL) test_data_->
Clear();
735 clear_has_test_data();
737 inline const ::jaiabot::protobuf::LoRaTestData& LoRaReport::_internal_test_data()
const {
741 const ::jaiabot::protobuf::LoRaTestData* p = test_data_;
748 clear_has_test_data();
755 if (test_data_ == NULL) {
756 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LoRaTestData>(GetArenaNoVirtual());
763 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
764 if (message_arena == NULL) {
768 ::google::protobuf::Arena* submessage_arena = NULL;
769 if (message_arena != submessage_arena) {
770 test_data = ::google::protobuf::internal::GetOwnedMessage(
771 message_arena,
test_data, submessage_arena);
775 clear_has_test_data();
783 return (_has_bits_[0] & 0x00000004u) != 0;
785 inline void LoRaReport::set_has_gps_tpv() {
786 _has_bits_[0] |= 0x00000004u;
788 inline void LoRaReport::clear_has_gps_tpv() {
789 _has_bits_[0] &= ~0x00000004u;
791 inline const ::goby::middleware::protobuf::gpsd::TimePositionVelocity& LoRaReport::_internal_gps_tpv()
const {
795 const ::goby::middleware::protobuf::gpsd::TimePositionVelocity* p = gps_tpv_;
797 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::gpsd::TimePositionVelocity*
>(
798 &::goby::middleware::protobuf::gpsd::_TimePositionVelocity_default_instance_);
803 ::goby::middleware::protobuf::gpsd::TimePositionVelocity* temp = gps_tpv_;
809 if (gps_tpv_ == NULL) {
810 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::gpsd::TimePositionVelocity>(GetArenaNoVirtual());
817 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
818 if (message_arena == NULL) {
819 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(gps_tpv_);
822 ::google::protobuf::Arena* submessage_arena = NULL;
823 if (message_arena != submessage_arena) {
824 gps_tpv = ::google::protobuf::internal::GetOwnedMessage(
825 message_arena,
gps_tpv, submessage_arena);
837 return (_has_bits_[0] & 0x00000010u) != 0;
839 inline void LoRaReport::set_has_range() {
840 _has_bits_[0] |= 0x00000010u;
842 inline void LoRaReport::clear_has_range() {
843 _has_bits_[0] &= ~0x00000010u;
861 return (_has_bits_[0] & 0x00000020u) != 0;
863 inline void LoRaReport::set_has_packet_success() {
864 _has_bits_[0] |= 0x00000020u;
866 inline void LoRaReport::clear_has_packet_success() {
867 _has_bits_[0] &= ~0x00000020u;
871 clear_has_packet_success();
875 return packet_success_;
878 set_has_packet_success();
879 packet_success_ = value;
884 #pragma GCC diagnostic pop
899 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::LoRaReport_Status>() {
908 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2flora_5ftest_2eproto