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/middleware/publisher_subscriber_options/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_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 "dccl/option_extensions.pb.h"
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto;
52namespace goby {
53namespace test {
54namespace middleware {
55namespace publisher_subscriber_options {
56namespace protobuf {
57class Sample;
58struct SampleDefaultTypeInternal;
59extern SampleDefaultTypeInternal _Sample_default_instance_;
60} // namespace protobuf
61} // namespace publisher_subscriber_options
62} // namespace middleware
63} // namespace test
64} // namespace goby
65PROTOBUF_NAMESPACE_OPEN
66template<> ::goby::test::middleware::publisher_subscriber_options::protobuf::Sample* Arena::CreateMaybeMessage<::goby::test::middleware::publisher_subscriber_options::protobuf::Sample>(Arena*);
67PROTOBUF_NAMESPACE_CLOSE
68namespace goby {
69namespace test {
70namespace middleware {
71namespace publisher_subscriber_options {
72namespace protobuf {
73
74// ===================================================================
75
76class Sample final :
77 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.middleware.publisher_subscriber_options.protobuf.Sample) */ {
78 public:
79 inline Sample() : Sample(nullptr) {}
80 ~Sample() override;
81 explicit PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82
83 Sample(const Sample& from);
84 Sample(Sample&& from) noexcept
85 : Sample() {
86 *this = ::std::move(from);
87 }
88
89 inline Sample& operator=(const Sample& from) {
90 CopyFrom(from);
91 return *this;
92 }
93 inline Sample& operator=(Sample&& from) noexcept {
94 if (this == &from) return *this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() != nullptr
98 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
99 ) {
100 InternalSwap(&from);
101 } else {
102 CopyFrom(from);
103 }
104 return *this;
105 }
106
107 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109 }
110 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 }
113
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115 return GetDescriptor();
116 }
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118 return default_instance().GetMetadata().descriptor;
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121 return default_instance().GetMetadata().reflection;
122 }
123 static const Sample& default_instance() {
125 }
126 static inline const Sample* internal_default_instance() {
127 return reinterpret_cast<const Sample*>(
129 }
130 static constexpr int kIndexInFileMessages =
131 0;
132
133 friend void swap(Sample& a, Sample& b) {
134 a.Swap(&b);
135 }
136 inline void Swap(Sample* other) {
137 if (other == this) return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() != nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
141 #else // PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() == other->GetOwningArena()) {
143 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
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(GetOwningArena() == other->GetOwningArena());
152 InternalSwap(other);
153 }
154
155 // implements Message ----------------------------------------------
156
157 Sample* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158 return CreateMaybeMessage<Sample>(arena);
159 }
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 void CopyFrom(const Sample& from);
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 void MergeFrom( const Sample& from) {
164 Sample::MergeImpl(*this, from);
165 }
166 private:
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 public:
169 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170 bool IsInitialized() const final;
171
172 size_t ByteSizeLong() const final;
173 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
177
178 private:
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
180 void SharedDtor();
181 void SetCachedSize(int size) const final;
182 void InternalSwap(Sample* other);
183
184 private:
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.test.middleware.publisher_subscriber_options.protobuf.Sample";
188 }
189 protected:
190 explicit Sample(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191 bool is_message_owned = false);
192 public:
193
194 static const ClassData _class_data_;
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
196
197 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
198
199 // nested types ----------------------------------------------------
200
201 // accessors -------------------------------------------------------
202
203 enum : int {
206 };
207 // optional int32 a = 1 [(.dccl.field) = {
208 bool has_a() const;
209 private:
210 bool _internal_has_a() const;
211 public:
212 void clear_a();
213 int32_t a() const;
214 void set_a(int32_t value);
215 private:
216 int32_t _internal_a() const;
217 void _internal_set_a(int32_t value);
218 public:
219
220 // optional uint32 group = 2 [(.dccl.field) = {
221 bool has_group() const;
222 private:
223 bool _internal_has_group() const;
224 public:
225 void clear_group();
226 uint32_t group() const;
227 void set_group(uint32_t value);
228 private:
229 uint32_t _internal_group() const;
230 void _internal_set_group(uint32_t value);
231 public:
232
234 // @@protoc_insertion_point(class_scope:goby.test.middleware.publisher_subscriber_options.protobuf.Sample)
235 private:
236 class _Internal;
237
238 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
239 typedef void InternalArenaConstructable_;
240 typedef void DestructorSkippable_;
241 struct Impl_ {
242 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
243 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
244 int32_t a_;
245 uint32_t group_;
246 };
247 union { Impl_ _impl_; };
248 friend struct ::TableStruct_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto;
249};
250// ===================================================================
251
252
253// ===================================================================
254
255#ifdef __GNUC__
256 #pragma GCC diagnostic push
257 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258#endif // __GNUC__
259// Sample
260
261// optional int32 a = 1 [(.dccl.field) = {
262inline bool Sample::_internal_has_a() const {
263 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
264 return value;
265}
266inline bool Sample::has_a() const {
267 return _internal_has_a();
268}
269inline void Sample::clear_a() {
270 _impl_.a_ = 0;
271 _impl_._has_bits_[0] &= ~0x00000001u;
272}
273inline int32_t Sample::_internal_a() const {
274 return _impl_.a_;
275}
276inline int32_t Sample::a() const {
277 // @@protoc_insertion_point(field_get:goby.test.middleware.publisher_subscriber_options.protobuf.Sample.a)
278 return _internal_a();
279}
280inline void Sample::_internal_set_a(int32_t value) {
281 _impl_._has_bits_[0] |= 0x00000001u;
282 _impl_.a_ = value;
283}
284inline void Sample::set_a(int32_t value) {
285 _internal_set_a(value);
286 // @@protoc_insertion_point(field_set:goby.test.middleware.publisher_subscriber_options.protobuf.Sample.a)
287}
288
289// optional uint32 group = 2 [(.dccl.field) = {
290inline bool Sample::_internal_has_group() const {
291 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
292 return value;
293}
294inline bool Sample::has_group() const {
295 return _internal_has_group();
296}
297inline void Sample::clear_group() {
298 _impl_.group_ = 0u;
299 _impl_._has_bits_[0] &= ~0x00000002u;
300}
301inline uint32_t Sample::_internal_group() const {
302 return _impl_.group_;
303}
304inline uint32_t Sample::group() const {
305 // @@protoc_insertion_point(field_get:goby.test.middleware.publisher_subscriber_options.protobuf.Sample.group)
306 return _internal_group();
307}
308inline void Sample::_internal_set_group(uint32_t value) {
309 _impl_._has_bits_[0] |= 0x00000002u;
310 _impl_.group_ = value;
311}
312inline void Sample::set_group(uint32_t value) {
313 _internal_set_group(value);
314 // @@protoc_insertion_point(field_set:goby.test.middleware.publisher_subscriber_options.protobuf.Sample.group)
315}
316
317#ifdef __GNUC__
318 #pragma GCC diagnostic pop
319#endif // __GNUC__
320
321// @@protoc_insertion_point(namespace_scope)
322
323} // namespace protobuf
324} // namespace publisher_subscriber_options
325} // namespace middleware
326} // namespace test
327} // namespace goby
328
329// @@protoc_insertion_point(global_scope)
330
331#include <google/protobuf/port_undef.inc>
332#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:110
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:120
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:117
Sample(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_CONSTEXPR Sample(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:107
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:114
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Sample * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:157
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmiddleware_2fpublisher_5fsubscriber_5foptions_2ftest_2eproto
The global namespace for the Goby project.