JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
geographic_coordinate.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/geographic_coordinate.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3021012 < 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.
20#endif
21
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_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/unknown_field_set.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>
39
40#include <boost/units/systems/angle/degrees.hpp>
41
42#include <boost/units/systems/si.hpp>
43// @@protoc_insertion_point(includes)
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto;
57namespace jaiabot {
58namespace protobuf {
59class GeographicCoordinate;
60struct GeographicCoordinateDefaultTypeInternal;
61extern GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_;
62} // namespace protobuf
63} // namespace jaiabot
64PROTOBUF_NAMESPACE_OPEN
65template<> ::jaiabot::protobuf::GeographicCoordinate* Arena::CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace jaiabot {
68namespace protobuf {
69
70// ===================================================================
71
73 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.GeographicCoordinate) */ {
74 public:
77 explicit PROTOBUF_CONSTEXPR GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
78
82 *this = ::std::move(from);
83 }
84
86 CopyFrom(from);
87 return *this;
88 }
90 if (this == &from) return *this;
91 if (GetOwningArena() == from.GetOwningArena()
92 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
93 && GetOwningArena() != nullptr
94 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
95 ) {
96 InternalSwap(&from);
97 } else {
98 CopyFrom(from);
99 }
100 return *this;
101 }
102
103 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
104 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 }
106 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
107 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 }
109
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
111 return GetDescriptor();
112 }
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
114 return default_instance().GetMetadata().descriptor;
115 }
116 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
117 return default_instance().GetMetadata().reflection;
118 }
123 return reinterpret_cast<const GeographicCoordinate*>(
125 }
126 static constexpr int kIndexInFileMessages =
127 0;
128
130 a.Swap(&b);
131 }
132 inline void Swap(GeographicCoordinate* other) {
133 if (other == this) return;
134 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
135 if (GetOwningArena() != nullptr &&
136 GetOwningArena() == other->GetOwningArena()) {
137 #else // PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() == other->GetOwningArena()) {
139 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
140 InternalSwap(other);
141 } else {
142 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
143 }
144 }
146 if (other == this) return;
147 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
148 InternalSwap(other);
149 }
150
151 // implements Message ----------------------------------------------
152
153 GeographicCoordinate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
154 return CreateMaybeMessage<GeographicCoordinate>(arena);
155 }
156 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
158 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
159 void MergeFrom( const GeographicCoordinate& from) {
160 GeographicCoordinate::MergeImpl(*this, from);
161 }
162 private:
163 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
164 public:
165 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
166 bool IsInitialized() const final;
167
168 size_t ByteSizeLong() const final;
169 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
171 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
172 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
173
174 private:
175 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
176 void SharedDtor();
177 void SetCachedSize(int size) const final;
178 void InternalSwap(GeographicCoordinate* other);
179
180 private:
181 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183 return "jaiabot.protobuf.GeographicCoordinate";
184 }
185 protected:
186 explicit GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
187 bool is_message_owned = false);
188 public:
189
190 static const ClassData _class_data_;
191 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
192
193 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
194
195 // nested types ----------------------------------------------------
196
197 // accessors -------------------------------------------------------
198
199 enum : int {
202 };
203 // required double lat = 1 [(.dccl.field) = {
204 bool has_lat() const;
205 private:
206 bool _internal_has_lat() const;
207 public:
208 void clear_lat();
209 double lat() const;
210 void set_lat(double value);
211 private:
212 double _internal_lat() const;
213 void _internal_set_lat(double value);
214 public:
215
216 // required double lon = 2 [(.dccl.field) = {
217 bool has_lon() const;
218 private:
219 bool _internal_has_lon() const;
220 public:
221 void clear_lon();
222 double lon() const;
223 void set_lon(double value);
224 private:
225 double _internal_lon() const;
226 void _internal_set_lon(double value);
227 public:
228
229 typedef boost::units::plane_angle_dimension lat_dimension;
230
231 typedef boost::units::unit<lat_dimension,boost::units::degree::system> lat_unit;
232
233 template<typename Quantity >
234 void set_lat_with_units(Quantity value_w_units)
235 { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
236
237 template<typename Quantity >
238 Quantity lat_with_units() const
239 { return Quantity(lat() * lat_unit()); };
240
241 boost::units::quantity< lat_unit,double > lat_with_units() const
242 { return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
243
244 typedef boost::units::plane_angle_dimension lon_dimension;
245
246 typedef boost::units::unit<lon_dimension,boost::units::degree::system> lon_unit;
247
248 template<typename Quantity >
249 void set_lon_with_units(Quantity value_w_units)
250 { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
251
252 template<typename Quantity >
253 Quantity lon_with_units() const
254 { return Quantity(lon() * lon_unit()); };
255
256 boost::units::quantity< lon_unit,double > lon_with_units() const
257 { return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
258
259 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.GeographicCoordinate)
260 private:
261 class _Internal;
262
263 // helper for ByteSizeLong()
264 size_t RequiredFieldsByteSizeFallback() const;
265
266 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
267 typedef void InternalArenaConstructable_;
268 typedef void DestructorSkippable_;
269 struct Impl_ {
270 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
271 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
272 double lat_;
273 double lon_;
274 };
275 union { Impl_ _impl_; };
276 friend struct ::TableStruct_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto;
277};
278// ===================================================================
279
280
281// ===================================================================
282
283#ifdef __GNUC__
284 #pragma GCC diagnostic push
285 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
286#endif // __GNUC__
287// GeographicCoordinate
288
289// required double lat = 1 [(.dccl.field) = {
290inline bool GeographicCoordinate::_internal_has_lat() const {
291 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
292 return value;
293}
294inline bool GeographicCoordinate::has_lat() const {
295 return _internal_has_lat();
296}
298 _impl_.lat_ = 0;
299 _impl_._has_bits_[0] &= ~0x00000001u;
300}
301inline double GeographicCoordinate::_internal_lat() const {
302 return _impl_.lat_;
303}
304inline double GeographicCoordinate::lat() const {
305 // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lat)
306 return _internal_lat();
307}
308inline void GeographicCoordinate::_internal_set_lat(double value) {
309 _impl_._has_bits_[0] |= 0x00000001u;
310 _impl_.lat_ = value;
311}
312inline void GeographicCoordinate::set_lat(double value) {
313 _internal_set_lat(value);
314 // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lat)
315}
316
317// required double lon = 2 [(.dccl.field) = {
318inline bool GeographicCoordinate::_internal_has_lon() const {
319 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
320 return value;
321}
322inline bool GeographicCoordinate::has_lon() const {
323 return _internal_has_lon();
324}
326 _impl_.lon_ = 0;
327 _impl_._has_bits_[0] &= ~0x00000002u;
328}
329inline double GeographicCoordinate::_internal_lon() const {
330 return _impl_.lon_;
331}
332inline double GeographicCoordinate::lon() const {
333 // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lon)
334 return _internal_lon();
335}
336inline void GeographicCoordinate::_internal_set_lon(double value) {
337 _impl_._has_bits_[0] |= 0x00000002u;
338 _impl_.lon_ = value;
339}
340inline void GeographicCoordinate::set_lon(double value) {
341 _internal_set_lon(value);
342 // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lon)
343}
344
345#ifdef __GNUC__
346 #pragma GCC diagnostic pop
347#endif // __GNUC__
348
349// @@protoc_insertion_point(namespace_scope)
350
351} // namespace protobuf
352} // namespace jaiabot
353
354// @@protoc_insertion_point(global_scope)
355
356#include <google/protobuf/port_undef.inc>
357#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
GeographicCoordinate(GeographicCoordinate &&from) noexcept
GeographicCoordinate * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
boost::units::plane_angle_dimension lat_dimension
GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
friend void swap(GeographicCoordinate &a, GeographicCoordinate &b)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
boost::units::quantity< lon_unit, double > lon_with_units() const
static const GeographicCoordinate & default_instance()
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
void MergeFrom(const GeographicCoordinate &from)
PROTOBUF_CONSTEXPR GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const GeographicCoordinate * internal_default_instance()
GeographicCoordinate(const GeographicCoordinate &from)
GeographicCoordinate & operator=(GeographicCoordinate &&from) noexcept
void CopyFrom(const GeographicCoordinate &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
GeographicCoordinate & operator=(const GeographicCoordinate &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void UnsafeArenaSwap(GeographicCoordinate *other)
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
boost::units::plane_angle_dimension lon_dimension
boost::units::quantity< lat_unit, double > lat_with_units() const
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_