Goby3 3.4.0
2026.04.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_interprocess_forwarder/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_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 <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_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_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_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto;
51namespace goby {
52namespace test {
53namespace middleware {
54namespace protobuf {
55class LargeMessage;
56struct LargeMessageDefaultTypeInternal;
57extern LargeMessageDefaultTypeInternal _LargeMessage_default_instance_;
58class Sample;
59struct SampleDefaultTypeInternal;
60extern SampleDefaultTypeInternal _Sample_default_instance_;
61class Widget;
62struct WidgetDefaultTypeInternal;
63extern WidgetDefaultTypeInternal _Widget_default_instance_;
64} // namespace protobuf
65} // namespace middleware
66} // namespace test
67} // namespace goby
68PROTOBUF_NAMESPACE_OPEN
69template<> ::goby::test::middleware::protobuf::LargeMessage* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::LargeMessage>(Arena*);
70template<> ::goby::test::middleware::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Sample>(Arena*);
71template<> ::goby::test::middleware::protobuf::Widget* Arena::CreateMaybeMessage<::goby::test::middleware::protobuf::Widget>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace goby {
74namespace test {
75namespace middleware {
76namespace protobuf {
77
78// ===================================================================
79
80class Sample final :
81 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.Sample) */ {
82 public:
83 inline Sample() : Sample(nullptr) {}
84 ~Sample() override;
85 explicit PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86
87 Sample(const Sample& from);
88 Sample(Sample&& from) noexcept
89 : Sample() {
90 *this = ::std::move(from);
91 }
92
93 inline Sample& operator=(const Sample& from) {
94 CopyFrom(from);
95 return *this;
96 }
97 inline Sample& operator=(Sample&& from) noexcept {
98 if (this == &from) return *this;
99 if (GetOwningArena() == from.GetOwningArena()
100 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
101 && GetOwningArena() != nullptr
102 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
103 ) {
104 InternalSwap(&from);
105 } else {
106 CopyFrom(from);
107 }
108 return *this;
109 }
110
111 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
112 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113 }
114 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
115 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116 }
117
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
119 return GetDescriptor();
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
122 return default_instance().GetMetadata().descriptor;
123 }
124 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
125 return default_instance().GetMetadata().reflection;
126 }
127 static const Sample& default_instance() {
129 }
130 static inline const Sample* internal_default_instance() {
131 return reinterpret_cast<const Sample*>(
133 }
134 static constexpr int kIndexInFileMessages =
135 0;
136
137 friend void swap(Sample& a, Sample& b) {
138 a.Swap(&b);
139 }
140 inline void Swap(Sample* other) {
141 if (other == this) return;
142 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() != nullptr &&
144 GetOwningArena() == other->GetOwningArena()) {
145 #else // PROTOBUF_FORCE_COPY_IN_SWAP
146 if (GetOwningArena() == other->GetOwningArena()) {
147 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
148 InternalSwap(other);
149 } else {
150 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
151 }
152 }
153 void UnsafeArenaSwap(Sample* other) {
154 if (other == this) return;
155 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
156 InternalSwap(other);
157 }
158
159 // implements Message ----------------------------------------------
160
161 Sample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
162 return CreateMaybeMessage<Sample>(arena);
163 }
164 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
165 void CopyFrom(const Sample& from);
166 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
167 void MergeFrom( const Sample& from) {
168 Sample::MergeImpl(*this, from);
169 }
170 private:
171 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
172 public:
173 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
174 bool IsInitialized() const final;
175
176 size_t ByteSizeLong() const final;
177 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
179 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
181
182 private:
183 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
184 void SharedDtor();
185 void SetCachedSize(int size) const final;
186 void InternalSwap(Sample* other);
187
188 private:
189 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
190 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
191 return "goby.test.middleware.protobuf.Sample";
192 }
193 protected:
194 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
195 bool is_message_owned = false);
196 public:
197
198 static const ClassData _class_data_;
199 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
200
201 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
202
203 // nested types ----------------------------------------------------
204
205 // accessors -------------------------------------------------------
206
207 enum : int {
209 };
210 // optional int32 a = 1;
211 bool has_a() const;
212 private:
213 bool _internal_has_a() const;
214 public:
215 void clear_a();
216 int32_t a() const;
217 void set_a(int32_t value);
218 private:
219 int32_t _internal_a() const;
220 void _internal_set_a(int32_t value);
221 public:
222
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 struct Impl_ {
231 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
232 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233 int32_t a_;
234 };
235 union { Impl_ _impl_; };
236 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto;
237};
238// -------------------------------------------------------------------
239
240class Widget final :
241 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.Widget) */ {
242 public:
243 inline Widget() : Widget(nullptr) {}
244 ~Widget() override;
245 explicit PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
246
247 Widget(const Widget& from);
248 Widget(Widget&& from) noexcept
249 : Widget() {
250 *this = ::std::move(from);
251 }
252
253 inline Widget& operator=(const Widget& from) {
254 CopyFrom(from);
255 return *this;
256 }
257 inline Widget& operator=(Widget&& from) noexcept {
258 if (this == &from) return *this;
259 if (GetOwningArena() == from.GetOwningArena()
260 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
261 && GetOwningArena() != nullptr
262 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
263 ) {
264 InternalSwap(&from);
265 } else {
266 CopyFrom(from);
267 }
268 return *this;
269 }
270
271 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
272 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
273 }
274 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
275 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
276 }
277
278 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
279 return GetDescriptor();
280 }
281 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
282 return default_instance().GetMetadata().descriptor;
283 }
284 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
285 return default_instance().GetMetadata().reflection;
286 }
287 static const Widget& default_instance() {
288 return *internal_default_instance();
289 }
290 static inline const Widget* internal_default_instance() {
291 return reinterpret_cast<const Widget*>(
293 }
294 static constexpr int kIndexInFileMessages =
295 1;
296
297 friend void swap(Widget& a, Widget& b) {
298 a.Swap(&b);
299 }
300 inline void Swap(Widget* other) {
301 if (other == this) return;
302 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
303 if (GetOwningArena() != nullptr &&
304 GetOwningArena() == other->GetOwningArena()) {
305 #else // PROTOBUF_FORCE_COPY_IN_SWAP
306 if (GetOwningArena() == other->GetOwningArena()) {
307 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
308 InternalSwap(other);
309 } else {
310 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
311 }
312 }
313 void UnsafeArenaSwap(Widget* other) {
314 if (other == this) return;
315 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
316 InternalSwap(other);
317 }
318
319 // implements Message ----------------------------------------------
320
321 Widget* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
322 return CreateMaybeMessage<Widget>(arena);
323 }
324 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
325 void CopyFrom(const Widget& from);
326 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
327 void MergeFrom( const Widget& from) {
328 Widget::MergeImpl(*this, from);
329 }
330 private:
331 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
332 public:
333 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
334 bool IsInitialized() const final;
335
336 size_t ByteSizeLong() const final;
337 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
338 uint8_t* _InternalSerialize(
339 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
340 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
341
342 private:
343 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
344 void SharedDtor();
345 void SetCachedSize(int size) const final;
346 void InternalSwap(Widget* other);
347
348 private:
349 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
350 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
351 return "goby.test.middleware.protobuf.Widget";
352 }
353 protected:
354 explicit Widget(::PROTOBUF_NAMESPACE_ID::Arena* arena,
355 bool is_message_owned = false);
356 public:
357
358 static const ClassData _class_data_;
359 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
360
361 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
362
363 // nested types ----------------------------------------------------
364
365 // accessors -------------------------------------------------------
366
367 enum : int {
368 kBFieldNumber = 1,
369 };
370 // optional int32 b = 1;
371 bool has_b() const;
372 private:
373 bool _internal_has_b() const;
374 public:
375 void clear_b();
376 int32_t b() const;
377 void set_b(int32_t value);
378 private:
379 int32_t _internal_b() const;
380 void _internal_set_b(int32_t value);
381 public:
382
383 // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.Widget)
384 private:
385 class _Internal;
386
387 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
388 typedef void InternalArenaConstructable_;
389 typedef void DestructorSkippable_;
390 struct Impl_ {
391 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
392 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
393 int32_t b_;
394 };
395 union { Impl_ _impl_; };
396 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto;
397};
398// -------------------------------------------------------------------
399
400class LargeMessage final :
401 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.protobuf.LargeMessage) */ {
402 public:
403 inline LargeMessage() : LargeMessage(nullptr) {}
404 ~LargeMessage() override;
405 explicit PROTOBUF_CONSTEXPR LargeMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
406
408 LargeMessage(LargeMessage&& from) noexcept
409 : LargeMessage() {
410 *this = ::std::move(from);
411 }
412
413 inline LargeMessage& operator=(const LargeMessage& from) {
414 CopyFrom(from);
415 return *this;
416 }
417 inline LargeMessage& operator=(LargeMessage&& from) noexcept {
418 if (this == &from) return *this;
419 if (GetOwningArena() == from.GetOwningArena()
420 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
421 && GetOwningArena() != nullptr
422 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
423 ) {
424 InternalSwap(&from);
425 } else {
426 CopyFrom(from);
427 }
428 return *this;
429 }
430
431 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
432 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
433 }
434 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
435 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
436 }
437
438 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
439 return GetDescriptor();
440 }
441 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
442 return default_instance().GetMetadata().descriptor;
443 }
444 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
445 return default_instance().GetMetadata().reflection;
446 }
448 return *internal_default_instance();
449 }
451 return reinterpret_cast<const LargeMessage*>(
453 }
454 static constexpr int kIndexInFileMessages =
455 2;
456
457 friend void swap(LargeMessage& a, LargeMessage& b) {
458 a.Swap(&b);
459 }
460 inline void Swap(LargeMessage* other) {
461 if (other == this) return;
462 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
463 if (GetOwningArena() != nullptr &&
464 GetOwningArena() == other->GetOwningArena()) {
465 #else // PROTOBUF_FORCE_COPY_IN_SWAP
466 if (GetOwningArena() == other->GetOwningArena()) {
467 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
468 InternalSwap(other);
469 } else {
470 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
471 }
472 }
474 if (other == this) return;
475 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
476 InternalSwap(other);
477 }
478
479 // implements Message ----------------------------------------------
480
481 LargeMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
482 return CreateMaybeMessage<LargeMessage>(arena);
483 }
484 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
485 void CopyFrom(const LargeMessage& from);
486 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
487 void MergeFrom( const LargeMessage& from) {
488 LargeMessage::MergeImpl(*this, from);
489 }
490 private:
491 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
492 public:
493 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
494 bool IsInitialized() const final;
495
496 size_t ByteSizeLong() const final;
497 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
498 uint8_t* _InternalSerialize(
499 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
500 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
501
502 private:
503 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
504 void SharedDtor();
505 void SetCachedSize(int size) const final;
506 void InternalSwap(LargeMessage* other);
507
508 private:
509 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
510 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
511 return "goby.test.middleware.protobuf.LargeMessage";
512 }
513 protected:
514 explicit LargeMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
515 bool is_message_owned = false);
516 public:
517
518 static const ClassData _class_data_;
519 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
520
521 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
522
523 // nested types ----------------------------------------------------
524
525 // accessors -------------------------------------------------------
526
527 enum : int {
528 kPayloadFieldNumber = 2,
529 kIndexFieldNumber = 1,
530 };
531 // optional bytes payload = 2;
532 bool has_payload() const;
533 private:
534 bool _internal_has_payload() const;
535 public:
536 void clear_payload();
537 const std::string& payload() const;
538 template <typename ArgT0 = const std::string&, typename... ArgT>
539 void set_payload(ArgT0&& arg0, ArgT... args);
540 std::string* mutable_payload();
541 PROTOBUF_NODISCARD std::string* release_payload();
542 void set_allocated_payload(std::string* payload);
543 private:
544 const std::string& _internal_payload() const;
545 inline PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const std::string& value);
546 std::string* _internal_mutable_payload();
547 public:
548
549 // optional int32 index = 1;
550 bool has_index() const;
551 private:
552 bool _internal_has_index() const;
553 public:
554 void clear_index();
555 int32_t index() const;
556 void set_index(int32_t value);
557 private:
558 int32_t _internal_index() const;
559 void _internal_set_index(int32_t value);
560 public:
561
562 // @@protoc_insertion_point(class_scope:goby.test.middleware.protobuf.LargeMessage)
563 private:
564 class _Internal;
565
566 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
567 typedef void InternalArenaConstructable_;
568 typedef void DestructorSkippable_;
569 struct Impl_ {
570 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
571 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
572 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
573 int32_t index_;
574 };
575 union { Impl_ _impl_; };
576 friend struct ::TableStruct_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto;
577};
578// ===================================================================
579
580
581// ===================================================================
582
583#ifdef __GNUC__
584 #pragma GCC diagnostic push
585 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
586#endif // __GNUC__
587// Sample
588
589// optional int32 a = 1;
590inline bool Sample::_internal_has_a() const {
591 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
592 return value;
593}
594inline bool Sample::has_a() const {
595 return _internal_has_a();
596}
597inline void Sample::clear_a() {
598 _impl_.a_ = 0;
599 _impl_._has_bits_[0] &= ~0x00000001u;
600}
601inline int32_t Sample::_internal_a() const {
602 return _impl_.a_;
603}
604inline int32_t Sample::a() const {
605 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Sample.a)
606 return _internal_a();
607}
608inline void Sample::_internal_set_a(int32_t value) {
609 _impl_._has_bits_[0] |= 0x00000001u;
610 _impl_.a_ = value;
611}
612inline void Sample::set_a(int32_t value) {
613 _internal_set_a(value);
614 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Sample.a)
615}
616
617// -------------------------------------------------------------------
618
619// Widget
620
621// optional int32 b = 1;
622inline bool Widget::_internal_has_b() const {
623 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
624 return value;
625}
626inline bool Widget::has_b() const {
627 return _internal_has_b();
628}
629inline void Widget::clear_b() {
630 _impl_.b_ = 0;
631 _impl_._has_bits_[0] &= ~0x00000001u;
632}
633inline int32_t Widget::_internal_b() const {
634 return _impl_.b_;
635}
636inline int32_t Widget::b() const {
637 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.Widget.b)
638 return _internal_b();
639}
640inline void Widget::_internal_set_b(int32_t value) {
641 _impl_._has_bits_[0] |= 0x00000001u;
642 _impl_.b_ = value;
643}
644inline void Widget::set_b(int32_t value) {
645 _internal_set_b(value);
646 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.Widget.b)
647}
648
649// -------------------------------------------------------------------
650
651// LargeMessage
652
653// optional int32 index = 1;
654inline bool LargeMessage::_internal_has_index() const {
655 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
656 return value;
657}
658inline bool LargeMessage::has_index() const {
659 return _internal_has_index();
660}
661inline void LargeMessage::clear_index() {
662 _impl_.index_ = 0;
663 _impl_._has_bits_[0] &= ~0x00000002u;
664}
665inline int32_t LargeMessage::_internal_index() const {
666 return _impl_.index_;
667}
668inline int32_t LargeMessage::index() const {
669 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.LargeMessage.index)
670 return _internal_index();
671}
672inline void LargeMessage::_internal_set_index(int32_t value) {
673 _impl_._has_bits_[0] |= 0x00000002u;
674 _impl_.index_ = value;
675}
676inline void LargeMessage::set_index(int32_t value) {
677 _internal_set_index(value);
678 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.LargeMessage.index)
679}
680
681// optional bytes payload = 2;
682inline bool LargeMessage::_internal_has_payload() const {
683 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
684 return value;
685}
686inline bool LargeMessage::has_payload() const {
687 return _internal_has_payload();
688}
689inline void LargeMessage::clear_payload() {
690 _impl_.payload_.ClearToEmpty();
691 _impl_._has_bits_[0] &= ~0x00000001u;
692}
693inline const std::string& LargeMessage::payload() const {
694 // @@protoc_insertion_point(field_get:goby.test.middleware.protobuf.LargeMessage.payload)
695 return _internal_payload();
696}
697template <typename ArgT0, typename... ArgT>
698inline PROTOBUF_ALWAYS_INLINE
699void LargeMessage::set_payload(ArgT0&& arg0, ArgT... args) {
700 _impl_._has_bits_[0] |= 0x00000001u;
701 _impl_.payload_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
702 // @@protoc_insertion_point(field_set:goby.test.middleware.protobuf.LargeMessage.payload)
703}
704inline std::string* LargeMessage::mutable_payload() {
705 std::string* _s = _internal_mutable_payload();
706 // @@protoc_insertion_point(field_mutable:goby.test.middleware.protobuf.LargeMessage.payload)
707 return _s;
708}
709inline const std::string& LargeMessage::_internal_payload() const {
710 return _impl_.payload_.Get();
711}
712inline void LargeMessage::_internal_set_payload(const std::string& value) {
713 _impl_._has_bits_[0] |= 0x00000001u;
714 _impl_.payload_.Set(value, GetArenaForAllocation());
715}
716inline std::string* LargeMessage::_internal_mutable_payload() {
717 _impl_._has_bits_[0] |= 0x00000001u;
718 return _impl_.payload_.Mutable(GetArenaForAllocation());
719}
720inline std::string* LargeMessage::release_payload() {
721 // @@protoc_insertion_point(field_release:goby.test.middleware.protobuf.LargeMessage.payload)
722 if (!_internal_has_payload()) {
723 return nullptr;
724 }
725 _impl_._has_bits_[0] &= ~0x00000001u;
726 auto* p = _impl_.payload_.Release();
727#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
728 if (_impl_.payload_.IsDefault()) {
729 _impl_.payload_.Set("", GetArenaForAllocation());
730 }
731#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
732 return p;
733}
734inline void LargeMessage::set_allocated_payload(std::string* payload) {
735 if (payload != nullptr) {
736 _impl_._has_bits_[0] |= 0x00000001u;
737 } else {
738 _impl_._has_bits_[0] &= ~0x00000001u;
739 }
740 _impl_.payload_.SetAllocated(payload, GetArenaForAllocation());
741#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
742 if (_impl_.payload_.IsDefault()) {
743 _impl_.payload_.Set("", GetArenaForAllocation());
744 }
745#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
746 // @@protoc_insertion_point(field_set_allocated:goby.test.middleware.protobuf.LargeMessage.payload)
747}
748
749#ifdef __GNUC__
750 #pragma GCC diagnostic pop
751#endif // __GNUC__
752// -------------------------------------------------------------------
753
754// -------------------------------------------------------------------
755
756
757// @@protoc_insertion_point(namespace_scope)
758
759} // namespace protobuf
760} // namespace middleware
761} // namespace test
762} // namespace goby
763
764// @@protoc_insertion_point(global_scope)
765
766#include <google/protobuf/port_undef.inc>
767#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto
void set_b(int32_t value)
Definition test.pb.h:252
int32_t b() const
Definition test.pb.h:244
void clear_b()
Definition test.pb.h:237
bool has_b() const
Definition test.pb.h:234
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_CONSTEXPR LargeMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void CopyFrom(const LargeMessage &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:434
LargeMessage(LargeMessage &&from) noexcept
Definition test.pb.h:408
static const LargeMessage * internal_default_instance()
Definition test.pb.h:450
LargeMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:444
LargeMessage & operator=(const LargeMessage &from)
Definition test.pb.h:413
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:441
LargeMessage & operator=(LargeMessage &&from) noexcept
Definition test.pb.h:417
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:431
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:438
static const LargeMessage & default_instance()
Definition test.pb.h:447
friend void swap(LargeMessage &a, LargeMessage &b)
Definition test.pb.h:457
LargeMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:481
void UnsafeArenaSwap(LargeMessage *other)
Definition test.pb.h:473
void set_payload(ArgT0 &&arg0, ArgT... args)
void MergeFrom(const LargeMessage &from)
Definition test.pb.h:487
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Sample * internal_default_instance()
Definition test.pb.h:130
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:121
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Sample & operator=(const Sample &from)
Definition test.pb.h:93
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:114
Sample & operator=(Sample &&from) noexcept
Definition test.pb.h:97
static const Sample & default_instance()
Definition test.pb.h:127
static constexpr int kIndexInFileMessages
Definition test.pb.h:134
friend void swap(Sample &a, Sample &b)
Definition test.pb.h:137
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void MergeFrom(const Sample &from)
Definition test.pb.h:167
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
Definition test.pb.h:198
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:161
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Sample(Sample &&from) noexcept
Definition test.pb.h:88
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:124
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:111
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:118
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:274
Widget & operator=(const Widget &from)
Definition test.pb.h:253
PROTOBUF_CONSTEXPR Widget(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Widget & operator=(Widget &&from) noexcept
Definition test.pb.h:257
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:284
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:287
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:271
void MergeFrom(const Widget &from)
Definition test.pb.h:327
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:278
static const Widget * internal_default_instance()
Definition test.pb.h:290
Widget * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:321
friend void swap(Widget &a, Widget &b)
Definition test.pb.h:297
Widget(Widget &&from) noexcept
Definition test.pb.h:248
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:281
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ClassData _class_data_
Definition test.pb.h:358
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fmiddleware_2fmiddleware_5finterprocess_5fforwarder_2ftest_2eproto
WidgetDefaultTypeInternal _Widget_default_instance_
LargeMessageDefaultTypeInternal _LargeMessage_default_instance_
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