4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
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>
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
42PROTOBUF_NAMESPACE_OPEN
46PROTOBUF_NAMESPACE_CLOSE
57struct DriverConfigDefaultTypeInternal;
62PROTOBUF_NAMESPACE_OPEN
64PROTOBUF_NAMESPACE_CLOSE
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(
90 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverConfig_ConnectionType>(
115 static_assert(::std::is_same<T, DriverType>::value ||
116 ::std::is_integral<T>::value,
117 "Incorrect type passed to function DriverType_Name.");
118 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
122 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
DriverType* value) {
123 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverType>(
129 public ::PROTOBUF_NAMESPACE_ID::Message {
133 explicit PROTOBUF_CONSTEXPR
DriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
138 *
this = ::std::move(from);
146 if (
this == &from)
return *
this;
147 if (GetOwningArena() == from.GetOwningArena()
148 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
149 && GetOwningArena() !=
nullptr
160 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
163 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
166 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
195 if (other ==
this)
return;
196 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
197 if (GetOwningArena() !=
nullptr &&
198 GetOwningArena() == other->GetOwningArena()) {
200 if (GetOwningArena() == other->GetOwningArena()) {
204 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
208 if (other ==
this)
return;
209 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
216 return CreateMaybeMessage<DriverConfig>(arena);
218 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
220 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
222 DriverConfig::MergeImpl(*
this, from);
225 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
227 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
233 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
237 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
239 void SetCachedSize(
int size)
const final;
243 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
244 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
245 return "goby.acomms.protobuf.DriverConfig";
249 bool is_message_owned =
false);
253 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
275 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
281 static_assert(::std::is_same<T, ConnectionType>::value ||
282 ::std::is_integral<T>::value,
283 "Incorrect type passed to function ConnectionType_Name.");
309 bool _internal_has_line_delimiter()
const;
313 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
319 const std::string& _internal_line_delimiter()
const;
320 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_line_delimiter(
const std::string& value);
321 std::string* _internal_mutable_line_delimiter();
327 bool _internal_has_serial_port()
const;
331 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
337 const std::string& _internal_serial_port()
const;
338 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_serial_port(
const std::string& value);
339 std::string* _internal_mutable_serial_port();
345 bool _internal_has_tcp_server()
const;
349 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
355 const std::string& _internal_tcp_server()
const;
356 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_tcp_server(
const std::string& value);
357 std::string* _internal_mutable_tcp_server();
363 bool _internal_has_raw_log()
const;
366 const std::string&
raw_log()
const;
367 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
373 const std::string& _internal_raw_log()
const;
374 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_raw_log(
const std::string& value);
375 std::string* _internal_mutable_raw_log();
381 bool _internal_has_modem_id()
const;
387 int32_t _internal_modem_id()
const;
388 void _internal_set_modem_id(int32_t value);
394 bool _internal_has_serial_baud()
const;
400 uint32_t _internal_serial_baud()
const;
401 void _internal_set_serial_baud(uint32_t value);
407 bool _internal_has_tcp_port()
const;
413 uint32_t _internal_tcp_port()
const;
414 void _internal_set_tcp_port(uint32_t value);
420 bool _internal_has_connection_type()
const;
433 bool _internal_has_reconnect_interval()
const;
439 uint32_t _internal_reconnect_interval()
const;
440 void _internal_set_reconnect_interval(uint32_t value);
446 bool _internal_has_driver_type()
const;
459 bool _internal_has_driver_name()
const;
463 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
469 const std::string& _internal_driver_name()
const;
470 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_driver_name(
const std::string& value);
471 std::string* _internal_mutable_driver_name();
475 template <
typename _proto_TypeTraits,
476 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
479 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
480 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
482 return _impl_._extensions_.Has(
id.number());
485 template <
typename _proto_TypeTraits,
486 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
489 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
490 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
491 _impl_._extensions_.ClearExtension(
id.number());
495 template <
typename _proto_TypeTraits,
496 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
499 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
500 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
502 return _impl_._extensions_.ExtensionSize(
id.number());
505 template <
typename _proto_TypeTraits,
506 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
509 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
510 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
512 return _proto_TypeTraits::Get(
id.number(),
_impl_._extensions_,
516 template <
typename _proto_TypeTraits,
517 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
520 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
521 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
523 return _proto_TypeTraits::Mutable(
id.number(), _field_type,
527 template <
typename _proto_TypeTraits,
528 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
531 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
532 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
533 typename _proto_TypeTraits::Singular::ConstType value) {
534 _proto_TypeTraits::Set(
id.number(), _field_type, value, &
_impl_._extensions_);
538 template <
typename _proto_TypeTraits,
539 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
542 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
543 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
544 typename _proto_TypeTraits::Singular::MutableType value) {
545 _proto_TypeTraits::SetAllocated(
id.number(), _field_type, value,
549 template <
typename _proto_TypeTraits,
550 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
553 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
554 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
555 typename _proto_TypeTraits::Singular::MutableType value) {
556 _proto_TypeTraits::UnsafeArenaSetAllocated(
id.number(), _field_type,
557 value, &
_impl_._extensions_);
560 template <
typename _proto_TypeTraits,
561 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
563 PROTOBUF_NODISCARD
inline
564 typename _proto_TypeTraits::Singular::MutableType
566 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
567 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
569 return _proto_TypeTraits::Release(
id.number(), _field_type,
572 template <
typename _proto_TypeTraits,
573 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
575 inline typename _proto_TypeTraits::Singular::MutableType
577 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
578 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
580 return _proto_TypeTraits::UnsafeArenaRelease(
id.number(), _field_type,
584 template <
typename _proto_TypeTraits,
585 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
588 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
589 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
592 return _proto_TypeTraits::Get(
id.number(),
_impl_._extensions_, index);
595 template <
typename _proto_TypeTraits,
596 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
599 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
600 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
603 return _proto_TypeTraits::Mutable(
id.number(), index, &
_impl_._extensions_);
606 template <
typename _proto_TypeTraits,
607 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
610 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
611 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
612 int index,
typename _proto_TypeTraits::Repeated::ConstType value) {
613 _proto_TypeTraits::Set(
id.number(), index, value, &
_impl_._extensions_);
617 template <
typename _proto_TypeTraits,
618 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
621 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
622 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
623 typename _proto_TypeTraits::Repeated::MutableType to_add =
624 _proto_TypeTraits::Add(
id.number(), _field_type, &
_impl_._extensions_);
629 template <
typename _proto_TypeTraits,
630 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
633 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
634 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
635 typename _proto_TypeTraits::Repeated::ConstType value) {
636 _proto_TypeTraits::Add(
id.number(), _field_type, _is_packed, value,
641 template <
typename _proto_TypeTraits,
642 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
644 inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
646 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
647 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
649 return _proto_TypeTraits::GetRepeated(
id.number(),
_impl_._extensions_);
652 template <
typename _proto_TypeTraits,
653 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
655 inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
657 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
658 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
660 return _proto_TypeTraits::MutableRepeated(
id.number(), _field_type,
661 _is_packed, &
_impl_._extensions_);
669 void set_has_driver_type();
670 void set_has_driver_name();
672 inline bool has_driver()
const;
673 inline void clear_has_driver();
675 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
676 typedef void InternalArenaConstructable_;
677 typedef void DestructorSkippable_;
679 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
681 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
682 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
683 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_line_delimiter_;
684 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr line_delimiter_;
685 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serial_port_;
686 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tcp_server_;
687 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_log_;
689 uint32_t serial_baud_;
691 int connection_type_;
692 uint32_t reconnect_interval_;
695 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
_constinit_;
699 uint32_t _oneof_case_[1];
703 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
711 #pragma GCC diagnostic push
712 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
717inline bool DriverConfig::_internal_has_driver_type()
const {
721 return _internal_has_driver_type();
723inline void DriverConfig::set_has_driver_type() {
727 if (_internal_has_driver_type()) {
728 _impl_.driver_.driver_type_ = 1;
732inline ::goby::acomms::protobuf::DriverType DriverConfig::_internal_driver_type()
const {
733 if (_internal_has_driver_type()) {
740 return _internal_driver_type();
744 if (!_internal_has_driver_type()) {
746 set_has_driver_type();
748 _impl_.driver_.driver_type_ = value;
751 _internal_set_driver_type(value);
756inline bool DriverConfig::_internal_has_driver_name()
const {
760 return _internal_has_driver_name();
762inline void DriverConfig::set_has_driver_name() {
766 if (_internal_has_driver_name()) {
767 _impl_.driver_.driver_name_.Destroy();
773 return _internal_driver_name();
775template <
typename ArgT0,
typename... ArgT>
777 if (!_internal_has_driver_name()) {
779 set_has_driver_name();
780 _impl_.driver_.driver_name_.InitDefault();
782 _impl_.driver_.driver_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
786 std::string* _s = _internal_mutable_driver_name();
790inline const std::string& DriverConfig::_internal_driver_name()
const {
791 if (_internal_has_driver_name()) {
792 return _impl_.driver_.driver_name_.Get();
794 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
796inline void DriverConfig::_internal_set_driver_name(
const std::string& value) {
797 if (!_internal_has_driver_name()) {
799 set_has_driver_name();
800 _impl_.driver_.driver_name_.InitDefault();
802 _impl_.driver_.driver_name_.Set(value, GetArenaForAllocation());
804inline std::string* DriverConfig::_internal_mutable_driver_name() {
805 if (!_internal_has_driver_name()) {
807 set_has_driver_name();
808 _impl_.driver_.driver_name_.InitDefault();
810 return _impl_.driver_.driver_name_.Mutable( GetArenaForAllocation());
814 if (_internal_has_driver_name()) {
816 return _impl_.driver_.driver_name_.Release();
826 set_has_driver_name();
833inline bool DriverConfig::_internal_has_modem_id()
const {
834 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
838 return _internal_has_modem_id();
842 _impl_._has_bits_[0] &= ~0x00000010u;
844inline int32_t DriverConfig::_internal_modem_id()
const {
849 return _internal_modem_id();
851inline void DriverConfig::_internal_set_modem_id(int32_t value) {
852 _impl_._has_bits_[0] |= 0x00000010u;
856 _internal_set_modem_id(value);
861inline bool DriverConfig::_internal_has_connection_type()
const {
862 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
866 return _internal_has_connection_type();
869 _impl_.connection_type_ = 1;
870 _impl_._has_bits_[0] &= ~0x00000080u;
872inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::_internal_connection_type()
const {
877 return _internal_connection_type();
881 _impl_._has_bits_[0] |= 0x00000080u;
882 _impl_.connection_type_ = value;
885 _internal_set_connection_type(value);
890inline bool DriverConfig::_internal_has_line_delimiter()
const {
891 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
895 return _internal_has_line_delimiter();
898 _impl_.line_delimiter_.ClearToDefault(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
899 _impl_._has_bits_[0] &= ~0x00000001u;
903 if (
_impl_.line_delimiter_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_.get();
904 return _internal_line_delimiter();
906template <
typename ArgT0,
typename... ArgT>
907inline PROTOBUF_ALWAYS_INLINE
909 _impl_._has_bits_[0] |= 0x00000001u;
910 _impl_.line_delimiter_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
914 std::string* _s = _internal_mutable_line_delimiter();
918inline const std::string& DriverConfig::_internal_line_delimiter()
const {
919 return _impl_.line_delimiter_.Get();
921inline void DriverConfig::_internal_set_line_delimiter(
const std::string& value) {
922 _impl_._has_bits_[0] |= 0x00000001u;
923 _impl_.line_delimiter_.Set(value, GetArenaForAllocation());
925inline std::string* DriverConfig::_internal_mutable_line_delimiter() {
926 _impl_._has_bits_[0] |= 0x00000001u;
927 return _impl_.line_delimiter_.Mutable(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
931 if (!_internal_has_line_delimiter()) {
934 _impl_._has_bits_[0] &= ~0x00000001u;
935 auto* p =
_impl_.line_delimiter_.Release();
940 _impl_._has_bits_[0] |= 0x00000001u;
942 _impl_._has_bits_[0] &= ~0x00000001u;
949inline bool DriverConfig::_internal_has_serial_port()
const {
950 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
954 return _internal_has_serial_port();
957 _impl_.serial_port_.ClearToEmpty();
958 _impl_._has_bits_[0] &= ~0x00000002u;
962 return _internal_serial_port();
964template <
typename ArgT0,
typename... ArgT>
965inline PROTOBUF_ALWAYS_INLINE
967 _impl_._has_bits_[0] |= 0x00000002u;
968 _impl_.serial_port_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
972 std::string* _s = _internal_mutable_serial_port();
976inline const std::string& DriverConfig::_internal_serial_port()
const {
977 return _impl_.serial_port_.Get();
979inline void DriverConfig::_internal_set_serial_port(
const std::string& value) {
980 _impl_._has_bits_[0] |= 0x00000002u;
981 _impl_.serial_port_.Set(value, GetArenaForAllocation());
983inline std::string* DriverConfig::_internal_mutable_serial_port() {
984 _impl_._has_bits_[0] |= 0x00000002u;
985 return _impl_.serial_port_.Mutable(GetArenaForAllocation());
989 if (!_internal_has_serial_port()) {
992 _impl_._has_bits_[0] &= ~0x00000002u;
993 auto* p =
_impl_.serial_port_.Release();
994#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
995 if (
_impl_.serial_port_.IsDefault()) {
996 _impl_.serial_port_.Set(
"", GetArenaForAllocation());
1003 _impl_._has_bits_[0] |= 0x00000002u;
1005 _impl_._has_bits_[0] &= ~0x00000002u;
1008#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1009 if (
_impl_.serial_port_.IsDefault()) {
1010 _impl_.serial_port_.Set(
"", GetArenaForAllocation());
1017inline bool DriverConfig::_internal_has_serial_baud()
const {
1018 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
1022 return _internal_has_serial_baud();
1025 _impl_.serial_baud_ = 0u;
1026 _impl_._has_bits_[0] &= ~0x00000020u;
1028inline uint32_t DriverConfig::_internal_serial_baud()
const {
1029 return _impl_.serial_baud_;
1033 return _internal_serial_baud();
1035inline void DriverConfig::_internal_set_serial_baud(uint32_t value) {
1036 _impl_._has_bits_[0] |= 0x00000020u;
1037 _impl_.serial_baud_ = value;
1040 _internal_set_serial_baud(value);
1045inline bool DriverConfig::_internal_has_tcp_server()
const {
1046 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
1050 return _internal_has_tcp_server();
1053 _impl_.tcp_server_.ClearToEmpty();
1054 _impl_._has_bits_[0] &= ~0x00000004u;
1058 return _internal_tcp_server();
1060template <
typename ArgT0,
typename... ArgT>
1061inline PROTOBUF_ALWAYS_INLINE
1063 _impl_._has_bits_[0] |= 0x00000004u;
1064 _impl_.tcp_server_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1068 std::string* _s = _internal_mutable_tcp_server();
1072inline const std::string& DriverConfig::_internal_tcp_server()
const {
1073 return _impl_.tcp_server_.Get();
1075inline void DriverConfig::_internal_set_tcp_server(
const std::string& value) {
1076 _impl_._has_bits_[0] |= 0x00000004u;
1077 _impl_.tcp_server_.Set(value, GetArenaForAllocation());
1079inline std::string* DriverConfig::_internal_mutable_tcp_server() {
1080 _impl_._has_bits_[0] |= 0x00000004u;
1081 return _impl_.tcp_server_.Mutable(GetArenaForAllocation());
1085 if (!_internal_has_tcp_server()) {
1088 _impl_._has_bits_[0] &= ~0x00000004u;
1089 auto* p =
_impl_.tcp_server_.Release();
1090#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1091 if (
_impl_.tcp_server_.IsDefault()) {
1092 _impl_.tcp_server_.Set(
"", GetArenaForAllocation());
1099 _impl_._has_bits_[0] |= 0x00000004u;
1101 _impl_._has_bits_[0] &= ~0x00000004u;
1104#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1105 if (
_impl_.tcp_server_.IsDefault()) {
1106 _impl_.tcp_server_.Set(
"", GetArenaForAllocation());
1113inline bool DriverConfig::_internal_has_tcp_port()
const {
1114 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
1118 return _internal_has_tcp_port();
1122 _impl_._has_bits_[0] &= ~0x00000040u;
1124inline uint32_t DriverConfig::_internal_tcp_port()
const {
1129 return _internal_tcp_port();
1131inline void DriverConfig::_internal_set_tcp_port(uint32_t value) {
1132 _impl_._has_bits_[0] |= 0x00000040u;
1133 _impl_.tcp_port_ = value;
1136 _internal_set_tcp_port(value);
1141inline bool DriverConfig::_internal_has_reconnect_interval()
const {
1142 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
1146 return _internal_has_reconnect_interval();
1149 _impl_.reconnect_interval_ = 10u;
1150 _impl_._has_bits_[0] &= ~0x00000100u;
1152inline uint32_t DriverConfig::_internal_reconnect_interval()
const {
1153 return _impl_.reconnect_interval_;
1157 return _internal_reconnect_interval();
1159inline void DriverConfig::_internal_set_reconnect_interval(uint32_t value) {
1160 _impl_._has_bits_[0] |= 0x00000100u;
1161 _impl_.reconnect_interval_ = value;
1164 _internal_set_reconnect_interval(value);
1169inline bool DriverConfig::_internal_has_raw_log()
const {
1170 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1174 return _internal_has_raw_log();
1177 _impl_.raw_log_.ClearToEmpty();
1178 _impl_._has_bits_[0] &= ~0x00000008u;
1182 return _internal_raw_log();
1184template <
typename ArgT0,
typename... ArgT>
1185inline PROTOBUF_ALWAYS_INLINE
1187 _impl_._has_bits_[0] |= 0x00000008u;
1188 _impl_.raw_log_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1192 std::string* _s = _internal_mutable_raw_log();
1196inline const std::string& DriverConfig::_internal_raw_log()
const {
1197 return _impl_.raw_log_.Get();
1199inline void DriverConfig::_internal_set_raw_log(
const std::string& value) {
1200 _impl_._has_bits_[0] |= 0x00000008u;
1201 _impl_.raw_log_.Set(value, GetArenaForAllocation());
1203inline std::string* DriverConfig::_internal_mutable_raw_log() {
1204 _impl_._has_bits_[0] |= 0x00000008u;
1205 return _impl_.raw_log_.Mutable(GetArenaForAllocation());
1209 if (!_internal_has_raw_log()) {
1212 _impl_._has_bits_[0] &= ~0x00000008u;
1213 auto* p =
_impl_.raw_log_.Release();
1214#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1215 if (
_impl_.raw_log_.IsDefault()) {
1216 _impl_.raw_log_.Set(
"", GetArenaForAllocation());
1223 _impl_._has_bits_[0] |= 0x00000008u;
1225 _impl_._has_bits_[0] &= ~0x00000008u;
1227 _impl_.raw_log_.SetAllocated(
raw_log, GetArenaForAllocation());
1228#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1229 if (
_impl_.raw_log_.IsDefault()) {
1230 _impl_.raw_log_.Set(
"", GetArenaForAllocation());
1236inline bool DriverConfig::has_driver()
const {
1239inline void DriverConfig::clear_has_driver() {
1246 #pragma GCC diagnostic pop
1255PROTOBUF_NAMESPACE_OPEN
1260 return ::goby::acomms::protobuf::DriverConfig_ConnectionType_descriptor();
1265 return ::goby::acomms::protobuf::DriverType_descriptor();
1268PROTOBUF_NAMESPACE_CLOSE
1272#include <google/protobuf/port_undef.inc>
_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
uint32_t serial_baud() const
bool IsInitialized() const final
DriverConfig & operator=(const DriverConfig &from)
const std::string & line_delimiter() const
bool has_serial_port() 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()
DriverCase driver_case() const
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)
bool has_reconnect_interval() const
std::string * mutable_line_delimiter()
int ExtensionSize(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id) const
@ kReconnectIntervalFieldNumber
@ kConnectionTypeFieldNumber
@ kLineDelimiterFieldNumber
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()
bool has_line_delimiter() const
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)
std::string * mutable_driver_name()
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConnectionType_descriptor()
bool has_driver_type() const
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
void set_modem_id(int32_t value)
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_serial_baud(uint32_t value)
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)
void clear_reconnect_interval()
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
bool has_driver_name() const
bool has_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)
bool has_tcp_server() const
void set_tcp_port(uint32_t value)
const std::string & driver_name() const
bool has_tcp_port() const
bool has_modem_id() const
std::string * mutable_tcp_server()
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)
void clear_line_delimiter()
uint32_t reconnect_interval() const
void clear_connection_type()
_proto_TypeTraits::Repeated::MutableType MutableExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, int index)
static const ClassData _class_data_
DriverConfig(const DriverConfig &from)
bool has_serial_baud() const
int GetCachedSize() const final
size_t ByteSizeLong() const final
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)
void Swap(DriverConfig *other)
std::string * mutable_raw_log()
uint32_t tcp_port() const
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)
std::string * mutable_serial_port()
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)
@ DRIVER_ABC_EXAMPLE_MODEM
@ DRIVER_UFIELD_SIM_DRIVER
DriverConfigDefaultTypeInternal _DriverConfig_default_instance_
DriverConfig_ConnectionType
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_CLIENT
@ DriverConfig_ConnectionType_CONNECTION_SERIAL
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DriverType_descriptor()
The global namespace for the Goby project.
static const uint32_t offsets[]
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr driver_name_