JaiaBot  1.19.0
JaiaBot micro-AUV software
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 < 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
14 #error your headers.
15 #endif
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.
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_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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
41 
42 #include <boost/units/systems/angle/degrees.hpp>
43 
44 #include <boost/units/systems/si.hpp>
45 // @@protoc_insertion_point(includes)
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
48 PROTOBUF_NAMESPACE_OPEN
49 namespace internal {
50 class AnyMetadata;
51 } // namespace internal
52 PROTOBUF_NAMESPACE_CLOSE
53 
54 // Internal implementation detail -- do not use these members.
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
64  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
65 };
66 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto;
67 namespace jaiabot {
68 namespace protobuf {
69 class GeographicCoordinate;
70 class GeographicCoordinateDefaultTypeInternal;
71 extern GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_;
72 } // namespace protobuf
73 } // namespace jaiabot
74 PROTOBUF_NAMESPACE_OPEN
75 template<> ::jaiabot::protobuf::GeographicCoordinate* Arena::CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(Arena*);
76 PROTOBUF_NAMESPACE_CLOSE
77 namespace jaiabot {
78 namespace protobuf {
79 
80 // ===================================================================
81 
82 class GeographicCoordinate PROTOBUF_FINAL :
83  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.GeographicCoordinate) */ {
84  public:
85  inline GeographicCoordinate() : GeographicCoordinate(nullptr) {};
87 
88  GeographicCoordinate(const GeographicCoordinate& from);
89  GeographicCoordinate(GeographicCoordinate&& from) noexcept
90  : GeographicCoordinate() {
91  *this = ::std::move(from);
92  }
93 
94  inline GeographicCoordinate& operator=(const GeographicCoordinate& from) {
95  CopyFrom(from);
96  return *this;
97  }
98  inline GeographicCoordinate& operator=(GeographicCoordinate&& from) noexcept {
99  if (GetArena() == from.GetArena()) {
100  if (this != &from) InternalSwap(&from);
101  } else {
102  CopyFrom(from);
103  }
104  return *this;
105  }
106 
107  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
108  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109  }
110  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
111  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112  }
113 
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115  return GetDescriptor();
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118  return GetMetadataStatic().descriptor;
119  }
120  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121  return GetMetadataStatic().reflection;
122  }
123  static const GeographicCoordinate& default_instance();
124 
125  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
126  static inline const GeographicCoordinate* internal_default_instance() {
127  return reinterpret_cast<const GeographicCoordinate*>(
129  }
130  static constexpr int kIndexInFileMessages =
131  0;
132 
133  friend void swap(GeographicCoordinate& a, GeographicCoordinate& b) {
134  a.Swap(&b);
135  }
136  inline void Swap(GeographicCoordinate* other) {
137  if (other == this) return;
138  if (GetArena() == other->GetArena()) {
139  InternalSwap(other);
140  } else {
141  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142  }
143  }
144  void UnsafeArenaSwap(GeographicCoordinate* other) {
145  if (other == this) return;
146  GOOGLE_DCHECK(GetArena() == other->GetArena());
147  InternalSwap(other);
148  }
149 
150  // implements Message ----------------------------------------------
151 
152  inline GeographicCoordinate* New() const final {
153  return CreateMaybeMessage<GeographicCoordinate>(nullptr);
154  }
155 
156  GeographicCoordinate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
157  return CreateMaybeMessage<GeographicCoordinate>(arena);
158  }
159  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
160  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
161  void CopyFrom(const GeographicCoordinate& from);
162  void MergeFrom(const GeographicCoordinate& from);
163  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164  bool IsInitialized() const final;
165 
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(); }
171 
172  private:
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";
180  }
181  protected:
182  explicit GeographicCoordinate(::PROTOBUF_NAMESPACE_ID::Arena* arena);
183  private:
184  static void ArenaDtor(void* object);
185  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186  public:
187 
188  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
189  private:
190  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
191  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto);
193  }
194 
195  public:
196 
197  // nested types ----------------------------------------------------
198 
199  // accessors -------------------------------------------------------
200 
201  enum : int {
202  kLatFieldNumber = 1,
203  kLonFieldNumber = 2,
204  };
205  // required double lat = 1 [(.dccl.field) = {
206  bool has_lat() const;
207  private:
208  bool _internal_has_lat() const;
209  public:
210  void clear_lat();
211  double lat() const;
212  void set_lat(double value);
213  private:
214  double _internal_lat() const;
215  void _internal_set_lat(double value);
216  public:
217 
218  // required double lon = 2 [(.dccl.field) = {
219  bool has_lon() const;
220  private:
221  bool _internal_has_lon() const;
222  public:
223  void clear_lon();
224  double lon() const;
225  void set_lon(double value);
226  private:
227  double _internal_lon() const;
228  void _internal_set_lon(double value);
229  public:
230 
231  typedef boost::units::plane_angle_dimension lat_dimension;
232 
233  typedef boost::units::unit<lat_dimension,boost::units::degree::system> lat_unit;
234 
235  template<typename Quantity >
236  void set_lat_with_units(Quantity value_w_units)
237  { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
238 
239  template<typename Quantity >
240  Quantity lat_with_units() const
241  { return Quantity(lat() * lat_unit()); };
242 
243  boost::units::quantity< lat_unit,double > lat_with_units() const
244  { return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
245 
246  typedef boost::units::plane_angle_dimension lon_dimension;
247 
248  typedef boost::units::unit<lon_dimension,boost::units::degree::system> lon_unit;
249 
250  template<typename Quantity >
251  void set_lon_with_units(Quantity value_w_units)
252  { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
253 
254  template<typename Quantity >
255  Quantity lon_with_units() const
256  { return Quantity(lon() * lon_unit()); };
257 
258  boost::units::quantity< lon_unit,double > lon_with_units() const
259  { return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
260 
261  // @@protoc_insertion_point(class_scope:jaiabot.protobuf.GeographicCoordinate)
262  private:
263  class _Internal;
264 
265  // helper for ByteSizeLong()
266  size_t RequiredFieldsByteSizeFallback() const;
267 
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_;
273  double lat_;
274  double lon_;
275  friend struct ::TableStruct_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto;
276 };
277 // ===================================================================
278 
279 
280 // ===================================================================
281 
282 #ifdef __GNUC__
283  #pragma GCC diagnostic push
284  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
285 #endif // __GNUC__
286 // GeographicCoordinate
287 
288 // required double lat = 1 [(.dccl.field) = {
289 inline bool GeographicCoordinate::_internal_has_lat() const {
290  bool value = (_has_bits_[0] & 0x00000001u) != 0;
291  return value;
292 }
293 inline bool GeographicCoordinate::has_lat() const {
294  return _internal_has_lat();
295 }
296 inline void GeographicCoordinate::clear_lat() {
297  lat_ = 0;
298  _has_bits_[0] &= ~0x00000001u;
299 }
300 inline double GeographicCoordinate::_internal_lat() const {
301  return lat_;
302 }
303 inline double GeographicCoordinate::lat() const {
304  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lat)
305  return _internal_lat();
306 }
307 inline void GeographicCoordinate::_internal_set_lat(double value) {
308  _has_bits_[0] |= 0x00000001u;
309  lat_ = value;
310 }
311 inline void GeographicCoordinate::set_lat(double value) {
312  _internal_set_lat(value);
313  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lat)
314 }
315 
316 // required double lon = 2 [(.dccl.field) = {
317 inline bool GeographicCoordinate::_internal_has_lon() const {
318  bool value = (_has_bits_[0] & 0x00000002u) != 0;
319  return value;
320 }
321 inline bool GeographicCoordinate::has_lon() const {
322  return _internal_has_lon();
323 }
324 inline void GeographicCoordinate::clear_lon() {
325  lon_ = 0;
326  _has_bits_[0] &= ~0x00000002u;
327 }
328 inline double GeographicCoordinate::_internal_lon() const {
329  return lon_;
330 }
331 inline double GeographicCoordinate::lon() const {
332  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lon)
333  return _internal_lon();
334 }
335 inline void GeographicCoordinate::_internal_set_lon(double value) {
336  _has_bits_[0] |= 0x00000002u;
337  lon_ = value;
338 }
339 inline void GeographicCoordinate::set_lon(double value) {
340  _internal_set_lon(value);
341  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lon)
342 }
343 
344 #ifdef __GNUC__
345  #pragma GCC diagnostic pop
346 #endif // __GNUC__
347 
348 // @@protoc_insertion_point(namespace_scope)
349 
350 } // namespace protobuf
351 } // namespace jaiabot
352 
353 // @@protoc_insertion_point(global_scope)
354 
355 #include <google/protobuf/port_undef.inc>
356 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
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
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
boost::units::quantity< lat_unit, double > lat_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
void CopyFrom(const GeographicCoordinate &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
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::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)