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 < 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>
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>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <boost/units/systems/angle/degrees.hpp>
43 #include <boost/units/systems/si.hpp>
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
47 PROTOBUF_NAMESPACE_OPEN
51 PROTOBUF_NAMESPACE_CLOSE
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
67 namespace middleware {
70 class LatLonPointDefaultTypeInternal;
73 class RouteDefaultTypeInternal;
76 class WaypointDefaultTypeInternal;
81 PROTOBUF_NAMESPACE_OPEN
82 template<> ::goby::middleware::protobuf::LatLonPoint* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(Arena*);
83 template<> ::goby::middleware::protobuf::Route* Arena::CreateMaybeMessage<::goby::middleware::protobuf::Route>(Arena*);
84 template<> ::goby::middleware::protobuf::Waypoint* Arena::CreateMaybeMessage<::goby::middleware::protobuf::Waypoint>(Arena*);
85 PROTOBUF_NAMESPACE_CLOSE
87 namespace middleware {
92 class LatLonPoint PROTOBUF_FINAL :
93 public ::PROTOBUF_NAMESPACE_ID::Message {
101 *
this = ::std::move(from);
104 inline LatLonPoint&
operator=(
const LatLonPoint& from) {
108 inline LatLonPoint&
operator=(LatLonPoint&& from) noexcept {
109 if (GetArena() == from.GetArena()) {
110 if (
this != &from) InternalSwap(&from);
118 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
121 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
124 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
125 return GetDescriptor();
128 return GetMetadataStatic().descriptor;
131 return GetMetadataStatic().reflection;
137 return reinterpret_cast<const LatLonPoint*
>(
140 static constexpr
int kIndexInFileMessages =
143 friend void swap(LatLonPoint& a, LatLonPoint& b) {
146 inline void Swap(LatLonPoint* other) {
147 if (other ==
this)
return;
148 if (GetArena() == other->GetArena()) {
151 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
155 if (other ==
this)
return;
156 GOOGLE_DCHECK(GetArena() == other->GetArena());
162 inline LatLonPoint*
New() const final {
163 return CreateMaybeMessage<LatLonPoint>(
nullptr);
166 LatLonPoint*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
167 return CreateMaybeMessage<LatLonPoint>(arena);
169 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
170 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
173 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 bool IsInitialized() const final;
177 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
178 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
179 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 int GetCachedSize() const final {
return _cached_size_.Get(); }
183 inline void SharedCtor();
184 inline void SharedDtor();
185 void SetCachedSize(
int size)
const final;
186 void InternalSwap(LatLonPoint* other);
187 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189 return "goby.middleware.protobuf.LatLonPoint";
194 static void ArenaDtor(
void*
object);
195 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
200 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
214 kDepthFieldNumber = 3,
215 kAltitudeFieldNumber = 4,
220 bool _internal_has_lat()
const;
226 double _internal_lat()
const;
227 void _internal_set_lat(
double value);
233 bool _internal_has_lon()
const;
239 double _internal_lon()
const;
240 void _internal_set_lon(
double value);
246 bool _internal_has_depth()
const;
252 double _internal_depth()
const;
253 void _internal_set_depth(
double value);
259 bool _internal_has_altitude()
const;
265 double _internal_altitude()
const;
266 void _internal_set_altitude(
double value);
271 typedef boost::units::unit<lat_dimension,boost::units::degree::system>
lat_unit;
273 template<
typename Quantity >
275 { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
277 template<
typename Quantity >
279 {
return Quantity(lat() *
lat_unit()); };
282 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
286 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
288 template<
typename Quantity >
290 { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
292 template<
typename Quantity >
294 {
return Quantity(lon() *
lon_unit()); };
297 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
301 typedef boost::units::unit<depth_dimension,boost::units::si::system>
depth_unit;
303 template<
typename Quantity >
305 { set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
307 template<
typename Quantity >
312 {
return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
316 typedef boost::units::unit<altitude_dimension,boost::units::si::system>
altitude_unit;
318 template<
typename Quantity >
320 { set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
322 template<
typename Quantity >
327 {
return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
334 size_t RequiredFieldsByteSizeFallback()
const;
336 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
337 typedef void InternalArenaConstructable_;
338 typedef void DestructorSkippable_;
339 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
340 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
345 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
350 public ::PROTOBUF_NAMESPACE_ID::Message {
358 *
this = ::std::move(from);
366 if (GetArena() == from.GetArena()) {
367 if (
this != &from) InternalSwap(&from);
375 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
378 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
381 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
382 return GetDescriptor();
385 return GetMetadataStatic().descriptor;
388 return GetMetadataStatic().reflection;
394 return reinterpret_cast<const Waypoint*
>(
397 static constexpr
int kIndexInFileMessages =
400 friend void swap(Waypoint& a, Waypoint& b) {
403 inline void Swap(Waypoint* other) {
404 if (other ==
this)
return;
405 if (GetArena() == other->GetArena()) {
408 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
412 if (other ==
this)
return;
413 GOOGLE_DCHECK(GetArena() == other->GetArena());
419 inline Waypoint*
New() const final {
420 return CreateMaybeMessage<Waypoint>(
nullptr);
423 Waypoint*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
424 return CreateMaybeMessage<Waypoint>(arena);
426 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
427 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
430 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
431 bool IsInitialized() const final;
434 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
435 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
436 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
437 int GetCachedSize() const final {
return _cached_size_.Get(); }
440 inline void SharedCtor();
441 inline void SharedDtor();
442 void SetCachedSize(
int size)
const final;
443 void InternalSwap(Waypoint* other);
444 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
445 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
446 return "goby.middleware.protobuf.Waypoint";
449 explicit Waypoint(::PROTOBUF_NAMESPACE_ID::Arena* arena);
451 static void ArenaDtor(
void*
object);
452 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
457 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
469 kNameFieldNumber = 1,
470 kLocationFieldNumber = 2,
475 bool _internal_has_name()
const;
478 const std::string&
name()
const;
486 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
487 " string fields are deprecated and will be removed in a"
489 std::
string* unsafe_arena_release_name();
490 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
491 "
string fields are deprecated and will be removed in a"
493 void unsafe_arena_set_allocated_name(
496 const std::
string& _internal_name() const;
497 void _internal_set_name(const std::
string& value);
498 std::
string* _internal_mutable_name();
502 bool has_location() const;
504 bool _internal_has_location() const;
506 void clear_location();
507 const ::
goby::middleware::protobuf::LatLonPoint& location() const;
508 ::
goby::middleware::protobuf::LatLonPoint* release_location();
509 ::
goby::middleware::protobuf::LatLonPoint* mutable_location();
510 void set_allocated_location(::
goby::middleware::protobuf::LatLonPoint* location);
512 const ::
goby::middleware::protobuf::LatLonPoint& _internal_location() const;
513 ::
goby::middleware::protobuf::LatLonPoint* _internal_mutable_location();
515 void unsafe_arena_set_allocated_location(
516 ::
goby::middleware::protobuf::LatLonPoint* location);
517 ::
goby::middleware::protobuf::LatLonPoint* unsafe_arena_release_location();
523 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
524 typedef
void InternalArenaConstructable_;
525 typedef
void DestructorSkippable_;
526 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
527 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
528 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
529 ::
goby::middleware::protobuf::LatLonPoint* location_;
535 public ::PROTOBUF_NAMESPACE_ID::Message {
543 *
this = ::std::move(from);
551 if (GetArena() == from.GetArena()) {
552 if (
this != &from) InternalSwap(&from);
560 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
563 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
566 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
567 return GetDescriptor();
570 return GetMetadataStatic().descriptor;
573 return GetMetadataStatic().reflection;
579 return reinterpret_cast<const Route*
>(
582 static constexpr
int kIndexInFileMessages =
585 friend void swap(Route& a, Route& b) {
588 inline void Swap(Route* other) {
589 if (other ==
this)
return;
590 if (GetArena() == other->GetArena()) {
593 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
597 if (other ==
this)
return;
598 GOOGLE_DCHECK(GetArena() == other->GetArena());
604 inline Route*
New() const final {
605 return CreateMaybeMessage<Route>(
nullptr);
608 Route*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
609 return CreateMaybeMessage<Route>(arena);
611 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
612 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
615 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
616 bool IsInitialized() const final;
619 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
620 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
621 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
622 int GetCachedSize() const final {
return _cached_size_.Get(); }
625 inline void SharedCtor();
626 inline void SharedDtor();
627 void SetCachedSize(
int size)
const final;
628 void InternalSwap(Route* other);
629 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
630 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
631 return "goby.middleware.protobuf.Route";
634 explicit Route(::PROTOBUF_NAMESPACE_ID::Arena* arena);
636 static void ArenaDtor(
void*
object);
637 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
642 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
654 kPointFieldNumber = 2,
655 kNameFieldNumber = 1,
660 int _internal_point_size()
const;
664 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
667 const ::goby::middleware::protobuf::Waypoint& _internal_point(
int index)
const;
668 ::goby::middleware::protobuf::Waypoint* _internal_add_point();
670 const ::goby::middleware::protobuf::Waypoint&
point(
int index)
const;
672 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
678 bool _internal_has_name()
const;
681 const std::string&
name()
const;
689 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
690 " string fields are deprecated and will be removed in a"
692 std::
string* unsafe_arena_release_name();
693 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
694 "
string fields are deprecated and will be removed in a"
696 void unsafe_arena_set_allocated_name(
699 const std::
string& _internal_name() const;
700 void _internal_set_name(const std::
string& value);
701 std::
string* _internal_mutable_name();
708 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
709 typedef
void InternalArenaConstructable_;
710 typedef
void DestructorSkippable_;
711 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
712 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
713 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
goby::middleware::protobuf::Waypoint > point_;
714 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr name_;
723 #pragma GCC diagnostic push
724 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
729 inline bool LatLonPoint::_internal_has_lat()
const {
730 bool value = (_has_bits_[0] & 0x00000001u) != 0;
733 inline bool LatLonPoint::has_lat()
const {
734 return _internal_has_lat();
736 inline void LatLonPoint::clear_lat() {
738 _has_bits_[0] &= ~0x00000001u;
740 inline double LatLonPoint::_internal_lat()
const {
743 inline double LatLonPoint::lat()
const {
745 return _internal_lat();
747 inline void LatLonPoint::_internal_set_lat(
double value) {
748 _has_bits_[0] |= 0x00000001u;
751 inline void LatLonPoint::set_lat(
double value) {
752 _internal_set_lat(value);
757 inline bool LatLonPoint::_internal_has_lon()
const {
758 bool value = (_has_bits_[0] & 0x00000002u) != 0;
761 inline bool LatLonPoint::has_lon()
const {
762 return _internal_has_lon();
764 inline void LatLonPoint::clear_lon() {
766 _has_bits_[0] &= ~0x00000002u;
768 inline double LatLonPoint::_internal_lon()
const {
771 inline double LatLonPoint::lon()
const {
773 return _internal_lon();
775 inline void LatLonPoint::_internal_set_lon(
double value) {
776 _has_bits_[0] |= 0x00000002u;
779 inline void LatLonPoint::set_lon(
double value) {
780 _internal_set_lon(value);
785 inline bool LatLonPoint::_internal_has_depth()
const {
786 bool value = (_has_bits_[0] & 0x00000004u) != 0;
789 inline bool LatLonPoint::has_depth()
const {
790 return _internal_has_depth();
792 inline void LatLonPoint::clear_depth() {
794 _has_bits_[0] &= ~0x00000004u;
796 inline double LatLonPoint::_internal_depth()
const {
801 return _internal_depth();
803 inline void LatLonPoint::_internal_set_depth(
double value) {
804 _has_bits_[0] |= 0x00000004u;
807 inline void LatLonPoint::set_depth(
double value) {
808 _internal_set_depth(value);
813 inline bool LatLonPoint::_internal_has_altitude()
const {
814 bool value = (_has_bits_[0] & 0x00000008u) != 0;
817 inline bool LatLonPoint::has_altitude()
const {
818 return _internal_has_altitude();
820 inline void LatLonPoint::clear_altitude() {
821 altitude_ = std::numeric_limits<double>::quiet_NaN();
822 _has_bits_[0] &= ~0x00000008u;
824 inline double LatLonPoint::_internal_altitude()
const {
827 inline double LatLonPoint::altitude()
const {
829 return _internal_altitude();
831 inline void LatLonPoint::_internal_set_altitude(
double value) {
832 _has_bits_[0] |= 0x00000008u;
835 inline void LatLonPoint::set_altitude(
double value) {
836 _internal_set_altitude(value);
845 inline bool Waypoint::_internal_has_name()
const {
846 bool value = (_has_bits_[0] & 0x00000001u) != 0;
849 inline bool Waypoint::has_name()
const {
850 return _internal_has_name();
852 inline void Waypoint::clear_name() {
854 _has_bits_[0] &= ~0x00000001u;
856 inline const std::string& Waypoint::name()
const {
858 return _internal_name();
860 inline void Waypoint::set_name(
const std::string& value) {
861 _internal_set_name(value);
864 inline std::string* Waypoint::mutable_name() {
866 return _internal_mutable_name();
868 inline const std::string& Waypoint::_internal_name()
const {
871 inline void Waypoint::_internal_set_name(
const std::string& value) {
872 _has_bits_[0] |= 0x00000001u;
875 inline void Waypoint::set_name(std::string&& value) {
876 _has_bits_[0] |= 0x00000001u;
881 inline void Waypoint::set_name(
const char* value) {
882 GOOGLE_DCHECK(value !=
nullptr);
883 _has_bits_[0] |= 0x00000001u;
888 inline void Waypoint::set_name(
const char* value,
890 _has_bits_[0] |= 0x00000001u;
892 reinterpret_cast<const char*
>(value), size), GetArena());
895 inline std::string* Waypoint::_internal_mutable_name() {
896 _has_bits_[0] |= 0x00000001u;
899 inline std::string* Waypoint::release_name() {
901 if (!_internal_has_name()) {
904 _has_bits_[0] &= ~0x00000001u;
907 inline void Waypoint::set_allocated_name(std::string* name) {
908 if (name !=
nullptr) {
909 _has_bits_[0] |= 0x00000001u;
911 _has_bits_[0] &= ~0x00000001u;
917 inline std::string* Waypoint::unsafe_arena_release_name() {
919 GOOGLE_DCHECK(GetArena() !=
nullptr);
920 _has_bits_[0] &= ~0x00000001u;
924 inline void Waypoint::unsafe_arena_set_allocated_name(
926 GOOGLE_DCHECK(GetArena() !=
nullptr);
927 if (name !=
nullptr) {
928 _has_bits_[0] |= 0x00000001u;
930 _has_bits_[0] &= ~0x00000001u;
938 inline bool Waypoint::_internal_has_location()
const {
939 bool value = (_has_bits_[0] & 0x00000002u) != 0;
940 PROTOBUF_ASSUME(!value || location_ !=
nullptr);
943 inline bool Waypoint::has_location()
const {
944 return _internal_has_location();
946 inline void Waypoint::clear_location() {
947 if (location_ !=
nullptr) location_->Clear();
948 _has_bits_[0] &= ~0x00000002u;
950 inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::_internal_location()
const {
951 const ::goby::middleware::protobuf::LatLonPoint* p = location_;
952 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::LatLonPoint*
>(
955 inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::location()
const {
957 return _internal_location();
959 inline void Waypoint::unsafe_arena_set_allocated_location(
960 ::goby::middleware::protobuf::LatLonPoint* location) {
961 if (GetArena() ==
nullptr) {
962 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(location_);
964 location_ = location;
966 _has_bits_[0] |= 0x00000002u;
968 _has_bits_[0] &= ~0x00000002u;
972 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::release_location() {
973 auto temp = unsafe_arena_release_location();
974 if (GetArena() !=
nullptr) {
975 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
979 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::unsafe_arena_release_location() {
981 _has_bits_[0] &= ~0x00000002u;
982 ::goby::middleware::protobuf::LatLonPoint* temp = location_;
986 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::_internal_mutable_location() {
987 _has_bits_[0] |= 0x00000002u;
988 if (location_ ==
nullptr) {
989 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArena());
994 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::mutable_location() {
996 return _internal_mutable_location();
998 inline void Waypoint::set_allocated_location(::goby::middleware::protobuf::LatLonPoint* location) {
999 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1000 if (message_arena ==
nullptr) {
1004 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1005 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(location);
1006 if (message_arena != submessage_arena) {
1007 location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1008 message_arena, location, submessage_arena);
1010 _has_bits_[0] |= 0x00000002u;
1012 _has_bits_[0] &= ~0x00000002u;
1014 location_ = location;
1023 inline bool Route::_internal_has_name()
const {
1024 bool value = (_has_bits_[0] & 0x00000001u) != 0;
1027 inline bool Route::has_name()
const {
1028 return _internal_has_name();
1030 inline void Route::clear_name() {
1032 _has_bits_[0] &= ~0x00000001u;
1034 inline const std::string& Route::name()
const {
1036 return _internal_name();
1038 inline void Route::set_name(
const std::string& value) {
1039 _internal_set_name(value);
1042 inline std::string* Route::mutable_name() {
1044 return _internal_mutable_name();
1046 inline const std::string& Route::_internal_name()
const {
1049 inline void Route::_internal_set_name(
const std::string& value) {
1050 _has_bits_[0] |= 0x00000001u;
1053 inline void Route::set_name(std::string&& value) {
1054 _has_bits_[0] |= 0x00000001u;
1059 inline void Route::set_name(
const char* value) {
1060 GOOGLE_DCHECK(value !=
nullptr);
1061 _has_bits_[0] |= 0x00000001u;
1066 inline void Route::set_name(
const char* value,
1068 _has_bits_[0] |= 0x00000001u;
1070 reinterpret_cast<const char*
>(value), size), GetArena());
1073 inline std::string* Route::_internal_mutable_name() {
1074 _has_bits_[0] |= 0x00000001u;
1077 inline std::string* Route::release_name() {
1079 if (!_internal_has_name()) {
1082 _has_bits_[0] &= ~0x00000001u;
1085 inline void Route::set_allocated_name(std::string* name) {
1086 if (name !=
nullptr) {
1087 _has_bits_[0] |= 0x00000001u;
1089 _has_bits_[0] &= ~0x00000001u;
1095 inline std::string* Route::unsafe_arena_release_name() {
1097 GOOGLE_DCHECK(GetArena() !=
nullptr);
1098 _has_bits_[0] &= ~0x00000001u;
1102 inline void Route::unsafe_arena_set_allocated_name(
1103 std::string* name) {
1104 GOOGLE_DCHECK(GetArena() !=
nullptr);
1105 if (name !=
nullptr) {
1106 _has_bits_[0] |= 0x00000001u;
1108 _has_bits_[0] &= ~0x00000001u;
1116 inline int Route::_internal_point_size()
const {
1117 return point_.size();
1119 inline int Route::point_size()
const {
1120 return _internal_point_size();
1122 inline void Route::clear_point() {
1125 inline ::goby::middleware::protobuf::Waypoint* Route::mutable_point(
int index) {
1127 return point_.Mutable(index);
1129 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
1130 Route::mutable_point() {
1134 inline const ::goby::middleware::protobuf::Waypoint& Route::_internal_point(
int index)
const {
1135 return point_.Get(index);
1137 inline const ::goby::middleware::protobuf::Waypoint& Route::point(
int index)
const {
1139 return _internal_point(index);
1141 inline ::goby::middleware::protobuf::Waypoint* Route::_internal_add_point() {
1142 return point_.Add();
1144 inline ::goby::middleware::protobuf::Waypoint* Route::add_point() {
1146 return _internal_add_point();
1148 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
1149 Route::point()
const {
1155 #pragma GCC diagnostic pop
1170 #include <google/protobuf/port_undef.inc>
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > * mutable_point()
std::string * release_name()
static void InitAsDefaultInstance()
std::string * mutable_name()
Quantity altitude_with_units() const
Route(Route &&from) noexcept
Quantity lon_with_units() const
Waypoint(Waypoint &&from) noexcept
friend void swap(Route &a, Route &b)
::goby::middleware::protobuf::Waypoint * mutable_point(int index)
Quantity lat_with_units() const
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
void set_lon_with_units(Quantity value_w_units)
LatLonPoint * New() const final
void set_depth(double value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const Waypoint &from)
void UnsafeArenaSwap(Waypoint *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_name(std::string *name)
void MergeFrom(const Route &from)
Waypoint(const Waypoint &from)
LatLonPoint & operator=(LatLonPoint &&from) noexcept
static const Route & default_instance()
void set_altitude(double value)
Quantity depth_with_units() const
void set_name(const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::length_dimension altitude_dimension
void set_lat_with_units(Quantity value_w_units)
void Swap(LatLonPoint *other)
static const LatLonPoint & default_instance()
void CopyFrom(const Route &from)
void MergeFrom(const LatLonPoint &from)
void set_altitude_with_units(Quantity value_w_units)
void set_name(const char *value, size_t size)
boost::units::unit< depth_dimension, boost::units::si::system > depth_unit
boost::units::quantity< altitude_unit, double > altitude_with_units() const
boost::units::length_dimension depth_dimension
LatLonPoint(const LatLonPoint &from)
static const LatLonPoint * internal_default_instance()
boost::units::unit< altitude_dimension, boost::units::si::system > altitude_unit
boost::units::plane_angle_dimension lat_dimension
Waypoint * New() const final
void set_lon(double value)
void Swap(Waypoint *other)
static const Waypoint & default_instance()
LatLonPoint(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void UnsafeArenaSwap(Route *other)
const ::goby::middleware::protobuf::Waypoint & point(int index) const
friend void swap(LatLonPoint &a, LatLonPoint &b)
void set_lat(double value)
Waypoint & operator=(const Waypoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void MergeFrom(const Waypoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Waypoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
boost::units::quantity< lon_unit, double > lon_with_units() const
LatLonPoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Route & operator=(const Route &from)
Route(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< depth_unit, double > depth_with_units() const
const std::string & name() const
Route * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
LatLonPoint(LatLonPoint &&from) noexcept
void set_depth_with_units(Quantity value_w_units)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const Waypoint * internal_default_instance()
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
void CopyFrom(const LatLonPoint &from)
boost::units::plane_angle_dimension lon_dimension
Waypoint & operator=(Waypoint &&from) noexcept
void set_name(const std::string &value)
Route * New() const final
LatLonPoint & operator=(const LatLonPoint &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Waypoint(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< lat_unit, double > lat_with_units() const
Route & operator=(Route &&from) noexcept
void set_name(std::string &&value)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > & point() const
friend void swap(Waypoint &a, Waypoint &b)
static const Route * internal_default_instance()
::goby::middleware::protobuf::Waypoint * add_point()
bool has_altitude() const
void UnsafeArenaSwap(LatLonPoint *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
@ value
the parser finished reading a JSON value
LatLonPointDefaultTypeInternal _LatLonPoint_default_instance_
RouteDefaultTypeInternal _Route_default_instance_
WaypointDefaultTypeInternal _Waypoint_default_instance_
boost::units::quantity< boost::units::si::length > depth(boost::units::quantity< PressureUnit > pressure, boost::units::quantity< LatitudeUnit > latitude)
Calculates depth from pressure and latitude Adapted from "Algorithms for computation of fundamental p...
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
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::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)