-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree.pb.h
More file actions
401 lines (352 loc) · 14 KB
/
tree.pb.h
File metadata and controls
401 lines (352 loc) · 14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tree.proto
// Protobuf C++ Version: 7.34.0
#ifndef tree_2eproto_2epb_2eh
#define tree_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
// clang-format off
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 7034000
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_tree_2eproto
namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_tree_2eproto {
static const ::uint32_t offsets[];
};
extern "C" {
extern const ::google::protobuf::internal::DescriptorTable descriptor_table_tree_2eproto;
} // extern "C"
namespace PB_Bench {
class Node;
struct NodeDefaultTypeInternal;
extern NodeDefaultTypeInternal _Node_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull Node_class_data_;
} // namespace PB_Bench
namespace google {
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace PB_Bench {
// ===================================================================
// -------------------------------------------------------------------
class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Node final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:PB_Bench.Node) */ {
public:
inline Node() : Node(nullptr) {}
~Node() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Node* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Node));
}
#endif
template <typename = void>
explicit constexpr Node(::google::protobuf::internal::ConstantInitialized);
inline Node(const Node& from) : Node(nullptr, from) {}
inline Node(Node&& from) noexcept
: Node(nullptr, ::std::move(from)) {}
inline Node& operator=(const Node& from) {
CopyFrom(from);
return *this;
}
inline Node& operator=(Node&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
[[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
[[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL
mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
[[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
[[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL
GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
[[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
[[nodiscard]] static const Node& default_instance() {
return *reinterpret_cast<const Node*>(
&_Node_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Node& a, Node& b) { a.Swap(&b); }
inline void Swap(Node* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Node* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
[[nodiscard]] Node* PROTOBUF_NONNULL
New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Node>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Node& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Node& from) { Node::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
[[nodiscard]] bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
[[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
[[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
[[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
[[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
[[nodiscard]] ::size_t ByteSizeLong() const final;
[[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
[[nodiscard]] int GetCachedSize() const {
return _impl_._cached_size_.Get();
}
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Node* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "PB_Bench.Node"; }
explicit Node(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
Node(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Node& from);
Node(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Node&& from) noexcept
: Node(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
[[nodiscard]] ::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kChildrenFieldNumber = 2,
kIdFieldNumber = 1,
};
// repeated .PB_Bench.Node children = 2;
[[nodiscard]] int children_size()
const;
private:
int _internal_children_size() const;
public:
void clear_children() ;
[[nodiscard]] ::PB_Bench::Node* PROTOBUF_NONNULL mutable_children(int index);
[[nodiscard]] ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>* PROTOBUF_NONNULL
mutable_children();
private:
const ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>& _internal_children() const;
::google::protobuf::RepeatedPtrField<::PB_Bench::Node>* PROTOBUF_NONNULL _internal_mutable_children();
public:
[[nodiscard]] const ::PB_Bench::Node& children(int index) const;
::PB_Bench::Node* PROTOBUF_NONNULL add_children();
[[nodiscard]] const ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>& children()
const;
// int32 id = 1;
void clear_id() ;
[[nodiscard]] ::int32_t id() const;
void set_id(::int32_t value);
private:
::int32_t _internal_id() const;
void _internal_set_id(::int32_t value);
public:
// @@protoc_insertion_point(class_scope:PB_Bench.Node)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<1, 2,
1, 0,
2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
friend ::google::protobuf::internal::PrivateAccess;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const Node& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::PB_Bench::Node > children_;
::int32_t id_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_tree_2eproto;
};
extern const ::google::protobuf::internal::ClassDataFull Node_class_data_;
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Node
// int32 id = 1;
inline void Node::clear_id() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.id_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000002U);
}
inline ::int32_t Node::id() const {
// @@protoc_insertion_point(field_get:PB_Bench.Node.id)
return _internal_id();
}
inline void Node::set_id(::int32_t value) {
_internal_set_id(value);
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_set:PB_Bench.Node.id)
}
inline ::int32_t Node::_internal_id() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.id_;
}
inline void Node::_internal_set_id(::int32_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.id_ = value;
}
// repeated .PB_Bench.Node children = 2;
inline int Node::_internal_children_size() const {
return _internal_children().size();
}
inline int Node::children_size() const {
return _internal_children_size();
}
inline void Node::clear_children() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.children_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000001U);
}
inline ::PB_Bench::Node* PROTOBUF_NONNULL Node::mutable_children(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:PB_Bench.Node.children)
return _internal_mutable_children()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>* PROTOBUF_NONNULL Node::mutable_children()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_mutable_list:PB_Bench.Node.children)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_children();
}
inline const ::PB_Bench::Node& Node::children(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:PB_Bench.Node.children)
return _internal_children().Get(index);
}
inline ::PB_Bench::Node* PROTOBUF_NONNULL Node::add_children()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::PB_Bench::Node* _add =
_internal_mutable_children()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_add:PB_Bench.Node.children)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>& Node::children() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:PB_Bench.Node.children)
return _internal_children();
}
inline const ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>&
Node::_internal_children() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.children_;
}
inline ::google::protobuf::RepeatedPtrField<::PB_Bench::Node>* PROTOBUF_NONNULL
Node::_internal_mutable_children() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.children_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace PB_Bench
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
// clang-format on
#endif // tree_2eproto_2epb_2eh