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>(
113 return ::google::protobuf::internal::NameOfEnum(
117 const ::std::string& name,
DriverType* value) {
118 return ::google::protobuf::internal::ParseNamedEnum<DriverType>(
137 *
this = ::std::move(from);
141 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
142 if (
this != &from) InternalSwap(&from);
150 return _internal_metadata_.unknown_fields();
153 return _internal_metadata_.mutable_unknown_fields();
156 static const ::google::protobuf::Descriptor*
descriptor();
181 return CreateMaybeMessage<DriverConfig>(NULL);
185 return CreateMaybeMessage<DriverConfig>(arena);
187 void CopyFrom(const ::google::protobuf::Message& from)
final;
188 void MergeFrom(const ::google::protobuf::Message& from)
final;
196 ::
google::protobuf::io::CodedInputStream* input) final;
198 ::
google::protobuf::io::CodedOutputStream* output) const final;
200 bool deterministic, ::
google::protobuf::uint8* target) const final;
206 void SetCachedSize(
int size)
const final;
209 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
212 inline void* MaybeArenaPtr()
const {
237 static inline const ::google::protobuf::EnumDescriptor*
300 const ::std::string&
raw_log()
const;
373 void set_has_driver_type();
374 void set_has_driver_name();
375 void set_has_modem_id();
376 void clear_has_modem_id();
377 void set_has_connection_type();
378 void clear_has_connection_type();
379 void set_has_line_delimiter();
380 void clear_has_line_delimiter();
381 void set_has_serial_port();
382 void clear_has_serial_port();
383 void set_has_serial_baud();
384 void clear_has_serial_baud();
385 void set_has_tcp_server();
386 void clear_has_tcp_server();
387 void set_has_tcp_port();
388 void clear_has_tcp_port();
389 void set_has_reconnect_interval();
390 void clear_has_reconnect_interval();
391 void set_has_raw_log();
392 void clear_has_raw_log();
394 inline bool has_driver()
const;
395 inline void clear_has_driver();
397 ::google::protobuf::internal::ExtensionSet _extensions_;
399 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
400 ::google::protobuf::internal::HasBits<1> _has_bits_;
401 mutable ::google::protobuf::internal::CachedSize _cached_size_;
405 ::google::protobuf::internal::ArenaStringPtr line_delimiter_;
406 ::google::protobuf::internal::ArenaStringPtr serial_port_;
407 ::google::protobuf::internal::ArenaStringPtr tcp_server_;
408 ::google::protobuf::internal::ArenaStringPtr raw_log_;
412 int connection_type_;
417 ::google::protobuf::internal::ArenaStringPtr driver_name_;
421 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto::TableStruct;
429 #pragma GCC diagnostic push
430 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
438 inline void DriverConfig::set_has_driver_type() {
443 driver_.driver_type_ = 1;
458 set_has_driver_type();
460 driver_.driver_type_ = value;
468 inline void DriverConfig::set_has_driver_name() {
480 return driver_.driver_name_.GetNoArena();
488 set_has_driver_name();
499 set_has_driver_name();
507 GOOGLE_DCHECK(value != NULL);
510 set_has_driver_name();
514 ::std::string(value));
520 set_has_driver_name();
524 reinterpret_cast<const char*
>(value), size));
530 set_has_driver_name();
551 set_has_driver_name();
559 return (_has_bits_[0] & 0x00000020u) != 0;
561 inline void DriverConfig::set_has_modem_id() {
562 _has_bits_[0] |= 0x00000020u;
564 inline void DriverConfig::clear_has_modem_id() {
565 _has_bits_[0] &= ~0x00000020u;
569 clear_has_modem_id();
583 return (_has_bits_[0] & 0x00000080u) != 0;
585 inline void DriverConfig::set_has_connection_type() {
586 _has_bits_[0] |= 0x00000080u;
588 inline void DriverConfig::clear_has_connection_type() {
589 _has_bits_[0] &= ~0x00000080u;
592 connection_type_ = 1;
593 clear_has_connection_type();
601 set_has_connection_type();
602 connection_type_ = value;
608 return (_has_bits_[0] & 0x00000001u) != 0;
610 inline void DriverConfig::set_has_line_delimiter() {
611 _has_bits_[0] |= 0x00000001u;
613 inline void DriverConfig::clear_has_line_delimiter() {
614 _has_bits_[0] &= ~0x00000001u;
618 clear_has_line_delimiter();
622 return line_delimiter_.GetNoArena();
625 set_has_line_delimiter();
631 set_has_line_delimiter();
632 line_delimiter_.SetNoArena(
638 GOOGLE_DCHECK(value != NULL);
639 set_has_line_delimiter();
644 set_has_line_delimiter();
646 ::std::string(
reinterpret_cast<const char*
>(value), size));
650 set_has_line_delimiter();
659 clear_has_line_delimiter();
664 set_has_line_delimiter();
666 clear_has_line_delimiter();
674 return (_has_bits_[0] & 0x00000002u) != 0;
676 inline void DriverConfig::set_has_serial_port() {
677 _has_bits_[0] |= 0x00000002u;
679 inline void DriverConfig::clear_has_serial_port() {
680 _has_bits_[0] &= ~0x00000002u;
684 clear_has_serial_port();
688 return serial_port_.GetNoArena();
691 set_has_serial_port();
697 set_has_serial_port();
698 serial_port_.SetNoArena(
704 GOOGLE_DCHECK(value != NULL);
705 set_has_serial_port();
710 set_has_serial_port();
712 ::std::string(
reinterpret_cast<const char*
>(value), size));
716 set_has_serial_port();
725 clear_has_serial_port();
730 set_has_serial_port();
732 clear_has_serial_port();
740 return (_has_bits_[0] & 0x00000040u) != 0;
742 inline void DriverConfig::set_has_serial_baud() {
743 _has_bits_[0] |= 0x00000040u;
745 inline void DriverConfig::clear_has_serial_baud() {
746 _has_bits_[0] &= ~0x00000040u;
750 clear_has_serial_baud();
757 set_has_serial_baud();
758 serial_baud_ = value;
764 return (_has_bits_[0] & 0x00000004u) != 0;
766 inline void DriverConfig::set_has_tcp_server() {
767 _has_bits_[0] |= 0x00000004u;
769 inline void DriverConfig::clear_has_tcp_server() {
770 _has_bits_[0] &= ~0x00000004u;
774 clear_has_tcp_server();
778 return tcp_server_.GetNoArena();
781 set_has_tcp_server();
787 set_has_tcp_server();
788 tcp_server_.SetNoArena(
794 GOOGLE_DCHECK(value != NULL);
795 set_has_tcp_server();
800 set_has_tcp_server();
802 ::std::string(
reinterpret_cast<const char*
>(value), size));
806 set_has_tcp_server();
815 clear_has_tcp_server();
820 set_has_tcp_server();
822 clear_has_tcp_server();
830 return (_has_bits_[0] & 0x00000010u) != 0;
832 inline void DriverConfig::set_has_tcp_port() {
833 _has_bits_[0] |= 0x00000010u;
835 inline void DriverConfig::clear_has_tcp_port() {
836 _has_bits_[0] &= ~0x00000010u;
840 clear_has_tcp_port();
854 return (_has_bits_[0] & 0x00000100u) != 0;
856 inline void DriverConfig::set_has_reconnect_interval() {
857 _has_bits_[0] |= 0x00000100u;
859 inline void DriverConfig::clear_has_reconnect_interval() {
860 _has_bits_[0] &= ~0x00000100u;
863 reconnect_interval_ = 10u;
864 clear_has_reconnect_interval();
868 return reconnect_interval_;
871 set_has_reconnect_interval();
872 reconnect_interval_ = value;
878 return (_has_bits_[0] & 0x00000008u) != 0;
880 inline void DriverConfig::set_has_raw_log() {
881 _has_bits_[0] |= 0x00000008u;
883 inline void DriverConfig::clear_has_raw_log() {
884 _has_bits_[0] &= ~0x00000008u;
892 return raw_log_.GetNoArena();
908 GOOGLE_DCHECK(value != NULL);
916 ::std::string(
reinterpret_cast<const char*
>(value), size));
942 inline bool DriverConfig::has_driver()
const {
945 inline void DriverConfig::clear_has_driver() {
952 #pragma GCC diagnostic pop
966 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType>() {
971 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::DriverType>() {
980 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto