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/single_thread_app1/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fsingle_5fthread_5fapp1_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fsingle_5fthread_5fapp1_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_2fsingle_5fthread_5fapp1_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_2fsingle_5fthread_5fapp1_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,
209 };
210 // optional .goby.middleware.protobuf.AppConfig app = 1;
211 bool has_app() const;
212 private:
213 bool _internal_has_app() const;
214 public:
215 void clear_app();
216 const ::goby::middleware::protobuf::AppConfig& app() const;
217 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
220 private:
221 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
222 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
223 public:
227
228 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
229 bool has_interprocess() const;
230 private:
231 bool _internal_has_interprocess() const;
232 public:
234 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
235 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
238 private:
239 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
240 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
241 public:
245
246 // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.TestConfig)
247 private:
248 class _Internal;
249
250 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
251 typedef void InternalArenaConstructable_;
252 typedef void DestructorSkippable_;
253 struct Impl_ {
254 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
255 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
258 };
259 union { Impl_ _impl_; };
260 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fsingle_5fthread_5fapp1_2ftest_2eproto;
261};
262// -------------------------------------------------------------------
263
264class Widget final :
265 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.protobuf.Widget) */ {
266 public:
267 inline Widget() : Widget(nullptr) {}
268 ~Widget() override;
269 explicit PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
270
271 Widget(const Widget& from);
272 Widget(Widget&& from) noexcept
273 : Widget() {
274 *this = ::std::move(from);
275 }
276
277 inline Widget& operator=(const Widget& from) {
278 CopyFrom(from);
279 return *this;
280 }
281 inline Widget& operator=(Widget&& from) noexcept {
282 if (this == &from) return *this;
283 if (GetOwningArena() == from.GetOwningArena()
284 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
285 && GetOwningArena() != nullptr
286 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
287 ) {
288 InternalSwap(&from);
289 } else {
290 CopyFrom(from);
291 }
292 return *this;
293 }
294
295 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
296 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
297 }
298 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
299 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
300 }
301
302 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
303 return GetDescriptor();
304 }
305 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
306 return default_instance().GetMetadata().descriptor;
307 }
308 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
309 return default_instance().GetMetadata().reflection;
310 }
311 static const Widget& default_instance() {
312 return *internal_default_instance();
313 }
314 static inline const Widget* internal_default_instance() {
315 return reinterpret_cast<const Widget*>(
316 &_Widget_default_instance_);
317 }
318 static constexpr int kIndexInFileMessages =
319 1;
320
321 friend void swap(Widget& a, Widget& b) {
322 a.Swap(&b);
323 }
324 inline void Swap(Widget* other) {
325 if (other == this) return;
326 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
327 if (GetOwningArena() != nullptr &&
328 GetOwningArena() == other->GetOwningArena()) {
329 #else // PROTOBUF_FORCE_COPY_IN_SWAP
330 if (GetOwningArena() == other->GetOwningArena()) {
331 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
332 InternalSwap(other);
333 } else {
334 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
335 }
336 }
337 void UnsafeArenaSwap(Widget* other) {
338 if (other == this) return;
339 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
340 InternalSwap(other);
341 }
342
343 // implements Message ----------------------------------------------
344
345 Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
346 return CreateMaybeMessage<Widget>(arena);
347 }
348 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
349 void CopyFrom(const Widget& from);
350 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
351 void MergeFrom( const Widget& from) {
352 Widget::MergeImpl(*this, from);
353 }
354 private:
355 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
356 public:
357 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
358 bool IsInitialized() const final;
359
360 size_t ByteSizeLong() const final;
361 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
362 uint8_t* _InternalSerialize(
363 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
364 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
365
366 private:
367 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
368 void SharedDtor();
369 void SetCachedSize(int size) const final;
370 void InternalSwap(Widget* other);
371
372 private:
373 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
374 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
375 return "goby.test.zeromq.protobuf.Widget";
376 }
377 protected:
378 explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena,
379 bool is_message_owned = false);
380 public:
381
382 static const ClassData _class_data_;
383 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
384
385 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
386
387 // nested types ----------------------------------------------------
388
389 // accessors -------------------------------------------------------
390
391 enum : int {
392 kBFieldNumber = 1,
393 };
394 // optional int32 b = 1;
395 bool has_b() const;
396 private:
397 bool _internal_has_b() const;
398 public:
399 void clear_b();
400 int32_t b() const;
401 void set_b(int32_t value);
402 private:
403 int32_t _internal_b() const;
404 void _internal_set_b(int32_t value);
405 public:
406
407 // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Widget)
408 private:
409 class _Internal;
410
411 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
412 typedef void InternalArenaConstructable_;
413 typedef void DestructorSkippable_;
414 struct Impl_ {
415 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
416 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
417 int32_t b_;
418 };
419 union { Impl_ _impl_; };
420 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fsingle_5fthread_5fapp1_2ftest_2eproto;
421};
422// ===================================================================
423
424
425// ===================================================================
426
427#ifdef __GNUC__
428 #pragma GCC diagnostic push
429 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
430#endif // __GNUC__
431// TestConfig
432
433// optional .goby.middleware.protobuf.AppConfig app = 1;
434inline bool TestConfig::_internal_has_app() const {
435 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
436 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
437 return value;
438}
439inline bool TestConfig::has_app() const {
440 return _internal_has_app();
441}
442inline const ::goby::middleware::protobuf::AppConfig& TestConfig::_internal_app() const {
443 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
444 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
446}
447inline const ::goby::middleware::protobuf::AppConfig& TestConfig::app() const {
448 // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.app)
449 return _internal_app();
450}
451inline void TestConfig::unsafe_arena_set_allocated_app(
453 if (GetArenaForAllocation() == nullptr) {
454 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
455 }
456 _impl_.app_ = app;
457 if (app) {
458 _impl_._has_bits_[0] |= 0x00000001u;
459 } else {
460 _impl_._has_bits_[0] &= ~0x00000001u;
461 }
462 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.zeromq.protobuf.TestConfig.app)
463}
464inline ::goby::middleware::protobuf::AppConfig* TestConfig::release_app() {
465 _impl_._has_bits_[0] &= ~0x00000001u;
466 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
467 _impl_.app_ = nullptr;
468#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
469 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
470 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
471 if (GetArenaForAllocation() == nullptr) { delete old; }
472#else // PROTOBUF_FORCE_COPY_IN_RELEASE
473 if (GetArenaForAllocation() != nullptr) {
474 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
475 }
476#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
477 return temp;
478}
479inline ::goby::middleware::protobuf::AppConfig* TestConfig::unsafe_arena_release_app() {
480 // @@protoc_insertion_point(field_release:goby.test.zeromq.protobuf.TestConfig.app)
481 _impl_._has_bits_[0] &= ~0x00000001u;
482 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
483 _impl_.app_ = nullptr;
484 return temp;
485}
486inline ::goby::middleware::protobuf::AppConfig* TestConfig::_internal_mutable_app() {
487 _impl_._has_bits_[0] |= 0x00000001u;
488 if (_impl_.app_ == nullptr) {
489 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
490 _impl_.app_ = p;
491 }
492 return _impl_.app_;
493}
494inline ::goby::middleware::protobuf::AppConfig* TestConfig::mutable_app() {
495 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
496 // @@protoc_insertion_point(field_mutable:goby.test.zeromq.protobuf.TestConfig.app)
497 return _msg;
498}
499inline void TestConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
500 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
501 if (message_arena == nullptr) {
502 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
503 }
504 if (app) {
505 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
506 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
507 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
508 if (message_arena != submessage_arena) {
509 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
510 message_arena, app, submessage_arena);
511 }
512 _impl_._has_bits_[0] |= 0x00000001u;
513 } else {
514 _impl_._has_bits_[0] &= ~0x00000001u;
515 }
516 _impl_.app_ = app;
517 // @@protoc_insertion_point(field_set_allocated:goby.test.zeromq.protobuf.TestConfig.app)
518}
519
520// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
521inline bool TestConfig::_internal_has_interprocess() const {
522 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
523 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
524 return value;
525}
526inline bool TestConfig::has_interprocess() const {
527 return _internal_has_interprocess();
528}
529inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TestConfig::_internal_interprocess() const {
530 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
531 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
533}
534inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& TestConfig::interprocess() const {
535 // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.TestConfig.interprocess)
536 return _internal_interprocess();
537}
538inline void TestConfig::unsafe_arena_set_allocated_interprocess(
540 if (GetArenaForAllocation() == nullptr) {
541 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
542 }
543 _impl_.interprocess_ = interprocess;
544 if (interprocess) {
545 _impl_._has_bits_[0] |= 0x00000002u;
546 } else {
547 _impl_._has_bits_[0] &= ~0x00000002u;
548 }
549 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.zeromq.protobuf.TestConfig.interprocess)
550}
551inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::release_interprocess() {
552 _impl_._has_bits_[0] &= ~0x00000002u;
553 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = _impl_.interprocess_;
554 _impl_.interprocess_ = nullptr;
555#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
556 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
557 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
558 if (GetArenaForAllocation() == nullptr) { delete old; }
559#else // PROTOBUF_FORCE_COPY_IN_RELEASE
560 if (GetArenaForAllocation() != nullptr) {
561 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
562 }
563#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
564 return temp;
565}
566inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::unsafe_arena_release_interprocess() {
567 // @@protoc_insertion_point(field_release:goby.test.zeromq.protobuf.TestConfig.interprocess)
568 _impl_._has_bits_[0] &= ~0x00000002u;
569 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = _impl_.interprocess_;
570 _impl_.interprocess_ = nullptr;
571 return temp;
572}
573inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::_internal_mutable_interprocess() {
574 _impl_._has_bits_[0] |= 0x00000002u;
575 if (_impl_.interprocess_ == nullptr) {
577 _impl_.interprocess_ = p;
578 }
579 return _impl_.interprocess_;
580}
581inline ::goby::zeromq::protobuf::InterProcessPortalConfig* TestConfig::mutable_interprocess() {
582 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
583 // @@protoc_insertion_point(field_mutable:goby.test.zeromq.protobuf.TestConfig.interprocess)
584 return _msg;
585}
586inline void TestConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
587 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
588 if (message_arena == nullptr) {
589 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
590 }
591 if (interprocess) {
592 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
593 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
594 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
595 if (message_arena != submessage_arena) {
596 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
597 message_arena, interprocess, submessage_arena);
598 }
599 _impl_._has_bits_[0] |= 0x00000002u;
600 } else {
601 _impl_._has_bits_[0] &= ~0x00000002u;
602 }
603 _impl_.interprocess_ = interprocess;
604 // @@protoc_insertion_point(field_set_allocated:goby.test.zeromq.protobuf.TestConfig.interprocess)
605}
606
607// -------------------------------------------------------------------
608
609// Widget
610
611// optional int32 b = 1;
612inline bool Widget::_internal_has_b() const {
613 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
614 return value;
615}
616inline bool Widget::has_b() const {
617 return _internal_has_b();
618}
619inline void Widget::clear_b() {
620 _impl_.b_ = 0;
621 _impl_._has_bits_[0] &= ~0x00000001u;
622}
623inline int32_t Widget::_internal_b() const {
624 return _impl_.b_;
625}
626inline int32_t Widget::b() const {
627 // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Widget.b)
628 return _internal_b();
629}
630inline void Widget::_internal_set_b(int32_t value) {
631 _impl_._has_bits_[0] |= 0x00000001u;
632 _impl_.b_ = value;
633}
634inline void Widget::set_b(int32_t value) {
635 _internal_set_b(value);
636 // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Widget.b)
637}
638
639#ifdef __GNUC__
640 #pragma GCC diagnostic pop
641#endif // __GNUC__
642// -------------------------------------------------------------------
643
644
645// @@protoc_insertion_point(namespace_scope)
646
647} // namespace protobuf
648} // namespace zeromq
649} // namespace test
650} // namespace goby
651
652// @@protoc_insertion_point(global_scope)
653
654#include <google/protobuf/port_undef.inc>
655#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fsingle_5fthread_5fapp1_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)
::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
::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:272
void UnsafeArenaSwap(Widget *other)
Definition test.pb.h:337
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:298
static const Widget * internal_default_instance()
Definition test.pb.h:314
Widget & operator=(const Widget &from)
Definition test.pb.h:277
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:345
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:308
friend void swap(Widget &a, Widget &b)
Definition test.pb.h:321
PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const Widget & default_instance()
Definition test.pb.h:311
void MergeFrom(const Widget &from)
Definition test.pb.h:351
void CopyFrom(const Widget &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:295
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:302
Widget & operator=(Widget &&from) noexcept
Definition test.pb.h:281
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:305
::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_2fsingle_5fthread_5fapp1_2ftest_2eproto