YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_heartbeat.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/master/master_heartbeat.proto
3
4
#include "yb/master/master_heartbeat.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 master {
25
class TSToMasterCommonPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TSToMasterCommonPB>
28
      _instance;
29
} _TSToMasterCommonPB_default_instance_;
30
class ReportedTabletPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<ReportedTabletPB>
33
      _instance;
34
} _ReportedTabletPB_default_instance_;
35
class TabletReportPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<TabletReportPB>
38
      _instance;
39
} _TabletReportPB_default_instance_;
40
class TabletForSplitPBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<TabletForSplitPB>
43
      _instance;
44
} _TabletForSplitPB_default_instance_;
45
class TabletDriveStorageMetadataPBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<TabletDriveStorageMetadataPB>
48
      _instance;
49
} _TabletDriveStorageMetadataPB_default_instance_;
50
class ReportedTabletUpdatesPBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<ReportedTabletUpdatesPB>
53
      _instance;
54
} _ReportedTabletUpdatesPB_default_instance_;
55
class TabletReportUpdatesPBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<TabletReportUpdatesPB>
58
      _instance;
59
} _TabletReportUpdatesPB_default_instance_;
60
class TSInformationPBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<TSInformationPB>
63
      _instance;
64
} _TSInformationPB_default_instance_;
65
class TSSnapshotScheduleInfoPBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotScheduleInfoPB>
68
      _instance;
69
} _TSSnapshotScheduleInfoPB_default_instance_;
70
class TSSnapshotRestorationInfoPBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotRestorationInfoPB>
73
      _instance;
74
} _TSSnapshotRestorationInfoPB_default_instance_;
75
class TSSnapshotsInfoPBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<TSSnapshotsInfoPB>
78
      _instance;
79
} _TSSnapshotsInfoPB_default_instance_;
80
class TSHeartbeatRequestPBDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<TSHeartbeatRequestPB>
83
      _instance;
84
} _TSHeartbeatRequestPB_default_instance_;
85
class TSHeartbeatResponsePBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<TSHeartbeatResponsePB>
88
      _instance;
89
} _TSHeartbeatResponsePB_default_instance_;
90
}  // namespace master
91
}  // namespace yb
92
namespace protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto {
93
15.8k
void InitDefaultsTSToMasterCommonPBImpl() {
94
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
95
96
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
97
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
98
#else
99
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
100
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
101
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
102
15.8k
  {
103
15.8k
    void* ptr = &::yb::master::_TSToMasterCommonPB_default_instance_;
104
15.8k
    new (ptr) ::yb::master::TSToMasterCommonPB();
105
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
106
15.8k
  }
107
15.8k
  ::yb::master::TSToMasterCommonPB::InitAsDefaultInstance();
108
15.8k
}
109
110
820k
void InitDefaultsTSToMasterCommonPB() {
111
820k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
112
820k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSToMasterCommonPBImpl);
113
820k
}
114
115
15.8k
void InitDefaultsReportedTabletPBImpl() {
116
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
117
118
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
119
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
120
#else
121
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
122
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
123
15.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePB();
124
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
125
15.8k
  {
126
15.8k
    void* ptr = &::yb::master::_ReportedTabletPB_default_instance_;
127
15.8k
    new (ptr) ::yb::master::ReportedTabletPB();
128
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
129
15.8k
  }
130
15.8k
  ::yb::master::ReportedTabletPB::InitAsDefaultInstance();
131
15.8k
}
132
133
556k
void InitDefaultsReportedTabletPB() {
134
556k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
135
556k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReportedTabletPBImpl);
136
556k
}
137
138
15.8k
void InitDefaultsTabletReportPBImpl() {
139
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
140
141
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
142
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
143
#else
144
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
145
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
146
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB();
147
15.8k
  {
148
15.8k
    void* ptr = &::yb::master::_TabletReportPB_default_instance_;
149
15.8k
    new (ptr) ::yb::master::TabletReportPB();
150
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
151
15.8k
  }
152
15.8k
  ::yb::master::TabletReportPB::InitAsDefaultInstance();
153
15.8k
}
154
155
819k
void InitDefaultsTabletReportPB() {
156
819k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
157
819k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletReportPBImpl);
158
819k
}
159
160
15.8k
void InitDefaultsTabletForSplitPBImpl() {
161
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
162
163
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
164
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
165
#else
166
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
167
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
168
15.8k
  {
169
15.8k
    void* ptr = &::yb::master::_TabletForSplitPB_default_instance_;
170
15.8k
    new (ptr) ::yb::master::TabletForSplitPB();
171
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
172
15.8k
  }
173
15.8k
  ::yb::master::TabletForSplitPB::InitAsDefaultInstance();
174
15.8k
}
175
176
31.6k
void InitDefaultsTabletForSplitPB() {
177
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
178
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletForSplitPBImpl);
179
31.6k
}
180
181
15.8k
void InitDefaultsTabletDriveStorageMetadataPBImpl() {
182
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
183
184
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
185
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
186
#else
187
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
188
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
189
15.8k
  {
190
15.8k
    void* ptr = &::yb::master::_TabletDriveStorageMetadataPB_default_instance_;
191
15.8k
    new (ptr) ::yb::master::TabletDriveStorageMetadataPB();
192
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
193
15.8k
  }
194
15.8k
  ::yb::master::TabletDriveStorageMetadataPB::InitAsDefaultInstance();
195
15.8k
}
196
197
618k
void InitDefaultsTabletDriveStorageMetadataPB() {
198
618k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
199
618k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletDriveStorageMetadataPBImpl);
200
618k
}
201
202
15.8k
void InitDefaultsReportedTabletUpdatesPBImpl() {
203
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
204
205
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
206
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
207
#else
208
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
209
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
210
15.8k
  {
211
15.8k
    void* ptr = &::yb::master::_ReportedTabletUpdatesPB_default_instance_;
212
15.8k
    new (ptr) ::yb::master::ReportedTabletUpdatesPB();
213
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
214
15.8k
  }
215
15.8k
  ::yb::master::ReportedTabletUpdatesPB::InitAsDefaultInstance();
216
15.8k
}
217
218
551k
void InitDefaultsReportedTabletUpdatesPB() {
219
551k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
220
551k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReportedTabletUpdatesPBImpl);
221
551k
}
222
223
15.8k
void InitDefaultsTabletReportUpdatesPBImpl() {
224
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
225
226
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
227
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
228
#else
229
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
230
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
231
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB();
232
15.8k
  {
233
15.8k
    void* ptr = &::yb::master::_TabletReportUpdatesPB_default_instance_;
234
15.8k
    new (ptr) ::yb::master::TabletReportUpdatesPB();
235
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
236
15.8k
  }
237
15.8k
  ::yb::master::TabletReportUpdatesPB::InitAsDefaultInstance();
238
15.8k
}
239
240
817k
void InitDefaultsTabletReportUpdatesPB() {
241
817k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
242
817k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletReportUpdatesPBImpl);
243
817k
}
244
245
15.8k
void InitDefaultsTSInformationPBImpl() {
246
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
247
248
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
249
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
250
#else
251
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
252
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
253
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB();
254
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
255
15.8k
  {
256
15.8k
    void* ptr = &::yb::master::_TSInformationPB_default_instance_;
257
15.8k
    new (ptr) ::yb::master::TSInformationPB();
258
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
259
15.8k
  }
260
15.8k
  ::yb::master::TSInformationPB::InitAsDefaultInstance();
261
15.8k
}
262
263
2.97M
void InitDefaultsTSInformationPB() {
264
2.97M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
265
2.97M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSInformationPBImpl);
266
2.97M
}
267
268
15.8k
void InitDefaultsTSSnapshotScheduleInfoPBImpl() {
269
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
270
271
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
272
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
273
#else
274
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
275
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
276
15.8k
  {
277
15.8k
    void* ptr = &::yb::master::_TSSnapshotScheduleInfoPB_default_instance_;
278
15.8k
    new (ptr) ::yb::master::TSSnapshotScheduleInfoPB();
279
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
280
15.8k
  }
281
15.8k
  ::yb::master::TSSnapshotScheduleInfoPB::InitAsDefaultInstance();
282
15.8k
}
283
284
31.6k
void InitDefaultsTSSnapshotScheduleInfoPB() {
285
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
286
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotScheduleInfoPBImpl);
287
31.6k
}
288
289
15.8k
void InitDefaultsTSSnapshotRestorationInfoPBImpl() {
290
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
291
292
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
293
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
294
#else
295
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
296
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
297
15.8k
  {
298
15.8k
    void* ptr = &::yb::master::_TSSnapshotRestorationInfoPB_default_instance_;
299
15.8k
    new (ptr) ::yb::master::TSSnapshotRestorationInfoPB();
300
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
301
15.8k
  }
302
15.8k
  ::yb::master::TSSnapshotRestorationInfoPB::InitAsDefaultInstance();
303
15.8k
}
304
305
31.6k
void InitDefaultsTSSnapshotRestorationInfoPB() {
306
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
307
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotRestorationInfoPBImpl);
308
31.6k
}
309
310
15.8k
void InitDefaultsTSSnapshotsInfoPBImpl() {
311
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
312
313
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
314
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
315
#else
316
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
317
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
318
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB();
319
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB();
320
15.8k
  {
321
15.8k
    void* ptr = &::yb::master::_TSSnapshotsInfoPB_default_instance_;
322
15.8k
    new (ptr) ::yb::master::TSSnapshotsInfoPB();
323
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
324
15.8k
  }
325
15.8k
  ::yb::master::TSSnapshotsInfoPB::InitAsDefaultInstance();
326
15.8k
}
327
328
818k
void InitDefaultsTSSnapshotsInfoPB() {
329
818k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
330
818k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSSnapshotsInfoPBImpl);
331
818k
}
332
333
15.8k
void InitDefaultsTSHeartbeatRequestPBImpl() {
334
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
335
336
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
337
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
338
#else
339
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
340
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
341
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB();
342
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTSRegistrationPB();
343
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB();
344
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTServerMetricsPB();
345
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB();
346
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB();
347
15.8k
  {
348
15.8k
    void* ptr = &::yb::master::_TSHeartbeatRequestPB_default_instance_;
349
15.8k
    new (ptr) ::yb::master::TSHeartbeatRequestPB();
350
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
351
15.8k
  }
352
15.8k
  ::yb::master::TSHeartbeatRequestPB::InitAsDefaultInstance();
353
15.8k
}
354
355
804k
void InitDefaultsTSHeartbeatRequestPB() {
356
804k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
357
804k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSHeartbeatRequestPBImpl);
358
804k
}
359
360
15.8k
void InitDefaultsTSHeartbeatResponsePBImpl() {
361
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
362
363
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
364
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
365
#else
366
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
367
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
368
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
369
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
370
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB();
371
15.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPB();
372
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB();
373
15.8k
  protobuf_yb_2fencryption_2fencryption_2eproto::InitDefaultsUniverseKeyRegistryPB();
374
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB();
375
15.8k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB();
376
15.8k
  {
377
15.8k
    void* ptr = &::yb::master::_TSHeartbeatResponsePB_default_instance_;
378
15.8k
    new (ptr) ::yb::master::TSHeartbeatResponsePB();
379
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
380
15.8k
  }
381
15.8k
  ::yb::master::TSHeartbeatResponsePB::InitAsDefaultInstance();
382
15.8k
}
383
384
809k
void InitDefaultsTSHeartbeatResponsePB() {
385
809k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
386
809k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSHeartbeatResponsePBImpl);
387
809k
}
388
389
::google::protobuf::Metadata file_level_metadata[13];
390
391
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
392
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, _has_bits_),
393
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, _internal_metadata_),
394
  ~0u,  // no _extensions_
395
  ~0u,  // no _oneof_case_
396
  ~0u,  // no _weak_field_map_
397
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSToMasterCommonPB, ts_instance_),
398
  0,
399
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, _has_bits_),
400
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, _internal_metadata_),
401
  ~0u,  // no _extensions_
402
  ~0u,  // no _oneof_case_
403
  ~0u,  // no _weak_field_map_
404
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, tablet_id_),
405
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, state_),
406
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, tablet_data_state_),
407
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, committed_consensus_state_),
408
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, error_),
409
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, schema_version_),
410
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, should_disable_lb_move_),
411
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, fs_data_dir_),
412
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletPB, is_hidden_),
413
  0,
414
  7,
415
  8,
416
  2,
417
  3,
418
  4,
419
  5,
420
  1,
421
  6,
422
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, _has_bits_),
423
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, _internal_metadata_),
424
  ~0u,  // no _extensions_
425
  ~0u,  // no _oneof_case_
426
  ~0u,  // no _weak_field_map_
427
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, is_incremental_),
428
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, updated_tablets_),
429
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, removed_tablet_ids_),
430
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, sequence_number_),
431
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportPB, remaining_tablet_count_),
432
  0,
433
  ~0u,
434
  ~0u,
435
  1,
436
  2,
437
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, _has_bits_),
438
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, _internal_metadata_),
439
  ~0u,  // no _extensions_
440
  ~0u,  // no _oneof_case_
441
  ~0u,  // no _weak_field_map_
442
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, tablet_id_),
443
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, obsolete_split_partition_key_),
444
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletForSplitPB, obsolete_split_encoded_key_),
445
  0,
446
  1,
447
  2,
448
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, _has_bits_),
449
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, _internal_metadata_),
450
  ~0u,  // no _extensions_
451
  ~0u,  // no _oneof_case_
452
  ~0u,  // no _weak_field_map_
453
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, tablet_id_),
454
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, sst_file_size_),
455
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, wal_file_size_),
456
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, uncompressed_sst_file_size_),
457
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletDriveStorageMetadataPB, may_have_orphaned_post_split_data_),
458
  0,
459
  1,
460
  2,
461
  3,
462
  4,
463
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, _has_bits_),
464
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, _internal_metadata_),
465
  ~0u,  // no _extensions_
466
  ~0u,  // no _oneof_case_
467
  ~0u,  // no _weak_field_map_
468
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, tablet_id_),
469
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReportedTabletUpdatesPB, state_msg_),
470
  0,
471
  1,
472
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, _has_bits_),
473
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, _internal_metadata_),
474
  ~0u,  // no _extensions_
475
  ~0u,  // no _oneof_case_
476
  ~0u,  // no _weak_field_map_
477
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, tablets_),
478
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletReportUpdatesPB, processing_truncated_),
479
  ~0u,
480
  0,
481
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, _has_bits_),
482
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, _internal_metadata_),
483
  ~0u,  // no _extensions_
484
  ~0u,  // no _oneof_case_
485
  ~0u,  // no _weak_field_map_
486
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, registration_),
487
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInformationPB, tserver_instance_),
488
  0,
489
  1,
490
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, _has_bits_),
491
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, _internal_metadata_),
492
  ~0u,  // no _extensions_
493
  ~0u,  // no _oneof_case_
494
  ~0u,  // no _weak_field_map_
495
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, id_),
496
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotScheduleInfoPB, last_snapshot_hybrid_time_),
497
  0,
498
  1,
499
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, _has_bits_),
500
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, _internal_metadata_),
501
  ~0u,  // no _extensions_
502
  ~0u,  // no _oneof_case_
503
  ~0u,  // no _weak_field_map_
504
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, id_),
505
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotRestorationInfoPB, complete_time_ht_),
506
  0,
507
  1,
508
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, _has_bits_),
509
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, _internal_metadata_),
510
  ~0u,  // no _extensions_
511
  ~0u,  // no _oneof_case_
512
  ~0u,  // no _weak_field_map_
513
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, schedules_),
514
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, last_restorations_update_ht_),
515
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSSnapshotsInfoPB, restorations_),
516
  ~0u,
517
  0,
518
  ~0u,
519
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, _has_bits_),
520
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, _internal_metadata_),
521
  ~0u,  // no _extensions_
522
  ~0u,  // no _oneof_case_
523
  ~0u,  // no _weak_field_map_
524
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, common_),
525
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, registration_),
526
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, tablet_report_),
527
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, num_live_tablets_),
528
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, config_index_),
529
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, metrics_),
530
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, leader_count_),
531
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, cluster_config_version_),
532
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, deprecated_tablets_for_split_),
533
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, ts_physical_time_),
534
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, ts_hybrid_time_),
535
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, rtt_us_),
536
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatRequestPB, storage_metadata_),
537
  0,
538
  1,
539
  2,
540
  5,
541
  4,
542
  3,
543
  6,
544
  10,
545
  ~0u,
546
  7,
547
  8,
548
  9,
549
  ~0u,
550
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, _has_bits_),
551
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, _internal_metadata_),
552
  ~0u,  // no _extensions_
553
  ~0u,  // no _oneof_case_
554
  ~0u,  // no _weak_field_map_
555
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, error_),
556
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, master_instance_),
557
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, needs_reregister_),
558
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, needs_full_tablet_report_),
559
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tablet_report_),
560
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, leader_master_),
561
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, master_config_),
562
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tservers_),
563
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, cluster_uuid_),
564
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, ysql_catalog_version_),
565
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, ysql_last_breaking_catalog_version_),
566
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, universe_key_registry_),
567
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, consumer_registry_),
568
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, cluster_config_version_),
569
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, tablet_report_limit_),
570
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, snapshots_info_),
571
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, deprecated_tablet_split_size_threshold_bytes_),
572
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSHeartbeatResponsePB, transaction_tables_version_),
573
  1,
574
  2,
575
  8,
576
  9,
577
  3,
578
  10,
579
  4,
580
  ~0u,
581
  0,
582
  12,
583
  14,
584
  5,
585
  6,
586
  11,
587
  16,
588
  7,
589
  13,
590
  15,
591
};
592
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
593
  { 0, 6, sizeof(::yb::master::TSToMasterCommonPB)},
594
  { 7, 21, sizeof(::yb::master::ReportedTabletPB)},
595
  { 30, 40, sizeof(::yb::master::TabletReportPB)},
596
  { 45, 53, sizeof(::yb::master::TabletForSplitPB)},
597
  { 56, 66, sizeof(::yb::master::TabletDriveStorageMetadataPB)},
598
  { 71, 78, sizeof(::yb::master::ReportedTabletUpdatesPB)},
599
  { 80, 87, sizeof(::yb::master::TabletReportUpdatesPB)},
600
  { 89, 96, sizeof(::yb::master::TSInformationPB)},
601
  { 98, 105, sizeof(::yb::master::TSSnapshotScheduleInfoPB)},
602
  { 107, 114, sizeof(::yb::master::TSSnapshotRestorationInfoPB)},
603
  { 116, 124, sizeof(::yb::master::TSSnapshotsInfoPB)},
604
  { 127, 145, sizeof(::yb::master::TSHeartbeatRequestPB)},
605
  { 158, 181, sizeof(::yb::master::TSHeartbeatResponsePB)},
606
};
607
608
static ::google::protobuf::Message const * const file_default_instances[] = {
609
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSToMasterCommonPB_default_instance_),
610
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReportedTabletPB_default_instance_),
611
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletReportPB_default_instance_),
612
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletForSplitPB_default_instance_),
613
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletDriveStorageMetadataPB_default_instance_),
614
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReportedTabletUpdatesPB_default_instance_),
615
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletReportUpdatesPB_default_instance_),
616
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSInformationPB_default_instance_),
617
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotScheduleInfoPB_default_instance_),
618
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotRestorationInfoPB_default_instance_),
619
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSSnapshotsInfoPB_default_instance_),
620
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSHeartbeatRequestPB_default_instance_),
621
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSHeartbeatResponsePB_default_instance_),
622
};
623
624
1.99k
void protobuf_AssignDescriptors() {
625
1.99k
  AddDescriptors();
626
1.99k
  ::google::protobuf::MessageFactory* factory = NULL;
627
1.99k
  AssignDescriptors(
628
1.99k
      "yb/master/master_heartbeat.proto", schemas, file_default_instances, TableStruct::offsets, factory,
629
1.99k
      file_level_metadata, NULL, NULL);
630
1.99k
}
631
632
1.70M
void protobuf_AssignDescriptorsOnce() {
633
1.70M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
634
1.70M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
635
1.70M
}
636
637
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
638
0
void protobuf_RegisterTypes(const ::std::string&) {
639
0
  protobuf_AssignDescriptorsOnce();
640
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 13);
641
0
}
642
643
15.8k
void AddDescriptorsImpl() {
644
15.8k
  InitDefaults();
645
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
646
15.8k
      "\n yb/master/master_heartbeat.proto\022\tyb.m"
647
15.8k
      "aster\032\031yb/cdc/cdc_consumer.proto\032\035yb/com"
648
15.8k
      "mon/wire_protocol.proto\032\033yb/consensus/me"
649
15.8k
      "tadata.proto\032\036yb/encryption/encryption.p"
650
15.8k
      "roto\032\034yb/master/master_types.proto\032\034yb/t"
651
15.8k
      "ablet/tablet_types.proto\032\024yb/rpc/service"
652
15.8k
      ".proto\"=\n\022TSToMasterCommonPB\022\'\n\013ts_insta"
653
15.8k
      "nce\030\001 \002(\0132\022.yb.NodeInstancePB\"\351\002\n\020Report"
654
15.8k
      "edTabletPB\022\021\n\ttablet_id\030\001 \002(\014\0223\n\005state\030\002"
655
15.8k
      " \001(\0162\033.yb.tablet.RaftGroupStatePB:\007UNKNO"
656
15.8k
      "WN\022J\n\021tablet_data_state\030\006 \001(\0162\032.yb.table"
657
15.8k
      "t.TabletDataState:\023TABLET_DATA_UNKNOWN\022A"
658
15.8k
      "\n\031committed_consensus_state\030\003 \001(\0132\036.yb.c"
659
15.8k
      "onsensus.ConsensusStatePB\022\036\n\005error\030\004 \001(\013"
660
15.8k
      "2\017.yb.AppStatusPB\022\026\n\016schema_version\030\005 \001("
661
15.8k
      "\r\022\036\n\026should_disable_lb_move\030\007 \001(\010\022\023\n\013fs_"
662
15.8k
      "data_dir\030\010 \001(\014\022\021\n\tis_hidden\030\t \001(\010\"\263\001\n\016Ta"
663
15.8k
      "bletReportPB\022\026\n\016is_incremental\030\001 \002(\010\0224\n\017"
664
15.8k
      "updated_tablets\030\002 \003(\0132\033.yb.master.Report"
665
15.8k
      "edTabletPB\022\032\n\022removed_tablet_ids\030\003 \003(\014\022\027"
666
15.8k
      "\n\017sequence_number\030\004 \002(\005\022\036\n\026remaining_tab"
667
15.8k
      "let_count\030\005 \001(\005\"o\n\020TabletForSplitPB\022\021\n\tt"
668
15.8k
      "ablet_id\030\001 \002(\014\022$\n\034OBSOLETE_split_partiti"
669
15.8k
      "on_key\030\002 \001(\014\022\"\n\032OBSOLETE_split_encoded_k"
670
15.8k
      "ey\030\003 \001(\014\"\264\001\n\034TabletDriveStorageMetadataP"
671
15.8k
      "B\022\021\n\ttablet_id\030\001 \002(\014\022\025\n\rsst_file_size\030\002 "
672
15.8k
      "\001(\004\022\025\n\rwal_file_size\030\003 \001(\004\022\"\n\032uncompress"
673
15.8k
      "ed_sst_file_size\030\004 \001(\004\022/\n!may_have_orpha"
674
15.8k
      "ned_post_split_data\030\005 \001(\010:\004true\"\?\n\027Repor"
675
15.8k
      "tedTabletUpdatesPB\022\021\n\ttablet_id\030\001 \002(\014\022\021\n"
676
15.8k
      "\tstate_msg\030\002 \001(\t\"q\n\025TabletReportUpdatesP"
677
15.8k
      "B\0223\n\007tablets\030\001 \003(\0132\".yb.master.ReportedT"
678
15.8k
      "abletUpdatesPB\022#\n\024processing_truncated\030\002"
679
15.8k
      " \001(\010:\005false\"r\n\017TSInformationPB\0221\n\014regist"
680
15.8k
      "ration\030\001 \002(\0132\033.yb.master.TSRegistrationP"
681
15.8k
      "B\022,\n\020tserver_instance\030\002 \002(\0132\022.yb.NodeIns"
682
15.8k
      "tancePB\"I\n\030TSSnapshotScheduleInfoPB\022\n\n\002i"
683
15.8k
      "d\030\001 \001(\014\022!\n\031last_snapshot_hybrid_time\030\002 \001"
684
15.8k
      "(\006\"C\n\033TSSnapshotRestorationInfoPB\022\n\n\002id\030"
685
15.8k
      "\001 \001(\014\022\030\n\020complete_time_ht\030\002 \001(\006\"\256\001\n\021TSSn"
686
15.8k
      "apshotsInfoPB\0226\n\tschedules\030\001 \003(\0132#.yb.ma"
687
15.8k
      "ster.TSSnapshotScheduleInfoPB\022#\n\033last_re"
688
15.8k
      "storations_update_ht\030\002 \001(\006\022<\n\014restoratio"
689
15.8k
      "ns\030\003 \003(\0132&.yb.master.TSSnapshotRestorati"
690
15.8k
      "onInfoPB\"\214\004\n\024TSHeartbeatRequestPB\022-\n\006com"
691
15.8k
      "mon\030\001 \002(\0132\035.yb.master.TSToMasterCommonPB"
692
15.8k
      "\0221\n\014registration\030\002 \001(\0132\033.yb.master.TSReg"
693
15.8k
      "istrationPB\0220\n\rtablet_report\030\003 \001(\0132\031.yb."
694
15.8k
      "master.TabletReportPB\022\030\n\020num_live_tablet"
695
15.8k
      "s\030\004 \001(\005\022\024\n\014config_index\030\005 \001(\003\022,\n\007metrics"
696
15.8k
      "\030\006 \001(\0132\033.yb.master.TServerMetricsPB\022\024\n\014l"
697
15.8k
      "eader_count\030\007 \001(\005\022\036\n\026cluster_config_vers"
698
15.8k
      "ion\030\010 \001(\005\022A\n\034DEPRECATED_tablets_for_spli"
699
15.8k
      "t\030\t \003(\0132\033.yb.master.TabletForSplitPB\022\030\n\020"
700
15.8k
      "ts_physical_time\030\n \001(\006\022\026\n\016ts_hybrid_time"
701
15.8k
      "\030\013 \001(\006\022\016\n\006rtt_us\030\014 \001(\003\022A\n\020storage_metada"
702
15.8k
      "ta\030\016 \003(\0132\'.yb.master.TabletDriveStorageM"
703
15.8k
      "etadataPBJ\004\010\r\020\016\"\221\006\n\025TSHeartbeatResponseP"
704
15.8k
      "B\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterError"
705
15.8k
      "PB\022+\n\017master_instance\030\002 \001(\0132\022.yb.NodeIns"
706
15.8k
      "tancePB\022\037\n\020needs_reregister\030\003 \001(\010:\005false"
707
15.8k
      "\022\'\n\030needs_full_tablet_report\030\004 \001(\010:\005fals"
708
15.8k
      "e\0227\n\rtablet_report\030\005 \001(\0132 .yb.master.Tab"
709
15.8k
      "letReportUpdatesPB\022\025\n\rleader_master\030\006 \001("
710
15.8k
      "\010\0221\n\rmaster_config\030\007 \001(\0132\032.yb.consensus."
711
15.8k
      "RaftConfigPB\022,\n\010tservers\030\010 \003(\0132\032.yb.mast"
712
15.8k
      "er.TSInformationPB\022\024\n\014cluster_uuid\030\t \001(\t"
713
15.8k
      "\022\034\n\024ysql_catalog_version\030\n \001(\004\022*\n\"ysql_l"
714
15.8k
      "ast_breaking_catalog_version\030\017 \001(\004\022C\n\025un"
715
15.8k
      "iverse_key_registry\030\013 \001(\0132$.yb.encryptio"
716
15.8k
      "n.UniverseKeyRegistryPB\0225\n\021consumer_regi"
717
15.8k
      "stry\030\014 \001(\0132\032.yb.cdc.ConsumerRegistryPB\022\036"
718
15.8k
      "\n\026cluster_config_version\030\r \001(\005\022\033\n\023tablet"
719
15.8k
      "_report_limit\030\020 \001(\005\0224\n\016snapshots_info\030\021 "
720
15.8k
      "\001(\0132\034.yb.master.TSSnapshotsInfoPB\0224\n,DEP"
721
15.8k
      "RECATED_tablet_split_size_threshold_byte"
722
15.8k
      "s\030\016 \001(\003\022\"\n\032transaction_tables_version\030\022 "
723
15.8k
      "\001(\0042\200\001\n\017MasterHeartbeat\022P\n\013TSHeartbeat\022\037"
724
15.8k
      ".yb.master.TSHeartbeatRequestPB\032 .yb.mas"
725
15.8k
      "ter.TSHeartbeatResponsePB\032\033\332\265\030\027yb.master"
726
15.8k
      ".MasterServiceB\017\n\rorg.yb.master"
727
15.8k
  };
728
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
729
15.8k
      descriptor, 3231);
730
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
731
15.8k
    "yb/master/master_heartbeat.proto", &protobuf_RegisterTypes);
732
15.8k
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::AddDescriptors();
733
15.8k
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors();
734
15.8k
  ::protobuf_yb_2fconsensus_2fmetadata_2eproto::AddDescriptors();
735
15.8k
  ::protobuf_yb_2fencryption_2fencryption_2eproto::AddDescriptors();
736
15.8k
  ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors();
737
15.8k
  ::protobuf_yb_2ftablet_2ftablet_5ftypes_2eproto::AddDescriptors();
738
15.8k
  ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors();
739
15.8k
}
740
741
17.8k
void AddDescriptors() {
742
17.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
743
17.8k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
744
17.8k
}
745
// Force AddDescriptors() to be called at dynamic initialization time.
746
struct StaticDescriptorInitializer {
747
15.8k
  StaticDescriptorInitializer() {
748
15.8k
    AddDescriptors();
749
15.8k
  }
750
} static_descriptor_initializer;
751
}  // namespace protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto
752
namespace yb {
753
namespace master {
754
755
// ===================================================================
756
757
15.8k
void TSToMasterCommonPB::InitAsDefaultInstance() {
758
15.8k
  ::yb::master::_TSToMasterCommonPB_default_instance_._instance.get_mutable()->ts_instance_ = const_cast< ::yb::NodeInstancePB*>(
759
15.8k
      ::yb::NodeInstancePB::internal_default_instance());
760
15.8k
}
761
0
void TSToMasterCommonPB::clear_ts_instance() {
762
0
  if (ts_instance_ != NULL) ts_instance_->Clear();
763
0
  clear_has_ts_instance();
764
0
}
765
#if !defined(_MSC_VER) || _MSC_VER >= 1900
766
const int TSToMasterCommonPB::kTsInstanceFieldNumber;
767
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
768
769
TSToMasterCommonPB::TSToMasterCommonPB()
770
802k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
771
788k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
772
788k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB();
773
788k
  }
774
802k
  SharedCtor();
775
  // @@protoc_insertion_point(constructor:yb.master.TSToMasterCommonPB)
776
802k
}
777
TSToMasterCommonPB::TSToMasterCommonPB(const TSToMasterCommonPB& from)
778
  : ::google::protobuf::Message(),
779
      _internal_metadata_(NULL),
780
      _has_bits_(from._has_bits_),
781
0
      _cached_size_(0) {
782
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
783
0
  if (from.has_ts_instance()) {
784
0
    ts_instance_ = new ::yb::NodeInstancePB(*from.ts_instance_);
785
0
  } else {
786
0
    ts_instance_ = NULL;
787
0
  }
788
  // @@protoc_insertion_point(copy_constructor:yb.master.TSToMasterCommonPB)
789
0
}
790
791
801k
void TSToMasterCommonPB::SharedCtor() {
792
801k
  _cached_size_ = 0;
793
801k
  ts_instance_ = NULL;
794
801k
}
795
796
788k
TSToMasterCommonPB::~TSToMasterCommonPB() {
797
  // @@protoc_insertion_point(destructor:yb.master.TSToMasterCommonPB)
798
788k
  SharedDtor();
799
788k
}
800
801
788k
void TSToMasterCommonPB::SharedDtor() {
802
788k
  if (this != internal_default_instance()) delete ts_instance_;
803
788k
}
804
805
0
void TSToMasterCommonPB::SetCachedSize(int size) const {
806
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
807
0
  _cached_size_ = size;
808
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
809
0
}
810
0
const ::google::protobuf::Descriptor* TSToMasterCommonPB::descriptor() {
811
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
812
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
813
0
}
814
815
0
const TSToMasterCommonPB& TSToMasterCommonPB::default_instance() {
816
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSToMasterCommonPB();
817
0
  return *internal_default_instance();
818
0
}
819
820
0
TSToMasterCommonPB* TSToMasterCommonPB::New(::google::protobuf::Arena* arena) const {
821
0
  TSToMasterCommonPB* n = new TSToMasterCommonPB;
822
0
  if (arena != NULL) {
823
0
    arena->Own(n);
824
0
  }
825
0
  return n;
826
0
}
827
828
5
void TSToMasterCommonPB::Clear() {
829
// @@protoc_insertion_point(message_clear_start:yb.master.TSToMasterCommonPB)
830
5
  ::google::protobuf::uint32 cached_has_bits = 0;
831
  // Prevent compiler warnings about cached_has_bits being unused
832
5
  (void) cached_has_bits;
833
834
5
  cached_has_bits = _has_bits_[0];
835
5
  if (cached_has_bits & 0x00000001u) {
836
0
    GOOGLE_DCHECK(ts_instance_ != NULL);
837
0
    ts_instance_->Clear();
838
0
  }
839
5
  _has_bits_.Clear();
840
5
  _internal_metadata_.Clear();
841
5
}
842
843
bool TSToMasterCommonPB::MergePartialFromCodedStream(
844
384k
    ::google::protobuf::io::CodedInputStream* input) {
845
383k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
846
384k
  ::google::protobuf::uint32 tag;
847
  // @@protoc_insertion_point(parse_start:yb.master.TSToMasterCommonPB)
848
767k
  for (;;) {
849
767k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
850
767k
    tag = p.first;
851
767k
    if (!p.second) goto handle_unusual;
852
384k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
853
      // required .yb.NodeInstancePB ts_instance = 1;
854
382k
      case 1: {
855
382k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
856
383k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
857
383k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
858
383k
               input, mutable_ts_instance()));
859
18.4E
        } else {
860
18.4E
          goto handle_unusual;
861
18.4E
        }
862
383k
        break;
863
383k
      }
864
865
0
      default: {
866
383k
      handle_unusual:
867
383k
        if (tag == 0) {
868
383k
          goto success;
869
383k
        }
870
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
871
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
872
18.4E
        break;
873
18.4E
      }
874
384k
    }
875
384k
  }
876
383k
success:
877
  // @@protoc_insertion_point(parse_success:yb.master.TSToMasterCommonPB)
878
383k
  return true;
879
0
failure:
880
  // @@protoc_insertion_point(parse_failure:yb.master.TSToMasterCommonPB)
881
0
  return false;
882
384k
#undef DO_
883
384k
}
884
885
void TSToMasterCommonPB::SerializeWithCachedSizes(
886
0
    ::google::protobuf::io::CodedOutputStream* output) const {
887
  // @@protoc_insertion_point(serialize_start:yb.master.TSToMasterCommonPB)
888
0
  ::google::protobuf::uint32 cached_has_bits = 0;
889
0
  (void) cached_has_bits;
890
891
0
  cached_has_bits = _has_bits_[0];
892
  // required .yb.NodeInstancePB ts_instance = 1;
893
0
  if (cached_has_bits & 0x00000001u) {
894
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
895
0
      1, *this->ts_instance_, output);
896
0
  }
897
898
0
  if (_internal_metadata_.have_unknown_fields()) {
899
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
900
0
        _internal_metadata_.unknown_fields(), output);
901
0
  }
902
  // @@protoc_insertion_point(serialize_end:yb.master.TSToMasterCommonPB)
903
0
}
904
905
::google::protobuf::uint8* TSToMasterCommonPB::InternalSerializeWithCachedSizesToArray(
906
403k
    bool deterministic, ::google::protobuf::uint8* target) const {
907
403k
  (void)deterministic; // Unused
908
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSToMasterCommonPB)
909
403k
  ::google::protobuf::uint32 cached_has_bits = 0;
910
403k
  (void) cached_has_bits;
911
912
403k
  cached_has_bits = _has_bits_[0];
913
  // required .yb.NodeInstancePB ts_instance = 1;
914
403k
  if (cached_has_bits & 0x00000001u) {
915
403k
    target = ::google::protobuf::internal::WireFormatLite::
916
403k
      InternalWriteMessageToArray(
917
403k
        1, *this->ts_instance_, deterministic, target);
918
403k
  }
919
920
403k
  if (_internal_metadata_.have_unknown_fields()) {
921
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
922
0
        _internal_metadata_.unknown_fields(), target);
923
0
  }
924
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSToMasterCommonPB)
925
403k
  return target;
926
403k
}
927
928
807k
size_t TSToMasterCommonPB::ByteSizeLong() const {
929
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSToMasterCommonPB)
930
807k
  size_t total_size = 0;
931
932
807k
  if (_internal_metadata_.have_unknown_fields()) {
933
0
    total_size +=
934
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
935
0
        _internal_metadata_.unknown_fields());
936
0
  }
937
  // required .yb.NodeInstancePB ts_instance = 1;
938
807k
  if (has_ts_instance()) {
939
807k
    total_size += 1 +
940
807k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
941
807k
        *this->ts_instance_);
942
807k
  }
943
807k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
944
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
945
807k
  _cached_size_ = cached_size;
946
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
947
807k
  return total_size;
948
807k
}
949
950
0
void TSToMasterCommonPB::MergeFrom(const ::google::protobuf::Message& from) {
951
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSToMasterCommonPB)
952
0
  GOOGLE_DCHECK_NE(&from, this);
953
0
  const TSToMasterCommonPB* source =
954
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSToMasterCommonPB>(
955
0
          &from);
956
0
  if (source == NULL) {
957
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSToMasterCommonPB)
958
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
959
0
  } else {
960
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSToMasterCommonPB)
961
0
    MergeFrom(*source);
962
0
  }
963
0
}
964
965
5
void TSToMasterCommonPB::MergeFrom(const TSToMasterCommonPB& from) {
966
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSToMasterCommonPB)
967
5
  GOOGLE_DCHECK_NE(&from, this);
968
5
  _internal_metadata_.MergeFrom(from._internal_metadata_);
969
5
  ::google::protobuf::uint32 cached_has_bits = 0;
970
5
  (void) cached_has_bits;
971
972
5
  if (from.has_ts_instance()) {
973
5
    mutable_ts_instance()->::yb::NodeInstancePB::MergeFrom(from.ts_instance());
974
5
  }
975
5
}
976
977
0
void TSToMasterCommonPB::CopyFrom(const ::google::protobuf::Message& from) {
978
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSToMasterCommonPB)
979
0
  if (&from == this) return;
980
0
  Clear();
981
0
  MergeFrom(from);
982
0
}
983
984
5
void TSToMasterCommonPB::CopyFrom(const TSToMasterCommonPB& from) {
985
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSToMasterCommonPB)
986
5
  if (&from == this) return;
987
5
  Clear();
988
5
  MergeFrom(from);
989
5
}
990
991
787k
bool TSToMasterCommonPB::IsInitialized() const {
992
787k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
993
787k
  if (has_ts_instance()) {
994
786k
    if (!this->ts_instance_->IsInitialized()) return false;
995
787k
  }
996
787k
  return true;
997
787k
}
998
999
0
void TSToMasterCommonPB::Swap(TSToMasterCommonPB* other) {
1000
0
  if (other == this) return;
1001
0
  InternalSwap(other);
1002
0
}
1003
0
void TSToMasterCommonPB::InternalSwap(TSToMasterCommonPB* other) {
1004
0
  using std::swap;
1005
0
  swap(ts_instance_, other->ts_instance_);
1006
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1007
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1008
0
  swap(_cached_size_, other->_cached_size_);
1009
0
}
1010
1011
384k
::google::protobuf::Metadata TSToMasterCommonPB::GetMetadata() const {
1012
384k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
1013
384k
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
1014
384k
}
1015
1016
1017
// ===================================================================
1018
1019
15.8k
void ReportedTabletPB::InitAsDefaultInstance() {
1020
15.8k
  ::yb::master::_ReportedTabletPB_default_instance_._instance.get_mutable()->committed_consensus_state_ = const_cast< ::yb::consensus::ConsensusStatePB*>(
1021
15.8k
      ::yb::consensus::ConsensusStatePB::internal_default_instance());
1022
15.8k
  ::yb::master::_ReportedTabletPB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::AppStatusPB*>(
1023
15.8k
      ::yb::AppStatusPB::internal_default_instance());
1024
15.8k
}
1025
0
void ReportedTabletPB::clear_committed_consensus_state() {
1026
0
  if (committed_consensus_state_ != NULL) committed_consensus_state_->Clear();
1027
0
  clear_has_committed_consensus_state();
1028
0
}
1029
0
void ReportedTabletPB::clear_error() {
1030
0
  if (error_ != NULL) error_->Clear();
1031
0
  clear_has_error();
1032
0
}
1033
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1034
const int ReportedTabletPB::kTabletIdFieldNumber;
1035
const int ReportedTabletPB::kStateFieldNumber;
1036
const int ReportedTabletPB::kTabletDataStateFieldNumber;
1037
const int ReportedTabletPB::kCommittedConsensusStateFieldNumber;
1038
const int ReportedTabletPB::kErrorFieldNumber;
1039
const int ReportedTabletPB::kSchemaVersionFieldNumber;
1040
const int ReportedTabletPB::kShouldDisableLbMoveFieldNumber;
1041
const int ReportedTabletPB::kFsDataDirFieldNumber;
1042
const int ReportedTabletPB::kIsHiddenFieldNumber;
1043
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1044
1045
ReportedTabletPB::ReportedTabletPB()
1046
540k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1047
524k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1048
524k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB();
1049
524k
  }
1050
540k
  SharedCtor();
1051
  // @@protoc_insertion_point(constructor:yb.master.ReportedTabletPB)
1052
540k
}
1053
ReportedTabletPB::ReportedTabletPB(const ReportedTabletPB& from)
1054
  : ::google::protobuf::Message(),
1055
      _internal_metadata_(NULL),
1056
      _has_bits_(from._has_bits_),
1057
6
      _cached_size_(0) {
1058
6
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1059
6
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1060
6
  if (from.has_tablet_id()) {
1061
6
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1062
6
  }
1063
6
  fs_data_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1064
6
  if (from.has_fs_data_dir()) {
1065
6
    fs_data_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fs_data_dir_);
1066
6
  }
1067
6
  if (from.has_committed_consensus_state()) {
1068
6
    committed_consensus_state_ = new ::yb::consensus::ConsensusStatePB(*from.committed_consensus_state_);
1069
0
  } else {
1070
0
    committed_consensus_state_ = NULL;
1071
0
  }
1072
6
  if (from.has_error()) {
1073
0
    error_ = new ::yb::AppStatusPB(*from.error_);
1074
6
  } else {
1075
6
    error_ = NULL;
1076
6
  }
1077
6
  ::memcpy(&schema_version_, &from.schema_version_,
1078
6
    static_cast<size_t>(reinterpret_cast<char*>(&tablet_data_state_) -
1079
6
    reinterpret_cast<char*>(&schema_version_)) + sizeof(tablet_data_state_));
1080
  // @@protoc_insertion_point(copy_constructor:yb.master.ReportedTabletPB)
1081
6
}
1082
1083
540k
void ReportedTabletPB::SharedCtor() {
1084
540k
  _cached_size_ = 0;
1085
540k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1086
540k
  fs_data_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1087
540k
  ::memset(&committed_consensus_state_, 0, static_cast<size_t>(
1088
540k
      reinterpret_cast<char*>(&is_hidden_) -
1089
540k
      reinterpret_cast<char*>(&committed_consensus_state_)) + sizeof(is_hidden_));
1090
540k
  state_ = 999;
1091
540k
  tablet_data_state_ = 999;
1092
540k
}
1093
1094
525k
ReportedTabletPB::~ReportedTabletPB() {
1095
  // @@protoc_insertion_point(destructor:yb.master.ReportedTabletPB)
1096
525k
  SharedDtor();
1097
525k
}
1098
1099
525k
void ReportedTabletPB::SharedDtor() {
1100
525k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1101
525k
  fs_data_dir_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1102
525k
  if (this != internal_default_instance()) delete committed_consensus_state_;
1103
525k
  if (this != internal_default_instance()) delete error_;
1104
525k
}
1105
1106
0
void ReportedTabletPB::SetCachedSize(int size) const {
1107
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1108
0
  _cached_size_ = size;
1109
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1110
0
}
1111
0
const ::google::protobuf::Descriptor* ReportedTabletPB::descriptor() {
1112
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
1113
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1114
0
}
1115
1116
0
const ReportedTabletPB& ReportedTabletPB::default_instance() {
1117
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletPB();
1118
0
  return *internal_default_instance();
1119
0
}
1120
1121
0
ReportedTabletPB* ReportedTabletPB::New(::google::protobuf::Arena* arena) const {
1122
0
  ReportedTabletPB* n = new ReportedTabletPB;
1123
0
  if (arena != NULL) {
1124
0
    arena->Own(n);
1125
0
  }
1126
0
  return n;
1127
0
}
1128
1129
3
void ReportedTabletPB::Clear() {
1130
// @@protoc_insertion_point(message_clear_start:yb.master.ReportedTabletPB)
1131
3
  ::google::protobuf::uint32 cached_has_bits = 0;
1132
  // Prevent compiler warnings about cached_has_bits being unused
1133
3
  (void) cached_has_bits;
1134
1135
3
  cached_has_bits = _has_bits_[0];
1136
3
  if (cached_has_bits & 15u) {
1137
3
    if (cached_has_bits & 0x00000001u) {
1138
3
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1139
3
      (*tablet_id_.UnsafeRawStringPointer())->clear();
1140
3
    }
1141
3
    if (cached_has_bits & 0x00000002u) {
1142
3
      GOOGLE_DCHECK(!fs_data_dir_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1143
3
      (*fs_data_dir_.UnsafeRawStringPointer())->clear();
1144
3
    }
1145
3
    if (cached_has_bits & 0x00000004u) {
1146
3
      GOOGLE_DCHECK(committed_consensus_state_ != NULL);
1147
3
      committed_consensus_state_->Clear();
1148
3
    }
1149
3
    if (cached_has_bits & 0x00000008u) {
1150
0
      GOOGLE_DCHECK(error_ != NULL);
1151
0
      error_->Clear();
1152
0
    }
1153
3
  }
1154
3
  if (cached_has_bits & 240u) {
1155
3
    ::memset(&schema_version_, 0, static_cast<size_t>(
1156
3
        reinterpret_cast<char*>(&is_hidden_) -
1157
3
        reinterpret_cast<char*>(&schema_version_)) + sizeof(is_hidden_));
1158
3
    state_ = 999;
1159
3
  }
1160
3
  tablet_data_state_ = 999;
1161
3
  _has_bits_.Clear();
1162
3
  _internal_metadata_.Clear();
1163
3
}
1164
1165
bool ReportedTabletPB::MergePartialFromCodedStream(
1166
262k
    ::google::protobuf::io::CodedInputStream* input) {
1167
2.09M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1168
262k
  ::google::protobuf::uint32 tag;
1169
  // @@protoc_insertion_point(parse_start:yb.master.ReportedTabletPB)
1170
2.35M
  for (;;) {
1171
2.35M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1172
2.35M
    tag = p.first;
1173
2.35M
    if (!p.second) goto handle_unusual;
1174
2.08M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1175
      // required bytes tablet_id = 1;
1176
261k
      case 1: {
1177
261k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1178
261k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1179
261k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1180
261k
                input, this->mutable_tablet_id()));
1181
18.4E
        } else {
1182
18.4E
          goto handle_unusual;
1183
18.4E
        }
1184
261k
        break;
1185
261k
      }
1186
1187
      // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN];
1188
262k
      case 2: {
1189
262k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1190
262k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1191
262k
          int value;
1192
262k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1193
262k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1194
262k
                 input, &value)));
1195
262k
          if (::yb::tablet::RaftGroupStatePB_IsValid(value)) {
1196
261k
            set_state(static_cast< ::yb::tablet::RaftGroupStatePB >(value));
1197
763
          } else {
1198
763
            mutable_unknown_fields()->AddVarint(
1199
763
                2, static_cast< ::google::protobuf::uint64>(value));
1200
763
          }
1201
18.4E
        } else {
1202
18.4E
          goto handle_unusual;
1203
18.4E
        }
1204
262k
        break;
1205
262k
      }
1206
1207
      // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
1208
259k
      case 3: {
1209
259k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1210
259k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1211
259k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1212
259k
               input, mutable_committed_consensus_state()));
1213
18.4E
        } else {
1214
18.4E
          goto handle_unusual;
1215
18.4E
        }
1216
259k
        break;
1217
259k
      }
1218
1219
      // optional .yb.AppStatusPB error = 4;
1220
0
      case 4: {
1221
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1222
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1223
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1224
0
               input, mutable_error()));
1225
0
        } else {
1226
0
          goto handle_unusual;
1227
0
        }
1228
0
        break;
1229
0
      }
1230
1231
      // optional uint32 schema_version = 5;
1232
262k
      case 5: {
1233
262k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1234
262k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1235
262k
          set_has_schema_version();
1236
262k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1237
262k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1238
262k
                 input, &schema_version_)));
1239
3
        } else {
1240
3
          goto handle_unusual;
1241
3
        }
1242
262k
        break;
1243
262k
      }
1244
1245
      // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN];
1246
262k
      case 6: {
1247
262k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1248
262k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
1249
262k
          int value;
1250
262k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1251
262k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1252
262k
                 input, &value)));
1253
262k
          if (::yb::tablet::TabletDataState_IsValid(value)) {
1254
262k
            set_tablet_data_state(static_cast< ::yb::tablet::TabletDataState >(value));
1255
83
          } else {
1256
83
            mutable_unknown_fields()->AddVarint(
1257
83
                6, static_cast< ::google::protobuf::uint64>(value));
1258
83
          }
1259
18.4E
        } else {
1260
18.4E
          goto handle_unusual;
1261
18.4E
        }
1262
262k
        break;
1263
262k
      }
1264
1265
      // optional bool should_disable_lb_move = 7;
1266
259k
      case 7: {
1267
259k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1268
259k
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
1269
259k
          set_has_should_disable_lb_move();
1270
259k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1271
259k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1272
259k
                 input, &should_disable_lb_move_)));
1273
18.4E
        } else {
1274
18.4E
          goto handle_unusual;
1275
18.4E
        }
1276
259k
        break;
1277
259k
      }
1278
1279
      // optional bytes fs_data_dir = 8;
1280
262k
      case 8: {
1281
262k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1282
262k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1283
262k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1284
262k
                input, this->mutable_fs_data_dir()));
1285
18.4E
        } else {
1286
18.4E
          goto handle_unusual;
1287
18.4E
        }
1288
262k
        break;
1289
262k
      }
1290
1291
      // optional bool is_hidden = 9;
1292
262k
      case 9: {
1293
262k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1294
262k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
1295
262k
          set_has_is_hidden();
1296
262k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1297
262k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1298
262k
                 input, &is_hidden_)));
1299
18.4E
        } else {
1300
18.4E
          goto handle_unusual;
1301
18.4E
        }
1302
262k
        break;
1303
262k
      }
1304
1305
0
      default: {
1306
262k
      handle_unusual:
1307
262k
        if (tag == 0) {
1308
262k
          goto success;
1309
262k
        }
1310
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1311
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1312
18.4E
        break;
1313
18.4E
      }
1314
2.08M
    }
1315
2.08M
  }
1316
262k
success:
1317
  // @@protoc_insertion_point(parse_success:yb.master.ReportedTabletPB)
1318
262k
  return true;
1319
0
failure:
1320
  // @@protoc_insertion_point(parse_failure:yb.master.ReportedTabletPB)
1321
0
  return false;
1322
262k
#undef DO_
1323
262k
}
1324
1325
void ReportedTabletPB::SerializeWithCachedSizes(
1326
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1327
  // @@protoc_insertion_point(serialize_start:yb.master.ReportedTabletPB)
1328
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1329
0
  (void) cached_has_bits;
1330
1331
0
  cached_has_bits = _has_bits_[0];
1332
  // required bytes tablet_id = 1;
1333
0
  if (cached_has_bits & 0x00000001u) {
1334
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1335
0
      1, this->tablet_id(), output);
1336
0
  }
1337
1338
  // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN];
1339
0
  if (cached_has_bits & 0x00000080u) {
1340
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1341
0
      2, this->state(), output);
1342
0
  }
1343
1344
  // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
1345
0
  if (cached_has_bits & 0x00000004u) {
1346
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1347
0
      3, *this->committed_consensus_state_, output);
1348
0
  }
1349
1350
  // optional .yb.AppStatusPB error = 4;
1351
0
  if (cached_has_bits & 0x00000008u) {
1352
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1353
0
      4, *this->error_, output);
1354
0
  }
1355
1356
  // optional uint32 schema_version = 5;
1357
0
  if (cached_has_bits & 0x00000010u) {
1358
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->schema_version(), output);
1359
0
  }
1360
1361
  // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN];
1362
0
  if (cached_has_bits & 0x00000100u) {
1363
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1364
0
      6, this->tablet_data_state(), output);
1365
0
  }
1366
1367
  // optional bool should_disable_lb_move = 7;
1368
0
  if (cached_has_bits & 0x00000020u) {
1369
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->should_disable_lb_move(), output);
1370
0
  }
1371
1372
  // optional bytes fs_data_dir = 8;
1373
0
  if (cached_has_bits & 0x00000002u) {
1374
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1375
0
      8, this->fs_data_dir(), output);
1376
0
  }
1377
1378
  // optional bool is_hidden = 9;
1379
0
  if (cached_has_bits & 0x00000040u) {
1380
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->is_hidden(), output);
1381
0
  }
1382
1383
0
  if (_internal_metadata_.have_unknown_fields()) {
1384
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1385
0
        _internal_metadata_.unknown_fields(), output);
1386
0
  }
1387
  // @@protoc_insertion_point(serialize_end:yb.master.ReportedTabletPB)
1388
0
}
1389
1390
::google::protobuf::uint8* ReportedTabletPB::InternalSerializeWithCachedSizesToArray(
1391
263k
    bool deterministic, ::google::protobuf::uint8* target) const {
1392
263k
  (void)deterministic; // Unused
1393
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReportedTabletPB)
1394
263k
  ::google::protobuf::uint32 cached_has_bits = 0;
1395
263k
  (void) cached_has_bits;
1396
1397
263k
  cached_has_bits = _has_bits_[0];
1398
  // required bytes tablet_id = 1;
1399
263k
  if (cached_has_bits & 0x00000001u) {
1400
263k
    target =
1401
263k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1402
263k
        1, this->tablet_id(), target);
1403
263k
  }
1404
1405
  // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN];
1406
263k
  if (cached_has_bits & 0x00000080u) {
1407
263k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1408
263k
      2, this->state(), target);
1409
263k
  }
1410
1411
  // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
1412
263k
  if (cached_has_bits & 0x00000004u) {
1413
260k
    target = ::google::protobuf::internal::WireFormatLite::
1414
260k
      InternalWriteMessageToArray(
1415
260k
        3, *this->committed_consensus_state_, deterministic, target);
1416
260k
  }
1417
1418
  // optional .yb.AppStatusPB error = 4;
1419
263k
  if (cached_has_bits & 0x00000008u) {
1420
0
    target = ::google::protobuf::internal::WireFormatLite::
1421
0
      InternalWriteMessageToArray(
1422
0
        4, *this->error_, deterministic, target);
1423
0
  }
1424
1425
  // optional uint32 schema_version = 5;
1426
263k
  if (cached_has_bits & 0x00000010u) {
1427
263k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->schema_version(), target);
1428
263k
  }
1429
1430
  // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN];
1431
263k
  if (cached_has_bits & 0x00000100u) {
1432
263k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1433
263k
      6, this->tablet_data_state(), target);
1434
263k
  }
1435
1436
  // optional bool should_disable_lb_move = 7;
1437
263k
  if (cached_has_bits & 0x00000020u) {
1438
260k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->should_disable_lb_move(), target);
1439
260k
  }
1440
1441
  // optional bytes fs_data_dir = 8;
1442
263k
  if (cached_has_bits & 0x00000002u) {
1443
263k
    target =
1444
263k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1445
263k
        8, this->fs_data_dir(), target);
1446
263k
  }
1447
1448
  // optional bool is_hidden = 9;
1449
263k
  if (cached_has_bits & 0x00000040u) {
1450
263k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->is_hidden(), target);
1451
263k
  }
1452
1453
263k
  if (_internal_metadata_.have_unknown_fields()) {
1454
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1455
0
        _internal_metadata_.unknown_fields(), target);
1456
0
  }
1457
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReportedTabletPB)
1458
263k
  return target;
1459
263k
}
1460
1461
526k
size_t ReportedTabletPB::ByteSizeLong() const {
1462
// @@protoc_insertion_point(message_byte_size_start:yb.master.ReportedTabletPB)
1463
526k
  size_t total_size = 0;
1464
1465
526k
  if (_internal_metadata_.have_unknown_fields()) {
1466
0
    total_size +=
1467
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1468
0
        _internal_metadata_.unknown_fields());
1469
0
  }
1470
  // required bytes tablet_id = 1;
1471
526k
  if (has_tablet_id()) {
1472
526k
    total_size += 1 +
1473
526k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1474
526k
        this->tablet_id());
1475
526k
  }
1476
526k
  if (_has_bits_[0 / 32] & 254u) {
1477
    // optional bytes fs_data_dir = 8;
1478
526k
    if (has_fs_data_dir()) {
1479
526k
      total_size += 1 +
1480
526k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1481
526k
          this->fs_data_dir());
1482
526k
    }
1483
1484
    // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
1485
526k
    if (has_committed_consensus_state()) {
1486
521k
      total_size += 1 +
1487
521k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1488
521k
          *this->committed_consensus_state_);
1489
521k
    }
1490
1491
    // optional .yb.AppStatusPB error = 4;
1492
526k
    if (has_error()) {
1493
0
      total_size += 1 +
1494
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1495
0
          *this->error_);
1496
0
    }
1497
1498
    // optional uint32 schema_version = 5;
1499
526k
    if (has_schema_version()) {
1500
526k
      total_size += 1 +
1501
526k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
1502
526k
          this->schema_version());
1503
526k
    }
1504
1505
    // optional bool should_disable_lb_move = 7;
1506
526k
    if (has_should_disable_lb_move()) {
1507
521k
      total_size += 1 + 1;
1508
521k
    }
1509
1510
    // optional bool is_hidden = 9;
1511
526k
    if (has_is_hidden()) {
1512
526k
      total_size += 1 + 1;
1513
526k
    }
1514
1515
    // optional .yb.tablet.RaftGroupStatePB state = 2 [default = UNKNOWN];
1516
526k
    if (has_state()) {
1517
526k
      total_size += 1 +
1518
526k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
1519
526k
    }
1520
1521
526k
  }
1522
  // optional .yb.tablet.TabletDataState tablet_data_state = 6 [default = TABLET_DATA_UNKNOWN];
1523
526k
  if (has_tablet_data_state()) {
1524
526k
    total_size += 1 +
1525
526k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->tablet_data_state());
1526
526k
  }
1527
1528
526k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1529
526k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1530
526k
  _cached_size_ = cached_size;
1531
526k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1532
526k
  return total_size;
1533
526k
}
1534
1535
0
void ReportedTabletPB::MergeFrom(const ::google::protobuf::Message& from) {
1536
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReportedTabletPB)
1537
0
  GOOGLE_DCHECK_NE(&from, this);
1538
0
  const ReportedTabletPB* source =
1539
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReportedTabletPB>(
1540
0
          &from);
1541
0
  if (source == NULL) {
1542
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReportedTabletPB)
1543
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1544
0
  } else {
1545
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReportedTabletPB)
1546
0
    MergeFrom(*source);
1547
0
  }
1548
0
}
1549
1550
0
void ReportedTabletPB::MergeFrom(const ReportedTabletPB& from) {
1551
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReportedTabletPB)
1552
0
  GOOGLE_DCHECK_NE(&from, this);
1553
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1554
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1555
0
  (void) cached_has_bits;
1556
1557
0
  cached_has_bits = from._has_bits_[0];
1558
0
  if (cached_has_bits & 255u) {
1559
0
    if (cached_has_bits & 0x00000001u) {
1560
0
      set_has_tablet_id();
1561
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1562
0
    }
1563
0
    if (cached_has_bits & 0x00000002u) {
1564
0
      set_has_fs_data_dir();
1565
0
      fs_data_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fs_data_dir_);
1566
0
    }
1567
0
    if (cached_has_bits & 0x00000004u) {
1568
0
      mutable_committed_consensus_state()->::yb::consensus::ConsensusStatePB::MergeFrom(from.committed_consensus_state());
1569
0
    }
1570
0
    if (cached_has_bits & 0x00000008u) {
1571
0
      mutable_error()->::yb::AppStatusPB::MergeFrom(from.error());
1572
0
    }
1573
0
    if (cached_has_bits & 0x00000010u) {
1574
0
      schema_version_ = from.schema_version_;
1575
0
    }
1576
0
    if (cached_has_bits & 0x00000020u) {
1577
0
      should_disable_lb_move_ = from.should_disable_lb_move_;
1578
0
    }
1579
0
    if (cached_has_bits & 0x00000040u) {
1580
0
      is_hidden_ = from.is_hidden_;
1581
0
    }
1582
0
    if (cached_has_bits & 0x00000080u) {
1583
0
      state_ = from.state_;
1584
0
    }
1585
0
    _has_bits_[0] |= cached_has_bits;
1586
0
  }
1587
0
  if (cached_has_bits & 0x00000100u) {
1588
0
    set_tablet_data_state(from.tablet_data_state());
1589
0
  }
1590
0
}
1591
1592
0
void ReportedTabletPB::CopyFrom(const ::google::protobuf::Message& from) {
1593
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReportedTabletPB)
1594
0
  if (&from == this) return;
1595
0
  Clear();
1596
0
  MergeFrom(from);
1597
0
}
1598
1599
0
void ReportedTabletPB::CopyFrom(const ReportedTabletPB& from) {
1600
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReportedTabletPB)
1601
0
  if (&from == this) return;
1602
0
  Clear();
1603
0
  MergeFrom(from);
1604
0
}
1605
1606
525k
bool ReportedTabletPB::IsInitialized() const {
1607
525k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1608
525k
  if (has_committed_consensus_state()) {
1609
519k
    if (!this->committed_consensus_state_->IsInitialized()) return false;
1610
525k
  }
1611
525k
  if (has_error()) {
1612
0
    if (!this->error_->IsInitialized()) return false;
1613
525k
  }
1614
525k
  return true;
1615
525k
}
1616
1617
0
void ReportedTabletPB::Swap(ReportedTabletPB* other) {
1618
0
  if (other == this) return;
1619
0
  InternalSwap(other);
1620
0
}
1621
0
void ReportedTabletPB::InternalSwap(ReportedTabletPB* other) {
1622
0
  using std::swap;
1623
0
  tablet_id_.Swap(&other->tablet_id_);
1624
0
  fs_data_dir_.Swap(&other->fs_data_dir_);
1625
0
  swap(committed_consensus_state_, other->committed_consensus_state_);
1626
0
  swap(error_, other->error_);
1627
0
  swap(schema_version_, other->schema_version_);
1628
0
  swap(should_disable_lb_move_, other->should_disable_lb_move_);
1629
0
  swap(is_hidden_, other->is_hidden_);
1630
0
  swap(state_, other->state_);
1631
0
  swap(tablet_data_state_, other->tablet_data_state_);
1632
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1633
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1634
0
  swap(_cached_size_, other->_cached_size_);
1635
0
}
1636
1637
262k
::google::protobuf::Metadata ReportedTabletPB::GetMetadata() const {
1638
262k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
1639
262k
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
1640
262k
}
1641
1642
1643
// ===================================================================
1644
1645
15.8k
void TabletReportPB::InitAsDefaultInstance() {
1646
15.8k
}
1647
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1648
const int TabletReportPB::kIsIncrementalFieldNumber;
1649
const int TabletReportPB::kUpdatedTabletsFieldNumber;
1650
const int TabletReportPB::kRemovedTabletIdsFieldNumber;
1651
const int TabletReportPB::kSequenceNumberFieldNumber;
1652
const int TabletReportPB::kRemainingTabletCountFieldNumber;
1653
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1654
1655
TabletReportPB::TabletReportPB()
1656
803k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1657
787k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1658
787k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB();
1659
787k
  }
