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 PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
39 
40 #include <boost/units/systems/angle/degrees.hpp>
41 
42 #include <boost/units/systems/si.hpp>
43 // @@protoc_insertion_point(includes)
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
45 
47 // Internal implementation detail -- do not use these members.
48 struct TableStruct {
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];
52  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
53  static const ::google::protobuf::internal::SerializationTable serialization_table[];
54  static const ::google::protobuf::uint32 offsets[];
55 };
56 void AddDescriptors();
57 } // namespace protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
58 namespace jaiabot {
59 namespace protobuf {
60 class GeographicCoordinate;
61 class GeographicCoordinateDefaultTypeInternal;
62 extern GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_;
63 } // namespace protobuf
64 } // namespace jaiabot
65 namespace google {
66 namespace protobuf {
67 template<> ::jaiabot::protobuf::GeographicCoordinate* Arena::CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(Arena*);
68 } // namespace protobuf
69 } // namespace google
70 namespace jaiabot {
71 namespace protobuf {
72 
73 // ===================================================================
74 
75 class GeographicCoordinate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.GeographicCoordinate) */ {
76  public:
78  virtual ~GeographicCoordinate();
79 
81 
83  CopyFrom(from);
84  return *this;
85  }
86  #if LANG_CXX11
89  *this = ::std::move(from);
90  }
91 
92  inline GeographicCoordinate& operator=(GeographicCoordinate&& from) noexcept {
93  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
94  if (this != &from) InternalSwap(&from);
95  } else {
96  CopyFrom(from);
97  }
98  return *this;
99  }
100  #endif
101  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
102  return _internal_metadata_.unknown_fields();
103  }
104  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
105  return _internal_metadata_.mutable_unknown_fields();
106  }
107 
108  static const ::google::protobuf::Descriptor* descriptor();
109  static const GeographicCoordinate& default_instance();
110 
111  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
113  return reinterpret_cast<const GeographicCoordinate*>(
115  }
116  static constexpr int kIndexInFileMessages =
117  0;
118 
119  void Swap(GeographicCoordinate* other);
121  a.Swap(&b);
122  }
123 
124  // implements Message ----------------------------------------------
125 
126  inline GeographicCoordinate* New() const final {
127  return CreateMaybeMessage<GeographicCoordinate>(NULL);
128  }
129 
130  GeographicCoordinate* New(::google::protobuf::Arena* arena) const final {
131  return CreateMaybeMessage<GeographicCoordinate>(arena);
132  }
133  void CopyFrom(const ::google::protobuf::Message& from) final;
134  void MergeFrom(const ::google::protobuf::Message& from) final;
135  void CopyFrom(const GeographicCoordinate& from);
136  void MergeFrom(const GeographicCoordinate& from);
137  void Clear() final;
138  bool IsInitialized() const final;
139 
140  size_t ByteSizeLong() const 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;
147  int GetCachedSize() const final { return _cached_size_.Get(); }
148 
149  private:
150  void SharedCtor();
151  void SharedDtor();
152  void SetCachedSize(int size) const final;
153  void InternalSwap(GeographicCoordinate* other);
154  private:
155  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
156  return NULL;
157  }
158  inline void* MaybeArenaPtr() const {
159  return NULL;
160  }
161  public:
162 
163  ::google::protobuf::Metadata GetMetadata() const final;
164 
165  // nested types ----------------------------------------------------
166 
167  // accessors -------------------------------------------------------
168 
169  // required double lat = 1 [(.dccl.field) = {
170  bool has_lat() const;
171  void clear_lat();
172  static const int kLatFieldNumber = 1;
173  double lat() const;
174  void set_lat(double value);
175 
176  // required double lon = 2 [(.dccl.field) = {
177  bool has_lon() const;
178  void clear_lon();
179  static const int kLonFieldNumber = 2;
180  double lon() const;
181  void set_lon(double value);
182 
183  typedef boost::units::plane_angle_dimension lat_dimension;
184 
185  typedef boost::units::unit<lat_dimension,boost::units::degree::system> lat_unit;
186 
187  template<typename Quantity >
188  void set_lat_with_units(Quantity value_w_units)
189  { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
190 
191  template<typename Quantity >
192  Quantity lat_with_units() const
193  { return Quantity(lat() * lat_unit()); };
194 
195  boost::units::quantity< lat_unit,double > lat_with_units() const
196  { return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
197 
198  typedef boost::units::plane_angle_dimension lon_dimension;
199 
200  typedef boost::units::unit<lon_dimension,boost::units::degree::system> lon_unit;
201 
202  template<typename Quantity >
203  void set_lon_with_units(Quantity value_w_units)
204  { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
205 
206  template<typename Quantity >
207  Quantity lon_with_units() const
208  { return Quantity(lon() * lon_unit()); };
209 
210  boost::units::quantity< lon_unit,double > lon_with_units() const
211  { return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
212 
213  // @@protoc_insertion_point(class_scope:jaiabot.protobuf.GeographicCoordinate)
214  private:
215  void set_has_lat();
216  void clear_has_lat();
217  void set_has_lon();
218  void clear_has_lon();
219 
220  // helper for ByteSizeLong()
221  size_t RequiredFieldsByteSizeFallback() const;
222 
223  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
224  ::google::protobuf::internal::HasBits<1> _has_bits_;
225  mutable ::google::protobuf::internal::CachedSize _cached_size_;
226  double lat_;
227  double lon_;
228  friend struct ::protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct;
229 };
230 // ===================================================================
231 
232 
233 // ===================================================================
234 
235 #ifdef __GNUC__
236  #pragma GCC diagnostic push
237  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
238 #endif // __GNUC__
239 // GeographicCoordinate
240 
241 // required double lat = 1 [(.dccl.field) = {
242 inline bool GeographicCoordinate::has_lat() const {
243  return (_has_bits_[0] & 0x00000001u) != 0;
244 }
245 inline void GeographicCoordinate::set_has_lat() {
246  _has_bits_[0] |= 0x00000001u;
247 }
248 inline void GeographicCoordinate::clear_has_lat() {
249  _has_bits_[0] &= ~0x00000001u;
250 }
252  lat_ = 0;
253  clear_has_lat();
254 }
255 inline double GeographicCoordinate::lat() const {
256  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lat)
257  return lat_;
258 }
259 inline void GeographicCoordinate::set_lat(double value) {
260  set_has_lat();
261  lat_ = value;
262  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lat)
263 }
264 
265 // required double lon = 2 [(.dccl.field) = {
266 inline bool GeographicCoordinate::has_lon() const {
267  return (_has_bits_[0] & 0x00000002u) != 0;
268 }
269 inline void GeographicCoordinate::set_has_lon() {
270  _has_bits_[0] |= 0x00000002u;
271 }
272 inline void GeographicCoordinate::clear_has_lon() {
273  _has_bits_[0] &= ~0x00000002u;
274 }
276  lon_ = 0;
277  clear_has_lon();
278 }
279 inline double GeographicCoordinate::lon() const {
280  // @@protoc_insertion_point(field_get:jaiabot.protobuf.GeographicCoordinate.lon)
281  return lon_;
282 }
283 inline void GeographicCoordinate::set_lon(double value) {
284  set_has_lon();
285  lon_ = value;
286  // @@protoc_insertion_point(field_set:jaiabot.protobuf.GeographicCoordinate.lon)
287 }
288 
289 #ifdef __GNUC__
290  #pragma GCC diagnostic pop
291 #endif // __GNUC__
292 
293 // @@protoc_insertion_point(namespace_scope)
294 
295 } // namespace protobuf
296 } // namespace jaiabot
297 
298 // @@protoc_insertion_point(global_scope)
299 
300 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
jaiabot::protobuf::GeographicCoordinate::ByteSizeLong
size_t ByteSizeLong() const final
jaiabot::protobuf::GeographicCoordinate::clear_lon
void clear_lon()
Definition: geographic_coordinate.pb.h:275
jaiabot::protobuf::GeographicCoordinate::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: geographic_coordinate.pb.h:50
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: geographic_coordinate.pb.h:51
jaiabot::protobuf::GeographicCoordinate::lat_dimension
boost::units::plane_angle_dimension lat_dimension
Definition: geographic_coordinate.pb.h:183
jaiabot::protobuf::GeographicCoordinate::internal_default_instance
static const GeographicCoordinate * internal_default_instance()
Definition: geographic_coordinate.pb.h:112
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct
Definition: geographic_coordinate.pb.h:48
jaiabot::protobuf::GeographicCoordinate::Swap
void Swap(GeographicCoordinate *other)
jaiabot::protobuf::GeographicCoordinate::set_lat_with_units
void set_lat_with_units(Quantity value_w_units)
Definition: geographic_coordinate.pb.h:188
jaiabot::protobuf::GeographicCoordinate::New
GeographicCoordinate * New(::google::protobuf::Arena *arena) const final
Definition: geographic_coordinate.pb.h:130
jaiabot::protobuf::GeographicCoordinate::set_lon_with_units
void set_lon_with_units(Quantity value_w_units)
Definition: geographic_coordinate.pb.h:203
jaiabot::protobuf::GeographicCoordinate::has_lon
bool has_lon() const
Definition: geographic_coordinate.pb.h:266
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: geographic_coordinate.pb.h:49
jaiabot::protobuf::GeographicCoordinate::lon_dimension
boost::units::plane_angle_dimension lon_dimension
Definition: geographic_coordinate.pb.h:196
boost
Definition: udp_driver.h:51
jaiabot::protobuf::GeographicCoordinate::operator=
GeographicCoordinate & operator=(const GeographicCoordinate &from)
Definition: geographic_coordinate.pb.h:82
jaiabot::protobuf::GeographicCoordinate::descriptor
static const ::google::protobuf::Descriptor * descriptor()
jaiabot::protobuf::GeographicCoordinate::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: geographic_coordinate.pb.h:116
jaiabot::protobuf::GeographicCoordinate::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::GeographicCoordinate::lat
double lat() const
Definition: geographic_coordinate.pb.h:255
jaiabot::protobuf::GeographicCoordinate::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: geographic_coordinate.pb.h:104
jaiabot::protobuf::GeographicCoordinate::~GeographicCoordinate
virtual ~GeographicCoordinate()
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: geographic_coordinate.pb.h:54
jaiabot::protobuf::GeographicCoordinate::lat_with_units
Quantity lat_with_units() const
Definition: geographic_coordinate.pb.h:192
jaiabot::protobuf::GeographicCoordinate::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
jaiabot::protobuf::GeographicCoordinate::lat_with_units
boost::units::quantity< lat_unit, double > lat_with_units() const
Definition: geographic_coordinate.pb.h:195
jaiabot::protobuf::GeographicCoordinate::lon_unit
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
Definition: geographic_coordinate.pb.h:200
jaiabot::protobuf::_GeographicCoordinate_default_instance_
GeographicCoordinateDefaultTypeInternal _GeographicCoordinate_default_instance_
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: geographic_coordinate.pb.h:52
jaiabot::protobuf::GeographicCoordinate::set_lon
void set_lon(double value)
Definition: geographic_coordinate.pb.h:283
jaiabot::protobuf::GeographicCoordinate::lon_with_units
boost::units::quantity< lon_unit, double > lon_with_units() const
Definition: geographic_coordinate.pb.h:210
jaiabot::protobuf::GeographicCoordinate::Clear
void Clear() final
jaiabot::protobuf::GeographicCoordinate::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
jaiabot::protobuf::GeographicCoordinate::lat_unit
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
Definition: geographic_coordinate.pb.h:185
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: geographic_coordinate.pb.h:53
jaiabot::protobuf::GeographicCoordinate::lon_with_units
Quantity lon_with_units() const
Definition: geographic_coordinate.pb.h:207
jaiabot::protobuf::GeographicCoordinate
Definition: geographic_coordinate.pb.h:75
jaiabot::protobuf::GeographicCoordinate::kLatFieldNumber
static const int kLatFieldNumber
Definition: geographic_coordinate.pb.h:172
jaiabot::protobuf::GeographicCoordinate::set_lat
void set_lat(double value)
Definition: geographic_coordinate.pb.h:259
jaiabot::protobuf::GeographicCoordinate::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: geographic_coordinate.pb.h:101
jaiabot
Definition: config.pb.h:56
jaiabot::protobuf::GeographicCoordinate::default_instance
static const GeographicCoordinate & default_instance()
jaiabot::protobuf::GeographicCoordinate::New
GeographicCoordinate * New() const final
Definition: geographic_coordinate.pb.h:126
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto
Definition: geographic_coordinate.pb.h:46
jaiabot::protobuf::GeographicCoordinate::GeographicCoordinate
GeographicCoordinate()
jaiabot::protobuf::GeographicCoordinate::swap
friend void swap(GeographicCoordinate &a, GeographicCoordinate &b)
Definition: geographic_coordinate.pb.h:120
option_extensions.pb.h
jaiabot::protobuf::GeographicCoordinate::IsInitialized
bool IsInitialized() const final
jaiabot::protobuf::GeographicCoordinate::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
jaiabot::protobuf::GeographicCoordinate::lon
double lon() const
Definition: geographic_coordinate.pb.h:279
jaiabot::protobuf::GeographicCoordinate::has_lat
bool has_lat() const
Definition: geographic_coordinate.pb.h:242
jaiabot::protobuf::GeographicCoordinate::clear_lat
void clear_lat()
Definition: geographic_coordinate.pb.h:251
jaiabot::protobuf::GeographicCoordinate::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
jaiabot::protobuf::GeographicCoordinate::InitAsDefaultInstance
static void InitAsDefaultInstance()
protobuf_jaiabot_2fmessages_2fgeographic_5fcoordinate_2eproto::AddDescriptors
void AddDescriptors()
google
Definition: config.pb.h:63
jaiabot::protobuf::GeographicCoordinate::kLonFieldNumber
static const int kLonFieldNumber
Definition: geographic_coordinate.pb.h:179
jaiabot::protobuf::GeographicCoordinate::GetCachedSize
int GetCachedSize() const final
Definition: geographic_coordinate.pb.h:147