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/zeromq/poller_attach_test/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fpoller_5fattach_5ftest_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fpoller_5fattach_5ftest_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_2fzeromq_2fpoller_5fattach_5ftest_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_2fzeromq_2fpoller_5fattach_5ftest_2ftest_2eproto;
51namespace goby {
52namespace test {
53namespace zeromq {
54namespace poller_attach_test {
55namespace protobuf {
56class Sample;
57struct SampleDefaultTypeInternal;
58extern SampleDefaultTypeInternal _Sample_default_instance_;
59} // namespace protobuf
60} // namespace poller_attach_test
61} // namespace zeromq
62} // namespace test
63} // namespace goby
64PROTOBUF_NAMESPACE_OPEN
65template<> ::goby::test::zeromq::poller_attach_test::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::zeromq::poller_attach_test::protobuf::Sample>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace goby {
68namespace test {
69namespace zeromq {
70namespace poller_attach_test {
71namespace protobuf {
72
73// ===================================================================
74
75class Sample final :
76 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.zeromq.poller_attach_test.protobuf.Sample) */ {
77 public:
78 inline Sample() : Sample(nullptr) {}
79 ~Sample() override;
80 explicit PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81
82 Sample(const Sample& from);
83 Sample(Sample&& from) noexcept
84 : Sample() {
85 *this = ::std::move(from);
86 }
87
88 inline Sample& operator=(const Sample& from) {
89 CopyFrom(from);
90 return *this;
91 }
92 inline Sample& operator=(Sample&& from) noexcept {
93 if (this == &from) return *this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() != nullptr
97 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
98 ) {
99 InternalSwap(&from);
100 } else {
101 CopyFrom(from);
102 }
103 return *this;
104 }
105
106 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108 }
109 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
111 }
112
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
114 return GetDescriptor();
115 }
116 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
117 return default_instance().GetMetadata().descriptor;
118 }
119 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
120 return default_instance().GetMetadata().reflection;
121 }
122 static const Sample& default_instance() {
124 }
125 static inline const Sample* internal_default_instance() {
126 return reinterpret_cast<const Sample*>(
128 }
129 static constexpr int kIndexInFileMessages =
130 0;
131
132 friend void swap(Sample& a, Sample& b) {
133 a.Swap(&b);
134 }
135 inline void Swap(Sample* other) {
136 if (other == this) return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() != nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
140 #else // PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() == other->GetOwningArena()) {
142 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
143 InternalSwap(other);
144 } else {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
146 }
147 }
148 void UnsafeArenaSwap(Sample* other) {
149 if (other == this) return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 InternalSwap(other);
152 }
153
154 // implements Message ----------------------------------------------
155
156 Sample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
157 return CreateMaybeMessage<Sample>(arena);
158 }
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 void CopyFrom(const Sample& from);
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 void MergeFrom( const Sample& from) {
163 Sample::MergeImpl(*this, from);
164 }
165 private:
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
167 public:
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;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
176
177 private:
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
179 void SharedDtor();
180 void SetCachedSize(int size) const final;
181 void InternalSwap(Sample* other);
182
183 private:
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "goby.test.zeromq.poller_attach_test.protobuf.Sample";
187 }
188 protected:
189 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned = false);
191 public:
192
193 static const ClassData _class_data_;
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
195
196 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
197
198 // nested types ----------------------------------------------------
199
200 // accessors -------------------------------------------------------
201
202 enum : int {
204 };
205 // optional int32 a = 1;
206 bool has_a() const;
207 private:
208 bool _internal_has_a() const;
209 public:
210 void clear_a();
211 int32_t a() const;
212 void set_a(int32_t value);
213 private:
214 int32_t _internal_a() const;
215 void _internal_set_a(int32_t value);
216 public:
217
218 // @@protoc_insertion_point(class_scope:goby.test.zeromq.poller_attach_test.protobuf.Sample)
219 private:
220 class _Internal;
221
222 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
223 typedef void InternalArenaConstructable_;
224 typedef void DestructorSkippable_;
225 struct Impl_ {
226 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
227 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
228 int32_t a_;
229 };
230 union { Impl_ _impl_; };
231 friend struct ::TableStruct_goby_2ftest_2fzeromq_2fpoller_5fattach_5ftest_2ftest_2eproto;
232};
233// ===================================================================
234
235
236// ===================================================================
237
238#ifdef __GNUC__
239 #pragma GCC diagnostic push
240 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
241#endif // __GNUC__
242// Sample
243
244// optional int32 a = 1;
245inline bool Sample::_internal_has_a() const {
246 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
247 return value;
248}
249inline bool Sample::has_a() const {
250 return _internal_has_a();
251}
252inline void Sample::clear_a() {
253 _impl_.a_ = 0;
254 _impl_._has_bits_[0] &= ~0x00000001u;
255}
256inline int32_t Sample::_internal_a() const {
257 return _impl_.a_;
258}
259inline int32_t Sample::a() const {
260 // @@protoc_insertion_point(field_get:goby.test.zeromq.poller_attach_test.protobuf.Sample.a)
261 return _internal_a();
262}
263inline void Sample::_internal_set_a(int32_t value) {
264 _impl_._has_bits_[0] |= 0x00000001u;
265 _impl_.a_ = value;
266}
267inline void Sample::set_a(int32_t value) {
268 _internal_set_a(value);
269 // @@protoc_insertion_point(field_set:goby.test.zeromq.poller_attach_test.protobuf.Sample.a)
270}
271
272#ifdef __GNUC__
273 #pragma GCC diagnostic pop
274#endif // __GNUC__
275
276// @@protoc_insertion_point(namespace_scope)
277
278} // namespace protobuf
279} // namespace poller_attach_test
280} // namespace zeromq
281} // namespace test
282} // namespace goby
283
284// @@protoc_insertion_point(global_scope)
285
286#include <google/protobuf/port_undef.inc>
287#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2fzeromq_2fpoller_5fattach_5ftest_2ftest_2eproto
PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:156
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:106
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:109
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:119
Sample & operator=(Sample &&from) noexcept
Definition test.pb.h:92
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:113
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:116
SampleDefaultTypeInternal _Sample_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2fzeromq_2fpoller_5fattach_5ftest_2ftest_2eproto