4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_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/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.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_2fmiddleware_2fprotobuf_2fpty_5fconfig_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];
55 namespace middleware {
58 class PTYConfigDefaultTypeInternal;
69 namespace middleware {
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
112 return reinterpret_cast<const PTYConfig*
>(
126 return CreateMaybeMessage<PTYConfig>(NULL);
130 return CreateMaybeMessage<PTYConfig>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
172 const ::std::
string&
port() const;
173 void set_port(const ::std::
string& value);
175 void set_port(::std::string&& value);
178 void set_port(
const char* value,
size_t size);
208 void clear_has_port();
210 void clear_has_baud();
211 void set_has_end_of_line();
212 void clear_has_end_of_line();
214 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215 ::google::protobuf::internal::HasBits<1> _has_bits_;
216 mutable ::google::protobuf::internal::CachedSize _cached_size_;
217 ::google::protobuf::internal::ArenaStringPtr port_;
221 ::google::protobuf::internal::ArenaStringPtr end_of_line_;
223 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto::TableStruct;
231 #pragma GCC diagnostic push
232 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
238 return (_has_bits_[0] & 0x00000001u) != 0;
240 inline void PTYConfig::set_has_port() {
241 _has_bits_[0] |= 0x00000001u;
243 inline void PTYConfig::clear_has_port() {
244 _has_bits_[0] &= ~0x00000001u;
252 return port_.GetNoArena();
268 GOOGLE_DCHECK(value != NULL);
276 ::std::string(
reinterpret_cast<const char*
>(value), size));
304 return (_has_bits_[0] & 0x00000004u) != 0;
306 inline void PTYConfig::set_has_baud() {
307 _has_bits_[0] |= 0x00000004u;
309 inline void PTYConfig::clear_has_baud() {
310 _has_bits_[0] &= ~0x00000004u;
328 return (_has_bits_[0] & 0x00000002u) != 0;
330 inline void PTYConfig::set_has_end_of_line() {
331 _has_bits_[0] |= 0x00000002u;
333 inline void PTYConfig::clear_has_end_of_line() {
334 _has_bits_[0] &= ~0x00000002u;
338 clear_has_end_of_line();
342 return end_of_line_.GetNoArena();
345 set_has_end_of_line();
351 set_has_end_of_line();
352 end_of_line_.SetNoArena(
358 GOOGLE_DCHECK(value != NULL);
359 set_has_end_of_line();
364 set_has_end_of_line();
366 ::std::string(
reinterpret_cast<const char*
>(value), size));
370 set_has_end_of_line();
379 clear_has_end_of_line();
384 set_has_end_of_line();
386 clear_has_end_of_line();
393 #pragma GCC diagnostic pop
404 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fpty_5fconfig_2eproto