Goby3  3.1.5
2024.05.14
driver_base.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/driver_base.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_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/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
41 // @@protoc_insertion_point(includes)
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
44 PROTOBUF_NAMESPACE_OPEN
45 namespace internal {
46 class AnyMetadata;
47 } // namespace internal
48 PROTOBUF_NAMESPACE_CLOSE
49 
50 // Internal implementation detail -- do not use these members.
52  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
59  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61 };
62 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
63 namespace goby {
64 namespace acomms {
65 namespace protobuf {
66 class DriverConfig;
67 class DriverConfigDefaultTypeInternal;
68 extern DriverConfigDefaultTypeInternal _DriverConfig_default_instance_;
69 } // namespace protobuf
70 } // namespace acomms
71 } // namespace goby
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::acomms::protobuf::DriverConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::DriverConfig>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
75 namespace goby {
76 namespace acomms {
77 namespace protobuf {
78 
83 };
88 
89 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DriverConfig_ConnectionType_descriptor();
90 template<typename T>
91 inline const std::string& DriverConfig_ConnectionType_Name(T enum_t_value) {
92  static_assert(::std::is_same<T, DriverConfig_ConnectionType>::value ||
93  ::std::is_integral<T>::value,
94  "Incorrect type passed to function DriverConfig_ConnectionType_Name.");
95  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
97 }
99  const std::string& name, DriverConfig_ConnectionType* value) {
100  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverConfig_ConnectionType>(
102 }
103 enum DriverType : int {
115  DRIVER_POPOTO = 12
116 };
117 bool DriverType_IsValid(int value);
121 
122 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DriverType_descriptor();
123 template<typename T>
124 inline const std::string& DriverType_Name(T enum_t_value) {
125  static_assert(::std::is_same<T, DriverType>::value ||
126  ::std::is_integral<T>::value,
127  "Incorrect type passed to function DriverType_Name.");
128  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
129  DriverType_descriptor(), enum_t_value);
130 }
131 inline bool DriverType_Parse(
132  const std::string& name, DriverType* value) {
133  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverType>(
134  DriverType_descriptor(), name, value);
135 }
136 // ===================================================================
137 
138 class DriverConfig PROTOBUF_FINAL :
139  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.DriverConfig) */ {
140  public:
141  inline DriverConfig() : DriverConfig(nullptr) {};
142  virtual ~DriverConfig();
143 
144  DriverConfig(const DriverConfig& from);
145  DriverConfig(DriverConfig&& from) noexcept
146  : DriverConfig() {
147  *this = ::std::move(from);
148  }
149 
150  inline DriverConfig& operator=(const DriverConfig& from) {
151  CopyFrom(from);
152  return *this;
153  }
154  inline DriverConfig& operator=(DriverConfig&& from) noexcept {
155  if (GetArena() == from.GetArena()) {
156  if (this != &from) InternalSwap(&from);
157  } else {
158  CopyFrom(from);
159  }
160  return *this;
161  }
162 
163  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
164  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
165  }
166  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
167  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
168  }
169 
170  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
171  return GetDescriptor();
172  }
173  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
174  return GetMetadataStatic().descriptor;
175  }
176  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
177  return GetMetadataStatic().reflection;
178  }
179  static const DriverConfig& default_instance();
180 
181  enum DriverCase {
182  kDriverType = 1,
183  kDriverName = 2,
184  DRIVER_NOT_SET = 0,
185  };
186 
187  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
188  static inline const DriverConfig* internal_default_instance() {
189  return reinterpret_cast<const DriverConfig*>(
191  }
192  static constexpr int kIndexInFileMessages =
193  0;
194 
195  friend void swap(DriverConfig& a, DriverConfig& b) {
196  a.Swap(&b);
197  }
198  inline void Swap(DriverConfig* other) {
199  if (other == this) return;
200  if (GetArena() == other->GetArena()) {
201  InternalSwap(other);
202  } else {
203  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
204  }
205  }
206  void UnsafeArenaSwap(DriverConfig* other) {
207  if (other == this) return;
208  GOOGLE_DCHECK(GetArena() == other->GetArena());
209  InternalSwap(other);
210  }
211 
212  // implements Message ----------------------------------------------
213 
214  inline DriverConfig* New() const final {
215  return CreateMaybeMessage<DriverConfig>(nullptr);
216  }
217 
218  DriverConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
219  return CreateMaybeMessage<DriverConfig>(arena);
220  }
221  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
222  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
223  void CopyFrom(const DriverConfig& from);
224  void MergeFrom(const DriverConfig& from);
225  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
226  bool IsInitialized() const final;
227 
228  size_t ByteSizeLong() const final;
229  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
230  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
231  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
232  int GetCachedSize() const final { return _cached_size_.Get(); }
233 
234  private:
235  inline void SharedCtor();
236  inline void SharedDtor();
237  void SetCachedSize(int size) const final;
238  void InternalSwap(DriverConfig* other);
239  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
240  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
241  return "goby.acomms.protobuf.DriverConfig";
242  }
243  protected:
244  explicit DriverConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
245  private:
246  static void ArenaDtor(void* object);
247  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
248  public:
249 
250  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
251  private:
252  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
253  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto);
254  return ::descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto.file_level_metadata[kIndexInFileMessages];
255  }
256 
257  public:
258 
259  // nested types ----------------------------------------------------
260 
262  static constexpr ConnectionType CONNECTION_SERIAL =
264  static constexpr ConnectionType CONNECTION_TCP_AS_CLIENT =
266  static constexpr ConnectionType CONNECTION_TCP_AS_SERVER =
268  static inline bool ConnectionType_IsValid(int value) {
270  }
271  static constexpr ConnectionType ConnectionType_MIN =
273  static constexpr ConnectionType ConnectionType_MAX =
275  static constexpr int ConnectionType_ARRAYSIZE =
277  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
280  }
281  template<typename T>
282  static inline const std::string& ConnectionType_Name(T enum_t_value) {
283  static_assert(::std::is_same<T, ConnectionType>::value ||
284  ::std::is_integral<T>::value,
285  "Incorrect type passed to function ConnectionType_Name.");
286  return DriverConfig_ConnectionType_Name(enum_t_value);
287  }
288  static inline bool ConnectionType_Parse(const std::string& name,
289  ConnectionType* value) {
290  return DriverConfig_ConnectionType_Parse(name, value);
291  }
292 
293  // accessors -------------------------------------------------------
294 
295  enum : int {
296  kLineDelimiterFieldNumber = 21,
297  kSerialPortFieldNumber = 22,
298  kTcpServerFieldNumber = 24,
299  kRawLogFieldNumber = 30,
300  kTcpPortFieldNumber = 25,
301  kModemIdFieldNumber = 10,
302  kSerialBaudFieldNumber = 23,
303  kConnectionTypeFieldNumber = 20,
304  kReconnectIntervalFieldNumber = 26,
305  kDriverTypeFieldNumber = 1,
306  kDriverNameFieldNumber = 2,
307  };
308  // optional string line_delimiter = 21 [default = "\r\n", (.goby.field) = {
309  bool has_line_delimiter() const;
310  private:
311  bool _internal_has_line_delimiter() const;
312  public:
314  const std::string& line_delimiter() const;
315  void set_line_delimiter(const std::string& value);
316  void set_line_delimiter(std::string&& value);
317  void set_line_delimiter(const char* value);
318  void set_line_delimiter(const char* value, size_t size);
319  std::string* mutable_line_delimiter();
320  std::string* release_line_delimiter();
321  void set_allocated_line_delimiter(std::string* line_delimiter);
322  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
323  " string fields are deprecated and will be removed in a"
324  " future release.")
325  std::string* unsafe_arena_release_line_delimiter();
326  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
327  " string fields are deprecated and will be removed in a"
328  " future release.")
329  void unsafe_arena_set_allocated_line_delimiter(
330  std::string* line_delimiter);
331  private:
332  const std::string& _internal_line_delimiter() const;
333  void _internal_set_line_delimiter(const std::string& value);
334  std::string* _internal_mutable_line_delimiter();
335  public:
336 
337  // optional string serial_port = 22 [(.goby.field) = {
338  bool has_serial_port() const;
339  private:
340  bool _internal_has_serial_port() const;
341  public:
342  void clear_serial_port();
343  const std::string& serial_port() const;
344  void set_serial_port(const std::string& value);
345  void set_serial_port(std::string&& value);
346  void set_serial_port(const char* value);
347  void set_serial_port(const char* value, size_t size);
348  std::string* mutable_serial_port();
349  std::string* release_serial_port();
350  void set_allocated_serial_port(std::string* serial_port);
351  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
352  " string fields are deprecated and will be removed in a"
353  " future release.")
354  std::string* unsafe_arena_release_serial_port();
355  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
356  " string fields are deprecated and will be removed in a"
357  " future release.")
358  void unsafe_arena_set_allocated_serial_port(
359  std::string* serial_port);
360  private:
361  const std::string& _internal_serial_port() const;
362  void _internal_set_serial_port(const std::string& value);
363  std::string* _internal_mutable_serial_port();
364  public:
365 
366  // optional string tcp_server = 24 [(.goby.field) = {
367  bool has_tcp_server() const;
368  private:
369  bool _internal_has_tcp_server() const;
370  public:
371  void clear_tcp_server();
372  const std::string& tcp_server() const;
373  void set_tcp_server(const std::string& value);
374  void set_tcp_server(std::string&& value);
375  void set_tcp_server(const char* value);
376  void set_tcp_server(const char* value, size_t size);
377  std::string* mutable_tcp_server();
378  std::string* release_tcp_server();
379  void set_allocated_tcp_server(std::string* tcp_server);
380  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
381  " string fields are deprecated and will be removed in a"
382  " future release.")
383  std::string* unsafe_arena_release_tcp_server();
384  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
385  " string fields are deprecated and will be removed in a"
386  " future release.")
387  void unsafe_arena_set_allocated_tcp_server(
388  std::string* tcp_server);
389  private:
390  const std::string& _internal_tcp_server() const;
391  void _internal_set_tcp_server(const std::string& value);
392  std::string* _internal_mutable_tcp_server();
393  public:
394 
395  // optional string raw_log = 30 [(.goby.field) = {
396  bool has_raw_log() const;
397  private:
398  bool _internal_has_raw_log() const;
399  public:
400  void clear_raw_log();
401  const std::string& raw_log() const;
402  void set_raw_log(const std::string& value);
403  void set_raw_log(std::string&& value);
404  void set_raw_log(const char* value);
405  void set_raw_log(const char* value, size_t size);
406  std::string* mutable_raw_log();
407  std::string* release_raw_log();
408  void set_allocated_raw_log(std::string* raw_log);
409  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
410  " string fields are deprecated and will be removed in a"
411  " future release.")
412  std::string* unsafe_arena_release_raw_log();
413  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
414  " string fields are deprecated and will be removed in a"
415  " future release.")
416  void unsafe_arena_set_allocated_raw_log(
417  std::string* raw_log);
418  private:
419  const std::string& _internal_raw_log() const;
420  void _internal_set_raw_log(const std::string& value);
421  std::string* _internal_mutable_raw_log();
422  public:
423 
424  // optional uint32 tcp_port = 25 [(.goby.field) = {
425  bool has_tcp_port() const;
426  private:
427  bool _internal_has_tcp_port() const;
428  public:
429  void clear_tcp_port();
430  ::PROTOBUF_NAMESPACE_ID::uint32 tcp_port() const;
431  void set_tcp_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
432  private:
433  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_tcp_port() const;
434  void _internal_set_tcp_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
435  public:
436 
437  // optional int32 modem_id = 10 [(.goby.field) = {
438  bool has_modem_id() const;
439  private:
440  bool _internal_has_modem_id() const;
441  public:
442  void clear_modem_id();
443  ::PROTOBUF_NAMESPACE_ID::int32 modem_id() const;
444  void set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value);
445  private:
446  ::PROTOBUF_NAMESPACE_ID::int32 _internal_modem_id() const;
447  void _internal_set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value);
448  public:
449 
450  // optional uint32 serial_baud = 23 [(.goby.field) = {
451  bool has_serial_baud() const;
452  private:
453  bool _internal_has_serial_baud() const;
454  public:
455  void clear_serial_baud();
456  ::PROTOBUF_NAMESPACE_ID::uint32 serial_baud() const;
457  void set_serial_baud(::PROTOBUF_NAMESPACE_ID::uint32 value);
458  private:
459  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_serial_baud() const;
460  void _internal_set_serial_baud(::PROTOBUF_NAMESPACE_ID::uint32 value);
461  public:
462 
463  // optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 20 [default = CONNECTION_SERIAL, (.goby.field) = {
464  bool has_connection_type() const;
465  private:
466  bool _internal_has_connection_type() const;
467  public:
468  void clear_connection_type();
469  ::goby::acomms::protobuf::DriverConfig_ConnectionType connection_type() const;
470  void set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value);
471  private:
472  ::goby::acomms::protobuf::DriverConfig_ConnectionType _internal_connection_type() const;
473  void _internal_set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value);
474  public:
475 
476  // optional uint32 reconnect_interval = 26 [default = 10, (.goby.field) = {
477  bool has_reconnect_interval() const;
478  private:
479  bool _internal_has_reconnect_interval() const;
480  public:
481  void clear_reconnect_interval();
482  ::PROTOBUF_NAMESPACE_ID::uint32 reconnect_interval() const;
483  void set_reconnect_interval(::PROTOBUF_NAMESPACE_ID::uint32 value);
484  private:
485  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_reconnect_interval() const;
486  void _internal_set_reconnect_interval(::PROTOBUF_NAMESPACE_ID::uint32 value);
487  public:
488 
489  // .goby.acomms.protobuf.DriverType driver_type = 1 [default = DRIVER_NONE, (.goby.field) = {
490  bool has_driver_type() const;
491  private:
492  bool _internal_has_driver_type() const;
493  public:
494  void clear_driver_type();
495  ::goby::acomms::protobuf::DriverType driver_type() const;
496  void set_driver_type(::goby::acomms::protobuf::DriverType value);
497  private:
498  ::goby::acomms::protobuf::DriverType _internal_driver_type() const;
499  void _internal_set_driver_type(::goby::acomms::protobuf::DriverType value);
500  public:
501 
502  // string driver_name = 2 [(.goby.field) = {
503  bool has_driver_name() const;
504  private:
505  bool _internal_has_driver_name() const;
506  public:
507  void clear_driver_name();
508  const std::string& driver_name() const;
509  void set_driver_name(const std::string& value);
510  void set_driver_name(std::string&& value);
511  void set_driver_name(const char* value);
512  void set_driver_name(const char* value, size_t size);
513  std::string* mutable_driver_name();
514  std::string* release_driver_name();
515  void set_allocated_driver_name(std::string* driver_name);
516  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
517  " string fields are deprecated and will be removed in a"
518  " future release.")
519  std::string* unsafe_arena_release_driver_name();
520  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
521  " string fields are deprecated and will be removed in a"
522  " future release.")
523  void unsafe_arena_set_allocated_driver_name(
524  std::string* driver_name);
525  private:
526  const std::string& _internal_driver_name() const;
527  void _internal_set_driver_name(const std::string& value);
528  std::string* _internal_mutable_driver_name();
529  public:
530 
531  GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(DriverConfig)
532  void clear_driver();
533  DriverCase driver_case() const;
534  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.DriverConfig)
535  private:
536  class _Internal;
537  void set_has_driver_type();
538  void set_has_driver_name();
539 
540  inline bool has_driver() const;
541  inline void clear_has_driver();
542 
543  ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
544 
545  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
546  typedef void InternalArenaConstructable_;
547  typedef void DestructorSkippable_;
548  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
549  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
550  public:
551  static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_line_delimiter_;
552  private:
553  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr line_delimiter_;
554  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serial_port_;
555  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tcp_server_;
556  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_log_;
557  ::PROTOBUF_NAMESPACE_ID::uint32 tcp_port_;
558  ::PROTOBUF_NAMESPACE_ID::int32 modem_id_;
559  ::PROTOBUF_NAMESPACE_ID::uint32 serial_baud_;
560  int connection_type_;
561  ::PROTOBUF_NAMESPACE_ID::uint32 reconnect_interval_;
562  union DriverUnion {
563  DriverUnion() {}
564  int driver_type_;
565  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr driver_name_;
566  } driver_;
567  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
568 
569  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
570 };
571 // ===================================================================
572 
573 
574 // ===================================================================
575 
576 #ifdef __GNUC__
577  #pragma GCC diagnostic push
578  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
579 #endif // __GNUC__
580 // DriverConfig
581 
582 // .goby.acomms.protobuf.DriverType driver_type = 1 [default = DRIVER_NONE, (.goby.field) = {
583 inline bool DriverConfig::_internal_has_driver_type() const {
584  return driver_case() == kDriverType;
585 }
586 inline bool DriverConfig::has_driver_type() const {
587  return _internal_has_driver_type();
588 }
589 inline void DriverConfig::set_has_driver_type() {
590  _oneof_case_[0] = kDriverType;
591 }
592 inline void DriverConfig::clear_driver_type() {
593  if (_internal_has_driver_type()) {
594  driver_.driver_type_ = 1;
595  clear_has_driver();
596  }
597 }
598 inline ::goby::acomms::protobuf::DriverType DriverConfig::_internal_driver_type() const {
599  if (_internal_has_driver_type()) {
600  return static_cast< ::goby::acomms::protobuf::DriverType >(driver_.driver_type_);
601  }
602  return static_cast< ::goby::acomms::protobuf::DriverType >(1);
603 }
604 inline ::goby::acomms::protobuf::DriverType DriverConfig::driver_type() const {
605  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.driver_type)
606  return _internal_driver_type();
607 }
608 inline void DriverConfig::_internal_set_driver_type(::goby::acomms::protobuf::DriverType value) {
610  if (!_internal_has_driver_type()) {
611  clear_driver();
612  set_has_driver_type();
613  }
614  driver_.driver_type_ = value;
615 }
616 inline void DriverConfig::set_driver_type(::goby::acomms::protobuf::DriverType value) {
617  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_type)
618  _internal_set_driver_type(value);
619 }
620 
621 // string driver_name = 2 [(.goby.field) = {
622 inline bool DriverConfig::_internal_has_driver_name() const {
623  return driver_case() == kDriverName;
624 }
625 inline bool DriverConfig::has_driver_name() const {
626  return _internal_has_driver_name();
627 }
628 inline void DriverConfig::set_has_driver_name() {
629  _oneof_case_[0] = kDriverName;
630 }
631 inline void DriverConfig::clear_driver_name() {
632  if (_internal_has_driver_name()) {
633  driver_.driver_name_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
634  clear_has_driver();
635  }
636 }
637 inline const std::string& DriverConfig::driver_name() const {
638  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.driver_name)
639  return _internal_driver_name();
640 }
641 inline void DriverConfig::set_driver_name(const std::string& value) {
642  _internal_set_driver_name(value);
643  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_name)
644 }
645 inline std::string* DriverConfig::mutable_driver_name() {
646  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.driver_name)
647  return _internal_mutable_driver_name();
648 }
649 inline const std::string& DriverConfig::_internal_driver_name() const {
650  if (_internal_has_driver_name()) {
651  return driver_.driver_name_.Get();
652  }
654 }
655 inline void DriverConfig::_internal_set_driver_name(const std::string& value) {
656  if (!_internal_has_driver_name()) {
657  clear_driver();
658  set_has_driver_name();
659  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
660  }
661  driver_.driver_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
662 }
663 inline void DriverConfig::set_driver_name(std::string&& value) {
664  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_name)
665  if (!_internal_has_driver_name()) {
666  clear_driver();
667  set_has_driver_name();
668  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
669  }
670  driver_.driver_name_.Set(
671  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
672  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.DriverConfig.driver_name)
673 }
674 inline void DriverConfig::set_driver_name(const char* value) {
675  GOOGLE_DCHECK(value != nullptr);
676  if (!_internal_has_driver_name()) {
677  clear_driver();
678  set_has_driver_name();
679  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
680  }
682  ::std::string(value), GetArena());
683  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.driver_name)
684 }
685 inline void DriverConfig::set_driver_name(const char* value,
686  size_t size) {
687  if (!_internal_has_driver_name()) {
688  clear_driver();
689  set_has_driver_name();
690  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
691  }
692  driver_.driver_name_.Set(
694  reinterpret_cast<const char*>(value), size),
695  GetArena());
696  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.driver_name)
697 }
698 inline std::string* DriverConfig::_internal_mutable_driver_name() {
699  if (!_internal_has_driver_name()) {
700  clear_driver();
701  set_has_driver_name();
702  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
703  }
704  return driver_.driver_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
705 }
706 inline std::string* DriverConfig::release_driver_name() {
707  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.driver_name)
708  if (_internal_has_driver_name()) {
709  clear_has_driver();
710  return driver_.driver_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
711  } else {
712  return nullptr;
713  }
714 }
715 inline void DriverConfig::set_allocated_driver_name(std::string* driver_name) {
716  if (has_driver()) {
717  clear_driver();
718  }
719  if (driver_name != nullptr) {
720  set_has_driver_name();
721  driver_.driver_name_.UnsafeSetDefault(driver_name);
722  }
723  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.driver_name)
724 }
725 inline std::string* DriverConfig::unsafe_arena_release_driver_name() {
726  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.DriverConfig.driver_name)
727  GOOGLE_DCHECK(GetArena() != nullptr);
728  if (_internal_has_driver_name()) {
729  clear_has_driver();
730  return driver_.driver_name_.UnsafeArenaRelease(
732  } else {
733  return nullptr;
734  }
735 }
736 inline void DriverConfig::unsafe_arena_set_allocated_driver_name(std::string* driver_name) {
737  GOOGLE_DCHECK(GetArena() != nullptr);
738  if (!_internal_has_driver_name()) {
739  driver_.driver_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
740  }
741  clear_driver();
742  if (driver_name) {
743  set_has_driver_name();
744  driver_.driver_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), driver_name, GetArena());
745  }
746  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.DriverConfig.driver_name)
747 }
748 
749 // optional int32 modem_id = 10 [(.goby.field) = {
750 inline bool DriverConfig::_internal_has_modem_id() const {
751  bool value = (_has_bits_[0] & 0x00000020u) != 0;
752  return value;
753 }
754 inline bool DriverConfig::has_modem_id() const {
755  return _internal_has_modem_id();
756 }
757 inline void DriverConfig::clear_modem_id() {
758  modem_id_ = 0;
759  _has_bits_[0] &= ~0x00000020u;
760 }
761 inline ::PROTOBUF_NAMESPACE_ID::int32 DriverConfig::_internal_modem_id() const {
762  return modem_id_;
763 }
764 inline ::PROTOBUF_NAMESPACE_ID::int32 DriverConfig::modem_id() const {
765  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.modem_id)
766  return _internal_modem_id();
767 }
768 inline void DriverConfig::_internal_set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
769  _has_bits_[0] |= 0x00000020u;
770  modem_id_ = value;
771 }
772 inline void DriverConfig::set_modem_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
773  _internal_set_modem_id(value);
774  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.modem_id)
775 }
776 
777 // optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 20 [default = CONNECTION_SERIAL, (.goby.field) = {
778 inline bool DriverConfig::_internal_has_connection_type() const {
779  bool value = (_has_bits_[0] & 0x00000080u) != 0;
780  return value;
781 }
782 inline bool DriverConfig::has_connection_type() const {
783  return _internal_has_connection_type();
784 }
785 inline void DriverConfig::clear_connection_type() {
786  connection_type_ = 1;
787  _has_bits_[0] &= ~0x00000080u;
788 }
789 inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::_internal_connection_type() const {
790  return static_cast< ::goby::acomms::protobuf::DriverConfig_ConnectionType >(connection_type_);
791 }
792 inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::connection_type() const {
793  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.connection_type)
794  return _internal_connection_type();
795 }
796 inline void DriverConfig::_internal_set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value) {
798  _has_bits_[0] |= 0x00000080u;
799  connection_type_ = value;
800 }
801 inline void DriverConfig::set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value) {
802  _internal_set_connection_type(value);
803  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.connection_type)
804 }
805 
806 // optional string line_delimiter = 21 [default = "\r\n", (.goby.field) = {
807 inline bool DriverConfig::_internal_has_line_delimiter() const {
808  bool value = (_has_bits_[0] & 0x00000001u) != 0;
809  return value;
810 }
811 inline bool DriverConfig::has_line_delimiter() const {
812  return _internal_has_line_delimiter();
813 }
814 inline void DriverConfig::clear_line_delimiter() {
815  line_delimiter_.ClearToDefault(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), GetArena());
816  _has_bits_[0] &= ~0x00000001u;
817 }
818 inline const std::string& DriverConfig::line_delimiter() const {
819  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.line_delimiter)
820  return _internal_line_delimiter();
821 }
822 inline void DriverConfig::set_line_delimiter(const std::string& value) {
823  _internal_set_line_delimiter(value);
824  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.line_delimiter)
825 }
826 inline std::string* DriverConfig::mutable_line_delimiter() {
827  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.line_delimiter)
828  return _internal_mutable_line_delimiter();
829 }
830 inline const std::string& DriverConfig::_internal_line_delimiter() const {
831  return line_delimiter_.Get();
832 }
833 inline void DriverConfig::_internal_set_line_delimiter(const std::string& value) {
834  _has_bits_[0] |= 0x00000001u;
835  line_delimiter_.Set(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), value, GetArena());
836 }
837 inline void DriverConfig::set_line_delimiter(std::string&& value) {
838  _has_bits_[0] |= 0x00000001u;
839  line_delimiter_.Set(
840  &::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), ::std::move(value), GetArena());
841  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.DriverConfig.line_delimiter)
842 }
843 inline void DriverConfig::set_line_delimiter(const char* value) {
844  GOOGLE_DCHECK(value != nullptr);
845  _has_bits_[0] |= 0x00000001u;
846  line_delimiter_.Set(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), ::std::string(value),
847  GetArena());
848  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.line_delimiter)
849 }
850 inline void DriverConfig::set_line_delimiter(const char* value,
851  size_t size) {
852  _has_bits_[0] |= 0x00000001u;
853  line_delimiter_.Set(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), ::std::string(
854  reinterpret_cast<const char*>(value), size), GetArena());
855  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.line_delimiter)
856 }
857 inline std::string* DriverConfig::_internal_mutable_line_delimiter() {
858  _has_bits_[0] |= 0x00000001u;
859  return line_delimiter_.Mutable(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), GetArena());
860 }
861 inline std::string* DriverConfig::release_line_delimiter() {
862  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.line_delimiter)
863  if (!_internal_has_line_delimiter()) {
864  return nullptr;
865  }
866  _has_bits_[0] &= ~0x00000001u;
867  return line_delimiter_.ReleaseNonDefault(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), GetArena());
868 }
869 inline void DriverConfig::set_allocated_line_delimiter(std::string* line_delimiter) {
870  if (line_delimiter != nullptr) {
871  _has_bits_[0] |= 0x00000001u;
872  } else {
873  _has_bits_[0] &= ~0x00000001u;
874  }
875  line_delimiter_.SetAllocated(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(), line_delimiter,
876  GetArena());
877  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.line_delimiter)
878 }
879 inline std::string* DriverConfig::unsafe_arena_release_line_delimiter() {
880  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.DriverConfig.line_delimiter)
881  GOOGLE_DCHECK(GetArena() != nullptr);
882  _has_bits_[0] &= ~0x00000001u;
883  return line_delimiter_.UnsafeArenaRelease(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(),
884  GetArena());
885 }
886 inline void DriverConfig::unsafe_arena_set_allocated_line_delimiter(
887  std::string* line_delimiter) {
888  GOOGLE_DCHECK(GetArena() != nullptr);
889  if (line_delimiter != nullptr) {
890  _has_bits_[0] |= 0x00000001u;
891  } else {
892  _has_bits_[0] &= ~0x00000001u;
893  }
894  line_delimiter_.UnsafeArenaSetAllocated(&::goby::acomms::protobuf::DriverConfig::_i_give_permission_to_break_this_code_default_line_delimiter_.get(),
895  line_delimiter, GetArena());
896  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.DriverConfig.line_delimiter)
897 }
898 
899 // optional string serial_port = 22 [(.goby.field) = {
900 inline bool DriverConfig::_internal_has_serial_port() const {
901  bool value = (_has_bits_[0] & 0x00000002u) != 0;
902  return value;
903 }
904 inline bool DriverConfig::has_serial_port() const {
905  return _internal_has_serial_port();
906 }
907 inline void DriverConfig::clear_serial_port() {
908  serial_port_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
909  _has_bits_[0] &= ~0x00000002u;
910 }
911 inline const std::string& DriverConfig::serial_port() const {
912  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_port)
913  return _internal_serial_port();
914 }
915 inline void DriverConfig::set_serial_port(const std::string& value) {
916  _internal_set_serial_port(value);
917  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_port)
918 }
919 inline std::string* DriverConfig::mutable_serial_port() {
920  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.serial_port)
921  return _internal_mutable_serial_port();
922 }
923 inline const std::string& DriverConfig::_internal_serial_port() const {
924  return serial_port_.Get();
925 }
926 inline void DriverConfig::_internal_set_serial_port(const std::string& value) {
927  _has_bits_[0] |= 0x00000002u;
928  serial_port_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
929 }
930 inline void DriverConfig::set_serial_port(std::string&& value) {
931  _has_bits_[0] |= 0x00000002u;
932  serial_port_.Set(
933  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
934  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.DriverConfig.serial_port)
935 }
936 inline void DriverConfig::set_serial_port(const char* value) {
937  GOOGLE_DCHECK(value != nullptr);
938  _has_bits_[0] |= 0x00000002u;
939  serial_port_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
940  GetArena());
941  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.serial_port)
942 }
943 inline void DriverConfig::set_serial_port(const char* value,
944  size_t size) {
945  _has_bits_[0] |= 0x00000002u;
946  serial_port_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
947  reinterpret_cast<const char*>(value), size), GetArena());
948  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.serial_port)
949 }
950 inline std::string* DriverConfig::_internal_mutable_serial_port() {
951  _has_bits_[0] |= 0x00000002u;
952  return serial_port_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
953 }
954 inline std::string* DriverConfig::release_serial_port() {
955  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.serial_port)
956  if (!_internal_has_serial_port()) {
957  return nullptr;
958  }
959  _has_bits_[0] &= ~0x00000002u;
960  return serial_port_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
961 }
962 inline void DriverConfig::set_allocated_serial_port(std::string* serial_port) {
963  if (serial_port != nullptr) {
964  _has_bits_[0] |= 0x00000002u;
965  } else {
966  _has_bits_[0] &= ~0x00000002u;
967  }
968  serial_port_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), serial_port,
969  GetArena());
970  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.serial_port)
971 }
972 inline std::string* DriverConfig::unsafe_arena_release_serial_port() {
973  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.DriverConfig.serial_port)
974  GOOGLE_DCHECK(GetArena() != nullptr);
975  _has_bits_[0] &= ~0x00000002u;
976  return serial_port_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
977  GetArena());
978 }
979 inline void DriverConfig::unsafe_arena_set_allocated_serial_port(
980  std::string* serial_port) {
981  GOOGLE_DCHECK(GetArena() != nullptr);
982  if (serial_port != nullptr) {
983  _has_bits_[0] |= 0x00000002u;
984  } else {
985  _has_bits_[0] &= ~0x00000002u;
986  }
987  serial_port_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
988  serial_port, GetArena());
989  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.DriverConfig.serial_port)
990 }
991 
992 // optional uint32 serial_baud = 23 [(.goby.field) = {
993 inline bool DriverConfig::_internal_has_serial_baud() const {
994  bool value = (_has_bits_[0] & 0x00000040u) != 0;
995  return value;
996 }
997 inline bool DriverConfig::has_serial_baud() const {
998  return _internal_has_serial_baud();
999 }
1000 inline void DriverConfig::clear_serial_baud() {
1001  serial_baud_ = 0u;
1002  _has_bits_[0] &= ~0x00000040u;
1003 }
1004 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::_internal_serial_baud() const {
1005  return serial_baud_;
1006 }
1007 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::serial_baud() const {
1008  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_baud)
1009  return _internal_serial_baud();
1010 }
1011 inline void DriverConfig::_internal_set_serial_baud(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1012  _has_bits_[0] |= 0x00000040u;
1013  serial_baud_ = value;
1014 }
1015 inline void DriverConfig::set_serial_baud(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1016  _internal_set_serial_baud(value);
1017  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_baud)
1018 }
1019 
1020 // optional string tcp_server = 24 [(.goby.field) = {
1021 inline bool DriverConfig::_internal_has_tcp_server() const {
1022  bool value = (_has_bits_[0] & 0x00000004u) != 0;
1023  return value;
1024 }
1025 inline bool DriverConfig::has_tcp_server() const {
1026  return _internal_has_tcp_server();
1027 }
1028 inline void DriverConfig::clear_tcp_server() {
1029  tcp_server_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1030  _has_bits_[0] &= ~0x00000004u;
1031 }
1032 inline const std::string& DriverConfig::tcp_server() const {
1033  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_server)
1034  return _internal_tcp_server();
1035 }
1036 inline void DriverConfig::set_tcp_server(const std::string& value) {
1037  _internal_set_tcp_server(value);
1038  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_server)
1039 }
1040 inline std::string* DriverConfig::mutable_tcp_server() {
1041  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.tcp_server)
1042  return _internal_mutable_tcp_server();
1043 }
1044 inline const std::string& DriverConfig::_internal_tcp_server() const {
1045  return tcp_server_.Get();
1046 }
1047 inline void DriverConfig::_internal_set_tcp_server(const std::string& value) {
1048  _has_bits_[0] |= 0x00000004u;
1049  tcp_server_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1050 }
1051 inline void DriverConfig::set_tcp_server(std::string&& value) {
1052  _has_bits_[0] |= 0x00000004u;
1053  tcp_server_.Set(
1054  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1055  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.DriverConfig.tcp_server)
1056 }
1057 inline void DriverConfig::set_tcp_server(const char* value) {
1058  GOOGLE_DCHECK(value != nullptr);
1059  _has_bits_[0] |= 0x00000004u;
1060  tcp_server_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1061  GetArena());
1062  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.tcp_server)
1063 }
1064 inline void DriverConfig::set_tcp_server(const char* value,
1065  size_t size) {
1066  _has_bits_[0] |= 0x00000004u;
1067  tcp_server_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1068  reinterpret_cast<const char*>(value), size), GetArena());
1069  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.tcp_server)
1070 }
1071 inline std::string* DriverConfig::_internal_mutable_tcp_server() {
1072  _has_bits_[0] |= 0x00000004u;
1073  return tcp_server_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1074 }
1075 inline std::string* DriverConfig::release_tcp_server() {
1076  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.tcp_server)
1077  if (!_internal_has_tcp_server()) {
1078  return nullptr;
1079  }
1080  _has_bits_[0] &= ~0x00000004u;
1081  return tcp_server_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1082 }
1083 inline void DriverConfig::set_allocated_tcp_server(std::string* tcp_server) {
1084  if (tcp_server != nullptr) {
1085  _has_bits_[0] |= 0x00000004u;
1086  } else {
1087  _has_bits_[0] &= ~0x00000004u;
1088  }
1089  tcp_server_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tcp_server,
1090  GetArena());
1091  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.tcp_server)
1092 }
1093 inline std::string* DriverConfig::unsafe_arena_release_tcp_server() {
1094  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.DriverConfig.tcp_server)
1095  GOOGLE_DCHECK(GetArena() != nullptr);
1096  _has_bits_[0] &= ~0x00000004u;
1097  return tcp_server_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1098  GetArena());
1099 }
1100 inline void DriverConfig::unsafe_arena_set_allocated_tcp_server(
1101  std::string* tcp_server) {
1102  GOOGLE_DCHECK(GetArena() != nullptr);
1103  if (tcp_server != nullptr) {
1104  _has_bits_[0] |= 0x00000004u;
1105  } else {
1106  _has_bits_[0] &= ~0x00000004u;
1107  }
1108  tcp_server_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1109  tcp_server, GetArena());
1110  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.DriverConfig.tcp_server)
1111 }
1112 
1113 // optional uint32 tcp_port = 25 [(.goby.field) = {
1114 inline bool DriverConfig::_internal_has_tcp_port() const {
1115  bool value = (_has_bits_[0] & 0x00000010u) != 0;
1116  return value;
1117 }
1118 inline bool DriverConfig::has_tcp_port() const {
1119  return _internal_has_tcp_port();
1120 }
1121 inline void DriverConfig::clear_tcp_port() {
1122  tcp_port_ = 0u;
1123  _has_bits_[0] &= ~0x00000010u;
1124 }
1125 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::_internal_tcp_port() const {
1126  return tcp_port_;
1127 }
1128 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::tcp_port() const {
1129  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_port)
1130  return _internal_tcp_port();
1131 }
1132 inline void DriverConfig::_internal_set_tcp_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1133  _has_bits_[0] |= 0x00000010u;
1134  tcp_port_ = value;
1135 }
1136 inline void DriverConfig::set_tcp_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1137  _internal_set_tcp_port(value);
1138  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_port)
1139 }
1140 
1141 // optional uint32 reconnect_interval = 26 [default = 10, (.goby.field) = {
1142 inline bool DriverConfig::_internal_has_reconnect_interval() const {
1143  bool value = (_has_bits_[0] & 0x00000100u) != 0;
1144  return value;
1145 }
1146 inline bool DriverConfig::has_reconnect_interval() const {
1147  return _internal_has_reconnect_interval();
1148 }
1149 inline void DriverConfig::clear_reconnect_interval() {
1150  reconnect_interval_ = 10u;
1151  _has_bits_[0] &= ~0x00000100u;
1152 }
1153 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::_internal_reconnect_interval() const {
1154  return reconnect_interval_;
1155 }
1156 inline ::PROTOBUF_NAMESPACE_ID::uint32 DriverConfig::reconnect_interval() const {
1157  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.reconnect_interval)
1158  return _internal_reconnect_interval();
1159 }
1160 inline void DriverConfig::_internal_set_reconnect_interval(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1161  _has_bits_[0] |= 0x00000100u;
1162  reconnect_interval_ = value;
1163 }
1164 inline void DriverConfig::set_reconnect_interval(::PROTOBUF_NAMESPACE_ID::uint32 value) {
1165  _internal_set_reconnect_interval(value);
1166  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.reconnect_interval)
1167 }
1168 
1169 // optional string raw_log = 30 [(.goby.field) = {
1170 inline bool DriverConfig::_internal_has_raw_log() const {
1171  bool value = (_has_bits_[0] & 0x00000008u) != 0;
1172  return value;
1173 }
1174 inline bool DriverConfig::has_raw_log() const {
1175  return _internal_has_raw_log();
1176 }
1177 inline void DriverConfig::clear_raw_log() {
1178  raw_log_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1179  _has_bits_[0] &= ~0x00000008u;
1180 }
1181 inline const std::string& DriverConfig::raw_log() const {
1182  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.raw_log)
1183  return _internal_raw_log();
1184 }
1185 inline void DriverConfig::set_raw_log(const std::string& value) {
1186  _internal_set_raw_log(value);
1187  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.raw_log)
1188 }
1189 inline std::string* DriverConfig::mutable_raw_log() {
1190  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.raw_log)
1191  return _internal_mutable_raw_log();
1192 }
1193 inline const std::string& DriverConfig::_internal_raw_log() const {
1194  return raw_log_.Get();
1195 }
1196 inline void DriverConfig::_internal_set_raw_log(const std::string& value) {
1197  _has_bits_[0] |= 0x00000008u;
1198  raw_log_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1199 }
1200 inline void DriverConfig::set_raw_log(std::string&& value) {
1201  _has_bits_[0] |= 0x00000008u;
1202  raw_log_.Set(
1203  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1204  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.DriverConfig.raw_log)
1205 }
1206 inline void DriverConfig::set_raw_log(const char* value) {
1207  GOOGLE_DCHECK(value != nullptr);
1208  _has_bits_[0] |= 0x00000008u;
1209  raw_log_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1210  GetArena());
1211  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.DriverConfig.raw_log)
1212 }
1213 inline void DriverConfig::set_raw_log(const char* value,
1214  size_t size) {
1215  _has_bits_[0] |= 0x00000008u;
1216  raw_log_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1217  reinterpret_cast<const char*>(value), size), GetArena());
1218  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.DriverConfig.raw_log)
1219 }
1220 inline std::string* DriverConfig::_internal_mutable_raw_log() {
1221  _has_bits_[0] |= 0x00000008u;
1222  return raw_log_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1223 }
1224 inline std::string* DriverConfig::release_raw_log() {
1225  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.raw_log)
1226  if (!_internal_has_raw_log()) {
1227  return nullptr;
1228  }
1229  _has_bits_[0] &= ~0x00000008u;
1230  return raw_log_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1231 }
1232 inline void DriverConfig::set_allocated_raw_log(std::string* raw_log) {
1233  if (raw_log != nullptr) {
1234  _has_bits_[0] |= 0x00000008u;
1235  } else {
1236  _has_bits_[0] &= ~0x00000008u;
1237  }
1238  raw_log_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), raw_log,
1239  GetArena());
1240  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.raw_log)
1241 }
1242 inline std::string* DriverConfig::unsafe_arena_release_raw_log() {
1243  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.DriverConfig.raw_log)
1244  GOOGLE_DCHECK(GetArena() != nullptr);
1245  _has_bits_[0] &= ~0x00000008u;
1246  return raw_log_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1247  GetArena());
1248 }
1249 inline void DriverConfig::unsafe_arena_set_allocated_raw_log(
1250  std::string* raw_log) {
1251  GOOGLE_DCHECK(GetArena() != nullptr);
1252  if (raw_log != nullptr) {
1253  _has_bits_[0] |= 0x00000008u;
1254  } else {
1255  _has_bits_[0] &= ~0x00000008u;
1256  }
1257  raw_log_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1258  raw_log, GetArena());
1259  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.DriverConfig.raw_log)
1260 }
1261 
1262 inline bool DriverConfig::has_driver() const {
1263  return driver_case() != DRIVER_NOT_SET;
1264 }
1265 inline void DriverConfig::clear_has_driver() {
1266  _oneof_case_[0] = DRIVER_NOT_SET;
1267 }
1268 inline DriverConfig::DriverCase DriverConfig::driver_case() const {
1269  return DriverConfig::DriverCase(_oneof_case_[0]);
1270 }
1271 #ifdef __GNUC__
1272  #pragma GCC diagnostic pop
1273 #endif // __GNUC__
1274 
1275 // @@protoc_insertion_point(namespace_scope)
1276 
1277 } // namespace protobuf
1278 } // namespace acomms
1279 } // namespace goby
1280 
1281 PROTOBUF_NAMESPACE_OPEN
1282 
1283 template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverConfig_ConnectionType> : ::std::true_type {};
1284 template <>
1285 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType>() {
1287 }
1288 template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverType> : ::std::true_type {};
1289 template <>
1290 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverType>() {
1292 }
1293 
1294 PROTOBUF_NAMESPACE_CLOSE
1295 
1296 // @@protoc_insertion_point(global_scope)
1297 
1298 #include <google/protobuf/port_undef.inc>
1299 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
const std::string & line_delimiter() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_line_delimiter(std::string &&value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const DriverConfig * internal_default_instance()
DriverConfig * New() const final
DriverConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static bool ConnectionType_Parse(const std::string &name, ConnectionType *value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConnectionType_descriptor()
void set_line_delimiter(const char *value, size_t size)
void CopyFrom(const DriverConfig &from)
DriverConfig(const DriverConfig &from)
friend void swap(DriverConfig &a, DriverConfig &b)
static const std::string & ConnectionType_Name(T enum_t_value)
static bool ConnectionType_IsValid(int value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_line_delimiter(std::string *line_delimiter)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
DriverConfig & operator=(const DriverConfig &from)
void set_line_delimiter(const std::string &value)
DriverConfig(DriverConfig &&from) noexcept
void UnsafeArenaSwap(DriverConfig *other)
DriverConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
DriverConfig & operator=(DriverConfig &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_line_delimiter(const char *value)
void MergeFrom(const DriverConfig &from)
static const DriverConfig & default_instance()
DriverConfig_ConnectionType ConnectionType
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
@ value
the parser finished reading a JSON value
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
Definition: json.hpp:5271
bool DriverConfig_ConnectionType_Parse(const std::string &name, DriverConfig_ConnectionType *value)
constexpr int DriverConfig_ConnectionType_ConnectionType_ARRAYSIZE
bool DriverType_Parse(const std::string &name, DriverType *value)
constexpr DriverType DriverType_MIN
bool DriverType_IsValid(int value)
constexpr int DriverType_ARRAYSIZE
constexpr DriverType DriverType_MAX
constexpr DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MIN
constexpr DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MAX
bool DriverConfig_ConnectionType_IsValid(int value)
const std::string & DriverType_Name(T enum_t_value)
DriverConfigDefaultTypeInternal _DriverConfig_default_instance_
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_CLIENT
@ DriverConfig_ConnectionType_CONNECTION_SERIAL
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DriverType_descriptor()
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DriverConfig_ConnectionType_descriptor()
const std::string & DriverConfig_ConnectionType_Name(T enum_t_value)
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
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)