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/zeromq_portal_without_interthread/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_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 <boost/units/quantity.hpp>
34#include <boost/units/absolute.hpp>
35#include <boost/units/dimensionless_type.hpp>
36#include <boost/units/make_scaled_unit.hpp>
37// @@protoc_insertion_point(includes)
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
50extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
51namespace goby {
52namespace test {
53namespace zeromq {
54namespace protobuf {
55class Sample;
56struct SampleDefaultTypeInternal;
57extern SampleDefaultTypeInternal _Sample_default_instance_;
58class Widget;
59struct WidgetDefaultTypeInternal;
60extern WidgetDefaultTypeInternal _Widget_default_instance_;
61} // namespace protobuf
62} // namespace zeromq
63} // namespace test
64} // namespace goby
65PROTOBUF_NAMESPACE_OPEN
66template<> ::goby::test::zeromq::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Sample>(Arena*);
67template<> ::goby::test::zeromq::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Widget>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace goby {
70namespace test {
71namespace zeromq {
72namespace protobuf {
73
74// ===================================================================
75
76class Sample final :
77 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.protobuf.Sample) */ {
78 public:
79 inline Sample() : Sample(nullptr) {}
80 ~Sample() override;
81 explicit PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82
83 Sample(const Sample& from);
84 Sample(Sample&& from) noexcept
85 : Sample() {
86 *this = ::std::move(from);
87 }
88
89 inline Sample& operator=(const Sample& from) {
90 CopyFrom(from);
91 return *this;
92 }
93 inline Sample& operator=(Sample&& from) noexcept {
94 if (this == &from) return *this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() != nullptr
98 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
99 ) {
100 InternalSwap(&from);
101 } else {
102 CopyFrom(from);
103 }
104 return *this;
105 }
106
107 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109 }
110 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 }
113
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115 return GetDescriptor();
116 }
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118 return default_instance().GetMetadata().descriptor;
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121 return default_instance().GetMetadata().reflection;
122 }
123 static const Sample& default_instance() {
125 }
126 static inline const Sample* internal_default_instance() {
127 return reinterpret_cast<const Sample*>(
129 }
130 static constexpr int kIndexInFileMessages =
131 0;
132
133 friend void swap(Sample& a, Sample& b) {
134 a.Swap(&b);
135 }
136 inline void Swap(Sample* other) {
137 if (other == this) return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() != nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
141 #else // PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() == other->GetOwningArena()) {
143 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
144 InternalSwap(other);
145 } else {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147 }
148 }
149 void UnsafeArenaSwap(Sample* other) {
150 if (other == this) return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152 InternalSwap(other);
153 }
154
155 // implements Message ----------------------------------------------
156
157 Sample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158 return CreateMaybeMessage<Sample>(arena);
159 }
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 void CopyFrom(const Sample& from);
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 void MergeFrom( const Sample& from) {
164 Sample::MergeImpl(*this, from);
165 }
166 private:
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 public:
169 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170 bool IsInitialized() const final;
171
172 size_t ByteSizeLong() const final;
173 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
177
178 private:
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
180 void SharedDtor();
181 void SetCachedSize(int size) const final;
182 void InternalSwap(Sample* other);
183
184 private:
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.test.zeromq.protobuf.Sample";
188 }
189 protected:
190 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191 bool is_message_owned = false);
192 public:
193
194 static const ClassData _class_data_;
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
196
197 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
198
199 // nested types ----------------------------------------------------
200
201 // accessors -------------------------------------------------------
202
203 enum : int {
204 kAFieldNumber = 1,
205 };
206 // optional int32 a = 1;
207 bool has_a() const;
208 private:
209 bool _internal_has_a() const;
210 public:
211 void clear_a();
212 int32_t a() const;
213 void set_a(int32_t value);
214 private:
215 int32_t _internal_a() const;
216 void _internal_set_a(int32_t value);
217 public:
218
219 // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Sample)
220 private:
221 class _Internal;
222
223 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
224 typedef void InternalArenaConstructable_;
225 typedef void DestructorSkippable_;
226 struct Impl_ {
227 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
228 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
229 int32_t a_;
230 };
231 union { Impl_ _impl_; };
232 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
233};
234// -------------------------------------------------------------------
235
236class Widget final :
237 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.protobuf.Widget) */ {
238 public:
239 inline Widget() : Widget(nullptr) {}
240 ~Widget() override;
241 explicit PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
242
243 Widget(const Widget& from);
244 Widget(Widget&& from) noexcept
245 : Widget() {
246 *this = ::std::move(from);
247 }
248
249 inline Widget& operator=(const Widget& from) {
250 CopyFrom(from);
251 return *this;
252 }
253 inline Widget& operator=(Widget&& from) noexcept {
254 if (this == &from) return *this;
255 if (GetOwningArena() == from.GetOwningArena()
256 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
257 && GetOwningArena() != nullptr
258 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
259 ) {
260 InternalSwap(&from);
261 } else {
262 CopyFrom(from);
263 }
264 return *this;
265 }
266
267 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
268 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
269 }
270 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
271 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
272 }
273
274 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
275 return GetDescriptor();
276 }
277 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
278 return default_instance().GetMetadata().descriptor;
279 }
280 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
281 return default_instance().GetMetadata().reflection;
282 }
283 static const Widget& default_instance() {
284 return *internal_default_instance();
285 }
286 static inline const Widget* internal_default_instance() {
287 return reinterpret_cast<const Widget*>(
288 &_Widget_default_instance_);
289 }
290 static constexpr int kIndexInFileMessages =
291 1;
292
293 friend void swap(Widget& a, Widget& b) {
294 a.Swap(&b);
295 }
296 inline void Swap(Widget* other) {
297 if (other == this) return;
298 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
299 if (GetOwningArena() != nullptr &&
300 GetOwningArena() == other->GetOwningArena()) {
301 #else // PROTOBUF_FORCE_COPY_IN_SWAP
302 if (GetOwningArena() == other->GetOwningArena()) {
303 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
304 InternalSwap(other);
305 } else {
306 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
307 }
308 }
309 void UnsafeArenaSwap(Widget* other) {
310 if (other == this) return;
311 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
312 InternalSwap(other);
313 }
314
315 // implements Message ----------------------------------------------
316
317 Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
318 return CreateMaybeMessage<Widget>(arena);
319 }
320 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
321 void CopyFrom(const Widget& from);
322 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
323 void MergeFrom( const Widget& from) {
324 Widget::MergeImpl(*this, from);
325 }
326 private:
327 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
328 public:
329 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
330 bool IsInitialized() const final;
331
332 size_t ByteSizeLong() const final;
333 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
334 uint8_t* _InternalSerialize(
335 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
336 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
337
338 private:
339 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
340 void SharedDtor();
341 void SetCachedSize(int size) const final;
342 void InternalSwap(Widget* other);
343
344 private:
345 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
346 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
347 return "goby.test.zeromq.protobuf.Widget";
348 }
349 protected:
350 explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena,
351 bool is_message_owned = false);
352 public:
353
354 static const ClassData _class_data_;
355 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
356
357 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
358
359 // nested types ----------------------------------------------------
360
361 // accessors -------------------------------------------------------
362
363 enum : int {
364 kBFieldNumber = 1,
365 };
366 // optional int32 b = 1;
367 bool has_b() const;
368 private:
369 bool _internal_has_b() const;
370 public:
371 void clear_b();
372 int32_t b() const;
373 void set_b(int32_t value);
374 private:
375 int32_t _internal_b() const;
376 void _internal_set_b(int32_t value);
377 public:
378
379 // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Widget)
380 private:
381 class _Internal;
382
383 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
384 typedef void InternalArenaConstructable_;
385 typedef void DestructorSkippable_;
386 struct Impl_ {
387 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
388 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
389 int32_t b_;
390 };
391 union { Impl_ _impl_; };
392 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
393};
394// ===================================================================
395
396
397// ===================================================================
398
399#ifdef __GNUC__
400 #pragma GCC diagnostic push
401 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
402#endif // __GNUC__
403// Sample
404
405// optional int32 a = 1;
406inline bool Sample::_internal_has_a() const {
407 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
408 return value;
409}
410inline bool Sample::has_a() const {
411 return _internal_has_a();
412}
413inline void Sample::clear_a() {
414 _impl_.a_ = 0;
415 _impl_._has_bits_[0] &= ~0x00000001u;
416}
417inline int32_t Sample::_internal_a() const {
418 return _impl_.a_;
419}
420inline int32_t Sample::a() const {
421 // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Sample.a)
422 return _internal_a();
423}
424inline void Sample::_internal_set_a(int32_t value) {
425 _impl_._has_bits_[0] |= 0x00000001u;
426 _impl_.a_ = value;
427}
428inline void Sample::set_a(int32_t value) {
429 _internal_set_a(value);
430 // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Sample.a)
431}
432
433// -------------------------------------------------------------------
434
435// Widget
436
437// optional int32 b = 1;
438inline bool Widget::_internal_has_b() const {
439 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
440 return value;
441}
442inline bool Widget::has_b() const {
443 return _internal_has_b();
444}
445inline void Widget::clear_b() {
446 _impl_.b_ = 0;
447 _impl_._has_bits_[0] &= ~0x00000001u;
448}
449inline int32_t Widget::_internal_b() const {
450 return _impl_.b_;
451}
452inline int32_t Widget::b() const {
453 // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Widget.b)
454 return _internal_b();
455}
456inline void Widget::_internal_set_b(int32_t value) {
457 _impl_._has_bits_[0] |= 0x00000001u;
458 _impl_.b_ = value;
459}
460inline void Widget::set_b(int32_t value) {
461 _internal_set_b(value);
462 // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Widget.b)
463}
464
465#ifdef __GNUC__
466 #pragma GCC diagnostic pop
467#endif // __GNUC__
468// -------------------------------------------------------------------
469
470
471// @@protoc_insertion_point(namespace_scope)
472
473} // namespace protobuf
474} // namespace zeromq
475} // namespace test
476} // namespace goby
477
478// @@protoc_insertion_point(global_scope)
479
480#include <google/protobuf/port_undef.inc>
481#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:157
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:117
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:110
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:114
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const Sample & default_instance()
Definition test.pb.h:123
static const Sample * internal_default_instance()
Definition test.pb.h:126
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:107
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
Sample & operator=(const Sample &from)
Definition test.pb.h:89
Sample & operator=(Sample &&from) noexcept
Definition test.pb.h:93
void MergeFrom(const Sample &from)
Definition test.pb.h:163
friend void swap(Sample &a, Sample &b)
Definition test.pb.h:133
PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Sample(Sample &&from) noexcept
Definition test.pb.h:84
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static constexpr int kIndexInFileMessages
Definition test.pb.h:130
void CopyFrom(const Sample &from)
void UnsafeArenaSwap(Sample *other)
Definition test.pb.h:149
static const ClassData _class_data_
Definition test.pb.h:194
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:120
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) 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:244
void UnsafeArenaSwap(Widget *other)
Definition test.pb.h:309
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:270
static const Widget * internal_default_instance()
Definition test.pb.h:286
Widget & operator=(const Widget &from)
Definition test.pb.h:249
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:317
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:280
friend void swap(Widget &a, Widget &b)
Definition test.pb.h:293
PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const Widget & default_instance()
Definition test.pb.h:283
void MergeFrom(const Widget &from)
Definition test.pb.h:323
void CopyFrom(const Widget &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:267
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:274
Widget & operator=(Widget &&from) noexcept
Definition test.pb.h:253
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:277
SampleDefaultTypeInternal _Sample_default_instance_
Definition test.pb.h:57
WidgetDefaultTypeInternal _Widget_default_instance_
Definition test.pb.h:60
The global namespace for the Goby project.
#define ByteSizeLong
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto