/src/rocksdb/fuzz/proto/gen/db_operation.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // NO CHECKED-IN PROTOBUF GENCODE |
3 | | // source: db_operation.proto |
4 | | // Protobuf C++ Version: 5.29.3 |
5 | | |
6 | | #ifndef db_5foperation_2eproto_2epb_2eh |
7 | | #define db_5foperation_2eproto_2epb_2eh |
8 | | |
9 | | #include <limits> |
10 | | #include <string> |
11 | | #include <type_traits> |
12 | | #include <utility> |
13 | | |
14 | | #include "google/protobuf/runtime_version.h" |
15 | | #if PROTOBUF_VERSION != 5029003 |
16 | | #error "Protobuf C++ gencode is built with an incompatible version of" |
17 | | #error "Protobuf C++ headers/runtime. See" |
18 | | #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" |
19 | | #endif |
20 | | #include "google/protobuf/io/coded_stream.h" |
21 | | #include "google/protobuf/arena.h" |
22 | | #include "google/protobuf/arenastring.h" |
23 | | #include "google/protobuf/generated_message_tctable_decl.h" |
24 | | #include "google/protobuf/generated_message_util.h" |
25 | | #include "google/protobuf/metadata_lite.h" |
26 | | #include "google/protobuf/generated_message_reflection.h" |
27 | | #include "google/protobuf/message.h" |
28 | | #include "google/protobuf/message_lite.h" |
29 | | #include "google/protobuf/repeated_field.h" // IWYU pragma: export |
30 | | #include "google/protobuf/extension_set.h" // IWYU pragma: export |
31 | | #include "google/protobuf/generated_enum_reflection.h" |
32 | | #include "google/protobuf/unknown_field_set.h" |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | // Must be included last. |
36 | | #include "google/protobuf/port_def.inc" |
37 | | |
38 | | #define PROTOBUF_INTERNAL_EXPORT_db_5foperation_2eproto |
39 | | |
40 | | namespace google { |
41 | | namespace protobuf { |
42 | | namespace internal { |
43 | | template <typename T> |
44 | | ::absl::string_view GetAnyMessageName(); |
45 | | } // namespace internal |
46 | | } // namespace protobuf |
47 | | } // namespace google |
48 | | |
49 | | // Internal implementation detail -- do not use these members. |
50 | | struct TableStruct_db_5foperation_2eproto { |
51 | | static const ::uint32_t offsets[]; |
52 | | }; |
53 | | extern const ::google::protobuf::internal::DescriptorTable |
54 | | descriptor_table_db_5foperation_2eproto; |
55 | | class DBOperation; |
56 | | struct DBOperationDefaultTypeInternal; |
57 | | extern DBOperationDefaultTypeInternal _DBOperation_default_instance_; |
58 | | class DBOperations; |
59 | | struct DBOperationsDefaultTypeInternal; |
60 | | extern DBOperationsDefaultTypeInternal _DBOperations_default_instance_; |
61 | | namespace google { |
62 | | namespace protobuf { |
63 | | } // namespace protobuf |
64 | | } // namespace google |
65 | | |
66 | | enum OpType : int { |
67 | | PUT = 0, |
68 | | MERGE = 1, |
69 | | DELETE = 2, |
70 | | DELETE_RANGE = 3, |
71 | | }; |
72 | | |
73 | | bool OpType_IsValid(int value); |
74 | | extern const uint32_t OpType_internal_data_[]; |
75 | | constexpr OpType OpType_MIN = static_cast<OpType>(0); |
76 | | constexpr OpType OpType_MAX = static_cast<OpType>(3); |
77 | | constexpr int OpType_ARRAYSIZE = 3 + 1; |
78 | | const ::google::protobuf::EnumDescriptor* |
79 | | OpType_descriptor(); |
80 | | template <typename T> |
81 | | const std::string& OpType_Name(T value) { |
82 | | static_assert(std::is_same<T, OpType>::value || |
83 | | std::is_integral<T>::value, |
84 | | "Incorrect type passed to OpType_Name()."); |
85 | | return OpType_Name(static_cast<OpType>(value)); |
86 | | } |
87 | | template <> |
88 | 0 | inline const std::string& OpType_Name(OpType value) { |
89 | 0 | return ::google::protobuf::internal::NameOfDenseEnum<OpType_descriptor, |
90 | 0 | 0, 3>( |
91 | 0 | static_cast<int>(value)); |
92 | 0 | } |
93 | 0 | inline bool OpType_Parse(absl::string_view name, OpType* value) { |
94 | 0 | return ::google::protobuf::internal::ParseNamedEnum<OpType>( |
95 | 0 | OpType_descriptor(), name, value); |
96 | 0 | } |
97 | | |
98 | | // =================================================================== |
99 | | |
100 | | |
101 | | // ------------------------------------------------------------------- |
102 | | |
103 | | class DBOperation final : public ::google::protobuf::Message |
104 | | /* @@protoc_insertion_point(class_definition:DBOperation) */ { |
105 | | public: |
106 | 0 | inline DBOperation() : DBOperation(nullptr) {} |
107 | | ~DBOperation() PROTOBUF_FINAL; |
108 | | |
109 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
110 | | void operator delete(DBOperation* msg, std::destroying_delete_t) { |
111 | | SharedDtor(*msg); |
112 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(DBOperation)); |
113 | | } |
114 | | #endif |
115 | | |
116 | | template <typename = void> |
117 | | explicit PROTOBUF_CONSTEXPR DBOperation( |
118 | | ::google::protobuf::internal::ConstantInitialized); |
119 | | |
120 | 0 | inline DBOperation(const DBOperation& from) : DBOperation(nullptr, from) {} |
121 | | inline DBOperation(DBOperation&& from) noexcept |
122 | 0 | : DBOperation(nullptr, std::move(from)) {} |
123 | 0 | inline DBOperation& operator=(const DBOperation& from) { |
124 | 0 | CopyFrom(from); |
125 | 0 | return *this; |
126 | 0 | } |
127 | 0 | inline DBOperation& operator=(DBOperation&& from) noexcept { |
128 | 0 | if (this == &from) return *this; |
129 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
130 | 0 | InternalSwap(&from); |
131 | 0 | } else { |
132 | 0 | CopyFrom(from); |
133 | 0 | } |
134 | 0 | return *this; |
135 | 0 | } |
136 | | |
137 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
138 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
139 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
140 | 0 | } |
141 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
142 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
143 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
144 | 0 | } |
145 | | |
146 | 0 | static const ::google::protobuf::Descriptor* descriptor() { |
147 | 0 | return GetDescriptor(); |
148 | 0 | } |
149 | 0 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
150 | 0 | return default_instance().GetMetadata().descriptor; |
151 | 0 | } |
152 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
153 | 0 | return default_instance().GetMetadata().reflection; |
154 | 0 | } |
155 | 0 | static const DBOperation& default_instance() { |
156 | 0 | return *internal_default_instance(); |
157 | 0 | } |
158 | 0 | static inline const DBOperation* internal_default_instance() { |
159 | 0 | return reinterpret_cast<const DBOperation*>( |
160 | 0 | &_DBOperation_default_instance_); |
161 | 0 | } |
162 | | static constexpr int kIndexInFileMessages = 0; |
163 | 0 | friend void swap(DBOperation& a, DBOperation& b) { a.Swap(&b); } |
164 | 0 | inline void Swap(DBOperation* other) { |
165 | 0 | if (other == this) return; |
166 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
167 | 0 | InternalSwap(other); |
168 | 0 | } else { |
169 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
170 | 0 | } |
171 | 0 | } |
172 | 0 | void UnsafeArenaSwap(DBOperation* other) { |
173 | 0 | if (other == this) return; |
174 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
175 | 0 | InternalSwap(other); |
176 | 0 | } |
177 | | |
178 | | // implements Message ---------------------------------------------- |
179 | | |
180 | 0 | DBOperation* New(::google::protobuf::Arena* arena = nullptr) const { |
181 | 0 | return ::google::protobuf::Message::DefaultConstruct<DBOperation>(arena); |
182 | 0 | } |
183 | | using ::google::protobuf::Message::CopyFrom; |
184 | | void CopyFrom(const DBOperation& from); |
185 | | using ::google::protobuf::Message::MergeFrom; |
186 | 0 | void MergeFrom(const DBOperation& from) { DBOperation::MergeImpl(*this, from); } |
187 | | |
188 | | private: |
189 | | static void MergeImpl( |
190 | | ::google::protobuf::MessageLite& to_msg, |
191 | | const ::google::protobuf::MessageLite& from_msg); |
192 | | |
193 | | public: |
194 | 0 | bool IsInitialized() const { |
195 | 0 | return IsInitializedImpl(*this); |
196 | 0 | } |
197 | | |
198 | | private: |
199 | | static bool IsInitializedImpl(const MessageLite& msg); |
200 | | |
201 | | public: |
202 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
203 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
204 | | private: |
205 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
206 | | static ::uint8_t* _InternalSerialize( |
207 | | const MessageLite& msg, ::uint8_t* target, |
208 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
209 | | |
210 | | public: |
211 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
212 | | ::uint8_t* _InternalSerialize( |
213 | | ::uint8_t* target, |
214 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
215 | | return _InternalSerialize(*this, target, stream); |
216 | | } |
217 | | #else // PROTOBUF_CUSTOM_VTABLE |
218 | | ::size_t ByteSizeLong() const final; |
219 | | ::uint8_t* _InternalSerialize( |
220 | | ::uint8_t* target, |
221 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
222 | | #endif // PROTOBUF_CUSTOM_VTABLE |
223 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
224 | | |
225 | | private: |
226 | | void SharedCtor(::google::protobuf::Arena* arena); |
227 | | static void SharedDtor(MessageLite& self); |
228 | | void InternalSwap(DBOperation* other); |
229 | | private: |
230 | | template <typename T> |
231 | | friend ::absl::string_view( |
232 | | ::google::protobuf::internal::GetAnyMessageName)(); |
233 | 0 | static ::absl::string_view FullMessageName() { return "DBOperation"; } |
234 | | |
235 | | protected: |
236 | | explicit DBOperation(::google::protobuf::Arena* arena); |
237 | | DBOperation(::google::protobuf::Arena* arena, const DBOperation& from); |
238 | | DBOperation(::google::protobuf::Arena* arena, DBOperation&& from) noexcept |
239 | 0 | : DBOperation(arena) { |
240 | 0 | *this = ::std::move(from); |
241 | 0 | } |
242 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
243 | | static void* PlacementNew_(const void*, void* mem, |
244 | | ::google::protobuf::Arena* arena); |
245 | | static constexpr auto InternalNewImpl_(); |
246 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
247 | | |
248 | | public: |
249 | | ::google::protobuf::Metadata GetMetadata() const; |
250 | | // nested types ---------------------------------------------------- |
251 | | |
252 | | // accessors ------------------------------------------------------- |
253 | | enum : int { |
254 | | kKeyFieldNumber = 1, |
255 | | kValueFieldNumber = 2, |
256 | | kTypeFieldNumber = 3, |
257 | | }; |
258 | | // required string key = 1; |
259 | | bool has_key() const; |
260 | | void clear_key() ; |
261 | | const std::string& key() const; |
262 | | template <typename Arg_ = const std::string&, typename... Args_> |
263 | | void set_key(Arg_&& arg, Args_... args); |
264 | | std::string* mutable_key(); |
265 | | PROTOBUF_NODISCARD std::string* release_key(); |
266 | | void set_allocated_key(std::string* value); |
267 | | |
268 | | private: |
269 | | const std::string& _internal_key() const; |
270 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_key( |
271 | | const std::string& value); |
272 | | std::string* _internal_mutable_key(); |
273 | | |
274 | | public: |
275 | | // optional string value = 2; |
276 | | bool has_value() const; |
277 | | void clear_value() ; |
278 | | const std::string& value() const; |
279 | | template <typename Arg_ = const std::string&, typename... Args_> |
280 | | void set_value(Arg_&& arg, Args_... args); |
281 | | std::string* mutable_value(); |
282 | | PROTOBUF_NODISCARD std::string* release_value(); |
283 | | void set_allocated_value(std::string* value); |
284 | | |
285 | | private: |
286 | | const std::string& _internal_value() const; |
287 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( |
288 | | const std::string& value); |
289 | | std::string* _internal_mutable_value(); |
290 | | |
291 | | public: |
292 | | // required .OpType type = 3; |
293 | | bool has_type() const; |
294 | | void clear_type() ; |
295 | | ::OpType type() const; |
296 | | void set_type(::OpType value); |
297 | | |
298 | | private: |
299 | | ::OpType _internal_type() const; |
300 | | void _internal_set_type(::OpType value); |
301 | | |
302 | | public: |
303 | | // @@protoc_insertion_point(class_scope:DBOperation) |
304 | | private: |
305 | | class _Internal; |
306 | | friend class ::google::protobuf::internal::TcParser; |
307 | | static const ::google::protobuf::internal::TcParseTable< |
308 | | 2, 3, 1, |
309 | | 28, 2> |
310 | | _table_; |
311 | | |
312 | | friend class ::google::protobuf::MessageLite; |
313 | | friend class ::google::protobuf::Arena; |
314 | | template <typename T> |
315 | | friend class ::google::protobuf::Arena::InternalHelper; |
316 | | using InternalArenaConstructable_ = void; |
317 | | using DestructorSkippable_ = void; |
318 | | struct Impl_ { |
319 | | inline explicit constexpr Impl_( |
320 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
321 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
322 | | ::google::protobuf::Arena* arena); |
323 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
324 | | ::google::protobuf::Arena* arena, const Impl_& from, |
325 | | const DBOperation& from_msg); |
326 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
327 | | ::google::protobuf::internal::CachedSize _cached_size_; |
328 | | ::google::protobuf::internal::ArenaStringPtr key_; |
329 | | ::google::protobuf::internal::ArenaStringPtr value_; |
330 | | int type_; |
331 | | PROTOBUF_TSAN_DECLARE_MEMBER |
332 | | }; |
333 | | union { Impl_ _impl_; }; |
334 | | friend struct ::TableStruct_db_5foperation_2eproto; |
335 | | }; |
336 | | // ------------------------------------------------------------------- |
337 | | |
338 | | class DBOperations final : public ::google::protobuf::Message |
339 | | /* @@protoc_insertion_point(class_definition:DBOperations) */ { |
340 | | public: |
341 | 5.92k | inline DBOperations() : DBOperations(nullptr) {} |
342 | | ~DBOperations() PROTOBUF_FINAL; |
343 | | |
344 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
345 | | void operator delete(DBOperations* msg, std::destroying_delete_t) { |
346 | | SharedDtor(*msg); |
347 | | ::google::protobuf::internal::SizedDelete(msg, sizeof(DBOperations)); |
348 | | } |
349 | | #endif |
350 | | |
351 | | template <typename = void> |
352 | | explicit PROTOBUF_CONSTEXPR DBOperations( |
353 | | ::google::protobuf::internal::ConstantInitialized); |
354 | | |
355 | 0 | inline DBOperations(const DBOperations& from) : DBOperations(nullptr, from) {} |
356 | | inline DBOperations(DBOperations&& from) noexcept |
357 | 0 | : DBOperations(nullptr, std::move(from)) {} |
358 | 0 | inline DBOperations& operator=(const DBOperations& from) { |
359 | 0 | CopyFrom(from); |
360 | 0 | return *this; |
361 | 0 | } |
362 | 0 | inline DBOperations& operator=(DBOperations&& from) noexcept { |
363 | 0 | if (this == &from) return *this; |
364 | 0 | if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { |
365 | 0 | InternalSwap(&from); |
366 | 0 | } else { |
367 | 0 | CopyFrom(from); |
368 | 0 | } |
369 | 0 | return *this; |
370 | 0 | } |
371 | | |
372 | | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const |
373 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
374 | 0 | return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); |
375 | 0 | } |
376 | | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() |
377 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
378 | 0 | return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); |
379 | 0 | } |
380 | | |
381 | 2 | static const ::google::protobuf::Descriptor* descriptor() { |
382 | 2 | return GetDescriptor(); |
383 | 2 | } |
384 | 2 | static const ::google::protobuf::Descriptor* GetDescriptor() { |
385 | 2 | return default_instance().GetMetadata().descriptor; |
386 | 2 | } |
387 | 0 | static const ::google::protobuf::Reflection* GetReflection() { |
388 | 0 | return default_instance().GetMetadata().reflection; |
389 | 0 | } |
390 | 2 | static const DBOperations& default_instance() { |
391 | 2 | return *internal_default_instance(); |
392 | 2 | } |
393 | 2 | static inline const DBOperations* internal_default_instance() { |
394 | 2 | return reinterpret_cast<const DBOperations*>( |
395 | 2 | &_DBOperations_default_instance_); |
396 | 2 | } |
397 | | static constexpr int kIndexInFileMessages = 1; |
398 | 0 | friend void swap(DBOperations& a, DBOperations& b) { a.Swap(&b); } |
399 | 0 | inline void Swap(DBOperations* other) { |
400 | 0 | if (other == this) return; |
401 | 0 | if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { |
402 | 0 | InternalSwap(other); |
403 | 0 | } else { |
404 | 0 | ::google::protobuf::internal::GenericSwap(this, other); |
405 | 0 | } |
406 | 0 | } |
407 | 0 | void UnsafeArenaSwap(DBOperations* other) { |
408 | 0 | if (other == this) return; |
409 | 0 | ABSL_DCHECK(GetArena() == other->GetArena()); |
410 | 0 | InternalSwap(other); |
411 | 0 | } |
412 | | |
413 | | // implements Message ---------------------------------------------- |
414 | | |
415 | 0 | DBOperations* New(::google::protobuf::Arena* arena = nullptr) const { |
416 | 0 | return ::google::protobuf::Message::DefaultConstruct<DBOperations>(arena); |
417 | 0 | } |
418 | | using ::google::protobuf::Message::CopyFrom; |
419 | | void CopyFrom(const DBOperations& from); |
420 | | using ::google::protobuf::Message::MergeFrom; |
421 | 0 | void MergeFrom(const DBOperations& from) { DBOperations::MergeImpl(*this, from); } |
422 | | |
423 | | private: |
424 | | static void MergeImpl( |
425 | | ::google::protobuf::MessageLite& to_msg, |
426 | | const ::google::protobuf::MessageLite& from_msg); |
427 | | |
428 | | public: |
429 | 0 | bool IsInitialized() const { |
430 | 0 | return IsInitializedImpl(*this); |
431 | 0 | } |
432 | | |
433 | | private: |
434 | | static bool IsInitializedImpl(const MessageLite& msg); |
435 | | |
436 | | public: |
437 | | ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; |
438 | | #if defined(PROTOBUF_CUSTOM_VTABLE) |
439 | | private: |
440 | | static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); |
441 | | static ::uint8_t* _InternalSerialize( |
442 | | const MessageLite& msg, ::uint8_t* target, |
443 | | ::google::protobuf::io::EpsCopyOutputStream* stream); |
444 | | |
445 | | public: |
446 | | ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } |
447 | | ::uint8_t* _InternalSerialize( |
448 | | ::uint8_t* target, |
449 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
450 | | return _InternalSerialize(*this, target, stream); |
451 | | } |
452 | | #else // PROTOBUF_CUSTOM_VTABLE |
453 | | ::size_t ByteSizeLong() const final; |
454 | | ::uint8_t* _InternalSerialize( |
455 | | ::uint8_t* target, |
456 | | ::google::protobuf::io::EpsCopyOutputStream* stream) const final; |
457 | | #endif // PROTOBUF_CUSTOM_VTABLE |
458 | 0 | int GetCachedSize() const { return _impl_._cached_size_.Get(); } |
459 | | |
460 | | private: |
461 | | void SharedCtor(::google::protobuf::Arena* arena); |
462 | | static void SharedDtor(MessageLite& self); |
463 | | void InternalSwap(DBOperations* other); |
464 | | private: |
465 | | template <typename T> |
466 | | friend ::absl::string_view( |
467 | | ::google::protobuf::internal::GetAnyMessageName)(); |
468 | 0 | static ::absl::string_view FullMessageName() { return "DBOperations"; } |
469 | | |
470 | | protected: |
471 | | explicit DBOperations(::google::protobuf::Arena* arena); |
472 | | DBOperations(::google::protobuf::Arena* arena, const DBOperations& from); |
473 | | DBOperations(::google::protobuf::Arena* arena, DBOperations&& from) noexcept |
474 | 0 | : DBOperations(arena) { |
475 | 0 | *this = ::std::move(from); |
476 | 0 | } |
477 | | const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; |
478 | | static void* PlacementNew_(const void*, void* mem, |
479 | | ::google::protobuf::Arena* arena); |
480 | | static constexpr auto InternalNewImpl_(); |
481 | | static const ::google::protobuf::internal::ClassDataFull _class_data_; |
482 | | |
483 | | public: |
484 | | ::google::protobuf::Metadata GetMetadata() const; |
485 | | // nested types ---------------------------------------------------- |
486 | | |
487 | | // accessors ------------------------------------------------------- |
488 | | enum : int { |
489 | | kOperationsFieldNumber = 1, |
490 | | }; |
491 | | // repeated .DBOperation operations = 1; |
492 | | int operations_size() const; |
493 | | private: |
494 | | int _internal_operations_size() const; |
495 | | |
496 | | public: |
497 | | void clear_operations() ; |
498 | | ::DBOperation* mutable_operations(int index); |
499 | | ::google::protobuf::RepeatedPtrField<::DBOperation>* mutable_operations(); |
500 | | |
501 | | private: |
502 | | const ::google::protobuf::RepeatedPtrField<::DBOperation>& _internal_operations() const; |
503 | | ::google::protobuf::RepeatedPtrField<::DBOperation>* _internal_mutable_operations(); |
504 | | public: |
505 | | const ::DBOperation& operations(int index) const; |
506 | | ::DBOperation* add_operations(); |
507 | | const ::google::protobuf::RepeatedPtrField<::DBOperation>& operations() const; |
508 | | // @@protoc_insertion_point(class_scope:DBOperations) |
509 | | private: |
510 | | class _Internal; |
511 | | friend class ::google::protobuf::internal::TcParser; |
512 | | static const ::google::protobuf::internal::TcParseTable< |
513 | | 0, 1, 1, |
514 | | 0, 2> |
515 | | _table_; |
516 | | |
517 | | friend class ::google::protobuf::MessageLite; |
518 | | friend class ::google::protobuf::Arena; |
519 | | template <typename T> |
520 | | friend class ::google::protobuf::Arena::InternalHelper; |
521 | | using InternalArenaConstructable_ = void; |
522 | | using DestructorSkippable_ = void; |
523 | | struct Impl_ { |
524 | | inline explicit constexpr Impl_( |
525 | | ::google::protobuf::internal::ConstantInitialized) noexcept; |
526 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
527 | | ::google::protobuf::Arena* arena); |
528 | | inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, |
529 | | ::google::protobuf::Arena* arena, const Impl_& from, |
530 | | const DBOperations& from_msg); |
531 | | ::google::protobuf::RepeatedPtrField< ::DBOperation > operations_; |
532 | | ::google::protobuf::internal::CachedSize _cached_size_; |
533 | | PROTOBUF_TSAN_DECLARE_MEMBER |
534 | | }; |
535 | | union { Impl_ _impl_; }; |
536 | | friend struct ::TableStruct_db_5foperation_2eproto; |
537 | | }; |
538 | | |
539 | | // =================================================================== |
540 | | |
541 | | |
542 | | |
543 | | |
544 | | // =================================================================== |
545 | | |
546 | | |
547 | | #ifdef __GNUC__ |
548 | | #pragma GCC diagnostic push |
549 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
550 | | #endif // __GNUC__ |
551 | | // ------------------------------------------------------------------- |
552 | | |
553 | | // DBOperation |
554 | | |
555 | | // required string key = 1; |
556 | 0 | inline bool DBOperation::has_key() const { |
557 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
558 | 0 | return value; |
559 | 0 | } |
560 | 0 | inline void DBOperation::clear_key() { |
561 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
562 | 0 | _impl_.key_.ClearToEmpty(); |
563 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
564 | 0 | } |
565 | | inline const std::string& DBOperation::key() const |
566 | 2.43M | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
567 | | // @@protoc_insertion_point(field_get:DBOperation.key) |
568 | 2.43M | return _internal_key(); |
569 | 2.43M | } |
570 | | template <typename Arg_, typename... Args_> |
571 | | inline PROTOBUF_ALWAYS_INLINE void DBOperation::set_key(Arg_&& arg, |
572 | 541 | Args_... args) { |
573 | 541 | ::google::protobuf::internal::TSanWrite(&_impl_); |
574 | 541 | _impl_._has_bits_[0] |= 0x00000001u; |
575 | 541 | _impl_.key_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); |
576 | | // @@protoc_insertion_point(field_set:DBOperation.key) |
577 | 541 | } |
578 | 0 | inline std::string* DBOperation::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
579 | 0 | std::string* _s = _internal_mutable_key(); |
580 | 0 | // @@protoc_insertion_point(field_mutable:DBOperation.key) |
581 | 0 | return _s; |
582 | 0 | } |
583 | 2.43M | inline const std::string& DBOperation::_internal_key() const { |
584 | 2.43M | ::google::protobuf::internal::TSanRead(&_impl_); |
585 | 2.43M | return _impl_.key_.Get(); |
586 | 2.43M | } |
587 | 0 | inline void DBOperation::_internal_set_key(const std::string& value) { |
588 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
589 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
590 | 0 | _impl_.key_.Set(value, GetArena()); |
591 | 0 | } |
592 | 0 | inline std::string* DBOperation::_internal_mutable_key() { |
593 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
594 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
595 | 0 | return _impl_.key_.Mutable( GetArena()); |
596 | 0 | } |
597 | 0 | inline std::string* DBOperation::release_key() { |
598 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
599 | 0 | // @@protoc_insertion_point(field_release:DBOperation.key) |
600 | 0 | if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { |
601 | 0 | return nullptr; |
602 | 0 | } |
603 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
604 | 0 | auto* released = _impl_.key_.Release(); |
605 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
606 | 0 | _impl_.key_.Set("", GetArena()); |
607 | 0 | } |
608 | 0 | return released; |
609 | 0 | } |
610 | 0 | inline void DBOperation::set_allocated_key(std::string* value) { |
611 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
612 | 0 | if (value != nullptr) { |
613 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
614 | 0 | } else { |
615 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
616 | 0 | } |
617 | 0 | _impl_.key_.SetAllocated(value, GetArena()); |
618 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) { |
619 | 0 | _impl_.key_.Set("", GetArena()); |
620 | 0 | } |
621 | 0 | // @@protoc_insertion_point(field_set_allocated:DBOperation.key) |
622 | 0 | } |
623 | | |
624 | | // optional string value = 2; |
625 | 0 | inline bool DBOperation::has_value() const { |
626 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
627 | 0 | return value; |
628 | 0 | } |
629 | 0 | inline void DBOperation::clear_value() { |
630 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
631 | 0 | _impl_.value_.ClearToEmpty(); |
632 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
633 | 0 | } |
634 | | inline const std::string& DBOperation::value() const |
635 | 2.21M | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
636 | | // @@protoc_insertion_point(field_get:DBOperation.value) |
637 | 2.21M | return _internal_value(); |
638 | 2.21M | } |
639 | | template <typename Arg_, typename... Args_> |
640 | | inline PROTOBUF_ALWAYS_INLINE void DBOperation::set_value(Arg_&& arg, |
641 | 541 | Args_... args) { |
642 | 541 | ::google::protobuf::internal::TSanWrite(&_impl_); |
643 | 541 | _impl_._has_bits_[0] |= 0x00000002u; |
644 | 541 | _impl_.value_.Set(static_cast<Arg_&&>(arg), args..., GetArena()); |
645 | | // @@protoc_insertion_point(field_set:DBOperation.value) |
646 | 541 | } |
647 | 0 | inline std::string* DBOperation::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
648 | 0 | std::string* _s = _internal_mutable_value(); |
649 | 0 | // @@protoc_insertion_point(field_mutable:DBOperation.value) |
650 | 0 | return _s; |
651 | 0 | } |
652 | 2.21M | inline const std::string& DBOperation::_internal_value() const { |
653 | 2.21M | ::google::protobuf::internal::TSanRead(&_impl_); |
654 | 2.21M | return _impl_.value_.Get(); |
655 | 2.21M | } |
656 | 0 | inline void DBOperation::_internal_set_value(const std::string& value) { |
657 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
658 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
659 | 0 | _impl_.value_.Set(value, GetArena()); |
660 | 0 | } |
661 | 0 | inline std::string* DBOperation::_internal_mutable_value() { |
662 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
663 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
664 | 0 | return _impl_.value_.Mutable( GetArena()); |
665 | 0 | } |
666 | 0 | inline std::string* DBOperation::release_value() { |
667 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
668 | 0 | // @@protoc_insertion_point(field_release:DBOperation.value) |
669 | 0 | if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { |
670 | 0 | return nullptr; |
671 | 0 | } |
672 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
673 | 0 | auto* released = _impl_.value_.Release(); |
674 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { |
675 | 0 | _impl_.value_.Set("", GetArena()); |
676 | 0 | } |
677 | 0 | return released; |
678 | 0 | } |
679 | 0 | inline void DBOperation::set_allocated_value(std::string* value) { |
680 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
681 | 0 | if (value != nullptr) { |
682 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
683 | 0 | } else { |
684 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
685 | 0 | } |
686 | 0 | _impl_.value_.SetAllocated(value, GetArena()); |
687 | 0 | if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { |
688 | 0 | _impl_.value_.Set("", GetArena()); |
689 | 0 | } |
690 | 0 | // @@protoc_insertion_point(field_set_allocated:DBOperation.value) |
691 | 0 | } |
692 | | |
693 | | // required .OpType type = 3; |
694 | 0 | inline bool DBOperation::has_type() const { |
695 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
696 | 0 | return value; |
697 | 0 | } |
698 | 0 | inline void DBOperation::clear_type() { |
699 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
700 | 0 | _impl_.type_ = 0; |
701 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
702 | 0 | } |
703 | 2.15M | inline ::OpType DBOperation::type() const { |
704 | | // @@protoc_insertion_point(field_get:DBOperation.type) |
705 | 2.15M | return _internal_type(); |
706 | 2.15M | } |
707 | 0 | inline void DBOperation::set_type(::OpType value) { |
708 | 0 | _internal_set_type(value); |
709 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
710 | 0 | // @@protoc_insertion_point(field_set:DBOperation.type) |
711 | 0 | } |
712 | 2.15M | inline ::OpType DBOperation::_internal_type() const { |
713 | 2.15M | ::google::protobuf::internal::TSanRead(&_impl_); |
714 | 2.15M | return static_cast<::OpType>(_impl_.type_); |
715 | 2.15M | } |
716 | 0 | inline void DBOperation::_internal_set_type(::OpType value) { |
717 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
718 | 0 | assert(::OpType_IsValid(value)); |
719 | 0 | _impl_.type_ = value; |
720 | 0 | } |
721 | | |
722 | | // ------------------------------------------------------------------- |
723 | | |
724 | | // DBOperations |
725 | | |
726 | | // repeated .DBOperation operations = 1; |
727 | 0 | inline int DBOperations::_internal_operations_size() const { |
728 | 0 | return _internal_operations().size(); |
729 | 0 | } |
730 | 0 | inline int DBOperations::operations_size() const { |
731 | 0 | return _internal_operations_size(); |
732 | 0 | } |
733 | 0 | inline void DBOperations::clear_operations() { |
734 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
735 | 0 | _impl_.operations_.Clear(); |
736 | 0 | } |
737 | | inline ::DBOperation* DBOperations::mutable_operations(int index) |
738 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
739 | 0 | // @@protoc_insertion_point(field_mutable:DBOperations.operations) |
740 | 0 | return _internal_mutable_operations()->Mutable(index); |
741 | 0 | } |
742 | | inline ::google::protobuf::RepeatedPtrField<::DBOperation>* DBOperations::mutable_operations() |
743 | 5.83k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
744 | | // @@protoc_insertion_point(field_mutable_list:DBOperations.operations) |
745 | 5.83k | ::google::protobuf::internal::TSanWrite(&_impl_); |
746 | 5.83k | return _internal_mutable_operations(); |
747 | 5.83k | } |
748 | | inline const ::DBOperation& DBOperations::operations(int index) const |
749 | 0 | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
750 | 0 | // @@protoc_insertion_point(field_get:DBOperations.operations) |
751 | 0 | return _internal_operations().Get(index); |
752 | 0 | } |
753 | 0 | inline ::DBOperation* DBOperations::add_operations() ABSL_ATTRIBUTE_LIFETIME_BOUND { |
754 | 0 | ::google::protobuf::internal::TSanWrite(&_impl_); |
755 | 0 | ::DBOperation* _add = _internal_mutable_operations()->Add(); |
756 | 0 | // @@protoc_insertion_point(field_add:DBOperations.operations) |
757 | 0 | return _add; |
758 | 0 | } |
759 | | inline const ::google::protobuf::RepeatedPtrField<::DBOperation>& DBOperations::operations() const |
760 | 11.6k | ABSL_ATTRIBUTE_LIFETIME_BOUND { |
761 | | // @@protoc_insertion_point(field_list:DBOperations.operations) |
762 | 11.6k | return _internal_operations(); |
763 | 11.6k | } |
764 | | inline const ::google::protobuf::RepeatedPtrField<::DBOperation>& |
765 | 11.6k | DBOperations::_internal_operations() const { |
766 | 11.6k | ::google::protobuf::internal::TSanRead(&_impl_); |
767 | 11.6k | return _impl_.operations_; |
768 | 11.6k | } |
769 | | inline ::google::protobuf::RepeatedPtrField<::DBOperation>* |
770 | 5.83k | DBOperations::_internal_mutable_operations() { |
771 | 5.83k | ::google::protobuf::internal::TSanRead(&_impl_); |
772 | 5.83k | return &_impl_.operations_; |
773 | 5.83k | } |
774 | | |
775 | | #ifdef __GNUC__ |
776 | | #pragma GCC diagnostic pop |
777 | | #endif // __GNUC__ |
778 | | |
779 | | // @@protoc_insertion_point(namespace_scope) |
780 | | |
781 | | |
782 | | namespace google { |
783 | | namespace protobuf { |
784 | | |
785 | | template <> |
786 | | struct is_proto_enum<::OpType> : std::true_type {}; |
787 | | template <> |
788 | 0 | inline const EnumDescriptor* GetEnumDescriptor<::OpType>() { |
789 | 0 | return ::OpType_descriptor(); |
790 | 0 | } |
791 | | |
792 | | } // namespace protobuf |
793 | | } // namespace google |
794 | | |
795 | | // @@protoc_insertion_point(global_scope) |
796 | | |
797 | | #include "google/protobuf/port_undef.inc" |
798 | | |
799 | | #endif // db_5foperation_2eproto_2epb_2eh |