Coverage Report

Created: 2024-07-27 06:53

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