1660
803k
  SharedCtor();
1661
  // @@protoc_insertion_point(constructor:yb.master.TabletReportPB)
1662
803k
}
1663
TabletReportPB::TabletReportPB(const TabletReportPB& from)
1664
  : ::google::protobuf::Message(),
1665
      _internal_metadata_(NULL),
1666
      _has_bits_(from._has_bits_),
1667
      _cached_size_(0),
1668
      updated_tablets_(from.updated_tablets_),
1669
0
      removed_tablet_ids_(from.removed_tablet_ids_) {
1670
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1671
0
  ::memcpy(&is_incremental_, &from.is_incremental_,
1672
0
    static_cast<size_t>(reinterpret_cast<char*>(&remaining_tablet_count_) -
1673
0
    reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_));
1674
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletReportPB)
1675
0
}
1676
1677
802k
void TabletReportPB::SharedCtor() {
1678
802k
  _cached_size_ = 0;
1679
802k
  ::memset(&is_incremental_, 0, static_cast<size_t>(
1680
802k
      reinterpret_cast<char*>(&remaining_tablet_count_) -
1681
802k
      reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_));
1682
802k
}
1683
1684
788k
TabletReportPB::~TabletReportPB() {
1685
  // @@protoc_insertion_point(destructor:yb.master.TabletReportPB)
1686
788k
  SharedDtor();
1687
788k
}
1688
1689
788k
void TabletReportPB::SharedDtor() {
1690
788k
}
1691
1692
0
void TabletReportPB::SetCachedSize(int size) const {
1693
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1694
0
  _cached_size_ = size;
1695
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1696
0
}
1697
0
const ::google::protobuf::Descriptor* TabletReportPB::descriptor() {
1698
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
1699
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1700
0
}
1701
1702
0
const TabletReportPB& TabletReportPB::default_instance() {
1703
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportPB();
1704
0
  return *internal_default_instance();
1705
0
}
1706
1707
0
TabletReportPB* TabletReportPB::New(::google::protobuf::Arena* arena) const {
1708
0
  TabletReportPB* n = new TabletReportPB;
1709
0
  if (arena != NULL) {
1710
0
    arena->Own(n);
1711
0
  }
1712
0
  return n;
1713
0
}
1714
1715
403k
void TabletReportPB::Clear() {
1716
// @@protoc_insertion_point(message_clear_start:yb.master.TabletReportPB)
1717
403k
  ::google::protobuf::uint32 cached_has_bits = 0;
1718
  // Prevent compiler warnings about cached_has_bits being unused
1719
403k
  (void) cached_has_bits;
1720
1721
403k
  updated_tablets_.Clear();
1722
403k
  removed_tablet_ids_.Clear();
1723
403k
  cached_has_bits = _has_bits_[0];
1724
403k
  if (cached_has_bits & 7u) {
1725
7
    ::memset(&is_incremental_, 0, static_cast<size_t>(
1726
7
        reinterpret_cast<char*>(&remaining_tablet_count_) -
1727
7
        reinterpret_cast<char*>(&is_incremental_)) + sizeof(remaining_tablet_count_));
1728
7
  }
1729
403k
  _has_bits_.Clear();
1730
403k
  _internal_metadata_.Clear();
1731
403k
}
1732
1733
bool TabletReportPB::MergePartialFromCodedStream(
1734
384k
    ::google::protobuf::io::CodedInputStream* input) {
1735
1.41M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1736
384k
  ::google::protobuf::uint32 tag;
1737
  // @@protoc_insertion_point(parse_start:yb.master.TabletReportPB)
1738
1.79M
  for (;;) {
1739
1.79M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1740
1.79M
    tag = p.first;
1741
1.79M
    if (!p.second) goto handle_unusual;
1742
1.41M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1743
      // required bool is_incremental = 1;
1744
382k
      case 1: {
1745
382k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1746
382k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1747
382k
          set_has_is_incremental();
1748
382k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1749
382k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1750
382k
                 input, &is_incremental_)));
1751
18.4E
        } else {
1752
18.4E
          goto handle_unusual;
1753
18.4E
        }
1754
382k
        break;
1755
382k
      }
1756
1757
      // repeated .yb.master.ReportedTabletPB updated_tablets = 2;
1758
261k
      case 2: {
1759
261k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1760
261k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1761
261k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_updated_tablets()));
1762
18.4E
        } else {
1763
18.4E
          goto handle_unusual;
1764
18.4E
        }
1765
261k
        break;
1766
261k
      }
1767
1768
      // repeated bytes removed_tablet_ids = 3;
1769
0
      case 3: {
1770
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1771
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1772
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1773
0
                input, this->add_removed_tablet_ids()));
1774
0
        } else {
1775
0
          goto handle_unusual;
1776
0
        }
1777
0
        break;
1778
0
      }
1779
1780
      // required int32 sequence_number = 4;
1781
383k
      case 4: {
1782
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1783
383k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1784
383k
          set_has_sequence_number();
1785
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1786
383k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1787
383k
                 input, &sequence_number_)));
1788
18.4E
        } else {
1789
18.4E
          goto handle_unusual;
1790
18.4E
        }
1791
383k
        break;
1792
383k
      }
1793
1794
      // optional int32 remaining_tablet_count = 5;
1795
383k
      case 5: {
1796
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1797
383k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
1798
383k
          set_has_remaining_tablet_count();
1799
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1800
383k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1801
383k
                 input, &remaining_tablet_count_)));
1802
18.4E
        } else {
1803
18.4E
          goto handle_unusual;
1804
18.4E
        }
1805
383k
        break;
1806
383k
      }
1807
1808
0
      default: {
1809
383k
      handle_unusual:
1810
383k
        if (tag == 0) {
1811
383k
          goto success;
1812
383k
        }
1813
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1814
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1815
18.4E
        break;
1816
18.4E
      }
1817
1.41M
    }
1818
1.41M
  }
1819
383k
success:
1820
  // @@protoc_insertion_point(parse_success:yb.master.TabletReportPB)
1821
383k
  return true;
1822
0
failure:
1823
  // @@protoc_insertion_point(parse_failure:yb.master.TabletReportPB)
1824
0
  return false;
1825
384k
#undef DO_
1826
384k
}
1827
1828
void TabletReportPB::SerializeWithCachedSizes(
1829
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1830
  // @@protoc_insertion_point(serialize_start:yb.master.TabletReportPB)
1831
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1832
0
  (void) cached_has_bits;
1833
1834
0
  cached_has_bits = _has_bits_[0];
1835
  // required bool is_incremental = 1;
1836
0
  if (cached_has_bits & 0x00000001u) {
1837
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_incremental(), output);
1838
0
  }
1839
1840
  // repeated .yb.master.ReportedTabletPB updated_tablets = 2;
1841
0
  for (unsigned int i = 0,
1842
0
      n = static_cast<unsigned int>(this->updated_tablets_size()); i < n; i++) {
1843
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1844
0
      2, this->updated_tablets(static_cast<int>(i)), output);
1845
0
  }
1846
1847
  // repeated bytes removed_tablet_ids = 3;
1848
0
  for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++) {
1849
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
1850
0
      3, this->removed_tablet_ids(i), output);
1851
0
  }
1852
1853
  // required int32 sequence_number = 4;
1854
0
  if (cached_has_bits & 0x00000002u) {
1855
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->sequence_number(), output);
1856
0
  }
1857
1858
  // optional int32 remaining_tablet_count = 5;
1859
0
  if (cached_has_bits & 0x00000004u) {
1860
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->remaining_tablet_count(), output);
1861
0
  }
1862
1863
0
  if (_internal_metadata_.have_unknown_fields()) {
1864
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1865
0
        _internal_metadata_.unknown_fields(), output);
1866
0
  }
1867
  // @@protoc_insertion_point(serialize_end:yb.master.TabletReportPB)
1868
0
}
1869
1870
::google::protobuf::uint8* TabletReportPB::InternalSerializeWithCachedSizesToArray(
1871
403k
    bool deterministic, ::google::protobuf::uint8* target) const {
1872
403k
  (void)deterministic; // Unused
1873
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletReportPB)
1874
403k
  ::google::protobuf::uint32 cached_has_bits = 0;
1875
403k
  (void) cached_has_bits;
1876
1877
403k
  cached_has_bits = _has_bits_[0];
1878
  // required bool is_incremental = 1;
1879
403k
  if (cached_has_bits & 0x00000001u) {
1880
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_incremental(), target);
1881
403k
  }
1882
1883
  // repeated .yb.master.ReportedTabletPB updated_tablets = 2;
1884
403k
  for (unsigned int i = 0,
1885
666k
      n = static_cast<unsigned int>(this->updated_tablets_size()); i < n; i++) {
1886
263k
    target = ::google::protobuf::internal::WireFormatLite::
1887
263k
      InternalWriteMessageToArray(
1888
263k
        2, this->updated_tablets(static_cast<int>(i)), deterministic, target);
1889
263k
  }
1890
1891
  // repeated bytes removed_tablet_ids = 3;
1892
403k
  for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++) {
1893
0
    target = ::google::protobuf::internal::WireFormatLite::
1894
0
      WriteBytesToArray(3, this->removed_tablet_ids(i), target);
1895
0
  }
1896
1897
  // required int32 sequence_number = 4;
1898
403k
  if (cached_has_bits & 0x00000002u) {
1899
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->sequence_number(), target);
1900
403k
  }
1901
1902
  // optional int32 remaining_tablet_count = 5;
1903
403k
  if (cached_has_bits & 0x00000004u) {
1904
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->remaining_tablet_count(), target);
1905
403k
  }
1906
1907
403k
  if (_internal_metadata_.have_unknown_fields()) {
1908
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1909
0
        _internal_metadata_.unknown_fields(), target);
1910
0
  }
1911
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletReportPB)
1912
403k
  return target;
1913
403k
}
1914
1915
0
size_t TabletReportPB::RequiredFieldsByteSizeFallback() const {
1916
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TabletReportPB)
1917
0
  size_t total_size = 0;
1918
1919
0
  if (has_is_incremental()) {
1920
    // required bool is_incremental = 1;
1921
0
    total_size += 1 + 1;
1922
0
  }
1923
1924
0
  if (has_sequence_number()) {
1925
    // required int32 sequence_number = 4;
1926
0
    total_size += 1 +
1927
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
1928
0
        this->sequence_number());
1929
0
  }
1930
1931
0
  return total_size;
1932
0
}
1933
807k
size_t TabletReportPB::ByteSizeLong() const {
1934
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletReportPB)
1935
807k
  size_t total_size = 0;
1936
1937
807k
  if (_internal_metadata_.have_unknown_fields()) {
1938
0
    total_size +=
1939
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1940
0
        _internal_metadata_.unknown_fields());
1941
0
  }
1942
807k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
1943
    // required bool is_incremental = 1;
1944
807k
    total_size += 1 + 1;
1945
1946
    // required int32 sequence_number = 4;
1947
807k
    total_size += 1 +
1948
807k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
1949
807k
        this->sequence_number());
1950
1951
0
  } else {
1952
0
    total_size += RequiredFieldsByteSizeFallback();
1953
0
  }
1954
  // repeated .yb.master.ReportedTabletPB updated_tablets = 2;
1955
807k
  {
1956
807k
    unsigned int count = static_cast<unsigned int>(this->updated_tablets_size());
1957
807k
    total_size += 1UL * count;
1958
1.33M
    for (unsigned int i = 0; i < count; i++) {
1959
526k
      total_size +=
1960
526k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1961
526k
          this->updated_tablets(static_cast<int>(i)));
1962
526k
    }
1963
807k
  }
1964
1965
  // repeated bytes removed_tablet_ids = 3;
1966
807k
  total_size += 1 *
1967
807k
      ::google::protobuf::internal::FromIntSize(this->removed_tablet_ids_size());
1968
807k
  for (int i = 0, n = this->removed_tablet_ids_size(); i < n; i++) {
1969
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1970
0
      this->removed_tablet_ids(i));
1971
0
  }
1972
1973
  // optional int32 remaining_tablet_count = 5;
1974
807k
  if (has_remaining_tablet_count()) {
1975
807k
    total_size += 1 +
1976
807k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
1977
807k
        this->remaining_tablet_count());
1978
807k
  }
1979
1980
807k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1981
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1982
807k
  _cached_size_ = cached_size;
1983
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1984
807k
  return total_size;
1985
807k
}
1986
1987
0
void TabletReportPB::MergeFrom(const ::google::protobuf::Message& from) {
1988
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletReportPB)
1989
0
  GOOGLE_DCHECK_NE(&from, this);
1990
0
  const TabletReportPB* source =
1991
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletReportPB>(
1992
0
          &from);
1993
0
  if (source == NULL) {
1994
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletReportPB)
1995
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1996
0
  } else {
1997
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletReportPB)
1998
0
    MergeFrom(*source);
1999
0
  }
2000
0
}
2001
2002
0
void TabletReportPB::MergeFrom(const TabletReportPB& from) {
2003
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletReportPB)
2004
0
  GOOGLE_DCHECK_NE(&from, this);
2005
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2006
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2007
0
  (void) cached_has_bits;
2008
2009
0
  updated_tablets_.MergeFrom(from.updated_tablets_);
2010
0
  removed_tablet_ids_.MergeFrom(from.removed_tablet_ids_);
2011
0
  cached_has_bits = from._has_bits_[0];
2012
0
  if (cached_has_bits & 7u) {
2013
0
    if (cached_has_bits & 0x00000001u) {
2014
0
      is_incremental_ = from.is_incremental_;
2015
0
    }
2016
0
    if (cached_has_bits & 0x00000002u) {
2017
0
      sequence_number_ = from.sequence_number_;
2018
0
    }
2019
0
    if (cached_has_bits & 0x00000004u) {
2020
0
      remaining_tablet_count_ = from.remaining_tablet_count_;
2021
0
    }
2022
0
    _has_bits_[0] |= cached_has_bits;
2023
0
  }
2024
0
}
2025
2026
0
void TabletReportPB::CopyFrom(const ::google::protobuf::Message& from) {
2027
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletReportPB)
2028
0
  if (&from == this) return;
2029
0
  Clear();
2030
0
  MergeFrom(from);
2031
0
}
2032
2033
0
void TabletReportPB::CopyFrom(const TabletReportPB& from) {
2034
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletReportPB)
2035
0
  if (&from == this) return;
2036
0
  Clear();
2037
0
  MergeFrom(from);
2038
0
}
2039
2040
786k
bool TabletReportPB::IsInitialized() const {
2041
786k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
2042
786k
  if (!::google::protobuf::internal::AllAreInitialized(this->updated_tablets())) return false;
2043
786k
  return true;
2044
786k
}
2045
2046
0
void TabletReportPB::Swap(TabletReportPB* other) {
2047
0
  if (other == this) return;
2048
0
  InternalSwap(other);
2049
0
}
2050
0
void TabletReportPB::InternalSwap(TabletReportPB* other) {
2051
0
  using std::swap;
2052
0
  updated_tablets_.InternalSwap(&other->updated_tablets_);
2053
0
  removed_tablet_ids_.InternalSwap(&other->removed_tablet_ids_);
2054
0
  swap(is_incremental_, other->is_incremental_);
2055
0
  swap(sequence_number_, other->sequence_number_);
2056
0
  swap(remaining_tablet_count_, other->remaining_tablet_count_);
2057
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2058
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2059
0
  swap(_cached_size_, other->_cached_size_);
2060
0
}
2061
2062
383k
::google::protobuf::Metadata TabletReportPB::GetMetadata() const {
2063
383k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2064
383k
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
2065
383k
}
2066
2067
2068
// ===================================================================
2069
2070
15.8k
void TabletForSplitPB::InitAsDefaultInstance() {
2071
15.8k
}
2072
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2073
const int TabletForSplitPB::kTabletIdFieldNumber;
2074
const int TabletForSplitPB::kOBSOLETESplitPartitionKeyFieldNumber;
2075
const int TabletForSplitPB::kOBSOLETESplitEncodedKeyFieldNumber;
2076
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2077
2078
TabletForSplitPB::TabletForSplitPB()
2079
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2080
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2081
0
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB();
2082
0
  }
2083
15.8k
  SharedCtor();
2084
  // @@protoc_insertion_point(constructor:yb.master.TabletForSplitPB)
2085
15.8k
}
2086
TabletForSplitPB::TabletForSplitPB(const TabletForSplitPB& from)
2087
  : ::google::protobuf::Message(),
2088
      _internal_metadata_(NULL),
2089
      _has_bits_(from._has_bits_),
2090
0
      _cached_size_(0) {
2091
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2092
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2093
0
  if (from.has_tablet_id()) {
2094
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2095
0
  }
2096
0
  obsolete_split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2097
0
  if (from.has_obsolete_split_partition_key()) {
2098
0
    obsolete_split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_partition_key_);
2099
0
  }
2100
0
  obsolete_split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2101
0
  if (from.has_obsolete_split_encoded_key()) {
2102
0
    obsolete_split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_encoded_key_);
2103
0
  }
2104
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletForSplitPB)
2105
0
}
2106
2107
15.8k
void TabletForSplitPB::SharedCtor() {
2108
15.8k
  _cached_size_ = 0;
2109
15.8k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2110
15.8k
  obsolete_split_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2111
15.8k
  obsolete_split_encoded_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2112
15.8k
}
2113
2114
0
TabletForSplitPB::~TabletForSplitPB() {
2115
  // @@protoc_insertion_point(destructor:yb.master.TabletForSplitPB)
2116
0
  SharedDtor();
2117
0
}
2118
2119
0
void TabletForSplitPB::SharedDtor() {
2120
0
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2121
0
  obsolete_split_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2122
0
  obsolete_split_encoded_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2123
0
}
2124
2125
0
void TabletForSplitPB::SetCachedSize(int size) const {
2126
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2127
0
  _cached_size_ = size;
2128
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2129
0
}
2130
0
const ::google::protobuf::Descriptor* TabletForSplitPB::descriptor() {
2131
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2132
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2133
0
}
2134
2135
0
const TabletForSplitPB& TabletForSplitPB::default_instance() {
2136
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletForSplitPB();
2137
0
  return *internal_default_instance();
2138
0
}
2139
2140
0
TabletForSplitPB* TabletForSplitPB::New(::google::protobuf::Arena* arena) const {
2141
0
  TabletForSplitPB* n = new TabletForSplitPB;
2142
0
  if (arena != NULL) {
2143
0
    arena->Own(n);
2144
0
  }
2145
0
  return n;
2146
0
}
2147
2148
0
void TabletForSplitPB::Clear() {
2149
// @@protoc_insertion_point(message_clear_start:yb.master.TabletForSplitPB)
2150
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2151
  // Prevent compiler warnings about cached_has_bits being unused
2152
0
  (void) cached_has_bits;
2153
2154
0
  cached_has_bits = _has_bits_[0];
2155
0
  if (cached_has_bits & 7u) {
2156
0
    if (cached_has_bits & 0x00000001u) {
2157
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2158
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
2159
0
    }
2160
0
    if (cached_has_bits & 0x00000002u) {
2161
0
      GOOGLE_DCHECK(!obsolete_split_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2162
0
      (*obsolete_split_partition_key_.UnsafeRawStringPointer())->clear();
2163
0
    }
2164
0
    if (cached_has_bits & 0x00000004u) {
2165
0
      GOOGLE_DCHECK(!obsolete_split_encoded_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2166
0
      (*obsolete_split_encoded_key_.UnsafeRawStringPointer())->clear();
2167
0
    }
2168
0
  }
2169
0
  _has_bits_.Clear();
2170
0
  _internal_metadata_.Clear();
2171
0
}
2172
2173
bool TabletForSplitPB::MergePartialFromCodedStream(
2174
0
    ::google::protobuf::io::CodedInputStream* input) {
2175
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2176
0
  ::google::protobuf::uint32 tag;
2177
  // @@protoc_insertion_point(parse_start:yb.master.TabletForSplitPB)
2178
0
  for (;;) {
2179
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2180
0
    tag = p.first;
2181
0
    if (!p.second) goto handle_unusual;
2182
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2183
      // required bytes tablet_id = 1;
2184
0
      case 1: {
2185
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2186
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2187
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2188
0
                input, this->mutable_tablet_id()));
2189
0
        } else {
2190
0
          goto handle_unusual;
2191
0
        }
2192
0
        break;
2193
0
      }
2194
2195
      // optional bytes OBSOLETE_split_partition_key = 2;
2196
0
      case 2: {
2197
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2198
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2199
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2200
0
                input, this->mutable_obsolete_split_partition_key()));
2201
0
        } else {
2202
0
          goto handle_unusual;
2203
0
        }
2204
0
        break;
2205
0
      }
2206
2207
      // optional bytes OBSOLETE_split_encoded_key = 3;
2208
0
      case 3: {
2209
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2210
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2211
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2212
0
                input, this->mutable_obsolete_split_encoded_key()));
2213
0
        } else {
2214
0
          goto handle_unusual;
2215
0
        }
2216
0
        break;
2217
0
      }
2218
2219
0
      default: {
2220
0
      handle_unusual:
2221
0
        if (tag == 0) {
2222
0
          goto success;
2223
0
        }
2224
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2225
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2226
0
        break;
2227
0
      }
2228
0
    }
2229
0
  }
2230
0
success:
2231
  // @@protoc_insertion_point(parse_success:yb.master.TabletForSplitPB)
2232
0
  return true;
2233
0
failure:
2234
  // @@protoc_insertion_point(parse_failure:yb.master.TabletForSplitPB)
2235
0
  return false;
2236
0
#undef DO_
2237
0
}
2238
2239
void TabletForSplitPB::SerializeWithCachedSizes(
2240
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2241
  // @@protoc_insertion_point(serialize_start:yb.master.TabletForSplitPB)
2242
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2243
0
  (void) cached_has_bits;
2244
2245
0
  cached_has_bits = _has_bits_[0];
2246
  // required bytes tablet_id = 1;
2247
0
  if (cached_has_bits & 0x00000001u) {
2248
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2249
0
      1, this->tablet_id(), output);
2250
0
  }
2251
2252
  // optional bytes OBSOLETE_split_partition_key = 2;
2253
0
  if (cached_has_bits & 0x00000002u) {
2254
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2255
0
      2, this->obsolete_split_partition_key(), output);
2256
0
  }
2257
2258
  // optional bytes OBSOLETE_split_encoded_key = 3;
2259
0
  if (cached_has_bits & 0x00000004u) {
2260
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2261
0
      3, this->obsolete_split_encoded_key(), output);
2262
0
  }
2263
2264
0
  if (_internal_metadata_.have_unknown_fields()) {
2265
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2266
0
        _internal_metadata_.unknown_fields(), output);
2267
0
  }
2268
  // @@protoc_insertion_point(serialize_end:yb.master.TabletForSplitPB)
2269
0
}
2270
2271
::google::protobuf::uint8* TabletForSplitPB::InternalSerializeWithCachedSizesToArray(
2272
0
    bool deterministic, ::google::protobuf::uint8* target) const {
2273
0
  (void)deterministic; // Unused
2274
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletForSplitPB)
2275
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2276
0
  (void) cached_has_bits;
2277
2278
0
  cached_has_bits = _has_bits_[0];
2279
  // required bytes tablet_id = 1;
2280
0
  if (cached_has_bits & 0x00000001u) {
2281
0
    target =
2282
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2283
0
        1, this->tablet_id(), target);
2284
0
  }
2285
2286
  // optional bytes OBSOLETE_split_partition_key = 2;
2287
0
  if (cached_has_bits & 0x00000002u) {
2288
0
    target =
2289
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2290
0
        2, this->obsolete_split_partition_key(), target);
2291
0
  }
2292
2293
  // optional bytes OBSOLETE_split_encoded_key = 3;
2294
0
  if (cached_has_bits & 0x00000004u) {
2295
0
    target =
2296
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2297
0
        3, this->obsolete_split_encoded_key(), target);
2298
0
  }
2299
2300
0
  if (_internal_metadata_.have_unknown_fields()) {
2301
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2302
0
        _internal_metadata_.unknown_fields(), target);
2303
0
  }
2304
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletForSplitPB)
2305
0
  return target;
2306
0
}
2307
2308
0
size_t TabletForSplitPB::ByteSizeLong() const {
2309
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletForSplitPB)
2310
0
  size_t total_size = 0;
2311
2312
0
  if (_internal_metadata_.have_unknown_fields()) {
2313
0
    total_size +=
2314
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2315
0
        _internal_metadata_.unknown_fields());
2316
0
  }
2317
  // required bytes tablet_id = 1;
2318
0
  if (has_tablet_id()) {
2319
0
    total_size += 1 +
2320
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2321
0
        this->tablet_id());
2322
0
  }
2323
0
  if (_has_bits_[0 / 32] & 6u) {
2324
    // optional bytes OBSOLETE_split_partition_key = 2;
2325
0
    if (has_obsolete_split_partition_key()) {
2326
0
      total_size += 1 +
2327
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2328
0
          this->obsolete_split_partition_key());
2329
0
    }
2330
2331
    // optional bytes OBSOLETE_split_encoded_key = 3;
2332
0
    if (has_obsolete_split_encoded_key()) {
2333
0
      total_size += 1 +
2334
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2335
0
          this->obsolete_split_encoded_key());
2336
0
    }
2337
2338
0
  }
2339
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2340
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2341
0
  _cached_size_ = cached_size;
2342
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2343
0
  return total_size;
2344
0
}
2345
2346
0
void TabletForSplitPB::MergeFrom(const ::google::protobuf::Message& from) {
2347
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletForSplitPB)
2348
0
  GOOGLE_DCHECK_NE(&from, this);
2349
0
  const TabletForSplitPB* source =
2350
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletForSplitPB>(
2351
0
          &from);
2352
0
  if (source == NULL) {
2353
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletForSplitPB)
2354
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2355
0
  } else {
2356
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletForSplitPB)
2357
0
    MergeFrom(*source);
2358
0
  }
2359
0
}
2360
2361
0
void TabletForSplitPB::MergeFrom(const TabletForSplitPB& from) {
2362
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletForSplitPB)
2363
0
  GOOGLE_DCHECK_NE(&from, this);
2364
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2365
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2366
0
  (void) cached_has_bits;
2367
2368
0
  cached_has_bits = from._has_bits_[0];
2369
0
  if (cached_has_bits & 7u) {
2370
0
    if (cached_has_bits & 0x00000001u) {
2371
0
      set_has_tablet_id();
2372
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2373
0
    }
2374
0
    if (cached_has_bits & 0x00000002u) {
2375
0
      set_has_obsolete_split_partition_key();
2376
0
      obsolete_split_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_partition_key_);
2377
0
    }
2378
0
    if (cached_has_bits & 0x00000004u) {
2379
0
      set_has_obsolete_split_encoded_key();
2380
0
      obsolete_split_encoded_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_split_encoded_key_);
2381
0
    }
2382
0
  }
2383
0
}
2384
2385
0
void TabletForSplitPB::CopyFrom(const ::google::protobuf::Message& from) {
2386
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletForSplitPB)
2387
0
  if (&from == this) return;
2388
0
  Clear();
2389
0
  MergeFrom(from);
2390
0
}
2391
2392
0
void TabletForSplitPB::CopyFrom(const TabletForSplitPB& from) {
2393
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletForSplitPB)
2394
0
  if (&from == this) return;
2395
0
  Clear();
2396
0
  MergeFrom(from);
2397
0
}
2398
2399
0
bool TabletForSplitPB::IsInitialized() const {
2400
0
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2401
0
  return true;
2402
0
}
2403
2404
0
void TabletForSplitPB::Swap(TabletForSplitPB* other) {
2405
0
  if (other == this) return;
2406
0
  InternalSwap(other);
2407
0
}
2408
0
void TabletForSplitPB::InternalSwap(TabletForSplitPB* other) {
2409
0
  using std::swap;
2410
0
  tablet_id_.Swap(&other->tablet_id_);
2411
0
  obsolete_split_partition_key_.Swap(&other->obsolete_split_partition_key_);
2412
0
  obsolete_split_encoded_key_.Swap(&other->obsolete_split_encoded_key_);
2413
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2414
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2415
0
  swap(_cached_size_, other->_cached_size_);
2416
0
}
2417
2418
0
::google::protobuf::Metadata TabletForSplitPB::GetMetadata() const {
2419
0
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2420
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
2421
0
}
2422
2423
2424
// ===================================================================
2425
2426
15.8k
void TabletDriveStorageMetadataPB::InitAsDefaultInstance() {
2427
15.8k
}
2428
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2429
const int TabletDriveStorageMetadataPB::kTabletIdFieldNumber;
2430
const int TabletDriveStorageMetadataPB::kSstFileSizeFieldNumber;
2431
const int TabletDriveStorageMetadataPB::kWalFileSizeFieldNumber;
2432
const int TabletDriveStorageMetadataPB::kUncompressedSstFileSizeFieldNumber;
2433
const int TabletDriveStorageMetadataPB::kMayHaveOrphanedPostSplitDataFieldNumber;
2434
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2435
2436
TabletDriveStorageMetadataPB::TabletDriveStorageMetadataPB()
2437
602k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2438
586k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2439
586k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB();
2440
586k
  }
2441
602k
  SharedCtor();
2442
  // @@protoc_insertion_point(constructor:yb.master.TabletDriveStorageMetadataPB)
2443
602k
}
2444
TabletDriveStorageMetadataPB::TabletDriveStorageMetadataPB(const TabletDriveStorageMetadataPB& from)
2445
  : ::google::protobuf::Message(),
2446
      _internal_metadata_(NULL),
2447
      _has_bits_(from._has_bits_),
