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