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/consensus.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/consensus/consensus.proto
3
4
#include "yb/consensus/consensus.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace consensus {
25
class ChangeConfigRecordPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<ChangeConfigRecordPB>
28
      _instance;
29
} _ChangeConfigRecordPB_default_instance_;
30
class ChangeConfigRequestPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<ChangeConfigRequestPB>
33
      _instance;
34
} _ChangeConfigRequestPB_default_instance_;
35
class ChangeConfigResponsePBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<ChangeConfigResponsePB>
38
      _instance;
39
} _ChangeConfigResponsePB_default_instance_;
40
class HistoryCutoffPBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<HistoryCutoffPB>
43
      _instance;
44
} _HistoryCutoffPB_default_instance_;
45
class ReplicateMsgDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<ReplicateMsg>
48
      _instance;
49
} _ReplicateMsg_default_instance_;
50
class NoOpRequestPBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<NoOpRequestPB>
53
      _instance;
54
} _NoOpRequestPB_default_instance_;
55
class NoOpResponsePBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<NoOpResponsePB>
58
      _instance;
59
} _NoOpResponsePB_default_instance_;
60
class PerOpErrorPBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<PerOpErrorPB>
63
      _instance;
64
} _PerOpErrorPB_default_instance_;
65
class ConsensusStatusPBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<ConsensusStatusPB>
68
      _instance;
69
} _ConsensusStatusPB_default_instance_;
70
class VoteRequestPBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<VoteRequestPB>
73
      _instance;
74
} _VoteRequestPB_default_instance_;
75
class VoteResponsePBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<VoteResponsePB>
78
      _instance;
79
} _VoteResponsePB_default_instance_;
80
class ConsensusRequestPBDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<ConsensusRequestPB>
83
      _instance;
84
} _ConsensusRequestPB_default_instance_;
85
class ConsensusResponsePBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<ConsensusResponsePB>
88
      _instance;
89
} _ConsensusResponsePB_default_instance_;
90
class MultiRaftConsensusRequestPBDefaultTypeInternal {
91
 public:
92
  ::google::protobuf::internal::ExplicitlyConstructed<MultiRaftConsensusRequestPB>
93
      _instance;
94
} _MultiRaftConsensusRequestPB_default_instance_;
95
class MultiRaftConsensusResponsePBDefaultTypeInternal {
96
 public:
97
  ::google::protobuf::internal::ExplicitlyConstructed<MultiRaftConsensusResponsePB>
98
      _instance;
99
} _MultiRaftConsensusResponsePB_default_instance_;
100
class OperationStatusPBDefaultTypeInternal {
101
 public:
102
  ::google::protobuf::internal::ExplicitlyConstructed<OperationStatusPB>
103
      _instance;
104
} _OperationStatusPB_default_instance_;
105
class GetNodeInstanceRequestPBDefaultTypeInternal {
106
 public:
107
  ::google::protobuf::internal::ExplicitlyConstructed<GetNodeInstanceRequestPB>
108
      _instance;
109
} _GetNodeInstanceRequestPB_default_instance_;
110
class GetNodeInstanceResponsePBDefaultTypeInternal {
111
 public:
112
  ::google::protobuf::internal::ExplicitlyConstructed<GetNodeInstanceResponsePB>
113
      _instance;
114
} _GetNodeInstanceResponsePB_default_instance_;
115
class RunLeaderElectionRequestPBDefaultTypeInternal {
116
 public:
117
  ::google::protobuf::internal::ExplicitlyConstructed<RunLeaderElectionRequestPB>
118
      _instance;
119
} _RunLeaderElectionRequestPB_default_instance_;
120
class RunLeaderElectionResponsePBDefaultTypeInternal {
121
 public:
122
  ::google::protobuf::internal::ExplicitlyConstructed<RunLeaderElectionResponsePB>
123
      _instance;
124
} _RunLeaderElectionResponsePB_default_instance_;
125
class LeaderElectionLostRequestPBDefaultTypeInternal {
126
 public:
127
  ::google::protobuf::internal::ExplicitlyConstructed<LeaderElectionLostRequestPB>
128
      _instance;
129
} _LeaderElectionLostRequestPB_default_instance_;
130
class LeaderElectionLostResponsePBDefaultTypeInternal {
131
 public:
132
  ::google::protobuf::internal::ExplicitlyConstructed<LeaderElectionLostResponsePB>
133
      _instance;
134
} _LeaderElectionLostResponsePB_default_instance_;
135
class LeaderStepDownRequestPBDefaultTypeInternal {
136
 public:
137
  ::google::protobuf::internal::ExplicitlyConstructed<LeaderStepDownRequestPB>
138
      _instance;
139
} _LeaderStepDownRequestPB_default_instance_;
140
class LeaderStepDownResponsePBDefaultTypeInternal {
141
 public:
142
  ::google::protobuf::internal::ExplicitlyConstructed<LeaderStepDownResponsePB>
143
      _instance;
144
} _LeaderStepDownResponsePB_default_instance_;
145
class GetLastOpIdRequestPBDefaultTypeInternal {
146
 public:
147
  ::google::protobuf::internal::ExplicitlyConstructed<GetLastOpIdRequestPB>
148
      _instance;
149
} _GetLastOpIdRequestPB_default_instance_;
150
class GetLastOpIdResponsePBDefaultTypeInternal {
151
 public:
152
  ::google::protobuf::internal::ExplicitlyConstructed<GetLastOpIdResponsePB>
153
      _instance;
154
} _GetLastOpIdResponsePB_default_instance_;
155
class GetConsensusStateRequestPBDefaultTypeInternal {
156
 public:
157
  ::google::protobuf::internal::ExplicitlyConstructed<GetConsensusStateRequestPB>
158
      _instance;
159
} _GetConsensusStateRequestPB_default_instance_;
160
class GetConsensusStateResponsePBDefaultTypeInternal {
161
 public:
162
  ::google::protobuf::internal::ExplicitlyConstructed<GetConsensusStateResponsePB>
163
      _instance;
164
} _GetConsensusStateResponsePB_default_instance_;
165
class StartRemoteBootstrapRequestPBDefaultTypeInternal {
166
 public:
167
  ::google::protobuf::internal::ExplicitlyConstructed<StartRemoteBootstrapRequestPB>
168
      _instance;
169
} _StartRemoteBootstrapRequestPB_default_instance_;
170
class StartRemoteBootstrapResponsePBDefaultTypeInternal {
171
 public:
172
  ::google::protobuf::internal::ExplicitlyConstructed<StartRemoteBootstrapResponsePB>
173
      _instance;
174
} _StartRemoteBootstrapResponsePB_default_instance_;
175
class UnsafeChangeConfigRequestPBDefaultTypeInternal {
176
 public:
177
  ::google::protobuf::internal::ExplicitlyConstructed<UnsafeChangeConfigRequestPB>
178
      _instance;
179
} _UnsafeChangeConfigRequestPB_default_instance_;
180
class UnsafeChangeConfigResponsePBDefaultTypeInternal {
181
 public:
182
  ::google::protobuf::internal::ExplicitlyConstructed<UnsafeChangeConfigResponsePB>
183
      _instance;
184
} _UnsafeChangeConfigResponsePB_default_instance_;
185
}  // namespace consensus
186
}  // namespace yb
187
namespace protobuf_yb_2fconsensus_2fconsensus_2eproto {
188
26.8k
void InitDefaultsChangeConfigRecordPBImpl() {
189
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
190
191
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
192
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
193
#else
194
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
195
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
196
26.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPB();
197
26.8k
  {
198
26.8k
    void* ptr = &::yb::consensus::_ChangeConfigRecordPB_default_instance_;
199
26.8k
    new (ptr) ::yb::consensus::ChangeConfigRecordPB();
200
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
201
26.8k
  }
202
26.8k
  ::yb::consensus::ChangeConfigRecordPB::InitAsDefaultInstance();
203
26.8k
}
204
205
690k
void InitDefaultsChangeConfigRecordPB() {
206
690k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
207
690k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChangeConfigRecordPBImpl);
208
690k
}
209
210
26.8k
void InitDefaultsChangeConfigRequestPBImpl() {
211
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
212
213
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
214
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
215
#else
216
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
217
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
218
26.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftPeerPB();
219
26.8k
  {
220
26.8k
    void* ptr = &::yb::consensus::_ChangeConfigRequestPB_default_instance_;
221
26.8k
    new (ptr) ::yb::consensus::ChangeConfigRequestPB();
222
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
223
26.8k
  }
224
26.8k
  ::yb::consensus::ChangeConfigRequestPB::InitAsDefaultInstance();
225
26.8k
}
226
227
2.94M
void InitDefaultsChangeConfigRequestPB() {
228
2.94M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
229
2.94M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChangeConfigRequestPBImpl);
230
2.94M
}
231
232
26.8k
void InitDefaultsChangeConfigResponsePBImpl() {
233
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
234
235
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
236
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
237
#else
238
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
239
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
240
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
241
26.8k
  {
242
26.8k
    void* ptr = &::yb::consensus::_ChangeConfigResponsePB_default_instance_;
243
26.8k
    new (ptr) ::yb::consensus::ChangeConfigResponsePB();
244
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
245
26.8k
  }
246
26.8k
  ::yb::consensus::ChangeConfigResponsePB::InitAsDefaultInstance();
247
26.8k
}
248
249
2.94M
void InitDefaultsChangeConfigResponsePB() {
250
2.94M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
251
2.94M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChangeConfigResponsePBImpl);
252
2.94M
}
253
254
26.8k
void InitDefaultsHistoryCutoffPBImpl() {
255
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
256
257
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
258
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
259
#else
260
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
261
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
262
26.8k
  {
263
26.8k
    void* ptr = &::yb::consensus::_HistoryCutoffPB_default_instance_;
264
26.8k
    new (ptr) ::yb::consensus::HistoryCutoffPB();
265
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
266
26.8k
  }
267
26.8k
  ::yb::consensus::HistoryCutoffPB::InitAsDefaultInstance();
268
26.8k
}
269
270
53.7k
void InitDefaultsHistoryCutoffPB() {
271
53.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
272
53.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHistoryCutoffPBImpl);
273
53.7k
}
274
275
26.8k
void InitDefaultsReplicateMsgImpl() {
276
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
277
278
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
279
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
280
#else
281
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
282
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
283
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
284
26.8k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsWritePB();
285
26.8k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsChangeMetadataRequestPB();
286
26.8k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTransactionStatePB();
287
26.8k
  protobuf_yb_2ftserver_2fbackup_2eproto::InitDefaultsTabletSnapshotOpRequestPB();
288
26.8k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsTruncatePB();
289
26.8k
  protobuf_yb_2ftablet_2foperations_2eproto::InitDefaultsSplitTabletRequestPB();
290
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigRecordPB();
291
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsHistoryCutoffPB();
292
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsNoOpRequestPB();
293
26.8k
  {
294
26.8k
    void* ptr = &::yb::consensus::_ReplicateMsg_default_instance_;
295
26.8k
    new (ptr) ::yb::consensus::ReplicateMsg();
296
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
297
26.8k
  }
298
26.8k
  ::yb::consensus::ReplicateMsg::InitAsDefaultInstance();
299
26.8k
}
300
301
17.6M
void InitDefaultsReplicateMsg() {
302
17.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
303
17.6M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReplicateMsgImpl);
304
17.6M
}
305
306
26.8k
void InitDefaultsNoOpRequestPBImpl() {
307
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
308
309
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
310
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
311
#else
312
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
313
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
314
26.8k
  {
315
26.8k
    void* ptr = &::yb::consensus::_NoOpRequestPB_default_instance_;
316
26.8k
    new (ptr) ::yb::consensus::NoOpRequestPB();
317
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
318
26.8k
  }
319
26.8k
  ::yb::consensus::NoOpRequestPB::InitAsDefaultInstance();
320
26.8k
}
321
322
248k
void InitDefaultsNoOpRequestPB() {
323
248k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
324
248k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNoOpRequestPBImpl);
325
248k
}
326
327
26.8k
void InitDefaultsNoOpResponsePBImpl() {
328
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
329
330
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
331
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
332
#else
333
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
334
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
335
26.8k
  {
336
26.8k
    void* ptr = &::yb::consensus::_NoOpResponsePB_default_instance_;
337
26.8k
    new (ptr) ::yb::consensus::NoOpResponsePB();
338
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
339
26.8k
  }
340
26.8k
  ::yb::consensus::NoOpResponsePB::InitAsDefaultInstance();
341
26.8k
}
342
343
26.8k
void InitDefaultsNoOpResponsePB() {
344
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
345
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNoOpResponsePBImpl);
346
26.8k
}
347
348
26.8k
void InitDefaultsPerOpErrorPBImpl() {
349
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
350
351
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
352
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
353
#else
354
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
355
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
356
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
357
26.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
358
26.8k
  {
359
26.8k
    void* ptr = &::yb::consensus::_PerOpErrorPB_default_instance_;
360
26.8k
    new (ptr) ::yb::consensus::PerOpErrorPB();
361
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
362
26.8k
  }
363
26.8k
  ::yb::consensus::PerOpErrorPB::InitAsDefaultInstance();
364
26.8k
}
365
366
26.8k
void InitDefaultsPerOpErrorPB() {
367
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
368
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPerOpErrorPBImpl);
369
26.8k
}
370
371
26.8k
void InitDefaultsConsensusStatusPBImpl() {
372
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
373
374
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
375
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
376
#else
377
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
378
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
379
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
380
26.8k
  protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto::InitDefaultsConsensusErrorPB();
381
26.8k
  {
382
26.8k
    void* ptr = &::yb::consensus::_ConsensusStatusPB_default_instance_;
383
26.8k
    new (ptr) ::yb::consensus::ConsensusStatusPB();
384
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
385
26.8k
  }
386
26.8k
  ::yb::consensus::ConsensusStatusPB::InitAsDefaultInstance();
387
26.8k
}
388
389
53.6M
void InitDefaultsConsensusStatusPB() {
390
53.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
391
53.6M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConsensusStatusPBImpl);
392
53.6M
}
393
394
26.8k
void InitDefaultsVoteRequestPBImpl() {
395
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
396
397
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
398
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
399
#else
400
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
401
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
402
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusStatusPB();
403
26.8k
  {
404
26.8k
    void* ptr = &::yb::consensus::_VoteRequestPB_default_instance_;
405
26.8k
    new (ptr) ::yb::consensus::VoteRequestPB();
406
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
407
26.8k
  }
408
26.8k
  ::yb::consensus::VoteRequestPB::InitAsDefaultInstance();
409
26.8k
}
410
411
3.61M
void InitDefaultsVoteRequestPB() {
412
3.61M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
413
3.61M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVoteRequestPBImpl);
414
3.61M
}
415
416
26.8k
void InitDefaultsVoteResponsePBImpl() {
417
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
418
419
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
420
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
421
#else
422
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
423
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
424
26.8k
  protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto::InitDefaultsConsensusErrorPB();
425
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
426
26.8k
  {
427
26.8k
    void* ptr = &::yb::consensus::_VoteResponsePB_default_instance_;
428
26.8k
    new (ptr) ::yb::consensus::VoteResponsePB();
429
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
430
26.8k
  }
431
26.8k
  ::yb::consensus::VoteResponsePB::InitAsDefaultInstance();
432
26.8k
}
433
434
2.87M
void InitDefaultsVoteResponsePB() {
435
2.87M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
436
2.87M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVoteResponsePBImpl);
437
2.87M
}
438
439
26.8k
void InitDefaultsConsensusRequestPBImpl() {
440
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
441
442
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
443
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
444
#else
445
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
446
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
447
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
448
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsReplicateMsg();
449
26.8k
  {
450
26.8k
    void* ptr = &::yb::consensus::_ConsensusRequestPB_default_instance_;
451
26.8k
    new (ptr) ::yb::consensus::ConsensusRequestPB();
452
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
453
26.8k
  }
454
26.8k
  ::yb::consensus::ConsensusRequestPB::InitAsDefaultInstance();
455
26.8k
}
456
457
25.8M
void InitDefaultsConsensusRequestPB() {
458
25.8M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
459
25.8M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConsensusRequestPBImpl);
460
25.8M
}
461
462
26.8k
void InitDefaultsConsensusResponsePBImpl() {
463
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
464
465
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
466
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
467
#else
468
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
469
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
470
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusStatusPB();
471
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
472
26.8k
  {
473
26.8k
    void* ptr = &::yb::consensus::_ConsensusResponsePB_default_instance_;
474
26.8k
    new (ptr) ::yb::consensus::ConsensusResponsePB();
475
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
476
26.8k
  }
477
26.8k
  ::yb::consensus::ConsensusResponsePB::InitAsDefaultInstance();
478
26.8k
}
479
480
50.1M
void InitDefaultsConsensusResponsePB() {
481
50.1M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
482
50.1M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConsensusResponsePBImpl);
483
50.1M
}
484
485
26.8k
void InitDefaultsMultiRaftConsensusRequestPBImpl() {
486
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
487
488
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
489
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
490
#else
491
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
492
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
493
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusRequestPB();
494
26.8k
  {
495
26.8k
    void* ptr = &::yb::consensus::_MultiRaftConsensusRequestPB_default_instance_;
496
26.8k
    new (ptr) ::yb::consensus::MultiRaftConsensusRequestPB();
497
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
498
26.8k
  }
499
26.8k
  ::yb::consensus::MultiRaftConsensusRequestPB::InitAsDefaultInstance();
500
26.8k
}
501
502
26.8k
void InitDefaultsMultiRaftConsensusRequestPB() {
503
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
504
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMultiRaftConsensusRequestPBImpl);
505
26.8k
}
506
507
26.8k
void InitDefaultsMultiRaftConsensusResponsePBImpl() {
508
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
509
510
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
511
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
512
#else
513
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
514
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
515
26.8k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusResponsePB();
516
26.8k
  {
517
26.8k
    void* ptr = &::yb::consensus::_MultiRaftConsensusResponsePB_default_instance_;
518
26.8k
    new (ptr) ::yb::consensus::MultiRaftConsensusResponsePB();
519
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
520
26.8k
  }
521
26.8k
  ::yb::consensus::MultiRaftConsensusResponsePB::InitAsDefaultInstance();
522
26.8k
}
523
524
26.8k
void InitDefaultsMultiRaftConsensusResponsePB() {
525
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
526
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsMultiRaftConsensusResponsePBImpl);
527
26.8k
}
528
529
26.8k
void InitDefaultsOperationStatusPBImpl() {
530
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
531
532
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
533
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
534
#else
535
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
536
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
537
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
538
26.8k
  {
539
26.8k
    void* ptr = &::yb::consensus::_OperationStatusPB_default_instance_;
540
26.8k
    new (ptr) ::yb::consensus::OperationStatusPB();
541
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
542
26.8k
  }
543
26.8k
  ::yb::consensus::OperationStatusPB::InitAsDefaultInstance();
544
26.8k
}
545
546
26.8k
void InitDefaultsOperationStatusPB() {
547
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
548
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOperationStatusPBImpl);
549
26.8k
}
550
551
26.8k
void InitDefaultsGetNodeInstanceRequestPBImpl() {
552
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
553
554
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
555
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
556
#else
557
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
558
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
559
26.8k
  {
560
26.8k
    void* ptr = &::yb::consensus::_GetNodeInstanceRequestPB_default_instance_;
561
26.8k
    new (ptr) ::yb::consensus::GetNodeInstanceRequestPB();
562
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
563
26.8k
  }
564
26.8k
  ::yb::consensus::GetNodeInstanceRequestPB::InitAsDefaultInstance();
565
26.8k
}
566
567
69.9k
void InitDefaultsGetNodeInstanceRequestPB() {
568
69.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
569
69.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetNodeInstanceRequestPBImpl);
570
69.9k
}
571
572
26.8k
void InitDefaultsGetNodeInstanceResponsePBImpl() {
573
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
574
575
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
576
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
577
#else
578
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
579
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
580
26.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
581
26.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerRegistrationPB();
582
26.8k
  {
583
26.8k
    void* ptr = &::yb::consensus::_GetNodeInstanceResponsePB_default_instance_;
584
26.8k
    new (ptr) ::yb::consensus::GetNodeInstanceResponsePB();
585
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
586
26.8k
  }
587
26.8k
  ::yb::consensus::GetNodeInstanceResponsePB::InitAsDefaultInstance();
588
26.8k
}
589
590
69.9k
void InitDefaultsGetNodeInstanceResponsePB() {
591
69.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
592
69.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetNodeInstanceResponsePBImpl);
593
69.9k
}
594
595
26.8k
void InitDefaultsRunLeaderElectionRequestPBImpl() {
596
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
597
598
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
599
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
600
#else
601
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
602
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
603
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
604
26.8k
  {
605
26.8k
    void* ptr = &::yb::consensus::_RunLeaderElectionRequestPB_default_instance_;
606
26.8k
    new (ptr) ::yb::consensus::RunLeaderElectionRequestPB();
607
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
608
26.8k
  }
609
26.8k
  ::yb::consensus::RunLeaderElectionRequestPB::InitAsDefaultInstance();
610
26.8k
}
611
612
181k
void InitDefaultsRunLeaderElectionRequestPB() {
613
181k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
614
181k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRunLeaderElectionRequestPBImpl);
615
181k
}
616
617
26.8k
void InitDefaultsRunLeaderElectionResponsePBImpl() {
618
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
619
620
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
621
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
622
#else
623
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
624
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
625
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
626
26.8k
  {
627
26.8k
    void* ptr = &::yb::consensus::_RunLeaderElectionResponsePB_default_instance_;
628
26.8k
    new (ptr) ::yb::consensus::RunLeaderElectionResponsePB();
629
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
630
26.8k
  }
631
26.8k
  ::yb::consensus::RunLeaderElectionResponsePB::InitAsDefaultInstance();
632
26.8k
}
633
634
181k
void InitDefaultsRunLeaderElectionResponsePB() {
635
181k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
636
181k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRunLeaderElectionResponsePBImpl);
637
181k
}
638
639
26.8k
void InitDefaultsLeaderElectionLostRequestPBImpl() {
640
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
641
642
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
643
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
644
#else
645
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
646
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
647
26.8k
  {
648
26.8k
    void* ptr = &::yb::consensus::_LeaderElectionLostRequestPB_default_instance_;
649
26.8k
    new (ptr) ::yb::consensus::LeaderElectionLostRequestPB();
650
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
651
26.8k
  }
652
26.8k
  ::yb::consensus::LeaderElectionLostRequestPB::InitAsDefaultInstance();
653
26.8k
}
654
655
27.0k
void InitDefaultsLeaderElectionLostRequestPB() {
656
27.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
657
27.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLeaderElectionLostRequestPBImpl);
658
27.0k
}
659
660
26.8k
void InitDefaultsLeaderElectionLostResponsePBImpl() {
661
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
662
663
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
664
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
665
#else
666
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
667
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
668
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
669
26.8k
  {
670
26.8k
    void* ptr = &::yb::consensus::_LeaderElectionLostResponsePB_default_instance_;
671
26.8k
    new (ptr) ::yb::consensus::LeaderElectionLostResponsePB();
672
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
673
26.8k
  }
674
26.8k
  ::yb::consensus::LeaderElectionLostResponsePB::InitAsDefaultInstance();
675
26.8k
}
676
677
27.0k
void InitDefaultsLeaderElectionLostResponsePB() {
678
27.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
679
27.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLeaderElectionLostResponsePBImpl);
680
27.0k
}
681
682
26.8k
void InitDefaultsLeaderStepDownRequestPBImpl() {
683
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
684
685
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
686
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
687
#else
688
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
689
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
690
26.8k
  {
691
26.8k
    void* ptr = &::yb::consensus::_LeaderStepDownRequestPB_default_instance_;
692
26.8k
    new (ptr) ::yb::consensus::LeaderStepDownRequestPB();
693
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
694
26.8k
  }
695
26.8k
  ::yb::consensus::LeaderStepDownRequestPB::InitAsDefaultInstance();
696
26.8k
}
697
698
135k
void InitDefaultsLeaderStepDownRequestPB() {
699
135k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
700
135k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLeaderStepDownRequestPBImpl);
701
135k
}
702
703
26.8k
void InitDefaultsLeaderStepDownResponsePBImpl() {
704
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
705
706
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
707
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
708
#else
709
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
710
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
711
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
712
26.8k
  {
713
26.8k
    void* ptr = &::yb::consensus::_LeaderStepDownResponsePB_default_instance_;
714
26.8k
    new (ptr) ::yb::consensus::LeaderStepDownResponsePB();
715
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
716
26.8k
  }
717
26.8k
  ::yb::consensus::LeaderStepDownResponsePB::InitAsDefaultInstance();
718
26.8k
}
719
720
135k
void InitDefaultsLeaderStepDownResponsePB() {
721
135k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
722
135k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLeaderStepDownResponsePBImpl);
723
135k
}
724
725
26.8k
void InitDefaultsGetLastOpIdRequestPBImpl() {
726
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
727
728
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
729
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
730
#else
731
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
732
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
733
26.8k
  {
734
26.8k
    void* ptr = &::yb::consensus::_GetLastOpIdRequestPB_default_instance_;
735
26.8k
    new (ptr) ::yb::consensus::GetLastOpIdRequestPB();
736
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
737
26.8k
  }
738
26.8k
  ::yb::consensus::GetLastOpIdRequestPB::InitAsDefaultInstance();
739
26.8k
}
740
741
27.9k
void InitDefaultsGetLastOpIdRequestPB() {
742
27.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
743
27.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLastOpIdRequestPBImpl);
744
27.9k
}
745
746
26.8k
void InitDefaultsGetLastOpIdResponsePBImpl() {
747
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
748
749
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
750
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
751
#else
752
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
753
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
754
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
755
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
756
26.8k
  {
757
26.8k
    void* ptr = &::yb::consensus::_GetLastOpIdResponsePB_default_instance_;
758
26.8k
    new (ptr) ::yb::consensus::GetLastOpIdResponsePB();
759
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
760
26.8k
  }
761
26.8k
  ::yb::consensus::GetLastOpIdResponsePB::InitAsDefaultInstance();
762
26.8k
}
763
764
27.9k
void InitDefaultsGetLastOpIdResponsePB() {
765
27.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
766
27.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetLastOpIdResponsePBImpl);
767
27.9k
}
768
769
26.8k
void InitDefaultsGetConsensusStateRequestPBImpl() {
770
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
771
772
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
773
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
774
#else
775
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
776
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
777
26.8k
  {
778
26.8k
    void* ptr = &::yb::consensus::_GetConsensusStateRequestPB_default_instance_;
779
26.8k
    new (ptr) ::yb::consensus::GetConsensusStateRequestPB();
780
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
781
26.8k
  }
782
26.8k
  ::yb::consensus::GetConsensusStateRequestPB::InitAsDefaultInstance();
783
26.8k
}
784
785
35.1k
void InitDefaultsGetConsensusStateRequestPB() {
786
35.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
787
35.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetConsensusStateRequestPBImpl);
788
35.1k
}
789
790
26.8k
void InitDefaultsGetConsensusStateResponsePBImpl() {
791
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
792
793
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
794
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
795
#else
796
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
797
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
798
26.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePB();
799
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
800
26.8k
  {
801
26.8k
    void* ptr = &::yb::consensus::_GetConsensusStateResponsePB_default_instance_;
802
26.8k
    new (ptr) ::yb::consensus::GetConsensusStateResponsePB();
803
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
804
26.8k
  }
805
26.8k
  ::yb::consensus::GetConsensusStateResponsePB::InitAsDefaultInstance();
806
26.8k
}
807
808
35.1k
void InitDefaultsGetConsensusStateResponsePB() {
809
35.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
810
35.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetConsensusStateResponsePBImpl);
811
35.1k
}
812
813
26.8k
void InitDefaultsStartRemoteBootstrapRequestPBImpl() {
814
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
815
816
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
817
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
818
#else
819
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
820
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
821
26.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
822
26.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
823
26.8k
  {
824
26.8k
    void* ptr = &::yb::consensus::_StartRemoteBootstrapRequestPB_default_instance_;
825
26.8k
    new (ptr) ::yb::consensus::StartRemoteBootstrapRequestPB();
826
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
827
26.8k
  }
828
26.8k
  ::yb::consensus::StartRemoteBootstrapRequestPB::InitAsDefaultInstance();
829
26.8k
}
830
831
160k
void InitDefaultsStartRemoteBootstrapRequestPB() {
832
160k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
833
160k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStartRemoteBootstrapRequestPBImpl);
834
160k
}
835
836
26.8k
void InitDefaultsStartRemoteBootstrapResponsePBImpl() {
837
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
838
839
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
840
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
841
#else
842
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
843
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
844
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
845
26.8k
  {
846
26.8k
    void* ptr = &::yb::consensus::_StartRemoteBootstrapResponsePB_default_instance_;
847
26.8k
    new (ptr) ::yb::consensus::StartRemoteBootstrapResponsePB();
848
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
849
26.8k
  }
850
26.8k
  ::yb::consensus::StartRemoteBootstrapResponsePB::InitAsDefaultInstance();
851
26.8k
}
852
853
160k
void InitDefaultsStartRemoteBootstrapResponsePB() {
854
160k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
855
160k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsStartRemoteBootstrapResponsePBImpl);
856
160k
}
857
858
26.8k
void InitDefaultsUnsafeChangeConfigRequestPBImpl() {
859
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
860
861
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
862
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
863
#else
864
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
865
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
866
26.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPB();
867
26.8k
  {
868
26.8k
    void* ptr = &::yb::consensus::_UnsafeChangeConfigRequestPB_default_instance_;
869
26.8k
    new (ptr) ::yb::consensus::UnsafeChangeConfigRequestPB();
870
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
871
26.8k
  }
872
26.8k
  ::yb::consensus::UnsafeChangeConfigRequestPB::InitAsDefaultInstance();
873
26.8k
}
874
875
26.8k
void InitDefaultsUnsafeChangeConfigRequestPB() {
876
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
877
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUnsafeChangeConfigRequestPBImpl);
878
26.8k
}
879
880
26.8k
void InitDefaultsUnsafeChangeConfigResponsePBImpl() {
881
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
882
883
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
884
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
885
#else
886
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
887
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
888
26.8k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
889
26.8k
  {
890
26.8k
    void* ptr = &::yb::consensus::_UnsafeChangeConfigResponsePB_default_instance_;
891
26.8k
    new (ptr) ::yb::consensus::UnsafeChangeConfigResponsePB();
892
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
893
26.8k
  }
894
26.8k
  ::yb::consensus::UnsafeChangeConfigResponsePB::InitAsDefaultInstance();
895
26.8k
}
896
897
26.8k
void InitDefaultsUnsafeChangeConfigResponsePB() {
898
26.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
899
26.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUnsafeChangeConfigResponsePBImpl);
900
26.8k
}
901
902
::google::protobuf::Metadata file_level_metadata[32];
903
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
904
905
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
906
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRecordPB, _has_bits_),
907
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRecordPB, _internal_metadata_),
908
  ~0u,  // no _extensions_
909
  ~0u,  // no _oneof_case_
910
  ~0u,  // no _weak_field_map_
911
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRecordPB, tablet_id_),
912
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRecordPB, old_config_),
913
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRecordPB, new_config_),
914
  0,
915
  1,
916
  2,
917
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, _has_bits_),
918
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, _internal_metadata_),
919
  ~0u,  // no _extensions_
920
  ~0u,  // no _oneof_case_
921
  ~0u,  // no _weak_field_map_
922
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, dest_uuid_),
923
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, tablet_id_),
924
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, type_),
925
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, server_),
926
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, cas_config_opid_index_),
927
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigRequestPB, use_host_),
928
  1,
929
  0,
930
  3,
931
  2,
932
  5,
933
  4,
934
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigResponsePB, _has_bits_),
935
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigResponsePB, _internal_metadata_),
936
  ~0u,  // no _extensions_
937
  ~0u,  // no _oneof_case_
938
  ~0u,  // no _weak_field_map_
939
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigResponsePB, error_),
940
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ChangeConfigResponsePB, hybrid_time_),
941
  0,
942
  1,
943
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::HistoryCutoffPB, _has_bits_),
944
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::HistoryCutoffPB, _internal_metadata_),
945
  ~0u,  // no _extensions_
946
  ~0u,  // no _oneof_case_
947
  ~0u,  // no _weak_field_map_
948
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::HistoryCutoffPB, history_cutoff_),
949
  0,
950
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, _has_bits_),
951
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, _internal_metadata_),
952
  ~0u,  // no _extensions_
953
  ~0u,  // no _oneof_case_
954
  ~0u,  // no _weak_field_map_
955
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, id_),
956
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, hybrid_time_),
957
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, monotonic_counter_),
958
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, op_type_),
959
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, write_),
960
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, change_metadata_request_),
961
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, transaction_state_),
962
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, snapshot_request_),
963
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, truncate_),
964
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, split_request_),
965
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, change_config_record_),
966
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, history_cutoff_),
967
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, committed_op_id_),
968
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ReplicateMsg, noop_request_),
969
  0,
970
  11,
971
  12,
972
  13,
973
  1,
974
  2,
975
  5,
976
  6,
977
  7,
978
  9,
979
  3,
980
  8,
981
  4,
982
  10,
983
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpRequestPB, _has_bits_),
984
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpRequestPB, _internal_metadata_),
985
  ~0u,  // no _extensions_
986
  ~0u,  // no _oneof_case_
987
  ~0u,  // no _weak_field_map_
988
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpRequestPB, payload_for_tests_),
989
  0,
990
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpResponsePB, _has_bits_),
991
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpResponsePB, _internal_metadata_),
992
  ~0u,  // no _extensions_
993
  ~0u,  // no _oneof_case_
994
  ~0u,  // no _weak_field_map_
995
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::NoOpResponsePB, payload_for_tests_),
996
  0,
997
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::PerOpErrorPB, _has_bits_),
998
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::PerOpErrorPB, _internal_metadata_),
999
  ~0u,  // no _extensions_
1000
  ~0u,  // no _oneof_case_
1001
  ~0u,  // no _weak_field_map_
1002
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::PerOpErrorPB, id_),
1003
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::PerOpErrorPB, status_),
1004
  0,
1005
  1,
1006
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, _has_bits_),
1007
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, _internal_metadata_),
1008
  ~0u,  // no _extensions_
1009
  ~0u,  // no _oneof_case_
1010
  ~0u,  // no _weak_field_map_
1011
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, last_received_),
1012
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, last_received_current_leader_),
1013
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, last_committed_idx_),
1014
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, last_applied_),
1015
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusStatusPB, error_),
1016
  0,
1017
  2,
1018
  4,
1019
  3,
1020
  1,
1021
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, _has_bits_),
1022
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, _internal_metadata_),
1023
  ~0u,  // no _extensions_
1024
  ~0u,  // no _oneof_case_
1025
  ~0u,  // no _weak_field_map_
1026
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, dest_uuid_),
1027
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, tablet_id_),
1028
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, candidate_uuid_),
1029
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, candidate_term_),
1030
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, candidate_status_),
1031
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, ignore_live_leader_),
1032
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteRequestPB, preelection_),
1033
  2,
1034
  0,
1035
  1,
1036
  4,
1037
  3,
1038
  5,
1039
  6,
1040
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, _has_bits_),
1041
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, _internal_metadata_),
1042
  ~0u,  // no _extensions_
1043
  ~0u,  // no _oneof_case_
1044
  ~0u,  // no _weak_field_map_
1045
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, responder_uuid_),
1046
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, responder_term_),
1047
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, vote_granted_),
1048
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, remaining_leader_lease_duration_ms_),
1049
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, leader_lease_uuid_),
1050
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, leader_ht_lease_expiration_),
1051
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, leader_ht_lease_uuid_),
1052
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, preelection_),
1053
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, consensus_error_),
1054
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::VoteResponsePB, error_),
1055
  0,
1056
  5,
1057
  7,
1058
  6,
1059
  1,
1060
  9,
1061
  2,
1062
  8,
1063
  3,
1064
  4,
1065
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, _has_bits_),
1066
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, _internal_metadata_),
1067
  ~0u,  // no _extensions_
1068
  ~0u,  // no _oneof_case_
1069
  ~0u,  // no _weak_field_map_
1070
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, dest_uuid_),
1071
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, tablet_id_),
1072
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, caller_uuid_),
1073
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, caller_term_),
1074
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, preceding_id_),
1075
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, committed_op_id_),
1076
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, ops_),
1077
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, leader_lease_duration_ms_),
1078
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, ht_lease_expiration_),
1079
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, propagated_safe_time_),
1080
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusRequestPB, propagated_hybrid_time_),
1081
  2,
1082
  0,
1083
  1,
1084
  5,
1085
  3,
1086
  4,
1087
  ~0u,
1088
  9,
1089
  6,
1090
  7,
1091
  8,
1092
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, _has_bits_),
1093
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, _internal_metadata_),
1094
  ~0u,  // no _extensions_
1095
  ~0u,  // no _oneof_case_
1096
  ~0u,  // no _weak_field_map_
1097
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, responder_uuid_),
1098
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, responder_term_),
1099
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, status_),
1100
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, error_),
1101
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, num_sst_files_),
1102
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::ConsensusResponsePB, propagated_hybrid_time_),
1103
  0,
1104
  3,
1105
  1,
1106
  2,
1107
  4,
1108
  5,
1109
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusRequestPB, _has_bits_),
1110
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusRequestPB, _internal_metadata_),
1111
  ~0u,  // no _extensions_
1112
  ~0u,  // no _oneof_case_
1113
  ~0u,  // no _weak_field_map_
1114
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusRequestPB, consensus_request_),
1115
  ~0u,
1116
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusResponsePB, _has_bits_),
1117
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusResponsePB, _internal_metadata_),
1118
  ~0u,  // no _extensions_
1119
  ~0u,  // no _oneof_case_
1120
  ~0u,  // no _weak_field_map_
1121
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::MultiRaftConsensusResponsePB, consensus_response_),
1122
  ~0u,
1123
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, _has_bits_),
1124
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, _internal_metadata_),
1125
  ~0u,  // no _extensions_
1126
  ~0u,  // no _oneof_case_
1127
  ~0u,  // no _weak_field_map_
1128
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, op_id_),
1129
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, operation_type_),
1130
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, running_for_micros_),
1131
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, description_),
1132
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::OperationStatusPB, trace_buffer_),
1133
  2,
1134
  4,
1135
  3,
1136
  0,
1137
  1,
1138
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceRequestPB, _has_bits_),
1139
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceRequestPB, _internal_metadata_),
1140
  ~0u,  // no _extensions_
1141
  ~0u,  // no _oneof_case_
1142
  ~0u,  // no _weak_field_map_
1143
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceResponsePB, _has_bits_),
1144
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceResponsePB, _internal_metadata_),
1145
  ~0u,  // no _extensions_
1146
  ~0u,  // no _oneof_case_
1147
  ~0u,  // no _weak_field_map_
1148
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceResponsePB, node_instance_),
1149
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetNodeInstanceResponsePB, registration_),
1150
  0,
1151
  1,
1152
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, _has_bits_),
1153
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, _internal_metadata_),
1154
  ~0u,  // no _extensions_
1155
  ~0u,  // no _oneof_case_
1156
  ~0u,  // no _weak_field_map_
1157
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, dest_uuid_),
1158
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, tablet_id_),
1159
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, committed_index_),
1160
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, originator_uuid_),
1161
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, suppress_vote_request_),
1162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionRequestPB, initial_election_),
1163
  1,
1164
  0,
1165
  3,
1166
  2,
1167
  4,
1168
  5,
1169
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionResponsePB, _has_bits_),
1170
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionResponsePB, _internal_metadata_),
1171
  ~0u,  // no _extensions_
1172
  ~0u,  // no _oneof_case_
1173
  ~0u,  // no _weak_field_map_
1174
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::RunLeaderElectionResponsePB, error_),
1175
  0,
1176
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostRequestPB, _has_bits_),
1177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostRequestPB, _internal_metadata_),
1178
  ~0u,  // no _extensions_
1179
  ~0u,  // no _oneof_case_
1180
  ~0u,  // no _weak_field_map_
1181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostRequestPB, dest_uuid_),
1182
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostRequestPB, tablet_id_),
1183
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostRequestPB, election_lost_by_uuid_),
1184
  0,
1185
  1,
1186
  2,
1187
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostResponsePB, _has_bits_),
1188
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostResponsePB, _internal_metadata_),
1189
  ~0u,  // no _extensions_
1190
  ~0u,  // no _oneof_case_
1191
  ~0u,  // no _weak_field_map_
1192
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderElectionLostResponsePB, error_),
1193
  0,
1194
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, _has_bits_),
1195
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, _internal_metadata_),
1196
  ~0u,  // no _extensions_
1197
  ~0u,  // no _oneof_case_
1198
  ~0u,  // no _weak_field_map_
1199
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, dest_uuid_),
1200
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, tablet_id_),
1201
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, new_leader_uuid_),
1202
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, force_step_down_),
1203
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownRequestPB, disable_graceful_transition_),
1204
  1,
1205
  0,
1206
  2,
1207
  3,
1208
  4,
1209
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownResponsePB, _has_bits_),
1210
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownResponsePB, _internal_metadata_),
1211
  ~0u,  // no _extensions_
1212
  ~0u,  // no _oneof_case_
1213
  ~0u,  // no _weak_field_map_
1214
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownResponsePB, error_),
1215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::LeaderStepDownResponsePB, time_since_election_failure_ms_),
1216
  0,
1217
  1,
1218
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, _has_bits_),
1219
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, _internal_metadata_),
1220
  ~0u,  // no _extensions_
1221
  ~0u,  // no _oneof_case_
1222
  ~0u,  // no _weak_field_map_
1223
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, dest_uuid_),
1224
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, tablet_id_),
1225
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, opid_type_),
1226
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdRequestPB, op_type_),
1227
  1,
1228
  0,
1229
  3,
1230
  2,
1231
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdResponsePB, _has_bits_),
1232
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdResponsePB, _internal_metadata_),
1233
  ~0u,  // no _extensions_
1234
  ~0u,  // no _oneof_case_
1235
  ~0u,  // no _weak_field_map_
1236
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdResponsePB, opid_),
1237
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetLastOpIdResponsePB, error_),
1238
  0,
1239
  1,
1240
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateRequestPB, _has_bits_),
1241
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateRequestPB, _internal_metadata_),
1242
  ~0u,  // no _extensions_
1243
  ~0u,  // no _oneof_case_
1244
  ~0u,  // no _weak_field_map_
1245
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateRequestPB, dest_uuid_),
1246
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateRequestPB, tablet_id_),
1247
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateRequestPB, type_),
1248
  1,
1249
  0,
1250
  2,
1251
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateResponsePB, _has_bits_),
1252
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateResponsePB, _internal_metadata_),
1253
  ~0u,  // no _extensions_
1254
  ~0u,  // no _oneof_case_
1255
  ~0u,  // no _weak_field_map_
1256
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateResponsePB, cstate_),
1257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateResponsePB, error_),
1258
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::GetConsensusStateResponsePB, leader_lease_status_),
1259
  0,
1260
  1,
1261
  2,
1262
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, _has_bits_),
1263
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, _internal_metadata_),
1264
  ~0u,  // no _extensions_
1265
  ~0u,  // no _oneof_case_
1266
  ~0u,  // no _weak_field_map_
1267
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, dest_uuid_),
1268
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, tablet_id_),
1269
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, split_parent_tablet_id_),
1270
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, bootstrap_peer_uuid_),
1271
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, source_private_addr_),
1272
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, source_broadcast_addr_),
1273
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, source_cloud_info_),
1274
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapRequestPB, caller_term_),
1275
  2,
1276
  0,
1277
  3,
1278
  1,
1279
  ~0u,
1280
  ~0u,
1281
  4,
1282
  5,
1283
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapResponsePB, _has_bits_),
1284
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapResponsePB, _internal_metadata_),
1285
  ~0u,  // no _extensions_
1286
  ~0u,  // no _oneof_case_
1287
  ~0u,  // no _weak_field_map_
1288
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::StartRemoteBootstrapResponsePB, error_),
1289
  0,
1290
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, _has_bits_),
1291
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, _internal_metadata_),
1292
  ~0u,  // no _extensions_
1293
  ~0u,  // no _oneof_case_
1294
  ~0u,  // no _weak_field_map_
1295
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, dest_uuid_),
1296
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, tablet_id_),
1297
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, caller_id_),
1298
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigRequestPB, new_config_),
1299
  0,
1300
  1,
1301
  2,
1302
  3,
1303
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigResponsePB, _has_bits_),
1304
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigResponsePB, _internal_metadata_),
1305
  ~0u,  // no _extensions_
1306
  ~0u,  // no _oneof_case_
1307
  ~0u,  // no _weak_field_map_
1308
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::consensus::UnsafeChangeConfigResponsePB, error_),
1309
  0,
1310
};
1311
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1312
  { 0, 8, sizeof(::yb::consensus::ChangeConfigRecordPB)},
1313
  { 11, 22, sizeof(::yb::consensus::ChangeConfigRequestPB)},
1314
  { 28, 35, sizeof(::yb::consensus::ChangeConfigResponsePB)},
1315
  { 37, 43, sizeof(::yb::consensus::HistoryCutoffPB)},
1316
  { 44, 63, sizeof(::yb::consensus::ReplicateMsg)},
1317
  { 77, 83, sizeof(::yb::consensus::NoOpRequestPB)},
1318
  { 84, 90, sizeof(::yb::consensus::NoOpResponsePB)},
1319
  { 91, 98, sizeof(::yb::consensus::PerOpErrorPB)},
1320
  { 100, 110, sizeof(::yb::consensus::ConsensusStatusPB)},
1321
  { 115, 127, sizeof(::yb::consensus::VoteRequestPB)},
1322
  { 134, 149, sizeof(::yb::consensus::VoteResponsePB)},
1323
  { 159, 175, sizeof(::yb::consensus::ConsensusRequestPB)},
1324
  { 186, 197, sizeof(::yb::consensus::ConsensusResponsePB)},
1325
  { 203, 209, sizeof(::yb::consensus::MultiRaftConsensusRequestPB)},
1326
  { 210, 216, sizeof(::yb::consensus::MultiRaftConsensusResponsePB)},
1327
  { 217, 227, sizeof(::yb::consensus::OperationStatusPB)},
1328
  { 232, 237, sizeof(::yb::consensus::GetNodeInstanceRequestPB)},
1329
  { 237, 244, sizeof(::yb::consensus::GetNodeInstanceResponsePB)},
1330
  { 246, 257, sizeof(::yb::consensus::RunLeaderElectionRequestPB)},
1331
  { 263, 269, sizeof(::yb::consensus::RunLeaderElectionResponsePB)},
1332
  { 270, 278, sizeof(::yb::consensus::LeaderElectionLostRequestPB)},
1333
  { 281, 287, sizeof(::yb::consensus::LeaderElectionLostResponsePB)},
1334
  { 288, 298, sizeof(::yb::consensus::LeaderStepDownRequestPB)},
1335
  { 303, 310, sizeof(::yb::consensus::LeaderStepDownResponsePB)},
1336
  { 312, 321, sizeof(::yb::consensus::GetLastOpIdRequestPB)},
1337
  { 325, 332, sizeof(::yb::consensus::GetLastOpIdResponsePB)},
1338
  { 334, 342, sizeof(::yb::consensus::GetConsensusStateRequestPB)},
1339
  { 345, 353, sizeof(::yb::consensus::GetConsensusStateResponsePB)},
1340
  { 356, 369, sizeof(::yb::consensus::StartRemoteBootstrapRequestPB)},
1341
  { 377, 383, sizeof(::yb::consensus::StartRemoteBootstrapResponsePB)},
1342
  { 384, 393, sizeof(::yb::consensus::UnsafeChangeConfigRequestPB)},
1343
  { 397, 403, sizeof(::yb::consensus::UnsafeChangeConfigResponsePB)},
1344
};
1345
1346
static ::google::protobuf::Message const * const file_default_instances[] = {
1347
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ChangeConfigRecordPB_default_instance_),
1348
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ChangeConfigRequestPB_default_instance_),
1349
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ChangeConfigResponsePB_default_instance_),
1350
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_HistoryCutoffPB_default_instance_),
1351
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ReplicateMsg_default_instance_),
1352
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_NoOpRequestPB_default_instance_),
1353
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_NoOpResponsePB_default_instance_),
1354
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_PerOpErrorPB_default_instance_),
1355
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ConsensusStatusPB_default_instance_),
1356
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_VoteRequestPB_default_instance_),
1357
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_VoteResponsePB_default_instance_),
1358
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ConsensusRequestPB_default_instance_),
1359
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_ConsensusResponsePB_default_instance_),
1360
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_MultiRaftConsensusRequestPB_default_instance_),
1361
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_MultiRaftConsensusResponsePB_default_instance_),
1362
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_OperationStatusPB_default_instance_),
1363
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetNodeInstanceRequestPB_default_instance_),
1364
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetNodeInstanceResponsePB_default_instance_),
1365
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_RunLeaderElectionRequestPB_default_instance_),
1366
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_RunLeaderElectionResponsePB_default_instance_),
1367
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_LeaderElectionLostRequestPB_default_instance_),
1368
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_LeaderElectionLostResponsePB_default_instance_),
1369
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_LeaderStepDownRequestPB_default_instance_),
1370
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_LeaderStepDownResponsePB_default_instance_),
1371
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetLastOpIdRequestPB_default_instance_),
1372
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetLastOpIdResponsePB_default_instance_),
1373
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetConsensusStateRequestPB_default_instance_),
1374
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_GetConsensusStateResponsePB_default_instance_),
1375
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_StartRemoteBootstrapRequestPB_default_instance_),
1376
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_StartRemoteBootstrapResponsePB_default_instance_),
1377
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_UnsafeChangeConfigRequestPB_default_instance_),
1378
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::consensus::_UnsafeChangeConfigResponsePB_default_instance_),
1379
};
1380
1381
14.3k
void protobuf_AssignDescriptors() {
1382
14.3k
  AddDescriptors();
1383
14.3k
  ::google::protobuf::MessageFactory* factory = NULL;
1384
14.3k
  AssignDescriptors(
1385
14.3k
      "yb/consensus/consensus.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1386
14.3k
      file_level_metadata, file_level_enum_descriptors, NULL);
1387
14.3k
}
1388
1389
67.8M
void protobuf_AssignDescriptorsOnce() {
1390
67.8M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1391
67.8M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1392
67.8M
}
1393
1394
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
1395
0
void protobuf_RegisterTypes(const ::std::string&) {
1396
0
  protobuf_AssignDescriptorsOnce();
1397
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 32);
1398
0
}
1399
1400
26.8k
void AddDescriptorsImpl() {
1401
26.8k
  InitDefaults();
1402
26.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1403
26.8k
      "\n\034yb/consensus/consensus.proto\022\014yb.conse"
1404
26.8k
      "nsus\032\032yb/common/common_net.proto\032\035yb/com"
1405
26.8k
      "mon/wire_protocol.proto\032\"yb/consensus/co"
1406
26.8k
      "nsensus_types.proto\032\033yb/consensus/metada"
1407
26.8k
      "ta.proto\032\032yb/tablet/operations.proto\032\027yb"
1408
26.8k
      "/tserver/backup.proto\032\036yb/tserver/tserve"
1409
26.8k
      "r_types.proto\032\022yb/util/opid.proto\"\211\001\n\024Ch"
1410
26.8k
      "angeConfigRecordPB\022\021\n\ttablet_id\030\001 \002(\014\022.\n"
1411
26.8k
      "\nold_config\030\002 \002(\0132\032.yb.consensus.RaftCon"
1412
26.8k
      "figPB\022.\n\nnew_config\030\003 \002(\0132\032.yb.consensus"
1413
26.8k
      ".RaftConfigPB\"\315\001\n\025ChangeConfigRequestPB\022"
1414
26.8k
      "\021\n\tdest_uuid\030\004 \001(\014\022\021\n\ttablet_id\030\001 \002(\014\022,\n"
1415
26.8k
      "\004type\030\002 \001(\0162\036.yb.consensus.ChangeConfigT"
1416
26.8k
      "ype\022(\n\006server\030\003 \001(\0132\030.yb.consensus.RaftP"
1417
26.8k
      "eerPB\022\035\n\025cas_config_opid_index\030\005 \001(\003\022\027\n\010"
1418
26.8k
      "use_host\030\006 \001(\010:\005false\"]\n\026ChangeConfigRes"
1419
26.8k
      "ponsePB\022.\n\005error\030\001 \001(\0132\037.yb.tserver.Tabl"
1420
26.8k
      "etServerErrorPB\022\023\n\013hybrid_time\030\002 \001(\006\")\n\017"
1421
26.8k
      "HistoryCutoffPB\022\026\n\016history_cutoff\030\001 \001(\006\""
1422
26.8k
      "\232\005\n\014ReplicateMsg\022\026\n\002id\030\001 \002(\0132\n.yb.OpIdPB"
1423
26.8k
      "\022\023\n\013hybrid_time\030\002 \002(\006\022\031\n\021monotonic_count"
1424
26.8k
      "er\030\t \001(\003\022,\n\007op_type\030\004 \002(\0162\033.yb.consensus"
1425
26.8k
      ".OperationType\022!\n\005write\030\005 \001(\0132\022.yb.table"
1426
26.8k
      "t.WritePB\022C\n\027change_metadata_request\030\006 \001"
1427
26.8k
      "(\0132\".yb.tablet.ChangeMetadataRequestPB\0228"
1428
26.8k
      "\n\021transaction_state\030\n \001(\0132\035.yb.tablet.Tr"
1429
26.8k
      "ansactionStatePB\022\?\n\020snapshot_request\030\013 \001"
1430
26.8k
      "(\0132%.yb.tserver.TabletSnapshotOpRequestP"
1431
26.8k
      "B\022\'\n\010truncate\030\014 \001(\0132\025.yb.tablet.Truncate"
1432
26.8k
      "PB\0226\n\rsplit_request\030\016 \001(\0132\037.yb.tablet.Sp"
1433
26.8k
      "litTabletRequestPB\022@\n\024change_config_reco"
1434
26.8k
      "rd\030\007 \001(\0132\".yb.consensus.ChangeConfigReco"
1435
26.8k
      "rdPB\0225\n\016history_cutoff\030\r \001(\0132\035.yb.consen"
1436
26.8k
      "sus.HistoryCutoffPB\022#\n\017committed_op_id\030\010"
1437
26.8k
      " \001(\0132\n.yb.OpIdPB\0222\n\014noop_request\030\347\007 \001(\0132"
1438
26.8k
      "\033.yb.consensus.NoOpRequestPB\"*\n\rNoOpRequ"
1439
26.8k
      "estPB\022\031\n\021payload_for_tests\030\001 \001(\014\"+\n\016NoOp"
1440
26.8k
      "ResponsePB\022\031\n\021payload_for_tests\030\001 \001(\014\"G\n"
1441
26.8k
      "\014PerOpErrorPB\022\026\n\002id\030\001 \002(\0132\n.yb.OpIdPB\022\037\n"
1442
26.8k
      "\006status\030\002 \002(\0132\017.yb.AppStatusPB\"\325\001\n\021Conse"
1443
26.8k
      "nsusStatusPB\022!\n\rlast_received\030\001 \002(\0132\n.yb"
1444
26.8k
      ".OpIdPB\0220\n\034last_received_current_leader\030"
1445
26.8k
      "\004 \001(\0132\n.yb.OpIdPB\022\032\n\022last_committed_idx\030"
1446
26.8k
      "\002 \001(\003\022 \n\014last_applied\030\005 \001(\0132\n.yb.OpIdPB\022"
1447
26.8k
      "-\n\005error\030\003 \001(\0132\036.yb.consensus.ConsensusE"
1448
26.8k
      "rrorPB\"\330\001\n\rVoteRequestPB\022\021\n\tdest_uuid\030\006 "
1449
26.8k
      "\001(\014\022\021\n\ttablet_id\030\001 \002(\t\022\026\n\016candidate_uuid"
1450
26.8k
      "\030\002 \002(\014\022\026\n\016candidate_term\030\003 \002(\003\0229\n\020candid"
1451
26.8k
      "ate_status\030\004 \002(\0132\037.yb.consensus.Consensu"
1452
26.8k
      "sStatusPB\022!\n\022ignore_live_leader\030\005 \001(\010:\005f"
1453
26.8k
      "alse\022\023\n\013preelection\030\007 \001(\010\"\337\002\n\016VoteRespon"
1454
26.8k
      "sePB\022\026\n\016responder_uuid\030\001 \001(\014\022\026\n\016responde"
1455
26.8k
      "r_term\030\002 \001(\003\022\024\n\014vote_granted\030\003 \001(\010\022*\n\"re"
1456
26.8k
      "maining_leader_lease_duration_ms\030\004 \001(\005\022\031"
1457
26.8k
      "\n\021leader_lease_uuid\030\007 \001(\014\022\"\n\032leader_ht_l"
1458
26.8k
      "ease_expiration\030\005 \001(\006\022\034\n\024leader_ht_lease"
1459
26.8k
      "_uuid\030\010 \001(\014\022\023\n\013preelection\030\006 \001(\010\0228\n\017cons"
1460
26.8k
      "ensus_error\030\346\007 \001(\0132\036.yb.consensus.Consen"
1461
26.8k
      "susErrorPB\022/\n\005error\030\347\007 \001(\0132\037.yb.tserver."
1462
26.8k
      "TabletServerErrorPB\"\321\002\n\022ConsensusRequest"
1463
26.8k
      "PB\022\021\n\tdest_uuid\030\007 \001(\014\022\021\n\ttablet_id\030\001 \002(\t"
1464
26.8k
      "\022\023\n\013caller_uuid\030\002 \002(\014\022\023\n\013caller_term\030\003 \002"
1465
26.8k
      "(\003\022 \n\014preceding_id\030\004 \001(\0132\n.yb.OpIdPB\022#\n\017"
1466
26.8k
      "committed_op_id\030\005 \002(\0132\n.yb.OpIdPB\022\'\n\003ops"
1467
26.8k
      "\030\006 \003(\0132\032.yb.consensus.ReplicateMsg\022 \n\030le"
1468
26.8k
      "ader_lease_duration_ms\030\010 \001(\005\022\033\n\023ht_lease"
1469
26.8k
      "_expiration\030\t \001(\006\022\034\n\024propagated_safe_tim"
1470
26.8k
      "e\030\n \001(\006\022\036\n\026propagated_hybrid_time\030\013 \001(\006\""
1471
26.8k
      "\336\001\n\023ConsensusResponsePB\022\026\n\016responder_uui"
1472
26.8k
      "d\030\001 \001(\014\022\026\n\016responder_term\030\002 \001(\003\022/\n\006statu"
1473
26.8k
      "s\030\003 \001(\0132\037.yb.consensus.ConsensusStatusPB"
1474
26.8k
      "\022/\n\005error\030\347\007 \001(\0132\037.yb.tserver.TabletServ"
1475
26.8k
      "erErrorPB\022\025\n\rnum_sst_files\030\005 \001(\003\022\036\n\026prop"
1476
26.8k
      "agated_hybrid_time\030\006 \001(\006\"Z\n\033MultiRaftCon"
1477
26.8k
      "sensusRequestPB\022;\n\021consensus_request\030\001 \003"
1478
26.8k
      "(\0132 .yb.consensus.ConsensusRequestPB\"]\n\034"
1479
26.8k
      "MultiRaftConsensusResponsePB\022=\n\022consensu"
1480
26.8k
      "s_response\030\001 \003(\0132!.yb.consensus.Consensu"
1481
26.8k
      "sResponsePB\"\252\001\n\021OperationStatusPB\022\031\n\005op_"
1482
26.8k
      "id\030\001 \002(\0132\n.yb.OpIdPB\0223\n\016operation_type\030\002"
1483
26.8k
      " \002(\0162\033.yb.consensus.OperationType\022\032\n\022run"
1484
26.8k
      "ning_for_micros\030\003 \002(\003\022\023\n\013description\030\004 \002"
1485
26.8k
      "(\t\022\024\n\014trace_buffer\030\006 \001(\t\"\032\n\030GetNodeInsta"
1486
26.8k
      "nceRequestPB\"v\n\031GetNodeInstanceResponseP"
1487
26.8k
      "B\022)\n\rnode_instance\030\001 \001(\0132\022.yb.NodeInstan"
1488
26.8k
      "cePB\022.\n\014registration\030\002 \001(\0132\030.yb.ServerRe"
1489
26.8k
      "gistrationPB\"\271\001\n\032RunLeaderElectionReques"
1490
26.8k
      "tPB\022\021\n\tdest_uuid\030\002 \001(\014\022\021\n\ttablet_id\030\001 \002("
1491
26.8k
      "\014\022#\n\017committed_index\030\003 \001(\0132\n.yb.OpIdPB\022\027"
1492
26.8k
      "\n\017originator_uuid\030\004 \001(\014\022\035\n\025suppress_vote"
1493
26.8k
      "_request\030\005 \001(\010\022\030\n\020initial_election\030\006 \001(\010"
1494
26.8k
      "\"M\n\033RunLeaderElectionResponsePB\022.\n\005error"
1495
26.8k
      "\030\001 \001(\0132\037.yb.tserver.TabletServerErrorPB\""
1496
26.8k
      "b\n\033LeaderElectionLostRequestPB\022\021\n\tdest_u"
1497
26.8k
      "uid\030\001 \001(\014\022\021\n\ttablet_id\030\002 \001(\014\022\035\n\025election"
1498
26.8k
      "_lost_by_uuid\030\003 \001(\014\"N\n\034LeaderElectionLos"
1499
26.8k
      "tResponsePB\022.\n\005error\030\001 \001(\0132\037.yb.tserver."
1500
26.8k
      "TabletServerErrorPB\"\226\001\n\027LeaderStepDownRe"
1501
26.8k
      "questPB\022\021\n\tdest_uuid\030\002 \001(\014\022\021\n\ttablet_id\030"
1502
26.8k
      "\001 \002(\014\022\027\n\017new_leader_uuid\030\003 \001(\014\022\027\n\017force_"
1503
26.8k
      "step_down\030\004 \001(\010\022#\n\033disable_graceful_tran"
1504
26.8k
      "sition\030\005 \001(\010\"r\n\030LeaderStepDownResponsePB"
1505
26.8k
      "\022.\n\005error\030\001 \001(\0132\037.yb.tserver.TabletServe"
1506
26.8k
      "rErrorPB\022&\n\036time_since_election_failure_"
1507
26.8k
      "ms\030\002 \001(\003\"\244\001\n\024GetLastOpIdRequestPB\022\021\n\tdes"
1508
26.8k
      "t_uuid\030\002 \001(\014\022\021\n\ttablet_id\030\001 \002(\014\0228\n\topid_"
1509
26.8k
      "type\030\003 \001(\0162\026.yb.consensus.OpIdType:\rRECE"
1510
26.8k
      "IVED_OPID\022,\n\007op_type\030\004 \001(\0162\033.yb.consensu"
1511
26.8k
      "s.OperationType\"a\n\025GetLastOpIdResponsePB"
1512
26.8k
      "\022\030\n\004opid\030\001 \001(\0132\n.yb.OpIdPB\022.\n\005error\030\002 \001("
1513
26.8k
      "\0132\037.yb.tserver.TabletServerErrorPB\"\217\001\n\032G"
1514
26.8k
      "etConsensusStateRequestPB\022\021\n\tdest_uuid\030\002"
1515
26.8k
      " \001(\014\022\021\n\ttablet_id\030\001 \002(\014\022K\n\004type\030\003 \001(\0162!."
1516
26.8k
      "yb.consensus.ConsensusConfigType:\032CONSEN"
1517
26.8k
      "SUS_CONFIG_COMMITTED\"\273\001\n\033GetConsensusSta"
1518
26.8k
      "teResponsePB\022.\n\006cstate\030\001 \001(\0132\036.yb.consen"
1519
26.8k
      "sus.ConsensusStatePB\022.\n\005error\030\002 \001(\0132\037.yb"
1520
26.8k
      ".tserver.TabletServerErrorPB\022<\n\023leader_l"
1521
26.8k
      "ease_status\030\003 \001(\0162\037.yb.consensus.LeaderL"
1522
26.8k
      "easeStatus\"\243\002\n\035StartRemoteBootstrapReque"
1523
26.8k
      "stPB\022\021\n\tdest_uuid\030\005 \001(\014\022\021\n\ttablet_id\030\001 \002"
1524
26.8k
      "(\014\022\036\n\026split_parent_tablet_id\030\010 \001(\014\022\033\n\023bo"
1525
26.8k
      "otstrap_peer_uuid\030\002 \002(\014\022+\n\023source_privat"
1526
26.8k
      "e_addr\030\003 \003(\0132\016.yb.HostPortPB\022-\n\025source_b"
1527
26.8k
      "roadcast_addr\030\006 \003(\0132\016.yb.HostPortPB\022*\n\021s"
1528
26.8k
      "ource_cloud_info\030\007 \001(\0132\017.yb.CloudInfoPB\022"
1529
26.8k
      "\027\n\013caller_term\030\004 \001(\003:\002-1\"P\n\036StartRemoteB"
1530
26.8k
      "ootstrapResponsePB\022.\n\005error\030\001 \001(\0132\037.yb.t"
1531
26.8k
      "server.TabletServerErrorPB\"\206\001\n\033UnsafeCha"
1532
26.8k
      "ngeConfigRequestPB\022\021\n\tdest_uuid\030\001 \001(\014\022\021\n"
1533
26.8k
      "\ttablet_id\030\002 \002(\014\022\021\n\tcaller_id\030\003 \002(\014\022.\n\nn"
1534
26.8k
      "ew_config\030\004 \002(\0132\032.yb.consensus.RaftConfi"
1535
26.8k
      "gPB\"N\n\034UnsafeChangeConfigResponsePB\022.\n\005e"
1536
26.8k
      "rror\030\001 \001(\0132\037.yb.tserver.TabletServerErro"
1537
26.8k
      "rPB*9\n\nDriverType\022\022\n\016UNKNOWN_DRIVER\020\000\022\n\n"
1538
26.8k
      "\006LEADER\020\001\022\013\n\007REPLICA\020\0022\311\t\n\020ConsensusServ"
1539
26.8k
      "ice\022V\n\017UpdateConsensus\022 .yb.consensus.Co"
1540
26.8k
      "nsensusRequestPB\032!.yb.consensus.Consensu"
1541
26.8k
      "sResponsePB\022q\n\030MultiRaftUpdateConsensus\022"
1542
26.8k
      ").yb.consensus.MultiRaftConsensusRequest"
1543
26.8k
      "PB\032*.yb.consensus.MultiRaftConsensusResp"
1544
26.8k
      "onsePB\022Q\n\024RequestConsensusVote\022\033.yb.cons"
1545
26.8k
      "ensus.VoteRequestPB\032\034.yb.consensus.VoteR"
1546
26.8k
      "esponsePB\022Y\n\014ChangeConfig\022#.yb.consensus"
1547
26.8k
      ".ChangeConfigRequestPB\032$.yb.consensus.Ch"
1548
26.8k
      "angeConfigResponsePB\022k\n\022UnsafeChangeConf"
1549
26.8k
      "ig\022).yb.consensus.UnsafeChangeConfigRequ"
1550
26.8k
      "estPB\032*.yb.consensus.UnsafeChangeConfigR"
1551
26.8k
      "esponsePB\022b\n\017GetNodeInstance\022&.yb.consen"
1552
26.8k
      "sus.GetNodeInstanceRequestPB\032\'.yb.consen"
1553
26.8k
      "sus.GetNodeInstanceResponsePB\022h\n\021RunLead"
1554
26.8k
      "erElection\022(.yb.consensus.RunLeaderElect"
1555
26.8k
      "ionRequestPB\032).yb.consensus.RunLeaderEle"
1556
26.8k
      "ctionResponsePB\022k\n\022LeaderElectionLost\022)."
1557
26.8k
      "yb.consensus.LeaderElectionLostRequestPB"
1558
26.8k
      "\032*.yb.consensus.LeaderElectionLostRespon"
1559
26.8k
      "sePB\022_\n\016LeaderStepDown\022%.yb.consensus.Le"
1560
26.8k
      "aderStepDownRequestPB\032&.yb.consensus.Lea"
1561
26.8k
      "derStepDownResponsePB\022V\n\013GetLastOpId\022\".y"
1562
26.8k
      "b.consensus.GetLastOpIdRequestPB\032#.yb.co"
1563
26.8k
      "nsensus.GetLastOpIdResponsePB\022h\n\021GetCons"
1564
26.8k
      "ensusState\022(.yb.consensus.GetConsensusSt"
1565
26.8k
      "ateRequestPB\032).yb.consensus.GetConsensus"
1566
26.8k
      "StateResponsePB\022q\n\024StartRemoteBootstrap\022"
1567
26.8k
      "+.yb.consensus.StartRemoteBootstrapReque"
1568
26.8k
      "stPB\032,.yb.consensus.StartRemoteBootstrap"
1569
26.8k
      "ResponsePBB\022\n\020org.yb.consensus"
1570
26.8k
  };
1571
26.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1572
26.8k
      descriptor, 6670);
1573
26.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1574
26.8k
    "yb/consensus/consensus.proto", &protobuf_RegisterTypes);
1575
26.8k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
1576
26.8k
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors();
1577
26.8k
  ::protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto::AddDescriptors();
1578
26.8k
  ::protobuf_yb_2fconsensus_2fmetadata_2eproto::AddDescriptors();
1579
26.8k
  ::protobuf_yb_2ftablet_2foperations_2eproto::AddDescriptors();
1580
26.8k
  ::protobuf_yb_2ftserver_2fbackup_2eproto::AddDescriptors();
1581
26.8k
  ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::AddDescriptors();
1582
26.8k
  ::protobuf_yb_2futil_2fopid_2eproto::AddDescriptors();
1583
26.8k
}
1584
1585
57.8k
void AddDescriptors() {
1586
57.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1587
57.8k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1588
57.8k
}
1589
// Force AddDescriptors() to be called at dynamic initialization time.
1590
struct StaticDescriptorInitializer {
1591
26.8k
  StaticDescriptorInitializer() {
1592
26.8k
    AddDescriptors();
1593
26.8k
  }
1594
} static_descriptor_initializer;
1595
}  // namespace protobuf_yb_2fconsensus_2fconsensus_2eproto
1596
namespace yb {
1597
namespace consensus {
1598
0
const ::google::protobuf::EnumDescriptor* DriverType_descriptor() {
1599
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
1600
0
  return protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_enum_descriptors[0];
1601
0
}
1602
0
bool DriverType_IsValid(int value) {
1603
0
  switch (value) {
1604
0
    case 0:
1605
0
    case 1:
1606
0
    case 2:
1607
0
      return true;
1608
0
    default:
1609
0
      return false;
1610
0
  }
1611
0
}
1612
1613
1614
// ===================================================================
1615
1616
26.8k
void ChangeConfigRecordPB::InitAsDefaultInstance() {
1617
26.8k
  ::yb::consensus::_ChangeConfigRecordPB_default_instance_._instance.get_mutable()->old_config_ = const_cast< ::yb::consensus::RaftConfigPB*>(
1618
26.8k
      ::yb::consensus::RaftConfigPB::internal_default_instance());
1619
26.8k
  ::yb::consensus::_ChangeConfigRecordPB_default_instance_._instance.get_mutable()->new_config_ = const_cast< ::yb::consensus::RaftConfigPB*>(
1620
26.8k
      ::yb::consensus::RaftConfigPB::internal_default_instance());
1621
26.8k
}
1622
0
void ChangeConfigRecordPB::clear_old_config() {
1623
0
  if (old_config_ != NULL) old_config_->Clear();
1624
0
  clear_has_old_config();
1625
0
}
1626
0
void ChangeConfigRecordPB::clear_new_config() {
1627
0
  if (new_config_ != NULL) new_config_->Clear();
1628
0
  clear_has_new_config();
1629
0
}
1630
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1631
const int ChangeConfigRecordPB::kTabletIdFieldNumber;
1632
const int ChangeConfigRecordPB::kOldConfigFieldNumber;
1633
const int ChangeConfigRecordPB::kNewConfigFieldNumber;
1634
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1635
1636
ChangeConfigRecordPB::ChangeConfigRecordPB()
1637
663k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1638
663k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1639
636k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigRecordPB();
1640
636k
  }
1641
663k
  SharedCtor();
1642
  // @@protoc_insertion_point(constructor:yb.consensus.ChangeConfigRecordPB)
1643
663k
}
1644
ChangeConfigRecordPB::ChangeConfigRecordPB(const ChangeConfigRecordPB& from)
1645
  : ::google::protobuf::Message(),
1646
      _internal_metadata_(NULL),
1647
      _has_bits_(from._has_bits_),
1648
39.7k
      _cached_size_(0) {
1649
39.7k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1650
39.7k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1651
39.7k
  if (
from.has_tablet_id()39.7k
) {
1652
39.7k
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1653
39.7k
  }
1654
39.7k
  if (from.has_old_config()) {
1655
39.7k
    old_config_ = new ::yb::consensus::RaftConfigPB(*from.old_config_);
1656
39.7k
  } else {
1657
3
    old_config_ = NULL;
1658
3
  }
1659
39.7k
  if (
from.has_new_config()39.7k
) {
1660
39.7k
    new_config_ = new ::yb::consensus::RaftConfigPB(*from.new_config_);
1661
18.4E
  } else {
1662
18.4E
    new_config_ = NULL;
1663
18.4E
  }
1664
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ChangeConfigRecordPB)
1665
39.7k
}
1666
1667
663k
void ChangeConfigRecordPB::SharedCtor() {
1668
663k
  _cached_size_ = 0;
1669
663k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1670
663k
  ::memset(&old_config_, 0, static_cast<size_t>(
1671
663k
      reinterpret_cast<char*>(&new_config_) -
1672
663k
      reinterpret_cast<char*>(&old_config_)) + sizeof(new_config_));
1673
663k
}
1674
1675
676k
ChangeConfigRecordPB::~ChangeConfigRecordPB() {
1676
  // @@protoc_insertion_point(destructor:yb.consensus.ChangeConfigRecordPB)
1677
676k
  SharedDtor();
1678
676k
}
1679
1680
676k
void ChangeConfigRecordPB::SharedDtor() {
1681
676k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1682
676k
  if (this != internal_default_instance()) 
delete old_config_676k
;
1683
676k
  if (this != internal_default_instance()) 
delete new_config_676k
;
1684
676k
}
1685
1686
0
void ChangeConfigRecordPB::SetCachedSize(int size) const {
1687
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1688
0
  _cached_size_ = size;
1689
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1690
0
}
1691
0
const ::google::protobuf::Descriptor* ChangeConfigRecordPB::descriptor() {
1692
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
1693
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1694
0
}
1695
1696
0
const ChangeConfigRecordPB& ChangeConfigRecordPB::default_instance() {
1697
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigRecordPB();
1698
0
  return *internal_default_instance();
1699
0
}
1700
1701
0
ChangeConfigRecordPB* ChangeConfigRecordPB::New(::google::protobuf::Arena* arena) const {
1702
0
  ChangeConfigRecordPB* n = new ChangeConfigRecordPB;
1703
0
  if (arena != NULL) {
1704
0
    arena->Own(n);
1705
0
  }
1706
0
  return n;
1707
0
}
1708
1709
1
void ChangeConfigRecordPB::Clear() {
1710
// @@protoc_insertion_point(message_clear_start:yb.consensus.ChangeConfigRecordPB)
1711
1
  ::google::protobuf::uint32 cached_has_bits = 0;
1712
  // Prevent compiler warnings about cached_has_bits being unused
1713
1
  (void) cached_has_bits;
1714
1715
1
  cached_has_bits = _has_bits_[0];
1716
1
  if (cached_has_bits & 7u) {
1717
1
    if (cached_has_bits & 0x00000001u) {
1718
1
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1719
1
      (*tablet_id_.UnsafeRawStringPointer())->clear();
1720
1
    }
1721
1
    if (cached_has_bits & 0x00000002u) {
1722
1
      GOOGLE_DCHECK(old_config_ != NULL);
1723
1
      old_config_->Clear();
1724
1
    }
1725
1
    if (cached_has_bits & 0x00000004u) {
1726
1
      GOOGLE_DCHECK(new_config_ != NULL);
1727
1
      new_config_->Clear();
1728
1
    }
1729
1
  }
1730
1
  _has_bits_.Clear();
1731
1
  _internal_metadata_.Clear();
1732
1
}
1733
1734
bool ChangeConfigRecordPB::MergePartialFromCodedStream(
1735
28.4k
    ::google::protobuf::io::CodedInputStream* input) {
1736
85.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1737
28.4k
  ::google::protobuf::uint32 tag;
1738
  // @@protoc_insertion_point(parse_start:yb.consensus.ChangeConfigRecordPB)
1739
113k
  for (;;) {
1740
113k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1741
113k
    tag = p.first;
1742
113k
    if (!p.second) 
goto handle_unusual28.4k
;
1743
85.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1744
      // required bytes tablet_id = 1;
1745
28.4k
      case 1: {
1746
28.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1747
28.4k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1748
28.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1749
28.4k
                input, this->mutable_tablet_id()));
1750
18.4E
        } else {
1751
18.4E
          goto handle_unusual;
1752
18.4E
        }
1753
28.4k
        break;
1754
28.4k
      }
1755
1756
      // required .yb.consensus.RaftConfigPB old_config = 2;
1757
28.4k
      case 2: {
1758
28.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1759
28.4k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1760
28.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1761
28.4k
               input, mutable_old_config()));
1762
28.4k
        } else {
1763
1
          goto handle_unusual;
1764
1
        }
1765
28.4k
        break;
1766
28.4k
      }
1767
1768
      // required .yb.consensus.RaftConfigPB new_config = 3;
1769
28.4k
      case 3: {
1770
28.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1771
28.4k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1772
28.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1773
28.4k
               input, mutable_new_config()));
1774
28.4k
        } else {
1775
0
          goto handle_unusual;
1776
0
        }
1777
28.4k
        break;
1778
28.4k
      }
1779
1780
28.4k
      default: {
1781
28.4k
      handle_unusual:
1782
28.4k
        if (tag == 0) {
1783
28.4k
          goto success;
1784
28.4k
        }
1785
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1786
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1787
0
        break;
1788
0
      }
1789
85.4k
    }
1790
85.4k
  }
1791
28.4k
success:
1792
  // @@protoc_insertion_point(parse_success:yb.consensus.ChangeConfigRecordPB)
1793
28.4k
  return true;
1794
0
failure:
1795
  // @@protoc_insertion_point(parse_failure:yb.consensus.ChangeConfigRecordPB)
1796
0
  return false;
1797
28.4k
#undef DO_
1798
28.4k
}
1799
1800
void ChangeConfigRecordPB::SerializeWithCachedSizes(
1801
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1802
  // @@protoc_insertion_point(serialize_start:yb.consensus.ChangeConfigRecordPB)
1803
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1804
0
  (void) cached_has_bits;
1805
1806
0
  cached_has_bits = _has_bits_[0];
1807
  // required bytes tablet_id = 1;
1808
0
  if (cached_has_bits & 0x00000001u) {
1809
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1810
0
      1, this->tablet_id(), output);
1811
0
  }
1812
1813
  // required .yb.consensus.RaftConfigPB old_config = 2;
1814
0
  if (cached_has_bits & 0x00000002u) {
1815
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1816
0
      2, *this->old_config_, output);
1817
0
  }
1818
1819
  // required .yb.consensus.RaftConfigPB new_config = 3;
1820
0
  if (cached_has_bits & 0x00000004u) {
1821
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1822
0
      3, *this->new_config_, output);
1823
0
  }
1824
1825
0
  if (_internal_metadata_.have_unknown_fields()) {
1826
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1827
0
        _internal_metadata_.unknown_fields(), output);
1828
0
  }
1829
  // @@protoc_insertion_point(serialize_end:yb.consensus.ChangeConfigRecordPB)
1830
0
}
1831
1832
::google::protobuf::uint8* ChangeConfigRecordPB::InternalSerializeWithCachedSizesToArray(
1833
33.5k
    bool deterministic, ::google::protobuf::uint8* target) const {
1834
33.5k
  (void)deterministic; // Unused
1835
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ChangeConfigRecordPB)
1836
33.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
1837
33.5k
  (void) cached_has_bits;
1838
1839
33.5k
  cached_has_bits = _has_bits_[0];
1840
  // required bytes tablet_id = 1;
1841
33.5k
  if (
cached_has_bits & 0x00000001u33.5k
) {
1842
33.5k
    target =
1843
33.5k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1844
33.5k
        1, this->tablet_id(), target);
1845
33.5k
  }
1846
1847
  // required .yb.consensus.RaftConfigPB old_config = 2;
1848
33.5k
  if (cached_has_bits & 0x00000002u) {
1849
33.5k
    target = ::google::protobuf::internal::WireFormatLite::
1850
33.5k
      InternalWriteMessageToArray(
1851
33.5k
        2, *this->old_config_, deterministic, target);
1852
33.5k
  }
1853
1854
  // required .yb.consensus.RaftConfigPB new_config = 3;
1855
33.5k
  if (
cached_has_bits & 0x00000004u33.5k
) {
1856
33.5k
    target = ::google::protobuf::internal::WireFormatLite::
1857
33.5k
      InternalWriteMessageToArray(
1858
33.5k
        3, *this->new_config_, deterministic, target);
1859
33.5k
  }
1860
1861
33.5k
  if (_internal_metadata_.have_unknown_fields()) {
1862
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1863
0
        _internal_metadata_.unknown_fields(), target);
1864
0
  }
1865
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ChangeConfigRecordPB)
1866
33.5k
  return target;
1867
33.5k
}
1868
1869
0
size_t ChangeConfigRecordPB::RequiredFieldsByteSizeFallback() const {
1870
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.ChangeConfigRecordPB)
1871
0
  size_t total_size = 0;
1872
1873
0
  if (has_tablet_id()) {
1874
    // required bytes tablet_id = 1;
1875
0
    total_size += 1 +
1876
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1877
0
        this->tablet_id());
1878
0
  }
1879
1880
0
  if (has_old_config()) {
1881
    // required .yb.consensus.RaftConfigPB old_config = 2;
1882
0
    total_size += 1 +
1883
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1884
0
        *this->old_config_);
1885
0
  }
1886
1887
0
  if (has_new_config()) {
1888
    // required .yb.consensus.RaftConfigPB new_config = 3;
1889
0
    total_size += 1 +
1890
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1891
0
        *this->new_config_);
1892
0
  }
1893
1894
0
  return total_size;
1895
0
}
1896
81.0k
size_t ChangeConfigRecordPB::ByteSizeLong() const {
1897
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ChangeConfigRecordPB)
1898
81.0k
  size_t total_size = 0;
1899
1900
81.0k
  if (_internal_metadata_.have_unknown_fields()) {
1901
0
    total_size +=
1902
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1903
0
        _internal_metadata_.unknown_fields());
1904
0
  }
1905
81.0k
  if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) {  // All required fields are present.
1906
    // required bytes tablet_id = 1;
1907
81.0k
    total_size += 1 +
1908
81.0k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1909
81.0k
        this->tablet_id());
1910
1911
    // required .yb.consensus.RaftConfigPB old_config = 2;
1912
81.0k
    total_size += 1 +
1913
81.0k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1914
81.0k
        *this->old_config_);
1915
1916
    // required .yb.consensus.RaftConfigPB new_config = 3;
1917
81.0k
    total_size += 1 +
1918
81.0k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1919
81.0k
        *this->new_config_);
1920
1921
81.0k
  } else {
1922
14
    total_size += RequiredFieldsByteSizeFallback();
1923
14
  }
1924
81.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1925
81.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1926
81.0k
  _cached_size_ = cached_size;
1927
81.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1928
81.0k
  return total_size;
1929
81.0k
}
1930
1931
0
void ChangeConfigRecordPB::MergeFrom(const ::google::protobuf::Message& from) {
1932
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ChangeConfigRecordPB)
1933
0
  GOOGLE_DCHECK_NE(&from, this);
1934
0
  const ChangeConfigRecordPB* source =
1935
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChangeConfigRecordPB>(
1936
0
          &from);
1937
0
  if (source == NULL) {
1938
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ChangeConfigRecordPB)
1939
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1940
0
  } else {
1941
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ChangeConfigRecordPB)
1942
0
    MergeFrom(*source);
1943
0
  }
1944
0
}
1945
1946
0
void ChangeConfigRecordPB::MergeFrom(const ChangeConfigRecordPB& from) {
1947
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ChangeConfigRecordPB)
1948
0
  GOOGLE_DCHECK_NE(&from, this);
1949
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1950
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1951
0
  (void) cached_has_bits;
1952
1953
0
  cached_has_bits = from._has_bits_[0];
1954
0
  if (cached_has_bits & 7u) {
1955
0
    if (cached_has_bits & 0x00000001u) {
1956
0
      set_has_tablet_id();
1957
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1958
0
    }
1959
0
    if (cached_has_bits & 0x00000002u) {
1960
0
      mutable_old_config()->::yb::consensus::RaftConfigPB::MergeFrom(from.old_config());
1961
0
    }
1962
0
    if (cached_has_bits & 0x00000004u) {
1963
0
      mutable_new_config()->::yb::consensus::RaftConfigPB::MergeFrom(from.new_config());
1964
0
    }
1965
0
  }
1966
0
}
1967
1968
0
void ChangeConfigRecordPB::CopyFrom(const ::google::protobuf::Message& from) {
1969
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ChangeConfigRecordPB)
1970
0
  if (&from == this) return;
1971
0
  Clear();
1972
0
  MergeFrom(from);
1973
0
}
1974
1975
0
void ChangeConfigRecordPB::CopyFrom(const ChangeConfigRecordPB& from) {
1976
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ChangeConfigRecordPB)
1977
0
  if (&from == this) return;
1978
0
  Clear();
1979
0
  MergeFrom(from);
1980
0
}
1981
1982
106k
bool ChangeConfigRecordPB::IsInitialized() const {
1983
106k
  if ((_has_bits_[0] & 0x00000007) != 0x00000007) 
return false0
;
1984
106k
  if (has_old_config()) {
1985
106k
    if (!this->old_config_->IsInitialized()) 
return false0
;
1986
106k
  }
1987
106k
  if (has_new_config()) {
1988
106k
    if (!this->new_config_->IsInitialized()) 
return false0
;
1989
106k
  }
1990
106k
  return true;
1991
106k
}
1992
1993
0
void ChangeConfigRecordPB::Swap(ChangeConfigRecordPB* other) {
1994
0
  if (other == this) return;
1995
0
  InternalSwap(other);
1996
0
}
1997
0
void ChangeConfigRecordPB::InternalSwap(ChangeConfigRecordPB* other) {
1998
0
  using std::swap;
1999
0
  tablet_id_.Swap(&other->tablet_id_);
2000
0
  swap(old_config_, other->old_config_);
2001
0
  swap(new_config_, other->new_config_);
2002
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2003
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2004
0
  swap(_cached_size_, other->_cached_size_);
2005
0
}
2006
2007
35.7k
::google::protobuf::Metadata ChangeConfigRecordPB::GetMetadata() const {
2008
35.7k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2009
35.7k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
2010
35.7k
}
2011
2012
2013
// ===================================================================
2014
2015
26.8k
void ChangeConfigRequestPB::InitAsDefaultInstance() {
2016
26.8k
  ::yb::consensus::_ChangeConfigRequestPB_default_instance_._instance.get_mutable()->server_ = const_cast< ::yb::consensus::RaftPeerPB*>(
2017
26.8k
      ::yb::consensus::RaftPeerPB::internal_default_instance());
2018
26.8k
}
2019
0
void ChangeConfigRequestPB::clear_server() {
2020
0
  if (server_ != NULL) server_->Clear();
2021
0
  clear_has_server();
2022
0
}
2023
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2024
const int ChangeConfigRequestPB::kDestUuidFieldNumber;
2025
const int ChangeConfigRequestPB::kTabletIdFieldNumber;
2026
const int ChangeConfigRequestPB::kTypeFieldNumber;
2027
const int ChangeConfigRequestPB::kServerFieldNumber;
2028
const int ChangeConfigRequestPB::kCasConfigOpidIndexFieldNumber;
2029
const int ChangeConfigRequestPB::kUseHostFieldNumber;
2030
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2031
2032
ChangeConfigRequestPB::ChangeConfigRequestPB()
2033
2.94M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2034
2.94M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2035
2.92M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigRequestPB();
2036
2.92M
  }
2037
2.94M
  SharedCtor();
2038
  // @@protoc_insertion_point(constructor:yb.consensus.ChangeConfigRequestPB)
2039
2.94M
}
2040
ChangeConfigRequestPB::ChangeConfigRequestPB(const ChangeConfigRequestPB& from)
2041
  : ::google::protobuf::Message(),
2042
      _internal_metadata_(NULL),
2043
      _has_bits_(from._has_bits_),
2044
0
      _cached_size_(0) {
2045
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2046
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2047
0
  if (from.has_tablet_id()) {
2048
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2049
0
  }
2050
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2051
0
  if (from.has_dest_uuid()) {
2052
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2053
0
  }
2054
0
  if (from.has_server()) {
2055
0
    server_ = new ::yb::consensus::RaftPeerPB(*from.server_);
2056
0
  } else {
2057
0
    server_ = NULL;
2058
0
  }
2059
0
  ::memcpy(&type_, &from.type_,
2060
0
    static_cast<size_t>(reinterpret_cast<char*>(&cas_config_opid_index_) -
2061
0
    reinterpret_cast<char*>(&type_)) + sizeof(cas_config_opid_index_));
2062
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ChangeConfigRequestPB)
2063
0
}
2064
2065
2.94M
void ChangeConfigRequestPB::SharedCtor() {
2066
2.94M
  _cached_size_ = 0;
2067
2.94M
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2068
2.94M
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2069
2.94M
  ::memset(&server_, 0, static_cast<size_t>(
2070
2.94M
      reinterpret_cast<char*>(&cas_config_opid_index_) -
2071
2.94M
      reinterpret_cast<char*>(&server_)) + sizeof(cas_config_opid_index_));
2072
2.94M
}
2073
2074
2.92M
ChangeConfigRequestPB::~ChangeConfigRequestPB() {
2075
  // @@protoc_insertion_point(destructor:yb.consensus.ChangeConfigRequestPB)
2076
2.92M
  SharedDtor();
2077
2.92M
}
2078
2079
2.92M
void ChangeConfigRequestPB::SharedDtor() {
2080
2.92M
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2081
2.92M
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2082
2.92M
  if (this != internal_default_instance()) 
delete server_2.92M
;
2083
2.92M
}
2084
2085
0
void ChangeConfigRequestPB::SetCachedSize(int size) const {
2086
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2087
0
  _cached_size_ = size;
2088
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2089
0
}
2090
0
const ::google::protobuf::Descriptor* ChangeConfigRequestPB::descriptor() {
2091
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2092
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2093
0
}
2094
2095
0
const ChangeConfigRequestPB& ChangeConfigRequestPB::default_instance() {
2096
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigRequestPB();
2097
0
  return *internal_default_instance();
2098
0
}
2099
2100
0
ChangeConfigRequestPB* ChangeConfigRequestPB::New(::google::protobuf::Arena* arena) const {
2101
0
  ChangeConfigRequestPB* n = new ChangeConfigRequestPB;
2102
0
  if (arena != NULL) {
2103
0
    arena->Own(n);
2104
0
  }
2105
0
  return n;
2106
0
}
2107
2108
5.29k
void ChangeConfigRequestPB::Clear() {
2109
// @@protoc_insertion_point(message_clear_start:yb.consensus.ChangeConfigRequestPB)
2110
5.29k
  ::google::protobuf::uint32 cached_has_bits = 0;
2111
  // Prevent compiler warnings about cached_has_bits being unused
2112
5.29k
  (void) cached_has_bits;
2113
2114
5.29k
  cached_has_bits = _has_bits_[0];
2115
5.29k
  if (cached_has_bits & 7u) {
2116
0
    if (cached_has_bits & 0x00000001u) {
2117
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2118
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
2119
0
    }
2120
0
    if (cached_has_bits & 0x00000002u) {
2121
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2122
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
2123
0
    }
2124
0
    if (cached_has_bits & 0x00000004u) {
2125
0
      GOOGLE_DCHECK(server_ != NULL);
2126
0
      server_->Clear();
2127
0
    }
2128
0
  }
2129
5.29k
  if (cached_has_bits & 56u) {
2130
0
    ::memset(&type_, 0, static_cast<size_t>(
2131
0
        reinterpret_cast<char*>(&cas_config_opid_index_) -
2132
0
        reinterpret_cast<char*>(&type_)) + sizeof(cas_config_opid_index_));
2133
0
  }
2134
5.29k
  _has_bits_.Clear();
2135
5.29k
  _internal_metadata_.Clear();
2136
5.29k
}
2137
2138
bool ChangeConfigRequestPB::MergePartialFromCodedStream(
2139
5.29k
    ::google::protobuf::io::CodedInputStream* input) {
2140
26.1k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2141
5.29k
  ::google::protobuf::uint32 tag;
2142
  // @@protoc_insertion_point(parse_start:yb.consensus.ChangeConfigRequestPB)
2143
31.4k
  for (;;) {
2144
31.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2145
31.4k
    tag = p.first;
2146
31.4k
    if (!p.second) 
goto handle_unusual5.29k
;
2147
26.1k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2148
      // required bytes tablet_id = 1;
2149
5.28k
      case 1: {
2150
5.28k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2151
5.28k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2152
5.28k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2153
5.28k
                input, this->mutable_tablet_id()));
2154
18.4E
        } else {
2155
18.4E
          goto handle_unusual;
2156
18.4E
        }
2157
5.28k
        break;
2158
5.28k
      }
2159
2160
      // optional .yb.consensus.ChangeConfigType type = 2;
2161
5.29k
      case 2: {
2162
5.29k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2163
5.29k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2164
5.29k
          int value;
2165
5.29k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2166
5.29k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2167
5.29k
                 input, &value)));
2168
5.29k
          if (::yb::consensus::ChangeConfigType_IsValid(value)) {
2169
5.28k
            set_type(static_cast< ::yb::consensus::ChangeConfigType >(value));
2170
5.28k
          } else {
2171
10
            mutable_unknown_fields()->AddVarint(
2172
10
                2, static_cast< ::google::protobuf::uint64>(value));
2173
10
          }
2174
5.29k
        } else {
2175
0
          goto handle_unusual;
2176
0
        }
2177
5.29k
        break;
2178
5.29k
      }
2179
2180
      // optional .yb.consensus.RaftPeerPB server = 3;
2181
5.29k
      case 3: {
2182
5.29k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2183
5.29k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2184
5.29k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2185
5.29k
               input, mutable_server()));
2186
5.29k
        } else {
2187
0
          goto handle_unusual;
2188
0
        }
2189
5.29k
        break;
2190
5.29k
      }
2191
2192
      // optional bytes dest_uuid = 4;
2193
5.29k
      case 4: {
2194
5.16k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2195
5.16k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2196
5.16k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2197
5.16k
                input, this->mutable_dest_uuid()));
2198
5.16k
        } else {
2199
0
          goto handle_unusual;
2200
0
        }
2201
5.16k
        break;
2202
5.16k
      }
2203
2204
      // optional int64 cas_config_opid_index = 5;
2205
5.16k
      case 5: {
2206
5.11k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2207
5.11k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2208
5.11k
          set_has_cas_config_opid_index();
2209
5.11k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2210
5.11k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2211
5.11k
                 input, &cas_config_opid_index_)));
2212
5.11k
        } else {
2213
0
          goto handle_unusual;
2214
0
        }
2215
5.11k
        break;
2216
5.11k
      }
2217
2218
      // optional bool use_host = 6 [default = false];
2219
5.11k
      case 6: {
2220
23
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2221
23
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
2222
23
          set_has_use_host();
2223
23
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2224
23
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2225
23
                 input, &use_host_)));
2226
23
        } else {
2227
0
          goto handle_unusual;
2228
0
        }
2229
23
        break;
2230
23
      }
2231
2232
23
      default: {
2233
5.29k
      handle_unusual:
2234
5.29k
        if (tag == 0) {
2235
5.29k
          goto success;
2236
5.29k
        }
2237
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2238
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2239
0
        break;
2240
0
      }
2241
26.1k
    }
2242
26.1k
  }
2243
5.29k
success:
2244
  // @@protoc_insertion_point(parse_success:yb.consensus.ChangeConfigRequestPB)
2245
5.29k
  return true;
2246
0
failure:
2247
  // @@protoc_insertion_point(parse_failure:yb.consensus.ChangeConfigRequestPB)
2248
0
  return false;
2249
5.29k
#undef DO_
2250
5.29k
}
2251
2252
void ChangeConfigRequestPB::SerializeWithCachedSizes(
2253
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2254
  // @@protoc_insertion_point(serialize_start:yb.consensus.ChangeConfigRequestPB)
2255
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2256
0
  (void) cached_has_bits;
2257
2258
0
  cached_has_bits = _has_bits_[0];
2259
  // required bytes tablet_id = 1;
2260
0
  if (cached_has_bits & 0x00000001u) {
2261
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2262
0
      1, this->tablet_id(), output);
2263
0
  }
2264
2265
  // optional .yb.consensus.ChangeConfigType type = 2;
2266
0
  if (cached_has_bits & 0x00000008u) {
2267
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2268
0
      2, this->type(), output);
2269
0
  }
2270
2271
  // optional .yb.consensus.RaftPeerPB server = 3;
2272
0
  if (cached_has_bits & 0x00000004u) {
2273
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2274
0
      3, *this->server_, output);
2275
0
  }
2276
2277
  // optional bytes dest_uuid = 4;
2278
0
  if (cached_has_bits & 0x00000002u) {
2279
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2280
0
      4, this->dest_uuid(), output);
2281
0
  }
2282
2283
  // optional int64 cas_config_opid_index = 5;
2284
0
  if (cached_has_bits & 0x00000020u) {
2285
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->cas_config_opid_index(), output);
2286
0
  }
2287
2288
  // optional bool use_host = 6 [default = false];
2289
0
  if (cached_has_bits & 0x00000010u) {
2290
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->use_host(), output);
2291
0
  }
2292
2293
0
  if (_internal_metadata_.have_unknown_fields()) {
2294
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2295
0
        _internal_metadata_.unknown_fields(), output);
2296
0
  }
2297
  // @@protoc_insertion_point(serialize_end:yb.consensus.ChangeConfigRequestPB)
2298
0
}
2299
2300
::google::protobuf::uint8* ChangeConfigRequestPB::InternalSerializeWithCachedSizesToArray(
2301
5.18k
    bool deterministic, ::google::protobuf::uint8* target) const {
2302
5.18k
  (void)deterministic; // Unused
2303
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ChangeConfigRequestPB)
2304
5.18k
  ::google::protobuf::uint32 cached_has_bits = 0;
2305
5.18k
  (void) cached_has_bits;
2306
2307
5.18k
  cached_has_bits = _has_bits_[0];
2308
  // required bytes tablet_id = 1;
2309
5.18k
  if (cached_has_bits & 0x00000001u) {
2310
5.18k
    target =
2311
5.18k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2312
5.18k
        1, this->tablet_id(), target);
2313
5.18k
  }
2314
2315
  // optional .yb.consensus.ChangeConfigType type = 2;
2316
5.18k
  if (cached_has_bits & 0x00000008u) {
2317
5.17k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2318
5.17k
      2, this->type(), target);
2319
5.17k
  }
2320
2321
  // optional .yb.consensus.RaftPeerPB server = 3;
2322
5.18k
  if (cached_has_bits & 0x00000004u) {
2323
5.17k
    target = ::google::protobuf::internal::WireFormatLite::
2324
5.17k
      InternalWriteMessageToArray(
2325
5.17k
        3, *this->server_, deterministic, target);
2326
5.17k
  }
2327
2328
  // optional bytes dest_uuid = 4;
2329
5.18k
  if (cached_has_bits & 0x00000002u) {
2330
5.18k
    target =
2331
5.18k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2332
5.18k
        4, this->dest_uuid(), target);
2333
5.18k
  }
2334
2335
  // optional int64 cas_config_opid_index = 5;
2336
5.18k
  if (cached_has_bits & 0x00000020u) {
2337
5.12k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->cas_config_opid_index(), target);
2338
5.12k
  }
2339
2340
  // optional bool use_host = 6 [default = false];
2341
5.18k
  if (cached_has_bits & 0x00000010u) {
2342
20
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->use_host(), target);
2343
20
  }
2344
2345
5.18k
  if (_internal_metadata_.have_unknown_fields()) {
2346
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2347
0
        _internal_metadata_.unknown_fields(), target);
2348
0
  }
2349
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ChangeConfigRequestPB)
2350
5.18k
  return target;
2351
5.18k
}
2352
2353
10.3k
size_t ChangeConfigRequestPB::ByteSizeLong() const {
2354
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ChangeConfigRequestPB)
2355
10.3k
  size_t total_size = 0;
2356
2357
10.3k
  if (_internal_metadata_.have_unknown_fields()) {
2358
0
    total_size +=
2359
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2360
0
        _internal_metadata_.unknown_fields());
2361
0
  }
2362
  // required bytes tablet_id = 1;
2363
10.3k
  if (
has_tablet_id()10.3k
) {
2364
10.3k
    total_size += 1 +
2365
10.3k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2366
10.3k
        this->tablet_id());
2367
10.3k
  }
2368
10.3k
  if (_has_bits_[0 / 32] & 62u) {
2369
    // optional bytes dest_uuid = 4;
2370
10.3k
    if (
has_dest_uuid()10.3k
) {
2371
10.3k
      total_size += 1 +
2372
10.3k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2373
10.3k
          this->dest_uuid());
2374
10.3k
    }
2375
2376
    // optional .yb.consensus.RaftPeerPB server = 3;
2377
10.3k
    if (
has_server()10.3k
) {
2378
10.3k
      total_size += 1 +
2379
10.3k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2380
10.3k
          *this->server_);
2381
10.3k
    }
2382
2383
    // optional .yb.consensus.ChangeConfigType type = 2;
2384
10.3k
    if (
has_type()10.3k
) {
2385
10.3k
      total_size += 1 +
2386
10.3k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
2387
10.3k
    }
2388
2389
    // optional bool use_host = 6 [default = false];
2390
10.3k
    if (has_use_host()) {
2391
40
      total_size += 1 + 1;
2392
40
    }
2393
2394
    // optional int64 cas_config_opid_index = 5;
2395
10.3k
    if (has_cas_config_opid_index()) {
2396
10.2k
      total_size += 1 +
2397
10.2k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2398
10.2k
          this->cas_config_opid_index());
2399
10.2k
    }
2400
2401
10.3k
  }
2402
10.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2403
10.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2404
10.3k
  _cached_size_ = cached_size;
2405
10.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2406
10.3k
  return total_size;
2407
10.3k
}
2408
2409
0
void ChangeConfigRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2410
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ChangeConfigRequestPB)
2411
0
  GOOGLE_DCHECK_NE(&from, this);
2412
0
  const ChangeConfigRequestPB* source =
2413
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChangeConfigRequestPB>(
2414
0
          &from);
2415
0
  if (source == NULL) {
2416
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ChangeConfigRequestPB)
2417
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2418
0
  } else {
2419
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ChangeConfigRequestPB)
2420
0
    MergeFrom(*source);
2421
0
  }
2422
0
}
2423
2424
0
void ChangeConfigRequestPB::MergeFrom(const ChangeConfigRequestPB& from) {
2425
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ChangeConfigRequestPB)
2426
0
  GOOGLE_DCHECK_NE(&from, this);
2427
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2428
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2429
0
  (void) cached_has_bits;
2430
2431
0
  cached_has_bits = from._has_bits_[0];
2432
0
  if (cached_has_bits & 63u) {
2433
0
    if (cached_has_bits & 0x00000001u) {
2434
0
      set_has_tablet_id();
2435
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2436
0
    }
2437
0
    if (cached_has_bits & 0x00000002u) {
2438
0
      set_has_dest_uuid();
2439
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
2440
0
    }
2441
0
    if (cached_has_bits & 0x00000004u) {
2442
0
      mutable_server()->::yb::consensus::RaftPeerPB::MergeFrom(from.server());
2443
0
    }
2444
0
    if (cached_has_bits & 0x00000008u) {
2445
0
      type_ = from.type_;
2446
0
    }
2447
0
    if (cached_has_bits & 0x00000010u) {
2448
0
      use_host_ = from.use_host_;
2449
0
    }
2450
0
    if (cached_has_bits & 0x00000020u) {
2451
0
      cas_config_opid_index_ = from.cas_config_opid_index_;
2452
0
    }
2453
0
    _has_bits_[0] |= cached_has_bits;
2454
0
  }
2455
0
}
2456
2457
0
void ChangeConfigRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2458
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ChangeConfigRequestPB)
2459
0
  if (&from == this) return;
2460
0
  Clear();
2461
0
  MergeFrom(from);
2462
0
}
2463
2464
0
void ChangeConfigRequestPB::CopyFrom(const ChangeConfigRequestPB& from) {
2465
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ChangeConfigRequestPB)
2466
0
  if (&from == this) return;
2467
0
  Clear();
2468
0
  MergeFrom(from);
2469
0
}
2470
2471
10.4k
bool ChangeConfigRequestPB::IsInitialized() const {
2472
10.4k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
2473
10.4k
  if (has_server()) {
2474
10.4k
    if (!this->server_->IsInitialized()) 
return false0
;
2475
10.4k
  }
2476
10.4k
  return true;
2477
10.4k
}
2478
2479
0
void ChangeConfigRequestPB::Swap(ChangeConfigRequestPB* other) {
2480
0
  if (other == this) return;
2481
0
  InternalSwap(other);
2482
0
}
2483
0
void ChangeConfigRequestPB::InternalSwap(ChangeConfigRequestPB* other) {
2484
0
  using std::swap;
2485
0
  tablet_id_.Swap(&other->tablet_id_);
2486
0
  dest_uuid_.Swap(&other->dest_uuid_);
2487
0
  swap(server_, other->server_);
2488
0
  swap(type_, other->type_);
2489
0
  swap(use_host_, other->use_host_);
2490
0
  swap(cas_config_opid_index_, other->cas_config_opid_index_);
2491
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2492
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2493
0
  swap(_cached_size_, other->_cached_size_);
2494
0
}
2495
2496
25.9k
::google::protobuf::Metadata ChangeConfigRequestPB::GetMetadata() const {
2497
25.9k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2498
25.9k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
2499
25.9k
}
2500
2501
2502
// ===================================================================
2503
2504
26.8k
void ChangeConfigResponsePB::InitAsDefaultInstance() {
2505
26.8k
  ::yb::consensus::_ChangeConfigResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
2506
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
2507
26.8k
}
2508
0
void ChangeConfigResponsePB::clear_error() {
2509
0
  if (error_ != NULL) error_->Clear();
2510
0
  clear_has_error();
2511
0
}
2512
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2513
const int ChangeConfigResponsePB::kErrorFieldNumber;
2514
const int ChangeConfigResponsePB::kHybridTimeFieldNumber;
2515
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2516
2517
ChangeConfigResponsePB::ChangeConfigResponsePB()
2518
2.94M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2519
2.94M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2520
2.92M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigResponsePB();
2521
2.92M
  }
2522
2.94M
  SharedCtor();
2523
  // @@protoc_insertion_point(constructor:yb.consensus.ChangeConfigResponsePB)
2524
2.94M
}
2525
ChangeConfigResponsePB::ChangeConfigResponsePB(const ChangeConfigResponsePB& from)
2526
  : ::google::protobuf::Message(),
2527
      _internal_metadata_(NULL),
2528
      _has_bits_(from._has_bits_),
2529
0
      _cached_size_(0) {
2530
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2531
0
  if (from.has_error()) {
2532
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
2533
0
  } else {
2534
0
    error_ = NULL;
2535
0
  }
2536
0
  hybrid_time_ = from.hybrid_time_;
2537
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ChangeConfigResponsePB)
2538
0
}
2539
2540
2.94M
void ChangeConfigResponsePB::SharedCtor() {
2541
2.94M
  _cached_size_ = 0;
2542
2.94M
  ::memset(&error_, 0, static_cast<size_t>(
2543
2.94M
      reinterpret_cast<char*>(&hybrid_time_) -
2544
2.94M
      reinterpret_cast<char*>(&error_)) + sizeof(hybrid_time_));
2545
2.94M
}
2546
2547
2.92M
ChangeConfigResponsePB::~ChangeConfigResponsePB() {
2548
  // @@protoc_insertion_point(destructor:yb.consensus.ChangeConfigResponsePB)
2549
2.92M
  SharedDtor();
2550
2.92M
}
2551
2552
2.92M
void ChangeConfigResponsePB::SharedDtor() {
2553
2.92M
  if (this != internal_default_instance()) delete error_;
2554
2.92M
}
2555
2556
0
void ChangeConfigResponsePB::SetCachedSize(int size) const {
2557
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2558
0
  _cached_size_ = size;
2559
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2560
0
}
2561
0
const ::google::protobuf::Descriptor* ChangeConfigResponsePB::descriptor() {
2562
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2563
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2564
0
}
2565
2566
0
const ChangeConfigResponsePB& ChangeConfigResponsePB::default_instance() {
2567
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsChangeConfigResponsePB();
2568
0
  return *internal_default_instance();
2569
0
}
2570
2571
0
ChangeConfigResponsePB* ChangeConfigResponsePB::New(::google::protobuf::Arena* arena) const {
2572
0
  ChangeConfigResponsePB* n = new ChangeConfigResponsePB;
2573
0
  if (arena != NULL) {
2574
0
    arena->Own(n);
2575
0
  }
2576
0
  return n;
2577
0
}
2578
2579
6.84k
void ChangeConfigResponsePB::Clear() {
2580
// @@protoc_insertion_point(message_clear_start:yb.consensus.ChangeConfigResponsePB)
2581
6.84k
  ::google::protobuf::uint32 cached_has_bits = 0;
2582
  // Prevent compiler warnings about cached_has_bits being unused
2583
6.84k
  (void) cached_has_bits;
2584
2585
6.84k
  cached_has_bits = _has_bits_[0];
2586
6.84k
  if (cached_has_bits & 0x00000001u) {
2587
436
    GOOGLE_DCHECK(error_ != NULL);
2588
436
    error_->Clear();
2589
436
  }
2590
6.84k
  hybrid_time_ = GOOGLE_ULONGLONG(0);
2591
6.84k
  _has_bits_.Clear();
2592
6.84k
  _internal_metadata_.Clear();
2593
6.84k
}
2594
2595
bool ChangeConfigResponsePB::MergePartialFromCodedStream(
2596
5.15k
    ::google::protobuf::io::CodedInputStream* input) {
2597
5.15k
#define DO_(EXPRESSION) 
if (1.64k
!GOOGLE_PREDICT_TRUE1.64k
(EXPRESSION))
goto failure0
2598
5.15k
  ::google::protobuf::uint32 tag;
2599
  // @@protoc_insertion_point(parse_start:yb.consensus.ChangeConfigResponsePB)
2600
6.79k
  for (;;) {
2601
6.79k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2602
6.79k
    tag = p.first;
2603
6.79k
    if (!p.second) 
goto handle_unusual5.14k
;
2604
1.65k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2605
      // optional .yb.tserver.TabletServerErrorPB error = 1;
2606
1.64k
      case 1: {
2607
1.64k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2608
1.64k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2609
1.64k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2610
1.64k
               input, mutable_error()));
2611
1.64k
        } else {
2612
0
          goto handle_unusual;
2613
0
        }
2614
1.64k
        break;
2615
1.64k
      }
2616
2617
      // optional fixed64 hybrid_time = 2;
2618
1.64k
      case 2: {
2619
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2620
0
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
2621
0
          set_has_hybrid_time();
2622
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2623
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
2624
0
                 input, &hybrid_time_)));
2625
0
        } else {
2626
0
          goto handle_unusual;
2627
0
        }
2628
0
        break;
2629
0
      }
2630
2631
0
      default: {
2632
5.15k
      handle_unusual:
2633
5.15k
        if (
tag == 05.15k
) {
2634
5.15k
          goto success;
2635
5.15k
        }
2636
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2637
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2638
18.4E
        break;
2639
18.4E
      }
2640
1.65k
    }
2641
1.65k
  }
2642
18.4E
success:
2643
  // @@protoc_insertion_point(parse_success:yb.consensus.ChangeConfigResponsePB)
2644
5.15k
  return true;
2645
0
failure:
2646
  // @@protoc_insertion_point(parse_failure:yb.consensus.ChangeConfigResponsePB)
2647
0
  return false;
2648
5.15k
#undef DO_
2649
5.15k
}
2650
2651
void ChangeConfigResponsePB::SerializeWithCachedSizes(
2652
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2653
  // @@protoc_insertion_point(serialize_start:yb.consensus.ChangeConfigResponsePB)
2654
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2655
0
  (void) cached_has_bits;
2656
2657
0
  cached_has_bits = _has_bits_[0];
2658
  // optional .yb.tserver.TabletServerErrorPB error = 1;
2659
0
  if (cached_has_bits & 0x00000001u) {
2660
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2661
0
      1, *this->error_, output);
2662
0
  }
2663
2664
  // optional fixed64 hybrid_time = 2;
2665
0
  if (cached_has_bits & 0x00000002u) {
2666
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->hybrid_time(), output);
2667
0
  }
2668
2669
0
  if (_internal_metadata_.have_unknown_fields()) {
2670
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2671
0
        _internal_metadata_.unknown_fields(), output);
2672
0
  }
2673
  // @@protoc_insertion_point(serialize_end:yb.consensus.ChangeConfigResponsePB)
2674
0
}
2675
2676
::google::protobuf::uint8* ChangeConfigResponsePB::InternalSerializeWithCachedSizesToArray(
2677
5.29k
    bool deterministic, ::google::protobuf::uint8* target) const {
2678
5.29k
  (void)deterministic; // Unused
2679
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ChangeConfigResponsePB)
2680
5.29k
  ::google::protobuf::uint32 cached_has_bits = 0;
2681
5.29k
  (void) cached_has_bits;
2682
2683
5.29k
  cached_has_bits = _has_bits_[0];
2684
  // optional .yb.tserver.TabletServerErrorPB error = 1;
2685
5.29k
  if (cached_has_bits & 0x00000001u) {
2686
1.69k
    target = ::google::protobuf::internal::WireFormatLite::
2687
1.69k
      InternalWriteMessageToArray(
2688
1.69k
        1, *this->error_, deterministic, target);
2689
1.69k
  }
2690
2691
  // optional fixed64 hybrid_time = 2;
2692
5.29k
  if (cached_has_bits & 0x00000002u) {
2693
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->hybrid_time(), target);
2694
0
  }
2695
2696
5.29k
  if (_internal_metadata_.have_unknown_fields()) {
2697
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2698
0
        _internal_metadata_.unknown_fields(), target);
2699
0
  }
2700
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ChangeConfigResponsePB)
2701
5.29k
  return target;
2702
5.29k
}
2703
2704
10.5k
size_t ChangeConfigResponsePB::ByteSizeLong() const {
2705
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ChangeConfigResponsePB)
2706
10.5k
  size_t total_size = 0;
2707
2708
10.5k
  if (_internal_metadata_.have_unknown_fields()) {
2709
0
    total_size +=
2710
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2711
0
        _internal_metadata_.unknown_fields());
2712
0
  }
2713
10.5k
  if (_has_bits_[0 / 32] & 3u) {
2714
    // optional .yb.tserver.TabletServerErrorPB error = 1;
2715
3.38k
    if (has_error()) {
2716
3.38k
      total_size += 1 +
2717
3.38k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2718
3.38k
          *this->error_);
2719
3.38k
    }
2720
2721
    // optional fixed64 hybrid_time = 2;
2722
3.38k
    if (has_hybrid_time()) {
2723
0
      total_size += 1 + 8;
2724
0
    }
2725
2726
3.38k
  }
2727
10.5k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2728
10.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2729
10.5k
  _cached_size_ = cached_size;
2730
10.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2731
10.5k
  return total_size;
2732
10.5k
}
2733
2734
0
void ChangeConfigResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2735
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ChangeConfigResponsePB)
2736
0
  GOOGLE_DCHECK_NE(&from, this);
2737
0
  const ChangeConfigResponsePB* source =
2738
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChangeConfigResponsePB>(
2739
0
          &from);
2740
0
  if (source == NULL) {
2741
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ChangeConfigResponsePB)
2742
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2743
0
  } else {
2744
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ChangeConfigResponsePB)
2745
0
    MergeFrom(*source);
2746
0
  }
2747
0
}
2748
2749
0
void ChangeConfigResponsePB::MergeFrom(const ChangeConfigResponsePB& from) {
2750
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ChangeConfigResponsePB)
2751
0
  GOOGLE_DCHECK_NE(&from, this);
2752
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2753
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2754
0
  (void) cached_has_bits;
2755
2756
0
  cached_has_bits = from._has_bits_[0];
2757
0
  if (cached_has_bits & 3u) {
2758
0
    if (cached_has_bits & 0x00000001u) {
2759
0
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
2760
0
    }
2761
0
    if (cached_has_bits & 0x00000002u) {
2762
0
      hybrid_time_ = from.hybrid_time_;
2763
0
    }
2764
0
    _has_bits_[0] |= cached_has_bits;
2765
0
  }
2766
0
}
2767
2768
0
void ChangeConfigResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2769
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ChangeConfigResponsePB)
2770
0
  if (&from == this) return;
2771
0
  Clear();
2772
0
  MergeFrom(from);
2773
0
}
2774
2775
0
void ChangeConfigResponsePB::CopyFrom(const ChangeConfigResponsePB& from) {
2776
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ChangeConfigResponsePB)
2777
0
  if (&from == this) return;
2778
0
  Clear();
2779
0
  MergeFrom(from);
2780
0
}
2781
2782
10.4k
bool ChangeConfigResponsePB::IsInitialized() const {
2783
10.4k
  if (has_error()) {
2784
3.33k
    if (!this->error_->IsInitialized()) 
return false0
;
2785
3.33k
  }
2786
10.4k
  return true;
2787
10.4k
}
2788
2789
0
void ChangeConfigResponsePB::Swap(ChangeConfigResponsePB* other) {
2790
0
  if (other == this) return;
2791
0
  InternalSwap(other);
2792
0
}
2793
9
void ChangeConfigResponsePB::InternalSwap(ChangeConfigResponsePB* other) {
2794
9
  using std::swap;
2795
9
  swap(error_, other->error_);
2796
9
  swap(hybrid_time_, other->hybrid_time_);
2797
9
  swap(_has_bits_[0], other->_has_bits_[0]);
2798
9
  _internal_metadata_.Swap(&other->_internal_metadata_);
2799
9
  swap(_cached_size_, other->_cached_size_);
2800
9
}
2801
2802
0
::google::protobuf::Metadata ChangeConfigResponsePB::GetMetadata() const {
2803
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2804
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
2805
0
}
2806
2807
2808
// ===================================================================
2809
2810
26.8k
void HistoryCutoffPB::InitAsDefaultInstance() {
2811
26.8k
}
2812
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2813
const int HistoryCutoffPB::kHistoryCutoffFieldNumber;
2814
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2815
2816
HistoryCutoffPB::HistoryCutoffPB()
2817
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2818
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2819
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsHistoryCutoffPB();
2820
0
  }
2821
26.8k
  SharedCtor();
2822
  // @@protoc_insertion_point(constructor:yb.consensus.HistoryCutoffPB)
2823
26.8k
}
2824
HistoryCutoffPB::HistoryCutoffPB(const HistoryCutoffPB& from)
2825
  : ::google::protobuf::Message(),
2826
      _internal_metadata_(NULL),
2827
      _has_bits_(from._has_bits_),
2828
0
      _cached_size_(0) {
2829
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2830
0
  history_cutoff_ = from.history_cutoff_;
2831
  // @@protoc_insertion_point(copy_constructor:yb.consensus.HistoryCutoffPB)
2832
0
}
2833
2834
26.8k
void HistoryCutoffPB::SharedCtor() {
2835
26.8k
  _cached_size_ = 0;
2836
26.8k
  history_cutoff_ = GOOGLE_ULONGLONG(0);
2837
26.8k
}
2838
2839
0
HistoryCutoffPB::~HistoryCutoffPB() {
2840
  // @@protoc_insertion_point(destructor:yb.consensus.HistoryCutoffPB)
2841
0
  SharedDtor();
2842
0
}
2843
2844
0
void HistoryCutoffPB::SharedDtor() {
2845
0
}
2846
2847
0
void HistoryCutoffPB::SetCachedSize(int size) const {
2848
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2849
0
  _cached_size_ = size;
2850
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2851
0
}
2852
0
const ::google::protobuf::Descriptor* HistoryCutoffPB::descriptor() {
2853
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
2854
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2855
0
}
2856
2857
0
const HistoryCutoffPB& HistoryCutoffPB::default_instance() {
2858
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsHistoryCutoffPB();
2859
0
  return *internal_default_instance();
2860
0
}
2861
2862
0
HistoryCutoffPB* HistoryCutoffPB::New(::google::protobuf::Arena* arena) const {
2863
0
  HistoryCutoffPB* n = new HistoryCutoffPB;
2864
0
  if (arena != NULL) {
2865
0
    arena->Own(n);
2866
0
  }
2867
0
  return n;
2868
0
}
2869
2870
0
void HistoryCutoffPB::Clear() {
2871
// @@protoc_insertion_point(message_clear_start:yb.consensus.HistoryCutoffPB)
2872
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2873
  // Prevent compiler warnings about cached_has_bits being unused
2874
0
  (void) cached_has_bits;
2875
2876
0
  history_cutoff_ = GOOGLE_ULONGLONG(0);
2877
0
  _has_bits_.Clear();
2878
0
  _internal_metadata_.Clear();
2879
0
}
2880
2881
bool HistoryCutoffPB::MergePartialFromCodedStream(
2882
0
    ::google::protobuf::io::CodedInputStream* input) {
2883
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2884
0
  ::google::protobuf::uint32 tag;
2885
  // @@protoc_insertion_point(parse_start:yb.consensus.HistoryCutoffPB)
2886
0
  for (;;) {
2887
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2888
0
    tag = p.first;
2889
0
    if (!p.second) goto handle_unusual;
2890
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2891
      // optional fixed64 history_cutoff = 1;
2892
0
      case 1: {
2893
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2894
0
            static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
2895
0
          set_has_history_cutoff();
2896
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2897
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
2898
0
                 input, &history_cutoff_)));
2899
0
        } else {
2900
0
          goto handle_unusual;
2901
0
        }
2902
0
        break;
2903
0
      }
2904
2905
0
      default: {
2906
0
      handle_unusual:
2907
0
        if (tag == 0) {
2908
0
          goto success;
2909
0
        }
2910
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2911
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2912
0
        break;
2913
0
      }
2914
0
    }
2915
0
  }
2916
0
success:
2917
  // @@protoc_insertion_point(parse_success:yb.consensus.HistoryCutoffPB)
2918
0
  return true;
2919
0
failure:
2920
  // @@protoc_insertion_point(parse_failure:yb.consensus.HistoryCutoffPB)
2921
0
  return false;
2922
0
#undef DO_
2923
0
}
2924
2925
void HistoryCutoffPB::SerializeWithCachedSizes(
2926
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2927
  // @@protoc_insertion_point(serialize_start:yb.consensus.HistoryCutoffPB)
2928
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2929
0
  (void) cached_has_bits;
2930
2931
0
  cached_has_bits = _has_bits_[0];
2932
  // optional fixed64 history_cutoff = 1;
2933
0
  if (cached_has_bits & 0x00000001u) {
2934
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->history_cutoff(), output);
2935
0
  }
2936
2937
0
  if (_internal_metadata_.have_unknown_fields()) {
2938
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2939
0
        _internal_metadata_.unknown_fields(), output);
2940
0
  }
2941
  // @@protoc_insertion_point(serialize_end:yb.consensus.HistoryCutoffPB)
2942
0
}
2943
2944
::google::protobuf::uint8* HistoryCutoffPB::InternalSerializeWithCachedSizesToArray(
2945
0
    bool deterministic, ::google::protobuf::uint8* target) const {
2946
0
  (void)deterministic; // Unused
2947
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.HistoryCutoffPB)
2948
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2949
0
  (void) cached_has_bits;
2950
2951
0
  cached_has_bits = _has_bits_[0];
2952
  // optional fixed64 history_cutoff = 1;
2953
0
  if (cached_has_bits & 0x00000001u) {
2954
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->history_cutoff(), target);
2955
0
  }
2956
2957
0
  if (_internal_metadata_.have_unknown_fields()) {
2958
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2959
0
        _internal_metadata_.unknown_fields(), target);
2960
0
  }
2961
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.HistoryCutoffPB)
2962
0
  return target;
2963
0
}
2964
2965
0
size_t HistoryCutoffPB::ByteSizeLong() const {
2966
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.HistoryCutoffPB)
2967
0
  size_t total_size = 0;
2968
2969
0
  if (_internal_metadata_.have_unknown_fields()) {
2970
0
    total_size +=
2971
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2972
0
        _internal_metadata_.unknown_fields());
2973
0
  }
2974
  // optional fixed64 history_cutoff = 1;
2975
0
  if (has_history_cutoff()) {
2976
0
    total_size += 1 + 8;
2977
0
  }
2978
2979
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2980
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2981
0
  _cached_size_ = cached_size;
2982
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2983
0
  return total_size;
2984
0
}
2985
2986
0
void HistoryCutoffPB::MergeFrom(const ::google::protobuf::Message& from) {
2987
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.HistoryCutoffPB)
2988
0
  GOOGLE_DCHECK_NE(&from, this);
2989
0
  const HistoryCutoffPB* source =
2990
0
      ::google::protobuf::internal::DynamicCastToGenerated<const HistoryCutoffPB>(
2991
0
          &from);
2992
0
  if (source == NULL) {
2993
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.HistoryCutoffPB)
2994
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2995
0
  } else {
2996
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.HistoryCutoffPB)
2997
0
    MergeFrom(*source);
2998
0
  }
2999
0
}
3000
3001
0
void HistoryCutoffPB::MergeFrom(const HistoryCutoffPB& from) {
3002
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.HistoryCutoffPB)
3003
0
  GOOGLE_DCHECK_NE(&from, this);
3004
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3005
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3006
0
  (void) cached_has_bits;
3007
3008
0
  if (from.has_history_cutoff()) {
3009
0
    set_history_cutoff(from.history_cutoff());
3010
0
  }
3011
0
}
3012
3013
0
void HistoryCutoffPB::CopyFrom(const ::google::protobuf::Message& from) {
3014
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.HistoryCutoffPB)
3015
0
  if (&from == this) return;
3016
0
  Clear();
3017
0
  MergeFrom(from);
3018
0
}
3019
3020
0
void HistoryCutoffPB::CopyFrom(const HistoryCutoffPB& from) {
3021
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.HistoryCutoffPB)
3022
0
  if (&from == this) return;
3023
0
  Clear();
3024
0
  MergeFrom(from);
3025
0
}
3026
3027
0
bool HistoryCutoffPB::IsInitialized() const {
3028
0
  return true;
3029
0
}
3030
3031
0
void HistoryCutoffPB::Swap(HistoryCutoffPB* other) {
3032
0
  if (other == this) return;
3033
0
  InternalSwap(other);
3034
0
}
3035
0
void HistoryCutoffPB::InternalSwap(HistoryCutoffPB* other) {
3036
0
  using std::swap;
3037
0
  swap(history_cutoff_, other->history_cutoff_);
3038
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3039
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3040
0
  swap(_cached_size_, other->_cached_size_);
3041
0
}
3042
3043
0
::google::protobuf::Metadata HistoryCutoffPB::GetMetadata() const {
3044
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
3045
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
3046
0
}
3047
3048
3049
// ===================================================================
3050
3051
26.8k
void ReplicateMsg::InitAsDefaultInstance() {
3052
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->id_ = const_cast< ::yb::OpIdPB*>(
3053
26.8k
      ::yb::OpIdPB::internal_default_instance());
3054
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->write_ = const_cast< ::yb::tablet::WritePB*>(
3055
26.8k
      ::yb::tablet::WritePB::internal_default_instance());
3056
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->change_metadata_request_ = const_cast< ::yb::tablet::ChangeMetadataRequestPB*>(
3057
26.8k
      ::yb::tablet::ChangeMetadataRequestPB::internal_default_instance());
3058
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->transaction_state_ = const_cast< ::yb::tablet::TransactionStatePB*>(
3059
26.8k
      ::yb::tablet::TransactionStatePB::internal_default_instance());
3060
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->snapshot_request_ = const_cast< ::yb::tserver::TabletSnapshotOpRequestPB*>(
3061
26.8k
      ::yb::tserver::TabletSnapshotOpRequestPB::internal_default_instance());
3062
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->truncate_ = const_cast< ::yb::tablet::TruncatePB*>(
3063
26.8k
      ::yb::tablet::TruncatePB::internal_default_instance());
3064
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->split_request_ = const_cast< ::yb::tablet::SplitTabletRequestPB*>(
3065
26.8k
      ::yb::tablet::SplitTabletRequestPB::internal_default_instance());
3066
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->change_config_record_ = const_cast< ::yb::consensus::ChangeConfigRecordPB*>(
3067
26.8k
      ::yb::consensus::ChangeConfigRecordPB::internal_default_instance());
3068
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->history_cutoff_ = const_cast< ::yb::consensus::HistoryCutoffPB*>(
3069
26.8k
      ::yb::consensus::HistoryCutoffPB::internal_default_instance());
3070
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->committed_op_id_ = const_cast< ::yb::OpIdPB*>(
3071
26.8k
      ::yb::OpIdPB::internal_default_instance());
3072
26.8k
  ::yb::consensus::_ReplicateMsg_default_instance_._instance.get_mutable()->noop_request_ = const_cast< ::yb::consensus::NoOpRequestPB*>(
3073
26.8k
      ::yb::consensus::NoOpRequestPB::internal_default_instance());
3074
26.8k
}
3075
0
void ReplicateMsg::clear_id() {
3076
0
  if (id_ != NULL) id_->Clear();
3077
0
  clear_has_id();
3078
0
}
3079
0
void ReplicateMsg::clear_write() {
3080
0
  if (write_ != NULL) write_->Clear();
3081
0
  clear_has_write();
3082
0
}
3083
0
void ReplicateMsg::clear_change_metadata_request() {
3084
0
  if (change_metadata_request_ != NULL) change_metadata_request_->Clear();
3085
0
  clear_has_change_metadata_request();
3086
0
}
3087
0
void ReplicateMsg::clear_transaction_state() {
3088
0
  if (transaction_state_ != NULL) transaction_state_->Clear();
3089
0
  clear_has_transaction_state();
3090
0
}
3091
0
void ReplicateMsg::clear_snapshot_request() {
3092
0
  if (snapshot_request_ != NULL) snapshot_request_->Clear();
3093
0
  clear_has_snapshot_request();
3094
0
}
3095
0
void ReplicateMsg::clear_truncate() {
3096
0
  if (truncate_ != NULL) truncate_->Clear();
3097
0
  clear_has_truncate();
3098
0
}
3099
0
void ReplicateMsg::clear_split_request() {
3100
0
  if (split_request_ != NULL) split_request_->Clear();
3101
0
  clear_has_split_request();
3102
0
}
3103
0
void ReplicateMsg::clear_committed_op_id() {
3104
0
  if (committed_op_id_ != NULL) committed_op_id_->Clear();
3105
0
  clear_has_committed_op_id();
3106
0
}
3107
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3108
const int ReplicateMsg::kIdFieldNumber;
3109
const int ReplicateMsg::kHybridTimeFieldNumber;
3110
const int ReplicateMsg::kMonotonicCounterFieldNumber;
3111
const int ReplicateMsg::kOpTypeFieldNumber;
3112
const int ReplicateMsg::kWriteFieldNumber;
3113
const int ReplicateMsg::kChangeMetadataRequestFieldNumber;
3114
const int ReplicateMsg::kTransactionStateFieldNumber;
3115
const int ReplicateMsg::kSnapshotRequestFieldNumber;
3116
const int ReplicateMsg::kTruncateFieldNumber;
3117
const int ReplicateMsg::kSplitRequestFieldNumber;
3118
const int ReplicateMsg::kChangeConfigRecordFieldNumber;
3119
const int ReplicateMsg::kHistoryCutoffFieldNumber;
3120
const int ReplicateMsg::kCommittedOpIdFieldNumber;
3121
const int ReplicateMsg::kNoopRequestFieldNumber;
3122
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3123
3124
ReplicateMsg::ReplicateMsg()
3125
17.6M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3126
17.6M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3127
17.6M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsReplicateMsg();
3128
17.6M
  }
3129
17.6M
  SharedCtor();
3130
  // @@protoc_insertion_point(constructor:yb.consensus.ReplicateMsg)
3131
17.6M
}
3132
ReplicateMsg::ReplicateMsg(const ReplicateMsg& from)
3133
  : ::google::protobuf::Message(),
3134
      _internal_metadata_(NULL),
3135
      _has_bits_(from._has_bits_),
3136
156
      _cached_size_(0) {
3137
156
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3138
156
  if (from.has_id()) {
3139
156
    id_ = new ::yb::OpIdPB(*from.id_);
3140
156
  } else {
3141
0
    id_ = NULL;
3142
0
  }
3143
156
  if (from.has_write()) {
3144
116
    write_ = new ::yb::tablet::WritePB(*from.write_);
3145
116
  } else {
3146
40
    write_ = NULL;
3147
40
  }
3148
156
  if (from.has_change_metadata_request()) {
3149
3
    change_metadata_request_ = new ::yb::tablet::ChangeMetadataRequestPB(*from.change_metadata_request_);
3150
153
  } else {
3151
153
    change_metadata_request_ = NULL;
3152
153
  }
3153
156
  if (from.has_change_config_record()) {
3154
23
    change_config_record_ = new ::yb::consensus::ChangeConfigRecordPB(*from.change_config_record_);
3155
133
  } else {
3156
133
    change_config_record_ = NULL;
3157
133
  }
3158
156
  if (from.has_committed_op_id()) {
3159
146
    committed_op_id_ = new ::yb::OpIdPB(*from.committed_op_id_);
3160
146
  } else {
3161
10
    committed_op_id_ = NULL;
3162
10
  }
3163
156
  if (from.has_transaction_state()) {
3164
0
    transaction_state_ = new ::yb::tablet::TransactionStatePB(*from.transaction_state_);
3165
156
  } else {
3166
156
    transaction_state_ = NULL;
3167
156
  }
3168
156
  if (from.has_snapshot_request()) {
3169
0
    snapshot_request_ = new ::yb::tserver::TabletSnapshotOpRequestPB(*from.snapshot_request_);
3170
156
  } else {
3171
156
    snapshot_request_ = NULL;
3172
156
  }
3173
156
  if (from.has_truncate()) {
3174
0
    truncate_ = new ::yb::tablet::TruncatePB(*from.truncate_);
3175
156
  } else {
3176
156
    truncate_ = NULL;
3177
156
  }
3178
156
  if (from.has_history_cutoff()) {
3179
0
    history_cutoff_ = new ::yb::consensus::HistoryCutoffPB(*from.history_cutoff_);
3180
156
  } else {
3181
156
    history_cutoff_ = NULL;
3182
156
  }
3183
156
  if (from.has_split_request()) {
3184
3
    split_request_ = new ::yb::tablet::SplitTabletRequestPB(*from.split_request_);
3185
153
  } else {
3186
153
    split_request_ = NULL;
3187
153
  }
3188
156
  if (from.has_noop_request()) {
3189
1
    noop_request_ = new ::yb::consensus::NoOpRequestPB(*from.noop_request_);
3190
155
  } else {
3191
155
    noop_request_ = NULL;
3192
155
  }
3193
156
  ::memcpy(&hybrid_time_, &from.hybrid_time_,
3194
156
    static_cast<size_t>(reinterpret_cast<char*>(&op_type_) -
3195
156
    reinterpret_cast<char*>(&hybrid_time_)) + sizeof(op_type_));
3196
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ReplicateMsg)
3197
156
}
3198
3199
17.6M
void ReplicateMsg::SharedCtor() {
3200
17.6M
  _cached_size_ = 0;
3201
17.6M
  ::memset(&id_, 0, static_cast<size_t>(
3202
17.6M
      reinterpret_cast<char*>(&op_type_) -
3203
17.6M
      reinterpret_cast<char*>(&id_)) + sizeof(op_type_));
3204
17.6M
}
3205
3206
17.5M
ReplicateMsg::~ReplicateMsg() {
3207
  // @@protoc_insertion_point(destructor:yb.consensus.ReplicateMsg)
3208
17.5M
  SharedDtor();
3209
17.5M
}
3210
3211
17.5M
void ReplicateMsg::SharedDtor() {
3212
17.5M
  if (this != internal_default_instance()) 
delete id_17.5M
;
3213
17.5M
  if (this != internal_default_instance()) 
delete write_17.5M
;
3214
17.5M
  if (this != internal_default_instance()) 
delete change_metadata_request_17.5M
;
3215
17.5M
  if (this != internal_default_instance()) 
delete change_config_record_17.5M
;
3216
17.5M
  if (this != internal_default_instance()) 
delete committed_op_id_17.5M
;
3217
17.5M
  if (this != internal_default_instance()) 
delete transaction_state_17.5M
;
3218
17.5M
  if (this != internal_default_instance()) 
delete snapshot_request_17.5M
;
3219
17.5M
  if (this != internal_default_instance()) 
delete truncate_17.5M
;
3220
17.5M
  if (this != internal_default_instance()) 
delete history_cutoff_17.5M
;
3221
17.5M
  if (this != internal_default_instance()) 
delete split_request_17.5M
;
3222
17.5M
  if (this != internal_default_instance()) 
delete noop_request_17.5M
;
3223
17.5M
}
3224
3225
0
void ReplicateMsg::SetCachedSize(int size) const {
3226
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3227
0
  _cached_size_ = size;
3228
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3229
0
}
3230
0
const ::google::protobuf::Descriptor* ReplicateMsg::descriptor() {
3231
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
3232
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3233
0
}
3234
3235
0
const ReplicateMsg& ReplicateMsg::default_instance() {
3236
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsReplicateMsg();
3237
0
  return *internal_default_instance();
3238
0
}
3239
3240
0
ReplicateMsg* ReplicateMsg::New(::google::protobuf::Arena* arena) const {
3241
0
  ReplicateMsg* n = new ReplicateMsg;
3242
0
  if (arena != NULL) {
3243
0
    arena->Own(n);
3244
0
  }
3245
0
  return n;
3246
0
}
3247
3248
816
void ReplicateMsg::Clear() {
3249
// @@protoc_insertion_point(message_clear_start:yb.consensus.ReplicateMsg)
3250
816
  ::google::protobuf::uint32 cached_has_bits = 0;
3251
  // Prevent compiler warnings about cached_has_bits being unused
3252
816
  (void) cached_has_bits;
3253
3254
816
  cached_has_bits = _has_bits_[0];
3255
816
  if (cached_has_bits & 255u) {
3256
816
    if (cached_has_bits & 0x00000001u) {
3257
816
      GOOGLE_DCHECK(id_ != NULL);
3258
816
      id_->Clear();
3259
816
    }
3260
816
    if (cached_has_bits & 0x00000002u) {
3261
765
      GOOGLE_DCHECK(write_ != NULL);
3262
765
      write_->Clear();
3263
765
    }
3264
816
    if (cached_has_bits & 0x00000004u) {
3265
0
      GOOGLE_DCHECK(change_metadata_request_ != NULL);
3266
0
      change_metadata_request_->Clear();
3267
0
    }
3268
816
    if (cached_has_bits & 0x00000008u) {
3269
1
      GOOGLE_DCHECK(change_config_record_ != NULL);
3270
1
      change_config_record_->Clear();
3271
1
    }
3272
816
    if (cached_has_bits & 0x00000010u) {
3273
609
      GOOGLE_DCHECK(committed_op_id_ != NULL);
3274
609
      committed_op_id_->Clear();
3275
609
    }
3276
816
    if (cached_has_bits & 0x00000020u) {
3277
1
      GOOGLE_DCHECK(transaction_state_ != NULL);
3278
1
      transaction_state_->Clear();
3279
1
    }
3280
816
    if (cached_has_bits & 0x00000040u) {
3281
0
      GOOGLE_DCHECK(snapshot_request_ != NULL);
3282
0
      snapshot_request_->Clear();
3283
0
    }
3284
816
    if (cached_has_bits & 0x00000080u) {
3285
0
      GOOGLE_DCHECK(truncate_ != NULL);
3286
0
      truncate_->Clear();
3287
0
    }
3288
816
  }
3289
816
  if (cached_has_bits & 1792u) {
3290
48
    if (cached_has_bits & 0x00000100u) {
3291
0
      GOOGLE_DCHECK(history_cutoff_ != NULL);
3292
0
      history_cutoff_->Clear();
3293
0
    }
3294
48
    if (cached_has_bits & 0x00000200u) {
3295
0
      GOOGLE_DCHECK(split_request_ != NULL);
3296
0
      split_request_->Clear();
3297
0
    }
3298
48
    if (cached_has_bits & 0x00000400u) {
3299
48
      GOOGLE_DCHECK(noop_request_ != NULL);
3300
48
      noop_request_->Clear();
3301
48
    }
3302
48
  }
3303
816
  if (cached_has_bits & 14336u) {
3304
816
    ::memset(&hybrid_time_, 0, static_cast<size_t>(
3305
816
        reinterpret_cast<char*>(&op_type_) -
3306
816
        reinterpret_cast<char*>(&hybrid_time_)) + sizeof(op_type_));
3307
816
  }
3308
816
  _has_bits_.Clear();
3309
816
  _internal_metadata_.Clear();
3310
816
}
3311
3312
bool ReplicateMsg::MergePartialFromCodedStream(
3313
11.5M
    ::google::protobuf::io::CodedInputStream* input) {
3314
68.8M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3315
11.5M
  ::google::protobuf::uint32 tag;
3316
  // @@protoc_insertion_point(parse_start:yb.consensus.ReplicateMsg)
3317
80.4M
  for (;;) {
3318
80.4M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
3319
80.4M
    tag = p.first;
3320
80.4M
    if (!p.second) 
goto handle_unusual11.5M
;
3321
68.8M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3322
      // required .yb.OpIdPB id = 1;
3323
11.5M
      case 1: {
3324
11.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3325
11.5M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3326
11.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3327
11.5M
               input, mutable_id()));
3328
18.4E
        } else {
3329
18.4E
          goto handle_unusual;
3330
18.4E
        }
3331
11.5M
        break;
3332
11.5M
      }
3333
3334
      // required fixed64 hybrid_time = 2;
3335
11.5M
      case 2: {
3336
11.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3337
11.5M
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
3338
11.5M
          set_has_hybrid_time();
3339
11.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3340
11.5M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
3341
11.5M
                 input, &hybrid_time_)));
3342
18.4E
        } else {
3343
18.4E
          goto handle_unusual;
3344
18.4E
        }
3345
11.5M
        break;
3346
11.5M
      }
3347
3348
      // required .yb.consensus.OperationType op_type = 4;
3349
11.5M
      case 4: {
3350
11.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3351
11.5M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3352
11.5M
          int value;
3353
11.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3354
11.5M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3355
11.5M
                 input, &value)));
3356
11.5M
          if (::yb::consensus::OperationType_IsValid(value)) {
3357
11.5M
            set_op_type(static_cast< ::yb::consensus::OperationType >(value));
3358
11.5M
          } else {
3359
2.26k
            mutable_unknown_fields()->AddVarint(
3360
2.26k
                4, static_cast< ::google::protobuf::uint64>(value));
3361
2.26k
          }
3362
11.5M
        } else {
3363
75
          goto handle_unusual;
3364
75
        }
3365
11.5M
        break;
3366
11.5M
      }
3367
3368
      // optional .yb.tablet.WritePB write = 5;
3369
11.5M
      case 5: {
3370
7.61M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3371
7.61M
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
3372
7.61M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3373
7.61M
               input, mutable_write()));
3374
7.61M
        } else {
3375
21
          goto handle_unusual;
3376
21
        }
3377
7.61M
        break;
3378
7.61M
      }
3379
3380
      // optional .yb.tablet.ChangeMetadataRequestPB change_metadata_request = 6;
3381
7.61M
      case 6: {
3382
652k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3383
652k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
3384
652k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3385
652k
               input, mutable_change_metadata_request()));
3386
652k
        } else {
3387
2
          goto handle_unusual;
3388
2
        }
3389
652k
        break;
3390
652k
      }
3391
3392
      // optional .yb.consensus.ChangeConfigRecordPB change_config_record = 7;
3393
652k
      case 7: {
3394
28.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3395
28.4k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
3396
28.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3397
28.4k
               input, mutable_change_config_record()));
3398
28.4k
        } else {
3399
0
          goto handle_unusual;
3400
0
        }
3401
28.4k
        break;
3402
28.4k
      }
3403
3404
      // optional .yb.OpIdPB committed_op_id = 8;
3405
11.5M
      case 8: {
3406
11.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3407
11.5M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
3408
11.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3409
11.5M
               input, mutable_committed_op_id()));
3410
18.4E
        } else {
3411
18.4E
          goto handle_unusual;
3412
18.4E
        }
3413
11.5M
        break;
3414
11.5M
      }
3415
3416
      // optional int64 monotonic_counter = 9;
3417
11.5M
      case 9: {
3418
10.9M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3419
10.9M
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
3420
10.9M
          set_has_monotonic_counter();
3421
10.9M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3422
10.9M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
3423
10.9M
                 input, &monotonic_counter_)));
3424
18.4E
        } else {
3425
18.4E
          goto handle_unusual;
3426
18.4E
        }
3427
10.9M
        break;
3428
10.9M
      }
3429
3430
      // optional .yb.tablet.TransactionStatePB transaction_state = 10;
3431
10.9M
      case 10: {
3432
3.04M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3433
3.04M
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
3434
3.04M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3435
3.04M
               input, mutable_transaction_state()));
3436
3.04M
        } else {
3437
4
          goto handle_unusual;
3438
4
        }
3439
3.04M
        break;
3440
3.04M
      }
3441
3442
      // optional .yb.tserver.TabletSnapshotOpRequestPB snapshot_request = 11;
3443
3.04M
      case 11: {
3444
1.15k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3445
1.15k
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
3446
1.15k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3447
1.15k
               input, mutable_snapshot_request()));
3448
1.15k
        } else {
3449
0
          goto handle_unusual;
3450
0
        }
3451
1.15k
        break;
3452
1.15k
      }
3453
3454
      // optional .yb.tablet.TruncatePB truncate = 12;
3455
114k
      case 12: {
3456
114k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3457
114k
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
3458
114k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3459
114k
               input, mutable_truncate()));
3460
18.4E
        } else {
3461
18.4E
          goto handle_unusual;
3462
18.4E
        }
3463
114k
        break;
3464
114k
      }
3465
3466
      // optional .yb.consensus.HistoryCutoffPB history_cutoff = 13;
3467
114k
      case 13: {
3468
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3469
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
3470
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3471
0
               input, mutable_history_cutoff()));
3472
0
        } else {
3473
0
          goto handle_unusual;
3474
0
        }
3475
0
        break;
3476
0
      }
3477
3478
      // optional .yb.tablet.SplitTabletRequestPB split_request = 14;
3479
336
      case 14: {
3480
336
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3481
336
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
3482
336
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3483
336
               input, mutable_split_request()));
3484
336
        } else {
3485
0
          goto handle_unusual;
3486
0
        }
3487
336
        break;
3488
336
      }
3489
3490
      // optional .yb.consensus.NoOpRequestPB noop_request = 999;
3491
131k
      case 999: {
3492
131k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3493
131k
            static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
3494
131k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3495
131k
               input, mutable_noop_request()));
3496
18.4E
        } else {
3497
18.4E
          goto handle_unusual;
3498
18.4E
        }
3499
131k
        break;
3500
131k
      }
3501
3502
131k
      default: {
3503
11.5M
      handle_unusual:
3504
11.5M
        if (
tag == 011.5M
) {
3505
11.5M
          goto success;
3506
11.5M
        }
3507
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3508
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3509
18.4E
        break;
3510
18.4E
      }
3511
68.8M
    }
3512
68.8M
  }
3513
11.5M
success:
3514
  // @@protoc_insertion_point(parse_success:yb.consensus.ReplicateMsg)
3515
11.5M
  return true;
3516
0
failure:
3517
  // @@protoc_insertion_point(parse_failure:yb.consensus.ReplicateMsg)
3518
0
  return false;
3519
11.5M
#undef DO_
3520
11.5M
}
3521
3522
void ReplicateMsg::SerializeWithCachedSizes(
3523
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3524
  // @@protoc_insertion_point(serialize_start:yb.consensus.ReplicateMsg)
3525
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3526
0
  (void) cached_has_bits;
3527
3528
0
  cached_has_bits = _has_bits_[0];
3529
  // required .yb.OpIdPB id = 1;
3530
0
  if (cached_has_bits & 0x00000001u) {
3531
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3532
0
      1, *this->id_, output);
3533
0
  }
3534
3535
  // required fixed64 hybrid_time = 2;
3536
0
  if (cached_has_bits & 0x00000800u) {
3537
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->hybrid_time(), output);
3538
0
  }
3539
3540
  // required .yb.consensus.OperationType op_type = 4;
3541
0
  if (cached_has_bits & 0x00002000u) {
3542
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3543
0
      4, this->op_type(), output);
3544
0
  }
3545
3546
  // optional .yb.tablet.WritePB write = 5;
3547
0
  if (cached_has_bits & 0x00000002u) {
3548
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3549
0
      5, *this->write_, output);
3550
0
  }
3551
3552
  // optional .yb.tablet.ChangeMetadataRequestPB change_metadata_request = 6;
3553
0
  if (cached_has_bits & 0x00000004u) {
3554
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3555
0
      6, *this->change_metadata_request_, output);
3556
0
  }
3557
3558
  // optional .yb.consensus.ChangeConfigRecordPB change_config_record = 7;
3559
0
  if (cached_has_bits & 0x00000008u) {
3560
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3561
0
      7, *this->change_config_record_, output);
3562
0
  }
3563
3564
  // optional .yb.OpIdPB committed_op_id = 8;
3565
0
  if (cached_has_bits & 0x00000010u) {
3566
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3567
0
      8, *this->committed_op_id_, output);
3568
0
  }
3569
3570
  // optional int64 monotonic_counter = 9;
3571
0
  if (cached_has_bits & 0x00001000u) {
3572
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->monotonic_counter(), output);
3573
0
  }
3574
3575
  // optional .yb.tablet.TransactionStatePB transaction_state = 10;
3576
0
  if (cached_has_bits & 0x00000020u) {
3577
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3578
0
      10, *this->transaction_state_, output);
3579
0
  }
3580
3581
  // optional .yb.tserver.TabletSnapshotOpRequestPB snapshot_request = 11;
3582
0
  if (cached_has_bits & 0x00000040u) {
3583
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3584
0
      11, *this->snapshot_request_, output);
3585
0
  }
3586
3587
  // optional .yb.tablet.TruncatePB truncate = 12;
3588
0
  if (cached_has_bits & 0x00000080u) {
3589
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3590
0
      12, *this->truncate_, output);
3591
0
  }
3592
3593
  // optional .yb.consensus.HistoryCutoffPB history_cutoff = 13;
3594
0
  if (cached_has_bits & 0x00000100u) {
3595
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3596
0
      13, *this->history_cutoff_, output);
3597
0
  }
3598
3599
  // optional .yb.tablet.SplitTabletRequestPB split_request = 14;
3600
0
  if (cached_has_bits & 0x00000200u) {
3601
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3602
0
      14, *this->split_request_, output);
3603
0
  }
3604
3605
  // optional .yb.consensus.NoOpRequestPB noop_request = 999;
3606
0
  if (cached_has_bits & 0x00000400u) {
3607
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3608
0
      999, *this->noop_request_, output);
3609
0
  }
3610
3611
0
  if (_internal_metadata_.have_unknown_fields()) {
3612
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3613
0
        _internal_metadata_.unknown_fields(), output);
3614
0
  }
3615
  // @@protoc_insertion_point(serialize_end:yb.consensus.ReplicateMsg)
3616
0
}
3617
3618
::google::protobuf::uint8* ReplicateMsg::InternalSerializeWithCachedSizesToArray(
3619
24.7M
    bool deterministic, ::google::protobuf::uint8* target) const {
3620
24.7M
  (void)deterministic; // Unused
3621
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ReplicateMsg)
3622
24.7M
  ::google::protobuf::uint32 cached_has_bits = 0;
3623
24.7M
  (void) cached_has_bits;
3624
3625
24.7M
  cached_has_bits = _has_bits_[0];
3626
  // required .yb.OpIdPB id = 1;
3627
24.7M
  if (cached_has_bits & 0x00000001u) {
3628
24.7M
    target = ::google::protobuf::internal::WireFormatLite::
3629
24.7M
      InternalWriteMessageToArray(
3630
24.7M
        1, *this->id_, deterministic, target);
3631
24.7M
  }
3632
3633
  // required fixed64 hybrid_time = 2;
3634
24.7M
  if (cached_has_bits & 0x00000800u) {
3635
24.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->hybrid_time(), target);
3636
24.7M
  }
3637
3638
  // required .yb.consensus.OperationType op_type = 4;
3639
24.7M
  if (cached_has_bits & 0x00002000u) {
3640
24.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3641
24.7M
      4, this->op_type(), target);
3642
24.7M
  }
3643
3644
  // optional .yb.tablet.WritePB write = 5;
3645
24.7M
  if (cached_has_bits & 0x00000002u) {
3646
14.7M
    target = ::google::protobuf::internal::WireFormatLite::
3647
14.7M
      InternalWriteMessageToArray(
3648
14.7M
        5, *this->write_, deterministic, target);
3649
14.7M
  }
3650
3651
  // optional .yb.tablet.ChangeMetadataRequestPB change_metadata_request = 6;
3652
24.7M
  if (cached_has_bits & 0x00000004u) {
3653
1.75M
    target = ::google::protobuf::internal::WireFormatLite::
3654
1.75M
      InternalWriteMessageToArray(
3655
1.75M
        6, *this->change_metadata_request_, deterministic, target);
3656
1.75M
  }
3657
3658
  // optional .yb.consensus.ChangeConfigRecordPB change_config_record = 7;
3659
24.7M
  if (cached_has_bits & 0x00000008u) {
3660
33.5k
    target = ::google::protobuf::internal::WireFormatLite::
3661
33.5k
      InternalWriteMessageToArray(
3662
33.5k
        7, *this->change_config_record_, deterministic, target);
3663
33.5k
  }
3664
3665
  // optional .yb.OpIdPB committed_op_id = 8;
3666
24.7M
  if (cached_has_bits & 0x00000010u) {
3667
24.5M
    target = ::google::protobuf::internal::WireFormatLite::
3668
24.5M
      InternalWriteMessageToArray(
3669
24.5M
        8, *this->committed_op_id_, deterministic, target);
3670
24.5M
  }
3671
3672
  // optional int64 monotonic_counter = 9;
3673
24.7M
  if (cached_has_bits & 0x00001000u) {
3674
23.6M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->monotonic_counter(), target);
3675
23.6M
  }
3676
3677
  // optional .yb.tablet.TransactionStatePB transaction_state = 10;
3678
24.7M
  if (cached_has_bits & 0x00000020u) {
3679
7.55M
    target = ::google::protobuf::internal::WireFormatLite::
3680
7.55M
      InternalWriteMessageToArray(
3681
7.55M
        10, *this->transaction_state_, deterministic, target);
3682
7.55M
  }
3683
3684
  // optional .yb.tserver.TabletSnapshotOpRequestPB snapshot_request = 11;
3685
24.7M
  if (cached_has_bits & 0x00000040u) {
3686
3.13k
    target = ::google::protobuf::internal::WireFormatLite::
3687
3.13k
      InternalWriteMessageToArray(
3688
3.13k
        11, *this->snapshot_request_, deterministic, target);
3689
3.13k
  }
3690
3691
  // optional .yb.tablet.TruncatePB truncate = 12;
3692
24.7M
  if (cached_has_bits & 0x00000080u) {
3693
285k
    target = ::google::protobuf::internal::WireFormatLite::
3694
285k
      InternalWriteMessageToArray(
3695
285k
        12, *this->truncate_, deterministic, target);
3696
285k
  }
3697
3698
  // optional .yb.consensus.HistoryCutoffPB history_cutoff = 13;
3699
24.7M
  if (cached_has_bits & 0x00000100u) {
3700
0
    target = ::google::protobuf::internal::WireFormatLite::
3701
0
      InternalWriteMessageToArray(
3702
0
        13, *this->history_cutoff_, deterministic, target);
3703
0
  }
3704
3705
  // optional .yb.tablet.SplitTabletRequestPB split_request = 14;
3706
24.7M
  if (cached_has_bits & 0x00000200u) {
3707
94
    target = ::google::protobuf::internal::WireFormatLite::
3708
94
      InternalWriteMessageToArray(
3709
94
        14, *this->split_request_, deterministic, target);
3710
94
  }
3711
3712
  // optional .yb.consensus.NoOpRequestPB noop_request = 999;
3713
24.7M
  if (cached_has_bits & 0x00000400u) {
3714
300k
    target = ::google::protobuf::internal::WireFormatLite::
3715
300k
      InternalWriteMessageToArray(
3716
300k
        999, *this->noop_request_, deterministic, target);
3717
300k
  }
3718
3719
24.7M
  if (_internal_metadata_.have_unknown_fields()) {
3720
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3721
0
        _internal_metadata_.unknown_fields(), target);
3722
0
  }
3723
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ReplicateMsg)
3724
24.7M
  return target;
3725
24.7M
}
3726
3727
38
size_t ReplicateMsg::RequiredFieldsByteSizeFallback() const {
3728
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.ReplicateMsg)
3729
38
  size_t total_size = 0;
3730
3731
38
  if (has_id()) {
3732
    // required .yb.OpIdPB id = 1;
3733
38
    total_size += 1 +
3734
38
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3735
38
        *this->id_);
3736
38
  }
3737
3738
38
  if (has_hybrid_time()) {
3739
    // required fixed64 hybrid_time = 2;
3740
0
    total_size += 1 + 8;
3741
0
  }
3742
3743
38
  if (has_op_type()) {
3744
    // required .yb.consensus.OperationType op_type = 4;
3745
0
    total_size += 1 +
3746
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op_type());
3747
0
  }
3748
3749
38
  return total_size;
3750
38
}
3751
58.9M
size_t ReplicateMsg::ByteSizeLong() const {
3752
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ReplicateMsg)
3753
58.9M
  size_t total_size = 0;
3754
3755
58.9M
  if (_internal_metadata_.have_unknown_fields()) {
3756
0
    total_size +=
3757
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3758
0
        _internal_metadata_.unknown_fields());
3759
0
  }
3760
58.9M
  if (((_has_bits_[0] & 0x00002801) ^ 0x00002801) == 0) {  // All required fields are present.
3761
    // required .yb.OpIdPB id = 1;
3762
58.9M
    total_size += 1 +
3763
58.9M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3764
58.9M
        *this->id_);
3765
3766
    // required fixed64 hybrid_time = 2;
3767
58.9M
    total_size += 1 + 8;
3768
3769
    // required .yb.consensus.OperationType op_type = 4;
3770
58.9M
    total_size += 1 +
3771
58.9M
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op_type());
3772
3773
58.9M
  } else {
3774
782
    total_size += RequiredFieldsByteSizeFallback();
3775
782
  }
3776
58.9M
  if (_has_bits_[0 / 32] & 254u) {
3777
    // optional .yb.tablet.WritePB write = 5;
3778
58.5M
    if (has_write()) {
3779
34.9M
      total_size += 1 +
3780
34.9M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3781
34.9M
          *this->write_);
3782
34.9M
    }
3783
3784
    // optional .yb.tablet.ChangeMetadataRequestPB change_metadata_request = 6;
3785
58.5M
    if (has_change_metadata_request()) {
3786
4.15M
      total_size += 1 +
3787
4.15M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3788
4.15M
          *this->change_metadata_request_);
3789
4.15M
    }
3790
3791
    // optional .yb.consensus.ChangeConfigRecordPB change_config_record = 7;
3792
58.5M
    if (has_change_config_record()) {
3793
81.0k
      total_size += 1 +
3794
81.0k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3795
81.0k
          *this->change_config_record_);
3796
81.0k
    }
3797
3798
    // optional .yb.OpIdPB committed_op_id = 8;
3799
58.5M
    if (has_committed_op_id()) {
3800
58.5M
      total_size += 1 +
3801
58.5M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3802
58.5M
          *this->committed_op_id_);
3803
58.5M
    }
3804
3805
    // optional .yb.tablet.TransactionStatePB transaction_state = 10;
3806
58.5M
    if (has_transaction_state()) {
3807
18.0M
      total_size += 1 +
3808
18.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3809
18.0M
          *this->transaction_state_);
3810
18.0M
    }
3811
3812
    // optional .yb.tserver.TabletSnapshotOpRequestPB snapshot_request = 11;
3813
58.5M
    if (has_snapshot_request()) {
3814
7.41k
      total_size += 1 +
3815
7.41k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3816
7.41k
          *this->snapshot_request_);
3817
7.41k
    }
3818
3819
    // optional .yb.tablet.TruncatePB truncate = 12;
3820
58.5M
    if (has_truncate()) {
3821
684k
      total_size += 1 +
3822
684k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3823
684k
          *this->truncate_);
3824
684k
    }
3825
3826
58.5M
  }
3827
58.9M
  if (_has_bits_[8 / 32] & 1792u) {
3828
    // optional .yb.consensus.HistoryCutoffPB history_cutoff = 13;
3829
720k
    if (has_history_cutoff()) {
3830
0
      total_size += 1 +
3831
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3832
0
          *this->history_cutoff_);
3833
0
    }
3834
3835
    // optional .yb.tablet.SplitTabletRequestPB split_request = 14;
3836
720k
    if (has_split_request()) {
3837
215
      total_size += 1 +
3838
215
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3839
215
          *this->split_request_);
3840
215
    }
3841
3842
    // optional .yb.consensus.NoOpRequestPB noop_request = 999;
3843
720k
    if (has_noop_request()) {
3844
720k
      total_size += 2 +
3845
720k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3846
720k
          *this->noop_request_);
3847
720k
    }
3848
3849
720k
  }
3850
  // optional int64 monotonic_counter = 9;
3851
58.9M
  if (has_monotonic_counter()) {
3852
56.5M
    total_size += 1 +
3853
56.5M
      ::google::protobuf::internal::WireFormatLite::Int64Size(
3854
56.5M
        this->monotonic_counter());
3855
56.5M
  }
3856
3857
58.9M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3858
58.9M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3859
58.9M
  _cached_size_ = cached_size;
3860
58.9M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3861
58.9M
  return total_size;
3862
58.9M
}
3863
3864
0
void ReplicateMsg::MergeFrom(const ::google::protobuf::Message& from) {
3865
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ReplicateMsg)
3866
0
  GOOGLE_DCHECK_NE(&from, this);
3867
0
  const ReplicateMsg* source =
3868
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReplicateMsg>(
3869
0
          &from);
3870
0
  if (source == NULL) {
3871
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ReplicateMsg)
3872
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3873
0
  } else {
3874
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ReplicateMsg)
3875
0
    MergeFrom(*source);
3876
0
  }
3877
0
}
3878
3879
863
void ReplicateMsg::MergeFrom(const ReplicateMsg& from) {
3880
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ReplicateMsg)
3881
863
  GOOGLE_DCHECK_NE(&from, this);
3882
863
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3883
863
  ::google::protobuf::uint32 cached_has_bits = 0;
3884
863
  (void) cached_has_bits;
3885
3886
863
  cached_has_bits = from._has_bits_[0];
3887
863
  if (cached_has_bits & 255u) {
3888
863
    if (cached_has_bits & 0x00000001u) {
3889
863
      mutable_id()->::yb::OpIdPB::MergeFrom(from.id());
3890
863
    }
3891
863
    if (cached_has_bits & 0x00000002u) {
3892
0
      mutable_write()->::yb::tablet::WritePB::MergeFrom(from.write());
3893
0
    }
3894
863
    if (cached_has_bits & 0x00000004u) {
3895
0
      mutable_change_metadata_request()->::yb::tablet::ChangeMetadataRequestPB::MergeFrom(from.change_metadata_request());
3896
0
    }
3897
863
    if (cached_has_bits & 0x00000008u) {
3898
0
      mutable_change_config_record()->::yb::consensus::ChangeConfigRecordPB::MergeFrom(from.change_config_record());
3899
0
    }
3900
863
    if (cached_has_bits & 0x00000010u) {
3901
862
      mutable_committed_op_id()->::yb::OpIdPB::MergeFrom(from.committed_op_id());
3902
862
    }
3903
863
    if (cached_has_bits & 0x00000020u) {
3904
0
      mutable_transaction_state()->::yb::tablet::TransactionStatePB::MergeFrom(from.transaction_state());
3905
0
    }
3906
863
    if (cached_has_bits & 0x00000040u) {
3907
0
      mutable_snapshot_request()->::yb::tserver::TabletSnapshotOpRequestPB::MergeFrom(from.snapshot_request());
3908
0
    }
3909
863
    if (cached_has_bits & 0x00000080u) {
3910
0
      mutable_truncate()->::yb::tablet::TruncatePB::MergeFrom(from.truncate());
3911
0
    }
3912
863
  }
3913
863
  if (cached_has_bits & 16128u) {
3914
862
    if (cached_has_bits & 0x00000100u) {
3915
0
      mutable_history_cutoff()->::yb::consensus::HistoryCutoffPB::MergeFrom(from.history_cutoff());
3916
0
    }
3917
862
    if (cached_has_bits & 0x00000200u) {
3918
0
      mutable_split_request()->::yb::tablet::SplitTabletRequestPB::MergeFrom(from.split_request());
3919
0
    }
3920
862
    if (cached_has_bits & 0x00000400u) {
3921
862
      mutable_noop_request()->::yb::consensus::NoOpRequestPB::MergeFrom(from.noop_request());
3922
862
    }
3923
863
    if (
cached_has_bits & 0x00000800u862
) {
3924
863
      hybrid_time_ = from.hybrid_time_;
3925
863
    }
3926
862
    if (cached_has_bits & 0x00001000u) {
3927
0
      monotonic_counter_ = from.monotonic_counter_;
3928
0
    }
3929
862
    if (cached_has_bits & 0x00002000u) {
3930
862
      op_type_ = from.op_type_;
3931
862
    }
3932
862
    _has_bits_[0] |= cached_has_bits;
3933
862
  }
3934
863
}
3935
3936
0
void ReplicateMsg::CopyFrom(const ::google::protobuf::Message& from) {
3937
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ReplicateMsg)
3938
0
  if (&from == this) return;
3939
0
  Clear();
3940
0
  MergeFrom(from);
3941
0
}
3942
3943
0
void ReplicateMsg::CopyFrom(const ReplicateMsg& from) {
3944
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ReplicateMsg)
3945
0
  if (&from == this) return;
3946
0
  Clear();
3947
0
  MergeFrom(from);
3948
0
}
3949
3950
65.7M
bool ReplicateMsg::IsInitialized() const {
3951
65.7M
  if ((_has_bits_[0] & 0x00002801) != 0x00002801) 
return false0
;
3952
65.7M
  if (has_id()) {
3953
65.7M
    if (!this->id_->IsInitialized()) 
return false0
;
3954
65.7M
  }
3955
65.7M
  if (has_change_metadata_request()) {
3956
4.60M
    if (!this->change_metadata_request_->IsInitialized()) 
return false0
;
3957
4.60M
  }
3958
65.7M
  if (has_change_config_record()) {
3959
106k
    if (!this->change_config_record_->IsInitialized()) 
return false0
;
3960
106k
  }
3961
65.7M
  if (has_committed_op_id()) {
3962
65.2M
    if (!this->committed_op_id_->IsInitialized()) 
return false0
;
3963
65.2M
  }
3964
65.7M
  if (has_snapshot_request()) {
3965
8.23k
    if (!this->snapshot_request_->IsInitialized()) 
return false0
;
3966
8.23k
  }
3967
65.7M
  if (has_split_request()) {
3968
843
    if (!this->split_request_->IsInitialized()) 
return false0
;
3969
843
  }
3970
65.7M
  return true;
3971
65.7M
}
3972
3973
0
void ReplicateMsg::Swap(ReplicateMsg* other) {
3974
0
  if (other == this) return;
3975
0
  InternalSwap(other);
3976
0
}
3977
0
void ReplicateMsg::InternalSwap(ReplicateMsg* other) {
3978
0
  using std::swap;
3979
0
  swap(id_, other->id_);
3980
0
  swap(write_, other->write_);
3981
0
  swap(change_metadata_request_, other->change_metadata_request_);
3982
0
  swap(change_config_record_, other->change_config_record_);
3983
0
  swap(committed_op_id_, other->committed_op_id_);
3984
0
  swap(transaction_state_, other->transaction_state_);
3985
0
  swap(snapshot_request_, other->snapshot_request_);
3986
0
  swap(truncate_, other->truncate_);
3987
0
  swap(history_cutoff_, other->history_cutoff_);
3988
0
  swap(split_request_, other->split_request_);
3989
0
  swap(noop_request_, other->noop_request_);
3990
0
  swap(hybrid_time_, other->hybrid_time_);
3991
0
  swap(monotonic_counter_, other->monotonic_counter_);
3992
0
  swap(op_type_, other->op_type_);
3993
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3994
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3995
0
  swap(_cached_size_, other->_cached_size_);
3996
0
}
3997
3998
38.4M
::google::protobuf::Metadata ReplicateMsg::GetMetadata() const {
3999
38.4M
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4000
38.4M
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
4001
38.4M
}
4002
4003
4004
// ===================================================================
4005
4006
26.8k
void NoOpRequestPB::InitAsDefaultInstance() {
4007
26.8k
}
4008
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4009
const int NoOpRequestPB::kPayloadForTestsFieldNumber;
4010
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4011
4012
NoOpRequestPB::NoOpRequestPB()
4013
222k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4014
222k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4015
194k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsNoOpRequestPB();
4016
194k
  }
4017
222k
  SharedCtor();
4018
  // @@protoc_insertion_point(constructor:yb.consensus.NoOpRequestPB)
4019
222k
}
4020
NoOpRequestPB::NoOpRequestPB(const NoOpRequestPB& from)
4021
  : ::google::protobuf::Message(),
4022
      _internal_metadata_(NULL),
4023
      _has_bits_(from._has_bits_),
4024
1
      _cached_size_(0) {
4025
1
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4026
1
  payload_for_tests_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4027
1
  if (from.has_payload_for_tests()) {
4028
0
    payload_for_tests_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_for_tests_);
4029
0
  }
4030
  // @@protoc_insertion_point(copy_constructor:yb.consensus.NoOpRequestPB)
4031
1
}
4032
4033
221k
void NoOpRequestPB::SharedCtor() {
4034
221k
  _cached_size_ = 0;
4035
221k
  payload_for_tests_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4036
221k
}
4037
4038
195k
NoOpRequestPB::~NoOpRequestPB() {
4039
  // @@protoc_insertion_point(destructor:yb.consensus.NoOpRequestPB)
4040
195k
  SharedDtor();
4041
195k
}
4042
4043
195k
void NoOpRequestPB::SharedDtor() {
4044
195k
  payload_for_tests_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4045
195k
}
4046
4047
0
void NoOpRequestPB::SetCachedSize(int size) const {
4048
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4049
0
  _cached_size_ = size;
4050
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4051
0
}
4052
0
const ::google::protobuf::Descriptor* NoOpRequestPB::descriptor() {
4053
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4054
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4055
0
}
4056
4057
0
const NoOpRequestPB& NoOpRequestPB::default_instance() {
4058
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsNoOpRequestPB();
4059
0
  return *internal_default_instance();
4060
0
}
4061
4062
0
NoOpRequestPB* NoOpRequestPB::New(::google::protobuf::Arena* arena) const {
4063
0
  NoOpRequestPB* n = new NoOpRequestPB;
4064
0
  if (arena != NULL) {
4065
0
    arena->Own(n);
4066
0
  }
4067
0
  return n;
4068
0
}
4069
4070
48
void NoOpRequestPB::Clear() {
4071
// @@protoc_insertion_point(message_clear_start:yb.consensus.NoOpRequestPB)
4072
48
  ::google::protobuf::uint32 cached_has_bits = 0;
4073
  // Prevent compiler warnings about cached_has_bits being unused
4074
48
  (void) cached_has_bits;
4075
4076
48
  cached_has_bits = _has_bits_[0];
4077
48
  if (cached_has_bits & 0x00000001u) {
4078
0
    GOOGLE_DCHECK(!payload_for_tests_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4079
0
    (*payload_for_tests_.UnsafeRawStringPointer())->clear();
4080
0
  }
4081
48
  _has_bits_.Clear();
4082
48
  _internal_metadata_.Clear();
4083
48
}
4084
4085
bool NoOpRequestPB::MergePartialFromCodedStream(
4086
131k
    ::google::protobuf::io::CodedInputStream* input) {
4087
131k
#define DO_(EXPRESSION) 
if (301
!GOOGLE_PREDICT_TRUE301
(EXPRESSION))
goto failure0
4088
131k
  ::google::protobuf::uint32 tag;
4089
  // @@protoc_insertion_point(parse_start:yb.consensus.NoOpRequestPB)
4090
131k
  for (;;) {
4091
131k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4092
131k
    tag = p.first;
4093
131k
    if (!p.second) 
goto handle_unusual131k
;
4094
400
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4095
      // optional bytes payload_for_tests = 1;
4096
313
      case 1: {
4097
313
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4098
313
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4099
313
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4100
313
                input, this->mutable_payload_for_tests()));
4101
313
        } else {
4102
0
          goto handle_unusual;
4103
0
        }
4104
313
        break;
4105
313
      }
4106
4107
313
      default: {
4108
131k
      handle_unusual:
4109
131k
        if (
tag == 0131k
) {
4110
131k
          goto success;
4111
131k
        }
4112
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4113
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4114
18.4E
        break;
4115
18.4E
      }
4116
400
    }
4117
400
  }
4118
131k
success:
4119
  // @@protoc_insertion_point(parse_success:yb.consensus.NoOpRequestPB)
4120
131k
  return true;
4121
0
failure:
4122
  // @@protoc_insertion_point(parse_failure:yb.consensus.NoOpRequestPB)
4123
0
  return false;
4124
131k
#undef DO_
4125
131k
}
4126
4127
void NoOpRequestPB::SerializeWithCachedSizes(
4128
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4129
  // @@protoc_insertion_point(serialize_start:yb.consensus.NoOpRequestPB)
4130
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4131
0
  (void) cached_has_bits;
4132
4133
0
  cached_has_bits = _has_bits_[0];
4134
  // optional bytes payload_for_tests = 1;
4135
0
  if (cached_has_bits & 0x00000001u) {
4136
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4137
0
      1, this->payload_for_tests(), output);
4138
0
  }
4139
4140
0
  if (_internal_metadata_.have_unknown_fields()) {
4141
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4142
0
        _internal_metadata_.unknown_fields(), output);
4143
0
  }
4144
  // @@protoc_insertion_point(serialize_end:yb.consensus.NoOpRequestPB)
4145
0
}
4146
4147
::google::protobuf::uint8* NoOpRequestPB::InternalSerializeWithCachedSizesToArray(
4148
300k
    bool deterministic, ::google::protobuf::uint8* target) const {
4149
300k
  (void)deterministic; // Unused
4150
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.NoOpRequestPB)
4151
300k
  ::google::protobuf::uint32 cached_has_bits = 0;
4152
300k
  (void) cached_has_bits;
4153
4154
300k
  cached_has_bits = _has_bits_[0];
4155
  // optional bytes payload_for_tests = 1;
4156
300k
  if (cached_has_bits & 0x00000001u) {
4157
943
    target =
4158
943
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4159
943
        1, this->payload_for_tests(), target);
4160
943
  }
4161
4162
300k
  if (_internal_metadata_.have_unknown_fields()) {
4163
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4164
0
        _internal_metadata_.unknown_fields(), target);
4165
0
  }
4166
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.NoOpRequestPB)
4167
300k
  return target;
4168
300k
}
4169
4170
721k
size_t NoOpRequestPB::ByteSizeLong() const {
4171
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.NoOpRequestPB)
4172
721k
  size_t total_size = 0;
4173
4174
721k
  if (_internal_metadata_.have_unknown_fields()) {
4175
0
    total_size +=
4176
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4177
0
        _internal_metadata_.unknown_fields());
4178
0
  }
4179
  // optional bytes payload_for_tests = 1;
4180
721k
  if (has_payload_for_tests()) {
4181
2.80k
    total_size += 1 +
4182
2.80k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
4183
2.80k
        this->payload_for_tests());
4184
2.80k
  }
4185
4186
721k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4187
721k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4188
721k
  _cached_size_ = cached_size;
4189
721k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4190
721k
  return total_size;
4191
721k
}
4192
4193
0
void NoOpRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
4194
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.NoOpRequestPB)
4195
0
  GOOGLE_DCHECK_NE(&from, this);
4196
0
  const NoOpRequestPB* source =
4197
0
      ::google::protobuf::internal::DynamicCastToGenerated<const NoOpRequestPB>(
4198
0
          &from);
4199
0
  if (source == NULL) {
4200
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.NoOpRequestPB)
4201
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4202
0
  } else {
4203
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.NoOpRequestPB)
4204
0
    MergeFrom(*source);
4205
0
  }
4206
0
}
4207
4208
862
void NoOpRequestPB::MergeFrom(const NoOpRequestPB& from) {
4209
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.NoOpRequestPB)
4210
862
  GOOGLE_DCHECK_NE(&from, this);
4211
862
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4212
862
  ::google::protobuf::uint32 cached_has_bits = 0;
4213
862
  (void) cached_has_bits;
4214
4215
862
  if (from.has_payload_for_tests()) {
4216
0
    set_has_payload_for_tests();
4217
0
    payload_for_tests_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_for_tests_);
4218
0
  }
4219
862
}
4220
4221
0
void NoOpRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
4222
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.NoOpRequestPB)
4223
0
  if (&from == this) return;
4224
0
  Clear();
4225
0
  MergeFrom(from);
4226
0
}
4227
4228
0
void NoOpRequestPB::CopyFrom(const NoOpRequestPB& from) {
4229
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.NoOpRequestPB)
4230
0
  if (&from == this) return;
4231
0
  Clear();
4232
0
  MergeFrom(from);
4233
0
}
4234
4235
0
bool NoOpRequestPB::IsInitialized() const {
4236
0
  return true;
4237
0
}
4238
4239
0
void NoOpRequestPB::Swap(NoOpRequestPB* other) {
4240
0
  if (other == this) return;
4241
0
  InternalSwap(other);
4242
0
}
4243
0
void NoOpRequestPB::InternalSwap(NoOpRequestPB* other) {
4244
0
  using std::swap;
4245
0
  payload_for_tests_.Swap(&other->payload_for_tests_);
4246
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4247
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4248
0
  swap(_cached_size_, other->_cached_size_);
4249
0
}
4250
4251
302k
::google::protobuf::Metadata NoOpRequestPB::GetMetadata() const {
4252
302k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4253
302k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
4254
302k
}
4255
4256
4257
// ===================================================================
4258
4259
26.8k
void NoOpResponsePB::InitAsDefaultInstance() {
4260
26.8k
}
4261
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4262
const int NoOpResponsePB::kPayloadForTestsFieldNumber;
4263
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4264
4265
NoOpResponsePB::NoOpResponsePB()
4266
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4267
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4268
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsNoOpResponsePB();
4269
0
  }
4270
26.8k
  SharedCtor();
4271
  // @@protoc_insertion_point(constructor:yb.consensus.NoOpResponsePB)
4272
26.8k
}
4273
NoOpResponsePB::NoOpResponsePB(const NoOpResponsePB& from)
4274
  : ::google::protobuf::Message(),
4275
      _internal_metadata_(NULL),
4276
      _has_bits_(from._has_bits_),
4277
0
      _cached_size_(0) {
4278
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4279
0
  payload_for_tests_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4280
0
  if (from.has_payload_for_tests()) {
4281
0
    payload_for_tests_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_for_tests_);
4282
0
  }
4283
  // @@protoc_insertion_point(copy_constructor:yb.consensus.NoOpResponsePB)
4284
0
}
4285
4286
26.8k
void NoOpResponsePB::SharedCtor() {
4287
26.8k
  _cached_size_ = 0;
4288
26.8k
  payload_for_tests_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4289
26.8k
}
4290
4291
0
NoOpResponsePB::~NoOpResponsePB() {
4292
  // @@protoc_insertion_point(destructor:yb.consensus.NoOpResponsePB)
4293
0
  SharedDtor();
4294
0
}
4295
4296
0
void NoOpResponsePB::SharedDtor() {
4297
0
  payload_for_tests_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4298
0
}
4299
4300
0
void NoOpResponsePB::SetCachedSize(int size) const {
4301
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4302
0
  _cached_size_ = size;
4303
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4304
0
}
4305
0
const ::google::protobuf::Descriptor* NoOpResponsePB::descriptor() {
4306
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4307
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4308
0
}
4309
4310
0
const NoOpResponsePB& NoOpResponsePB::default_instance() {
4311
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsNoOpResponsePB();
4312
0
  return *internal_default_instance();
4313
0
}
4314
4315
0
NoOpResponsePB* NoOpResponsePB::New(::google::protobuf::Arena* arena) const {
4316
0
  NoOpResponsePB* n = new NoOpResponsePB;
4317
0
  if (arena != NULL) {
4318
0
    arena->Own(n);
4319
0
  }
4320
0
  return n;
4321
0
}
4322
4323
0
void NoOpResponsePB::Clear() {
4324
// @@protoc_insertion_point(message_clear_start:yb.consensus.NoOpResponsePB)
4325
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4326
  // Prevent compiler warnings about cached_has_bits being unused
4327
0
  (void) cached_has_bits;
4328
4329
0
  cached_has_bits = _has_bits_[0];
4330
0
  if (cached_has_bits & 0x00000001u) {
4331
0
    GOOGLE_DCHECK(!payload_for_tests_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4332
0
    (*payload_for_tests_.UnsafeRawStringPointer())->clear();
4333
0
  }
4334
0
  _has_bits_.Clear();
4335
0
  _internal_metadata_.Clear();
4336
0
}
4337
4338
bool NoOpResponsePB::MergePartialFromCodedStream(
4339
0
    ::google::protobuf::io::CodedInputStream* input) {
4340
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4341
0
  ::google::protobuf::uint32 tag;
4342
  // @@protoc_insertion_point(parse_start:yb.consensus.NoOpResponsePB)
4343
0
  for (;;) {
4344
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4345
0
    tag = p.first;
4346
0
    if (!p.second) goto handle_unusual;
4347
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4348
      // optional bytes payload_for_tests = 1;
4349
0
      case 1: {
4350
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4351
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4352
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4353
0
                input, this->mutable_payload_for_tests()));
4354
0
        } else {
4355
0
          goto handle_unusual;
4356
0
        }
4357
0
        break;
4358
0
      }
4359
4360
0
      default: {
4361
0
      handle_unusual:
4362
0
        if (tag == 0) {
4363
0
          goto success;
4364
0
        }
4365
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4366
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4367
0
        break;
4368
0
      }
4369
0
    }
4370
0
  }
4371
0
success:
4372
  // @@protoc_insertion_point(parse_success:yb.consensus.NoOpResponsePB)
4373
0
  return true;
4374
0
failure:
4375
  // @@protoc_insertion_point(parse_failure:yb.consensus.NoOpResponsePB)
4376
0
  return false;
4377
0
#undef DO_
4378
0
}
4379
4380
void NoOpResponsePB::SerializeWithCachedSizes(
4381
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4382
  // @@protoc_insertion_point(serialize_start:yb.consensus.NoOpResponsePB)
4383
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4384
0
  (void) cached_has_bits;
4385
4386
0
  cached_has_bits = _has_bits_[0];
4387
  // optional bytes payload_for_tests = 1;
4388
0
  if (cached_has_bits & 0x00000001u) {
4389
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4390
0
      1, this->payload_for_tests(), output);
4391
0
  }
4392
4393
0
  if (_internal_metadata_.have_unknown_fields()) {
4394
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4395
0
        _internal_metadata_.unknown_fields(), output);
4396
0
  }
4397
  // @@protoc_insertion_point(serialize_end:yb.consensus.NoOpResponsePB)
4398
0
}
4399
4400
::google::protobuf::uint8* NoOpResponsePB::InternalSerializeWithCachedSizesToArray(
4401
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4402
0
  (void)deterministic; // Unused
4403
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.NoOpResponsePB)
4404
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4405
0
  (void) cached_has_bits;
4406
4407
0
  cached_has_bits = _has_bits_[0];
4408
  // optional bytes payload_for_tests = 1;
4409
0
  if (cached_has_bits & 0x00000001u) {
4410
0
    target =
4411
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4412
0
        1, this->payload_for_tests(), target);
4413
0
  }
4414
4415
0
  if (_internal_metadata_.have_unknown_fields()) {
4416
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4417
0
        _internal_metadata_.unknown_fields(), target);
4418
0
  }
4419
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.NoOpResponsePB)
4420
0
  return target;
4421
0
}
4422
4423
0
size_t NoOpResponsePB::ByteSizeLong() const {
4424
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.NoOpResponsePB)
4425
0
  size_t total_size = 0;
4426
4427
0
  if (_internal_metadata_.have_unknown_fields()) {
4428
0
    total_size +=
4429
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4430
0
        _internal_metadata_.unknown_fields());
4431
0
  }
4432
  // optional bytes payload_for_tests = 1;
4433
0
  if (has_payload_for_tests()) {
4434
0
    total_size += 1 +
4435
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
4436
0
        this->payload_for_tests());
4437
0
  }
4438
4439
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4440
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4441
0
  _cached_size_ = cached_size;
4442
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4443
0
  return total_size;
4444
0
}
4445
4446
0
void NoOpResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4447
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.NoOpResponsePB)
4448
0
  GOOGLE_DCHECK_NE(&from, this);
4449
0
  const NoOpResponsePB* source =
4450
0
      ::google::protobuf::internal::DynamicCastToGenerated<const NoOpResponsePB>(
4451
0
          &from);
4452
0
  if (source == NULL) {
4453
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.NoOpResponsePB)
4454
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4455
0
  } else {
4456
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.NoOpResponsePB)
4457
0
    MergeFrom(*source);
4458
0
  }
4459
0
}
4460
4461
0
void NoOpResponsePB::MergeFrom(const NoOpResponsePB& from) {
4462
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.NoOpResponsePB)
4463
0
  GOOGLE_DCHECK_NE(&from, this);
4464
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4465
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4466
0
  (void) cached_has_bits;
4467
4468
0
  if (from.has_payload_for_tests()) {
4469
0
    set_has_payload_for_tests();
4470
0
    payload_for_tests_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payload_for_tests_);
4471
0
  }
4472
0
}
4473
4474
0
void NoOpResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4475
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.NoOpResponsePB)
4476
0
  if (&from == this) return;
4477
0
  Clear();
4478
0
  MergeFrom(from);
4479
0
}
4480
4481
0
void NoOpResponsePB::CopyFrom(const NoOpResponsePB& from) {
4482
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.NoOpResponsePB)
4483
0
  if (&from == this) return;
4484
0
  Clear();
4485
0
  MergeFrom(from);
4486
0
}
4487
4488
0
bool NoOpResponsePB::IsInitialized() const {
4489
0
  return true;
4490
0
}
4491
4492
0
void NoOpResponsePB::Swap(NoOpResponsePB* other) {
4493
0
  if (other == this) return;
4494
0
  InternalSwap(other);
4495
0
}
4496
0
void NoOpResponsePB::InternalSwap(NoOpResponsePB* other) {
4497
0
  using std::swap;
4498
0
  payload_for_tests_.Swap(&other->payload_for_tests_);
4499
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4500
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4501
0
  swap(_cached_size_, other->_cached_size_);
4502
0
}
4503
4504
0
::google::protobuf::Metadata NoOpResponsePB::GetMetadata() const {
4505
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4506
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
4507
0
}
4508
4509
4510
// ===================================================================
4511
4512
26.8k
void PerOpErrorPB::InitAsDefaultInstance() {
4513
26.8k
  ::yb::consensus::_PerOpErrorPB_default_instance_._instance.get_mutable()->id_ = const_cast< ::yb::OpIdPB*>(
4514
26.8k
      ::yb::OpIdPB::internal_default_instance());
4515
26.8k
  ::yb::consensus::_PerOpErrorPB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>(
4516
26.8k
      ::yb::AppStatusPB::internal_default_instance());
4517
26.8k
}
4518
0
void PerOpErrorPB::clear_id() {
4519
0
  if (id_ != NULL) id_->Clear();
4520
0
  clear_has_id();
4521
0
}
4522
0
void PerOpErrorPB::clear_status() {
4523
0
  if (status_ != NULL) status_->Clear();
4524
0
  clear_has_status();
4525
0
}
4526
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4527
const int PerOpErrorPB::kIdFieldNumber;
4528
const int PerOpErrorPB::kStatusFieldNumber;
4529
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4530
4531
PerOpErrorPB::PerOpErrorPB()
4532
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4533
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4534
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsPerOpErrorPB();
4535
0
  }
4536
26.8k
  SharedCtor();
4537
  // @@protoc_insertion_point(constructor:yb.consensus.PerOpErrorPB)
4538
26.8k
}
4539
PerOpErrorPB::PerOpErrorPB(const PerOpErrorPB& from)
4540
  : ::google::protobuf::Message(),
4541
      _internal_metadata_(NULL),
4542
      _has_bits_(from._has_bits_),
4543
0
      _cached_size_(0) {
4544
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4545
0
  if (from.has_id()) {
4546
0
    id_ = new ::yb::OpIdPB(*from.id_);
4547
0
  } else {
4548
0
    id_ = NULL;
4549
0
  }
4550
0
  if (from.has_status()) {
4551
0
    status_ = new ::yb::AppStatusPB(*from.status_);
4552
0
  } else {
4553
0
    status_ = NULL;
4554
0
  }
4555
  // @@protoc_insertion_point(copy_constructor:yb.consensus.PerOpErrorPB)
4556
0
}
4557
4558
26.8k
void PerOpErrorPB::SharedCtor() {
4559
26.8k
  _cached_size_ = 0;
4560
26.8k
  ::memset(&id_, 0, static_cast<size_t>(
4561
26.8k
      reinterpret_cast<char*>(&status_) -
4562
26.8k
      reinterpret_cast<char*>(&id_)) + sizeof(status_));
4563
26.8k
}
4564
4565
0
PerOpErrorPB::~PerOpErrorPB() {
4566
  // @@protoc_insertion_point(destructor:yb.consensus.PerOpErrorPB)
4567
0
  SharedDtor();
4568
0
}
4569
4570
0
void PerOpErrorPB::SharedDtor() {
4571
0
  if (this != internal_default_instance()) delete id_;
4572
0
  if (this != internal_default_instance()) delete status_;
4573
0
}
4574
4575
0
void PerOpErrorPB::SetCachedSize(int size) const {
4576
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4577
0
  _cached_size_ = size;
4578
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4579
0
}
4580
0
const ::google::protobuf::Descriptor* PerOpErrorPB::descriptor() {
4581
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4582
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4583
0
}
4584
4585
0
const PerOpErrorPB& PerOpErrorPB::default_instance() {
4586
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsPerOpErrorPB();
4587
0
  return *internal_default_instance();
4588
0
}
4589
4590
0
PerOpErrorPB* PerOpErrorPB::New(::google::protobuf::Arena* arena) const {
4591
0
  PerOpErrorPB* n = new PerOpErrorPB;
4592
0
  if (arena != NULL) {
4593
0
    arena->Own(n);
4594
0
  }
4595
0
  return n;
4596
0
}
4597
4598
0
void PerOpErrorPB::Clear() {
4599
// @@protoc_insertion_point(message_clear_start:yb.consensus.PerOpErrorPB)
4600
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4601
  // Prevent compiler warnings about cached_has_bits being unused
4602
0
  (void) cached_has_bits;
4603
4604
0
  cached_has_bits = _has_bits_[0];
4605
0
  if (cached_has_bits & 3u) {
4606
0
    if (cached_has_bits & 0x00000001u) {
4607
0
      GOOGLE_DCHECK(id_ != NULL);
4608
0
      id_->Clear();
4609
0
    }
4610
0
    if (cached_has_bits & 0x00000002u) {
4611
0
      GOOGLE_DCHECK(status_ != NULL);
4612
0
      status_->Clear();
4613
0
    }
4614
0
  }
4615
0
  _has_bits_.Clear();
4616
0
  _internal_metadata_.Clear();
4617
0
}
4618
4619
bool PerOpErrorPB::MergePartialFromCodedStream(
4620
0
    ::google::protobuf::io::CodedInputStream* input) {
4621
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4622
0
  ::google::protobuf::uint32 tag;
4623
  // @@protoc_insertion_point(parse_start:yb.consensus.PerOpErrorPB)
4624
0
  for (;;) {
4625
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4626
0
    tag = p.first;
4627
0
    if (!p.second) goto handle_unusual;
4628
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4629
      // required .yb.OpIdPB id = 1;
4630
0
      case 1: {
4631
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4632
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4633
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4634
0
               input, mutable_id()));
4635
0
        } else {
4636
0
          goto handle_unusual;
4637
0
        }
4638
0
        break;
4639
0
      }
4640
4641
      // required .yb.AppStatusPB status = 2;
4642
0
      case 2: {
4643
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4644
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4645
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4646
0
               input, mutable_status()));
4647
0
        } else {
4648
0
          goto handle_unusual;
4649
0
        }
4650
0
        break;
4651
0
      }
4652
4653
0
      default: {
4654
0
      handle_unusual:
4655
0
        if (tag == 0) {
4656
0
          goto success;
4657
0
        }
4658
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4659
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4660
0
        break;
4661
0
      }
4662
0
    }
4663
0
  }
4664
0
success:
4665
  // @@protoc_insertion_point(parse_success:yb.consensus.PerOpErrorPB)
4666
0
  return true;
4667
0
failure:
4668
  // @@protoc_insertion_point(parse_failure:yb.consensus.PerOpErrorPB)
4669
0
  return false;
4670
0
#undef DO_
4671
0
}
4672
4673
void PerOpErrorPB::SerializeWithCachedSizes(
4674
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4675
  // @@protoc_insertion_point(serialize_start:yb.consensus.PerOpErrorPB)
4676
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4677
0
  (void) cached_has_bits;
4678
4679
0
  cached_has_bits = _has_bits_[0];
4680
  // required .yb.OpIdPB id = 1;
4681
0
  if (cached_has_bits & 0x00000001u) {
4682
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4683
0
      1, *this->id_, output);
4684
0
  }
4685
4686
  // required .yb.AppStatusPB status = 2;
4687
0
  if (cached_has_bits & 0x00000002u) {
4688
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4689
0
      2, *this->status_, output);
4690
0
  }
4691
4692
0
  if (_internal_metadata_.have_unknown_fields()) {
4693
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4694
0
        _internal_metadata_.unknown_fields(), output);
4695
0
  }
4696
  // @@protoc_insertion_point(serialize_end:yb.consensus.PerOpErrorPB)
4697
0
}
4698
4699
::google::protobuf::uint8* PerOpErrorPB::InternalSerializeWithCachedSizesToArray(
4700
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4701
0
  (void)deterministic; // Unused
4702
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.PerOpErrorPB)
4703
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4704
0
  (void) cached_has_bits;
4705
4706
0
  cached_has_bits = _has_bits_[0];
4707
  // required .yb.OpIdPB id = 1;
4708
0
  if (cached_has_bits & 0x00000001u) {
4709
0
    target = ::google::protobuf::internal::WireFormatLite::
4710
0
      InternalWriteMessageToArray(
4711
0
        1, *this->id_, deterministic, target);
4712
0
  }
4713
4714
  // required .yb.AppStatusPB status = 2;
4715
0
  if (cached_has_bits & 0x00000002u) {
4716
0
    target = ::google::protobuf::internal::WireFormatLite::
4717
0
      InternalWriteMessageToArray(
4718
0
        2, *this->status_, deterministic, target);
4719
0
  }
4720
4721
0
  if (_internal_metadata_.have_unknown_fields()) {
4722
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4723
0
        _internal_metadata_.unknown_fields(), target);
4724
0
  }
4725
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.PerOpErrorPB)
4726
0
  return target;
4727
0
}
4728
4729
0
size_t PerOpErrorPB::RequiredFieldsByteSizeFallback() const {
4730
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.PerOpErrorPB)
4731
0
  size_t total_size = 0;
4732
4733
0
  if (has_id()) {
4734
    // required .yb.OpIdPB id = 1;
4735
0
    total_size += 1 +
4736
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4737
0
        *this->id_);
4738
0
  }
4739
4740
0
  if (has_status()) {
4741
    // required .yb.AppStatusPB status = 2;
4742
0
    total_size += 1 +
4743
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4744
0
        *this->status_);
4745
0
  }
4746
4747
0
  return total_size;
4748
0
}
4749
0
size_t PerOpErrorPB::ByteSizeLong() const {
4750
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.PerOpErrorPB)
4751
0
  size_t total_size = 0;
4752
4753
0
  if (_internal_metadata_.have_unknown_fields()) {
4754
0
    total_size +=
4755
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4756
0
        _internal_metadata_.unknown_fields());
4757
0
  }
4758
0
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
4759
    // required .yb.OpIdPB id = 1;
4760
0
    total_size += 1 +
4761
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4762
0
        *this->id_);
4763
4764
    // required .yb.AppStatusPB status = 2;
4765
0
    total_size += 1 +
4766
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4767
0
        *this->status_);
4768
4769
0
  } else {
4770
0
    total_size += RequiredFieldsByteSizeFallback();
4771
0
  }
4772
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4773
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4774
0
  _cached_size_ = cached_size;
4775
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4776
0
  return total_size;
4777
0
}
4778
4779
0
void PerOpErrorPB::MergeFrom(const ::google::protobuf::Message& from) {
4780
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.PerOpErrorPB)
4781
0
  GOOGLE_DCHECK_NE(&from, this);
4782
0
  const PerOpErrorPB* source =
4783
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PerOpErrorPB>(
4784
0
          &from);
4785
0
  if (source == NULL) {
4786
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.PerOpErrorPB)
4787
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4788
0
  } else {
4789
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.PerOpErrorPB)
4790
0
    MergeFrom(*source);
4791
0
  }
4792
0
}
4793
4794
0
void PerOpErrorPB::MergeFrom(const PerOpErrorPB& from) {
4795
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.PerOpErrorPB)
4796
0
  GOOGLE_DCHECK_NE(&from, this);
4797
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4798
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4799
0
  (void) cached_has_bits;
4800
4801
0
  cached_has_bits = from._has_bits_[0];
4802
0
  if (cached_has_bits & 3u) {
4803
0
    if (cached_has_bits & 0x00000001u) {
4804
0
      mutable_id()->::yb::OpIdPB::MergeFrom(from.id());
4805
0
    }
4806
0
    if (cached_has_bits & 0x00000002u) {
4807
0
      mutable_status()->::yb::AppStatusPB::MergeFrom(from.status());
4808
0
    }
4809
0
  }
4810
0
}
4811
4812
0
void PerOpErrorPB::CopyFrom(const ::google::protobuf::Message& from) {
4813
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.PerOpErrorPB)
4814
0
  if (&from == this) return;
4815
0
  Clear();
4816
0
  MergeFrom(from);
4817
0
}
4818
4819
0
void PerOpErrorPB::CopyFrom(const PerOpErrorPB& from) {
4820
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.PerOpErrorPB)
4821
0
  if (&from == this) return;
4822
0
  Clear();
4823
0
  MergeFrom(from);
4824
0
}
4825
4826
0
bool PerOpErrorPB::IsInitialized() const {
4827
0
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
4828
0
  if (has_id()) {
4829
0
    if (!this->id_->IsInitialized()) return false;
4830
0
  }
4831
0
  if (has_status()) {
4832
0
    if (!this->status_->IsInitialized()) return false;
4833
0
  }
4834
0
  return true;
4835
0
}
4836
4837
0
void PerOpErrorPB::Swap(PerOpErrorPB* other) {
4838
0
  if (other == this) return;
4839
0
  InternalSwap(other);
4840
0
}
4841
0
void PerOpErrorPB::InternalSwap(PerOpErrorPB* other) {
4842
0
  using std::swap;
4843
0
  swap(id_, other->id_);
4844
0
  swap(status_, other->status_);
4845
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4846
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4847
0
  swap(_cached_size_, other->_cached_size_);
4848
0
}
4849
4850
0
::google::protobuf::Metadata PerOpErrorPB::GetMetadata() const {
4851
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4852
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
4853
0
}
4854
4855
4856
// ===================================================================
4857
4858
26.8k
void ConsensusStatusPB::InitAsDefaultInstance() {
4859
26.8k
  ::yb::consensus::_ConsensusStatusPB_default_instance_._instance.get_mutable()->last_received_ = const_cast< ::yb::OpIdPB*>(
4860
26.8k
      ::yb::OpIdPB::internal_default_instance());
4861
26.8k
  ::yb::consensus::_ConsensusStatusPB_default_instance_._instance.get_mutable()->last_received_current_leader_ = const_cast< ::yb::OpIdPB*>(
4862
26.8k
      ::yb::OpIdPB::internal_default_instance());
4863
26.8k
  ::yb::consensus::_ConsensusStatusPB_default_instance_._instance.get_mutable()->last_applied_ = const_cast< ::yb::OpIdPB*>(
4864
26.8k
      ::yb::OpIdPB::internal_default_instance());
4865
26.8k
  ::yb::consensus::_ConsensusStatusPB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::consensus::ConsensusErrorPB*>(
4866
26.8k
      ::yb::consensus::ConsensusErrorPB::internal_default_instance());
4867
26.8k
}
4868
0
void ConsensusStatusPB::clear_last_received() {
4869
0
  if (last_received_ != NULL) last_received_->Clear();
4870
0
  clear_has_last_received();
4871
0
}
4872
0
void ConsensusStatusPB::clear_last_received_current_leader() {
4873
0
  if (last_received_current_leader_ != NULL) last_received_current_leader_->Clear();
4874
0
  clear_has_last_received_current_leader();
4875
0
}
4876
0
void ConsensusStatusPB::clear_last_applied() {
4877
0
  if (last_applied_ != NULL) last_applied_->Clear();
4878
0
  clear_has_last_applied();
4879
0
}
4880
1
void ConsensusStatusPB::clear_error() {
4881
1
  if (error_ != NULL) error_->Clear();
4882
1
  clear_has_error();
4883
1
}
4884
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4885
const int ConsensusStatusPB::kLastReceivedFieldNumber;
4886
const int ConsensusStatusPB::kLastReceivedCurrentLeaderFieldNumber;
4887
const int ConsensusStatusPB::kLastCommittedIdxFieldNumber;
4888
const int ConsensusStatusPB::kLastAppliedFieldNumber;
4889
const int ConsensusStatusPB::kErrorFieldNumber;
4890
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4891
4892
ConsensusStatusPB::ConsensusStatusPB()
4893
53.5M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4894
53.5M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4895
53.5M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusStatusPB();
4896
53.5M
  }
4897
53.5M
  SharedCtor();
4898
  // @@protoc_insertion_point(constructor:yb.consensus.ConsensusStatusPB)
4899
53.5M
}
4900
ConsensusStatusPB::ConsensusStatusPB(const ConsensusStatusPB& from)
4901
  : ::google::protobuf::Message(),
4902
      _internal_metadata_(NULL),
4903
      _has_bits_(from._has_bits_),
4904
737k
      _cached_size_(0) {
4905
737k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4906
737k
  if (from.has_last_received()) {
4907
737k
    last_received_ = new ::yb::OpIdPB(*from.last_received_);
4908
737k
  } else {
4909
135
    last_received_ = NULL;
4910
135
  }
4911
737k
  if (from.has_error()) {
4912
0
    error_ = new ::yb::consensus::ConsensusErrorPB(*from.error_);
4913
737k
  } else {
4914
737k
    error_ = NULL;
4915
737k
  }
4916
737k
  if (from.has_last_received_current_leader()) {
4917
0
    last_received_current_leader_ = new ::yb::OpIdPB(*from.last_received_current_leader_);
4918
737k
  } else {
4919
737k
    last_received_current_leader_ = NULL;
4920
737k
  }
4921
737k
  if (from.has_last_applied()) {
4922
0
    last_applied_ = new ::yb::OpIdPB(*from.last_applied_);
4923
737k
  } else {
4924
737k
    last_applied_ = NULL;
4925
737k
  }
4926
737k
  last_committed_idx_ = from.last_committed_idx_;
4927
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ConsensusStatusPB)
4928
737k
}
4929
4930
53.5M
void ConsensusStatusPB::SharedCtor() {
4931
53.5M
  _cached_size_ = 0;
4932
53.5M
  ::memset(&last_received_, 0, static_cast<size_t>(
4933
53.5M
      reinterpret_cast<char*>(&last_committed_idx_) -
4934
53.5M
      reinterpret_cast<char*>(&last_received_)) + sizeof(last_committed_idx_));
4935
53.5M
}
4936
4937
54.2M
ConsensusStatusPB::~ConsensusStatusPB() {
4938
  // @@protoc_insertion_point(destructor:yb.consensus.ConsensusStatusPB)
4939
54.2M
  SharedDtor();
4940
54.2M
}
4941
4942
54.2M
void ConsensusStatusPB::SharedDtor() {
4943
54.2M
  if (
this != internal_default_instance()54.2M
) delete last_received_;
4944
54.2M
  if (this != internal_default_instance()) 
delete error_54.2M
;
4945
54.2M
  if (this != internal_default_instance()) 
delete last_received_current_leader_54.2M
;
4946
54.2M
  if (this != internal_default_instance()) 
delete last_applied_54.2M
;
4947
54.2M
}
4948
4949
0
void ConsensusStatusPB::SetCachedSize(int size) const {
4950
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4951
0
  _cached_size_ = size;
4952
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4953
0
}
4954
0
const ::google::protobuf::Descriptor* ConsensusStatusPB::descriptor() {
4955
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
4956
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4957
0
}
4958
4959
0
const ConsensusStatusPB& ConsensusStatusPB::default_instance() {
4960
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusStatusPB();
4961
0
  return *internal_default_instance();
4962
0
}
4963
4964
0
ConsensusStatusPB* ConsensusStatusPB::New(::google::protobuf::Arena* arena) const {
4965
0
  ConsensusStatusPB* n = new ConsensusStatusPB;
4966
0
  if (arena != NULL) {
4967
0
    arena->Own(n);
4968
0
  }
4969
0
  return n;
4970
0
}
4971
4972
25.4M
void ConsensusStatusPB::Clear() {
4973
// @@protoc_insertion_point(message_clear_start:yb.consensus.ConsensusStatusPB)
4974
25.4M
  ::google::protobuf::uint32 cached_has_bits = 0;
4975
  // Prevent compiler warnings about cached_has_bits being unused
4976
25.4M
  (void) cached_has_bits;
4977
4978
25.4M
  cached_has_bits = _has_bits_[0];
4979
25.4M
  if (cached_has_bits & 15u) {
4980
25.3M
    if (
cached_has_bits & 0x00000001u25.3M
) {
4981
25.3M
      GOOGLE_DCHECK(last_received_ != NULL);
4982
25.3M
      last_received_->Clear();
4983
25.3M
    }
4984
25.3M
    if (cached_has_bits & 0x00000002u) {
4985
120k
      GOOGLE_DCHECK(error_ != NULL);
4986
120k
      error_->Clear();
4987
120k
    }
4988
25.3M
    if (
cached_has_bits & 0x00000004u25.3M
) {
4989
25.3M
      GOOGLE_DCHECK(last_received_current_leader_ != NULL);
4990
25.3M
      last_received_current_leader_->Clear();
4991
25.3M
    }
4992
25.3M
    if (cached_has_bits & 0x00000008u) {
4993
25.2M
      GOOGLE_DCHECK(last_applied_ != NULL);
4994
25.2M
      last_applied_->Clear();
4995
25.2M
    }
4996
25.3M
  }
4997
25.4M
  last_committed_idx_ = GOOGLE_LONGLONG(0);
4998
25.4M
  _has_bits_.Clear();
4999
25.4M
  _internal_metadata_.Clear();
5000
25.4M
}
5001
5002
bool ConsensusStatusPB::MergePartialFromCodedStream(
5003
26.8M
    ::google::protobuf::io::CodedInputStream* input) {
5004
103M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
5005
26.8M
  ::google::protobuf::uint32 tag;
5006
  // @@protoc_insertion_point(parse_start:yb.consensus.ConsensusStatusPB)
5007
130M
  for (;;) {
5008
130M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5009
130M
    tag = p.first;
5010
130M
    if (!p.second) 
goto handle_unusual26.9M
;
5011
103M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5012
      // required .yb.OpIdPB last_received = 1;
5013
26.8M
      case 1: {
5014
26.8M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5015
26.9M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5016
26.9M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5017
26.9M
               input, mutable_last_received()));
5018
18.4E
        } else {
5019
18.4E
          goto handle_unusual;
5020
18.4E
        }
5021
26.9M
        break;
5022
26.8M
      }
5023
5024
      // optional int64 last_committed_idx = 2;
5025
26.9M
      case 2: {
5026
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5027
25.5M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5028
25.5M
          set_has_last_committed_idx();
5029
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5030
25.5M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
5031
25.5M
                 input, &last_committed_idx_)));
5032
18.4E
        } else {
5033
18.4E
          goto handle_unusual;
5034
18.4E
        }
5035
25.5M
        break;
5036
25.5M
      }
5037
5038
      // optional .yb.consensus.ConsensusErrorPB error = 3;
5039
25.5M
      case 3: {
5040
121k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5041
121k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5042
121k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5043
121k
               input, mutable_error()));
5044
18.4E
        } else {
5045
18.4E
          goto handle_unusual;
5046
18.4E
        }
5047
121k
        break;
5048
121k
      }
5049
5050
      // optional .yb.OpIdPB last_received_current_leader = 4;
5051
25.5M
      case 4: {
5052
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5053
25.5M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5054
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5055
25.5M
               input, mutable_last_received_current_leader()));
5056
18.4E
        } else {
5057
18.4E
          goto handle_unusual;
5058
18.4E
        }
5059
25.5M
        break;
5060
25.5M
      }
5061
5062
      // optional .yb.OpIdPB last_applied = 5;
5063
25.5M
      case 5: {
5064
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5065
25.5M
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
5066
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5067
25.5M
               input, mutable_last_applied()));
5068
18.4E
        } else {
5069
18.4E
          goto handle_unusual;
5070
18.4E
        }
5071
25.5M
        break;
5072
25.5M
      }
5073
5074
25.5M
      default: {
5075
26.9M
      handle_unusual:
5076
26.9M
        if (
tag == 026.9M
) {
5077
26.9M
          goto success;
5078
26.9M
        }
5079
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5080
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5081
18.4E
        break;
5082
18.4E
      }
5083
103M
    }
5084
103M
  }
5085
18.4E
success:
5086
  // @@protoc_insertion_point(parse_success:yb.consensus.ConsensusStatusPB)
5087
26.9M
  return true;
5088
0
failure:
5089
  // @@protoc_insertion_point(parse_failure:yb.consensus.ConsensusStatusPB)
5090
0
  return false;
5091
26.8M
#undef DO_
5092
26.8M
}
5093
5094
void ConsensusStatusPB::SerializeWithCachedSizes(
5095
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5096
  // @@protoc_insertion_point(serialize_start:yb.consensus.ConsensusStatusPB)
5097
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5098
0
  (void) cached_has_bits;
5099
5100
0
  cached_has_bits = _has_bits_[0];
5101
  // required .yb.OpIdPB last_received = 1;
5102
0
  if (cached_has_bits & 0x00000001u) {
5103
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5104
0
      1, *this->last_received_, output);
5105
0
  }
5106
5107
  // optional int64 last_committed_idx = 2;
5108
0
  if (cached_has_bits & 0x00000010u) {
5109
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->last_committed_idx(), output);
5110
0
  }
5111
5112
  // optional .yb.consensus.ConsensusErrorPB error = 3;
5113
0
  if (cached_has_bits & 0x00000002u) {
5114
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5115
0
      3, *this->error_, output);
5116
0
  }
5117
5118
  // optional .yb.OpIdPB last_received_current_leader = 4;
5119
0
  if (cached_has_bits & 0x00000004u) {
5120
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5121
0
      4, *this->last_received_current_leader_, output);
5122
0
  }
5123
5124
  // optional .yb.OpIdPB last_applied = 5;
5125
0
  if (cached_has_bits & 0x00000008u) {
5126
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5127
0
      5, *this->last_applied_, output);
5128
0
  }
5129
5130
0
  if (_internal_metadata_.have_unknown_fields()) {
5131
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5132
0
        _internal_metadata_.unknown_fields(), output);
5133
0
  }
5134
  // @@protoc_insertion_point(serialize_end:yb.consensus.ConsensusStatusPB)
5135
0
}
5136
5137
::google::protobuf::uint8* ConsensusStatusPB::InternalSerializeWithCachedSizesToArray(
5138
26.9M
    bool deterministic, ::google::protobuf::uint8* target) const {
5139
26.9M
  (void)deterministic; // Unused
5140
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ConsensusStatusPB)
5141
26.9M
  ::google::protobuf::uint32 cached_has_bits = 0;
5142
26.9M
  (void) cached_has_bits;
5143
5144
26.9M
  cached_has_bits = _has_bits_[0];
5145
  // required .yb.OpIdPB last_received = 1;
5146
26.9M
  if (cached_has_bits & 0x00000001u) {
5147
26.9M
    target = ::google::protobuf::internal::WireFormatLite::
5148
26.9M
      InternalWriteMessageToArray(
5149
26.9M
        1, *this->last_received_, deterministic, target);
5150
26.9M
  }
5151
5152
  // optional int64 last_committed_idx = 2;
5153
26.9M
  if (cached_has_bits & 0x00000010u) {
5154
25.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->last_committed_idx(), target);
5155
25.5M
  }
5156
5157
  // optional .yb.consensus.ConsensusErrorPB error = 3;
5158
26.9M
  if (cached_has_bits & 0x00000002u) {
5159
122k
    target = ::google::protobuf::internal::WireFormatLite::
5160
122k
      InternalWriteMessageToArray(
5161
122k
        3, *this->error_, deterministic, target);
5162
122k
  }
5163
5164
  // optional .yb.OpIdPB last_received_current_leader = 4;
5165
26.9M
  if (cached_has_bits & 0x00000004u) {
5166
25.5M
    target = ::google::protobuf::internal::WireFormatLite::
5167
25.5M
      InternalWriteMessageToArray(
5168
25.5M
        4, *this->last_received_current_leader_, deterministic, target);
5169
25.5M
  }
5170
5171
  // optional .yb.OpIdPB last_applied = 5;
5172
26.9M
  if (cached_has_bits & 0x00000008u) {
5173
25.5M
    target = ::google::protobuf::internal::WireFormatLite::
5174
25.5M
      InternalWriteMessageToArray(
5175
25.5M
        5, *this->last_applied_, deterministic, target);
5176
25.5M
  }
5177
5178
26.9M
  if (_internal_metadata_.have_unknown_fields()) {
5179
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5180
0
        _internal_metadata_.unknown_fields(), target);
5181
0
  }
5182
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ConsensusStatusPB)
5183
26.9M
  return target;
5184
26.9M
}
5185
5186
54.0M
size_t ConsensusStatusPB::ByteSizeLong() const {
5187
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ConsensusStatusPB)
5188
54.0M
  size_t total_size = 0;
5189
5190
54.0M
  if (_internal_metadata_.have_unknown_fields()) {
5191
0
    total_size +=
5192
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5193
0
        _internal_metadata_.unknown_fields());
5194
0
  }
5195
  // required .yb.OpIdPB last_received = 1;
5196
54.0M
  if (has_last_received()) {
5197
53.9M
    total_size += 1 +
5198
53.9M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5199
53.9M
        *this->last_received_);
5200
53.9M
  }
5201
54.0M
  if (_has_bits_[0 / 32] & 30u) {
5202
    // optional .yb.consensus.ConsensusErrorPB error = 3;
5203
51.0M
    if (has_error()) {
5204
244k
      total_size += 1 +
5205
244k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5206
244k
          *this->error_);
5207
244k
    }
5208
5209
    // optional .yb.OpIdPB last_received_current_leader = 4;
5210
51.0M
    if (has_last_received_current_leader()) {
5211
51.0M
      total_size += 1 +
5212
51.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5213
51.0M
          *this->last_received_current_leader_);
5214
51.0M
    }
5215
5216
    // optional .yb.OpIdPB last_applied = 5;
5217
51.0M
    if (has_last_applied()) {
5218
51.0M
      total_size += 1 +
5219
51.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5220
51.0M
          *this->last_applied_);
5221
51.0M
    }
5222
5223
    // optional int64 last_committed_idx = 2;
5224
51.0M
    if (has_last_committed_idx()) {
5225
51.0M
      total_size += 1 +
5226
51.0M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5227
51.0M
          this->last_committed_idx());
5228
51.0M
    }
5229
5230
51.0M
  }
5231
54.0M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5232
54.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5233
54.0M
  _cached_size_ = cached_size;
5234
54.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5235
54.0M
  return total_size;
5236
54.0M
}
5237
5238
0
void ConsensusStatusPB::MergeFrom(const ::google::protobuf::Message& from) {
5239
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ConsensusStatusPB)
5240
0
  GOOGLE_DCHECK_NE(&from, this);
5241
0
  const ConsensusStatusPB* source =
5242
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConsensusStatusPB>(
5243
0
          &from);
5244
0
  if (source == NULL) {
5245
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ConsensusStatusPB)
5246
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5247
0
  } else {
5248
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ConsensusStatusPB)
5249
0
    MergeFrom(*source);
5250
0
  }
5251
0
}
5252
5253
1.45M
void ConsensusStatusPB::MergeFrom(const ConsensusStatusPB& from) {
5254
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ConsensusStatusPB)
5255
1.45M
  GOOGLE_DCHECK_NE(&from, this);
5256
1.45M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5257
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
5258
1.45M
  (void) cached_has_bits;
5259
5260
1.45M
  cached_has_bits = from._has_bits_[0];
5261
1.45M
  if (cached_has_bits & 31u) {
5262
1.45M
    if (
cached_has_bits & 0x00000001u1.45M
) {
5263
1.45M
      mutable_last_received()->::yb::OpIdPB::MergeFrom(from.last_received());
5264
1.45M
    }
5265
1.45M
    if (cached_has_bits & 0x00000002u) {
5266
160
      mutable_error()->::yb::consensus::ConsensusErrorPB::MergeFrom(from.error());
5267
160
    }
5268
1.45M
    if (cached_has_bits & 0x00000004u) {
5269
1.04k
      mutable_last_received_current_leader()->::yb::OpIdPB::MergeFrom(from.last_received_current_leader());
5270
1.04k
    }
5271
1.45M
    if (cached_has_bits & 0x00000008u) {
5272
1.04k
      mutable_last_applied()->::yb::OpIdPB::MergeFrom(from.last_applied());
5273
1.04k
    }
5274
1.45M
    if (cached_has_bits & 0x00000010u) {
5275
1.04k
      last_committed_idx_ = from.last_committed_idx_;
5276
1.04k
    }
5277
1.45M
    _has_bits_[0] |= cached_has_bits;
5278
1.45M
  }
5279
1.45M
}
5280
5281
0
void ConsensusStatusPB::CopyFrom(const ::google::protobuf::Message& from) {
5282
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ConsensusStatusPB)
5283
0
  if (&from == this) return;
5284
0
  Clear();
5285
0
  MergeFrom(from);
5286
0
}
5287
5288
0
void ConsensusStatusPB::CopyFrom(const ConsensusStatusPB& from) {
5289
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ConsensusStatusPB)
5290
0
  if (&from == this) return;
5291
0
  Clear();
5292
0
  MergeFrom(from);
5293
0
}
5294
5295
123M
bool ConsensusStatusPB::IsInitialized() const {
5296
123M
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
5297
123M
  if (has_last_received()) {
5298
123M
    if (!this->last_received_->IsInitialized()) 
return false0
;
5299
123M
  }
5300
123M
  if (has_error()) {
5301
484k
    if (!this->error_->IsInitialized()) 
return false0
;
5302
484k
  }
5303
123M
  if (has_last_received_current_leader()) {
5304
120M
    if (!this->last_received_current_leader_->IsInitialized()) 
return false0
;
5305
120M
  }
5306
123M
  if (has_last_applied()) {
5307
120M
    if (!this->last_applied_->IsInitialized()) 
return false0
;
5308
120M
  }
5309
123M
  return true;
5310
123M
}
5311
5312
0
void ConsensusStatusPB::Swap(ConsensusStatusPB* other) {
5313
0
  if (other == this) return;
5314
0
  InternalSwap(other);
5315
0
}
5316
0
void ConsensusStatusPB::InternalSwap(ConsensusStatusPB* other) {
5317
0
  using std::swap;
5318
0
  swap(last_received_, other->last_received_);
5319
0
  swap(error_, other->error_);
5320
0
  swap(last_received_current_leader_, other->last_received_current_leader_);
5321
0
  swap(last_applied_, other->last_applied_);
5322
0
  swap(last_committed_idx_, other->last_committed_idx_);
5323
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5324
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5325
0
  swap(_cached_size_, other->_cached_size_);
5326
0
}
5327
5328
1.64M
::google::protobuf::Metadata ConsensusStatusPB::GetMetadata() const {
5329
1.64M
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
5330
1.64M
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
5331
1.64M
}
5332
5333
5334
// ===================================================================
5335
5336
26.8k
void VoteRequestPB::InitAsDefaultInstance() {
5337
26.8k
  ::yb::consensus::_VoteRequestPB_default_instance_._instance.get_mutable()->candidate_status_ = const_cast< ::yb::consensus::ConsensusStatusPB*>(
5338
26.8k
      ::yb::consensus::ConsensusStatusPB::internal_default_instance());
5339
26.8k
}
5340
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5341
const int VoteRequestPB::kDestUuidFieldNumber;
5342
const int VoteRequestPB::kTabletIdFieldNumber;
5343
const int VoteRequestPB::kCandidateUuidFieldNumber;
5344
const int VoteRequestPB::kCandidateTermFieldNumber;
5345
const int VoteRequestPB::kCandidateStatusFieldNumber;
5346
const int VoteRequestPB::kIgnoreLiveLeaderFieldNumber;
5347
const int VoteRequestPB::kPreelectionFieldNumber;
5348
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5349
5350
VoteRequestPB::VoteRequestPB()
5351
3.61M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5352
3.61M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5353
3.58M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsVoteRequestPB();
5354
3.58M
  }
5355
3.61M
  SharedCtor();
5356
  // @@protoc_insertion_point(constructor:yb.consensus.VoteRequestPB)
5357
3.61M
}
5358
VoteRequestPB::VoteRequestPB(const VoteRequestPB& from)
5359
  : ::google::protobuf::Message(),
5360
      _internal_metadata_(NULL),
5361
      _has_bits_(from._has_bits_),
5362
737k
      _cached_size_(0) {
5363
737k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5364
737k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5365
737k
  if (from.has_tablet_id()) {
5366
737k
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
5367
737k
  }
5368
737k
  candidate_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5369
737k
  if (from.has_candidate_uuid()) {
5370
737k
    candidate_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.candidate_uuid_);
5371
737k
  }
5372
737k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5373
737k
  if (from.has_dest_uuid()) {
5374
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
5375
0
  }
5376
737k
  if (from.has_candidate_status()) {
5377
737k
    candidate_status_ = new ::yb::consensus::ConsensusStatusPB(*from.candidate_status_);
5378
737k
  } else {
5379
221
    candidate_status_ = NULL;
5380
221
  }
5381
737k
  ::memcpy(&candidate_term_, &from.candidate_term_,
5382
737k
    static_cast<size_t>(reinterpret_cast<char*>(&preelection_) -
5383
737k
    reinterpret_cast<char*>(&candidate_term_)) + sizeof(preelection_));
5384
  // @@protoc_insertion_point(copy_constructor:yb.consensus.VoteRequestPB)
5385
737k
}
5386
5387
3.61M
void VoteRequestPB::SharedCtor() {
5388
3.61M
  _cached_size_ = 0;
5389
3.61M
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5390
3.61M
  candidate_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5391
3.61M
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5392
3.61M
  ::memset(&candidate_status_, 0, static_cast<size_t>(
5393
3.61M
      reinterpret_cast<char*>(&preelection_) -
5394
3.61M
      reinterpret_cast<char*>(&candidate_status_)) + sizeof(preelection_));
5395
3.61M
}
5396
5397
4.32M
VoteRequestPB::~VoteRequestPB() {
5398
  // @@protoc_insertion_point(destructor:yb.consensus.VoteRequestPB)
5399
4.32M
  SharedDtor();
5400
4.32M
}
5401
5402
4.32M
void VoteRequestPB::SharedDtor() {
5403
4.32M
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5404
4.32M
  candidate_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5405
4.32M
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5406
4.32M
  if (this != internal_default_instance()) 
delete candidate_status_4.32M
;
5407
4.32M
}
5408
5409
0
void VoteRequestPB::SetCachedSize(int size) const {
5410
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5411
0
  _cached_size_ = size;
5412
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5413
0
}
5414
0
const ::google::protobuf::Descriptor* VoteRequestPB::descriptor() {
5415
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
5416
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5417
0
}
5418
5419
0
const VoteRequestPB& VoteRequestPB::default_instance() {
5420
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsVoteRequestPB();
5421
0
  return *internal_default_instance();
5422
0
}
5423
5424
0
VoteRequestPB* VoteRequestPB::New(::google::protobuf::Arena* arena) const {
5425
0
  VoteRequestPB* n = new VoteRequestPB;
5426
0
  if (arena != NULL) {
5427
0
    arena->Own(n);
5428
0
  }
5429
0
  return n;
5430
0
}
5431
5432
2.85M
void VoteRequestPB::Clear() {
5433
// @@protoc_insertion_point(message_clear_start:yb.consensus.VoteRequestPB)
5434
2.85M
  ::google::protobuf::uint32 cached_has_bits = 0;
5435
  // Prevent compiler warnings about cached_has_bits being unused
5436
2.85M
  (void) cached_has_bits;
5437
5438
2.85M
  cached_has_bits = _has_bits_[0];
5439
2.85M
  if (cached_has_bits & 15u) {
5440
0
    if (cached_has_bits & 0x00000001u) {
5441
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5442
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
5443
0
    }
5444
0
    if (cached_has_bits & 0x00000002u) {
5445
0
      GOOGLE_DCHECK(!candidate_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5446
0
      (*candidate_uuid_.UnsafeRawStringPointer())->clear();
5447
0
    }
5448
0
    if (cached_has_bits & 0x00000004u) {
5449
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5450
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
5451
0
    }
5452
0
    if (cached_has_bits & 0x00000008u) {
5453
0
      GOOGLE_DCHECK(candidate_status_ != NULL);
5454
0
      candidate_status_->Clear();
5455
0
    }
5456
0
  }
5457
2.85M
  if (cached_has_bits & 112u) {
5458
0
    ::memset(&candidate_term_, 0, static_cast<size_t>(
5459
0
        reinterpret_cast<char*>(&preelection_) -
5460
0
        reinterpret_cast<char*>(&candidate_term_)) + sizeof(preelection_));
5461
0
  }
5462
2.85M
  _has_bits_.Clear();
5463
2.85M
  _internal_metadata_.Clear();
5464
2.85M
}
5465
5466
bool VoteRequestPB::MergePartialFromCodedStream(
5467
1.39M
    ::google::protobuf::io::CodedInputStream* input) {
5468
9.75M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
5469
1.39M
  ::google::protobuf::uint32 tag;
5470
  // @@protoc_insertion_point(parse_start:yb.consensus.VoteRequestPB)
5471
11.1M
  for (;;) {
5472
11.1M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5473
11.1M
    tag = p.first;
5474
11.1M
    if (!p.second) 
goto handle_unusual1.39M
;
5475
9.75M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5476
      // required string tablet_id = 1;
5477
1.39M
      case 1: {
5478
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5479
1.39M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5480
1.39M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5481
1.39M
                input, this->mutable_tablet_id()));
5482
1.39M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5483
1.39M
            this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
5484
1.39M
            ::google::protobuf::internal::WireFormat::PARSE,
5485
1.39M
            "yb.consensus.VoteRequestPB.tablet_id");
5486
18.4E
        } else {
5487
18.4E
          goto handle_unusual;
5488
18.4E
        }
5489
1.39M
        break;
5490
1.39M
      }
5491
5492
      // required bytes candidate_uuid = 2;
5493
1.39M
      case 2: {
5494
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5495
1.39M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5496
1.39M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5497
1.39M
                input, this->mutable_candidate_uuid()));
5498
1.39M
        } else {
5499
21
          goto handle_unusual;
5500
21
        }
5501
1.39M
        break;
5502
1.39M
      }
5503
5504
      // required int64 candidate_term = 3;
5505
1.39M
      case 3: {
5506
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5507
1.39M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5508
1.39M
          set_has_candidate_term();
5509
1.39M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5510
1.39M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
5511
1.39M
                 input, &candidate_term_)));
5512
1.39M
        } else {
5513
13
          goto handle_unusual;
5514
13
        }
5515
1.39M
        break;
5516
1.39M
      }
5517
5518
      // required .yb.consensus.ConsensusStatusPB candidate_status = 4;
5519
1.39M
      case 4: {
5520
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5521
1.39M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5522
1.39M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5523
1.39M
               input, mutable_candidate_status()));
5524
18.4E
        } else {
5525
18.4E
          goto handle_unusual;
5526
18.4E
        }
5527
1.39M
        break;
5528
1.39M
      }
5529
5530
      // optional bool ignore_live_leader = 5 [default = false];
5531
1.39M
      case 5: {
5532
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5533
1.39M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5534
1.39M
          set_has_ignore_live_leader();
5535
1.39M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5536
1.39M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5537
1.39M
                 input, &ignore_live_leader_)));
5538
18.4E
        } else {
5539
18.4E
          goto handle_unusual;
5540
18.4E
        }
5541
1.39M
        break;
5542
1.39M
      }
5543
5544
      // optional bytes dest_uuid = 6;
5545
1.39M
      case 6: {
5546
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5547
1.39M
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
5548
1.39M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5549
1.39M
                input, this->mutable_dest_uuid()));
5550
18.4E
        } else {
5551
18.4E
          goto handle_unusual;
5552
18.4E
        }
5553
1.39M
        break;
5554
1.39M
      }
5555
5556
      // optional bool preelection = 7;
5557
1.39M
      case 7: {
5558
1.39M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5559
1.39M
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
5560
1.39M
          set_has_preelection();
5561
1.39M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5562
1.39M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5563
1.39M
                 input, &preelection_)));
5564
18.4E
        } else {
5565
18.4E
          goto handle_unusual;
5566
18.4E
        }
5567
1.39M
        break;
5568
1.39M
      }
5569
5570
1.39M
      default: {
5571
1.39M
      handle_unusual:
5572
1.39M
        if (
tag == 01.39M
) {
5573
1.39M
          goto success;
5574
1.39M
        }
5575
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5576
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5577
18.4E
        break;
5578
18.4E
      }
5579
9.75M
    }
5580
9.75M
  }
5581
1.39M
success:
5582
  // @@protoc_insertion_point(parse_success:yb.consensus.VoteRequestPB)
5583
1.39M
  return true;
5584
0
failure:
5585
  // @@protoc_insertion_point(parse_failure:yb.consensus.VoteRequestPB)
5586
0
  return false;
5587
1.39M
#undef DO_
5588
1.39M
}
5589
5590
void VoteRequestPB::SerializeWithCachedSizes(
5591
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5592
  // @@protoc_insertion_point(serialize_start:yb.consensus.VoteRequestPB)
5593
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5594
0
  (void) cached_has_bits;
5595
5596
0
  cached_has_bits = _has_bits_[0];
5597
  // required string tablet_id = 1;
5598
0
  if (cached_has_bits & 0x00000001u) {
5599
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5600
0
      this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
5601
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5602
0
      "yb.consensus.VoteRequestPB.tablet_id");
5603
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5604
0
      1, this->tablet_id(), output);
5605
0
  }
5606
5607
  // required bytes candidate_uuid = 2;
5608
0
  if (cached_has_bits & 0x00000002u) {
5609
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5610
0
      2, this->candidate_uuid(), output);
5611
0
  }
5612
5613
  // required int64 candidate_term = 3;
5614
0
  if (cached_has_bits & 0x00000010u) {
5615
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->candidate_term(), output);
5616
0
  }
5617
5618
  // required .yb.consensus.ConsensusStatusPB candidate_status = 4;
5619
0
  if (cached_has_bits & 0x00000008u) {
5620
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5621
0
      4, *this->candidate_status_, output);
5622
0
  }
5623
5624
  // optional bool ignore_live_leader = 5 [default = false];
5625
0
  if (cached_has_bits & 0x00000020u) {
5626
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->ignore_live_leader(), output);
5627
0
  }
5628
5629
  // optional bytes dest_uuid = 6;
5630
0
  if (cached_has_bits & 0x00000004u) {
5631
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5632
0
      6, this->dest_uuid(), output);
5633
0
  }
5634
5635
  // optional bool preelection = 7;
5636
0
  if (cached_has_bits & 0x00000040u) {
5637
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->preelection(), output);
5638
0
  }
5639
5640
0
  if (_internal_metadata_.have_unknown_fields()) {
5641
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5642
0
        _internal_metadata_.unknown_fields(), output);
5643
0
  }
5644
  // @@protoc_insertion_point(serialize_end:yb.consensus.VoteRequestPB)
5645
0
}
5646
5647
::google::protobuf::uint8* VoteRequestPB::InternalSerializeWithCachedSizesToArray(
5648
1.45M
    bool deterministic, ::google::protobuf::uint8* target) const {
5649
1.45M
  (void)deterministic; // Unused
5650
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.VoteRequestPB)
5651
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
5652
1.45M
  (void) cached_has_bits;
5653
5654
1.45M
  cached_has_bits = _has_bits_[0];
5655
  // required string tablet_id = 1;
5656
1.45M
  if (cached_has_bits & 0x00000001u) {
5657
1.45M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5658
1.45M
      this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
5659
1.45M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5660
1.45M
      "yb.consensus.VoteRequestPB.tablet_id");
5661
1.45M
    target =
5662
1.45M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5663
1.45M
        1, this->tablet_id(), target);
5664
1.45M
  }
5665
5666
  // required bytes candidate_uuid = 2;
5667
1.45M
  if (cached_has_bits & 0x00000002u) {
5668
1.45M
    target =
5669
1.45M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5670
1.45M
        2, this->candidate_uuid(), target);
5671
1.45M
  }
5672
5673
  // required int64 candidate_term = 3;
5674
1.45M
  if (cached_has_bits & 0x00000010u) {
5675
1.45M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->candidate_term(), target);
5676
1.45M
  }
5677
5678
  // required .yb.consensus.ConsensusStatusPB candidate_status = 4;
5679
1.45M
  if (cached_has_bits & 0x00000008u) {
5680
1.45M
    target = ::google::protobuf::internal::WireFormatLite::
5681
1.45M
      InternalWriteMessageToArray(
5682
1.45M
        4, *this->candidate_status_, deterministic, target);
5683
1.45M
  }
5684
5685
  // optional bool ignore_live_leader = 5 [default = false];
5686
1.45M
  if (
cached_has_bits & 0x00000020u1.45M
) {
5687
1.45M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->ignore_live_leader(), target);
5688
1.45M
  }
5689
5690
  // optional bytes dest_uuid = 6;
5691
1.45M
  if (cached_has_bits & 0x00000004u) {
5692
1.45M
    target =
5693
1.45M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5694
1.45M
        6, this->dest_uuid(), target);
5695
1.45M
  }
5696
5697
  // optional bool preelection = 7;
5698
1.45M
  if (cached_has_bits & 0x00000040u) {
5699
1.45M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->preelection(), target);
5700
1.45M
  }
5701
5702
1.45M
  if (_internal_metadata_.have_unknown_fields()) {
5703
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5704
0
        _internal_metadata_.unknown_fields(), target);
5705
0
  }
5706
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.VoteRequestPB)
5707
1.45M
  return target;
5708
1.45M
}
5709
5710
0
size_t VoteRequestPB::RequiredFieldsByteSizeFallback() const {
5711
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.VoteRequestPB)
5712
0
  size_t total_size = 0;
5713
5714
0
  if (has_tablet_id()) {
5715
    // required string tablet_id = 1;
5716
0
    total_size += 1 +
5717
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
5718
0
        this->tablet_id());
5719
0
  }
5720
5721
0
  if (has_candidate_uuid()) {
5722
    // required bytes candidate_uuid = 2;
5723
0
    total_size += 1 +
5724
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
5725
0
        this->candidate_uuid());
5726
0
  }
5727
5728
0
  if (has_candidate_status()) {
5729
    // required .yb.consensus.ConsensusStatusPB candidate_status = 4;
5730
0
    total_size += 1 +
5731
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5732
0
        *this->candidate_status_);
5733
0
  }
5734
5735
0
  if (has_candidate_term()) {
5736
    // required int64 candidate_term = 3;
5737
0
    total_size += 1 +
5738
0
      ::google::protobuf::internal::WireFormatLite::Int64Size(
5739
0
        this->candidate_term());
5740
0
  }
5741
5742
0
  return total_size;
5743
0
}
5744
2.91M
size_t VoteRequestPB::ByteSizeLong() const {
5745
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.VoteRequestPB)
5746
2.91M
  size_t total_size = 0;
5747
5748
2.91M
  if (_internal_metadata_.have_unknown_fields()) {
5749
0
    total_size +=
5750
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5751
0
        _internal_metadata_.unknown_fields());
5752
0
  }
5753
2.91M
  if (((_has_bits_[0] & 0x0000001b) ^ 0x0000001b) == 0) {  // All required fields are present.
5754
    // required string tablet_id = 1;
5755
2.91M
    total_size += 1 +
5756
2.91M
      ::google::protobuf::internal::WireFormatLite::StringSize(
5757
2.91M
        this->tablet_id());
5758
5759
    // required bytes candidate_uuid = 2;
5760
2.91M
    total_size += 1 +
5761
2.91M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
5762
2.91M
        this->candidate_uuid());
5763
5764
    // required .yb.consensus.ConsensusStatusPB candidate_status = 4;
5765
2.91M
    total_size += 1 +
5766
2.91M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5767
2.91M
        *this->candidate_status_);
5768
5769
    // required int64 candidate_term = 3;
5770
2.91M
    total_size += 1 +
5771
2.91M
      ::google::protobuf::internal::WireFormatLite::Int64Size(
5772
2.91M
        this->candidate_term());
5773
5774
2.91M
  } else {
5775
129
    total_size += RequiredFieldsByteSizeFallback();
5776
129
  }
5777
  // optional bytes dest_uuid = 6;
5778
2.91M
  if (has_dest_uuid()) {
5779
2.91M
    total_size += 1 +
5780
2.91M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
5781
2.91M
        this->dest_uuid());
5782
2.91M
  }
5783
5784
2.91M
  if (_has_bits_[0 / 32] & 96u) {
5785
    // optional bool ignore_live_leader = 5 [default = false];
5786
2.91M
    if (has_ignore_live_leader()) {
5787
2.91M
      total_size += 1 + 1;
5788
2.91M
    }
5789
5790
    // optional bool preelection = 7;
5791
2.91M
    if (has_preelection()) {
5792
2.91M
      total_size += 1 + 1;
5793
2.91M
    }
5794
5795
2.91M
  }
5796
2.91M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5797
2.91M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5798
2.91M
  _cached_size_ = cached_size;
5799
2.91M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5800
2.91M
  return total_size;
5801
2.91M
}
5802
5803
0
void VoteRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5804
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.VoteRequestPB)
5805
0
  GOOGLE_DCHECK_NE(&from, this);
5806
0
  const VoteRequestPB* source =
5807
0
      ::google::protobuf::internal::DynamicCastToGenerated<const VoteRequestPB>(
5808
0
          &from);
5809
0
  if (source == NULL) {
5810
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.VoteRequestPB)
5811
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5812
0
  } else {
5813
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.VoteRequestPB)
5814
0
    MergeFrom(*source);
5815
0
  }
5816
0
}
5817
5818
1.45M
void VoteRequestPB::MergeFrom(const VoteRequestPB& from) {
5819
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.VoteRequestPB)
5820
1.45M
  GOOGLE_DCHECK_NE(&from, this);
5821
1.45M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5822
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
5823
1.45M
  (void) cached_has_bits;
5824
5825
1.45M
  cached_has_bits = from._has_bits_[0];
5826
1.45M
  if (cached_has_bits & 127u) {
5827
1.45M
    if (cached_has_bits & 0x00000001u) {
5828
1.45M
      set_has_tablet_id();
5829
1.45M
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
5830
1.45M
    }
5831
1.45M
    if (cached_has_bits & 0x00000002u) {
5832
1.45M
      set_has_candidate_uuid();
5833
1.45M
      candidate_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.candidate_uuid_);
5834
1.45M
    }
5835
1.45M
    if (cached_has_bits & 0x00000004u) {
5836
14
      set_has_dest_uuid();
5837
14
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
5838
14
    }
5839
1.45M
    if (cached_has_bits & 0x00000008u) {
5840
1.45M
      mutable_candidate_status()->::yb::consensus::ConsensusStatusPB::MergeFrom(from.candidate_status());
5841
1.45M
    }
5842
1.45M
    if (cached_has_bits & 0x00000010u) {
5843
1.45M
      candidate_term_ = from.candidate_term_;
5844
1.45M
    }
5845
1.45M
    if (cached_has_bits & 0x00000020u) {
5846
1.45M
      ignore_live_leader_ = from.ignore_live_leader_;
5847
1.45M
    }
5848
1.45M
    if (cached_has_bits & 0x00000040u) {
5849
1.45M
      preelection_ = from.preelection_;
5850
1.45M
    }
5851
1.45M
    _has_bits_[0] |= cached_has_bits;
5852
1.45M
  }
5853
1.45M
}
5854
5855
0
void VoteRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5856
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.VoteRequestPB)
5857
0
  if (&from == this) return;
5858
0
  Clear();
5859
0
  MergeFrom(from);
5860
0
}
5861
5862
1.45M
void VoteRequestPB::CopyFrom(const VoteRequestPB& from) {
5863
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.VoteRequestPB)
5864
1.45M
  if (&from == this) 
return0
;
5865
1.45M
  Clear();
5866
1.45M
  MergeFrom(from);
5867
1.45M
}
5868
5869
2.85M
bool VoteRequestPB::IsInitialized() const {
5870
2.85M
  if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) 
return false0
;
5871
2.85M
  if (has_candidate_status()) {
5872
2.84M
    if (!this->candidate_status_->IsInitialized()) 
return false0
;
5873
2.84M
  }
5874
2.85M
  return true;
5875
2.85M
}
5876
5877
0
void VoteRequestPB::Swap(VoteRequestPB* other) {
5878
0
  if (other == this) return;
5879
0
  InternalSwap(other);
5880
0
}
5881
0
void VoteRequestPB::InternalSwap(VoteRequestPB* other) {
5882
0
  using std::swap;
5883
0
  tablet_id_.Swap(&other->tablet_id_);
5884
0
  candidate_uuid_.Swap(&other->candidate_uuid_);
5885
0
  dest_uuid_.Swap(&other->dest_uuid_);
5886
0
  swap(candidate_status_, other->candidate_status_);
5887
0
  swap(candidate_term_, other->candidate_term_);
5888
0
  swap(ignore_live_leader_, other->ignore_live_leader_);
5889
0
  swap(preelection_, other->preelection_);
5890
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5891
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5892
0
  swap(_cached_size_, other->_cached_size_);
5893
0
}
5894
5895
1.39M
::google::protobuf::Metadata VoteRequestPB::GetMetadata() const {
5896
1.39M
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
5897
1.39M
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
5898
1.39M
}
5899
5900
5901
// ===================================================================
5902
5903
26.8k
void VoteResponsePB::InitAsDefaultInstance() {
5904
26.8k
  ::yb::consensus::_VoteResponsePB_default_instance_._instance.get_mutable()->consensus_error_ = const_cast< ::yb::consensus::ConsensusErrorPB*>(
5905
26.8k
      ::yb::consensus::ConsensusErrorPB::internal_default_instance());
5906
26.8k
  ::yb::consensus::_VoteResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
5907
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
5908
26.8k
}
5909
0
void VoteResponsePB::clear_consensus_error() {
5910
0
  if (consensus_error_ != NULL) consensus_error_->Clear();
5911
0
  clear_has_consensus_error();
5912
0
}
5913
0
void VoteResponsePB::clear_error() {
5914
0
  if (error_ != NULL) error_->Clear();
5915
0
  clear_has_error();
5916
0
}
5917
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5918
const int VoteResponsePB::kResponderUuidFieldNumber;
5919
const int VoteResponsePB::kResponderTermFieldNumber;
5920
const int VoteResponsePB::kVoteGrantedFieldNumber;
5921
const int VoteResponsePB::kRemainingLeaderLeaseDurationMsFieldNumber;
5922
const int VoteResponsePB::kLeaderLeaseUuidFieldNumber;
5923
const int VoteResponsePB::kLeaderHtLeaseExpirationFieldNumber;
5924
const int VoteResponsePB::kLeaderHtLeaseUuidFieldNumber;
5925
const int VoteResponsePB::kPreelectionFieldNumber;
5926
const int VoteResponsePB::kConsensusErrorFieldNumber;
5927
const int VoteResponsePB::kErrorFieldNumber;
5928
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5929
5930
VoteResponsePB::VoteResponsePB()
5931
2.87M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5932
2.87M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5933
2.84M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsVoteResponsePB();
5934
2.84M
  }
5935
2.87M
  SharedCtor();
5936
  // @@protoc_insertion_point(constructor:yb.consensus.VoteResponsePB)
5937
2.87M
}
5938
VoteResponsePB::VoteResponsePB(const VoteResponsePB& from)
5939
  : ::google::protobuf::Message(),
5940
      _internal_metadata_(NULL),
5941
      _has_bits_(from._has_bits_),
5942
0
      _cached_size_(0) {
5943
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5944
0
  responder_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5945
0
  if (from.has_responder_uuid()) {
5946
0
    responder_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.responder_uuid_);
5947
0
  }
5948
0
  leader_lease_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5949
0
  if (from.has_leader_lease_uuid()) {
5950
0
    leader_lease_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leader_lease_uuid_);
5951
0
  }
5952
0
  leader_ht_lease_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5953
0
  if (from.has_leader_ht_lease_uuid()) {
5954
0
    leader_ht_lease_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leader_ht_lease_uuid_);
5955
0
  }
5956
0
  if (from.has_consensus_error()) {
5957
0
    consensus_error_ = new ::yb::consensus::ConsensusErrorPB(*from.consensus_error_);
5958
0
  } else {
5959
0
    consensus_error_ = NULL;
5960
0
  }
5961
0
  if (from.has_error()) {
5962
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
5963
0
  } else {
5964
0
    error_ = NULL;
5965
0
  }
5966
0
  ::memcpy(&responder_term_, &from.responder_term_,
5967
0
    static_cast<size_t>(reinterpret_cast<char*>(&leader_ht_lease_expiration_) -
5968
0
    reinterpret_cast<char*>(&responder_term_)) + sizeof(leader_ht_lease_expiration_));
5969
  // @@protoc_insertion_point(copy_constructor:yb.consensus.VoteResponsePB)
5970
0
}
5971
5972
2.87M
void VoteResponsePB::SharedCtor() {
5973
2.87M
  _cached_size_ = 0;
5974
2.87M
  responder_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5975
2.87M
  leader_lease_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5976
2.87M
  leader_ht_lease_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5977
2.87M
  ::memset(&consensus_error_, 0, static_cast<size_t>(
5978
2.87M
      reinterpret_cast<char*>(&leader_ht_lease_expiration_) -
5979
2.87M
      reinterpret_cast<char*>(&consensus_error_)) + sizeof(leader_ht_lease_expiration_));
5980
2.87M
}
5981
5982
2.84M
VoteResponsePB::~VoteResponsePB() {
5983
  // @@protoc_insertion_point(destructor:yb.consensus.VoteResponsePB)
5984
2.84M
  SharedDtor();
5985
2.84M
}
5986
5987
2.84M
void VoteResponsePB::SharedDtor() {
5988
2.84M
  responder_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5989
2.84M
  leader_lease_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5990
2.84M
  leader_ht_lease_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5991
2.84M
  if (this != internal_default_instance()) 
delete consensus_error_2.84M
;
5992
2.84M
  if (this != internal_default_instance()) 
delete error_2.84M
;
5993
2.84M
}
5994
5995
0
void VoteResponsePB::SetCachedSize(int size) const {
5996
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5997
0
  _cached_size_ = size;
5998
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5999
0
}
6000
0
const ::google::protobuf::Descriptor* VoteResponsePB::descriptor() {
6001
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
6002
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6003
0
}
6004
6005
0
const VoteResponsePB& VoteResponsePB::default_instance() {
6006
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsVoteResponsePB();
6007
0
  return *internal_default_instance();
6008
0
}
6009
6010
0
VoteResponsePB* VoteResponsePB::New(::google::protobuf::Arena* arena) const {
6011
0
  VoteResponsePB* n = new VoteResponsePB;
6012
0
  if (arena != NULL) {
6013
0
    arena->Own(n);
6014
0
  }
6015
0
  return n;
6016
0
}
6017
6018
1.39M
void VoteResponsePB::Clear() {
6019
// @@protoc_insertion_point(message_clear_start:yb.consensus.VoteResponsePB)
6020
1.39M
  ::google::protobuf::uint32 cached_has_bits = 0;
6021
  // Prevent compiler warnings about cached_has_bits being unused
6022
1.39M
  (void) cached_has_bits;
6023
6024
1.39M
  cached_has_bits = _has_bits_[0];
6025
1.39M
  if (cached_has_bits & 31u) {
6026
21
    if (cached_has_bits & 0x00000001u) {
6027
17
      GOOGLE_DCHECK(!responder_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6028
17
      (*responder_uuid_.UnsafeRawStringPointer())->clear();
6029
17
    }
6030
21
    if (cached_has_bits & 0x00000002u) {
6031
12
      GOOGLE_DCHECK(!leader_lease_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6032
12
      (*leader_lease_uuid_.UnsafeRawStringPointer())->clear();
6033
12
    }
6034
21
    if (cached_has_bits & 0x00000004u) {
6035
12
      GOOGLE_DCHECK(!leader_ht_lease_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6036
12
      (*leader_ht_lease_uuid_.UnsafeRawStringPointer())->clear();
6037
12
    }
6038
21
    if (cached_has_bits & 0x00000008u) {
6039
5
      GOOGLE_DCHECK(consensus_error_ != NULL);
6040
5
      consensus_error_->Clear();
6041
5
    }
6042
21
    if (cached_has_bits & 0x00000010u) {
6043
4
      GOOGLE_DCHECK(error_ != NULL);
6044
4
      error_->Clear();
6045
4
    }
6046
21
  }
6047
1.39M
  if (cached_has_bits & 224u) {
6048
17
    ::memset(&responder_term_, 0, static_cast<size_t>(
6049
17
        reinterpret_cast<char*>(&vote_granted_) -
6050
17
        reinterpret_cast<char*>(&responder_term_)) + sizeof(vote_granted_));
6051
17
  }
6052
1.39M
  if (cached_has_bits & 768u) {
6053
15
    ::memset(&preelection_, 0, static_cast<size_t>(
6054
15
        reinterpret_cast<char*>(&leader_ht_lease_expiration_) -
6055
15
        reinterpret_cast<char*>(&preelection_)) + sizeof(leader_ht_lease_expiration_));
6056
15
  }
6057
1.39M
  _has_bits_.Clear();
6058
1.39M
  _internal_metadata_.Clear();
6059
1.39M
}
6060
6061
bool VoteResponsePB::MergePartialFromCodedStream(
6062
1.37M
    ::google::protobuf::io::CodedInputStream* input) {
6063
7.31M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6064
1.37M
  ::google::protobuf::uint32 tag;
6065
  // @@protoc_insertion_point(parse_start:yb.consensus.VoteResponsePB)
6066
8.58M
  for (;;) {
6067
8.58M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
6068
8.58M
    tag = p.first;
6069
8.58M
    if (!p.second) 
goto handle_unusual1.38M
;
6070
7.20M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6071
      // optional bytes responder_uuid = 1;
6072
1.33M
      case 1: {
6073
1.33M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6074
1.35M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6075
1.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6076
1.35M
                input, this->mutable_responder_uuid()));
6077
18.4E
        } else {
6078
18.4E
          goto handle_unusual;
6079
18.4E
        }
6080
1.35M
        break;
6081
1.33M
      }
6082
6083
      // optional int64 responder_term = 2;
6084
1.35M
      case 2: {
6085
1.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6086
1.35M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6087
1.35M
          set_has_responder_term();
6088
1.35M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6089
1.35M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6090
1.35M
                 input, &responder_term_)));
6091
18.4E
        } else {
6092
18.4E
          goto handle_unusual;
6093
18.4E
        }
6094
1.35M
        break;
6095
1.35M
      }
6096
6097
      // optional bool vote_granted = 3;
6098
1.35M
      case 3: {
6099
1.34M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6100
1.35M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6101
1.35M
          set_has_vote_granted();
6102
1.35M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6103
1.35M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6104
1.35M
                 input, &vote_granted_)));
6105
18.4E
        } else {
6106
18.4E
          goto handle_unusual;
6107
18.4E
        }
6108
1.35M
        break;
6109
1.34M
      }
6110
6111
      // optional int32 remaining_leader_lease_duration_ms = 4;
6112
1.35M
      case 4: {
6113
20.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6114
20.7k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6115
20.7k
          set_has_remaining_leader_lease_duration_ms();
6116
20.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6117
20.7k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6118
20.7k
                 input, &remaining_leader_lease_duration_ms_)));
6119
20.7k
        } else {
6120
1
          goto handle_unusual;
6121
1
        }
6122
20.7k
        break;
6123
20.7k
      }
6124
6125
      // optional fixed64 leader_ht_lease_expiration = 5;
6126
805k
      case 5: {
6127
805k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6128
805k
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
6129
805k
          set_has_leader_ht_lease_expiration();
6130
805k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6131
805k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
6132
805k
                 input, &leader_ht_lease_expiration_)));
6133
18.4E
        } else {
6134
18.4E
          goto handle_unusual;
6135
18.4E
        }
6136
805k
        break;
6137
805k
      }
6138
6139
      // optional bool preelection = 6;
6140
1.35M
      case 6: {
6141
1.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6142
1.35M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
6143
1.35M
          set_has_preelection();
6144
1.35M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6145
1.35M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6146
1.35M
                 input, &preelection_)));
6147
18.4E
        } else {
6148
18.4E
          goto handle_unusual;
6149
18.4E
        }
6150
1.35M
        break;
6151
1.35M
      }
6152
6153
      // optional bytes leader_lease_uuid = 7;
6154
1.35M
      case 7: {
6155
20.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6156
20.7k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
6157
20.7k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6158
20.7k
                input, this->mutable_leader_lease_uuid()));
6159
18.4E
        } else {
6160
18.4E
          goto handle_unusual;
6161
18.4E
        }
6162
20.7k
        break;
6163
20.7k
      }
6164
6165
      // optional bytes leader_ht_lease_uuid = 8;
6166
802k
      case 8: {
6167
802k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6168
804k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
6169
804k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6170
804k
                input, this->mutable_leader_ht_lease_uuid()));
6171
18.4E
        } else {
6172
18.4E
          goto handle_unusual;
6173
18.4E
        }
6174
804k
        break;
6175
802k
      }
6176
6177
      // optional .yb.consensus.ConsensusErrorPB consensus_error = 998;
6178
804k
      case 998: {
6179
215k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6180
215k
            static_cast< ::google::protobuf::uint8>(50u /* 7986 & 0xFF */)) {
6181
215k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6182
215k
               input, mutable_consensus_error()));
6183
18.4E
        } else {
6184
18.4E
          goto handle_unusual;
6185
18.4E
        }
6186
215k
        break;
6187
215k
      }
6188
6189
      // optional .yb.tserver.TabletServerErrorPB error = 999;
6190
215k
      case 999: {
6191
31.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6192
31.9k
            static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
6193
31.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6194
31.9k
               input, mutable_error()));
6195
31.9k
        } else {
6196
1
          goto handle_unusual;
6197
1
        }
6198
31.9k
        break;
6199
31.9k
      }
6200
6201
31.9k
      default: {
6202
1.38M
      handle_unusual:
6203
1.38M
        if (
tag == 01.38M
) {
6204
1.38M
          goto success;
6205
1.38M
        }
6206
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6207
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6208
18.4E
        break;
6209
18.4E
      }
6210
7.20M
    }
6211
7.20M
  }
6212
18.4E
success:
6213
  // @@protoc_insertion_point(parse_success:yb.consensus.VoteResponsePB)
6214
1.38M
  return true;
6215
0
failure:
6216
  // @@protoc_insertion_point(parse_failure:yb.consensus.VoteResponsePB)
6217
0
  return false;
6218
1.37M
#undef DO_
6219
1.37M
}
6220
6221
void VoteResponsePB::SerializeWithCachedSizes(
6222
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6223
  // @@protoc_insertion_point(serialize_start:yb.consensus.VoteResponsePB)
6224
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6225
0
  (void) cached_has_bits;
6226
6227
0
  cached_has_bits = _has_bits_[0];
6228
  // optional bytes responder_uuid = 1;
6229
0
  if (cached_has_bits & 0x00000001u) {
6230
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6231
0
      1, this->responder_uuid(), output);
6232
0
  }
6233
6234
  // optional int64 responder_term = 2;
6235
0
  if (cached_has_bits & 0x00000020u) {
6236
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->responder_term(), output);
6237
0
  }
6238
6239
  // optional bool vote_granted = 3;
6240
0
  if (cached_has_bits & 0x00000080u) {
6241
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->vote_granted(), output);
6242
0
  }
6243
6244
  // optional int32 remaining_leader_lease_duration_ms = 4;
6245
0
  if (cached_has_bits & 0x00000040u) {
6246
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->remaining_leader_lease_duration_ms(), output);
6247
0
  }
6248
6249
  // optional fixed64 leader_ht_lease_expiration = 5;
6250
0
  if (cached_has_bits & 0x00000200u) {
6251
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->leader_ht_lease_expiration(), output);
6252
0
  }
6253
6254
  // optional bool preelection = 6;
6255
0
  if (cached_has_bits & 0x00000100u) {
6256
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->preelection(), output);
6257
0
  }
6258
6259
  // optional bytes leader_lease_uuid = 7;
6260
0
  if (cached_has_bits & 0x00000002u) {
6261
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6262
0
      7, this->leader_lease_uuid(), output);
6263
0
  }
6264
6265
  // optional bytes leader_ht_lease_uuid = 8;
6266
0
  if (cached_has_bits & 0x00000004u) {
6267
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6268
0
      8, this->leader_ht_lease_uuid(), output);
6269
0
  }
6270
6271
  // optional .yb.consensus.ConsensusErrorPB consensus_error = 998;
6272
0
  if (cached_has_bits & 0x00000008u) {
6273
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6274
0
      998, *this->consensus_error_, output);
6275
0
  }
6276
6277
  // optional .yb.tserver.TabletServerErrorPB error = 999;
6278
0
  if (cached_has_bits & 0x00000010u) {
6279
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6280
0
      999, *this->error_, output);
6281
0
  }
6282
6283
0
  if (_internal_metadata_.have_unknown_fields()) {
6284
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6285
0
        _internal_metadata_.unknown_fields(), output);
6286
0
  }
6287
  // @@protoc_insertion_point(serialize_end:yb.consensus.VoteResponsePB)
6288
0
}
6289
6290
::google::protobuf::uint8* VoteResponsePB::InternalSerializeWithCachedSizesToArray(
6291
1.38M
    bool deterministic, ::google::protobuf::uint8* target) const {
6292
1.38M
  (void)deterministic; // Unused
6293
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.VoteResponsePB)
6294
1.38M
  ::google::protobuf::uint32 cached_has_bits = 0;
6295
1.38M
  (void) cached_has_bits;
6296
6297
1.38M
  cached_has_bits = _has_bits_[0];
6298
  // optional bytes responder_uuid = 1;
6299
1.38M
  if (cached_has_bits & 0x00000001u) {
6300
1.35M
    target =
6301
1.35M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6302
1.35M
        1, this->responder_uuid(), target);
6303
1.35M
  }
6304
6305
  // optional int64 responder_term = 2;
6306
1.38M
  if (cached_has_bits & 0x00000020u) {
6307
1.35M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->responder_term(), target);
6308
1.35M
  }
6309
6310
  // optional bool vote_granted = 3;
6311
1.38M
  if (cached_has_bits & 0x00000080u) {
6312
1.35M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->vote_granted(), target);
6313
1.35M
  }
6314
6315
  // optional int32 remaining_leader_lease_duration_ms = 4;
6316
1.38M
  if (cached_has_bits & 0x00000040u) {
6317
20.7k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->remaining_leader_lease_duration_ms(), target);
6318
20.7k
  }
6319
6320
  // optional fixed64 leader_ht_lease_expiration = 5;
6321
1.38M
  if (cached_has_bits & 0x00000200u) {
6322
803k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->leader_ht_lease_expiration(), target);
6323
803k
  }
6324
6325
  // optional bool preelection = 6;
6326
1.38M
  if (cached_has_bits & 0x00000100u) {
6327
1.35M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->preelection(), target);
6328
1.35M
  }
6329
6330
  // optional bytes leader_lease_uuid = 7;
6331
1.38M
  if (cached_has_bits & 0x00000002u) {
6332
20.7k
    target =
6333
20.7k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6334
20.7k
        7, this->leader_lease_uuid(), target);
6335
20.7k
  }
6336
6337
  // optional bytes leader_ht_lease_uuid = 8;
6338
1.38M
  if (cached_has_bits & 0x00000004u) {
6339
803k
    target =
6340
803k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6341
803k
        8, this->leader_ht_lease_uuid(), target);
6342
803k
  }
6343
6344
  // optional .yb.consensus.ConsensusErrorPB consensus_error = 998;
6345
1.38M
  if (cached_has_bits & 0x00000008u) {
6346
221k
    target = ::google::protobuf::internal::WireFormatLite::
6347
221k
      InternalWriteMessageToArray(
6348
221k
        998, *this->consensus_error_, deterministic, target);
6349
221k
  }
6350
6351
  // optional .yb.tserver.TabletServerErrorPB error = 999;
6352
1.38M
  if (cached_has_bits & 0x00000010u) {
6353
31.8k
    target = ::google::protobuf::internal::WireFormatLite::
6354
31.8k
      InternalWriteMessageToArray(
6355
31.8k
        999, *this->error_, deterministic, target);
6356
31.8k
  }
6357
6358
1.38M
  if (_internal_metadata_.have_unknown_fields()) {
6359
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6360
0
        _internal_metadata_.unknown_fields(), target);
6361
0
  }
6362
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.VoteResponsePB)
6363
1.38M
  return target;
6364
1.38M
}
6365
6366
2.77M
size_t VoteResponsePB::ByteSizeLong() const {
6367
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.VoteResponsePB)
6368
2.77M
  size_t total_size = 0;
6369
6370
2.77M
  if (_internal_metadata_.have_unknown_fields()) {
6371
0
    total_size +=
6372
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6373
0
        _internal_metadata_.unknown_fields());
6374
0
  }
6375
2.77M
  if (_has_bits_[0 / 32] & 255u) {
6376
    // optional bytes responder_uuid = 1;
6377
2.77M
    if (has_responder_uuid()) {
6378
2.71M
      total_size += 1 +
6379
2.71M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6380
2.71M
          this->responder_uuid());
6381
2.71M
    }
6382
6383
    // optional bytes leader_lease_uuid = 7;
6384
2.77M
    if (has_leader_lease_uuid()) {
6385
41.5k
      total_size += 1 +
6386
41.5k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6387
41.5k
          this->leader_lease_uuid());
6388
41.5k
    }
6389
6390
    // optional bytes leader_ht_lease_uuid = 8;
6391
2.77M
    if (has_leader_ht_lease_uuid()) {
6392
1.60M
      total_size += 1 +
6393
1.60M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6394
1.60M
          this->leader_ht_lease_uuid());
6395
1.60M
    }
6396
6397
    // optional .yb.consensus.ConsensusErrorPB consensus_error = 998;
6398
2.77M
    if (has_consensus_error()) {
6399
442k
      total_size += 2 +
6400
442k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6401
442k
          *this->consensus_error_);
6402
442k
    }
6403
6404
    // optional .yb.tserver.TabletServerErrorPB error = 999;
6405
2.77M
    if (has_error()) {
6406
63.7k
      total_size += 2 +
6407
63.7k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6408
63.7k
          *this->error_);
6409
63.7k
    }
6410
6411
    // optional int64 responder_term = 2;
6412
2.77M
    if (has_responder_term()) {
6413
2.71M
      total_size += 1 +
6414
2.71M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6415
2.71M
          this->responder_term());
6416
2.71M
    }
6417
6418
    // optional int32 remaining_leader_lease_duration_ms = 4;
6419
2.77M
    if (has_remaining_leader_lease_duration_ms()) {
6420
41.5k
      total_size += 1 +
6421
41.5k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
6422
41.5k
          this->remaining_leader_lease_duration_ms());
6423
41.5k
    }
6424
6425
    // optional bool vote_granted = 3;
6426
2.77M
    if (has_vote_granted()) {
6427
2.71M
      total_size += 1 + 1;
6428
2.71M
    }
6429
6430
2.77M
  }
6431
2.77M
  if (_has_bits_[8 / 32] & 768u) {
6432
    // optional bool preelection = 6;
6433
2.71M
    if (
has_preelection()2.71M
) {
6434
2.71M
      total_size += 1 + 1;
6435
2.71M
    }
6436
6437
    // optional fixed64 leader_ht_lease_expiration = 5;
6438
2.71M
    if (has_leader_ht_lease_expiration()) {
6439
1.60M
      total_size += 1 + 8;
6440
1.60M
    }
6441
6442
2.71M
  }
6443
2.77M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6444
2.77M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6445
2.77M
  _cached_size_ = cached_size;
6446
2.77M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6447
2.77M
  return total_size;
6448
2.77M
}
6449
6450
0
void VoteResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6451
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.VoteResponsePB)
6452
0
  GOOGLE_DCHECK_NE(&from, this);
6453
0
  const VoteResponsePB* source =
6454
0
      ::google::protobuf::internal::DynamicCastToGenerated<const VoteResponsePB>(
6455
0
          &from);
6456
0
  if (source == NULL) {
6457
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.VoteResponsePB)
6458
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6459
0
  } else {
6460
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.VoteResponsePB)
6461
0
    MergeFrom(*source);
6462
0
  }
6463
0
}
6464
6465
66
void VoteResponsePB::MergeFrom(const VoteResponsePB& from) {
6466
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.VoteResponsePB)
6467
66
  GOOGLE_DCHECK_NE(&from, this);
6468
66
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6469
66
  ::google::protobuf::uint32 cached_has_bits = 0;
6470
66
  (void) cached_has_bits;
6471
6472
66
  cached_has_bits = from._has_bits_[0];
6473
66
  if (cached_has_bits & 255u) {
6474
52
    if (cached_has_bits & 0x00000001u) {
6475
36
      set_has_responder_uuid();
6476
36
      responder_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.responder_uuid_);
6477
36
    }
6478
52
    if (cached_has_bits & 0x00000002u) {
6479
20
      set_has_leader_lease_uuid();
6480
20
      leader_lease_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leader_lease_uuid_);
6481
20
    }
6482
52
    if (cached_has_bits & 0x00000004u) {
6483
20
      set_has_leader_ht_lease_uuid();
6484
20
      leader_ht_lease_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leader_ht_lease_uuid_);
6485
20
    }
6486
52
    if (cached_has_bits & 0x00000008u) {
6487
10
      mutable_consensus_error()->::yb::consensus::ConsensusErrorPB::MergeFrom(from.consensus_error());
6488
10
    }
6489
52
    if (cached_has_bits & 0x00000010u) {
6490
16
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
6491
16
    }
6492
52
    if (cached_has_bits & 0x00000020u) {
6493
36
      responder_term_ = from.responder_term_;
6494
36
    }
6495
52
    if (cached_has_bits & 0x00000040u) {
6496
20
      remaining_leader_lease_duration_ms_ = from.remaining_leader_lease_duration_ms_;
6497
20
    }
6498
52
    if (cached_has_bits & 0x00000080u) {
6499
36
      vote_granted_ = from.vote_granted_;
6500
36
    }
6501
52
    _has_bits_[0] |= cached_has_bits;
6502
52
  }
6503
66
  if (cached_has_bits & 768u) {
6504
20
    if (cached_has_bits & 0x00000100u) {
6505
20
      preelection_ = from.preelection_;
6506
20
    }
6507
20
    if (cached_has_bits & 0x00000200u) {
6508
20
      leader_ht_lease_expiration_ = from.leader_ht_lease_expiration_;
6509
20
    }
6510
20
    _has_bits_[0] |= cached_has_bits;
6511
20
  }
6512
66
}
6513
6514
0
void VoteResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6515
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.VoteResponsePB)
6516
0
  if (&from == this) return;
6517
0
  Clear();
6518
0
  MergeFrom(from);
6519
0
}
6520
6521
65
void VoteResponsePB::CopyFrom(const VoteResponsePB& from) {
6522
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.VoteResponsePB)
6523
65
  if (&from == this) 
return0
;
6524
65
  Clear();
6525
65
  MergeFrom(from);
6526
65
}
6527
6528
2.78M
bool VoteResponsePB::IsInitialized() const {
6529
2.78M
  if (has_consensus_error()) {
6530
436k
    if (!this->consensus_error_->IsInitialized()) 
return false0
;
6531
436k
  }
6532
2.78M
  if (has_error()) {
6533
63.8k
    if (!this->error_->IsInitialized()) 
return false0
;
6534
63.8k
  }
6535
2.78M
  return true;
6536
2.78M
}
6537
6538
0
void VoteResponsePB::Swap(VoteResponsePB* other) {
6539
0
  if (other == this) return;
6540
0
  InternalSwap(other);
6541
0
}
6542
0
void VoteResponsePB::InternalSwap(VoteResponsePB* other) {
6543
0
  using std::swap;
6544
0
  responder_uuid_.Swap(&other->responder_uuid_);
6545
0
  leader_lease_uuid_.Swap(&other->leader_lease_uuid_);
6546
0
  leader_ht_lease_uuid_.Swap(&other->leader_ht_lease_uuid_);
6547
0
  swap(consensus_error_, other->consensus_error_);
6548
0
  swap(error_, other->error_);
6549
0
  swap(responder_term_, other->responder_term_);
6550
0
  swap(remaining_leader_lease_duration_ms_, other->remaining_leader_lease_duration_ms_);
6551
0
  swap(vote_granted_, other->vote_granted_);
6552
0
  swap(preelection_, other->preelection_);
6553
0
  swap(leader_ht_lease_expiration_, other->leader_ht_lease_expiration_);
6554
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6555
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6556
0
  swap(_cached_size_, other->_cached_size_);
6557
0
}
6558
6559
0
::google::protobuf::Metadata VoteResponsePB::GetMetadata() const {
6560
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
6561
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
6562
0
}
6563
6564
6565
// ===================================================================
6566
6567
26.8k
void ConsensusRequestPB::InitAsDefaultInstance() {
6568
26.8k
  ::yb::consensus::_ConsensusRequestPB_default_instance_._instance.get_mutable()->preceding_id_ = const_cast< ::yb::OpIdPB*>(
6569
26.8k
      ::yb::OpIdPB::internal_default_instance());
6570
26.8k
  ::yb::consensus::_ConsensusRequestPB_default_instance_._instance.get_mutable()->committed_op_id_ = const_cast< ::yb::OpIdPB*>(
6571
26.8k
      ::yb::OpIdPB::internal_default_instance());
6572
26.8k
}
6573
0
void ConsensusRequestPB::clear_preceding_id() {
6574
0
  if (preceding_id_ != NULL) preceding_id_->Clear();
6575
0
  clear_has_preceding_id();
6576
0
}
6577
0
void ConsensusRequestPB::clear_committed_op_id() {
6578
0
  if (committed_op_id_ != NULL) committed_op_id_->Clear();
6579
0
  clear_has_committed_op_id();
6580
0
}
6581
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6582
const int ConsensusRequestPB::kDestUuidFieldNumber;
6583
const int ConsensusRequestPB::kTabletIdFieldNumber;
6584
const int ConsensusRequestPB::kCallerUuidFieldNumber;
6585
const int ConsensusRequestPB::kCallerTermFieldNumber;
6586
const int ConsensusRequestPB::kPrecedingIdFieldNumber;
6587
const int ConsensusRequestPB::kCommittedOpIdFieldNumber;
6588
const int ConsensusRequestPB::kOpsFieldNumber;
6589
const int ConsensusRequestPB::kLeaderLeaseDurationMsFieldNumber;
6590
const int ConsensusRequestPB::kHtLeaseExpirationFieldNumber;
6591
const int ConsensusRequestPB::kPropagatedSafeTimeFieldNumber;
6592
const int ConsensusRequestPB::kPropagatedHybridTimeFieldNumber;
6593
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6594
6595
ConsensusRequestPB::ConsensusRequestPB()
6596
25.8M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6597
25.8M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6598
25.8M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusRequestPB();
6599
25.8M
  }
6600
25.8M
  SharedCtor();
6601
  // @@protoc_insertion_point(constructor:yb.consensus.ConsensusRequestPB)
6602
25.8M
}
6603
ConsensusRequestPB::ConsensusRequestPB(const ConsensusRequestPB& from)
6604
  : ::google::protobuf::Message(),
6605
      _internal_metadata_(NULL),
6606
      _has_bits_(from._has_bits_),
6607
      _cached_size_(0),
6608
1.17k
      ops_(from.ops_) {
6609
1.17k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6610
1.17k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6611
1.17k
  if (from.has_tablet_id()) {
6612
1.17k
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
6613
1.17k
  }
6614
1.17k
  caller_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6615
1.17k
  if (from.has_caller_uuid()) {
6616
1.17k
    caller_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.caller_uuid_);
6617
1.17k
  }
6618
1.17k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6619
1.17k
  if (from.has_dest_uuid()) {
6620
1.17k
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
6621
1.17k
  }
6622
1.17k
  if (from.has_preceding_id()) {
6623
1.17k
    preceding_id_ = new ::yb::OpIdPB(*from.preceding_id_);
6624
1.17k
  } else {
6625
1
    preceding_id_ = NULL;
6626
1
  }
6627
1.17k
  if (from.has_committed_op_id()) {
6628
1.17k
    committed_op_id_ = new ::yb::OpIdPB(*from.committed_op_id_);
6629
1.17k
  } else {
6630
0
    committed_op_id_ = NULL;
6631
0
  }
6632
1.17k
  ::memcpy(&caller_term_, &from.caller_term_,
6633
1.17k
    static_cast<size_t>(reinterpret_cast<char*>(&leader_lease_duration_ms_) -
6634
1.17k
    reinterpret_cast<char*>(&caller_term_)) + sizeof(leader_lease_duration_ms_));
6635
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ConsensusRequestPB)
6636
1.17k
}
6637
6638
25.8M
void ConsensusRequestPB::SharedCtor() {
6639
25.8M
  _cached_size_ = 0;
6640
25.8M
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6641
25.8M
  caller_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6642
25.8M
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6643
25.8M
  ::memset(&preceding_id_, 0, static_cast<size_t>(
6644
25.8M
      reinterpret_cast<char*>(&leader_lease_duration_ms_) -
6645
25.8M
      reinterpret_cast<char*>(&preceding_id_)) + sizeof(leader_lease_duration_ms_));
6646
25.8M
}
6647
6648
25.7M
ConsensusRequestPB::~ConsensusRequestPB() {
6649
  // @@protoc_insertion_point(destructor:yb.consensus.ConsensusRequestPB)
6650
25.7M
  SharedDtor();
6651
25.7M
}
6652
6653
25.7M
void ConsensusRequestPB::SharedDtor() {
6654
25.7M
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6655
25.7M
  caller_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6656
25.7M
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6657
25.7M
  if (
this != internal_default_instance()25.7M
) delete preceding_id_;
6658
25.7M
  if (
this != internal_default_instance()25.7M
) delete committed_op_id_;
6659
25.7M
}
6660
6661
0
void ConsensusRequestPB::SetCachedSize(int size) const {
6662
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6663
0
  _cached_size_ = size;
6664
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6665
0
}
6666
0
const ::google::protobuf::Descriptor* ConsensusRequestPB::descriptor() {
6667
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
6668
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6669
0
}
6670
6671
0
const ConsensusRequestPB& ConsensusRequestPB::default_instance() {
6672
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusRequestPB();
6673
0
  return *internal_default_instance();
6674
0
}
6675
6676
0
ConsensusRequestPB* ConsensusRequestPB::New(::google::protobuf::Arena* arena) const {
6677
0
  ConsensusRequestPB* n = new ConsensusRequestPB;
6678
0
  if (arena != NULL) {
6679
0
    arena->Own(n);
6680
0
  }
6681
0
  return n;
6682
0
}
6683
6684
25.5M
void ConsensusRequestPB::Clear() {
6685
// @@protoc_insertion_point(message_clear_start:yb.consensus.ConsensusRequestPB)
6686
25.5M
  ::google::protobuf::uint32 cached_has_bits = 0;
6687
  // Prevent compiler warnings about cached_has_bits being unused
6688
25.5M
  (void) cached_has_bits;
6689
6690
25.5M
  ops_.Clear();
6691
25.5M
  cached_has_bits = _has_bits_[0];
6692
25.5M
  if (cached_has_bits & 31u) {
6693
7
    if (cached_has_bits & 0x00000001u) {
6694
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6695
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
6696
0
    }
6697
7
    if (cached_has_bits & 0x00000002u) {
6698
0
      GOOGLE_DCHECK(!caller_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6699
0
      (*caller_uuid_.UnsafeRawStringPointer())->clear();
6700
0
    }
6701
7
    if (cached_has_bits & 0x00000004u) {
6702
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6703
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
6704
0
    }
6705
7
    if (cached_has_bits & 0x00000008u) {
6706
7
      GOOGLE_DCHECK(preceding_id_ != NULL);
6707
7
      preceding_id_->Clear();
6708
7
    }
6709
7
    if (cached_has_bits & 0x00000010u) {
6710
7
      GOOGLE_DCHECK(committed_op_id_ != NULL);
6711
7
      committed_op_id_->Clear();
6712
7
    }
6713
7
  }
6714
25.5M
  if (cached_has_bits & 224u) {
6715
7
    ::memset(&caller_term_, 0, static_cast<size_t>(
6716
7
        reinterpret_cast<char*>(&propagated_safe_time_) -
6717
7
        reinterpret_cast<char*>(&caller_term_)) + sizeof(propagated_safe_time_));
6718
7
  }
6719
25.5M
  if (cached_has_bits & 768u) {
6720
7
    ::memset(&propagated_hybrid_time_, 0, static_cast<size_t>(
6721
7
        reinterpret_cast<char*>(&leader_lease_duration_ms_) -
6722
7
        reinterpret_cast<char*>(&propagated_hybrid_time_)) + sizeof(leader_lease_duration_ms_));
6723
7
  }
6724
25.5M
  _has_bits_.Clear();
6725
25.5M
  _internal_metadata_.Clear();
6726
25.5M
}
6727
6728
bool ConsensusRequestPB::MergePartialFromCodedStream(
6729
25.5M
    ::google::protobuf::io::CodedInputStream* input) {
6730
264M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6731
25.5M
  ::google::protobuf::uint32 tag;
6732
  // @@protoc_insertion_point(parse_start:yb.consensus.ConsensusRequestPB)
6733
290M
  for (;;) {
6734
290M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6735
290M
    tag = p.first;
6736
290M
    if (!p.second) 
goto handle_unusual25.5M
;
6737
264M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6738
      // required string tablet_id = 1;
6739
25.5M
      case 1: {
6740
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6741
25.5M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6742
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6743
25.5M
                input, this->mutable_tablet_id()));
6744
25.5M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6745
25.5M
            this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
6746
25.5M
            ::google::protobuf::internal::WireFormat::PARSE,
6747
25.5M
            "yb.consensus.ConsensusRequestPB.tablet_id");
6748
18.4E
        } else {
6749
18.4E
          goto handle_unusual;
6750
18.4E
        }
6751
25.5M
        break;
6752
25.5M
      }
6753
6754
      // required bytes caller_uuid = 2;
6755
25.5M
      case 2: {
6756
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6757
25.5M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6758
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6759
25.5M
                input, this->mutable_caller_uuid()));
6760
18.4E
        } else {
6761
18.4E
          goto handle_unusual;
6762
18.4E
        }
6763
25.5M
        break;
6764
25.5M
      }
6765
6766
      // required int64 caller_term = 3;
6767
25.5M
      case 3: {
6768
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6769
25.5M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6770
25.5M
          set_has_caller_term();
6771
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6772
25.5M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6773
25.5M
                 input, &caller_term_)));
6774
25.5M
        } else {
6775
20
          goto handle_unusual;
6776
20
        }
6777
25.5M
        break;
6778
25.5M
      }
6779
6780
      // optional .yb.OpIdPB preceding_id = 4;
6781
25.5M
      case 4: {
6782
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6783
25.5M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
6784
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6785
25.5M
               input, mutable_preceding_id()));
6786
18.4E
        } else {
6787
18.4E
          goto handle_unusual;
6788
18.4E
        }
6789
25.5M
        break;
6790
25.5M
      }
6791
6792
      // required .yb.OpIdPB committed_op_id = 5;
6793
25.5M
      case 5: {
6794
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6795
25.5M
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
6796
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6797
25.5M
               input, mutable_committed_op_id()));
6798
18.4E
        } else {
6799
18.4E
          goto handle_unusual;
6800
18.4E
        }
6801
25.5M
        break;
6802
25.5M
      }
6803
6804
      // repeated .yb.consensus.ReplicateMsg ops = 6;
6805
25.5M
      case 6: {
6806
9.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6807
9.42M
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6808
9.42M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ops()));
6809
18.4E
        } else {
6810
18.4E
          goto handle_unusual;
6811
18.4E
        }
6812
9.42M
        break;
6813
9.42M
      }
6814
6815
      // optional bytes dest_uuid = 7;
6816
25.5M
      case 7: {
6817
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6818
25.5M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
6819
25.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6820
25.5M
                input, this->mutable_dest_uuid()));
6821
18.4E
        } else {
6822
18.4E
          goto handle_unusual;
6823
18.4E
        }
6824
25.5M
        break;
6825
25.5M
      }
6826
6827
      // optional int32 leader_lease_duration_ms = 8;
6828
25.5M
      case 8: {
6829
25.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6830
25.4M
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
6831
25.4M
          set_has_leader_lease_duration_ms();
6832
25.4M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6833
25.4M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6834
25.4M
                 input, &leader_lease_duration_ms_)));
6835
18.4E
        } else {
6836
18.4E
          goto handle_unusual;
6837
18.4E
        }
6838
25.4M
        break;
6839
25.4M
      }
6840
6841
      // optional fixed64 ht_lease_expiration = 9;
6842
25.4M
      case 9: {
6843
25.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6844
25.4M
            static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
6845
25.4M
          set_has_ht_lease_expiration();
6846
25.4M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6847
25.4M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
6848
25.4M
                 input, &ht_lease_expiration_)));
6849
18.4E
        } else {
6850
18.4E
          goto handle_unusual;
6851
18.4E
        }
6852
25.4M
        break;
6853
25.4M
      }
6854
6855
      // optional fixed64 propagated_safe_time = 10;
6856
25.4M
      case 10: {
6857
25.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6858
25.4M
            static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
6859
25.4M
          set_has_propagated_safe_time();
6860
25.4M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6861
25.4M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
6862
25.4M
                 input, &propagated_safe_time_)));
6863
25.4M
        } else {
6864
1.00k
          goto handle_unusual;
6865
1.00k
        }
6866
25.4M
        break;
6867
25.4M
      }
6868
6869
      // optional fixed64 propagated_hybrid_time = 11;
6870
25.5M
      case 11: {
6871
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6872
25.5M
            static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
6873
25.5M
          set_has_propagated_hybrid_time();
6874
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6875
25.5M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
6876
25.5M
                 input, &propagated_hybrid_time_)));
6877
18.4E
        } else {
6878
18.4E
          goto handle_unusual;
6879
18.4E
        }
6880
25.5M
        break;
6881
25.5M
      }
6882
6883
25.5M
      default: {
6884
25.5M
      handle_unusual:
6885
25.5M
        if (
tag == 025.5M
) {
6886
25.5M
          goto success;
6887
25.5M
        }
6888
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6889
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6890
18.4E
        break;
6891
18.4E
      }
6892
264M
    }
6893
264M
  }
6894
18.4E
success:
6895
  // @@protoc_insertion_point(parse_success:yb.consensus.ConsensusRequestPB)
6896
25.5M
  return true;
6897
0
failure:
6898
  // @@protoc_insertion_point(parse_failure:yb.consensus.ConsensusRequestPB)
6899
0
  return false;
6900
25.5M
#undef DO_
6901
25.5M
}
6902
6903
void ConsensusRequestPB::SerializeWithCachedSizes(
6904
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6905
  // @@protoc_insertion_point(serialize_start:yb.consensus.ConsensusRequestPB)
6906
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6907
0
  (void) cached_has_bits;
6908
6909
0
  cached_has_bits = _has_bits_[0];
6910
  // required string tablet_id = 1;
6911
0
  if (cached_has_bits & 0x00000001u) {
6912
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6913
0
      this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
6914
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6915
0
      "yb.consensus.ConsensusRequestPB.tablet_id");
6916
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6917
0
      1, this->tablet_id(), output);
6918
0
  }
6919
6920
  // required bytes caller_uuid = 2;
6921
0
  if (cached_has_bits & 0x00000002u) {
6922
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6923
0
      2, this->caller_uuid(), output);
6924
0
  }
6925
6926
  // required int64 caller_term = 3;
6927
0
  if (cached_has_bits & 0x00000020u) {
6928
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->caller_term(), output);
6929
0
  }
6930
6931
  // optional .yb.OpIdPB preceding_id = 4;
6932
0
  if (cached_has_bits & 0x00000008u) {
6933
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6934
0
      4, *this->preceding_id_, output);
6935
0
  }
6936
6937
  // required .yb.OpIdPB committed_op_id = 5;
6938
0
  if (cached_has_bits & 0x00000010u) {
6939
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6940
0
      5, *this->committed_op_id_, output);
6941
0
  }
6942
6943
  // repeated .yb.consensus.ReplicateMsg ops = 6;
6944
0
  for (unsigned int i = 0,
6945
0
      n = static_cast<unsigned int>(this->ops_size()); i < n; i++) {
6946
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6947
0
      6, this->ops(static_cast<int>(i)), output);
6948
0
  }
6949
6950
  // optional bytes dest_uuid = 7;
6951
0
  if (cached_has_bits & 0x00000004u) {
6952
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6953
0
      7, this->dest_uuid(), output);
6954
0
  }
6955
6956
  // optional int32 leader_lease_duration_ms = 8;
6957
0
  if (cached_has_bits & 0x00000200u) {
6958
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->leader_lease_duration_ms(), output);
6959
0
  }
6960
6961
  // optional fixed64 ht_lease_expiration = 9;
6962
0
  if (cached_has_bits & 0x00000040u) {
6963
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(9, this->ht_lease_expiration(), output);
6964
0
  }
6965
6966
  // optional fixed64 propagated_safe_time = 10;
6967
0
  if (cached_has_bits & 0x00000080u) {
6968
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(10, this->propagated_safe_time(), output);
6969
0
  }
6970
6971
  // optional fixed64 propagated_hybrid_time = 11;
6972
0
  if (cached_has_bits & 0x00000100u) {
6973
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(11, this->propagated_hybrid_time(), output);
6974
0
  }
6975
6976
0
  if (_internal_metadata_.have_unknown_fields()) {
6977
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6978
0
        _internal_metadata_.unknown_fields(), output);
6979
0
  }
6980
  // @@protoc_insertion_point(serialize_end:yb.consensus.ConsensusRequestPB)
6981
0
}
6982
6983
::google::protobuf::uint8* ConsensusRequestPB::InternalSerializeWithCachedSizesToArray(
6984
25.8M
    bool deterministic, ::google::protobuf::uint8* target) const {
6985
25.8M
  (void)deterministic; // Unused
6986
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ConsensusRequestPB)
6987
25.8M
  ::google::protobuf::uint32 cached_has_bits = 0;
6988
25.8M
  (void) cached_has_bits;
6989
6990
25.8M
  cached_has_bits = _has_bits_[0];
6991
  // required string tablet_id = 1;
6992
25.8M
  if (cached_has_bits & 0x00000001u) {
6993
25.8M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6994
25.8M
      this->tablet_id().data(), static_cast<int>(this->tablet_id().length()),
6995
25.8M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6996
25.8M
      "yb.consensus.ConsensusRequestPB.tablet_id");
6997
25.8M
    target =
6998
25.8M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6999
25.8M
        1, this->tablet_id(), target);
7000
25.8M
  }
7001
7002
  // required bytes caller_uuid = 2;
7003
25.8M
  if (cached_has_bits & 0x00000002u) {
7004
25.7M
    target =
7005
25.7M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7006
25.7M
        2, this->caller_uuid(), target);
7007
25.7M
  }
7008
7009
  // required int64 caller_term = 3;
7010
25.8M
  if (cached_has_bits & 0x00000020u) {
7011
25.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->caller_term(), target);
7012
25.7M
  }
7013
7014
  // optional .yb.OpIdPB preceding_id = 4;
7015
25.8M
  if (cached_has_bits & 0x00000008u) {
7016
25.7M
    target = ::google::protobuf::internal::WireFormatLite::
7017
25.7M
      InternalWriteMessageToArray(
7018
25.7M
        4, *this->preceding_id_, deterministic, target);
7019
25.7M
  }
7020
7021
  // required .yb.OpIdPB committed_op_id = 5;
7022
25.8M
  if (cached_has_bits & 0x00000010u) {
7023
25.7M
    target = ::google::protobuf::internal::WireFormatLite::
7024
25.7M
      InternalWriteMessageToArray(
7025
25.7M
        5, *this->committed_op_id_, deterministic, target);
7026
25.7M
  }
7027
7028
  // repeated .yb.consensus.ReplicateMsg ops = 6;
7029
25.8M
  for (unsigned int i = 0,
7030
35.2M
      n = static_cast<unsigned int>(this->ops_size()); i < n; 
i++9.42M
) {
7031
9.42M
    target = ::google::protobuf::internal::WireFormatLite::
7032
9.42M
      InternalWriteMessageToArray(
7033
9.42M
        6, this->ops(static_cast<int>(i)), deterministic, target);
7034
9.42M
  }
7035
7036
  // optional bytes dest_uuid = 7;
7037
25.8M
  if (cached_has_bits & 0x00000004u) {
7038
25.8M
    target =
7039
25.8M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7040
25.8M
        7, this->dest_uuid(), target);
7041
25.8M
  }
7042
7043
  // optional int32 leader_lease_duration_ms = 8;
7044
25.8M
  if (cached_has_bits & 0x00000200u) {
7045
25.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->leader_lease_duration_ms(), target);
7046
25.5M
  }
7047
7048
  // optional fixed64 ht_lease_expiration = 9;
7049
25.8M
  if (cached_has_bits & 0x00000040u) {
7050
25.6M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(9, this->ht_lease_expiration(), target);
7051
25.6M
  }
7052
7053
  // optional fixed64 propagated_safe_time = 10;
7054
25.8M
  if (cached_has_bits & 0x00000080u) {
7055
25.3M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(10, this->propagated_safe_time(), target);
7056
25.3M
  }
7057
7058
  // optional fixed64 propagated_hybrid_time = 11;
7059
25.8M
  if (cached_has_bits & 0x00000100u) {
7060
25.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(11, this->propagated_hybrid_time(), target);
7061
25.7M
  }
7062
7063
25.8M
  if (_internal_metadata_.have_unknown_fields()) {
7064
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7065
0
        _internal_metadata_.unknown_fields(), target);
7066
0
  }
7067
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ConsensusRequestPB)
7068
25.8M
  return target;
7069
25.8M
}
7070
7071
22
size_t ConsensusRequestPB::RequiredFieldsByteSizeFallback() const {
7072
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.ConsensusRequestPB)
7073
22
  size_t total_size = 0;
7074
7075
22
  if (has_tablet_id()) {
7076
    // required string tablet_id = 1;
7077
0
    total_size += 1 +
7078
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
7079
0
        this->tablet_id());
7080
0
  }
7081
7082
22
  if (has_caller_uuid()) {
7083
    // required bytes caller_uuid = 2;
7084
0
    total_size += 1 +
7085
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
7086
0
        this->caller_uuid());
7087
0
  }
7088
7089
22
  if (has_committed_op_id()) {
7090
    // required .yb.OpIdPB committed_op_id = 5;
7091
22
    total_size += 1 +
7092
22
      ::google::protobuf::internal::WireFormatLite::MessageSize(
7093
22
        *this->committed_op_id_);
7094
22
  }
7095
7096
22
  if (has_caller_term()) {
7097
    // required int64 caller_term = 3;
7098
22
    total_size += 1 +
7099
22
      ::google::protobuf::internal::WireFormatLite::Int64Size(
7100
22
        this->caller_term());
7101
22
  }
7102
7103
22
  return total_size;
7104
22
}
7105
77.1M
size_t ConsensusRequestPB::ByteSizeLong() const {
7106
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ConsensusRequestPB)
7107
77.1M
  size_t total_size = 0;
7108
7109
77.1M
  if (_internal_metadata_.have_unknown_fields()) {
7110
0
    total_size +=
7111
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7112
0
        _internal_metadata_.unknown_fields());
7113
0
  }
7114
77.1M
  if (((_has_bits_[0] & 0x00000033) ^ 0x00000033) == 0) {  // All required fields are present.
7115
    // required string tablet_id = 1;
7116
77.1M
    total_size += 1 +
7117
77.1M
      ::google::protobuf::internal::WireFormatLite::StringSize(
7118
77.1M
        this->tablet_id());
7119
7120
    // required bytes caller_uuid = 2;
7121
77.1M
    total_size += 1 +
7122
77.1M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
7123
77.1M
        this->caller_uuid());
7124
7125
    // required .yb.OpIdPB committed_op_id = 5;
7126
77.1M
    total_size += 1 +
7127
77.1M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
7128
77.1M
        *this->committed_op_id_);
7129
7130
    // required int64 caller_term = 3;
7131
77.1M
    total_size += 1 +
7132
77.1M
      ::google::protobuf::internal::WireFormatLite::Int64Size(
7133
77.1M
        this->caller_term());
7134
7135
77.1M
  } else {
7136
12.4k
    total_size += RequiredFieldsByteSizeFallback();
7137
12.4k
  }
7138
  // repeated .yb.consensus.ReplicateMsg ops = 6;
7139
77.1M
  {
7140
77.1M
    unsigned int count = static_cast<unsigned int>(this->ops_size());
7141
77.1M
    total_size += 1UL * count;
7142
95.9M
    for (unsigned int i = 0; i < count; 
i++18.8M
) {
7143
18.8M
      total_size +=
7144
18.8M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7145
18.8M
          this->ops(static_cast<int>(i)));
7146
18.8M
    }
7147
77.1M
  }
7148
7149
77.1M
  if (_has_bits_[0 / 32] & 12u) {
7150
    // optional bytes dest_uuid = 7;
7151
77.1M
    if (has_dest_uuid()) {
7152
77.0M
      total_size += 1 +
7153
77.0M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
7154
77.0M
          this->dest_uuid());
7155
77.0M
    }
7156
7157
    // optional .yb.OpIdPB preceding_id = 4;
7158
77.1M
    if (has_preceding_id()) {
7159
77.0M
      total_size += 1 +
7160
77.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7161
77.0M
          *this->preceding_id_);
7162
77.0M
    }
7163
7164
77.1M
  }
7165
77.1M
  if (_has_bits_[0 / 32] & 192u) {
7166
    // optional fixed64 ht_lease_expiration = 9;
7167
76.7M
    if (has_ht_lease_expiration()) {
7168
76.7M
      total_size += 1 + 8;
7169
76.7M
    }
7170
7171
    // optional fixed64 propagated_safe_time = 10;
7172
76.7M
    if (has_propagated_safe_time()) {
7173
50.7M
      total_size += 1 + 8;
7174
50.7M
    }
7175
7176
76.7M
  }
7177
77.1M
  if (_has_bits_[8 / 32] & 768u) {
7178
    // optional fixed64 propagated_hybrid_time = 11;
7179
77.0M
    if (
has_propagated_hybrid_time()77.0M
) {
7180
77.0M
      total_size += 1 + 8;
7181
77.0M
    }
7182
7183
    // optional int32 leader_lease_duration_ms = 8;
7184
77.0M
    if (has_leader_lease_duration_ms()) {
7185
76.7M
      total_size += 1 +
7186
76.7M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7187
76.7M
          this->leader_lease_duration_ms());
7188
76.7M
    }
7189
7190
77.0M
  }
7191
77.1M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7192
77.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7193
77.1M
  _cached_size_ = cached_size;
7194
77.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7195
77.1M
  return total_size;
7196
77.1M
}
7197
7198
0
void ConsensusRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
7199
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ConsensusRequestPB)
7200
0
  GOOGLE_DCHECK_NE(&from, this);
7201
0
  const ConsensusRequestPB* source =
7202
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConsensusRequestPB>(
7203
0
          &from);
7204
0
  if (source == NULL) {
7205
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ConsensusRequestPB)
7206
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7207
0
  } else {
7208
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ConsensusRequestPB)
7209
0
    MergeFrom(*source);
7210
0
  }
7211
0
}
7212
7213
0
void ConsensusRequestPB::MergeFrom(const ConsensusRequestPB& from) {
7214
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ConsensusRequestPB)
7215
0
  GOOGLE_DCHECK_NE(&from, this);
7216
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7217
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7218
0
  (void) cached_has_bits;
7219
7220
0
  ops_.MergeFrom(from.ops_);
7221
0
  cached_has_bits = from._has_bits_[0];
7222
0
  if (cached_has_bits & 255u) {
7223
0
    if (cached_has_bits & 0x00000001u) {
7224
0
      set_has_tablet_id();
7225
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
7226
0
    }
7227
0
    if (cached_has_bits & 0x00000002u) {
7228
0
      set_has_caller_uuid();
7229
0
      caller_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.caller_uuid_);
7230
0
    }
7231
0
    if (cached_has_bits & 0x00000004u) {
7232
0
      set_has_dest_uuid();
7233
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
7234
0
    }
7235
0
    if (cached_has_bits & 0x00000008u) {
7236
0
      mutable_preceding_id()->::yb::OpIdPB::MergeFrom(from.preceding_id());
7237
0
    }
7238
0
    if (cached_has_bits & 0x00000010u) {
7239
0
      mutable_committed_op_id()->::yb::OpIdPB::MergeFrom(from.committed_op_id());
7240
0
    }
7241
0
    if (cached_has_bits & 0x00000020u) {
7242
0
      caller_term_ = from.caller_term_;
7243
0
    }
7244
0
    if (cached_has_bits & 0x00000040u) {
7245
0
      ht_lease_expiration_ = from.ht_lease_expiration_;
7246
0
    }
7247
0
    if (cached_has_bits & 0x00000080u) {
7248
0
      propagated_safe_time_ = from.propagated_safe_time_;
7249
0
    }
7250
0
    _has_bits_[0] |= cached_has_bits;
7251
0
  }
7252
0
  if (cached_has_bits & 768u) {
7253
0
    if (cached_has_bits & 0x00000100u) {
7254
0
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
7255
0
    }
7256
0
    if (cached_has_bits & 0x00000200u) {
7257
0
      leader_lease_duration_ms_ = from.leader_lease_duration_ms_;
7258
0
    }
7259
0
    _has_bits_[0] |= cached_has_bits;
7260
0
  }
7261
0
}
7262
7263
0
void ConsensusRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
7264
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ConsensusRequestPB)
7265
0
  if (&from == this) return;
7266
0
  Clear();
7267
0
  MergeFrom(from);
7268
0
}
7269
7270
0
void ConsensusRequestPB::CopyFrom(const ConsensusRequestPB& from) {
7271
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ConsensusRequestPB)
7272
0
  if (&from == this) return;
7273
0
  Clear();
7274
0
  MergeFrom(from);
7275
0
}
7276
7277
51.4M
bool ConsensusRequestPB::IsInitialized() const {
7278
51.4M
  if ((_has_bits_[0] & 0x00000033) != 0x00000033) 
return false0
;
7279
51.4M
  if (!::google::protobuf::internal::AllAreInitialized(this->ops())) 
return false0
;
7280
51.4M
  if (has_preceding_id()) {
7281
51.3M
    if (!this->preceding_id_->IsInitialized()) 
return false0
;
7282
51.3M
  }
7283
51.4M
  if (has_committed_op_id()) {
7284
51.3M
    if (!this->committed_op_id_->IsInitialized()) 
return false0
;
7285
51.3M
  }
7286
51.4M
  return true;
7287
51.4M
}
7288
7289
0
void ConsensusRequestPB::Swap(ConsensusRequestPB* other) {
7290
0
  if (other == this) return;
7291
0
  InternalSwap(other);
7292
0
}
7293
594
void ConsensusRequestPB::InternalSwap(ConsensusRequestPB* other) {
7294
594
  using std::swap;
7295
594
  ops_.InternalSwap(&other->ops_);
7296
594
  tablet_id_.Swap(&other->tablet_id_);
7297
594
  caller_uuid_.Swap(&other->caller_uuid_);
7298
594
  dest_uuid_.Swap(&other->dest_uuid_);
7299
594
  swap(preceding_id_, other->preceding_id_);
7300
594
  swap(committed_op_id_, other->committed_op_id_);
7301
594
  swap(caller_term_, other->caller_term_);
7302
594
  swap(ht_lease_expiration_, other->ht_lease_expiration_);
7303
594
  swap(propagated_safe_time_, other->propagated_safe_time_);
7304
594
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
7305
594
  swap(leader_lease_duration_ms_, other->leader_lease_duration_ms_);
7306
594
  swap(_has_bits_[0], other->_has_bits_[0]);
7307
594
  _internal_metadata_.Swap(&other->_internal_metadata_);
7308
594
  swap(_cached_size_, other->_cached_size_);
7309
594
}
7310
7311
25.5M
::google::protobuf::Metadata ConsensusRequestPB::GetMetadata() const {
7312
25.5M
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
7313
25.5M
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
7314
25.5M
}
7315
7316
7317
// ===================================================================
7318
7319
26.8k
void ConsensusResponsePB::InitAsDefaultInstance() {
7320
26.8k
  ::yb::consensus::_ConsensusResponsePB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::consensus::ConsensusStatusPB*>(
7321
26.8k
      ::yb::consensus::ConsensusStatusPB::internal_default_instance());
7322
26.8k
  ::yb::consensus::_ConsensusResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
7323
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
7324
26.8k
}
7325
0
void ConsensusResponsePB::clear_error() {
7326
0
  if (error_ != NULL) error_->Clear();
7327
0
  clear_has_error();
7328
0
}
7329
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7330
const int ConsensusResponsePB::kResponderUuidFieldNumber;
7331
const int ConsensusResponsePB::kResponderTermFieldNumber;
7332
const int ConsensusResponsePB::kStatusFieldNumber;
7333
const int ConsensusResponsePB::kErrorFieldNumber;
7334
const int ConsensusResponsePB::kNumSstFilesFieldNumber;
7335
const int ConsensusResponsePB::kPropagatedHybridTimeFieldNumber;
7336
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7337
7338
ConsensusResponsePB::ConsensusResponsePB()
7339
50.1M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7340
50.1M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7341
50.1M
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusResponsePB();
7342
50.1M
  }
7343
50.1M
  SharedCtor();
7344
  // @@protoc_insertion_point(constructor:yb.consensus.ConsensusResponsePB)
7345
50.1M
}
7346
ConsensusResponsePB::ConsensusResponsePB(const ConsensusResponsePB& from)
7347
  : ::google::protobuf::Message(),
7348
      _internal_metadata_(NULL),
7349
      _has_bits_(from._has_bits_),
7350
0
      _cached_size_(0) {
7351
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7352
0
  responder_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7353
0
  if (from.has_responder_uuid()) {
7354
0
    responder_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.responder_uuid_);
7355
0
  }
7356
0
  if (from.has_status()) {
7357
0
    status_ = new ::yb::consensus::ConsensusStatusPB(*from.status_);
7358
0
  } else {
7359
0
    status_ = NULL;
7360
0
  }
7361
0
  if (from.has_error()) {
7362
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
7363
0
  } else {
7364
0
    error_ = NULL;
7365
0
  }
7366
0
  ::memcpy(&responder_term_, &from.responder_term_,
7367
0
    static_cast<size_t>(reinterpret_cast<char*>(&propagated_hybrid_time_) -
7368
0
    reinterpret_cast<char*>(&responder_term_)) + sizeof(propagated_hybrid_time_));
7369
  // @@protoc_insertion_point(copy_constructor:yb.consensus.ConsensusResponsePB)
7370
0
}
7371
7372
50.1M
void ConsensusResponsePB::SharedCtor() {
7373
50.1M
  _cached_size_ = 0;
7374
50.1M
  responder_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7375
50.1M
  ::memset(&status_, 0, static_cast<size_t>(
7376
50.1M
      reinterpret_cast<char*>(&propagated_hybrid_time_) -
7377
50.1M
      reinterpret_cast<char*>(&status_)) + sizeof(propagated_hybrid_time_));
7378
50.1M
}
7379
7380
50.0M
ConsensusResponsePB::~ConsensusResponsePB() {
7381
  // @@protoc_insertion_point(destructor:yb.consensus.ConsensusResponsePB)
7382
50.0M
  SharedDtor();
7383
50.0M
}
7384
7385
50.0M
void ConsensusResponsePB::SharedDtor() {
7386
50.0M
  responder_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7387
50.0M
  if (this != internal_default_instance()) 
delete status_50.0M
;
7388
50.0M
  if (this != internal_default_instance()) 
delete error_50.0M
;
7389
50.0M
}
7390
7391
0
void ConsensusResponsePB::SetCachedSize(int size) const {
7392
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7393
0
  _cached_size_ = size;
7394
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7395
0
}
7396
0
const ::google::protobuf::Descriptor* ConsensusResponsePB::descriptor() {
7397
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
7398
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7399
0
}
7400
7401
0
const ConsensusResponsePB& ConsensusResponsePB::default_instance() {
7402
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsConsensusResponsePB();
7403
0
  return *internal_default_instance();
7404
0
}
7405
7406
0
ConsensusResponsePB* ConsensusResponsePB::New(::google::protobuf::Arena* arena) const {
7407
0
  ConsensusResponsePB* n = new ConsensusResponsePB;
7408
0
  if (arena != NULL) {
7409
0
    arena->Own(n);
7410
0
  }
7411
0
  return n;
7412
0
}
7413
7414
25.6M
void ConsensusResponsePB::Clear() {
7415
// @@protoc_insertion_point(message_clear_start:yb.consensus.ConsensusResponsePB)
7416
25.6M
  ::google::protobuf::uint32 cached_has_bits = 0;
7417
  // Prevent compiler warnings about cached_has_bits being unused
7418
25.6M
  (void) cached_has_bits;
7419
7420
25.6M
  cached_has_bits = _has_bits_[0];
7421
25.6M
  if (cached_has_bits & 7u) {
7422
25.4M
    if (cached_has_bits & 0x00000001u) {
7423
25.3M
      GOOGLE_DCHECK(!responder_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7424
25.3M
      (*responder_uuid_.UnsafeRawStringPointer())->clear();
7425
25.3M
    }
7426
25.4M
    if (cached_has_bits & 0x00000002u) {
7427
25.3M
      GOOGLE_DCHECK(status_ != NULL);
7428
25.3M
      status_->Clear();
7429
25.3M
    }
7430
25.4M
    if (cached_has_bits & 0x00000004u) {
7431
15.4k
      GOOGLE_DCHECK(error_ != NULL);
7432
15.4k
      error_->Clear();
7433
15.4k
    }
7434
25.4M
  }
7435
25.6M
  if (cached_has_bits & 56u) {
7436
25.2M
    ::memset(&responder_term_, 0, static_cast<size_t>(
7437
25.2M
        reinterpret_cast<char*>(&propagated_hybrid_time_) -
7438
25.2M
        reinterpret_cast<char*>(&responder_term_)) + sizeof(propagated_hybrid_time_));
7439
25.2M
  }
7440
25.6M
  _has_bits_.Clear();
7441
25.6M
  _internal_metadata_.Clear();
7442
25.6M
}
7443
7444
bool ConsensusResponsePB::MergePartialFromCodedStream(
7445
25.4M
    ::google::protobuf::io::CodedInputStream* input) {
7446
127M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
7447
25.4M
  ::google::protobuf::uint32 tag;
7448
  // @@protoc_insertion_point(parse_start:yb.consensus.ConsensusResponsePB)
7449
152M
  for (;;) {
7450
152M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
7451
152M
    tag = p.first;
7452
152M
    if (!p.second) 
goto handle_unusual25.5M
;
7453
127M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7454
      // optional bytes responder_uuid = 1;
7455
25.4M
      case 1: {
7456
25.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7457
25.4M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7458
25.4M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7459
25.4M
                input, this->mutable_responder_uuid()));
7460
18.4E
        } else {
7461
18.4E
          goto handle_unusual;
7462
18.4E
        }
7463
25.4M
        break;
7464
25.4M
      }
7465
7466
      // optional int64 responder_term = 2;
7467
25.5M
      case 2: {
7468
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7469
25.5M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7470
25.5M
          set_has_responder_term();
7471
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7472
25.5M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
7473
25.5M
                 input, &responder_term_)));
7474
18.4E
        } else {
7475
18.4E
          goto handle_unusual;
7476
18.4E
        }
7477
25.5M
        break;
7478
25.5M
      }
7479
7480
      // optional .yb.consensus.ConsensusStatusPB status = 3;
7481
25.5M
      case 3: {
7482
25.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7483
25.4M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7484
25.4M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7485
25.4M
               input, mutable_status()));
7486
18.4E
        } else {
7487
18.4E
          goto handle_unusual;
7488
18.4E
        }
7489
25.4M
        break;
7490
25.4M
      }
7491
7492
      // optional int64 num_sst_files = 5;
7493
25.5M
      case 5: {
7494
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7495
25.5M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
7496
25.5M
          set_has_num_sst_files();
7497
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7498
25.5M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
7499
25.5M
                 input, &num_sst_files_)));
7500
18.4E
        } else {
7501
18.4E
          goto handle_unusual;
7502
18.4E
        }
7503
25.5M
        break;
7504
25.5M
      }
7505
7506
      // optional fixed64 propagated_hybrid_time = 6;
7507
25.5M
      case 6: {
7508
25.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7509
25.5M
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
7510
25.5M
          set_has_propagated_hybrid_time();
7511
25.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7512
25.5M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
7513
25.5M
                 input, &propagated_hybrid_time_)));
7514
18.4E
        } else {
7515
18.4E
          goto handle_unusual;
7516
18.4E
        }
7517
25.5M
        break;
7518
25.5M
      }
7519
7520
      // optional .yb.tserver.TabletServerErrorPB error = 999;
7521
25.5M
      case 999: {
7522
17.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7523
17.8k
            static_cast< ::google::protobuf::uint8>(58u /* 7994 & 0xFF */)) {
7524
17.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7525
17.8k
               input, mutable_error()));
7526
17.8k
        } else {
7527
0
          goto handle_unusual;
7528
0
        }
7529
17.8k
        break;
7530
17.8k
      }
7531
7532
17.8k
      default: {
7533
25.5M
      handle_unusual:
7534
25.5M
        if (
tag == 025.5M
) {
7535
25.5M
          goto success;
7536
25.5M
        }
7537
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7538
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7539
18.4E
        break;
7540
18.4E
      }
7541
127M
    }
7542
127M
  }
7543
25.5M
success:
7544
  // @@protoc_insertion_point(parse_success:yb.consensus.ConsensusResponsePB)
7545
25.5M
  return true;
7546
0
failure:
7547
  // @@protoc_insertion_point(parse_failure:yb.consensus.ConsensusResponsePB)
7548
0
  return false;
7549
25.4M
#undef DO_
7550
25.4M
}
7551
7552
void ConsensusResponsePB::SerializeWithCachedSizes(
7553
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7554
  // @@protoc_insertion_point(serialize_start:yb.consensus.ConsensusResponsePB)
7555
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7556
0
  (void) cached_has_bits;
7557
7558
0
  cached_has_bits = _has_bits_[0];
7559
  // optional bytes responder_uuid = 1;
7560
0
  if (cached_has_bits & 0x00000001u) {
7561
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7562
0
      1, this->responder_uuid(), output);
7563
0
  }
7564
7565
  // optional int64 responder_term = 2;
7566
0
  if (cached_has_bits & 0x00000008u) {
7567
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->responder_term(), output);
7568
0
  }
7569
7570
  // optional .yb.consensus.ConsensusStatusPB status = 3;
7571
0
  if (cached_has_bits & 0x00000002u) {
7572
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7573
0
      3, *this->status_, output);
7574
0
  }
7575
7576
  // optional int64 num_sst_files = 5;
7577
0
  if (cached_has_bits & 0x00000010u) {
7578
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->num_sst_files(), output);
7579
0
  }
7580
7581
  // optional fixed64 propagated_hybrid_time = 6;
7582
0
  if (cached_has_bits & 0x00000020u) {
7583
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->propagated_hybrid_time(), output);
7584
0
  }
7585
7586
  // optional .yb.tserver.TabletServerErrorPB error = 999;
7587
0
  if (cached_has_bits & 0x00000004u) {
7588
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7589
0
      999, *this->error_, output);
7590
0
  }
7591
7592
0
  if (_internal_metadata_.have_unknown_fields()) {
7593
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7594
0
        _internal_metadata_.unknown_fields(), output);
7595
0
  }
7596
  // @@protoc_insertion_point(serialize_end:yb.consensus.ConsensusResponsePB)
7597
0
}
7598
7599
::google::protobuf::uint8* ConsensusResponsePB::InternalSerializeWithCachedSizesToArray(
7600
25.5M
    bool deterministic, ::google::protobuf::uint8* target) const {
7601
25.5M
  (void)deterministic; // Unused
7602
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.ConsensusResponsePB)
7603
25.5M
  ::google::protobuf::uint32 cached_has_bits = 0;
7604
25.5M
  (void) cached_has_bits;
7605
7606
25.5M
  cached_has_bits = _has_bits_[0];
7607
  // optional bytes responder_uuid = 1;
7608
25.5M
  if (cached_has_bits & 0x00000001u) {
7609
25.5M
    target =
7610
25.5M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7611
25.5M
        1, this->responder_uuid(), target);
7612
25.5M
  }
7613
7614
  // optional int64 responder_term = 2;
7615
25.5M
  if (cached_has_bits & 0x00000008u) {
7616
25.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->responder_term(), target);
7617
25.5M
  }
7618
7619
  // optional .yb.consensus.ConsensusStatusPB status = 3;
7620
25.5M
  if (cached_has_bits & 0x00000002u) {
7621
25.5M
    target = ::google::protobuf::internal::WireFormatLite::
7622
25.5M
      InternalWriteMessageToArray(
7623
25.5M
        3, *this->status_, deterministic, target);
7624
25.5M
  }
7625
7626
  // optional int64 num_sst_files = 5;
7627
25.5M
  if (cached_has_bits & 0x00000010u) {
7628
25.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->num_sst_files(), target);
7629
25.5M
  }
7630
7631
  // optional fixed64 propagated_hybrid_time = 6;
7632
25.5M
  if (cached_has_bits & 0x00000020u) {
7633
25.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->propagated_hybrid_time(), target);
7634
25.5M
  }
7635
7636
  // optional .yb.tserver.TabletServerErrorPB error = 999;
7637
25.5M
  if (cached_has_bits & 0x00000004u) {
7638
19.0k
    target = ::google::protobuf::internal::WireFormatLite::
7639
19.0k
      InternalWriteMessageToArray(
7640
19.0k
        999, *this->error_, deterministic, target);
7641
19.0k
  }
7642
7643
25.5M
  if (_internal_metadata_.have_unknown_fields()) {
7644
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7645
0
        _internal_metadata_.unknown_fields(), target);
7646
0
  }
7647
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.ConsensusResponsePB)
7648
25.5M
  return target;
7649
25.5M
}
7650
7651
51.1M
size_t ConsensusResponsePB::ByteSizeLong() const {
7652
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.ConsensusResponsePB)
7653
51.1M
  size_t total_size = 0;
7654
7655
51.1M
  if (_internal_metadata_.have_unknown_fields()) {
7656
0
    total_size +=
7657
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7658
0
        _internal_metadata_.unknown_fields());
7659
0
  }
7660
51.1M
  if (_has_bits_[0 / 32] & 63u) {
7661
    // optional bytes responder_uuid = 1;
7662
51.1M
    if (has_responder_uuid()) {
7663
51.0M
      total_size += 1 +
7664
51.0M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
7665
51.0M
          this->responder_uuid());
7666
51.0M
    }
7667
7668
    // optional .yb.consensus.ConsensusStatusPB status = 3;
7669
51.1M
    if (has_status()) {
7670
51.0M
      total_size += 1 +
7671
51.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7672
51.0M
          *this->status_);
7673
51.0M
    }
7674
7675
    // optional .yb.tserver.TabletServerErrorPB error = 999;
7676
51.1M
    if (has_error()) {
7677
38.1k
      total_size += 2 +
7678
38.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7679
38.1k
          *this->error_);
7680
38.1k
    }
7681
7682
    // optional int64 responder_term = 2;
7683
51.1M
    if (has_responder_term()) {
7684
51.0M
      total_size += 1 +
7685
51.0M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
7686
51.0M
          this->responder_term());
7687
51.0M
    }
7688
7689
    // optional int64 num_sst_files = 5;
7690
51.1M
    if (has_num_sst_files()) {
7691
51.0M
      total_size += 1 +
7692
51.0M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
7693
51.0M
          this->num_sst_files());
7694
51.0M
    }
7695
7696
    // optional fixed64 propagated_hybrid_time = 6;
7697
51.1M
    if (has_propagated_hybrid_time()) {
7698
51.0M
      total_size += 1 + 8;
7699
51.0M
    }
7700
7701
51.1M
  }
7702
51.1M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7703
51.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7704
51.1M
  _cached_size_ = cached_size;
7705
51.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7706
51.1M
  return total_size;
7707
51.1M
}
7708
7709
0
void ConsensusResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
7710
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.ConsensusResponsePB)
7711
0
  GOOGLE_DCHECK_NE(&from, this);
7712
0
  const ConsensusResponsePB* source =
7713
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ConsensusResponsePB>(
7714
0
          &from);
7715
0
  if (source == NULL) {
7716
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.ConsensusResponsePB)
7717
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7718
0
  } else {
7719
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.ConsensusResponsePB)
7720
0
    MergeFrom(*source);
7721
0
  }
7722
0
}
7723
7724
1.08k
void ConsensusResponsePB::MergeFrom(const ConsensusResponsePB& from) {
7725
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.ConsensusResponsePB)
7726
1.08k
  GOOGLE_DCHECK_NE(&from, this);
7727
1.08k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7728
1.08k
  ::google::protobuf::uint32 cached_has_bits = 0;
7729
1.08k
  (void) cached_has_bits;
7730
7731
1.08k
  cached_has_bits = from._has_bits_[0];
7732
1.08k
  if (cached_has_bits & 63u) {
7733
1.07k
    if (cached_has_bits & 0x00000001u) {
7734
1.04k
      set_has_responder_uuid();
7735
1.04k
      responder_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.responder_uuid_);
7736
1.04k
    }
7737
1.07k
    if (cached_has_bits & 0x00000002u) {
7738
1.05k
      mutable_status()->::yb::consensus::ConsensusStatusPB::MergeFrom(from.status());
7739
1.05k
    }
7740
1.07k
    if (cached_has_bits & 0x00000004u) {
7741
30
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
7742
30
    }
7743
1.07k
    if (cached_has_bits & 0x00000008u) {
7744
1.04k
      responder_term_ = from.responder_term_;
7745
1.04k
    }
7746
1.07k
    if (cached_has_bits & 0x00000010u) {
7747
0
      num_sst_files_ = from.num_sst_files_;
7748
0
    }
7749
1.07k
    if (cached_has_bits & 0x00000020u) {
7750
0
      propagated_hybrid_time_ = from.propagated_hybrid_time_;
7751
0
    }
7752
1.07k
    _has_bits_[0] |= cached_has_bits;
7753
1.07k
  }
7754
1.08k
}
7755
7756
0
void ConsensusResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
7757
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.ConsensusResponsePB)
7758
0
  if (&from == this) return;
7759
0
  Clear();
7760
0
  MergeFrom(from);
7761
0
}
7762
7763
1.07k
void ConsensusResponsePB::CopyFrom(const ConsensusResponsePB& from) {
7764
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.ConsensusResponsePB)
7765
1.07k
  if (&from == this) 
return0
;
7766
1.07k
  Clear();
7767
1.07k
  MergeFrom(from);
7768
1.07k
}
7769
7770
86.0M
bool ConsensusResponsePB::IsInitialized() const {
7771
86.0M
  if (has_status()) {
7772
85.7M
    if (!this->status_->IsInitialized()) 
return false0
;
7773
85.7M
  }
7774
86.0M
  if (has_error()) {
7775
47.5k
    if (!this->error_->IsInitialized()) 
return false0
;
7776
47.5k
  }
7777
86.0M
  return true;
7778
86.0M
}
7779
7780
0
void ConsensusResponsePB::Swap(ConsensusResponsePB* other) {
7781
0
  if (other == this) return;
7782
0
  InternalSwap(other);
7783
0
}
7784
0
void ConsensusResponsePB::InternalSwap(ConsensusResponsePB* other) {
7785
0
  using std::swap;
7786
0
  responder_uuid_.Swap(&other->responder_uuid_);
7787
0
  swap(status_, other->status_);
7788
0
  swap(error_, other->error_);
7789
0
  swap(responder_term_, other->responder_term_);
7790
0
  swap(num_sst_files_, other->num_sst_files_);
7791
0
  swap(propagated_hybrid_time_, other->propagated_hybrid_time_);
7792
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7793
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7794
0
  swap(_cached_size_, other->_cached_size_);
7795
0
}
7796
7797
12
::google::protobuf::Metadata ConsensusResponsePB::GetMetadata() const {
7798
12
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
7799
12
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
7800
12
}
7801
7802
7803
// ===================================================================
7804
7805
26.8k
void MultiRaftConsensusRequestPB::InitAsDefaultInstance() {
7806
26.8k
}
7807
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7808
const int MultiRaftConsensusRequestPB::kConsensusRequestFieldNumber;
7809
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7810
7811
MultiRaftConsensusRequestPB::MultiRaftConsensusRequestPB()
7812
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7813
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7814
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsMultiRaftConsensusRequestPB();
7815
0
  }
7816
26.8k
  SharedCtor();
7817
  // @@protoc_insertion_point(constructor:yb.consensus.MultiRaftConsensusRequestPB)
7818
26.8k
}
7819
MultiRaftConsensusRequestPB::MultiRaftConsensusRequestPB(const MultiRaftConsensusRequestPB& from)
7820
  : ::google::protobuf::Message(),
7821
      _internal_metadata_(NULL),
7822
      _has_bits_(from._has_bits_),
7823
      _cached_size_(0),
7824
0
      consensus_request_(from.consensus_request_) {
7825
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7826
  // @@protoc_insertion_point(copy_constructor:yb.consensus.MultiRaftConsensusRequestPB)
7827
0
}
7828
7829
26.8k
void MultiRaftConsensusRequestPB::SharedCtor() {
7830
26.8k
  _cached_size_ = 0;
7831
26.8k
}
7832
7833
0
MultiRaftConsensusRequestPB::~MultiRaftConsensusRequestPB() {
7834
  // @@protoc_insertion_point(destructor:yb.consensus.MultiRaftConsensusRequestPB)
7835
0
  SharedDtor();
7836
0
}
7837
7838
0
void MultiRaftConsensusRequestPB::SharedDtor() {
7839
0
}
7840
7841
0
void MultiRaftConsensusRequestPB::SetCachedSize(int size) const {
7842
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7843
0
  _cached_size_ = size;
7844
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7845
0
}
7846
0
const ::google::protobuf::Descriptor* MultiRaftConsensusRequestPB::descriptor() {
7847
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
7848
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7849
0
}
7850
7851
0
const MultiRaftConsensusRequestPB& MultiRaftConsensusRequestPB::default_instance() {
7852
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsMultiRaftConsensusRequestPB();
7853
0
  return *internal_default_instance();
7854
0
}
7855
7856
0
MultiRaftConsensusRequestPB* MultiRaftConsensusRequestPB::New(::google::protobuf::Arena* arena) const {
7857
0
  MultiRaftConsensusRequestPB* n = new MultiRaftConsensusRequestPB;
7858
0
  if (arena != NULL) {
7859
0
    arena->Own(n);
7860
0
  }
7861
0
  return n;
7862
0
}
7863
7864
0
void MultiRaftConsensusRequestPB::Clear() {
7865
// @@protoc_insertion_point(message_clear_start:yb.consensus.MultiRaftConsensusRequestPB)
7866
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7867
  // Prevent compiler warnings about cached_has_bits being unused
7868
0
  (void) cached_has_bits;
7869
7870
0
  consensus_request_.Clear();
7871
0
  _has_bits_.Clear();
7872
0
  _internal_metadata_.Clear();
7873
0
}
7874
7875
bool MultiRaftConsensusRequestPB::MergePartialFromCodedStream(
7876
0
    ::google::protobuf::io::CodedInputStream* input) {
7877
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7878
0
  ::google::protobuf::uint32 tag;
7879
  // @@protoc_insertion_point(parse_start:yb.consensus.MultiRaftConsensusRequestPB)
7880
0
  for (;;) {
7881
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7882
0
    tag = p.first;
7883
0
    if (!p.second) goto handle_unusual;
7884
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7885
      // repeated .yb.consensus.ConsensusRequestPB consensus_request = 1;
7886
0
      case 1: {
7887
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7888
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7889
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_consensus_request()));
7890
0
        } else {
7891
0
          goto handle_unusual;
7892
0
        }
7893
0
        break;
7894
0
      }
7895
7896
0
      default: {
7897
0
      handle_unusual:
7898
0
        if (tag == 0) {
7899
0
          goto success;
7900
0
        }
7901
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7902
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7903
0
        break;
7904
0
      }
7905
0
    }
7906
0
  }
7907
0
success:
7908
  // @@protoc_insertion_point(parse_success:yb.consensus.MultiRaftConsensusRequestPB)
7909
0
  return true;
7910
0
failure:
7911
  // @@protoc_insertion_point(parse_failure:yb.consensus.MultiRaftConsensusRequestPB)
7912
0
  return false;
7913
0
#undef DO_
7914
0
}
7915
7916
void MultiRaftConsensusRequestPB::SerializeWithCachedSizes(
7917
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7918
  // @@protoc_insertion_point(serialize_start:yb.consensus.MultiRaftConsensusRequestPB)
7919
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7920
0
  (void) cached_has_bits;
7921
7922
  // repeated .yb.consensus.ConsensusRequestPB consensus_request = 1;
7923
0
  for (unsigned int i = 0,
7924
0
      n = static_cast<unsigned int>(this->consensus_request_size()); i < n; i++) {
7925
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7926
0
      1, this->consensus_request(static_cast<int>(i)), output);
7927
0
  }
7928
7929
0
  if (_internal_metadata_.have_unknown_fields()) {
7930
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7931
0
        _internal_metadata_.unknown_fields(), output);
7932
0
  }
7933
  // @@protoc_insertion_point(serialize_end:yb.consensus.MultiRaftConsensusRequestPB)
7934
0
}
7935
7936
::google::protobuf::uint8* MultiRaftConsensusRequestPB::InternalSerializeWithCachedSizesToArray(
7937
0
    bool deterministic, ::google::protobuf::uint8* target) const {
7938
0
  (void)deterministic; // Unused
7939
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.MultiRaftConsensusRequestPB)
7940
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7941
0
  (void) cached_has_bits;
7942
7943
  // repeated .yb.consensus.ConsensusRequestPB consensus_request = 1;
7944
0
  for (unsigned int i = 0,
7945
0
      n = static_cast<unsigned int>(this->consensus_request_size()); i < n; i++) {
7946
0
    target = ::google::protobuf::internal::WireFormatLite::
7947
0
      InternalWriteMessageToArray(
7948
0
        1, this->consensus_request(static_cast<int>(i)), deterministic, target);
7949
0
  }
7950
7951
0
  if (_internal_metadata_.have_unknown_fields()) {
7952
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7953
0
        _internal_metadata_.unknown_fields(), target);
7954
0
  }
7955
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.MultiRaftConsensusRequestPB)
7956
0
  return target;
7957
0
}
7958
7959
0
size_t MultiRaftConsensusRequestPB::ByteSizeLong() const {
7960
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.MultiRaftConsensusRequestPB)
7961
0
  size_t total_size = 0;
7962
7963
0
  if (_internal_metadata_.have_unknown_fields()) {
7964
0
    total_size +=
7965
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7966
0
        _internal_metadata_.unknown_fields());
7967
0
  }
7968
  // repeated .yb.consensus.ConsensusRequestPB consensus_request = 1;
7969
0
  {
7970
0
    unsigned int count = static_cast<unsigned int>(this->consensus_request_size());
7971
0
    total_size += 1UL * count;
7972
0
    for (unsigned int i = 0; i < count; i++) {
7973
0
      total_size +=
7974
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7975
0
          this->consensus_request(static_cast<int>(i)));
7976
0
    }
7977
0
  }
7978
7979
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7980
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7981
0
  _cached_size_ = cached_size;
7982
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7983
0
  return total_size;
7984
0
}
7985
7986
0
void MultiRaftConsensusRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
7987
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.MultiRaftConsensusRequestPB)
7988
0
  GOOGLE_DCHECK_NE(&from, this);
7989
0
  const MultiRaftConsensusRequestPB* source =
7990
0
      ::google::protobuf::internal::DynamicCastToGenerated<const MultiRaftConsensusRequestPB>(
7991
0
          &from);
7992
0
  if (source == NULL) {
7993
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.MultiRaftConsensusRequestPB)
7994
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7995
0
  } else {
7996
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.MultiRaftConsensusRequestPB)
7997
0
    MergeFrom(*source);
7998
0
  }
7999
0
}
8000
8001
0
void MultiRaftConsensusRequestPB::MergeFrom(const MultiRaftConsensusRequestPB& from) {
8002
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.MultiRaftConsensusRequestPB)
8003
0
  GOOGLE_DCHECK_NE(&from, this);
8004
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8005
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8006
0
  (void) cached_has_bits;
8007
8008
0
  consensus_request_.MergeFrom(from.consensus_request_);
8009
0
}
8010
8011
0
void MultiRaftConsensusRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
8012
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.MultiRaftConsensusRequestPB)
8013
0
  if (&from == this) return;
8014
0
  Clear();
8015
0
  MergeFrom(from);
8016
0
}
8017
8018
0
void MultiRaftConsensusRequestPB::CopyFrom(const MultiRaftConsensusRequestPB& from) {
8019
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.MultiRaftConsensusRequestPB)
8020
0
  if (&from == this) return;
8021
0
  Clear();
8022
0
  MergeFrom(from);
8023
0
}
8024
8025
0
bool MultiRaftConsensusRequestPB::IsInitialized() const {
8026
0
  if (!::google::protobuf::internal::AllAreInitialized(this->consensus_request())) return false;
8027
0
  return true;
8028
0
}
8029
8030
0
void MultiRaftConsensusRequestPB::Swap(MultiRaftConsensusRequestPB* other) {
8031
0
  if (other == this) return;
8032
0
  InternalSwap(other);
8033
0
}
8034
0
void MultiRaftConsensusRequestPB::InternalSwap(MultiRaftConsensusRequestPB* other) {
8035
0
  using std::swap;
8036
0
  consensus_request_.InternalSwap(&other->consensus_request_);
8037
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8038
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8039
0
  swap(_cached_size_, other->_cached_size_);
8040
0
}
8041
8042
0
::google::protobuf::Metadata MultiRaftConsensusRequestPB::GetMetadata() const {
8043
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8044
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
8045
0
}
8046
8047
8048
// ===================================================================
8049
8050
26.8k
void MultiRaftConsensusResponsePB::InitAsDefaultInstance() {
8051
26.8k
}
8052
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8053
const int MultiRaftConsensusResponsePB::kConsensusResponseFieldNumber;
8054
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8055
8056
MultiRaftConsensusResponsePB::MultiRaftConsensusResponsePB()
8057
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8058
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8059
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsMultiRaftConsensusResponsePB();
8060
0
  }
8061
26.8k
  SharedCtor();
8062
  // @@protoc_insertion_point(constructor:yb.consensus.MultiRaftConsensusResponsePB)
8063
26.8k
}
8064
MultiRaftConsensusResponsePB::MultiRaftConsensusResponsePB(const MultiRaftConsensusResponsePB& from)
8065
  : ::google::protobuf::Message(),
8066
      _internal_metadata_(NULL),
8067
      _has_bits_(from._has_bits_),
8068
      _cached_size_(0),
8069
0
      consensus_response_(from.consensus_response_) {
8070
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8071
  // @@protoc_insertion_point(copy_constructor:yb.consensus.MultiRaftConsensusResponsePB)
8072
0
}
8073
8074
26.8k
void MultiRaftConsensusResponsePB::SharedCtor() {
8075
26.8k
  _cached_size_ = 0;
8076
26.8k
}
8077
8078
0
MultiRaftConsensusResponsePB::~MultiRaftConsensusResponsePB() {
8079
  // @@protoc_insertion_point(destructor:yb.consensus.MultiRaftConsensusResponsePB)
8080
0
  SharedDtor();
8081
0
}
8082
8083
0
void MultiRaftConsensusResponsePB::SharedDtor() {
8084
0
}
8085
8086
0
void MultiRaftConsensusResponsePB::SetCachedSize(int size) const {
8087
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8088
0
  _cached_size_ = size;
8089
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8090
0
}
8091
0
const ::google::protobuf::Descriptor* MultiRaftConsensusResponsePB::descriptor() {
8092
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8093
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8094
0
}
8095
8096
0
const MultiRaftConsensusResponsePB& MultiRaftConsensusResponsePB::default_instance() {
8097
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsMultiRaftConsensusResponsePB();
8098
0
  return *internal_default_instance();
8099
0
}
8100
8101
0
MultiRaftConsensusResponsePB* MultiRaftConsensusResponsePB::New(::google::protobuf::Arena* arena) const {
8102
0
  MultiRaftConsensusResponsePB* n = new MultiRaftConsensusResponsePB;
8103
0
  if (arena != NULL) {
8104
0
    arena->Own(n);
8105
0
  }
8106
0
  return n;
8107
0
}
8108
8109
0
void MultiRaftConsensusResponsePB::Clear() {
8110
// @@protoc_insertion_point(message_clear_start:yb.consensus.MultiRaftConsensusResponsePB)
8111
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8112
  // Prevent compiler warnings about cached_has_bits being unused
8113
0
  (void) cached_has_bits;
8114
8115
0
  consensus_response_.Clear();
8116
0
  _has_bits_.Clear();
8117
0
  _internal_metadata_.Clear();
8118
0
}
8119
8120
bool MultiRaftConsensusResponsePB::MergePartialFromCodedStream(
8121
0
    ::google::protobuf::io::CodedInputStream* input) {
8122
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8123
0
  ::google::protobuf::uint32 tag;
8124
  // @@protoc_insertion_point(parse_start:yb.consensus.MultiRaftConsensusResponsePB)
8125
0
  for (;;) {
8126
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8127
0
    tag = p.first;
8128
0
    if (!p.second) goto handle_unusual;
8129
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8130
      // repeated .yb.consensus.ConsensusResponsePB consensus_response = 1;
8131
0
      case 1: {
8132
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8133
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8134
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_consensus_response()));
8135
0
        } else {
8136
0
          goto handle_unusual;
8137
0
        }
8138
0
        break;
8139
0
      }
8140
8141
0
      default: {
8142
0
      handle_unusual:
8143
0
        if (tag == 0) {
8144
0
          goto success;
8145
0
        }
8146
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8147
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8148
0
        break;
8149
0
      }
8150
0
    }
8151
0
  }
8152
0
success:
8153
  // @@protoc_insertion_point(parse_success:yb.consensus.MultiRaftConsensusResponsePB)
8154
0
  return true;
8155
0
failure:
8156
  // @@protoc_insertion_point(parse_failure:yb.consensus.MultiRaftConsensusResponsePB)
8157
0
  return false;
8158
0
#undef DO_
8159
0
}
8160
8161
void MultiRaftConsensusResponsePB::SerializeWithCachedSizes(
8162
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8163
  // @@protoc_insertion_point(serialize_start:yb.consensus.MultiRaftConsensusResponsePB)
8164
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8165
0
  (void) cached_has_bits;
8166
8167
  // repeated .yb.consensus.ConsensusResponsePB consensus_response = 1;
8168
0
  for (unsigned int i = 0,
8169
0
      n = static_cast<unsigned int>(this->consensus_response_size()); i < n; i++) {
8170
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8171
0
      1, this->consensus_response(static_cast<int>(i)), output);
8172
0
  }
8173
8174
0
  if (_internal_metadata_.have_unknown_fields()) {
8175
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8176
0
        _internal_metadata_.unknown_fields(), output);
8177
0
  }
8178
  // @@protoc_insertion_point(serialize_end:yb.consensus.MultiRaftConsensusResponsePB)
8179
0
}
8180
8181
::google::protobuf::uint8* MultiRaftConsensusResponsePB::InternalSerializeWithCachedSizesToArray(
8182
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8183
0
  (void)deterministic; // Unused
8184
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.MultiRaftConsensusResponsePB)
8185
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8186
0
  (void) cached_has_bits;
8187
8188
  // repeated .yb.consensus.ConsensusResponsePB consensus_response = 1;
8189
0
  for (unsigned int i = 0,
8190
0
      n = static_cast<unsigned int>(this->consensus_response_size()); i < n; i++) {
8191
0
    target = ::google::protobuf::internal::WireFormatLite::
8192
0
      InternalWriteMessageToArray(
8193
0
        1, this->consensus_response(static_cast<int>(i)), deterministic, target);
8194
0
  }
8195
8196
0
  if (_internal_metadata_.have_unknown_fields()) {
8197
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8198
0
        _internal_metadata_.unknown_fields(), target);
8199
0
  }
8200
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.MultiRaftConsensusResponsePB)
8201
0
  return target;
8202
0
}
8203
8204
0
size_t MultiRaftConsensusResponsePB::ByteSizeLong() const {
8205
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.MultiRaftConsensusResponsePB)
8206
0
  size_t total_size = 0;
8207
8208
0
  if (_internal_metadata_.have_unknown_fields()) {
8209
0
    total_size +=
8210
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8211
0
        _internal_metadata_.unknown_fields());
8212
0
  }
8213
  // repeated .yb.consensus.ConsensusResponsePB consensus_response = 1;
8214
0
  {
8215
0
    unsigned int count = static_cast<unsigned int>(this->consensus_response_size());
8216
0
    total_size += 1UL * count;
8217
0
    for (unsigned int i = 0; i < count; i++) {
8218
0
      total_size +=
8219
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8220
0
          this->consensus_response(static_cast<int>(i)));
8221
0
    }
8222
0
  }
8223
8224
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8225
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8226
0
  _cached_size_ = cached_size;
8227
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8228
0
  return total_size;
8229
0
}
8230
8231
0
void MultiRaftConsensusResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
8232
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.MultiRaftConsensusResponsePB)
8233
0
  GOOGLE_DCHECK_NE(&from, this);
8234
0
  const MultiRaftConsensusResponsePB* source =
8235
0
      ::google::protobuf::internal::DynamicCastToGenerated<const MultiRaftConsensusResponsePB>(
8236
0
          &from);
8237
0
  if (source == NULL) {
8238
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.MultiRaftConsensusResponsePB)
8239
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8240
0
  } else {
8241
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.MultiRaftConsensusResponsePB)
8242
0
    MergeFrom(*source);
8243
0
  }
8244
0
}
8245
8246
0
void MultiRaftConsensusResponsePB::MergeFrom(const MultiRaftConsensusResponsePB& from) {
8247
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.MultiRaftConsensusResponsePB)
8248
0
  GOOGLE_DCHECK_NE(&from, this);
8249
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8250
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8251
0
  (void) cached_has_bits;
8252
8253
0
  consensus_response_.MergeFrom(from.consensus_response_);
8254
0
}
8255
8256
0
void MultiRaftConsensusResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
8257
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.MultiRaftConsensusResponsePB)
8258
0
  if (&from == this) return;
8259
0
  Clear();
8260
0
  MergeFrom(from);
8261
0
}
8262
8263
0
void MultiRaftConsensusResponsePB::CopyFrom(const MultiRaftConsensusResponsePB& from) {
8264
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.MultiRaftConsensusResponsePB)
8265
0
  if (&from == this) return;
8266
0
  Clear();
8267
0
  MergeFrom(from);
8268
0
}
8269
8270
0
bool MultiRaftConsensusResponsePB::IsInitialized() const {
8271
0
  if (!::google::protobuf::internal::AllAreInitialized(this->consensus_response())) return false;
8272
0
  return true;
8273
0
}
8274
8275
0
void MultiRaftConsensusResponsePB::Swap(MultiRaftConsensusResponsePB* other) {
8276
0
  if (other == this) return;
8277
0
  InternalSwap(other);
8278
0
}
8279
0
void MultiRaftConsensusResponsePB::InternalSwap(MultiRaftConsensusResponsePB* other) {
8280
0
  using std::swap;
8281
0
  consensus_response_.InternalSwap(&other->consensus_response_);
8282
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8283
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8284
0
  swap(_cached_size_, other->_cached_size_);
8285
0
}
8286
8287
0
::google::protobuf::Metadata MultiRaftConsensusResponsePB::GetMetadata() const {
8288
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8289
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
8290
0
}
8291
8292
8293
// ===================================================================
8294
8295
26.8k
void OperationStatusPB::InitAsDefaultInstance() {
8296
26.8k
  ::yb::consensus::_OperationStatusPB_default_instance_._instance.get_mutable()->op_id_ = const_cast< ::yb::OpIdPB*>(
8297
26.8k
      ::yb::OpIdPB::internal_default_instance());
8298
26.8k
}
8299
0
void OperationStatusPB::clear_op_id() {
8300
0
  if (op_id_ != NULL) op_id_->Clear();
8301
0
  clear_has_op_id();
8302
0
}
8303
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8304
const int OperationStatusPB::kOpIdFieldNumber;
8305
const int OperationStatusPB::kOperationTypeFieldNumber;
8306
const int OperationStatusPB::kRunningForMicrosFieldNumber;
8307
const int OperationStatusPB::kDescriptionFieldNumber;
8308
const int OperationStatusPB::kTraceBufferFieldNumber;
8309
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8310
8311
OperationStatusPB::OperationStatusPB()
8312
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8313
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8314
0
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsOperationStatusPB();
8315
0
  }
8316
26.8k
  SharedCtor();
8317
  // @@protoc_insertion_point(constructor:yb.consensus.OperationStatusPB)
8318
26.8k
}
8319
OperationStatusPB::OperationStatusPB(const OperationStatusPB& from)
8320
  : ::google::protobuf::Message(),
8321
      _internal_metadata_(NULL),
8322
      _has_bits_(from._has_bits_),
8323
0
      _cached_size_(0) {
8324
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8325
0
  description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8326
0
  if (from.has_description()) {
8327
0
    description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
8328
0
  }
8329
0
  trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8330
0
  if (from.has_trace_buffer()) {
8331
0
    trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_);
8332
0
  }
8333
0
  if (from.has_op_id()) {
8334
0
    op_id_ = new ::yb::OpIdPB(*from.op_id_);
8335
0
  } else {
8336
0
    op_id_ = NULL;
8337
0
  }
8338
0
  ::memcpy(&running_for_micros_, &from.running_for_micros_,
8339
0
    static_cast<size_t>(reinterpret_cast<char*>(&operation_type_) -
8340
0
    reinterpret_cast<char*>(&running_for_micros_)) + sizeof(operation_type_));
8341
  // @@protoc_insertion_point(copy_constructor:yb.consensus.OperationStatusPB)
8342
0
}
8343
8344
26.8k
void OperationStatusPB::SharedCtor() {
8345
26.8k
  _cached_size_ = 0;
8346
26.8k
  description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8347
26.8k
  trace_buffer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8348
26.8k
  ::memset(&op_id_, 0, static_cast<size_t>(
8349
26.8k
      reinterpret_cast<char*>(&operation_type_) -
8350
26.8k
      reinterpret_cast<char*>(&op_id_)) + sizeof(operation_type_));
8351
26.8k
}
8352
8353
0
OperationStatusPB::~OperationStatusPB() {
8354
  // @@protoc_insertion_point(destructor:yb.consensus.OperationStatusPB)
8355
0
  SharedDtor();
8356
0
}
8357
8358
0
void OperationStatusPB::SharedDtor() {
8359
0
  description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8360
0
  trace_buffer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8361
0
  if (this != internal_default_instance()) delete op_id_;
8362
0
}
8363
8364
0
void OperationStatusPB::SetCachedSize(int size) const {
8365
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8366
0
  _cached_size_ = size;
8367
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8368
0
}
8369
0
const ::google::protobuf::Descriptor* OperationStatusPB::descriptor() {
8370
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8371
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8372
0
}
8373
8374
0
const OperationStatusPB& OperationStatusPB::default_instance() {
8375
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsOperationStatusPB();
8376
0
  return *internal_default_instance();
8377
0
}
8378
8379
0
OperationStatusPB* OperationStatusPB::New(::google::protobuf::Arena* arena) const {
8380
0
  OperationStatusPB* n = new OperationStatusPB;
8381
0
  if (arena != NULL) {
8382
0
    arena->Own(n);
8383
0
  }
8384
0
  return n;
8385
0
}
8386
8387
0
void OperationStatusPB::Clear() {
8388
// @@protoc_insertion_point(message_clear_start:yb.consensus.OperationStatusPB)
8389
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8390
  // Prevent compiler warnings about cached_has_bits being unused
8391
0
  (void) cached_has_bits;
8392
8393
0
  cached_has_bits = _has_bits_[0];
8394
0
  if (cached_has_bits & 7u) {
8395
0
    if (cached_has_bits & 0x00000001u) {
8396
0
      GOOGLE_DCHECK(!description_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8397
0
      (*description_.UnsafeRawStringPointer())->clear();
8398
0
    }
8399
0
    if (cached_has_bits & 0x00000002u) {
8400
0
      GOOGLE_DCHECK(!trace_buffer_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8401
0
      (*trace_buffer_.UnsafeRawStringPointer())->clear();
8402
0
    }
8403
0
    if (cached_has_bits & 0x00000004u) {
8404
0
      GOOGLE_DCHECK(op_id_ != NULL);
8405
0
      op_id_->Clear();
8406
0
    }
8407
0
  }
8408
0
  if (cached_has_bits & 24u) {
8409
0
    ::memset(&running_for_micros_, 0, static_cast<size_t>(
8410
0
        reinterpret_cast<char*>(&operation_type_) -
8411
0
        reinterpret_cast<char*>(&running_for_micros_)) + sizeof(operation_type_));
8412
0
  }
8413
0
  _has_bits_.Clear();
8414
0
  _internal_metadata_.Clear();
8415
0
}
8416
8417
bool OperationStatusPB::MergePartialFromCodedStream(
8418
0
    ::google::protobuf::io::CodedInputStream* input) {
8419
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8420
0
  ::google::protobuf::uint32 tag;
8421
  // @@protoc_insertion_point(parse_start:yb.consensus.OperationStatusPB)
8422
0
  for (;;) {
8423
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8424
0
    tag = p.first;
8425
0
    if (!p.second) goto handle_unusual;
8426
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8427
      // required .yb.OpIdPB op_id = 1;
8428
0
      case 1: {
8429
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8430
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8431
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8432
0
               input, mutable_op_id()));
8433
0
        } else {
8434
0
          goto handle_unusual;
8435
0
        }
8436
0
        break;
8437
0
      }
8438
8439
      // required .yb.consensus.OperationType operation_type = 2;
8440
0
      case 2: {
8441
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8442
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8443
0
          int value;
8444
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8445
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8446
0
                 input, &value)));
8447
0
          if (::yb::consensus::OperationType_IsValid(value)) {
8448
0
            set_operation_type(static_cast< ::yb::consensus::OperationType >(value));
8449
0
          } else {
8450
0
            mutable_unknown_fields()->AddVarint(
8451
0
                2, static_cast< ::google::protobuf::uint64>(value));
8452
0
          }
8453
0
        } else {
8454
0
          goto handle_unusual;
8455
0
        }
8456
0
        break;
8457
0
      }
8458
8459
      // required int64 running_for_micros = 3;
8460
0
      case 3: {
8461
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8462
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
8463
0
          set_has_running_for_micros();
8464
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8465
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8466
0
                 input, &running_for_micros_)));
8467
0
        } else {
8468
0
          goto handle_unusual;
8469
0
        }
8470
0
        break;
8471
0
      }
8472
8473
      // required string description = 4;
8474
0
      case 4: {
8475
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8476
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
8477
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8478
0
                input, this->mutable_description()));
8479
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8480
0
            this->description().data(), static_cast<int>(this->description().length()),
8481
0
            ::google::protobuf::internal::WireFormat::PARSE,
8482
0
            "yb.consensus.OperationStatusPB.description");
8483
0
        } else {
8484
0
          goto handle_unusual;
8485
0
        }
8486
0
        break;
8487
0
      }
8488
8489
      // optional string trace_buffer = 6;
8490
0
      case 6: {
8491
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8492
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
8493
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8494
0
                input, this->mutable_trace_buffer()));
8495
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8496
0
            this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()),
8497
0
            ::google::protobuf::internal::WireFormat::PARSE,
8498
0
            "yb.consensus.OperationStatusPB.trace_buffer");
8499
0
        } else {
8500
0
          goto handle_unusual;
8501
0
        }
8502
0
        break;
8503
0
      }
8504
8505
0
      default: {
8506
0
      handle_unusual:
8507
0
        if (tag == 0) {
8508
0
          goto success;
8509
0
        }
8510
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8511
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8512
0
        break;
8513
0
      }
8514
0
    }
8515
0
  }
8516
0
success:
8517
  // @@protoc_insertion_point(parse_success:yb.consensus.OperationStatusPB)
8518
0
  return true;
8519
0
failure:
8520
  // @@protoc_insertion_point(parse_failure:yb.consensus.OperationStatusPB)
8521
0
  return false;
8522
0
#undef DO_
8523
0
}
8524
8525
void OperationStatusPB::SerializeWithCachedSizes(
8526
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8527
  // @@protoc_insertion_point(serialize_start:yb.consensus.OperationStatusPB)
8528
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8529
0
  (void) cached_has_bits;
8530
8531
0
  cached_has_bits = _has_bits_[0];
8532
  // required .yb.OpIdPB op_id = 1;
8533
0
  if (cached_has_bits & 0x00000004u) {
8534
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8535
0
      1, *this->op_id_, output);
8536
0
  }
8537
8538
  // required .yb.consensus.OperationType operation_type = 2;
8539
0
  if (cached_has_bits & 0x00000010u) {
8540
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8541
0
      2, this->operation_type(), output);
8542
0
  }
8543
8544
  // required int64 running_for_micros = 3;
8545
0
  if (cached_has_bits & 0x00000008u) {
8546
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->running_for_micros(), output);
8547
0
  }
8548
8549
  // required string description = 4;
8550
0
  if (cached_has_bits & 0x00000001u) {
8551
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8552
0
      this->description().data(), static_cast<int>(this->description().length()),
8553
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8554
0
      "yb.consensus.OperationStatusPB.description");
8555
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8556
0
      4, this->description(), output);
8557
0
  }
8558
8559
  // optional string trace_buffer = 6;
8560
0
  if (cached_has_bits & 0x00000002u) {
8561
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8562
0
      this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()),
8563
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8564
0
      "yb.consensus.OperationStatusPB.trace_buffer");
8565
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8566
0
      6, this->trace_buffer(), output);
8567
0
  }
8568
8569
0
  if (_internal_metadata_.have_unknown_fields()) {
8570
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8571
0
        _internal_metadata_.unknown_fields(), output);
8572
0
  }
8573
  // @@protoc_insertion_point(serialize_end:yb.consensus.OperationStatusPB)
8574
0
}
8575
8576
::google::protobuf::uint8* OperationStatusPB::InternalSerializeWithCachedSizesToArray(
8577
0
    bool deterministic, ::google::protobuf::uint8* target) const {
8578
0
  (void)deterministic; // Unused
8579
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.OperationStatusPB)
8580
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8581
0
  (void) cached_has_bits;
8582
8583
0
  cached_has_bits = _has_bits_[0];
8584
  // required .yb.OpIdPB op_id = 1;
8585
0
  if (cached_has_bits & 0x00000004u) {
8586
0
    target = ::google::protobuf::internal::WireFormatLite::
8587
0
      InternalWriteMessageToArray(
8588
0
        1, *this->op_id_, deterministic, target);
8589
0
  }
8590
8591
  // required .yb.consensus.OperationType operation_type = 2;
8592
0
  if (cached_has_bits & 0x00000010u) {
8593
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8594
0
      2, this->operation_type(), target);
8595
0
  }
8596
8597
  // required int64 running_for_micros = 3;
8598
0
  if (cached_has_bits & 0x00000008u) {
8599
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->running_for_micros(), target);
8600
0
  }
8601
8602
  // required string description = 4;
8603
0
  if (cached_has_bits & 0x00000001u) {
8604
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8605
0
      this->description().data(), static_cast<int>(this->description().length()),
8606
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8607
0
      "yb.consensus.OperationStatusPB.description");
8608
0
    target =
8609
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8610
0
        4, this->description(), target);
8611
0
  }
8612
8613
  // optional string trace_buffer = 6;
8614
0
  if (cached_has_bits & 0x00000002u) {
8615
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8616
0
      this->trace_buffer().data(), static_cast<int>(this->trace_buffer().length()),
8617
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8618
0
      "yb.consensus.OperationStatusPB.trace_buffer");
8619
0
    target =
8620
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8621
0
        6, this->trace_buffer(), target);
8622
0
  }
8623
8624
0
  if (_internal_metadata_.have_unknown_fields()) {
8625
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8626
0
        _internal_metadata_.unknown_fields(), target);
8627
0
  }
8628
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.OperationStatusPB)
8629
0
  return target;
8630
0
}
8631
8632
0
size_t OperationStatusPB::RequiredFieldsByteSizeFallback() const {
8633
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.OperationStatusPB)
8634
0
  size_t total_size = 0;
8635
8636
0
  if (has_description()) {
8637
    // required string description = 4;
8638
0
    total_size += 1 +
8639
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
8640
0
        this->description());
8641
0
  }
8642
8643
0
  if (has_op_id()) {
8644
    // required .yb.OpIdPB op_id = 1;
8645
0
    total_size += 1 +
8646
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
8647
0
        *this->op_id_);
8648
0
  }
8649
8650
0
  if (has_running_for_micros()) {
8651
    // required int64 running_for_micros = 3;
8652
0
    total_size += 1 +
8653
0
      ::google::protobuf::internal::WireFormatLite::Int64Size(
8654
0
        this->running_for_micros());
8655
0
  }
8656
8657
0
  if (has_operation_type()) {
8658
    // required .yb.consensus.OperationType operation_type = 2;
8659
0
    total_size += 1 +
8660
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation_type());
8661
0
  }
8662
8663
0
  return total_size;
8664
0
}
8665
0
size_t OperationStatusPB::ByteSizeLong() const {
8666
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.OperationStatusPB)
8667
0
  size_t total_size = 0;
8668
8669
0
  if (_internal_metadata_.have_unknown_fields()) {
8670
0
    total_size +=
8671
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8672
0
        _internal_metadata_.unknown_fields());
8673
0
  }
8674
0
  if (((_has_bits_[0] & 0x0000001d) ^ 0x0000001d) == 0) {  // All required fields are present.
8675
    // required string description = 4;
8676
0
    total_size += 1 +
8677
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
8678
0
        this->description());
8679
8680
    // required .yb.OpIdPB op_id = 1;
8681
0
    total_size += 1 +
8682
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
8683
0
        *this->op_id_);
8684
8685
    // required int64 running_for_micros = 3;
8686
0
    total_size += 1 +
8687
0
      ::google::protobuf::internal::WireFormatLite::Int64Size(
8688
0
        this->running_for_micros());
8689
8690
    // required .yb.consensus.OperationType operation_type = 2;
8691
0
    total_size += 1 +
8692
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->operation_type());
8693
8694
0
  } else {
8695
0
    total_size += RequiredFieldsByteSizeFallback();
8696
0
  }
8697
  // optional string trace_buffer = 6;
8698
0
  if (has_trace_buffer()) {
8699
0
    total_size += 1 +
8700
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
8701
0
        this->trace_buffer());
8702
0
  }
8703
8704
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8705
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8706
0
  _cached_size_ = cached_size;
8707
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8708
0
  return total_size;
8709
0
}
8710
8711
0
void OperationStatusPB::MergeFrom(const ::google::protobuf::Message& from) {
8712
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.OperationStatusPB)
8713
0
  GOOGLE_DCHECK_NE(&from, this);
8714
0
  const OperationStatusPB* source =
8715
0
      ::google::protobuf::internal::DynamicCastToGenerated<const OperationStatusPB>(
8716
0
          &from);
8717
0
  if (source == NULL) {
8718
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.OperationStatusPB)
8719
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8720
0
  } else {
8721
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.OperationStatusPB)
8722
0
    MergeFrom(*source);
8723
0
  }
8724
0
}
8725
8726
0
void OperationStatusPB::MergeFrom(const OperationStatusPB& from) {
8727
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.OperationStatusPB)
8728
0
  GOOGLE_DCHECK_NE(&from, this);
8729
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8730
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8731
0
  (void) cached_has_bits;
8732
8733
0
  cached_has_bits = from._has_bits_[0];
8734
0
  if (cached_has_bits & 31u) {
8735
0
    if (cached_has_bits & 0x00000001u) {
8736
0
      set_has_description();
8737
0
      description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
8738
0
    }
8739
0
    if (cached_has_bits & 0x00000002u) {
8740
0
      set_has_trace_buffer();
8741
0
      trace_buffer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trace_buffer_);
8742
0
    }
8743
0
    if (cached_has_bits & 0x00000004u) {
8744
0
      mutable_op_id()->::yb::OpIdPB::MergeFrom(from.op_id());
8745
0
    }
8746
0
    if (cached_has_bits & 0x00000008u) {
8747
0
      running_for_micros_ = from.running_for_micros_;
8748
0
    }
8749
0
    if (cached_has_bits & 0x00000010u) {
8750
0
      operation_type_ = from.operation_type_;
8751
0
    }
8752
0
    _has_bits_[0] |= cached_has_bits;
8753
0
  }
8754
0
}
8755
8756
0
void OperationStatusPB::CopyFrom(const ::google::protobuf::Message& from) {
8757
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.OperationStatusPB)
8758
0
  if (&from == this) return;
8759
0
  Clear();
8760
0
  MergeFrom(from);
8761
0
}
8762
8763
0
void OperationStatusPB::CopyFrom(const OperationStatusPB& from) {
8764
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.OperationStatusPB)
8765
0
  if (&from == this) return;
8766
0
  Clear();
8767
0
  MergeFrom(from);
8768
0
}
8769
8770
0
bool OperationStatusPB::IsInitialized() const {
8771
0
  if ((_has_bits_[0] & 0x0000001d) != 0x0000001d) return false;
8772
0
  if (has_op_id()) {
8773
0
    if (!this->op_id_->IsInitialized()) return false;
8774
0
  }
8775
0
  return true;
8776
0
}
8777
8778
0
void OperationStatusPB::Swap(OperationStatusPB* other) {
8779
0
  if (other == this) return;
8780
0
  InternalSwap(other);
8781
0
}
8782
0
void OperationStatusPB::InternalSwap(OperationStatusPB* other) {
8783
0
  using std::swap;
8784
0
  description_.Swap(&other->description_);
8785
0
  trace_buffer_.Swap(&other->trace_buffer_);
8786
0
  swap(op_id_, other->op_id_);
8787
0
  swap(running_for_micros_, other->running_for_micros_);
8788
0
  swap(operation_type_, other->operation_type_);
8789
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8790
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8791
0
  swap(_cached_size_, other->_cached_size_);
8792
0
}
8793
8794
0
::google::protobuf::Metadata OperationStatusPB::GetMetadata() const {
8795
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8796
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
8797
0
}
8798
8799
8800
// ===================================================================
8801
8802
26.8k
void GetNodeInstanceRequestPB::InitAsDefaultInstance() {
8803
26.8k
}
8804
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8805
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8806
8807
GetNodeInstanceRequestPB::GetNodeInstanceRequestPB()
8808
69.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8809
69.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8810
43.0k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetNodeInstanceRequestPB();
8811
43.0k
  }
8812
69.9k
  SharedCtor();
8813
  // @@protoc_insertion_point(constructor:yb.consensus.GetNodeInstanceRequestPB)
8814
69.9k
}
8815
GetNodeInstanceRequestPB::GetNodeInstanceRequestPB(const GetNodeInstanceRequestPB& from)
8816
  : ::google::protobuf::Message(),
8817
      _internal_metadata_(NULL),
8818
      _has_bits_(from._has_bits_),
8819
0
      _cached_size_(0) {
8820
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8821
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetNodeInstanceRequestPB)
8822
0
}
8823
8824
69.9k
void GetNodeInstanceRequestPB::SharedCtor() {
8825
69.9k
  _cached_size_ = 0;
8826
69.9k
}
8827
8828
42.9k
GetNodeInstanceRequestPB::~GetNodeInstanceRequestPB() {
8829
  // @@protoc_insertion_point(destructor:yb.consensus.GetNodeInstanceRequestPB)
8830
42.9k
  SharedDtor();
8831
42.9k
}
8832
8833
42.9k
void GetNodeInstanceRequestPB::SharedDtor() {
8834
42.9k
}
8835
8836
0
void GetNodeInstanceRequestPB::SetCachedSize(int size) const {
8837
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8838
0
  _cached_size_ = size;
8839
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8840
0
}
8841
0
const ::google::protobuf::Descriptor* GetNodeInstanceRequestPB::descriptor() {
8842
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8843
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8844
0
}
8845
8846
0
const GetNodeInstanceRequestPB& GetNodeInstanceRequestPB::default_instance() {
8847
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetNodeInstanceRequestPB();
8848
0
  return *internal_default_instance();
8849
0
}
8850
8851
0
GetNodeInstanceRequestPB* GetNodeInstanceRequestPB::New(::google::protobuf::Arena* arena) const {
8852
0
  GetNodeInstanceRequestPB* n = new GetNodeInstanceRequestPB;
8853
0
  if (arena != NULL) {
8854
0
    arena->Own(n);
8855
0
  }
8856
0
  return n;
8857
0
}
8858
8859
20.9k
void GetNodeInstanceRequestPB::Clear() {
8860
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetNodeInstanceRequestPB)
8861
20.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
8862
  // Prevent compiler warnings about cached_has_bits being unused
8863
20.9k
  (void) cached_has_bits;
8864
8865
20.9k
  _has_bits_.Clear();
8866
20.9k
  _internal_metadata_.Clear();
8867
20.9k
}
8868
8869
bool GetNodeInstanceRequestPB::MergePartialFromCodedStream(
8870
20.9k
    ::google::protobuf::io::CodedInputStream* input) {
8871
20.9k
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
8872
20.9k
  ::google::protobuf::uint32 tag;
8873
  // @@protoc_insertion_point(parse_start:yb.consensus.GetNodeInstanceRequestPB)
8874
20.9k
  for (;;) {
8875
20.9k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8876
20.9k
    tag = p.first;
8877
20.9k
    if (!p.second) goto handle_unusual;
8878
20.9k
  handle_unusual:
8879
20.9k
    if (tag == 0) {
8880
20.9k
      goto success;
8881
20.9k
    }
8882
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
8883
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
8884
0
  }
8885
20.9k
success:
8886
  // @@protoc_insertion_point(parse_success:yb.consensus.GetNodeInstanceRequestPB)
8887
20.9k
  return true;
8888
0
failure:
8889
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetNodeInstanceRequestPB)
8890
0
  return false;
8891
20.9k
#undef DO_
8892
20.9k
}
8893
8894
void GetNodeInstanceRequestPB::SerializeWithCachedSizes(
8895
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8896
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetNodeInstanceRequestPB)
8897
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8898
0
  (void) cached_has_bits;
8899
8900
0
  if (_internal_metadata_.have_unknown_fields()) {
8901
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8902
0
        _internal_metadata_.unknown_fields(), output);
8903
0
  }
8904
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetNodeInstanceRequestPB)
8905
0
}
8906
8907
::google::protobuf::uint8* GetNodeInstanceRequestPB::InternalSerializeWithCachedSizesToArray(
8908
42.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
8909
42.6k
  (void)deterministic; // Unused
8910
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetNodeInstanceRequestPB)
8911
42.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
8912
42.6k
  (void) cached_has_bits;
8913
8914
42.6k
  if (_internal_metadata_.have_unknown_fields()) {
8915
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8916
0
        _internal_metadata_.unknown_fields(), target);
8917
0
  }
8918
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetNodeInstanceRequestPB)
8919
42.6k
  return target;
8920
42.6k
}
8921
8922
85.3k
size_t GetNodeInstanceRequestPB::ByteSizeLong() const {
8923
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetNodeInstanceRequestPB)
8924
85.3k
  size_t total_size = 0;
8925
8926
85.3k
  if (_internal_metadata_.have_unknown_fields()) {
8927
0
    total_size +=
8928
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8929
0
        _internal_metadata_.unknown_fields());
8930
0
  }
8931
85.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8932
85.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8933
85.3k
  _cached_size_ = cached_size;
8934
85.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8935
85.3k
  return total_size;
8936
85.3k
}
8937
8938
0
void GetNodeInstanceRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
8939
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetNodeInstanceRequestPB)
8940
0
  GOOGLE_DCHECK_NE(&from, this);
8941
0
  const GetNodeInstanceRequestPB* source =
8942
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetNodeInstanceRequestPB>(
8943
0
          &from);
8944
0
  if (source == NULL) {
8945
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetNodeInstanceRequestPB)
8946
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8947
0
  } else {
8948
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetNodeInstanceRequestPB)
8949
0
    MergeFrom(*source);
8950
0
  }
8951
0
}
8952
8953
0
void GetNodeInstanceRequestPB::MergeFrom(const GetNodeInstanceRequestPB& from) {
8954
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetNodeInstanceRequestPB)
8955
0
  GOOGLE_DCHECK_NE(&from, this);
8956
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8957
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8958
0
  (void) cached_has_bits;
8959
8960
0
}
8961
8962
0
void GetNodeInstanceRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
8963
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetNodeInstanceRequestPB)
8964
0
  if (&from == this) return;
8965
0
  Clear();
8966
0
  MergeFrom(from);
8967
0
}
8968
8969
0
void GetNodeInstanceRequestPB::CopyFrom(const GetNodeInstanceRequestPB& from) {
8970
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetNodeInstanceRequestPB)
8971
0
  if (&from == this) return;
8972
0
  Clear();
8973
0
  MergeFrom(from);
8974
0
}
8975
8976
63.6k
bool GetNodeInstanceRequestPB::IsInitialized() const {
8977
63.6k
  return true;
8978
63.6k
}
8979
8980
0
void GetNodeInstanceRequestPB::Swap(GetNodeInstanceRequestPB* other) {
8981
0
  if (other == this) return;
8982
0
  InternalSwap(other);
8983
0
}
8984
0
void GetNodeInstanceRequestPB::InternalSwap(GetNodeInstanceRequestPB* other) {
8985
0
  using std::swap;
8986
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8987
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8988
0
  swap(_cached_size_, other->_cached_size_);
8989
0
}
8990
8991
20.9k
::google::protobuf::Metadata GetNodeInstanceRequestPB::GetMetadata() const {
8992
20.9k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
8993
20.9k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
8994
20.9k
}
8995
8996
8997
// ===================================================================
8998
8999
26.8k
void GetNodeInstanceResponsePB::InitAsDefaultInstance() {
9000
26.8k
  ::yb::consensus::_GetNodeInstanceResponsePB_default_instance_._instance.get_mutable()->node_instance_ = const_cast< ::yb::NodeInstancePB*>(
9001
26.8k
      ::yb::NodeInstancePB::internal_default_instance());
9002
26.8k
  ::yb::consensus::_GetNodeInstanceResponsePB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::ServerRegistrationPB*>(
9003
26.8k
      ::yb::ServerRegistrationPB::internal_default_instance());
9004
26.8k
}
9005
0
void GetNodeInstanceResponsePB::clear_node_instance() {
9006
0
  if (node_instance_ != NULL) node_instance_->Clear();
9007
0
  clear_has_node_instance();
9008
0
}
9009
0
void GetNodeInstanceResponsePB::clear_registration() {
9010
0
  if (registration_ != NULL) registration_->Clear();
9011
0
  clear_has_registration();
9012
0
}
9013
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9014
const int GetNodeInstanceResponsePB::kNodeInstanceFieldNumber;
9015
const int GetNodeInstanceResponsePB::kRegistrationFieldNumber;
9016
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9017
9018
GetNodeInstanceResponsePB::GetNodeInstanceResponsePB()
9019
69.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9020
69.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9021
43.0k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetNodeInstanceResponsePB();
9022
43.0k
  }
9023
69.9k
  SharedCtor();
9024
  // @@protoc_insertion_point(constructor:yb.consensus.GetNodeInstanceResponsePB)
9025
69.9k
}
9026
GetNodeInstanceResponsePB::GetNodeInstanceResponsePB(const GetNodeInstanceResponsePB& from)
9027
  : ::google::protobuf::Message(),
9028
      _internal_metadata_(NULL),
9029
      _has_bits_(from._has_bits_),
9030
0
      _cached_size_(0) {
9031
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9032
0
  if (from.has_node_instance()) {
9033
0
    node_instance_ = new ::yb::NodeInstancePB(*from.node_instance_);
9034
0
  } else {
9035
0
    node_instance_ = NULL;
9036
0
  }
9037
0
  if (from.has_registration()) {
9038
0
    registration_ = new ::yb::ServerRegistrationPB(*from.registration_);
9039
0
  } else {
9040
0
    registration_ = NULL;
9041
0
  }
9042
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetNodeInstanceResponsePB)
9043
0
}
9044
9045
69.9k
void GetNodeInstanceResponsePB::SharedCtor() {
9046
69.9k
  _cached_size_ = 0;
9047
69.9k
  ::memset(&node_instance_, 0, static_cast<size_t>(
9048
69.9k
      reinterpret_cast<char*>(&registration_) -
9049
69.9k
      reinterpret_cast<char*>(&node_instance_)) + sizeof(registration_));
9050
69.9k
}
9051
9052
42.9k
GetNodeInstanceResponsePB::~GetNodeInstanceResponsePB() {
9053
  // @@protoc_insertion_point(destructor:yb.consensus.GetNodeInstanceResponsePB)
9054
42.9k
  SharedDtor();
9055
42.9k
}
9056
9057
42.9k
void GetNodeInstanceResponsePB::SharedDtor() {
9058
42.9k
  if (this != internal_default_instance()) 
delete node_instance_42.9k
;
9059
42.9k
  if (this != internal_default_instance()) 
delete registration_42.9k
;
9060
42.9k
}
9061
9062
0
void GetNodeInstanceResponsePB::SetCachedSize(int size) const {
9063
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9064
0
  _cached_size_ = size;
9065
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9066
0
}
9067
0
const ::google::protobuf::Descriptor* GetNodeInstanceResponsePB::descriptor() {
9068
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
9069
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9070
0
}
9071
9072
0
const GetNodeInstanceResponsePB& GetNodeInstanceResponsePB::default_instance() {
9073
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetNodeInstanceResponsePB();
9074
0
  return *internal_default_instance();
9075
0
}
9076
9077
0
GetNodeInstanceResponsePB* GetNodeInstanceResponsePB::New(::google::protobuf::Arena* arena) const {
9078
0
  GetNodeInstanceResponsePB* n = new GetNodeInstanceResponsePB;
9079
0
  if (arena != NULL) {
9080
0
    arena->Own(n);
9081
0
  }
9082
0
  return n;
9083
0
}
9084
9085
20.9k
void GetNodeInstanceResponsePB::Clear() {
9086
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetNodeInstanceResponsePB)
9087
20.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
9088
  // Prevent compiler warnings about cached_has_bits being unused
9089
20.9k
  (void) cached_has_bits;
9090
9091
20.9k
  cached_has_bits = _has_bits_[0];
9092
20.9k
  if (cached_has_bits & 3u) {
9093
0
    if (cached_has_bits & 0x00000001u) {
9094
0
      GOOGLE_DCHECK(node_instance_ != NULL);
9095
0
      node_instance_->Clear();
9096
0
    }
9097
0
    if (cached_has_bits & 0x00000002u) {
9098
0
      GOOGLE_DCHECK(registration_ != NULL);
9099
0
      registration_->Clear();
9100
0
    }
9101
0
  }
9102
20.9k
  _has_bits_.Clear();
9103
20.9k
  _internal_metadata_.Clear();
9104
20.9k
}
9105
9106
bool GetNodeInstanceResponsePB::MergePartialFromCodedStream(
9107
20.9k
    ::google::protobuf::io::CodedInputStream* input) {
9108
41.9k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
9109
20.9k
  ::google::protobuf::uint32 tag;
9110
  // @@protoc_insertion_point(parse_start:yb.consensus.GetNodeInstanceResponsePB)
9111
62.9k
  for (;;) {
9112
62.9k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9113
62.9k
    tag = p.first;
9114
62.9k
    if (!p.second) 
goto handle_unusual20.9k
;
9115
41.9k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9116
      // optional .yb.NodeInstancePB node_instance = 1;
9117
20.9k
      case 1: {
9118
20.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9119
20.9k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9120
20.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9121
20.9k
               input, mutable_node_instance()));
9122
20.9k
        } else {
9123
0
          goto handle_unusual;
9124
0
        }
9125
20.9k
        break;
9126
20.9k
      }
9127
9128
      // optional .yb.ServerRegistrationPB registration = 2;
9129
20.9k
      case 2: {
9130
20.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9131
20.9k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9132
20.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9133
20.9k
               input, mutable_registration()));
9134
20.9k
        } else {
9135
0
          goto handle_unusual;
9136
0
        }
9137
20.9k
        break;
9138
20.9k
      }
9139
9140
20.9k
      default: {
9141
20.9k
      handle_unusual:
9142
20.9k
        if (tag == 0) {
9143
20.9k
          goto success;
9144
20.9k
        }
9145
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9146
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9147
0
        break;
9148
0
      }
9149
41.9k
    }
9150
41.9k
  }
9151
20.9k
success:
9152
  // @@protoc_insertion_point(parse_success:yb.consensus.GetNodeInstanceResponsePB)
9153
20.9k
  return true;
9154
0
failure:
9155
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetNodeInstanceResponsePB)
9156
0
  return false;
9157
20.9k
#undef DO_
9158
20.9k
}
9159
9160
void GetNodeInstanceResponsePB::SerializeWithCachedSizes(
9161
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9162
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetNodeInstanceResponsePB)
9163
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9164
0
  (void) cached_has_bits;
9165
9166
0
  cached_has_bits = _has_bits_[0];
9167
  // optional .yb.NodeInstancePB node_instance = 1;
9168
0
  if (cached_has_bits & 0x00000001u) {
9169
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9170
0
      1, *this->node_instance_, output);
9171
0
  }
9172
9173
  // optional .yb.ServerRegistrationPB registration = 2;
9174
0
  if (cached_has_bits & 0x00000002u) {
9175
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9176
0
      2, *this->registration_, output);
9177
0
  }
9178
9179
0
  if (_internal_metadata_.have_unknown_fields()) {
9180
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9181
0
        _internal_metadata_.unknown_fields(), output);
9182
0
  }
9183
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetNodeInstanceResponsePB)
9184
0
}
9185
9186
::google::protobuf::uint8* GetNodeInstanceResponsePB::InternalSerializeWithCachedSizesToArray(
9187
20.9k
    bool deterministic, ::google::protobuf::uint8* target) const {
9188
20.9k
  (void)deterministic; // Unused
9189
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetNodeInstanceResponsePB)
9190
20.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
9191
20.9k
  (void) cached_has_bits;
9192
9193
20.9k
  cached_has_bits = _has_bits_[0];
9194
  // optional .yb.NodeInstancePB node_instance = 1;
9195
20.9k
  if (
cached_has_bits & 0x00000001u20.9k
) {
9196
20.9k
    target = ::google::protobuf::internal::WireFormatLite::
9197
20.9k
      InternalWriteMessageToArray(
9198
20.9k
        1, *this->node_instance_, deterministic, target);
9199
20.9k
  }
9200
9201
  // optional .yb.ServerRegistrationPB registration = 2;
9202
20.9k
  if (cached_has_bits & 0x00000002u) {
9203
20.9k
    target = ::google::protobuf::internal::WireFormatLite::
9204
20.9k
      InternalWriteMessageToArray(
9205
20.9k
        2, *this->registration_, deterministic, target);
9206
20.9k
  }
9207
9208
20.9k
  if (_internal_metadata_.have_unknown_fields()) {
9209
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9210
0
        _internal_metadata_.unknown_fields(), target);
9211
0
  }
9212
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetNodeInstanceResponsePB)
9213
20.9k
  return target;
9214
20.9k
}
9215
9216
41.9k
size_t GetNodeInstanceResponsePB::ByteSizeLong() const {
9217
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetNodeInstanceResponsePB)
9218
41.9k
  size_t total_size = 0;
9219
9220
41.9k
  if (_internal_metadata_.have_unknown_fields()) {
9221
0
    total_size +=
9222
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9223
0
        _internal_metadata_.unknown_fields());
9224
0
  }
9225
41.9k
  if (_has_bits_[0 / 32] & 3u) {
9226
    // optional .yb.NodeInstancePB node_instance = 1;
9227
41.9k
    if (has_node_instance()) {
9228
41.9k
      total_size += 1 +
9229
41.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9230
41.9k
          *this->node_instance_);
9231
41.9k
    }
9232
9233
    // optional .yb.ServerRegistrationPB registration = 2;
9234
41.9k
    if (has_registration()) {
9235
41.9k
      total_size += 1 +
9236
41.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9237
41.9k
          *this->registration_);
9238
41.9k
    }
9239
9240
41.9k
  }
9241
41.9k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9242
41.9k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9243
41.9k
  _cached_size_ = cached_size;
9244
41.9k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9245
41.9k
  return total_size;
9246
41.9k
}
9247
9248
0
void GetNodeInstanceResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
9249
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetNodeInstanceResponsePB)
9250
0
  GOOGLE_DCHECK_NE(&from, this);
9251
0
  const GetNodeInstanceResponsePB* source =
9252
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetNodeInstanceResponsePB>(
9253
0
          &from);
9254
0
  if (source == NULL) {
9255
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetNodeInstanceResponsePB)
9256
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9257
0
  } else {
9258
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetNodeInstanceResponsePB)
9259
0
    MergeFrom(*source);
9260
0
  }
9261
0
}
9262
9263
0
void GetNodeInstanceResponsePB::MergeFrom(const GetNodeInstanceResponsePB& from) {
9264
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetNodeInstanceResponsePB)
9265
0
  GOOGLE_DCHECK_NE(&from, this);
9266
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9267
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9268
0
  (void) cached_has_bits;
9269
9270
0
  cached_has_bits = from._has_bits_[0];
9271
0
  if (cached_has_bits & 3u) {
9272
0
    if (cached_has_bits & 0x00000001u) {
9273
0
      mutable_node_instance()->::yb::NodeInstancePB::MergeFrom(from.node_instance());
9274
0
    }
9275
0
    if (cached_has_bits & 0x00000002u) {
9276
0
      mutable_registration()->::yb::ServerRegistrationPB::MergeFrom(from.registration());
9277
0
    }
9278
0
  }
9279
0
}
9280
9281
0
void GetNodeInstanceResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
9282
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetNodeInstanceResponsePB)
9283
0
  if (&from == this) return;
9284
0
  Clear();
9285
0
  MergeFrom(from);
9286
0
}
9287
9288
0
void GetNodeInstanceResponsePB::CopyFrom(const GetNodeInstanceResponsePB& from) {
9289
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetNodeInstanceResponsePB)
9290
0
  if (&from == this) return;
9291
0
  Clear();
9292
0
  MergeFrom(from);
9293
0
}
9294
9295
41.9k
bool GetNodeInstanceResponsePB::IsInitialized() const {
9296
41.9k
  if (has_node_instance()) {
9297
41.9k
    if (!this->node_instance_->IsInitialized()) 
return false0
;
9298
41.9k
  }
9299
41.9k
  if (has_registration()) {
9300
41.9k
    if (!this->registration_->IsInitialized()) 
return false0
;
9301
41.9k
  }
9302
41.9k
  return true;
9303
41.9k
}
9304
9305
0
void GetNodeInstanceResponsePB::Swap(GetNodeInstanceResponsePB* other) {
9306
0
  if (other == this) return;
9307
0
  InternalSwap(other);
9308
0
}
9309
0
void GetNodeInstanceResponsePB::InternalSwap(GetNodeInstanceResponsePB* other) {
9310
0
  using std::swap;
9311
0
  swap(node_instance_, other->node_instance_);
9312
0
  swap(registration_, other->registration_);
9313
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9314
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9315
0
  swap(_cached_size_, other->_cached_size_);
9316
0
}
9317
9318
0
::google::protobuf::Metadata GetNodeInstanceResponsePB::GetMetadata() const {
9319
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
9320
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
9321
0
}
9322
9323
9324
// ===================================================================
9325
9326
26.8k
void RunLeaderElectionRequestPB::InitAsDefaultInstance() {
9327
26.8k
  ::yb::consensus::_RunLeaderElectionRequestPB_default_instance_._instance.get_mutable()->committed_index_ = const_cast< ::yb::OpIdPB*>(
9328
26.8k
      ::yb::OpIdPB::internal_default_instance());
9329
26.8k
}
9330
0
void RunLeaderElectionRequestPB::clear_committed_index() {
9331
0
  if (committed_index_ != NULL) committed_index_->Clear();
9332
0
  clear_has_committed_index();
9333
0
}
9334
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9335
const int RunLeaderElectionRequestPB::kDestUuidFieldNumber;
9336
const int RunLeaderElectionRequestPB::kTabletIdFieldNumber;
9337
const int RunLeaderElectionRequestPB::kCommittedIndexFieldNumber;
9338
const int RunLeaderElectionRequestPB::kOriginatorUuidFieldNumber;
9339
const int RunLeaderElectionRequestPB::kSuppressVoteRequestFieldNumber;
9340
const int RunLeaderElectionRequestPB::kInitialElectionFieldNumber;
9341
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9342
9343
RunLeaderElectionRequestPB::RunLeaderElectionRequestPB()
9344
181k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9345
181k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9346
154k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsRunLeaderElectionRequestPB();
9347
154k
  }
9348
181k
  SharedCtor();
9349
  // @@protoc_insertion_point(constructor:yb.consensus.RunLeaderElectionRequestPB)
9350
181k
}
9351
RunLeaderElectionRequestPB::RunLeaderElectionRequestPB(const RunLeaderElectionRequestPB& from)
9352
  : ::google::protobuf::Message(),
9353
      _internal_metadata_(NULL),
9354
      _has_bits_(from._has_bits_),
9355
0
      _cached_size_(0) {
9356
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9357
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9358
0
  if (from.has_tablet_id()) {
9359
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
9360
0
  }
9361
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9362
0
  if (from.has_dest_uuid()) {
9363
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
9364
0
  }
9365
0
  originator_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9366
0
  if (from.has_originator_uuid()) {
9367
0
    originator_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.originator_uuid_);
9368
0
  }
9369
0
  if (from.has_committed_index()) {
9370
0
    committed_index_ = new ::yb::OpIdPB(*from.committed_index_);
9371
0
  } else {
9372
0
    committed_index_ = NULL;
9373
0
  }
9374
0
  ::memcpy(&suppress_vote_request_, &from.suppress_vote_request_,
9375
0
    static_cast<size_t>(reinterpret_cast<char*>(&initial_election_) -
9376
0
    reinterpret_cast<char*>(&suppress_vote_request_)) + sizeof(initial_election_));
9377
  // @@protoc_insertion_point(copy_constructor:yb.consensus.RunLeaderElectionRequestPB)
9378
0
}
9379
9380
181k
void RunLeaderElectionRequestPB::SharedCtor() {
9381
181k
  _cached_size_ = 0;
9382
181k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9383
181k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9384
181k
  originator_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9385
181k
  ::memset(&committed_index_, 0, static_cast<size_t>(
9386
181k
      reinterpret_cast<char*>(&initial_election_) -
9387
181k
      reinterpret_cast<char*>(&committed_index_)) + sizeof(initial_election_));
9388
181k
}
9389
9390
129k
RunLeaderElectionRequestPB::~RunLeaderElectionRequestPB() {
9391
  // @@protoc_insertion_point(destructor:yb.consensus.RunLeaderElectionRequestPB)
9392
129k
  SharedDtor();
9393
129k
}
9394
9395
129k
void RunLeaderElectionRequestPB::SharedDtor() {
9396
129k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9397
129k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9398
129k
  originator_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9399
129k
  if (this != internal_default_instance()) 
delete committed_index_129k
;
9400
129k
}
9401
9402
0
void RunLeaderElectionRequestPB::SetCachedSize(int size) const {
9403
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9404
0
  _cached_size_ = size;
9405
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9406
0
}
9407
0
const ::google::protobuf::Descriptor* RunLeaderElectionRequestPB::descriptor() {
9408
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
9409
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9410
0
}
9411
9412
0
const RunLeaderElectionRequestPB& RunLeaderElectionRequestPB::default_instance() {
9413
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsRunLeaderElectionRequestPB();
9414
0
  return *internal_default_instance();
9415
0
}
9416
9417
0
RunLeaderElectionRequestPB* RunLeaderElectionRequestPB::New(::google::protobuf::Arena* arena) const {
9418
0
  RunLeaderElectionRequestPB* n = new RunLeaderElectionRequestPB;
9419
0
  if (arena != NULL) {
9420
0
    arena->Own(n);
9421
0
  }
9422
0
  return n;
9423
0
}
9424
9425
96.3k
void RunLeaderElectionRequestPB::Clear() {
9426
// @@protoc_insertion_point(message_clear_start:yb.consensus.RunLeaderElectionRequestPB)
9427
96.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
9428
  // Prevent compiler warnings about cached_has_bits being unused
9429
96.3k
  (void) cached_has_bits;
9430
9431
96.3k
  cached_has_bits = _has_bits_[0];
9432
96.3k
  if (cached_has_bits & 15u) {
9433
0
    if (cached_has_bits & 0x00000001u) {
9434
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9435
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
9436
0
    }
9437
0
    if (cached_has_bits & 0x00000002u) {
9438
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9439
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
9440
0
    }
9441
0
    if (cached_has_bits & 0x00000004u) {
9442
0
      GOOGLE_DCHECK(!originator_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9443
0
      (*originator_uuid_.UnsafeRawStringPointer())->clear();
9444
0
    }
9445
0
    if (cached_has_bits & 0x00000008u) {
9446
0
      GOOGLE_DCHECK(committed_index_ != NULL);
9447
0
      committed_index_->Clear();
9448
0
    }
9449
0
  }
9450
96.3k
  ::memset(&suppress_vote_request_, 0, static_cast<size_t>(
9451
96.3k
      reinterpret_cast<char*>(&initial_election_) -
9452
96.3k
      reinterpret_cast<char*>(&suppress_vote_request_)) + sizeof(initial_election_));
9453
96.3k
  _has_bits_.Clear();
9454
96.3k
  _internal_metadata_.Clear();
9455
96.3k
}
9456
9457
bool RunLeaderElectionRequestPB::MergePartialFromCodedStream(
9458
96.2k
    ::google::protobuf::io::CodedInputStream* input) {
9459
288k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
9460
96.2k
  ::google::protobuf::uint32 tag;
9461
  // @@protoc_insertion_point(parse_start:yb.consensus.RunLeaderElectionRequestPB)
9462
384k
  for (;;) {
9463
384k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9464
384k
    tag = p.first;
9465
384k
    if (!p.second) 
goto handle_unusual96.2k
;
9466
288k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9467
      // required bytes tablet_id = 1;
9468
96.2k
      case 1: {
9469
96.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9470
96.2k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9471
96.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9472
96.2k
                input, this->mutable_tablet_id()));
9473
18.4E
        } else {
9474
18.4E
          goto handle_unusual;
9475
18.4E
        }
9476
96.2k
        break;
9477
96.2k
      }
9478
9479
      // optional bytes dest_uuid = 2;
9480
96.2k
      case 2: {
9481
96.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9482
96.2k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9483
96.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9484
96.2k
                input, this->mutable_dest_uuid()));
9485
18.4E
        } else {
9486
18.4E
          goto handle_unusual;
9487
18.4E
        }
9488
96.2k
        break;
9489
96.2k
      }
9490
9491
      // optional .yb.OpIdPB committed_index = 3;
9492
96.2k
      case 3: {
9493
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9494
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
9495
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9496
0
               input, mutable_committed_index()));
9497
0
        } else {
9498
0
          goto handle_unusual;
9499
0
        }
9500
0
        break;
9501
0
      }
9502
9503
      // optional bytes originator_uuid = 4;
9504
9.99k
      case 4: {
9505
9.99k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9506
9.99k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
9507
9.99k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9508
9.99k
                input, this->mutable_originator_uuid()));
9509
9.99k
        } else {
9510
0
          goto handle_unusual;
9511
0
        }
9512
9.99k
        break;
9513
9.99k
      }
9514
9515
      // optional bool suppress_vote_request = 5;
9516
9.99k
      case 5: {
9517
100
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9518
100
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
9519
100
          set_has_suppress_vote_request();
9520
100
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9521
100
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9522
100
                 input, &suppress_vote_request_)));
9523
100
        } else {
9524
0
          goto handle_unusual;
9525
0
        }
9526
100
        break;
9527
100
      }
9528
9529
      // optional bool initial_election = 6;
9530
86.2k
      case 6: {
9531
86.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9532
86.2k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
9533
86.2k
          set_has_initial_election();
9534
86.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9535
86.2k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9536
86.2k
                 input, &initial_election_)));
9537
18.4E
        } else {
9538
18.4E
          goto handle_unusual;
9539
18.4E
        }
9540
86.2k
        break;
9541
86.2k
      }
9542
9543
86.2k
      default: {
9544
96.2k
      handle_unusual:
9545
96.2k
        if (
tag == 096.2k
) {
9546
96.2k
          goto success;
9547
96.2k
        }
9548
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9549
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9550
18.4E
        break;
9551
18.4E
      }
9552
288k
    }
9553
288k
  }
9554
96.2k
success:
9555
  // @@protoc_insertion_point(parse_success:yb.consensus.RunLeaderElectionRequestPB)
9556
96.2k
  return true;
9557
0
failure:
9558
  // @@protoc_insertion_point(parse_failure:yb.consensus.RunLeaderElectionRequestPB)
9559
0
  return false;
9560
96.2k
#undef DO_
9561
96.2k
}
9562
9563
void RunLeaderElectionRequestPB::SerializeWithCachedSizes(
9564
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9565
  // @@protoc_insertion_point(serialize_start:yb.consensus.RunLeaderElectionRequestPB)
9566
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9567
0
  (void) cached_has_bits;
9568
9569
0
  cached_has_bits = _has_bits_[0];
9570
  // required bytes tablet_id = 1;
9571
0
  if (cached_has_bits & 0x00000001u) {
9572
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9573
0
      1, this->tablet_id(), output);
9574
0
  }
9575
9576
  // optional bytes dest_uuid = 2;
9577
0
  if (cached_has_bits & 0x00000002u) {
9578
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9579
0
      2, this->dest_uuid(), output);
9580
0
  }
9581
9582
  // optional .yb.OpIdPB committed_index = 3;
9583
0
  if (cached_has_bits & 0x00000008u) {
9584
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9585
0
      3, *this->committed_index_, output);
9586
0
  }
9587
9588
  // optional bytes originator_uuid = 4;
9589
0
  if (cached_has_bits & 0x00000004u) {
9590
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9591
0
      4, this->originator_uuid(), output);
9592
0
  }
9593
9594
  // optional bool suppress_vote_request = 5;
9595
0
  if (cached_has_bits & 0x00000010u) {
9596
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->suppress_vote_request(), output);
9597
0
  }
9598
9599
  // optional bool initial_election = 6;
9600
0
  if (cached_has_bits & 0x00000020u) {
9601
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->initial_election(), output);
9602
0
  }
9603
9604
0
  if (_internal_metadata_.have_unknown_fields()) {
9605
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9606
0
        _internal_metadata_.unknown_fields(), output);
9607
0
  }
9608
  // @@protoc_insertion_point(serialize_end:yb.consensus.RunLeaderElectionRequestPB)
9609
0
}
9610
9611
::google::protobuf::uint8* RunLeaderElectionRequestPB::InternalSerializeWithCachedSizesToArray(
9612
96.3k
    bool deterministic, ::google::protobuf::uint8* target) const {
9613
96.3k
  (void)deterministic; // Unused
9614
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.RunLeaderElectionRequestPB)
9615
96.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
9616
96.3k
  (void) cached_has_bits;
9617
9618
96.3k
  cached_has_bits = _has_bits_[0];
9619
  // required bytes tablet_id = 1;
9620
96.3k
  if (cached_has_bits & 0x00000001u) {
9621
96.2k
    target =
9622
96.2k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9623
96.2k
        1, this->tablet_id(), target);
9624
96.2k
  }
9625
9626
  // optional bytes dest_uuid = 2;
9627
96.3k
  if (cached_has_bits & 0x00000002u) {
9628
96.2k
    target =
9629
96.2k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9630
96.2k
        2, this->dest_uuid(), target);
9631
96.2k
  }
9632
9633
  // optional .yb.OpIdPB committed_index = 3;
9634
96.3k
  if (cached_has_bits & 0x00000008u) {
9635
0
    target = ::google::protobuf::internal::WireFormatLite::
9636
0
      InternalWriteMessageToArray(
9637
0
        3, *this->committed_index_, deterministic, target);
9638
0
  }
9639
9640
  // optional bytes originator_uuid = 4;
9641
96.3k
  if (cached_has_bits & 0x00000004u) {
9642
9.99k
    target =
9643
9.99k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9644
9.99k
        4, this->originator_uuid(), target);
9645
9.99k
  }
9646
9647
  // optional bool suppress_vote_request = 5;
9648
96.3k
  if (cached_has_bits & 0x00000010u) {
9649
100
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->suppress_vote_request(), target);
9650
100
  }
9651
9652
  // optional bool initial_election = 6;
9653
96.3k
  if (cached_has_bits & 0x00000020u) {
9654
86.1k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->initial_election(), target);
9655
86.1k
  }
9656
9657
96.3k
  if (_internal_metadata_.have_unknown_fields()) {
9658
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9659
0
        _internal_metadata_.unknown_fields(), target);
9660
0
  }
9661
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.RunLeaderElectionRequestPB)
9662
96.3k
  return target;
9663
96.3k
}
9664
9665
192k
size_t RunLeaderElectionRequestPB::ByteSizeLong() const {
9666
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.RunLeaderElectionRequestPB)
9667
192k
  size_t total_size = 0;
9668
9669
192k
  if (_internal_metadata_.have_unknown_fields()) {
9670
0
    total_size +=
9671
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9672
0
        _internal_metadata_.unknown_fields());
9673
0
  }
9674
  // required bytes tablet_id = 1;
9675
192k
  if (has_tablet_id()) {
9676
192k
    total_size += 1 +
9677
192k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
9678
192k
        this->tablet_id());
9679
192k
  }
9680
192k
  if (_has_bits_[0 / 32] & 62u) {
9681
    // optional bytes dest_uuid = 2;
9682
192k
    if (has_dest_uuid()) {
9683
192k
      total_size += 1 +
9684
192k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9685
192k
          this->dest_uuid());
9686
192k
    }
9687
9688
    // optional bytes originator_uuid = 4;
9689
192k
    if (has_originator_uuid()) {
9690
19.9k
      total_size += 1 +
9691
19.9k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9692
19.9k
          this->originator_uuid());
9693
19.9k
    }
9694
9695
    // optional .yb.OpIdPB committed_index = 3;
9696
192k
    if (has_committed_index()) {
9697
0
      total_size += 1 +
9698
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9699
0
          *this->committed_index_);
9700
0
    }
9701
9702
    // optional bool suppress_vote_request = 5;
9703
192k
    if (has_suppress_vote_request()) {
9704
200
      total_size += 1 + 1;
9705
200
    }
9706
9707
    // optional bool initial_election = 6;
9708
192k
    if (has_initial_election()) {
9709
172k
      total_size += 1 + 1;
9710
172k
    }
9711
9712
192k
  }
9713
192k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9714
192k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9715
192k
  _cached_size_ = cached_size;
9716
192k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9717
192k
  return total_size;
9718
192k
}
9719
9720
0
void RunLeaderElectionRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
9721
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.RunLeaderElectionRequestPB)
9722
0
  GOOGLE_DCHECK_NE(&from, this);
9723
0
  const RunLeaderElectionRequestPB* source =
9724
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RunLeaderElectionRequestPB>(
9725
0
          &from);
9726
0
  if (source == NULL) {
9727
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.RunLeaderElectionRequestPB)
9728
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9729
0
  } else {
9730
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.RunLeaderElectionRequestPB)
9731
0
    MergeFrom(*source);
9732
0
  }
9733
0
}
9734
9735
0
void RunLeaderElectionRequestPB::MergeFrom(const RunLeaderElectionRequestPB& from) {
9736
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.RunLeaderElectionRequestPB)
9737
0
  GOOGLE_DCHECK_NE(&from, this);
9738
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9739
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9740
0
  (void) cached_has_bits;
9741
9742
0
  cached_has_bits = from._has_bits_[0];
9743
0
  if (cached_has_bits & 63u) {
9744
0
    if (cached_has_bits & 0x00000001u) {
9745
0
      set_has_tablet_id();
9746
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
9747
0
    }
9748
0
    if (cached_has_bits & 0x00000002u) {
9749
0
      set_has_dest_uuid();
9750
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
9751
0
    }
9752
0
    if (cached_has_bits & 0x00000004u) {
9753
0
      set_has_originator_uuid();
9754
0
      originator_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.originator_uuid_);
9755
0
    }
9756
0
    if (cached_has_bits & 0x00000008u) {
9757
0
      mutable_committed_index()->::yb::OpIdPB::MergeFrom(from.committed_index());
9758
0
    }
9759
0
    if (cached_has_bits & 0x00000010u) {
9760
0
      suppress_vote_request_ = from.suppress_vote_request_;
9761
0
    }
9762
0
    if (cached_has_bits & 0x00000020u) {
9763
0
      initial_election_ = from.initial_election_;
9764
0
    }
9765
0
    _has_bits_[0] |= cached_has_bits;
9766
0
  }
9767
0
}
9768
9769
0
void RunLeaderElectionRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
9770
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.RunLeaderElectionRequestPB)
9771
0
  if (&from == this) return;
9772
0
  Clear();
9773
0
  MergeFrom(from);
9774
0
}
9775
9776
0
void RunLeaderElectionRequestPB::CopyFrom(const RunLeaderElectionRequestPB& from) {
9777
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.RunLeaderElectionRequestPB)
9778
0
  if (&from == this) return;
9779
0
  Clear();
9780
0
  MergeFrom(from);
9781
0
}
9782
9783
192k
bool RunLeaderElectionRequestPB::IsInitialized() const {
9784
192k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
9785
192k
  if (has_committed_index()) {
9786
0
    if (!this->committed_index_->IsInitialized()) return false;
9787
0
  }
9788
192k
  return true;
9789
192k
}
9790
9791
0
void RunLeaderElectionRequestPB::Swap(RunLeaderElectionRequestPB* other) {
9792
0
  if (other == this) return;
9793
0
  InternalSwap(other);
9794
0
}
9795
0
void RunLeaderElectionRequestPB::InternalSwap(RunLeaderElectionRequestPB* other) {
9796
0
  using std::swap;
9797
0
  tablet_id_.Swap(&other->tablet_id_);
9798
0
  dest_uuid_.Swap(&other->dest_uuid_);
9799
0
  originator_uuid_.Swap(&other->originator_uuid_);
9800
0
  swap(committed_index_, other->committed_index_);
9801
0
  swap(suppress_vote_request_, other->suppress_vote_request_);
9802
0
  swap(initial_election_, other->initial_election_);
9803
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9804
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9805
0
  swap(_cached_size_, other->_cached_size_);
9806
0
}
9807
9808
96.2k
::google::protobuf::Metadata RunLeaderElectionRequestPB::GetMetadata() const {
9809
96.2k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
9810
96.2k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
9811
96.2k
}
9812
9813
9814
// ===================================================================
9815
9816
26.8k
void RunLeaderElectionResponsePB::InitAsDefaultInstance() {
9817
26.8k
  ::yb::consensus::_RunLeaderElectionResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
9818
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
9819
26.8k
}
9820
0
void RunLeaderElectionResponsePB::clear_error() {
9821
0
  if (error_ != NULL) error_->Clear();
9822
0
  clear_has_error();
9823
0
}
9824
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9825
const int RunLeaderElectionResponsePB::kErrorFieldNumber;
9826
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9827
9828
RunLeaderElectionResponsePB::RunLeaderElectionResponsePB()
9829
181k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9830
181k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9831
154k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsRunLeaderElectionResponsePB();
9832
154k
  }
9833
181k
  SharedCtor();
9834
  // @@protoc_insertion_point(constructor:yb.consensus.RunLeaderElectionResponsePB)
9835
181k
}
9836
RunLeaderElectionResponsePB::RunLeaderElectionResponsePB(const RunLeaderElectionResponsePB& from)
9837
  : ::google::protobuf::Message(),
9838
      _internal_metadata_(NULL),
9839
      _has_bits_(from._has_bits_),
9840
0
      _cached_size_(0) {
9841
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9842
0
  if (from.has_error()) {
9843
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
9844
0
  } else {
9845
0
    error_ = NULL;
9846
0
  }
9847
  // @@protoc_insertion_point(copy_constructor:yb.consensus.RunLeaderElectionResponsePB)
9848
0
}
9849
9850
181k
void RunLeaderElectionResponsePB::SharedCtor() {
9851
181k
  _cached_size_ = 0;
9852
181k
  error_ = NULL;
9853
181k
}
9854
9855
129k
RunLeaderElectionResponsePB::~RunLeaderElectionResponsePB() {
9856
  // @@protoc_insertion_point(destructor:yb.consensus.RunLeaderElectionResponsePB)
9857
129k
  SharedDtor();
9858
129k
}
9859
9860
129k
void RunLeaderElectionResponsePB::SharedDtor() {
9861
129k
  if (this != internal_default_instance()) 
delete error_129k
;
9862
129k
}
9863
9864
0
void RunLeaderElectionResponsePB::SetCachedSize(int size) const {
9865
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9866
0
  _cached_size_ = size;
9867
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9868
0
}
9869
0
const ::google::protobuf::Descriptor* RunLeaderElectionResponsePB::descriptor() {
9870
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
9871
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9872
0
}
9873
9874
0
const RunLeaderElectionResponsePB& RunLeaderElectionResponsePB::default_instance() {
9875
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsRunLeaderElectionResponsePB();
9876
0
  return *internal_default_instance();
9877
0
}
9878
9879
0
RunLeaderElectionResponsePB* RunLeaderElectionResponsePB::New(::google::protobuf::Arena* arena) const {
9880
0
  RunLeaderElectionResponsePB* n = new RunLeaderElectionResponsePB;
9881
0
  if (arena != NULL) {
9882
0
    arena->Own(n);
9883
0
  }
9884
0
  return n;
9885
0
}
9886
9887
96.3k
void RunLeaderElectionResponsePB::Clear() {
9888
// @@protoc_insertion_point(message_clear_start:yb.consensus.RunLeaderElectionResponsePB)
9889
96.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
9890
  // Prevent compiler warnings about cached_has_bits being unused
9891
96.3k
  (void) cached_has_bits;
9892
9893
96.3k
  cached_has_bits = _has_bits_[0];
9894
96.3k
  if (cached_has_bits & 0x00000001u) {
9895
38.3k
    GOOGLE_DCHECK(error_ != NULL);
9896
38.3k
    error_->Clear();
9897
38.3k
  }
9898
96.3k
  _has_bits_.Clear();
9899
96.3k
  _internal_metadata_.Clear();
9900
96.3k
}
9901
9902
bool RunLeaderElectionResponsePB::MergePartialFromCodedStream(
9903
96.0k
    ::google::protobuf::io::CodedInputStream* input) {
9904
96.0k
#define DO_(EXPRESSION) 
if (38.3k
!GOOGLE_PREDICT_TRUE38.3k
(EXPRESSION))
goto failure0
9905
96.0k
  ::google::protobuf::uint32 tag;
9906
  // @@protoc_insertion_point(parse_start:yb.consensus.RunLeaderElectionResponsePB)
9907
134k
  for (;;) {
9908
134k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9909
134k
    tag = p.first;
9910
134k
    if (!p.second) 
goto handle_unusual96.1k
;
9911
38.3k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9912
      // optional .yb.tserver.TabletServerErrorPB error = 1;
9913
38.3k
      case 1: {
9914
38.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9915
38.3k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9916
38.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9917
38.3k
               input, mutable_error()));
9918
18.4E
        } else {
9919
18.4E
          goto handle_unusual;
9920
18.4E
        }
9921
38.3k
        break;
9922
38.3k
      }
9923
9924
38.3k
      default: {
9925
96.1k
      handle_unusual:
9926
96.1k
        if (
tag == 096.1k
) {
9927
96.1k
          goto success;
9928
96.1k
        }
9929
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9930
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9931
18.4E
        break;
9932
18.4E
      }
9933
38.3k
    }
9934
38.3k
  }
9935
18.4E
success:
9936
  // @@protoc_insertion_point(parse_success:yb.consensus.RunLeaderElectionResponsePB)
9937
96.2k
  return true;
9938
0
failure:
9939
  // @@protoc_insertion_point(parse_failure:yb.consensus.RunLeaderElectionResponsePB)
9940
0
  return false;
9941
96.0k
#undef DO_
9942
96.0k
}
9943
9944
void RunLeaderElectionResponsePB::SerializeWithCachedSizes(
9945
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9946
  // @@protoc_insertion_point(serialize_start:yb.consensus.RunLeaderElectionResponsePB)
9947
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9948
0
  (void) cached_has_bits;
9949
9950
0
  cached_has_bits = _has_bits_[0];
9951
  // optional .yb.tserver.TabletServerErrorPB error = 1;
9952
0
  if (cached_has_bits & 0x00000001u) {
9953
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9954
0
      1, *this->error_, output);
9955
0
  }
9956
9957
0
  if (_internal_metadata_.have_unknown_fields()) {
9958
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9959
0
        _internal_metadata_.unknown_fields(), output);
9960
0
  }
9961
  // @@protoc_insertion_point(serialize_end:yb.consensus.RunLeaderElectionResponsePB)
9962
0
}
9963
9964
::google::protobuf::uint8* RunLeaderElectionResponsePB::InternalSerializeWithCachedSizesToArray(
9965
96.2k
    bool deterministic, ::google::protobuf::uint8* target) const {
9966
96.2k
  (void)deterministic; // Unused
9967
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.RunLeaderElectionResponsePB)
9968
96.2k
  ::google::protobuf::uint32 cached_has_bits = 0;
9969
96.2k
  (void) cached_has_bits;
9970
9971
96.2k
  cached_has_bits = _has_bits_[0];
9972
  // optional .yb.tserver.TabletServerErrorPB error = 1;
9973
96.2k
  if (cached_has_bits & 0x00000001u) {
9974
38.1k
    target = ::google::protobuf::internal::WireFormatLite::
9975
38.1k
      InternalWriteMessageToArray(
9976
38.1k
        1, *this->error_, deterministic, target);
9977
38.1k
  }
9978
9979
96.2k
  if (_internal_metadata_.have_unknown_fields()) {
9980
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9981
0
        _internal_metadata_.unknown_fields(), target);
9982
0
  }
9983
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.RunLeaderElectionResponsePB)
9984
96.2k
  return target;
9985
96.2k
}
9986
9987
192k
size_t RunLeaderElectionResponsePB::ByteSizeLong() const {
9988
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.RunLeaderElectionResponsePB)
9989
192k
  size_t total_size = 0;
9990
9991
192k
  if (_internal_metadata_.have_unknown_fields()) {
9992
0
    total_size +=
9993
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9994
0
        _internal_metadata_.unknown_fields());
9995
0
  }
9996
  // optional .yb.tserver.TabletServerErrorPB error = 1;
9997
192k
  if (has_error()) {
9998
76.4k
    total_size += 1 +
9999
76.4k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
10000
76.4k
        *this->error_);
10001
76.4k
  }
10002
10003
192k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10004
192k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10005
192k
  _cached_size_ = cached_size;
10006
192k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10007
192k
  return total_size;
10008
192k
}
10009
10010
0
void RunLeaderElectionResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
10011
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.RunLeaderElectionResponsePB)
10012
0
  GOOGLE_DCHECK_NE(&from, this);
10013
0
  const RunLeaderElectionResponsePB* source =
10014
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RunLeaderElectionResponsePB>(
10015
0
          &from);
10016
0
  if (source == NULL) {
10017
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.RunLeaderElectionResponsePB)
10018
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10019
0
  } else {
10020
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.RunLeaderElectionResponsePB)
10021
0
    MergeFrom(*source);
10022
0
  }
10023
0
}
10024
10025
0
void RunLeaderElectionResponsePB::MergeFrom(const RunLeaderElectionResponsePB& from) {
10026
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.RunLeaderElectionResponsePB)
10027
0
  GOOGLE_DCHECK_NE(&from, this);
10028
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10029
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10030
0
  (void) cached_has_bits;
10031
10032
0
  if (from.has_error()) {
10033
0
    mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
10034
0
  }
10035
0
}
10036
10037
0
void RunLeaderElectionResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
10038
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.RunLeaderElectionResponsePB)
10039
0
  if (&from == this) return;
10040
0
  Clear();
10041
0
  MergeFrom(from);
10042
0
}
10043
10044
0
void RunLeaderElectionResponsePB::CopyFrom(const RunLeaderElectionResponsePB& from) {
10045
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.RunLeaderElectionResponsePB)
10046
0
  if (&from == this) return;
10047
0
  Clear();
10048
0
  MergeFrom(from);
10049
0
}
10050
10051
192k
bool RunLeaderElectionResponsePB::IsInitialized() const {
10052
192k
  if (has_error()) {
10053
76.5k
    if (!this->error_->IsInitialized()) 
return false0
;
10054
76.5k
  }
10055
192k
  return true;
10056
192k
}
10057
10058
0
void RunLeaderElectionResponsePB::Swap(RunLeaderElectionResponsePB* other) {
10059
0
  if (other == this) return;
10060
0
  InternalSwap(other);
10061
0
}
10062
0
void RunLeaderElectionResponsePB::InternalSwap(RunLeaderElectionResponsePB* other) {
10063
0
  using std::swap;
10064
0
  swap(error_, other->error_);
10065
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10066
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10067
0
  swap(_cached_size_, other->_cached_size_);
10068
0
}
10069
10070
0
::google::protobuf::Metadata RunLeaderElectionResponsePB::GetMetadata() const {
10071
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10072
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
10073
0
}
10074
10075
10076
// ===================================================================
10077
10078
26.8k
void LeaderElectionLostRequestPB::InitAsDefaultInstance() {
10079
26.8k
}
10080
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10081
const int LeaderElectionLostRequestPB::kDestUuidFieldNumber;
10082
const int LeaderElectionLostRequestPB::kTabletIdFieldNumber;
10083
const int LeaderElectionLostRequestPB::kElectionLostByUuidFieldNumber;
10084
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10085
10086
LeaderElectionLostRequestPB::LeaderElectionLostRequestPB()
10087
27.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10088
27.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10089
154
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderElectionLostRequestPB();
10090
154
  }
10091
27.0k
  SharedCtor();
10092
  // @@protoc_insertion_point(constructor:yb.consensus.LeaderElectionLostRequestPB)
10093
27.0k
}
10094
LeaderElectionLostRequestPB::LeaderElectionLostRequestPB(const LeaderElectionLostRequestPB& from)
10095
  : ::google::protobuf::Message(),
10096
      _internal_metadata_(NULL),
10097
      _has_bits_(from._has_bits_),
10098
0
      _cached_size_(0) {
10099
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10100
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10101
0
  if (from.has_dest_uuid()) {
10102
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
10103
0
  }
10104
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10105
0
  if (from.has_tablet_id()) {
10106
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
10107
0
  }
10108
0
  election_lost_by_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10109
0
  if (from.has_election_lost_by_uuid()) {
10110
0
    election_lost_by_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.election_lost_by_uuid_);
10111
0
  }
10112
  // @@protoc_insertion_point(copy_constructor:yb.consensus.LeaderElectionLostRequestPB)
10113
0
}
10114
10115
27.0k
void LeaderElectionLostRequestPB::SharedCtor() {
10116
27.0k
  _cached_size_ = 0;
10117
27.0k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10118
27.0k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10119
27.0k
  election_lost_by_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10120
27.0k
}
10121
10122
154
LeaderElectionLostRequestPB::~LeaderElectionLostRequestPB() {
10123
  // @@protoc_insertion_point(destructor:yb.consensus.LeaderElectionLostRequestPB)
10124
154
  SharedDtor();
10125
154
}
10126
10127
154
void LeaderElectionLostRequestPB::SharedDtor() {
10128
154
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10129
154
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10130
154
  election_lost_by_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10131
154
}
10132
10133
0
void LeaderElectionLostRequestPB::SetCachedSize(int size) const {
10134
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10135
0
  _cached_size_ = size;
10136
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10137
0
}
10138
0
const ::google::protobuf::Descriptor* LeaderElectionLostRequestPB::descriptor() {
10139
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10140
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10141
0
}
10142
10143
0
const LeaderElectionLostRequestPB& LeaderElectionLostRequestPB::default_instance() {
10144
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderElectionLostRequestPB();
10145
0
  return *internal_default_instance();
10146
0
}
10147
10148
0
LeaderElectionLostRequestPB* LeaderElectionLostRequestPB::New(::google::protobuf::Arena* arena) const {
10149
0
  LeaderElectionLostRequestPB* n = new LeaderElectionLostRequestPB;
10150
0
  if (arena != NULL) {
10151
0
    arena->Own(n);
10152
0
  }
10153
0
  return n;
10154
0
}
10155
10156
77
void LeaderElectionLostRequestPB::Clear() {
10157
// @@protoc_insertion_point(message_clear_start:yb.consensus.LeaderElectionLostRequestPB)
10158
77
  ::google::protobuf::uint32 cached_has_bits = 0;
10159
  // Prevent compiler warnings about cached_has_bits being unused
10160
77
  (void) cached_has_bits;
10161
10162
77
  cached_has_bits = _has_bits_[0];
10163
77
  if (cached_has_bits & 7u) {
10164
0
    if (cached_has_bits & 0x00000001u) {
10165
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10166
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
10167
0
    }
10168
0
    if (cached_has_bits & 0x00000002u) {
10169
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10170
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
10171
0
    }
10172
0
    if (cached_has_bits & 0x00000004u) {
10173
0
      GOOGLE_DCHECK(!election_lost_by_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10174
0
      (*election_lost_by_uuid_.UnsafeRawStringPointer())->clear();
10175
0
    }
10176
0
  }
10177
77
  _has_bits_.Clear();
10178
77
  _internal_metadata_.Clear();
10179
77
}
10180
10181
bool LeaderElectionLostRequestPB::MergePartialFromCodedStream(
10182
77
    ::google::protobuf::io::CodedInputStream* input) {
10183
231
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
10184
77
  ::google::protobuf::uint32 tag;
10185
  // @@protoc_insertion_point(parse_start:yb.consensus.LeaderElectionLostRequestPB)
10186
308
  for (;;) {
10187
308
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10188
308
    tag = p.first;
10189
308
    if (!p.second) 
goto handle_unusual77
;
10190
231
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10191
      // optional bytes dest_uuid = 1;
10192
77
      case 1: {
10193
77
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10194
77
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10195
77
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10196
77
                input, this->mutable_dest_uuid()));
10197
77
        } else {
10198
0
          goto handle_unusual;
10199
0
        }
10200
77
        break;
10201
77
      }
10202
10203
      // optional bytes tablet_id = 2;
10204
77
      case 2: {
10205
77
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10206
77
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10207
77
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10208
77
                input, this->mutable_tablet_id()));
10209
77
        } else {
10210
0
          goto handle_unusual;
10211
0
        }
10212
77
        break;
10213
77
      }
10214
10215
      // optional bytes election_lost_by_uuid = 3;
10216
77
      case 3: {
10217
77
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10218
77
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10219
77
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10220
77
                input, this->mutable_election_lost_by_uuid()));
10221
77
        } else {
10222
0
          goto handle_unusual;
10223
0
        }
10224
77
        break;
10225
77
      }
10226
10227
77
      default: {
10228
77
      handle_unusual:
10229
77
        if (tag == 0) {
10230
77
          goto success;
10231
77
        }
10232
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10233
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10234
0
        break;
10235
0
      }
10236
231
    }
10237
231
  }
10238
77
success:
10239
  // @@protoc_insertion_point(parse_success:yb.consensus.LeaderElectionLostRequestPB)
10240
77
  return true;
10241
0
failure:
10242
  // @@protoc_insertion_point(parse_failure:yb.consensus.LeaderElectionLostRequestPB)
10243
0
  return false;
10244
77
#undef DO_
10245
77
}
10246
10247
void LeaderElectionLostRequestPB::SerializeWithCachedSizes(
10248
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10249
  // @@protoc_insertion_point(serialize_start:yb.consensus.LeaderElectionLostRequestPB)
10250
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10251
0
  (void) cached_has_bits;
10252
10253
0
  cached_has_bits = _has_bits_[0];
10254
  // optional bytes dest_uuid = 1;
10255
0
  if (cached_has_bits & 0x00000001u) {
10256
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10257
0
      1, this->dest_uuid(), output);
10258
0
  }
10259
10260
  // optional bytes tablet_id = 2;
10261
0
  if (cached_has_bits & 0x00000002u) {
10262
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10263
0
      2, this->tablet_id(), output);
10264
0
  }
10265
10266
  // optional bytes election_lost_by_uuid = 3;
10267
0
  if (cached_has_bits & 0x00000004u) {
10268
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10269
0
      3, this->election_lost_by_uuid(), output);
10270
0
  }
10271
10272
0
  if (_internal_metadata_.have_unknown_fields()) {
10273
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10274
0
        _internal_metadata_.unknown_fields(), output);
10275
0
  }
10276
  // @@protoc_insertion_point(serialize_end:yb.consensus.LeaderElectionLostRequestPB)
10277
0
}
10278
10279
::google::protobuf::uint8* LeaderElectionLostRequestPB::InternalSerializeWithCachedSizesToArray(
10280
77
    bool deterministic, ::google::protobuf::uint8* target) const {
10281
77
  (void)deterministic; // Unused
10282
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.LeaderElectionLostRequestPB)
10283
77
  ::google::protobuf::uint32 cached_has_bits = 0;
10284
77
  (void) cached_has_bits;
10285
10286
77
  cached_has_bits = _has_bits_[0];
10287
  // optional bytes dest_uuid = 1;
10288
77
  if (cached_has_bits & 0x00000001u) {
10289
77
    target =
10290
77
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10291
77
        1, this->dest_uuid(), target);
10292
77
  }
10293
10294
  // optional bytes tablet_id = 2;
10295
77
  if (cached_has_bits & 0x00000002u) {
10296
77
    target =
10297
77
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10298
77
        2, this->tablet_id(), target);
10299
77
  }
10300
10301
  // optional bytes election_lost_by_uuid = 3;
10302
77
  if (cached_has_bits & 0x00000004u) {
10303
77
    target =
10304
77
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10305
77
        3, this->election_lost_by_uuid(), target);
10306
77
  }
10307
10308
77
  if (_internal_metadata_.have_unknown_fields()) {
10309
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10310
0
        _internal_metadata_.unknown_fields(), target);
10311
0
  }
10312
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.LeaderElectionLostRequestPB)
10313
77
  return target;
10314
77
}
10315
10316
154
size_t LeaderElectionLostRequestPB::ByteSizeLong() const {
10317
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.LeaderElectionLostRequestPB)
10318
154
  size_t total_size = 0;
10319
10320
154
  if (_internal_metadata_.have_unknown_fields()) {
10321
0
    total_size +=
10322
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10323
0
        _internal_metadata_.unknown_fields());
10324
0
  }
10325
154
  if (_has_bits_[0 / 32] & 7u) {
10326
    // optional bytes dest_uuid = 1;
10327
154
    if (has_dest_uuid()) {
10328
154
      total_size += 1 +
10329
154
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10330
154
          this->dest_uuid());
10331
154
    }
10332
10333
    // optional bytes tablet_id = 2;
10334
154
    if (has_tablet_id()) {
10335
154
      total_size += 1 +
10336
154
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10337
154
          this->tablet_id());
10338
154
    }
10339
10340
    // optional bytes election_lost_by_uuid = 3;
10341
154
    if (has_election_lost_by_uuid()) {
10342
154
      total_size += 1 +
10343
154
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10344
154
          this->election_lost_by_uuid());
10345
154
    }
10346
10347
154
  }
10348
154
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10349
154
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10350
154
  _cached_size_ = cached_size;
10351
154
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10352
154
  return total_size;
10353
154
}
10354
10355
0
void LeaderElectionLostRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
10356
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.LeaderElectionLostRequestPB)
10357
0
  GOOGLE_DCHECK_NE(&from, this);
10358
0
  const LeaderElectionLostRequestPB* source =
10359
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LeaderElectionLostRequestPB>(
10360
0
          &from);
10361
0
  if (source == NULL) {
10362
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.LeaderElectionLostRequestPB)
10363
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10364
0
  } else {
10365
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.LeaderElectionLostRequestPB)
10366
0
    MergeFrom(*source);
10367
0
  }
10368
0
}
10369
10370
0
void LeaderElectionLostRequestPB::MergeFrom(const LeaderElectionLostRequestPB& from) {
10371
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.LeaderElectionLostRequestPB)
10372
0
  GOOGLE_DCHECK_NE(&from, this);
10373
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10374
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10375
0
  (void) cached_has_bits;
10376
10377
0
  cached_has_bits = from._has_bits_[0];
10378
0
  if (cached_has_bits & 7u) {
10379
0
    if (cached_has_bits & 0x00000001u) {
10380
0
      set_has_dest_uuid();
10381
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
10382
0
    }
10383
0
    if (cached_has_bits & 0x00000002u) {
10384
0
      set_has_tablet_id();
10385
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
10386
0
    }
10387
0
    if (cached_has_bits & 0x00000004u) {
10388
0
      set_has_election_lost_by_uuid();
10389
0
      election_lost_by_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.election_lost_by_uuid_);
10390
0
    }
10391
0
  }
10392
0
}
10393
10394
0
void LeaderElectionLostRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
10395
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.LeaderElectionLostRequestPB)
10396
0
  if (&from == this) return;
10397
0
  Clear();
10398
0
  MergeFrom(from);
10399
0
}
10400
10401
0
void LeaderElectionLostRequestPB::CopyFrom(const LeaderElectionLostRequestPB& from) {
10402
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.LeaderElectionLostRequestPB)
10403
0
  if (&from == this) return;
10404
0
  Clear();
10405
0
  MergeFrom(from);
10406
0
}
10407
10408
154
bool LeaderElectionLostRequestPB::IsInitialized() const {
10409
154
  return true;
10410
154
}
10411
10412
0
void LeaderElectionLostRequestPB::Swap(LeaderElectionLostRequestPB* other) {
10413
0
  if (other == this) return;
10414
0
  InternalSwap(other);
10415
0
}
10416
0
void LeaderElectionLostRequestPB::InternalSwap(LeaderElectionLostRequestPB* other) {
10417
0
  using std::swap;
10418
0
  dest_uuid_.Swap(&other->dest_uuid_);
10419
0
  tablet_id_.Swap(&other->tablet_id_);
10420
0
  election_lost_by_uuid_.Swap(&other->election_lost_by_uuid_);
10421
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10422
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10423
0
  swap(_cached_size_, other->_cached_size_);
10424
0
}
10425
10426
385
::google::protobuf::Metadata LeaderElectionLostRequestPB::GetMetadata() const {
10427
385
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10428
385
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
10429
385
}
10430
10431
10432
// ===================================================================
10433
10434
26.8k
void LeaderElectionLostResponsePB::InitAsDefaultInstance() {
10435
26.8k
  ::yb::consensus::_LeaderElectionLostResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
10436
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
10437
26.8k
}
10438
0
void LeaderElectionLostResponsePB::clear_error() {
10439
0
  if (error_ != NULL) error_->Clear();
10440
0
  clear_has_error();
10441
0
}
10442
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10443
const int LeaderElectionLostResponsePB::kErrorFieldNumber;
10444
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10445
10446
LeaderElectionLostResponsePB::LeaderElectionLostResponsePB()
10447
27.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10448
27.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10449
154
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderElectionLostResponsePB();
10450
154
  }
10451
27.0k
  SharedCtor();
10452
  // @@protoc_insertion_point(constructor:yb.consensus.LeaderElectionLostResponsePB)
10453
27.0k
}
10454
LeaderElectionLostResponsePB::LeaderElectionLostResponsePB(const LeaderElectionLostResponsePB& from)
10455
  : ::google::protobuf::Message(),
10456
      _internal_metadata_(NULL),
10457
      _has_bits_(from._has_bits_),
10458
0
      _cached_size_(0) {
10459
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10460
0
  if (from.has_error()) {
10461
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
10462
0
  } else {
10463
0
    error_ = NULL;
10464
0
  }
10465
  // @@protoc_insertion_point(copy_constructor:yb.consensus.LeaderElectionLostResponsePB)
10466
0
}
10467
10468
27.0k
void LeaderElectionLostResponsePB::SharedCtor() {
10469
27.0k
  _cached_size_ = 0;
10470
27.0k
  error_ = NULL;
10471
27.0k
}
10472
10473
154
LeaderElectionLostResponsePB::~LeaderElectionLostResponsePB() {
10474
  // @@protoc_insertion_point(destructor:yb.consensus.LeaderElectionLostResponsePB)
10475
154
  SharedDtor();
10476
154
}
10477
10478
154
void LeaderElectionLostResponsePB::SharedDtor() {
10479
154
  if (this != internal_default_instance()) delete error_;
10480
154
}
10481
10482
0
void LeaderElectionLostResponsePB::SetCachedSize(int size) const {
10483
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10484
0
  _cached_size_ = size;
10485
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10486
0
}
10487
0
const ::google::protobuf::Descriptor* LeaderElectionLostResponsePB::descriptor() {
10488
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10489
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10490
0
}
10491
10492
0
const LeaderElectionLostResponsePB& LeaderElectionLostResponsePB::default_instance() {
10493
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderElectionLostResponsePB();
10494
0
  return *internal_default_instance();
10495
0
}
10496
10497
0
LeaderElectionLostResponsePB* LeaderElectionLostResponsePB::New(::google::protobuf::Arena* arena) const {
10498
0
  LeaderElectionLostResponsePB* n = new LeaderElectionLostResponsePB;
10499
0
  if (arena != NULL) {
10500
0
    arena->Own(n);
10501
0
  }
10502
0
  return n;
10503
0
}
10504
10505
77
void LeaderElectionLostResponsePB::Clear() {
10506
// @@protoc_insertion_point(message_clear_start:yb.consensus.LeaderElectionLostResponsePB)
10507
77
  ::google::protobuf::uint32 cached_has_bits = 0;
10508
  // Prevent compiler warnings about cached_has_bits being unused
10509
77
  (void) cached_has_bits;
10510
10511
77
  cached_has_bits = _has_bits_[0];
10512
77
  if (cached_has_bits & 0x00000001u) {
10513
0
    GOOGLE_DCHECK(error_ != NULL);
10514
0
    error_->Clear();
10515
0
  }
10516
77
  _has_bits_.Clear();
10517
77
  _internal_metadata_.Clear();
10518
77
}
10519
10520
bool LeaderElectionLostResponsePB::MergePartialFromCodedStream(
10521
77
    ::google::protobuf::io::CodedInputStream* input) {
10522
77
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
10523
77
  ::google::protobuf::uint32 tag;
10524
  // @@protoc_insertion_point(parse_start:yb.consensus.LeaderElectionLostResponsePB)
10525
77
  for (;;) {
10526
77
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10527
77
    tag = p.first;
10528
77
    if (!p.second) goto handle_unusual;
10529
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10530
      // optional .yb.tserver.TabletServerErrorPB error = 1;
10531
0
      case 1: {
10532
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10533
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10534
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10535
0
               input, mutable_error()));
10536
0
        } else {
10537
0
          goto handle_unusual;
10538
0
        }
10539
0
        break;
10540
0
      }
10541
10542
0
      default: {
10543
77
      handle_unusual:
10544
77
        if (tag == 0) {
10545
77
          goto success;
10546
77
        }
10547
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10548
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10549
0
        break;
10550
0
      }
10551
0
    }
10552
0
  }
10553
77
success:
10554
  // @@protoc_insertion_point(parse_success:yb.consensus.LeaderElectionLostResponsePB)
10555
77
  return true;
10556
0
failure:
10557
  // @@protoc_insertion_point(parse_failure:yb.consensus.LeaderElectionLostResponsePB)
10558
0
  return false;
10559
77
#undef DO_
10560
77
}
10561
10562
void LeaderElectionLostResponsePB::SerializeWithCachedSizes(
10563
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10564
  // @@protoc_insertion_point(serialize_start:yb.consensus.LeaderElectionLostResponsePB)
10565
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10566
0
  (void) cached_has_bits;
10567
10568
0
  cached_has_bits = _has_bits_[0];
10569
  // optional .yb.tserver.TabletServerErrorPB error = 1;
10570
0
  if (cached_has_bits & 0x00000001u) {
10571
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10572
0
      1, *this->error_, output);
10573
0
  }
10574
10575
0
  if (_internal_metadata_.have_unknown_fields()) {
10576
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10577
0
        _internal_metadata_.unknown_fields(), output);
10578
0
  }
10579
  // @@protoc_insertion_point(serialize_end:yb.consensus.LeaderElectionLostResponsePB)
10580
0
}
10581
10582
::google::protobuf::uint8* LeaderElectionLostResponsePB::InternalSerializeWithCachedSizesToArray(
10583
77
    bool deterministic, ::google::protobuf::uint8* target) const {
10584
77
  (void)deterministic; // Unused
10585
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.LeaderElectionLostResponsePB)
10586
77
  ::google::protobuf::uint32 cached_has_bits = 0;
10587
77
  (void) cached_has_bits;
10588
10589
77
  cached_has_bits = _has_bits_[0];
10590
  // optional .yb.tserver.TabletServerErrorPB error = 1;
10591
77
  if (cached_has_bits & 0x00000001u) {
10592
0
    target = ::google::protobuf::internal::WireFormatLite::
10593
0
      InternalWriteMessageToArray(
10594
0
        1, *this->error_, deterministic, target);
10595
0
  }
10596
10597
77
  if (_internal_metadata_.have_unknown_fields()) {
10598
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10599
0
        _internal_metadata_.unknown_fields(), target);
10600
0
  }
10601
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.LeaderElectionLostResponsePB)
10602
77
  return target;
10603
77
}
10604
10605
154
size_t LeaderElectionLostResponsePB::ByteSizeLong() const {
10606
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.LeaderElectionLostResponsePB)
10607
154
  size_t total_size = 0;
10608
10609
154
  if (_internal_metadata_.have_unknown_fields()) {
10610
0
    total_size +=
10611
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10612
0
        _internal_metadata_.unknown_fields());
10613
0
  }
10614
  // optional .yb.tserver.TabletServerErrorPB error = 1;
10615
154
  if (has_error()) {
10616
0
    total_size += 1 +
10617
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
10618
0
        *this->error_);
10619
0
  }
10620
10621
154
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10622
154
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10623
154
  _cached_size_ = cached_size;
10624
154
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10625
154
  return total_size;
10626
154
}
10627
10628
0
void LeaderElectionLostResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
10629
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.LeaderElectionLostResponsePB)
10630
0
  GOOGLE_DCHECK_NE(&from, this);
10631
0
  const LeaderElectionLostResponsePB* source =
10632
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LeaderElectionLostResponsePB>(
10633
0
          &from);
10634
0
  if (source == NULL) {
10635
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.LeaderElectionLostResponsePB)
10636
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10637
0
  } else {
10638
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.LeaderElectionLostResponsePB)
10639
0
    MergeFrom(*source);
10640
0
  }
10641
0
}
10642
10643
0
void LeaderElectionLostResponsePB::MergeFrom(const LeaderElectionLostResponsePB& from) {
10644
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.LeaderElectionLostResponsePB)
10645
0
  GOOGLE_DCHECK_NE(&from, this);
10646
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10647
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10648
0
  (void) cached_has_bits;
10649
10650
0
  if (from.has_error()) {
10651
0
    mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
10652
0
  }
10653
0
}
10654
10655
0
void LeaderElectionLostResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
10656
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.LeaderElectionLostResponsePB)
10657
0
  if (&from == this) return;
10658
0
  Clear();
10659
0
  MergeFrom(from);
10660
0
}
10661
10662
0
void LeaderElectionLostResponsePB::CopyFrom(const LeaderElectionLostResponsePB& from) {
10663
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.LeaderElectionLostResponsePB)
10664
0
  if (&from == this) return;
10665
0
  Clear();
10666
0
  MergeFrom(from);
10667
0
}
10668
10669
154
bool LeaderElectionLostResponsePB::IsInitialized() const {
10670
154
  if (has_error()) {
10671
0
    if (!this->error_->IsInitialized()) return false;
10672
0
  }
10673
154
  return true;
10674
154
}
10675
10676
0
void LeaderElectionLostResponsePB::Swap(LeaderElectionLostResponsePB* other) {
10677
0
  if (other == this) return;
10678
0
  InternalSwap(other);
10679
0
}
10680
0
void LeaderElectionLostResponsePB::InternalSwap(LeaderElectionLostResponsePB* other) {
10681
0
  using std::swap;
10682
0
  swap(error_, other->error_);
10683
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10684
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10685
0
  swap(_cached_size_, other->_cached_size_);
10686
0
}
10687
10688
0
::google::protobuf::Metadata LeaderElectionLostResponsePB::GetMetadata() const {
10689
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10690
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
10691
0
}
10692
10693
10694
// ===================================================================
10695
10696
26.8k
void LeaderStepDownRequestPB::InitAsDefaultInstance() {
10697
26.8k
}
10698
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10699
const int LeaderStepDownRequestPB::kDestUuidFieldNumber;
10700
const int LeaderStepDownRequestPB::kTabletIdFieldNumber;
10701
const int LeaderStepDownRequestPB::kNewLeaderUuidFieldNumber;
10702
const int LeaderStepDownRequestPB::kForceStepDownFieldNumber;
10703
const int LeaderStepDownRequestPB::kDisableGracefulTransitionFieldNumber;
10704
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10705
10706
LeaderStepDownRequestPB::LeaderStepDownRequestPB()
10707
135k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10708
135k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10709
108k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderStepDownRequestPB();
10710
108k
  }
10711
135k
  SharedCtor();
10712
  // @@protoc_insertion_point(constructor:yb.consensus.LeaderStepDownRequestPB)
10713
135k
}
10714
LeaderStepDownRequestPB::LeaderStepDownRequestPB(const LeaderStepDownRequestPB& from)
10715
  : ::google::protobuf::Message(),
10716
      _internal_metadata_(NULL),
10717
      _has_bits_(from._has_bits_),
10718
0
      _cached_size_(0) {
10719
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10720
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10721
0
  if (from.has_tablet_id()) {
10722
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
10723
0
  }
10724
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10725
0
  if (from.has_dest_uuid()) {
10726
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
10727
0
  }
10728
0
  new_leader_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10729
0
  if (from.has_new_leader_uuid()) {
10730
0
    new_leader_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_leader_uuid_);
10731
0
  }
10732
0
  ::memcpy(&force_step_down_, &from.force_step_down_,
10733
0
    static_cast<size_t>(reinterpret_cast<char*>(&disable_graceful_transition_) -
10734
0
    reinterpret_cast<char*>(&force_step_down_)) + sizeof(disable_graceful_transition_));
10735
  // @@protoc_insertion_point(copy_constructor:yb.consensus.LeaderStepDownRequestPB)
10736
0
}
10737
10738
135k
void LeaderStepDownRequestPB::SharedCtor() {
10739
135k
  _cached_size_ = 0;
10740
135k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10741
135k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10742
135k
  new_leader_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10743
135k
  ::memset(&force_step_down_, 0, static_cast<size_t>(
10744
135k
      reinterpret_cast<char*>(&disable_graceful_transition_) -
10745
135k
      reinterpret_cast<char*>(&force_step_down_)) + sizeof(disable_graceful_transition_));
10746
135k
}
10747
10748
103k
LeaderStepDownRequestPB::~LeaderStepDownRequestPB() {
10749
  // @@protoc_insertion_point(destructor:yb.consensus.LeaderStepDownRequestPB)
10750
103k
  SharedDtor();
10751
103k
}
10752
10753
103k
void LeaderStepDownRequestPB::SharedDtor() {
10754
103k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10755
103k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10756
103k
  new_leader_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10757
103k
}
10758
10759
0
void LeaderStepDownRequestPB::SetCachedSize(int size) const {
10760
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10761
0
  _cached_size_ = size;
10762
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10763
0
}
10764
0
const ::google::protobuf::Descriptor* LeaderStepDownRequestPB::descriptor() {
10765
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
10766
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10767
0
}
10768
10769
0
const LeaderStepDownRequestPB& LeaderStepDownRequestPB::default_instance() {
10770
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderStepDownRequestPB();
10771
0
  return *internal_default_instance();
10772
0
}
10773
10774
0
LeaderStepDownRequestPB* LeaderStepDownRequestPB::New(::google::protobuf::Arena* arena) const {
10775
0
  LeaderStepDownRequestPB* n = new LeaderStepDownRequestPB;
10776
0
  if (arena != NULL) {
10777
0
    arena->Own(n);
10778
0
  }
10779
0
  return n;
10780
0
}
10781
10782
54.1k
void LeaderStepDownRequestPB::Clear() {
10783
// @@protoc_insertion_point(message_clear_start:yb.consensus.LeaderStepDownRequestPB)
10784
54.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
10785
  // Prevent compiler warnings about cached_has_bits being unused
10786
54.1k
  (void) cached_has_bits;
10787
10788
54.1k
  cached_has_bits = _has_bits_[0];
10789
54.1k
  if (cached_has_bits & 7u) {
10790
0
    if (cached_has_bits & 0x00000001u) {
10791
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10792
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
10793
0
    }
10794
0
    if (cached_has_bits & 0x00000002u) {
10795
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10796
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
10797
0
    }
10798
0
    if (cached_has_bits & 0x00000004u) {
10799
0
      GOOGLE_DCHECK(!new_leader_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10800
0
      (*new_leader_uuid_.UnsafeRawStringPointer())->clear();
10801
0
    }
10802
0
  }
10803
54.1k
  ::memset(&force_step_down_, 0, static_cast<size_t>(
10804
54.1k
      reinterpret_cast<char*>(&disable_graceful_transition_) -
10805
54.1k
      reinterpret_cast<char*>(&force_step_down_)) + sizeof(disable_graceful_transition_));
10806
54.1k
  _has_bits_.Clear();
10807
54.1k
  _internal_metadata_.Clear();
10808
54.1k
}
10809
10810
bool LeaderStepDownRequestPB::MergePartialFromCodedStream(
10811
54.1k
    ::google::protobuf::io::CodedInputStream* input) {
10812
161k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
10813
54.1k
  ::google::protobuf::uint32 tag;
10814
  // @@protoc_insertion_point(parse_start:yb.consensus.LeaderStepDownRequestPB)
10815
215k
  for (;;) {
10816
215k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10817
215k
    tag = p.first;
10818
215k
    if (!p.second) 
goto handle_unusual54.1k
;
10819
161k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10820
      // required bytes tablet_id = 1;
10821
54.1k
      case 1: {
10822
54.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10823
54.1k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10824
54.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10825
54.1k
                input, this->mutable_tablet_id()));
10826
18.4E
        } else {
10827
18.4E
          goto handle_unusual;
10828
18.4E
        }
10829
54.1k
        break;
10830
54.1k
      }
10831
10832
      // optional bytes dest_uuid = 2;
10833
54.1k
      case 2: {
10834
54.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10835
54.1k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10836
54.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10837
54.1k
                input, this->mutable_dest_uuid()));
10838
54.1k
        } else {
10839
1
          goto handle_unusual;
10840
1
        }
10841
54.1k
        break;
10842
54.1k
      }
10843
10844
      // optional bytes new_leader_uuid = 3;
10845
54.1k
      case 3: {
10846
53.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10847
53.2k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10848
53.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10849
53.2k
                input, this->mutable_new_leader_uuid()));
10850
53.2k
        } else {
10851
0
          goto handle_unusual;
10852
0
        }
10853
53.2k
        break;
10854
53.2k
      }
10855
10856
      // optional bool force_step_down = 4;
10857
53.2k
      case 4: {
10858
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10859
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
10860
0
          set_has_force_step_down();
10861
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10862
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10863
0
                 input, &force_step_down_)));
10864
0
        } else {
10865
0
          goto handle_unusual;
10866
0
        }
10867
0
        break;
10868
0
      }
10869
10870
      // optional bool disable_graceful_transition = 5;
10871
1
      case 5: {
10872
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10873
1
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
10874
1
          set_has_disable_graceful_transition();
10875
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10876
1
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
10877
1
                 input, &disable_graceful_transition_)));
10878
1
        } else {
10879
0
          goto handle_unusual;
10880
0
        }
10881
1
        break;
10882
1
      }
10883
10884
1
      default: {
10885
54.1k
      handle_unusual:
10886
54.1k
        if (tag == 0) {
10887
54.1k
          goto success;
10888
54.1k
        }
10889
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10890
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10891
0
        break;
10892
0
      }
10893
161k
    }
10894
161k
  }
10895
54.1k
success:
10896
  // @@protoc_insertion_point(parse_success:yb.consensus.LeaderStepDownRequestPB)
10897
54.1k
  return true;
10898
0
failure:
10899
  // @@protoc_insertion_point(parse_failure:yb.consensus.LeaderStepDownRequestPB)
10900
0
  return false;
10901
54.1k
#undef DO_
10902
54.1k
}
10903
10904
void LeaderStepDownRequestPB::SerializeWithCachedSizes(
10905
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10906
  // @@protoc_insertion_point(serialize_start:yb.consensus.LeaderStepDownRequestPB)
10907
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10908
0
  (void) cached_has_bits;
10909
10910
0
  cached_has_bits = _has_bits_[0];
10911
  // required bytes tablet_id = 1;
10912
0
  if (cached_has_bits & 0x00000001u) {
10913
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10914
0
      1, this->tablet_id(), output);
10915
0
  }
10916
10917
  // optional bytes dest_uuid = 2;
10918
0
  if (cached_has_bits & 0x00000002u) {
10919
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10920
0
      2, this->dest_uuid(), output);
10921
0
  }
10922
10923
  // optional bytes new_leader_uuid = 3;
10924
0
  if (cached_has_bits & 0x00000004u) {
10925
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10926
0
      3, this->new_leader_uuid(), output);
10927
0
  }
10928
10929
  // optional bool force_step_down = 4;
10930
0
  if (cached_has_bits & 0x00000008u) {
10931
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->force_step_down(), output);
10932
0
  }
10933
10934
  // optional bool disable_graceful_transition = 5;
10935
0
  if (cached_has_bits & 0x00000010u) {
10936
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->disable_graceful_transition(), output);
10937
0
  }
10938
10939
0
  if (_internal_metadata_.have_unknown_fields()) {
10940
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10941
0
        _internal_metadata_.unknown_fields(), output);
10942
0
  }
10943
  // @@protoc_insertion_point(serialize_end:yb.consensus.LeaderStepDownRequestPB)
10944
0
}
10945
10946
::google::protobuf::uint8* LeaderStepDownRequestPB::InternalSerializeWithCachedSizesToArray(
10947
54.1k
    bool deterministic, ::google::protobuf::uint8* target) const {
10948
54.1k
  (void)deterministic; // Unused
10949
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.LeaderStepDownRequestPB)
10950
54.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
10951
54.1k
  (void) cached_has_bits;
10952
10953
54.1k
  cached_has_bits = _has_bits_[0];
10954
  // required bytes tablet_id = 1;
10955
54.1k
  if (cached_has_bits & 0x00000001u) {
10956
54.1k
    target =
10957
54.1k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10958
54.1k
        1, this->tablet_id(), target);
10959
54.1k
  }
10960
10961
  // optional bytes dest_uuid = 2;
10962
54.1k
  if (cached_has_bits & 0x00000002u) {
10963
54.0k
    target =
10964
54.0k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10965
54.0k
        2, this->dest_uuid(), target);
10966
54.0k
  }
10967
10968
  // optional bytes new_leader_uuid = 3;
10969
54.1k
  if (cached_has_bits & 0x00000004u) {
10970
53.2k
    target =
10971
53.2k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10972
53.2k
        3, this->new_leader_uuid(), target);
10973
53.2k
  }
10974
10975
  // optional bool force_step_down = 4;
10976
54.1k
  if (cached_has_bits & 0x00000008u) {
10977
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->force_step_down(), target);
10978
0
  }
10979
10980
  // optional bool disable_graceful_transition = 5;
10981
54.1k
  if (cached_has_bits & 0x00000010u) {
10982
1
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->disable_graceful_transition(), target);
10983
1
  }
10984
10985
54.1k
  if (_internal_metadata_.have_unknown_fields()) {
10986
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10987
0
        _internal_metadata_.unknown_fields(), target);
10988
0
  }
10989
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.LeaderStepDownRequestPB)
10990
54.1k
  return target;
10991
54.1k
}
10992
10993
108k
size_t LeaderStepDownRequestPB::ByteSizeLong() const {
10994
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.LeaderStepDownRequestPB)
10995
108k
  size_t total_size = 0;
10996
10997
108k
  if (_internal_metadata_.have_unknown_fields()) {
10998
0
    total_size +=
10999
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11000
0
        _internal_metadata_.unknown_fields());
11001
0
  }
11002
  // required bytes tablet_id = 1;
11003
108k
  if (has_tablet_id()) {
11004
108k
    total_size += 1 +
11005
108k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
11006
108k
        this->tablet_id());
11007
108k
  }
11008
108k
  if (_has_bits_[0 / 32] & 30u) {
11009
    // optional bytes dest_uuid = 2;
11010
108k
    if (has_dest_uuid()) {
11011
108k
      total_size += 1 +
11012
108k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11013
108k
          this->dest_uuid());
11014
108k
    }
11015
11016
    // optional bytes new_leader_uuid = 3;
11017
108k
    if (has_new_leader_uuid()) {
11018
106k
      total_size += 1 +
11019
106k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11020
106k
          this->new_leader_uuid());
11021
106k
    }
11022
11023
    // optional bool force_step_down = 4;
11024
108k
    if (has_force_step_down()) {
11025
0
      total_size += 1 + 1;
11026
0
    }
11027
11028
    // optional bool disable_graceful_transition = 5;
11029
108k
    if (has_disable_graceful_transition()) {
11030
2
      total_size += 1 + 1;
11031
2
    }
11032
11033
108k
  }
11034
108k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11035
108k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11036
108k
  _cached_size_ = cached_size;
11037
108k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11038
108k
  return total_size;
11039
108k
}
11040
11041
0
void LeaderStepDownRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
11042
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.LeaderStepDownRequestPB)
11043
0
  GOOGLE_DCHECK_NE(&from, this);
11044
0
  const LeaderStepDownRequestPB* source =
11045
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LeaderStepDownRequestPB>(
11046
0
          &from);
11047
0
  if (source == NULL) {
11048
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.LeaderStepDownRequestPB)
11049
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11050
0
  } else {
11051
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.LeaderStepDownRequestPB)
11052
0
    MergeFrom(*source);
11053
0
  }
11054
0
}
11055
11056
0
void LeaderStepDownRequestPB::MergeFrom(const LeaderStepDownRequestPB& from) {
11057
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.LeaderStepDownRequestPB)
11058
0
  GOOGLE_DCHECK_NE(&from, this);
11059
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11060
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11061
0
  (void) cached_has_bits;
11062
11063
0
  cached_has_bits = from._has_bits_[0];
11064
0
  if (cached_has_bits & 31u) {
11065
0
    if (cached_has_bits & 0x00000001u) {
11066
0
      set_has_tablet_id();
11067
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
11068
0
    }
11069
0
    if (cached_has_bits & 0x00000002u) {
11070
0
      set_has_dest_uuid();
11071
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
11072
0
    }
11073
0
    if (cached_has_bits & 0x00000004u) {
11074
0
      set_has_new_leader_uuid();
11075
0
      new_leader_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.new_leader_uuid_);
11076
0
    }
11077
0
    if (cached_has_bits & 0x00000008u) {
11078
0
      force_step_down_ = from.force_step_down_;
11079
0
    }
11080
0
    if (cached_has_bits & 0x00000010u) {
11081
0
      disable_graceful_transition_ = from.disable_graceful_transition_;
11082
0
    }
11083
0
    _has_bits_[0] |= cached_has_bits;
11084
0
  }
11085
0
}
11086
11087
0
void LeaderStepDownRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
11088
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.LeaderStepDownRequestPB)
11089
0
  if (&from == this) return;
11090
0
  Clear();
11091
0
  MergeFrom(from);
11092
0
}
11093
11094
0
void LeaderStepDownRequestPB::CopyFrom(const LeaderStepDownRequestPB& from) {
11095
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.LeaderStepDownRequestPB)
11096
0
  if (&from == this) return;
11097
0
  Clear();
11098
0
  MergeFrom(from);
11099
0
}
11100
11101
108k
bool LeaderStepDownRequestPB::IsInitialized() const {
11102
108k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
11103
108k
  return true;
11104
108k
}
11105
11106
0
void LeaderStepDownRequestPB::Swap(LeaderStepDownRequestPB* other) {
11107
0
  if (other == this) return;
11108
0
  InternalSwap(other);
11109
0
}
11110
0
void LeaderStepDownRequestPB::InternalSwap(LeaderStepDownRequestPB* other) {
11111
0
  using std::swap;
11112
0
  tablet_id_.Swap(&other->tablet_id_);
11113
0
  dest_uuid_.Swap(&other->dest_uuid_);
11114
0
  new_leader_uuid_.Swap(&other->new_leader_uuid_);
11115
0
  swap(force_step_down_, other->force_step_down_);
11116
0
  swap(disable_graceful_transition_, other->disable_graceful_transition_);
11117
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11118
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11119
0
  swap(_cached_size_, other->_cached_size_);
11120
0
}
11121
11122
270k
::google::protobuf::Metadata LeaderStepDownRequestPB::GetMetadata() const {
11123
270k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11124
270k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
11125
270k
}
11126
11127
11128
// ===================================================================
11129
11130
26.8k
void LeaderStepDownResponsePB::InitAsDefaultInstance() {
11131
26.8k
  ::yb::consensus::_LeaderStepDownResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
11132
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
11133
26.8k
}
11134
0
void LeaderStepDownResponsePB::clear_error() {
11135
0
  if (error_ != NULL) error_->Clear();
11136
0
  clear_has_error();
11137
0
}
11138
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11139
const int LeaderStepDownResponsePB::kErrorFieldNumber;
11140
const int LeaderStepDownResponsePB::kTimeSinceElectionFailureMsFieldNumber;
11141
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11142
11143
LeaderStepDownResponsePB::LeaderStepDownResponsePB()
11144
135k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11145
135k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11146
108k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderStepDownResponsePB();
11147
108k
  }
11148
135k
  SharedCtor();
11149
  // @@protoc_insertion_point(constructor:yb.consensus.LeaderStepDownResponsePB)
11150
135k
}
11151
LeaderStepDownResponsePB::LeaderStepDownResponsePB(const LeaderStepDownResponsePB& from)
11152
  : ::google::protobuf::Message(),
11153
      _internal_metadata_(NULL),
11154
      _has_bits_(from._has_bits_),
11155
0
      _cached_size_(0) {
11156
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11157
0
  if (from.has_error()) {
11158
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
11159
0
  } else {
11160
0
    error_ = NULL;
11161
0
  }
11162
0
  time_since_election_failure_ms_ = from.time_since_election_failure_ms_;
11163
  // @@protoc_insertion_point(copy_constructor:yb.consensus.LeaderStepDownResponsePB)
11164
0
}
11165
11166
135k
void LeaderStepDownResponsePB::SharedCtor() {
11167
135k
  _cached_size_ = 0;
11168
135k
  ::memset(&error_, 0, static_cast<size_t>(
11169
135k
      reinterpret_cast<char*>(&time_since_election_failure_ms_) -
11170
135k
      reinterpret_cast<char*>(&error_)) + sizeof(time_since_election_failure_ms_));
11171
135k
}
11172
11173
103k
LeaderStepDownResponsePB::~LeaderStepDownResponsePB() {
11174
  // @@protoc_insertion_point(destructor:yb.consensus.LeaderStepDownResponsePB)
11175
103k
  SharedDtor();
11176
103k
}
11177
11178
103k
void LeaderStepDownResponsePB::SharedDtor() {
11179
103k
  if (this != internal_default_instance()) 
delete error_103k
;
11180
103k
}
11181
11182
0
void LeaderStepDownResponsePB::SetCachedSize(int size) const {
11183
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11184
0
  _cached_size_ = size;
11185
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11186
0
}
11187
0
const ::google::protobuf::Descriptor* LeaderStepDownResponsePB::descriptor() {
11188
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11189
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11190
0
}
11191
11192
0
const LeaderStepDownResponsePB& LeaderStepDownResponsePB::default_instance() {
11193
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsLeaderStepDownResponsePB();
11194
0
  return *internal_default_instance();
11195
0
}
11196
11197
0
LeaderStepDownResponsePB* LeaderStepDownResponsePB::New(::google::protobuf::Arena* arena) const {
11198
0
  LeaderStepDownResponsePB* n = new LeaderStepDownResponsePB;
11199
0
  if (arena != NULL) {
11200
0
    arena->Own(n);
11201
0
  }
11202
0
  return n;
11203
0
}
11204
11205
54.0k
void LeaderStepDownResponsePB::Clear() {
11206
// @@protoc_insertion_point(message_clear_start:yb.consensus.LeaderStepDownResponsePB)
11207
54.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
11208
  // Prevent compiler warnings about cached_has_bits being unused
11209
54.0k
  (void) cached_has_bits;
11210
11211
54.0k
  cached_has_bits = _has_bits_[0];
11212
54.0k
  if (cached_has_bits & 0x00000001u) {
11213
0
    GOOGLE_DCHECK(error_ != NULL);
11214
0
    error_->Clear();
11215
0
  }
11216
54.0k
  time_since_election_failure_ms_ = GOOGLE_LONGLONG(0);
11217
54.0k
  _has_bits_.Clear();
11218
54.0k
  _internal_metadata_.Clear();
11219
54.0k
}
11220
11221
bool LeaderStepDownResponsePB::MergePartialFromCodedStream(
11222
54.0k
    ::google::protobuf::io::CodedInputStream* input) {
11223
54.0k
#define DO_(EXPRESSION) 
if (44.9k
!GOOGLE_PREDICT_TRUE44.9k
(EXPRESSION))
goto failure0
11224
54.0k
  ::google::protobuf::uint32 tag;
11225
  // @@protoc_insertion_point(parse_start:yb.consensus.LeaderStepDownResponsePB)
11226
99.0k
  for (;;) {
11227
99.0k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11228
99.0k
    tag = p.first;
11229
99.0k
    if (!p.second) 
goto handle_unusual54.0k
;
11230
44.9k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11231
      // optional .yb.tserver.TabletServerErrorPB error = 1;
11232
44.0k
      case 1: {
11233
44.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11234
44.0k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11235
44.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11236
44.0k
               input, mutable_error()));
11237
44.0k
        } else {
11238
0
          goto handle_unusual;
11239
0
        }
11240
44.0k
        break;
11241
44.0k
      }
11242
11243
      // optional int64 time_since_election_failure_ms = 2;
11244
44.0k
      case 2: {
11245
903
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11246
903
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11247
903
          set_has_time_since_election_failure_ms();
11248
903
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11249
903
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
11250
903
                 input, &time_since_election_failure_ms_)));
11251
903
        } else {
11252
0
          goto handle_unusual;
11253
0
        }
11254
903
        break;
11255
903
      }
11256
11257
903
      default: {
11258
54.0k
      handle_unusual:
11259
54.0k
        if (
tag == 054.0k
) {
11260
54.0k
          goto success;
11261
54.0k
        }
11262
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11263
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11264
18.4E
        break;
11265
18.4E
      }
11266
44.9k
    }
11267
44.9k
  }
11268
18.4E
success:
11269
  // @@protoc_insertion_point(parse_success:yb.consensus.LeaderStepDownResponsePB)
11270
54.0k
  return true;
11271
0
failure:
11272
  // @@protoc_insertion_point(parse_failure:yb.consensus.LeaderStepDownResponsePB)
11273
0
  return false;
11274
54.0k
#undef DO_
11275
54.0k
}
11276
11277
void LeaderStepDownResponsePB::SerializeWithCachedSizes(
11278
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11279
  // @@protoc_insertion_point(serialize_start:yb.consensus.LeaderStepDownResponsePB)
11280
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11281
0
  (void) cached_has_bits;
11282
11283
0
  cached_has_bits = _has_bits_[0];
11284
  // optional .yb.tserver.TabletServerErrorPB error = 1;
11285
0
  if (cached_has_bits & 0x00000001u) {
11286
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11287
0
      1, *this->error_, output);
11288
0
  }
11289
11290
  // optional int64 time_since_election_failure_ms = 2;
11291
0
  if (cached_has_bits & 0x00000002u) {
11292
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->time_since_election_failure_ms(), output);
11293
0
  }
11294
11295
0
  if (_internal_metadata_.have_unknown_fields()) {
11296
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11297
0
        _internal_metadata_.unknown_fields(), output);
11298
0
  }
11299
  // @@protoc_insertion_point(serialize_end:yb.consensus.LeaderStepDownResponsePB)
11300
0
}
11301
11302
::google::protobuf::uint8* LeaderStepDownResponsePB::InternalSerializeWithCachedSizesToArray(
11303
54.1k
    bool deterministic, ::google::protobuf::uint8* target) const {
11304
54.1k
  (void)deterministic; // Unused
11305
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.LeaderStepDownResponsePB)
11306
54.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
11307
54.1k
  (void) cached_has_bits;
11308
11309
54.1k
  cached_has_bits = _has_bits_[0];
11310
  // optional .yb.tserver.TabletServerErrorPB error = 1;
11311
54.1k
  if (cached_has_bits & 0x00000001u) {
11312
44.0k
    target = ::google::protobuf::internal::WireFormatLite::
11313
44.0k
      InternalWriteMessageToArray(
11314
44.0k
        1, *this->error_, deterministic, target);
11315
44.0k
  }
11316
11317
  // optional int64 time_since_election_failure_ms = 2;
11318
54.1k
  if (cached_has_bits & 0x00000002u) {
11319
903
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->time_since_election_failure_ms(), target);
11320
903
  }
11321
11322
54.1k
  if (_internal_metadata_.have_unknown_fields()) {
11323
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11324
0
        _internal_metadata_.unknown_fields(), target);
11325
0
  }
11326
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.LeaderStepDownResponsePB)
11327
54.1k
  return target;
11328
54.1k
}
11329
11330
108k
size_t LeaderStepDownResponsePB::ByteSizeLong() const {
11331
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.LeaderStepDownResponsePB)
11332
108k
  size_t total_size = 0;
11333
11334
108k
  if (_internal_metadata_.have_unknown_fields()) {
11335
0
    total_size +=
11336
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11337
0
        _internal_metadata_.unknown_fields());
11338
0
  }
11339
108k
  if (_has_bits_[0 / 32] & 3u) {
11340
    // optional .yb.tserver.TabletServerErrorPB error = 1;
11341
88.1k
    if (has_error()) {
11342
88.1k
      total_size += 1 +
11343
88.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
11344
88.1k
          *this->error_);
11345
88.1k
    }
11346
11347
    // optional int64 time_since_election_failure_ms = 2;
11348
88.1k
    if (has_time_since_election_failure_ms()) {
11349
1.80k
      total_size += 1 +
11350
1.80k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
11351
1.80k
          this->time_since_election_failure_ms());
11352
1.80k
    }
11353
11354
88.1k
  }
11355
108k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11356
108k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11357
108k
  _cached_size_ = cached_size;
11358
108k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11359
108k
  return total_size;
11360
108k
}
11361
11362
0
void LeaderStepDownResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
11363
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.LeaderStepDownResponsePB)
11364
0
  GOOGLE_DCHECK_NE(&from, this);
11365
0
  const LeaderStepDownResponsePB* source =
11366
0
      ::google::protobuf::internal::DynamicCastToGenerated<const LeaderStepDownResponsePB>(
11367
0
          &from);
11368
0
  if (source == NULL) {
11369
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.LeaderStepDownResponsePB)
11370
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11371
0
  } else {
11372
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.LeaderStepDownResponsePB)
11373
0
    MergeFrom(*source);
11374
0
  }
11375
0
}
11376
11377
0
void LeaderStepDownResponsePB::MergeFrom(const LeaderStepDownResponsePB& from) {
11378
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.LeaderStepDownResponsePB)
11379
0
  GOOGLE_DCHECK_NE(&from, this);
11380
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11381
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11382
0
  (void) cached_has_bits;
11383
11384
0
  cached_has_bits = from._has_bits_[0];
11385
0
  if (cached_has_bits & 3u) {
11386
0
    if (cached_has_bits & 0x00000001u) {
11387
0
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
11388
0
    }
11389
0
    if (cached_has_bits & 0x00000002u) {
11390
0
      time_since_election_failure_ms_ = from.time_since_election_failure_ms_;
11391
0
    }
11392
0
    _has_bits_[0] |= cached_has_bits;
11393
0
  }
11394
0
}
11395
11396
0
void LeaderStepDownResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
11397
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.LeaderStepDownResponsePB)
11398
0
  if (&from == this) return;
11399
0
  Clear();
11400
0
  MergeFrom(from);
11401
0
}
11402
11403
0
void LeaderStepDownResponsePB::CopyFrom(const LeaderStepDownResponsePB& from) {
11404
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.LeaderStepDownResponsePB)
11405
0
  if (&from == this) return;
11406
0
  Clear();
11407
0
  MergeFrom(from);
11408
0
}
11409
11410
108k
bool LeaderStepDownResponsePB::IsInitialized() const {
11411
108k
  if (has_error()) {
11412
88.1k
    if (!this->error_->IsInitialized()) 
return false0
;
11413
88.1k
  }
11414
108k
  return true;
11415
108k
}
11416
11417
0
void LeaderStepDownResponsePB::Swap(LeaderStepDownResponsePB* other) {
11418
0
  if (other == this) return;
11419
0
  InternalSwap(other);
11420
0
}
11421
8
void LeaderStepDownResponsePB::InternalSwap(LeaderStepDownResponsePB* other) {
11422
8
  using std::swap;
11423
8
  swap(error_, other->error_);
11424
8
  swap(time_since_election_failure_ms_, other->time_since_election_failure_ms_);
11425
8
  swap(_has_bits_[0], other->_has_bits_[0]);
11426
8
  _internal_metadata_.Swap(&other->_internal_metadata_);
11427
8
  swap(_cached_size_, other->_cached_size_);
11428
8
}
11429
11430
0
::google::protobuf::Metadata LeaderStepDownResponsePB::GetMetadata() const {
11431
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11432
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
11433
0
}
11434
11435
11436
// ===================================================================
11437
11438
26.8k
void GetLastOpIdRequestPB::InitAsDefaultInstance() {
11439
26.8k
}
11440
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11441
const int GetLastOpIdRequestPB::kDestUuidFieldNumber;
11442
const int GetLastOpIdRequestPB::kTabletIdFieldNumber;
11443
const int GetLastOpIdRequestPB::kOpidTypeFieldNumber;
11444
const int GetLastOpIdRequestPB::kOpTypeFieldNumber;
11445
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11446
11447
GetLastOpIdRequestPB::GetLastOpIdRequestPB()
11448
27.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11449
27.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11450
1.06k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetLastOpIdRequestPB();
11451
1.06k
  }
11452
27.9k
  SharedCtor();
11453
  // @@protoc_insertion_point(constructor:yb.consensus.GetLastOpIdRequestPB)
11454
27.9k
}
11455
GetLastOpIdRequestPB::GetLastOpIdRequestPB(const GetLastOpIdRequestPB& from)
11456
  : ::google::protobuf::Message(),
11457
      _internal_metadata_(NULL),
11458
      _has_bits_(from._has_bits_),
11459
0
      _cached_size_(0) {
11460
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11461
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11462
0
  if (from.has_tablet_id()) {
11463
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
11464
0
  }
11465
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11466
0
  if (from.has_dest_uuid()) {
11467
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
11468
0
  }
11469
0
  ::memcpy(&op_type_, &from.op_type_,
11470
0
    static_cast<size_t>(reinterpret_cast<char*>(&opid_type_) -
11471
0
    reinterpret_cast<char*>(&op_type_)) + sizeof(opid_type_));
11472
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetLastOpIdRequestPB)
11473
0
}
11474
11475
27.9k
void GetLastOpIdRequestPB::SharedCtor() {
11476
27.9k
  _cached_size_ = 0;
11477
27.9k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11478
27.9k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11479
27.9k
  op_type_ = 0;
11480
27.9k
  opid_type_ = 1;
11481
27.9k
}
11482
11483
1.06k
GetLastOpIdRequestPB::~GetLastOpIdRequestPB() {
11484
  // @@protoc_insertion_point(destructor:yb.consensus.GetLastOpIdRequestPB)
11485
1.06k
  SharedDtor();
11486
1.06k
}
11487
11488
1.06k
void GetLastOpIdRequestPB::SharedDtor() {
11489
1.06k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11490
1.06k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11491
1.06k
}
11492
11493
0
void GetLastOpIdRequestPB::SetCachedSize(int size) const {
11494
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11495
0
  _cached_size_ = size;
11496
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11497
0
}
11498
0
const ::google::protobuf::Descriptor* GetLastOpIdRequestPB::descriptor() {
11499
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11500
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11501
0
}
11502
11503
0
const GetLastOpIdRequestPB& GetLastOpIdRequestPB::default_instance() {
11504
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetLastOpIdRequestPB();
11505
0
  return *internal_default_instance();
11506
0
}
11507
11508
0
GetLastOpIdRequestPB* GetLastOpIdRequestPB::New(::google::protobuf::Arena* arena) const {
11509
0
  GetLastOpIdRequestPB* n = new GetLastOpIdRequestPB;
11510
0
  if (arena != NULL) {
11511
0
    arena->Own(n);
11512
0
  }
11513
0
  return n;
11514
0
}
11515
11516
575
void GetLastOpIdRequestPB::Clear() {
11517
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetLastOpIdRequestPB)
11518
575
  ::google::protobuf::uint32 cached_has_bits = 0;
11519
  // Prevent compiler warnings about cached_has_bits being unused
11520
575
  (void) cached_has_bits;
11521
11522
575
  cached_has_bits = _has_bits_[0];
11523
575
  if (cached_has_bits & 3u) {
11524
0
    if (cached_has_bits & 0x00000001u) {
11525
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11526
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
11527
0
    }
11528
0
    if (cached_has_bits & 0x00000002u) {
11529
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11530
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
11531
0
    }
11532
0
  }
11533
575
  if (cached_has_bits & 12u) {
11534
0
    op_type_ = 0;
11535
0
    opid_type_ = 1;
11536
0
  }
11537
575
  _has_bits_.Clear();
11538
575
  _internal_metadata_.Clear();
11539
575
}
11540
11541
bool GetLastOpIdRequestPB::MergePartialFromCodedStream(
11542
575
    ::google::protobuf::io::CodedInputStream* input) {
11543
1.72k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
11544
575
  ::google::protobuf::uint32 tag;
11545
  // @@protoc_insertion_point(parse_start:yb.consensus.GetLastOpIdRequestPB)
11546
2.30k
  for (;;) {
11547
2.30k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11548
2.30k
    tag = p.first;
11549
2.30k
    if (!p.second) 
goto handle_unusual575
;
11550
1.72k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11551
      // required bytes tablet_id = 1;
11552
575
      case 1: {
11553
575
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11554
575
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11555
575
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11556
575
                input, this->mutable_tablet_id()));
11557
575
        } else {
11558
0
          goto handle_unusual;
11559
0
        }
11560
575
        break;
11561
575
      }
11562
11563
      // optional bytes dest_uuid = 2;
11564
575
      case 2: {
11565
575
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11566
575
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11567
575
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
11568
575
                input, this->mutable_dest_uuid()));
11569
575
        } else {
11570
0
          goto handle_unusual;
11571
0
        }
11572
575
        break;
11573
575
      }
11574
11575
      // optional .yb.consensus.OpIdType opid_type = 3 [default = RECEIVED_OPID];
11576
575
      case 3: {
11577
575
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11578
575
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
11579
575
          int value;
11580
575
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11581
575
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11582
575
                 input, &value)));
11583
575
          if (::yb::consensus::OpIdType_IsValid(value)) {
11584
575
            set_opid_type(static_cast< ::yb::consensus::OpIdType >(value));
11585
575
          } else {
11586
0
            mutable_unknown_fields()->AddVarint(
11587
0
                3, static_cast< ::google::protobuf::uint64>(value));
11588
0
          }
11589
575
        } else {
11590
0
          goto handle_unusual;
11591
0
        }
11592
575
        break;
11593
575
      }
11594
11595
      // optional .yb.consensus.OperationType op_type = 4;
11596
575
      case 4: {
11597
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11598
3
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
11599
3
          int value;
11600
3
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11601
3
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11602
3
                 input, &value)));
11603
3
          if (::yb::consensus::OperationType_IsValid(value)) {
11604
3
            set_op_type(static_cast< ::yb::consensus::OperationType >(value));
11605
3
          } else {
11606
0
            mutable_unknown_fields()->AddVarint(
11607
0
                4, static_cast< ::google::protobuf::uint64>(value));
11608
0
          }
11609
3
        } else {
11610
0
          goto handle_unusual;
11611
0
        }
11612
3
        break;
11613
3
      }
11614
11615
3
      default: {
11616
575
      handle_unusual:
11617
575
        if (tag == 0) {
11618
575
          goto success;
11619
575
        }
11620
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11621
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11622
0
        break;
11623
0
      }
11624
1.72k
    }
11625
1.72k
  }
11626
575
success:
11627
  // @@protoc_insertion_point(parse_success:yb.consensus.GetLastOpIdRequestPB)
11628
575
  return true;
11629
0
failure:
11630
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetLastOpIdRequestPB)
11631
0
  return false;
11632
575
#undef DO_
11633
575
}
11634
11635
void GetLastOpIdRequestPB::SerializeWithCachedSizes(
11636
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11637
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetLastOpIdRequestPB)
11638
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11639
0
  (void) cached_has_bits;
11640
11641
0
  cached_has_bits = _has_bits_[0];
11642
  // required bytes tablet_id = 1;
11643
0
  if (cached_has_bits & 0x00000001u) {
11644
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11645
0
      1, this->tablet_id(), output);
11646
0
  }
11647
11648
  // optional bytes dest_uuid = 2;
11649
0
  if (cached_has_bits & 0x00000002u) {
11650
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11651
0
      2, this->dest_uuid(), output);
11652
0
  }
11653
11654
  // optional .yb.consensus.OpIdType opid_type = 3 [default = RECEIVED_OPID];
11655
0
  if (cached_has_bits & 0x00000008u) {
11656
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
11657
0
      3, this->opid_type(), output);
11658
0
  }
11659
11660
  // optional .yb.consensus.OperationType op_type = 4;
11661
0
  if (cached_has_bits & 0x00000004u) {
11662
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
11663
0
      4, this->op_type(), output);
11664
0
  }
11665
11666
0
  if (_internal_metadata_.have_unknown_fields()) {
11667
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11668
0
        _internal_metadata_.unknown_fields(), output);
11669
0
  }
11670
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetLastOpIdRequestPB)
11671
0
}
11672
11673
::google::protobuf::uint8* GetLastOpIdRequestPB::InternalSerializeWithCachedSizesToArray(
11674
601
    bool deterministic, ::google::protobuf::uint8* target) const {
11675
601
  (void)deterministic; // Unused
11676
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetLastOpIdRequestPB)
11677
601
  ::google::protobuf::uint32 cached_has_bits = 0;
11678
601
  (void) cached_has_bits;
11679
11680
601
  cached_has_bits = _has_bits_[0];
11681
  // required bytes tablet_id = 1;
11682
601
  if (cached_has_bits & 0x00000001u) {
11683
601
    target =
11684
601
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11685
601
        1, this->tablet_id(), target);
11686
601
  }
11687
11688
  // optional bytes dest_uuid = 2;
11689
601
  if (cached_has_bits & 0x00000002u) {
11690
601
    target =
11691
601
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11692
601
        2, this->dest_uuid(), target);
11693
601
  }
11694
11695
  // optional .yb.consensus.OpIdType opid_type = 3 [default = RECEIVED_OPID];
11696
601
  if (cached_has_bits & 0x00000008u) {
11697
601
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11698
601
      3, this->opid_type(), target);
11699
601
  }
11700
11701
  // optional .yb.consensus.OperationType op_type = 4;
11702
601
  if (cached_has_bits & 0x00000004u) {
11703
3
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11704
3
      4, this->op_type(), target);
11705
3
  }
11706
11707
601
  if (_internal_metadata_.have_unknown_fields()) {
11708
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11709
0
        _internal_metadata_.unknown_fields(), target);
11710
0
  }
11711
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetLastOpIdRequestPB)
11712
601
  return target;
11713
601
}
11714
11715
1.20k
size_t GetLastOpIdRequestPB::ByteSizeLong() const {
11716
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetLastOpIdRequestPB)
11717
1.20k
  size_t total_size = 0;
11718
11719
1.20k
  if (_internal_metadata_.have_unknown_fields()) {
11720
0
    total_size +=
11721
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11722
0
        _internal_metadata_.unknown_fields());
11723
0
  }
11724
  // required bytes tablet_id = 1;
11725
1.20k
  if (has_tablet_id()) {
11726
1.20k
    total_size += 1 +
11727
1.20k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
11728
1.20k
        this->tablet_id());
11729
1.20k
  }
11730
1.20k
  if (_has_bits_[0 / 32] & 14u) {
11731
    // optional bytes dest_uuid = 2;
11732
1.20k
    if (has_dest_uuid()) {
11733
1.20k
      total_size += 1 +
11734
1.20k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
11735
1.20k
          this->dest_uuid());
11736
1.20k
    }
11737
11738
    // optional .yb.consensus.OperationType op_type = 4;
11739
1.20k
    if (has_op_type()) {
11740
6
      total_size += 1 +
11741
6
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->op_type());
11742
6
    }
11743
11744
    // optional .yb.consensus.OpIdType opid_type = 3 [default = RECEIVED_OPID];
11745
1.20k
    if (has_opid_type()) {
11746
1.20k
      total_size += 1 +
11747
1.20k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->opid_type());
11748
1.20k
    }
11749
11750
1.20k
  }
11751
1.20k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11752
1.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11753
1.20k
  _cached_size_ = cached_size;
11754
1.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11755
1.20k
  return total_size;
11756
1.20k
}
11757
11758
0
void GetLastOpIdRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
11759
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetLastOpIdRequestPB)
11760
0
  GOOGLE_DCHECK_NE(&from, this);
11761
0
  const GetLastOpIdRequestPB* source =
11762
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetLastOpIdRequestPB>(
11763
0
          &from);
11764
0
  if (source == NULL) {
11765
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetLastOpIdRequestPB)
11766
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11767
0
  } else {
11768
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetLastOpIdRequestPB)
11769
0
    MergeFrom(*source);
11770
0
  }
11771
0
}
11772
11773
0
void GetLastOpIdRequestPB::MergeFrom(const GetLastOpIdRequestPB& from) {
11774
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetLastOpIdRequestPB)
11775
0
  GOOGLE_DCHECK_NE(&from, this);
11776
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11777
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11778
0
  (void) cached_has_bits;
11779
11780
0
  cached_has_bits = from._has_bits_[0];
11781
0
  if (cached_has_bits & 15u) {
11782
0
    if (cached_has_bits & 0x00000001u) {
11783
0
      set_has_tablet_id();
11784
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
11785
0
    }
11786
0
    if (cached_has_bits & 0x00000002u) {
11787
0
      set_has_dest_uuid();
11788
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
11789
0
    }
11790
0
    if (cached_has_bits & 0x00000004u) {
11791
0
      op_type_ = from.op_type_;
11792
0
    }
11793
0
    if (cached_has_bits & 0x00000008u) {
11794
0
      opid_type_ = from.opid_type_;
11795
0
    }
11796
0
    _has_bits_[0] |= cached_has_bits;
11797
0
  }
11798
0
}
11799
11800
0
void GetLastOpIdRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
11801
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetLastOpIdRequestPB)
11802
0
  if (&from == this) return;
11803
0
  Clear();
11804
0
  MergeFrom(from);
11805
0
}
11806
11807
0
void GetLastOpIdRequestPB::CopyFrom(const GetLastOpIdRequestPB& from) {
11808
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetLastOpIdRequestPB)
11809
0
  if (&from == this) return;
11810
0
  Clear();
11811
0
  MergeFrom(from);
11812
0
}
11813
11814
1.17k
bool GetLastOpIdRequestPB::IsInitialized() const {
11815
1.17k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
11816
1.17k
  return true;
11817
1.17k
}
11818
11819
0
void GetLastOpIdRequestPB::Swap(GetLastOpIdRequestPB* other) {
11820
0
  if (other == this) return;
11821
0
  InternalSwap(other);
11822
0
}
11823
0
void GetLastOpIdRequestPB::InternalSwap(GetLastOpIdRequestPB* other) {
11824
0
  using std::swap;
11825
0
  tablet_id_.Swap(&other->tablet_id_);
11826
0
  dest_uuid_.Swap(&other->dest_uuid_);
11827
0
  swap(op_type_, other->op_type_);
11828
0
  swap(opid_type_, other->opid_type_);
11829
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11830
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11831
0
  swap(_cached_size_, other->_cached_size_);
11832
0
}
11833
11834
575
::google::protobuf::Metadata GetLastOpIdRequestPB::GetMetadata() const {
11835
575
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11836
575
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
11837
575
}
11838
11839
11840
// ===================================================================
11841
11842
26.8k
void GetLastOpIdResponsePB::InitAsDefaultInstance() {
11843
26.8k
  ::yb::consensus::_GetLastOpIdResponsePB_default_instance_._instance.get_mutable()->opid_ = const_cast< ::yb::OpIdPB*>(
11844
26.8k
      ::yb::OpIdPB::internal_default_instance());
11845
26.8k
  ::yb::consensus::_GetLastOpIdResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
11846
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
11847
26.8k
}
11848
0
void GetLastOpIdResponsePB::clear_opid() {
11849
0
  if (opid_ != NULL) opid_->Clear();
11850
0
  clear_has_opid();
11851
0
}
11852
0
void GetLastOpIdResponsePB::clear_error() {
11853
0
  if (error_ != NULL) error_->Clear();
11854
0
  clear_has_error();
11855
0
}
11856
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11857
const int GetLastOpIdResponsePB::kOpidFieldNumber;
11858
const int GetLastOpIdResponsePB::kErrorFieldNumber;
11859
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11860
11861
GetLastOpIdResponsePB::GetLastOpIdResponsePB()
11862
27.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11863
27.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11864
1.06k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetLastOpIdResponsePB();
11865
1.06k
  }
11866
27.9k
  SharedCtor();
11867
  // @@protoc_insertion_point(constructor:yb.consensus.GetLastOpIdResponsePB)
11868
27.9k
}
11869
GetLastOpIdResponsePB::GetLastOpIdResponsePB(const GetLastOpIdResponsePB& from)
11870
  : ::google::protobuf::Message(),
11871
      _internal_metadata_(NULL),
11872
      _has_bits_(from._has_bits_),
11873
0
      _cached_size_(0) {
11874
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11875
0
  if (from.has_opid()) {
11876
0
    opid_ = new ::yb::OpIdPB(*from.opid_);
11877
0
  } else {
11878
0
    opid_ = NULL;
11879
0
  }
11880
0
  if (from.has_error()) {
11881
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
11882
0
  } else {
11883
0
    error_ = NULL;
11884
0
  }
11885
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetLastOpIdResponsePB)
11886
0
}
11887
11888
27.9k
void GetLastOpIdResponsePB::SharedCtor() {
11889
27.9k
  _cached_size_ = 0;
11890
27.9k
  ::memset(&opid_, 0, static_cast<size_t>(
11891
27.9k
      reinterpret_cast<char*>(&error_) -
11892
27.9k
      reinterpret_cast<char*>(&opid_)) + sizeof(error_));
11893
27.9k
}
11894
11895
1.06k
GetLastOpIdResponsePB::~GetLastOpIdResponsePB() {
11896
  // @@protoc_insertion_point(destructor:yb.consensus.GetLastOpIdResponsePB)
11897
1.06k
  SharedDtor();
11898
1.06k
}
11899
11900
1.06k
void GetLastOpIdResponsePB::SharedDtor() {
11901
1.06k
  if (this != internal_default_instance()) delete opid_;
11902
1.06k
  if (this != internal_default_instance()) delete error_;
11903
1.06k
}
11904
11905
0
void GetLastOpIdResponsePB::SetCachedSize(int size) const {
11906
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11907
0
  _cached_size_ = size;
11908
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11909
0
}
11910
0
const ::google::protobuf::Descriptor* GetLastOpIdResponsePB::descriptor() {
11911
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
11912
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11913
0
}
11914
11915
0
const GetLastOpIdResponsePB& GetLastOpIdResponsePB::default_instance() {
11916
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetLastOpIdResponsePB();
11917
0
  return *internal_default_instance();
11918
0
}
11919
11920
0
GetLastOpIdResponsePB* GetLastOpIdResponsePB::New(::google::protobuf::Arena* arena) const {
11921
0
  GetLastOpIdResponsePB* n = new GetLastOpIdResponsePB;
11922
0
  if (arena != NULL) {
11923
0
    arena->Own(n);
11924
0
  }
11925
0
  return n;
11926
0
}
11927
11928
575
void GetLastOpIdResponsePB::Clear() {
11929
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetLastOpIdResponsePB)
11930
575
  ::google::protobuf::uint32 cached_has_bits = 0;
11931
  // Prevent compiler warnings about cached_has_bits being unused
11932
575
  (void) cached_has_bits;
11933
11934
575
  cached_has_bits = _has_bits_[0];
11935
575
  if (cached_has_bits & 3u) {
11936
110
    if (cached_has_bits & 0x00000001u) {
11937
110
      GOOGLE_DCHECK(opid_ != NULL);
11938
110
      opid_->Clear();
11939
110
    }
11940
110
    if (cached_has_bits & 0x00000002u) {
11941
0
      GOOGLE_DCHECK(error_ != NULL);
11942
0
      error_->Clear();
11943
0
    }
11944
110
  }
11945
575
  _has_bits_.Clear();
11946
575
  _internal_metadata_.Clear();
11947
575
}
11948
11949
bool GetLastOpIdResponsePB::MergePartialFromCodedStream(
11950
575
    ::google::protobuf::io::CodedInputStream* input) {
11951
575
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
11952
575
  ::google::protobuf::uint32 tag;
11953
  // @@protoc_insertion_point(parse_start:yb.consensus.GetLastOpIdResponsePB)
11954
1.15k
  for (;;) {
11955
1.15k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11956
1.15k
    tag = p.first;
11957
1.15k
    if (!p.second) 
goto handle_unusual575
;
11958
575
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11959
      // optional .yb.OpIdPB opid = 1;
11960
554
      case 1: {
11961
554
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11962
554
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11963
554
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11964
554
               input, mutable_opid()));
11965
554
        } else {
11966
0
          goto handle_unusual;
11967
0
        }
11968
554
        break;
11969
554
      }
11970
11971
      // optional .yb.tserver.TabletServerErrorPB error = 2;
11972
554
      case 2: {
11973
21
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11974
21
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11975
21
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11976
21
               input, mutable_error()));
11977
21
        } else {
11978
0
          goto handle_unusual;
11979
0
        }
11980
21
        break;
11981
21
      }
11982
11983
21
      default: {
11984
575
      handle_unusual:
11985
575
        if (tag == 0) {
11986
575
          goto success;
11987
575
        }
11988
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11989
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11990
0
        break;
11991
0
      }
11992
575
    }
11993
575
  }
11994
575
success:
11995
  // @@protoc_insertion_point(parse_success:yb.consensus.GetLastOpIdResponsePB)
11996
575
  return true;
11997
0
failure:
11998
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetLastOpIdResponsePB)
11999
0
  return false;
12000
575
#undef DO_
12001
575
}
12002
12003
void GetLastOpIdResponsePB::SerializeWithCachedSizes(
12004
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12005
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetLastOpIdResponsePB)
12006
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12007
0
  (void) cached_has_bits;
12008
12009
0
  cached_has_bits = _has_bits_[0];
12010
  // optional .yb.OpIdPB opid = 1;
12011
0
  if (cached_has_bits & 0x00000001u) {
12012
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12013
0
      1, *this->opid_, output);
12014
0
  }
12015
12016
  // optional .yb.tserver.TabletServerErrorPB error = 2;
12017
0
  if (cached_has_bits & 0x00000002u) {
12018
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12019
0
      2, *this->error_, output);
12020
0
  }
12021
12022
0
  if (_internal_metadata_.have_unknown_fields()) {
12023
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12024
0
        _internal_metadata_.unknown_fields(), output);
12025
0
  }
12026
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetLastOpIdResponsePB)
12027
0
}
12028
12029
::google::protobuf::uint8* GetLastOpIdResponsePB::InternalSerializeWithCachedSizesToArray(
12030
575
    bool deterministic, ::google::protobuf::uint8* target) const {
12031
575
  (void)deterministic; // Unused
12032
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetLastOpIdResponsePB)
12033
575
  ::google::protobuf::uint32 cached_has_bits = 0;
12034
575
  (void) cached_has_bits;
12035
12036
575
  cached_has_bits = _has_bits_[0];
12037
  // optional .yb.OpIdPB opid = 1;
12038
575
  if (cached_has_bits & 0x00000001u) {
12039
554
    target = ::google::protobuf::internal::WireFormatLite::
12040
554
      InternalWriteMessageToArray(
12041
554
        1, *this->opid_, deterministic, target);
12042
554
  }
12043
12044
  // optional .yb.tserver.TabletServerErrorPB error = 2;
12045
575
  if (cached_has_bits & 0x00000002u) {
12046
21
    target = ::google::protobuf::internal::WireFormatLite::
12047
21
      InternalWriteMessageToArray(
12048
21
        2, *this->error_, deterministic, target);
12049
21
  }
12050
12051
575
  if (_internal_metadata_.have_unknown_fields()) {
12052
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12053
0
        _internal_metadata_.unknown_fields(), target);
12054
0
  }
12055
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetLastOpIdResponsePB)
12056
575
  return target;
12057
575
}
12058
12059
1.15k
size_t GetLastOpIdResponsePB::ByteSizeLong() const {
12060
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetLastOpIdResponsePB)
12061
1.15k
  size_t total_size = 0;
12062
12063
1.15k
  if (_internal_metadata_.have_unknown_fields()) {
12064
0
    total_size +=
12065
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12066
0
        _internal_metadata_.unknown_fields());
12067
0
  }
12068
1.15k
  if (_has_bits_[0 / 32] & 3u) {
12069
    // optional .yb.OpIdPB opid = 1;
12070
1.15k
    if (has_opid()) {
12071
1.10k
      total_size += 1 +
12072
1.10k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12073
1.10k
          *this->opid_);
12074
1.10k
    }
12075
12076
    // optional .yb.tserver.TabletServerErrorPB error = 2;
12077
1.15k
    if (has_error()) {
12078
42
      total_size += 1 +
12079
42
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12080
42
          *this->error_);
12081
42
    }
12082
12083
1.15k
  }
12084
1.15k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12085
1.15k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12086
1.15k
  _cached_size_ = cached_size;
12087
1.15k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12088
1.15k
  return total_size;
12089
1.15k
}
12090
12091
0
void GetLastOpIdResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
12092
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetLastOpIdResponsePB)
12093
0
  GOOGLE_DCHECK_NE(&from, this);
12094
0
  const GetLastOpIdResponsePB* source =
12095
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetLastOpIdResponsePB>(
12096
0
          &from);
12097
0
  if (source == NULL) {
12098
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetLastOpIdResponsePB)
12099
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12100
0
  } else {
12101
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetLastOpIdResponsePB)
12102
0
    MergeFrom(*source);
12103
0
  }
12104
0
}
12105
12106
0
void GetLastOpIdResponsePB::MergeFrom(const GetLastOpIdResponsePB& from) {
12107
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetLastOpIdResponsePB)
12108
0
  GOOGLE_DCHECK_NE(&from, this);
12109
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12110
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12111
0
  (void) cached_has_bits;
12112
12113
0
  cached_has_bits = from._has_bits_[0];
12114
0
  if (cached_has_bits & 3u) {
12115
0
    if (cached_has_bits & 0x00000001u) {
12116
0
      mutable_opid()->::yb::OpIdPB::MergeFrom(from.opid());
12117
0
    }
12118
0
    if (cached_has_bits & 0x00000002u) {
12119
0
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
12120
0
    }
12121
0
  }
12122
0
}
12123
12124
0
void GetLastOpIdResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
12125
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetLastOpIdResponsePB)
12126
0
  if (&from == this) return;
12127
0
  Clear();
12128
0
  MergeFrom(from);
12129
0
}
12130
12131
0
void GetLastOpIdResponsePB::CopyFrom(const GetLastOpIdResponsePB& from) {
12132
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetLastOpIdResponsePB)
12133
0
  if (&from == this) return;
12134
0
  Clear();
12135
0
  MergeFrom(from);
12136
0
}
12137
12138
1.15k
bool GetLastOpIdResponsePB::IsInitialized() const {
12139
1.15k
  if (has_opid()) {
12140
1.10k
    if (!this->opid_->IsInitialized()) 
return false0
;
12141
1.10k
  }
12142
1.15k
  if (has_error()) {
12143
42
    if (!this->error_->IsInitialized()) 
return false0
;
12144
42
  }
12145
1.15k
  return true;
12146
1.15k
}
12147
12148
0
void GetLastOpIdResponsePB::Swap(GetLastOpIdResponsePB* other) {
12149
0
  if (other == this) return;
12150
0
  InternalSwap(other);
12151
0
}
12152
0
void GetLastOpIdResponsePB::InternalSwap(GetLastOpIdResponsePB* other) {
12153
0
  using std::swap;
12154
0
  swap(opid_, other->opid_);
12155
0
  swap(error_, other->error_);
12156
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12157
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12158
0
  swap(_cached_size_, other->_cached_size_);
12159
0
}
12160
12161
0
::google::protobuf::Metadata GetLastOpIdResponsePB::GetMetadata() const {
12162
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12163
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
12164
0
}
12165
12166
12167
// ===================================================================
12168
12169
26.8k
void GetConsensusStateRequestPB::InitAsDefaultInstance() {
12170
26.8k
}
12171
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12172
const int GetConsensusStateRequestPB::kDestUuidFieldNumber;
12173
const int GetConsensusStateRequestPB::kTabletIdFieldNumber;
12174
const int GetConsensusStateRequestPB::kTypeFieldNumber;
12175
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12176
12177
GetConsensusStateRequestPB::GetConsensusStateRequestPB()
12178
35.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12179
35.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12180
8.24k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetConsensusStateRequestPB();
12181
8.24k
  }
12182
35.1k
  SharedCtor();
12183
  // @@protoc_insertion_point(constructor:yb.consensus.GetConsensusStateRequestPB)
12184
35.1k
}
12185
GetConsensusStateRequestPB::GetConsensusStateRequestPB(const GetConsensusStateRequestPB& from)
12186
  : ::google::protobuf::Message(),
12187
      _internal_metadata_(NULL),
12188
      _has_bits_(from._has_bits_),
12189
0
      _cached_size_(0) {
12190
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12191
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12192
0
  if (from.has_tablet_id()) {
12193
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
12194
0
  }
12195
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12196
0
  if (from.has_dest_uuid()) {
12197
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
12198
0
  }
12199
0
  type_ = from.type_;
12200
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetConsensusStateRequestPB)
12201
0
}
12202
12203
35.1k
void GetConsensusStateRequestPB::SharedCtor() {
12204
35.1k
  _cached_size_ = 0;
12205
35.1k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12206
35.1k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12207
35.1k
  type_ = 1;
12208
35.1k
}
12209
12210
8.24k
GetConsensusStateRequestPB::~GetConsensusStateRequestPB() {
12211
  // @@protoc_insertion_point(destructor:yb.consensus.GetConsensusStateRequestPB)
12212
8.24k
  SharedDtor();
12213
8.24k
}
12214
12215
8.24k
void GetConsensusStateRequestPB::SharedDtor() {
12216
8.24k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12217
8.24k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12218
8.24k
}
12219
12220
0
void GetConsensusStateRequestPB::SetCachedSize(int size) const {
12221
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12222
0
  _cached_size_ = size;
12223
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12224
0
}
12225
0
const ::google::protobuf::Descriptor* GetConsensusStateRequestPB::descriptor() {
12226
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12227
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12228
0
}
12229
12230
0
const GetConsensusStateRequestPB& GetConsensusStateRequestPB::default_instance() {
12231
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetConsensusStateRequestPB();
12232
0
  return *internal_default_instance();
12233
0
}
12234
12235
0
GetConsensusStateRequestPB* GetConsensusStateRequestPB::New(::google::protobuf::Arena* arena) const {
12236
0
  GetConsensusStateRequestPB* n = new GetConsensusStateRequestPB;
12237
0
  if (arena != NULL) {
12238
0
    arena->Own(n);
12239
0
  }
12240
0
  return n;
12241
0
}
12242
12243
4.06k
void GetConsensusStateRequestPB::Clear() {
12244
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetConsensusStateRequestPB)
12245
4.06k
  ::google::protobuf::uint32 cached_has_bits = 0;
12246
  // Prevent compiler warnings about cached_has_bits being unused
12247
4.06k
  (void) cached_has_bits;
12248
12249
4.06k
  cached_has_bits = _has_bits_[0];
12250
4.06k
  if (cached_has_bits & 7u) {
12251
0
    if (cached_has_bits & 0x00000001u) {
12252
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12253
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
12254
0
    }
12255
0
    if (cached_has_bits & 0x00000002u) {
12256
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12257
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
12258
0
    }
12259
0
    type_ = 1;
12260
0
  }
12261
4.06k
  _has_bits_.Clear();
12262
4.06k
  _internal_metadata_.Clear();
12263
4.06k
}
12264
12265
bool GetConsensusStateRequestPB::MergePartialFromCodedStream(
12266
4.06k
    ::google::protobuf::io::CodedInputStream* input) {
12267
11.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
12268
4.06k
  ::google::protobuf::uint32 tag;
12269
  // @@protoc_insertion_point(parse_start:yb.consensus.GetConsensusStateRequestPB)
12270
15.8k
  for (;;) {
12271
15.8k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12272
15.8k
    tag = p.first;
12273
15.8k
    if (!p.second) 
goto handle_unusual4.06k
;
12274
11.8k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12275
      // required bytes tablet_id = 1;
12276
4.06k
      case 1: {
12277
4.06k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12278
4.06k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12279
4.06k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12280
4.06k
                input, this->mutable_tablet_id()));
12281
4.06k
        } else {
12282
0
          goto handle_unusual;
12283
0
        }
12284
4.06k
        break;
12285
4.06k
      }
12286
12287
      // optional bytes dest_uuid = 2;
12288
4.06k
      case 2: {
12289
4.06k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12290
4.06k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12291
4.06k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12292
4.06k
                input, this->mutable_dest_uuid()));
12293
4.06k
        } else {
12294
0
          goto handle_unusual;
12295
0
        }
12296
4.06k
        break;
12297
4.06k
      }
12298
12299
      // optional .yb.consensus.ConsensusConfigType type = 3 [default = CONSENSUS_CONFIG_COMMITTED];
12300
4.06k
      case 3: {
12301
3.69k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12302
3.69k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
12303
3.69k
          int value;
12304
3.69k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12305
3.69k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12306
3.69k
                 input, &value)));
12307
3.69k
          if (::yb::consensus::ConsensusConfigType_IsValid(value)) {
12308
3.69k
            set_type(static_cast< ::yb::consensus::ConsensusConfigType >(value));
12309
3.69k
          } else {
12310
0
            mutable_unknown_fields()->AddVarint(
12311
0
                3, static_cast< ::google::protobuf::uint64>(value));
12312
0
          }
12313
3.69k
        } else {
12314
0
          goto handle_unusual;
12315
0
        }
12316
3.69k
        break;
12317
3.69k
      }
12318
12319
3.69k
      default: {
12320
4.06k
      handle_unusual:
12321
4.06k
        if (tag == 0) {
12322
4.06k
          goto success;
12323
4.06k
        }
12324
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12325
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12326
0
        break;
12327
0
      }
12328
11.8k
    }
12329
11.8k
  }
12330
4.06k
success:
12331
  // @@protoc_insertion_point(parse_success:yb.consensus.GetConsensusStateRequestPB)
12332
4.06k
  return true;
12333
0
failure:
12334
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetConsensusStateRequestPB)
12335
0
  return false;
12336
4.06k
#undef DO_
12337
4.06k
}
12338
12339
void GetConsensusStateRequestPB::SerializeWithCachedSizes(
12340
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12341
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetConsensusStateRequestPB)
12342
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12343
0
  (void) cached_has_bits;
12344
12345
0
  cached_has_bits = _has_bits_[0];
12346
  // required bytes tablet_id = 1;
12347
0
  if (cached_has_bits & 0x00000001u) {
12348
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12349
0
      1, this->tablet_id(), output);
12350
0
  }
12351
12352
  // optional bytes dest_uuid = 2;
12353
0
  if (cached_has_bits & 0x00000002u) {
12354
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12355
0
      2, this->dest_uuid(), output);
12356
0
  }
12357
12358
  // optional .yb.consensus.ConsensusConfigType type = 3 [default = CONSENSUS_CONFIG_COMMITTED];
12359
0
  if (cached_has_bits & 0x00000004u) {
12360
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
12361
0
      3, this->type(), output);
12362
0
  }
12363
12364
0
  if (_internal_metadata_.have_unknown_fields()) {
12365
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12366
0
        _internal_metadata_.unknown_fields(), output);
12367
0
  }
12368
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetConsensusStateRequestPB)
12369
0
}
12370
12371
::google::protobuf::uint8* GetConsensusStateRequestPB::InternalSerializeWithCachedSizesToArray(
12372
4.17k
    bool deterministic, ::google::protobuf::uint8* target) const {
12373
4.17k
  (void)deterministic; // Unused
12374
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetConsensusStateRequestPB)
12375
4.17k
  ::google::protobuf::uint32 cached_has_bits = 0;
12376
4.17k
  (void) cached_has_bits;
12377
12378
4.17k
  cached_has_bits = _has_bits_[0];
12379
  // required bytes tablet_id = 1;
12380
4.17k
  if (cached_has_bits & 0x00000001u) {
12381
4.17k
    target =
12382
4.17k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12383
4.17k
        1, this->tablet_id(), target);
12384
4.17k
  }
12385
12386
  // optional bytes dest_uuid = 2;
12387
4.17k
  if (cached_has_bits & 0x00000002u) {
12388
4.17k
    target =
12389
4.17k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12390
4.17k
        2, this->dest_uuid(), target);
12391
4.17k
  }
12392
12393
  // optional .yb.consensus.ConsensusConfigType type = 3 [default = CONSENSUS_CONFIG_COMMITTED];
12394
4.17k
  if (cached_has_bits & 0x00000004u) {
12395
3.79k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12396
3.79k
      3, this->type(), target);
12397
3.79k
  }
12398
12399
4.17k
  if (_internal_metadata_.have_unknown_fields()) {
12400
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12401
0
        _internal_metadata_.unknown_fields(), target);
12402
0
  }
12403
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetConsensusStateRequestPB)
12404
4.17k
  return target;
12405
4.17k
}
12406
12407
8.35k
size_t GetConsensusStateRequestPB::ByteSizeLong() const {
12408
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetConsensusStateRequestPB)
12409
8.35k
  size_t total_size = 0;
12410
12411
8.35k
  if (_internal_metadata_.have_unknown_fields()) {
12412
0
    total_size +=
12413
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12414
0
        _internal_metadata_.unknown_fields());
12415
0
  }
12416
  // required bytes tablet_id = 1;
12417
8.35k
  if (has_tablet_id()) {
12418
8.35k
    total_size += 1 +
12419
8.35k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
12420
8.35k
        this->tablet_id());
12421
8.35k
  }
12422
8.35k
  if (_has_bits_[0 / 32] & 6u) {
12423
    // optional bytes dest_uuid = 2;
12424
8.35k
    if (has_dest_uuid()) {
12425
8.35k
      total_size += 1 +
12426
8.35k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
12427
8.35k
          this->dest_uuid());
12428
8.35k
    }
12429
12430
    // optional .yb.consensus.ConsensusConfigType type = 3 [default = CONSENSUS_CONFIG_COMMITTED];
12431
8.35k
    if (has_type()) {
12432
7.59k
      total_size += 1 +
12433
7.59k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
12434
7.59k
    }
12435
12436
8.35k
  }
12437
8.35k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12438
8.35k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12439
8.35k
  _cached_size_ = cached_size;
12440
8.35k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12441
8.35k
  return total_size;
12442
8.35k
}
12443
12444
0
void GetConsensusStateRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
12445
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetConsensusStateRequestPB)
12446
0
  GOOGLE_DCHECK_NE(&from, this);
12447
0
  const GetConsensusStateRequestPB* source =
12448
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetConsensusStateRequestPB>(
12449
0
          &from);
12450
0
  if (source == NULL) {
12451
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetConsensusStateRequestPB)
12452
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12453
0
  } else {
12454
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetConsensusStateRequestPB)
12455
0
    MergeFrom(*source);
12456
0
  }
12457
0
}
12458
12459
0
void GetConsensusStateRequestPB::MergeFrom(const GetConsensusStateRequestPB& from) {
12460
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetConsensusStateRequestPB)
12461
0
  GOOGLE_DCHECK_NE(&from, this);
12462
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12463
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12464
0
  (void) cached_has_bits;
12465
12466
0
  cached_has_bits = from._has_bits_[0];
12467
0
  if (cached_has_bits & 7u) {
12468
0
    if (cached_has_bits & 0x00000001u) {
12469
0
      set_has_tablet_id();
12470
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
12471
0
    }
12472
0
    if (cached_has_bits & 0x00000002u) {
12473
0
      set_has_dest_uuid();
12474
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
12475
0
    }
12476
0
    if (cached_has_bits & 0x00000004u) {
12477
0
      type_ = from.type_;
12478
0
    }
12479
0
    _has_bits_[0] |= cached_has_bits;
12480
0
  }
12481
0
}
12482
12483
0
void GetConsensusStateRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
12484
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetConsensusStateRequestPB)
12485
0
  if (&from == this) return;
12486
0
  Clear();
12487
0
  MergeFrom(from);
12488
0
}
12489
12490
0
void GetConsensusStateRequestPB::CopyFrom(const GetConsensusStateRequestPB& from) {
12491
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetConsensusStateRequestPB)
12492
0
  if (&from == this) return;
12493
0
  Clear();
12494
0
  MergeFrom(from);
12495
0
}
12496
12497
8.24k
bool GetConsensusStateRequestPB::IsInitialized() const {
12498
8.24k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
12499
8.24k
  return true;
12500
8.24k
}
12501
12502
0
void GetConsensusStateRequestPB::Swap(GetConsensusStateRequestPB* other) {
12503
0
  if (other == this) return;
12504
0
  InternalSwap(other);
12505
0
}
12506
0
void GetConsensusStateRequestPB::InternalSwap(GetConsensusStateRequestPB* other) {
12507
0
  using std::swap;
12508
0
  tablet_id_.Swap(&other->tablet_id_);
12509
0
  dest_uuid_.Swap(&other->dest_uuid_);
12510
0
  swap(type_, other->type_);
12511
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12512
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12513
0
  swap(_cached_size_, other->_cached_size_);
12514
0
}
12515
12516
4.06k
::google::protobuf::Metadata GetConsensusStateRequestPB::GetMetadata() const {
12517
4.06k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12518
4.06k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
12519
4.06k
}
12520
12521
12522
// ===================================================================
12523
12524
26.8k
void GetConsensusStateResponsePB::InitAsDefaultInstance() {
12525
26.8k
  ::yb::consensus::_GetConsensusStateResponsePB_default_instance_._instance.get_mutable()->cstate_ = const_cast< ::yb::consensus::ConsensusStatePB*>(
12526
26.8k
      ::yb::consensus::ConsensusStatePB::internal_default_instance());
12527
26.8k
  ::yb::consensus::_GetConsensusStateResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
12528
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
12529
26.8k
}
12530
0
void GetConsensusStateResponsePB::clear_cstate() {
12531
0
  if (cstate_ != NULL) cstate_->Clear();
12532
0
  clear_has_cstate();
12533
0
}
12534
0
void GetConsensusStateResponsePB::clear_error() {
12535
0
  if (error_ != NULL) error_->Clear();
12536
0
  clear_has_error();
12537
0
}
12538
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12539
const int GetConsensusStateResponsePB::kCstateFieldNumber;
12540
const int GetConsensusStateResponsePB::kErrorFieldNumber;
12541
const int GetConsensusStateResponsePB::kLeaderLeaseStatusFieldNumber;
12542
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12543
12544
GetConsensusStateResponsePB::GetConsensusStateResponsePB()
12545
35.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12546
35.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12547
8.24k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetConsensusStateResponsePB();
12548
8.24k
  }
12549
35.1k
  SharedCtor();
12550
  // @@protoc_insertion_point(constructor:yb.consensus.GetConsensusStateResponsePB)
12551
35.1k
}
12552
GetConsensusStateResponsePB::GetConsensusStateResponsePB(const GetConsensusStateResponsePB& from)
12553
  : ::google::protobuf::Message(),
12554
      _internal_metadata_(NULL),
12555
      _has_bits_(from._has_bits_),
12556
0
      _cached_size_(0) {
12557
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12558
0
  if (from.has_cstate()) {
12559
0
    cstate_ = new ::yb::consensus::ConsensusStatePB(*from.cstate_);
12560
0
  } else {
12561
0
    cstate_ = NULL;
12562
0
  }
12563
0
  if (from.has_error()) {
12564
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
12565
0
  } else {
12566
0
    error_ = NULL;
12567
0
  }
12568
0
  leader_lease_status_ = from.leader_lease_status_;
12569
  // @@protoc_insertion_point(copy_constructor:yb.consensus.GetConsensusStateResponsePB)
12570
0
}
12571
12572
35.1k
void GetConsensusStateResponsePB::SharedCtor() {
12573
35.1k
  _cached_size_ = 0;
12574
35.1k
  ::memset(&cstate_, 0, static_cast<size_t>(
12575
35.1k
      reinterpret_cast<char*>(&leader_lease_status_) -
12576
35.1k
      reinterpret_cast<char*>(&cstate_)) + sizeof(leader_lease_status_));
12577
35.1k
}
12578
12579
8.24k
GetConsensusStateResponsePB::~GetConsensusStateResponsePB() {
12580
  // @@protoc_insertion_point(destructor:yb.consensus.GetConsensusStateResponsePB)
12581
8.24k
  SharedDtor();
12582
8.24k
}
12583
12584
8.24k
void GetConsensusStateResponsePB::SharedDtor() {
12585
8.24k
  if (this != internal_default_instance()) delete cstate_;
12586
8.24k
  if (this != internal_default_instance()) delete error_;
12587
8.24k
}
12588
12589
0
void GetConsensusStateResponsePB::SetCachedSize(int size) const {
12590
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12591
0
  _cached_size_ = size;
12592
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12593
0
}
12594
0
const ::google::protobuf::Descriptor* GetConsensusStateResponsePB::descriptor() {
12595
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12596
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12597
0
}
12598
12599
0
const GetConsensusStateResponsePB& GetConsensusStateResponsePB::default_instance() {
12600
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsGetConsensusStateResponsePB();
12601
0
  return *internal_default_instance();
12602
0
}
12603
12604
0
GetConsensusStateResponsePB* GetConsensusStateResponsePB::New(::google::protobuf::Arena* arena) const {
12605
0
  GetConsensusStateResponsePB* n = new GetConsensusStateResponsePB;
12606
0
  if (arena != NULL) {
12607
0
    arena->Own(n);
12608
0
  }
12609
0
  return n;
12610
0
}
12611
12612
4.04k
void GetConsensusStateResponsePB::Clear() {
12613
// @@protoc_insertion_point(message_clear_start:yb.consensus.GetConsensusStateResponsePB)
12614
4.04k
  ::google::protobuf::uint32 cached_has_bits = 0;
12615
  // Prevent compiler warnings about cached_has_bits being unused
12616
4.04k
  (void) cached_has_bits;
12617
12618
4.04k
  cached_has_bits = _has_bits_[0];
12619
4.04k
  if (cached_has_bits & 3u) {
12620
0
    if (cached_has_bits & 0x00000001u) {
12621
0
      GOOGLE_DCHECK(cstate_ != NULL);
12622
0
      cstate_->Clear();
12623
0
    }
12624
0
    if (cached_has_bits & 0x00000002u) {
12625
0
      GOOGLE_DCHECK(error_ != NULL);
12626
0
      error_->Clear();
12627
0
    }
12628
0
  }
12629
4.04k
  leader_lease_status_ = 0;
12630
4.04k
  _has_bits_.Clear();
12631
4.04k
  _internal_metadata_.Clear();
12632
4.04k
}
12633
12634
bool GetConsensusStateResponsePB::MergePartialFromCodedStream(
12635
4.04k
    ::google::protobuf::io::CodedInputStream* input) {
12636
7.90k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
12637
4.04k
  ::google::protobuf::uint32 tag;
12638
  // @@protoc_insertion_point(parse_start:yb.consensus.GetConsensusStateResponsePB)
12639
11.9k
  for (;;) {
12640
11.9k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12641
11.9k
    tag = p.first;
12642
11.9k
    if (!p.second) 
goto handle_unusual4.04k
;
12643
7.90k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12644
      // optional .yb.consensus.ConsensusStatePB cstate = 1;
12645
3.86k
      case 1: {
12646
3.86k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12647
3.86k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12648
3.86k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12649
3.86k
               input, mutable_cstate()));
12650
3.86k
        } else {
12651
0
          goto handle_unusual;
12652
0
        }
12653
3.86k
        break;
12654
3.86k
      }
12655
12656
      // optional .yb.tserver.TabletServerErrorPB error = 2;
12657
3.86k
      case 2: {
12658
181
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12659
181
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12660
181
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
12661
181
               input, mutable_error()));
12662
181
        } else {
12663
0
          goto handle_unusual;
12664
0
        }
12665
181
        break;
12666
181
      }
12667
12668
      // optional .yb.consensus.LeaderLeaseStatus leader_lease_status = 3;
12669
3.86k
      case 3: {
12670
3.86k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12671
3.86k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
12672
3.86k
          int value;
12673
3.86k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12674
3.86k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12675
3.86k
                 input, &value)));
12676
3.86k
          if (::yb::consensus::LeaderLeaseStatus_IsValid(value)) {
12677
3.86k
            set_leader_lease_status(static_cast< ::yb::consensus::LeaderLeaseStatus >(value));
12678
3.86k
          } else {
12679
0
            mutable_unknown_fields()->AddVarint(
12680
0
                3, static_cast< ::google::protobuf::uint64>(value));
12681
0
          }
12682
3.86k
        } else {
12683
0
          goto handle_unusual;
12684
0
        }
12685
3.86k
        break;
12686
3.86k
      }
12687
12688
3.86k
      default: {
12689
4.04k
      handle_unusual:
12690
4.04k
        if (tag == 0) {
12691
4.04k
          goto success;
12692
4.04k
        }
12693
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12694
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12695
0
        break;
12696
0
      }
12697
7.90k
    }
12698
7.90k
  }
12699
4.04k
success:
12700
  // @@protoc_insertion_point(parse_success:yb.consensus.GetConsensusStateResponsePB)
12701
4.04k
  return true;
12702
0
failure:
12703
  // @@protoc_insertion_point(parse_failure:yb.consensus.GetConsensusStateResponsePB)
12704
0
  return false;
12705
4.04k
#undef DO_
12706
4.04k
}
12707
12708
void GetConsensusStateResponsePB::SerializeWithCachedSizes(
12709
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12710
  // @@protoc_insertion_point(serialize_start:yb.consensus.GetConsensusStateResponsePB)
12711
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12712
0
  (void) cached_has_bits;
12713
12714
0
  cached_has_bits = _has_bits_[0];
12715
  // optional .yb.consensus.ConsensusStatePB cstate = 1;
12716
0
  if (cached_has_bits & 0x00000001u) {
12717
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12718
0
      1, *this->cstate_, output);
12719
0
  }
12720
12721
  // optional .yb.tserver.TabletServerErrorPB error = 2;
12722
0
  if (cached_has_bits & 0x00000002u) {
12723
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12724
0
      2, *this->error_, output);
12725
0
  }
12726
12727
  // optional .yb.consensus.LeaderLeaseStatus leader_lease_status = 3;
12728
0
  if (cached_has_bits & 0x00000004u) {
12729
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
12730
0
      3, this->leader_lease_status(), output);
12731
0
  }
12732
12733
0
  if (_internal_metadata_.have_unknown_fields()) {
12734
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12735
0
        _internal_metadata_.unknown_fields(), output);
12736
0
  }
12737
  // @@protoc_insertion_point(serialize_end:yb.consensus.GetConsensusStateResponsePB)
12738
0
}
12739
12740
::google::protobuf::uint8* GetConsensusStateResponsePB::InternalSerializeWithCachedSizesToArray(
12741
4.06k
    bool deterministic, ::google::protobuf::uint8* target) const {
12742
4.06k
  (void)deterministic; // Unused
12743
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.GetConsensusStateResponsePB)
12744
4.06k
  ::google::protobuf::uint32 cached_has_bits = 0;
12745
4.06k
  (void) cached_has_bits;
12746
12747
4.06k
  cached_has_bits = _has_bits_[0];
12748
  // optional .yb.consensus.ConsensusStatePB cstate = 1;
12749
4.06k
  if (cached_has_bits & 0x00000001u) {
12750
3.88k
    target = ::google::protobuf::internal::WireFormatLite::
12751
3.88k
      InternalWriteMessageToArray(
12752
3.88k
        1, *this->cstate_, deterministic, target);
12753
3.88k
  }
12754
12755
  // optional .yb.tserver.TabletServerErrorPB error = 2;
12756
4.06k
  if (cached_has_bits & 0x00000002u) {
12757
181
    target = ::google::protobuf::internal::WireFormatLite::
12758
181
      InternalWriteMessageToArray(
12759
181
        2, *this->error_, deterministic, target);
12760
181
  }
12761
12762
  // optional .yb.consensus.LeaderLeaseStatus leader_lease_status = 3;
12763
4.06k
  if (cached_has_bits & 0x00000004u) {
12764
3.88k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12765
3.88k
      3, this->leader_lease_status(), target);
12766
3.88k
  }
12767
12768
4.06k
  if (_internal_metadata_.have_unknown_fields()) {
12769
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12770
0
        _internal_metadata_.unknown_fields(), target);
12771
0
  }
12772
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.GetConsensusStateResponsePB)
12773
4.06k
  return target;
12774
4.06k
}
12775
12776
8.13k
size_t GetConsensusStateResponsePB::ByteSizeLong() const {
12777
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.GetConsensusStateResponsePB)
12778
8.13k
  size_t total_size = 0;
12779
12780
8.13k
  if (_internal_metadata_.have_unknown_fields()) {
12781
0
    total_size +=
12782
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12783
0
        _internal_metadata_.unknown_fields());
12784
0
  }
12785
8.13k
  if (_has_bits_[0 / 32] & 7u) {
12786
    // optional .yb.consensus.ConsensusStatePB cstate = 1;
12787
8.13k
    if (has_cstate()) {
12788
7.77k
      total_size += 1 +
12789
7.77k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12790
7.77k
          *this->cstate_);
12791
7.77k
    }
12792
12793
    // optional .yb.tserver.TabletServerErrorPB error = 2;
12794
8.13k
    if (has_error()) {
12795
362
      total_size += 1 +
12796
362
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12797
362
          *this->error_);
12798
362
    }
12799
12800
    // optional .yb.consensus.LeaderLeaseStatus leader_lease_status = 3;
12801
8.13k
    if (has_leader_lease_status()) {
12802
7.77k
      total_size += 1 +
12803
7.77k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->leader_lease_status());
12804
7.77k
    }
12805
12806
8.13k
  }
12807
8.13k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12808
8.13k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12809
8.13k
  _cached_size_ = cached_size;
12810
8.13k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12811
8.13k
  return total_size;
12812
8.13k
}
12813
12814
0
void GetConsensusStateResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
12815
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.GetConsensusStateResponsePB)
12816
0
  GOOGLE_DCHECK_NE(&from, this);
12817
0
  const GetConsensusStateResponsePB* source =
12818
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetConsensusStateResponsePB>(
12819
0
          &from);
12820
0
  if (source == NULL) {
12821
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.GetConsensusStateResponsePB)
12822
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12823
0
  } else {
12824
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.GetConsensusStateResponsePB)
12825
0
    MergeFrom(*source);
12826
0
  }
12827
0
}
12828
12829
0
void GetConsensusStateResponsePB::MergeFrom(const GetConsensusStateResponsePB& from) {
12830
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.GetConsensusStateResponsePB)
12831
0
  GOOGLE_DCHECK_NE(&from, this);
12832
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12833
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12834
0
  (void) cached_has_bits;
12835
12836
0
  cached_has_bits = from._has_bits_[0];
12837
0
  if (cached_has_bits & 7u) {
12838
0
    if (cached_has_bits & 0x00000001u) {
12839
0
      mutable_cstate()->::yb::consensus::ConsensusStatePB::MergeFrom(from.cstate());
12840
0
    }
12841
0
    if (cached_has_bits & 0x00000002u) {
12842
0
      mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
12843
0
    }
12844
0
    if (cached_has_bits & 0x00000004u) {
12845
0
      leader_lease_status_ = from.leader_lease_status_;
12846
0
    }
12847
0
    _has_bits_[0] |= cached_has_bits;
12848
0
  }
12849
0
}
12850
12851
0
void GetConsensusStateResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
12852
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.GetConsensusStateResponsePB)
12853
0
  if (&from == this) return;
12854
0
  Clear();
12855
0
  MergeFrom(from);
12856
0
}
12857
12858
0
void GetConsensusStateResponsePB::CopyFrom(const GetConsensusStateResponsePB& from) {
12859
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.GetConsensusStateResponsePB)
12860
0
  if (&from == this) return;
12861
0
  Clear();
12862
0
  MergeFrom(from);
12863
0
}
12864
12865
8.11k
bool GetConsensusStateResponsePB::IsInitialized() const {
12866
8.11k
  if (has_cstate()) {
12867
7.74k
    if (!this->cstate_->IsInitialized()) 
return false0
;
12868
7.74k
  }
12869
8.11k
  if (has_error()) {
12870
362
    if (!this->error_->IsInitialized()) 
return false0
;
12871
362
  }
12872
8.11k
  return true;
12873
8.11k
}
12874
12875
0
void GetConsensusStateResponsePB::Swap(GetConsensusStateResponsePB* other) {
12876
0
  if (other == this) return;
12877
0
  InternalSwap(other);
12878
0
}
12879
0
void GetConsensusStateResponsePB::InternalSwap(GetConsensusStateResponsePB* other) {
12880
0
  using std::swap;
12881
0
  swap(cstate_, other->cstate_);
12882
0
  swap(error_, other->error_);
12883
0
  swap(leader_lease_status_, other->leader_lease_status_);
12884
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12885
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12886
0
  swap(_cached_size_, other->_cached_size_);
12887
0
}
12888
12889
0
::google::protobuf::Metadata GetConsensusStateResponsePB::GetMetadata() const {
12890
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12891
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
12892
0
}
12893
12894
12895
// ===================================================================
12896
12897
26.8k
void StartRemoteBootstrapRequestPB::InitAsDefaultInstance() {
12898
26.8k
  ::yb::consensus::_StartRemoteBootstrapRequestPB_default_instance_._instance.get_mutable()->source_cloud_info_ = const_cast< ::yb::CloudInfoPB*>(
12899
26.8k
      ::yb::CloudInfoPB::internal_default_instance());
12900
26.8k
}
12901
0
void StartRemoteBootstrapRequestPB::clear_source_private_addr() {
12902
0
  source_private_addr_.Clear();
12903
0
}
12904
0
void StartRemoteBootstrapRequestPB::clear_source_broadcast_addr() {
12905
0
  source_broadcast_addr_.Clear();
12906
0
}
12907
0
void StartRemoteBootstrapRequestPB::clear_source_cloud_info() {
12908
0
  if (source_cloud_info_ != NULL) source_cloud_info_->Clear();
12909
0
  clear_has_source_cloud_info();
12910
0
}
12911
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12912
const int StartRemoteBootstrapRequestPB::kDestUuidFieldNumber;
12913
const int StartRemoteBootstrapRequestPB::kTabletIdFieldNumber;
12914
const int StartRemoteBootstrapRequestPB::kSplitParentTabletIdFieldNumber;
12915
const int StartRemoteBootstrapRequestPB::kBootstrapPeerUuidFieldNumber;
12916
const int StartRemoteBootstrapRequestPB::kSourcePrivateAddrFieldNumber;
12917
const int StartRemoteBootstrapRequestPB::kSourceBroadcastAddrFieldNumber;
12918
const int StartRemoteBootstrapRequestPB::kSourceCloudInfoFieldNumber;
12919
const int StartRemoteBootstrapRequestPB::kCallerTermFieldNumber;
12920
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12921
12922
StartRemoteBootstrapRequestPB::StartRemoteBootstrapRequestPB()
12923
160k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12924
160k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12925
133k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsStartRemoteBootstrapRequestPB();
12926
133k
  }
12927
160k
  SharedCtor();
12928
  // @@protoc_insertion_point(constructor:yb.consensus.StartRemoteBootstrapRequestPB)
12929
160k
}
12930
StartRemoteBootstrapRequestPB::StartRemoteBootstrapRequestPB(const StartRemoteBootstrapRequestPB& from)
12931
  : ::google::protobuf::Message(),
12932
      _internal_metadata_(NULL),
12933
      _has_bits_(from._has_bits_),
12934
      _cached_size_(0),
12935
      source_private_addr_(from.source_private_addr_),
12936
0
      source_broadcast_addr_(from.source_broadcast_addr_) {
12937
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12938
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12939
0
  if (from.has_tablet_id()) {
12940
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
12941
0
  }
12942
0
  bootstrap_peer_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12943
0
  if (from.has_bootstrap_peer_uuid()) {
12944
0
    bootstrap_peer_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bootstrap_peer_uuid_);
12945
0
  }
12946
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12947
0
  if (from.has_dest_uuid()) {
12948
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
12949
0
  }
12950
0
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12951
0
  if (from.has_split_parent_tablet_id()) {
12952
0
    split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
12953
0
  }
12954
0
  if (from.has_source_cloud_info()) {
12955
0
    source_cloud_info_ = new ::yb::CloudInfoPB(*from.source_cloud_info_);
12956
0
  } else {
12957
0
    source_cloud_info_ = NULL;
12958
0
  }
12959
0
  caller_term_ = from.caller_term_;
12960
  // @@protoc_insertion_point(copy_constructor:yb.consensus.StartRemoteBootstrapRequestPB)
12961
0
}
12962
12963
160k
void StartRemoteBootstrapRequestPB::SharedCtor() {
12964
160k
  _cached_size_ = 0;
12965
160k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12966
160k
  bootstrap_peer_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12967
160k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12968
160k
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12969
160k
  source_cloud_info_ = NULL;
12970
160k
  caller_term_ = GOOGLE_LONGLONG(-1);
12971
160k
}
12972
12973
86.0k
StartRemoteBootstrapRequestPB::~StartRemoteBootstrapRequestPB() {
12974
  // @@protoc_insertion_point(destructor:yb.consensus.StartRemoteBootstrapRequestPB)
12975
86.0k
  SharedDtor();
12976
86.0k
}
12977
12978
86.0k
void StartRemoteBootstrapRequestPB::SharedDtor() {
12979
86.0k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12980
86.0k
  bootstrap_peer_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12981
86.0k
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12982
86.0k
  split_parent_tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12983
86.0k
  if (this != internal_default_instance()) 
delete source_cloud_info_86.0k
;
12984
86.0k
}
12985
12986
0
void StartRemoteBootstrapRequestPB::SetCachedSize(int size) const {
12987
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12988
0
  _cached_size_ = size;
12989
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12990
0
}
12991
0
const ::google::protobuf::Descriptor* StartRemoteBootstrapRequestPB::descriptor() {
12992
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
12993
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12994
0
}
12995
12996
0
const StartRemoteBootstrapRequestPB& StartRemoteBootstrapRequestPB::default_instance() {
12997
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsStartRemoteBootstrapRequestPB();
12998
0
  return *internal_default_instance();
12999
0
}
13000
13001
0
StartRemoteBootstrapRequestPB* StartRemoteBootstrapRequestPB::New(::google::protobuf::Arena* arena) const {
13002
0
  StartRemoteBootstrapRequestPB* n = new StartRemoteBootstrapRequestPB;
13003
0
  if (arena != NULL) {
13004
0
    arena->Own(n);
13005
0
  }
13006
0
  return n;
13007
0
}
13008
13009
21.2k
void StartRemoteBootstrapRequestPB::Clear() {
13010
// @@protoc_insertion_point(message_clear_start:yb.consensus.StartRemoteBootstrapRequestPB)
13011
21.2k
  ::google::protobuf::uint32 cached_has_bits = 0;
13012
  // Prevent compiler warnings about cached_has_bits being unused
13013
21.2k
  (void) cached_has_bits;
13014
13015
21.2k
  source_private_addr_.Clear();
13016
21.2k
  source_broadcast_addr_.Clear();
13017
21.2k
  cached_has_bits = _has_bits_[0];
13018
21.2k
  if (cached_has_bits & 63u) {
13019
8.55k
    if (cached_has_bits & 0x00000001u) {
13020
8.55k
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13021
8.55k
      (*tablet_id_.UnsafeRawStringPointer())->clear();
13022
8.55k
    }
13023
8.55k
    if (cached_has_bits & 0x00000002u) {
13024
8.55k
      GOOGLE_DCHECK(!bootstrap_peer_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13025
8.55k
      (*bootstrap_peer_uuid_.UnsafeRawStringPointer())->clear();
13026
8.55k
    }
13027
8.55k
    if (cached_has_bits & 0x00000004u) {
13028
8.55k
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13029
8.55k
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
13030
8.55k
    }
13031
8.55k
    if (cached_has_bits & 0x00000008u) {
13032
80
      GOOGLE_DCHECK(!split_parent_tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13033
80
      (*split_parent_tablet_id_.UnsafeRawStringPointer())->clear();
13034
80
    }
13035
8.55k
    if (cached_has_bits & 0x00000010u) {
13036
8.55k
      GOOGLE_DCHECK(source_cloud_info_ != NULL);
13037
8.55k
      source_cloud_info_->Clear();
13038
8.55k
    }
13039
8.55k
    caller_term_ = GOOGLE_LONGLONG(-1);
13040
8.55k
  }
13041
21.2k
  _has_bits_.Clear();
13042
21.2k
  _internal_metadata_.Clear();
13043
21.2k
}
13044
13045
bool StartRemoteBootstrapRequestPB::MergePartialFromCodedStream(
13046
10.6k
    ::google::protobuf::io::CodedInputStream* input) {
13047
63.9k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
13048
10.6k
  ::google::protobuf::uint32 tag;
13049
  // @@protoc_insertion_point(parse_start:yb.consensus.StartRemoteBootstrapRequestPB)
13050
74.5k
  for (;;) {
13051
74.5k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13052
74.5k
    tag = p.first;
13053
74.5k
    if (!p.second) 
goto handle_unusual10.6k
;
13054
63.9k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13055
      // required bytes tablet_id = 1;
13056
10.6k
      case 1: {
13057
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13058
10.6k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13059
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13060
10.6k
                input, this->mutable_tablet_id()));
13061
10.6k
        } else {
13062
0
          goto handle_unusual;
13063
0
        }
13064
10.6k
        break;
13065
10.6k
      }
13066
13067
      // required bytes bootstrap_peer_uuid = 2;
13068
10.6k
      case 2: {
13069
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13070
10.6k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13071
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13072
10.6k
                input, this->mutable_bootstrap_peer_uuid()));
13073
10.6k
        } else {
13074
0
          goto handle_unusual;
13075
0
        }
13076
10.6k
        break;
13077
10.6k
      }
13078
13079
      // repeated .yb.HostPortPB source_private_addr = 3;
13080
10.6k
      case 3: {
13081
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13082
10.6k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13083
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_source_private_addr()));
13084
10.6k
        } else {
13085
0
          goto handle_unusual;
13086
0
        }
13087
10.6k
        break;
13088
10.6k
      }
13089
13090
      // optional int64 caller_term = 4 [default = -1];
13091
10.6k
      case 4: {
13092
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13093
10.6k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
13094
10.6k
          set_has_caller_term();
13095
10.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13096
10.6k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
13097
10.6k
                 input, &caller_term_)));
13098
10.6k
        } else {
13099
0
          goto handle_unusual;
13100
0
        }
13101
10.6k
        break;
13102
10.6k
      }
13103
13104
      // optional bytes dest_uuid = 5;
13105
10.6k
      case 5: {
13106
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13107
10.6k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
13108
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13109
10.6k
                input, this->mutable_dest_uuid()));
13110
10.6k
        } else {
13111
0
          goto handle_unusual;
13112
0
        }
13113
10.6k
        break;
13114
10.6k
      }
13115
13116
      // repeated .yb.HostPortPB source_broadcast_addr = 6;
13117
10.6k
      case 6: {
13118
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13119
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
13120
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_source_broadcast_addr()));
13121
0
        } else {
13122
0
          goto handle_unusual;
13123
0
        }
13124
0
        break;
13125
0
      }
13126
13127
      // optional .yb.CloudInfoPB source_cloud_info = 7;
13128
10.6k
      case 7: {
13129
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13130
10.6k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
13131
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13132
10.6k
               input, mutable_source_cloud_info()));
13133
10.6k
        } else {
13134
0
          goto handle_unusual;
13135
0
        }
13136
10.6k
        break;
13137
10.6k
      }
13138
13139
      // optional bytes split_parent_tablet_id = 8;
13140
10.6k
      case 8: {
13141
88
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13142
88
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
13143
88
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13144
88
                input, this->mutable_split_parent_tablet_id()));
13145
88
        } else {
13146
0
          goto handle_unusual;
13147
0
        }
13148
88
        break;
13149
88
      }
13150
13151
88
      default: {
13152
10.6k
      handle_unusual:
13153
10.6k
        if (tag == 0) {
13154
10.6k
          goto success;
13155
10.6k
        }
13156
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13157
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13158
0
        break;
13159
0
      }
13160
63.9k
    }
13161
63.9k
  }
13162
10.6k
success:
13163
  // @@protoc_insertion_point(parse_success:yb.consensus.StartRemoteBootstrapRequestPB)
13164
10.6k
  return true;
13165
0
failure:
13166
  // @@protoc_insertion_point(parse_failure:yb.consensus.StartRemoteBootstrapRequestPB)
13167
0
  return false;
13168
10.6k
#undef DO_
13169
10.6k
}
13170
13171
void StartRemoteBootstrapRequestPB::SerializeWithCachedSizes(
13172
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13173
  // @@protoc_insertion_point(serialize_start:yb.consensus.StartRemoteBootstrapRequestPB)
13174
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13175
0
  (void) cached_has_bits;
13176
13177
0
  cached_has_bits = _has_bits_[0];
13178
  // required bytes tablet_id = 1;
13179
0
  if (cached_has_bits & 0x00000001u) {
13180
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13181
0
      1, this->tablet_id(), output);
13182
0
  }
13183
13184
  // required bytes bootstrap_peer_uuid = 2;
13185
0
  if (cached_has_bits & 0x00000002u) {
13186
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13187
0
      2, this->bootstrap_peer_uuid(), output);
13188
0
  }
13189
13190
  // repeated .yb.HostPortPB source_private_addr = 3;
13191
0
  for (unsigned int i = 0,
13192
0
      n = static_cast<unsigned int>(this->source_private_addr_size()); i < n; i++) {
13193
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13194
0
      3, this->source_private_addr(static_cast<int>(i)), output);
13195
0
  }
13196
13197
  // optional int64 caller_term = 4 [default = -1];
13198
0
  if (cached_has_bits & 0x00000020u) {
13199
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->caller_term(), output);
13200
0
  }
13201
13202
  // optional bytes dest_uuid = 5;
13203
0
  if (cached_has_bits & 0x00000004u) {
13204
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13205
0
      5, this->dest_uuid(), output);
13206
0
  }
13207
13208
  // repeated .yb.HostPortPB source_broadcast_addr = 6;
13209
0
  for (unsigned int i = 0,
13210
0
      n = static_cast<unsigned int>(this->source_broadcast_addr_size()); i < n; i++) {
13211
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13212
0
      6, this->source_broadcast_addr(static_cast<int>(i)), output);
13213
0
  }
13214
13215
  // optional .yb.CloudInfoPB source_cloud_info = 7;
13216
0
  if (cached_has_bits & 0x00000010u) {
13217
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13218
0
      7, *this->source_cloud_info_, output);
13219
0
  }
13220
13221
  // optional bytes split_parent_tablet_id = 8;
13222
0
  if (cached_has_bits & 0x00000008u) {
13223
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13224
0
      8, this->split_parent_tablet_id(), output);
13225
0
  }
13226
13227
0
  if (_internal_metadata_.have_unknown_fields()) {
13228
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13229
0
        _internal_metadata_.unknown_fields(), output);
13230
0
  }
13231
  // @@protoc_insertion_point(serialize_end:yb.consensus.StartRemoteBootstrapRequestPB)
13232
0
}
13233
13234
::google::protobuf::uint8* StartRemoteBootstrapRequestPB::InternalSerializeWithCachedSizesToArray(
13235
10.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
13236
10.6k
  (void)deterministic; // Unused
13237
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.StartRemoteBootstrapRequestPB)
13238
10.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
13239
10.6k
  (void) cached_has_bits;
13240
13241
10.6k
  cached_has_bits = _has_bits_[0];
13242
  // required bytes tablet_id = 1;
13243
10.6k
  if (
cached_has_bits & 0x00000001u10.6k
) {
13244
10.6k
    target =
13245
10.6k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13246
10.6k
        1, this->tablet_id(), target);
13247
10.6k
  }
13248
13249
  // required bytes bootstrap_peer_uuid = 2;
13250
10.6k
  if (cached_has_bits & 0x00000002u) {
13251
10.6k
    target =
13252
10.6k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13253
10.6k
        2, this->bootstrap_peer_uuid(), target);
13254
10.6k
  }
13255
13256
  // repeated .yb.HostPortPB source_private_addr = 3;
13257
10.6k
  for (unsigned int i = 0,
13258
21.2k
      n = static_cast<unsigned int>(this->source_private_addr_size()); i < n; 
i++10.6k
) {
13259
10.6k
    target = ::google::protobuf::internal::WireFormatLite::
13260
10.6k
      InternalWriteMessageToArray(
13261
10.6k
        3, this->source_private_addr(static_cast<int>(i)), deterministic, target);
13262
10.6k
  }
13263
13264
  // optional int64 caller_term = 4 [default = -1];
13265
10.6k
  if (cached_has_bits & 0x00000020u) {
13266
10.6k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->caller_term(), target);
13267
10.6k
  }
13268
13269
  // optional bytes dest_uuid = 5;
13270
10.6k
  if (cached_has_bits & 0x00000004u) {
13271
10.6k
    target =
13272
10.6k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13273
10.6k
        5, this->dest_uuid(), target);
13274
10.6k
  }
13275
13276
  // repeated .yb.HostPortPB source_broadcast_addr = 6;
13277
10.6k
  for (unsigned int i = 0,
13278
10.6k
      n = static_cast<unsigned int>(this->source_broadcast_addr_size()); i < n; 
i++0
) {
13279
0
    target = ::google::protobuf::internal::WireFormatLite::
13280
0
      InternalWriteMessageToArray(
13281
0
        6, this->source_broadcast_addr(static_cast<int>(i)), deterministic, target);
13282
0
  }
13283
13284
  // optional .yb.CloudInfoPB source_cloud_info = 7;
13285
10.6k
  if (cached_has_bits & 0x00000010u) {
13286
10.6k
    target = ::google::protobuf::internal::WireFormatLite::
13287
10.6k
      InternalWriteMessageToArray(
13288
10.6k
        7, *this->source_cloud_info_, deterministic, target);
13289
10.6k
  }
13290
13291
  // optional bytes split_parent_tablet_id = 8;
13292
10.6k
  if (cached_has_bits & 0x00000008u) {
13293
88
    target =
13294
88
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13295
88
        8, this->split_parent_tablet_id(), target);
13296
88
  }
13297
13298
10.6k
  if (_internal_metadata_.have_unknown_fields()) {
13299
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13300
0
        _internal_metadata_.unknown_fields(), target);
13301
0
  }
13302
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.StartRemoteBootstrapRequestPB)
13303
10.6k
  return target;
13304
10.6k
}
13305
13306
0
size_t StartRemoteBootstrapRequestPB::RequiredFieldsByteSizeFallback() const {
13307
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.StartRemoteBootstrapRequestPB)
13308
0
  size_t total_size = 0;
13309
13310
0
  if (has_tablet_id()) {
13311
    // required bytes tablet_id = 1;
13312
0
    total_size += 1 +
13313
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
13314
0
        this->tablet_id());
13315
0
  }
13316
13317
0
  if (has_bootstrap_peer_uuid()) {
13318
    // required bytes bootstrap_peer_uuid = 2;
13319
0
    total_size += 1 +
13320
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
13321
0
        this->bootstrap_peer_uuid());
13322
0
  }
13323
13324
0
  return total_size;
13325
0
}
13326
21.2k
size_t StartRemoteBootstrapRequestPB::ByteSizeLong() const {
13327
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.StartRemoteBootstrapRequestPB)
13328
21.2k
  size_t total_size = 0;
13329
13330
21.2k
  if (_internal_metadata_.have_unknown_fields()) {
13331
0
    total_size +=
13332
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13333
0
        _internal_metadata_.unknown_fields());
13334
0
  }
13335
21.2k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
13336
    // required bytes tablet_id = 1;
13337
21.2k
    total_size += 1 +
13338
21.2k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
13339
21.2k
        this->tablet_id());
13340
13341
    // required bytes bootstrap_peer_uuid = 2;
13342
21.2k
    total_size += 1 +
13343
21.2k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
13344
21.2k
        this->bootstrap_peer_uuid());
13345
13346
21.2k
  } else {
13347
3
    total_size += RequiredFieldsByteSizeFallback();
13348
3
  }
13349
  // repeated .yb.HostPortPB source_private_addr = 3;
13350
21.2k
  {
13351
21.2k
    unsigned int count = static_cast<unsigned int>(this->source_private_addr_size());
13352
21.2k
    total_size += 1UL * count;
13353
42.5k
    for (unsigned int i = 0; i < count; 
i++21.2k
) {
13354
21.2k
      total_size +=
13355
21.2k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13356
21.2k
          this->source_private_addr(static_cast<int>(i)));
13357
21.2k
    }
13358
21.2k
  }
13359
13360
  // repeated .yb.HostPortPB source_broadcast_addr = 6;
13361
21.2k
  {
13362
21.2k
    unsigned int count = static_cast<unsigned int>(this->source_broadcast_addr_size());
13363
21.2k
    total_size += 1UL * count;
13364
21.2k
    for (unsigned int i = 0; i < count; 
i++0
) {
13365
0
      total_size +=
13366
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13367
0
          this->source_broadcast_addr(static_cast<int>(i)));
13368
0
    }
13369
21.2k
  }
13370
13371
21.2k
  if (_has_bits_[0 / 32] & 60u) {
13372
    // optional bytes dest_uuid = 5;
13373
21.2k
    if (has_dest_uuid()) {
13374
21.2k
      total_size += 1 +
13375
21.2k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13376
21.2k
          this->dest_uuid());
13377
21.2k
    }
13378
13379
    // optional bytes split_parent_tablet_id = 8;
13380
21.2k
    if (has_split_parent_tablet_id()) {
13381
176
      total_size += 1 +
13382
176
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13383
176
          this->split_parent_tablet_id());
13384
176
    }
13385
13386
    // optional .yb.CloudInfoPB source_cloud_info = 7;
13387
21.2k
    if (has_source_cloud_info()) {
13388
21.2k
      total_size += 1 +
13389
21.2k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13390
21.2k
          *this->source_cloud_info_);
13391
21.2k
    }
13392
13393
    // optional int64 caller_term = 4 [default = -1];
13394
21.2k
    if (has_caller_term()) {
13395
21.2k
      total_size += 1 +
13396
21.2k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
13397
21.2k
          this->caller_term());
13398
21.2k
    }
13399
13400
21.2k
  }
13401
21.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13402
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13403
21.2k
  _cached_size_ = cached_size;
13404
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13405
21.2k
  return total_size;
13406
21.2k
}
13407
13408
0
void StartRemoteBootstrapRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
13409
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.StartRemoteBootstrapRequestPB)
13410
0
  GOOGLE_DCHECK_NE(&from, this);
13411
0
  const StartRemoteBootstrapRequestPB* source =
13412
0
      ::google::protobuf::internal::DynamicCastToGenerated<const StartRemoteBootstrapRequestPB>(
13413
0
          &from);
13414
0
  if (source == NULL) {
13415
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.StartRemoteBootstrapRequestPB)
13416
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13417
0
  } else {
13418
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.StartRemoteBootstrapRequestPB)
13419
0
    MergeFrom(*source);
13420
0
  }
13421
0
}
13422
13423
0
void StartRemoteBootstrapRequestPB::MergeFrom(const StartRemoteBootstrapRequestPB& from) {
13424
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.StartRemoteBootstrapRequestPB)
13425
0
  GOOGLE_DCHECK_NE(&from, this);
13426
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13427
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13428
0
  (void) cached_has_bits;
13429
13430
0
  source_private_addr_.MergeFrom(from.source_private_addr_);
13431
0
  source_broadcast_addr_.MergeFrom(from.source_broadcast_addr_);
13432
0
  cached_has_bits = from._has_bits_[0];
13433
0
  if (cached_has_bits & 63u) {
13434
0
    if (cached_has_bits & 0x00000001u) {
13435
0
      set_has_tablet_id();
13436
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
13437
0
    }
13438
0
    if (cached_has_bits & 0x00000002u) {
13439
0
      set_has_bootstrap_peer_uuid();
13440
0
      bootstrap_peer_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bootstrap_peer_uuid_);
13441
0
    }
13442
0
    if (cached_has_bits & 0x00000004u) {
13443
0
      set_has_dest_uuid();
13444
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
13445
0
    }
13446
0
    if (cached_has_bits & 0x00000008u) {
13447
0
      set_has_split_parent_tablet_id();
13448
0
      split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
13449
0
    }
13450
0
    if (cached_has_bits & 0x00000010u) {
13451
0
      mutable_source_cloud_info()->::yb::CloudInfoPB::MergeFrom(from.source_cloud_info());
13452
0
    }
13453
0
    if (cached_has_bits & 0x00000020u) {
13454
0
      caller_term_ = from.caller_term_;
13455
0
    }
13456
0
    _has_bits_[0] |= cached_has_bits;
13457
0
  }
13458
0
}
13459
13460
0
void StartRemoteBootstrapRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
13461
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.StartRemoteBootstrapRequestPB)
13462
0
  if (&from == this) return;
13463
0
  Clear();
13464
0
  MergeFrom(from);
13465
0
}
13466
13467
0
void StartRemoteBootstrapRequestPB::CopyFrom(const StartRemoteBootstrapRequestPB& from) {
13468
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.StartRemoteBootstrapRequestPB)
13469
0
  if (&from == this) return;
13470
0
  Clear();
13471
0
  MergeFrom(from);
13472
0
}
13473
13474
21.2k
bool StartRemoteBootstrapRequestPB::IsInitialized() const {
13475
21.2k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) 
return false0
;
13476
21.2k
  if (!::google::protobuf::internal::AllAreInitialized(this->source_private_addr())) 
return false0
;
13477
21.2k
  if (!::google::protobuf::internal::AllAreInitialized(this->source_broadcast_addr())) 
return false0
;
13478
21.2k
  return true;
13479
21.2k
}
13480
13481
0
void StartRemoteBootstrapRequestPB::Swap(StartRemoteBootstrapRequestPB* other) {
13482
0
  if (other == this) return;
13483
0
  InternalSwap(other);
13484
0
}
13485
0
void StartRemoteBootstrapRequestPB::InternalSwap(StartRemoteBootstrapRequestPB* other) {
13486
0
  using std::swap;
13487
0
  source_private_addr_.InternalSwap(&other->source_private_addr_);
13488
0
  source_broadcast_addr_.InternalSwap(&other->source_broadcast_addr_);
13489
0
  tablet_id_.Swap(&other->tablet_id_);
13490
0
  bootstrap_peer_uuid_.Swap(&other->bootstrap_peer_uuid_);
13491
0
  dest_uuid_.Swap(&other->dest_uuid_);
13492
0
  split_parent_tablet_id_.Swap(&other->split_parent_tablet_id_);
13493
0
  swap(source_cloud_info_, other->source_cloud_info_);
13494
0
  swap(caller_term_, other->caller_term_);
13495
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13496
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13497
0
  swap(_cached_size_, other->_cached_size_);
13498
0
}
13499
13500
10.7k
::google::protobuf::Metadata StartRemoteBootstrapRequestPB::GetMetadata() const {
13501
10.7k
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
13502
10.7k
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
13503
10.7k
}
13504
13505
13506
// ===================================================================
13507
13508
26.8k
void StartRemoteBootstrapResponsePB::InitAsDefaultInstance() {
13509
26.8k
  ::yb::consensus::_StartRemoteBootstrapResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
13510
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
13511
26.8k
}
13512
0
void StartRemoteBootstrapResponsePB::clear_error() {
13513
0
  if (error_ != NULL) error_->Clear();
13514
0
  clear_has_error();
13515
0
}
13516
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13517
const int StartRemoteBootstrapResponsePB::kErrorFieldNumber;
13518
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13519
13520
StartRemoteBootstrapResponsePB::StartRemoteBootstrapResponsePB()
13521
160k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13522
160k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13523
133k
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsStartRemoteBootstrapResponsePB();
13524
133k
  }
13525
160k
  SharedCtor();
13526
  // @@protoc_insertion_point(constructor:yb.consensus.StartRemoteBootstrapResponsePB)
13527
160k
}
13528
StartRemoteBootstrapResponsePB::StartRemoteBootstrapResponsePB(const StartRemoteBootstrapResponsePB& from)
13529
  : ::google::protobuf::Message(),
13530
      _internal_metadata_(NULL),
13531
      _has_bits_(from._has_bits_),
13532
0
      _cached_size_(0) {
13533
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13534
0
  if (from.has_error()) {
13535
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
13536
0
  } else {
13537
0
    error_ = NULL;
13538
0
  }
13539
  // @@protoc_insertion_point(copy_constructor:yb.consensus.StartRemoteBootstrapResponsePB)
13540
0
}
13541
13542
160k
void StartRemoteBootstrapResponsePB::SharedCtor() {
13543
160k
  _cached_size_ = 0;
13544
160k
  error_ = NULL;
13545
160k
}
13546
13547
86.0k
StartRemoteBootstrapResponsePB::~StartRemoteBootstrapResponsePB() {
13548
  // @@protoc_insertion_point(destructor:yb.consensus.StartRemoteBootstrapResponsePB)
13549
86.0k
  SharedDtor();
13550
86.0k
}
13551
13552
86.0k
void StartRemoteBootstrapResponsePB::SharedDtor() {
13553
86.0k
  if (this != internal_default_instance()) 
delete error_86.0k
;
13554
86.0k
}
13555
13556
0
void StartRemoteBootstrapResponsePB::SetCachedSize(int size) const {
13557
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13558
0
  _cached_size_ = size;
13559
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13560
0
}
13561
0
const ::google::protobuf::Descriptor* StartRemoteBootstrapResponsePB::descriptor() {
13562
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
13563
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13564
0
}
13565
13566
0
const StartRemoteBootstrapResponsePB& StartRemoteBootstrapResponsePB::default_instance() {
13567
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsStartRemoteBootstrapResponsePB();
13568
0
  return *internal_default_instance();
13569
0
}
13570
13571
0
StartRemoteBootstrapResponsePB* StartRemoteBootstrapResponsePB::New(::google::protobuf::Arena* arena) const {
13572
0
  StartRemoteBootstrapResponsePB* n = new StartRemoteBootstrapResponsePB;
13573
0
  if (arena != NULL) {
13574
0
    arena->Own(n);
13575
0
  }
13576
0
  return n;
13577
0
}
13578
13579
10.4k
void StartRemoteBootstrapResponsePB::Clear() {
13580
// @@protoc_insertion_point(message_clear_start:yb.consensus.StartRemoteBootstrapResponsePB)
13581
10.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
13582
  // Prevent compiler warnings about cached_has_bits being unused
13583
10.4k
  (void) cached_has_bits;
13584
13585
10.4k
  cached_has_bits = _has_bits_[0];
13586
10.4k
  if (cached_has_bits & 0x00000001u) {
13587
8.49k
    GOOGLE_DCHECK(error_ != NULL);
13588
8.49k
    error_->Clear();
13589
8.49k
  }
13590
10.4k
  _has_bits_.Clear();
13591
10.4k
  _internal_metadata_.Clear();
13592
10.4k
}
13593
13594
bool StartRemoteBootstrapResponsePB::MergePartialFromCodedStream(
13595
10.4k
    ::google::protobuf::io::CodedInputStream* input) {
13596
10.4k
#define DO_(EXPRESSION) 
if (8.62k
!GOOGLE_PREDICT_TRUE8.62k
(EXPRESSION))
goto failure0
13597
10.4k
  ::google::protobuf::uint32 tag;
13598
  // @@protoc_insertion_point(parse_start:yb.consensus.StartRemoteBootstrapResponsePB)
13599
19.1k
  for (;;) {
13600
19.1k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13601
19.1k
    tag = p.first;
13602
19.1k
    if (!p.second) 
goto handle_unusual10.4k
;
13603
8.62k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13604
      // optional .yb.tserver.TabletServerErrorPB error = 1;
13605
8.62k
      case 1: {
13606
8.62k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13607
8.62k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13608
8.62k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13609
8.62k
               input, mutable_error()));
13610
8.62k
        } else {
13611
0
          goto handle_unusual;
13612
0
        }
13613
8.62k
        break;
13614
8.62k
      }
13615
13616
8.62k
      default: {
13617
10.4k
      handle_unusual:
13618
10.4k
        if (tag == 0) {
13619
10.4k
          goto success;
13620
10.4k
        }
13621
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13622
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13623
0
        break;
13624
0
      }
13625
8.62k
    }
13626
8.62k
  }
13627
10.4k
success:
13628
  // @@protoc_insertion_point(parse_success:yb.consensus.StartRemoteBootstrapResponsePB)
13629
10.4k
  return true;
13630
0
failure:
13631
  // @@protoc_insertion_point(parse_failure:yb.consensus.StartRemoteBootstrapResponsePB)
13632
0
  return false;
13633
10.4k
#undef DO_
13634
10.4k
}
13635
13636
void StartRemoteBootstrapResponsePB::SerializeWithCachedSizes(
13637
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13638
  // @@protoc_insertion_point(serialize_start:yb.consensus.StartRemoteBootstrapResponsePB)
13639
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13640
0
  (void) cached_has_bits;
13641
13642
0
  cached_has_bits = _has_bits_[0];
13643
  // optional .yb.tserver.TabletServerErrorPB error = 1;
13644
0
  if (cached_has_bits & 0x00000001u) {
13645
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13646
0
      1, *this->error_, output);
13647
0
  }
13648
13649
0
  if (_internal_metadata_.have_unknown_fields()) {
13650
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13651
0
        _internal_metadata_.unknown_fields(), output);
13652
0
  }
13653
  // @@protoc_insertion_point(serialize_end:yb.consensus.StartRemoteBootstrapResponsePB)
13654
0
}
13655
13656
::google::protobuf::uint8* StartRemoteBootstrapResponsePB::InternalSerializeWithCachedSizesToArray(
13657
10.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
13658
10.6k
  (void)deterministic; // Unused
13659
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.StartRemoteBootstrapResponsePB)
13660
10.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
13661
10.6k
  (void) cached_has_bits;
13662
13663
10.6k
  cached_has_bits = _has_bits_[0];
13664
  // optional .yb.tserver.TabletServerErrorPB error = 1;
13665
10.6k
  if (cached_has_bits & 0x00000001u) {
13666
8.62k
    target = ::google::protobuf::internal::WireFormatLite::
13667
8.62k
      InternalWriteMessageToArray(
13668
8.62k
        1, *this->error_, deterministic, target);
13669
8.62k
  }
13670
13671
10.6k
  if (_internal_metadata_.have_unknown_fields()) {
13672
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13673
0
        _internal_metadata_.unknown_fields(), target);
13674
0
  }
13675
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.StartRemoteBootstrapResponsePB)
13676
10.6k
  return target;
13677
10.6k
}
13678
13679
21.2k
size_t StartRemoteBootstrapResponsePB::ByteSizeLong() const {
13680
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.StartRemoteBootstrapResponsePB)
13681
21.2k
  size_t total_size = 0;
13682
13683
21.2k
  if (_internal_metadata_.have_unknown_fields()) {
13684
0
    total_size +=
13685
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13686
0
        _internal_metadata_.unknown_fields());
13687
0
  }
13688
  // optional .yb.tserver.TabletServerErrorPB error = 1;
13689
21.2k
  if (has_error()) {
13690
17.2k
    total_size += 1 +
13691
17.2k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
13692
17.2k
        *this->error_);
13693
17.2k
  }
13694
13695
21.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13696
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13697
21.2k
  _cached_size_ = cached_size;
13698
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13699
21.2k
  return total_size;
13700
21.2k
}
13701
13702
0
void StartRemoteBootstrapResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
13703
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.StartRemoteBootstrapResponsePB)
13704
0
  GOOGLE_DCHECK_NE(&from, this);
13705
0
  const StartRemoteBootstrapResponsePB* source =
13706
0
      ::google::protobuf::internal::DynamicCastToGenerated<const StartRemoteBootstrapResponsePB>(
13707
0
          &from);
13708
0
  if (source == NULL) {
13709
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.StartRemoteBootstrapResponsePB)
13710
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13711
0
  } else {
13712
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.StartRemoteBootstrapResponsePB)
13713
0
    MergeFrom(*source);
13714
0
  }
13715
0
}
13716
13717
0
void StartRemoteBootstrapResponsePB::MergeFrom(const StartRemoteBootstrapResponsePB& from) {
13718
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.StartRemoteBootstrapResponsePB)
13719
0
  GOOGLE_DCHECK_NE(&from, this);
13720
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13721
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13722
0
  (void) cached_has_bits;
13723
13724
0
  if (from.has_error()) {
13725
0
    mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
13726
0
  }
13727
0
}
13728
13729
0
void StartRemoteBootstrapResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
13730
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.StartRemoteBootstrapResponsePB)
13731
0
  if (&from == this) return;
13732
0
  Clear();
13733
0
  MergeFrom(from);
13734
0
}
13735
13736
0
void StartRemoteBootstrapResponsePB::CopyFrom(const StartRemoteBootstrapResponsePB& from) {
13737
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.StartRemoteBootstrapResponsePB)
13738
0
  if (&from == this) return;
13739
0
  Clear();
13740
0
  MergeFrom(from);
13741
0
}
13742
13743
21.1k
bool StartRemoteBootstrapResponsePB::IsInitialized() const {
13744
21.1k
  if (has_error()) {
13745
17.2k
    if (!this->error_->IsInitialized()) 
return false0
;
13746
17.2k
  }
13747
21.1k
  return true;
13748
21.1k
}
13749
13750
0
void StartRemoteBootstrapResponsePB::Swap(StartRemoteBootstrapResponsePB* other) {
13751
0
  if (other == this) return;
13752
0
  InternalSwap(other);
13753
0
}
13754
0
void StartRemoteBootstrapResponsePB::InternalSwap(StartRemoteBootstrapResponsePB* other) {
13755
0
  using std::swap;
13756
0
  swap(error_, other->error_);
13757
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13758
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13759
0
  swap(_cached_size_, other->_cached_size_);
13760
0
}
13761
13762
114
::google::protobuf::Metadata StartRemoteBootstrapResponsePB::GetMetadata() const {
13763
114
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
13764
114
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
13765
114
}
13766
13767
13768
// ===================================================================
13769
13770
26.8k
void UnsafeChangeConfigRequestPB::InitAsDefaultInstance() {
13771
26.8k
  ::yb::consensus::_UnsafeChangeConfigRequestPB_default_instance_._instance.get_mutable()->new_config_ = const_cast< ::yb::consensus::RaftConfigPB*>(
13772
26.8k
      ::yb::consensus::RaftConfigPB::internal_default_instance());
13773
26.8k
}
13774
0
void UnsafeChangeConfigRequestPB::clear_new_config() {
13775
0
  if (new_config_ != NULL) new_config_->Clear();
13776
0
  clear_has_new_config();
13777
0
}
13778
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13779
const int UnsafeChangeConfigRequestPB::kDestUuidFieldNumber;
13780
const int UnsafeChangeConfigRequestPB::kTabletIdFieldNumber;
13781
const int UnsafeChangeConfigRequestPB::kCallerIdFieldNumber;
13782
const int UnsafeChangeConfigRequestPB::kNewConfigFieldNumber;
13783
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13784
13785
UnsafeChangeConfigRequestPB::UnsafeChangeConfigRequestPB()
13786
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13787
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13788
12
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsUnsafeChangeConfigRequestPB();
13789
12
  }
13790
26.8k
  SharedCtor();
13791
  // @@protoc_insertion_point(constructor:yb.consensus.UnsafeChangeConfigRequestPB)
13792
26.8k
}
13793
UnsafeChangeConfigRequestPB::UnsafeChangeConfigRequestPB(const UnsafeChangeConfigRequestPB& from)
13794
  : ::google::protobuf::Message(),
13795
      _internal_metadata_(NULL),
13796
      _has_bits_(from._has_bits_),
13797
0
      _cached_size_(0) {
13798
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13799
0
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13800
0
  if (from.has_dest_uuid()) {
13801
0
    dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
13802
0
  }
13803
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13804
0
  if (from.has_tablet_id()) {
13805
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
13806
0
  }
13807
0
  caller_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13808
0
  if (from.has_caller_id()) {
13809
0
    caller_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.caller_id_);
13810
0
  }
13811
0
  if (from.has_new_config()) {
13812
0
    new_config_ = new ::yb::consensus::RaftConfigPB(*from.new_config_);
13813
0
  } else {
13814
0
    new_config_ = NULL;
13815
0
  }
13816
  // @@protoc_insertion_point(copy_constructor:yb.consensus.UnsafeChangeConfigRequestPB)
13817
0
}
13818
13819
26.8k
void UnsafeChangeConfigRequestPB::SharedCtor() {
13820
26.8k
  _cached_size_ = 0;
13821
26.8k
  dest_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13822
26.8k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13823
26.8k
  caller_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13824
26.8k
  new_config_ = NULL;
13825
26.8k
}
13826
13827
12
UnsafeChangeConfigRequestPB::~UnsafeChangeConfigRequestPB() {
13828
  // @@protoc_insertion_point(destructor:yb.consensus.UnsafeChangeConfigRequestPB)
13829
12
  SharedDtor();
13830
12
}
13831
13832
12
void UnsafeChangeConfigRequestPB::SharedDtor() {
13833
12
  dest_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13834
12
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13835
12
  caller_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13836
12
  if (this != internal_default_instance()) delete new_config_;
13837
12
}
13838
13839
0
void UnsafeChangeConfigRequestPB::SetCachedSize(int size) const {
13840
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13841
0
  _cached_size_ = size;
13842
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13843
0
}
13844
0
const ::google::protobuf::Descriptor* UnsafeChangeConfigRequestPB::descriptor() {
13845
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
13846
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13847
0
}
13848
13849
0
const UnsafeChangeConfigRequestPB& UnsafeChangeConfigRequestPB::default_instance() {
13850
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsUnsafeChangeConfigRequestPB();
13851
0
  return *internal_default_instance();
13852
0
}
13853
13854
0
UnsafeChangeConfigRequestPB* UnsafeChangeConfigRequestPB::New(::google::protobuf::Arena* arena) const {
13855
0
  UnsafeChangeConfigRequestPB* n = new UnsafeChangeConfigRequestPB;
13856
0
  if (arena != NULL) {
13857
0
    arena->Own(n);
13858
0
  }
13859
0
  return n;
13860
0
}
13861
13862
6
void UnsafeChangeConfigRequestPB::Clear() {
13863
// @@protoc_insertion_point(message_clear_start:yb.consensus.UnsafeChangeConfigRequestPB)
13864
6
  ::google::protobuf::uint32 cached_has_bits = 0;
13865
  // Prevent compiler warnings about cached_has_bits being unused
13866
6
  (void) cached_has_bits;
13867
13868
6
  cached_has_bits = _has_bits_[0];
13869
6
  if (cached_has_bits & 15u) {
13870
0
    if (cached_has_bits & 0x00000001u) {
13871
0
      GOOGLE_DCHECK(!dest_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13872
0
      (*dest_uuid_.UnsafeRawStringPointer())->clear();
13873
0
    }
13874
0
    if (cached_has_bits & 0x00000002u) {
13875
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13876
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
13877
0
    }
13878
0
    if (cached_has_bits & 0x00000004u) {
13879
0
      GOOGLE_DCHECK(!caller_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13880
0
      (*caller_id_.UnsafeRawStringPointer())->clear();
13881
0
    }
13882
0
    if (cached_has_bits & 0x00000008u) {
13883
0
      GOOGLE_DCHECK(new_config_ != NULL);
13884
0
      new_config_->Clear();
13885
0
    }
13886
0
  }
13887
6
  _has_bits_.Clear();
13888
6
  _internal_metadata_.Clear();
13889
6
}
13890
13891
bool UnsafeChangeConfigRequestPB::MergePartialFromCodedStream(
13892
6
    ::google::protobuf::io::CodedInputStream* input) {
13893
24
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
13894
6
  ::google::protobuf::uint32 tag;
13895
  // @@protoc_insertion_point(parse_start:yb.consensus.UnsafeChangeConfigRequestPB)
13896
30
  for (;;) {
13897
30
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13898
30
    tag = p.first;
13899
30
    if (!p.second) 
goto handle_unusual6
;
13900
24
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13901
      // optional bytes dest_uuid = 1;
13902
6
      case 1: {
13903
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13904
6
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13905
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13906
6
                input, this->mutable_dest_uuid()));
13907
6
        } else {
13908
0
          goto handle_unusual;
13909
0
        }
13910
6
        break;
13911
6
      }
13912
13913
      // required bytes tablet_id = 2;
13914
6
      case 2: {
13915
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13916
6
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13917
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13918
6
                input, this->mutable_tablet_id()));
13919
6
        } else {
13920
0
          goto handle_unusual;
13921
0
        }
13922
6
        break;
13923
6
      }
13924
13925
      // required bytes caller_id = 3;
13926
6
      case 3: {
13927
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13928
6
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13929
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13930
6
                input, this->mutable_caller_id()));
13931
6
        } else {
13932
0
          goto handle_unusual;
13933
0
        }
13934
6
        break;
13935
6
      }
13936
13937
      // required .yb.consensus.RaftConfigPB new_config = 4;
13938
6
      case 4: {
13939
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13940
6
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
13941
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13942
6
               input, mutable_new_config()));
13943
6
        } else {
13944
0
          goto handle_unusual;
13945
0
        }
13946
6
        break;
13947
6
      }
13948
13949
6
      default: {
13950
6
      handle_unusual:
13951
6
        if (tag == 0) {
13952
6
          goto success;
13953
6
        }
13954
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13955
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13956
0
        break;
13957
0
      }
13958
24
    }
13959
24
  }
13960
6
success:
13961
  // @@protoc_insertion_point(parse_success:yb.consensus.UnsafeChangeConfigRequestPB)
13962
6
  return true;
13963
0
failure:
13964
  // @@protoc_insertion_point(parse_failure:yb.consensus.UnsafeChangeConfigRequestPB)
13965
0
  return false;
13966
6
#undef DO_
13967
6
}
13968
13969
void UnsafeChangeConfigRequestPB::SerializeWithCachedSizes(
13970
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13971
  // @@protoc_insertion_point(serialize_start:yb.consensus.UnsafeChangeConfigRequestPB)
13972
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13973
0
  (void) cached_has_bits;
13974
13975
0
  cached_has_bits = _has_bits_[0];
13976
  // optional bytes dest_uuid = 1;
13977
0
  if (cached_has_bits & 0x00000001u) {
13978
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13979
0
      1, this->dest_uuid(), output);
13980
0
  }
13981
13982
  // required bytes tablet_id = 2;
13983
0
  if (cached_has_bits & 0x00000002u) {
13984
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13985
0
      2, this->tablet_id(), output);
13986
0
  }
13987
13988
  // required bytes caller_id = 3;
13989
0
  if (cached_has_bits & 0x00000004u) {
13990
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13991
0
      3, this->caller_id(), output);
13992
0
  }
13993
13994
  // required .yb.consensus.RaftConfigPB new_config = 4;
13995
0
  if (cached_has_bits & 0x00000008u) {
13996
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13997
0
      4, *this->new_config_, output);
13998
0
  }
13999
14000
0
  if (_internal_metadata_.have_unknown_fields()) {
14001
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14002
0
        _internal_metadata_.unknown_fields(), output);
14003
0
  }
14004
  // @@protoc_insertion_point(serialize_end:yb.consensus.UnsafeChangeConfigRequestPB)
14005
0
}
14006
14007
::google::protobuf::uint8* UnsafeChangeConfigRequestPB::InternalSerializeWithCachedSizesToArray(
14008
6
    bool deterministic, ::google::protobuf::uint8* target) const {
14009
6
  (void)deterministic; // Unused
14010
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.UnsafeChangeConfigRequestPB)
14011
6
  ::google::protobuf::uint32 cached_has_bits = 0;
14012
6
  (void) cached_has_bits;
14013
14014
6
  cached_has_bits = _has_bits_[0];
14015
  // optional bytes dest_uuid = 1;
14016
6
  if (cached_has_bits & 0x00000001u) {
14017
6
    target =
14018
6
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
14019
6
        1, this->dest_uuid(), target);
14020
6
  }
14021
14022
  // required bytes tablet_id = 2;
14023
6
  if (cached_has_bits & 0x00000002u) {
14024
6
    target =
14025
6
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
14026
6
        2, this->tablet_id(), target);
14027
6
  }
14028
14029
  // required bytes caller_id = 3;
14030
6
  if (cached_has_bits & 0x00000004u) {
14031
6
    target =
14032
6
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
14033
6
        3, this->caller_id(), target);
14034
6
  }
14035
14036
  // required .yb.consensus.RaftConfigPB new_config = 4;
14037
6
  if (cached_has_bits & 0x00000008u) {
14038
6
    target = ::google::protobuf::internal::WireFormatLite::
14039
6
      InternalWriteMessageToArray(
14040
6
        4, *this->new_config_, deterministic, target);
14041
6
  }
14042
14043
6
  if (_internal_metadata_.have_unknown_fields()) {
14044
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14045
0
        _internal_metadata_.unknown_fields(), target);
14046
0
  }
14047
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.UnsafeChangeConfigRequestPB)
14048
6
  return target;
14049
6
}
14050
14051
0
size_t UnsafeChangeConfigRequestPB::RequiredFieldsByteSizeFallback() const {
14052
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.consensus.UnsafeChangeConfigRequestPB)
14053
0
  size_t total_size = 0;
14054
14055
0
  if (has_tablet_id()) {
14056
    // required bytes tablet_id = 2;
14057
0
    total_size += 1 +
14058
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
14059
0
        this->tablet_id());
14060
0
  }
14061
14062
0
  if (has_caller_id()) {
14063
    // required bytes caller_id = 3;
14064
0
    total_size += 1 +
14065
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
14066
0
        this->caller_id());
14067
0
  }
14068
14069
0
  if (has_new_config()) {
14070
    // required .yb.consensus.RaftConfigPB new_config = 4;
14071
0
    total_size += 1 +
14072
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
14073
0
        *this->new_config_);
14074
0
  }
14075
14076
0
  return total_size;
14077
0
}
14078
12
size_t UnsafeChangeConfigRequestPB::ByteSizeLong() const {
14079
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.UnsafeChangeConfigRequestPB)
14080
12
  size_t total_size = 0;
14081
14082
12
  if (_internal_metadata_.have_unknown_fields()) {
14083
0
    total_size +=
14084
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14085
0
        _internal_metadata_.unknown_fields());
14086
0
  }
14087
12
  if (((_has_bits_[0] & 0x0000000e) ^ 0x0000000e) == 0) {  // All required fields are present.
14088
    // required bytes tablet_id = 2;
14089
12
    total_size += 1 +
14090
12
      ::google::protobuf::internal::WireFormatLite::BytesSize(
14091
12
        this->tablet_id());
14092
14093
    // required bytes caller_id = 3;
14094
12
    total_size += 1 +
14095
12
      ::google::protobuf::internal::WireFormatLite::BytesSize(
14096
12
        this->caller_id());
14097
14098
    // required .yb.consensus.RaftConfigPB new_config = 4;
14099
12
    total_size += 1 +
14100
12
      ::google::protobuf::internal::WireFormatLite::MessageSize(
14101
12
        *this->new_config_);
14102
14103
12
  } else {
14104
0
    total_size += RequiredFieldsByteSizeFallback();
14105
0
  }
14106
  // optional bytes dest_uuid = 1;
14107
12
  if (has_dest_uuid()) {
14108
12
    total_size += 1 +
14109
12
      ::google::protobuf::internal::WireFormatLite::BytesSize(
14110
12
        this->dest_uuid());
14111
12
  }
14112
14113
12
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14114
12
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14115
12
  _cached_size_ = cached_size;
14116
12
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14117
12
  return total_size;
14118
12
}
14119
14120
0
void UnsafeChangeConfigRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
14121
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.UnsafeChangeConfigRequestPB)
14122
0
  GOOGLE_DCHECK_NE(&from, this);
14123
0
  const UnsafeChangeConfigRequestPB* source =
14124
0
      ::google::protobuf::internal::DynamicCastToGenerated<const UnsafeChangeConfigRequestPB>(
14125
0
          &from);
14126
0
  if (source == NULL) {
14127
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.UnsafeChangeConfigRequestPB)
14128
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14129
0
  } else {
14130
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.UnsafeChangeConfigRequestPB)
14131
0
    MergeFrom(*source);
14132
0
  }
14133
0
}
14134
14135
0
void UnsafeChangeConfigRequestPB::MergeFrom(const UnsafeChangeConfigRequestPB& from) {
14136
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.UnsafeChangeConfigRequestPB)
14137
0
  GOOGLE_DCHECK_NE(&from, this);
14138
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14139
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14140
0
  (void) cached_has_bits;
14141
14142
0
  cached_has_bits = from._has_bits_[0];
14143
0
  if (cached_has_bits & 15u) {
14144
0
    if (cached_has_bits & 0x00000001u) {
14145
0
      set_has_dest_uuid();
14146
0
      dest_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dest_uuid_);
14147
0
    }
14148
0
    if (cached_has_bits & 0x00000002u) {
14149
0
      set_has_tablet_id();
14150
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
14151
0
    }
14152
0
    if (cached_has_bits & 0x00000004u) {
14153
0
      set_has_caller_id();
14154
0
      caller_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.caller_id_);
14155
0
    }
14156
0
    if (cached_has_bits & 0x00000008u) {
14157
0
      mutable_new_config()->::yb::consensus::RaftConfigPB::MergeFrom(from.new_config());
14158
0
    }
14159
0
  }
14160
0
}
14161
14162
0
void UnsafeChangeConfigRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
14163
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.UnsafeChangeConfigRequestPB)
14164
0
  if (&from == this) return;
14165
0
  Clear();
14166
0
  MergeFrom(from);
14167
0
}
14168
14169
0
void UnsafeChangeConfigRequestPB::CopyFrom(const UnsafeChangeConfigRequestPB& from) {
14170
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.UnsafeChangeConfigRequestPB)
14171
0
  if (&from == this) return;
14172
0
  Clear();
14173
0
  MergeFrom(from);
14174
0
}
14175
14176
12
bool UnsafeChangeConfigRequestPB::IsInitialized() const {
14177
12
  if ((_has_bits_[0] & 0x0000000e) != 0x0000000e) 
return false0
;
14178
12
  if (has_new_config()) {
14179
12
    if (!this->new_config_->IsInitialized()) 
return false0
;
14180
12
  }
14181
12
  return true;
14182
12
}
14183
14184
0
void UnsafeChangeConfigRequestPB::Swap(UnsafeChangeConfigRequestPB* other) {
14185
0
  if (other == this) return;
14186
0
  InternalSwap(other);
14187
0
}
14188
0
void UnsafeChangeConfigRequestPB::InternalSwap(UnsafeChangeConfigRequestPB* other) {
14189
0
  using std::swap;
14190
0
  dest_uuid_.Swap(&other->dest_uuid_);
14191
0
  tablet_id_.Swap(&other->tablet_id_);
14192
0
  caller_id_.Swap(&other->caller_id_);
14193
0
  swap(new_config_, other->new_config_);
14194
0
  swap(_has_bits_[0], other->_has_bits_[0]);
14195
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
14196
0
  swap(_cached_size_, other->_cached_size_);
14197
0
}
14198
14199
6
::google::protobuf::Metadata UnsafeChangeConfigRequestPB::GetMetadata() const {
14200
6
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
14201
6
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
14202
6
}
14203
14204
14205
// ===================================================================
14206
14207
26.8k
void UnsafeChangeConfigResponsePB::InitAsDefaultInstance() {
14208
26.8k
  ::yb::consensus::_UnsafeChangeConfigResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::tserver::TabletServerErrorPB*>(
14209
26.8k
      ::yb::tserver::TabletServerErrorPB::internal_default_instance());
14210
26.8k
}
14211
0
void UnsafeChangeConfigResponsePB::clear_error() {
14212
0
  if (error_ != NULL) error_->Clear();
14213
0
  clear_has_error();
14214
0
}
14215
#if !defined(_MSC_VER) || _MSC_VER >= 1900
14216
const int UnsafeChangeConfigResponsePB::kErrorFieldNumber;
14217
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14218
14219
UnsafeChangeConfigResponsePB::UnsafeChangeConfigResponsePB()
14220
26.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14221
26.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14222
12
    ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsUnsafeChangeConfigResponsePB();
14223
12
  }
14224
26.8k
  SharedCtor();
14225
  // @@protoc_insertion_point(constructor:yb.consensus.UnsafeChangeConfigResponsePB)
14226
26.8k
}
14227
UnsafeChangeConfigResponsePB::UnsafeChangeConfigResponsePB(const UnsafeChangeConfigResponsePB& from)
14228
  : ::google::protobuf::Message(),
14229
      _internal_metadata_(NULL),
14230
      _has_bits_(from._has_bits_),
14231
0
      _cached_size_(0) {
14232
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14233
0
  if (from.has_error()) {
14234
0
    error_ = new ::yb::tserver::TabletServerErrorPB(*from.error_);
14235
0
  } else {
14236
0
    error_ = NULL;
14237
0
  }
14238
  // @@protoc_insertion_point(copy_constructor:yb.consensus.UnsafeChangeConfigResponsePB)
14239
0
}
14240
14241
26.8k
void UnsafeChangeConfigResponsePB::SharedCtor() {
14242
26.8k
  _cached_size_ = 0;
14243
26.8k
  error_ = NULL;
14244
26.8k
}
14245
14246
12
UnsafeChangeConfigResponsePB::~UnsafeChangeConfigResponsePB() {
14247
  // @@protoc_insertion_point(destructor:yb.consensus.UnsafeChangeConfigResponsePB)
14248
12
  SharedDtor();
14249
12
}
14250
14251
12
void UnsafeChangeConfigResponsePB::SharedDtor() {
14252
12
  if (this != internal_default_instance()) delete error_;
14253
12
}
14254
14255
0
void UnsafeChangeConfigResponsePB::SetCachedSize(int size) const {
14256
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14257
0
  _cached_size_ = size;
14258
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14259
0
}
14260
0
const ::google::protobuf::Descriptor* UnsafeChangeConfigResponsePB::descriptor() {
14261
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
14262
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
14263
0
}
14264
14265
0
const UnsafeChangeConfigResponsePB& UnsafeChangeConfigResponsePB::default_instance() {
14266
0
  ::protobuf_yb_2fconsensus_2fconsensus_2eproto::InitDefaultsUnsafeChangeConfigResponsePB();
14267
0
  return *internal_default_instance();
14268
0
}
14269
14270
0
UnsafeChangeConfigResponsePB* UnsafeChangeConfigResponsePB::New(::google::protobuf::Arena* arena) const {
14271
0
  UnsafeChangeConfigResponsePB* n = new UnsafeChangeConfigResponsePB;
14272
0
  if (arena != NULL) {
14273
0
    arena->Own(n);
14274
0
  }
14275
0
  return n;
14276
0
}
14277
14278
6
void UnsafeChangeConfigResponsePB::Clear() {
14279
// @@protoc_insertion_point(message_clear_start:yb.consensus.UnsafeChangeConfigResponsePB)
14280
6
  ::google::protobuf::uint32 cached_has_bits = 0;
14281
  // Prevent compiler warnings about cached_has_bits being unused
14282
6
  (void) cached_has_bits;
14283
14284
6
  cached_has_bits = _has_bits_[0];
14285
6
  if (cached_has_bits & 0x00000001u) {
14286
0
    GOOGLE_DCHECK(error_ != NULL);
14287
0
    error_->Clear();
14288
0
  }
14289
6
  _has_bits_.Clear();
14290
6
  _internal_metadata_.Clear();
14291
6
}
14292
14293
bool UnsafeChangeConfigResponsePB::MergePartialFromCodedStream(
14294
6
    ::google::protobuf::io::CodedInputStream* input) {
14295
6
#define DO_(EXPRESSION) 
if (0
!GOOGLE_PREDICT_TRUE0
(EXPRESSION))
goto failure0
14296
6
  ::google::protobuf::uint32 tag;
14297
  // @@protoc_insertion_point(parse_start:yb.consensus.UnsafeChangeConfigResponsePB)
14298
6
  for (;;) {
14299
6
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14300
6
    tag = p.first;
14301
6
    if (!p.second) goto handle_unusual;
14302
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14303
      // optional .yb.tserver.TabletServerErrorPB error = 1;
14304
0
      case 1: {
14305
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14306
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
14307
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
14308
0
               input, mutable_error()));
14309
0
        } else {
14310
0
          goto handle_unusual;
14311
0
        }
14312
0
        break;
14313
0
      }
14314
14315
0
      default: {
14316
6
      handle_unusual:
14317
6
        if (tag == 0) {
14318
6
          goto success;
14319
6
        }
14320
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
14321
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
14322
0
        break;
14323
0
      }
14324
0
    }
14325
0
  }
14326
6
success:
14327
  // @@protoc_insertion_point(parse_success:yb.consensus.UnsafeChangeConfigResponsePB)
14328
6
  return true;
14329
0
failure:
14330
  // @@protoc_insertion_point(parse_failure:yb.consensus.UnsafeChangeConfigResponsePB)
14331
0
  return false;
14332
6
#undef DO_
14333
6
}
14334
14335
void UnsafeChangeConfigResponsePB::SerializeWithCachedSizes(
14336
0
    ::google::protobuf::io::CodedOutputStream* output) const {
14337
  // @@protoc_insertion_point(serialize_start:yb.consensus.UnsafeChangeConfigResponsePB)
14338
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14339
0
  (void) cached_has_bits;
14340
14341
0
  cached_has_bits = _has_bits_[0];
14342
  // optional .yb.tserver.TabletServerErrorPB error = 1;
14343
0
  if (cached_has_bits & 0x00000001u) {
14344
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14345
0
      1, *this->error_, output);
14346
0
  }
14347
14348
0
  if (_internal_metadata_.have_unknown_fields()) {
14349
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14350
0
        _internal_metadata_.unknown_fields(), output);
14351
0
  }
14352
  // @@protoc_insertion_point(serialize_end:yb.consensus.UnsafeChangeConfigResponsePB)
14353
0
}
14354
14355
::google::protobuf::uint8* UnsafeChangeConfigResponsePB::InternalSerializeWithCachedSizesToArray(
14356
6
    bool deterministic, ::google::protobuf::uint8* target) const {
14357
6
  (void)deterministic; // Unused
14358
  // @@protoc_insertion_point(serialize_to_array_start:yb.consensus.UnsafeChangeConfigResponsePB)
14359
6
  ::google::protobuf::uint32 cached_has_bits = 0;
14360
6
  (void) cached_has_bits;
14361
14362
6
  cached_has_bits = _has_bits_[0];
14363
  // optional .yb.tserver.TabletServerErrorPB error = 1;
14364
6
  if (cached_has_bits & 0x00000001u) {
14365
0
    target = ::google::protobuf::internal::WireFormatLite::
14366
0
      InternalWriteMessageToArray(
14367
0
        1, *this->error_, deterministic, target);
14368
0
  }
14369
14370
6
  if (_internal_metadata_.have_unknown_fields()) {
14371
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14372
0
        _internal_metadata_.unknown_fields(), target);
14373
0
  }
14374
  // @@protoc_insertion_point(serialize_to_array_end:yb.consensus.UnsafeChangeConfigResponsePB)
14375
6
  return target;
14376
6
}
14377
14378
12
size_t UnsafeChangeConfigResponsePB::ByteSizeLong() const {
14379
// @@protoc_insertion_point(message_byte_size_start:yb.consensus.UnsafeChangeConfigResponsePB)
14380
12
  size_t total_size = 0;
14381
14382
12
  if (_internal_metadata_.have_unknown_fields()) {
14383
0
    total_size +=
14384
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14385
0
        _internal_metadata_.unknown_fields());
14386
0
  }
14387
  // optional .yb.tserver.TabletServerErrorPB error = 1;
14388
12
  if (has_error()) {
14389
0
    total_size += 1 +
14390
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
14391
0
        *this->error_);
14392
0
  }
14393
14394
12
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14395
12
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14396
12
  _cached_size_ = cached_size;
14397
12
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14398
12
  return total_size;
14399
12
}
14400
14401
0
void UnsafeChangeConfigResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
14402
// @@protoc_insertion_point(generalized_merge_from_start:yb.consensus.UnsafeChangeConfigResponsePB)
14403
0
  GOOGLE_DCHECK_NE(&from, this);
14404
0
  const UnsafeChangeConfigResponsePB* source =
14405
0
      ::google::protobuf::internal::DynamicCastToGenerated<const UnsafeChangeConfigResponsePB>(
14406
0
          &from);
14407
0
  if (source == NULL) {
14408
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.consensus.UnsafeChangeConfigResponsePB)
14409
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14410
0
  } else {
14411
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.consensus.UnsafeChangeConfigResponsePB)
14412
0
    MergeFrom(*source);
14413
0
  }
14414
0
}
14415
14416
0
void UnsafeChangeConfigResponsePB::MergeFrom(const UnsafeChangeConfigResponsePB& from) {
14417
// @@protoc_insertion_point(class_specific_merge_from_start:yb.consensus.UnsafeChangeConfigResponsePB)
14418
0
  GOOGLE_DCHECK_NE(&from, this);
14419
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14420
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14421
0
  (void) cached_has_bits;
14422
14423
0
  if (from.has_error()) {
14424
0
    mutable_error()->::yb::tserver::TabletServerErrorPB::MergeFrom(from.error());
14425
0
  }
14426
0
}
14427
14428
0
void UnsafeChangeConfigResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
14429
// @@protoc_insertion_point(generalized_copy_from_start:yb.consensus.UnsafeChangeConfigResponsePB)
14430
0
  if (&from == this) return;
14431
0
  Clear();
14432
0
  MergeFrom(from);
14433
0
}
14434
14435
0
void UnsafeChangeConfigResponsePB::CopyFrom(const UnsafeChangeConfigResponsePB& from) {
14436
// @@protoc_insertion_point(class_specific_copy_from_start:yb.consensus.UnsafeChangeConfigResponsePB)
14437
0
  if (&from == this) return;
14438
0
  Clear();
14439
0
  MergeFrom(from);
14440
0
}
14441
14442
12
bool UnsafeChangeConfigResponsePB::IsInitialized() const {
14443
12
  if (has_error()) {
14444
0
    if (!this->error_->IsInitialized()) return false;
14445
0
  }
14446
12
  return true;
14447
12
}
14448
14449
0
void UnsafeChangeConfigResponsePB::Swap(UnsafeChangeConfigResponsePB* other) {
14450
0
  if (other == this) return;
14451
0
  InternalSwap(other);
14452
0
}
14453
0
void UnsafeChangeConfigResponsePB::InternalSwap(UnsafeChangeConfigResponsePB* other) {
14454
0
  using std::swap;
14455
0
  swap(error_, other->error_);
14456
0
  swap(_has_bits_[0], other->_has_bits_[0]);
14457
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
14458
0
  swap(_cached_size_, other->_cached_size_);
14459
0
}
14460
14461
0
::google::protobuf::Metadata UnsafeChangeConfigResponsePB::GetMetadata() const {
14462
0
  protobuf_yb_2fconsensus_2fconsensus_2eproto::protobuf_AssignDescriptorsOnce();
14463
0
  return ::protobuf_yb_2fconsensus_2fconsensus_2eproto::file_level_metadata[kIndexInFileMessages];
14464
0
}
14465
14466
14467
// @@protoc_insertion_point(namespace_scope)
14468
}  // namespace consensus
14469
}  // namespace yb
14470
14471
// @@protoc_insertion_point(global_scope)