Goby3  3.1.5
2024.05.14
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 < 3012000
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 3012004 < 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>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
35 #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_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
43 PROTOBUF_NAMESPACE_OPEN
44 namespace internal {
45 class AnyMetadata;
46 } // namespace internal
47 PROTOBUF_NAMESPACE_CLOSE
48 
49 // Internal implementation detail -- do not use these members.
51  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
58  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
60 };
61 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
62 namespace goby {
63 namespace test {
64 namespace middleware {
65 namespace protobuf {
66 class Sample;
67 class SampleDefaultTypeInternal;
68 extern SampleDefaultTypeInternal _Sample_default_instance_;
69 class Widget;
70 class WidgetDefaultTypeInternal;
71 extern WidgetDefaultTypeInternal _Widget_default_instance_;
72 } // namespace protobuf
73 } // namespace middleware
74 } // namespace test
75 } // namespace goby
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::test::middleware::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Sample>(Arena*);
78 template<> ::goby::test::middleware::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Widget>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace goby {
81 namespace test {
82 namespace middleware {
83 namespace protobuf {
84 
85 // ===================================================================
86 
87 class Sample PROTOBUF_FINAL :
88  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.Sample) */ {
89  public:
90  inline Sample() : Sample(nullptr) {};
91  virtual ~Sample();
92 
93  Sample(const Sample& from);
94  Sample(Sample&& from) noexcept
95  : Sample() {
96  *this = ::std::move(from);
97  }
98 
99  inline Sample& operator=(const Sample& from) {
100  CopyFrom(from);
101  return *this;
102  }
103  inline Sample& operator=(Sample&& from) noexcept {
104  if (GetArena() == from.GetArena()) {
105  if (this != &from) InternalSwap(&from);
106  } else {
107  CopyFrom(from);
108  }
109  return *this;
110  }
111 
112  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
113  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
114  }
115  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
116  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
117  }
118 
119  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
120  return GetDescriptor();
121  }
122  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
123  return GetMetadataStatic().descriptor;
124  }
125  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
126  return GetMetadataStatic().reflection;
127  }
128  static const Sample& default_instance();
129 
130  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
131  static inline const Sample* internal_default_instance() {
132  return reinterpret_cast<const Sample*>(
134  }
135  static constexpr int kIndexInFileMessages =
136  0;
137 
138  friend void swap(Sample& a, Sample& b) {
139  a.Swap(&b);
140  }
141  inline void Swap(Sample* other) {
142  if (other == this) return;
143  if (GetArena() == other->GetArena()) {
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(GetArena() == other->GetArena());
152  InternalSwap(other);
153  }
154 
155  // implements Message ----------------------------------------------
156 
157  inline Sample* New() const final {
158  return CreateMaybeMessage<Sample>(nullptr);
159  }
160 
161  Sample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
162  return CreateMaybeMessage<Sample>(arena);
163  }
164  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
165  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void CopyFrom(const Sample& from);
167  void MergeFrom(const Sample& from);
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
174  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  inline void SharedCtor();
179  inline void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(Sample* other);
182  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184  return "goby.test.middleware.protobuf.Sample";
185  }
186  protected:
187  explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena);
188  private:
189  static void ArenaDtor(void* object);
190  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
191  public:
192 
193  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
194  private:
195  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto);
198  }
199 
200  public:
201 
202  // nested types ----------------------------------------------------
203 
204  // accessors -------------------------------------------------------
205 
206  enum : int {
207  kAFieldNumber = 1,
208  };
209  // optional int32 a = 1;
210  bool has_a() const;
211  private:
212  bool _internal_has_a() const;
213  public:
214  void clear_a();
217  private:
218  ::PROTOBUF_NAMESPACE_ID::int32 _internal_a() const;
219  void _internal_set_a(::PROTOBUF_NAMESPACE_ID::int32 value);
220  public:
221 
222  enum DCCLParameters { DCCL_ID = 127, DCCL_MAX_BYTES = 32 };
223  // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.Sample)
224  private:
225  class _Internal;
226 
227  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
228  typedef void InternalArenaConstructable_;
229  typedef void DestructorSkippable_;
230  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
231  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233  friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
234 };
235 // -------------------------------------------------------------------
236 
237 class Widget PROTOBUF_FINAL :
238  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.Widget) */ {
239  public:
240  inline Widget() : Widget(nullptr) {};
241  virtual ~Widget();
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 (GetArena() == from.GetArena()) {
255  if (this != &from) InternalSwap(&from);
256  } else {
257  CopyFrom(from);
258  }
259  return *this;
260  }
261 
262  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
263  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
264  }
265  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
266  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
267  }
268 
269  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
270  return GetDescriptor();
271  }
272  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
273  return GetMetadataStatic().descriptor;
274  }
275  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
276  return GetMetadataStatic().reflection;
277  }
278  static const Widget& default_instance();
279 
280  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
281  static inline const Widget* internal_default_instance() {
282  return reinterpret_cast<const Widget*>(
284  }
285  static constexpr int kIndexInFileMessages =
286  1;
287 
288  friend void swap(Widget& a, Widget& b) {
289  a.Swap(&b);
290  }
291  inline void Swap(Widget* other) {
292  if (other == this) return;
293  if (GetArena() == other->GetArena()) {
294  InternalSwap(other);
295  } else {
296  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
297  }
298  }
299  void UnsafeArenaSwap(Widget* other) {
300  if (other == this) return;
301  GOOGLE_DCHECK(GetArena() == other->GetArena());
302  InternalSwap(other);
303  }
304 
305  // implements Message ----------------------------------------------
306 
307  inline Widget* New() const final {
308  return CreateMaybeMessage<Widget>(nullptr);
309  }
310 
311  Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
312  return CreateMaybeMessage<Widget>(arena);
313  }
314  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
315  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
316  void CopyFrom(const Widget& from);
317  void MergeFrom(const Widget& from);
318  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
319  bool IsInitialized() const final;
320 
321  size_t ByteSizeLong() const final;
322  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
323  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
324  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
325  int GetCachedSize() const final { return _cached_size_.Get(); }
326 
327  private:
328  inline void SharedCtor();
329  inline void SharedDtor();
330  void SetCachedSize(int size) const final;
331  void InternalSwap(Widget* other);
332  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
333  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
334  return "goby.test.middleware.protobuf.Widget";
335  }
336  protected:
337  explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena);
338  private:
339  static void ArenaDtor(void* object);
340  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
341  public:
342 
343  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
344  private:
345  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
346  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto);
348  }
349 
350  public:
351 
352  // nested types ----------------------------------------------------
353 
354  // accessors -------------------------------------------------------
355 
356  enum : int {
357  kBFieldNumber = 1,
358  };
359  // optional int32 b = 1;
360  bool has_b() const;
361  private:
362  bool _internal_has_b() const;
363  public:
364  void clear_b();
367  private:
368  ::PROTOBUF_NAMESPACE_ID::int32 _internal_b() const;
369  void _internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value);
370  public:
371 
372  // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.Widget)
373  private:
374  class _Internal;
375 
376  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
377  typedef void InternalArenaConstructable_;
378  typedef void DestructorSkippable_;
379  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
380  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
382  friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto;
383 };
384 // ===================================================================
385 
386 
387 // ===================================================================
388 
389 #ifdef __GNUC__
390  #pragma GCC diagnostic push
391  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
392 #endif // __GNUC__
393 // Sample
394 
395 // optional int32 a = 1;
396 inline bool Sample::_internal_has_a() const {
397  bool value = (_has_bits_[0] & 0x00000001u) != 0;
398  return value;
399 }
400 inline bool Sample::has_a() const {
401  return _internal_has_a();
402 }
403 inline void Sample::clear_a() {
404  a_ = 0;
405  _has_bits_[0] &= ~0x00000001u;
406 }
407 inline ::PROTOBUF_NAMESPACE_ID::int32 Sample::_internal_a() const {
408  return a_;
409 }
410 inline ::PROTOBUF_NAMESPACE_ID::int32 Sample::a() const {
411  // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Sample.a)
412  return _internal_a();
413 }
414 inline void Sample::_internal_set_a(::PROTOBUF_NAMESPACE_ID::int32 value) {
415  _has_bits_[0] |= 0x00000001u;
416  a_ = value;
417 }
418 inline void Sample::set_a(::PROTOBUF_NAMESPACE_ID::int32 value) {
419  _internal_set_a(value);
420  // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Sample.a)
421 }
422 
423 // -------------------------------------------------------------------
424 
425 // Widget
426 
427 // optional int32 b = 1;
428 inline bool Widget::_internal_has_b() const {
429  bool value = (_has_bits_[0] & 0x00000001u) != 0;
430  return value;
431 }
432 inline bool Widget::has_b() const {
433  return _internal_has_b();
434 }
435 inline void Widget::clear_b() {
436  b_ = 0;
437  _has_bits_[0] &= ~0x00000001u;
438 }
439 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::_internal_b() const {
440  return b_;
441 }
442 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::b() const {
443  // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Widget.b)
444  return _internal_b();
445 }
446 inline void Widget::_internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
447  _has_bits_[0] |= 0x00000001u;
448  b_ = value;
449 }
450 inline void Widget::set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
451  _internal_set_b(value);
452  // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Widget.b)
453 }
454 
455 #ifdef __GNUC__
456  #pragma GCC diagnostic pop
457 #endif // __GNUC__
458 // -------------------------------------------------------------------
459 
460 
461 // @@protoc_insertion_point(namespace_scope)
462 
463 } // namespace protobuf
464 } // namespace middleware
465 } // namespace test
466 } // namespace goby
467 
468 // @@protoc_insertion_point(global_scope)
469 
470 #include <google/protobuf/port_undef.inc>
471 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
static const Sample * internal_default_instance()
Definition: test.pb.h:131
Widget(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const Widget * internal_default_instance()
Definition: test.pb.h:281
void set_a(::PROTOBUF_NAMESPACE_ID::int32 value)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: test.pb.h:122
::PROTOBUF_NAMESPACE_ID::int32 b() const
Sample & operator=(Sample &&from) noexcept
Definition: test.pb.h:103
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: test.pb.h:125
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: test.pb.h:119
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: test.pb.h:112
Widget & operator=(Widget &&from) noexcept
Definition: test.pb.h:253
friend void swap(Sample &a, Sample &b)
Definition: test.pb.h:138
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:311
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:161
void set_b(::PROTOBUF_NAMESPACE_ID::int32 value)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: test.pb.h:115
friend void swap(Widget &a, Widget &b)
Definition: test.pb.h:288
Sample & operator=(const Sample &from)
Definition: test.pb.h:99
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Widget & operator=(const Widget &from)
Definition: test.pb.h:249
::PROTOBUF_NAMESPACE_ID::int32 a() const
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterthread_2ftest_2eproto
@ value
the parser finished reading a JSON value
SampleDefaultTypeInternal _Sample_default_instance_
WidgetDefaultTypeInternal _Widget_default_instance_
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: test.pb.h:58
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: test.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: test.pb.h:59
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)