2448
0
      _cached_size_(0) {
2449
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2450
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2451
0
  if (from.has_tablet_id()) {
2452
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2453
0
  }
2454
0
  ::memcpy(&sst_file_size_, &from.sst_file_size_,
2455
0
    static_cast<size_t>(reinterpret_cast<char*>(&may_have_orphaned_post_split_data_) -
2456
0
    reinterpret_cast<char*>(&sst_file_size_)) + sizeof(may_have_orphaned_post_split_data_));
2457
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletDriveStorageMetadataPB)
2458
0
}
2459
2460
602k
void TabletDriveStorageMetadataPB::SharedCtor() {
2461
602k
  _cached_size_ = 0;
2462
602k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2463
602k
  ::memset(&sst_file_size_, 0, static_cast<size_t>(
2464
602k
      reinterpret_cast<char*>(&uncompressed_sst_file_size_) -
2465
602k
      reinterpret_cast<char*>(&sst_file_size_)) + sizeof(uncompressed_sst_file_size_));
2466
602k
  may_have_orphaned_post_split_data_ = true;
2467
602k
}
2468
2469
582k
TabletDriveStorageMetadataPB::~TabletDriveStorageMetadataPB() {
2470
  // @@protoc_insertion_point(destructor:yb.master.TabletDriveStorageMetadataPB)
2471
582k
  SharedDtor();
2472
582k
}
2473
2474
582k
void TabletDriveStorageMetadataPB::SharedDtor() {
2475
582k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2476
582k
}
2477
2478
0
void TabletDriveStorageMetadataPB::SetCachedSize(int size) const {
2479
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2480
0
  _cached_size_ = size;
2481
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2482
0
}
2483
0
const ::google::protobuf::Descriptor* TabletDriveStorageMetadataPB::descriptor() {
2484
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2485
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2486
0
}
2487
2488
0
const TabletDriveStorageMetadataPB& TabletDriveStorageMetadataPB::default_instance() {
2489
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletDriveStorageMetadataPB();
2490
0
  return *internal_default_instance();
2491
0
}
2492
2493
0
TabletDriveStorageMetadataPB* TabletDriveStorageMetadataPB::New(::google::protobuf::Arena* arena) const {
2494
0
  TabletDriveStorageMetadataPB* n = new TabletDriveStorageMetadataPB;
2495
0
  if (arena != NULL) {
2496
0
    arena->Own(n);
2497
0
  }
2498
0
  return n;
2499
0
}
2500
2501
0
void TabletDriveStorageMetadataPB::Clear() {
2502
// @@protoc_insertion_point(message_clear_start:yb.master.TabletDriveStorageMetadataPB)
2503
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2504
  // Prevent compiler warnings about cached_has_bits being unused
2505
0
  (void) cached_has_bits;
2506
2507
0
  cached_has_bits = _has_bits_[0];
2508
0
  if (cached_has_bits & 0x00000001u) {
2509
0
    GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2510
0
    (*tablet_id_.UnsafeRawStringPointer())->clear();
2511
0
  }
2512
0
  if (cached_has_bits & 30u) {
2513
0
    ::memset(&sst_file_size_, 0, static_cast<size_t>(
2514
0
        reinterpret_cast<char*>(&uncompressed_sst_file_size_) -
2515
0
        reinterpret_cast<char*>(&sst_file_size_)) + sizeof(uncompressed_sst_file_size_));
2516
0
    may_have_orphaned_post_split_data_ = true;
2517
0
  }
2518
0
  _has_bits_.Clear();
2519
0
  _internal_metadata_.Clear();
2520
0
}
2521
2522
bool TabletDriveStorageMetadataPB::MergePartialFromCodedStream(
2523
291k
    ::google::protobuf::io::CodedInputStream* input) {
2524
1.45M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2525
291k
  ::google::protobuf::uint32 tag;
2526
  // @@protoc_insertion_point(parse_start:yb.master.TabletDriveStorageMetadataPB)
2527
1.73M
  for (;;) {
2528
1.73M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2529
1.73M
    tag = p.first;
2530
1.73M
    if (!p.second) goto handle_unusual;
2531
1.44M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2532
      // required bytes tablet_id = 1;
2533
292k
      case 1: {
2534
292k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2535
291k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2536
291k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2537
291k
                input, this->mutable_tablet_id()));
2538
64
        } else {
2539
64
          goto handle_unusual;
2540
64
        }
2541
291k
        break;
2542
291k
      }
2543
2544
      // optional uint64 sst_file_size = 2;
2545
291k
      case 2: {
2546
291k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2547
291k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2548
291k
          set_has_sst_file_size();
2549
291k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2550
291k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2551
291k
                 input, &sst_file_size_)));
2552
18.4E
        } else {
2553
18.4E
          goto handle_unusual;
2554
18.4E
        }
2555
291k
        break;
2556
291k
      }
2557
2558
      // optional uint64 wal_file_size = 3;
2559
291k
      case 3: {
2560
291k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2561
291k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2562
291k
          set_has_wal_file_size();
2563
291k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2564
291k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2565
291k
                 input, &wal_file_size_)));
2566
18.4E
        } else {
2567
18.4E
          goto handle_unusual;
2568
18.4E
        }
2569
291k
        break;
2570
291k
      }
2571
2572
      // optional uint64 uncompressed_sst_file_size = 4;
2573
291k
      case 4: {
2574
291k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2575
291k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2576
291k
          set_has_uncompressed_sst_file_size();
2577
291k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2578
291k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2579
291k
                 input, &uncompressed_sst_file_size_)));
2580
18.4E
        } else {
2581
18.4E
          goto handle_unusual;
2582
18.4E
        }
2583
291k
        break;
2584
291k
      }
2585
2586
      // optional bool may_have_orphaned_post_split_data = 5 [default = true];
2587
291k
      case 5: {
2588
291k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2589
291k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2590
291k
          set_has_may_have_orphaned_post_split_data();
2591
291k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2592
291k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2593
291k
                 input, &may_have_orphaned_post_split_data_)));
2594
18.4E
        } else {
2595
18.4E
          goto handle_unusual;
2596
18.4E
        }
2597
291k
        break;
2598
291k
      }
2599
2600
0
      default: {
2601
291k
      handle_unusual:
2602
291k
        if (tag == 0) {
2603
291k
          goto success;
2604
291k
        }
2605
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2606
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2607
18.4E
        break;
2608
18.4E
      }
2609
1.44M
    }
2610
1.44M
  }
2611
291k
success:
2612
  // @@protoc_insertion_point(parse_success:yb.master.TabletDriveStorageMetadataPB)
2613
291k
  return true;
2614
0
failure:
2615
  // @@protoc_insertion_point(parse_failure:yb.master.TabletDriveStorageMetadataPB)
2616
0
  return false;
2617
291k
#undef DO_
2618
291k
}
2619
2620
void TabletDriveStorageMetadataPB::SerializeWithCachedSizes(
2621
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2622
  // @@protoc_insertion_point(serialize_start:yb.master.TabletDriveStorageMetadataPB)
2623
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2624
0
  (void) cached_has_bits;
2625
2626
0
  cached_has_bits = _has_bits_[0];
2627
  // required bytes tablet_id = 1;
2628
0
  if (cached_has_bits & 0x00000001u) {
2629
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2630
0
      1, this->tablet_id(), output);
2631
0
  }
2632
2633
  // optional uint64 sst_file_size = 2;
2634
0
  if (cached_has_bits & 0x00000002u) {
2635
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->sst_file_size(), output);
2636
0
  }
2637
2638
  // optional uint64 wal_file_size = 3;
2639
0
  if (cached_has_bits & 0x00000004u) {
2640
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->wal_file_size(), output);
2641
0
  }
2642
2643
  // optional uint64 uncompressed_sst_file_size = 4;
2644
0
  if (cached_has_bits & 0x00000008u) {
2645
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->uncompressed_sst_file_size(), output);
2646
0
  }
2647
2648
  // optional bool may_have_orphaned_post_split_data = 5 [default = true];
2649
0
  if (cached_has_bits & 0x00000010u) {
2650
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->may_have_orphaned_post_split_data(), output);
2651
0
  }
2652
2653
0
  if (_internal_metadata_.have_unknown_fields()) {
2654
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2655
0
        _internal_metadata_.unknown_fields(), output);
2656
0
  }
2657
  // @@protoc_insertion_point(serialize_end:yb.master.TabletDriveStorageMetadataPB)
2658
0
}
2659
2660
::google::protobuf::uint8* TabletDriveStorageMetadataPB::InternalSerializeWithCachedSizesToArray(
2661
295k
    bool deterministic, ::google::protobuf::uint8* target) const {
2662
295k
  (void)deterministic; // Unused
2663
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletDriveStorageMetadataPB)
2664
295k
  ::google::protobuf::uint32 cached_has_bits = 0;
2665
295k
  (void) cached_has_bits;
2666
2667
295k
  cached_has_bits = _has_bits_[0];
2668
  // required bytes tablet_id = 1;
2669
295k
  if (cached_has_bits & 0x00000001u) {
2670
295k
    target =
2671
295k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2672
295k
        1, this->tablet_id(), target);
2673
295k
  }
2674
2675
  // optional uint64 sst_file_size = 2;
2676
295k
  if (cached_has_bits & 0x00000002u) {
2677
295k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->sst_file_size(), target);
2678
295k
  }
2679
2680
  // optional uint64 wal_file_size = 3;
2681
295k
  if (cached_has_bits & 0x00000004u) {
2682
295k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->wal_file_size(), target);
2683
295k
  }
2684
2685
  // optional uint64 uncompressed_sst_file_size = 4;
2686
295k
  if (cached_has_bits & 0x00000008u) {
2687
295k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->uncompressed_sst_file_size(), target);
2688
295k
  }
2689
2690
  // optional bool may_have_orphaned_post_split_data = 5 [default = true];
2691
295k
  if (cached_has_bits & 0x00000010u) {
2692
295k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->may_have_orphaned_post_split_data(), target);
2693
295k
  }
2694
2695
295k
  if (_internal_metadata_.have_unknown_fields()) {
2696
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2697
0
        _internal_metadata_.unknown_fields(), target);
2698
0
  }
2699
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletDriveStorageMetadataPB)
2700
295k
  return target;
2701
295k
}
2702
2703
590k
size_t TabletDriveStorageMetadataPB::ByteSizeLong() const {
2704
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletDriveStorageMetadataPB)
2705
590k
  size_t total_size = 0;
2706
2707
590k
  if (_internal_metadata_.have_unknown_fields()) {
2708
0
    total_size +=
2709
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2710
0
        _internal_metadata_.unknown_fields());
2711
0
  }
2712
  // required bytes tablet_id = 1;
2713
590k
  if (has_tablet_id()) {
2714
590k
    total_size += 1 +
2715
590k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2716
590k
        this->tablet_id());
2717
590k
  }
2718
590k
  if (_has_bits_[0 / 32] & 30u) {
2719
    // optional uint64 sst_file_size = 2;
2720
590k
    if (has_sst_file_size()) {
2721
590k
      total_size += 1 +
2722
590k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
2723
590k
          this->sst_file_size());
2724
590k
    }
2725
2726
    // optional uint64 wal_file_size = 3;
2727
590k
    if (has_wal_file_size()) {
2728
590k
      total_size += 1 +
2729
590k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
2730
590k
          this->wal_file_size());
2731
590k
    }
2732
2733
    // optional uint64 uncompressed_sst_file_size = 4;
2734
590k
    if (has_uncompressed_sst_file_size()) {
2735
590k
      total_size += 1 +
2736
590k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
2737
590k
          this->uncompressed_sst_file_size());
2738
590k
    }
2739
2740
    // optional bool may_have_orphaned_post_split_data = 5 [default = true];
2741
590k
    if (has_may_have_orphaned_post_split_data()) {
2742
590k
      total_size += 1 + 1;
2743
590k
    }
2744
2745
590k
  }
2746
590k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2747
590k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2748
590k
  _cached_size_ = cached_size;
2749
590k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2750
590k
  return total_size;
2751
590k
}
2752
2753
0
void TabletDriveStorageMetadataPB::MergeFrom(const ::google::protobuf::Message& from) {
2754
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletDriveStorageMetadataPB)
2755
0
  GOOGLE_DCHECK_NE(&from, this);
2756
0
  const TabletDriveStorageMetadataPB* source =
2757
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletDriveStorageMetadataPB>(
2758
0
          &from);
2759
0
  if (source == NULL) {
2760
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletDriveStorageMetadataPB)
2761
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2762
0
  } else {
2763
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletDriveStorageMetadataPB)
2764
0
    MergeFrom(*source);
2765
0
  }
2766
0
}
2767
2768
0
void TabletDriveStorageMetadataPB::MergeFrom(const TabletDriveStorageMetadataPB& from) {
2769
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletDriveStorageMetadataPB)
2770
0
  GOOGLE_DCHECK_NE(&from, this);
2771
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2772
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2773
0
  (void) cached_has_bits;
2774
2775
0
  cached_has_bits = from._has_bits_[0];
2776
0
  if (cached_has_bits & 31u) {
2777
0
    if (cached_has_bits & 0x00000001u) {
2778
0
      set_has_tablet_id();
2779
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2780
0
    }
2781
0
    if (cached_has_bits & 0x00000002u) {
2782
0
      sst_file_size_ = from.sst_file_size_;
2783
0
    }
2784
0
    if (cached_has_bits & 0x00000004u) {
2785
0
      wal_file_size_ = from.wal_file_size_;
2786
0
    }
2787
0
    if (cached_has_bits & 0x00000008u) {
2788
0
      uncompressed_sst_file_size_ = from.uncompressed_sst_file_size_;
2789
0
    }
2790
0
    if (cached_has_bits & 0x00000010u) {
2791
0
      may_have_orphaned_post_split_data_ = from.may_have_orphaned_post_split_data_;
2792
0
    }
2793
0
    _has_bits_[0] |= cached_has_bits;
2794
0
  }
2795
0
}
2796
2797
0
void TabletDriveStorageMetadataPB::CopyFrom(const ::google::protobuf::Message& from) {
2798
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletDriveStorageMetadataPB)
2799
0
  if (&from == this) return;
2800
0
  Clear();
2801
0
  MergeFrom(from);
2802
0
}
2803
2804
0
void TabletDriveStorageMetadataPB::CopyFrom(const TabletDriveStorageMetadataPB& from) {
2805
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletDriveStorageMetadataPB)
2806
0
  if (&from == this) return;
2807
0
  Clear();
2808
0
  MergeFrom(from);
2809
0
}
2810
2811
586k
bool TabletDriveStorageMetadataPB::IsInitialized() const {
2812
586k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2813
586k
  return true;
2814
586k
}
2815
2816
0
void TabletDriveStorageMetadataPB::Swap(TabletDriveStorageMetadataPB* other) {
2817
0
  if (other == this) return;
2818
0
  InternalSwap(other);
2819
0
}
2820
0
void TabletDriveStorageMetadataPB::InternalSwap(TabletDriveStorageMetadataPB* other) {
2821
0
  using std::swap;
2822
0
  tablet_id_.Swap(&other->tablet_id_);
2823
0
  swap(sst_file_size_, other->sst_file_size_);
2824
0
  swap(wal_file_size_, other->wal_file_size_);
2825
0
  swap(uncompressed_sst_file_size_, other->uncompressed_sst_file_size_);
2826
0
  swap(may_have_orphaned_post_split_data_, other->may_have_orphaned_post_split_data_);
2827
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2828
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2829
0
  swap(_cached_size_, other->_cached_size_);
2830
0
}
2831
2832
289k
::google::protobuf::Metadata TabletDriveStorageMetadataPB::GetMetadata() const {
2833
289k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2834
289k
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
2835
289k
}
2836
2837
2838
// ===================================================================
2839
2840
15.8k
void ReportedTabletUpdatesPB::InitAsDefaultInstance() {
2841
15.8k
}
2842
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2843
const int ReportedTabletUpdatesPB::kTabletIdFieldNumber;
2844
const int ReportedTabletUpdatesPB::kStateMsgFieldNumber;
2845
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2846
2847
ReportedTabletUpdatesPB::ReportedTabletUpdatesPB()
2848
535k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2849
520k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2850
520k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB();
2851
520k
  }
2852
535k
  SharedCtor();
2853
  // @@protoc_insertion_point(constructor:yb.master.ReportedTabletUpdatesPB)
2854
535k
}
2855
ReportedTabletUpdatesPB::ReportedTabletUpdatesPB(const ReportedTabletUpdatesPB& from)
2856
  : ::google::protobuf::Message(),
2857
      _internal_metadata_(NULL),
2858
      _has_bits_(from._has_bits_),
2859
0
      _cached_size_(0) {
2860
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2861
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2862
0
  if (from.has_tablet_id()) {
2863
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2864
0
  }
2865
0
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2866
0
  if (from.has_state_msg()) {
2867
0
    state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
2868
0
  }
2869
  // @@protoc_insertion_point(copy_constructor:yb.master.ReportedTabletUpdatesPB)
2870
0
}
2871
2872
535k
void ReportedTabletUpdatesPB::SharedCtor() {
2873
535k
  _cached_size_ = 0;
2874
535k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2875
535k
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2876
535k
}
2877
2878
518k
ReportedTabletUpdatesPB::~ReportedTabletUpdatesPB() {
2879
  // @@protoc_insertion_point(destructor:yb.master.ReportedTabletUpdatesPB)
2880
518k
  SharedDtor();
2881
518k
}
2882
2883
518k
void ReportedTabletUpdatesPB::SharedDtor() {
2884
518k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2885
518k
  state_msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2886
518k
}
2887
2888
0
void ReportedTabletUpdatesPB::SetCachedSize(int size) const {
2889
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2890
0
  _cached_size_ = size;
2891
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2892
0
}
2893
0
const ::google::protobuf::Descriptor* ReportedTabletUpdatesPB::descriptor() {
2894
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
2895
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2896
0
}
2897
2898
0
const ReportedTabletUpdatesPB& ReportedTabletUpdatesPB::default_instance() {
2899
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsReportedTabletUpdatesPB();
2900
0
  return *internal_default_instance();
2901
0
}
2902
2903
0
ReportedTabletUpdatesPB* ReportedTabletUpdatesPB::New(::google::protobuf::Arena* arena) const {
2904
0
  ReportedTabletUpdatesPB* n = new ReportedTabletUpdatesPB;
2905
0
  if (arena != NULL) {
2906
0
    arena->Own(n);
2907
0
  }
2908
0
  return n;
2909
0
}
2910
2911
1
void ReportedTabletUpdatesPB::Clear() {
2912
// @@protoc_insertion_point(message_clear_start:yb.master.ReportedTabletUpdatesPB)
2913
1
  ::google::protobuf::uint32 cached_has_bits = 0;
2914
  // Prevent compiler warnings about cached_has_bits being unused
2915
1
  (void) cached_has_bits;
2916
2917
1
  cached_has_bits = _has_bits_[0];
2918
1
  if (cached_has_bits & 3u) {
2919
1
    if (cached_has_bits & 0x00000001u) {
2920
1
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2921
1
      (*tablet_id_.UnsafeRawStringPointer())->clear();
2922
1
    }
2923
1
    if (cached_has_bits & 0x00000002u) {
2924
0
      GOOGLE_DCHECK(!state_msg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2925
0
      (*state_msg_.UnsafeRawStringPointer())->clear();
2926
0
    }
2927
1
  }
2928
1
  _has_bits_.Clear();
2929
1
  _internal_metadata_.Clear();
2930
1
}
2931
2932
bool ReportedTabletUpdatesPB::MergePartialFromCodedStream(
2933
260k
    ::google::protobuf::io::CodedInputStream* input) {
2934
260k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2935
260k
  ::google::protobuf::uint32 tag;
2936
  // @@protoc_insertion_point(parse_start:yb.master.ReportedTabletUpdatesPB)
2937
520k
  for (;;) {
2938
520k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2939
520k
    tag = p.first;
2940
520k
    if (!p.second) goto handle_unusual;
2941
260k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2942
      // required bytes tablet_id = 1;
2943
260k
      case 1: {
2944
260k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2945
260k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2946
260k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2947
260k
                input, this->mutable_tablet_id()));
2948
0
        } else {
2949
0
          goto handle_unusual;
2950
0
        }
2951
260k
        break;
2952
260k
      }
2953
2954
      // optional string state_msg = 2;
2955
244
      case 2: {
2956
244
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2957
244
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2958
244
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2959
244
                input, this->mutable_state_msg()));
2960
244
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2961
244
            this->state_msg().data(), static_cast<int>(this->state_msg().length()),
2962
244
            ::google::protobuf::internal::WireFormat::PARSE,
2963
244
            "yb.master.ReportedTabletUpdatesPB.state_msg");
2964
0
        } else {
2965
0
          goto handle_unusual;
2966
0
        }
2967
244
        break;
2968
260k
      }
2969
2970
0
      default: {
2971
260k
      handle_unusual:
2972
260k
        if (tag == 0) {
2973
260k
          goto success;
2974
260k
        }
2975
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2976
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2977
0
        break;
2978
0
      }
2979
260k
    }
2980
260k
  }
2981
260k
success:
2982
  // @@protoc_insertion_point(parse_success:yb.master.ReportedTabletUpdatesPB)
2983
260k
  return true;
2984
0
failure:
2985
  // @@protoc_insertion_point(parse_failure:yb.master.ReportedTabletUpdatesPB)
2986
0
  return false;
2987
260k
#undef DO_
2988
260k
}
2989
2990
void ReportedTabletUpdatesPB::SerializeWithCachedSizes(
2991
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2992
  // @@protoc_insertion_point(serialize_start:yb.master.ReportedTabletUpdatesPB)
2993
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2994
0
  (void) cached_has_bits;
2995
2996
0
  cached_has_bits = _has_bits_[0];
2997
  // required bytes tablet_id = 1;
2998
0
  if (cached_has_bits & 0x00000001u) {
2999
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3000
0
      1, this->tablet_id(), output);
3001
0
  }
3002
3003
  // optional string state_msg = 2;
3004
0
  if (cached_has_bits & 0x00000002u) {
3005
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3006
0
      this->state_msg().data(), static_cast<int>(this->state_msg().length()),
3007
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3008
0
      "yb.master.ReportedTabletUpdatesPB.state_msg");
3009
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3010
0
      2, this->state_msg(), output);
3011
0
  }
3012
3013
0
  if (_internal_metadata_.have_unknown_fields()) {
3014
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3015
0
        _internal_metadata_.unknown_fields(), output);
3016
0
  }
3017
  // @@protoc_insertion_point(serialize_end:yb.master.ReportedTabletUpdatesPB)
3018
0
}
3019
3020
::google::protobuf::uint8* ReportedTabletUpdatesPB::InternalSerializeWithCachedSizesToArray(
3021
259k
    bool deterministic, ::google::protobuf::uint8* target) const {
3022
259k
  (void)deterministic; // Unused
3023
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReportedTabletUpdatesPB)
3024
259k
  ::google::protobuf::uint32 cached_has_bits = 0;
3025
259k
  (void) cached_has_bits;
3026
3027
259k
  cached_has_bits = _has_bits_[0];
3028
  // required bytes tablet_id = 1;
3029
259k
  if (cached_has_bits & 0x00000001u) {
3030
259k
    target =
3031
259k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3032
259k
        1, this->tablet_id(), target);
3033
259k
  }
3034
3035
  // optional string state_msg = 2;
3036
259k
  if (cached_has_bits & 0x00000002u) {
3037
244
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3038
244
      this->state_msg().data(), static_cast<int>(this->state_msg().length()),
3039
244
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3040
244
      "yb.master.ReportedTabletUpdatesPB.state_msg");
3041
244
    target =
3042
244
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3043
244
        2, this->state_msg(), target);
3044
244
  }
3045
3046
259k
  if (_internal_metadata_.have_unknown_fields()) {
3047
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3048
0
        _internal_metadata_.unknown_fields(), target);
3049
0
  }
3050
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReportedTabletUpdatesPB)
3051
259k
  return target;
3052
259k
}
3053
3054
518k
size_t ReportedTabletUpdatesPB::ByteSizeLong() const {
3055
// @@protoc_insertion_point(message_byte_size_start:yb.master.ReportedTabletUpdatesPB)
3056
518k
  size_t total_size = 0;
3057
3058
518k
  if (_internal_metadata_.have_unknown_fields()) {
3059
0
    total_size +=
3060
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3061
0
        _internal_metadata_.unknown_fields());
3062
0
  }
3063
  // required bytes tablet_id = 1;
3064
518k
  if (has_tablet_id()) {
3065
516k
    total_size += 1 +
3066
516k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
3067
516k
        this->tablet_id());
3068
516k
  }
3069
  // optional string state_msg = 2;
3070
518k
  if (has_state_msg()) {
3071
488
    total_size += 1 +
3072
488
      ::google::protobuf::internal::WireFormatLite::StringSize(
3073
488
        this->state_msg());
3074
488
  }
3075
3076
518k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3077
518k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3078
518k
  _cached_size_ = cached_size;
3079
518k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3080
518k
  return total_size;
3081
518k
}
3082
3083
0
void ReportedTabletUpdatesPB::MergeFrom(const ::google::protobuf::Message& from) {
3084
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReportedTabletUpdatesPB)
3085
0
  GOOGLE_DCHECK_NE(&from, this);
3086
0
  const ReportedTabletUpdatesPB* source =
3087
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReportedTabletUpdatesPB>(
3088
0
          &from);
3089
0
  if (source == NULL) {
3090
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReportedTabletUpdatesPB)
3091
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3092
0
  } else {
3093
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReportedTabletUpdatesPB)
3094
0
    MergeFrom(*source);
3095
0
  }
3096
0
}
3097
3098
0
void ReportedTabletUpdatesPB::MergeFrom(const ReportedTabletUpdatesPB& from) {
3099
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReportedTabletUpdatesPB)
3100
0
  GOOGLE_DCHECK_NE(&from, this);
3101
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3102
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3103
0
  (void) cached_has_bits;
3104
3105
0
  cached_has_bits = from._has_bits_[0];
3106
0
  if (cached_has_bits & 3u) {
3107
0
    if (cached_has_bits & 0x00000001u) {
3108
0
      set_has_tablet_id();
3109
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
3110
0
    }
3111
0
    if (cached_has_bits & 0x00000002u) {
3112
0
      set_has_state_msg();
3113
0
      state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
3114
0
    }
3115
0
  }
3116
0
}
3117
3118
0
void ReportedTabletUpdatesPB::CopyFrom(const ::google::protobuf::Message& from) {
3119
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReportedTabletUpdatesPB)
3120
0
  if (&from == this) return;
3121
0
  Clear();
3122
0
  MergeFrom(from);
3123
0
}
3124
3125
0
void ReportedTabletUpdatesPB::CopyFrom(const ReportedTabletUpdatesPB& from) {
3126
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReportedTabletUpdatesPB)
3127
0
  if (&from == this) return;
3128
0
  Clear();
3129
0
  MergeFrom(from);
3130
0
}
3131
3132
519k
bool ReportedTabletUpdatesPB::IsInitialized() const {
3133
519k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
3134
519k
  return true;
3135
519k
}
3136
3137
0
void ReportedTabletUpdatesPB::Swap(ReportedTabletUpdatesPB* other) {
3138
0
  if (other == this) return;
3139
0
  InternalSwap(other);
3140
0
}
3141
0
void ReportedTabletUpdatesPB::InternalSwap(ReportedTabletUpdatesPB* other) {
3142
0
  using std::swap;
3143
0
  tablet_id_.Swap(&other->tablet_id_);
3144
0
  state_msg_.Swap(&other->state_msg_);
3145
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3146
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3147
0
  swap(_cached_size_, other->_cached_size_);
3148
0
}
3149
3150
26
::google::protobuf::Metadata ReportedTabletUpdatesPB::GetMetadata() const {
3151
26
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3152
26
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
3153
26
}
3154
3155
3156
// ===================================================================
3157
3158
15.8k
void TabletReportUpdatesPB::InitAsDefaultInstance() {
3159
15.8k
}
3160
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3161
const int TabletReportUpdatesPB::kTabletsFieldNumber;
3162
const int TabletReportUpdatesPB::kProcessingTruncatedFieldNumber;
3163
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3164
3165
TabletReportUpdatesPB::TabletReportUpdatesPB()
3166
801k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3167
785k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3168
785k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB();
3169
785k
  }
3170
801k
  SharedCtor();
3171
  // @@protoc_insertion_point(constructor:yb.master.TabletReportUpdatesPB)
3172
801k
}
3173
TabletReportUpdatesPB::TabletReportUpdatesPB(const TabletReportUpdatesPB& from)
3174
  : ::google::protobuf::Message(),
3175
      _internal_metadata_(NULL),
3176
      _has_bits_(from._has_bits_),
3177
      _cached_size_(0),
3178
0
      tablets_(from.tablets_) {
3179
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3180
0
  processing_truncated_ = from.processing_truncated_;
3181
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletReportUpdatesPB)
3182
0
}
3183
3184
800k
void TabletReportUpdatesPB::SharedCtor() {
3185
800k
  _cached_size_ = 0;
3186
800k
  processing_truncated_ = false;
3187
800k
}
3188
3189
780k
TabletReportUpdatesPB::~TabletReportUpdatesPB() {
3190
  // @@protoc_insertion_point(destructor:yb.master.TabletReportUpdatesPB)
3191
780k
  SharedDtor();
3192
780k
}
3193
3194
780k
void TabletReportUpdatesPB::SharedDtor() {
3195
780k
}
3196
3197
0
void TabletReportUpdatesPB::SetCachedSize(int size) const {
3198
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3199
0
  _cached_size_ = size;
3200
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3201
0
}
3202
0
const ::google::protobuf::Descriptor* TabletReportUpdatesPB::descriptor() {
3203
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3204
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3205
0
}
3206
3207
0
const TabletReportUpdatesPB& TabletReportUpdatesPB::default_instance() {
3208
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTabletReportUpdatesPB();
3209
0
  return *internal_default_instance();
3210
0
}
3211
3212
0
TabletReportUpdatesPB* TabletReportUpdatesPB::New(::google::protobuf::Arena* arena) const {
3213
0
  TabletReportUpdatesPB* n = new TabletReportUpdatesPB;
3214
0
  if (arena != NULL) {
3215
0
    arena->Own(n);
3216
0
  }
3217
0
  return n;
3218
0
}
3219
3220
7
void TabletReportUpdatesPB::Clear() {
3221
// @@protoc_insertion_point(message_clear_start:yb.master.TabletReportUpdatesPB)
3222
7
  ::google::protobuf::uint32 cached_has_bits = 0;
3223
  // Prevent compiler warnings about cached_has_bits being unused
3224
7
  (void) cached_has_bits;
3225
3226
7
  tablets_.Clear();
3227
7
  processing_truncated_ = false;
3228
7
  _has_bits_.Clear();
3229
7
  _internal_metadata_.Clear();
3230
7
}
3231
3232
bool TabletReportUpdatesPB::MergePartialFromCodedStream(
3233
402k
    ::google::protobuf::io::CodedInputStream* input) {
3234
261k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3235
402k
  ::google::protobuf::uint32 tag;
3236
  // @@protoc_insertion_point(parse_start:yb.master.TabletReportUpdatesPB)
3237
663k
  for (;;) {
3238
663k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3239
663k
    tag = p.first;
3240
663k
    if (!p.second) goto handle_unusual;
3241
261k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3242
      // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1;
3243
260k
      case 1: {
3244
260k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3245
260k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3246
260k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablets()));
3247
0
        } else {
3248
0
          goto handle_unusual;
3249
0
        }
3250
260k
        break;
3251
260k
      }
3252
3253
      // optional bool processing_truncated = 2 [default = false];
3254
842
      case 2: {
3255
842
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3256
842
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3257
842
          set_has_processing_truncated();
3258
842
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3259
842
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3260
842
                 input, &processing_truncated_)));
3261
0
        } else {
3262
0
          goto handle_unusual;
3263
0
        }
3264
842
        break;
3265
402k
      }
3266
3267
0
      default: {
3268
402k
      handle_unusual:
3269
402k
        if (tag == 0) {
3270
402k
          goto success;
3271
402k
        }
3272
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3273
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3274
0
        break;
3275
0
      }
3276
261k
    }
3277
261k
  }
3278
402k
success:
3279
  // @@protoc_insertion_point(parse_success:yb.master.TabletReportUpdatesPB)
3280
402k
  return true;
3281
0
failure:
3282
  // @@protoc_insertion_point(parse_failure:yb.master.TabletReportUpdatesPB)
3283
0
  return false;
3284
402k
#undef DO_
3285
402k
}
3286
3287
void TabletReportUpdatesPB::SerializeWithCachedSizes(
3288
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3289
  // @@protoc_insertion_point(serialize_start:yb.master.TabletReportUpdatesPB)
3290
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3291
0
  (void) cached_has_bits;
3292
3293
  // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1;
3294
0
  for (unsigned int i = 0,
3295
0
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
3296
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3297
0
      1, this->tablets(static_cast<int>(i)), output);
3298
0
  }
3299
3300
0
  cached_has_bits = _has_bits_[0];
3301
  // optional bool processing_truncated = 2 [default = false];
3302
0
  if (cached_has_bits & 0x00000001u) {
3303
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->processing_truncated(), output);
3304
0
  }
3305
3306
0
  if (_internal_metadata_.have_unknown_fields()) {
3307
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3308
0
        _internal_metadata_.unknown_fields(), output);
3309
0
  }
3310
  // @@protoc_insertion_point(serialize_end:yb.master.TabletReportUpdatesPB)
3311
0
}
3312
3313
::google::protobuf::uint8* TabletReportUpdatesPB::InternalSerializeWithCachedSizesToArray(
3314
381k
    bool deterministic, ::google::protobuf::uint8* target) const {
3315
381k
  (void)deterministic; // Unused
3316
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletReportUpdatesPB)
3317
381k
  ::google::protobuf::uint32 cached_has_bits = 0;
3318
381k
  (void) cached_has_bits;
3319
3320
  // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1;
