4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_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 "dccl/option_extensions.pb.h"
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
41 #include <boost/units/systems/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[1];
58 namespace middleware {
61 class SerialConfigDefaultTypeInternal;
72 namespace middleware {
87 return ::google::protobuf::internal::NameOfEnum(
92 return ::google::protobuf::internal::ParseNamedEnum<SerialConfig_FlowControl>(
111 *
this = ::std::move(from);
115 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
116 if (
this != &from) InternalSwap(&from);
124 return _internal_metadata_.unknown_fields();
127 return _internal_metadata_.mutable_unknown_fields();
130 static const ::google::protobuf::Descriptor*
descriptor();
149 return CreateMaybeMessage<SerialConfig>(NULL);
153 return CreateMaybeMessage<SerialConfig>(arena);
155 void CopyFrom(const ::google::protobuf::Message& from)
final;
156 void MergeFrom(const ::google::protobuf::Message& from)
final;
164 ::
google::protobuf::io::CodedInputStream* input) final;
166 ::
google::protobuf::io::CodedOutputStream* output) const final;
168 bool deterministic, ::
google::protobuf::uint8* target) const final;
174 void SetCachedSize(
int size)
const final;
177 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
180 inline void* MaybeArenaPtr()
const {
205 static inline const ::google::protobuf::EnumDescriptor*
223 const ::std::string&
port()
const;
224 void set_port(const ::std::string& value);
226 void set_port(::std::string&& value);
229 void set_port(
const char* value,
size_t size);
266 void clear_has_port();
268 void clear_has_baud();
269 void set_has_end_of_line();
270 void clear_has_end_of_line();
271 void set_has_flow_control();
272 void clear_has_flow_control();
275 size_t RequiredFieldsByteSizeFallback()
const;
277 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
278 ::google::protobuf::internal::HasBits<1> _has_bits_;
279 mutable ::google::protobuf::internal::CachedSize _cached_size_;
280 ::google::protobuf::internal::ArenaStringPtr port_;
284 ::google::protobuf::internal::ArenaStringPtr end_of_line_;
287 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto::TableStruct;
295 #pragma GCC diagnostic push
296 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
302 return (_has_bits_[0] & 0x00000001u) != 0;
304 inline void SerialConfig::set_has_port() {
305 _has_bits_[0] |= 0x00000001u;
307 inline void SerialConfig::clear_has_port() {
308 _has_bits_[0] &= ~0x00000001u;
316 return port_.GetNoArena();
332 GOOGLE_DCHECK(value != NULL);
340 ::std::string(
reinterpret_cast<const char*
>(value), size));
368 return (_has_bits_[0] & 0x00000004u) != 0;
370 inline void SerialConfig::set_has_baud() {
371 _has_bits_[0] |= 0x00000004u;
373 inline void SerialConfig::clear_has_baud() {
374 _has_bits_[0] &= ~0x00000004u;
392 return (_has_bits_[0] & 0x00000002u) != 0;
394 inline void SerialConfig::set_has_end_of_line() {
395 _has_bits_[0] |= 0x00000002u;
397 inline void SerialConfig::clear_has_end_of_line() {
398 _has_bits_[0] &= ~0x00000002u;
402 clear_has_end_of_line();
406 return end_of_line_.GetNoArena();
409 set_has_end_of_line();
415 set_has_end_of_line();
416 end_of_line_.SetNoArena(
422 GOOGLE_DCHECK(value != NULL);
423 set_has_end_of_line();
428 set_has_end_of_line();
430 ::std::string(
reinterpret_cast<const char*
>(value), size));
434 set_has_end_of_line();
443 clear_has_end_of_line();
448 set_has_end_of_line();
450 clear_has_end_of_line();
458 return (_has_bits_[0] & 0x00000008u) != 0;
460 inline void SerialConfig::set_has_flow_control() {
461 _has_bits_[0] |= 0x00000008u;
463 inline void SerialConfig::clear_has_flow_control() {
464 _has_bits_[0] &= ~0x00000008u;
468 clear_has_flow_control();
476 set_has_flow_control();
477 flow_control_ = value;
482 #pragma GCC diagnostic pop
496 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::SerialConfig_FlowControl>() {
505 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fserial_5fconfig_2eproto