4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_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>
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>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
33#include "dccl/option_extensions.pb.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#include <boost/units/systems/angle/degrees.hpp>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
60struct LatLonPointDefaultTypeInternal;
63struct RouteDefaultTypeInternal;
66struct WaypointDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
75PROTOBUF_NAMESPACE_CLOSE
83 public ::PROTOBUF_NAMESPACE_ID::Message {
87 explicit PROTOBUF_CONSTEXPR
LatLonPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
92 *
this = ::std::move(from);
100 if (
this == &from)
return *
this;
101 if (GetOwningArena() == from.GetOwningArena()
102 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103 && GetOwningArena() !=
nullptr
114 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
117 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
120 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
143 if (other ==
this)
return;
144 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() !=
nullptr &&
146 GetOwningArena() == other->GetOwningArena()) {
148 if (GetOwningArena() == other->GetOwningArena()) {
152 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
156 if (other ==
this)
return;
157 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
164 return CreateMaybeMessage<LatLonPoint>(arena);
166 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
168 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
170 LatLonPoint::MergeImpl(*
this, from);
173 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
175 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
181 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
185 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
187 void SetCachedSize(
int size)
const final;
191 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
192 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
193 return "goby.middleware.protobuf.LatLonPoint";
197 bool is_message_owned =
false);
201 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
218 bool _internal_has_lat()
const;
224 double _internal_lat()
const;
225 void _internal_set_lat(
double value);
231 bool _internal_has_lon()
const;
237 double _internal_lon()
const;
238 void _internal_set_lon(
double value);
244 bool _internal_has_depth()
const;
247 double depth()
const;
250 double _internal_depth()
const;
251 void _internal_set_depth(
double value);
257 bool _internal_has_altitude()
const;
263 double _internal_altitude()
const;
264 void _internal_set_altitude(
double value);
269 typedef boost::units::unit<lat_dimension,boost::units::degree::system>
lat_unit;
271 template<
typename Quantity >
273 {
set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
275 template<
typename Quantity >
280 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
284 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
286 template<
typename Quantity >
288 {
set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
290 template<
typename Quantity >
295 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
299 typedef boost::units::unit<depth_dimension,boost::units::si::system>
depth_unit;
301 template<
typename Quantity >
303 {
set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
305 template<
typename Quantity >
310 {
return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
314 typedef boost::units::unit<altitude_dimension,boost::units::si::system>
altitude_unit;
316 template<
typename Quantity >
318 {
set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
320 template<
typename Quantity >
325 {
return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
332 size_t RequiredFieldsByteSizeFallback()
const;
334 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
335 typedef void InternalArenaConstructable_;
336 typedef void DestructorSkippable_;
338 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
339 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
346 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
351 public ::PROTOBUF_NAMESPACE_ID::Message {
355 explicit PROTOBUF_CONSTEXPR
Waypoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
360 *
this = ::std::move(from);
368 if (
this == &from)
return *
this;
369 if (GetOwningArena() == from.GetOwningArena()
370 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
371 && GetOwningArena() !=
nullptr
382 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
385 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
388 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
389 return GetDescriptor();
392 return default_instance().GetMetadata().descriptor;
395 return default_instance().GetMetadata().reflection;
398 return *internal_default_instance();
401 return reinterpret_cast<const Waypoint*
>(
404 static constexpr int kIndexInFileMessages =
411 if (other ==
this)
return;
412 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
413 if (GetOwningArena() !=
nullptr &&
414 GetOwningArena() == other->GetOwningArena()) {
416 if (GetOwningArena() == other->GetOwningArena()) {
420 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
424 if (other ==
this)
return;
425 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
431 Waypoint*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
432 return CreateMaybeMessage<Waypoint>(arena);
434 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
436 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
438 Waypoint::MergeImpl(*
this, from);
441 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
443 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
444 bool IsInitialized() const final;
447 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
448 uint8_t* _InternalSerialize(
449 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
450 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
453 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
455 void SetCachedSize(
int size)
const final;
459 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
460 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
461 return "goby.middleware.protobuf.Waypoint";
464 explicit Waypoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
465 bool is_message_owned =
false);
469 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
471 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
478 kNameFieldNumber = 1,
479 kLocationFieldNumber = 2,
482 bool has_name()
const;
484 bool _internal_has_name()
const;
487 const std::string& name()
const;
488 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
490 std::string* mutable_name();
491 PROTOBUF_NODISCARD std::string* release_name();
492 void set_allocated_name(std::string* name);
494 const std::string& _internal_name()
const;
495 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
496 std::string* _internal_mutable_name();
500 bool has_location()
const;
502 bool _internal_has_location()
const;
504 void clear_location();
505 const ::goby::middleware::protobuf::LatLonPoint& location()
const;
506 PROTOBUF_NODISCARD ::goby::middleware::protobuf::LatLonPoint* release_location();
510 const ::goby::middleware::protobuf::LatLonPoint& _internal_location()
const;
513 void unsafe_arena_set_allocated_location(
521 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
522 typedef void InternalArenaConstructable_;
523 typedef void DestructorSkippable_;
525 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
526 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
527 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
531 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
536 public ::PROTOBUF_NAMESPACE_ID::Message {
540 explicit PROTOBUF_CONSTEXPR
Route(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
545 *
this = ::std::move(from);
553 if (
this == &from)
return *
this;
554 if (GetOwningArena() == from.GetOwningArena()
555 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
556 && GetOwningArena() !=
nullptr
567 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
570 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
573 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
574 return GetDescriptor();
577 return default_instance().GetMetadata().descriptor;
580 return default_instance().GetMetadata().reflection;
583 return *internal_default_instance();
586 return reinterpret_cast<const Route*
>(
589 static constexpr int kIndexInFileMessages =
596 if (other ==
this)
return;
597 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
598 if (GetOwningArena() !=
nullptr &&
599 GetOwningArena() == other->GetOwningArena()) {
601 if (GetOwningArena() == other->GetOwningArena()) {
605 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
609 if (other ==
this)
return;
610 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
616 Route*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
617 return CreateMaybeMessage<Route>(arena);
619 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
621 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
623 Route::MergeImpl(*
this, from);
626 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
628 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
629 bool IsInitialized() const final;
632 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
633 uint8_t* _InternalSerialize(
634 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
635 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
638 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
640 void SetCachedSize(
int size)
const final;
641 void InternalSwap(
Route* other);
644 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
645 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
646 return "goby.middleware.protobuf.Route";
649 explicit Route(::PROTOBUF_NAMESPACE_ID::Arena* arena,
650 bool is_message_owned =
false);
654 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
656 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
663 kPointFieldNumber = 2,
664 kNameFieldNumber = 1,
667 int point_size()
const;
669 int _internal_point_size()
const;
673 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
676 const ::goby::middleware::protobuf::Waypoint& _internal_point(
int index)
const;
679 const ::goby::middleware::protobuf::Waypoint& point(
int index)
const;
681 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
685 bool has_name()
const;
687 bool _internal_has_name()
const;
690 const std::string& name()
const;
691 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
693 std::string* mutable_name();
694 PROTOBUF_NODISCARD std::string* release_name();
695 void set_allocated_name(std::string* name);
697 const std::string& _internal_name()
const;
698 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_name(
const std::string& value);
699 std::string* _internal_mutable_name();
706 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
707 typedef void InternalArenaConstructable_;
708 typedef void DestructorSkippable_;
710 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
711 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
712 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > point_;
713 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
716 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
724 #pragma GCC diagnostic push
725 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
730inline bool LatLonPoint::_internal_has_lat()
const {
731 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
734inline bool LatLonPoint::has_lat()
const {
735 return _internal_has_lat();
737inline void LatLonPoint::clear_lat() {
739 _impl_._has_bits_[0] &= ~0x00000001u;
741inline double LatLonPoint::_internal_lat()
const {
744inline double LatLonPoint::lat()
const {
746 return _internal_lat();
748inline void LatLonPoint::_internal_set_lat(
double value) {
749 _impl_._has_bits_[0] |= 0x00000001u;
752inline void LatLonPoint::set_lat(
double value) {
753 _internal_set_lat(value);
758inline bool LatLonPoint::_internal_has_lon()
const {
759 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
762inline bool LatLonPoint::has_lon()
const {
763 return _internal_has_lon();
765inline void LatLonPoint::clear_lon() {
767 _impl_._has_bits_[0] &= ~0x00000002u;
769inline double LatLonPoint::_internal_lon()
const {
772inline double LatLonPoint::lon()
const {
774 return _internal_lon();
776inline void LatLonPoint::_internal_set_lon(
double value) {
777 _impl_._has_bits_[0] |= 0x00000002u;
780inline void LatLonPoint::set_lon(
double value) {
781 _internal_set_lon(value);
786inline bool LatLonPoint::_internal_has_depth()
const {
787 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
790inline bool LatLonPoint::has_depth()
const {
791 return _internal_has_depth();
793inline void LatLonPoint::clear_depth() {
795 _impl_._has_bits_[0] &= ~0x00000004u;
797inline double LatLonPoint::_internal_depth()
const {
798 return _impl_.depth_;
800inline double LatLonPoint::depth()
const {
802 return _internal_depth();
804inline void LatLonPoint::_internal_set_depth(
double value) {
805 _impl_._has_bits_[0] |= 0x00000004u;
806 _impl_.depth_ = value;
808inline void LatLonPoint::set_depth(
double value) {
809 _internal_set_depth(value);
814inline bool LatLonPoint::_internal_has_altitude()
const {
815 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
818inline bool LatLonPoint::has_altitude()
const {
819 return _internal_has_altitude();
821inline void LatLonPoint::clear_altitude() {
822 _impl_.altitude_ = std::numeric_limits<double>::quiet_NaN();
823 _impl_._has_bits_[0] &= ~0x00000008u;
825inline double LatLonPoint::_internal_altitude()
const {
826 return _impl_.altitude_;
828inline double LatLonPoint::altitude()
const {
830 return _internal_altitude();
832inline void LatLonPoint::_internal_set_altitude(
double value) {
833 _impl_._has_bits_[0] |= 0x00000008u;
834 _impl_.altitude_ = value;
836inline void LatLonPoint::set_altitude(
double value) {
837 _internal_set_altitude(value);
846inline bool Waypoint::_internal_has_name()
const {
847 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
850inline bool Waypoint::has_name()
const {
851 return _internal_has_name();
853inline void Waypoint::clear_name() {
854 _impl_.name_.ClearToEmpty();
855 _impl_._has_bits_[0] &= ~0x00000001u;
857inline const std::string& Waypoint::name()
const {
859 return _internal_name();
861template <
typename ArgT0,
typename... ArgT>
862inline PROTOBUF_ALWAYS_INLINE
863void Waypoint::set_name(ArgT0&& arg0, ArgT... args) {
864 _impl_._has_bits_[0] |= 0x00000001u;
865 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
868inline std::string* Waypoint::mutable_name() {
869 std::string* _s = _internal_mutable_name();
873inline const std::string& Waypoint::_internal_name()
const {
874 return _impl_.name_.Get();
876inline void Waypoint::_internal_set_name(
const std::string& value) {
877 _impl_._has_bits_[0] |= 0x00000001u;
878 _impl_.name_.Set(value, GetArenaForAllocation());
880inline std::string* Waypoint::_internal_mutable_name() {
881 _impl_._has_bits_[0] |= 0x00000001u;
882 return _impl_.name_.Mutable(GetArenaForAllocation());
884inline std::string* Waypoint::release_name() {
886 if (!_internal_has_name()) {
889 _impl_._has_bits_[0] &= ~0x00000001u;
890 auto* p = _impl_.name_.Release();
891#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
892 if (_impl_.name_.IsDefault()) {
893 _impl_.name_.Set(
"", GetArenaForAllocation());
898inline void Waypoint::set_allocated_name(std::string* name) {
899 if (name !=
nullptr) {
900 _impl_._has_bits_[0] |= 0x00000001u;
902 _impl_._has_bits_[0] &= ~0x00000001u;
904 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
905#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
906 if (_impl_.name_.IsDefault()) {
907 _impl_.name_.Set(
"", GetArenaForAllocation());
914inline bool Waypoint::_internal_has_location()
const {
915 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
916 PROTOBUF_ASSUME(!value || _impl_.location_ !=
nullptr);
919inline bool Waypoint::has_location()
const {
920 return _internal_has_location();
922inline void Waypoint::clear_location() {
923 if (_impl_.location_ !=
nullptr) _impl_.location_->Clear();
924 _impl_._has_bits_[0] &= ~0x00000002u;
926inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::_internal_location()
const {
927 const ::goby::middleware::protobuf::LatLonPoint* p = _impl_.location_;
931inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::location()
const {
933 return _internal_location();
935inline void Waypoint::unsafe_arena_set_allocated_location(
937 if (GetArenaForAllocation() ==
nullptr) {
938 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.location_);
940 _impl_.location_ = location;
942 _impl_._has_bits_[0] |= 0x00000002u;
944 _impl_._has_bits_[0] &= ~0x00000002u;
948inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::release_location() {
949 _impl_._has_bits_[0] &= ~0x00000002u;
951 _impl_.location_ =
nullptr;
952#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
953 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
954 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
955 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
957 if (GetArenaForAllocation() !=
nullptr) {
958 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
963inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::unsafe_arena_release_location() {
965 _impl_._has_bits_[0] &= ~0x00000002u;
967 _impl_.location_ =
nullptr;
970inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::_internal_mutable_location() {
971 _impl_._has_bits_[0] |= 0x00000002u;
972 if (_impl_.location_ ==
nullptr) {
974 _impl_.location_ = p;
976 return _impl_.location_;
978inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::mutable_location() {
984 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
985 if (message_arena ==
nullptr) {
986 delete _impl_.location_;
989 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
990 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location);
991 if (message_arena != submessage_arena) {
992 location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
993 message_arena, location, submessage_arena);
995 _impl_._has_bits_[0] |= 0x00000002u;
997 _impl_._has_bits_[0] &= ~0x00000002u;
999 _impl_.location_ = location;
1008inline bool Route::_internal_has_name()
const {
1009 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1012inline bool Route::has_name()
const {
1013 return _internal_has_name();
1015inline void Route::clear_name() {
1016 _impl_.name_.ClearToEmpty();
1017 _impl_._has_bits_[0] &= ~0x00000001u;
1019inline const std::string& Route::name()
const {
1021 return _internal_name();
1023template <
typename ArgT0,
typename... ArgT>
1024inline PROTOBUF_ALWAYS_INLINE
1025void Route::set_name(ArgT0&& arg0, ArgT... args) {
1026 _impl_._has_bits_[0] |= 0x00000001u;
1027 _impl_.name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1030inline std::string* Route::mutable_name() {
1031 std::string* _s = _internal_mutable_name();
1035inline const std::string& Route::_internal_name()
const {
1036 return _impl_.name_.Get();
1038inline void Route::_internal_set_name(
const std::string& value) {
1039 _impl_._has_bits_[0] |= 0x00000001u;
1040 _impl_.name_.Set(value, GetArenaForAllocation());
1042inline std::string* Route::_internal_mutable_name() {
1043 _impl_._has_bits_[0] |= 0x00000001u;
1044 return _impl_.name_.Mutable(GetArenaForAllocation());
1046inline std::string* Route::release_name() {
1048 if (!_internal_has_name()) {
1051 _impl_._has_bits_[0] &= ~0x00000001u;
1052 auto* p = _impl_.name_.Release();
1053#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1054 if (_impl_.name_.IsDefault()) {
1055 _impl_.name_.Set(
"", GetArenaForAllocation());
1060inline void Route::set_allocated_name(std::string* name) {
1061 if (name !=
nullptr) {
1062 _impl_._has_bits_[0] |= 0x00000001u;
1064 _impl_._has_bits_[0] &= ~0x00000001u;
1066 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
1067#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1068 if (_impl_.name_.IsDefault()) {
1069 _impl_.name_.Set(
"", GetArenaForAllocation());
1076inline int Route::_internal_point_size()
const {
1077 return _impl_.point_.size();
1079inline int Route::point_size()
const {
1080 return _internal_point_size();
1082inline void Route::clear_point() {
1083 _impl_.point_.Clear();
1085inline ::goby::middleware::protobuf::Waypoint* Route::mutable_point(
int index) {
1087 return _impl_.point_.Mutable(index);
1089inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
1090Route::mutable_point() {
1092 return &_impl_.point_;
1094inline const ::goby::middleware::protobuf::Waypoint& Route::_internal_point(
int index)
const {
1095 return _impl_.point_.Get(index);
1097inline const ::goby::middleware::protobuf::Waypoint& Route::point(
int index)
const {
1099 return _internal_point(index);
1101inline ::goby::middleware::protobuf::Waypoint* Route::_internal_add_point() {
1102 return _impl_.point_.Add();
1104inline ::goby::middleware::protobuf::Waypoint* Route::add_point() {
1109inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
1110Route::point()
const {
1112 return _impl_.point_;
1116 #pragma GCC diagnostic pop
1131#include <google/protobuf/port_undef.inc>
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void set_lat(double value)
void set_depth(double value)
boost::units::length_dimension altitude_dimension
LatLonPoint & operator=(const LatLonPoint &from)
boost::units::quantity< altitude_unit, double > altitude_with_units() const
boost::units::length_dimension depth_dimension
void set_lat_with_units(Quantity value_w_units)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
LatLonPoint(LatLonPoint &&from) noexcept
void UnsafeArenaSwap(LatLonPoint *other)
LatLonPoint & operator=(LatLonPoint &&from) noexcept
Quantity altitude_with_units() const
void CopyFrom(const LatLonPoint &from)
Quantity lat_with_units() const
boost::units::plane_angle_dimension lat_dimension
static const ClassData _class_data_
static const LatLonPoint & default_instance()
bool IsInitialized() const final
boost::units::unit< altitude_dimension, boost::units::si::system > altitude_unit
void Swap(LatLonPoint *other)
boost::units::quantity< lon_unit, double > lon_with_units() const
void MergeFrom(const LatLonPoint &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
LatLonPoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void set_lon_with_units(Quantity value_w_units)
Quantity depth_with_units() const
LatLonPoint(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
boost::units::unit< depth_dimension, boost::units::si::system > depth_unit
bool has_altitude() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
boost::units::quantity< lat_unit, double > lat_with_units() const
boost::units::quantity< depth_unit, double > depth_with_units() const
friend void swap(LatLonPoint &a, LatLonPoint &b)
static constexpr int kIndexInFileMessages
void set_altitude(double value)
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
boost::units::plane_angle_dimension lon_dimension
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_CONSTEXPR LatLonPoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_altitude_with_units(Quantity value_w_units)
void set_depth_with_units(Quantity value_w_units)
Quantity lon_with_units() const
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
size_t ByteSizeLong() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
LatLonPoint(const LatLonPoint &from)
int GetCachedSize() const final
void set_lon(double value)
static const LatLonPoint * internal_default_instance()
void CopyFrom(const Route &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
friend void swap(Route &a, Route &b)
void UnsafeArenaSwap(Route *other)
Route(Route &&from) noexcept
Route(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void MergeFrom(const Route &from)
void set_name(ArgT0 &&arg0, ArgT... args)
Route & operator=(Route &&from) noexcept
static const Route * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_CONSTEXPR Route(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const Route & default_instance()
Route * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ClassData _class_data_
Route & operator=(const Route &from)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void CopyFrom(const Waypoint &from)
static const Waypoint * internal_default_instance()
void Swap(Waypoint *other)
void set_name(ArgT0 &&arg0, ArgT... args)
static const Waypoint & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Waypoint(const Waypoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Waypoint & operator=(const Waypoint &from)
void MergeFrom(const Waypoint &from)
Waypoint(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Waypoint & operator=(Waypoint &&from) noexcept
void UnsafeArenaSwap(Waypoint *other)
PROTOBUF_CONSTEXPR Waypoint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Waypoint(Waypoint &&from) noexcept
static const ClassData _class_data_
Waypoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
friend void swap(Waypoint &a, Waypoint &b)
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::LatLonPoint * Arena::CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
LatLonPointDefaultTypeInternal _LatLonPoint_default_instance_
RouteDefaultTypeInternal _Route_default_instance_
WaypointDefaultTypeInternal _Waypoint_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]