3321
381k
  for (unsigned int i = 0,
3322
639k
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
3323
258k
    target = ::google::protobuf::internal::WireFormatLite::
3324
258k
      InternalWriteMessageToArray(
3325
258k
        1, this->tablets(static_cast<int>(i)), deterministic, target);
3326
258k
  }
3327
3328
381k
  cached_has_bits = _has_bits_[0];
3329
  // optional bool processing_truncated = 2 [default = false];
3330
381k
  if (cached_has_bits & 0x00000001u) {
3331
840
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->processing_truncated(), target);
3332
840
  }
3333
3334
381k
  if (_internal_metadata_.have_unknown_fields()) {
3335
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3336
0
        _internal_metadata_.unknown_fields(), target);
3337
0
  }
3338
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletReportUpdatesPB)
3339
381k
  return target;
3340
381k
}
3341
3342
765k
size_t TabletReportUpdatesPB::ByteSizeLong() const {
3343
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletReportUpdatesPB)
3344
765k
  size_t total_size = 0;
3345
3346
765k
  if (_internal_metadata_.have_unknown_fields()) {
3347
0
    total_size +=
3348
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3349
0
        _internal_metadata_.unknown_fields());
3350
0
  }
3351
  // repeated .yb.master.ReportedTabletUpdatesPB tablets = 1;
3352
765k
  {
3353
765k
    unsigned int count = static_cast<unsigned int>(this->tablets_size());
3354
765k
    total_size += 1UL * count;
3355
1.28M
    for (unsigned int i = 0; i < count; i++) {
3356
517k
      total_size +=
3357
517k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3358
517k
          this->tablets(static_cast<int>(i)));
3359
517k
    }
3360
765k
  }
3361
3362
  // optional bool processing_truncated = 2 [default = false];
3363
765k
  if (has_processing_truncated()) {
3364
1.68k
    total_size += 1 + 1;
3365
1.68k
  }
3366
3367
765k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3368
765k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3369
765k
  _cached_size_ = cached_size;
3370
765k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3371
765k
  return total_size;
3372
765k
}
3373
3374
0
void TabletReportUpdatesPB::MergeFrom(const ::google::protobuf::Message& from) {
3375
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletReportUpdatesPB)
3376
0
  GOOGLE_DCHECK_NE(&from, this);
3377
0
  const TabletReportUpdatesPB* source =
3378
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletReportUpdatesPB>(
3379
0
          &from);
3380
0
  if (source == NULL) {
3381
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletReportUpdatesPB)
3382
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3383
0
  } else {
3384
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletReportUpdatesPB)
3385
0
    MergeFrom(*source);
3386
0
  }
3387
0
}
3388
3389
0
void TabletReportUpdatesPB::MergeFrom(const TabletReportUpdatesPB& from) {
3390
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletReportUpdatesPB)
3391
0
  GOOGLE_DCHECK_NE(&from, this);
3392
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3393
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3394
0
  (void) cached_has_bits;
3395
3396
0
  tablets_.MergeFrom(from.tablets_);
3397
0
  if (from.has_processing_truncated()) {
3398
0
    set_processing_truncated(from.processing_truncated());
3399
0
  }
3400
0
}
3401
3402
0
void TabletReportUpdatesPB::CopyFrom(const ::google::protobuf::Message& from) {
3403
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletReportUpdatesPB)
3404
0
  if (&from == this) return;
3405
0
  Clear();
3406
0
  MergeFrom(from);
3407
0
}
3408
3409
0
void TabletReportUpdatesPB::CopyFrom(const TabletReportUpdatesPB& from) {
3410
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletReportUpdatesPB)
3411
0
  if (&from == this) return;
3412
0
  Clear();
3413
0
  MergeFrom(from);
3414
0
}
3415
3416
784k
bool TabletReportUpdatesPB::IsInitialized() const {
3417
784k
  if (!::google::protobuf::internal::AllAreInitialized(this->tablets())) return false;
3418
784k
  return true;
3419
784k
}
3420
3421
0
void TabletReportUpdatesPB::Swap(TabletReportUpdatesPB* other) {
3422
0
  if (other == this) return;
3423
0
  InternalSwap(other);
3424
0
}
3425
0
void TabletReportUpdatesPB::InternalSwap(TabletReportUpdatesPB* other) {
3426
0
  using std::swap;
3427
0
  tablets_.InternalSwap(&other->tablets_);
3428
0
  swap(processing_truncated_, other->processing_truncated_);
3429
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3430
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3431
0
  swap(_cached_size_, other->_cached_size_);
3432
0
}
3433
3434
230
::google::protobuf::Metadata TabletReportUpdatesPB::GetMetadata() const {
3435
230
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3436
230
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
3437
230
}
3438
3439
3440
// ===================================================================
3441
3442
15.8k
void TSInformationPB::InitAsDefaultInstance() {
3443
15.8k
  ::yb::master::_TSInformationPB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::master::TSRegistrationPB*>(
3444
15.8k
      ::yb::master::TSRegistrationPB::internal_default_instance());
3445
15.8k
  ::yb::master::_TSInformationPB_default_instance_._instance.get_mutable()->tserver_instance_ = const_cast< ::yb::NodeInstancePB*>(
3446
15.8k
      ::yb::NodeInstancePB::internal_default_instance());
3447
15.8k
}
3448
0
void TSInformationPB::clear_registration() {
3449
0
  if (registration_ != NULL) registration_->Clear();
3450
0
  clear_has_registration();
3451
0
}
3452
0
void TSInformationPB::clear_tserver_instance() {
3453
0
  if (tserver_instance_ != NULL) tserver_instance_->Clear();
3454
0
  clear_has_tserver_instance();
3455
0
}
3456
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3457
const int TSInformationPB::kRegistrationFieldNumber;
3458
const int TSInformationPB::kTserverInstanceFieldNumber;
3459
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3460
3461
TSInformationPB::TSInformationPB()
3462
2.96M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3463
2.94M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3464
2.94M
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB();
3465
2.94M
  }
3466
2.96M
  SharedCtor();
3467
  // @@protoc_insertion_point(constructor:yb.master.TSInformationPB)
3468
2.96M
}
3469
TSInformationPB::TSInformationPB(const TSInformationPB& from)
3470
  : ::google::protobuf::Message(),
3471
      _internal_metadata_(NULL),
3472
      _has_bits_(from._has_bits_),
3473
444k
      _cached_size_(0) {
3474
444k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3475
444k
  if (from.has_registration()) {
3476
443k
    registration_ = new ::yb::master::TSRegistrationPB(*from.registration_);
3477
748
  } else {
3478
748
    registration_ = NULL;
3479
748
  }
3480
444k
  if (from.has_tserver_instance()) {
3481
443k
    tserver_instance_ = new ::yb::NodeInstancePB(*from.tserver_instance_);
3482
813
  } else {
3483
813
    tserver_instance_ = NULL;
3484
813
  }
3485
  // @@protoc_insertion_point(copy_constructor:yb.master.TSInformationPB)
3486
444k
}
3487
3488
2.96M
void TSInformationPB::SharedCtor() {
3489
2.96M
  _cached_size_ = 0;
3490
2.96M
  ::memset(&registration_, 0, static_cast<size_t>(
3491
2.96M
      reinterpret_cast<char*>(&tserver_instance_) -
3492
2.96M
      reinterpret_cast<char*>(&registration_)) + sizeof(tserver_instance_));
3493
2.96M
}
3494
3495
3.35M
TSInformationPB::~TSInformationPB() {
3496
  // @@protoc_insertion_point(destructor:yb.master.TSInformationPB)
3497
3.35M
  SharedDtor();
3498
3.35M
}
3499
3500
3.35M
void TSInformationPB::SharedDtor() {
3501
3.35M
  if (this != internal_default_instance()) delete registration_;
3502
3.35M
  if (this != internal_default_instance()) delete tserver_instance_;
3503
3.35M
}
3504
3505
0
void TSInformationPB::SetCachedSize(int size) const {
3506
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3507
0
  _cached_size_ = size;
3508
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3509
0
}
3510
0
const ::google::protobuf::Descriptor* TSInformationPB::descriptor() {
3511
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3512
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3513
0
}
3514
3515
0
const TSInformationPB& TSInformationPB::default_instance() {
3516
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSInformationPB();
3517
0
  return *internal_default_instance();
3518
0
}
3519
3520
0
TSInformationPB* TSInformationPB::New(::google::protobuf::Arena* arena) const {
3521
0
  TSInformationPB* n = new TSInformationPB;
3522
0
  if (arena != NULL) {
3523
0
    arena->Own(n);
3524
0
  }
3525
0
  return n;
3526
0
}
3527
3528
2.57M
void TSInformationPB::Clear() {
3529
// @@protoc_insertion_point(message_clear_start:yb.master.TSInformationPB)
3530
2.57M
  ::google::protobuf::uint32 cached_has_bits = 0;
3531
  // Prevent compiler warnings about cached_has_bits being unused
3532
2.57M
  (void) cached_has_bits;
3533
3534
2.57M
  cached_has_bits = _has_bits_[0];
3535
2.57M
  if (cached_has_bits & 3u) {
3536
1.31M
    if (cached_has_bits & 0x00000001u) {
3537
1.31M
      GOOGLE_DCHECK(registration_ != NULL);
3538
1.31M
      registration_->Clear();
3539
1.31M
    }
3540
1.31M
    if (cached_has_bits & 0x00000002u) {
3541
1.31M
      GOOGLE_DCHECK(tserver_instance_ != NULL);
3542
1.31M
      tserver_instance_->Clear();
3543
1.31M
    }
3544
1.31M
  }
3545
2.57M
  _has_bits_.Clear();
3546
2.57M
  _internal_metadata_.Clear();
3547
2.57M
}
3548
3549
bool TSInformationPB::MergePartialFromCodedStream(
3550
1.35M
    ::google::protobuf::io::CodedInputStream* input) {
3551
2.70M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3552
1.35M
  ::google::protobuf::uint32 tag;
3553
  // @@protoc_insertion_point(parse_start:yb.master.TSInformationPB)
3554
4.06M
  for (;;) {
3555
4.06M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3556
4.06M
    tag = p.first;
3557
4.06M
    if (!p.second) goto handle_unusual;
3558
2.70M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3559
      // required .yb.master.TSRegistrationPB registration = 1;
3560
1.35M
      case 1: {
3561
1.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3562
1.35M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3563
1.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3564
1.35M
               input, mutable_registration()));
3565
0
        } else {
3566
0
          goto handle_unusual;
3567
0
        }
3568
1.35M
        break;
3569
1.35M
      }
3570
3571
      // required .yb.NodeInstancePB tserver_instance = 2;
3572
1.35M
      case 2: {
3573
1.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3574
1.35M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3575
1.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3576
1.35M
               input, mutable_tserver_instance()));
3577
0
        } else {
3578
0
          goto handle_unusual;
3579
0
        }
3580
1.35M
        break;
3581
1.35M
      }
3582
3583
0
      default: {
3584
1.35M
      handle_unusual:
3585
1.35M
        if (tag == 0) {
3586
1.35M
          goto success;
3587
1.35M
        }
3588
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3589
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3590
0
        break;
3591
0
      }
3592
2.70M
    }
3593
2.70M
  }
3594
1.35M
success:
3595
  // @@protoc_insertion_point(parse_success:yb.master.TSInformationPB)
3596
1.35M
  return true;
3597
0
failure:
3598
  // @@protoc_insertion_point(parse_failure:yb.master.TSInformationPB)
3599
0
  return false;
3600
1.35M
#undef DO_
3601
1.35M
}
3602
3603
void TSInformationPB::SerializeWithCachedSizes(
3604
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3605
  // @@protoc_insertion_point(serialize_start:yb.master.TSInformationPB)
3606
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3607
0
  (void) cached_has_bits;
3608
3609
0
  cached_has_bits = _has_bits_[0];
3610
  // required .yb.master.TSRegistrationPB registration = 1;
3611
0
  if (cached_has_bits & 0x00000001u) {
3612
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3613
0
      1, *this->registration_, output);
3614
0
  }
3615
3616
  // required .yb.NodeInstancePB tserver_instance = 2;
3617
0
  if (cached_has_bits & 0x00000002u) {
3618
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3619
0
      2, *this->tserver_instance_, output);
3620
0
  }
3621
3622
0
  if (_internal_metadata_.have_unknown_fields()) {
3623
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3624
0
        _internal_metadata_.unknown_fields(), output);
3625
0
  }
3626
  // @@protoc_insertion_point(serialize_end:yb.master.TSInformationPB)
3627
0
}
3628
3629
::google::protobuf::uint8* TSInformationPB::InternalSerializeWithCachedSizesToArray(
3630
1.25M
    bool deterministic, ::google::protobuf::uint8* target) const {
3631
1.25M
  (void)deterministic; // Unused
3632
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSInformationPB)
3633
1.25M
  ::google::protobuf::uint32 cached_has_bits = 0;
3634
1.25M
  (void) cached_has_bits;
3635
3636
1.25M
  cached_has_bits = _has_bits_[0];
3637
  // required .yb.master.TSRegistrationPB registration = 1;
3638
1.25M
  if (cached_has_bits & 0x00000001u) {
3639
1.25M
    target = ::google::protobuf::internal::WireFormatLite::
3640
1.25M
      InternalWriteMessageToArray(
3641
1.25M
        1, *this->registration_, deterministic, target);
3642
1.25M
  }
3643
3644
  // required .yb.NodeInstancePB tserver_instance = 2;
3645
1.25M
  if (cached_has_bits & 0x00000002u) {
3646
1.25M
    target = ::google::protobuf::internal::WireFormatLite::
3647
1.25M
      InternalWriteMessageToArray(
3648
1.25M
        2, *this->tserver_instance_, deterministic, target);
3649
1.25M
  }
3650
3651
1.25M
  if (_internal_metadata_.have_unknown_fields()) {
3652
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3653
0
        _internal_metadata_.unknown_fields(), target);
3654
0
  }
3655
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSInformationPB)
3656
1.25M
  return target;
3657
1.25M
}
3658
3659
0
size_t TSInformationPB::RequiredFieldsByteSizeFallback() const {
3660
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TSInformationPB)
3661
0
  size_t total_size = 0;
3662
3663
0
  if (has_registration()) {
3664
    // required .yb.master.TSRegistrationPB registration = 1;
3665
0
    total_size += 1 +
3666
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3667
0
        *this->registration_);
3668
0
  }
3669
3670
0
  if (has_tserver_instance()) {
3671
    // required .yb.NodeInstancePB tserver_instance = 2;
3672
0
    total_size += 1 +
3673
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3674
0
        *this->tserver_instance_);
3675
0
  }
3676
3677
0
  return total_size;
3678
0
}
3679
2.50M
size_t TSInformationPB::ByteSizeLong() const {
3680
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSInformationPB)
3681
2.50M
  size_t total_size = 0;
3682
3683
2.50M
  if (_internal_metadata_.have_unknown_fields()) {
3684
0
    total_size +=
3685
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3686
0
        _internal_metadata_.unknown_fields());
3687
0
  }
3688
2.50M
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
3689
    // required .yb.master.TSRegistrationPB registration = 1;
3690
2.50M
    total_size += 1 +
3691
2.50M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3692
2.50M
        *this->registration_);
3693
3694
    // required .yb.NodeInstancePB tserver_instance = 2;
3695
2.50M
    total_size += 1 +
3696
2.50M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3697
2.50M
        *this->tserver_instance_);
3698
3699
1.23k
  } else {
3700
1.23k
    total_size += RequiredFieldsByteSizeFallback();
3701
1.23k
  }
3702
2.50M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3703
2.50M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3704
2.50M
  _cached_size_ = cached_size;
3705
2.50M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3706
2.50M
  return total_size;
3707
2.50M
}
3708
3709
0
void TSInformationPB::MergeFrom(const ::google::protobuf::Message& from) {
3710
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSInformationPB)
3711
0
  GOOGLE_DCHECK_NE(&from, this);
3712
0
  const TSInformationPB* source =
3713
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSInformationPB>(
3714
0
          &from);
3715
0
  if (source == NULL) {
3716
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSInformationPB)
3717
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3718
0
  } else {
3719
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSInformationPB)
3720
0
    MergeFrom(*source);
3721
0
  }
3722
0
}
3723
3724
2.57M
void TSInformationPB::MergeFrom(const TSInformationPB& from) {
3725
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSInformationPB)
3726
2.57M
  GOOGLE_DCHECK_NE(&from, this);
3727
2.57M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3728
2.57M
  ::google::protobuf::uint32 cached_has_bits = 0;
3729
2.57M
  (void) cached_has_bits;
3730
3731
2.57M
  cached_has_bits = from._has_bits_[0];
3732
2.57M
  if (cached_has_bits & 3u) {
3733
2.57M
    if (cached_has_bits & 0x00000001u) {
3734
2.57M
      mutable_registration()->::yb::master::TSRegistrationPB::MergeFrom(from.registration());
3735
2.57M
    }
3736
2.57M
    if (cached_has_bits & 0x00000002u) {
3737
2.57M
      mutable_tserver_instance()->::yb::NodeInstancePB::MergeFrom(from.tserver_instance());
3738
2.57M
    }
3739
2.57M
  }
3740
2.57M
}
3741
3742
0
void TSInformationPB::CopyFrom(const ::google::protobuf::Message& from) {
3743
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSInformationPB)
3744
0
  if (&from == this) return;
3745
0
  Clear();
3746
0
  MergeFrom(from);
3747
0
}
3748
3749
2.57M
void TSInformationPB::CopyFrom(const TSInformationPB& from) {
3750
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSInformationPB)
3751
2.57M
  if (&from == this) return;
3752
2.57M
  Clear();
3753
2.57M
  MergeFrom(from);
3754
2.57M
}
3755
3756
2.60M
bool TSInformationPB::IsInitialized() const {
3757
2.60M
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
3758
2.60M
  if (has_registration()) {
3759
2.60M
    if (!this->registration_->IsInitialized()) return false;
3760
2.60M
  }
3761
2.60M
  if (has_tserver_instance()) {
3762
2.59M
    if (!this->tserver_instance_->IsInitialized()) return false;
3763
2.60M
  }
3764
2.60M
  return true;
3765
2.60M
}
3766
3767
0
void TSInformationPB::Swap(TSInformationPB* other) {
3768
0
  if (other == this) return;
3769
0
  InternalSwap(other);
3770
0
}
3771
330k
void TSInformationPB::InternalSwap(TSInformationPB* other) {
3772
330k
  using std::swap;
3773
330k
  swap(registration_, other->registration_);
3774
330k
  swap(tserver_instance_, other->tserver_instance_);
3775
330k
  swap(_has_bits_[0], other->_has_bits_[0]);
3776
330k
  _internal_metadata_.Swap(&other->_internal_metadata_);
3777
330k
  swap(_cached_size_, other->_cached_size_);
3778
330k
}
3779
3780
734
::google::protobuf::Metadata TSInformationPB::GetMetadata() const {
3781
734
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3782
734
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
3783
734
}
3784
3785
3786
// ===================================================================
3787
3788
15.8k
void TSSnapshotScheduleInfoPB::InitAsDefaultInstance() {
3789
15.8k
}
3790
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3791
const int TSSnapshotScheduleInfoPB::kIdFieldNumber;
3792
const int TSSnapshotScheduleInfoPB::kLastSnapshotHybridTimeFieldNumber;
3793
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3794
3795
TSSnapshotScheduleInfoPB::TSSnapshotScheduleInfoPB()
3796
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3797
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3798
0
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB();
3799
0
  }
3800
15.8k
  SharedCtor();
3801
  // @@protoc_insertion_point(constructor:yb.master.TSSnapshotScheduleInfoPB)
3802
15.8k
}
3803
TSSnapshotScheduleInfoPB::TSSnapshotScheduleInfoPB(const TSSnapshotScheduleInfoPB& from)
3804
  : ::google::protobuf::Message(),
3805
      _internal_metadata_(NULL),
3806
      _has_bits_(from._has_bits_),
3807
0
      _cached_size_(0) {
3808
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3809
0
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3810
0
  if (from.has_id()) {
3811
0
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
3812
0
  }
3813
0
  last_snapshot_hybrid_time_ = from.last_snapshot_hybrid_time_;
3814
  // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotScheduleInfoPB)
3815
0
}
3816
3817
15.8k
void TSSnapshotScheduleInfoPB::SharedCtor() {
3818
15.8k
  _cached_size_ = 0;
3819
15.8k
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3820
15.8k
  last_snapshot_hybrid_time_ = GOOGLE_ULONGLONG(0);
3821
15.8k
}
3822
3823
0
TSSnapshotScheduleInfoPB::~TSSnapshotScheduleInfoPB() {
3824
  // @@protoc_insertion_point(destructor:yb.master.TSSnapshotScheduleInfoPB)
3825
0
  SharedDtor();
3826
0
}
3827
3828
0
void TSSnapshotScheduleInfoPB::SharedDtor() {
3829
0
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3830
0
}
3831
3832
0
void TSSnapshotScheduleInfoPB::SetCachedSize(int size) const {
3833
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3834
0
  _cached_size_ = size;
3835
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3836
0
}
3837
0
const ::google::protobuf::Descriptor* TSSnapshotScheduleInfoPB::descriptor() {
3838
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
3839
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3840
0
}
3841
3842
0
const TSSnapshotScheduleInfoPB& TSSnapshotScheduleInfoPB::default_instance() {
3843
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotScheduleInfoPB();
3844
0
  return *internal_default_instance();
3845
0
}
3846
3847
0
TSSnapshotScheduleInfoPB* TSSnapshotScheduleInfoPB::New(::google::protobuf::Arena* arena) const {
3848
0
  TSSnapshotScheduleInfoPB* n = new TSSnapshotScheduleInfoPB;
3849
0
  if (arena != NULL) {
3850
0
    arena->Own(n);
3851
0
  }
3852
0
  return n;
3853
0
}
3854
3855
0
void TSSnapshotScheduleInfoPB::Clear() {
3856
// @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotScheduleInfoPB)
3857
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3858
  // Prevent compiler warnings about cached_has_bits being unused
3859
0
  (void) cached_has_bits;
3860
3861
0
  cached_has_bits = _has_bits_[0];
3862
0
  if (cached_has_bits & 0x00000001u) {
3863
0
    GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3864
0
    (*id_.UnsafeRawStringPointer())->clear();
3865
0
  }
3866
0
  last_snapshot_hybrid_time_ = GOOGLE_ULONGLONG(0);
3867
0
  _has_bits_.Clear();
3868
0
  _internal_metadata_.Clear();
3869
0
}
3870
3871
bool TSSnapshotScheduleInfoPB::MergePartialFromCodedStream(
3872
0
    ::google::protobuf::io::CodedInputStream* input) {
3873
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3874
0
  ::google::protobuf::uint32 tag;
3875
  // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotScheduleInfoPB)
3876
0
  for (;;) {
3877
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3878
0
    tag = p.first;
3879
0
    if (!p.second) goto handle_unusual;
3880
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3881
      // optional bytes id = 1;
3882
0
      case 1: {
3883
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3884
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3885
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3886
0
                input, this->mutable_id()));
3887
0
        } else {
3888
0
          goto handle_unusual;
3889
0
        }
3890
0
        break;
3891
0
      }
3892
3893
      // optional fixed64 last_snapshot_hybrid_time = 2;
3894
0
      case 2: {
3895
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3896
0
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
3897
0
          set_has_last_snapshot_hybrid_time();
3898
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3899
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
3900
0
                 input, &last_snapshot_hybrid_time_)));
3901
0
        } else {
3902
0
          goto handle_unusual;
3903
0
        }
3904
0
        break;
3905
0
      }
3906
3907
0
      default: {
3908
0
      handle_unusual:
3909
0
        if (tag == 0) {
3910
0
          goto success;
3911
0
        }
3912
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3913
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3914
0
        break;
3915
0
      }
3916
0
    }
3917
0
  }
3918
0
success:
3919
  // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotScheduleInfoPB)
3920
0
  return true;
3921
0
failure:
3922
  // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotScheduleInfoPB)
3923
0
  return false;
3924
0
#undef DO_
3925
0
}
3926
3927
void TSSnapshotScheduleInfoPB::SerializeWithCachedSizes(
3928
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3929
  // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotScheduleInfoPB)
3930
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3931
0
  (void) cached_has_bits;
3932
3933
0
  cached_has_bits = _has_bits_[0];
3934
  // optional bytes id = 1;
3935
0
  if (cached_has_bits & 0x00000001u) {
3936
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3937
0
      1, this->id(), output);
3938
0
  }
3939
3940
  // optional fixed64 last_snapshot_hybrid_time = 2;
3941
0
  if (cached_has_bits & 0x00000002u) {
3942
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->last_snapshot_hybrid_time(), output);
3943
0
  }
3944
3945
0
  if (_internal_metadata_.have_unknown_fields()) {
3946
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3947
0
        _internal_metadata_.unknown_fields(), output);
3948
0
  }
3949
  // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotScheduleInfoPB)
3950
0
}
3951
3952
::google::protobuf::uint8* TSSnapshotScheduleInfoPB::InternalSerializeWithCachedSizesToArray(
3953
0
    bool deterministic, ::google::protobuf::uint8* target) const {
3954
0
  (void)deterministic; // Unused
3955
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotScheduleInfoPB)
3956
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3957
0
  (void) cached_has_bits;
3958
3959
0
  cached_has_bits = _has_bits_[0];
3960
  // optional bytes id = 1;
3961
0
  if (cached_has_bits & 0x00000001u) {
3962
0
    target =
3963
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3964
0
        1, this->id(), target);
3965
0
  }
3966
3967
  // optional fixed64 last_snapshot_hybrid_time = 2;
3968
0
  if (cached_has_bits & 0x00000002u) {
3969
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->last_snapshot_hybrid_time(), target);
3970
0
  }
3971
3972
0
  if (_internal_metadata_.have_unknown_fields()) {
3973
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3974
0
        _internal_metadata_.unknown_fields(), target);
3975
0
  }
3976
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotScheduleInfoPB)
3977
0
  return target;
3978
0
}
3979
3980
0
size_t TSSnapshotScheduleInfoPB::ByteSizeLong() const {
3981
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotScheduleInfoPB)
3982
0
  size_t total_size = 0;
3983
3984
0
  if (_internal_metadata_.have_unknown_fields()) {
3985
0
    total_size +=
3986
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3987
0
        _internal_metadata_.unknown_fields());
3988
0
  }
3989
0
  if (_has_bits_[0 / 32] & 3u) {
3990
    // optional bytes id = 1;
3991
0
    if (has_id()) {
3992
0
      total_size += 1 +
3993
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
3994
0
          this->id());
3995
0
    }
3996
3997
    // optional fixed64 last_snapshot_hybrid_time = 2;
3998
0
    if (has_last_snapshot_hybrid_time()) {
3999
0
      total_size += 1 + 8;
4000
0
    }
4001
4002
0
  }
4003
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4004
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4005
0
  _cached_size_ = cached_size;
4006
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4007
0
  return total_size;
4008
0
}
4009
4010
0
void TSSnapshotScheduleInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
4011
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotScheduleInfoPB)
4012
0
  GOOGLE_DCHECK_NE(&from, this);
4013
0
  const TSSnapshotScheduleInfoPB* source =
4014
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotScheduleInfoPB>(
4015
0
          &from);
4016
0
  if (source == NULL) {
4017
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotScheduleInfoPB)
4018
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4019
0
  } else {
4020
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotScheduleInfoPB)
4021
0
    MergeFrom(*source);
4022
0
  }
4023
0
}
4024
4025
0
void TSSnapshotScheduleInfoPB::MergeFrom(const TSSnapshotScheduleInfoPB& from) {
4026
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotScheduleInfoPB)
4027
0
  GOOGLE_DCHECK_NE(&from, this);
4028
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4029
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4030
0
  (void) cached_has_bits;
4031
4032
0
  cached_has_bits = from._has_bits_[0];
4033
0
  if (cached_has_bits & 3u) {
4034
0
    if (cached_has_bits & 0x00000001u) {
4035
0
      set_has_id();
4036
0
      id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
4037
0
    }
4038
0
    if (cached_has_bits & 0x00000002u) {
4039
0
      last_snapshot_hybrid_time_ = from.last_snapshot_hybrid_time_;
4040
0
    }
4041
0
    _has_bits_[0] |= cached_has_bits;
4042
0
  }
4043
0
}
4044
4045
0
void TSSnapshotScheduleInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
4046
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotScheduleInfoPB)
4047
0
  if (&from == this) return;
4048
0
  Clear();
4049
0
  MergeFrom(from);
4050
0
}
4051
4052
0
void TSSnapshotScheduleInfoPB::CopyFrom(const TSSnapshotScheduleInfoPB& from) {
4053
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotScheduleInfoPB)
4054
0
  if (&from == this) return;
4055
0
  Clear();
4056
0
  MergeFrom(from);
4057
0
}
4058
4059
0
bool TSSnapshotScheduleInfoPB::IsInitialized() const {
4060
0
  return true;
4061
0
}
4062
4063
0
void TSSnapshotScheduleInfoPB::Swap(TSSnapshotScheduleInfoPB* other) {
4064
0
  if (other == this) return;
4065
0
  InternalSwap(other);
4066
0
}
4067
0
void TSSnapshotScheduleInfoPB::InternalSwap(TSSnapshotScheduleInfoPB* other) {
4068
0
  using std::swap;
4069
0
  id_.Swap(&other->id_);
4070
0
  swap(last_snapshot_hybrid_time_, other->last_snapshot_hybrid_time_);
4071
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4072
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4073
0
  swap(_cached_size_, other->_cached_size_);
4074
0
}
4075
4076
0
::google::protobuf::Metadata TSSnapshotScheduleInfoPB::GetMetadata() const {
4077
0
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4078
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
4079
0
}
4080
4081
4082
// ===================================================================
4083
4084
15.8k
void TSSnapshotRestorationInfoPB::InitAsDefaultInstance() {
4085
15.8k
}
4086
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4087
const int TSSnapshotRestorationInfoPB::kIdFieldNumber;
4088
const int TSSnapshotRestorationInfoPB::kCompleteTimeHtFieldNumber;
4089
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4090
4091
TSSnapshotRestorationInfoPB::TSSnapshotRestorationInfoPB()
4092
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4093
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4094
0
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB();
4095
0
  }
4096
15.8k
  SharedCtor();
4097
  // @@protoc_insertion_point(constructor:yb.master.TSSnapshotRestorationInfoPB)
4098
15.8k
}
4099
TSSnapshotRestorationInfoPB::TSSnapshotRestorationInfoPB(const TSSnapshotRestorationInfoPB& from)
4100
  : ::google::protobuf::Message(),
4101
      _internal_metadata_(NULL),
4102
      _has_bits_(from._has_bits_),
4103
0
      _cached_size_(0) {
4104
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4105
0
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4106
0
  if (from.has_id()) {
4107
0
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
4108
0
  }
4109
0
  complete_time_ht_ = from.complete_time_ht_;
4110
  // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotRestorationInfoPB)
4111
0
}
4112
4113
15.8k
void TSSnapshotRestorationInfoPB::SharedCtor() {
4114
15.8k
  _cached_size_ = 0;
4115
15.8k
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4116
15.8k
  complete_time_ht_ = GOOGLE_ULONGLONG(0);
4117
15.8k
}
4118
4119
0
TSSnapshotRestorationInfoPB::~TSSnapshotRestorationInfoPB() {
4120
  // @@protoc_insertion_point(destructor:yb.master.TSSnapshotRestorationInfoPB)
4121
0
  SharedDtor();
4122
0
}
4123
4124
0
void TSSnapshotRestorationInfoPB::SharedDtor() {
4125
0
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4126
0
}
4127
4128
0
void TSSnapshotRestorationInfoPB::SetCachedSize(int size) const {
4129
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4130
0
  _cached_size_ = size;
4131
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4132
0
}
4133
0
const ::google::protobuf::Descriptor* TSSnapshotRestorationInfoPB::descriptor() {
4134
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4135
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4136
0
}
4137
4138
0
const TSSnapshotRestorationInfoPB& TSSnapshotRestorationInfoPB::default_instance() {
4139
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotRestorationInfoPB();
4140
0
  return *internal_default_instance();
4141
0
}
4142
4143
0
TSSnapshotRestorationInfoPB* TSSnapshotRestorationInfoPB::New(::google::protobuf::Arena* arena) const {
4144
0
  TSSnapshotRestorationInfoPB* n = new TSSnapshotRestorationInfoPB;
4145
0
  if (arena != NULL) {
4146
0
    arena->Own(n);
4147
0
  }
4148
0
  return n;
4149
0
}
4150
4151
0
void TSSnapshotRestorationInfoPB::Clear() {
4152
// @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotRestorationInfoPB)
4153
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4154
  // Prevent compiler warnings about cached_has_bits being unused
4155
0
  (void) cached_has_bits;
4156
4157
0
  cached_has_bits = _has_bits_[0];
4158
0
  if (cached_has_bits & 0x00000001u) {
4159
0
    GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4160
0
    (*id_.UnsafeRawStringPointer())->clear();
4161
0
  }
4162
0
  complete_time_ht_ = GOOGLE_ULONGLONG(0);
4163
0
  _has_bits_.Clear();
4164
0
  _internal_metadata_.Clear();
4165
0
}
4166
4167
bool TSSnapshotRestorationInfoPB::MergePartialFromCodedStream(
4168
0
    ::google::protobuf::io::CodedInputStream* input) {
4169
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4170
0
  ::google::protobuf::uint32 tag;
4171
  // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotRestorationInfoPB)
4172
0
  for (;;) {
4173
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4174
0
    tag = p.first;
4175
0
    if (!p.second) goto handle_unusual;
4176
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4177
      // optional bytes id = 1;
4178
0
      case 1: {
4179
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4180
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4181
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4182
0
                input, this->mutable_id()));
4183
0
        } else {
4184
0
          goto handle_unusual;
4185
0
        }
4186
0
        break;
4187
0
      }
4188
4189
      // optional fixed64 complete_time_ht = 2;
4190
0
      case 2: {
4191
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4192
0
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
4193
0
          set_has_complete_time_ht();
4194
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4195
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
4196
0
                 input, &complete_time_ht_)));
4197
0
        } else {
4198
0
          goto handle_unusual;
4199
0
        }
4200
0
        break;
4201
0
      }
4202
4203
0
      default: {
4204
0
      handle_unusual:
4205
0
        if (tag == 0) {
4206
0
          goto success;
4207
0
        }
4208
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4209
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4210
0
        break;
4211
0
      }
4212
0
    }
4213
0
  }
4214
0
success:
4215
  // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotRestorationInfoPB)
4216
0
  return true;
4217
0
failure:
4218
  // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotRestorationInfoPB)
4219
0
  return false;
4220
0
#undef DO_
4221
0
}
4222
4223
void TSSnapshotRestorationInfoPB::SerializeWithCachedSizes(
4224
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4225
  // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotRestorationInfoPB)
4226
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4227
0
  (void) cached_has_bits;
4228
4229
0
  cached_has_bits = _has_bits_[0];
4230
  // optional bytes id = 1;
4231
0
  if (cached_has_bits & 0x00000001u) {
4232
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4233
0
      1, this->id(), output);
4234
0
  }
4235
4236
  // optional fixed64 complete_time_ht = 2;
4237
0
  if (cached_has_bits & 0x00000002u) {
4238
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->complete_time_ht(), output);
4239
0
  }
4240
4241
0
  if (_internal_metadata_.have_unknown_fields()) {
4242
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4243
0
        _internal_metadata_.unknown_fields(), output);
4244
0
  }
4245
  // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotRestorationInfoPB)
4246
0
}
4247
4248
::google::protobuf::uint8* TSSnapshotRestorationInfoPB::InternalSerializeWithCachedSizesToArray(
4249
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4250
0
  (void)deterministic; // Unused
4251
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotRestorationInfoPB)
4252
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4253
0
  (void) cached_has_bits;
4254
4255
0
  cached_has_bits = _has_bits_[0];
4256
  // optional bytes id = 1;
4257
0
  if (cached_has_bits & 0x00000001u) {
4258
0
    target =
4259
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4260
0
        1, this->id(), target);
4261
0
  }
4262
4263
  // optional fixed64 complete_time_ht = 2;
4264
0
  if (cached_has_bits & 0x00000002u) {
4265
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->complete_time_ht(), target);
4266
0
  }
4267
4268
0
  if (_internal_metadata_.have_unknown_fields()) {
4269
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4270
0
        _internal_metadata_.unknown_fields(), target);
4271
0
  }
4272
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotRestorationInfoPB)
4273
0
  return target;
4274
0
}
4275
4276
0
size_t TSSnapshotRestorationInfoPB::ByteSizeLong() const {
4277
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotRestorationInfoPB)
4278
0
  size_t total_size = 0;
4279
4280
0
  if (_internal_metadata_.have_unknown_fields()) {
4281
0
    total_size +=
4282
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4283
0
        _internal_metadata_.unknown_fields());
4284
0
  }
4285
0
  if (_has_bits_[0 / 32] & 3u) {
4286
    // optional bytes id = 1;
4287
0
    if (has_id()) {
4288
0
      total_size += 1 +
4289
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4290
0
          this->id());
4291
0
    }
4292
4293
    // optional fixed64 complete_time_ht = 2;
4294
0
    if (has_complete_time_ht()) {
4295
0
      total_size += 1 + 8;
4296
0
    }
4297
4298
0
  }
4299
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4300
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4301
0
  _cached_size_ = cached_size;
4302
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4303
0
  return total_size;
4304
0
}
4305
4306
0
void TSSnapshotRestorationInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
4307
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotRestorationInfoPB)
4308
0
  GOOGLE_DCHECK_NE(&from, this);
4309
0
  const TSSnapshotRestorationInfoPB* source =
4310
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotRestorationInfoPB>(
4311
0
          &from);
4312
0
  if (source == NULL) {
4313
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotRestorationInfoPB)
4314
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4315
0
  } else {
4316
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotRestorationInfoPB)
4317
0
    MergeFrom(*source);
4318
0
  }
4319
0
}
4320
4321
0
void TSSnapshotRestorationInfoPB::MergeFrom(const TSSnapshotRestorationInfoPB& from) {
4322
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotRestorationInfoPB)
4323
0
  GOOGLE_DCHECK_NE(&from, this);
4324
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4325
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4326
0
  (void) cached_has_bits;
4327
4328
0
  cached_has_bits = from._has_bits_[0];
4329
0
  if (cached_has_bits & 3u) {
4330
0
    if (cached_has_bits & 0x00000001u) {
4331
0
      set_has_id();
4332
0
      id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
4333
0
    }
4334
0
    if (cached_has_bits & 0x00000002u) {
4335
0
      complete_time_ht_ = from.complete_time_ht_;
4336
0
    }
4337
0
    _has_bits_[0] |= cached_has_bits;
4338
0
  }
4339
0
}
4340
4341
0
void TSSnapshotRestorationInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
4342
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotRestorationInfoPB)
4343
0
  if (&from == this) return;
4344
0
  Clear();
4345
0
  MergeFrom(from);
4346
0
}
4347
4348
0
void TSSnapshotRestorationInfoPB::CopyFrom(const TSSnapshotRestorationInfoPB& from) {
4349
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotRestorationInfoPB)
4350
0
  if (&from == this) return;
4351
0
  Clear();
4352
0
  MergeFrom(from);
4353
0
}
4354
4355
0
bool TSSnapshotRestorationInfoPB::IsInitialized() const {
4356
0
  return true;
4357
0
}
4358
4359
0
void TSSnapshotRestorationInfoPB::Swap(TSSnapshotRestorationInfoPB* other) {
4360
0
  if (other == this) return;
4361
0
  InternalSwap(other);
4362
0
}
4363
0
void TSSnapshotRestorationInfoPB::InternalSwap(TSSnapshotRestorationInfoPB* other) {
4364
0
  using std::swap;
4365
0
  id_.Swap(&other->id_);
4366
0
  swap(complete_time_ht_, other->complete_time_ht_);
4367
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4368
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4369
0
  swap(_cached_size_, other->_cached_size_);
4370
0
}
4371
4372
0
::google::protobuf::Metadata TSSnapshotRestorationInfoPB::GetMetadata() const {
4373
0
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4374
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
4375
0
}
4376
4377
4378
// ===================================================================
4379
4380
15.8k
void TSSnapshotsInfoPB::InitAsDefaultInstance() {
4381
15.8k
}
4382
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4383
const int TSSnapshotsInfoPB::kSchedulesFieldNumber;
4384
const int TSSnapshotsInfoPB::kLastRestorationsUpdateHtFieldNumber;
4385
const int TSSnapshotsInfoPB::kRestorationsFieldNumber;
4386
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4387
4388
TSSnapshotsInfoPB::TSSnapshotsInfoPB()
4389
802k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4390
786k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4391
786k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB();
4392
786k
  }
4393
802k
  SharedCtor();
4394
  // @@protoc_insertion_point(constructor:yb.master.TSSnapshotsInfoPB)
4395
802k
}
4396
TSSnapshotsInfoPB::TSSnapshotsInfoPB(const TSSnapshotsInfoPB& from)
4397
  : ::google::protobuf::Message(),
4398
      _internal_metadata_(NULL),
4399
      _has_bits_(from._has_bits_),
4400
      _cached_size_(0),
4401
      schedules_(from.schedules_),
4402
0
      restorations_(from.restorations_) {
4403
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4404
0
  last_restorations_update_ht_ = from.last_restorations_update_ht_;
4405
  // @@protoc_insertion_point(copy_constructor:yb.master.TSSnapshotsInfoPB)
4406
0
}
4407
4408
802k
void TSSnapshotsInfoPB::SharedCtor() {
4409
802k
  _cached_size_ = 0;
4410
802k
  last_restorations_update_ht_ = GOOGLE_ULONGLONG(0);
4411
802k
}
4412
4413
780k
TSSnapshotsInfoPB::~TSSnapshotsInfoPB() {
4414
  // @@protoc_insertion_point(destructor:yb.master.TSSnapshotsInfoPB)
4415
780k
  SharedDtor();
4416
780k
}
4417
4418
780k
void TSSnapshotsInfoPB::SharedDtor() {
4419
780k
}
4420
4421
0
void TSSnapshotsInfoPB::SetCachedSize(int size) const {
4422
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4423
0
  _cached_size_ = size;
4424
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4425
0
}
4426
0
const ::google::protobuf::Descriptor* TSSnapshotsInfoPB::descriptor() {
4427
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4428
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4429
0
}
4430
4431
0
const TSSnapshotsInfoPB& TSSnapshotsInfoPB::default_instance() {
4432
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSSnapshotsInfoPB();
4433
0
  return *internal_default_instance();
4434
0
}
4435
4436
0
TSSnapshotsInfoPB* TSSnapshotsInfoPB::New(::google::protobuf::Arena* arena) const {
4437
0
  TSSnapshotsInfoPB* n = new TSSnapshotsInfoPB;
4438
0
  if (arena != NULL) {
4439
0
    arena->Own(n);
4440
0
  }
4441
0
  return n;
4442
0
}
4443
4444
0
void TSSnapshotsInfoPB::Clear() {
4445
// @@protoc_insertion_point(message_clear_start:yb.master.TSSnapshotsInfoPB)
4446
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4447
  // Prevent compiler warnings about cached_has_bits being unused
4448
0
  (void) cached_has_bits;
4449
4450
0
  schedules_.Clear();
4451
0
  restorations_.Clear();
4452
0
  last_restorations_update_ht_ = GOOGLE_ULONGLONG(0);
4453
0
  _has_bits_.Clear();
4454
0
  _internal_metadata_.Clear();
4455
0
}
4456
4457
bool TSSnapshotsInfoPB::MergePartialFromCodedStream(
4458
402k
    ::google::protobuf::io::CodedInputStream* input) {
4459
402k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4460
402k
  ::google::protobuf::uint32 tag;
4461
  // @@protoc_insertion_point(parse_start:yb.master.TSSnapshotsInfoPB)
4462
804k
  for (;;) {
4463
804k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4464
804k
    tag = p.first;
4465
804k
    if (!p.second) goto handle_unusual;
4466
402k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4467
      // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1;
4468
0
      case 1: {
4469
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4470
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4471
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_schedules()));
4472
0
        } else {
4473
0
          goto handle_unusual;
4474
0
        }
4475
0
        break;
4476
0
      }
4477
4478
      // optional fixed64 last_restorations_update_ht = 2;
4479
402k
      case 2: {
4480
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4481
402k
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
4482
402k
          set_has_last_restorations_update_ht();
4483
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4484
402k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
4485
402k
                 input, &last_restorations_update_ht_)));
4486
0
        } else {
4487
0
          goto handle_unusual;
4488
0
        }
4489
402k
        break;
4490
402k
      }
4491
4492
      // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3;
4493
0
      case 3: {
4494
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4495
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4496
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_restorations()));
4497
0
        } else {
4498
0
          goto handle_unusual;
4499
0
        }
4500
0
        break;
4501
402k
      }
4502
4503
0
      default: {
4504
402k
      handle_unusual:
4505
402k
        if (tag == 0) {
4506
402k
          goto success;
4507
402k
        }
4508
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4509
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4510
0
        break;
4511
0
      }
4512
402k
    }
4513
402k
  }
4514
402k
success:
4515
  // @@protoc_insertion_point(parse_success:yb.master.TSSnapshotsInfoPB)
4516
402k
  return true;
4517
0
failure:
4518
  // @@protoc_insertion_point(parse_failure:yb.master.TSSnapshotsInfoPB)
4519
0
  return false;
4520
402k
#undef DO_
4521
402k
}
4522
4523
void TSSnapshotsInfoPB::SerializeWithCachedSizes(
4524
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4525
  // @@protoc_insertion_point(serialize_start:yb.master.TSSnapshotsInfoPB)
4526
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4527
0
  (void) cached_has_bits;
4528
4529
  // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1;
4530
0
  for (unsigned int i = 0,
4531
0
      n = static_cast<unsigned int>(this->schedules_size()); i < n; i++) {
4532
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4533
0
      1, this->schedules(static_cast<int>(i)), output);
4534
0
  }
4535
4536
0
  cached_has_bits = _has_bits_[0];
4537
  // optional fixed64 last_restorations_update_ht = 2;
4538
0
  if (cached_has_bits & 0x00000001u) {
4539
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->last_restorations_update_ht(), output);
4540
0
  }
4541
4542
  // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3;
4543
0
  for (unsigned int i = 0,
4544
0
      n = static_cast<unsigned int>(this->restorations_size()); i < n; i++) {
4545
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4546
0
      3, this->restorations(static_cast<int>(i)), output);
4547
0
  }
4548
4549
0
  if (_internal_metadata_.have_unknown_fields()) {
4550
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4551
0
        _internal_metadata_.unknown_fields(), output);
4552
0
  }
4553
  // @@protoc_insertion_point(serialize_end:yb.master.TSSnapshotsInfoPB)
4554
0
}
4555
4556
::google::protobuf::uint8* TSSnapshotsInfoPB::InternalSerializeWithCachedSizesToArray(
4557
382k
    bool deterministic, ::google::protobuf::uint8* target) const {
4558
382k
  (void)deterministic; // Unused
4559
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSSnapshotsInfoPB)
4560
382k
  ::google::protobuf::uint32 cached_has_bits = 0;
4561
382k
  (void) cached_has_bits;
4562
4563
  // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1;
4564
382k
  for (unsigned int i = 0,
4565
382k
      n = static_cast<unsigned int>(this->schedules_size()); i < n; i++) {
4566
0
    target = ::google::protobuf::internal::WireFormatLite::
4567
0
      InternalWriteMessageToArray(
4568
0
        1, this->schedules(static_cast<int>(i)), deterministic, target);
4569
0
  }
4570
4571
382k
  cached_has_bits = _has_bits_[0];
4572
  // optional fixed64 last_restorations_update_ht = 2;
4573
382k
  if (cached_has_bits & 0x00000001u) {
4574
381k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->last_restorations_update_ht(), target);
4575
381k
  }
4576
4577
  // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3;
4578
382k
  for (unsigned int i = 0,
4579
382k
      n = static_cast<unsigned int>(this->restorations_size()); i < n; i++) {
4580
0
    target = ::google::protobuf::internal::WireFormatLite::
4581
0
      InternalWriteMessageToArray(
4582
0
        3, this->restorations(static_cast<int>(i)), deterministic, target);
4583
0
  }
4584
4585
382k
  if (_internal_metadata_.have_unknown_fields()) {
4586
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4587
0
        _internal_metadata_.unknown_fields(), target);
4588
0
  }
4589
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSSnapshotsInfoPB)
4590
382k
  return target;
4591
382k
}
4592
4593
766k
size_t TSSnapshotsInfoPB::ByteSizeLong() const {
4594
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSSnapshotsInfoPB)
4595
766k
  size_t total_size = 0;
4596
4597
766k
  if (_internal_metadata_.have_unknown_fields()) {
4598
0
    total_size +=
4599
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4600
0
        _internal_metadata_.unknown_fields());
4601
0
  }
4602
  // repeated .yb.master.TSSnapshotScheduleInfoPB schedules = 1;
4603
766k
  {
4604
766k
    unsigned int count = static_cast<unsigned int>(this->schedules_size());
4605
766k
    total_size += 1UL * count;
4606
766k
    for (unsigned int i = 0; i < count; i++) {
4607
0
      total_size +=
4608
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4609
0
          this->schedules(static_cast<int>(i)));
4610
0
    }
4611
766k
  }
4612
4613
  // repeated .yb.master.TSSnapshotRestorationInfoPB restorations = 3;
4614
766k
  {
4615
766k
    unsigned int count = static_cast<unsigned int>(this->restorations_size());
4616
766k
    total_size += 1UL * count;
4617
766k
    for (unsigned int i = 0; i < count; i++) {
4618
0
      total_size +=
4619
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4620
0
          this->restorations(static_cast<int>(i)));
4621
0
    }
4622
766k
  }
4623
4624
  // optional fixed64 last_restorations_update_ht = 2;
4625
766k
  if (has_last_restorations_update_ht()) {
4626
760k
    total_size += 1 + 8;
4627
760k
  }
4628
4629
766k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4630
766k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4631
766k
  _cached_size_ = cached_size;
4632
766k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4633
766k
  return total_size;
4634
766k
}
4635
4636
0
void TSSnapshotsInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
4637
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSSnapshotsInfoPB)
4638
0
  GOOGLE_DCHECK_NE(&from, this);
4639
0
  const TSSnapshotsInfoPB* source =
4640
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSSnapshotsInfoPB>(
4641
0
          &from);
4642
0
  if (source == NULL) {
4643
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSSnapshotsInfoPB)
4644
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4645
0
  } else {
4646
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSSnapshotsInfoPB)
4647
0
    MergeFrom(*source);
4648
0
  }
4649
0
}
4650
4651
0
void TSSnapshotsInfoPB::MergeFrom(const TSSnapshotsInfoPB& from) {
4652
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSSnapshotsInfoPB)
4653
0
  GOOGLE_DCHECK_NE(&from, this);
4654
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4655
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4656
0
  (void) cached_has_bits;
4657
4658
0
  schedules_.MergeFrom(from.schedules_);
4659
0
  restorations_.MergeFrom(from.restorations_);
4660
0
  if (from.has_last_restorations_update_ht()) {
4661
0
    set_last_restorations_update_ht(from.last_restorations_update_ht());
4662
0
  }
4663
0
}
4664
4665
0
void TSSnapshotsInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
4666
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSSnapshotsInfoPB)
4667
0
  if (&from == this) return;
4668
0
  Clear();
4669
0
  MergeFrom(from);
4670
0
}
4671
4672
0
void TSSnapshotsInfoPB::CopyFrom(const TSSnapshotsInfoPB& from) {
4673
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSSnapshotsInfoPB)
4674
0
  if (&from == this) return;
4675
0
  Clear();
4676
0
  MergeFrom(from);
4677
0
}
4678
4679
0
bool TSSnapshotsInfoPB::IsInitialized() const {
4680
0
  return true;
4681
0
}
4682
4683
0
void TSSnapshotsInfoPB::Swap(TSSnapshotsInfoPB* other) {
4684
0
  if (other == this) return;
4685
0
  InternalSwap(other);
4686
0
}
4687
0
void TSSnapshotsInfoPB::InternalSwap(TSSnapshotsInfoPB* other) {
4688
0
  using std::swap;
4689
0
  schedules_.InternalSwap(&other->schedules_);
4690
0
  restorations_.InternalSwap(&other->restorations_);
4691
0
  swap(last_restorations_update_ht_, other->last_restorations_update_ht_);
4692
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4693
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4694
0
  swap(_cached_size_, other->_cached_size_);
4695
0
}
4696
4697
248
::google::protobuf::Metadata TSSnapshotsInfoPB::GetMetadata() const {
4698
248
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4699
248
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
4700
248
}
4701
4702
4703
// ===================================================================
4704
4705
15.8k
void TSHeartbeatRequestPB::InitAsDefaultInstance() {
4706
15.8k
  ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->common_ = const_cast< ::yb::master::TSToMasterCommonPB*>(
4707
15.8k
      ::yb::master::TSToMasterCommonPB::internal_default_instance());
4708
15.8k
  ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::master::TSRegistrationPB*>(
4709
15.8k
      ::yb::master::TSRegistrationPB::internal_default_instance());
4710
15.8k
  ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->tablet_report_ = const_cast< ::yb::master::TabletReportPB*>(
4711
15.8k
      ::yb::master::TabletReportPB::internal_default_instance());
4712
15.8k
  ::yb::master::_TSHeartbeatRequestPB_default_instance_._instance.get_mutable()->metrics_ = const_cast< ::yb::master::TServerMetricsPB*>(
4713
15.8k
      ::yb::master::TServerMetricsPB::internal_default_instance());
4714
15.8k
}
4715
0
void TSHeartbeatRequestPB::clear_registration() {
4716
0
  if (registration_ != NULL) registration_->Clear();
4717
0
  clear_has_registration();
4718
0
}
4719
0
void TSHeartbeatRequestPB::clear_metrics() {
4720
0
  if (metrics_ != NULL) metrics_->Clear();
4721
0
  clear_has_metrics();
4722
0
}
4723
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4724
const int TSHeartbeatRequestPB::kCommonFieldNumber;
4725
const int TSHeartbeatRequestPB::kRegistrationFieldNumber;
4726
const int TSHeartbeatRequestPB::kTabletReportFieldNumber;
4727
const int TSHeartbeatRequestPB::kNumLiveTabletsFieldNumber;
4728
const int TSHeartbeatRequestPB::kConfigIndexFieldNumber;
4729
const int TSHeartbeatRequestPB::kMetricsFieldNumber;
4730
const int TSHeartbeatRequestPB::kLeaderCountFieldNumber;
4731
const int TSHeartbeatRequestPB::kClusterConfigVersionFieldNumber;
4732
const int TSHeartbeatRequestPB::kDEPRECATEDTabletsForSplitFieldNumber;
4733
const int TSHeartbeatRequestPB::kTsPhysicalTimeFieldNumber;
4734
const int TSHeartbeatRequestPB::kTsHybridTimeFieldNumber;
4735
const int TSHeartbeatRequestPB::kRttUsFieldNumber;
4736
const int TSHeartbeatRequestPB::kStorageMetadataFieldNumber;
4737
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4738
4739
TSHeartbeatRequestPB::TSHeartbeatRequestPB()
4740
804k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4741
788k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4742
788k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatRequestPB();
4743
788k
  }
4744
804k
  SharedCtor();
4745
  // @@protoc_insertion_point(constructor:yb.master.TSHeartbeatRequestPB)
4746
804k
}
4747
TSHeartbeatRequestPB::TSHeartbeatRequestPB(const TSHeartbeatRequestPB& from)
4748
  : ::google::protobuf::Message(),
4749
      _internal_metadata_(NULL),
4750
      _has_bits_(from._has_bits_),
4751
      _cached_size_(0),
4752
      deprecated_tablets_for_split_(from.deprecated_tablets_for_split_),
4753
0
      storage_metadata_(from.storage_metadata_) {
4754
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4755
0
  if (from.has_common()) {
4756
0
    common_ = new ::yb::master::TSToMasterCommonPB(*from.common_);
4757
0
  } else {
4758
0
    common_ = NULL;
4759
0
  }
4760
0
  if (from.has_registration()) {
4761
0
    registration_ = new ::yb::master::TSRegistrationPB(*from.registration_);
4762
0
  } else {
4763
0
    registration_ = NULL;
4764
0
  }
4765
0
  if (from.has_tablet_report()) {
4766
0
    tablet_report_ = new ::yb::master::TabletReportPB(*from.tablet_report_);
4767
0
  } else {
4768
0
    tablet_report_ = NULL;
4769
0
  }
4770
0
  if (from.has_metrics()) {
4771
0
    metrics_ = new ::yb::master::TServerMetricsPB(*from.metrics_);
4772
0
  } else {
4773
0
    metrics_ = NULL;
4774
0
  }
4775
0
  ::memcpy(&config_index_, &from.config_index_,
4776
0
    static_cast<size_t>(reinterpret_cast<char*>(&cluster_config_version_) -
4777
0
    reinterpret_cast<char*>(&config_index_)) + sizeof(cluster_config_version_));
4778
  // @@protoc_insertion_point(copy_constructor:yb.master.TSHeartbeatRequestPB)
4779
0
}
4780
4781
804k
void TSHeartbeatRequestPB::SharedCtor() {
4782
804k
  _cached_size_ = 0;
4783
804k
  ::memset(&common_, 0, static_cast<size_t>(
4784
804k
      reinterpret_cast<char*>(&cluster_config_version_) -
4785
804k
      reinterpret_cast<char*>(&common_)) + sizeof(cluster_config_version_));
4786
804k
}
4787
4788
788k
TSHeartbeatRequestPB::~TSHeartbeatRequestPB() {
4789
  // @@protoc_insertion_point(destructor:yb.master.TSHeartbeatRequestPB)
4790
788k
  SharedDtor();
4791
788k
}
4792
4793
788k
void TSHeartbeatRequestPB::SharedDtor() {
4794
788k
  if (this != internal_default_instance()) delete common_;
4795
788k
  if (this != internal_default_instance()) delete registration_;
4796
788k
  if (this != internal_default_instance()) delete tablet_report_;
4797
788k
  if (this != internal_default_instance()) delete metrics_;
4798
788k
}
4799
4800
0
void TSHeartbeatRequestPB::SetCachedSize(int size) const {
4801
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4802
0
  _cached_size_ = size;
4803
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4804
0
}
4805
0
const ::google::protobuf::Descriptor* TSHeartbeatRequestPB::descriptor() {
4806
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
4807
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4808
0
}
4809
4810
0
const TSHeartbeatRequestPB& TSHeartbeatRequestPB::default_instance() {
4811
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatRequestPB();
4812
0
  return *internal_default_instance();
4813
0
}
4814
4815
0
TSHeartbeatRequestPB* TSHeartbeatRequestPB::New(::google::protobuf::Arena* arena) const {
4816
0
  TSHeartbeatRequestPB* n = new TSHeartbeatRequestPB;
4817
0
  if (arena != NULL) {
4818
0
    arena->Own(n);
4819
0
  }
4820
0
  return n;
4821
0
}
4822
4823
384k
void TSHeartbeatRequestPB::Clear() {
4824
// @@protoc_insertion_point(message_clear_start:yb.master.TSHeartbeatRequestPB)
4825
384k
  ::google::protobuf::uint32 cached_has_bits = 0;
4826
  // Prevent compiler warnings about cached_has_bits being unused
4827
384k
  (void) cached_has_bits;
4828
4829
384k
  deprecated_tablets_for_split_.Clear();
4830
384k
  storage_metadata_.Clear();
4831
384k
  cached_has_bits = _has_bits_[0];
4832
384k
  if (cached_has_bits & 15u) {
4833
0
    if (cached_has_bits & 0x00000001u) {
4834
0
      GOOGLE_DCHECK(common_ != NULL);
4835
0
      common_->Clear();
4836
0
    }
4837
0
    if (cached_has_bits & 0x00000002u) {
4838
0
      GOOGLE_DCHECK(registration_ != NULL);
4839
0
      registration_->Clear();
4840
0
    }
4841
0
    if (cached_has_bits & 0x00000004u) {
4842
0
      GOOGLE_DCHECK(tablet_report_ != NULL);
4843
0
      tablet_report_->Clear();
4844
0
    }
4845
0
    if (cached_has_bits & 0x00000008u) {
4846
0
      GOOGLE_DCHECK(metrics_ != NULL);
4847
0
      metrics_->Clear();
4848
0
    }
4849
0
  }
4850
384k
  if (cached_has_bits & 240u) {
4851
0
    ::memset(&config_index_, 0, static_cast<size_t>(
4852
0
        reinterpret_cast<char*>(&ts_physical_time_) -
4853
0
        reinterpret_cast<char*>(&config_index_)) + sizeof(ts_physical_time_));
4854
0
  }
4855
384k
  if (cached_has_bits & 1792u) {
4856
0
    ::memset(&ts_hybrid_time_, 0, static_cast<size_t>(
4857
0
        reinterpret_cast<char*>(&cluster_config_version_) -
4858
0
        reinterpret_cast<char*>(&ts_hybrid_time_)) + sizeof(cluster_config_version_));
4859
0
  }
4860
384k
  _has_bits_.Clear();
4861
384k
  _internal_metadata_.Clear();
4862
384k
}
4863
4864
bool TSHeartbeatRequestPB::MergePartialFromCodedStream(
4865
383k
    ::google::protobuf::io::CodedInputStream* input) {
4866
3.78M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4867
383k
  ::google::protobuf::uint32 tag;
4868
  // @@protoc_insertion_point(parse_start:yb.master.TSHeartbeatRequestPB)
4869
4.16M
  for (;;) {
4870
4.16M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4871
4.16M
    tag = p.first;
4872
4.16M
    if (!p.second) goto handle_unusual;
4873
3.77M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4874
      // required .yb.master.TSToMasterCommonPB common = 1;
4875
382k
      case 1: {
4876
382k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4877
382k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4878
382k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4879
382k
               input, mutable_common()));
4880
18.4E
        } else {
4881
18.4E
          goto handle_unusual;
4882
18.4E
        }
4883
382k
        break;
4884
382k
      }
4885
4886
      // optional .yb.master.TSRegistrationPB registration = 2;
4887
5.95k
      case 2: {
4888
5.95k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4889
5.95k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4890
5.95k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4891
5.95k
               input, mutable_registration()));
4892
0
        } else {
4893
0
          goto handle_unusual;
4894
0
        }
4895
5.95k
        break;
4896
5.95k
      }
4897
4898
      // optional .yb.master.TabletReportPB tablet_report = 3;
4899
384k
      case 3: {
4900
384k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4901
384k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4902
384k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4903
384k
               input, mutable_tablet_report()));
4904
18.4E
        } else {
4905
18.4E
          goto handle_unusual;
4906
18.4E
        }
4907
384k
        break;
4908
384k
      }
4909
4910
      // optional int32 num_live_tablets = 4;
4911
383k
      case 4: {
4912
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4913
383k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
4914
383k
          set_has_num_live_tablets();
4915
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4916
383k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4917
383k
                 input, &num_live_tablets_)));
4918
18.4E
        } else {
4919
18.4E
          goto handle_unusual;
4920
18.4E
        }
4921
383k
        break;
4922
383k
      }
4923
4924
      // optional int64 config_index = 5;
4925
383k
      case 5: {
4926
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4927
383k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
4928
383k
          set_has_config_index();
4929
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4930
383k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
4931
383k
                 input, &config_index_)));
4932
18.4E
        } else {
4933
18.4E
          goto handle_unusual;
4934
18.4E
        }
4935
383k
        break;
4936
383k
      }
4937
4938
      // optional .yb.master.TServerMetricsPB metrics = 6;
4939
33.9k
      case 6: {
4940
33.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4941
33.9k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
4942
33.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4943
33.9k
               input, mutable_metrics()));
4944
18.4E
        } else {
4945
18.4E
          goto handle_unusual;
4946
18.4E
        }
4947
33.9k
        break;
4948
33.9k
      }
4949
4950
      // optional int32 leader_count = 7;
4951
383k
      case 7: {
4952
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4953
383k
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
4954
383k
          set_has_leader_count();
4955
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4956
383k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4957
383k
                 input, &leader_count_)));
4958
135
        } else {
4959
135
          goto handle_unusual;
4960
135
        }
4961
383k
        break;
4962
383k
      }
4963
4964
      // optional int32 cluster_config_version = 8;
4965
383k
      case 8: {
4966
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4967
383k
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
4968
383k
          set_has_cluster_config_version();
4969
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4970
383k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4971
383k
                 input, &cluster_config_version_)));
4972
18.4E
        } else {
4973
18.4E
          goto handle_unusual;
4974
18.4E
        }
4975
383k
        break;
4976
383k
      }
4977
4978
      // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9;
4979
0
      case 9: {
4980
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4981
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
4982
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_deprecated_tablets_for_split()));
4983
0
        } else {
4984
0
          goto handle_unusual;
4985
0
        }
4986
0
        break;
4987
0
      }
4988
4989
      // optional fixed64 ts_physical_time = 10;
4990
384k
      case 10: {
4991
384k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4992
384k
            static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
4993
384k
          set_has_ts_physical_time();
4994
384k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4995
384k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
4996
384k
                 input, &ts_physical_time_)));
4997
18.4E
        } else {
4998
18.4E
          goto handle_unusual;
4999
18.4E
        }
5000
384k
        break;
5001
384k
      }
5002
5003
      // optional fixed64 ts_hybrid_time = 11;
5004
383k
      case 11: {
5005
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5006
383k
            static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
5007
383k
          set_has_ts_hybrid_time();
5008
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5009
383k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
5010
383k
                 input, &ts_hybrid_time_)));
5011
18.4E
        } else {
5012
18.4E
          goto handle_unusual;
5013
18.4E
        }
5014
383k
        break;
5015
383k
      }
5016
5017
      // optional int64 rtt_us = 12;
5018
383k
      case 12: {
5019
383k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5020
383k
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
5021
383k
          set_has_rtt_us();
5022
383k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5023
383k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
5024
383k
                 input, &rtt_us_)));
5025
18.4E
        } else {
5026
18.4E
          goto handle_unusual;
5027
18.4E
        }
5028
383k
        break;
5029
383k
      }
5030
5031
      // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14;
5032
291k
      case 14: {
5033
291k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5034
291k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
5035
291k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_storage_metadata()));
5036
18.4E
        } else {
5037
18.4E
          goto handle_unusual;
5038
18.4E
        }
5039
291k
        break;
5040
383k
      }
5041
5042
0
      default: {
5043
383k
      handle_unusual:
5044
384k
        if (tag == 0) {
5045
384k
          goto success;
5046
384k
        }
5047
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5048
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5049
18.4E
        break;
5050
18.4E
      }
5051
3.77M
    }
5052
3.77M
  }
5053
384k
success:
5054
  // @@protoc_insertion_point(parse_success:yb.master.TSHeartbeatRequestPB)
5055
384k
  return true;
5056
0
failure:
5057
  // @@protoc_insertion_point(parse_failure:yb.master.TSHeartbeatRequestPB)
5058
0
  return false;
5059
383k
#undef DO_
5060
383k
}
5061
5062
void TSHeartbeatRequestPB::SerializeWithCachedSizes(
5063
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5064
  // @@protoc_insertion_point(serialize_start:yb.master.TSHeartbeatRequestPB)
5065
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5066
0
  (void) cached_has_bits;
5067
5068
0
  cached_has_bits = _has_bits_[0];
5069
  // required .yb.master.TSToMasterCommonPB common = 1;
5070
0
  if (cached_has_bits & 0x00000001u) {
5071
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5072
0
      1, *this->common_, output);
5073
0
  }
5074
5075
  // optional .yb.master.TSRegistrationPB registration = 2;
5076
0
  if (cached_has_bits & 0x00000002u) {
5077
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5078
0
      2, *this->registration_, output);
5079
0
  }
5080
5081
  // optional .yb.master.TabletReportPB tablet_report = 3;
5082
0
  if (cached_has_bits & 0x00000004u) {
5083
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5084
0
      3, *this->tablet_report_, output);
5085
0
  }
5086
5087
  // optional int32 num_live_tablets = 4;
5088
0
  if (cached_has_bits & 0x00000020u) {
5089
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->num_live_tablets(), output);
5090
0
  }
5091
5092
  // optional int64 config_index = 5;
5093
0
  if (cached_has_bits & 0x00000010u) {
5094
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->config_index(), output);
5095
0
  }
5096
5097
  // optional .yb.master.TServerMetricsPB metrics = 6;
5098
0
  if (cached_has_bits & 0x00000008u) {
5099
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5100
0
      6, *this->metrics_, output);
5101
0
  }
5102
5103
  // optional int32 leader_count = 7;
5104
0
  if (cached_has_bits & 0x00000040u) {
5105
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->leader_count(), output);
5106
0
  }
5107
5108
  // optional int32 cluster_config_version = 8;
5109
0
  if (cached_has_bits & 0x00000400u) {
5110
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->cluster_config_version(), output);
5111
0
  }
5112
5113
  // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9;
5114
0
  for (unsigned int i = 0,
5115
0
      n = static_cast<unsigned int>(this->deprecated_tablets_for_split_size()); i < n; i++) {
5116
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5117
0
      9, this->deprecated_tablets_for_split(static_cast<int>(i)), output);
5118
0
  }
5119
5120
  // optional fixed64 ts_physical_time = 10;
5121
0
  if (cached_has_bits & 0x00000080u) {
5122
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(10, this->ts_physical_time(), output);
5123
0
  }
5124
5125
  // optional fixed64 ts_hybrid_time = 11;
5126
0
  if (cached_has_bits & 0x00000100u) {
5127
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(11, this->ts_hybrid_time(), output);
5128
0
  }
5129
5130
  // optional int64 rtt_us = 12;
5131
0
  if (cached_has_bits & 0x00000200u) {
5132
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(12, this->rtt_us(), output);
5133
0
  }
5134
5135
  // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14;
5136
0
  for (unsigned int i = 0,
5137
0
      n = static_cast<unsigned int>(this->storage_metadata_size()); i < n; i++) {
5138
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5139
0
      14, this->storage_metadata(static_cast<int>(i)), output);
5140
0
  }
5141
5142
0
  if (_internal_metadata_.have_unknown_fields()) {
5143
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5144
0
        _internal_metadata_.unknown_fields(), output);
5145
0
  }
5146
  // @@protoc_insertion_point(serialize_end:yb.master.TSHeartbeatRequestPB)
5147
0
}
5148
5149
::google::protobuf::uint8* TSHeartbeatRequestPB::InternalSerializeWithCachedSizesToArray(
5150
403k
    bool deterministic, ::google::protobuf::uint8* target) const {
5151
403k
  (void)deterministic; // Unused
5152
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSHeartbeatRequestPB)
5153
403k
  ::google::protobuf::uint32 cached_has_bits = 0;
5154
403k
  (void) cached_has_bits;
5155
5156
403k
  cached_has_bits = _has_bits_[0];
5157
  // required .yb.master.TSToMasterCommonPB common = 1;
5158
403k
  if (cached_has_bits & 0x00000001u) {
5159
403k
    target = ::google::protobuf::internal::WireFormatLite::
5160
403k
      InternalWriteMessageToArray(
5161
403k
        1, *this->common_, deterministic, target);
5162
403k
  }
5163
5164
  // optional .yb.master.TSRegistrationPB registration = 2;
5165
403k
  if (cached_has_bits & 0x00000002u) {
5166
5.95k
    target = ::google::protobuf::internal::WireFormatLite::
5167
5.95k
      InternalWriteMessageToArray(
5168
5.95k
        2, *this->registration_, deterministic, target);
5169
5.95k
  }
5170
5171
  // optional .yb.master.TabletReportPB tablet_report = 3;
5172
403k
  if (cached_has_bits & 0x00000004u) {
5173
403k
    target = ::google::protobuf::internal::WireFormatLite::
5174
403k
      InternalWriteMessageToArray(
5175
403k
        3, *this->tablet_report_, deterministic, target);
5176
403k
  }
5177
5178
  // optional int32 num_live_tablets = 4;
5179
403k
  if (cached_has_bits & 0x00000020u) {
5180
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->num_live_tablets(), target);
5181
403k
  }
5182
5183
  // optional int64 config_index = 5;
5184
403k
  if (cached_has_bits & 0x00000010u) {
5185
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->config_index(), target);
5186
403k
  }
5187
5188
  // optional .yb.master.TServerMetricsPB metrics = 6;
5189
403k
  if (cached_has_bits & 0x00000008u) {
5190
37.7k
    target = ::google::protobuf::internal::WireFormatLite::
5191
37.7k
      InternalWriteMessageToArray(
5192
37.7k
        6, *this->metrics_, deterministic, target);
5193
37.7k
  }
5194
5195
  // optional int32 leader_count = 7;
5196
403k
  if (cached_has_bits & 0x00000040u) {
5197
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->leader_count(), target);
5198
403k
  }
5199
5200
  // optional int32 cluster_config_version = 8;
5201
403k
  if (cached_has_bits & 0x00000400u) {
5202
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->cluster_config_version(), target);
5203
403k
  }
5204
5205
  // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9;
5206
403k
  for (unsigned int i = 0,
5207
403k
      n = static_cast<unsigned int>(this->deprecated_tablets_for_split_size()); i < n; i++) {
5208
0
    target = ::google::protobuf::internal::WireFormatLite::
5209
0
      InternalWriteMessageToArray(
5210
0
        9, this->deprecated_tablets_for_split(static_cast<int>(i)), deterministic, target);
5211
0
  }
5212
5213
  // optional fixed64 ts_physical_time = 10;
5214
403k
  if (cached_has_bits & 0x00000080u) {
5215
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(10, this->ts_physical_time(), target);
5216
403k
  }
5217
5218
  // optional fixed64 ts_hybrid_time = 11;
5219
403k
  if (cached_has_bits & 0x00000100u) {
5220
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(11, this->ts_hybrid_time(), target);
5221
403k
  }
5222
5223
  // optional int64 rtt_us = 12;
5224
403k
  if (cached_has_bits & 0x00000200u) {
5225
403k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(12, this->rtt_us(), target);
5226
403k
  }
5227
5228
  // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14;
5229
403k
  for (unsigned int i = 0,
5230
699k
      n = static_cast<unsigned int>(this->storage_metadata_size()); i < n; i++) {
5231
295k
    target = ::google::protobuf::internal::WireFormatLite::
5232
295k
      InternalWriteMessageToArray(
5233
295k
        14, this->storage_metadata(static_cast<int>(i)), deterministic, target);
5234
295k
  }
5235
5236
403k
  if (_internal_metadata_.have_unknown_fields()) {
5237
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5238
0
        _internal_metadata_.unknown_fields(), target);
5239
0
  }
5240
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSHeartbeatRequestPB)
5241
403k
  return target;
5242
403k
}
5243
5244
807k
size_t TSHeartbeatRequestPB::ByteSizeLong() const {
5245
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSHeartbeatRequestPB)
5246
807k
  size_t total_size = 0;
5247
5248
807k
  if (_internal_metadata_.have_unknown_fields()) {
5249
0
    total_size +=
5250
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5251
0
        _internal_metadata_.unknown_fields());
5252
0
  }
5253
  // required .yb.master.TSToMasterCommonPB common = 1;
5254
807k
  if (has_common()) {
5255
807k
    total_size += 1 +
5256
807k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5257
807k
        *this->common_);
5258
807k
  }
5259
  // repeated .yb.master.TabletForSplitPB DEPRECATED_tablets_for_split = 9;
5260
807k
  {
5261
807k
    unsigned int count = static_cast<unsigned int>(this->deprecated_tablets_for_split_size());
5262
807k
    total_size += 1UL * count;
5263
807k
    for (unsigned int i = 0; i < count; i++) {
5264
0
      total_size +=
5265
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5266
0
          this->deprecated_tablets_for_split(static_cast<int>(i)));
5267
0
    }
5268
807k
  }
5269
5270
  // repeated .yb.master.TabletDriveStorageMetadataPB storage_metadata = 14;
5271
807k
  {
5272
807k
    unsigned int count = static_cast<unsigned int>(this->storage_metadata_size());
5273
807k
    total_size += 1UL * count;
5274
1.39M
    for (unsigned int i = 0; i < count; i++) {
5275
590k
      total_size +=
5276
590k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5277
590k
          this->storage_metadata(static_cast<int>(i)));
5278
590k
    }
5279
807k
  }
5280
5281
807k
  if (_has_bits_[0 / 32] & 254u) {
5282
    // optional .yb.master.TSRegistrationPB registration = 2;
5283
807k
    if (has_registration()) {
5284
11.9k
      total_size += 1 +
5285
11.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5286
11.9k
          *this->registration_);
5287
11.9k
    }
5288
5289
    // optional .yb.master.TabletReportPB tablet_report = 3;
5290
807k
    if (has_tablet_report()) {
5291
807k
      total_size += 1 +
5292
807k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5293
807k
          *this->tablet_report_);
5294
807k
    }
5295
5296
    // optional .yb.master.TServerMetricsPB metrics = 6;
5297
807k
    if (has_metrics()) {
5298
75.5k
      total_size += 1 +
5299
75.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5300
75.5k
          *this->metrics_);
5301
75.5k
    }
5302
5303
    // optional int64 config_index = 5;
5304
807k
    if (has_config_index()) {
5305
807k
      total_size += 1 +
5306
807k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5307
807k
          this->config_index());
5308
807k
    }
5309
5310
    // optional int32 num_live_tablets = 4;
5311
807k
    if (has_num_live_tablets()) {
5312
807k
      total_size += 1 +
5313
807k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
5314
807k
          this->num_live_tablets());
5315
807k
    }
5316
5317
    // optional int32 leader_count = 7;
5318
807k
    if (has_leader_count()) {
5319
807k
      total_size += 1 +
5320
807k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
5321
807k
          this->leader_count());
5322
807k
    }
5323
5324
    // optional fixed64 ts_physical_time = 10;
5325
807k
    if (has_ts_physical_time()) {
5326
807k
      total_size += 1 + 8;
5327
807k
    }
5328
5329
807k
  }
5330
807k
  if (_has_bits_[8 / 32] & 1792u) {
5331
    // optional fixed64 ts_hybrid_time = 11;
5332
807k
    if (has_ts_hybrid_time()) {
5333
807k
      total_size += 1 + 8;
5334
807k
    }
5335
5336
    // optional int64 rtt_us = 12;
5337
807k
    if (has_rtt_us()) {
5338
807k
      total_size += 1 +
5339
807k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
5340
807k
          this->rtt_us());
5341
807k
    }
5342
5343
    // optional int32 cluster_config_version = 8;
5344
807k
    if (has_cluster_config_version()) {
5345
807k
      total_size += 1 +
5346
807k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
5347
807k
          this->cluster_config_version());
5348
807k
    }
5349
5350
807k
  }
5351
807k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5352
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5353
807k
  _cached_size_ = cached_size;
5354
807k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5355
807k
  return total_size;
5356
807k
}
5357
5358
0
void TSHeartbeatRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5359
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSHeartbeatRequestPB)
5360
0
  GOOGLE_DCHECK_NE(&from, this);
5361
0
  const TSHeartbeatRequestPB* source =
5362
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSHeartbeatRequestPB>(
5363
0
          &from);
5364
0
  if (source == NULL) {
5365
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSHeartbeatRequestPB)
5366
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5367
0
  } else {
5368
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSHeartbeatRequestPB)
5369
0
    MergeFrom(*source);
5370
0
  }
5371
0
}
5372
5373
0
void TSHeartbeatRequestPB::MergeFrom(const TSHeartbeatRequestPB& from) {
5374
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSHeartbeatRequestPB)
5375
0
  GOOGLE_DCHECK_NE(&from, this);
5376
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5377
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5378
0
  (void) cached_has_bits;
5379
5380
0
  deprecated_tablets_for_split_.MergeFrom(from.deprecated_tablets_for_split_);
5381
0
  storage_metadata_.MergeFrom(from.storage_metadata_);
5382
0
  cached_has_bits = from._has_bits_[0];
5383
0
  if (cached_has_bits & 255u) {
5384
0
    if (cached_has_bits & 0x00000001u) {
5385
0
      mutable_common()->::yb::master::TSToMasterCommonPB::MergeFrom(from.common());
5386
0
    }
5387
0
    if (cached_has_bits & 0x00000002u) {
5388
0
      mutable_registration()->::yb::master::TSRegistrationPB::MergeFrom(from.registration());
5389
0
    }
5390
0
    if (cached_has_bits & 0x00000004u) {
5391
0
      mutable_tablet_report()->::yb::master::TabletReportPB::MergeFrom(from.tablet_report());
5392
0
    }
5393
0
    if (cached_has_bits & 0x00000008u) {
5394
0
      mutable_metrics()->::yb::master::TServerMetricsPB::MergeFrom(from.metrics());
5395
0
    }
5396
0
    if (cached_has_bits & 0x00000010u) {
5397
0
      config_index_ = from.config_index_;
5398
0
    }
5399
0
    if (cached_has_bits & 0x00000020u) {
5400
0
      num_live_tablets_ = from.num_live_tablets_;
5401
0
    }
5402
0
    if (cached_has_bits & 0x00000040u) {
5403
0
      leader_count_ = from.leader_count_;
5404
0
    }
5405
0
    if (cached_has_bits & 0x00000080u) {
5406
0
      ts_physical_time_ = from.ts_physical_time_;
5407
0
    }
5408
0
    _has_bits_[0] |= cached_has_bits;
5409
0
  }
5410
0
  if (cached_has_bits & 1792u) {
5411
0
    if (cached_has_bits & 0x00000100u) {
5412
0
      ts_hybrid_time_ = from.ts_hybrid_time_;
5413
0
    }
5414
0
    if (cached_has_bits & 0x00000200u) {
5415
0
      rtt_us_ = from.rtt_us_;
5416
0
    }
5417
0
    if (cached_has_bits & 0x00000400u) {
5418
0
      cluster_config_version_ = from.cluster_config_version_;
5419
0
    }
5420
0
    _has_bits_[0] |= cached_has_bits;
5421
0
  }
5422
0
}
5423
5424
0
void TSHeartbeatRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5425
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSHeartbeatRequestPB)
5426
0
  if (&from == this) return;
5427
0
  Clear();
5428
0
  MergeFrom(from);
5429
0
}
5430
5431
0
void TSHeartbeatRequestPB::CopyFrom(const TSHeartbeatRequestPB& from) {
5432
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSHeartbeatRequestPB)
5433
0
  if (&from == this) return;
5434
0
  Clear();
5435
0
  MergeFrom(from);
5436
0
}
5437
5438
788k
bool TSHeartbeatRequestPB::IsInitialized() const {
5439
788k
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
5440
788k
  if (!::google::protobuf::internal::AllAreInitialized(this->deprecated_tablets_for_split())) return false;
5441
788k
  if (!::google::protobuf::internal::AllAreInitialized(this->storage_metadata())) return false;
5442
788k
  if (has_common()) {
5443
786k
    if (!this->common_->IsInitialized()) return false;
5444
788k
  }
5445
788k
  if (has_registration()) {
5446
11.9k
    if (!this->registration_->IsInitialized()) return false;
5447
788k
  }
5448
788k
  if (has_tablet_report()) {
5449
785k
    if (!this->tablet_report_->IsInitialized()) return false;
5450
788k
  }
5451
788k
  if (has_metrics()) {
5452
71.5k
    if (!this->metrics_->IsInitialized()) return false;
5453
788k
  }
5454
788k
  return true;
5455
788k
}
5456
5457
0
void TSHeartbeatRequestPB::Swap(TSHeartbeatRequestPB* other) {
5458
0
  if (other == this) return;
5459
0
  InternalSwap(other);
5460
0
}
5461
0
void TSHeartbeatRequestPB::InternalSwap(TSHeartbeatRequestPB* other) {
5462
0
  using std::swap;
5463
0
  deprecated_tablets_for_split_.InternalSwap(&other->deprecated_tablets_for_split_);
5464
0
  storage_metadata_.InternalSwap(&other->storage_metadata_);
5465
0
  swap(common_, other->common_);
5466
0
  swap(registration_, other->registration_);
5467
0
  swap(tablet_report_, other->tablet_report_);
5468
0
  swap(metrics_, other->metrics_);
5469
0
  swap(config_index_, other->config_index_);
5470
0
  swap(num_live_tablets_, other->num_live_tablets_);
5471
0
  swap(leader_count_, other->leader_count_);
5472
0
  swap(ts_physical_time_, other->ts_physical_time_);
5473
0
  swap(ts_hybrid_time_, other->ts_hybrid_time_);
5474
0
  swap(rtt_us_, other->rtt_us_);
5475
0
  swap(cluster_config_version_, other->cluster_config_version_);
5476
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5477
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5478
0
  swap(_cached_size_, other->_cached_size_);
5479
0
}
5480
5481
384k
::google::protobuf::Metadata TSHeartbeatRequestPB::GetMetadata() const {
5482
384k
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
5483
384k
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
5484
384k
}
5485
5486
5487
// ===================================================================
5488
5489
15.8k
void TSHeartbeatResponsePB::InitAsDefaultInstance() {
5490
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
5491
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
5492
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->master_instance_ = const_cast< ::yb::NodeInstancePB*>(
5493
15.8k
      ::yb::NodeInstancePB::internal_default_instance());
5494
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->tablet_report_ = const_cast< ::yb::master::TabletReportUpdatesPB*>(
5495
15.8k
      ::yb::master::TabletReportUpdatesPB::internal_default_instance());
5496
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->master_config_ = const_cast< ::yb::consensus::RaftConfigPB*>(
5497
15.8k
      ::yb::consensus::RaftConfigPB::internal_default_instance());
5498
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->universe_key_registry_ = const_cast< ::yb::encryption::UniverseKeyRegistryPB*>(
5499
15.8k
      ::yb::encryption::UniverseKeyRegistryPB::internal_default_instance());
5500
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->consumer_registry_ = const_cast< ::yb::cdc::ConsumerRegistryPB*>(
5501
15.8k
      ::yb::cdc::ConsumerRegistryPB::internal_default_instance());
5502
15.8k
  ::yb::master::_TSHeartbeatResponsePB_default_instance_._instance.get_mutable()->snapshots_info_ = const_cast< ::yb::master::TSSnapshotsInfoPB*>(
5503
15.8k
      ::yb::master::TSSnapshotsInfoPB::internal_default_instance());
5504
15.8k
}
5505
0
void TSHeartbeatResponsePB::clear_error() {
5506
0
  if (error_ != NULL) error_->Clear();
5507
0
  clear_has_error();
5508
0
}
5509
0
void TSHeartbeatResponsePB::clear_master_instance() {
5510
0
  if (master_instance_ != NULL) master_instance_->Clear();
5511
0
  clear_has_master_instance();
5512
0
}
5513
0
void TSHeartbeatResponsePB::clear_master_config() {
5514
0
  if (master_config_ != NULL) master_config_->Clear();
5515
0
  clear_has_master_config();
5516
0
}
5517
0
void TSHeartbeatResponsePB::clear_universe_key_registry() {
5518
0
  if (universe_key_registry_ != NULL) universe_key_registry_->Clear();
5519
0
  clear_has_universe_key_registry();
5520
0
}
5521
0
void TSHeartbeatResponsePB::clear_consumer_registry() {
5522
0
  if (consumer_registry_ != NULL) consumer_registry_->Clear();
5523
0
  clear_has_consumer_registry();
5524
0
}
5525
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5526
const int TSHeartbeatResponsePB::kErrorFieldNumber;
5527
const int TSHeartbeatResponsePB::kMasterInstanceFieldNumber;
5528
const int TSHeartbeatResponsePB::kNeedsReregisterFieldNumber;
5529
const int TSHeartbeatResponsePB::kNeedsFullTabletReportFieldNumber;
5530
const int TSHeartbeatResponsePB::kTabletReportFieldNumber;
5531
const int TSHeartbeatResponsePB::kLeaderMasterFieldNumber;
5532
const int TSHeartbeatResponsePB::kMasterConfigFieldNumber;
5533
const int TSHeartbeatResponsePB::kTserversFieldNumber;
5534
const int TSHeartbeatResponsePB::kClusterUuidFieldNumber;
5535
const int TSHeartbeatResponsePB::kYsqlCatalogVersionFieldNumber;
5536
const int TSHeartbeatResponsePB::kYsqlLastBreakingCatalogVersionFieldNumber;
5537
const int TSHeartbeatResponsePB::kUniverseKeyRegistryFieldNumber;
5538
const int TSHeartbeatResponsePB::kConsumerRegistryFieldNumber;
5539
const int TSHeartbeatResponsePB::kClusterConfigVersionFieldNumber;
5540
const int TSHeartbeatResponsePB::kTabletReportLimitFieldNumber;
5541
const int TSHeartbeatResponsePB::kSnapshotsInfoFieldNumber;
5542
const int TSHeartbeatResponsePB::kDEPRECATEDTabletSplitSizeThresholdBytesFieldNumber;
5543
const int TSHeartbeatResponsePB::kTransactionTablesVersionFieldNumber;
5544
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5545
5546
TSHeartbeatResponsePB::TSHeartbeatResponsePB()
5547
809k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5548
793k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5549
793k
    ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatResponsePB();
5550
793k
  }
5551
809k
  SharedCtor();
5552
  // @@protoc_insertion_point(constructor:yb.master.TSHeartbeatResponsePB)
5553
809k
}
5554
TSHeartbeatResponsePB::TSHeartbeatResponsePB(const TSHeartbeatResponsePB& from)
5555
  : ::google::protobuf::Message(),
5556
      _internal_metadata_(NULL),
5557
      _has_bits_(from._has_bits_),
5558
      _cached_size_(0),
5559
0
      tservers_(from.tservers_) {
5560
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5561
0
  cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5562
0
  if (from.has_cluster_uuid()) {
5563
0
    cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_);
5564
0
  }
5565
0
  if (from.has_error()) {
5566
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
5567
0
  } else {
5568
0
    error_ = NULL;
5569
0
  }
5570
0
  if (from.has_master_instance()) {
5571
0
    master_instance_ = new ::yb::NodeInstancePB(*from.master_instance_);
5572
0
  } else {
5573
0
    master_instance_ = NULL;
5574
0
  }
5575
0
  if (from.has_tablet_report()) {
5576
0
    tablet_report_ = new ::yb::master::TabletReportUpdatesPB(*from.tablet_report_);
5577
0
  } else {
5578
0
    tablet_report_ = NULL;
5579
0
  }
5580
0
  if (from.has_master_config()) {
5581
0
    master_config_ = new ::yb::consensus::RaftConfigPB(*from.master_config_);
5582
0
  } else {
5583
0
    master_config_ = NULL;
5584
0
  }
5585
0
  if (from.has_universe_key_registry()) {
5586
0
    universe_key_registry_ = new ::yb::encryption::UniverseKeyRegistryPB(*from.universe_key_registry_);
5587
0
  } else {
5588
0
    universe_key_registry_ = NULL;
5589
0
  }
5590
0
  if (from.has_consumer_registry()) {
5591
0
    consumer_registry_ = new ::yb::cdc::ConsumerRegistryPB(*from.consumer_registry_);
5592
0
  } else {
5593
0
    consumer_registry_ = NULL;
5594
0
  }
5595
0
  if (from.has_snapshots_info()) {
5596
0
    snapshots_info_ = new ::yb::master::TSSnapshotsInfoPB(*from.snapshots_info_);
5597
0
  } else {
5598
0
    snapshots_info_ = NULL;
5599
0
  }
5600
0
  ::memcpy(&needs_reregister_, &from.needs_reregister_,
5601
0
    static_cast<size_t>(reinterpret_cast<char*>(&tablet_report_limit_) -
5602
0
    reinterpret_cast<char*>(&needs_reregister_)) + sizeof(tablet_report_limit_));
5603
  // @@protoc_insertion_point(copy_constructor:yb.master.TSHeartbeatResponsePB)
5604
0
}
5605
5606
808k
void TSHeartbeatResponsePB::SharedCtor() {
5607
808k
  _cached_size_ = 0;
5608
808k
  cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5609
808k
  ::memset(&error_, 0, static_cast<size_t>(
5610
808k
      reinterpret_cast<char*>(&tablet_report_limit_) -
5611
808k
      reinterpret_cast<char*>(&error_)) + sizeof(tablet_report_limit_));
5612
808k
}
5613
5614
788k
TSHeartbeatResponsePB::~TSHeartbeatResponsePB() {
5615
  // @@protoc_insertion_point(destructor:yb.master.TSHeartbeatResponsePB)
5616
788k
  SharedDtor();
5617
788k
}
5618
5619
788k
void TSHeartbeatResponsePB::SharedDtor() {
5620
788k
  cluster_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5621
788k
  if (this != internal_default_instance()) delete error_;
5622
788k
  if (this != internal_default_instance()) delete master_instance_;
5623
788k
  if (this != internal_default_instance()) delete tablet_report_;
5624
788k
  if (this != internal_default_instance()) delete master_config_;
5625
788k
  if (this != internal_default_instance()) delete universe_key_registry_;
5626
788k
  if (this != internal_default_instance()) delete consumer_registry_;
5627
788k
  if (this != internal_default_instance()) delete snapshots_info_;
5628
788k
}
5629
5630
0
void TSHeartbeatResponsePB::SetCachedSize(int size) const {
5631
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5632
0
  _cached_size_ = size;
5633
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5634
0
}
5635
0
const ::google::protobuf::Descriptor* TSHeartbeatResponsePB::descriptor() {
5636
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
5637
0
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5638
0
}
5639
5640
0
const TSHeartbeatResponsePB& TSHeartbeatResponsePB::default_instance() {
5641
0
  ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::InitDefaultsTSHeartbeatResponsePB();
5642
0
  return *internal_default_instance();
5643
0
}
5644
5645
0
TSHeartbeatResponsePB* TSHeartbeatResponsePB::New(::google::protobuf::Arena* arena) const {
5646
0
  TSHeartbeatResponsePB* n = new TSHeartbeatResponsePB;
5647
0
  if (arena != NULL) {
5648
0
    arena->Own(n);
5649
0
  }
5650
0
  return n;
5651
0
}
5652
5653
403k
void TSHeartbeatResponsePB::Clear() {
5654
// @@protoc_insertion_point(message_clear_start:yb.master.TSHeartbeatResponsePB)
5655
403k
  ::google::protobuf::uint32 cached_has_bits = 0;
5656
  // Prevent compiler warnings about cached_has_bits being unused
5657
403k
  (void) cached_has_bits;
5658
5659
403k
  tservers_.Clear();
5660
403k
  cached_has_bits = _has_bits_[0];
5661
403k
  if (cached_has_bits & 255u) {
5662
0
    if (cached_has_bits & 0x00000001u) {
5663
0
      GOOGLE_DCHECK(!cluster_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5664
0
      (*cluster_uuid_.UnsafeRawStringPointer())->clear();
5665
0
    }
5666
0
    if (cached_has_bits & 0x00000002u) {
5667
0
      GOOGLE_DCHECK(error_ != NULL);
5668
0
      error_->Clear();
5669
0
    }
5670
0
    if (cached_has_bits & 0x00000004u) {
5671
0
      GOOGLE_DCHECK(master_instance_ != NULL);
5672
0
      master_instance_->Clear();
5673
0
    }
5674
0
    if (cached_has_bits & 0x00000008u) {
5675
0
      GOOGLE_DCHECK(tablet_report_ != NULL);
5676
0
      tablet_report_->Clear();
5677
0
    }
5678
0
    if (cached_has_bits & 0x00000010u) {
5679
0
      GOOGLE_DCHECK(master_config_ != NULL);
5680
0
      master_config_->Clear();
5681
0
    }
5682
0
    if (cached_has_bits & 0x00000020u) {
5683
0
      GOOGLE_DCHECK(universe_key_registry_ != NULL);
5684
0
      universe_key_registry_->Clear();
5685
0
    }
5686
0
    if (cached_has_bits & 0x00000040u) {
5687
0
      GOOGLE_DCHECK(consumer_registry_ != NULL);
5688
0
      consumer_registry_->Clear();
5689
0
    }
5690
0
    if (cached_has_bits & 0x00000080u) {
5691
0
      GOOGLE_DCHECK(snapshots_info_ != NULL);
5692
0
      snapshots_info_->Clear();
5693
0
    }
5694
0
  }
5695
403k
  if (cached_has_bits & 65280u) {
5696
0
    ::memset(&needs_reregister_, 0, static_cast<size_t>(
5697
0
        reinterpret_cast<char*>(&transaction_tables_version_) -
5698
0
        reinterpret_cast<char*>(&needs_reregister_)) + sizeof(transaction_tables_version_));
5699
0
  }
5700
403k
  tablet_report_limit_ = 0;
5701
403k
  _has_bits_.Clear();
5702
403k
  _internal_metadata_.Clear();
5703
403k
}
5704
5705
bool TSHeartbeatResponsePB::MergePartialFromCodedStream(
5706
403k
    ::google::protobuf::io::CodedInputStream* input) {
5707
4.98M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5708
403k
  ::google::protobuf::uint32 tag;
5709
  // @@protoc_insertion_point(parse_start:yb.master.TSHeartbeatResponsePB)
5710
5.38M
  for (;;) {
5711
5.38M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5712
5.38M
    tag = p.first;
5713
5.38M
    if (!p.second) goto handle_unusual;
5714
4.98M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5715
      // optional .yb.master.MasterErrorPB error = 1;
5716
695
      case 1: {
5717
695
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5718
695
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5719
695
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5720
695
               input, mutable_error()));
5721
0
        } else {
5722
0
          goto handle_unusual;
5723
0
        }
5724
695
        break;
5725
695
      }
5726
5727
      // optional .yb.NodeInstancePB master_instance = 2;
5728
402k
      case 2: {
5729
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5730
402k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5731
402k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5732
402k
               input, mutable_master_instance()));
5733
0
        } else {
5734
0
          goto handle_unusual;
5735
0
        }
5736
402k
        break;
5737
402k
      }
5738
5739
      // optional bool needs_reregister = 3 [default = false];
5740
134
      case 3: {
5741
134
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5742
134
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5743
134
          set_has_needs_reregister();
5744
134
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5745
134
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5746
134
                 input, &needs_reregister_)));
5747
0
        } else {
5748
0
          goto handle_unusual;
5749
0
        }
5750
134
        break;
5751
134
      }
5752
5753
      // optional bool needs_full_tablet_report = 4 [default = false];
5754
5.59k
      case 4: {
5755
5.59k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5756
5.59k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
5757
5.59k
          set_has_needs_full_tablet_report();
5758
5.59k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5759
5.59k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5760
5.59k
                 input, &needs_full_tablet_report_)));
5761
0
        } else {
5762
0
          goto handle_unusual;
5763
0
        }
5764
5.59k
        break;
5765
5.59k
      }
5766
5767
      // optional .yb.master.TabletReportUpdatesPB tablet_report = 5;
5768
402k
      case 5: {
5769
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5770
402k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
5771
402k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5772
402k
               input, mutable_tablet_report()));
5773
0
        } else {
5774
0
          goto handle_unusual;
5775
0
        }
5776
402k
        break;
5777
402k
      }
5778
5779
      // optional bool leader_master = 6;
5780
402k
      case 6: {
5781
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5782
402k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
5783
402k
          set_has_leader_master();
5784
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5785
402k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5786
402k
                 input, &leader_master_)));
5787
0
        } else {
5788
0
          goto handle_unusual;
5789
0
        }
5790
402k
        break;
5791
402k
      }
5792
5793
      // optional .yb.consensus.RaftConfigPB master_config = 7;
5794
135
      case 7: {
5795
135
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5796
135
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5797
135
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5798
135
               input, mutable_master_config()));
5799
0
        } else {
5800
0
          goto handle_unusual;
5801
0
        }
5802
135
        break;
5803
135
      }
5804
5805
      // repeated .yb.master.TSInformationPB tservers = 8;
5806
1.35M
      case 8: {
5807
1.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5808
1.35M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5809
1.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tservers()));
5810
0
        } else {
5811
0
          goto handle_unusual;
5812
0
        }
5813
1.35M
        break;
5814
1.35M
      }
5815
5816
      // optional string cluster_uuid = 9;
5817
5.59k
      case 9: {
5818
5.59k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5819
5.59k
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
5820
5.59k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5821
5.59k
                input, this->mutable_cluster_uuid()));
5822
5.59k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5823
5.59k
            this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
5824
5.59k
            ::google::protobuf::internal::WireFormat::PARSE,
5825
5.59k
            "yb.master.TSHeartbeatResponsePB.cluster_uuid");
5826
0
        } else {
5827
0
          goto handle_unusual;
5828
0
        }
5829
5.59k
        break;
5830
5.59k
      }
5831
5832
      // optional uint64 ysql_catalog_version = 10;
5833
402k
      case 10: {
5834
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5835
402k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
5836
402k
          set_has_ysql_catalog_version();
5837
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5838
402k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5839
402k
                 input, &ysql_catalog_version_)));
5840
0
        } else {
5841
0
          goto handle_unusual;
5842
0
        }
5843
402k
        break;
5844
402k
      }
5845
5846
      // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11;
5847
3
      case 11: {
5848
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5849
3
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
5850
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5851
3
               input, mutable_universe_key_registry()));
5852
0
        } else {
5853
0
          goto handle_unusual;
5854
0
        }
5855
3
        break;
5856
3
      }
5857
5858
      // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12;
5859
0
      case 12: {
5860
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5861
0
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
5862
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5863
0
               input, mutable_consumer_registry()));
5864
0
        } else {
5865
0
          goto handle_unusual;
5866
0
        }
5867
0
        break;
5868
0
      }
5869
5870
      // optional int32 cluster_config_version = 13;
5871
402k
      case 13: {
5872
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5873
402k
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
5874
402k
          set_has_cluster_config_version();
5875
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5876
402k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5877
402k
                 input, &cluster_config_version_)));
5878
0
        } else {
5879
0
          goto handle_unusual;
5880
0
        }
5881
402k
        break;
5882
402k
      }
5883
5884
      // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14;
5885
0
      case 14: {
5886
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5887
0
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
5888
0
          set_has_deprecated_tablet_split_size_threshold_bytes();
5889
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5890
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
5891
0
                 input, &deprecated_tablet_split_size_threshold_bytes_)));
5892
0
        } else {
5893
0
          goto handle_unusual;
5894
0
        }
5895
0
        break;
5896
0
      }
5897
5898
      // optional uint64 ysql_last_breaking_catalog_version = 15;
5899
402k
      case 15: {
5900
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5901
402k
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
5902
402k
          set_has_ysql_last_breaking_catalog_version();
5903
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5904
402k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5905
402k
                 input, &ysql_last_breaking_catalog_version_)));
5906
0
        } else {
5907
0
          goto handle_unusual;
5908
0
        }
5909
402k
        break;
5910
402k
      }
5911
5912
      // optional int32 tablet_report_limit = 16;
5913
402k
      case 16: {
5914
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5915
402k
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
5916
402k
          set_has_tablet_report_limit();
5917
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5918
402k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5919
402k
                 input, &tablet_report_limit_)));
5920
0
        } else {
5921
0
          goto handle_unusual;
5922
0
        }
5923
402k
        break;
5924
402k
      }
5925
5926
      // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17;
5927
402k
      case 17: {
5928
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5929
402k
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
5930
402k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5931
402k
               input, mutable_snapshots_info()));
5932
0
        } else {
5933
0
          goto handle_unusual;
5934
0
        }
5935
402k
        break;
5936
402k
      }
5937
5938
      // optional uint64 transaction_tables_version = 18;
5939
402k
      case 18: {
5940
402k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5941
402k
            static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
5942
402k
          set_has_transaction_tables_version();
5943
402k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5944
402k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5945
402k
                 input, &transaction_tables_version_)));
5946
0
        } else {
5947
0
          goto handle_unusual;
5948
0
        }
5949
402k
        break;
5950
403k
      }
5951
5952
0
      default: {
5953
403k
      handle_unusual:
5954
403k
        if (tag == 0) {
5955
403k
          goto success;
5956
403k
        }
5957
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5958
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5959
0
        break;
5960
0
      }
5961
4.98M
    }
5962
4.98M
  }
5963
403k
success:
5964
  // @@protoc_insertion_point(parse_success:yb.master.TSHeartbeatResponsePB)
5965
403k
  return true;
5966
0
failure:
5967
  // @@protoc_insertion_point(parse_failure:yb.master.TSHeartbeatResponsePB)
5968
0
  return false;
5969
403k
#undef DO_
5970
403k
}
5971
5972
void TSHeartbeatResponsePB::SerializeWithCachedSizes(
5973
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5974
  // @@protoc_insertion_point(serialize_start:yb.master.TSHeartbeatResponsePB)
5975
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5976
0
  (void) cached_has_bits;
5977
5978
0
  cached_has_bits = _has_bits_[0];
5979
  // optional .yb.master.MasterErrorPB error = 1;
5980
0
  if (cached_has_bits & 0x00000002u) {
5981
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5982
0
      1, *this->error_, output);
5983
0
  }
5984
5985
  // optional .yb.NodeInstancePB master_instance = 2;
5986
0
  if (cached_has_bits & 0x00000004u) {
5987
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5988
0
      2, *this->master_instance_, output);
5989
0
  }
5990
5991
  // optional bool needs_reregister = 3 [default = false];
5992
0
  if (cached_has_bits & 0x00000100u) {
5993
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->needs_reregister(), output);
5994
0
  }
5995
5996
  // optional bool needs_full_tablet_report = 4 [default = false];
5997
0
  if (cached_has_bits & 0x00000200u) {
5998
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->needs_full_tablet_report(), output);
5999
0
  }
6000
6001
  // optional .yb.master.TabletReportUpdatesPB tablet_report = 5;
6002
0
  if (cached_has_bits & 0x00000008u) {
6003
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6004
0
      5, *this->tablet_report_, output);
6005
0
  }
6006
6007
  // optional bool leader_master = 6;
6008
0
  if (cached_has_bits & 0x00000400u) {
6009
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->leader_master(), output);
6010
0
  }
6011
6012
  // optional .yb.consensus.RaftConfigPB master_config = 7;
6013
0
  if (cached_has_bits & 0x00000010u) {
6014
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6015
0
      7, *this->master_config_, output);
6016
0
  }
6017
6018
  // repeated .yb.master.TSInformationPB tservers = 8;
6019
0
  for (unsigned int i = 0,
6020
0
      n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) {
6021
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6022
0
      8, this->tservers(static_cast<int>(i)), output);
6023
0
  }
6024
6025
  // optional string cluster_uuid = 9;
6026
0
  if (cached_has_bits & 0x00000001u) {
6027
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6028
0
      this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
6029
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6030
0
      "yb.master.TSHeartbeatResponsePB.cluster_uuid");
6031
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6032
0
      9, this->cluster_uuid(), output);
6033
0
  }
6034
6035
  // optional uint64 ysql_catalog_version = 10;
6036
0
  if (cached_has_bits & 0x00001000u) {
6037
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->ysql_catalog_version(), output);
6038
0
  }
6039
6040
  // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11;
6041
0
  if (cached_has_bits & 0x00000020u) {
6042
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6043
0
      11, *this->universe_key_registry_, output);
6044
0
  }
6045
6046
  // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12;
6047
0
  if (cached_has_bits & 0x00000040u) {
6048
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6049
0
      12, *this->consumer_registry_, output);
6050
0
  }
6051
6052
  // optional int32 cluster_config_version = 13;
6053
0
  if (cached_has_bits & 0x00000800u) {
6054
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->cluster_config_version(), output);
6055
0
  }
6056
6057
  // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14;
6058
0
  if (cached_has_bits & 0x00002000u) {
6059
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(14, this->deprecated_tablet_split_size_threshold_bytes(), output);
6060
0
  }
6061
6062
  // optional uint64 ysql_last_breaking_catalog_version = 15;
6063
0
  if (cached_has_bits & 0x00004000u) {
6064
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(15, this->ysql_last_breaking_catalog_version(), output);
6065
0
  }
6066
6067
  // optional int32 tablet_report_limit = 16;
6068
0
  if (cached_has_bits & 0x00010000u) {
6069
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->tablet_report_limit(), output);
6070
0
  }
6071
6072
  // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17;
6073
0
  if (cached_has_bits & 0x00000080u) {
6074
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6075
0
      17, *this->snapshots_info_, output);
6076
0
  }
6077
6078
  // optional uint64 transaction_tables_version = 18;
6079
0
  if (cached_has_bits & 0x00008000u) {
6080
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->transaction_tables_version(), output);
6081
0
  }
6082
6083
0
  if (_internal_metadata_.have_unknown_fields()) {
6084
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6085
0
        _internal_metadata_.unknown_fields(), output);
6086
0
  }
6087
  // @@protoc_insertion_point(serialize_end:yb.master.TSHeartbeatResponsePB)
6088
0
}
6089
6090
::google::protobuf::uint8* TSHeartbeatResponsePB::InternalSerializeWithCachedSizesToArray(
6091
382k
    bool deterministic, ::google::protobuf::uint8* target) const {
6092
382k
  (void)deterministic; // Unused
6093
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSHeartbeatResponsePB)
6094
382k
  ::google::protobuf::uint32 cached_has_bits = 0;
6095
382k
  (void) cached_has_bits;
6096
6097
382k
  cached_has_bits = _has_bits_[0];
6098
  // optional .yb.master.MasterErrorPB error = 1;
6099
382k
  if (cached_has_bits & 0x00000002u) {
6100
707
    target = ::google::protobuf::internal::WireFormatLite::
6101
707
      InternalWriteMessageToArray(
6102
707
        1, *this->error_, deterministic, target);
6103
707
  }
6104
6105
  // optional .yb.NodeInstancePB master_instance = 2;
6106
382k
  if (cached_has_bits & 0x00000004u) {
6107
381k
    target = ::google::protobuf::internal::WireFormatLite::
6108
381k
      InternalWriteMessageToArray(
6109
381k
        2, *this->master_instance_, deterministic, target);
6110
381k
  }
6111
6112
  // optional bool needs_reregister = 3 [default = false];
6113
382k
  if (cached_has_bits & 0x00000100u) {
6114
133
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->needs_reregister(), target);
6115
133
  }
6116
6117
  // optional bool needs_full_tablet_report = 4 [default = false];
6118
382k
  if (cached_has_bits & 0x00000200u) {
6119
5.59k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->needs_full_tablet_report(), target);
6120
5.59k
  }
6121
6122
  // optional .yb.master.TabletReportUpdatesPB tablet_report = 5;
6123
382k
  if (cached_has_bits & 0x00000008u) {
6124
381k
    target = ::google::protobuf::internal::WireFormatLite::
6125
381k
      InternalWriteMessageToArray(
6126
381k
        5, *this->tablet_report_, deterministic, target);
6127
381k
  }
6128
6129
  // optional bool leader_master = 6;
6130
382k
  if (cached_has_bits & 0x00000400u) {
6131
380k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->leader_master(), target);
6132
380k
  }
6133
6134
  // optional .yb.consensus.RaftConfigPB master_config = 7;
6135
382k
  if (cached_has_bits & 0x00000010u) {
6136
135
    target = ::google::protobuf::internal::WireFormatLite::
6137
135
      InternalWriteMessageToArray(
6138
135
        7, *this->master_config_, deterministic, target);
6139
135
  }
6140
6141
  // repeated .yb.master.TSInformationPB tservers = 8;
6142
382k
  for (unsigned int i = 0,
6143
1.63M
      n = static_cast<unsigned int>(this->tservers_size()); i < n; i++) {
6144
1.25M
    target = ::google::protobuf::internal::WireFormatLite::
6145
1.25M
      InternalWriteMessageToArray(
6146
1.25M
        8, this->tservers(static_cast<int>(i)), deterministic, target);
6147
1.25M
  }
6148
6149
  // optional string cluster_uuid = 9;
6150
382k
  if (cached_has_bits & 0x00000001u) {
6151
5.59k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6152
5.59k
      this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
6153
5.59k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6154
5.59k
      "yb.master.TSHeartbeatResponsePB.cluster_uuid");
6155
5.59k
    target =
6156
5.59k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6157
5.59k
        9, this->cluster_uuid(), target);
6158
5.59k
  }
6159
6160
  // optional uint64 ysql_catalog_version = 10;
6161
383k
  if (cached_has_bits & 0x00001000u) {
6162
383k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->ysql_catalog_version(), target);
6163
383k
  }
6164
6165
  // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11;
6166
382k
  if (cached_has_bits & 0x00000020u) {
6167
3
    target = ::google::protobuf::internal::WireFormatLite::
6168
3
      InternalWriteMessageToArray(
6169
3
        11, *this->universe_key_registry_, deterministic, target);
6170
3
  }
6171
6172
  // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12;
6173
382k
  if (cached_has_bits & 0x00000040u) {
6174
0
    target = ::google::protobuf::internal::WireFormatLite::
6175
0
      InternalWriteMessageToArray(
6176
0
        12, *this->consumer_registry_, deterministic, target);
6177
0
  }
6178
6179
  // optional int32 cluster_config_version = 13;
6180
382k
  if (cached_has_bits & 0x00000800u) {
6181
382k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->cluster_config_version(), target);
6182
382k
  }
6183
6184
  // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14;
6185
382k
  if (cached_has_bits & 0x00002000u) {
6186
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(14, this->deprecated_tablet_split_size_threshold_bytes(), target);
6187
0
  }
6188
6189
  // optional uint64 ysql_last_breaking_catalog_version = 15;
6190
383k
  if (cached_has_bits & 0x00004000u) {
6191
383k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(15, this->ysql_last_breaking_catalog_version(), target);
6192
383k
  }
6193
6194
  // optional int32 tablet_report_limit = 16;
6195
382k
  if (cached_has_bits & 0x00010000u) {
6196
381k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->tablet_report_limit(), target);
6197
381k
  }
6198
6199
  // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17;
6200
382k
  if (cached_has_bits & 0x00000080u) {
6201
382k
    target = ::google::protobuf::internal::WireFormatLite::
6202
382k
      InternalWriteMessageToArray(
6203
382k
        17, *this->snapshots_info_, deterministic, target);
6204
382k
  }
6205
6206
  // optional uint64 transaction_tables_version = 18;
6207
382k
  if (cached_has_bits & 0x00008000u) {
6208
379k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(18, this->transaction_tables_version(), target);
6209
379k
  }
6210
6211
382k
  if (_internal_metadata_.have_unknown_fields()) {
6212
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6213
0
        _internal_metadata_.unknown_fields(), target);
6214
0
  }
6215
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSHeartbeatResponsePB)
6216
382k
  return target;
6217
382k
}
6218
6219
766k
size_t TSHeartbeatResponsePB::ByteSizeLong() const {
6220
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSHeartbeatResponsePB)
6221
766k
  size_t total_size = 0;
6222
6223
766k
  if (_internal_metadata_.have_unknown_fields()) {
6224
0
    total_size +=
6225
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6226
0
        _internal_metadata_.unknown_fields());
6227
0
  }
6228
  // repeated .yb.master.TSInformationPB tservers = 8;
6229
766k
  {
6230
766k
    unsigned int count = static_cast<unsigned int>(this->tservers_size());
6231
766k
    total_size += 1UL * count;
6232
3.27M
    for (unsigned int i = 0; i < count; i++) {
6233
2.50M
      total_size +=
6234
2.50M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6235
2.50M
          this->tservers(static_cast<int>(i)));
6236
2.50M
    }
6237
766k
  }
6238
6239
766k
  if (_has_bits_[0 / 32] & 255u) {
6240
    // optional string cluster_uuid = 9;
6241
766k
    if (has_cluster_uuid()) {
6242
11.1k
      total_size += 1 +
6243
11.1k
        ::google::protobuf::internal::WireFormatLite::StringSize(
6244
11.1k
          this->cluster_uuid());
6245
11.1k
    }
6246
6247
    // optional .yb.master.MasterErrorPB error = 1;
6248
766k
    if (has_error()) {
6249
1.41k
      total_size += 1 +
6250
1.41k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6251
1.41k
          *this->error_);
6252
1.41k
    }
6253
6254
    // optional .yb.NodeInstancePB master_instance = 2;
6255
766k
    if (has_master_instance()) {
6256
762k
      total_size += 1 +
6257
762k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6258
762k
          *this->master_instance_);
6259
762k
    }
6260
6261
    // optional .yb.master.TabletReportUpdatesPB tablet_report = 5;
6262
766k
    if (has_tablet_report()) {
6263
762k
      total_size += 1 +
6264
762k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6265
762k
          *this->tablet_report_);
6266
762k
    }
6267
6268
    // optional .yb.consensus.RaftConfigPB master_config = 7;
6269
766k
    if (has_master_config()) {
6270
270
      total_size += 1 +
6271
270
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6272
270
          *this->master_config_);
6273
270
    }
6274
6275
    // optional .yb.encryption.UniverseKeyRegistryPB universe_key_registry = 11;
6276
766k
    if (has_universe_key_registry()) {
6277
6
      total_size += 1 +
6278
6
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6279
6
          *this->universe_key_registry_);
6280
6
    }
6281
6282
    // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 12;
6283
766k
    if (has_consumer_registry()) {
6284
0
      total_size += 1 +
6285
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6286
0
          *this->consumer_registry_);
6287
0
    }
6288
6289
    // optional .yb.master.TSSnapshotsInfoPB snapshots_info = 17;
6290
766k
    if (has_snapshots_info()) {
6291
764k
      total_size += 2 +
6292
764k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6293
764k
          *this->snapshots_info_);
6294
764k
    }
6295
6296
766k
  }
6297
766k
  if (_has_bits_[8 / 32] & 65280u) {
6298
    // optional bool needs_reregister = 3 [default = false];
6299
760k
    if (has_needs_reregister()) {
6300
268
      total_size += 1 + 1;
6301
268
    }
6302
6303
    // optional bool needs_full_tablet_report = 4 [default = false];
6304
760k
    if (has_needs_full_tablet_report()) {
6305
11.1k
      total_size += 1 + 1;
6306
11.1k
    }
6307
6308
    // optional bool leader_master = 6;
6309
761k
    if (has_leader_master()) {
6310
761k
      total_size += 1 + 1;
6311
761k
    }
6312
6313
    // optional int32 cluster_config_version = 13;
6314
761k
    if (has_cluster_config_version()) {
6315
761k
      total_size += 1 +
6316
761k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
6317
761k
          this->cluster_config_version());
6318
761k
    }
6319
6320
    // optional uint64 ysql_catalog_version = 10;
6321
761k
    if (has_ysql_catalog_version()) {
6322
761k
      total_size += 1 +
6323
761k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6324
761k
          this->ysql_catalog_version());
6325
761k
    }
6326
6327
    // optional int64 DEPRECATED_tablet_split_size_threshold_bytes = 14;
6328
760k
    if (has_deprecated_tablet_split_size_threshold_bytes()) {
6329
0
      total_size += 1 +
6330
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6331
0
          this->deprecated_tablet_split_size_threshold_bytes());
6332
0
    }
6333
6334
    // optional uint64 ysql_last_breaking_catalog_version = 15;
6335
762k
    if (has_ysql_last_breaking_catalog_version()) {
6336
762k
      total_size += 1 +
6337
762k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6338
762k
          this->ysql_last_breaking_catalog_version());
6339
762k
    }
6340
6341
    // optional uint64 transaction_tables_version = 18;
6342
761k
    if (has_transaction_tables_version()) {
6343
761k
      total_size += 2 +
6344
761k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6345
761k
          this->transaction_tables_version());
6346
761k
    }
6347
6348
760k
  }
6349
  // optional int32 tablet_report_limit = 16;
6350
766k
  if (has_tablet_report_limit()) {
6351
761k
    total_size += 2 +
6352
761k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
6353
761k
        this->tablet_report_limit());
6354
761k
  }
6355
6356
766k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6357
766k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6358
766k
  _cached_size_ = cached_size;
6359
766k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6360
766k
  return total_size;
6361
766k
}
6362
6363
0
void TSHeartbeatResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6364
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSHeartbeatResponsePB)
6365
0
  GOOGLE_DCHECK_NE(&from, this);
6366
0
  const TSHeartbeatResponsePB* source =
6367
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSHeartbeatResponsePB>(
6368
0
          &from);
6369
0
  if (source == NULL) {
6370
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSHeartbeatResponsePB)
6371
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6372
0
  } else {
6373
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSHeartbeatResponsePB)
6374
0
    MergeFrom(*source);
6375
0
  }
6376
0
}
6377
6378
0
void TSHeartbeatResponsePB::MergeFrom(const TSHeartbeatResponsePB& from) {
6379
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSHeartbeatResponsePB)
6380
0
  GOOGLE_DCHECK_NE(&from, this);
6381
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6382
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6383
0
  (void) cached_has_bits;
6384
6385
0
  tservers_.MergeFrom(from.tservers_);
6386
0
  cached_has_bits = from._has_bits_[0];
6387
0
  if (cached_has_bits & 255u) {
6388
0
    if (cached_has_bits & 0x00000001u) {
6389
0
      set_has_cluster_uuid();
6390
0
      cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_);
6391
0
    }
6392
0
    if (cached_has_bits & 0x00000002u) {
6393
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
6394
0
    }
6395
0
    if (cached_has_bits & 0x00000004u) {
6396
0
      mutable_master_instance()->::yb::NodeInstancePB::MergeFrom(from.master_instance());
6397
0
    }
6398
0
    if (cached_has_bits & 0x00000008u) {
6399
0
      mutable_tablet_report()->::yb::master::TabletReportUpdatesPB::MergeFrom(from.tablet_report());
6400
0
    }
6401
0
    if (cached_has_bits & 0x00000010u) {
6402
0
      mutable_master_config()->::yb::consensus::RaftConfigPB::MergeFrom(from.master_config());
6403
0
    }
6404
0
    if (cached_has_bits & 0x00000020u) {
6405
0
      mutable_universe_key_registry()->::yb::encryption::UniverseKeyRegistryPB::MergeFrom(from.universe_key_registry());
6406
0
    }
6407
0
    if (cached_has_bits & 0x00000040u) {
6408
0
      mutable_consumer_registry()->::yb::cdc::ConsumerRegistryPB::MergeFrom(from.consumer_registry());
6409
0
    }
6410
0
    if (cached_has_bits & 0x00000080u) {
6411
0
      mutable_snapshots_info()->::yb::master::TSSnapshotsInfoPB::MergeFrom(from.snapshots_info());
6412
0
    }
6413
0
  }
6414
0
  if (cached_has_bits & 65280u) {
6415
0
    if (cached_has_bits & 0x00000100u) {
6416
0
      needs_reregister_ = from.needs_reregister_;
6417
0
    }
6418
0
    if (cached_has_bits & 0x00000200u) {
6419
0
      needs_full_tablet_report_ = from.needs_full_tablet_report_;
6420
0
    }
6421
0
    if (cached_has_bits & 0x00000400u) {
6422
0
      leader_master_ = from.leader_master_;
6423
0
    }
6424
0
    if (cached_has_bits & 0x00000800u) {
6425
0
      cluster_config_version_ = from.cluster_config_version_;
6426
0
    }
6427
0
    if (cached_has_bits & 0x00001000u) {
6428
0
      ysql_catalog_version_ = from.ysql_catalog_version_;
6429
0
    }
6430
0
    if (cached_has_bits & 0x00002000u) {
6431
0
      deprecated_tablet_split_size_threshold_bytes_ = from.deprecated_tablet_split_size_threshold_bytes_;
6432
0
    }
6433
0
    if (cached_has_bits & 0x00004000u) {
6434
0
      ysql_last_breaking_catalog_version_ = from.ysql_last_breaking_catalog_version_;
6435
0
    }
6436
0
    if (cached_has_bits & 0x00008000u) {
6437
0
      transaction_tables_version_ = from.transaction_tables_version_;
6438
0
    }
6439
0
    _has_bits_[0] |= cached_has_bits;
6440
0
  }
6441
0
  if (cached_has_bits & 0x00010000u) {
6442
0
    set_tablet_report_limit(from.tablet_report_limit());
6443
0
  }
6444
0
}
6445
6446
0
void TSHeartbeatResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6447
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSHeartbeatResponsePB)
6448
0
  if (&from == this) return;
6449
0
  Clear();
6450
0
  MergeFrom(from);
6451
0
}
6452
6453
0
void TSHeartbeatResponsePB::CopyFrom(const TSHeartbeatResponsePB& from) {
6454
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSHeartbeatResponsePB)
6455
0
  if (&from == this) return;
6456
0
  Clear();
6457
0
  MergeFrom(from);
6458
0
}
6459
6460
787k
bool TSHeartbeatResponsePB::IsInitialized() const {
6461
787k
  if (!::google::protobuf::internal::AllAreInitialized(this->tservers())) return false;
6462
787k
  if (has_error()) {
6463
1.40k
    if (!this->error_->IsInitialized()) return false;
6464
787k
  }
6465
787k
  if (has_master_instance()) {
6466
783k
    if (!this->master_instance_->IsInitialized()) return false;
6467
787k
  }
6468
787k
  if (has_tablet_report()) {
6469
783k
    if (!this->tablet_report_->IsInitialized()) return false;
6470
787k
  }
6471
787k
  if (has_master_config()) {
6472
269
    if (!this->master_config_->IsInitialized()) return false;
6473
787k
  }
6474
787k
  if (has_consumer_registry()) {
6475
0
    if (!this->consumer_registry_->IsInitialized()) return false;
6476
787k
  }
6477
787k
  return true;
6478
787k
}
6479
6480
402k
void TSHeartbeatResponsePB::Swap(TSHeartbeatResponsePB* other) {
6481
402k
  if (other == this) return;
6482
402k
  InternalSwap(other);
6483
402k
}
6484
402k
void TSHeartbeatResponsePB::InternalSwap(TSHeartbeatResponsePB* other) {
6485
402k
  using std::swap;
6486
402k
  tservers_.InternalSwap(&other->tservers_);
6487
402k
  cluster_uuid_.Swap(&other->cluster_uuid_);
6488
402k
  swap(error_, other->error_);
6489
402k
  swap(master_instance_, other->master_instance_);
6490
402k
  swap(tablet_report_, other->tablet_report_);
6491
402k
  swap(master_config_, other->master_config_);
6492
402k
  swap(universe_key_registry_, other->universe_key_registry_);
6493
402k
  swap(consumer_registry_, other->consumer_registry_);
6494
402k
  swap(snapshots_info_, other->snapshots_info_);
6495
402k
  swap(needs_reregister_, other->needs_reregister_);
6496
402k
  swap(needs_full_tablet_report_, other->needs_full_tablet_report_);
6497
402k
  swap(leader_master_, other->leader_master_);
6498
402k
  swap(cluster_config_version_, other->cluster_config_version_);
6499
402k
  swap(ysql_catalog_version_, other->ysql_catalog_version_);
6500
402k
  swap(deprecated_tablet_split_size_threshold_bytes_, other->deprecated_tablet_split_size_threshold_bytes_);
6501
402k
  swap(ysql_last_breaking_catalog_version_, other->ysql_last_breaking_catalog_version_);
6502
402k
  swap(transaction_tables_version_, other->transaction_tables_version_);
6503
402k
  swap(tablet_report_limit_, other->tablet_report_limit_);
6504
402k
  swap(_has_bits_[0], other->_has_bits_[0]);
6505
402k
  _internal_metadata_.Swap(&other->_internal_metadata_);
6506
402k
  swap(_cached_size_, other->_cached_size_);
6507
402k
}
6508
6509
270
::google::protobuf::Metadata TSHeartbeatResponsePB::GetMetadata() const {
6510
270
  protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::protobuf_AssignDescriptorsOnce();
6511
270
  return ::protobuf_yb_2fmaster_2fmaster_5fheartbeat_2eproto::file_level_metadata[kIndexInFileMessages];
6512
270
}
6513
6514
6515
// @@protoc_insertion_point(namespace_scope)
6516
}  // namespace master
6517
}  // namespace yb
6518
6519
// @@protoc_insertion_point(global_scope)