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>(
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(
123 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
DriverType* value) {
124 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverType>(
130 public ::PROTOBUF_NAMESPACE_ID::Message {
134 explicit PROTOBUF_CONSTEXPR
DriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
139 *
this = ::std::move(from);
147 if (
this == &from)
return *
this;
148 if (GetOwningArena() == from.GetOwningArena()
149 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
150 && GetOwningArena() !=
nullptr
161 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
164 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
167 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
196 if (other ==
this)
return;
197 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
198 if (GetOwningArena() !=
nullptr &&
199 GetOwningArena() == other->GetOwningArena()) {
201 if (GetOwningArena() == other->GetOwningArena()) {
205 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
209 if (other ==
this)
return;
210 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
217 return CreateMaybeMessage<DriverConfig>(arena);
219 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
221 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
223 DriverConfig::MergeImpl(*
this, from);
226 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
228 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
234 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
238 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
240 void SetCachedSize(
int size)
const final;
244 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
245 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
246 return "goby.acomms.protobuf.DriverConfig";
250 bool is_message_owned =
false);
254 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
276 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
282 static_assert(::std::is_same<T, ConnectionType>::value ||
283 ::std::is_integral<T>::value,
284 "Incorrect type passed to function ConnectionType_Name.");
310 bool _internal_has_line_delimiter()
const;
314 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
320 const std::string& _internal_line_delimiter()
const;
321 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_line_delimiter(
const std::string& value);
322 std::string* _internal_mutable_line_delimiter();
328 bool _internal_has_serial_port()
const;
332 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
338 const std::string& _internal_serial_port()
const;
339 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_serial_port(
const std::string& value);
340 std::string* _internal_mutable_serial_port();
346 bool _internal_has_tcp_server()
const;
350 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
356 const std::string& _internal_tcp_server()
const;
357 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_tcp_server(
const std::string& value);
358 std::string* _internal_mutable_tcp_server();
364 bool _internal_has_raw_log()
const;
367 const std::string&
raw_log()
const;
368 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
374 const std::string& _internal_raw_log()
const;
375 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_raw_log(
const std::string& value);
376 std::string* _internal_mutable_raw_log();
382 bool _internal_has_modem_id()
const;
388 int32_t _internal_modem_id()
const;
389 void _internal_set_modem_id(int32_t value);
395 bool _internal_has_serial_baud()
const;
401 uint32_t _internal_serial_baud()
const;
402 void _internal_set_serial_baud(uint32_t value);
408 bool _internal_has_tcp_port()
const;
414 uint32_t _internal_tcp_port()
const;
415 void _internal_set_tcp_port(uint32_t value);
421 bool _internal_has_connection_type()
const;
434 bool _internal_has_reconnect_interval()
const;
440 uint32_t _internal_reconnect_interval()
const;
441 void _internal_set_reconnect_interval(uint32_t value);
447 bool _internal_has_driver_type()
const;
460 bool _internal_has_driver_name()
const;
464 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
470 const std::string& _internal_driver_name()
const;
471 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_driver_name(
const std::string& value);
472 std::string* _internal_mutable_driver_name();
476 template <
typename _proto_TypeTraits,
477 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
480 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
481 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
483 return _impl_._extensions_.Has(
id.number());
486 template <
typename _proto_TypeTraits,
487 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
490 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
491 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
492 _impl_._extensions_.ClearExtension(
id.number());
496 template <
typename _proto_TypeTraits,
497 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
500 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
501 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
503 return _impl_._extensions_.ExtensionSize(
id.number());
506 template <
typename _proto_TypeTraits,
507 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
510 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
511 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
513 return _proto_TypeTraits::Get(
id.number(),
_impl_._extensions_,
517 template <
typename _proto_TypeTraits,
518 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
521 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
522 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
524 return _proto_TypeTraits::Mutable(
id.number(), _field_type,
528 template <
typename _proto_TypeTraits,
529 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
532 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
533 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
534 typename _proto_TypeTraits::Singular::ConstType value) {
535 _proto_TypeTraits::Set(
id.number(), _field_type, value, &
_impl_._extensions_);
539 template <
typename _proto_TypeTraits,
540 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
543 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
544 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
545 typename _proto_TypeTraits::Singular::MutableType value) {
546 _proto_TypeTraits::SetAllocated(
id.number(), _field_type, value,
550 template <
typename _proto_TypeTraits,
551 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
554 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
555 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
556 typename _proto_TypeTraits::Singular::MutableType value) {
557 _proto_TypeTraits::UnsafeArenaSetAllocated(
id.number(), _field_type,
558 value, &
_impl_._extensions_);
561 template <
typename _proto_TypeTraits,
562 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
564 PROTOBUF_NODISCARD
inline
565 typename _proto_TypeTraits::Singular::MutableType
567 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
568 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
570 return _proto_TypeTraits::Release(
id.number(), _field_type,
573 template <
typename _proto_TypeTraits,
574 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
576 inline typename _proto_TypeTraits::Singular::MutableType
578 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
579 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
581 return _proto_TypeTraits::UnsafeArenaRelease(
id.number(), _field_type,
585 template <
typename _proto_TypeTraits,
586 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
589 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
590 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
593 return _proto_TypeTraits::Get(
id.number(),
_impl_._extensions_, index);
596 template <
typename _proto_TypeTraits,
597 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
600 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
601 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
604 return _proto_TypeTraits::Mutable(
id.number(), index, &
_impl_._extensions_);
607 template <
typename _proto_TypeTraits,
608 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
611 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
612 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
613 int index,
typename _proto_TypeTraits::Repeated::ConstType value) {
614 _proto_TypeTraits::Set(
id.number(), index, value, &
_impl_._extensions_);
618 template <
typename _proto_TypeTraits,
619 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
622 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
623 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
624 typename _proto_TypeTraits::Repeated::MutableType to_add =
625 _proto_TypeTraits::Add(
id.number(), _field_type, &
_impl_._extensions_);
630 template <
typename _proto_TypeTraits,
631 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
634 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
635 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id,
636 typename _proto_TypeTraits::Repeated::ConstType value) {
637 _proto_TypeTraits::Add(
id.number(), _field_type, _is_packed, value,
642 template <
typename _proto_TypeTraits,
643 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
645 inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
647 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
648 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id)
const {
650 return _proto_TypeTraits::GetRepeated(
id.number(),
_impl_._extensions_);
653 template <
typename _proto_TypeTraits,
654 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
656 inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
658 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
659 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>&
id) {
661 return _proto_TypeTraits::MutableRepeated(
id.number(), _field_type,
662 _is_packed, &
_impl_._extensions_);
670 void set_has_driver_type();
671 void set_has_driver_name();
673 inline bool has_driver()
const;
674 inline void clear_has_driver();
676 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
677 typedef void InternalArenaConstructable_;
678 typedef void DestructorSkippable_;
680 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
682 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
683 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
684 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_line_delimiter_;
685 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr line_delimiter_;
686 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serial_port_;
687 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tcp_server_;
688 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_log_;
690 uint32_t serial_baud_;
692 int connection_type_;
693 uint32_t reconnect_interval_;
696 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
_constinit_;
700 uint32_t _oneof_case_[1];
704 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
712 #pragma GCC diagnostic push
713 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
718inline bool DriverConfig::_internal_has_driver_type()
const {
722 return _internal_has_driver_type();
724inline void DriverConfig::set_has_driver_type() {
728 if (_internal_has_driver_type()) {
729 _impl_.driver_.driver_type_ = 1;
733inline ::goby::acomms::protobuf::DriverType DriverConfig::_internal_driver_type()
const {
734 if (_internal_has_driver_type()) {
741 return _internal_driver_type();
745 if (!_internal_has_driver_type()) {
747 set_has_driver_type();
749 _impl_.driver_.driver_type_ = value;
752 _internal_set_driver_type(value);
757inline bool DriverConfig::_internal_has_driver_name()
const {
761 return _internal_has_driver_name();
763inline void DriverConfig::set_has_driver_name() {
767 if (_internal_has_driver_name()) {
768 _impl_.driver_.driver_name_.Destroy();
774 return _internal_driver_name();
776template <
typename ArgT0,
typename... ArgT>
778 if (!_internal_has_driver_name()) {
780 set_has_driver_name();
781 _impl_.driver_.driver_name_.InitDefault();
783 _impl_.driver_.driver_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
787 std::string* _s = _internal_mutable_driver_name();
791inline const std::string& DriverConfig::_internal_driver_name()
const {
792 if (_internal_has_driver_name()) {
793 return _impl_.driver_.driver_name_.Get();
795 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
797inline void DriverConfig::_internal_set_driver_name(
const std::string& value) {
798 if (!_internal_has_driver_name()) {
800 set_has_driver_name();
801 _impl_.driver_.driver_name_.InitDefault();
803 _impl_.driver_.driver_name_.Set(value, GetArenaForAllocation());
805inline std::string* DriverConfig::_internal_mutable_driver_name() {
806 if (!_internal_has_driver_name()) {
808 set_has_driver_name();
809 _impl_.driver_.driver_name_.InitDefault();
811 return _impl_.driver_.driver_name_.Mutable( GetArenaForAllocation());
815 if (_internal_has_driver_name()) {
817 return _impl_.driver_.driver_name_.Release();
827 set_has_driver_name();
834inline bool DriverConfig::_internal_has_modem_id()
const {
835 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
839 return _internal_has_modem_id();
843 _impl_._has_bits_[0] &= ~0x00000010u;
845inline int32_t DriverConfig::_internal_modem_id()
const {
850 return _internal_modem_id();
852inline void DriverConfig::_internal_set_modem_id(int32_t value) {
853 _impl_._has_bits_[0] |= 0x00000010u;
857 _internal_set_modem_id(value);
862inline bool DriverConfig::_internal_has_connection_type()
const {
863 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
867 return _internal_has_connection_type();
870 _impl_.connection_type_ = 1;
871 _impl_._has_bits_[0] &= ~0x00000080u;
873inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::_internal_connection_type()
const {
878 return _internal_connection_type();
882 _impl_._has_bits_[0] |= 0x00000080u;
883 _impl_.connection_type_ = value;
886 _internal_set_connection_type(value);
891inline bool DriverConfig::_internal_has_line_delimiter()
const {
892 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
896 return _internal_has_line_delimiter();
899 _impl_.line_delimiter_.ClearToDefault(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
900 _impl_._has_bits_[0] &= ~0x00000001u;
904 if (
_impl_.line_delimiter_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_.get();
905 return _internal_line_delimiter();
907template <
typename ArgT0,
typename... ArgT>
908inline PROTOBUF_ALWAYS_INLINE
910 _impl_._has_bits_[0] |= 0x00000001u;
911 _impl_.line_delimiter_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
915 std::string* _s = _internal_mutable_line_delimiter();
919inline const std::string& DriverConfig::_internal_line_delimiter()
const {
920 return _impl_.line_delimiter_.Get();
922inline void DriverConfig::_internal_set_line_delimiter(
const std::string& value) {
923 _impl_._has_bits_[0] |= 0x00000001u;
924 _impl_.line_delimiter_.Set(value, GetArenaForAllocation());
926inline std::string* DriverConfig::_internal_mutable_line_delimiter() {
927 _impl_._has_bits_[0] |= 0x00000001u;
928 return _impl_.line_delimiter_.Mutable(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
932 if (!_internal_has_line_delimiter()) {
935 _impl_._has_bits_[0] &= ~0x00000001u;
936 auto* p =
_impl_.line_delimiter_.Release();
941 _impl_._has_bits_[0] |= 0x00000001u;
943 _impl_._has_bits_[0] &= ~0x00000001u;
950inline bool DriverConfig::_internal_has_serial_port()
const {
951 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
955 return _internal_has_serial_port();
958 _impl_.serial_port_.ClearToEmpty();
959 _impl_._has_bits_[0] &= ~0x00000002u;
963 return _internal_serial_port();
965template <
typename ArgT0,
typename... ArgT>
966inline PROTOBUF_ALWAYS_INLINE
968 _impl_._has_bits_[0] |= 0x00000002u;
969 _impl_.serial_port_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
973 std::string* _s = _internal_mutable_serial_port();
977inline const std::string& DriverConfig::_internal_serial_port()
const {
978 return _impl_.serial_port_.Get();
980inline void DriverConfig::_internal_set_serial_port(
const std::string& value) {
981 _impl_._has_bits_[0] |= 0x00000002u;
982 _impl_.serial_port_.Set(value, GetArenaForAllocation());
984inline std::string* DriverConfig::_internal_mutable_serial_port() {
985 _impl_._has_bits_[0] |= 0x00000002u;
986 return _impl_.serial_port_.Mutable(GetArenaForAllocation());
990 if (!_internal_has_serial_port()) {
993 _impl_._has_bits_[0] &= ~0x00000002u;
994 auto* p =
_impl_.serial_port_.Release();
995#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
996 if (
_impl_.serial_port_.IsDefault()) {
997 _impl_.serial_port_.Set(
"", GetArenaForAllocation());
1004 _impl_._has_bits_[0] |= 0x00000002u;
1006 _impl_._has_bits_[0] &= ~0x00000002u;
1009#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1010 if (
_impl_.serial_port_.IsDefault()) {
1011 _impl_.serial_port_.Set(
"", GetArenaForAllocation());
1018inline bool DriverConfig::_internal_has_serial_baud()
const {
1019 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
1023 return _internal_has_serial_baud();
1026 _impl_.serial_baud_ = 0u;
1027 _impl_._has_bits_[0] &= ~0x00000020u;
1029inline uint32_t DriverConfig::_internal_serial_baud()
const {
1030 return _impl_.serial_baud_;
1034 return _internal_serial_baud();
1036inline void DriverConfig::_internal_set_serial_baud(uint32_t value) {
1037 _impl_._has_bits_[0] |= 0x00000020u;
1038 _impl_.serial_baud_ = value;
1041 _internal_set_serial_baud(value);
1046inline bool DriverConfig::_internal_has_tcp_server()
const {
1047 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
1051 return _internal_has_tcp_server();
1054 _impl_.tcp_server_.ClearToEmpty();
1055 _impl_._has_bits_[0] &= ~0x00000004u;
1059 return _internal_tcp_server();
1061template <
typename ArgT0,
typename... ArgT>
1062inline PROTOBUF_ALWAYS_INLINE
1064 _impl_._has_bits_[0] |= 0x00000004u;
1065 _impl_.tcp_server_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1069 std::string* _s = _internal_mutable_tcp_server();
1073inline const std::string& DriverConfig::_internal_tcp_server()
const {
1074 return _impl_.tcp_server_.Get();
1076inline void DriverConfig::_internal_set_tcp_server(
const std::string& value) {
1077 _impl_._has_bits_[0] |= 0x00000004u;
1078 _impl_.tcp_server_.Set(value, GetArenaForAllocation());
1080inline std::string* DriverConfig::_internal_mutable_tcp_server() {
1081 _impl_._has_bits_[0] |= 0x00000004u;
1082 return _impl_.tcp_server_.Mutable(GetArenaForAllocation());
1086 if (!_internal_has_tcp_server()) {
1089 _impl_._has_bits_[0] &= ~0x00000004u;
1090 auto* p =
_impl_.tcp_server_.Release();
1091#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1092 if (
_impl_.tcp_server_.IsDefault()) {
1093 _impl_.tcp_server_.Set(
"", GetArenaForAllocation());
1100 _impl_._has_bits_[0] |= 0x00000004u;
1102 _impl_._has_bits_[0] &= ~0x00000004u;
1105#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1106 if (
_impl_.tcp_server_.IsDefault()) {
1107 _impl_.tcp_server_.Set(
"", GetArenaForAllocation());
1114inline bool DriverConfig::_internal_has_tcp_port()
const {
1115 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
1119 return _internal_has_tcp_port();
1123 _impl_._has_bits_[0] &= ~0x00000040u;
1125inline uint32_t DriverConfig::_internal_tcp_port()
const {
1130 return _internal_tcp_port();
1132inline void DriverConfig::_internal_set_tcp_port(uint32_t value) {
1133 _impl_._has_bits_[0] |= 0x00000040u;
1134 _impl_.tcp_port_ = value;
1137 _internal_set_tcp_port(value);
1142inline bool DriverConfig::_internal_has_reconnect_interval()
const {
1143 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
1147 return _internal_has_reconnect_interval();
1150 _impl_.reconnect_interval_ = 10u;
1151 _impl_._has_bits_[0] &= ~0x00000100u;
1153inline uint32_t DriverConfig::_internal_reconnect_interval()
const {
1154 return _impl_.reconnect_interval_;
1158 return _internal_reconnect_interval();
1160inline void DriverConfig::_internal_set_reconnect_interval(uint32_t value) {
1161 _impl_._has_bits_[0] |= 0x00000100u;
1162 _impl_.reconnect_interval_ = value;
1165 _internal_set_reconnect_interval(value);
1170inline bool DriverConfig::_internal_has_raw_log()
const {
1171 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1175 return _internal_has_raw_log();
1178 _impl_.raw_log_.ClearToEmpty();
1179 _impl_._has_bits_[0] &= ~0x00000008u;
1183 return _internal_raw_log();
1185template <
typename ArgT0,
typename... ArgT>
1186inline PROTOBUF_ALWAYS_INLINE
1188 _impl_._has_bits_[0] |= 0x00000008u;
1189 _impl_.raw_log_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1193 std::string* _s = _internal_mutable_raw_log();
1197inline const std::string& DriverConfig::_internal_raw_log()
const {
1198 return _impl_.raw_log_.Get();
1200inline void DriverConfig::_internal_set_raw_log(
const std::string& value) {
1201 _impl_._has_bits_[0] |= 0x00000008u;
1202 _impl_.raw_log_.Set(value, GetArenaForAllocation());
1204inline std::string* DriverConfig::_internal_mutable_raw_log() {
1205 _impl_._has_bits_[0] |= 0x00000008u;
1206 return _impl_.raw_log_.Mutable(GetArenaForAllocation());
1210 if (!_internal_has_raw_log()) {
1213 _impl_._has_bits_[0] &= ~0x00000008u;
1214 auto* p =
_impl_.raw_log_.Release();
1215#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1216 if (
_impl_.raw_log_.IsDefault()) {
1217 _impl_.raw_log_.Set(
"", GetArenaForAllocation());
1224 _impl_._has_bits_[0] |= 0x00000008u;
1226 _impl_._has_bits_[0] &= ~0x00000008u;
1228 _impl_.raw_log_.SetAllocated(
raw_log, GetArenaForAllocation());
1229#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1230 if (
_impl_.raw_log_.IsDefault()) {
1231 _impl_.raw_log_.Set(
"", GetArenaForAllocation());
1237inline bool DriverConfig::has_driver()
const {
1240inline void DriverConfig::clear_has_driver() {
1247 #pragma GCC diagnostic pop
1256PROTOBUF_NAMESPACE_OPEN
1261 return ::goby::acomms::protobuf::DriverConfig_ConnectionType_descriptor();
1266 return ::goby::acomms::protobuf::DriverType_descriptor();
1269PROTOBUF_NAMESPACE_CLOSE
1273#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
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()
@ kReconnectIntervalFieldNumber
@ kConnectionTypeFieldNumber
@ kLineDelimiterFieldNumber
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_