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