YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/docdb/docdb.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/docdb/docdb.proto
3
4
#ifndef PROTOBUF_yb_2fdocdb_2fdocdb_2eproto__INCLUDED
5
#define PROTOBUF_yb_2fdocdb_2fdocdb_2eproto__INCLUDED
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3005000
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 3005001 < GOOGLE_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/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/metadata.h>
28
#include <google/protobuf/message.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/unknown_field_set.h>
32
#include "yb/common/common.pb.h"
33
#include "yb/common/transaction.pb.h"
34
#include "yb/util/opid.pb.h"
35
// @@protoc_insertion_point(includes)
36
37
namespace protobuf_yb_2fdocdb_2fdocdb_2eproto {
38
// Internal implementation detail -- do not use these members.
39
struct TableStruct {
40
  static const ::google::protobuf::internal::ParseTableField entries[];
41
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42
  static const ::google::protobuf::internal::ParseTable schema[5];
43
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45
  static const ::google::protobuf::uint32 offsets[];
46
};
47
void AddDescriptors();
48
void InitDefaultsKeyValuePairPBImpl();
49
void InitDefaultsKeyValuePairPB();
50
void InitDefaultsApplyExternalTransactionPBImpl();
51
void InitDefaultsApplyExternalTransactionPB();
52
void InitDefaultsKeyValueWriteBatchPBImpl();
53
void InitDefaultsKeyValueWriteBatchPB();
54
void InitDefaultsConsensusFrontierPBImpl();
55
void InitDefaultsConsensusFrontierPB();
56
void InitDefaultsApplyTransactionStatePBImpl();
57
void InitDefaultsApplyTransactionStatePB();
58
28.1k
inline void InitDefaults() {
59
28.1k
  InitDefaultsKeyValuePairPB();
60
28.1k
  InitDefaultsApplyExternalTransactionPB();
61
28.1k
  InitDefaultsKeyValueWriteBatchPB();
62
28.1k
  InitDefaultsConsensusFrontierPB();
63
28.1k
  InitDefaultsApplyTransactionStatePB();
64
28.1k
}
65
}  // namespace protobuf_yb_2fdocdb_2fdocdb_2eproto
66
namespace yb {
67
namespace docdb {
68
class ApplyExternalTransactionPB;
69
class ApplyExternalTransactionPBDefaultTypeInternal;
70
extern ApplyExternalTransactionPBDefaultTypeInternal _ApplyExternalTransactionPB_default_instance_;
71
class ApplyTransactionStatePB;
72
class ApplyTransactionStatePBDefaultTypeInternal;
73
extern ApplyTransactionStatePBDefaultTypeInternal _ApplyTransactionStatePB_default_instance_;
74
class ConsensusFrontierPB;
75
class ConsensusFrontierPBDefaultTypeInternal;
76
extern ConsensusFrontierPBDefaultTypeInternal _ConsensusFrontierPB_default_instance_;
77
class KeyValuePairPB;
78
class KeyValuePairPBDefaultTypeInternal;
79
extern KeyValuePairPBDefaultTypeInternal _KeyValuePairPB_default_instance_;
80
class KeyValueWriteBatchPB;
81
class KeyValueWriteBatchPBDefaultTypeInternal;
82
extern KeyValueWriteBatchPBDefaultTypeInternal _KeyValueWriteBatchPB_default_instance_;
83
}  // namespace docdb
84
}  // namespace yb
85
namespace yb {
86
namespace docdb {
87
88
// ===================================================================
89
90
class KeyValuePairPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.KeyValuePairPB) */ {
91
 public:
92
  KeyValuePairPB();
93
  virtual ~KeyValuePairPB();
94
95
  KeyValuePairPB(const KeyValuePairPB& from);
96
97
0
  inline KeyValuePairPB& operator=(const KeyValuePairPB& from) {
98
0
    CopyFrom(from);
99
0
    return *this;
100
0
  }
101
  #if LANG_CXX11
102
  KeyValuePairPB(KeyValuePairPB&& from) noexcept
103
0
    : KeyValuePairPB() {
104
0
    *this = ::std::move(from);
105
0
  }
106
107
0
  inline KeyValuePairPB& operator=(KeyValuePairPB&& from) noexcept {
108
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109
0
      if (this != &from) InternalSwap(&from);
110
0
    } else {
111
0
      CopyFrom(from);
112
0
    }
113
0
    return *this;
114
0
  }
115
  #endif
116
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
117
0
    return _internal_metadata_.unknown_fields();
118
0
  }
119
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
120
0
    return _internal_metadata_.mutable_unknown_fields();
121
0
  }
122
123
  static const ::google::protobuf::Descriptor* descriptor();
124
  static const KeyValuePairPB& default_instance();
125
126
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
127
230M
  static inline const KeyValuePairPB* internal_default_instance() {
128
230M
    return reinterpret_cast<const KeyValuePairPB*>(
129
230M
               &_KeyValuePairPB_default_instance_);
130
230M
  }
131
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
132
    0;
133
134
  void Swap(KeyValuePairPB* other);
135
0
  friend void swap(KeyValuePairPB& a, KeyValuePairPB& b) {
136
0
    a.Swap(&b);
137
0
  }
138
139
  // implements Message ----------------------------------------------
140
141
0
  inline KeyValuePairPB* New() const PROTOBUF_FINAL { return New(NULL); }
142
143
  KeyValuePairPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
144
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
145
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
146
  void CopyFrom(const KeyValuePairPB& from);
147
  void MergeFrom(const KeyValuePairPB& from);
148
  void Clear() PROTOBUF_FINAL;
149
  bool IsInitialized() const PROTOBUF_FINAL;
150
151
  size_t ByteSizeLong() const PROTOBUF_FINAL;
152
  bool MergePartialFromCodedStream(
153
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
154
  void SerializeWithCachedSizes(
155
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
156
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
157
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
158
343M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
159
  private:
160
  void SharedCtor();
161
  void SharedDtor();
162
  void SetCachedSize(int size) const PROTOBUF_FINAL;
163
  void InternalSwap(KeyValuePairPB* other);
164
  private:
165
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
166
0
    return NULL;
167
0
  }
168
0
  inline void* MaybeArenaPtr() const {
169
0
    return NULL;
170
0
  }
171
  public:
172
173
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
174
175
  // nested types ----------------------------------------------------
176
177
  // accessors -------------------------------------------------------
178
179
  // optional bytes key = 1;
180
  bool has_key() const;
181
  void clear_key();
182
  static const int kKeyFieldNumber = 1;
183
  const ::std::string& key() const;
184
  void set_key(const ::std::string& value);
185
  #if LANG_CXX11
186
  void set_key(::std::string&& value);
187
  #endif
188
  void set_key(const char* value);
189
  void set_key(const void* value, size_t size);
190
  ::std::string* mutable_key();
191
  ::std::string* release_key();
192
  void set_allocated_key(::std::string* key);
193
194
  // optional bytes value = 2;
195
  bool has_value() const;
196
  void clear_value();
197
  static const int kValueFieldNumber = 2;
198
  const ::std::string& value() const;
199
  void set_value(const ::std::string& value);
200
  #if LANG_CXX11
201
  void set_value(::std::string&& value);
202
  #endif
203
  void set_value(const char* value);
204
  void set_value(const void* value, size_t size);
205
  ::std::string* mutable_value();
206
  ::std::string* release_value();
207
  void set_allocated_value(::std::string* value);
208
209
  // optional fixed64 external_hybrid_time = 3;
210
  bool has_external_hybrid_time() const;
211
  void clear_external_hybrid_time();
212
  static const int kExternalHybridTimeFieldNumber = 3;
213
  ::google::protobuf::uint64 external_hybrid_time() const;
214
  void set_external_hybrid_time(::google::protobuf::uint64 value);
215
216
  // @@protoc_insertion_point(class_scope:yb.docdb.KeyValuePairPB)
217
 private:
218
  void set_has_key();
219
  void clear_has_key();
220
  void set_has_value();
221
  void clear_has_value();
222
  void set_has_external_hybrid_time();
223
  void clear_has_external_hybrid_time();
224
225
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
226
  ::google::protobuf::internal::HasBits<1> _has_bits_;
227
  mutable int _cached_size_;
228
  ::google::protobuf::internal::ArenaStringPtr key_;
229
  ::google::protobuf::internal::ArenaStringPtr value_;
230
  ::google::protobuf::uint64 external_hybrid_time_;
231
  friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct;
232
  friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValuePairPBImpl();
233
};
234
// -------------------------------------------------------------------
235
236
class ApplyExternalTransactionPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ApplyExternalTransactionPB) */ {
237
 public:
238
  ApplyExternalTransactionPB();
239
  virtual ~ApplyExternalTransactionPB();
240
241
  ApplyExternalTransactionPB(const ApplyExternalTransactionPB& from);
242
243
0
  inline ApplyExternalTransactionPB& operator=(const ApplyExternalTransactionPB& from) {
244
0
    CopyFrom(from);
245
0
    return *this;
246
0
  }
247
  #if LANG_CXX11
248
  ApplyExternalTransactionPB(ApplyExternalTransactionPB&& from) noexcept
249
0
    : ApplyExternalTransactionPB() {
250
0
    *this = ::std::move(from);
251
0
  }
252
253
0
  inline ApplyExternalTransactionPB& operator=(ApplyExternalTransactionPB&& from) noexcept {
254
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
255
0
      if (this != &from) InternalSwap(&from);
256
0
    } else {
257
0
      CopyFrom(from);
258
0
    }
259
0
    return *this;
260
0
  }
261
  #endif
262
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
263
0
    return _internal_metadata_.unknown_fields();
264
0
  }
265
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
266
0
    return _internal_metadata_.mutable_unknown_fields();
267
0
  }
268
269
  static const ::google::protobuf::Descriptor* descriptor();
270
  static const ApplyExternalTransactionPB& default_instance();
271
272
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
273
28.1k
  static inline const ApplyExternalTransactionPB* internal_default_instance() {
274
28.1k
    return reinterpret_cast<const ApplyExternalTransactionPB*>(
275
28.1k
               &_ApplyExternalTransactionPB_default_instance_);
276
28.1k
  }
277
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
278
    1;
279
280
  void Swap(ApplyExternalTransactionPB* other);
281
0
  friend void swap(ApplyExternalTransactionPB& a, ApplyExternalTransactionPB& b) {
282
0
    a.Swap(&b);
283
0
  }
284
285
  // implements Message ----------------------------------------------
286
287
0
  inline ApplyExternalTransactionPB* New() const PROTOBUF_FINAL { return New(NULL); }
288
289
  ApplyExternalTransactionPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
290
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
291
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
292
  void CopyFrom(const ApplyExternalTransactionPB& from);
293
  void MergeFrom(const ApplyExternalTransactionPB& from);
294
  void Clear() PROTOBUF_FINAL;
295
  bool IsInitialized() const PROTOBUF_FINAL;
296
297
  size_t ByteSizeLong() const PROTOBUF_FINAL;
298
  bool MergePartialFromCodedStream(
299
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
300
  void SerializeWithCachedSizes(
301
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
302
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
303
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
304
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
305
  private:
306
  void SharedCtor();
307
  void SharedDtor();
308
  void SetCachedSize(int size) const PROTOBUF_FINAL;
309
  void InternalSwap(ApplyExternalTransactionPB* other);
310
  private:
311
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
312
0
    return NULL;
313
0
  }
314
0
  inline void* MaybeArenaPtr() const {
315
0
    return NULL;
316
0
  }
317
  public:
318
319
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
320
321
  // nested types ----------------------------------------------------
322
323
  // accessors -------------------------------------------------------
324
325
  // optional bytes transaction_id = 1;
326
  bool has_transaction_id() const;
327
  void clear_transaction_id();
328
  static const int kTransactionIdFieldNumber = 1;
329
  const ::std::string& transaction_id() const;
330
  void set_transaction_id(const ::std::string& value);
331
  #if LANG_CXX11
332
  void set_transaction_id(::std::string&& value);
333
  #endif
334
  void set_transaction_id(const char* value);
335
  void set_transaction_id(const void* value, size_t size);
336
  ::std::string* mutable_transaction_id();
337
  ::std::string* release_transaction_id();
338
  void set_allocated_transaction_id(::std::string* transaction_id);
339
340
  // optional fixed64 commit_hybrid_time = 2;
341
  bool has_commit_hybrid_time() const;
342
  void clear_commit_hybrid_time();
343
  static const int kCommitHybridTimeFieldNumber = 2;
344
  ::google::protobuf::uint64 commit_hybrid_time() const;
345
  void set_commit_hybrid_time(::google::protobuf::uint64 value);
346
347
  // @@protoc_insertion_point(class_scope:yb.docdb.ApplyExternalTransactionPB)
348
 private:
349
  void set_has_transaction_id();
350
  void clear_has_transaction_id();
351
  void set_has_commit_hybrid_time();
352
  void clear_has_commit_hybrid_time();
353
354
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
355
  ::google::protobuf::internal::HasBits<1> _has_bits_;
356
  mutable int _cached_size_;
357
  ::google::protobuf::internal::ArenaStringPtr transaction_id_;
358
  ::google::protobuf::uint64 commit_hybrid_time_;
359
  friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct;
360
  friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsApplyExternalTransactionPBImpl();
361
};
362
// -------------------------------------------------------------------
363
364
class KeyValueWriteBatchPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.KeyValueWriteBatchPB) */ {
365
 public:
366
  KeyValueWriteBatchPB();
367
  virtual ~KeyValueWriteBatchPB();
368
369
  KeyValueWriteBatchPB(const KeyValueWriteBatchPB& from);
370
371
674k
  inline KeyValueWriteBatchPB& operator=(const KeyValueWriteBatchPB& from) {
372
674k
    CopyFrom(from);
373
674k
    return *this;
374
674k
  }
375
  #if LANG_CXX11
376
  KeyValueWriteBatchPB(KeyValueWriteBatchPB&& from) noexcept
377
0
    : KeyValueWriteBatchPB() {
378
0
    *this = ::std::move(from);
379
0
  }
380
381
28
  inline KeyValueWriteBatchPB& operator=(KeyValueWriteBatchPB&& from) noexcept {
382
28
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
383
28
      if (this != &from) InternalSwap(&from);
384
28
    } else {
385
0
      CopyFrom(from);
386
0
    }
387
28
    return *this;
388
28
  }
389
  #endif
390
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
391
0
    return _internal_metadata_.unknown_fields();
392
0
  }
393
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
394
0
    return _internal_metadata_.mutable_unknown_fields();
395
0
  }
396
397
  static const ::google::protobuf::Descriptor* descriptor();
398
  static const KeyValueWriteBatchPB& default_instance();
399
400
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
401
37.6M
  static inline const KeyValueWriteBatchPB* internal_default_instance() {
402
37.6M
    return reinterpret_cast<const KeyValueWriteBatchPB*>(
403
37.6M
               &_KeyValueWriteBatchPB_default_instance_);
404
37.6M
  }
405
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
406
    2;
407
408
  void Swap(KeyValueWriteBatchPB* other);
409
0
  friend void swap(KeyValueWriteBatchPB& a, KeyValueWriteBatchPB& b) {
410
0
    a.Swap(&b);
411
0
  }
412
413
  // implements Message ----------------------------------------------
414
415
0
  inline KeyValueWriteBatchPB* New() const PROTOBUF_FINAL { return New(NULL); }
416
417
  KeyValueWriteBatchPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
418
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
419
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
420
  void CopyFrom(const KeyValueWriteBatchPB& from);
421
  void MergeFrom(const KeyValueWriteBatchPB& from);
422
  void Clear() PROTOBUF_FINAL;
423
  bool IsInitialized() const PROTOBUF_FINAL;
424
425
  size_t ByteSizeLong() const PROTOBUF_FINAL;
426
  bool MergePartialFromCodedStream(
427
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
428
  void SerializeWithCachedSizes(
429
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
430
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
431
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
432
15.1M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
433
  private:
434
  void SharedCtor();
435
  void SharedDtor();
436
  void SetCachedSize(int size) const PROTOBUF_FINAL;
437
  void InternalSwap(KeyValueWriteBatchPB* other);
438
  private:
439
56
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
440
56
    return NULL;
441
56
  }
442
0
  inline void* MaybeArenaPtr() const {
443
0
    return NULL;
444
0
  }
445
  public:
446
447
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
448
449
  // nested types ----------------------------------------------------
450
451
  // accessors -------------------------------------------------------
452
453
  // repeated .yb.docdb.KeyValuePairPB write_pairs = 1;
454
  int write_pairs_size() const;
455
  void clear_write_pairs();
456
  static const int kWritePairsFieldNumber = 1;
457
  const ::yb::docdb::KeyValuePairPB& write_pairs(int index) const;
458
  ::yb::docdb::KeyValuePairPB* mutable_write_pairs(int index);
459
  ::yb::docdb::KeyValuePairPB* add_write_pairs();
460
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >*
461
      mutable_write_pairs();
462
  const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >&
463
      write_pairs() const;
464
465
  // repeated .yb.docdb.KeyValuePairPB read_pairs = 5;
466
  int read_pairs_size() const;
467
  void clear_read_pairs();
468
  static const int kReadPairsFieldNumber = 5;
469
  const ::yb::docdb::KeyValuePairPB& read_pairs(int index) const;
470
  ::yb::docdb::KeyValuePairPB* mutable_read_pairs(int index);
471
  ::yb::docdb::KeyValuePairPB* add_read_pairs();
472
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >*
473
      mutable_read_pairs();
474
  const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >&
475
      read_pairs() const;
476
477
  // repeated .yb.docdb.ApplyExternalTransactionPB apply_external_transactions = 7;
478
  int apply_external_transactions_size() const;
479
  void clear_apply_external_transactions();
480
  static const int kApplyExternalTransactionsFieldNumber = 7;
481
  const ::yb::docdb::ApplyExternalTransactionPB& apply_external_transactions(int index) const;
482
  ::yb::docdb::ApplyExternalTransactionPB* mutable_apply_external_transactions(int index);
483
  ::yb::docdb::ApplyExternalTransactionPB* add_apply_external_transactions();
484
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >*
485
      mutable_apply_external_transactions();
486
  const ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >&
487
      apply_external_transactions() const;
488
489
  // optional .yb.TransactionMetadataPB transaction = 2;
490
  bool has_transaction() const;
491
  void clear_transaction();
492
  static const int kTransactionFieldNumber = 2;
493
  const ::yb::TransactionMetadataPB& transaction() const;
494
  ::yb::TransactionMetadataPB* release_transaction();
495
  ::yb::TransactionMetadataPB* mutable_transaction();
496
  void set_allocated_transaction(::yb::TransactionMetadataPB* transaction);
497
498
  // optional .yb.SubTransactionMetadataPB subtransaction = 8;
499
  bool has_subtransaction() const;
500
  void clear_subtransaction();
501
  static const int kSubtransactionFieldNumber = 8;
502
  const ::yb::SubTransactionMetadataPB& subtransaction() const;
503
  ::yb::SubTransactionMetadataPB* release_subtransaction();
504
  ::yb::SubTransactionMetadataPB* mutable_subtransaction();
505
  void set_allocated_subtransaction(::yb::SubTransactionMetadataPB* subtransaction);
506
507
  // optional bool DEPRECATED_may_have_metadata = 3;
508
  bool has_deprecated_may_have_metadata() const;
509
  void clear_deprecated_may_have_metadata();
510
  static const int kDEPRECATEDMayHaveMetadataFieldNumber = 3;
511
  bool deprecated_may_have_metadata() const;
512
  void set_deprecated_may_have_metadata(bool value);
513
514
  // optional .yb.RowMarkType row_mark_type = 6;
515
  bool has_row_mark_type() const;
516
  void clear_row_mark_type();
517
  static const int kRowMarkTypeFieldNumber = 6;
518
  ::yb::RowMarkType row_mark_type() const;
519
  void set_row_mark_type(::yb::RowMarkType value);
520
521
  // optional int64 ttl = 9;
522
  bool has_ttl() const;
523
  void clear_ttl();
524
  static const int kTtlFieldNumber = 9;
525
  ::google::protobuf::int64 ttl() const;
526
  void set_ttl(::google::protobuf::int64 value);
527
528
  // optional .yb.WaitPolicy wait_policy = 10;
529
  bool has_wait_policy() const;
530
  void clear_wait_policy();
531
  static const int kWaitPolicyFieldNumber = 10;
532
  ::yb::WaitPolicy wait_policy() const;
533
  void set_wait_policy(::yb::WaitPolicy value);
534
535
  // @@protoc_insertion_point(class_scope:yb.docdb.KeyValueWriteBatchPB)
536
 private:
537
  void set_has_transaction();
538
  void clear_has_transaction();
539
  void set_has_subtransaction();
540
  void clear_has_subtransaction();
541
  void set_has_deprecated_may_have_metadata();
542
  void clear_has_deprecated_may_have_metadata();
543
  void set_has_row_mark_type();
544
  void clear_has_row_mark_type();
545
  void set_has_wait_policy();
546
  void clear_has_wait_policy();
547
  void set_has_ttl();
548
  void clear_has_ttl();
549
550
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
551
  ::google::protobuf::internal::HasBits<1> _has_bits_;
552
  mutable int _cached_size_;
553
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB > write_pairs_;
554
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB > read_pairs_;
555
  ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB > apply_external_transactions_;
556
  ::yb::TransactionMetadataPB* transaction_;
557
  ::yb::SubTransactionMetadataPB* subtransaction_;
558
  bool deprecated_may_have_metadata_;
559
  int row_mark_type_;
560
  ::google::protobuf::int64 ttl_;
561
  int wait_policy_;
562
  friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct;
563
  friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsKeyValueWriteBatchPBImpl();
564
};
565
// -------------------------------------------------------------------
566
567
class ConsensusFrontierPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ConsensusFrontierPB) */ {
568
 public:
569
  ConsensusFrontierPB();
570
  virtual ~ConsensusFrontierPB();
571
572
  ConsensusFrontierPB(const ConsensusFrontierPB& from);
573
574
0
  inline ConsensusFrontierPB& operator=(const ConsensusFrontierPB& from) {
575
0
    CopyFrom(from);
576
0
    return *this;
577
0
  }
578
  #if LANG_CXX11
579
  ConsensusFrontierPB(ConsensusFrontierPB&& from) noexcept
580
0
    : ConsensusFrontierPB() {
581
0
    *this = ::std::move(from);
582
0
  }
583
584
0
  inline ConsensusFrontierPB& operator=(ConsensusFrontierPB&& from) noexcept {
585
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
586
0
      if (this != &from) InternalSwap(&from);
587
0
    } else {
588
0
      CopyFrom(from);
589
0
    }
590
0
    return *this;
591
0
  }
592
  #endif
593
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
594
0
    return _internal_metadata_.unknown_fields();
595
0
  }
596
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
597
0
    return _internal_metadata_.mutable_unknown_fields();
598
0
  }
599
600
  static const ::google::protobuf::Descriptor* descriptor();
601
  static const ConsensusFrontierPB& default_instance();
602
603
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
604
768k
  static inline const ConsensusFrontierPB* internal_default_instance() {
605
768k
    return reinterpret_cast<const ConsensusFrontierPB*>(
606
768k
               &_ConsensusFrontierPB_default_instance_);
607
768k
  }
608
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
609
    3;
610
611
  void Swap(ConsensusFrontierPB* other);
612
0
  friend void swap(ConsensusFrontierPB& a, ConsensusFrontierPB& b) {
613
0
    a.Swap(&b);
614
0
  }
615
616
  // implements Message ----------------------------------------------
617
618
0
  inline ConsensusFrontierPB* New() const PROTOBUF_FINAL { return New(NULL); }
619
620
  ConsensusFrontierPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
621
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
622
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
623
  void CopyFrom(const ConsensusFrontierPB& from);
624
  void MergeFrom(const ConsensusFrontierPB& from);
625
  void Clear() PROTOBUF_FINAL;
626
  bool IsInitialized() const PROTOBUF_FINAL;
627
628
  size_t ByteSizeLong() const PROTOBUF_FINAL;
629
  bool MergePartialFromCodedStream(
630
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
631
  void SerializeWithCachedSizes(
632
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
633
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
634
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
635
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
636
  private:
637
  void SharedCtor();
638
  void SharedDtor();
639
  void SetCachedSize(int size) const PROTOBUF_FINAL;
640
  void InternalSwap(ConsensusFrontierPB* other);
641
  private:
642
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
643
0
    return NULL;
644
0
  }
645
0
  inline void* MaybeArenaPtr() const {
646
0
    return NULL;
647
0
  }
648
  public:
649
650
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
651
652
  // nested types ----------------------------------------------------
653
654
  // accessors -------------------------------------------------------
655
656
  // optional .yb.OpIdPB op_id = 1;
657
  bool has_op_id() const;
658
  void clear_op_id();
659
  static const int kOpIdFieldNumber = 1;
660
  const ::yb::OpIdPB& op_id() const;
661
  ::yb::OpIdPB* release_op_id();
662
  ::yb::OpIdPB* mutable_op_id();
663
  void set_allocated_op_id(::yb::OpIdPB* op_id);
664
665
  // optional fixed64 hybrid_time = 2;
666
  bool has_hybrid_time() const;
667
  void clear_hybrid_time();
668
  static const int kHybridTimeFieldNumber = 2;
669
  ::google::protobuf::uint64 hybrid_time() const;
670
  void set_hybrid_time(::google::protobuf::uint64 value);
671
672
  // optional fixed64 history_cutoff = 3;
673
  bool has_history_cutoff() const;
674
  void clear_history_cutoff();
675
  static const int kHistoryCutoffFieldNumber = 3;
676
  ::google::protobuf::uint64 history_cutoff() const;
677
  void set_history_cutoff(::google::protobuf::uint64 value);
678
679
  // optional fixed64 hybrid_time_filter = 4;
680
  bool has_hybrid_time_filter() const;
681
  void clear_hybrid_time_filter();
682
  static const int kHybridTimeFilterFieldNumber = 4;
683
  ::google::protobuf::uint64 hybrid_time_filter() const;
684
  void set_hybrid_time_filter(::google::protobuf::uint64 value);
685
686
  // optional fixed64 max_value_level_ttl_expiration_time = 5;
687
  bool has_max_value_level_ttl_expiration_time() const;
688
  void clear_max_value_level_ttl_expiration_time();
689
  static const int kMaxValueLevelTtlExpirationTimeFieldNumber = 5;
690
  ::google::protobuf::uint64 max_value_level_ttl_expiration_time() const;
691
  void set_max_value_level_ttl_expiration_time(::google::protobuf::uint64 value);
692
693
  // @@protoc_insertion_point(class_scope:yb.docdb.ConsensusFrontierPB)
694
 private:
695
  void set_has_op_id();
696
  void clear_has_op_id();
697
  void set_has_hybrid_time();
698
  void clear_has_hybrid_time();
699
  void set_has_history_cutoff();
700
  void clear_has_history_cutoff();
701
  void set_has_hybrid_time_filter();
702
  void clear_has_hybrid_time_filter();
703
  void set_has_max_value_level_ttl_expiration_time();
704
  void clear_has_max_value_level_ttl_expiration_time();
705
706
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
707
  ::google::protobuf::internal::HasBits<1> _has_bits_;
708
  mutable int _cached_size_;
709
  ::yb::OpIdPB* op_id_;
710
  ::google::protobuf::uint64 hybrid_time_;
711
  ::google::protobuf::uint64 history_cutoff_;
712
  ::google::protobuf::uint64 hybrid_time_filter_;
713
  ::google::protobuf::uint64 max_value_level_ttl_expiration_time_;
714
  friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct;
715
  friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsConsensusFrontierPBImpl();
716
};
717
// -------------------------------------------------------------------
718
719
class ApplyTransactionStatePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.docdb.ApplyTransactionStatePB) */ {
720
 public:
721
  ApplyTransactionStatePB();
722
  virtual ~ApplyTransactionStatePB();
723
724
  ApplyTransactionStatePB(const ApplyTransactionStatePB& from);
725
726
0
  inline ApplyTransactionStatePB& operator=(const ApplyTransactionStatePB& from) {
727
0
    CopyFrom(from);
728
0
    return *this;
729
0
  }
730
  #if LANG_CXX11
731
  ApplyTransactionStatePB(ApplyTransactionStatePB&& from) noexcept
732
0
    : ApplyTransactionStatePB() {
733
0
    *this = ::std::move(from);
734
0
  }
Unexecuted instantiation: yb::docdb::ApplyTransactionStatePB::ApplyTransactionStatePB(yb::docdb::ApplyTransactionStatePB&&)
Unexecuted instantiation: yb::docdb::ApplyTransactionStatePB::ApplyTransactionStatePB(yb::docdb::ApplyTransactionStatePB&&)
735
736
0
  inline ApplyTransactionStatePB& operator=(ApplyTransactionStatePB&& from) noexcept {
737
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
738
0
      if (this != &from) InternalSwap(&from);
739
0
    } else {
740
0
      CopyFrom(from);
741
0
    }
742
0
    return *this;
743
0
  }
744
  #endif
745
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
746
0
    return _internal_metadata_.unknown_fields();
747
0
  }
748
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
749
0
    return _internal_metadata_.mutable_unknown_fields();
750
0
  }
751
752
  static const ::google::protobuf::Descriptor* descriptor();
753
  static const ApplyTransactionStatePB& default_instance();
754
755
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
756
28.4k
  static inline const ApplyTransactionStatePB* internal_default_instance() {
757
28.4k
    return reinterpret_cast<const ApplyTransactionStatePB*>(
758
28.4k
               &_ApplyTransactionStatePB_default_instance_);
759
28.4k
  }
760
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
761
    4;
762
763
  void Swap(ApplyTransactionStatePB* other);
764
0
  friend void swap(ApplyTransactionStatePB& a, ApplyTransactionStatePB& b) {
765
0
    a.Swap(&b);
766
0
  }
767
768
  // implements Message ----------------------------------------------
769
770
0
  inline ApplyTransactionStatePB* New() const PROTOBUF_FINAL { return New(NULL); }
771
772
  ApplyTransactionStatePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
773
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
774
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
775
  void CopyFrom(const ApplyTransactionStatePB& from);
776
  void MergeFrom(const ApplyTransactionStatePB& from);
777
  void Clear() PROTOBUF_FINAL;
778
  bool IsInitialized() const PROTOBUF_FINAL;
779
780
  size_t ByteSizeLong() const PROTOBUF_FINAL;
781
  bool MergePartialFromCodedStream(
782
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
783
  void SerializeWithCachedSizes(
784
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
785
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
786
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
787
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
788
  private:
789
  void SharedCtor();
790
  void SharedDtor();
791
  void SetCachedSize(int size) const PROTOBUF_FINAL;
792
  void InternalSwap(ApplyTransactionStatePB* other);
793
  private:
794
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
795
0
    return NULL;
796
0
  }
797
0
  inline void* MaybeArenaPtr() const {
798
0
    return NULL;
799
0
  }
800
  public:
801
802
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
803
804
  // nested types ----------------------------------------------------
805
806
  // accessors -------------------------------------------------------
807
808
  // optional bytes key = 1;
809
  bool has_key() const;
810
  void clear_key();
811
  static const int kKeyFieldNumber = 1;
812
  const ::std::string& key() const;
813
  void set_key(const ::std::string& value);
814
  #if LANG_CXX11
815
  void set_key(::std::string&& value);
816
  #endif
817
  void set_key(const char* value);
818
  void set_key(const void* value, size_t size);
819
  ::std::string* mutable_key();
820
  ::std::string* release_key();
821
  void set_allocated_key(::std::string* key);
822
823
  // optional .yb.AbortedSubTransactionSetPB aborted = 4;
824
  bool has_aborted() const;
825
  void clear_aborted();
826
  static const int kAbortedFieldNumber = 4;
827
  const ::yb::AbortedSubTransactionSetPB& aborted() const;
828
  ::yb::AbortedSubTransactionSetPB* release_aborted();
829
  ::yb::AbortedSubTransactionSetPB* mutable_aborted();
830
  void set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted);
831
832
  // optional fixed64 commit_ht = 3;
833
  bool has_commit_ht() const;
834
  void clear_commit_ht();
835
  static const int kCommitHtFieldNumber = 3;
836
  ::google::protobuf::uint64 commit_ht() const;
837
  void set_commit_ht(::google::protobuf::uint64 value);
838
839
  // optional uint32 write_id = 2;
840
  bool has_write_id() const;
841
  void clear_write_id();
842
  static const int kWriteIdFieldNumber = 2;
843
  ::google::protobuf::uint32 write_id() const;
844
  void set_write_id(::google::protobuf::uint32 value);
845
846
  // @@protoc_insertion_point(class_scope:yb.docdb.ApplyTransactionStatePB)
847
 private:
848
  void set_has_key();
849
  void clear_has_key();
850
  void set_has_write_id();
851
  void clear_has_write_id();
852
  void set_has_commit_ht();
853
  void clear_has_commit_ht();
854
  void set_has_aborted();
855
  void clear_has_aborted();
856
857
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
858
  ::google::protobuf::internal::HasBits<1> _has_bits_;
859
  mutable int _cached_size_;
860
  ::google::protobuf::internal::ArenaStringPtr key_;
861
  ::yb::AbortedSubTransactionSetPB* aborted_;
862
  ::google::protobuf::uint64 commit_ht_;
863
  ::google::protobuf::uint32 write_id_;
864
  friend struct ::protobuf_yb_2fdocdb_2fdocdb_2eproto::TableStruct;
865
  friend void ::protobuf_yb_2fdocdb_2fdocdb_2eproto::InitDefaultsApplyTransactionStatePBImpl();
866
};
867
// ===================================================================
868
869
870
// ===================================================================
871
872
#ifdef __GNUC__
873
  #pragma GCC diagnostic push
874
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
875
#endif  // __GNUC__
876
// KeyValuePairPB
877
878
// optional bytes key = 1;
879
741M
inline bool KeyValuePairPB::has_key() const {
880
741M
  return (_has_bits_[0] & 0x00000001u) != 0;
881
741M
}
882
230M
inline void KeyValuePairPB::set_has_key() {
883
230M
  _has_bits_[0] |= 0x00000001u;
884
230M
}
885
0
inline void KeyValuePairPB::clear_has_key() {
886
0
  _has_bits_[0] &= ~0x00000001u;
887
0
}
888
0
inline void KeyValuePairPB::clear_key() {
889
0
  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
890
0
  clear_has_key();
891
0
}
892
2.04G
inline const ::std::string& KeyValuePairPB::key() const {
893
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.key)
894
2.04G
  return key_.GetNoArena();
895
2.04G
}
896
2.86M
inline void KeyValuePairPB::set_key(const ::std::string& value) {
897
2.86M
  set_has_key();
898
2.86M
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
899
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.key)
900
2.86M
}
901
#if LANG_CXX11
902
2.12M
inline void KeyValuePairPB::set_key(::std::string&& value) {
903
2.12M
  set_has_key();
904
2.12M
  key_.SetNoArena(
905
2.12M
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
906
  // @@protoc_insertion_point(field_set_rvalue:yb.docdb.KeyValuePairPB.key)
907
2.12M
}
908
#endif
909
0
inline void KeyValuePairPB::set_key(const char* value) {
910
0
  GOOGLE_DCHECK(value != NULL);
911
0
  set_has_key();
912
0
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
913
0
  // @@protoc_insertion_point(field_set_char:yb.docdb.KeyValuePairPB.key)
914
0
}
915
73.0k
inline void KeyValuePairPB::set_key(const void* value, size_t size) {
916
73.0k
  set_has_key();
917
73.0k
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
918
73.0k
      ::std::string(reinterpret_cast<const char*>(value), size));
919
  // @@protoc_insertion_point(field_set_pointer:yb.docdb.KeyValuePairPB.key)
920
73.0k
}
921
225M
inline ::std::string* KeyValuePairPB::mutable_key() {
922
225M
  set_has_key();
923
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValuePairPB.key)
924
225M
  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
925
225M
}
926
0
inline ::std::string* KeyValuePairPB::release_key() {
927
0
  // @@protoc_insertion_point(field_release:yb.docdb.KeyValuePairPB.key)
928
0
  clear_has_key();
929
0
  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
930
0
}
931
0
inline void KeyValuePairPB::set_allocated_key(::std::string* key) {
932
0
  if (key != NULL) {
933
0
    set_has_key();
934
0
  } else {
935
0
    clear_has_key();
936
0
  }
937
0
  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
938
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValuePairPB.key)
939
0
}
940
941
// optional bytes value = 2;
942
732M
inline bool KeyValuePairPB::has_value() const {
943
732M
  return (_has_bits_[0] & 0x00000002u) != 0;
944
732M
}
945
230M
inline void KeyValuePairPB::set_has_value() {
946
230M
  _has_bits_[0] |= 0x00000002u;
947
230M
}
948
0
inline void KeyValuePairPB::clear_has_value() {
949
0
  _has_bits_[0] &= ~0x00000002u;
950
0
}
951
0
inline void KeyValuePairPB::clear_value() {
952
0
  value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
953
0
  clear_has_value();
954
0
}
955
1.65G
inline const ::std::string& KeyValuePairPB::value() const {
956
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.value)
957
1.65G
  return value_.GetNoArena();
958
1.65G
}
959
0
inline void KeyValuePairPB::set_value(const ::std::string& value) {
960
0
  set_has_value();
961
0
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
962
0
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.value)
963
0
}
964
#if LANG_CXX11
965
2.93M
inline void KeyValuePairPB::set_value(::std::string&& value) {
966
2.93M
  set_has_value();
967
2.93M
  value_.SetNoArena(
968
2.93M
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
969
  // @@protoc_insertion_point(field_set_rvalue:yb.docdb.KeyValuePairPB.value)
970
2.93M
}
971
#endif
972
0
inline void KeyValuePairPB::set_value(const char* value) {
973
0
  GOOGLE_DCHECK(value != NULL);
974
0
  set_has_value();
975
0
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
976
0
  // @@protoc_insertion_point(field_set_char:yb.docdb.KeyValuePairPB.value)
977
0
}
978
68
inline void KeyValuePairPB::set_value(const void* value, size_t size) {
979
68
  set_has_value();
980
68
  value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
981
68
      ::std::string(reinterpret_cast<const char*>(value), size));
982
  // @@protoc_insertion_point(field_set_pointer:yb.docdb.KeyValuePairPB.value)
983
68
}
984
227M
inline ::std::string* KeyValuePairPB::mutable_value() {
985
227M
  set_has_value();
986
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValuePairPB.value)
987
227M
  return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
988
227M
}
989
0
inline ::std::string* KeyValuePairPB::release_value() {
990
0
  // @@protoc_insertion_point(field_release:yb.docdb.KeyValuePairPB.value)
991
0
  clear_has_value();
992
0
  return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
993
0
}
994
0
inline void KeyValuePairPB::set_allocated_value(::std::string* value) {
995
0
  if (value != NULL) {
996
0
    set_has_value();
997
0
  } else {
998
0
    clear_has_value();
999
0
  }
1000
0
  value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1001
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValuePairPB.value)
1002
0
}
1003
1004
// optional fixed64 external_hybrid_time = 3;
1005
865M
inline bool KeyValuePairPB::has_external_hybrid_time() const {
1006
865M
  return (_has_bits_[0] & 0x00000004u) != 0;
1007
865M
}
1008
0
inline void KeyValuePairPB::set_has_external_hybrid_time() {
1009
0
  _has_bits_[0] |= 0x00000004u;
1010
0
}
1011
0
inline void KeyValuePairPB::clear_has_external_hybrid_time() {
1012
0
  _has_bits_[0] &= ~0x00000004u;
1013
0
}
1014
0
inline void KeyValuePairPB::clear_external_hybrid_time() {
1015
0
  external_hybrid_time_ = GOOGLE_ULONGLONG(0);
1016
0
  clear_has_external_hybrid_time();
1017
0
}
1018
0
inline ::google::protobuf::uint64 KeyValuePairPB::external_hybrid_time() const {
1019
0
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValuePairPB.external_hybrid_time)
1020
0
  return external_hybrid_time_;
1021
0
}
1022
0
inline void KeyValuePairPB::set_external_hybrid_time(::google::protobuf::uint64 value) {
1023
0
  set_has_external_hybrid_time();
1024
0
  external_hybrid_time_ = value;
1025
0
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValuePairPB.external_hybrid_time)
1026
0
}
1027
1028
// -------------------------------------------------------------------
1029
1030
// ApplyExternalTransactionPB
1031
1032
// optional bytes transaction_id = 1;
1033
0
inline bool ApplyExternalTransactionPB::has_transaction_id() const {
1034
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1035
0
}
1036
0
inline void ApplyExternalTransactionPB::set_has_transaction_id() {
1037
0
  _has_bits_[0] |= 0x00000001u;
1038
0
}
1039
0
inline void ApplyExternalTransactionPB::clear_has_transaction_id() {
1040
0
  _has_bits_[0] &= ~0x00000001u;
1041
0
}
1042
0
inline void ApplyExternalTransactionPB::clear_transaction_id() {
1043
0
  transaction_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1044
0
  clear_has_transaction_id();
1045
0
}
1046
0
inline const ::std::string& ApplyExternalTransactionPB::transaction_id() const {
1047
0
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1048
0
  return transaction_id_.GetNoArena();
1049
0
}
1050
0
inline void ApplyExternalTransactionPB::set_transaction_id(const ::std::string& value) {
1051
0
  set_has_transaction_id();
1052
0
  transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1053
0
  // @@protoc_insertion_point(field_set:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1054
0
}
1055
#if LANG_CXX11
1056
0
inline void ApplyExternalTransactionPB::set_transaction_id(::std::string&& value) {
1057
0
  set_has_transaction_id();
1058
0
  transaction_id_.SetNoArena(
1059
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1060
0
  // @@protoc_insertion_point(field_set_rvalue:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1061
0
}
1062
#endif
1063
0
inline void ApplyExternalTransactionPB::set_transaction_id(const char* value) {
1064
0
  GOOGLE_DCHECK(value != NULL);
1065
0
  set_has_transaction_id();
1066
0
  transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1067
0
  // @@protoc_insertion_point(field_set_char:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1068
0
}
1069
0
inline void ApplyExternalTransactionPB::set_transaction_id(const void* value, size_t size) {
1070
0
  set_has_transaction_id();
1071
0
  transaction_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1072
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1073
0
  // @@protoc_insertion_point(field_set_pointer:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1074
0
}
1075
0
inline ::std::string* ApplyExternalTransactionPB::mutable_transaction_id() {
1076
0
  set_has_transaction_id();
1077
0
  // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1078
0
  return transaction_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1079
0
}
1080
0
inline ::std::string* ApplyExternalTransactionPB::release_transaction_id() {
1081
0
  // @@protoc_insertion_point(field_release:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1082
0
  clear_has_transaction_id();
1083
0
  return transaction_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1084
0
}
1085
0
inline void ApplyExternalTransactionPB::set_allocated_transaction_id(::std::string* transaction_id) {
1086
0
  if (transaction_id != NULL) {
1087
0
    set_has_transaction_id();
1088
0
  } else {
1089
0
    clear_has_transaction_id();
1090
0
  }
1091
0
  transaction_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction_id);
1092
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyExternalTransactionPB.transaction_id)
1093
0
}
1094
1095
// optional fixed64 commit_hybrid_time = 2;
1096
0
inline bool ApplyExternalTransactionPB::has_commit_hybrid_time() const {
1097
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1098
0
}
1099
0
inline void ApplyExternalTransactionPB::set_has_commit_hybrid_time() {
1100
0
  _has_bits_[0] |= 0x00000002u;
1101
0
}
1102
0
inline void ApplyExternalTransactionPB::clear_has_commit_hybrid_time() {
1103
0
  _has_bits_[0] &= ~0x00000002u;
1104
0
}
1105
0
inline void ApplyExternalTransactionPB::clear_commit_hybrid_time() {
1106
0
  commit_hybrid_time_ = GOOGLE_ULONGLONG(0);
1107
0
  clear_has_commit_hybrid_time();
1108
0
}
1109
0
inline ::google::protobuf::uint64 ApplyExternalTransactionPB::commit_hybrid_time() const {
1110
0
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyExternalTransactionPB.commit_hybrid_time)
1111
0
  return commit_hybrid_time_;
1112
0
}
1113
0
inline void ApplyExternalTransactionPB::set_commit_hybrid_time(::google::protobuf::uint64 value) {
1114
0
  set_has_commit_hybrid_time();
1115
0
  commit_hybrid_time_ = value;
1116
0
  // @@protoc_insertion_point(field_set:yb.docdb.ApplyExternalTransactionPB.commit_hybrid_time)
1117
0
}
1118
1119
// -------------------------------------------------------------------
1120
1121
// KeyValueWriteBatchPB
1122
1123
// repeated .yb.docdb.KeyValuePairPB write_pairs = 1;
1124
182M
inline int KeyValueWriteBatchPB::write_pairs_size() const {
1125
182M
  return write_pairs_.size();
1126
182M
}
1127
0
inline void KeyValueWriteBatchPB::clear_write_pairs() {
1128
0
  write_pairs_.Clear();
1129
0
}
1130
1.13G
inline const ::yb::docdb::KeyValuePairPB& KeyValueWriteBatchPB::write_pairs(int index) const {
1131
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.write_pairs)
1132
1.13G
  return write_pairs_.Get(index);
1133
1.13G
}
1134
0
inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::mutable_write_pairs(int index) {
1135
0
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.write_pairs)
1136
0
  return write_pairs_.Mutable(index);
1137
0
}
1138
223M
inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::add_write_pairs() {
1139
  // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.write_pairs)
1140
223M
  return write_pairs_.Add();
1141
223M
}
1142
inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >*
1143
3.11M
KeyValueWriteBatchPB::mutable_write_pairs() {
1144
  // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.write_pairs)
1145
3.11M
  return &write_pairs_;
1146
3.11M
}
1147
inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >&
1148
30.4M
KeyValueWriteBatchPB::write_pairs() const {
1149
  // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.write_pairs)
1150
30.4M
  return write_pairs_;
1151
30.4M
}
1152
1153
// optional .yb.TransactionMetadataPB transaction = 2;
1154
48.4M
inline bool KeyValueWriteBatchPB::has_transaction() const {
1155
48.4M
  return (_has_bits_[0] & 0x00000001u) != 0;
1156
48.4M
}
1157
3.95M
inline void KeyValueWriteBatchPB::set_has_transaction() {
1158
3.95M
  _has_bits_[0] |= 0x00000001u;
1159
3.95M
}
1160
0
inline void KeyValueWriteBatchPB::clear_has_transaction() {
1161
0
  _has_bits_[0] &= ~0x00000001u;
1162
0
}
1163
14.7M
inline const ::yb::TransactionMetadataPB& KeyValueWriteBatchPB::transaction() const {
1164
14.7M
  const ::yb::TransactionMetadataPB* p = transaction_;
1165
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.transaction)
1166
14.7M
  return p != NULL ? 
*p12.6M
: *reinterpret_cast<const ::yb::TransactionMetadataPB*>(
1167
2.13M
      &::yb::_TransactionMetadataPB_default_instance_);
1168
14.7M
}
1169
0
inline ::yb::TransactionMetadataPB* KeyValueWriteBatchPB::release_transaction() {
1170
0
  // @@protoc_insertion_point(field_release:yb.docdb.KeyValueWriteBatchPB.transaction)
1171
0
  clear_has_transaction();
1172
0
  ::yb::TransactionMetadataPB* temp = transaction_;
1173
0
  transaction_ = NULL;
1174
0
  return temp;
1175
0
}
1176
3.95M
inline ::yb::TransactionMetadataPB* KeyValueWriteBatchPB::mutable_transaction() {
1177
3.95M
  set_has_transaction();
1178
3.95M
  if (transaction_ == NULL) {
1179
3.95M
    transaction_ = new ::yb::TransactionMetadataPB;
1180
3.95M
  }
1181
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.transaction)
1182
3.95M
  return transaction_;
1183
3.95M
}
1184
0
inline void KeyValueWriteBatchPB::set_allocated_transaction(::yb::TransactionMetadataPB* transaction) {
1185
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1186
0
  if (message_arena == NULL) {
1187
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(transaction_);
1188
0
  }
1189
0
  if (transaction) {
1190
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1191
0
    if (message_arena != submessage_arena) {
1192
0
      transaction = ::google::protobuf::internal::GetOwnedMessage(
1193
0
          message_arena, transaction, submessage_arena);
1194
0
    }
1195
0
    set_has_transaction();
1196
0
  } else {
1197
0
    clear_has_transaction();
1198
0
  }
1199
0
  transaction_ = transaction;
1200
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValueWriteBatchPB.transaction)
1201
0
}
1202
1203
// optional .yb.SubTransactionMetadataPB subtransaction = 8;
1204
37.2M
inline bool KeyValueWriteBatchPB::has_subtransaction() const {
1205
37.2M
  return (_has_bits_[0] & 0x00000002u) != 0;
1206
37.2M
}
1207
43.0k
inline void KeyValueWriteBatchPB::set_has_subtransaction() {
1208
43.0k
  _has_bits_[0] |= 0x00000002u;
1209
43.0k
}
1210
0
inline void KeyValueWriteBatchPB::clear_has_subtransaction() {
1211
0
  _has_bits_[0] &= ~0x00000002u;
1212
0
}
1213
2.83M
inline const ::yb::SubTransactionMetadataPB& KeyValueWriteBatchPB::subtransaction() const {
1214
2.83M
  const ::yb::SubTransactionMetadataPB* p = subtransaction_;
1215
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.subtransaction)
1216
2.83M
  return p != NULL ? 
*p34.9k
: *reinterpret_cast<const ::yb::SubTransactionMetadataPB*>(
1217
2.79M
      &::yb::_SubTransactionMetadataPB_default_instance_);
1218
2.83M
}
1219
0
inline ::yb::SubTransactionMetadataPB* KeyValueWriteBatchPB::release_subtransaction() {
1220
0
  // @@protoc_insertion_point(field_release:yb.docdb.KeyValueWriteBatchPB.subtransaction)
1221
0
  clear_has_subtransaction();
1222
0
  ::yb::SubTransactionMetadataPB* temp = subtransaction_;
1223
0
  subtransaction_ = NULL;
1224
0
  return temp;
1225
0
}
1226
43.0k
inline ::yb::SubTransactionMetadataPB* KeyValueWriteBatchPB::mutable_subtransaction() {
1227
43.0k
  set_has_subtransaction();
1228
43.0k
  if (subtransaction_ == NULL) {
1229
43.0k
    subtransaction_ = new ::yb::SubTransactionMetadataPB;
1230
43.0k
  }
1231
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.subtransaction)
1232
43.0k
  return subtransaction_;
1233
43.0k
}
1234
0
inline void KeyValueWriteBatchPB::set_allocated_subtransaction(::yb::SubTransactionMetadataPB* subtransaction) {
1235
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1236
0
  if (message_arena == NULL) {
1237
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(subtransaction_);
1238
0
  }
1239
0
  if (subtransaction) {
1240
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1241
0
    if (message_arena != submessage_arena) {
1242
0
      subtransaction = ::google::protobuf::internal::GetOwnedMessage(
1243
0
          message_arena, subtransaction, submessage_arena);
1244
0
    }
1245
0
    set_has_subtransaction();
1246
0
  } else {
1247
0
    clear_has_subtransaction();
1248
0
  }
1249
0
  subtransaction_ = subtransaction;
1250
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.KeyValueWriteBatchPB.subtransaction)
1251
0
}
1252
1253
// optional bool DEPRECATED_may_have_metadata = 3;
1254
34.9M
inline bool KeyValueWriteBatchPB::has_deprecated_may_have_metadata() const {
1255
34.9M
  return (_has_bits_[0] & 0x00000004u) != 0;
1256
34.9M
}
1257
11.6M
inline void KeyValueWriteBatchPB::set_has_deprecated_may_have_metadata() {
1258
11.6M
  _has_bits_[0] |= 0x00000004u;
1259
11.6M
}
1260
0
inline void KeyValueWriteBatchPB::clear_has_deprecated_may_have_metadata() {
1261
0
  _has_bits_[0] &= ~0x00000004u;
1262
0
}
1263
0
inline void KeyValueWriteBatchPB::clear_deprecated_may_have_metadata() {
1264
0
  deprecated_may_have_metadata_ = false;
1265
0
  clear_has_deprecated_may_have_metadata();
1266
0
}
1267
14.5M
inline bool KeyValueWriteBatchPB::deprecated_may_have_metadata() const {
1268
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.DEPRECATED_may_have_metadata)
1269
14.5M
  return deprecated_may_have_metadata_;
1270
14.5M
}
1271
3.93M
inline void KeyValueWriteBatchPB::set_deprecated_may_have_metadata(bool value) {
1272
3.93M
  set_has_deprecated_may_have_metadata();
1273
3.93M
  deprecated_may_have_metadata_ = value;
1274
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.DEPRECATED_may_have_metadata)
1275
3.93M
}
1276
1277
// repeated .yb.docdb.KeyValuePairPB read_pairs = 5;
1278
50.8M
inline int KeyValueWriteBatchPB::read_pairs_size() const {
1279
50.8M
  return read_pairs_.size();
1280
50.8M
}
1281
0
inline void KeyValueWriteBatchPB::clear_read_pairs() {
1282
0
  read_pairs_.Clear();
1283
0
}
1284
39.8M
inline const ::yb::docdb::KeyValuePairPB& KeyValueWriteBatchPB::read_pairs(int index) const {
1285
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.read_pairs)
1286
39.8M
  return read_pairs_.Get(index);
1287
39.8M
}
1288
0
inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::mutable_read_pairs(int index) {
1289
0
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.read_pairs)
1290
0
  return read_pairs_.Mutable(index);
1291
0
}
1292
4.68M
inline ::yb::docdb::KeyValuePairPB* KeyValueWriteBatchPB::add_read_pairs() {
1293
  // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.read_pairs)
1294
4.68M
  return read_pairs_.Add();
1295
4.68M
}
1296
inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >*
1297
2.93M
KeyValueWriteBatchPB::mutable_read_pairs() {
1298
  // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.read_pairs)
1299
2.93M
  return &read_pairs_;
1300
2.93M
}
1301
inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::KeyValuePairPB >&
1302
15.5M
KeyValueWriteBatchPB::read_pairs() const {
1303
  // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.read_pairs)
1304
15.5M
  return read_pairs_;
1305
15.5M
}
1306
1307
// optional .yb.RowMarkType row_mark_type = 6;
1308
41.4M
inline bool KeyValueWriteBatchPB::has_row_mark_type() const {
1309
41.4M
  return (_has_bits_[0] & 0x00000008u) != 0;
1310
41.4M
}
1311
26.6k
inline void KeyValueWriteBatchPB::set_has_row_mark_type() {
1312
26.6k
  _has_bits_[0] |= 0x00000008u;
1313
26.6k
}
1314
0
inline void KeyValueWriteBatchPB::clear_has_row_mark_type() {
1315
0
  _has_bits_[0] &= ~0x00000008u;
1316
0
}
1317
0
inline void KeyValueWriteBatchPB::clear_row_mark_type() {
1318
0
  row_mark_type_ = 0;
1319
0
  clear_has_row_mark_type();
1320
0
}
1321
225k
inline ::yb::RowMarkType KeyValueWriteBatchPB::row_mark_type() const {
1322
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.row_mark_type)
1323
225k
  return static_cast< ::yb::RowMarkType >(row_mark_type_);
1324
225k
}
1325
26.6k
inline void KeyValueWriteBatchPB::set_row_mark_type(::yb::RowMarkType value) {
1326
26.6k
  assert(::yb::RowMarkType_IsValid(value));
1327
0
  set_has_row_mark_type();
1328
26.6k
  row_mark_type_ = value;
1329
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.row_mark_type)
1330
26.6k
}
1331
1332
// optional .yb.WaitPolicy wait_policy = 10;
1333
34.9M
inline bool KeyValueWriteBatchPB::has_wait_policy() const {
1334
34.9M
  return (_has_bits_[0] & 0x00000020u) != 0;
1335
34.9M
}
1336
3.58M
inline void KeyValueWriteBatchPB::set_has_wait_policy() {
1337
3.58M
  _has_bits_[0] |= 0x00000020u;
1338
3.58M
}
1339
0
inline void KeyValueWriteBatchPB::clear_has_wait_policy() {
1340
0
  _has_bits_[0] &= ~0x00000020u;
1341
0
}
1342
0
inline void KeyValueWriteBatchPB::clear_wait_policy() {
1343
0
  wait_policy_ = 0;
1344
0
  clear_has_wait_policy();
1345
0
}
1346
5.95M
inline ::yb::WaitPolicy KeyValueWriteBatchPB::wait_policy() const {
1347
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.wait_policy)
1348
5.95M
  return static_cast< ::yb::WaitPolicy >(wait_policy_);
1349
5.95M
}
1350
3.58M
inline void KeyValueWriteBatchPB::set_wait_policy(::yb::WaitPolicy value) {
1351
3.58M
  assert(::yb::WaitPolicy_IsValid(value));
1352
0
  set_has_wait_policy();
1353
3.58M
  wait_policy_ = value;
1354
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.wait_policy)
1355
3.58M
}
1356
1357
// repeated .yb.docdb.ApplyExternalTransactionPB apply_external_transactions = 7;
1358
50.8M
inline int KeyValueWriteBatchPB::apply_external_transactions_size() const {
1359
50.8M
  return apply_external_transactions_.size();
1360
50.8M
}
1361
0
inline void KeyValueWriteBatchPB::clear_apply_external_transactions() {
1362
0
  apply_external_transactions_.Clear();
1363
0
}
1364
0
inline const ::yb::docdb::ApplyExternalTransactionPB& KeyValueWriteBatchPB::apply_external_transactions(int index) const {
1365
0
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions)
1366
0
  return apply_external_transactions_.Get(index);
1367
0
}
1368
0
inline ::yb::docdb::ApplyExternalTransactionPB* KeyValueWriteBatchPB::mutable_apply_external_transactions(int index) {
1369
0
  // @@protoc_insertion_point(field_mutable:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions)
1370
0
  return apply_external_transactions_.Mutable(index);
1371
0
}
1372
0
inline ::yb::docdb::ApplyExternalTransactionPB* KeyValueWriteBatchPB::add_apply_external_transactions() {
1373
0
  // @@protoc_insertion_point(field_add:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions)
1374
0
  return apply_external_transactions_.Add();
1375
0
}
1376
inline ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >*
1377
0
KeyValueWriteBatchPB::mutable_apply_external_transactions() {
1378
0
  // @@protoc_insertion_point(field_mutable_list:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions)
1379
0
  return &apply_external_transactions_;
1380
0
}
1381
inline const ::google::protobuf::RepeatedPtrField< ::yb::docdb::ApplyExternalTransactionPB >&
1382
6.38M
KeyValueWriteBatchPB::apply_external_transactions() const {
1383
  // @@protoc_insertion_point(field_list:yb.docdb.KeyValueWriteBatchPB.apply_external_transactions)
1384
6.38M
  return apply_external_transactions_;
1385
6.38M
}
1386
1387
// optional int64 ttl = 9;
1388
43.7M
inline bool KeyValueWriteBatchPB::has_ttl() const {
1389
43.7M
  return (_has_bits_[0] & 0x00000010u) != 0;
1390
43.7M
}
1391
854
inline void KeyValueWriteBatchPB::set_has_ttl() {
1392
854
  _has_bits_[0] |= 0x00000010u;
1393
854
}
1394
0
inline void KeyValueWriteBatchPB::clear_has_ttl() {
1395
0
  _has_bits_[0] &= ~0x00000010u;
1396
0
}
1397
0
inline void KeyValueWriteBatchPB::clear_ttl() {
1398
0
  ttl_ = GOOGLE_LONGLONG(0);
1399
0
  clear_has_ttl();
1400
0
}
1401
4.08k
inline ::google::protobuf::int64 KeyValueWriteBatchPB::ttl() const {
1402
  // @@protoc_insertion_point(field_get:yb.docdb.KeyValueWriteBatchPB.ttl)
1403
4.08k
  return ttl_;
1404
4.08k
}
1405
446
inline void KeyValueWriteBatchPB::set_ttl(::google::protobuf::int64 value) {
1406
446
  set_has_ttl();
1407
446
  ttl_ = value;
1408
  // @@protoc_insertion_point(field_set:yb.docdb.KeyValueWriteBatchPB.ttl)
1409
446
}
1410
1411
// -------------------------------------------------------------------
1412
1413
// ConsensusFrontierPB
1414
1415
// optional .yb.OpIdPB op_id = 1;
1416
706k
inline bool ConsensusFrontierPB::has_op_id() const {
1417
706k
  return (_has_bits_[0] & 0x00000001u) != 0;
1418
706k
}
1419
370k
inline void ConsensusFrontierPB::set_has_op_id() {
1420
370k
  _has_bits_[0] |= 0x00000001u;
1421
370k
}
1422
0
inline void ConsensusFrontierPB::clear_has_op_id() {
1423
0
  _has_bits_[0] &= ~0x00000001u;
1424
0
}
1425
34.2k
inline const ::yb::OpIdPB& ConsensusFrontierPB::op_id() const {
1426
34.2k
  const ::yb::OpIdPB* p = op_id_;
1427
  // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.op_id)
1428
34.2k
  return p != NULL ? 
*p34.2k
: *reinterpret_cast<const ::yb::OpIdPB*>(
1429
2
      &::yb::_OpIdPB_default_instance_);
1430
34.2k
}
1431
0
inline ::yb::OpIdPB* ConsensusFrontierPB::release_op_id() {
1432
0
  // @@protoc_insertion_point(field_release:yb.docdb.ConsensusFrontierPB.op_id)
1433
0
  clear_has_op_id();
1434
0
  ::yb::OpIdPB* temp = op_id_;
1435
0
  op_id_ = NULL;
1436
0
  return temp;
1437
0
}
1438
370k
inline ::yb::OpIdPB* ConsensusFrontierPB::mutable_op_id() {
1439
370k
  set_has_op_id();
1440
370k
  if (op_id_ == NULL) {
1441
370k
    op_id_ = new ::yb::OpIdPB;
1442
370k
  }
1443
  // @@protoc_insertion_point(field_mutable:yb.docdb.ConsensusFrontierPB.op_id)
1444
370k
  return op_id_;
1445
370k
}
1446
0
inline void ConsensusFrontierPB::set_allocated_op_id(::yb::OpIdPB* op_id) {
1447
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1448
0
  if (message_arena == NULL) {
1449
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(op_id_);
1450
0
  }
1451
0
  if (op_id) {
1452
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1453
0
    if (message_arena != submessage_arena) {
1454
0
      op_id = ::google::protobuf::internal::GetOwnedMessage(
1455
0
          message_arena, op_id, submessage_arena);
1456
0
    }
1457
0
    set_has_op_id();
1458
0
  } else {
1459
0
    clear_has_op_id();
1460
0
  }
1461
0
  op_id_ = op_id;
1462
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.ConsensusFrontierPB.op_id)
1463
0
}
1464
1465
// optional fixed64 hybrid_time = 2;
1466
336k
inline bool ConsensusFrontierPB::has_hybrid_time() const {
1467
336k
  return (_has_bits_[0] & 0x00000002u) != 0;
1468
336k
}
1469
370k
inline void ConsensusFrontierPB::set_has_hybrid_time() {
1470
370k
  _has_bits_[0] |= 0x00000002u;
1471
370k
}
1472
0
inline void ConsensusFrontierPB::clear_has_hybrid_time() {
1473
0
  _has_bits_[0] &= ~0x00000002u;
1474
0
}
1475
0
inline void ConsensusFrontierPB::clear_hybrid_time() {
1476
0
  hybrid_time_ = GOOGLE_ULONGLONG(0);
1477
0
  clear_has_hybrid_time();
1478
0
}
1479
370k
inline ::google::protobuf::uint64 ConsensusFrontierPB::hybrid_time() const {
1480
  // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.hybrid_time)
1481
370k
  return hybrid_time_;
1482
370k
}
1483
336k
inline void ConsensusFrontierPB::set_hybrid_time(::google::protobuf::uint64 value) {
1484
336k
  set_has_hybrid_time();
1485
336k
  hybrid_time_ = value;
1486
  // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.hybrid_time)
1487
336k
}
1488
1489
// optional fixed64 history_cutoff = 3;
1490
336k
inline bool ConsensusFrontierPB::has_history_cutoff() const {
1491
336k
  return (_has_bits_[0] & 0x00000004u) != 0;
1492
336k
}
1493
370k
inline void ConsensusFrontierPB::set_has_history_cutoff() {
1494
370k
  _has_bits_[0] |= 0x00000004u;
1495
370k
}
1496
0
inline void ConsensusFrontierPB::clear_has_history_cutoff() {
1497
0
  _has_bits_[0] &= ~0x00000004u;
1498
0
}
1499
0
inline void ConsensusFrontierPB::clear_history_cutoff() {
1500
0
  history_cutoff_ = GOOGLE_ULONGLONG(0);
1501
0
  clear_has_history_cutoff();
1502
0
}
1503
370k
inline ::google::protobuf::uint64 ConsensusFrontierPB::history_cutoff() const {
1504
  // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.history_cutoff)
1505
370k
  return history_cutoff_;
1506
370k
}
1507
336k
inline void ConsensusFrontierPB::set_history_cutoff(::google::protobuf::uint64 value) {
1508
336k
  set_has_history_cutoff();
1509
336k
  history_cutoff_ = value;
1510
  // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.history_cutoff)
1511
336k
}
1512
1513
// optional fixed64 hybrid_time_filter = 4;
1514
370k
inline bool ConsensusFrontierPB::has_hybrid_time_filter() const {
1515
370k
  return (_has_bits_[0] & 0x00000008u) != 0;
1516
370k
}
1517
41
inline void ConsensusFrontierPB::set_has_hybrid_time_filter() {
1518
41
  _has_bits_[0] |= 0x00000008u;
1519
41
}
1520
0
inline void ConsensusFrontierPB::clear_has_hybrid_time_filter() {
1521
0
  _has_bits_[0] &= ~0x00000008u;
1522
0
}
1523
0
inline void ConsensusFrontierPB::clear_hybrid_time_filter() {
1524
0
  hybrid_time_filter_ = GOOGLE_ULONGLONG(0);
1525
0
  clear_has_hybrid_time_filter();
1526
0
}
1527
41
inline ::google::protobuf::uint64 ConsensusFrontierPB::hybrid_time_filter() const {
1528
  // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.hybrid_time_filter)
1529
41
  return hybrid_time_filter_;
1530
41
}
1531
24
inline void ConsensusFrontierPB::set_hybrid_time_filter(::google::protobuf::uint64 value) {
1532
24
  set_has_hybrid_time_filter();
1533
24
  hybrid_time_filter_ = value;
1534
  // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.hybrid_time_filter)
1535
24
}
1536
1537
// optional fixed64 max_value_level_ttl_expiration_time = 5;
1538
336k
inline bool ConsensusFrontierPB::has_max_value_level_ttl_expiration_time() const {
1539
336k
  return (_has_bits_[0] & 0x00000010u) != 0;
1540
336k
}
1541
370k
inline void ConsensusFrontierPB::set_has_max_value_level_ttl_expiration_time() {
1542
370k
  _has_bits_[0] |= 0x00000010u;
1543
370k
}
1544
0
inline void ConsensusFrontierPB::clear_has_max_value_level_ttl_expiration_time() {
1545
0
  _has_bits_[0] &= ~0x00000010u;
1546
0
}
1547
0
inline void ConsensusFrontierPB::clear_max_value_level_ttl_expiration_time() {
1548
0
  max_value_level_ttl_expiration_time_ = GOOGLE_ULONGLONG(0);
1549
0
  clear_has_max_value_level_ttl_expiration_time();
1550
0
}
1551
370k
inline ::google::protobuf::uint64 ConsensusFrontierPB::max_value_level_ttl_expiration_time() const {
1552
  // @@protoc_insertion_point(field_get:yb.docdb.ConsensusFrontierPB.max_value_level_ttl_expiration_time)
1553
370k
  return max_value_level_ttl_expiration_time_;
1554
370k
}
1555
336k
inline void ConsensusFrontierPB::set_max_value_level_ttl_expiration_time(::google::protobuf::uint64 value) {
1556
336k
  set_has_max_value_level_ttl_expiration_time();
1557
336k
  max_value_level_ttl_expiration_time_ = value;
1558
  // @@protoc_insertion_point(field_set:yb.docdb.ConsensusFrontierPB.max_value_level_ttl_expiration_time)
1559
336k
}
1560
1561
// -------------------------------------------------------------------
1562
1563
// ApplyTransactionStatePB
1564
1565
// optional bytes key = 1;
1566
183
inline bool ApplyTransactionStatePB::has_key() const {
1567
183
  return (_has_bits_[0] & 0x00000001u) != 0;
1568
183
}
1569
183
inline void ApplyTransactionStatePB::set_has_key() {
1570
183
  _has_bits_[0] |= 0x00000001u;
1571
183
}
1572
0
inline void ApplyTransactionStatePB::clear_has_key() {
1573
0
  _has_bits_[0] &= ~0x00000001u;
1574
0
}
1575
0
inline void ApplyTransactionStatePB::clear_key() {
1576
0
  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1577
0
  clear_has_key();
1578
0
}
1579
366
inline const ::std::string& ApplyTransactionStatePB::key() const {
1580
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.key)
1581
366
  return key_.GetNoArena();
1582
366
}
1583
183
inline void ApplyTransactionStatePB::set_key(const ::std::string& value) {
1584
183
  set_has_key();
1585
183
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1586
  // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.key)
1587
183
}
1588
#if LANG_CXX11
1589
0
inline void ApplyTransactionStatePB::set_key(::std::string&& value) {
1590
0
  set_has_key();
1591
0
  key_.SetNoArena(
1592
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1593
0
  // @@protoc_insertion_point(field_set_rvalue:yb.docdb.ApplyTransactionStatePB.key)
1594
0
}
1595
#endif
1596
0
inline void ApplyTransactionStatePB::set_key(const char* value) {
1597
0
  GOOGLE_DCHECK(value != NULL);
1598
0
  set_has_key();
1599
0
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1600
0
  // @@protoc_insertion_point(field_set_char:yb.docdb.ApplyTransactionStatePB.key)
1601
0
}
1602
0
inline void ApplyTransactionStatePB::set_key(const void* value, size_t size) {
1603
0
  set_has_key();
1604
0
  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1605
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1606
0
  // @@protoc_insertion_point(field_set_pointer:yb.docdb.ApplyTransactionStatePB.key)
1607
0
}
1608
0
inline ::std::string* ApplyTransactionStatePB::mutable_key() {
1609
0
  set_has_key();
1610
0
  // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyTransactionStatePB.key)
1611
0
  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1612
0
}
1613
0
inline ::std::string* ApplyTransactionStatePB::release_key() {
1614
0
  // @@protoc_insertion_point(field_release:yb.docdb.ApplyTransactionStatePB.key)
1615
0
  clear_has_key();
1616
0
  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1617
0
}
1618
0
inline void ApplyTransactionStatePB::set_allocated_key(::std::string* key) {
1619
0
  if (key != NULL) {
1620
0
    set_has_key();
1621
0
  } else {
1622
0
    clear_has_key();
1623
0
  }
1624
0
  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
1625
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyTransactionStatePB.key)
1626
0
}
1627
1628
// optional uint32 write_id = 2;
1629
183
inline bool ApplyTransactionStatePB::has_write_id() const {
1630
183
  return (_has_bits_[0] & 0x00000008u) != 0;
1631
183
}
1632
183
inline void ApplyTransactionStatePB::set_has_write_id() {
1633
183
  _has_bits_[0] |= 0x00000008u;
1634
183
}
1635
0
inline void ApplyTransactionStatePB::clear_has_write_id() {
1636
0
  _has_bits_[0] &= ~0x00000008u;
1637
0
}
1638
0
inline void ApplyTransactionStatePB::clear_write_id() {
1639
0
  write_id_ = 0u;
1640
0
  clear_has_write_id();
1641
0
}
1642
366
inline ::google::protobuf::uint32 ApplyTransactionStatePB::write_id() const {
1643
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.write_id)
1644
366
  return write_id_;
1645
366
}
1646
183
inline void ApplyTransactionStatePB::set_write_id(::google::protobuf::uint32 value) {
1647
183
  set_has_write_id();
1648
183
  write_id_ = value;
1649
  // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.write_id)
1650
183
}
1651
1652
// optional fixed64 commit_ht = 3;
1653
183
inline bool ApplyTransactionStatePB::has_commit_ht() const {
1654
183
  return (_has_bits_[0] & 0x00000004u) != 0;
1655
183
}
1656
183
inline void ApplyTransactionStatePB::set_has_commit_ht() {
1657
183
  _has_bits_[0] |= 0x00000004u;
1658
183
}
1659
0
inline void ApplyTransactionStatePB::clear_has_commit_ht() {
1660
0
  _has_bits_[0] &= ~0x00000004u;
1661
0
}
1662
0
inline void ApplyTransactionStatePB::clear_commit_ht() {
1663
0
  commit_ht_ = GOOGLE_ULONGLONG(0);
1664
0
  clear_has_commit_ht();
1665
0
}
1666
183
inline ::google::protobuf::uint64 ApplyTransactionStatePB::commit_ht() const {
1667
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.commit_ht)
1668
183
  return commit_ht_;
1669
183
}
1670
183
inline void ApplyTransactionStatePB::set_commit_ht(::google::protobuf::uint64 value) {
1671
183
  set_has_commit_ht();
1672
183
  commit_ht_ = value;
1673
  // @@protoc_insertion_point(field_set:yb.docdb.ApplyTransactionStatePB.commit_ht)
1674
183
}
1675
1676
// optional .yb.AbortedSubTransactionSetPB aborted = 4;
1677
183
inline bool ApplyTransactionStatePB::has_aborted() const {
1678
183
  return (_has_bits_[0] & 0x00000002u) != 0;
1679
183
}
1680
183
inline void ApplyTransactionStatePB::set_has_aborted() {
1681
183
  _has_bits_[0] |= 0x00000002u;
1682
183
}
1683
0
inline void ApplyTransactionStatePB::clear_has_aborted() {
1684
0
  _has_bits_[0] &= ~0x00000002u;
1685
0
}
1686
0
inline const ::yb::AbortedSubTransactionSetPB& ApplyTransactionStatePB::aborted() const {
1687
0
  const ::yb::AbortedSubTransactionSetPB* p = aborted_;
1688
0
  // @@protoc_insertion_point(field_get:yb.docdb.ApplyTransactionStatePB.aborted)
1689
0
  return p != NULL ? *p : *reinterpret_cast<const ::yb::AbortedSubTransactionSetPB*>(
1690
0
      &::yb::_AbortedSubTransactionSetPB_default_instance_);
1691
0
}
1692
0
inline ::yb::AbortedSubTransactionSetPB* ApplyTransactionStatePB::release_aborted() {
1693
0
  // @@protoc_insertion_point(field_release:yb.docdb.ApplyTransactionStatePB.aborted)
1694
0
  clear_has_aborted();
1695
0
  ::yb::AbortedSubTransactionSetPB* temp = aborted_;
1696
0
  aborted_ = NULL;
1697
0
  return temp;
1698
0
}
1699
183
inline ::yb::AbortedSubTransactionSetPB* ApplyTransactionStatePB::mutable_aborted() {
1700
183
  set_has_aborted();
1701
183
  if (aborted_ == NULL) {
1702
183
    aborted_ = new ::yb::AbortedSubTransactionSetPB;
1703
183
  }
1704
  // @@protoc_insertion_point(field_mutable:yb.docdb.ApplyTransactionStatePB.aborted)
1705
183
  return aborted_;
1706
183
}
1707
0
inline void ApplyTransactionStatePB::set_allocated_aborted(::yb::AbortedSubTransactionSetPB* aborted) {
1708
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1709
0
  if (message_arena == NULL) {
1710
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(aborted_);
1711
0
  }
1712
0
  if (aborted) {
1713
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1714
0
    if (message_arena != submessage_arena) {
1715
0
      aborted = ::google::protobuf::internal::GetOwnedMessage(
1716
0
          message_arena, aborted, submessage_arena);
1717
0
    }
1718
0
    set_has_aborted();
1719
0
  } else {
1720
0
    clear_has_aborted();
1721
0
  }
1722
0
  aborted_ = aborted;
1723
0
  // @@protoc_insertion_point(field_set_allocated:yb.docdb.ApplyTransactionStatePB.aborted)
1724
0
}
1725
1726
#ifdef __GNUC__
1727
  #pragma GCC diagnostic pop
1728
#endif  // __GNUC__
1729
// -------------------------------------------------------------------
1730
1731
// -------------------------------------------------------------------
1732
1733
// -------------------------------------------------------------------
1734
1735
// -------------------------------------------------------------------
1736
1737
1738
// @@protoc_insertion_point(namespace_scope)
1739
1740
}  // namespace docdb
1741
}  // namespace yb
1742
1743
// @@protoc_insertion_point(global_scope)
1744
1745
#endif  // PROTOBUF_yb_2fdocdb_2fdocdb_2eproto__INCLUDED