Goby3  3.1.5
2024.05.14
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 < 3012000
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 3012004 < 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>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
43 // @@protoc_insertion_point(includes)
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
46 PROTOBUF_NAMESPACE_OPEN
47 namespace internal {
48 class AnyMetadata;
49 } // namespace internal
50 PROTOBUF_NAMESPACE_CLOSE
51 
52 // Internal implementation detail -- do not use these members.
54  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
61  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63 };
64 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
65 namespace goby {
66 namespace apps {
67 namespace middleware {
68 namespace protobuf {
69 class SerialMuxConfig;
70 class SerialMuxConfigDefaultTypeInternal;
71 extern SerialMuxConfigDefaultTypeInternal _SerialMuxConfig_default_instance_;
72 class SerialMuxConfig_SecondaryPTY;
73 class SerialMuxConfig_SecondaryPTYDefaultTypeInternal;
74 extern SerialMuxConfig_SecondaryPTYDefaultTypeInternal _SerialMuxConfig_SecondaryPTY_default_instance_;
75 } // namespace protobuf
76 } // namespace middleware
77 } // namespace apps
78 } // namespace goby
79 PROTOBUF_NAMESPACE_OPEN
80 template<> ::goby::apps::middleware::protobuf::SerialMuxConfig* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::SerialMuxConfig>(Arena*);
81 template<> ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY>(Arena*);
82 PROTOBUF_NAMESPACE_CLOSE
83 namespace goby {
84 namespace apps {
85 namespace middleware {
86 namespace protobuf {
87 
88 // ===================================================================
89 
90 class SerialMuxConfig_SecondaryPTY PROTOBUF_FINAL :
91  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY) */ {
92  public:
93  inline SerialMuxConfig_SecondaryPTY() : SerialMuxConfig_SecondaryPTY(nullptr) {};
95 
96  SerialMuxConfig_SecondaryPTY(const SerialMuxConfig_SecondaryPTY& from);
97  SerialMuxConfig_SecondaryPTY(SerialMuxConfig_SecondaryPTY&& from) noexcept
98  : SerialMuxConfig_SecondaryPTY() {
99  *this = ::std::move(from);
100  }
101 
102  inline SerialMuxConfig_SecondaryPTY& operator=(const SerialMuxConfig_SecondaryPTY& from) {
103  CopyFrom(from);
104  return *this;
105  }
106  inline SerialMuxConfig_SecondaryPTY& operator=(SerialMuxConfig_SecondaryPTY&& from) noexcept {
107  if (GetArena() == from.GetArena()) {
108  if (this != &from) InternalSwap(&from);
109  } else {
110  CopyFrom(from);
111  }
112  return *this;
113  }
114 
115  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
116  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
117  }
118  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
119  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
120  }
121 
122  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
123  return GetDescriptor();
124  }
125  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
126  return GetMetadataStatic().descriptor;
127  }
128  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
129  return GetMetadataStatic().reflection;
130  }
131  static const SerialMuxConfig_SecondaryPTY& default_instance();
132 
133  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
134  static inline const SerialMuxConfig_SecondaryPTY* internal_default_instance() {
135  return reinterpret_cast<const SerialMuxConfig_SecondaryPTY*>(
137  }
138  static constexpr int kIndexInFileMessages =
139  0;
140 
141  friend void swap(SerialMuxConfig_SecondaryPTY& a, SerialMuxConfig_SecondaryPTY& b) {
142  a.Swap(&b);
143  }
144  inline void Swap(SerialMuxConfig_SecondaryPTY* other) {
145  if (other == this) return;
146  if (GetArena() == other->GetArena()) {
147  InternalSwap(other);
148  } else {
149  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
150  }
151  }
152  void UnsafeArenaSwap(SerialMuxConfig_SecondaryPTY* other) {
153  if (other == this) return;
154  GOOGLE_DCHECK(GetArena() == other->GetArena());
155  InternalSwap(other);
156  }
157 
158  // implements Message ----------------------------------------------
159 
160  inline SerialMuxConfig_SecondaryPTY* New() const final {
161  return CreateMaybeMessage<SerialMuxConfig_SecondaryPTY>(nullptr);
162  }
163 
164  SerialMuxConfig_SecondaryPTY* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
165  return CreateMaybeMessage<SerialMuxConfig_SecondaryPTY>(arena);
166  }
167  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
168  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
169  void CopyFrom(const SerialMuxConfig_SecondaryPTY& from);
170  void MergeFrom(const SerialMuxConfig_SecondaryPTY& from);
171  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
172  bool IsInitialized() const final;
173 
174  size_t ByteSizeLong() const final;
175  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
176  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
177  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178  int GetCachedSize() const final { return _cached_size_.Get(); }
179 
180  private:
181  inline void SharedCtor();
182  inline void SharedDtor();
183  void SetCachedSize(int size) const final;
184  void InternalSwap(SerialMuxConfig_SecondaryPTY* other);
185  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187  return "goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY";
188  }
189  protected:
190  explicit SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::Arena* arena);
191  private:
192  static void ArenaDtor(void* object);
193  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194  public:
195 
196  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
197  private:
198  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
199  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto);
201  }
202 
203  public:
204 
205  // nested types ----------------------------------------------------
206 
207  // accessors -------------------------------------------------------
208 
209  enum : int {
210  kPtyFieldNumber = 1,
211  kAllowWriteFieldNumber = 2,
212  };
213  // required .goby.middleware.protobuf.PTYConfig pty = 1 [(.goby.field) = {
214  bool has_pty() const;
215  private:
216  bool _internal_has_pty() const;
217  public:
218  void clear_pty();
219  const ::goby::middleware::protobuf::PTYConfig& pty() const;
220  ::goby::middleware::protobuf::PTYConfig* release_pty();
221  ::goby::middleware::protobuf::PTYConfig* mutable_pty();
222  void set_allocated_pty(::goby::middleware::protobuf::PTYConfig* pty);
223  private:
224  const ::goby::middleware::protobuf::PTYConfig& _internal_pty() const;
225  ::goby::middleware::protobuf::PTYConfig* _internal_mutable_pty();
226  public:
228  ::goby::middleware::protobuf::PTYConfig* pty);
229  ::goby::middleware::protobuf::PTYConfig* unsafe_arena_release_pty();
230 
231  // optional bool allow_write = 2 [default = true, (.goby.field) = {
232  bool has_allow_write() const;
233  private:
234  bool _internal_has_allow_write() const;
235  public:
237  bool allow_write() const;
238  void set_allow_write(bool value);
239  private:
240  bool _internal_allow_write() const;
241  void _internal_set_allow_write(bool value);
242  public:
243 
244  // @@protoc_insertion_point(class_scope:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY)
245  private:
246  class _Internal;
247 
248  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
249  typedef void InternalArenaConstructable_;
250  typedef void DestructorSkippable_;
251  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
252  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
253  ::goby::middleware::protobuf::PTYConfig* pty_;
254  bool allow_write_;
255  friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
256 };
257 // -------------------------------------------------------------------
258 
259 class SerialMuxConfig PROTOBUF_FINAL :
260  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.middleware.protobuf.SerialMuxConfig) */ {
261  public:
262  inline SerialMuxConfig() : SerialMuxConfig(nullptr) {};
263  virtual ~SerialMuxConfig();
264 
265  SerialMuxConfig(const SerialMuxConfig& from);
266  SerialMuxConfig(SerialMuxConfig&& from) noexcept
267  : SerialMuxConfig() {
268  *this = ::std::move(from);
269  }
270 
271  inline SerialMuxConfig& operator=(const SerialMuxConfig& from) {
272  CopyFrom(from);
273  return *this;
274  }
275  inline SerialMuxConfig& operator=(SerialMuxConfig&& from) noexcept {
276  if (GetArena() == from.GetArena()) {
277  if (this != &from) InternalSwap(&from);
278  } else {
279  CopyFrom(from);
280  }
281  return *this;
282  }
283 
284  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
285  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
286  }
287  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
288  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
289  }
290 
291  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
292  return GetDescriptor();
293  }
294  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
295  return GetMetadataStatic().descriptor;
296  }
297  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
298  return GetMetadataStatic().reflection;
299  }
300  static const SerialMuxConfig& default_instance();
301 
302  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
303  static inline const SerialMuxConfig* internal_default_instance() {
304  return reinterpret_cast<const SerialMuxConfig*>(
306  }
307  static constexpr int kIndexInFileMessages =
308  1;
309 
310  friend void swap(SerialMuxConfig& a, SerialMuxConfig& b) {
311  a.Swap(&b);
312  }
313  inline void Swap(SerialMuxConfig* other) {
314  if (other == this) return;
315  if (GetArena() == other->GetArena()) {
316  InternalSwap(other);
317  } else {
318  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
319  }
320  }
321  void UnsafeArenaSwap(SerialMuxConfig* other) {
322  if (other == this) return;
323  GOOGLE_DCHECK(GetArena() == other->GetArena());
324  InternalSwap(other);
325  }
326 
327  // implements Message ----------------------------------------------
328 
329  inline SerialMuxConfig* New() const final {
330  return CreateMaybeMessage<SerialMuxConfig>(nullptr);
331  }
332 
333  SerialMuxConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
334  return CreateMaybeMessage<SerialMuxConfig>(arena);
335  }
336  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
337  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
338  void CopyFrom(const SerialMuxConfig& from);
339  void MergeFrom(const SerialMuxConfig& from);
340  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
341  bool IsInitialized() const final;
342 
343  size_t ByteSizeLong() const final;
344  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
345  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
346  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
347  int GetCachedSize() const final { return _cached_size_.Get(); }
348 
349  private:
350  inline void SharedCtor();
351  inline void SharedDtor();
352  void SetCachedSize(int size) const final;
353  void InternalSwap(SerialMuxConfig* other);
354  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
355  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
356  return "goby.apps.middleware.protobuf.SerialMuxConfig";
357  }
358  protected:
359  explicit SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
360  private:
361  static void ArenaDtor(void* object);
362  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
363  public:
364 
365  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
366  private:
367  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
368  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto);
370  }
371 
372  public:
373 
374  // nested types ----------------------------------------------------
375 
376  typedef SerialMuxConfig_SecondaryPTY SecondaryPTY;
377 
378  // accessors -------------------------------------------------------
379 
380  enum : int {
381  kSecondaryFieldNumber = 3,
382  kAppFieldNumber = 1,
383  kPrimarySerialFieldNumber = 2,
384  };
385  // repeated .goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY secondary = 3 [(.goby.field) = {
386  int secondary_size() const;
387  private:
388  int _internal_secondary_size() const;
389  public:
391  ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* mutable_secondary(int index);
392  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >*
394  private:
395  const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& _internal_secondary(int index) const;
396  ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* _internal_add_secondary();
397  public:
398  const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& secondary(int index) const;
399  ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* add_secondary();
400  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >&
401  secondary() const;
402 
403  // optional .goby.middleware.protobuf.AppConfig app = 1;
404  bool has_app() const;
405  private:
406  bool _internal_has_app() const;
407  public:
408  void clear_app();
409  const ::goby::middleware::protobuf::AppConfig& app() const;
410  ::goby::middleware::protobuf::AppConfig* release_app();
411  ::goby::middleware::protobuf::AppConfig* mutable_app();
412  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
413  private:
414  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
415  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
416  public:
418  ::goby::middleware::protobuf::AppConfig* app);
419  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
420 
421  // required .goby.middleware.protobuf.SerialConfig primary_serial = 2 [(.goby.field) = {
422  bool has_primary_serial() const;
423  private:
424  bool _internal_has_primary_serial() const;
425  public:
427  const ::goby::middleware::protobuf::SerialConfig& primary_serial() const;
428  ::goby::middleware::protobuf::SerialConfig* release_primary_serial();
429  ::goby::middleware::protobuf::SerialConfig* mutable_primary_serial();
430  void set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig* primary_serial);
431  private:
432  const ::goby::middleware::protobuf::SerialConfig& _internal_primary_serial() const;
433  ::goby::middleware::protobuf::SerialConfig* _internal_mutable_primary_serial();
434  public:
436  ::goby::middleware::protobuf::SerialConfig* primary_serial);
437  ::goby::middleware::protobuf::SerialConfig* unsafe_arena_release_primary_serial();
438 
439  // @@protoc_insertion_point(class_scope:goby.apps.middleware.protobuf.SerialMuxConfig)
440  private:
441  class _Internal;
442 
443  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
444  typedef void InternalArenaConstructable_;
445  typedef void DestructorSkippable_;
446  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
447  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
448  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY > secondary_;
449  ::goby::middleware::protobuf::AppConfig* app_;
450  ::goby::middleware::protobuf::SerialConfig* primary_serial_;
451  friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto;
452 };
453 // ===================================================================
454 
455 
456 // ===================================================================
457 
458 #ifdef __GNUC__
459  #pragma GCC diagnostic push
460  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
461 #endif // __GNUC__
462 // SerialMuxConfig_SecondaryPTY
463 
464 // required .goby.middleware.protobuf.PTYConfig pty = 1 [(.goby.field) = {
465 inline bool SerialMuxConfig_SecondaryPTY::_internal_has_pty() const {
466  bool value = (_has_bits_[0] & 0x00000001u) != 0;
467  PROTOBUF_ASSUME(!value || pty_ != nullptr);
468  return value;
469 }
470 inline bool SerialMuxConfig_SecondaryPTY::has_pty() const {
471  return _internal_has_pty();
472 }
473 inline const ::goby::middleware::protobuf::PTYConfig& SerialMuxConfig_SecondaryPTY::_internal_pty() const {
474  const ::goby::middleware::protobuf::PTYConfig* p = pty_;
475  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::PTYConfig*>(
477 }
478 inline const ::goby::middleware::protobuf::PTYConfig& SerialMuxConfig_SecondaryPTY::pty() const {
479  // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
480  return _internal_pty();
481 }
482 inline void SerialMuxConfig_SecondaryPTY::unsafe_arena_set_allocated_pty(
483  ::goby::middleware::protobuf::PTYConfig* pty) {
484  if (GetArena() == nullptr) {
485  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pty_);
486  }
487  pty_ = pty;
488  if (pty) {
489  _has_bits_[0] |= 0x00000001u;
490  } else {
491  _has_bits_[0] &= ~0x00000001u;
492  }
493  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
494 }
495 inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::release_pty() {
496  auto temp = unsafe_arena_release_pty();
497  if (GetArena() != nullptr) {
498  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
499  }
500  return temp;
501 }
502 inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::unsafe_arena_release_pty() {
503  // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
504  _has_bits_[0] &= ~0x00000001u;
505  ::goby::middleware::protobuf::PTYConfig* temp = pty_;
506  pty_ = nullptr;
507  return temp;
508 }
509 inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::_internal_mutable_pty() {
510  _has_bits_[0] |= 0x00000001u;
511  if (pty_ == nullptr) {
512  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::PTYConfig>(GetArena());
513  pty_ = p;
514  }
515  return pty_;
516 }
517 inline ::goby::middleware::protobuf::PTYConfig* SerialMuxConfig_SecondaryPTY::mutable_pty() {
518  // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
519  return _internal_mutable_pty();
520 }
521 inline void SerialMuxConfig_SecondaryPTY::set_allocated_pty(::goby::middleware::protobuf::PTYConfig* pty) {
522  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
523  if (message_arena == nullptr) {
524  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(pty_);
525  }
526  if (pty) {
527  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
528  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pty)->GetArena();
529  if (message_arena != submessage_arena) {
530  pty = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
531  message_arena, pty, submessage_arena);
532  }
533  _has_bits_[0] |= 0x00000001u;
534  } else {
535  _has_bits_[0] &= ~0x00000001u;
536  }
537  pty_ = pty;
538  // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.pty)
539 }
540 
541 // optional bool allow_write = 2 [default = true, (.goby.field) = {
542 inline bool SerialMuxConfig_SecondaryPTY::_internal_has_allow_write() const {
543  bool value = (_has_bits_[0] & 0x00000002u) != 0;
544  return value;
545 }
546 inline bool SerialMuxConfig_SecondaryPTY::has_allow_write() const {
547  return _internal_has_allow_write();
548 }
549 inline void SerialMuxConfig_SecondaryPTY::clear_allow_write() {
550  allow_write_ = true;
551  _has_bits_[0] &= ~0x00000002u;
552 }
553 inline bool SerialMuxConfig_SecondaryPTY::_internal_allow_write() const {
554  return allow_write_;
555 }
556 inline bool SerialMuxConfig_SecondaryPTY::allow_write() const {
557  // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.allow_write)
558  return _internal_allow_write();
559 }
560 inline void SerialMuxConfig_SecondaryPTY::_internal_set_allow_write(bool value) {
561  _has_bits_[0] |= 0x00000002u;
562  allow_write_ = value;
563 }
564 inline void SerialMuxConfig_SecondaryPTY::set_allow_write(bool value) {
565  _internal_set_allow_write(value);
566  // @@protoc_insertion_point(field_set:goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY.allow_write)
567 }
568 
569 // -------------------------------------------------------------------
570 
571 // SerialMuxConfig
572 
573 // optional .goby.middleware.protobuf.AppConfig app = 1;
574 inline bool SerialMuxConfig::_internal_has_app() const {
575  bool value = (_has_bits_[0] & 0x00000001u) != 0;
576  PROTOBUF_ASSUME(!value || app_ != nullptr);
577  return value;
578 }
579 inline bool SerialMuxConfig::has_app() const {
580  return _internal_has_app();
581 }
582 inline const ::goby::middleware::protobuf::AppConfig& SerialMuxConfig::_internal_app() const {
583  const ::goby::middleware::protobuf::AppConfig* p = app_;
584  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
586 }
587 inline const ::goby::middleware::protobuf::AppConfig& SerialMuxConfig::app() const {
588  // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.app)
589  return _internal_app();
590 }
591 inline void SerialMuxConfig::unsafe_arena_set_allocated_app(
592  ::goby::middleware::protobuf::AppConfig* app) {
593  if (GetArena() == nullptr) {
594  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
595  }
596  app_ = app;
597  if (app) {
598  _has_bits_[0] |= 0x00000001u;
599  } else {
600  _has_bits_[0] &= ~0x00000001u;
601  }
602  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.app)
603 }
604 inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::release_app() {
605  auto temp = unsafe_arena_release_app();
606  if (GetArena() != nullptr) {
607  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
608  }
609  return temp;
610 }
611 inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::unsafe_arena_release_app() {
612  // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.app)
613  _has_bits_[0] &= ~0x00000001u;
614  ::goby::middleware::protobuf::AppConfig* temp = app_;
615  app_ = nullptr;
616  return temp;
617 }
618 inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::_internal_mutable_app() {
619  _has_bits_[0] |= 0x00000001u;
620  if (app_ == nullptr) {
621  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
622  app_ = p;
623  }
624  return app_;
625 }
626 inline ::goby::middleware::protobuf::AppConfig* SerialMuxConfig::mutable_app() {
627  // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.app)
628  return _internal_mutable_app();
629 }
630 inline void SerialMuxConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
631  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
632  if (message_arena == nullptr) {
633  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
634  }
635  if (app) {
636  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
637  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
638  if (message_arena != submessage_arena) {
639  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
640  message_arena, app, submessage_arena);
641  }
642  _has_bits_[0] |= 0x00000001u;
643  } else {
644  _has_bits_[0] &= ~0x00000001u;
645  }
646  app_ = app;
647  // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.app)
648 }
649 
650 // required .goby.middleware.protobuf.SerialConfig primary_serial = 2 [(.goby.field) = {
651 inline bool SerialMuxConfig::_internal_has_primary_serial() const {
652  bool value = (_has_bits_[0] & 0x00000002u) != 0;
653  PROTOBUF_ASSUME(!value || primary_serial_ != nullptr);
654  return value;
655 }
656 inline bool SerialMuxConfig::has_primary_serial() const {
657  return _internal_has_primary_serial();
658 }
659 inline const ::goby::middleware::protobuf::SerialConfig& SerialMuxConfig::_internal_primary_serial() const {
660  const ::goby::middleware::protobuf::SerialConfig* p = primary_serial_;
661  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig*>(
663 }
664 inline const ::goby::middleware::protobuf::SerialConfig& SerialMuxConfig::primary_serial() const {
665  // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
666  return _internal_primary_serial();
667 }
668 inline void SerialMuxConfig::unsafe_arena_set_allocated_primary_serial(
669  ::goby::middleware::protobuf::SerialConfig* primary_serial) {
670  if (GetArena() == nullptr) {
671  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(primary_serial_);
672  }
673  primary_serial_ = primary_serial;
674  if (primary_serial) {
675  _has_bits_[0] |= 0x00000002u;
676  } else {
677  _has_bits_[0] &= ~0x00000002u;
678  }
679  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
680 }
681 inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::release_primary_serial() {
682  auto temp = unsafe_arena_release_primary_serial();
683  if (GetArena() != nullptr) {
684  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
685  }
686  return temp;
687 }
688 inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::unsafe_arena_release_primary_serial() {
689  // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
690  _has_bits_[0] &= ~0x00000002u;
691  ::goby::middleware::protobuf::SerialConfig* temp = primary_serial_;
692  primary_serial_ = nullptr;
693  return temp;
694 }
695 inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::_internal_mutable_primary_serial() {
696  _has_bits_[0] |= 0x00000002u;
697  if (primary_serial_ == nullptr) {
698  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArena());
699  primary_serial_ = p;
700  }
701  return primary_serial_;
702 }
703 inline ::goby::middleware::protobuf::SerialConfig* SerialMuxConfig::mutable_primary_serial() {
704  // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
705  return _internal_mutable_primary_serial();
706 }
707 inline void SerialMuxConfig::set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig* primary_serial) {
708  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
709  if (message_arena == nullptr) {
710  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(primary_serial_);
711  }
712  if (primary_serial) {
713  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
714  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(primary_serial)->GetArena();
715  if (message_arena != submessage_arena) {
716  primary_serial = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
717  message_arena, primary_serial, submessage_arena);
718  }
719  _has_bits_[0] |= 0x00000002u;
720  } else {
721  _has_bits_[0] &= ~0x00000002u;
722  }
723  primary_serial_ = primary_serial;
724  // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.SerialMuxConfig.primary_serial)
725 }
726 
727 // repeated .goby.apps.middleware.protobuf.SerialMuxConfig.SecondaryPTY secondary = 3 [(.goby.field) = {
728 inline int SerialMuxConfig::_internal_secondary_size() const {
729  return secondary_.size();
730 }
731 inline int SerialMuxConfig::secondary_size() const {
732  return _internal_secondary_size();
733 }
734 inline void SerialMuxConfig::clear_secondary() {
735  secondary_.Clear();
736 }
737 inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::mutable_secondary(int index) {
738  // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
739  return secondary_.Mutable(index);
740 }
741 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >*
742 SerialMuxConfig::mutable_secondary() {
743  // @@protoc_insertion_point(field_mutable_list:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
744  return &secondary_;
745 }
746 inline const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& SerialMuxConfig::_internal_secondary(int index) const {
747  return secondary_.Get(index);
748 }
749 inline const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY& SerialMuxConfig::secondary(int index) const {
750  // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
751  return _internal_secondary(index);
752 }
753 inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::_internal_add_secondary() {
754  return secondary_.Add();
755 }
756 inline ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY* SerialMuxConfig::add_secondary() {
757  // @@protoc_insertion_point(field_add:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
758  return _internal_add_secondary();
759 }
760 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY >&
761 SerialMuxConfig::secondary() const {
762  // @@protoc_insertion_point(field_list:goby.apps.middleware.protobuf.SerialMuxConfig.secondary)
763  return secondary_;
764 }
765 
766 #ifdef __GNUC__
767  #pragma GCC diagnostic pop
768 #endif // __GNUC__
769 // -------------------------------------------------------------------
770 
771 
772 // @@protoc_insertion_point(namespace_scope)
773 
774 } // namespace protobuf
775 } // namespace middleware
776 } // namespace apps
777 } // namespace goby
778 
779 // @@protoc_insertion_point(global_scope)
780 
781 #include <google/protobuf/port_undef.inc>
782 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY * add_secondary()
static const SerialMuxConfig_SecondaryPTY & default_instance()
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
SerialMuxConfig_SecondaryPTY & operator=(const SerialMuxConfig_SecondaryPTY &from)
Definition: config.pb.h:102
SerialMuxConfig_SecondaryPTY SecondaryPTY
Definition: config.pb.h:376
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY > * mutable_secondary()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void UnsafeArenaSwap(SerialMuxConfig_SecondaryPTY *other)
Definition: config.pb.h:152
SerialMuxConfig_SecondaryPTY(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: config.pb.h:115
::goby::middleware::protobuf::PTYConfig * unsafe_arena_release_pty()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::middleware::protobuf::SerialConfig * unsafe_arena_release_primary_serial()
static const SerialMuxConfig_SecondaryPTY * internal_default_instance()
Definition: config.pb.h:134
const ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY & secondary(int index) const
void Swap(SerialMuxConfig_SecondaryPTY *other)
Definition: config.pb.h:144
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
SerialMuxConfig_SecondaryPTY & operator=(SerialMuxConfig_SecondaryPTY &&from) noexcept
Definition: config.pb.h:106
void CopyFrom(const SerialMuxConfig &from)
void MergeFrom(const SerialMuxConfig &from)
void CopyFrom(const SerialMuxConfig_SecondaryPTY &from)
SerialMuxConfig(SerialMuxConfig &&from) noexcept
Definition: config.pb.h:266
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: config.pb.h:122
friend void swap(SerialMuxConfig &a, SerialMuxConfig &b)
Definition: config.pb.h:310
static const SerialMuxConfig & default_instance()
::goby::middleware::protobuf::SerialConfig * mutable_primary_serial()
::goby::middleware::protobuf::AppConfig * release_app()
SerialMuxConfig * New() const final
Definition: config.pb.h:329
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: config.pb.h:128
SerialMuxConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::goby::middleware::protobuf::PTYConfig * release_pty()
SerialMuxConfig(const SerialMuxConfig &from)
SerialMuxConfig_SecondaryPTY(SerialMuxConfig_SecondaryPTY &&from) noexcept
Definition: config.pb.h:97
void UnsafeArenaSwap(SerialMuxConfig *other)
Definition: config.pb.h:321
SerialMuxConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: config.pb.h:333
SerialMuxConfig & operator=(const SerialMuxConfig &from)
Definition: config.pb.h:271
SerialMuxConfig_SecondaryPTY * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: config.pb.h:164
void MergeFrom(const SerialMuxConfig_SecondaryPTY &from)
const ::goby::middleware::protobuf::SerialConfig & primary_serial() const
void set_allocated_pty(::goby::middleware::protobuf::PTYConfig *pty)
void unsafe_arena_set_allocated_pty(::goby::middleware::protobuf::PTYConfig *pty)
::goby::middleware::protobuf::SerialConfig * release_primary_serial()
static const SerialMuxConfig * internal_default_instance()
Definition: config.pb.h:303
SerialMuxConfig & operator=(SerialMuxConfig &&from) noexcept
Definition: config.pb.h:275
const ::goby::middleware::protobuf::PTYConfig & pty() const
::goby::middleware::protobuf::AppConfig * mutable_app()
SerialMuxConfig_SecondaryPTY * New() const final
Definition: config.pb.h:160
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY > & secondary() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void unsafe_arena_set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig *primary_serial)
friend void swap(SerialMuxConfig_SecondaryPTY &a, SerialMuxConfig_SecondaryPTY &b)
Definition: config.pb.h:141
::goby::middleware::protobuf::PTYConfig * mutable_pty()
void set_allocated_primary_serial(::goby::middleware::protobuf::SerialConfig *primary_serial)
const ::goby::middleware::protobuf::AppConfig & app() const
::goby::apps::middleware::protobuf::SerialMuxConfig_SecondaryPTY * mutable_secondary(int index)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: config.pb.h:125
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
SerialMuxConfig_SecondaryPTY(const SerialMuxConfig_SecondaryPTY &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: config.pb.h:118
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fserial_5fmux_2fconfig_2eproto
@ value
the parser finished reading a JSON value
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.
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: config.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: config.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: config.pb.h:61