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/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 < 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_2fzeromq_2fzeromq_5fportal_5fwithout_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_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
62 namespace goby {
63 namespace test {
64 namespace zeromq {
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 zeromq
74 } // namespace test
75 } // namespace goby
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::test::zeromq::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Sample>(Arena*);
78 template<> ::goby::test::zeromq::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::zeromq::protobuf::Widget>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace goby {
81 namespace test {
82 namespace zeromq {
83 namespace protobuf {
84 
85 // ===================================================================
86 
87 class Sample PROTOBUF_FINAL :
88  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.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.zeromq.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_2fzeromq_2fzeromq_5fportal_5fwithout_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  // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Sample)
223  private:
224  class _Internal;
225 
226  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
227  typedef void InternalArenaConstructable_;
228  typedef void DestructorSkippable_;
229  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
230  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
232  friend struct ::TableStruct_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
233 };
234 // -------------------------------------------------------------------
235 
236 class Widget PROTOBUF_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  virtual ~Widget();
241 
242  Widget(const Widget& from);
243  Widget(Widget&& from) noexcept
244  : Widget() {
245  *this = ::std::move(from);
246  }
247 
248  inline Widget& operator=(const Widget& from) {
249  CopyFrom(from);
250  return *this;
251  }
252  inline Widget& operator=(Widget&& from) noexcept {
253  if (GetArena() == from.GetArena()) {
254  if (this != &from) InternalSwap(&from);
255  } else {
256  CopyFrom(from);
257  }
258  return *this;
259  }
260 
261  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
262  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
263  }
264  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
265  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
266  }
267 
268  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
269  return GetDescriptor();
270  }
271  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
272  return GetMetadataStatic().descriptor;
273  }
274  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
275  return GetMetadataStatic().reflection;
276  }
277  static const Widget& default_instance();
278 
279  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
280  static inline const Widget* internal_default_instance() {
281  return reinterpret_cast<const Widget*>(
283  }
284  static constexpr int kIndexInFileMessages =
285  1;
286 
287  friend void swap(Widget& a, Widget& b) {
288  a.Swap(&b);
289  }
290  inline void Swap(Widget* other) {
291  if (other == this) return;
292  if (GetArena() == other->GetArena()) {
293  InternalSwap(other);
294  } else {
295  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
296  }
297  }
298  void UnsafeArenaSwap(Widget* other) {
299  if (other == this) return;
300  GOOGLE_DCHECK(GetArena() == other->GetArena());
301  InternalSwap(other);
302  }
303 
304  // implements Message ----------------------------------------------
305 
306  inline Widget* New() const final {
307  return CreateMaybeMessage<Widget>(nullptr);
308  }
309 
310  Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
311  return CreateMaybeMessage<Widget>(arena);
312  }
313  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
314  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
315  void CopyFrom(const Widget& from);
316  void MergeFrom(const Widget& from);
317  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
318  bool IsInitialized() const final;
319 
320  size_t ByteSizeLong() const final;
321  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
322  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
323  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
324  int GetCachedSize() const final { return _cached_size_.Get(); }
325 
326  private:
327  inline void SharedCtor();
328  inline void SharedDtor();
329  void SetCachedSize(int size) const final;
330  void InternalSwap(Widget* other);
331  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
332  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
333  return "goby.test.zeromq.protobuf.Widget";
334  }
335  protected:
336  explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena);
337  private:
338  static void ArenaDtor(void* object);
339  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
340  public:
341 
342  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
343  private:
344  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
345  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto);
347  }
348 
349  public:
350 
351  // nested types ----------------------------------------------------
352 
353  // accessors -------------------------------------------------------
354 
355  enum : int {
356  kBFieldNumber = 1,
357  };
358  // optional int32 b = 1;
359  bool has_b() const;
360  private:
361  bool _internal_has_b() const;
362  public:
363  void clear_b();
366  private:
367  ::PROTOBUF_NAMESPACE_ID::int32 _internal_b() const;
368  void _internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value);
369  public:
370 
371  // @@protoc_insertion_point(class_scope:goby.test.zeromq.protobuf.Widget)
372  private:
373  class _Internal;
374 
375  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
376  typedef void InternalArenaConstructable_;
377  typedef void DestructorSkippable_;
378  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
379  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
381  friend struct ::TableStruct_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto;
382 };
383 // ===================================================================
384 
385 
386 // ===================================================================
387 
388 #ifdef __GNUC__
389  #pragma GCC diagnostic push
390  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
391 #endif // __GNUC__
392 // Sample
393 
394 // optional int32 a = 1;
395 inline bool Sample::_internal_has_a() const {
396  bool value = (_has_bits_[0] & 0x00000001u) != 0;
397  return value;
398 }
399 inline bool Sample::has_a() const {
400  return _internal_has_a();
401 }
402 inline void Sample::clear_a() {
403  a_ = 0;
404  _has_bits_[0] &= ~0x00000001u;
405 }
406 inline ::PROTOBUF_NAMESPACE_ID::int32 Sample::_internal_a() const {
407  return a_;
408 }
409 inline ::PROTOBUF_NAMESPACE_ID::int32 Sample::a() const {
410  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Sample.a)
411  return _internal_a();
412 }
413 inline void Sample::_internal_set_a(::PROTOBUF_NAMESPACE_ID::int32 value) {
414  _has_bits_[0] |= 0x00000001u;
415  a_ = value;
416 }
417 inline void Sample::set_a(::PROTOBUF_NAMESPACE_ID::int32 value) {
418  _internal_set_a(value);
419  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Sample.a)
420 }
421 
422 // -------------------------------------------------------------------
423 
424 // Widget
425 
426 // optional int32 b = 1;
427 inline bool Widget::_internal_has_b() const {
428  bool value = (_has_bits_[0] & 0x00000001u) != 0;
429  return value;
430 }
431 inline bool Widget::has_b() const {
432  return _internal_has_b();
433 }
434 inline void Widget::clear_b() {
435  b_ = 0;
436  _has_bits_[0] &= ~0x00000001u;
437 }
438 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::_internal_b() const {
439  return b_;
440 }
441 inline ::PROTOBUF_NAMESPACE_ID::int32 Widget::b() const {
442  // @@protoc_insertion_point(field_get:goby.test.zeromq.protobuf.Widget.b)
443  return _internal_b();
444 }
445 inline void Widget::_internal_set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
446  _has_bits_[0] |= 0x00000001u;
447  b_ = value;
448 }
449 inline void Widget::set_b(::PROTOBUF_NAMESPACE_ID::int32 value) {
450  _internal_set_b(value);
451  // @@protoc_insertion_point(field_set:goby.test.zeromq.protobuf.Widget.b)
452 }
453 
454 #ifdef __GNUC__
455  #pragma GCC diagnostic pop
456 #endif // __GNUC__
457 // -------------------------------------------------------------------
458 
459 
460 // @@protoc_insertion_point(namespace_scope)
461 
462 } // namespace protobuf
463 } // namespace zeromq
464 } // namespace test
465 } // namespace goby
466 
467 // @@protoc_insertion_point(global_scope)
468 
469 #include <google/protobuf/port_undef.inc>
470 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: test.pb.h:112
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Sample * internal_default_instance()
Definition: test.pb.h:131
::PROTOBUF_NAMESPACE_ID::int32 a() const
friend void swap(Sample &a, Sample &b)
Definition: test.pb.h:138
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: test.pb.h:125
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:310
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_b(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: test.pb.h:122
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: test.pb.h:115
Widget(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const Widget * internal_default_instance()
Definition: test.pb.h:280
friend void swap(Widget &a, Widget &b)
Definition: test.pb.h:287
Sample & operator=(Sample &&from) noexcept
Definition: test.pb.h:103
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: test.pb.h:119
::PROTOBUF_NAMESPACE_ID::int32 b() const
Widget & operator=(const Widget &from)
Definition: test.pb.h:248
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: test.pb.h:161
Sample & operator=(const Sample &from)
Definition: test.pb.h:99
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Widget & operator=(Widget &&from) noexcept
Definition: test.pb.h:252
void set_a(::PROTOBUF_NAMESPACE_ID::int32 value)
@ value
the parser finished reading a JSON value
SampleDefaultTypeInternal _Sample_default_instance_
Definition: test.pb.h:67
WidgetDefaultTypeInternal _Widget_default_instance_
Definition: test.pb.h:70
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: test.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: test.pb.h:58
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fzeromq_5fportal_5fwithout_5finterthread_2ftest_2eproto