Goby3  3.1.5
2024.05.14
frontseat_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/middleware/protobuf/frontseat_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_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"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.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_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_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[];
65 };
66 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto;
67 namespace goby {
68 namespace middleware {
69 namespace frontseat {
70 namespace protobuf {
71 class Config;
72 class ConfigDefaultTypeInternal;
73 extern ConfigDefaultTypeInternal _Config_default_instance_;
74 } // namespace protobuf
75 } // namespace frontseat
76 } // namespace middleware
77 } // namespace goby
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::middleware::frontseat::protobuf::Config* Arena::CreateMaybeMessage<::goby::middleware::frontseat::protobuf::Config>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace middleware {
83 namespace frontseat {
84 namespace protobuf {
85 
86 // ===================================================================
87 
88 class Config PROTOBUF_FINAL :
89  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.frontseat.protobuf.Config) */ {
90  public:
91  inline Config() : Config(nullptr) {};
92  virtual ~Config();
93 
94  Config(const Config& from);
95  Config(Config&& from) noexcept
96  : Config() {
97  *this = ::std::move(from);
98  }
99 
100  inline Config& operator=(const Config& from) {
101  CopyFrom(from);
102  return *this;
103  }
104  inline Config& operator=(Config&& from) noexcept {
105  if (GetArena() == from.GetArena()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112 
113  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
114  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115  }
116  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
117  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118  }
119 
120  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
121  return GetDescriptor();
122  }
123  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
124  return GetMetadataStatic().descriptor;
125  }
126  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
127  return GetMetadataStatic().reflection;
128  }
129  static const Config& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const Config* internal_default_instance() {
133  return reinterpret_cast<const Config*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  friend void swap(Config& a, Config& b) {
140  a.Swap(&b);
141  }
142  inline void Swap(Config* other) {
143  if (other == this) return;
144  if (GetArena() == other->GetArena()) {
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Config* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetArena() == other->GetArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline Config* New() const final {
159  return CreateMaybeMessage<Config>(nullptr);
160  }
161 
162  Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
163  return CreateMaybeMessage<Config>(arena);
164  }
165  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void CopyFrom(const Config& from);
168  void MergeFrom(const Config& from);
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
175  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  inline void SharedCtor();
180  inline void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(Config* other);
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "goby.middleware.frontseat.protobuf.Config";
186  }
187  protected:
188  explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189  private:
190  static void ArenaDtor(void* object);
191  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192  public:
193 
194  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195  private:
196  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto);
199  }
200 
201  public:
202 
203  // nested types ----------------------------------------------------
204 
205  // accessors -------------------------------------------------------
206 
207  enum : int {
208  kNameFieldNumber = 1,
209  kOriginFieldNumber = 2,
210  kExitOnErrorFieldNumber = 21,
211  kTypeFieldNumber = 3,
212  kRequireHelmFieldNumber = 10,
213  kHelmRunningTimeoutFieldNumber = 11,
214  kFrontseatConnectedTimeoutFieldNumber = 12,
215  kStatusPeriodFieldNumber = 13,
216  kSimWarpFactorFieldNumber = 30,
217  };
218  // optional string name = 1;
219  bool has_name() const;
220  private:
221  bool _internal_has_name() const;
222  public:
223  void clear_name();
224  const std::string& name() const;
225  void set_name(const std::string& value);
226  void set_name(std::string&& value);
227  void set_name(const char* value);
228  void set_name(const char* value, size_t size);
229  std::string* mutable_name();
230  std::string* release_name();
231  void set_allocated_name(std::string* name);
232  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
233  " string fields are deprecated and will be removed in a"
234  " future release.")
235  std::string* unsafe_arena_release_name();
236  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
237  " string fields are deprecated and will be removed in a"
238  " future release.")
239  void unsafe_arena_set_allocated_name(
240  std::string* name);
241  private:
242  const std::string& _internal_name() const;
243  void _internal_set_name(const std::string& value);
244  std::string* _internal_mutable_name();
245  public:
246 
247  // optional .goby.middleware.protobuf.LatLonPoint origin = 2;
248  bool has_origin() const;
249  private:
250  bool _internal_has_origin() const;
251  public:
252  void clear_origin();
253  const ::goby::middleware::protobuf::LatLonPoint& origin() const;
254  ::goby::middleware::protobuf::LatLonPoint* release_origin();
255  ::goby::middleware::protobuf::LatLonPoint* mutable_origin();
256  void set_allocated_origin(::goby::middleware::protobuf::LatLonPoint* origin);
257  private:
258  const ::goby::middleware::protobuf::LatLonPoint& _internal_origin() const;
259  ::goby::middleware::protobuf::LatLonPoint* _internal_mutable_origin();
260  public:
261  void unsafe_arena_set_allocated_origin(
262  ::goby::middleware::protobuf::LatLonPoint* origin);
263  ::goby::middleware::protobuf::LatLonPoint* unsafe_arena_release_origin();
264 
265  // optional bool exit_on_error = 21 [default = false, (.goby.field) = {
266  bool has_exit_on_error() const;
267  private:
268  bool _internal_has_exit_on_error() const;
269  public:
270  void clear_exit_on_error();
271  bool exit_on_error() const;
272  void set_exit_on_error(bool value);
273  private:
274  bool _internal_exit_on_error() const;
275  void _internal_set_exit_on_error(bool value);
276  public:
277 
278  // optional .goby.middleware.frontseat.protobuf.VehicleType type = 3 [default = AUV];
279  bool has_type() const;
280  private:
281  bool _internal_has_type() const;
282  public:
283  void clear_type();
284  ::goby::middleware::frontseat::protobuf::VehicleType type() const;
285  void set_type(::goby::middleware::frontseat::protobuf::VehicleType value);
286  private:
287  ::goby::middleware::frontseat::protobuf::VehicleType _internal_type() const;
288  void _internal_set_type(::goby::middleware::frontseat::protobuf::VehicleType value);
289  public:
290 
291  // optional bool require_helm = 10 [default = true, (.goby.field) = {
292  bool has_require_helm() const;
293  private:
294  bool _internal_has_require_helm() const;
295  public:
296  void clear_require_helm();
297  bool require_helm() const;
298  void set_require_helm(bool value);
299  private:
300  bool _internal_require_helm() const;
301  void _internal_set_require_helm(bool value);
302  public:
303 
304  // optional double helm_running_timeout = 11 [default = 10, (.goby.field) = {
305  bool has_helm_running_timeout() const;
306  private:
307  bool _internal_has_helm_running_timeout() const;
308  public:
309  void clear_helm_running_timeout();
310  double helm_running_timeout() const;
311  void set_helm_running_timeout(double value);
312  private:
313  double _internal_helm_running_timeout() const;
314  void _internal_set_helm_running_timeout(double value);
315  public:
316 
317  // optional double frontseat_connected_timeout = 12 [default = 10, (.goby.field) = {
318  bool has_frontseat_connected_timeout() const;
319  private:
320  bool _internal_has_frontseat_connected_timeout() const;
321  public:
322  void clear_frontseat_connected_timeout();
323  double frontseat_connected_timeout() const;
324  void set_frontseat_connected_timeout(double value);
325  private:
326  double _internal_frontseat_connected_timeout() const;
327  void _internal_set_frontseat_connected_timeout(double value);
328  public:
329 
330  // optional uint32 status_period = 13 [default = 5, (.goby.field) = {
331  bool has_status_period() const;
332  private:
333  bool _internal_has_status_period() const;
334  public:
335  void clear_status_period();
336  ::PROTOBUF_NAMESPACE_ID::uint32 status_period() const;
337  void set_status_period(::PROTOBUF_NAMESPACE_ID::uint32 value);
338  private:
339  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_status_period() const;
340  void _internal_set_status_period(::PROTOBUF_NAMESPACE_ID::uint32 value);
341  public:
342 
343  // optional int32 sim_warp_factor = 30 [default = 1];
344  bool has_sim_warp_factor() const;
345  private:
346  bool _internal_has_sim_warp_factor() const;
347  public:
348  void clear_sim_warp_factor();
349  ::PROTOBUF_NAMESPACE_ID::int32 sim_warp_factor() const;
350  void set_sim_warp_factor(::PROTOBUF_NAMESPACE_ID::int32 value);
351  private:
352  ::PROTOBUF_NAMESPACE_ID::int32 _internal_sim_warp_factor() const;
353  void _internal_set_sim_warp_factor(::PROTOBUF_NAMESPACE_ID::int32 value);
354  public:
355 
356  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(Config)
357  typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type helm_running_timeout_dimension;
358 
360 
361  template<typename Quantity >
362  void set_helm_running_timeout_with_units(Quantity value_w_units)
363  { set_helm_running_timeout(boost::units::quantity<helm_running_timeout_unit,double >(value_w_units).value() ); };
364 
365  template<typename Quantity >
367  { return Quantity(helm_running_timeout() * helm_running_timeout_unit()); };
368 
369  boost::units::quantity< helm_running_timeout_unit,double > helm_running_timeout_with_units() const
370  { return helm_running_timeout_with_units<boost::units::quantity< helm_running_timeout_unit,double > >(); };
371 
373 
374  typedef boost::units::unit<frontseat_connected_timeout_dimension,boost::units::si::system> frontseat_connected_timeout_unit;
375 
376  template<typename Quantity >
377  void set_frontseat_connected_timeout_with_units(Quantity value_w_units)
378  { set_frontseat_connected_timeout(boost::units::quantity<frontseat_connected_timeout_unit,double >(value_w_units).value() ); };
379 
380  template<typename Quantity >
382  { return Quantity(frontseat_connected_timeout() * frontseat_connected_timeout_unit()); };
383 
384  boost::units::quantity< frontseat_connected_timeout_unit,double > frontseat_connected_timeout_with_units() const
385  { return frontseat_connected_timeout_with_units<boost::units::quantity< frontseat_connected_timeout_unit,double > >(); };
386 
388 
389  typedef boost::units::unit<status_period_dimension,boost::units::si::system> status_period_unit;
390 
391  template<typename Quantity >
392  void set_status_period_with_units(Quantity value_w_units)
393  { set_status_period(boost::units::quantity<status_period_unit,google::protobuf::uint32 >(value_w_units).value() ); };
394 
395  template<typename Quantity >
396  Quantity status_period_with_units() const
397  { return Quantity(status_period() * status_period_unit()); };
398 
399  boost::units::quantity< status_period_unit,google::protobuf::uint32 > status_period_with_units() const
400  { return status_period_with_units<boost::units::quantity< status_period_unit,google::protobuf::uint32 > >(); };
401 
402  // @@protoc_insertion_point(class_scope:goby.middleware.frontseat.protobuf.Config)
403  private:
404  class _Internal;
405 
406  ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
407 
408  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
409  typedef void InternalArenaConstructable_;
410  typedef void DestructorSkippable_;
411  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
412  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
413  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
414  ::goby::middleware::protobuf::LatLonPoint* origin_;
415  bool exit_on_error_;
416  int type_;
417  bool require_helm_;
418  double helm_running_timeout_;
419  double frontseat_connected_timeout_;
420  ::PROTOBUF_NAMESPACE_ID::uint32 status_period_;
421  ::PROTOBUF_NAMESPACE_ID::int32 sim_warp_factor_;
422  friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto;
423 };
424 // ===================================================================
425 
426 
427 // ===================================================================
428 
429 #ifdef __GNUC__
430  #pragma GCC diagnostic push
431  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
432 #endif // __GNUC__
433 // Config
434 
435 // optional string name = 1;
436 inline bool Config::_internal_has_name() const {
437  bool value = (_has_bits_[0] & 0x00000001u) != 0;
438  return value;
439 }
440 inline bool Config::has_name() const {
441  return _internal_has_name();
442 }
443 inline void Config::clear_name() {
444  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
445  _has_bits_[0] &= ~0x00000001u;
446 }
447 inline const std::string& Config::name() const {
448  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.name)
449  return _internal_name();
450 }
451 inline void Config::set_name(const std::string& value) {
452  _internal_set_name(value);
453  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.name)
454 }
455 inline std::string* Config::mutable_name() {
456  // @@protoc_insertion_point(field_mutable:goby.middleware.frontseat.protobuf.Config.name)
457  return _internal_mutable_name();
458 }
459 inline const std::string& Config::_internal_name() const {
460  return name_.Get();
461 }
462 inline void Config::_internal_set_name(const std::string& value) {
463  _has_bits_[0] |= 0x00000001u;
464  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
465 }
466 inline void Config::set_name(std::string&& value) {
467  _has_bits_[0] |= 0x00000001u;
468  name_.Set(
469  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
470  // @@protoc_insertion_point(field_set_rvalue:goby.middleware.frontseat.protobuf.Config.name)
471 }
472 inline void Config::set_name(const char* value) {
473  GOOGLE_DCHECK(value != nullptr);
474  _has_bits_[0] |= 0x00000001u;
475  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
476  GetArena());
477  // @@protoc_insertion_point(field_set_char:goby.middleware.frontseat.protobuf.Config.name)
478 }
479 inline void Config::set_name(const char* value,
480  size_t size) {
481  _has_bits_[0] |= 0x00000001u;
483  reinterpret_cast<const char*>(value), size), GetArena());
484  // @@protoc_insertion_point(field_set_pointer:goby.middleware.frontseat.protobuf.Config.name)
485 }
486 inline std::string* Config::_internal_mutable_name() {
487  _has_bits_[0] |= 0x00000001u;
488  return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
489 }
490 inline std::string* Config::release_name() {
491  // @@protoc_insertion_point(field_release:goby.middleware.frontseat.protobuf.Config.name)
492  if (!_internal_has_name()) {
493  return nullptr;
494  }
495  _has_bits_[0] &= ~0x00000001u;
496  return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
497 }
498 inline void Config::set_allocated_name(std::string* name) {
499  if (name != nullptr) {
500  _has_bits_[0] |= 0x00000001u;
501  } else {
502  _has_bits_[0] &= ~0x00000001u;
503  }
505  GetArena());
506  // @@protoc_insertion_point(field_set_allocated:goby.middleware.frontseat.protobuf.Config.name)
507 }
508 inline std::string* Config::unsafe_arena_release_name() {
509  // @@protoc_insertion_point(field_unsafe_arena_release:goby.middleware.frontseat.protobuf.Config.name)
510  GOOGLE_DCHECK(GetArena() != nullptr);
511  _has_bits_[0] &= ~0x00000001u;
512  return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
513  GetArena());
514 }
515 inline void Config::unsafe_arena_set_allocated_name(
516  std::string* name) {
517  GOOGLE_DCHECK(GetArena() != nullptr);
518  if (name != nullptr) {
519  _has_bits_[0] |= 0x00000001u;
520  } else {
521  _has_bits_[0] &= ~0x00000001u;
522  }
523  name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
524  name, GetArena());
525  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.frontseat.protobuf.Config.name)
526 }
527 
528 // optional .goby.middleware.protobuf.LatLonPoint origin = 2;
529 inline bool Config::_internal_has_origin() const {
530  bool value = (_has_bits_[0] & 0x00000002u) != 0;
531  PROTOBUF_ASSUME(!value || origin_ != nullptr);
532  return value;
533 }
534 inline bool Config::has_origin() const {
535  return _internal_has_origin();
536 }
537 inline const ::goby::middleware::protobuf::LatLonPoint& Config::_internal_origin() const {
538  const ::goby::middleware::protobuf::LatLonPoint* p = origin_;
539  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::LatLonPoint*>(
541 }
542 inline const ::goby::middleware::protobuf::LatLonPoint& Config::origin() const {
543  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.origin)
544  return _internal_origin();
545 }
546 inline void Config::unsafe_arena_set_allocated_origin(
547  ::goby::middleware::protobuf::LatLonPoint* origin) {
548  if (GetArena() == nullptr) {
549  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(origin_);
550  }
551  origin_ = origin;
552  if (origin) {
553  _has_bits_[0] |= 0x00000002u;
554  } else {
555  _has_bits_[0] &= ~0x00000002u;
556  }
557  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.frontseat.protobuf.Config.origin)
558 }
559 inline ::goby::middleware::protobuf::LatLonPoint* Config::release_origin() {
560  auto temp = unsafe_arena_release_origin();
561  if (GetArena() != nullptr) {
562  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
563  }
564  return temp;
565 }
566 inline ::goby::middleware::protobuf::LatLonPoint* Config::unsafe_arena_release_origin() {
567  // @@protoc_insertion_point(field_release:goby.middleware.frontseat.protobuf.Config.origin)
568  _has_bits_[0] &= ~0x00000002u;
569  ::goby::middleware::protobuf::LatLonPoint* temp = origin_;
570  origin_ = nullptr;
571  return temp;
572 }
573 inline ::goby::middleware::protobuf::LatLonPoint* Config::_internal_mutable_origin() {
574  _has_bits_[0] |= 0x00000002u;
575  if (origin_ == nullptr) {
576  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArena());
577  origin_ = p;
578  }
579  return origin_;
580 }
581 inline ::goby::middleware::protobuf::LatLonPoint* Config::mutable_origin() {
582  // @@protoc_insertion_point(field_mutable:goby.middleware.frontseat.protobuf.Config.origin)
583  return _internal_mutable_origin();
584 }
585 inline void Config::set_allocated_origin(::goby::middleware::protobuf::LatLonPoint* origin) {
586  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
587  if (message_arena == nullptr) {
588  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(origin_);
589  }
590  if (origin) {
591  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
592  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(origin)->GetArena();
593  if (message_arena != submessage_arena) {
594  origin = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
595  message_arena, origin, submessage_arena);
596  }
597  _has_bits_[0] |= 0x00000002u;
598  } else {
599  _has_bits_[0] &= ~0x00000002u;
600  }
601  origin_ = origin;
602  // @@protoc_insertion_point(field_set_allocated:goby.middleware.frontseat.protobuf.Config.origin)
603 }
604 
605 // optional .goby.middleware.frontseat.protobuf.VehicleType type = 3 [default = AUV];
606 inline bool Config::_internal_has_type() const {
607  bool value = (_has_bits_[0] & 0x00000008u) != 0;
608  return value;
609 }
610 inline bool Config::has_type() const {
611  return _internal_has_type();
612 }
613 inline void Config::clear_type() {
614  type_ = 10;
615  _has_bits_[0] &= ~0x00000008u;
616 }
618  return static_cast< ::goby::middleware::frontseat::protobuf::VehicleType >(type_);
619 }
621  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.type)
622  return _internal_type();
623 }
624 inline void Config::_internal_set_type(::goby::middleware::frontseat::protobuf::VehicleType value) {
626  _has_bits_[0] |= 0x00000008u;
627  type_ = value;
628 }
629 inline void Config::set_type(::goby::middleware::frontseat::protobuf::VehicleType value) {
630  _internal_set_type(value);
631  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.type)
632 }
633 
634 // optional bool require_helm = 10 [default = true, (.goby.field) = {
635 inline bool Config::_internal_has_require_helm() const {
636  bool value = (_has_bits_[0] & 0x00000010u) != 0;
637  return value;
638 }
639 inline bool Config::has_require_helm() const {
640  return _internal_has_require_helm();
641 }
642 inline void Config::clear_require_helm() {
643  require_helm_ = true;
644  _has_bits_[0] &= ~0x00000010u;
645 }
646 inline bool Config::_internal_require_helm() const {
647  return require_helm_;
648 }
649 inline bool Config::require_helm() const {
650  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.require_helm)
651  return _internal_require_helm();
652 }
653 inline void Config::_internal_set_require_helm(bool value) {
654  _has_bits_[0] |= 0x00000010u;
655  require_helm_ = value;
656 }
657 inline void Config::set_require_helm(bool value) {
658  _internal_set_require_helm(value);
659  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.require_helm)
660 }
661 
662 // optional double helm_running_timeout = 11 [default = 10, (.goby.field) = {
663 inline bool Config::_internal_has_helm_running_timeout() const {
664  bool value = (_has_bits_[0] & 0x00000020u) != 0;
665  return value;
666 }
667 inline bool Config::has_helm_running_timeout() const {
668  return _internal_has_helm_running_timeout();
669 }
670 inline void Config::clear_helm_running_timeout() {
671  helm_running_timeout_ = 10;
672  _has_bits_[0] &= ~0x00000020u;
673 }
674 inline double Config::_internal_helm_running_timeout() const {
675  return helm_running_timeout_;
676 }
677 inline double Config::helm_running_timeout() const {
678  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.helm_running_timeout)
679  return _internal_helm_running_timeout();
680 }
681 inline void Config::_internal_set_helm_running_timeout(double value) {
682  _has_bits_[0] |= 0x00000020u;
683  helm_running_timeout_ = value;
684 }
685 inline void Config::set_helm_running_timeout(double value) {
686  _internal_set_helm_running_timeout(value);
687  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.helm_running_timeout)
688 }
689 
690 // optional double frontseat_connected_timeout = 12 [default = 10, (.goby.field) = {
691 inline bool Config::_internal_has_frontseat_connected_timeout() const {
692  bool value = (_has_bits_[0] & 0x00000040u) != 0;
693  return value;
694 }
695 inline bool Config::has_frontseat_connected_timeout() const {
696  return _internal_has_frontseat_connected_timeout();
697 }
698 inline void Config::clear_frontseat_connected_timeout() {
699  frontseat_connected_timeout_ = 10;
700  _has_bits_[0] &= ~0x00000040u;
701 }
702 inline double Config::_internal_frontseat_connected_timeout() const {
703  return frontseat_connected_timeout_;
704 }
705 inline double Config::frontseat_connected_timeout() const {
706  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.frontseat_connected_timeout)
707  return _internal_frontseat_connected_timeout();
708 }
709 inline void Config::_internal_set_frontseat_connected_timeout(double value) {
710  _has_bits_[0] |= 0x00000040u;
711  frontseat_connected_timeout_ = value;
712 }
713 inline void Config::set_frontseat_connected_timeout(double value) {
714  _internal_set_frontseat_connected_timeout(value);
715  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.frontseat_connected_timeout)
716 }
717 
718 // optional uint32 status_period = 13 [default = 5, (.goby.field) = {
719 inline bool Config::_internal_has_status_period() const {
720  bool value = (_has_bits_[0] & 0x00000080u) != 0;
721  return value;
722 }
723 inline bool Config::has_status_period() const {
724  return _internal_has_status_period();
725 }
726 inline void Config::clear_status_period() {
727  status_period_ = 5u;
728  _has_bits_[0] &= ~0x00000080u;
729 }
730 inline ::PROTOBUF_NAMESPACE_ID::uint32 Config::_internal_status_period() const {
731  return status_period_;
732 }
733 inline ::PROTOBUF_NAMESPACE_ID::uint32 Config::status_period() const {
734  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.status_period)
735  return _internal_status_period();
736 }
737 inline void Config::_internal_set_status_period(::PROTOBUF_NAMESPACE_ID::uint32 value) {
738  _has_bits_[0] |= 0x00000080u;
739  status_period_ = value;
740 }
741 inline void Config::set_status_period(::PROTOBUF_NAMESPACE_ID::uint32 value) {
742  _internal_set_status_period(value);
743  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.status_period)
744 }
745 
746 // optional bool exit_on_error = 21 [default = false, (.goby.field) = {
747 inline bool Config::_internal_has_exit_on_error() const {
748  bool value = (_has_bits_[0] & 0x00000004u) != 0;
749  return value;
750 }
751 inline bool Config::has_exit_on_error() const {
752  return _internal_has_exit_on_error();
753 }
754 inline void Config::clear_exit_on_error() {
755  exit_on_error_ = false;
756  _has_bits_[0] &= ~0x00000004u;
757 }
758 inline bool Config::_internal_exit_on_error() const {
759  return exit_on_error_;
760 }
761 inline bool Config::exit_on_error() const {
762  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.exit_on_error)
763  return _internal_exit_on_error();
764 }
765 inline void Config::_internal_set_exit_on_error(bool value) {
766  _has_bits_[0] |= 0x00000004u;
767  exit_on_error_ = value;
768 }
769 inline void Config::set_exit_on_error(bool value) {
770  _internal_set_exit_on_error(value);
771  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.exit_on_error)
772 }
773 
774 // optional int32 sim_warp_factor = 30 [default = 1];
775 inline bool Config::_internal_has_sim_warp_factor() const {
776  bool value = (_has_bits_[0] & 0x00000100u) != 0;
777  return value;
778 }
779 inline bool Config::has_sim_warp_factor() const {
780  return _internal_has_sim_warp_factor();
781 }
782 inline void Config::clear_sim_warp_factor() {
783  sim_warp_factor_ = 1;
784  _has_bits_[0] &= ~0x00000100u;
785 }
786 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::_internal_sim_warp_factor() const {
787  return sim_warp_factor_;
788 }
789 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::sim_warp_factor() const {
790  // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.Config.sim_warp_factor)
791  return _internal_sim_warp_factor();
792 }
793 inline void Config::_internal_set_sim_warp_factor(::PROTOBUF_NAMESPACE_ID::int32 value) {
794  _has_bits_[0] |= 0x00000100u;
795  sim_warp_factor_ = value;
796 }
797 inline void Config::set_sim_warp_factor(::PROTOBUF_NAMESPACE_ID::int32 value) {
798  _internal_set_sim_warp_factor(value);
799  // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.Config.sim_warp_factor)
800 }
801 
802 #ifdef __GNUC__
803  #pragma GCC diagnostic pop
804 #endif // __GNUC__
805 
806 // @@protoc_insertion_point(namespace_scope)
807 
808 } // namespace protobuf
809 } // namespace frontseat
810 } // namespace middleware
811 } // namespace goby
812 
813 // @@protoc_insertion_point(global_scope)
814 
815 #include <google/protobuf/port_undef.inc>
816 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto
void set_name(const char *value, size_t size)
boost::units::quantity< helm_running_timeout_unit, double > helm_running_timeout_with_units() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type status_period_dimension
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
boost::units::quantity< status_period_unit, google::protobuf::uint32 > status_period_with_units() const
boost::units::unit< helm_running_timeout_dimension, boost::units::si::system > helm_running_timeout_unit
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena)
boost::units::quantity< frontseat_connected_timeout_unit, double > frontseat_connected_timeout_with_units() const
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type helm_running_timeout_dimension
void set_frontseat_connected_timeout_with_units(Quantity value_w_units)
boost::units::unit< status_period_dimension, boost::units::si::system > status_period_unit
boost::units::unit< frontseat_connected_timeout_dimension, boost::units::si::system > frontseat_connected_timeout_unit
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type frontseat_connected_timeout_dimension
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ffrontseat_5fconfig_2eproto
@ value
the parser finished reading a JSON value
ConfigDefaultTypeInternal _Config_default_instance_
LatLonPointDefaultTypeInternal _LatLonPoint_default_instance_
boost::units::make_system< boost::units::angle::revolution_base_unit, boost::units::metric::minute_base_unit >::type system
Definition: system.hpp:45
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
type
Generic JSON types used in JWTs.
Definition: jwt.h:2072
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)