4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_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>
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>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[3];
58 namespace middleware {
61 class LatLonPointDefaultTypeInternal;
64 class RouteDefaultTypeInternal;
67 class WaypointDefaultTypeInternal;
80 namespace middleware {
99 *
this = ::std::move(from);
103 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
104 if (
this != &from) InternalSwap(&from);
112 return _internal_metadata_.unknown_fields();
115 return _internal_metadata_.mutable_unknown_fields();
118 static const ::google::protobuf::Descriptor*
descriptor();
137 return CreateMaybeMessage<LatLonPoint>(NULL);
141 return CreateMaybeMessage<LatLonPoint>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
152 ::
google::protobuf::io::CodedInputStream* input) final;
154 ::
google::protobuf::io::CodedOutputStream* output) const final;
156 bool deterministic, ::
google::protobuf::uint8* target) const final;
162 void SetCachedSize(
int size)
const final;
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
197 double depth() const;
211 template<typename Quantity >
213 {
set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
215 template<
typename Quantity >
220 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
224 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
226 template<
typename Quantity >
228 {
set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
230 template<
typename Quantity >
235 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
239 typedef boost::units::unit<depth_dimension,boost::units::si::system>
depth_unit;
241 template<
typename Quantity >
243 {
set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
245 template<
typename Quantity >
250 {
return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
254 typedef boost::units::unit<altitude_dimension,boost::units::si::system>
altitude_unit;
256 template<
typename Quantity >
258 {
set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
260 template<
typename Quantity >
265 {
return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
270 void clear_has_lat();
272 void clear_has_lon();
273 void set_has_depth();
274 void clear_has_depth();
275 void set_has_altitude();
276 void clear_has_altitude();
279 size_t RequiredFieldsByteSizeFallback()
const;
281 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
282 ::google::protobuf::internal::HasBits<1> _has_bits_;
283 mutable ::google::protobuf::internal::CachedSize _cached_size_;
288 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto::TableStruct;
306 *
this = ::std::move(from);
310 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
311 if (
this != &from) InternalSwap(&from);
319 return _internal_metadata_.unknown_fields();
322 return _internal_metadata_.mutable_unknown_fields();
325 static const ::google::protobuf::Descriptor*
descriptor();
330 return reinterpret_cast<const Waypoint*
>(
344 return CreateMaybeMessage<Waypoint>(NULL);
348 return CreateMaybeMessage<Waypoint>(arena);
350 void CopyFrom(const ::google::protobuf::Message& from)
final;
351 void MergeFrom(const ::google::protobuf::Message& from)
final;
359 ::
google::protobuf::io::CodedInputStream* input) final;
361 ::
google::protobuf::io::CodedOutputStream* output) const final;
363 bool deterministic, ::
google::protobuf::uint8* target) const final;
369 void SetCachedSize(
int size)
const final;
372 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
375 inline void* MaybeArenaPtr()
const {
390 const ::std::
string&
name() const;
391 void set_name(const ::std::
string& value);
393 void set_name(::std::string&& value);
396 void set_name(
const char* value,
size_t size);
406 const ::goby::middleware::protobuf::LatLonPoint& _internal_location()
const;
408 const ::goby::middleware::protobuf::LatLonPoint&
location()
const;
416 void clear_has_name();
417 void set_has_location();
418 void clear_has_location();
420 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
421 ::google::protobuf::internal::HasBits<1> _has_bits_;
422 mutable ::google::protobuf::internal::CachedSize _cached_size_;
423 ::google::protobuf::internal::ArenaStringPtr name_;
425 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto::TableStruct;
443 *
this = ::std::move(from);
447 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
448 if (
this != &from) InternalSwap(&from);
456 return _internal_metadata_.unknown_fields();
459 return _internal_metadata_.mutable_unknown_fields();
462 static const ::google::protobuf::Descriptor*
descriptor();
467 return reinterpret_cast<const Route*
>(
481 return CreateMaybeMessage<Route>(NULL);
485 return CreateMaybeMessage<Route>(arena);
487 void CopyFrom(const ::google::protobuf::Message& from)
final;
488 void MergeFrom(const ::google::protobuf::Message& from)
final;
496 ::
google::protobuf::io::CodedInputStream* input) final;
498 ::
google::protobuf::io::CodedOutputStream* output) const final;
500 bool deterministic, ::
google::protobuf::uint8* target) const final;
506 void SetCachedSize(
int size)
const final;
507 void InternalSwap(
Route* other);
509 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
512 inline void* MaybeArenaPtr()
const {
539 const ::std::
string&
name() const;
540 void set_name(const ::std::
string& value);
542 void set_name(::std::string&& value);
545 void set_name(
const char* value,
size_t size);
553 void clear_has_name();
555 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
556 ::google::protobuf::internal::HasBits<1> _has_bits_;
557 mutable ::google::protobuf::internal::CachedSize _cached_size_;
559 ::google::protobuf::internal::ArenaStringPtr name_;
560 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto::TableStruct;
568 #pragma GCC diagnostic push
569 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
575 return (_has_bits_[0] & 0x00000001u) != 0;
577 inline void LatLonPoint::set_has_lat() {
578 _has_bits_[0] |= 0x00000001u;
580 inline void LatLonPoint::clear_has_lat() {
581 _has_bits_[0] &= ~0x00000001u;
599 return (_has_bits_[0] & 0x00000002u) != 0;
601 inline void LatLonPoint::set_has_lon() {
602 _has_bits_[0] |= 0x00000002u;
604 inline void LatLonPoint::clear_has_lon() {
605 _has_bits_[0] &= ~0x00000002u;
623 return (_has_bits_[0] & 0x00000004u) != 0;
625 inline void LatLonPoint::set_has_depth() {
626 _has_bits_[0] |= 0x00000004u;
628 inline void LatLonPoint::clear_has_depth() {
629 _has_bits_[0] &= ~0x00000004u;
647 return (_has_bits_[0] & 0x00000008u) != 0;
649 inline void LatLonPoint::set_has_altitude() {
650 _has_bits_[0] |= 0x00000008u;
652 inline void LatLonPoint::clear_has_altitude() {
653 _has_bits_[0] &= ~0x00000008u;
657 clear_has_altitude();
675 return (_has_bits_[0] & 0x00000001u) != 0;
677 inline void Waypoint::set_has_name() {
678 _has_bits_[0] |= 0x00000001u;
680 inline void Waypoint::clear_has_name() {
681 _has_bits_[0] &= ~0x00000001u;
689 return name_.GetNoArena();
705 GOOGLE_DCHECK(value != NULL);
713 ::std::string(
reinterpret_cast<const char*
>(value), size));
741 return (_has_bits_[0] & 0x00000002u) != 0;
743 inline void Waypoint::set_has_location() {
744 _has_bits_[0] |= 0x00000002u;
746 inline void Waypoint::clear_has_location() {
747 _has_bits_[0] &= ~0x00000002u;
750 if (location_ != NULL) location_->
Clear();
751 clear_has_location();
753 inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::_internal_location()
const {
757 const ::goby::middleware::protobuf::LatLonPoint* p = location_;
764 clear_has_location();
771 if (location_ == NULL) {
772 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArenaNoVirtual());
780 if (message_arena == NULL) {
785 if (message_arena != submessage_arena) {
786 location = ::google::protobuf::internal::GetOwnedMessage(
787 message_arena,
location, submessage_arena);
791 clear_has_location();
803 return (_has_bits_[0] & 0x00000001u) != 0;
805 inline void Route::set_has_name() {
806 _has_bits_[0] |= 0x00000001u;
808 inline void Route::clear_has_name() {
809 _has_bits_[0] &= ~0x00000001u;
817 return name_.GetNoArena();
833 GOOGLE_DCHECK(value != NULL);
841 ::std::string(
reinterpret_cast<const char*
>(value), size));
869 return point_.size();
876 return point_.Mutable(index);
878 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
883 inline const ::goby::middleware::protobuf::Waypoint&
Route::point(
int index)
const {
885 return point_.Get(index);
891 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
898 #pragma GCC diagnostic pop
913 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto