4 #ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_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>
24 #include <google/protobuf/arena.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>
31 #include <google/protobuf/message.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"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <boost/units/systems/angle/degrees.hpp>
44 #include <boost/units/systems/si.hpp>
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
48 PROTOBUF_NAMESPACE_OPEN
52 PROTOBUF_NAMESPACE_CLOSE
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
64 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
69 class GeographicCoordinate;
70 class GeographicCoordinateDefaultTypeInternal;
74 PROTOBUF_NAMESPACE_OPEN
75 template<> ::jaiabot::protobuf::GeographicCoordinate* Arena::CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
82 class GeographicCoordinate PROTOBUF_FINAL :
83 public ::PROTOBUF_NAMESPACE_ID::Message {
90 : GeographicCoordinate() {
91 *
this = ::std::move(from);
94 inline GeographicCoordinate&
operator=(
const GeographicCoordinate& from) {
98 inline GeographicCoordinate&
operator=(GeographicCoordinate&& from) noexcept {
99 if (GetArena() == from.GetArena()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
115 return GetDescriptor();
118 return GetMetadataStatic().descriptor;
121 return GetMetadataStatic().reflection;
127 return reinterpret_cast<const GeographicCoordinate*
>(
130 static constexpr
int kIndexInFileMessages =
133 friend void swap(GeographicCoordinate& a, GeographicCoordinate& b) {
136 inline void Swap(GeographicCoordinate* other) {
137 if (other ==
this)
return;
138 if (GetArena() == other->GetArena()) {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
145 if (other ==
this)
return;
146 GOOGLE_DCHECK(GetArena() == other->GetArena());
152 inline GeographicCoordinate*
New() const final {
153 return CreateMaybeMessage<GeographicCoordinate>(
nullptr);
156 GeographicCoordinate*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
157 return CreateMaybeMessage<GeographicCoordinate>(arena);
159 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
160 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
163 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
164 bool IsInitialized() const final;
166 size_t ByteSizeLong() const final;
167 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
168 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
169 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
170 int GetCachedSize() const final {
return _cached_size_.Get(); }
173 inline void SharedCtor();
174 inline void SharedDtor();
175 void SetCachedSize(
int size)
const final;
176 void InternalSwap(GeographicCoordinate* other);
177 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
178 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
179 return "jaiabot.protobuf.GeographicCoordinate";
184 static void ArenaDtor(
void*
object);
185 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
190 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
208 bool _internal_has_lat()
const;
214 double _internal_lat()
const;
215 void _internal_set_lat(
double value);
221 bool _internal_has_lon()
const;
227 double _internal_lon()
const;
228 void _internal_set_lon(
double value);
233 typedef boost::units::unit<lat_dimension,boost::units::degree::system>
lat_unit;
235 template<
typename Quantity >
237 { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
239 template<
typename Quantity >
241 {
return Quantity(lat() *
lat_unit()); };
244 {
return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
248 typedef boost::units::unit<lon_dimension,boost::units::degree::system>
lon_unit;
250 template<
typename Quantity >
252 { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
254 template<
typename Quantity >
256 {
return Quantity(lon() *
lon_unit()); };
259 {
return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
266 size_t RequiredFieldsByteSizeFallback()
const;
268 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
269 typedef void InternalArenaConstructable_;
270 typedef void DestructorSkippable_;
271 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
272 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
275 friend struct ::TableStruct_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto;
283 #pragma GCC diagnostic push
284 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
289 inline bool GeographicCoordinate::_internal_has_lat()
const {
290 bool value = (_has_bits_[0] & 0x00000001u) != 0;
293 inline bool GeographicCoordinate::has_lat()
const {
294 return _internal_has_lat();
296 inline void GeographicCoordinate::clear_lat() {
298 _has_bits_[0] &= ~0x00000001u;
300 inline double GeographicCoordinate::_internal_lat()
const {
303 inline double GeographicCoordinate::lat()
const {
305 return _internal_lat();
307 inline void GeographicCoordinate::_internal_set_lat(
double value) {
308 _has_bits_[0] |= 0x00000001u;
311 inline void GeographicCoordinate::set_lat(
double value) {
312 _internal_set_lat(value);
317 inline bool GeographicCoordinate::_internal_has_lon()
const {
318 bool value = (_has_bits_[0] & 0x00000002u) != 0;
321 inline bool GeographicCoordinate::has_lon()
const {
322 return _internal_has_lon();
324 inline void GeographicCoordinate::clear_lon() {
326 _has_bits_[0] &= ~0x00000002u;
328 inline double GeographicCoordinate::_internal_lon()
const {
331 inline double GeographicCoordinate::lon()
const {
333 return _internal_lon();
335 inline void GeographicCoordinate::_internal_set_lon(
double value) {
336 _has_bits_[0] |= 0x00000002u;
339 inline void GeographicCoordinate::set_lon(
double value) {
340 _internal_set_lon(value);
345 #pragma GCC diagnostic pop
355 #include <google/protobuf/port_undef.inc>
void Swap(GeographicCoordinate *other)
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void UnsafeArenaSwap(GeographicCoordinate *other)
static const GeographicCoordinate & default_instance()
friend void swap(GeographicCoordinate &a, GeographicCoordinate &b)
GeographicCoordinate & operator=(GeographicCoordinate &&from) noexcept
GeographicCoordinate & operator=(const GeographicCoordinate &from)
GeographicCoordinate * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
GeographicCoordinate(const GeographicCoordinate &from)
void MergeFrom(const GeographicCoordinate &from)
void set_lat_with_units(Quantity value_w_units)
boost::units::quantity< lon_unit, double > lon_with_units() const
void set_lat(double value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
boost::units::quantity< lat_unit, double > lat_with_units() const
Quantity lon_with_units() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::Arena *arena)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
boost::units::plane_angle_dimension lat_dimension
static const GeographicCoordinate * internal_default_instance()
void set_lon_with_units(Quantity value_w_units)
boost::units::plane_angle_dimension lon_dimension
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
virtual ~GeographicCoordinate()
void CopyFrom(const GeographicCoordinate &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Quantity lat_with_units() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_lon(double value)
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
static void InitAsDefaultInstance()
GeographicCoordinate * New() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
GeographicCoordinate(GeographicCoordinate &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)