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/middleware/middleware_interthread/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_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 "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_2fmiddleware_2fmiddleware_5finterthread_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_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
52namespace goby {
53namespace test {
54namespace middleware {
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 middleware
64} // namespace test
65} // namespace goby
66PROTOBUF_NAMESPACE_OPEN
67template<> ::goby::test::middleware::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Sample>(Arena*);
68template<> ::goby::test::middleware::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Widget>(Arena*);
69PROTOBUF_NAMESPACE_CLOSE
70namespace goby {
71namespace test {
72namespace middleware {
73namespace protobuf {
74
75// ===================================================================
76
77class Sample final :
78 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.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.middleware.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
221 // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.Sample)
222 private:
223 class _Internal;
224
225 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
226 typedef void InternalArenaConstructable_;
227 typedef void DestructorSkippable_;
228 struct Impl_ {
229 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
230 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
231 int32_t a_;
232 };
233 union { Impl_ _impl_; };
234 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
235};
236// -------------------------------------------------------------------
237
238class Widget final :
239 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.Widget) */ {
240 public:
241 inline Widget() : Widget(nullptr) {}
242 ~Widget() override;
243 explicit PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
244
245 Widget(const Widget& from);
246 Widget(Widget&& from) noexcept
247 : Widget() {
248 *this = ::std::move(from);
249 }
250
251 inline Widget& operator=(const Widget& from) {
252 CopyFrom(from);
253 return *this;
254 }
255 inline Widget& operator=(Widget&& from) noexcept {
256 if (this == &from) return *this;
257 if (GetOwningArena() == from.GetOwningArena()
258 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
259 && GetOwningArena() != nullptr
260 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
261 ) {
262 InternalSwap(&from);
263 } else {
264 CopyFrom(from);
265 }
266 return *this;
267 }
268
269 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
270 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
271 }
272 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
273 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
274 }
275
276 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
277 return GetDescriptor();
278 }
279 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
280 return default_instance().GetMetadata().descriptor;
281 }
282 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
283 return default_instance().GetMetadata().reflection;
284 }
285 static const Widget& default_instance() {
286 return *internal_default_instance();
287 }
288 static inline const Widget* internal_default_instance() {
289 return reinterpret_cast<const Widget*>(
291 }
292 static constexpr int kIndexInFileMessages =
293 1;
294
295 friend void swap(Widget& a, Widget& b) {
296 a.Swap(&b);
297 }
298 inline void Swap(Widget* other) {
299 if (other == this) return;
300 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
301 if (GetOwningArena() != nullptr &&
302 GetOwningArena() == other->GetOwningArena()) {
303 #else // PROTOBUF_FORCE_COPY_IN_SWAP
304 if (GetOwningArena() == other->GetOwningArena()) {
305 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
306 InternalSwap(other);
307 } else {
308 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
309 }
310 }
311 void UnsafeArenaSwap(Widget* other) {
312 if (other == this) return;
313 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
314 InternalSwap(other);
315 }
316
317 // implements Message ----------------------------------------------
318
319 Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
320 return CreateMaybeMessage<Widget>(arena);
321 }
322 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
323 void CopyFrom(const Widget& from);
324 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
325 void MergeFrom( const Widget& from) {
326 Widget::MergeImpl(*this, from);
327 }
328 private:
329 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
330 public:
331 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
332 bool IsInitialized() const final;
333
334 size_t ByteSizeLong() const final;
335 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
336 uint8_t* _InternalSerialize(
337 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
338 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
339
340 private:
341 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
342 void SharedDtor();
343 void SetCachedSize(int size) const final;
344 void InternalSwap(Widget* other);
345
346 private:
347 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
348 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
349 return "goby.test.middleware.protobuf.Widget";
350 }
351 protected:
352 explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena,
353 bool is_message_owned = false);
354 public:
355
356 static const ClassData _class_data_;
357 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
358
359 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
360
361 // nested types ----------------------------------------------------
362
363 // accessors -------------------------------------------------------
364
365 enum : int {
366 kBFieldNumber = 1,
367 };
368 // optional int32 b = 1;
369 bool has_b() const;
370 private:
371 bool _internal_has_b() const;
372 public:
373 void clear_b();
374 int32_t b() const;
375 void set_b(int32_t value);
376 private:
377 int32_t _internal_b() const;
378 void _internal_set_b(int32_t value);
379 public:
380
381 // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.Widget)
382 private:
383 class _Internal;
384
385 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
386 typedef void InternalArenaConstructable_;
387 typedef void DestructorSkippable_;
388 struct Impl_ {
389 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
390 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
391 int32_t b_;
392 };
393 union { Impl_ _impl_; };
394 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
395};
396// ===================================================================
397
398
399// ===================================================================
400
401#ifdef __GNUC__
402 #pragma GCC diagnostic push
403 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
404#endif // __GNUC__
405// Sample
406
407// optional int32 a = 1;
408inline bool Sample::_internal_has_a() const {
409 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
410 return value;
411}
412inline bool Sample::has_a() const {
413 return _internal_has_a();
414}
415inline void Sample::clear_a() {
416 _impl_.a_ = 0;
417 _impl_._has_bits_[0] &= ~0x00000001u;
418}
419inline int32_t Sample::_internal_a() const {
420 return _impl_.a_;
421}
422inline int32_t Sample::a() const {
423 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Sample.a)
424 return _internal_a();
425}
426inline void Sample::_internal_set_a(int32_t value) {
427 _impl_._has_bits_[0] |= 0x00000001u;
428 _impl_.a_ = value;
429}
430inline void Sample::set_a(int32_t value) {
431 _internal_set_a(value);
432 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Sample.a)
433}
434
435// -------------------------------------------------------------------
436
437// Widget
438
439// optional int32 b = 1;
440inline bool Widget::_internal_has_b() const {
441 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
442 return value;
443}
444inline bool Widget::has_b() const {
445 return _internal_has_b();
446}
447inline void Widget::clear_b() {
448 _impl_.b_ = 0;
449 _impl_._has_bits_[0] &= ~0x00000001u;
450}
451inline int32_t Widget::_internal_b() const {
452 return _impl_.b_;
453}
454inline int32_t Widget::b() const {
455 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Widget.b)
456 return _internal_b();
457}
458inline void Widget::_internal_set_b(int32_t value) {
459 _impl_._has_bits_[0] |= 0x00000001u;
460 _impl_.b_ = value;
461}
462inline void Widget::set_b(int32_t value) {
463 _internal_set_b(value);
464 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Widget.b)
465}
466
467#ifdef __GNUC__
468 #pragma GCC diagnostic pop
469#endif // __GNUC__
470// -------------------------------------------------------------------
471
472
473// @@protoc_insertion_point(namespace_scope)
474
475} // namespace protobuf
476} // namespace middleware
477} // namespace test
478} // namespace goby
479
480// @@protoc_insertion_point(global_scope)
481
482#include <google/protobuf/port_undef.inc>
483#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Sample * internal_default_instance()
Definition test.pb.h:127
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:118
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ClassData _class_data_
Definition test.pb.h:195
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Sample & operator=(const Sample &from)
Definition test.pb.h:90
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:111
Sample & operator=(Sample &&from) noexcept
Definition test.pb.h:94
static const Sample & default_instance()
Definition test.pb.h:124
friend void swap(Sample &a, Sample &b)
Definition test.pb.h:134
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const Sample &from)
Definition test.pb.h:164
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:158
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Sample(Sample &&from) noexcept
Definition test.pb.h:85
static constexpr int kIndexInFileMessages
Definition test.pb.h:131
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:121
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:108
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:115
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:272
Widget & operator=(const Widget &from)
Definition test.pb.h:251
PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Widget & operator=(Widget &&from) noexcept
Definition test.pb.h:255
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:282
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Widget(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const Widget & default_instance()
Definition test.pb.h:285
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:269
void MergeFrom(const Widget &from)
Definition test.pb.h:325
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:276
static const ClassData _class_data_
Definition test.pb.h:356
static const Widget * internal_default_instance()
Definition test.pb.h:288
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:319
friend void swap(Widget &a, Widget &b)
Definition test.pb.h:295
Widget(Widget &&from) noexcept
Definition test.pb.h:246
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:279
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
SampleDefaultTypeInternal _Sample_default_instance_
WidgetDefaultTypeInternal _Widget_default_instance_
The global namespace for the Goby project.
#define ByteSizeLong