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