4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
45 static const ::google::protobuf::internal::ParseTableField
entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
47 static const ::google::protobuf::internal::ParseTable
schema[1];
58 class DriverConfigDefaultTypeInternal;
84 return ::google::protobuf::internal::NameOfEnum(
89 return ::google::protobuf::internal::ParseNamedEnum<DriverConfig_ConnectionType>(
112 return ::google::protobuf::internal::NameOfEnum(
116 const ::std::string& name,
DriverType* value) {
117 return ::google::protobuf::internal::ParseNamedEnum<DriverType>(
136 *
this = ::std::move(from);
140 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
141 if (
this != &from) InternalSwap(&from);
149 return _internal_metadata_.unknown_fields();
152 return _internal_metadata_.mutable_unknown_fields();
155 static const ::google::protobuf::Descriptor*
descriptor();
180 return CreateMaybeMessage<DriverConfig>(NULL);
184 return CreateMaybeMessage<DriverConfig>(arena);
186 void CopyFrom(const ::google::protobuf::Message& from)
final;
187 void MergeFrom(const ::google::protobuf::Message& from)
final;
195 ::
google::protobuf::io::CodedInputStream* input) final;
197 ::
google::protobuf::io::CodedOutputStream* output) const final;
199 bool deterministic, ::
google::protobuf::uint8* target) const final;
205 void SetCachedSize(
int size)
const final;
208 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
211 inline void* MaybeArenaPtr()
const {
236 static inline const ::google::protobuf::EnumDescriptor*
299 const ::std::string&
raw_log()
const;
372 void set_has_driver_type();
373 void set_has_driver_name();
374 void set_has_modem_id();
375 void clear_has_modem_id();
376 void set_has_connection_type();
377 void clear_has_connection_type();
378 void set_has_line_delimiter();
379 void clear_has_line_delimiter();
380 void set_has_serial_port();
381 void clear_has_serial_port();
382 void set_has_serial_baud();
383 void clear_has_serial_baud();
384 void set_has_tcp_server();
385 void clear_has_tcp_server();
386 void set_has_tcp_port();
387 void clear_has_tcp_port();
388 void set_has_reconnect_interval();
389 void clear_has_reconnect_interval();
390 void set_has_raw_log();
391 void clear_has_raw_log();
393 inline bool has_driver()
const;
394 inline void clear_has_driver();
396 ::google::protobuf::internal::ExtensionSet _extensions_;
398 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
399 ::google::protobuf::internal::HasBits<1> _has_bits_;
400 mutable ::google::protobuf::internal::CachedSize _cached_size_;
404 ::google::protobuf::internal::ArenaStringPtr line_delimiter_;
405 ::google::protobuf::internal::ArenaStringPtr serial_port_;
406 ::google::protobuf::internal::ArenaStringPtr tcp_server_;
407 ::google::protobuf::internal::ArenaStringPtr raw_log_;
411 int connection_type_;
416 ::google::protobuf::internal::ArenaStringPtr driver_name_;
420 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto::TableStruct;
428 #pragma GCC diagnostic push
429 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
437 inline void DriverConfig::set_has_driver_type() {
442 driver_.driver_type_ = 1;
457 set_has_driver_type();
459 driver_.driver_type_ = value;
467 inline void DriverConfig::set_has_driver_name() {
479 return driver_.driver_name_.GetNoArena();
487 set_has_driver_name();
498 set_has_driver_name();
506 GOOGLE_DCHECK(value != NULL);
509 set_has_driver_name();
513 ::std::string(value));
519 set_has_driver_name();
523 reinterpret_cast<const char*
>(value), size));
529 set_has_driver_name();
550 set_has_driver_name();
558 return (_has_bits_[0] & 0x00000020u) != 0;
560 inline void DriverConfig::set_has_modem_id() {
561 _has_bits_[0] |= 0x00000020u;
563 inline void DriverConfig::clear_has_modem_id() {
564 _has_bits_[0] &= ~0x00000020u;
568 clear_has_modem_id();
582 return (_has_bits_[0] & 0x00000080u) != 0;
584 inline void DriverConfig::set_has_connection_type() {
585 _has_bits_[0] |= 0x00000080u;
587 inline void DriverConfig::clear_has_connection_type() {
588 _has_bits_[0] &= ~0x00000080u;
591 connection_type_ = 1;
592 clear_has_connection_type();
600 set_has_connection_type();
601 connection_type_ = value;
607 return (_has_bits_[0] & 0x00000001u) != 0;
609 inline void DriverConfig::set_has_line_delimiter() {
610 _has_bits_[0] |= 0x00000001u;
612 inline void DriverConfig::clear_has_line_delimiter() {
613 _has_bits_[0] &= ~0x00000001u;
617 clear_has_line_delimiter();
621 return line_delimiter_.GetNoArena();
624 set_has_line_delimiter();
630 set_has_line_delimiter();
631 line_delimiter_.SetNoArena(
637 GOOGLE_DCHECK(value != NULL);
638 set_has_line_delimiter();
643 set_has_line_delimiter();
645 ::std::string(
reinterpret_cast<const char*
>(value), size));
649 set_has_line_delimiter();
658 clear_has_line_delimiter();
663 set_has_line_delimiter();
665 clear_has_line_delimiter();
673 return (_has_bits_[0] & 0x00000002u) != 0;
675 inline void DriverConfig::set_has_serial_port() {
676 _has_bits_[0] |= 0x00000002u;
678 inline void DriverConfig::clear_has_serial_port() {
679 _has_bits_[0] &= ~0x00000002u;
683 clear_has_serial_port();
687 return serial_port_.GetNoArena();
690 set_has_serial_port();
696 set_has_serial_port();
697 serial_port_.SetNoArena(
703 GOOGLE_DCHECK(value != NULL);
704 set_has_serial_port();
709 set_has_serial_port();
711 ::std::string(
reinterpret_cast<const char*
>(value), size));
715 set_has_serial_port();
724 clear_has_serial_port();
729 set_has_serial_port();
731 clear_has_serial_port();
739 return (_has_bits_[0] & 0x00000040u) != 0;
741 inline void DriverConfig::set_has_serial_baud() {
742 _has_bits_[0] |= 0x00000040u;
744 inline void DriverConfig::clear_has_serial_baud() {
745 _has_bits_[0] &= ~0x00000040u;
749 clear_has_serial_baud();
756 set_has_serial_baud();
757 serial_baud_ = value;
763 return (_has_bits_[0] & 0x00000004u) != 0;
765 inline void DriverConfig::set_has_tcp_server() {
766 _has_bits_[0] |= 0x00000004u;
768 inline void DriverConfig::clear_has_tcp_server() {
769 _has_bits_[0] &= ~0x00000004u;
773 clear_has_tcp_server();
777 return tcp_server_.GetNoArena();
780 set_has_tcp_server();
786 set_has_tcp_server();
787 tcp_server_.SetNoArena(
793 GOOGLE_DCHECK(value != NULL);
794 set_has_tcp_server();
799 set_has_tcp_server();
801 ::std::string(
reinterpret_cast<const char*
>(value), size));
805 set_has_tcp_server();
814 clear_has_tcp_server();
819 set_has_tcp_server();
821 clear_has_tcp_server();
829 return (_has_bits_[0] & 0x00000010u) != 0;
831 inline void DriverConfig::set_has_tcp_port() {
832 _has_bits_[0] |= 0x00000010u;
834 inline void DriverConfig::clear_has_tcp_port() {
835 _has_bits_[0] &= ~0x00000010u;
839 clear_has_tcp_port();
853 return (_has_bits_[0] & 0x00000100u) != 0;
855 inline void DriverConfig::set_has_reconnect_interval() {
856 _has_bits_[0] |= 0x00000100u;
858 inline void DriverConfig::clear_has_reconnect_interval() {
859 _has_bits_[0] &= ~0x00000100u;
862 reconnect_interval_ = 10u;
863 clear_has_reconnect_interval();
867 return reconnect_interval_;
870 set_has_reconnect_interval();
871 reconnect_interval_ = value;
877 return (_has_bits_[0] & 0x00000008u) != 0;
879 inline void DriverConfig::set_has_raw_log() {
880 _has_bits_[0] |= 0x00000008u;
882 inline void DriverConfig::clear_has_raw_log() {
883 _has_bits_[0] &= ~0x00000008u;
891 return raw_log_.GetNoArena();
907 GOOGLE_DCHECK(value != NULL);
915 ::std::string(
reinterpret_cast<const char*
>(value), size));
941 inline bool DriverConfig::has_driver()
const {
944 inline void DriverConfig::clear_has_driver() {
951 #pragma GCC diagnostic pop
965 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType>() {
970 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverType>() {
979 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto