4 #ifndef PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_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>
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[2];
58 namespace middleware {
60 class SerialMuxConfig;
61 class SerialMuxConfigDefaultTypeInternal;
63 class SerialMuxConfig_SecondaryPTY;
64 class SerialMuxConfig_SecondaryPTYDefaultTypeInternal;
78 namespace middleware {
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
135 return CreateMaybeMessage<SerialMuxConfig_SecondaryPTY>(NULL);
139 return CreateMaybeMessage<SerialMuxConfig_SecondaryPTY>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
150 ::
google::protobuf::io::CodedInputStream* input) final;
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
182 const ::
goby::middleware::protobuf::PTYConfig& _internal_pty() const;
184 const ::
goby::middleware::protobuf::PTYConfig&
pty() const;
199 void clear_has_pty();
200 void set_has_allow_write();
201 void clear_has_allow_write();
203 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
204 ::
google::protobuf::internal::HasBits<1> _has_bits_;
205 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
206 ::
goby::middleware::protobuf::PTYConfig* pty_;
226 *
this = ::std::move(from);
229 inline SerialMuxConfig&
operator=(SerialMuxConfig&& from) noexcept {
230 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
231 if (
this != &from) InternalSwap(&from);
239 return _internal_metadata_.unknown_fields();
242 return _internal_metadata_.mutable_unknown_fields();
245 static const ::google::protobuf::Descriptor*
descriptor();
264 return CreateMaybeMessage<SerialMuxConfig>(NULL);
268 return CreateMaybeMessage<SerialMuxConfig>(arena);
270 void CopyFrom(const ::google::protobuf::Message& from)
final;
271 void MergeFrom(const ::google::protobuf::Message& from)
final;
279 ::
google::protobuf::io::CodedInputStream* input) final;
281 ::
google::protobuf::io::CodedOutputStream* output) const final;
283 bool deterministic, ::
google::protobuf::uint8* target) const final;
289 void SetCachedSize(
int size)
const final;
292 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
295 inline void* MaybeArenaPtr()
const {
309 int secondary_size() const;
310 void clear_secondary();
311 static const
int kSecondaryFieldNumber = 3;
321 bool has_app() const;
323 static const
int kAppFieldNumber = 1;
325 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
327 const ::
goby::middleware::protobuf::AppConfig& app() const;
328 ::
goby::middleware::protobuf::AppConfig* release_app();
329 ::
goby::middleware::protobuf::AppConfig* mutable_app();
330 void set_allocated_app(::
goby::middleware::protobuf::AppConfig* app);
333 bool has_primary_serial() const;
334 void clear_primary_serial();
335 static const
int kPrimarySerialFieldNumber = 2;
337 const ::
goby::middleware::protobuf::SerialConfig& _internal_primary_serial() const;
339 const ::
goby::middleware::protobuf::SerialConfig& primary_serial() const;
340 ::
goby::middleware::protobuf::SerialConfig* release_primary_serial();
341 ::
goby::middleware::protobuf::SerialConfig* mutable_primary_serial();
342 void set_allocated_primary_serial(::
goby::middleware::protobuf::SerialConfig* primary_serial);
347 void clear_has_app();
348 void set_has_primary_serial();
349 void clear_has_primary_serial();
351 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
352 ::
google::protobuf::internal::HasBits<1> _has_bits_;
353 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
355 ::
goby::middleware::protobuf::AppConfig* app_;
356 ::
goby::middleware::protobuf::SerialConfig* primary_serial_;
365 #pragma GCC diagnostic push
366 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
372 return (_has_bits_[0] & 0x00000001u) != 0;
374 inline void SerialMuxConfig_SecondaryPTY::set_has_pty() {
375 _has_bits_[0] |= 0x00000001u;
377 inline void SerialMuxConfig_SecondaryPTY::clear_has_pty() {
378 _has_bits_[0] &= ~0x00000001u;
380 inline const ::goby::middleware::protobuf::PTYConfig& SerialMuxConfig_SecondaryPTY::_internal_pty()
const {
384 const ::goby::middleware::protobuf::PTYConfig* p = pty_;
399 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(GetArenaNoVirtual());
407 if (message_arena == NULL) {
412 if (message_arena != submessage_arena) {
413 pty = ::google::protobuf::internal::GetOwnedMessage(
414 message_arena,
pty, submessage_arena);
426 return (_has_bits_[0] & 0x00000002u) != 0;
428 inline void SerialMuxConfig_SecondaryPTY::set_has_allow_write() {
429 _has_bits_[0] |= 0x00000002u;
431 inline void SerialMuxConfig_SecondaryPTY::clear_has_allow_write() {
432 _has_bits_[0] &= ~0x00000002u;
436 clear_has_allow_write();
443 set_has_allow_write();
444 allow_write_ = value;
454 return (_has_bits_[0] & 0x00000001u) != 0;
456 inline void SerialMuxConfig::set_has_app() {
457 _has_bits_[0] |= 0x00000001u;
459 inline void SerialMuxConfig::clear_has_app() {
460 _has_bits_[0] &= ~0x00000001u;
462 inline const ::goby::middleware::protobuf::AppConfig& SerialMuxConfig::_internal_app()
const {
466 const ::goby::middleware::protobuf::AppConfig* p = app_;
481 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
489 if (message_arena == NULL) {
494 if (message_arena != submessage_arena) {
495 app = ::google::protobuf::internal::GetOwnedMessage(
496 message_arena, app, submessage_arena);
508 return (_has_bits_[0] & 0x00000002u) != 0;
510 inline void SerialMuxConfig::set_has_primary_serial() {
511 _has_bits_[0] |= 0x00000002u;
513 inline void SerialMuxConfig::clear_has_primary_serial() {
514 _has_bits_[0] &= ~0x00000002u;
516 inline const ::goby::middleware::protobuf::SerialConfig& SerialMuxConfig::_internal_primary_serial()
const {
517 return *primary_serial_;
520 const ::goby::middleware::protobuf::SerialConfig* p = primary_serial_;
527 clear_has_primary_serial();
529 primary_serial_ = NULL;
533 set_has_primary_serial();
534 if (primary_serial_ == NULL) {
535 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArenaNoVirtual());
539 return primary_serial_;
543 if (message_arena == NULL) {
546 if (primary_serial) {
548 if (message_arena != submessage_arena) {
549 primary_serial = ::google::protobuf::internal::GetOwnedMessage(
550 message_arena, primary_serial, submessage_arena);
552 set_has_primary_serial();
554 clear_has_primary_serial();
556 primary_serial_ = primary_serial;
562 return secondary_.size();
569 return secondary_.Mutable(index);
571 inline ::google::protobuf::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >*
578 return secondary_.Get(index);
582 return secondary_.Add();
584 inline const ::google::protobuf::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >&
591 #pragma GCC diagnostic pop
605 #endif // PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto