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/metadata.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/consensus/metadata.proto
3
4
#ifndef PROTOBUF_yb_2fconsensus_2fmetadata_2eproto__INCLUDED
5
#define PROTOBUF_yb_2fconsensus_2fmetadata_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_net.pb.h"
34
// @@protoc_insertion_point(includes)
35
36
namespace protobuf_yb_2fconsensus_2fmetadata_2eproto {
37
// Internal implementation detail -- do not use these members.
38
struct TableStruct {
39
  static const ::google::protobuf::internal::ParseTableField entries[];
40
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41
  static const ::google::protobuf::internal::ParseTable schema[4];
42
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
44
  static const ::google::protobuf::uint32 offsets[];
45
};
46
void AddDescriptors();
47
void InitDefaultsRaftPeerPBImpl();
48
void InitDefaultsRaftPeerPB();
49
void InitDefaultsRaftConfigPBImpl();
50
void InitDefaultsRaftConfigPB();
51
void InitDefaultsConsensusStatePBImpl();
52
void InitDefaultsConsensusStatePB();
53
void InitDefaultsConsensusMetadataPBImpl();
54
void InitDefaultsConsensusMetadataPB();
55
28.1k
inline void InitDefaults() {
56
28.1k
  InitDefaultsRaftPeerPB();
57
28.1k
  InitDefaultsRaftConfigPB();
58
28.1k
  InitDefaultsConsensusStatePB();
59
28.1k
  InitDefaultsConsensusMetadataPB();
60
28.1k
}
61
}  // namespace protobuf_yb_2fconsensus_2fmetadata_2eproto
62
namespace yb {
63
namespace consensus {
64
class ConsensusMetadataPB;
65
class ConsensusMetadataPBDefaultTypeInternal;
66
extern ConsensusMetadataPBDefaultTypeInternal _ConsensusMetadataPB_default_instance_;
67
class ConsensusStatePB;
68
class ConsensusStatePBDefaultTypeInternal;
69
extern ConsensusStatePBDefaultTypeInternal _ConsensusStatePB_default_instance_;
70
class RaftConfigPB;
71
class RaftConfigPBDefaultTypeInternal;
72
extern RaftConfigPBDefaultTypeInternal _RaftConfigPB_default_instance_;
73
class RaftPeerPB;
74
class RaftPeerPBDefaultTypeInternal;
75
extern RaftPeerPBDefaultTypeInternal _RaftPeerPB_default_instance_;
76
}  // namespace consensus
77
}  // namespace yb
78
namespace yb {
79
namespace consensus {
80
81
enum PeerMemberType {
82
  UNKNOWN_MEMBER_TYPE = 999,
83
  PRE_VOTER = 0,
84
  VOTER = 1,
85
  PRE_OBSERVER = 2,
86
  OBSERVER = 3
87
};
88
bool PeerMemberType_IsValid(int value);
89
const PeerMemberType PeerMemberType_MIN = PRE_VOTER;
90
const PeerMemberType PeerMemberType_MAX = UNKNOWN_MEMBER_TYPE;
91
const int PeerMemberType_ARRAYSIZE = PeerMemberType_MAX + 1;
92
93
const ::google::protobuf::EnumDescriptor* PeerMemberType_descriptor();
94
643k
inline const ::std::string& PeerMemberType_Name(PeerMemberType value) {
95
643k
  return ::google::protobuf::internal::NameOfEnum(
96
643k
    PeerMemberType_descriptor(), value);
97
643k
}
98
inline bool PeerMemberType_Parse(
99
0
    const ::std::string& name, PeerMemberType* value) {
100
0
  return ::google::protobuf::internal::ParseNamedEnum<PeerMemberType>(
101
0
    PeerMemberType_descriptor(), name, value);
102
0
}
103
enum ConsensusConfigType {
104
  CONSENSUS_CONFIG_UNKNOWN = 999,
105
  CONSENSUS_CONFIG_COMMITTED = 1,
106
  CONSENSUS_CONFIG_ACTIVE = 2
107
};
108
bool ConsensusConfigType_IsValid(int value);
109
const ConsensusConfigType ConsensusConfigType_MIN = CONSENSUS_CONFIG_COMMITTED;
110
const ConsensusConfigType ConsensusConfigType_MAX = CONSENSUS_CONFIG_UNKNOWN;
111
const int ConsensusConfigType_ARRAYSIZE = ConsensusConfigType_MAX + 1;
112
113
const ::google::protobuf::EnumDescriptor* ConsensusConfigType_descriptor();
114
0
inline const ::std::string& ConsensusConfigType_Name(ConsensusConfigType value) {
115
0
  return ::google::protobuf::internal::NameOfEnum(
116
0
    ConsensusConfigType_descriptor(), value);
117
0
}
118
inline bool ConsensusConfigType_Parse(
119
0
    const ::std::string& name, ConsensusConfigType* value) {
120
0
  return ::google::protobuf::internal::ParseNamedEnum<ConsensusConfigType>(
121
0
    ConsensusConfigType_descriptor(), name, value);
122
0
}
123
// ===================================================================
124
125
class RaftPeerPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.RaftPeerPB) */ {
126
 public:
127
  RaftPeerPB();
128
  virtual ~RaftPeerPB();
129
130
  RaftPeerPB(const RaftPeerPB& from);
131
132
34.8M
  inline RaftPeerPB& operator=(const RaftPeerPB& from) {
133
34.8M
    CopyFrom(from);
134
34.8M
    return *this;
135
34.8M
  }
136
  #if LANG_CXX11
137
  RaftPeerPB(RaftPeerPB&& from) noexcept
138
19.2k
    : RaftPeerPB() {
139
19.2k
    *this = ::std::move(from);
140
19.2k
  }
Unexecuted instantiation: yb::consensus::RaftPeerPB::RaftPeerPB(yb::consensus::RaftPeerPB&&)
yb::consensus::RaftPeerPB::RaftPeerPB(yb::consensus::RaftPeerPB&&)
Line
Count
Source
138
19.2k
    : RaftPeerPB() {
139
19.2k
    *this = ::std::move(from);
140
19.2k
  }
141
142
19.2k
  inline RaftPeerPB& operator=(RaftPeerPB&& from) noexcept {
143
19.2k
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
144
19.2k
      if (this != &from) InternalSwap(&from);
145
19.2k
    } else {
146
0
      CopyFrom(from);
147
0
    }
148
19.2k
    return *this;
149
19.2k
  }
150
  #endif
151
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
152
0
    return _internal_metadata_.unknown_fields();
153
0
  }
154
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
155
0
    return _internal_metadata_.mutable_unknown_fields();
156
0
  }
157
158
  static const ::google::protobuf::Descriptor* descriptor();
159
  static const RaftPeerPB& default_instance();
160
161
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
162
732M
  static inline const RaftPeerPB* internal_default_instance() {
163
732M
    return reinterpret_cast<const RaftPeerPB*>(
164
732M
               &_RaftPeerPB_default_instance_);
165
732M
  }
166
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
167
    0;
168
169
  void Swap(RaftPeerPB* other);
170
0
  friend void swap(RaftPeerPB& a, RaftPeerPB& b) {
171
0
    a.Swap(&b);
172
0
  }
173
174
  // implements Message ----------------------------------------------
175
176
0
  inline RaftPeerPB* New() const PROTOBUF_FINAL { return New(NULL); }
177
178
  RaftPeerPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
179
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
180
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
181
  void CopyFrom(const RaftPeerPB& from);
182
  void MergeFrom(const RaftPeerPB& from);
183
  void Clear() PROTOBUF_FINAL;
184
  bool IsInitialized() const PROTOBUF_FINAL;
185
186
  size_t ByteSizeLong() const PROTOBUF_FINAL;
187
  bool MergePartialFromCodedStream(
188
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
189
  void SerializeWithCachedSizes(
190
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
191
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
192
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
193
4.28M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
194
  private:
195
  void SharedCtor();
196
  void SharedDtor();
197
  void SetCachedSize(int size) const PROTOBUF_FINAL;
198
  void InternalSwap(RaftPeerPB* other);
199
  private:
200
38.4k
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
201
38.4k
    return NULL;
202
38.4k
  }
203
0
  inline void* MaybeArenaPtr() const {
204
0
    return NULL;
205
0
  }
206
  public:
207
208
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
209
210
  // nested types ----------------------------------------------------
211
212
  // accessors -------------------------------------------------------
213
214
  // repeated .yb.HostPortPB last_known_private_addr = 3;
215
  int last_known_private_addr_size() const;
216
  void clear_last_known_private_addr();
217
  static const int kLastKnownPrivateAddrFieldNumber = 3;
218
  const ::yb::HostPortPB& last_known_private_addr(int index) const;
219
  ::yb::HostPortPB* mutable_last_known_private_addr(int index);
220
  ::yb::HostPortPB* add_last_known_private_addr();
221
  ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >*
222
      mutable_last_known_private_addr();
223
  const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >&
224
      last_known_private_addr() const;
225
226
  // repeated .yb.HostPortPB last_known_broadcast_addr = 4;
227
  int last_known_broadcast_addr_size() const;
228
  void clear_last_known_broadcast_addr();
229
  static const int kLastKnownBroadcastAddrFieldNumber = 4;
230
  const ::yb::HostPortPB& last_known_broadcast_addr(int index) const;
231
  ::yb::HostPortPB* mutable_last_known_broadcast_addr(int index);
232
  ::yb::HostPortPB* add_last_known_broadcast_addr();
233
  ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >*
234
      mutable_last_known_broadcast_addr();
235
  const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >&
236
      last_known_broadcast_addr() const;
237
238
  // optional bytes permanent_uuid = 1;
239
  bool has_permanent_uuid() const;
240
  void clear_permanent_uuid();
241
  static const int kPermanentUuidFieldNumber = 1;
242
  const ::std::string& permanent_uuid() const;
243
  void set_permanent_uuid(const ::std::string& value);
244
  #if LANG_CXX11
245
  void set_permanent_uuid(::std::string&& value);
246
  #endif
247
  void set_permanent_uuid(const char* value);
248
  void set_permanent_uuid(const void* value, size_t size);
249
  ::std::string* mutable_permanent_uuid();
250
  ::std::string* release_permanent_uuid();
251
  void set_allocated_permanent_uuid(::std::string* permanent_uuid);
252
253
  // optional .yb.CloudInfoPB cloud_info = 5;
254
  bool has_cloud_info() const;
255
  void clear_cloud_info();
256
  static const int kCloudInfoFieldNumber = 5;
257
  const ::yb::CloudInfoPB& cloud_info() const;
258
  ::yb::CloudInfoPB* release_cloud_info();
259
  ::yb::CloudInfoPB* mutable_cloud_info();
260
  void set_allocated_cloud_info(::yb::CloudInfoPB* cloud_info);
261
262
  // optional .yb.consensus.PeerMemberType member_type = 2;
263
  bool has_member_type() const;
264
  void clear_member_type();
265
  static const int kMemberTypeFieldNumber = 2;
266
  ::yb::consensus::PeerMemberType member_type() const;
267
  void set_member_type(::yb::consensus::PeerMemberType value);
268
269
  // @@protoc_insertion_point(class_scope:yb.consensus.RaftPeerPB)
270
 private:
271
  void set_has_permanent_uuid();
272
  void clear_has_permanent_uuid();
273
  void set_has_member_type();
274
  void clear_has_member_type();
275
  void set_has_cloud_info();
276
  void clear_has_cloud_info();
277
278
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
279
  ::google::protobuf::internal::HasBits<1> _has_bits_;
280
  mutable int _cached_size_;
281
  ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB > last_known_private_addr_;
282
  ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB > last_known_broadcast_addr_;
283
  ::google::protobuf::internal::ArenaStringPtr permanent_uuid_;
284
  ::yb::CloudInfoPB* cloud_info_;
285
  int member_type_;
286
  friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct;
287
  friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftPeerPBImpl();
288
};
289
// -------------------------------------------------------------------
290
291
class RaftConfigPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.RaftConfigPB) */ {
292
 public:
293
  RaftConfigPB();
294
  virtual ~RaftConfigPB();
295
296
  RaftConfigPB(const RaftConfigPB& from);
297
298
47.9M
  inline RaftConfigPB& operator=(const RaftConfigPB& from) {
299
47.9M
    CopyFrom(from);
300
47.9M
    return *this;
301
47.9M
  }
302
  #if LANG_CXX11
303
  RaftConfigPB(RaftConfigPB&& from) noexcept
304
246
    : RaftConfigPB() {
305
246
    *this = ::std::move(from);
306
246
  }
Unexecuted instantiation: yb::consensus::RaftConfigPB::RaftConfigPB(yb::consensus::RaftConfigPB&&)
yb::consensus::RaftConfigPB::RaftConfigPB(yb::consensus::RaftConfigPB&&)
Line
Count
Source
304
246
    : RaftConfigPB() {
305
246
    *this = ::std::move(from);
306
246
  }
307
308
77.7M
  inline RaftConfigPB& operator=(RaftConfigPB&& from) noexcept {
309
77.7M
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
310
77.7M
      if (this != &from) 
InternalSwap(&from)77.7M
;
311
77.7M
    } else {
312
7
      CopyFrom(from);
313
7
    }
314
77.7M
    return *this;
315
77.7M
  }
316
  #endif
317
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
318
0
    return _internal_metadata_.unknown_fields();
319
0
  }
320
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
321
0
    return _internal_metadata_.mutable_unknown_fields();
322
0
  }
323
324
  static const ::google::protobuf::Descriptor* descriptor();
325
  static const RaftConfigPB& default_instance();
326
327
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
328
49.7M
  static inline const RaftConfigPB* internal_default_instance() {
329
49.7M
    return reinterpret_cast<const RaftConfigPB*>(
330
49.7M
               &_RaftConfigPB_default_instance_);
331
49.7M
  }
332
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
333
    1;
334
335
  void Swap(RaftConfigPB* other);
336
0
  friend void swap(RaftConfigPB& a, RaftConfigPB& b) {
337
0
    a.Swap(&b);
338
0
  }
339
340
  // implements Message ----------------------------------------------
341
342
0
  inline RaftConfigPB* New() const PROTOBUF_FINAL { return New(NULL); }
343
344
  RaftConfigPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
345
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
346
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
347
  void CopyFrom(const RaftConfigPB& from);
348
  void MergeFrom(const RaftConfigPB& from);
349
  void Clear() PROTOBUF_FINAL;
350
  bool IsInitialized() const PROTOBUF_FINAL;
351
352
  size_t ByteSizeLong() const PROTOBUF_FINAL;
353
  bool MergePartialFromCodedStream(
354
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
355
  void SerializeWithCachedSizes(
356
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
357
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
358
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
359
1.33M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
360
  private:
361
  void SharedCtor();
362
  void SharedDtor();
363
  void SetCachedSize(int size) const PROTOBUF_FINAL;
364
  void InternalSwap(RaftConfigPB* other);
365
  private:
366
155M
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
367
155M
    return NULL;
368
155M
  }
369
0
  inline void* MaybeArenaPtr() const {
370
0
    return NULL;
371
0
  }
372
  public:
373
374
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
375
376
  // nested types ----------------------------------------------------
377
378
  // accessors -------------------------------------------------------
379
380
  // repeated .yb.consensus.RaftPeerPB peers = 2;
381
  int peers_size() const;
382
  void clear_peers();
383
  static const int kPeersFieldNumber = 2;
384
  const ::yb::consensus::RaftPeerPB& peers(int index) const;
385
  ::yb::consensus::RaftPeerPB* mutable_peers(int index);
386
  ::yb::consensus::RaftPeerPB* add_peers();
387
  ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >*
388
      mutable_peers();
389
  const ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >&
390
      peers() const;
391
392
  // optional int64 opid_index = 1;
393
  bool has_opid_index() const;
394
  void clear_opid_index();
395
  static const int kOpidIndexFieldNumber = 1;
396
  ::google::protobuf::int64 opid_index() const;
397
  void set_opid_index(::google::protobuf::int64 value);
398
399
  // optional bool unsafe_config_change = 4 [default = false];
400
  bool has_unsafe_config_change() const;
401
  void clear_unsafe_config_change();
402
  static const int kUnsafeConfigChangeFieldNumber = 4;
403
  bool unsafe_config_change() const;
404
  void set_unsafe_config_change(bool value);
405
406
  // @@protoc_insertion_point(class_scope:yb.consensus.RaftConfigPB)
407
 private:
408
  void set_has_opid_index();
409
  void clear_has_opid_index();
410
  void set_has_unsafe_config_change();
411
  void clear_has_unsafe_config_change();
412
413
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
414
  ::google::protobuf::internal::HasBits<1> _has_bits_;
415
  mutable int _cached_size_;
416
  ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB > peers_;
417
  ::google::protobuf::int64 opid_index_;
418
  bool unsafe_config_change_;
419
  friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct;
420
  friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPBImpl();
421
};
422
// -------------------------------------------------------------------
423
424
class ConsensusStatePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.ConsensusStatePB) */ {
425
 public:
426
  ConsensusStatePB();
427
  virtual ~ConsensusStatePB();
428
429
  ConsensusStatePB(const ConsensusStatePB& from);
430
431
68.4k
  inline ConsensusStatePB& operator=(const ConsensusStatePB& from) {
432
68.4k
    CopyFrom(from);
433
68.4k
    return *this;
434
68.4k
  }
435
  #if LANG_CXX11
436
  ConsensusStatePB(ConsensusStatePB&& from) noexcept
437
0
    : ConsensusStatePB() {
438
0
    *this = ::std::move(from);
439
0
  }
440
441
5.87M
  inline ConsensusStatePB& operator=(ConsensusStatePB&& from) noexcept {
442
5.87M
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
443
5.87M
      if (this != &from) InternalSwap(&from);
444
5.87M
    } else {
445
7
      CopyFrom(from);
446
7
    }
447
5.87M
    return *this;
448
5.87M
  }
449
  #endif
450
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
451
0
    return _internal_metadata_.unknown_fields();
452
0
  }
453
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
454
0
    return _internal_metadata_.mutable_unknown_fields();
455
0
  }
456
457
  static const ::google::protobuf::Descriptor* descriptor();
458
  static const ConsensusStatePB& default_instance();
459
460
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
461
109M
  static inline const ConsensusStatePB* internal_default_instance() {
462
109M
    return reinterpret_cast<const ConsensusStatePB*>(
463
109M
               &_ConsensusStatePB_default_instance_);
464
109M
  }
465
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
466
    2;
467
468
  void Swap(ConsensusStatePB* other);
469
0
  friend void swap(ConsensusStatePB& a, ConsensusStatePB& b) {
470
0
    a.Swap(&b);
471
0
  }
472
473
  // implements Message ----------------------------------------------
474
475
0
  inline ConsensusStatePB* New() const PROTOBUF_FINAL { return New(NULL); }
476
477
  ConsensusStatePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
478
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
479
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
480
  void CopyFrom(const ConsensusStatePB& from);
481
  void MergeFrom(const ConsensusStatePB& from);
482
  void Clear() PROTOBUF_FINAL;
483
  bool IsInitialized() const PROTOBUF_FINAL;
484
485
  size_t ByteSizeLong() const PROTOBUF_FINAL;
486
  bool MergePartialFromCodedStream(
487
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
488
  void SerializeWithCachedSizes(
489
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
490
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
491
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
492
607k
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
493
  private:
494
  void SharedCtor();
495
  void SharedDtor();
496
  void SetCachedSize(int size) const PROTOBUF_FINAL;
497
  void InternalSwap(ConsensusStatePB* other);
498
  private:
499
11.7M
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
500
11.7M
    return NULL;
501
11.7M
  }
502
0
  inline void* MaybeArenaPtr() const {
503
0
    return NULL;
504
0
  }
505
  public:
506
507
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
508
509
  // nested types ----------------------------------------------------
510
511
  // accessors -------------------------------------------------------
512
513
  // optional string leader_uuid = 2;
514
  bool has_leader_uuid() const;
515
  void clear_leader_uuid();
516
  static const int kLeaderUuidFieldNumber = 2;
517
  const ::std::string& leader_uuid() const;
518
  void set_leader_uuid(const ::std::string& value);
519
  #if LANG_CXX11
520
  void set_leader_uuid(::std::string&& value);
521
  #endif
522
  void set_leader_uuid(const char* value);
523
  void set_leader_uuid(const char* value, size_t size);
524
  ::std::string* mutable_leader_uuid();
525
  ::std::string* release_leader_uuid();
526
  void set_allocated_leader_uuid(::std::string* leader_uuid);
527
528
  // required .yb.consensus.RaftConfigPB config = 3;
529
  bool has_config() const;
530
  void clear_config();
531
  static const int kConfigFieldNumber = 3;
532
  const ::yb::consensus::RaftConfigPB& config() const;
533
  ::yb::consensus::RaftConfigPB* release_config();
534
  ::yb::consensus::RaftConfigPB* mutable_config();
535
  void set_allocated_config(::yb::consensus::RaftConfigPB* config);
536
537
  // required int64 current_term = 1;
538
  bool has_current_term() const;
539
  void clear_current_term();
540
  static const int kCurrentTermFieldNumber = 1;
541
  ::google::protobuf::int64 current_term() const;
542
  void set_current_term(::google::protobuf::int64 value);
543
544
  // @@protoc_insertion_point(class_scope:yb.consensus.ConsensusStatePB)
545
 private:
546
  void set_has_current_term();
547
  void clear_has_current_term();
548
  void set_has_leader_uuid();
549
  void clear_has_leader_uuid();
550
  void set_has_config();
551
  void clear_has_config();
552
553
  // helper for ByteSizeLong()
554
  size_t RequiredFieldsByteSizeFallback() const;
555
556
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
557
  ::google::protobuf::internal::HasBits<1> _has_bits_;
558
  mutable int _cached_size_;
559
  ::google::protobuf::internal::ArenaStringPtr leader_uuid_;
560
  ::yb::consensus::RaftConfigPB* config_;
561
  ::google::protobuf::int64 current_term_;
562
  friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct;
563
  friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePBImpl();
564
};
565
// -------------------------------------------------------------------
566
567
class ConsensusMetadataPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.ConsensusMetadataPB) */ {
568
 public:
569
  ConsensusMetadataPB();
570
  virtual ~ConsensusMetadataPB();
571
572
  ConsensusMetadataPB(const ConsensusMetadataPB& from);
573
574
0
  inline ConsensusMetadataPB& operator=(const ConsensusMetadataPB& from) {
575
0
    CopyFrom(from);
576
0
    return *this;
577
0
  }
578
  #if LANG_CXX11
579
  ConsensusMetadataPB(ConsensusMetadataPB&& from) noexcept
580
0
    : ConsensusMetadataPB() {
581
0
    *this = ::std::move(from);
582
0
  }
583
584
0
  inline ConsensusMetadataPB& operator=(ConsensusMetadataPB&& 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 ConsensusMetadataPB& default_instance();
602
603
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
604
855k
  static inline const ConsensusMetadataPB* internal_default_instance() {
605
855k
    return reinterpret_cast<const ConsensusMetadataPB*>(
606
855k
               &_ConsensusMetadataPB_default_instance_);
607
855k
  }
608
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
609
    3;
610
611
  void Swap(ConsensusMetadataPB* other);
612
0
  friend void swap(ConsensusMetadataPB& a, ConsensusMetadataPB& b) {
613
0
    a.Swap(&b);
614
0
  }
615
616
  // implements Message ----------------------------------------------
617
618
0
  inline ConsensusMetadataPB* New() const PROTOBUF_FINAL { return New(NULL); }
619
620
  ConsensusMetadataPB* 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 ConsensusMetadataPB& from);
624
  void MergeFrom(const ConsensusMetadataPB& 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(ConsensusMetadataPB* 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 string voted_for = 3;
657
  bool has_voted_for() const;
658
  void clear_voted_for();
659
  static const int kVotedForFieldNumber = 3;
660
  const ::std::string& voted_for() const;
661
  void set_voted_for(const ::std::string& value);
662
  #if LANG_CXX11
663
  void set_voted_for(::std::string&& value);
664
  #endif
665
  void set_voted_for(const char* value);
666
  void set_voted_for(const char* value, size_t size);
667
  ::std::string* mutable_voted_for();
668
  ::std::string* release_voted_for();
669
  void set_allocated_voted_for(::std::string* voted_for);
670
671
  // optional bytes split_parent_tablet_id = 4;
672
  bool has_split_parent_tablet_id() const;
673
  void clear_split_parent_tablet_id();
674
  static const int kSplitParentTabletIdFieldNumber = 4;
675
  const ::std::string& split_parent_tablet_id() const;
676
  void set_split_parent_tablet_id(const ::std::string& value);
677
  #if LANG_CXX11
678
  void set_split_parent_tablet_id(::std::string&& value);
679
  #endif
680
  void set_split_parent_tablet_id(const char* value);
681
  void set_split_parent_tablet_id(const void* value, size_t size);
682
  ::std::string* mutable_split_parent_tablet_id();
683
  ::std::string* release_split_parent_tablet_id();
684
  void set_allocated_split_parent_tablet_id(::std::string* split_parent_tablet_id);
685
686
  // required .yb.consensus.RaftConfigPB committed_config = 1;
687
  bool has_committed_config() const;
688
  void clear_committed_config();
689
  static const int kCommittedConfigFieldNumber = 1;
690
  const ::yb::consensus::RaftConfigPB& committed_config() const;
691
  ::yb::consensus::RaftConfigPB* release_committed_config();
692
  ::yb::consensus::RaftConfigPB* mutable_committed_config();
693
  void set_allocated_committed_config(::yb::consensus::RaftConfigPB* committed_config);
694
695
  // required int64 current_term = 2;
696
  bool has_current_term() const;
697
  void clear_current_term();
698
  static const int kCurrentTermFieldNumber = 2;
699
  ::google::protobuf::int64 current_term() const;
700
  void set_current_term(::google::protobuf::int64 value);
701
702
  // @@protoc_insertion_point(class_scope:yb.consensus.ConsensusMetadataPB)
703
 private:
704
  void set_has_committed_config();
705
  void clear_has_committed_config();
706
  void set_has_current_term();
707
  void clear_has_current_term();
708
  void set_has_voted_for();
709
  void clear_has_voted_for();
710
  void set_has_split_parent_tablet_id();
711
  void clear_has_split_parent_tablet_id();
712
713
  // helper for ByteSizeLong()
714
  size_t RequiredFieldsByteSizeFallback() const;
715
716
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
717
  ::google::protobuf::internal::HasBits<1> _has_bits_;
718
  mutable int _cached_size_;
719
  ::google::protobuf::internal::ArenaStringPtr voted_for_;
720
  ::google::protobuf::internal::ArenaStringPtr split_parent_tablet_id_;
721
  ::yb::consensus::RaftConfigPB* committed_config_;
722
  ::google::protobuf::int64 current_term_;
723
  friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct;
724
  friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusMetadataPBImpl();
725
};
726
// ===================================================================
727
728
729
// ===================================================================
730
731
#ifdef __GNUC__
732
  #pragma GCC diagnostic push
733
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
734
#endif  // __GNUC__
735
// RaftPeerPB
736
737
// optional bytes permanent_uuid = 1;
738
18.0M
inline bool RaftPeerPB::has_permanent_uuid() const {
739
18.0M
  return (_has_bits_[0] & 0x00000001u) != 0;
740
18.0M
}
741
366M
inline void RaftPeerPB::set_has_permanent_uuid() {
742
366M
  _has_bits_[0] |= 0x00000001u;
743
366M
}
744
0
inline void RaftPeerPB::clear_has_permanent_uuid() {
745
0
  _has_bits_[0] &= ~0x00000001u;
746
0
}
747
0
inline void RaftPeerPB::clear_permanent_uuid() {
748
0
  permanent_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
749
0
  clear_has_permanent_uuid();
750
0
}
751
1.17G
inline const ::std::string& RaftPeerPB::permanent_uuid() const {
752
  // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.permanent_uuid)
753
1.17G
  return permanent_uuid_.GetNoArena();
754
1.17G
}
755
3.09M
inline void RaftPeerPB::set_permanent_uuid(const ::std::string& value) {
756
3.09M
  set_has_permanent_uuid();
757
3.09M
  permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
758
  // @@protoc_insertion_point(field_set:yb.consensus.RaftPeerPB.permanent_uuid)
759
3.09M
}
760
#if LANG_CXX11
761
inline void RaftPeerPB::set_permanent_uuid(::std::string&& value) {
762
  set_has_permanent_uuid();
763
  permanent_uuid_.SetNoArena(
764
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
765
  // @@protoc_insertion_point(field_set_rvalue:yb.consensus.RaftPeerPB.permanent_uuid)
766
}
767
#endif
768
0
inline void RaftPeerPB::set_permanent_uuid(const char* value) {
769
0
  GOOGLE_DCHECK(value != NULL);
770
0
  set_has_permanent_uuid();
771
0
  permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
772
0
  // @@protoc_insertion_point(field_set_char:yb.consensus.RaftPeerPB.permanent_uuid)
773
0
}
774
0
inline void RaftPeerPB::set_permanent_uuid(const void* value, size_t size) {
775
0
  set_has_permanent_uuid();
776
0
  permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
777
0
      ::std::string(reinterpret_cast<const char*>(value), size));
778
0
  // @@protoc_insertion_point(field_set_pointer:yb.consensus.RaftPeerPB.permanent_uuid)
779
0
}
780
2.96M
inline ::std::string* RaftPeerPB::mutable_permanent_uuid() {
781
2.96M
  set_has_permanent_uuid();
782
  // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.permanent_uuid)
783
2.96M
  return permanent_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
784
2.96M
}
785
0
inline ::std::string* RaftPeerPB::release_permanent_uuid() {
786
0
  // @@protoc_insertion_point(field_release:yb.consensus.RaftPeerPB.permanent_uuid)
787
0
  clear_has_permanent_uuid();
788
0
  return permanent_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
789
0
}
790
0
inline void RaftPeerPB::set_allocated_permanent_uuid(::std::string* permanent_uuid) {
791
0
  if (permanent_uuid != NULL) {
792
0
    set_has_permanent_uuid();
793
0
  } else {
794
0
    clear_has_permanent_uuid();
795
0
  }
796
0
  permanent_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), permanent_uuid);
797
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.RaftPeerPB.permanent_uuid)
798
0
}
799
800
// optional .yb.consensus.PeerMemberType member_type = 2;
801
10.9M
inline bool RaftPeerPB::has_member_type() const {
802
10.9M
  return (_has_bits_[0] & 0x00000004u) != 0;
803
10.9M
}
804
3.12M
inline void RaftPeerPB::set_has_member_type() {
805
3.12M
  _has_bits_[0] |= 0x00000004u;
806
3.12M
}
807
0
inline void RaftPeerPB::clear_has_member_type() {
808
0
  _has_bits_[0] &= ~0x00000004u;
809
0
}
810
0
inline void RaftPeerPB::clear_member_type() {
811
0
  member_type_ = 999;
812
0
  clear_has_member_type();
813
0
}
814
435M
inline ::yb::consensus::PeerMemberType RaftPeerPB::member_type() const {
815
  // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.member_type)
816
435M
  return static_cast< ::yb::consensus::PeerMemberType >(member_type_);
817
435M
}
818
3.12M
inline void RaftPeerPB::set_member_type(::yb::consensus::PeerMemberType value) {
819
3.12M
  assert(::yb::consensus::PeerMemberType_IsValid(value));
820
0
  set_has_member_type();
821
3.12M
  member_type_ = value;
822
  // @@protoc_insertion_point(field_set:yb.consensus.RaftPeerPB.member_type)
823
3.12M
}
824
825
// repeated .yb.HostPortPB last_known_private_addr = 3;
826
10.7M
inline int RaftPeerPB::last_known_private_addr_size() const {
827
10.7M
  return last_known_private_addr_.size();
828
10.7M
}
829
10.7M
inline const ::yb::HostPortPB& RaftPeerPB::last_known_private_addr(int index) const {
830
  // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.last_known_private_addr)
831
10.7M
  return last_known_private_addr_.Get(index);
832
10.7M
}
833
0
inline ::yb::HostPortPB* RaftPeerPB::mutable_last_known_private_addr(int index) {
834
0
  // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.last_known_private_addr)
835
0
  return last_known_private_addr_.Mutable(index);
836
0
}
837
2.95M
inline ::yb::HostPortPB* RaftPeerPB::add_last_known_private_addr() {
838
  // @@protoc_insertion_point(field_add:yb.consensus.RaftPeerPB.last_known_private_addr)
839
2.95M
  return last_known_private_addr_.Add();
840
2.95M
}
841
inline ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >*
842
180k
RaftPeerPB::mutable_last_known_private_addr() {
843
  // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftPeerPB.last_known_private_addr)
844
180k
  return &last_known_private_addr_;
845
180k
}
846
inline const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >&
847
13.6M
RaftPeerPB::last_known_private_addr() const {
848
  // @@protoc_insertion_point(field_list:yb.consensus.RaftPeerPB.last_known_private_addr)
849
13.6M
  return last_known_private_addr_;
850
13.6M
}
851
852
// repeated .yb.HostPortPB last_known_broadcast_addr = 4;
853
10.7M
inline int RaftPeerPB::last_known_broadcast_addr_size() const {
854
10.7M
  return last_known_broadcast_addr_.size();
855
10.7M
}
856
5.39k
inline const ::yb::HostPortPB& RaftPeerPB::last_known_broadcast_addr(int index) const {
857
  // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.last_known_broadcast_addr)
858
5.39k
  return last_known_broadcast_addr_.Get(index);
859
5.39k
}
860
0
inline ::yb::HostPortPB* RaftPeerPB::mutable_last_known_broadcast_addr(int index) {
861
0
  // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.last_known_broadcast_addr)
862
0
  return last_known_broadcast_addr_.Mutable(index);
863
0
}
864
2.07k
inline ::yb::HostPortPB* RaftPeerPB::add_last_known_broadcast_addr() {
865
  // @@protoc_insertion_point(field_add:yb.consensus.RaftPeerPB.last_known_broadcast_addr)
866
2.07k
  return last_known_broadcast_addr_.Add();
867
2.07k
}
868
inline ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >*
869
180k
RaftPeerPB::mutable_last_known_broadcast_addr() {
870
  // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftPeerPB.last_known_broadcast_addr)
871
180k
  return &last_known_broadcast_addr_;
872
180k
}
873
inline const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >&
874
9.97M
RaftPeerPB::last_known_broadcast_addr() const {
875
  // @@protoc_insertion_point(field_list:yb.consensus.RaftPeerPB.last_known_broadcast_addr)
876
9.97M
  return last_known_broadcast_addr_;
877
9.97M
}
878
879
// optional .yb.CloudInfoPB cloud_info = 5;
880
7.36M
inline bool RaftPeerPB::has_cloud_info() const {
881
7.36M
  return (_has_bits_[0] & 0x00000002u) != 0;
882
7.36M
}
883
363M
inline void RaftPeerPB::set_has_cloud_info() {
884
363M
  _has_bits_[0] |= 0x00000002u;
885
363M
}
886
0
inline void RaftPeerPB::clear_has_cloud_info() {
887
0
  _has_bits_[0] &= ~0x00000002u;
888
0
}
889
362M
inline const ::yb::CloudInfoPB& RaftPeerPB::cloud_info() const {
890
362M
  const ::yb::CloudInfoPB* p = cloud_info_;
891
  // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.cloud_info)
892
362M
  return p != NULL ? 
*p362M
: *reinterpret_cast<const ::yb::CloudInfoPB*>(
893
1.74k
      &::yb::_CloudInfoPB_default_instance_);
894
362M
}
895
0
inline ::yb::CloudInfoPB* RaftPeerPB::release_cloud_info() {
896
0
  // @@protoc_insertion_point(field_release:yb.consensus.RaftPeerPB.cloud_info)
897
0
  clear_has_cloud_info();
898
0
  ::yb::CloudInfoPB* temp = cloud_info_;
899
0
  cloud_info_ = NULL;
900
0
  return temp;
901
0
}
902
363M
inline ::yb::CloudInfoPB* RaftPeerPB::mutable_cloud_info() {
903
363M
  set_has_cloud_info();
904
363M
  if (cloud_info_ == NULL) {
905
363M
    cloud_info_ = new ::yb::CloudInfoPB;
906
363M
  }
907
  // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.cloud_info)
908
363M
  return cloud_info_;
909
363M
}
910
0
inline void RaftPeerPB::set_allocated_cloud_info(::yb::CloudInfoPB* cloud_info) {
911
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
912
0
  if (message_arena == NULL) {
913
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(cloud_info_);
914
0
  }
915
0
  if (cloud_info) {
916
0
    ::google::protobuf::Arena* submessage_arena = NULL;
917
0
    if (message_arena != submessage_arena) {
918
0
      cloud_info = ::google::protobuf::internal::GetOwnedMessage(
919
0
          message_arena, cloud_info, submessage_arena);
920
0
    }
921
0
    set_has_cloud_info();
922
0
  } else {
923
0
    clear_has_cloud_info();
924
0
  }
925
0
  cloud_info_ = cloud_info;
926
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.RaftPeerPB.cloud_info)
927
0
}
928
929
// -------------------------------------------------------------------
930
931
// RaftConfigPB
932
933
// optional int64 opid_index = 1;
934
7.43M
inline bool RaftConfigPB::has_opid_index() const {
935
7.43M
  return (_has_bits_[0] & 0x00000001u) != 0;
936
7.43M
}
937
1.14M
inline void RaftConfigPB::set_has_opid_index() {
938
1.14M
  _has_bits_[0] |= 0x00000001u;
939
1.14M
}
940
25.3k
inline void RaftConfigPB::clear_has_opid_index() {
941
25.3k
  _has_bits_[0] &= ~0x00000001u;
942
25.3k
}
943
25.3k
inline void RaftConfigPB::clear_opid_index() {
944
25.3k
  opid_index_ = GOOGLE_LONGLONG(0);
945
25.3k
  clear_has_opid_index();
946
25.3k
}
947
11.5M
inline ::google::protobuf::int64 RaftConfigPB::opid_index() const {
948
  // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.opid_index)
949
11.5M
  return opid_index_;
950
11.5M
}
951
216k
inline void RaftConfigPB::set_opid_index(::google::protobuf::int64 value) {
952
216k
  set_has_opid_index();
953
216k
  opid_index_ = value;
954
  // @@protoc_insertion_point(field_set:yb.consensus.RaftConfigPB.opid_index)
955
216k
}
956
957
// optional bool unsafe_config_change = 4 [default = false];
958
1.94M
inline bool RaftConfigPB::has_unsafe_config_change() const {
959
1.94M
  return (_has_bits_[0] & 0x00000002u) != 0;
960
1.94M
}
961
380
inline void RaftConfigPB::set_has_unsafe_config_change() {
962
380
  _has_bits_[0] |= 0x00000002u;
963
380
}
964
0
inline void RaftConfigPB::clear_has_unsafe_config_change() {
965
0
  _has_bits_[0] &= ~0x00000002u;
966
0
}
967
0
inline void RaftConfigPB::clear_unsafe_config_change() {
968
0
  unsafe_config_change_ = false;
969
0
  clear_has_unsafe_config_change();
970
0
}
971
39.8k
inline bool RaftConfigPB::unsafe_config_change() const {
972
  // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.unsafe_config_change)
973
39.8k
  return unsafe_config_change_;
974
39.8k
}
975
6
inline void RaftConfigPB::set_unsafe_config_change(bool value) {
976
6
  set_has_unsafe_config_change();
977
6
  unsafe_config_change_ = value;
978
  // @@protoc_insertion_point(field_set:yb.consensus.RaftConfigPB.unsafe_config_change)
979
6
}
980
981
// repeated .yb.consensus.RaftPeerPB peers = 2;
982
101M
inline int RaftConfigPB::peers_size() const {
983
101M
  return peers_.size();
984
101M
}
985
0
inline void RaftConfigPB::clear_peers() {
986
0
  peers_.Clear();
987
0
}
988
11.1M
inline const ::yb::consensus::RaftPeerPB& RaftConfigPB::peers(int index) const {
989
  // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.peers)
990
11.1M
  return peers_.Get(index);
991
11.1M
}
992
8.04k
inline ::yb::consensus::RaftPeerPB* RaftConfigPB::mutable_peers(int index) {
993
  // @@protoc_insertion_point(field_mutable:yb.consensus.RaftConfigPB.peers)
994
8.04k
  return peers_.Mutable(index);
995
8.04k
}
996
3.12M
inline ::yb::consensus::RaftPeerPB* RaftConfigPB::add_peers() {
997
  // @@protoc_insertion_point(field_add:yb.consensus.RaftConfigPB.peers)
998
3.12M
  return peers_.Add();
999
3.12M
}
1000
inline ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >*
1001
1.81k
RaftConfigPB::mutable_peers() {
1002
  // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftConfigPB.peers)
1003
1.81k
  return &peers_;
1004
1.81k
}
1005
inline const ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >&
1006
516M
RaftConfigPB::peers() const {
1007
  // @@protoc_insertion_point(field_list:yb.consensus.RaftConfigPB.peers)
1008
516M
  return peers_;
1009
516M
}
1010
1011
// -------------------------------------------------------------------
1012
1013
// ConsensusStatePB
1014
1015
// required int64 current_term = 1;
1016
7
inline bool ConsensusStatePB::has_current_term() const {
1017
7
  return (_has_bits_[0] & 0x00000004u) != 0;
1018
7
}
1019
48.2M
inline void ConsensusStatePB::set_has_current_term() {
1020
48.2M
  _has_bits_[0] |= 0x00000004u;
1021
48.2M
}
1022
0
inline void ConsensusStatePB::clear_has_current_term() {
1023
0
  _has_bits_[0] &= ~0x00000004u;
1024
0
}
1025
0
inline void ConsensusStatePB::clear_current_term() {
1026
0
  current_term_ = GOOGLE_LONGLONG(0);
1027
0
  clear_has_current_term();
1028
0
}
1029
15.0M
inline ::google::protobuf::int64 ConsensusStatePB::current_term() const {
1030
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.current_term)
1031
15.0M
  return current_term_;
1032
15.0M
}
1033
47.7M
inline void ConsensusStatePB::set_current_term(::google::protobuf::int64 value) {
1034
47.7M
  set_has_current_term();
1035
47.7M
  current_term_ = value;
1036
  // @@protoc_insertion_point(field_set:yb.consensus.ConsensusStatePB.current_term)
1037
47.7M
}
1038
1039
// optional string leader_uuid = 2;
1040
44.4M
inline bool ConsensusStatePB::has_leader_uuid() const {
1041
44.4M
  return (_has_bits_[0] & 0x00000001u) != 0;
1042
44.4M
}
1043
37.5M
inline void ConsensusStatePB::set_has_leader_uuid() {
1044
37.5M
  _has_bits_[0] |= 0x00000001u;
1045
37.5M
}
1046
160k
inline void ConsensusStatePB::clear_has_leader_uuid() {
1047
160k
  _has_bits_[0] &= ~0x00000001u;
1048
160k
}
1049
160k
inline void ConsensusStatePB::clear_leader_uuid() {
1050
160k
  leader_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1051
160k
  clear_has_leader_uuid();
1052
160k
}
1053
35.9M
inline const ::std::string& ConsensusStatePB::leader_uuid() const {
1054
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.leader_uuid)
1055
35.9M
  return leader_uuid_.GetNoArena();
1056
35.9M
}
1057
37.1M
inline void ConsensusStatePB::set_leader_uuid(const ::std::string& value) {
1058
37.1M
  set_has_leader_uuid();
1059
37.1M
  leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1060
  // @@protoc_insertion_point(field_set:yb.consensus.ConsensusStatePB.leader_uuid)
1061
37.1M
}
1062
#if LANG_CXX11
1063
0
inline void ConsensusStatePB::set_leader_uuid(::std::string&& value) {
1064
0
  set_has_leader_uuid();
1065
0
  leader_uuid_.SetNoArena(
1066
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1067
0
  // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusStatePB.leader_uuid)
1068
0
}
1069
#endif
1070
inline void ConsensusStatePB::set_leader_uuid(const char* value) {
1071
  GOOGLE_DCHECK(value != NULL);
1072
  set_has_leader_uuid();
1073
  leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1074
  // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusStatePB.leader_uuid)
1075
}
1076
0
inline void ConsensusStatePB::set_leader_uuid(const char* value, size_t size) {
1077
0
  set_has_leader_uuid();
1078
0
  leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1079
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1080
0
  // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusStatePB.leader_uuid)
1081
0
}
1082
286k
inline ::std::string* ConsensusStatePB::mutable_leader_uuid() {
1083
286k
  set_has_leader_uuid();
1084
  // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusStatePB.leader_uuid)
1085
286k
  return leader_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1086
286k
}
1087
0
inline ::std::string* ConsensusStatePB::release_leader_uuid() {
1088
0
  // @@protoc_insertion_point(field_release:yb.consensus.ConsensusStatePB.leader_uuid)
1089
0
  clear_has_leader_uuid();
1090
0
  return leader_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1091
0
}
1092
0
inline void ConsensusStatePB::set_allocated_leader_uuid(::std::string* leader_uuid) {
1093
0
  if (leader_uuid != NULL) {
1094
0
    set_has_leader_uuid();
1095
0
  } else {
1096
0
    clear_has_leader_uuid();
1097
0
  }
1098
0
  leader_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leader_uuid);
1099
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusStatePB.leader_uuid)
1100
0
}
1101
1102
// required .yb.consensus.RaftConfigPB config = 3;
1103
7.29M
inline bool ConsensusStatePB::has_config() const {
1104
7.29M
  return (_has_bits_[0] & 0x00000002u) != 0;
1105
7.29M
}
1106
48.2M
inline void ConsensusStatePB::set_has_config() {
1107
48.2M
  _has_bits_[0] |= 0x00000002u;
1108
48.2M
}
1109
0
inline void ConsensusStatePB::clear_has_config() {
1110
0
  _has_bits_[0] &= ~0x00000002u;
1111
0
}
1112
0
inline void ConsensusStatePB::clear_config() {
1113
0
  if (config_ != NULL) config_->Clear();
1114
0
  clear_has_config();
1115
0
}
1116
62.4M
inline const ::yb::consensus::RaftConfigPB& ConsensusStatePB::config() const {
1117
62.4M
  const ::yb::consensus::RaftConfigPB* p = config_;
1118
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.config)
1119
62.4M
  return p != NULL ? 
*p62.4M
: *reinterpret_cast<const ::yb::consensus::RaftConfigPB*>(
1120
111
      &::yb::consensus::_RaftConfigPB_default_instance_);
1121
62.4M
}
1122
0
inline ::yb::consensus::RaftConfigPB* ConsensusStatePB::release_config() {
1123
0
  // @@protoc_insertion_point(field_release:yb.consensus.ConsensusStatePB.config)
1124
0
  clear_has_config();
1125
0
  ::yb::consensus::RaftConfigPB* temp = config_;
1126
0
  config_ = NULL;
1127
0
  return temp;
1128
0
}
1129
48.2M
inline ::yb::consensus::RaftConfigPB* ConsensusStatePB::mutable_config() {
1130
48.2M
  set_has_config();
1131
48.2M
  if (config_ == NULL) {
1132
48.2M
    config_ = new ::yb::consensus::RaftConfigPB;
1133
48.2M
  }
1134
  // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusStatePB.config)
1135
48.2M
  return config_;
1136
48.2M
}
1137
0
inline void ConsensusStatePB::set_allocated_config(::yb::consensus::RaftConfigPB* config) {
1138
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1139
0
  if (message_arena == NULL) {
1140
0
    delete config_;
1141
0
  }
1142
0
  if (config) {
1143
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1144
0
    if (message_arena != submessage_arena) {
1145
0
      config = ::google::protobuf::internal::GetOwnedMessage(
1146
0
          message_arena, config, submessage_arena);
1147
0
    }
1148
0
    set_has_config();
1149
0
  } else {
1150
0
    clear_has_config();
1151
0
  }
1152
0
  config_ = config;
1153
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusStatePB.config)
1154
0
}
1155
1156
// -------------------------------------------------------------------
1157
1158
// ConsensusMetadataPB
1159
1160
// required .yb.consensus.RaftConfigPB committed_config = 1;
1161
226M
inline bool ConsensusMetadataPB::has_committed_config() const {
1162
226M
  return (_has_bits_[0] & 0x00000004u) != 0;
1163
226M
}
1164
470k
inline void ConsensusMetadataPB::set_has_committed_config() {
1165
470k
  _has_bits_[0] |= 0x00000004u;
1166
470k
}
1167
0
inline void ConsensusMetadataPB::clear_has_committed_config() {
1168
0
  _has_bits_[0] &= ~0x00000004u;
1169
0
}
1170
0
inline void ConsensusMetadataPB::clear_committed_config() {
1171
0
  if (committed_config_ != NULL) committed_config_->Clear();
1172
0
  clear_has_committed_config();
1173
0
}
1174
226M
inline const ::yb::consensus::RaftConfigPB& ConsensusMetadataPB::committed_config() const {
1175
226M
  const ::yb::consensus::RaftConfigPB* p = committed_config_;
1176
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.committed_config)
1177
18.4E
  return 
p != NULL226M
?
*p226M
: *reinterpret_cast<const ::yb::consensus::RaftConfigPB*>(
1178
18.4E
      &::yb::consensus::_RaftConfigPB_default_instance_);
1179
226M
}
1180
0
inline ::yb::consensus::RaftConfigPB* ConsensusMetadataPB::release_committed_config() {
1181
0
  // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.committed_config)
1182
0
  clear_has_committed_config();
1183
0
  ::yb::consensus::RaftConfigPB* temp = committed_config_;
1184
0
  committed_config_ = NULL;
1185
0
  return temp;
1186
0
}
1187
470k
inline ::yb::consensus::RaftConfigPB* ConsensusMetadataPB::mutable_committed_config() {
1188
470k
  set_has_committed_config();
1189
470k
  if (committed_config_ == NULL) {
1190
451k
    committed_config_ = new ::yb::consensus::RaftConfigPB;
1191
451k
  }
1192
  // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.committed_config)
1193
470k
  return committed_config_;
1194
470k
}
1195
0
inline void ConsensusMetadataPB::set_allocated_committed_config(::yb::consensus::RaftConfigPB* committed_config) {
1196
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1197
0
  if (message_arena == NULL) {
1198
0
    delete committed_config_;
1199
0
  }
1200
0
  if (committed_config) {
1201
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1202
0
    if (message_arena != submessage_arena) {
1203
0
      committed_config = ::google::protobuf::internal::GetOwnedMessage(
1204
0
          message_arena, committed_config, submessage_arena);
1205
0
    }
1206
0
    set_has_committed_config();
1207
0
  } else {
1208
0
    clear_has_committed_config();
1209
0
  }
1210
0
  committed_config_ = committed_config;
1211
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.committed_config)
1212
0
}
1213
1214
// required int64 current_term = 2;
1215
250M
inline bool ConsensusMetadataPB::has_current_term() const {
1216
250M
  return (_has_bits_[0] & 0x00000008u) != 0;
1217
250M
}
1218
1.20M
inline void ConsensusMetadataPB::set_has_current_term() {
1219
1.20M
  _has_bits_[0] |= 0x00000008u;
1220
1.20M
}
1221
0
inline void ConsensusMetadataPB::clear_has_current_term() {
1222
0
  _has_bits_[0] &= ~0x00000008u;
1223
0
}
1224
0
inline void ConsensusMetadataPB::clear_current_term() {
1225
0
  current_term_ = GOOGLE_LONGLONG(0);
1226
0
  clear_has_current_term();
1227
0
}
1228
296M
inline ::google::protobuf::int64 ConsensusMetadataPB::current_term() const {
1229
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.current_term)
1230
296M
  return current_term_;
