Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/apps/middleware/serial_mux/config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3021012 < 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.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
55namespace goby {
56namespace apps {
57namespace middleware {
58namespace protobuf {
59class SerialMuxConfig;
60struct SerialMuxConfigDefaultTypeInternal;
61extern SerialMuxConfigDefaultTypeInternal _SerialMuxConfig_default_instance_;
62class SerialMuxConfig_SecondaryPTY;
63struct SerialMuxConfig_SecondaryPTYDefaultTypeInternal;
64extern SerialMuxConfig_SecondaryPTYDefaultTypeInternal _SerialMuxConfig_SecondaryPTY_default_instance_;
65} // namespace protobuf
66} // namespace middleware
67} // namespace apps
68} // namespace goby
69PROTOBUF_NAMESPACE_OPEN
70template<> ::goby::apps::middleware::protobuf::SerialMuxConfig* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::SerialMuxConfig>(Arena*);
71template<> ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace goby {
74namespace apps {
75namespace middleware {
76namespace protobuf {
77
78// ===================================================================
79
81 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY) */ {
82 public:
85 explicit PROTOBUF_CONSTEXPR SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86
90 *this = ::std::move(from);
91 }
92
94 CopyFrom(from);
95 return *this;
96 }
98 if (this == &from) return *this;
99 if (GetOwningArena() == from.GetOwningArena()
100 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
101 && GetOwningArena() != nullptr
102 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
103 ) {
104 InternalSwap(&from);
105 } else {
106 CopyFrom(from);
107 }
108 return *this;
109 }
110
111 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
112 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113 }
114 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
115 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116 }
117
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
119 return GetDescriptor();
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
122 return default_instance().GetMetadata().descriptor;
123 }
124 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
125 return default_instance().GetMetadata().reflection;
126 }
134 static constexpr int kIndexInFileMessages =
135 0;
136
140 inline void Swap(SerialMuxConfig_SecondaryPTY* other) {
141 if (other == this) return;
142 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() != nullptr &&
144 GetOwningArena() == other->GetOwningArena()) {
145 #else // PROTOBUF_FORCE_COPY_IN_SWAP
146 if (GetOwningArena() == other->GetOwningArena()) {
147 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
148 InternalSwap(other);
149 } else {
150 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
151 }
152 }
154 if (other == this) return;
155 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 InternalSwap(other);
157 }
158
159 // implements Message ----------------------------------------------
160
161 SerialMuxConfig_SecondaryPTY* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
162 return CreateMaybeMessage<SerialMuxConfig_SecondaryPTY>(arena);
163 }
164 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
166 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
168 SerialMuxConfig_SecondaryPTY::MergeImpl(*this, from);
169 }
170 private:
171 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
172 public:
173 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
174 bool IsInitialized() const final;
175
176 size_t ByteSizeLong() const final;
177 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
179 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
181
182 private:
183 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
184 void SharedDtor();
185 void SetCachedSize(int size) const final;
186 void InternalSwap(SerialMuxConfig_SecondaryPTY* other);
187
188 private:
189 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
190 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
191 return "goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY";
192 }
193 protected:
194 explicit SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::Arena* arena,
195 bool is_message_owned = false);
196 public:
197
198 static const ClassData _class_data_;
199 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
200
201 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
202
203 // nested types ----------------------------------------------------
204
205 // accessors -------------------------------------------------------
206
207 enum : int {
210 };
211 // required .goby.middleware.protobuf.PTYConfig pty = 1 [(.goby.field) = {
212 bool has_pty() const;
213 private:
214 bool _internal_has_pty() const;
215 public:
216 void clear_pty();
217 const ::goby::middleware::protobuf::PTYConfig& pty() const;
218 PROTOBUF_NODISCARD ::goby::middleware::protobuf::PTYConfig* release_pty();
221 private:
222 const ::goby::middleware::protobuf::PTYConfig& _internal_pty() const;
223 ::goby::middleware::protobuf::PTYConfig* _internal_mutable_pty();
224 public:
228
229 // optional bool allow_write = 2 [default = true, (.goby.field) = {
230 bool has_allow_write() const;
231 private:
232 bool _internal_has_allow_write() const;
233 public:
234 void clear_allow_write();
235 bool allow_write() const;
236 void set_allow_write(bool value);
237 private:
238 bool _internal_allow_write() const;
239 void _internal_set_allow_write(bool value);
240 public:
241
242 // @@protoc_insertion_point(class_scope:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY)
243 private:
244 class _Internal;
245
246 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
247 typedef void InternalArenaConstructable_;
248 typedef void DestructorSkippable_;
249 struct Impl_ {
250 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
251 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
253 bool allow_write_;
254 };
255 union { Impl_ _impl_; };
256 friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
257};
258// -------------------------------------------------------------------
259
260class SerialMuxConfig final :
261 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.middleware.protobuf.SerialMuxConfig) */ {
262 public:
263 inline SerialMuxConfig() : SerialMuxConfig(nullptr) {}
265 explicit PROTOBUF_CONSTEXPR SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
266
269 : SerialMuxConfig() {
270 *this = ::std::move(from);
271 }
272
274 CopyFrom(from);
275 return *this;
276 }
277 inline SerialMuxConfig& operator=(SerialMuxConfig&& from) noexcept {
278 if (this == &from) return *this;
279 if (GetOwningArena() == from.GetOwningArena()
280 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
281 && GetOwningArena() != nullptr
282 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
283 ) {
284 InternalSwap(&from);
285 } else {
286 CopyFrom(from);
287 }
288 return *this;
289 }
290
291 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
292 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
293 }
294 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
295 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
296 }
297
298 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
299 return GetDescriptor();
300 }
301 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
302 return default_instance().GetMetadata().descriptor;
303 }
304 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
305 return default_instance().GetMetadata().reflection;
306 }
308 return *internal_default_instance();
309 }
311 return reinterpret_cast<const SerialMuxConfig*>(
313 }
314 static constexpr int kIndexInFileMessages =
315 1;
316
318 a.Swap(&b);
319 }
320 inline void Swap(SerialMuxConfig* other) {
321 if (other == this) return;
322 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
323 if (GetOwningArena() != nullptr &&
324 GetOwningArena() == other->GetOwningArena()) {
325 #else // PROTOBUF_FORCE_COPY_IN_SWAP
326 if (GetOwningArena() == other->GetOwningArena()) {
327 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
328 InternalSwap(other);
329 } else {
330 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
331 }
332 }
334 if (other == this) return;
335 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
336 InternalSwap(other);
337 }
338
339 // implements Message ----------------------------------------------
340
341 SerialMuxConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
342 return CreateMaybeMessage<SerialMuxConfig>(arena);
343 }
344 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
345 void CopyFrom(const SerialMuxConfig& from);
346 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
347 void MergeFrom( const SerialMuxConfig& from) {
348 SerialMuxConfig::MergeImpl(*this, from);
349 }
350 private:
351 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
352 public:
353 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
354 bool IsInitialized() const final;
355
356 size_t ByteSizeLong() const final;
357 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
358 uint8_t* _InternalSerialize(
359 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
360 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
361
362 private:
363 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
364 void SharedDtor();
365 void SetCachedSize(int size) const final;
366 void InternalSwap(SerialMuxConfig* other);
367
368 private:
369 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
370 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
371 return "goby.apps.middleware.protobuf.SerialMuxConfig";
372 }
373 protected:
374 explicit SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
375 bool is_message_owned = false);
376 public:
377
378 static const ClassData _class_data_;
379 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
380
381 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
382
383 // nested types ----------------------------------------------------
384
386
387 // accessors -------------------------------------------------------
388
389 enum : int {
390 kSecondaryFieldNumber = 3,
391 kAppFieldNumber = 1,
392 kPrimarySerialFieldNumber = 2,
393 };
394 // repeated .goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY secondary = 3 [(.goby.field) = {
395 int secondary_size() const;
396 private:
397 int _internal_secondary_size() const;
398 public:
399 void clear_secondary();
401 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >*
402 mutable_secondary();
403 private:
404 const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& _internal_secondary(int index) const;
406 public:
407 const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& secondary(int index) const;
409 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >&
410 secondary() const;
411
412 // optional .goby.middleware.protobuf.AppConfig app = 1;
413 bool has_app() const;
414 private:
415 bool _internal_has_app() const;
416 public:
417 void clear_app();
418 const ::goby::middleware::protobuf::AppConfig& app() const;
419 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
421 void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
422 private:
423 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
424 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
425 public:
426 void unsafe_arena_set_allocated_app(
428 ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
429
430 // required .goby.middleware.protobuf.SerialConfig primary_serial = 2 [(.goby.field) = {
431 bool has_primary_serial() const;
432 private:
433 bool _internal_has_primary_serial() const;
434 public:
436 const ::goby::middleware::protobuf::SerialConfig& primary_serial() const;
437 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerialConfig* release_primary_serial();
438 ::goby::middleware::protobuf::SerialConfig* mutable_primary_serial();
439 void set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig* primary_serial);
440 private:
441 const ::goby::middleware::protobuf::SerialConfig& _internal_primary_serial() const;
442 ::goby::middleware::protobuf::SerialConfig* _internal_mutable_primary_serial();
443 public:
444 void unsafe_arena_set_allocated_primary_serial(
446 ::goby::middleware::protobuf::SerialConfig* unsafe_arena_release_primary_serial();
447
448 // @@protoc_insertion_point(class_scope:goby.apps.middleware.protobuf.SerialMuxConfig)
449 private:
450 class _Internal;
451
452 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
453 typedef void InternalArenaConstructable_;
454 typedef void DestructorSkippable_;
455 struct Impl_ {
456 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
457 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
458 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY > secondary_;
461 };
462 union { Impl_ _impl_; };
463 friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
464};
465// ===================================================================
466
467
468// ===================================================================
469
470#ifdef __GNUC__
471 #pragma GCC diagnostic push
472 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
473#endif // __GNUC__
474// SerialMuxConfig_SecondaryPTY
475
476// required .goby.middleware.protobuf.PTYConfig pty = 1 [(.goby.field) = {
477inline bool SerialMuxConfig_SecondaryPTY::_internal_has_pty() const {
478 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
479 PROTOBUF_ASSUME(!value || _impl_.pty_ != nullptr);
480 return value;
481}
482inline bool SerialMuxConfig_SecondaryPTY::has_pty() const {
483 return _internal_has_pty();
484}
485inline const ::goby::middleware::protobuf::PTYConfig& SerialMuxConfig_SecondaryPTY::_internal_pty() const {
486 const ::goby::middleware::protobuf::PTYConfig* p = _impl_.pty_;
487 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::PTYConfig&>(
489}
490inline const ::goby::middleware::protobuf::PTYConfig& SerialMuxConfig_SecondaryPTY::pty() const {
491 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
492 return _internal_pty();
493}
494inline void SerialMuxConfig_SecondaryPTY::unsafe_arena_set_allocated_pty(
496 if (GetArenaForAllocation() == nullptr) {
497 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pty_);
498 }
499 _impl_.pty_ = pty;
500 if (pty) {
501 _impl_._has_bits_[0] |= 0x00000001u;
502 } else {
503 _impl_._has_bits_[0] &= ~0x00000001u;
504 }
505 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
506}
507inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::release_pty() {
508 _impl_._has_bits_[0] &= ~0x00000001u;
509 ::goby::middleware::protobuf::PTYConfig* temp = _impl_.pty_;
510 _impl_.pty_ = nullptr;
511#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
512 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
513 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
514 if (GetArenaForAllocation() == nullptr) { delete old; }
515#else // PROTOBUF_FORCE_COPY_IN_RELEASE
516 if (GetArenaForAllocation() != nullptr) {
517 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
518 }
519#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
520 return temp;
521}
522inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::unsafe_arena_release_pty() {
523 // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
524 _impl_._has_bits_[0] &= ~0x00000001u;
525 ::goby::middleware::protobuf::PTYConfig* temp = _impl_.pty_;
526 _impl_.pty_ = nullptr;
527 return temp;
528}
529inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::_internal_mutable_pty() {
530 _impl_._has_bits_[0] |= 0x00000001u;
531 if (_impl_.pty_ == nullptr) {
532 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(GetArenaForAllocation());
533 _impl_.pty_ = p;
534 }
535 return _impl_.pty_;
536}
537inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::mutable_pty() {
538 ::goby::middleware::protobuf::PTYConfig* _msg = _internal_mutable_pty();
539 // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
540 return _msg;
541}
542inline void SerialMuxConfig_SecondaryPTY::set_allocated_pty(::goby::middleware::protobuf::PTYConfig* pty) {
543 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
544 if (message_arena == nullptr) {
545 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.pty_);
546 }
547 if (pty) {
548 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
549 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
550 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pty));
551 if (message_arena != submessage_arena) {
552 pty = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
553 message_arena, pty, submessage_arena);
554 }
555 _impl_._has_bits_[0] |= 0x00000001u;
556 } else {
557 _impl_._has_bits_[0] &= ~0x00000001u;
558 }
559 _impl_.pty_ = pty;
560 // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
561}
562
563// optional bool allow_write = 2 [default = true, (.goby.field) = {
564inline bool SerialMuxConfig_SecondaryPTY::_internal_has_allow_write() const {
565 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
566 return value;
567}
568inline bool SerialMuxConfig_SecondaryPTY::has_allow_write() const {
569 return _internal_has_allow_write();
570}
571inline void SerialMuxConfig_SecondaryPTY::clear_allow_write() {
572 _impl_.allow_write_ = true;
573 _impl_._has_bits_[0] &= ~0x00000002u;
574}
575inline bool SerialMuxConfig_SecondaryPTY::_internal_allow_write() const {
576 return _impl_.allow_write_;
577}
578inline bool SerialMuxConfig_SecondaryPTY::allow_write() const {
579 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.allow_write)
580 return _internal_allow_write();
581}
582inline void SerialMuxConfig_SecondaryPTY::_internal_set_allow_write(bool value) {
583 _impl_._has_bits_[0] |= 0x00000002u;
584 _impl_.allow_write_ = value;
585}
586inline void SerialMuxConfig_SecondaryPTY::set_allow_write(bool value) {
587 _internal_set_allow_write(value);
588 // @@protoc_insertion_point(field_set:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.allow_write)
589}
590
591// -------------------------------------------------------------------
592
593// SerialMuxConfig
594
595// optional .goby.middleware.protobuf.AppConfig app = 1;
596inline bool SerialMuxConfig::_internal_has_app() const {
597 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
598 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
599 return value;
600}
601inline bool SerialMuxConfig::has_app() const {
602 return _internal_has_app();
603}
604inline const ::goby::middleware::protobuf::AppConfig& SerialMuxConfig::_internal_app() const {
605 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
606 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
608}
609inline const ::goby::middleware::protobuf::AppConfig& SerialMuxConfig::app() const {
610 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.app)
611 return _internal_app();
612}
613inline void SerialMuxConfig::unsafe_arena_set_allocated_app(
615 if (GetArenaForAllocation() == nullptr) {
616 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
617 }
618 _impl_.app_ = app;
619 if (app) {
620 _impl_._has_bits_[0] |= 0x00000001u;
621 } else {
622 _impl_._has_bits_[0] &= ~0x00000001u;
623 }
624 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.app)
625}
626inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::release_app() {
627 _impl_._has_bits_[0] &= ~0x00000001u;
628 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
629 _impl_.app_ = nullptr;
630#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
631 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
632 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
633 if (GetArenaForAllocation() == nullptr) { delete old; }
634#else // PROTOBUF_FORCE_COPY_IN_RELEASE
635 if (GetArenaForAllocation() != nullptr) {
636 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
637 }
638#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
639 return temp;
640}
641inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::unsafe_arena_release_app() {
642 // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.app)
643 _impl_._has_bits_[0] &= ~0x00000001u;
644 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
645 _impl_.app_ = nullptr;
646 return temp;
647}
648inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::_internal_mutable_app() {
649 _impl_._has_bits_[0] |= 0x00000001u;
650 if (_impl_.app_ == nullptr) {
651 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
652 _impl_.app_ = p;
653 }
654 return _impl_.app_;
655}
656inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::mutable_app() {
657 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
658 // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.app)
659 return _msg;
660}
661inline void SerialMuxConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
662 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
663 if (message_arena == nullptr) {
664 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
665 }
666 if (app) {
667 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
668 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
669 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
670 if (message_arena != submessage_arena) {
671 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
672 message_arena, app, submessage_arena);
673 }
674 _impl_._has_bits_[0] |= 0x00000001u;
675 } else {
676 _impl_._has_bits_[0] &= ~0x00000001u;
677 }
678 _impl_.app_ = app;
679 // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.app)
680}
681
682// required .goby.middleware.protobuf.SerialConfig primary_serial = 2 [(.goby.field) = {
683inline bool SerialMuxConfig::_internal_has_primary_serial() const {
684 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
685 PROTOBUF_ASSUME(!value || _impl_.primary_serial_ != nullptr);
686 return value;
687}
688inline bool SerialMuxConfig::has_primary_serial() const {
689 return _internal_has_primary_serial();
690}
691inline const ::goby::middleware::protobuf::SerialConfig& SerialMuxConfig::_internal_primary_serial() const {
692 const ::goby::middleware::protobuf::SerialConfig* p = _impl_.primary_serial_;
693 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig&>(
695}
696inline const ::goby::middleware::protobuf::SerialConfig& SerialMuxConfig::primary_serial() const {
697 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
698 return _internal_primary_serial();
699}
700inline void SerialMuxConfig::unsafe_arena_set_allocated_primary_serial(
702 if (GetArenaForAllocation() == nullptr) {
703 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.primary_serial_);
704 }
705 _impl_.primary_serial_ = primary_serial;
706 if (primary_serial) {
707 _impl_._has_bits_[0] |= 0x00000002u;
708 } else {
709 _impl_._has_bits_[0] &= ~0x00000002u;
710 }
711 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
712}
713inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::release_primary_serial() {
714 _impl_._has_bits_[0] &= ~0x00000002u;
715 ::goby::middleware::protobuf::SerialConfig* temp = _impl_.primary_serial_;
716 _impl_.primary_serial_ = nullptr;
717#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
718 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
719 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
720 if (GetArenaForAllocation() == nullptr) { delete old; }
721#else // PROTOBUF_FORCE_COPY_IN_RELEASE
722 if (GetArenaForAllocation() != nullptr) {
723 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
724 }
725#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
726 return temp;
727}
728inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::unsafe_arena_release_primary_serial() {
729 // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
730 _impl_._has_bits_[0] &= ~0x00000002u;
731 ::goby::middleware::protobuf::SerialConfig* temp = _impl_.primary_serial_;
732 _impl_.primary_serial_ = nullptr;
733 return temp;
734}
735inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::_internal_mutable_primary_serial() {
736 _impl_._has_bits_[0] |= 0x00000002u;
737 if (_impl_.primary_serial_ == nullptr) {
739 _impl_.primary_serial_ = p;
740 }
741 return _impl_.primary_serial_;
742}
743inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::mutable_primary_serial() {
744 ::goby::middleware::protobuf::SerialConfig* _msg = _internal_mutable_primary_serial();
745 // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
746 return _msg;
747}
748inline void SerialMuxConfig::set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig* primary_serial) {
749 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
750 if (message_arena == nullptr) {
751 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.primary_serial_);
752 }
753 if (primary_serial) {
754 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
755 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
756 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(primary_serial));
757 if (message_arena != submessage_arena) {
758 primary_serial = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
759 message_arena, primary_serial, submessage_arena);
760 }
761 _impl_._has_bits_[0] |= 0x00000002u;
762 } else {
763 _impl_._has_bits_[0] &= ~0x00000002u;
764 }
765 _impl_.primary_serial_ = primary_serial;
766 // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
767}
768
769// repeated .goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY secondary = 3 [(.goby.field) = {
770inline int SerialMuxConfig::_internal_secondary_size() const {
771 return _impl_.secondary_.size();
772}
773inline int SerialMuxConfig::secondary_size() const {
774 return _internal_secondary_size();
775}
776inline void SerialMuxConfig::clear_secondary() {
777 _impl_.secondary_.Clear();
778}
779inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::mutable_secondary(int index) {
780 // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
781 return _impl_.secondary_.Mutable(index);
782}
783inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >*
784SerialMuxConfig::mutable_secondary() {
785 // @@protoc_insertion_point(field_mutable_list:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
786 return &_impl_.secondary_;
787}
788inline const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& SerialMuxConfig::_internal_secondary(int index) const {
789 return _impl_.secondary_.Get(index);
790}
791inline const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& SerialMuxConfig::secondary(int index) const {
792 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
793 return _internal_secondary(index);
794}
795inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::_internal_add_secondary() {
796 return _impl_.secondary_.Add();
797}
798inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::add_secondary() {
800 // @@protoc_insertion_point(field_add:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
801 return _add;
802}
803inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >&
804SerialMuxConfig::secondary() const {
805 // @@protoc_insertion_point(field_list:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
806 return _impl_.secondary_;
807}
808
809#ifdef __GNUC__
810 #pragma GCC diagnostic pop
811#endif // __GNUC__
812// -------------------------------------------------------------------
813
814
815// @@protoc_insertion_point(namespace_scope)
816
817} // namespace protobuf
818} // namespace middleware
819} // namespace apps
820} // namespace goby
821
822// @@protoc_insertion_point(global_scope)
823
824#include <google/protobuf/port_undef.inc>
825#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
void CopyFrom(const SerialMuxConfig_SecondaryPTY &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:124
void MergeFrom(const SerialMuxConfig_SecondaryPTY &from)
Definition config.pb.h:167
void UnsafeArenaSwap(SerialMuxConfig_SecondaryPTY *other)
Definition config.pb.h:153
SerialMuxConfig_SecondaryPTY & operator=(const SerialMuxConfig_SecondaryPTY &from)
Definition config.pb.h:93
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::goby::middleware::protobuf::PTYConfig & pty() const
Definition config.pb.h:490
SerialMuxConfig_SecondaryPTY & operator=(SerialMuxConfig_SecondaryPTY &&from) noexcept
Definition config.pb.h:97
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_pty(::goby::middleware::protobuf::PTYConfig *pty)
Definition config.pb.h:542
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
SerialMuxConfig_SecondaryPTY(SerialMuxConfig_SecondaryPTY &&from) noexcept
Definition config.pb.h:88
::goby::middleware::protobuf::PTYConfig * unsafe_arena_release_pty()
Definition config.pb.h:522
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
SerialMuxConfig_SecondaryPTY(const SerialMuxConfig_SecondaryPTY &from)
PROTOBUF_CONSTEXPR SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const SerialMuxConfig_SecondaryPTY * internal_default_instance()
Definition config.pb.h:130
::goby::middleware::protobuf::PTYConfig * mutable_pty()
Definition config.pb.h:537
void unsafe_arena_set_allocated_pty(::goby::middleware::protobuf::PTYConfig *pty)
Definition config.pb.h:494
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:118
friend void swap(SerialMuxConfig_SecondaryPTY &a, SerialMuxConfig_SecondaryPTY &b)
Definition config.pb.h:137
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:114
static const SerialMuxConfig_SecondaryPTY & default_instance()
Definition config.pb.h:127
PROTOBUF_NODISCARD::goby::middleware::protobuf::PTYConfig * release_pty()
Definition config.pb.h:507
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:121
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:111
void Swap(SerialMuxConfig_SecondaryPTY *other)
Definition config.pb.h:140
SerialMuxConfig_SecondaryPTY * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:161
static const SerialMuxConfig & default_instance()
Definition config.pb.h:307
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void CopyFrom(const SerialMuxConfig &from)
SerialMuxConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:341
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:301
SerialMuxConfig & operator=(SerialMuxConfig &&from) noexcept
Definition config.pb.h:277
SerialMuxConfig & operator=(const SerialMuxConfig &from)
Definition config.pb.h:273
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const SerialMuxConfig &from)
Definition config.pb.h:347
SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
friend void swap(SerialMuxConfig &a, SerialMuxConfig &b)
Definition config.pb.h:317
SerialMuxConfig(const SerialMuxConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:304
PROTOBUF_CONSTEXPR SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:294
static const SerialMuxConfig * internal_default_instance()
Definition config.pb.h:310
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:298
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:291
void UnsafeArenaSwap(SerialMuxConfig *other)
Definition config.pb.h:333
SerialMuxConfig(SerialMuxConfig &&from) noexcept
Definition config.pb.h:268
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
SerialMuxConfig_SecondaryPTYDefaultTypeInternal _SerialMuxConfig_SecondaryPTY_default_instance_
SerialMuxConfigDefaultTypeInternal _SerialMuxConfig_default_instance_
SerialConfigDefaultTypeInternal _SerialConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
PTYConfigDefaultTypeInternal _PTYConfig_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::PTYConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig >(Arena *)
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::SerialConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig >(Arena *)