Goby3  3.1.5
2024.05.14
test.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/zeromq/multi_thread_app2/test.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_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>
35 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 // @@protoc_insertion_point(includes)
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto
45 PROTOBUF_NAMESPACE_OPEN
46 namespace internal {
47 class AnyMetadata;
48 } // namespace internal
49 PROTOBUF_NAMESPACE_CLOSE
50 
51 // Internal implementation detail -- do not use these members.
53  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
60  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
62 };
63 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto;
64 namespace goby {
65 namespace test {
66 namespace zeromq {
67 namespace protobuf {
68 class TestConfig;
69 class TestConfigDefaultTypeInternal;
70 extern TestConfigDefaultTypeInternal _TestConfig_default_instance_;
71 class Widget;
72 class WidgetDefaultTypeInternal;
73 extern WidgetDefaultTypeInternal _Widget_default_instance_;
74 } // namespace protobuf
75 } // namespace zeromq
76 } // namespace test
77 } // namespace goby
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::test::zeromq::protobuf::TestConfig* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::TestConfig>(Arena*);
80 template<> ::goby::test::zeromq::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Widget>(Arena*);
81 PROTOBUF_NAMESPACE_CLOSE
82 namespace goby {
83 namespace test {
84 namespace zeromq {
85 namespace protobuf {
86 
87 // ===================================================================
88 
89 class TestConfig PROTOBUF_FINAL :
90  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.protobuf.TestConfig) */ {
91  public:
92  inline TestConfig() : TestConfig(nullptr) {};
93  virtual ~TestConfig();
94 
95  TestConfig(const TestConfig& from);
96  TestConfig(TestConfig&& from) noexcept
97  : TestConfig() {
98  *this = ::std::move(from);
99  }
100 
101  inline TestConfig& operator=(const TestConfig& from) {
102  CopyFrom(from);
103  return *this;
104  }
105  inline TestConfig& operator=(TestConfig&& from) noexcept {
106  if (GetArena() == from.GetArena()) {
107  if (this != &from) InternalSwap(&from);
108  } else {
109  CopyFrom(from);
110  }
111  return *this;
112  }
113 
114  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
115  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
116  }
117  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
118  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
119  }
120 
121  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
122  return GetDescriptor();
123  }
124  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
125  return GetMetadataStatic().descriptor;
126  }
127  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
128  return GetMetadataStatic().reflection;
129  }
130  static const TestConfig& default_instance();
131 
132  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
133  static inline const TestConfig* internal_default_instance() {
134  return reinterpret_cast<const TestConfig*>(
136  }
137  static constexpr int kIndexInFileMessages =
138  0;
139 
140  friend void swap(TestConfig& a, TestConfig& b) {
141  a.Swap(&b);
142  }
143  inline void Swap(TestConfig* other) {
144  if (other == this) return;
145  if (GetArena() == other->GetArena()) {
146  InternalSwap(other);
147  } else {
148  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149  }
150  }
151  void UnsafeArenaSwap(TestConfig* other) {
152  if (other == this) return;
153  GOOGLE_DCHECK(GetArena() == other->GetArena());
154  InternalSwap(other);
155  }
156 
157  // implements Message ----------------------------------------------
158 
159  inline TestConfig* New() const final {
160  return CreateMaybeMessage<TestConfig>(nullptr);
161  }
162 
163  TestConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
164  return CreateMaybeMessage<TestConfig>(arena);
165  }
166  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
168  void CopyFrom(const TestConfig& from);
169  void MergeFrom(const TestConfig& from);
170  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
171  bool IsInitialized() const final;
172 
173  size_t ByteSizeLong() const final;
174  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
176  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177  int GetCachedSize() const final { return _cached_size_.Get(); }
178 
179  private:
180  inline void SharedCtor();
181  inline void SharedDtor();
182  void SetCachedSize(int size) const final;
183  void InternalSwap(TestConfig* other);
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "goby.test.zeromq.protobuf.TestConfig";
187  }
188  protected:
189  explicit TestConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
190  private:
191  static void ArenaDtor(void* object);
192  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  public:
194 
195  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
196  private:
197  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto);
200  }
201 
202  public:
203 
204  // nested types ----------------------------------------------------
205 
206  // accessors -------------------------------------------------------
207 
208  enum : int {
209  kAppFieldNumber = 1,
210  kInterprocessFieldNumber = 2,
211  kNumTxThreadsFieldNumber = 5,
212  kNumMessagesFieldNumber = 3,
213  kNumRxThreadsFieldNumber = 4,
214  };
215  // optional .goby.middleware.protobuf.AppConfig app = 1;
216  bool has_app() const;
217  private:
218  bool _internal_has_app() const;
219  public:
220  void clear_app();
221  const ::goby::middleware::protobuf::AppConfig& app() const;
222  ::goby::middleware::protobuf::AppConfig* release_app();
223  ::goby::middleware::protobuf::AppConfig* mutable_app();
224  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
225  private:
226  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
227  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
228  public:
230  ::goby::middleware::protobuf::AppConfig* app);
231  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
232 
233  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
234  bool has_interprocess() const;
235  private:
236  bool _internal_has_interprocess() const;
237  public:
239  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
240  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
241  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
242  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
243  private:
244  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
245  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
246  public:
248  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
249  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
250 
251  // optional int32 num_tx_threads = 5 [default = 2];
252  bool has_num_tx_threads() const;
253  private:
254  bool _internal_has_num_tx_threads() const;
255  public:
259  private:
260  ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_tx_threads() const;
261  void _internal_set_num_tx_threads(::PROTOBUF_NAMESPACE_ID::int32 value);
262  public:
263 
264  // optional int32 num_messages = 3 [default = 10000];
265  bool has_num_messages() const;
266  private:
267  bool _internal_has_num_messages() const;
268  public:
272  private:
273  ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_messages() const;
274  void _internal_set_num_messages(::PROTOBUF_NAMESPACE_ID::int32 value);
275  public:
276 
277  // optional int32 num_rx_threads = 4 [default = 10];
278  bool has_num_rx_threads() const;
279  private:
280  bool _internal_has_num_rx_threads() const;
281  public:
285  private:
286  ::PROTOBUF_NAMESPACE_ID::int32 _internal_num_rx_threads() const;
287  void _internal_set_num_rx_threads(::PROTOBUF_NAMESPACE_ID::int32 value);
288  public:
289 
290  // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.TestConfig)
291  private:
292  class _Internal;
293 
294  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
295  typedef void InternalArenaConstructable_;
296  typedef void DestructorSkippable_;
297  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
298  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
299  ::goby::middleware::protobuf::AppConfig* app_;
300  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
301  ::PROTOBUF_NAMESPACE_ID::int32 num_tx_threads_;
302  ::PROTOBUF_NAMESPACE_ID::int32 num_messages_;
303  ::PROTOBUF_NAMESPACE_ID::int32 num_rx_threads_;
304  friend struct ::TableStruct_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto;
305 };
306 // -------------------------------------------------------------------
307 
308 class Widget PROTOBUF_FINAL :
309  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.protobuf.Widget) */ {
310  public:
311  inline Widget() : Widget(nullptr) {};
312  virtual ~Widget();
313 
314  Widget(const Widget& from);
315  Widget(Widget&& from) noexcept
316  : Widget() {
317  *this = ::std::move(from);
318  }
319 
320  inline Widget& operator=(const Widget& from) {
321  CopyFrom(from);
322  return *this;
323  }
324  inline Widget& operator=(Widget&& from) noexcept {
325  if (GetArena() == from.GetArena()) {
326  if (this != &from) InternalSwap(&from);
327  } else {
328  CopyFrom(from);
329  }
330  return *this;
331  }
332 
333  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
334  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
335  }
336  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
337  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
338  }
339 
340  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
341  return GetDescriptor();
342  }
343  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
344  return GetMetadataStatic().descriptor;
345  }
346  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
347  return GetMetadataStatic().reflection;
348  }
349  static const Widget& default_instance();
350 
351  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
352  static inline const Widget* internal_default_instance() {
353  return reinterpret_cast<const Widget*>(
355  }
356  static constexpr int kIndexInFileMessages =
357  1;
358 
359  friend void swap(Widget& a, Widget& b) {
360  a.Swap(&b);
361  }
362  inline void Swap(Widget* other) {
363  if (other == this) return;
364  if (GetArena() == other->GetArena()) {
365  InternalSwap(other);
366  } else {
367  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
368  }
369  }
370  void UnsafeArenaSwap(Widget* other) {
371  if (other == this) return;
372  GOOGLE_DCHECK(GetArena() == other->GetArena());
373  InternalSwap(other);
374  }
375 
376  // implements Message ----------------------------------------------
377 
378  inline Widget* New() const final {
379  return CreateMaybeMessage<Widget>(nullptr);
380  }
381 
382  Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
383  return CreateMaybeMessage<Widget>(arena);
384  }
385  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
386  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
387  void CopyFrom(const Widget& from);
388  void MergeFrom(const Widget& from);
389  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
390  bool IsInitialized() const final;
391 
392  size_t ByteSizeLong() const final;
393  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
394  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
395  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
396  int GetCachedSize() const final { return _cached_size_.Get(); }
397 
398  private:
399  inline void SharedCtor();
400  inline void SharedDtor();
401  void SetCachedSize(int size) const final;
402  void InternalSwap(Widget* other);
403  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
404  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
405  return "goby.test.zeromq.protobuf.Widget";
406  }
407  protected:
408  explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena);
409  private:
410  static void ArenaDtor(void* object);
411  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
412  public:
413 
414  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
415  private:
416  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
417  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto);
419  }
420 
421  public:
422 
423  // nested types ----------------------------------------------------
424 
425  // accessors -------------------------------------------------------
426 
427  enum : int {
428  kBFieldNumber = 1,
429  };
430  // optional int32 b = 1;
431  bool has_b() const;
432  private:
433  bool _internal_has_b() const;
434  public:
435  void clear_b();
438  private:
439  ::PROTOBUF_NAMESPACE_ID::int32 _internal_b() const;
440  void _internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value);
441  public:
442 
443  // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Widget)
444  private:
445  class _Internal;
446 
447  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
448  typedef void InternalArenaConstructable_;
449  typedef void DestructorSkippable_;
450  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
451  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
453  friend struct ::TableStruct_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto;
454 };
455 // ===================================================================
456 
457 
458 // ===================================================================
459 
460 #ifdef __GNUC__
461  #pragma GCC diagnostic push
462  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
463 #endif // __GNUC__
464 // TestConfig
465 
466 // optional .goby.middleware.protobuf.AppConfig app = 1;
467 inline bool TestConfig::_internal_has_app() const {
468  bool value = (_has_bits_[0] & 0x00000001u) != 0;
469  PROTOBUF_ASSUME(!value || app_ != nullptr);
470  return value;
471 }
472 inline bool TestConfig::has_app() const {
473  return _internal_has_app();
474 }
475 inline const ::goby::middleware::protobuf::AppConfig& TestConfig::_internal_app() const {
476  const ::goby::middleware::protobuf::AppConfig* p = app_;
477  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
479 }
480 inline const ::goby::middleware::protobuf::AppConfig& TestConfig::app() const {
481  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.app)
482  return _internal_app();
483 }
484 inline void TestConfig::unsafe_arena_set_allocated_app(
485  ::goby::middleware::protobuf::AppConfig* app) {
486  if (GetArena() == nullptr) {
487  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
488  }
489  app_ = app;
490  if (app) {
491  _has_bits_[0] |= 0x00000001u;
492  } else {
493  _has_bits_[0] &= ~0x00000001u;
494  }
495  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.zeromq.protobuf.TestConfig.app)
496 }
497 inline ::goby::middleware::protobuf::AppConfig* TestConfig::release_app() {
498  auto temp = unsafe_arena_release_app();
499  if (GetArena() != nullptr) {
500  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
501  }
502  return temp;
503 }
504 inline ::goby::middleware::protobuf::AppConfig* TestConfig::unsafe_arena_release_app() {
505  // @@protoc_insertion_point(field_release:goby.test.zeromq.protobuf.TestConfig.app)
506  _has_bits_[0] &= ~0x00000001u;
507  ::goby::middleware::protobuf::AppConfig* temp = app_;
508  app_ = nullptr;
509  return temp;
510 }
511 inline ::goby::middleware::protobuf::AppConfig* TestConfig::_internal_mutable_app() {
512  _has_bits_[0] |= 0x00000001u;
513  if (app_ == nullptr) {
514  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
515  app_ = p;
516  }
517  return app_;
518 }
519 inline ::goby::middleware::protobuf::AppConfig* TestConfig::mutable_app() {
520  // @@protoc_insertion_point(field_mutable:goby.test.zeromq.protobuf.TestConfig.app)
521  return _internal_mutable_app();
522 }
523 inline void TestConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
524  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
525  if (message_arena == nullptr) {
526  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
527  }
528  if (app) {
529  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
530  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
531  if (message_arena != submessage_arena) {
532  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
533  message_arena, app, submessage_arena);
534  }
535  _has_bits_[0] |= 0x00000001u;
536  } else {
537  _has_bits_[0] &= ~0x00000001u;
538  }
539  app_ = app;
540  // @@protoc_insertion_point(field_set_allocated:goby.test.zeromq.protobuf.TestConfig.app)
541 }
542 
543 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
544 inline bool TestConfig::_internal_has_interprocess() const {
545  bool value = (_has_bits_[0] & 0x00000002u) != 0;
546  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
547  return value;
548 }
549 inline bool TestConfig::has_interprocess() const {
550  return _internal_has_interprocess();
551 }
552 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TestConfig::_internal_interprocess() const {
553  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
554  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
556 }
557 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TestConfig::interprocess() const {
558  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.interprocess)
559  return _internal_interprocess();
560 }
561 inline void TestConfig::unsafe_arena_set_allocated_interprocess(
562  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
563  if (GetArena() == nullptr) {
564  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
565  }
566  interprocess_ = interprocess;
567  if (interprocess) {
568  _has_bits_[0] |= 0x00000002u;
569  } else {
570  _has_bits_[0] &= ~0x00000002u;
571  }
572  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.zeromq.protobuf.TestConfig.interprocess)
573 }
574 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::release_interprocess() {
575  auto temp = unsafe_arena_release_interprocess();
576  if (GetArena() != nullptr) {
577  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
578  }
579  return temp;
580 }
581 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::unsafe_arena_release_interprocess() {
582  // @@protoc_insertion_point(field_release:goby.test.zeromq.protobuf.TestConfig.interprocess)
583  _has_bits_[0] &= ~0x00000002u;
584  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
585  interprocess_ = nullptr;
586  return temp;
587 }
588 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::_internal_mutable_interprocess() {
589  _has_bits_[0] |= 0x00000002u;
590  if (interprocess_ == nullptr) {
591  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
592  interprocess_ = p;
593  }
594  return interprocess_;
595 }
596 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::mutable_interprocess() {
597  // @@protoc_insertion_point(field_mutable:goby.test.zeromq.protobuf.TestConfig.interprocess)
598  return _internal_mutable_interprocess();
599 }
600 inline void TestConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
601  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
602  if (message_arena == nullptr) {
603  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
604  }
605  if (interprocess) {
606  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
607  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
608  if (message_arena != submessage_arena) {
609  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
610  message_arena, interprocess, submessage_arena);
611  }
612  _has_bits_[0] |= 0x00000002u;
613  } else {
614  _has_bits_[0] &= ~0x00000002u;
615  }
616  interprocess_ = interprocess;
617  // @@protoc_insertion_point(field_set_allocated:goby.test.zeromq.protobuf.TestConfig.interprocess)
618 }
619 
620 // optional int32 num_messages = 3 [default = 10000];
621 inline bool TestConfig::_internal_has_num_messages() const {
622  bool value = (_has_bits_[0] & 0x00000008u) != 0;
623  return value;
624 }
625 inline bool TestConfig::has_num_messages() const {
626  return _internal_has_num_messages();
627 }
628 inline void TestConfig::clear_num_messages() {
629  num_messages_ = 10000;
630  _has_bits_[0] &= ~0x00000008u;
631 }
632 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::_internal_num_messages() const {
633  return num_messages_;
634 }
635 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::num_messages() const {
636  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.num_messages)
637  return _internal_num_messages();
638 }
639 inline void TestConfig::_internal_set_num_messages(::PROTOBUF_NAMESPACE_ID::int32 value) {
640  _has_bits_[0] |= 0x00000008u;
641  num_messages_ = value;
642 }
643 inline void TestConfig::set_num_messages(::PROTOBUF_NAMESPACE_ID::int32 value) {
644  _internal_set_num_messages(value);
645  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.TestConfig.num_messages)
646 }
647 
648 // optional int32 num_rx_threads = 4 [default = 10];
649 inline bool TestConfig::_internal_has_num_rx_threads() const {
650  bool value = (_has_bits_[0] & 0x00000010u) != 0;
651  return value;
652 }
653 inline bool TestConfig::has_num_rx_threads() const {
654  return _internal_has_num_rx_threads();
655 }
656 inline void TestConfig::clear_num_rx_threads() {
657  num_rx_threads_ = 10;
658  _has_bits_[0] &= ~0x00000010u;
659 }
660 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::_internal_num_rx_threads() const {
661  return num_rx_threads_;
662 }
663 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::num_rx_threads() const {
664  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.num_rx_threads)
665  return _internal_num_rx_threads();
666 }
667 inline void TestConfig::_internal_set_num_rx_threads(::PROTOBUF_NAMESPACE_ID::int32 value) {
668  _has_bits_[0] |= 0x00000010u;
669  num_rx_threads_ = value;
670 }
671 inline void TestConfig::set_num_rx_threads(::PROTOBUF_NAMESPACE_ID::int32 value) {
672  _internal_set_num_rx_threads(value);
673  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.TestConfig.num_rx_threads)
674 }
675 
676 // optional int32 num_tx_threads = 5 [default = 2];
677 inline bool TestConfig::_internal_has_num_tx_threads() const {
678  bool value = (_has_bits_[0] & 0x00000004u) != 0;
679  return value;
680 }
681 inline bool TestConfig::has_num_tx_threads() const {
682  return _internal_has_num_tx_threads();
683 }
684 inline void TestConfig::clear_num_tx_threads() {
685  num_tx_threads_ = 2;
686  _has_bits_[0] &= ~0x00000004u;
687 }
688 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::_internal_num_tx_threads() const {
689  return num_tx_threads_;
690 }
691 inline ::PROTOBUF_NAMESPACE_ID::int32 TestConfig::num_tx_threads() const {
692  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.num_tx_threads)
693  return _internal_num_tx_threads();
694 }
695 inline void TestConfig::_internal_set_num_tx_threads(::PROTOBUF_NAMESPACE_ID::int32 value) {
696  _has_bits_[0] |= 0x00000004u;
697  num_tx_threads_ = value;
698 }
699 inline void TestConfig::set_num_tx_threads(::PROTOBUF_NAMESPACE_ID::int32 value) {
700  _internal_set_num_tx_threads(value);
701  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.TestConfig.num_tx_threads)
702 }
703 
704 // -------------------------------------------------------------------
705 
706 // Widget
707 
708 // optional int32 b = 1;
709 inline bool Widget::_internal_has_b() const {
710  bool value = (_has_bits_[0] & 0x00000001u) != 0;
711  return value;
712 }
713 inline bool Widget::has_b() const {
714  return _internal_has_b();
715 }
716 inline void Widget::clear_b() {
717  b_ = 0;
718  _has_bits_[0] &= ~0x00000001u;
719 }
720 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::_internal_b() const {
721  return b_;
722 }
723 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::b() const {
724  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Widget.b)
725  return _internal_b();
726 }
727 inline void Widget::_internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
728  _has_bits_[0] |= 0x00000001u;
729  b_ = value;
730 }
731 inline void Widget::set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
732  _internal_set_b(value);
733  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Widget.b)
734 }
735 
736 #ifdef __GNUC__
737  #pragma GCC diagnostic pop
738 #endif // __GNUC__
739 // -------------------------------------------------------------------
740 
741 
742 // @@protoc_insertion_point(namespace_scope)
743 
744 } // namespace protobuf
745 } // namespace zeromq
746 } // namespace test
747 } // namespace goby
748 
749 // @@protoc_insertion_point(global_scope)
750 
751 #include <google/protobuf/port_undef.inc>
752 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto
void set_num_messages(::PROTOBUF_NAMESPACE_ID::int32 value)
TestConfig & operator=(const TestConfig &from)
Definition: test.pb.h:101
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const TestConfig & default_instance()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void set_num_tx_threads(::PROTOBUF_NAMESPACE_ID::int32 value)
void set_num_rx_threads(::PROTOBUF_NAMESPACE_ID::int32 value)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: test.pb.h:114
::goby::middleware::protobuf::AppConfig * mutable_app()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
TestConfig(TestConfig &&from) noexcept
Definition: test.pb.h:96
friend void swap(TestConfig &a, TestConfig &b)
Definition: test.pb.h:140
const ::goby::middleware::protobuf::AppConfig & app() const
::PROTOBUF_NAMESPACE_ID::int32 num_tx_threads() const
TestConfig & operator=(TestConfig &&from) noexcept
Definition: test.pb.h:105
void CopyFrom(const TestConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: test.pb.h:127
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:382
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void MergeFrom(const TestConfig &from)
void set_b(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: test.pb.h:124
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: test.pb.h:117
Widget(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const Widget * internal_default_instance()
Definition: test.pb.h:352
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
friend void swap(Widget &a, Widget &b)
Definition: test.pb.h:359
TestConfig * New() const final
Definition: test.pb.h:159
::PROTOBUF_NAMESPACE_ID::int32 num_rx_threads() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const TestConfig * internal_default_instance()
Definition: test.pb.h:133
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: test.pb.h:121
::PROTOBUF_NAMESPACE_ID::int32 b() const
Widget & operator=(const Widget &from)
Definition: test.pb.h:320
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::PROTOBUF_NAMESPACE_ID::int32 num_messages() const
void UnsafeArenaSwap(TestConfig *other)
Definition: test.pb.h:151
::goby::middleware::protobuf::AppConfig * release_app()
TestConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:163
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Widget & operator=(Widget &&from) noexcept
Definition: test.pb.h:324
TestConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
@ value
the parser finished reading a JSON value
AppConfigDefaultTypeInternal _AppConfig_default_instance_
TestConfigDefaultTypeInternal _TestConfig_default_instance_
Definition: test.pb.h:69
WidgetDefaultTypeInternal _Widget_default_instance_
Definition: test.pb.h:70
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: test.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: test.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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: test.pb.h:59
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fmulti_5fthread_5fapp2_2ftest_2eproto