1231
296M
}
1232
907k
inline void ConsensusMetadataPB::set_current_term(::google::protobuf::int64 value) {
1233
907k
  set_has_current_term();
1234
907k
  current_term_ = value;
1235
  // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.current_term)
1236
907k
}
1237
1238
// optional string voted_for = 3;
1239
252k
inline bool ConsensusMetadataPB::has_voted_for() const {
1240
252k
  return (_has_bits_[0] & 0x00000001u) != 0;
1241
252k
}
1242
171k
inline void ConsensusMetadataPB::set_has_voted_for() {
1243
171k
  _has_bits_[0] |= 0x00000001u;
1244
171k
}
1245
757k
inline void ConsensusMetadataPB::clear_has_voted_for() {
1246
757k
  _has_bits_[0] &= ~0x00000001u;
1247
757k
}
1248
757k
inline void ConsensusMetadataPB::clear_voted_for() {
1249
757k
  voted_for_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1250
757k
  clear_has_voted_for();
1251
757k
}
1252
744k
inline const ::std::string& ConsensusMetadataPB::voted_for() const {
1253
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.voted_for)
1254
744k
  return voted_for_.GetNoArena();
1255
744k
}
1256
170k
inline void ConsensusMetadataPB::set_voted_for(const ::std::string& value) {
1257
170k
  set_has_voted_for();
1258
170k
  voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1259
  // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.voted_for)
1260
170k
}
1261
#if LANG_CXX11
1262
0
inline void ConsensusMetadataPB::set_voted_for(::std::string&& value) {
1263
0
  set_has_voted_for();
1264
0
  voted_for_.SetNoArena(
1265
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1266
0
  // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusMetadataPB.voted_for)
1267
0
}
1268
#endif
1269
0
inline void ConsensusMetadataPB::set_voted_for(const char* value) {
1270
0
  GOOGLE_DCHECK(value != NULL);
1271
0
  set_has_voted_for();
1272
0
  voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1273
0
  // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusMetadataPB.voted_for)
1274
0
}
1275
0
inline void ConsensusMetadataPB::set_voted_for(const char* value, size_t size) {
1276
0
  set_has_voted_for();
1277
0
  voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1278
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1279
0
  // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusMetadataPB.voted_for)
1280
0
}
1281
1.09k
inline ::std::string* ConsensusMetadataPB::mutable_voted_for() {
1282
1.09k
  set_has_voted_for();
1283
  // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.voted_for)
1284
1.09k
  return voted_for_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1285
1.09k
}
1286
0
inline ::std::string* ConsensusMetadataPB::release_voted_for() {
1287
0
  // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.voted_for)
1288
0
  clear_has_voted_for();
1289
0
  return voted_for_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1290
0
}
1291
0
inline void ConsensusMetadataPB::set_allocated_voted_for(::std::string* voted_for) {
1292
0
  if (voted_for != NULL) {
1293
0
    set_has_voted_for();
1294
0
  } else {
1295
0
    clear_has_voted_for();
1296
0
  }
1297
0
  voted_for_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), voted_for);
1298
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.voted_for)
1299
0
}
1300
1301
// optional bytes split_parent_tablet_id = 4;
1302
335k
inline bool ConsensusMetadataPB::has_split_parent_tablet_id() const {
1303
335k
  return (_has_bits_[0] & 0x00000002u) != 0;
1304
335k
}
1305
442
inline void ConsensusMetadataPB::set_has_split_parent_tablet_id() {
1306
442
  _has_bits_[0] |= 0x00000002u;
1307
442
}
1308
0
inline void ConsensusMetadataPB::clear_has_split_parent_tablet_id() {
1309
0
  _has_bits_[0] &= ~0x00000002u;
1310
0
}
1311
0
inline void ConsensusMetadataPB::clear_split_parent_tablet_id() {
1312
0
  split_parent_tablet_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1313
0
  clear_has_split_parent_tablet_id();
1314
0
}
1315
1.29k
inline const ::std::string& ConsensusMetadataPB::split_parent_tablet_id() const {
1316
  // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1317
1.29k
  return split_parent_tablet_id_.GetNoArena();
1318
1.29k
}
1319
135
inline void ConsensusMetadataPB::set_split_parent_tablet_id(const ::std::string& value) {
1320
135
  set_has_split_parent_tablet_id();
1321
135
  split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1322
  // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1323
135
}
1324
#if LANG_CXX11
1325
0
inline void ConsensusMetadataPB::set_split_parent_tablet_id(::std::string&& value) {
1326
0
  set_has_split_parent_tablet_id();
1327
0
  split_parent_tablet_id_.SetNoArena(
1328
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1329
0
  // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1330
0
}
1331
#endif
1332
0
inline void ConsensusMetadataPB::set_split_parent_tablet_id(const char* value) {
1333
0
  GOOGLE_DCHECK(value != NULL);
1334
0
  set_has_split_parent_tablet_id();
1335
0
  split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1336
0
  // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1337
0
}
1338
0
inline void ConsensusMetadataPB::set_split_parent_tablet_id(const void* value, size_t size) {
1339
0
  set_has_split_parent_tablet_id();
1340
0
  split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1341
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1342
0
  // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1343
0
}
1344
309
inline ::std::string* ConsensusMetadataPB::mutable_split_parent_tablet_id() {
1345
309
  set_has_split_parent_tablet_id();
1346
  // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1347
309
  return split_parent_tablet_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1348
309
}
1349
0
inline ::std::string* ConsensusMetadataPB::release_split_parent_tablet_id() {
1350
0
  // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1351
0
  clear_has_split_parent_tablet_id();
1352
0
  return split_parent_tablet_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1353
0
}
1354
0
inline void ConsensusMetadataPB::set_allocated_split_parent_tablet_id(::std::string* split_parent_tablet_id) {
1355
0
  if (split_parent_tablet_id != NULL) {
1356
0
    set_has_split_parent_tablet_id();
1357
0
  } else {
1358
0
    clear_has_split_parent_tablet_id();
1359
0
  }
1360
0
  split_parent_tablet_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), split_parent_tablet_id);
1361
0
  // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id)
1362
0
}
1363
1364
#ifdef __GNUC__
1365
  #pragma GCC diagnostic pop
1366
#endif  // __GNUC__
1367
// -------------------------------------------------------------------
1368
1369
// -------------------------------------------------------------------
1370
1371
// -------------------------------------------------------------------
1372
1373
1374
// @@protoc_insertion_point(namespace_scope)
1375
1376
}  // namespace consensus
1377
}  // namespace yb
1378
1379
namespace google {
1380
namespace protobuf {
1381
1382
template <> struct is_proto_enum< ::yb::consensus::PeerMemberType> : ::google::protobuf::internal::true_type {};
1383
template <>
1384
0
inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::PeerMemberType>() {
1385
0
  return ::yb::consensus::PeerMemberType_descriptor();
1386
0
}
1387
template <> struct is_proto_enum< ::yb::consensus::ConsensusConfigType> : ::google::protobuf::internal::true_type {};
1388
template <>
1389
0
inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::ConsensusConfigType>() {
1390
0
  return ::yb::consensus::ConsensusConfigType_descriptor();
1391
0
}
1392
1393
}  // namespace protobuf
1394
}  // namespace google
1395
1396
// @@protoc_insertion_point(global_scope)
1397
1398
#endif  // PROTOBUF_yb_2fconsensus_2fmetadata_2eproto__INCLUDED