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