Goby3  3.1.5
2024.05.14
geographic.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/middleware/protobuf/geographic.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_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>
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"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
40 
41 #include <boost/units/systems/angle/degrees.hpp>
42 
43 #include <boost/units/systems/si.hpp>
44 // @@protoc_insertion_point(includes)
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
47 PROTOBUF_NAMESPACE_OPEN
48 namespace internal {
49 class AnyMetadata;
50 } // namespace internal
51 PROTOBUF_NAMESPACE_CLOSE
52 
53 // Internal implementation detail -- do not use these members.
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
62  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
64 };
65 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
66 namespace goby {
67 namespace middleware {
68 namespace protobuf {
69 class LatLonPoint;
70 class LatLonPointDefaultTypeInternal;
71 extern LatLonPointDefaultTypeInternal _LatLonPoint_default_instance_;
72 class Route;
73 class RouteDefaultTypeInternal;
74 extern RouteDefaultTypeInternal _Route_default_instance_;
75 class Waypoint;
76 class WaypointDefaultTypeInternal;
77 extern WaypointDefaultTypeInternal _Waypoint_default_instance_;
78 } // namespace protobuf
79 } // namespace middleware
80 } // namespace goby
81 PROTOBUF_NAMESPACE_OPEN
82 template<> ::goby::middleware::protobuf::LatLonPoint* Arena::CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(Arena*);
83 template<> ::goby::middleware::protobuf::Route* Arena::CreateMaybeMessage<::goby::middleware::protobuf::Route>(Arena*);
84 template<> ::goby::middleware::protobuf::Waypoint* Arena::CreateMaybeMessage<::goby::middleware::protobuf::Waypoint>(Arena*);
85 PROTOBUF_NAMESPACE_CLOSE
86 namespace goby {
87 namespace middleware {
88 namespace protobuf {
89 
90 // ===================================================================
91 
92 class LatLonPoint PROTOBUF_FINAL :
93  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.LatLonPoint) */ {
94  public:
95  inline LatLonPoint() : LatLonPoint(nullptr) {};
96  virtual ~LatLonPoint();
97 
98  LatLonPoint(const LatLonPoint& from);
99  LatLonPoint(LatLonPoint&& from) noexcept
100  : LatLonPoint() {
101  *this = ::std::move(from);
102  }
103 
104  inline LatLonPoint& operator=(const LatLonPoint& from) {
105  CopyFrom(from);
106  return *this;
107  }
108  inline LatLonPoint& operator=(LatLonPoint&& from) noexcept {
109  if (GetArena() == from.GetArena()) {
110  if (this != &from) InternalSwap(&from);
111  } else {
112  CopyFrom(from);
113  }
114  return *this;
115  }
116 
117  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
118  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
119  }
120  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
121  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
122  }
123 
124  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
125  return GetDescriptor();
126  }
127  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
128  return GetMetadataStatic().descriptor;
129  }
130  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
131  return GetMetadataStatic().reflection;
132  }
133  static const LatLonPoint& default_instance();
134 
135  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
136  static inline const LatLonPoint* internal_default_instance() {
137  return reinterpret_cast<const LatLonPoint*>(
139  }
140  static constexpr int kIndexInFileMessages =
141  0;
142 
143  friend void swap(LatLonPoint& a, LatLonPoint& b) {
144  a.Swap(&b);
145  }
146  inline void Swap(LatLonPoint* other) {
147  if (other == this) return;
148  if (GetArena() == other->GetArena()) {
149  InternalSwap(other);
150  } else {
151  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
152  }
153  }
154  void UnsafeArenaSwap(LatLonPoint* other) {
155  if (other == this) return;
156  GOOGLE_DCHECK(GetArena() == other->GetArena());
157  InternalSwap(other);
158  }
159 
160  // implements Message ----------------------------------------------
161 
162  inline LatLonPoint* New() const final {
163  return CreateMaybeMessage<LatLonPoint>(nullptr);
164  }
165 
166  LatLonPoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
167  return CreateMaybeMessage<LatLonPoint>(arena);
168  }
169  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
170  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
171  void CopyFrom(const LatLonPoint& from);
172  void MergeFrom(const LatLonPoint& from);
173  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
174  bool IsInitialized() const final;
175 
176  size_t ByteSizeLong() const final;
177  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
178  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
179  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180  int GetCachedSize() const final { return _cached_size_.Get(); }
181 
182  private:
183  inline void SharedCtor();
184  inline void SharedDtor();
185  void SetCachedSize(int size) const final;
186  void InternalSwap(LatLonPoint* other);
187  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189  return "goby.middleware.protobuf.LatLonPoint";
190  }
191  protected:
192  explicit LatLonPoint(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  private:
194  static void ArenaDtor(void* object);
195  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
196  public:
197 
198  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
199  private:
200  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
201  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto);
202  return ::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto.file_level_metadata[kIndexInFileMessages];
203  }
204 
205  public:
206 
207  // nested types ----------------------------------------------------
208 
209  // accessors -------------------------------------------------------
210 
211  enum : int {
212  kLatFieldNumber = 1,
213  kLonFieldNumber = 2,
214  kDepthFieldNumber = 3,
215  kAltitudeFieldNumber = 4,
216  };
217  // required double lat = 1 [(.dccl.field) = {
218  bool has_lat() const;
219  private:
220  bool _internal_has_lat() const;
221  public:
222  void clear_lat();
223  double lat() const;
224  void set_lat(double value);
225  private:
226  double _internal_lat() const;
227  void _internal_set_lat(double value);
228  public:
229 
230  // required double lon = 2 [(.dccl.field) = {
231  bool has_lon() const;
232  private:
233  bool _internal_has_lon() const;
234  public:
235  void clear_lon();
236  double lon() const;
237  void set_lon(double value);
238  private:
239  double _internal_lon() const;
240  void _internal_set_lon(double value);
241  public:
242 
243  // optional double depth = 3 [default = 0, (.dccl.field) = {
244  bool has_depth() const;
245  private:
246  bool _internal_has_depth() const;
247  public:
248  void clear_depth();
249  double depth() const;
250  void set_depth(double value);
251  private:
252  double _internal_depth() const;
253  void _internal_set_depth(double value);
254  public:
255 
256  // optional double altitude = 4 [default = nan, (.dccl.field) = {
257  bool has_altitude() const;
258  private:
259  bool _internal_has_altitude() const;
260  public:
262  double altitude() const;
263  void set_altitude(double value);
264  private:
265  double _internal_altitude() const;
266  void _internal_set_altitude(double value);
267  public:
268 
269  typedef boost::units::plane_angle_dimension lat_dimension;
270 
271  typedef boost::units::unit<lat_dimension,boost::units::degree::system> lat_unit;
272 
273  template<typename Quantity >
274  void set_lat_with_units(Quantity value_w_units)
275  { set_lat(boost::units::quantity<lat_unit,double >(value_w_units).value() ); };
276 
277  template<typename Quantity >
278  Quantity lat_with_units() const
279  { return Quantity(lat() * lat_unit()); };
280 
281  boost::units::quantity< lat_unit,double > lat_with_units() const
282  { return lat_with_units<boost::units::quantity< lat_unit,double > >(); };
283 
284  typedef boost::units::plane_angle_dimension lon_dimension;
285 
286  typedef boost::units::unit<lon_dimension,boost::units::degree::system> lon_unit;
287 
288  template<typename Quantity >
289  void set_lon_with_units(Quantity value_w_units)
290  { set_lon(boost::units::quantity<lon_unit,double >(value_w_units).value() ); };
291 
292  template<typename Quantity >
293  Quantity lon_with_units() const
294  { return Quantity(lon() * lon_unit()); };
295 
296  boost::units::quantity< lon_unit,double > lon_with_units() const
297  { return lon_with_units<boost::units::quantity< lon_unit,double > >(); };
298 
299  typedef boost::units::length_dimension depth_dimension;
300 
301  typedef boost::units::unit<depth_dimension,boost::units::si::system> depth_unit;
302 
303  template<typename Quantity >
304  void set_depth_with_units(Quantity value_w_units)
305  { set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
306 
307  template<typename Quantity >
308  Quantity depth_with_units() const
309  { return Quantity(depth() * depth_unit()); };
310 
311  boost::units::quantity< depth_unit,double > depth_with_units() const
312  { return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
313 
314  typedef boost::units::length_dimension altitude_dimension;
315 
316  typedef boost::units::unit<altitude_dimension,boost::units::si::system> altitude_unit;
317 
318  template<typename Quantity >
319  void set_altitude_with_units(Quantity value_w_units)
320  { set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
321 
322  template<typename Quantity >
323  Quantity altitude_with_units() const
324  { return Quantity(altitude() * altitude_unit()); };
325 
326  boost::units::quantity< altitude_unit,double > altitude_with_units() const
327  { return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
328 
329  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.LatLonPoint)
330  private:
331  class _Internal;
332 
333  // helper for ByteSizeLong()
334  size_t RequiredFieldsByteSizeFallback() const;
335 
336  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
337  typedef void InternalArenaConstructable_;
338  typedef void DestructorSkippable_;
339  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
340  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
341  double lat_;
342  double lon_;
343  double depth_;
344  double altitude_;
345  friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto;
346 };
347 // -------------------------------------------------------------------
348 
349 class Waypoint PROTOBUF_FINAL :
350  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.Waypoint) */ {
351  public:
352  inline Waypoint() : Waypoint(nullptr) {};
353  virtual ~Waypoint();
354 
355  Waypoint(const Waypoint& from);
356  Waypoint(Waypoint&& from) noexcept
357  : Waypoint() {
358  *this = ::std::move(from);
359  }
360 
361  inline Waypoint& operator=(const Waypoint& from) {
362  CopyFrom(from);
363  return *this;
364  }
365  inline Waypoint& operator=(Waypoint&& from) noexcept {
366  if (GetArena() == from.GetArena()) {
367  if (this != &from) InternalSwap(&from);
368  } else {
369  CopyFrom(from);
370  }
371  return *this;
372  }
373 
374  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
375  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
376  }
377  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
378  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
379  }
380 
381  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
382  return GetDescriptor();
383  }
384  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
385  return GetMetadataStatic().descriptor;
386  }
387  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
388  return GetMetadataStatic().reflection;
389  }
390  static const Waypoint& default_instance();
391 
392  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
393  static inline const Waypoint* internal_default_instance() {
394  return reinterpret_cast<const Waypoint*>(
396  }
397  static constexpr int kIndexInFileMessages =
398  1;
399 
400  friend void swap(Waypoint& a, Waypoint& b) {
401  a.Swap(&b);
402  }
403  inline void Swap(Waypoint* other) {
404  if (other == this) return;
405  if (GetArena() == other->GetArena()) {
406  InternalSwap(other);
407  } else {
408  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
409  }
410  }
411  void UnsafeArenaSwap(Waypoint* other) {
412  if (other == this) return;
413  GOOGLE_DCHECK(GetArena() == other->GetArena());
414  InternalSwap(other);
415  }
416 
417  // implements Message ----------------------------------------------
418 
419  inline Waypoint* New() const final {
420  return CreateMaybeMessage<Waypoint>(nullptr);
421  }
422 
423  Waypoint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
424  return CreateMaybeMessage<Waypoint>(arena);
425  }
426  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
427  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
428  void CopyFrom(const Waypoint& from);
429  void MergeFrom(const Waypoint& from);
430  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
431  bool IsInitialized() const final;
432 
433  size_t ByteSizeLong() const final;
434  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
435  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
436  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
437  int GetCachedSize() const final { return _cached_size_.Get(); }
438 
439  private:
440  inline void SharedCtor();
441  inline void SharedDtor();
442  void SetCachedSize(int size) const final;
443  void InternalSwap(Waypoint* other);
444  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
445  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
446  return "goby.middleware.protobuf.Waypoint";
447  }
448  protected:
449  explicit Waypoint(::PROTOBUF_NAMESPACE_ID::Arena* arena);
450  private:
451  static void ArenaDtor(void* object);
452  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
453  public:
454 
455  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
456  private:
457  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
458  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto);
459  return ::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto.file_level_metadata[kIndexInFileMessages];
460  }
461 
462  public:
463 
464  // nested types ----------------------------------------------------
465 
466  // accessors -------------------------------------------------------
467 
468  enum : int {
469  kNameFieldNumber = 1,
470  kLocationFieldNumber = 2,
471  };
472  // optional string name = 1;
473  bool has_name() const;
474  private:
475  bool _internal_has_name() const;
476  public:
477  void clear_name();
478  const std::string& name() const;
479  void set_name(const std::string& value);
480  void set_name(std::string&& value);
481  void set_name(const char* value);
482  void set_name(const char* value, size_t size);
483  std::string* mutable_name();
484  std::string* release_name();
485  void set_allocated_name(std::string* name);
486  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
487  " string fields are deprecated and will be removed in a"
488  " future release.")
489  std::string* unsafe_arena_release_name();
490  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
491  " string fields are deprecated and will be removed in a"
492  " future release.")
493  void unsafe_arena_set_allocated_name(
494  std::string* name);
495  private:
496  const std::string& _internal_name() const;
497  void _internal_set_name(const std::string& value);
498  std::string* _internal_mutable_name();
499  public:
500 
501  // required .goby.middleware.protobuf.LatLonPoint location = 2;
502  bool has_location() const;
503  private:
504  bool _internal_has_location() const;
505  public:
506  void clear_location();
507  const ::goby::middleware::protobuf::LatLonPoint& location() const;
508  ::goby::middleware::protobuf::LatLonPoint* release_location();
509  ::goby::middleware::protobuf::LatLonPoint* mutable_location();
510  void set_allocated_location(::goby::middleware::protobuf::LatLonPoint* location);
511  private:
512  const ::goby::middleware::protobuf::LatLonPoint& _internal_location() const;
513  ::goby::middleware::protobuf::LatLonPoint* _internal_mutable_location();
514  public:
515  void unsafe_arena_set_allocated_location(
516  ::goby::middleware::protobuf::LatLonPoint* location);
517  ::goby::middleware::protobuf::LatLonPoint* unsafe_arena_release_location();
518 
519  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.Waypoint)
520  private:
521  class _Internal;
522 
523  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
524  typedef void InternalArenaConstructable_;
525  typedef void DestructorSkippable_;
526  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
527  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
528  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
529  ::goby::middleware::protobuf::LatLonPoint* location_;
531 };
532 // -------------------------------------------------------------------
533 
534 class Route PROTOBUF_FINAL :
535  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.Route) */ {
536  public:
537  inline Route() : Route(nullptr) {};
538  virtual ~Route();
539 
540  Route(const Route& from);
541  Route(Route&& from) noexcept
542  : Route() {
543  *this = ::std::move(from);
544  }
545 
546  inline Route& operator=(const Route& from) {
547  CopyFrom(from);
548  return *this;
549  }
550  inline Route& operator=(Route&& from) noexcept {
551  if (GetArena() == from.GetArena()) {
552  if (this != &from) InternalSwap(&from);
553  } else {
554  CopyFrom(from);
555  }
556  return *this;
557  }
558 
559  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
560  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
561  }
562  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
563  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
564  }
565 
566  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
567  return GetDescriptor();
568  }
569  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
570  return GetMetadataStatic().descriptor;
571  }
572  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
573  return GetMetadataStatic().reflection;
574  }
575  static const Route& default_instance();
576 
577  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
578  static inline const Route* internal_default_instance() {
579  return reinterpret_cast<const Route*>(
581  }
582  static constexpr int kIndexInFileMessages =
583  2;
584 
585  friend void swap(Route& a, Route& b) {
586  a.Swap(&b);
587  }
588  inline void Swap(Route* other) {
589  if (other == this) return;
590  if (GetArena() == other->GetArena()) {
591  InternalSwap(other);
592  } else {
593  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
594  }
595  }
596  void UnsafeArenaSwap(Route* other) {
597  if (other == this) return;
598  GOOGLE_DCHECK(GetArena() == other->GetArena());
599  InternalSwap(other);
600  }
601 
602  // implements Message ----------------------------------------------
603 
604  inline Route* New() const final {
605  return CreateMaybeMessage<Route>(nullptr);
606  }
607 
608  Route* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
609  return CreateMaybeMessage<Route>(arena);
610  }
611  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
612  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
613  void CopyFrom(const Route& from);
614  void MergeFrom(const Route& from);
615  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
616  bool IsInitialized() const final;
617 
618  size_t ByteSizeLong() const final;
619  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
620  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
621  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
622  int GetCachedSize() const final { return _cached_size_.Get(); }
623 
624  private:
625  inline void SharedCtor();
626  inline void SharedDtor();
627  void SetCachedSize(int size) const final;
628  void InternalSwap(Route* other);
629  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
630  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
631  return "goby.middleware.protobuf.Route";
632  }
633  protected:
634  explicit Route(::PROTOBUF_NAMESPACE_ID::Arena* arena);
635  private:
636  static void ArenaDtor(void* object);
637  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
638  public:
639 
640  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
641  private:
642  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
643  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto);
644  return ::descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto.file_level_metadata[kIndexInFileMessages];
645  }
646 
647  public:
648 
649  // nested types ----------------------------------------------------
650 
651  // accessors -------------------------------------------------------
652 
653  enum : int {
654  kPointFieldNumber = 2,
655  kNameFieldNumber = 1,
656  };
657  // repeated .goby.middleware.protobuf.Waypoint point = 2;
658  int point_size() const;
659  private:
660  int _internal_point_size() const;
661  public:
662  void clear_point();
663  ::goby::middleware::protobuf::Waypoint* mutable_point(int index);
664  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
666  private:
667  const ::goby::middleware::protobuf::Waypoint& _internal_point(int index) const;
668  ::goby::middleware::protobuf::Waypoint* _internal_add_point();
669  public:
670  const ::goby::middleware::protobuf::Waypoint& point(int index) const;
671  ::goby::middleware::protobuf::Waypoint* add_point();
672  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
673  point() const;
674 
675  // optional string name = 1;
676  bool has_name() const;
677  private:
678  bool _internal_has_name() const;
679  public:
680  void clear_name();
681  const std::string& name() const;
682  void set_name(const std::string& value);
683  void set_name(std::string&& value);
684  void set_name(const char* value);
685  void set_name(const char* value, size_t size);
686  std::string* mutable_name();
687  std::string* release_name();
688  void set_allocated_name(std::string* name);
689  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
690  " string fields are deprecated and will be removed in a"
691  " future release.")
692  std::string* unsafe_arena_release_name();
693  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
694  " string fields are deprecated and will be removed in a"
695  " future release.")
696  void unsafe_arena_set_allocated_name(
697  std::string* name);
698  private:
699  const std::string& _internal_name() const;
700  void _internal_set_name(const std::string& value);
701  std::string* _internal_mutable_name();
702  public:
703 
704  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.Route)
705  private:
706  class _Internal;
707 
708  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
709  typedef void InternalArenaConstructable_;
710  typedef void DestructorSkippable_;
711  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
712  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
713  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > point_;
714  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
716 };
717 // ===================================================================
718 
719 
720 // ===================================================================
721 
722 #ifdef __GNUC__
723  #pragma GCC diagnostic push
724  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
725 #endif // __GNUC__
726 // LatLonPoint
727 
728 // required double lat = 1 [(.dccl.field) = {
729 inline bool LatLonPoint::_internal_has_lat() const {
730  bool value = (_has_bits_[0] & 0x00000001u) != 0;
731  return value;
732 }
733 inline bool LatLonPoint::has_lat() const {
734  return _internal_has_lat();
735 }
736 inline void LatLonPoint::clear_lat() {
737  lat_ = 0;
738  _has_bits_[0] &= ~0x00000001u;
739 }
740 inline double LatLonPoint::_internal_lat() const {
741  return lat_;
742 }
743 inline double LatLonPoint::lat() const {
744  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LatLonPoint.lat)
745  return _internal_lat();
746 }
747 inline void LatLonPoint::_internal_set_lat(double value) {
748  _has_bits_[0] |= 0x00000001u;
749  lat_ = value;
750 }
751 inline void LatLonPoint::set_lat(double value) {
752  _internal_set_lat(value);
753  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LatLonPoint.lat)
754 }
755 
756 // required double lon = 2 [(.dccl.field) = {
757 inline bool LatLonPoint::_internal_has_lon() const {
758  bool value = (_has_bits_[0] & 0x00000002u) != 0;
759  return value;
760 }
761 inline bool LatLonPoint::has_lon() const {
762  return _internal_has_lon();
763 }
764 inline void LatLonPoint::clear_lon() {
765  lon_ = 0;
766  _has_bits_[0] &= ~0x00000002u;
767 }
768 inline double LatLonPoint::_internal_lon() const {
769  return lon_;
770 }
771 inline double LatLonPoint::lon() const {
772  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LatLonPoint.lon)
773  return _internal_lon();
774 }
775 inline void LatLonPoint::_internal_set_lon(double value) {
776  _has_bits_[0] |= 0x00000002u;
777  lon_ = value;
778 }
779 inline void LatLonPoint::set_lon(double value) {
780  _internal_set_lon(value);
781  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LatLonPoint.lon)
782 }
783 
784 // optional double depth = 3 [default = 0, (.dccl.field) = {
785 inline bool LatLonPoint::_internal_has_depth() const {
786  bool value = (_has_bits_[0] & 0x00000004u) != 0;
787  return value;
788 }
789 inline bool LatLonPoint::has_depth() const {
790  return _internal_has_depth();
791 }
792 inline void LatLonPoint::clear_depth() {
793  depth_ = 0;
794  _has_bits_[0] &= ~0x00000004u;
795 }
796 inline double LatLonPoint::_internal_depth() const {
797  return depth_;
798 }
799 inline double LatLonPoint::depth() const {
800  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LatLonPoint.depth)
801  return _internal_depth();
802 }
803 inline void LatLonPoint::_internal_set_depth(double value) {
804  _has_bits_[0] |= 0x00000004u;
805  depth_ = value;
806 }
807 inline void LatLonPoint::set_depth(double value) {
808  _internal_set_depth(value);
809  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LatLonPoint.depth)
810 }
811 
812 // optional double altitude = 4 [default = nan, (.dccl.field) = {
813 inline bool LatLonPoint::_internal_has_altitude() const {
814  bool value = (_has_bits_[0] & 0x00000008u) != 0;
815  return value;
816 }
817 inline bool LatLonPoint::has_altitude() const {
818  return _internal_has_altitude();
819 }
820 inline void LatLonPoint::clear_altitude() {
821  altitude_ = std::numeric_limits<double>::quiet_NaN();
822  _has_bits_[0] &= ~0x00000008u;
823 }
824 inline double LatLonPoint::_internal_altitude() const {
825  return altitude_;
826 }
827 inline double LatLonPoint::altitude() const {
828  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.LatLonPoint.altitude)
829  return _internal_altitude();
830 }
831 inline void LatLonPoint::_internal_set_altitude(double value) {
832  _has_bits_[0] |= 0x00000008u;
833  altitude_ = value;
834 }
835 inline void LatLonPoint::set_altitude(double value) {
836  _internal_set_altitude(value);
837  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.LatLonPoint.altitude)
838 }
839 
840 // -------------------------------------------------------------------
841 
842 // Waypoint
843 
844 // optional string name = 1;
845 inline bool Waypoint::_internal_has_name() const {
846  bool value = (_has_bits_[0] & 0x00000001u) != 0;
847  return value;
848 }
849 inline bool Waypoint::has_name() const {
850  return _internal_has_name();
851 }
852 inline void Waypoint::clear_name() {
853  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
854  _has_bits_[0] &= ~0x00000001u;
855 }
856 inline const std::string& Waypoint::name() const {
857  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.Waypoint.name)
858  return _internal_name();
859 }
860 inline void Waypoint::set_name(const std::string& value) {
861  _internal_set_name(value);
862  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.Waypoint.name)
863 }
864 inline std::string* Waypoint::mutable_name() {
865  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.Waypoint.name)
866  return _internal_mutable_name();
867 }
868 inline const std::string& Waypoint::_internal_name() const {
869  return name_.Get();
870 }
871 inline void Waypoint::_internal_set_name(const std::string& value) {
872  _has_bits_[0] |= 0x00000001u;
873  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
874 }
875 inline void Waypoint::set_name(std::string&& value) {
876  _has_bits_[0] |= 0x00000001u;
877  name_.Set(
878  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
879  // @@protoc_insertion_point(field_set_rvalue:goby.middleware.protobuf.Waypoint.name)
880 }
881 inline void Waypoint::set_name(const char* value) {
882  GOOGLE_DCHECK(value != nullptr);
883  _has_bits_[0] |= 0x00000001u;
884  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
885  GetArena());
886  // @@protoc_insertion_point(field_set_char:goby.middleware.protobuf.Waypoint.name)
887 }
888 inline void Waypoint::set_name(const char* value,
889  size_t size) {
890  _has_bits_[0] |= 0x00000001u;
892  reinterpret_cast<const char*>(value), size), GetArena());
893  // @@protoc_insertion_point(field_set_pointer:goby.middleware.protobuf.Waypoint.name)
894 }
895 inline std::string* Waypoint::_internal_mutable_name() {
896  _has_bits_[0] |= 0x00000001u;
897  return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
898 }
899 inline std::string* Waypoint::release_name() {
900  // @@protoc_insertion_point(field_release:goby.middleware.protobuf.Waypoint.name)
901  if (!_internal_has_name()) {
902  return nullptr;
903  }
904  _has_bits_[0] &= ~0x00000001u;
905  return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
906 }
907 inline void Waypoint::set_allocated_name(std::string* name) {
908  if (name != nullptr) {
909  _has_bits_[0] |= 0x00000001u;
910  } else {
911  _has_bits_[0] &= ~0x00000001u;
912  }
914  GetArena());
915  // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.Waypoint.name)
916 }
917 inline std::string* Waypoint::unsafe_arena_release_name() {
918  // @@protoc_insertion_point(field_unsafe_arena_release:goby.middleware.protobuf.Waypoint.name)
919  GOOGLE_DCHECK(GetArena() != nullptr);
920  _has_bits_[0] &= ~0x00000001u;
921  return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
922  GetArena());
923 }
924 inline void Waypoint::unsafe_arena_set_allocated_name(
925  std::string* name) {
926  GOOGLE_DCHECK(GetArena() != nullptr);
927  if (name != nullptr) {
928  _has_bits_[0] |= 0x00000001u;
929  } else {
930  _has_bits_[0] &= ~0x00000001u;
931  }
932  name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
933  name, GetArena());
934  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.Waypoint.name)
935 }
936 
937 // required .goby.middleware.protobuf.LatLonPoint location = 2;
938 inline bool Waypoint::_internal_has_location() const {
939  bool value = (_has_bits_[0] & 0x00000002u) != 0;
940  PROTOBUF_ASSUME(!value || location_ != nullptr);
941  return value;
942 }
943 inline bool Waypoint::has_location() const {
944  return _internal_has_location();
945 }
946 inline void Waypoint::clear_location() {
947  if (location_ != nullptr) location_->Clear();
948  _has_bits_[0] &= ~0x00000002u;
949 }
950 inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::_internal_location() const {
951  const ::goby::middleware::protobuf::LatLonPoint* p = location_;
952  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::LatLonPoint*>(
954 }
955 inline const ::goby::middleware::protobuf::LatLonPoint& Waypoint::location() const {
956  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.Waypoint.location)
957  return _internal_location();
958 }
959 inline void Waypoint::unsafe_arena_set_allocated_location(
960  ::goby::middleware::protobuf::LatLonPoint* location) {
961  if (GetArena() == nullptr) {
962  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_);
963  }
964  location_ = location;
965  if (location) {
966  _has_bits_[0] |= 0x00000002u;
967  } else {
968  _has_bits_[0] &= ~0x00000002u;
969  }
970  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.Waypoint.location)
971 }
972 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::release_location() {
973  auto temp = unsafe_arena_release_location();
974  if (GetArena() != nullptr) {
975  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
976  }
977  return temp;
978 }
979 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::unsafe_arena_release_location() {
980  // @@protoc_insertion_point(field_release:goby.middleware.protobuf.Waypoint.location)
981  _has_bits_[0] &= ~0x00000002u;
982  ::goby::middleware::protobuf::LatLonPoint* temp = location_;
983  location_ = nullptr;
984  return temp;
985 }
986 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::_internal_mutable_location() {
987  _has_bits_[0] |= 0x00000002u;
988  if (location_ == nullptr) {
989  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArena());
990  location_ = p;
991  }
992  return location_;
993 }
994 inline ::goby::middleware::protobuf::LatLonPoint* Waypoint::mutable_location() {
995  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.Waypoint.location)
996  return _internal_mutable_location();
997 }
998 inline void Waypoint::set_allocated_location(::goby::middleware::protobuf::LatLonPoint* location) {
999  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1000  if (message_arena == nullptr) {
1001  delete location_;
1002  }
1003  if (location) {
1004  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1005  ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(location);
1006  if (message_arena != submessage_arena) {
1007  location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1008  message_arena, location, submessage_arena);
1009  }
1010  _has_bits_[0] |= 0x00000002u;
1011  } else {
1012  _has_bits_[0] &= ~0x00000002u;
1013  }
1014  location_ = location;
1015  // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.Waypoint.location)
1016 }
1017 
1018 // -------------------------------------------------------------------
1019 
1020 // Route
1021 
1022 // optional string name = 1;
1023 inline bool Route::_internal_has_name() const {
1024  bool value = (_has_bits_[0] & 0x00000001u) != 0;
1025  return value;
1026 }
1027 inline bool Route::has_name() const {
1028  return _internal_has_name();
1029 }
1030 inline void Route::clear_name() {
1031  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1032  _has_bits_[0] &= ~0x00000001u;
1033 }
1034 inline const std::string& Route::name() const {
1035  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.Route.name)
1036  return _internal_name();
1037 }
1038 inline void Route::set_name(const std::string& value) {
1039  _internal_set_name(value);
1040  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.Route.name)
1041 }
1042 inline std::string* Route::mutable_name() {
1043  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.Route.name)
1044  return _internal_mutable_name();
1045 }
1046 inline const std::string& Route::_internal_name() const {
1047  return name_.Get();
1048 }
1049 inline void Route::_internal_set_name(const std::string& value) {
1050  _has_bits_[0] |= 0x00000001u;
1051  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1052 }
1053 inline void Route::set_name(std::string&& value) {
1054  _has_bits_[0] |= 0x00000001u;
1055  name_.Set(
1056  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1057  // @@protoc_insertion_point(field_set_rvalue:goby.middleware.protobuf.Route.name)
1058 }
1059 inline void Route::set_name(const char* value) {
1060  GOOGLE_DCHECK(value != nullptr);
1061  _has_bits_[0] |= 0x00000001u;
1062  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1063  GetArena());
1064  // @@protoc_insertion_point(field_set_char:goby.middleware.protobuf.Route.name)
1065 }
1066 inline void Route::set_name(const char* value,
1067  size_t size) {
1068  _has_bits_[0] |= 0x00000001u;
1070  reinterpret_cast<const char*>(value), size), GetArena());
1071  // @@protoc_insertion_point(field_set_pointer:goby.middleware.protobuf.Route.name)
1072 }
1073 inline std::string* Route::_internal_mutable_name() {
1074  _has_bits_[0] |= 0x00000001u;
1075  return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1076 }
1077 inline std::string* Route::release_name() {
1078  // @@protoc_insertion_point(field_release:goby.middleware.protobuf.Route.name)
1079  if (!_internal_has_name()) {
1080  return nullptr;
1081  }
1082  _has_bits_[0] &= ~0x00000001u;
1083  return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1084 }
1085 inline void Route::set_allocated_name(std::string* name) {
1086  if (name != nullptr) {
1087  _has_bits_[0] |= 0x00000001u;
1088  } else {
1089  _has_bits_[0] &= ~0x00000001u;
1090  }
1092  GetArena());
1093  // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.Route.name)
1094 }
1095 inline std::string* Route::unsafe_arena_release_name() {
1096  // @@protoc_insertion_point(field_unsafe_arena_release:goby.middleware.protobuf.Route.name)
1097  GOOGLE_DCHECK(GetArena() != nullptr);
1098  _has_bits_[0] &= ~0x00000001u;
1099  return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1100  GetArena());
1101 }
1102 inline void Route::unsafe_arena_set_allocated_name(
1103  std::string* name) {
1104  GOOGLE_DCHECK(GetArena() != nullptr);
1105  if (name != nullptr) {
1106  _has_bits_[0] |= 0x00000001u;
1107  } else {
1108  _has_bits_[0] &= ~0x00000001u;
1109  }
1110  name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1111  name, GetArena());
1112  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.Route.name)
1113 }
1114 
1115 // repeated .goby.middleware.protobuf.Waypoint point = 2;
1116 inline int Route::_internal_point_size() const {
1117  return point_.size();
1118 }
1119 inline int Route::point_size() const {
1120  return _internal_point_size();
1121 }
1122 inline void Route::clear_point() {
1123  point_.Clear();
1124 }
1125 inline ::goby::middleware::protobuf::Waypoint* Route::mutable_point(int index) {
1126  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.Route.point)
1127  return point_.Mutable(index);
1128 }
1129 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >*
1130 Route::mutable_point() {
1131  // @@protoc_insertion_point(field_mutable_list:goby.middleware.protobuf.Route.point)
1132  return &point_;
1133 }
1134 inline const ::goby::middleware::protobuf::Waypoint& Route::_internal_point(int index) const {
1135  return point_.Get(index);
1136 }
1137 inline const ::goby::middleware::protobuf::Waypoint& Route::point(int index) const {
1138  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.Route.point)
1139  return _internal_point(index);
1140 }
1141 inline ::goby::middleware::protobuf::Waypoint* Route::_internal_add_point() {
1142  return point_.Add();
1143 }
1144 inline ::goby::middleware::protobuf::Waypoint* Route::add_point() {
1145  // @@protoc_insertion_point(field_add:goby.middleware.protobuf.Route.point)
1146  return _internal_add_point();
1147 }
1148 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint >&
1149 Route::point() const {
1150  // @@protoc_insertion_point(field_list:goby.middleware.protobuf.Route.point)
1151  return point_;
1152 }
1153 
1154 #ifdef __GNUC__
1155  #pragma GCC diagnostic pop
1156 #endif // __GNUC__
1157 // -------------------------------------------------------------------
1158 
1159 // -------------------------------------------------------------------
1160 
1161 
1162 // @@protoc_insertion_point(namespace_scope)
1163 
1164 } // namespace protobuf
1165 } // namespace middleware
1166 } // namespace goby
1167 
1168 // @@protoc_insertion_point(global_scope)
1169 
1170 #include <google/protobuf/port_undef.inc>
1171 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > * mutable_point()
friend void swap(Route &a, Route &b)
::goby::middleware::protobuf::Waypoint * mutable_point(int index)
boost::units::unit< lat_dimension, boost::units::degree::system > lat_unit
void set_lon_with_units(Quantity value_w_units)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const Waypoint &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_allocated_name(std::string *name)
LatLonPoint & operator=(LatLonPoint &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::length_dimension altitude_dimension
void set_lat_with_units(Quantity value_w_units)
static const LatLonPoint & default_instance()
void MergeFrom(const LatLonPoint &from)
void set_altitude_with_units(Quantity value_w_units)
void set_name(const char *value, size_t size)
boost::units::unit< depth_dimension, boost::units::si::system > depth_unit
boost::units::quantity< altitude_unit, double > altitude_with_units() const
boost::units::length_dimension depth_dimension
static const LatLonPoint * internal_default_instance()
boost::units::unit< altitude_dimension, boost::units::si::system > altitude_unit
boost::units::plane_angle_dimension lat_dimension
static const Waypoint & default_instance()
LatLonPoint(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const ::goby::middleware::protobuf::Waypoint & point(int index) const
friend void swap(LatLonPoint &a, LatLonPoint &b)
Waypoint & operator=(const Waypoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void MergeFrom(const Waypoint &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Waypoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
boost::units::quantity< lon_unit, double > lon_with_units() const
LatLonPoint * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Route & operator=(const Route &from)
Route(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< depth_unit, double > depth_with_units() const
const std::string & name() const
Route * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
LatLonPoint(LatLonPoint &&from) noexcept
Definition: geographic.pb.h:99
void set_depth_with_units(Quantity value_w_units)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const Waypoint * internal_default_instance()
boost::units::unit< lon_dimension, boost::units::degree::system > lon_unit
void CopyFrom(const LatLonPoint &from)
boost::units::plane_angle_dimension lon_dimension
Waypoint & operator=(Waypoint &&from) noexcept
void set_name(const std::string &value)
LatLonPoint & operator=(const LatLonPoint &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Waypoint(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< lat_unit, double > lat_with_units() const
Route & operator=(Route &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::middleware::protobuf::Waypoint > & point() const
friend void swap(Waypoint &a, Waypoint &b)
static const Route * internal_default_instance()
::goby::middleware::protobuf::Waypoint * add_point()
void UnsafeArenaSwap(LatLonPoint *other)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fgeographic_2eproto
@ value
the parser finished reading a JSON value
LatLonPointDefaultTypeInternal _LatLonPoint_default_instance_
RouteDefaultTypeInternal _Route_default_instance_
WaypointDefaultTypeInternal _Waypoint_default_instance_
boost::units::quantity< boost::units::si::length > depth(boost::units::quantity< PressureUnit > pressure, boost::units::quantity< LatitudeUnit > latitude)
Calculates depth from pressure and latitude Adapted from "Algorithms for computation of fundamental p...
Definition: depth.h:57
The global namespace for the Goby project.
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: geographic.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: geographic.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: geographic.pb.h:63
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)