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