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"
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
40 #include <boost/units/systems/angle/degrees.hpp>
42 #include <boost/units/systems/si.hpp>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
54 static const ::google::protobuf::uint32
offsets[];
60 class GeographicCoordinate;
61 class GeographicCoordinateDefaultTypeInternal;
89 *
this = ::std::move(from);
93 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94 if (
this != &from) InternalSwap(&from);
102 return _internal_metadata_.unknown_fields();
105 return _internal_metadata_.mutable_unknown_fields();
108 static const ::google::protobuf::Descriptor*
descriptor();
127 return CreateMaybeMessage<GeographicCoordinate>(NULL);
131 return CreateMaybeMessage<GeographicCoordinate>(arena);
133 void CopyFrom(const ::google::protobuf::Message& from)
final;
134 void MergeFrom(const ::google::protobuf::Message& from)
final;
142 ::
google::protobuf::io::CodedInputStream* input) final;
144 ::
google::protobuf::io::CodedOutputStream* output) const final;
146 bool deterministic, ::
google::protobuf::uint8* target) const final;
152 void SetCachedSize(
int size)
const final;
155 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
158 inline void* MaybeArenaPtr()
const {
163 ::google::protobuf::Metadata
GetMetadata() const final;
187 template<typename Quantity >
189 {
set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
191 template<
typename Quantity >
196 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
200 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
202 template<
typename Quantity >
204 {
set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
206 template<
typename Quantity >
211 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
216 void clear_has_lat();
218 void clear_has_lon();
221 size_t RequiredFieldsByteSizeFallback()
const;
223 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224 ::google::protobuf::internal::HasBits<1> _has_bits_;
225 mutable ::google::protobuf::internal::CachedSize _cached_size_;
228 friend struct ::protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct;
236 #pragma GCC diagnostic push
237 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
243 return (_has_bits_[0] & 0x00000001u) != 0;
245 inline void GeographicCoordinate::set_has_lat() {
246 _has_bits_[0] |= 0x00000001u;
248 inline void GeographicCoordinate::clear_has_lat() {
249 _has_bits_[0] &= ~0x00000001u;
267 return (_has_bits_[0] & 0x00000002u) != 0;
269 inline void GeographicCoordinate::set_has_lon() {
270 _has_bits_[0] |= 0x00000002u;
272 inline void GeographicCoordinate::clear_has_lon() {
273 _has_bits_[0] &= ~0x00000002u;
290 #pragma GCC diagnostic pop
300 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto