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/consensus/log.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/consensus/log.proto
3
4
#ifndef PROTOBUF_yb_2fconsensus_2flog_2eproto__INCLUDED
5
#define PROTOBUF_yb_2fconsensus_2flog_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/generated_enum_reflection.h>
32
#include <google/protobuf/unknown_field_set.h>
33
#include "yb/common/common.pb.h"
34
#include "yb/consensus/consensus.pb.h"
35
#include "yb/util/opid.pb.h"
36
// @@protoc_insertion_point(includes)
37
38
namespace protobuf_yb_2fconsensus_2flog_2eproto {
39
// Internal implementation detail -- do not use these members.
40
struct TableStruct {
41
  static const ::google::protobuf::internal::ParseTableField entries[];
42
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43
  static const ::google::protobuf::internal::ParseTable schema[4];
44
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46
  static const ::google::protobuf::uint32 offsets[];
47
};
48
void AddDescriptors();
49
void InitDefaultsLogEntryPBImpl();
50
void InitDefaultsLogEntryPB();
51
void InitDefaultsLogEntryBatchPBImpl();
52
void InitDefaultsLogEntryBatchPB();
53
void InitDefaultsLogSegmentHeaderPBImpl();
54
void InitDefaultsLogSegmentHeaderPB();
55
void InitDefaultsLogSegmentFooterPBImpl();
56
void InitDefaultsLogSegmentFooterPB();
57
16.5k
inline void InitDefaults() {
58
16.5k
  InitDefaultsLogEntryPB();
59
16.5k
  InitDefaultsLogEntryBatchPB();
60
16.5k
  InitDefaultsLogSegmentHeaderPB();
61
16.5k
  InitDefaultsLogSegmentFooterPB();
62
16.5k
}
63
}  // namespace protobuf_yb_2fconsensus_2flog_2eproto
64
namespace yb {
65
namespace log {
66
class LogEntryBatchPB;
67
class LogEntryBatchPBDefaultTypeInternal;
68
extern LogEntryBatchPBDefaultTypeInternal _LogEntryBatchPB_default_instance_;
69
class LogEntryPB;
70
class LogEntryPBDefaultTypeInternal;
71
extern LogEntryPBDefaultTypeInternal _LogEntryPB_default_instance_;
72
class LogSegmentFooterPB;
73
class LogSegmentFooterPBDefaultTypeInternal;
74
extern LogSegmentFooterPBDefaultTypeInternal _LogSegmentFooterPB_default_instance_;
75
class LogSegmentHeaderPB;
76
class LogSegmentHeaderPBDefaultTypeInternal;
77
extern LogSegmentHeaderPBDefaultTypeInternal _LogSegmentHeaderPB_default_instance_;
78
}  // namespace log
79
}  // namespace yb
80
namespace yb {
81
namespace log {
82
83
enum LogEntryTypePB {
84
  UNKNOWN = 0,
85
  REPLICATE = 1,
86
  ROLLOVER_MARKER = 998,
87
  FLUSH_MARKER = 999
88
};
89
bool LogEntryTypePB_IsValid(int value);
90
const LogEntryTypePB LogEntryTypePB_MIN = UNKNOWN;
91
const LogEntryTypePB LogEntryTypePB_MAX = FLUSH_MARKER;
92
const int LogEntryTypePB_ARRAYSIZE = LogEntryTypePB_MAX + 1;
93
94
const ::google::protobuf::EnumDescriptor* LogEntryTypePB_descriptor();
95
3.70k
inline const ::std::string& LogEntryTypePB_Name(LogEntryTypePB value) {
96
3.70k
  return ::google::protobuf::internal::NameOfEnum(
97
3.70k
    LogEntryTypePB_descriptor(), value);
98
3.70k
}
99
inline bool LogEntryTypePB_Parse(
100
0
    const ::std::string& name, LogEntryTypePB* value) {
101
0
  return ::google::protobuf::internal::ParseNamedEnum<LogEntryTypePB>(
102
0
    LogEntryTypePB_descriptor(), name, value);
103
0
}
104
// ===================================================================
105
106
class LogEntryPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.log.LogEntryPB) */ {
107
 public:
108
  LogEntryPB();
109
  virtual ~LogEntryPB();
110
111
  LogEntryPB(const LogEntryPB& from);
112
113
0
  inline LogEntryPB& operator=(const LogEntryPB& from) {
114
0
    CopyFrom(from);
115
0
    return *this;
116
0
  }
117
  #if LANG_CXX11
118
  LogEntryPB(LogEntryPB&& from) noexcept
119
0
    : LogEntryPB() {
120
0
    *this = ::std::move(from);
121
0
  }
122
123
0
  inline LogEntryPB& operator=(LogEntryPB&& from) noexcept {
124
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
125
0
      if (this != &from) InternalSwap(&from);
126
0
    } else {
127
0
      CopyFrom(from);
128
0
    }
129
0
    return *this;
130
0
  }
131
  #endif
132
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
133
0
    return _internal_metadata_.unknown_fields();
134
0
  }
135
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
136
0
    return _internal_metadata_.mutable_unknown_fields();
137
0
  }
138
139
  static const ::google::protobuf::Descriptor* descriptor();
140
  static const LogEntryPB& default_instance();
141
142
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
143
34.9M
  static inline const LogEntryPB* internal_default_instance() {
144
34.9M
    return reinterpret_cast<const LogEntryPB*>(
145
34.9M
               &_LogEntryPB_default_instance_);
146
34.9M
  }
147
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
148
    0;
149
150
  void Swap(LogEntryPB* other);
151
0
  friend void swap(LogEntryPB& a, LogEntryPB& b) {
152
0
    a.Swap(&b);
153
0
  }
154
155
  // implements Message ----------------------------------------------
156
157
0
  inline LogEntryPB* New() const PROTOBUF_FINAL { return New(NULL); }
158
159
  LogEntryPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
160
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
161
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
162
  void CopyFrom(const LogEntryPB& from);
163
  void MergeFrom(const LogEntryPB& from);
164
  void Clear() PROTOBUF_FINAL;
165
  bool IsInitialized() const PROTOBUF_FINAL;
166
167
  size_t ByteSizeLong() const PROTOBUF_FINAL;
168
  bool MergePartialFromCodedStream(
169
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
170
  void SerializeWithCachedSizes(
171
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
172
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
173
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
174
15.3M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
175
  private:
176
  void SharedCtor();
177
  void SharedDtor();
178
  void SetCachedSize(int size) const PROTOBUF_FINAL;
179
  void InternalSwap(LogEntryPB* other);
180
  private:
181
15.2M
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
182
15.2M
    return NULL;
183
15.2M
  }
184
0
  inline void* MaybeArenaPtr() const {
185
0
    return NULL;
186
0
  }
187
  public:
188
189
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
190
191
  // nested types ----------------------------------------------------
192
193
  // accessors -------------------------------------------------------
194
195
  // optional .yb.consensus.ReplicateMsg replicate = 2;
196
  bool has_replicate() const;
197
  void clear_replicate();
198
  static const int kReplicateFieldNumber = 2;
199
  const ::yb::consensus::ReplicateMsg& replicate() const;
200
  ::yb::consensus::ReplicateMsg* release_replicate();
201
  ::yb::consensus::ReplicateMsg* mutable_replicate();
202
  void set_allocated_replicate(::yb::consensus::ReplicateMsg* replicate);
203
204
  // required .yb.log.LogEntryTypePB type = 1;
205
  bool has_type() const;
206
  void clear_type();
207
  static const int kTypeFieldNumber = 1;
208
  ::yb::log::LogEntryTypePB type() const;
209
  void set_type(::yb::log::LogEntryTypePB value);
210
211
  // @@protoc_insertion_point(class_scope:yb.log.LogEntryPB)
212
 private:
213
  void set_has_type();
214
  void clear_has_type();
215
  void set_has_replicate();
216
  void clear_has_replicate();
217
218
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
219
  ::google::protobuf::internal::HasBits<1> _has_bits_;
220
  mutable int _cached_size_;
221
  ::yb::consensus::ReplicateMsg* replicate_;
222
  int type_;
223
  friend struct ::protobuf_yb_2fconsensus_2flog_2eproto::TableStruct;
224
  friend void ::protobuf_yb_2fconsensus_2flog_2eproto::InitDefaultsLogEntryPBImpl();
225
};
226
// -------------------------------------------------------------------
227
228
class LogEntryBatchPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.log.LogEntryBatchPB) */ {
229
 public:
230
  LogEntryBatchPB();
231
  virtual ~LogEntryBatchPB();
232
233
  LogEntryBatchPB(const LogEntryBatchPB& from);
234
235
0
  inline LogEntryBatchPB& operator=(const LogEntryBatchPB& from) {
236
0
    CopyFrom(from);
237
0
    return *this;
238
0
  }
239
  #if LANG_CXX11
240
  LogEntryBatchPB(LogEntryBatchPB&& from) noexcept
241
26.4M
    : LogEntryBatchPB() {
242
26.4M
    *this = ::std::move(from);
243
26.4M
  }
Unexecuted instantiation: yb::log::LogEntryBatchPB::LogEntryBatchPB(yb::log::LogEntryBatchPB&&)
yb::log::LogEntryBatchPB::LogEntryBatchPB(yb::log::LogEntryBatchPB&&)
Line
Count
Source
241
26.4M
    : LogEntryBatchPB() {
242
26.4M
    *this = ::std::move(from);
243
26.4M
  }
244
245
26.4M
  inline LogEntryBatchPB& operator=(LogEntryBatchPB&& from) noexcept {
246
26.4M
    if (
GetArenaNoVirtual() == from.GetArenaNoVirtual()26.4M
) {
247
26.4M
      if (
this != &from26.4M
) InternalSwap(&from);
248
18.4E
    } else {
249
18.4E
      CopyFrom(from);
250
18.4E
    }
251
26.4M
    return *this;
252
26.4M
  }
253
  #endif
254
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
255
0
    return _internal_metadata_.unknown_fields();
256
0
  }
257
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
258
0
    return _internal_metadata_.mutable_unknown_fields();
259
0
  }
260
261
  static const ::google::protobuf::Descriptor* descriptor();
262
  static const LogEntryBatchPB& default_instance();
263
264
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
265
119M
  static inline const LogEntryBatchPB* internal_default_instance() {
266
119M
    return reinterpret_cast<const LogEntryBatchPB*>(
267
119M
               &_LogEntryBatchPB_default_instance_);
268
119M
  }
269
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
270
    1;
271
272
  void Swap(LogEntryBatchPB* other);
273
0
  friend void swap(LogEntryBatchPB& a, LogEntryBatchPB& b) {
274
0
    a.Swap(&b);
275
0
  }
276
277
  // implements Message ----------------------------------------------
278
279
0
  inline LogEntryBatchPB* New() const PROTOBUF_FINAL { return New(NULL); }
280
281
  LogEntryBatchPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
282
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
283
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
284
  void CopyFrom(const LogEntryBatchPB& from);
285
  void MergeFrom(const LogEntryBatchPB& from);
286
  void Clear() PROTOBUF_FINAL;
287
  bool IsInitialized() const PROTOBUF_FINAL;
288
289
  size_t ByteSizeLong() const PROTOBUF_FINAL;
290
  bool MergePartialFromCodedStream(
291
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
292
  void SerializeWithCachedSizes(
293
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
294
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
295
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
296
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
297
  private:
298
  void SharedCtor();
299
  void SharedDtor();
300
  void SetCachedSize(int size) const PROTOBUF_FINAL;
301
  void InternalSwap(LogEntryBatchPB* other);
302
  private:
303
52.8M
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
304
52.8M
    return NULL;
305
52.8M
  }
306
0
  inline void* MaybeArenaPtr() const {
307
0
    return NULL;
308
0
  }
309
  public:
310
311
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
312
313
  // nested types ----------------------------------------------------
314
315
  // accessors -------------------------------------------------------
316
317
  // repeated .yb.log.LogEntryPB entry = 1;
318
  int entry_size() const;
319
  void clear_entry();
320
  static const int kEntryFieldNumber = 1;
321
  const ::yb::log::LogEntryPB& entry(int index) const;
322
  ::yb::log::LogEntryPB* mutable_entry(int index);
323
  ::yb::log::LogEntryPB* add_entry();
324
  ::google::protobuf::RepeatedPtrField< ::yb::log::LogEntryPB >*
325
      mutable_entry();
326
  const ::google::protobuf::RepeatedPtrField< ::yb::log::LogEntryPB >&
327
      entry() const;
328
329
  // optional .yb.OpIdPB committed_op_id = 2;
330
  bool has_committed_op_id() const;
331
  void clear_committed_op_id();
332
  static const int kCommittedOpIdFieldNumber = 2;
333
  const ::yb::OpIdPB& committed_op_id() const;
334
  ::yb::OpIdPB* release_committed_op_id();
335
  ::yb::OpIdPB* mutable_committed_op_id();
336
  void set_allocated_committed_op_id(::yb::OpIdPB* committed_op_id);
337
338
  // optional uint64 mono_time = 3;
339
  bool has_mono_time() const;
340
  void clear_mono_time();
341
  static const int kMonoTimeFieldNumber = 3;
342
  ::google::protobuf::uint64 mono_time() const;
343
  void set_mono_time(::google::protobuf::uint64 value);
344
345
  // @@protoc_insertion_point(class_scope:yb.log.LogEntryBatchPB)
346
 private:
347
  void set_has_committed_op_id();
348
  void clear_has_committed_op_id();
349
  void set_has_mono_time();
350
  void clear_has_mono_time();
351
352
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
353
  ::google::protobuf::internal::HasBits<1> _has_bits_;
354
  mutable int _cached_size_;
355
  ::google::protobuf::RepeatedPtrField< ::yb::log::LogEntryPB > entry_;
356
  ::yb::OpIdPB* committed_op_id_;
357
  ::google::protobuf::uint64 mono_time_;
358
  friend struct ::protobuf_yb_2fconsensus_2flog_2eproto::TableStruct;
359
  friend void ::protobuf_yb_2fconsensus_2flog_2eproto::InitDefaultsLogEntryBatchPBImpl();
360
};
361
// -------------------------------------------------------------------
362
363
class LogSegmentHeaderPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.log.LogSegmentHeaderPB) */ {
364
 public:
365
  LogSegmentHeaderPB();
366
  virtual ~LogSegmentHeaderPB();
367
368
  LogSegmentHeaderPB(const LogSegmentHeaderPB& from);
369
370
0
  inline LogSegmentHeaderPB& operator=(const LogSegmentHeaderPB& from) {
371
0
    CopyFrom(from);
372
0
    return *this;
373
0
  }
374
  #if LANG_CXX11
375
  LogSegmentHeaderPB(LogSegmentHeaderPB&& from) noexcept
376
0
    : LogSegmentHeaderPB() {
377
0
    *this = ::std::move(from);
378
0
  }
379
380
0
  inline LogSegmentHeaderPB& operator=(LogSegmentHeaderPB&& from) noexcept {
381
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
382
0
      if (this != &from) InternalSwap(&from);
383
0
    } else {
384
0
      CopyFrom(from);
385
0
    }
386
0
    return *this;
387
0
  }
388
  #endif
389
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
390
0
    return _internal_metadata_.unknown_fields();
391
0
  }
392
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
393
0
    return _internal_metadata_.mutable_unknown_fields();
394
0
  }
395
396
  static const ::google::protobuf::Descriptor* descriptor();
397
  static const LogSegmentHeaderPB& default_instance();
398
399
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
400
1.03M
  static inline const LogSegmentHeaderPB* internal_default_instance() {
401
1.03M
    return reinterpret_cast<const LogSegmentHeaderPB*>(
402
1.03M
               &_LogSegmentHeaderPB_default_instance_);
403
1.03M
  }
404
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
405
    2;
406
407
  void Swap(LogSegmentHeaderPB* other);
408
0
  friend void swap(LogSegmentHeaderPB& a, LogSegmentHeaderPB& b) {
409
0
    a.Swap(&b);
410
0
  }
411
412
  // implements Message ----------------------------------------------
413
414
0
  inline LogSegmentHeaderPB* New() const PROTOBUF_FINAL { return New(NULL); }
415
416
  LogSegmentHeaderPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
417
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
418
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
419
  void CopyFrom(const LogSegmentHeaderPB& from);
420
  void MergeFrom(const LogSegmentHeaderPB& from);
421
  void Clear() PROTOBUF_FINAL;
422
  bool IsInitialized() const PROTOBUF_FINAL;
423
424
  size_t ByteSizeLong() const PROTOBUF_FINAL;
425
  bool MergePartialFromCodedStream(
426
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
427
  void SerializeWithCachedSizes(
428
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
429
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
430
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
431
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
432
  private:
433
  void SharedCtor();
434
  void SharedDtor();
435
  void SetCachedSize(int size) const PROTOBUF_FINAL;
436
  void InternalSwap(LogSegmentHeaderPB* other);
437
  private:
438
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
439
0
    return NULL;
440
0
  }
441
0
  inline void* MaybeArenaPtr() const {
442
0
    return NULL;
443
0
  }
444
  public:
445
446
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
447
448
  // nested types ----------------------------------------------------
449
450
  // accessors -------------------------------------------------------
451
452
  // required bytes unused_tablet_id = 5;
453
  bool has_unused_tablet_id() const;
454
  void clear_unused_tablet_id();
455
  static const int kUnusedTabletIdFieldNumber = 5;
456
  const ::std::string& unused_tablet_id() const;
457
  void set_unused_tablet_id(const ::std::string& value);
458
  #if LANG_CXX11
459
  void set_unused_tablet_id(::std::string&& value);
460
  #endif
461
  void set_unused_tablet_id(const char* value);
462
  void set_unused_tablet_id(const void* value, size_t size);
463
  ::std::string* mutable_unused_tablet_id();
464
  ::std::string* release_unused_tablet_id();
465
  void set_allocated_unused_tablet_id(::std::string* unused_tablet_id);
466
467
  // required .yb.SchemaPB unused_schema = 7;
468
  bool has_unused_schema() const;
469
  void clear_unused_schema();
470
  static const int kUnusedSchemaFieldNumber = 7;
471
  const ::yb::SchemaPB& unused_schema() const;
472
  ::yb::SchemaPB* release_unused_schema();
473
  ::yb::SchemaPB* mutable_unused_schema();
474
  void set_allocated_unused_schema(::yb::SchemaPB* unused_schema);
475
476
  // required uint32 major_version = 1;
477
  bool has_major_version() const;
478
  void clear_major_version();
479
  static const int kMajorVersionFieldNumber = 1;
480
  ::google::protobuf::uint32 major_version() const;
481
  void set_major_version(::google::protobuf::uint32 value);
482
483
  // required uint32 minor_version = 2;
484
  bool has_minor_version() const;
485
  void clear_minor_version();
486
  static const int kMinorVersionFieldNumber = 2;
487
  ::google::protobuf::uint32 minor_version() const;
488
  void set_minor_version(::google::protobuf::uint32 value);
489
490
  // required uint64 sequence_number = 6;
491
  bool has_sequence_number() const;
492
  void clear_sequence_number();
493
  static const int kSequenceNumberFieldNumber = 6;
494
  ::google::protobuf::uint64 sequence_number() const;
495
  void set_sequence_number(::google::protobuf::uint64 value);
496
497
  // optional uint32 unused_schema_version = 8;
498
  bool has_unused_schema_version() const;
499
  void clear_unused_schema_version();
500
  static const int kUnusedSchemaVersionFieldNumber = 8;
501
  ::google::protobuf::uint32 unused_schema_version() const;
502
  void set_unused_schema_version(::google::protobuf::uint32 value);
503
504
  // @@protoc_insertion_point(class_scope:yb.log.LogSegmentHeaderPB)
505
 private:
506
  void set_has_major_version();
507
  void clear_has_major_version();
508
  void set_has_minor_version();
509
  void clear_has_minor_version();
510
  void set_has_unused_tablet_id();
511
  void clear_has_unused_tablet_id();
512
  void set_has_sequence_number();
513
  void clear_has_sequence_number();
514
  void set_has_unused_schema();
515
  void clear_has_unused_schema();
516
  void set_has_unused_schema_version();
517
  void clear_has_unused_schema_version();
518
519
  // helper for ByteSizeLong()
520
  size_t RequiredFieldsByteSizeFallback() const;
521
522
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
523
  ::google::protobuf::internal::HasBits<1> _has_bits_;
524
  mutable int _cached_size_;
525
  ::google::protobuf::internal::ArenaStringPtr unused_tablet_id_;
526
  ::yb::SchemaPB* unused_schema_;
527
  ::google::protobuf::uint32 major_version_;
528
  ::google::protobuf::uint32 minor_version_;
529
  ::google::protobuf::uint64 sequence_number_;
530
  ::google::protobuf::uint32 unused_schema_version_;
531
  friend struct ::protobuf_yb_2fconsensus_2flog_2eproto::TableStruct;
532
  friend void ::protobuf_yb_2fconsensus_2flog_2eproto::InitDefaultsLogSegmentHeaderPBImpl();
533
};
534
// -------------------------------------------------------------------
535
536
class LogSegmentFooterPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.log.LogSegmentFooterPB) */ {
537
 public:
538
  LogSegmentFooterPB();
539
  virtual ~LogSegmentFooterPB();
540
541
  LogSegmentFooterPB(const LogSegmentFooterPB& from);
542
543
0
  inline LogSegmentFooterPB& operator=(const LogSegmentFooterPB& from) {
544
0
    CopyFrom(from);
545
0
    return *this;
546
0
  }
547
  #if LANG_CXX11
548
  LogSegmentFooterPB(LogSegmentFooterPB&& from) noexcept
549
0
    : LogSegmentFooterPB() {
550
0
    *this = ::std::move(from);
551
0
  }
552
553
0
  inline LogSegmentFooterPB& operator=(LogSegmentFooterPB&& from) noexcept {
554
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
555
0
      if (this != &from) InternalSwap(&from);
556
0
    } else {
557
0
      CopyFrom(from);
558
0
    }
559
0
    return *this;
560
0
  }
561
  #endif
562
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
563
0
    return _internal_metadata_.unknown_fields();
564
0
  }
565
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
566
0
    return _internal_metadata_.mutable_unknown_fields();
567
0
  }
568
569
  static const ::google::protobuf::Descriptor* descriptor();
570
  static const LogSegmentFooterPB& default_instance();
571
572
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
573
589k
  static inline const LogSegmentFooterPB* internal_default_instance() {
574
589k
    return reinterpret_cast<const LogSegmentFooterPB*>(
575
589k
               &_LogSegmentFooterPB_default_instance_);
576
589k
  }
577
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
578
    3;
579
580
  void Swap(LogSegmentFooterPB* other);
581
0
  friend void swap(LogSegmentFooterPB& a, LogSegmentFooterPB& b) {
582
0
    a.Swap(&b);
583
0
  }
584
585
  // implements Message ----------------------------------------------
586
587
0
  inline LogSegmentFooterPB* New() const PROTOBUF_FINAL { return New(NULL); }
588
589
  LogSegmentFooterPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
590
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
591
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
592
  void CopyFrom(const LogSegmentFooterPB& from);
593
  void MergeFrom(const LogSegmentFooterPB& from);
594
  void Clear() PROTOBUF_FINAL;
595
  bool IsInitialized() const PROTOBUF_FINAL;
596
597
  size_t ByteSizeLong() const PROTOBUF_FINAL;
598
  bool MergePartialFromCodedStream(
599
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
600
  void SerializeWithCachedSizes(
601
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
602
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
603
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
604
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
605
  private:
606
  void SharedCtor();
607
  void SharedDtor();
608
  void SetCachedSize(int size) const PROTOBUF_FINAL;
609
  void InternalSwap(LogSegmentFooterPB* other);
610
  private:
611
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
612
0
    return NULL;
613
0
  }
614
0
  inline void* MaybeArenaPtr() const {
615
0
    return NULL;
616
0
  }
617
  public:
618
619
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
620
621
  // nested types ----------------------------------------------------
622
623
  // accessors -------------------------------------------------------
624
625
  // required int64 num_entries = 1;
626
  bool has_num_entries() const;
627
  void clear_num_entries();
628
  static const int kNumEntriesFieldNumber = 1;
629
  ::google::protobuf::int64 num_entries() const;
630
  void set_num_entries(::google::protobuf::int64 value);
631
632
  // optional int64 close_timestamp_micros = 4;
633
  bool has_close_timestamp_micros() const;
634
  void clear_close_timestamp_micros();
635
  static const int kCloseTimestampMicrosFieldNumber = 4;
636
  ::google::protobuf::int64 close_timestamp_micros() const;
637
  void set_close_timestamp_micros(::google::protobuf::int64 value);
638
639
  // optional int64 min_replicate_index = 2 [default = -1];
640
  bool has_min_replicate_index() const;
641
  void clear_min_replicate_index();
642
  static const int kMinReplicateIndexFieldNumber = 2;
643
  ::google::protobuf::int64 min_replicate_index() const;
644
  void set_min_replicate_index(::google::protobuf::int64 value);
645
646
  // optional int64 max_replicate_index = 3 [default = -1];
647
  bool has_max_replicate_index() const;
648
  void clear_max_replicate_index();
649
  static const int kMaxReplicateIndexFieldNumber = 3;
650
  ::google::protobuf::int64 max_replicate_index() const;
651
  void set_max_replicate_index(::google::protobuf::int64 value);
652
653
  // @@protoc_insertion_point(class_scope:yb.log.LogSegmentFooterPB)
654
 private:
655
  void set_has_num_entries();
656
  void clear_has_num_entries();
657
  void set_has_min_replicate_index();
658
  void clear_has_min_replicate_index();
659
  void set_has_max_replicate_index();
660
  void clear_has_max_replicate_index();
661
  void set_has_close_timestamp_micros();
662
  void clear_has_close_timestamp_micros();
663
664
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
665
  ::google::protobuf::internal::HasBits<1> _has_bits_;
666
  mutable int _cached_size_;
667
  ::google::protobuf::int64 num_entries_;
668
  ::google::protobuf::int64 close_timestamp_micros_;
669
  ::google::protobuf::int64 min_replicate_index_;
670
  ::google::protobuf::int64 max_replicate_index_;
671
  friend struct ::protobuf_yb_2fconsensus_2flog_2eproto::TableStruct;
672
  friend void ::protobuf_yb_2fconsensus_2flog_2eproto::InitDefaultsLogSegmentFooterPBImpl();
673
};
674
// ===================================================================
675
676
677
// ===================================================================
678
679
#ifdef __GNUC__
680
  #pragma GCC diagnostic push
681
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
682
#endif  // __GNUC__
683
// LogEntryPB
684
685
// required .yb.log.LogEntryTypePB type = 1;
686
30.5M
inline bool LogEntryPB::has_type() const {
687
30.5M
  return (_has_bits_[0] & 0x00000002u) != 0;
688
30.5M
}
689
17.4M
inline void LogEntryPB::set_has_type() {
690
17.4M
  _has_bits_[0] |= 0x00000002u;
691
17.4M
}
692
0
inline void LogEntryPB::clear_has_type() {
693
0
  _has_bits_[0] &= ~0x00000002u;
694
0
}
695
0
inline void LogEntryPB::clear_type() {
696
0
  type_ = 0;
697
0
  clear_has_type();
698
0
}
699
90.9M
inline ::yb::log::LogEntryTypePB LogEntryPB::type() const {
700
  // @@protoc_insertion_point(field_get:yb.log.LogEntryPB.type)
701
90.9M
  return static_cast< ::yb::log::LogEntryTypePB >(type_);
702
90.9M
}
703
17.4M
inline void LogEntryPB::set_type(::yb::log::LogEntryTypePB value) {
704
17.4M
  assert(::yb::log::LogEntryTypePB_IsValid(value));
705
0
  set_has_type();
706
17.4M
  type_ = value;
707
  // @@protoc_insertion_point(field_set:yb.log.LogEntryPB.type)
708
17.4M
}
709
710
// optional .yb.consensus.ReplicateMsg replicate = 2;
711
64.1M
inline bool LogEntryPB::has_replicate() const {
712
64.1M
  return (_has_bits_[0] & 0x00000001u) != 0;
713
64.1M
}
714
18.7M
inline void LogEntryPB::set_has_replicate() {
715
18.7M
  _has_bits_[0] |= 0x00000001u;
716
18.7M
}
717
15.3M
inline void LogEntryPB::clear_has_replicate() {
718
15.3M
  _has_bits_[0] &= ~0x00000001u;
719
15.3M
}
720
100M
inline const ::yb::consensus::ReplicateMsg& LogEntryPB::replicate() const {
721
100M
  const ::yb::consensus::ReplicateMsg* p = replicate_;
722
  // @@protoc_insertion_point(field_get:yb.log.LogEntryPB.replicate)
723
100M
  return p != NULL ? 
*p100M
: *reinterpret_cast<const ::yb::consensus::ReplicateMsg*>(
724
892
      &::yb::consensus::_ReplicateMsg_default_instance_);
725
100M
}
726
15.3M
inline ::yb::consensus::ReplicateMsg* LogEntryPB::release_replicate() {
727
  // @@protoc_insertion_point(field_release:yb.log.LogEntryPB.replicate)
728
15.3M
  clear_has_replicate();
729
15.3M
  ::yb::consensus::ReplicateMsg* temp = replicate_;
730
15.3M
  replicate_ = NULL;
731
15.3M
  return temp;
732
15.3M
}
733
3.47M
inline ::yb::consensus::ReplicateMsg* LogEntryPB::mutable_replicate() {
734
3.47M
  set_has_replicate();
735
3.47M
  if (replicate_ == NULL) {
736
2.16M
    replicate_ = new ::yb::consensus::ReplicateMsg;
737
2.16M
  }
738
  // @@protoc_insertion_point(field_mutable:yb.log.LogEntryPB.replicate)
739
3.47M
  return replicate_;
740
3.47M
}
741
15.3M
inline void LogEntryPB::set_allocated_replicate(::yb::consensus::ReplicateMsg* replicate) {
742
15.3M
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
743
15.3M
  if (message_arena == NULL) {
744
15.2M
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(replicate_);
745
15.2M
  }
746
15.3M
  if (replicate) {
747
15.2M
    ::google::protobuf::Arena* submessage_arena = NULL;
748
15.2M
    if (message_arena != submessage_arena) {
749
0
      replicate = ::google::protobuf::internal::GetOwnedMessage(
750
0
          message_arena, replicate, submessage_arena);
751
0
    }
752
15.2M
    set_has_replicate();
753
15.2M
  } else {
754
7.47k
    clear_has_replicate();
755
7.47k
  }
756
15.3M
  replicate_ = replicate;
757
  // @@protoc_insertion_point(field_set_allocated:yb.log.LogEntryPB.replicate)
758
15.3M
}
759
760
// -------------------------------------------------------------------
761
762
// LogEntryBatchPB
763
764
// repeated .yb.log.LogEntryPB entry = 1;
765
150M
inline int LogEntryBatchPB::entry_size() const {
766
150M
  return entry_.size();
767
150M
}
768
0
inline void LogEntryBatchPB::clear_entry() {
769
0
  entry_.Clear();
770
0
}
771
131M
inline const ::yb::log::LogEntryPB& LogEntryBatchPB::entry(int index) const {
772
  // @@protoc_insertion_point(field_get:yb.log.LogEntryBatchPB.entry)
773
131M
  return entry_.Get(index);
774
131M
}
775
17.4M
inline ::yb::log::LogEntryPB* LogEntryBatchPB::mutable_entry(int index) {
776
  // @@protoc_insertion_point(field_mutable:yb.log.LogEntryBatchPB.entry)
777
17.4M
  return entry_.Mutable(index);
778
17.4M
}
779
17.4M
inline ::yb::log::LogEntryPB* LogEntryBatchPB::add_entry() {
780
  // @@protoc_insertion_point(field_add:yb.log.LogEntryBatchPB.entry)
781
17.4M
  return entry_.Add();
782
17.4M
}
783
inline ::google::protobuf::RepeatedPtrField< ::yb::log::LogEntryPB >*
784
57.7M
LogEntryBatchPB::mutable_entry() {
785
  // @@protoc_insertion_point(field_mutable_list:yb.log.LogEntryBatchPB.entry)
786
57.7M
  return &entry_;
787
57.7M
}
788
inline const ::google::protobuf::RepeatedPtrField< ::yb::log::LogEntryPB >&
789
132M
LogEntryBatchPB::entry() const {
790
  // @@protoc_insertion_point(field_list:yb.log.LogEntryBatchPB.entry)
791
132M
  return entry_;
792
132M
}
793
794
// optional .yb.OpIdPB committed_op_id = 2;
795
82.2M
inline bool LogEntryBatchPB::has_committed_op_id() const {
796
82.2M
  return (_has_bits_[0] & 0x00000001u) != 0;
797
82.2M
}
798
28.2M
inline void LogEntryBatchPB::set_has_committed_op_id() {
799
28.2M
  _has_bits_[0] |= 0x00000001u;
800
28.2M
}
801
0
inline void LogEntryBatchPB::clear_has_committed_op_id() {
802
0
  _has_bits_[0] &= ~0x00000001u;
803
0
}
804
3.50M
inline const ::yb::OpIdPB& LogEntryBatchPB::committed_op_id() const {
805
3.50M
  const ::yb::OpIdPB* p = committed_op_id_;
806
  // @@protoc_insertion_point(field_get:yb.log.LogEntryBatchPB.committed_op_id)
807
3.50M
  return p != NULL ? 
*p3.50M
: *reinterpret_cast<const ::yb::OpIdPB*>(
808
21
      &::yb::_OpIdPB_default_instance_);
809
3.50M
}
810
0
inline ::yb::OpIdPB* LogEntryBatchPB::release_committed_op_id() {
811
0
  // @@protoc_insertion_point(field_release:yb.log.LogEntryBatchPB.committed_op_id)
812
0
  clear_has_committed_op_id();
813
0
  ::yb::OpIdPB* temp = committed_op_id_;
814
0
  committed_op_id_ = NULL;
815
0
  return temp;
816
0
}
817
28.2M
inline ::yb::OpIdPB* LogEntryBatchPB::mutable_committed_op_id() {
818
28.2M
  set_has_committed_op_id();
819
28.2M
  if (committed_op_id_ == NULL) {
820
28.2M
    committed_op_id_ = new ::yb::OpIdPB;
821
28.2M
  }
822
  // @@protoc_insertion_point(field_mutable:yb.log.LogEntryBatchPB.committed_op_id)
823
28.2M
  return committed_op_id_;
824
28.2M
}
825
0
inline void LogEntryBatchPB::set_allocated_committed_op_id(::yb::OpIdPB* committed_op_id) {
826
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
827
0
  if (message_arena == NULL) {
828
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(committed_op_id_);
829
0
  }
830
0
  if (committed_op_id) {
831
0
    ::google::protobuf::Arena* submessage_arena = NULL;
832
0
    if (message_arena != submessage_arena) {
833
0
      committed_op_id = ::google::protobuf::internal::GetOwnedMessage(
834
0
          message_arena, committed_op_id, submessage_arena);
835
0
    }
836
0
    set_has_committed_op_id();
837
0
  } else {
838
0
    clear_has_committed_op_id();
839
0
  }
840
0
  committed_op_id_ = committed_op_id;
841
0
  // @@protoc_insertion_point(field_set_allocated:yb.log.LogEntryBatchPB.committed_op_id)
842
0
}
843
844
// optional uint64 mono_time = 3;
845
50.1M
inline bool LogEntryBatchPB::has_mono_time() const {
846
50.1M
  return (_has_bits_[0] & 0x00000002u) != 0;
847
50.1M
}
848
55.0M
inline void LogEntryBatchPB::set_has_mono_time() {
849
55.0M
  _has_bits_[0] |= 0x00000002u;
850
55.0M
}
851
0
inline void LogEntryBatchPB::clear_has_mono_time() {
852
0
  _has_bits_[0] &= ~0x00000002u;
853
0
}
854
0
inline void LogEntryBatchPB::clear_mono_time() {
855
0
  mono_time_ = GOOGLE_ULONGLONG(0);
856
0
  clear_has_mono_time();
857
0
}
858
130M
inline ::google::protobuf::uint64 LogEntryBatchPB::mono_time() const {
859
  // @@protoc_insertion_point(field_get:yb.log.LogEntryBatchPB.mono_time)
860
130M
  return mono_time_;
861
130M
}
862
51.4M
inline void LogEntryBatchPB::set_mono_time(::google::protobuf::uint64 value) {
863
51.4M
  set_has_mono_time();
864
51.4M
  mono_time_ = value;
865
  // @@protoc_insertion_point(field_set:yb.log.LogEntryBatchPB.mono_time)
866
51.4M
}
867
868
// -------------------------------------------------------------------
869
870
// LogSegmentHeaderPB
871
872
// required uint32 major_version = 1;
873
0
inline bool LogSegmentHeaderPB::has_major_version() const {
874
0
  return (_has_bits_[0] & 0x00000004u) != 0;
875
0
}
876
170k
inline void LogSegmentHeaderPB::set_has_major_version() {
877
170k
  _has_bits_[0] |= 0x00000004u;
878
170k
}
879
0
inline void LogSegmentHeaderPB::clear_has_major_version() {
880
0
  _has_bits_[0] &= ~0x00000004u;
881
0
}
882
0
inline void LogSegmentHeaderPB::clear_major_version() {
883
0
  major_version_ = 0u;
884
0
  clear_has_major_version();
885
0
}
886
479k
inline ::google::protobuf::uint32 LogSegmentHeaderPB::major_version() const {
887
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.major_version)
888
479k
  return major_version_;
889
479k
}
890
160k
inline void LogSegmentHeaderPB::set_major_version(::google::protobuf::uint32 value) {
891
160k
  set_has_major_version();
892
160k
  major_version_ = value;
893
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentHeaderPB.major_version)
894
160k
}
895
896
// required uint32 minor_version = 2;
897
0
inline bool LogSegmentHeaderPB::has_minor_version() const {
898
0
  return (_has_bits_[0] & 0x00000008u) != 0;
899
0
}
900
170k
inline void LogSegmentHeaderPB::set_has_minor_version() {
901
170k
  _has_bits_[0] |= 0x00000008u;
902
170k
}
903
0
inline void LogSegmentHeaderPB::clear_has_minor_version() {
904
0
  _has_bits_[0] &= ~0x00000008u;
905
0
}
906
0
inline void LogSegmentHeaderPB::clear_minor_version() {
907
0
  minor_version_ = 0u;
908
0
  clear_has_minor_version();
909
0
}
910
479k
inline ::google::protobuf::uint32 LogSegmentHeaderPB::minor_version() const {
911
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.minor_version)
912
479k
  return minor_version_;
913
479k
}
914
160k
inline void LogSegmentHeaderPB::set_minor_version(::google::protobuf::uint32 value) {
915
160k
  set_has_minor_version();
916
160k
  minor_version_ = value;
917
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentHeaderPB.minor_version)
918
160k
}
919
920
// required bytes unused_tablet_id = 5;
921
0
inline bool LogSegmentHeaderPB::has_unused_tablet_id() const {
922
0
  return (_has_bits_[0] & 0x00000001u) != 0;
923
0
}
924
586k
inline void LogSegmentHeaderPB::set_has_unused_tablet_id() {
925
586k
  _has_bits_[0] |= 0x00000001u;
926
586k
}
927
0
inline void LogSegmentHeaderPB::clear_has_unused_tablet_id() {
928
0
  _has_bits_[0] &= ~0x00000001u;
929
0
}
930
0
inline void LogSegmentHeaderPB::clear_unused_tablet_id() {
931
0
  unused_tablet_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
932
0
  clear_has_unused_tablet_id();
933
0
}
934
479k
inline const ::std::string& LogSegmentHeaderPB::unused_tablet_id() const {
935
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.unused_tablet_id)
936
479k
  return unused_tablet_id_.GetNoArena();
937
479k
}
938
160k
inline void LogSegmentHeaderPB::set_unused_tablet_id(const ::std::string& value) {
939
160k
  set_has_unused_tablet_id();
940
160k
  unused_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
941
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentHeaderPB.unused_tablet_id)
942
160k
}
943
#if LANG_CXX11
944
0
inline void LogSegmentHeaderPB::set_unused_tablet_id(::std::string&& value) {
945
0
  set_has_unused_tablet_id();
946
0
  unused_tablet_id_.SetNoArena(
947
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
948
0
  // @@protoc_insertion_point(field_set_rvalue:yb.log.LogSegmentHeaderPB.unused_tablet_id)
949
0
}
950
#endif
951
3
inline void LogSegmentHeaderPB::set_unused_tablet_id(const char* value) {
952
3
  GOOGLE_DCHECK(value != NULL);
953
3
  set_has_unused_tablet_id();
954
3
  unused_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
955
  // @@protoc_insertion_point(field_set_char:yb.log.LogSegmentHeaderPB.unused_tablet_id)
956
3
}
957
0
inline void LogSegmentHeaderPB::set_unused_tablet_id(const void* value, size_t size) {
958
0
  set_has_unused_tablet_id();
959
0
  unused_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
960
0
      ::std::string(reinterpret_cast<const char*>(value), size));
961
0
  // @@protoc_insertion_point(field_set_pointer:yb.log.LogSegmentHeaderPB.unused_tablet_id)
962
0
}
963
10.5k
inline ::std::string* LogSegmentHeaderPB::mutable_unused_tablet_id() {
964
10.5k
  set_has_unused_tablet_id();
965
  // @@protoc_insertion_point(field_mutable:yb.log.LogSegmentHeaderPB.unused_tablet_id)
966
10.5k
  return unused_tablet_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
967
10.5k
}
968
0
inline ::std::string* LogSegmentHeaderPB::release_unused_tablet_id() {
969
0
  // @@protoc_insertion_point(field_release:yb.log.LogSegmentHeaderPB.unused_tablet_id)
970
0
  clear_has_unused_tablet_id();
971
0
  return unused_tablet_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
972
0
}
973
0
inline void LogSegmentHeaderPB::set_allocated_unused_tablet_id(::std::string* unused_tablet_id) {
974
0
  if (unused_tablet_id != NULL) {
975
0
    set_has_unused_tablet_id();
976
0
  } else {
977
0
    clear_has_unused_tablet_id();
978
0
  }
979
0
  unused_tablet_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), unused_tablet_id);
980
0
  // @@protoc_insertion_point(field_set_allocated:yb.log.LogSegmentHeaderPB.unused_tablet_id)
981
0
}
982
983
// required uint64 sequence_number = 6;
984
0
inline bool LogSegmentHeaderPB::has_sequence_number() const {
985
0
  return (_has_bits_[0] & 0x00000010u) != 0;
986
0
}
987
170k
inline void LogSegmentHeaderPB::set_has_sequence_number() {
988
170k
  _has_bits_[0] |= 0x00000010u;
989
170k
}
990
0
inline void LogSegmentHeaderPB::clear_has_sequence_number() {
991
0
  _has_bits_[0] &= ~0x00000010u;
992
0
}
993
0
inline void LogSegmentHeaderPB::clear_sequence_number() {
994
0
  sequence_number_ = GOOGLE_ULONGLONG(0);
995
0
  clear_has_sequence_number();
996
0
}
997
12.6M
inline ::google::protobuf::uint64 LogSegmentHeaderPB::sequence_number() const {
998
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.sequence_number)
999
12.6M
  return sequence_number_;
1000
12.6M
}
1001
160k
inline void LogSegmentHeaderPB::set_sequence_number(::google::protobuf::uint64 value) {
1002
160k
  set_has_sequence_number();
1003
160k
  sequence_number_ = value;
1004
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentHeaderPB.sequence_number)
1005
160k
}
1006
1007
// required .yb.SchemaPB unused_schema = 7;
1008
32.0M
inline bool LogSegmentHeaderPB::has_unused_schema() const {
1009
32.0M
  return (_has_bits_[0] & 0x00000002u) != 0;
1010
32.0M
}
1011
584k
inline void LogSegmentHeaderPB::set_has_unused_schema() {
1012
584k
  _has_bits_[0] |= 0x00000002u;
1013
584k
}
1014
0
inline void LogSegmentHeaderPB::clear_has_unused_schema() {
1015
0
  _has_bits_[0] &= ~0x00000002u;
1016
0
}
1017
5.24M
inline const ::yb::SchemaPB& LogSegmentHeaderPB::unused_schema() const {
1018
5.24M
  const ::yb::SchemaPB* p = unused_schema_;
1019
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.unused_schema)
1020
18.4E
  return 
p != NULL5.24M
?
*p5.24M
: *reinterpret_cast<const ::yb::SchemaPB*>(
1021
18.4E
      &::yb::_SchemaPB_default_instance_);
1022
5.24M
}
1023
0
inline ::yb::SchemaPB* LogSegmentHeaderPB::release_unused_schema() {
1024
0
  // @@protoc_insertion_point(field_release:yb.log.LogSegmentHeaderPB.unused_schema)
1025
0
  clear_has_unused_schema();
1026
0
  ::yb::SchemaPB* temp = unused_schema_;
1027
0
  unused_schema_ = NULL;
1028
0
  return temp;
1029
0
}
1030
584k
inline ::yb::SchemaPB* LogSegmentHeaderPB::mutable_unused_schema() {
1031
584k
  set_has_unused_schema();
1032
584k
  if (unused_schema_ == NULL) {
1033
584k
    unused_schema_ = new ::yb::SchemaPB;
1034
584k
  }
1035
  // @@protoc_insertion_point(field_mutable:yb.log.LogSegmentHeaderPB.unused_schema)
1036
584k
  return unused_schema_;
1037
584k
}
1038
0
inline void LogSegmentHeaderPB::set_allocated_unused_schema(::yb::SchemaPB* unused_schema) {
1039
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1040
0
  if (message_arena == NULL) {
1041
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(unused_schema_);
1042
0
  }
1043
0
  if (unused_schema) {
1044
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1045
0
    if (message_arena != submessage_arena) {
1046
0
      unused_schema = ::google::protobuf::internal::GetOwnedMessage(
1047
0
          message_arena, unused_schema, submessage_arena);
1048
0
    }
1049
0
    set_has_unused_schema();
1050
0
  } else {
1051
0
    clear_has_unused_schema();
1052
0
  }
1053
0
  unused_schema_ = unused_schema;
1054
0
  // @@protoc_insertion_point(field_set_allocated:yb.log.LogSegmentHeaderPB.unused_schema)
1055
0
}
1056
1057
// optional uint32 unused_schema_version = 8;
1058
320k
inline bool LogSegmentHeaderPB::has_unused_schema_version() const {
1059
320k
  return (_has_bits_[0] & 0x00000020u) != 0;
1060
320k
}
1061
170k
inline void LogSegmentHeaderPB::set_has_unused_schema_version() {
1062
170k
  _has_bits_[0] |= 0x00000020u;
1063
170k
}
1064
0
inline void LogSegmentHeaderPB::clear_has_unused_schema_version() {
1065
0
  _has_bits_[0] &= ~0x00000020u;
1066
0
}
1067
0
inline void LogSegmentHeaderPB::clear_unused_schema_version() {
1068
0
  unused_schema_version_ = 0u;
1069
0
  clear_has_unused_schema_version();
1070
0
}
1071
5.30M
inline ::google::protobuf::uint32 LogSegmentHeaderPB::unused_schema_version() const {
1072
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentHeaderPB.unused_schema_version)
1073
5.30M
  return unused_schema_version_;
1074
5.30M
}
1075
160k
inline void LogSegmentHeaderPB::set_unused_schema_version(::google::protobuf::uint32 value) {
1076
160k
  set_has_unused_schema_version();
1077
160k
  unused_schema_version_ = value;
1078
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentHeaderPB.unused_schema_version)
1079
160k
}
1080
1081
// -------------------------------------------------------------------
1082
1083
// LogSegmentFooterPB
1084
1085
// required int64 num_entries = 1;
1086
178k
inline bool LogSegmentFooterPB::has_num_entries() const {
1087
178k
  return (_has_bits_[0] & 0x00000001u) != 0;
1088
178k
}
1089
26.5M
inline void LogSegmentFooterPB::set_has_num_entries() {
1090
26.5M
  _has_bits_[0] |= 0x00000001u;
1091
26.5M
}
1092
0
inline void LogSegmentFooterPB::clear_has_num_entries() {
1093
0
  _has_bits_[0] &= ~0x00000001u;
1094
0
}
1095
0
inline void LogSegmentFooterPB::clear_num_entries() {
1096
0
  num_entries_ = GOOGLE_LONGLONG(0);
1097
0
  clear_has_num_entries();
1098
0
}
1099
26.7M
inline ::google::protobuf::int64 LogSegmentFooterPB::num_entries() const {
1100
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentFooterPB.num_entries)
1101
26.7M
  return num_entries_;
1102
26.7M
}
1103
26.5M
inline void LogSegmentFooterPB::set_num_entries(::google::protobuf::int64 value) {
1104
26.5M
  set_has_num_entries();
1105
26.5M
  num_entries_ = value;
1106
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentFooterPB.num_entries)
1107
26.5M
}
1108
1109
// optional int64 min_replicate_index = 2 [default = -1];
1110
17.6M
inline bool LogSegmentFooterPB::has_min_replicate_index() const {
1111
17.6M
  return (_has_bits_[0] & 0x00000004u) != 0;
1112
17.6M
}
1113
172k
inline void LogSegmentFooterPB::set_has_min_replicate_index() {
1114
172k
  _has_bits_[0] |= 0x00000004u;
1115
172k
}
1116
0
inline void LogSegmentFooterPB::clear_has_min_replicate_index() {
1117
0
  _has_bits_[0] &= ~0x00000004u;
1118
0
}
1119
0
inline void LogSegmentFooterPB::clear_min_replicate_index() {
1120
0
  min_replicate_index_ = GOOGLE_LONGLONG(-1);
1121
0
  clear_has_min_replicate_index();
1122
0
}
1123
17.4M
inline ::google::protobuf::int64 LogSegmentFooterPB::min_replicate_index() const {
1124
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentFooterPB.min_replicate_index)
1125
17.4M
  return min_replicate_index_;
1126
17.4M
}
1127
165k
inline void LogSegmentFooterPB::set_min_replicate_index(::google::protobuf::int64 value) {
1128
165k
  set_has_min_replicate_index();
1129
165k
  min_replicate_index_ = value;
1130
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentFooterPB.min_replicate_index)
1131
165k
}
1132
1133
// optional int64 max_replicate_index = 3 [default = -1];
1134
17.5M
inline bool LogSegmentFooterPB::has_max_replicate_index() const {
1135
17.5M
  return (_has_bits_[0] & 0x00000008u) != 0;
1136
17.5M
}
1137
17.2M
inline void LogSegmentFooterPB::set_has_max_replicate_index() {
1138
17.2M
  _has_bits_[0] |= 0x00000008u;
1139
17.2M
}
1140
0
inline void LogSegmentFooterPB::clear_has_max_replicate_index() {
1141
0
  _has_bits_[0] &= ~0x00000008u;
1142
0
}
1143
0
inline void LogSegmentFooterPB::clear_max_replicate_index() {
1144
0
  max_replicate_index_ = GOOGLE_LONGLONG(-1);
1145
0
  clear_has_max_replicate_index();
1146
0
}
1147
26.3M
inline ::google::protobuf::int64 LogSegmentFooterPB::max_replicate_index() const {
1148
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentFooterPB.max_replicate_index)
1149
26.3M
  return max_replicate_index_;
1150
26.3M
}
1151
17.2M
inline void LogSegmentFooterPB::set_max_replicate_index(::google::protobuf::int64 value) {
1152
17.2M
  set_has_max_replicate_index();
1153
17.2M
  max_replicate_index_ = value;
1154
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentFooterPB.max_replicate_index)
1155
17.2M
}
1156
1157
// optional int64 close_timestamp_micros = 4;
1158
407k
inline bool LogSegmentFooterPB::has_close_timestamp_micros() const {
1159
407k
  return (_has_bits_[0] & 0x00000002u) != 0;
1160
407k
}
1161
96.0k
inline void LogSegmentFooterPB::set_has_close_timestamp_micros() {
1162
96.0k
  _has_bits_[0] |= 0x00000002u;
1163
96.0k
}
1164
0
inline void LogSegmentFooterPB::clear_has_close_timestamp_micros() {
1165
0
  _has_bits_[0] &= ~0x00000002u;
1166
0
}
1167
0
inline void LogSegmentFooterPB::clear_close_timestamp_micros() {
1168
0
  close_timestamp_micros_ = GOOGLE_LONGLONG(0);
1169
0
  clear_has_close_timestamp_micros();
1170
0
}
1171
492k
inline ::google::protobuf::int64 LogSegmentFooterPB::close_timestamp_micros() const {
1172
  // @@protoc_insertion_point(field_get:yb.log.LogSegmentFooterPB.close_timestamp_micros)
1173
492k
  return close_timestamp_micros_;
1174
492k
}
1175
89.2k
inline void LogSegmentFooterPB::set_close_timestamp_micros(::google::protobuf::int64 value) {
1176
89.2k
  set_has_close_timestamp_micros();
1177
89.2k
  close_timestamp_micros_ = value;
1178
  // @@protoc_insertion_point(field_set:yb.log.LogSegmentFooterPB.close_timestamp_micros)
1179
89.2k
}
1180
1181
#ifdef __GNUC__
1182
  #pragma GCC diagnostic pop
1183
#endif  // __GNUC__
1184
// -------------------------------------------------------------------
1185
1186
// -------------------------------------------------------------------
1187
1188
// -------------------------------------------------------------------
1189
1190
1191
// @@protoc_insertion_point(namespace_scope)
1192
1193
}  // namespace log
1194
}  // namespace yb
1195
1196
namespace google {
1197
namespace protobuf {
1198
1199
template <> struct is_proto_enum< ::yb::log::LogEntryTypePB> : ::google::protobuf::internal::true_type {};
1200
template <>
1201
0
inline const EnumDescriptor* GetEnumDescriptor< ::yb::log::LogEntryTypePB>() {
1202
0
  return ::yb::log::LogEntryTypePB_descriptor();
1203
0
}
1204
1205
}  // namespace protobuf
1206
}  // namespace google
1207
1208
// @@protoc_insertion_point(global_scope)
1209
1210
#endif  // PROTOBUF_yb_2fconsensus_2flog_2eproto__INCLUDED