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