4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_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/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_jaiabot_2fmessages_2fgeographic_5fcoordinate_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[1];
53 static const ::google::protobuf::uint32
offsets[];
59 class GeographicCoordinate;
60 class GeographicCoordinateDefaultTypeInternal;
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
126 return CreateMaybeMessage<GeographicCoordinate>(NULL);
130 return CreateMaybeMessage<GeographicCoordinate>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata
GetMetadata() const final;
186 template<typename Quantity >
188 {
set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
190 template<
typename Quantity >
195 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
199 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
201 template<
typename Quantity >
203 {
set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
205 template<
typename Quantity >
210 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
215 void clear_has_lat();
217 void clear_has_lon();
220 size_t RequiredFieldsByteSizeFallback()
const;
222 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
223 ::google::protobuf::internal::HasBits<1> _has_bits_;
224 mutable ::google::protobuf::internal::CachedSize _cached_size_;
227 friend struct ::protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 return (_has_bits_[0] & 0x00000001u) != 0;
244 inline void GeographicCoordinate::set_has_lat() {
245 _has_bits_[0] |= 0x00000001u;
247 inline void GeographicCoordinate::clear_has_lat() {
248 _has_bits_[0] &= ~0x00000001u;
266 return (_has_bits_[0] & 0x00000002u) != 0;
268 inline void GeographicCoordinate::set_has_lon() {
269 _has_bits_[0] |= 0x00000002u;
271 inline void GeographicCoordinate::clear_has_lon() {
272 _has_bits_[0] &= ~0x00000002u;
289 #pragma GCC diagnostic pop
299 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto