YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tablet/metadata.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/tablet/metadata.proto
3
4
#include "yb/tablet/metadata.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 tablet {
25
class TableInfoPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TableInfoPB>
28
      _instance;
29
} _TableInfoPB_default_instance_;
30
class KvStoreInfoPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<KvStoreInfoPB>
33
      _instance;
34
} _KvStoreInfoPB_default_instance_;
35
class RaftGroupReplicaSuperBlockPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<RaftGroupReplicaSuperBlockPB>
38
      _instance;
39
} _RaftGroupReplicaSuperBlockPB_default_instance_;
40
class FilePBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<FilePB>
43
      _instance;
44
} _FilePB_default_instance_;
45
class SnapshotFilePBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<SnapshotFilePB>
48
      _instance;
49
} _SnapshotFilePB_default_instance_;
50
}  // namespace tablet
51
}  // namespace yb
52
namespace protobuf_yb_2ftablet_2fmetadata_2eproto {
53
26.8k
void InitDefaultsTableInfoPBImpl() {
54
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
55
56
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
57
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
58
#else
59
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
60
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
61
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
62
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB();
63
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
64
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletedColumnPB();
65
26.8k
  {
66
26.8k
    void* ptr = &::yb::tablet::_TableInfoPB_default_instance_;
67
26.8k
    new (ptr) ::yb::tablet::TableInfoPB();
68
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
69
26.8k
  }
70
26.8k
  ::yb::tablet::TableInfoPB::InitAsDefaultInstance();
71
26.8k
}
72
73
303M
void InitDefaultsTableInfoPB() {
74
303M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
75
303M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTableInfoPBImpl);
76
303M
}
77
78
26.8k
void InitDefaultsKvStoreInfoPBImpl() {
79
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
80
81
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
82
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
83
#else
84
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
85
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
86
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsFilePB();
87
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsSnapshotFilePB();
88
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
89
26.8k
  {
90
26.8k
    void* ptr = &::yb::tablet::_KvStoreInfoPB_default_instance_;
91
26.8k
    new (ptr) ::yb::tablet::KvStoreInfoPB();
92
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
93
26.8k
  }
94
26.8k
  ::yb::tablet::KvStoreInfoPB::InitAsDefaultInstance();
95
26.8k
}
96
97
1.62M
void InitDefaultsKvStoreInfoPB() {
98
1.62M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
99
1.62M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsKvStoreInfoPBImpl);
100
1.62M
}
101
102
26.8k
void InitDefaultsRaftGroupReplicaSuperBlockPBImpl() {
103
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
104
105
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
106
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
107
#else
108
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
109
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
110
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
111
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
112
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB();
113
26.8k
  protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPB();
114
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsKvStoreInfoPB();
115
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsFilePB();
116
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsSnapshotFilePB();
117
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletedColumnPB();
118
26.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
119
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
120
26.8k
  {
121
26.8k
    void* ptr = &::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_;
122
26.8k
    new (ptr) ::yb::tablet::RaftGroupReplicaSuperBlockPB();
123
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
124
26.8k
  }
125
26.8k
  ::yb::tablet::RaftGroupReplicaSuperBlockPB::InitAsDefaultInstance();
126
26.8k
}
127
128
3.19M
void InitDefaultsRaftGroupReplicaSuperBlockPB() {
129
3.19M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
130
3.19M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRaftGroupReplicaSuperBlockPBImpl);
131
3.19M
}
132
133
26.8k
void InitDefaultsFilePBImpl() {
134
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
135
136
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
137
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
138
#else
139
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
140
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
141
26.8k
  {
142
26.8k
    void* ptr = &::yb::tablet::_FilePB_default_instance_;
143
26.8k
    new (ptr) ::yb::tablet::FilePB();
144
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
145
26.8k
  }
146
26.8k
  ::yb::tablet::FilePB::InitAsDefaultInstance();
147
26.8k
}
148
149
134k
void InitDefaultsFilePB() {
150
134k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
151
134k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFilePBImpl);
152
134k
}
153
154
26.8k
void InitDefaultsSnapshotFilePBImpl() {
155
26.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
156
157
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
158
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
159
#else
160
26.8k
  ::google::protobuf::internal::InitProtobufDefaults();
161
26.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
162
26.8k
  protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsFilePB();
163
26.8k
  {
164
26.8k
    void* ptr = &::yb::tablet::_SnapshotFilePB_default_instance_;
165
26.8k
    new (ptr) ::yb::tablet::SnapshotFilePB();
166
26.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
167
26.8k
  }
168
26.8k
  ::yb::tablet::SnapshotFilePB::InitAsDefaultInstance();
169
26.8k
}
170
171
80.8k
void InitDefaultsSnapshotFilePB() {
172
80.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
173
80.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSnapshotFilePBImpl);
174
80.8k
}
175
176
::google::protobuf::Metadata file_level_metadata[5];
177
178
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
179
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, _has_bits_),
180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, _internal_metadata_),
181
  ~0u,  // no _extensions_
182
  ~0u,  // no _oneof_case_
183
  ~0u,  // no _weak_field_map_
184
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, table_id_),
185
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, namespace_name_),
186
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, table_name_),
187
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, table_type_),
188
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, schema_),
189
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, schema_version_),
190
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, partition_schema_),
191
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, indexes_),
192
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, index_info_),
193
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::TableInfoPB, deleted_cols_),
194
  0,
195
  2,
196
  1,
197
  7,
198
  3,
199
  6,
200
  4,
201
  ~0u,
202
  5,
203
  ~0u,
204
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, _has_bits_),
205
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, _internal_metadata_),
206
  ~0u,  // no _extensions_
207
  ~0u,  // no _oneof_case_
208
  ~0u,  // no _weak_field_map_
209
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, kv_store_id_),
210
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, rocksdb_dir_),
211
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, rocksdb_files_),
212
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, snapshot_files_),
213
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, tables_),
214
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, lower_bound_key_),
215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, upper_bound_key_),
216
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, has_been_fully_compacted_),
217
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::KvStoreInfoPB, snapshot_schedules_),
218
  0,
219
  1,
220
  ~0u,
221
  ~0u,
222
  ~0u,
223
  2,
224
  3,
225
  4,
226
  ~0u,
227
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, _has_bits_),
228
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, _internal_metadata_),
229
  ~0u,  // no _extensions_
230
  ~0u,  // no _oneof_case_
231
  ~0u,  // no _weak_field_map_
232
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, primary_table_id_),
233
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, raft_group_id_),
234
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, partition_),
235
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_table_name_),
236
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_table_type_),
237
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_schema_),
238
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_schema_version_),
239
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_partition_schema_),
240
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, tablet_data_state_),
241
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, wal_dir_),
242
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, tombstone_last_logged_opid_),
243
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, kv_store_),
244
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_rocksdb_dir_),
245
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_rocksdb_files_),
246
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_snapshot_files_),
247
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_deleted_cols_),
248
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_indexes_),
249
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_index_info_),
250
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, obsolete_tables_),
251
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, colocated_),
252
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, cdc_min_replicated_index_),
253
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, is_under_twodc_replication_),
254
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, hidden_),
255
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, restoration_hybrid_time_),
256
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, split_op_id_),
257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, split_child_tablet_ids_),
258
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::RaftGroupReplicaSuperBlockPB, active_restorations_),
259
  0,
260
  1,
261
  7,
262
  2,
263
  18,
264
  5,
265
  12,
266
  8,
267
  17,
268
  4,
269
  6,
270
  10,
271
  3,
272
  ~0u,
273
  ~0u,
274
  ~0u,
275
  ~0u,
276
  9,
277
  ~0u,
278
  13,
279
  19,
280
  14,
281
  15,
282
  16,
283
  11,
284
  ~0u,
285
  ~0u,
286
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::FilePB, _has_bits_),
287
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::FilePB, _internal_metadata_),
288
  ~0u,  // no _extensions_
289
  ~0u,  // no _oneof_case_
290
  ~0u,  // no _weak_field_map_
291
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::FilePB, name_),
292
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::FilePB, size_bytes_),
293
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::FilePB, inode_),
294
  0,
295
  1,
296
  2,
297
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SnapshotFilePB, _has_bits_),
298
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SnapshotFilePB, _internal_metadata_),
299
  ~0u,  // no _extensions_
300
  ~0u,  // no _oneof_case_
301
  ~0u,  // no _weak_field_map_
302
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SnapshotFilePB, file_),
303
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tablet::SnapshotFilePB, snapshot_id_),
304
  1,
305
  0,
306
};
307
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
308
  { 0, 15, sizeof(::yb::tablet::TableInfoPB)},
309
  { 25, 39, sizeof(::yb::tablet::KvStoreInfoPB)},
310
  { 48, 80, sizeof(::yb::tablet::RaftGroupReplicaSuperBlockPB)},
311
  { 107, 115, sizeof(::yb::tablet::FilePB)},
312
  { 118, 125, sizeof(::yb::tablet::SnapshotFilePB)},
313
};
314
315
static ::google::protobuf::Message const * const file_default_instances[] = {
316
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_TableInfoPB_default_instance_),
317
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_KvStoreInfoPB_default_instance_),
318
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_),
319
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_FilePB_default_instance_),
320
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tablet::_SnapshotFilePB_default_instance_),
321
};
322
323
14.4k
void protobuf_AssignDescriptors() {
324
14.4k
  AddDescriptors();
325
14.4k
  ::google::protobuf::MessageFactory* factory = NULL;
326
14.4k
  AssignDescriptors(
327
14.4k
      "yb/tablet/metadata.proto", schemas, file_default_instances, TableStruct::offsets, factory,
328
14.4k
      file_level_metadata, NULL, NULL);
329
14.4k
}
330
331
5.82M
void protobuf_AssignDescriptorsOnce() {
332
5.82M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
333
5.82M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
334
5.82M
}
335
336
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
337
0
void protobuf_RegisterTypes(const ::std::string&) {
338
0
  protobuf_AssignDescriptorsOnce();
339
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
340
0
}
341
342
26.8k
void AddDescriptorsImpl() {
343
26.8k
  InitDefaults();
344
26.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
345
26.8k
      "\n\030yb/tablet/metadata.proto\022\tyb.tablet\032\026y"
346
26.8k
      "b/common/common.proto\032\034yb/common/common_"
347
26.8k
      "types.proto\032\034yb/tablet/tablet_types.prot"
348
26.8k
      "o\032\022yb/util/opid.proto\"\333\002\n\013TableInfoPB\022\020\n"
349
26.8k
      "\010table_id\030\001 \001(\014\022\026\n\016namespace_name\030\n \001(\t\022"
350
26.8k
      "\022\n\ntable_name\030\002 \001(\t\0225\n\ntable_type\030\003 \001(\0162"
351
26.8k
      "\r.yb.TableType:\022DEFAULT_TABLE_TYPE\022\034\n\006sc"
352
26.8k
      "hema\030\004 \001(\0132\014.yb.SchemaPB\022\026\n\016schema_versi"
353
26.8k
      "on\030\005 \001(\r\022/\n\020partition_schema\030\006 \001(\0132\025.yb."
354
26.8k
      "PartitionSchemaPB\022 \n\007indexes\030\007 \003(\0132\017.yb."
355
26.8k
      "IndexInfoPB\022#\n\nindex_info\030\010 \001(\0132\017.yb.Ind"
356
26.8k
      "exInfoPB\022)\n\014deleted_cols\030\t \003(\0132\023.yb.Dele"
357
26.8k
      "tedColumnPB\"\256\002\n\rKvStoreInfoPB\022\023\n\013kv_stor"
358
26.8k
      "e_id\030\001 \002(\014\022\023\n\013rocksdb_dir\030\002 \001(\t\022(\n\rrocks"
359
26.8k
      "db_files\030\003 \003(\0132\021.yb.tablet.FilePB\0221\n\016sna"
360
26.8k
      "pshot_files\030\004 \003(\0132\031.yb.tablet.SnapshotFi"
361
26.8k
      "lePB\022&\n\006tables\030\005 \003(\0132\026.yb.tablet.TableIn"
362
26.8k
      "foPB\022\027\n\017lower_bound_key\030\006 \001(\014\022\027\n\017upper_b"
363
26.8k
      "ound_key\030\007 \001(\014\022 \n\030has_been_fully_compact"
364
26.8k
      "ed\030\010 \001(\010\022\032\n\022snapshot_schedules\030\t \003(\014\"\362\010\n"
365
26.8k
      "\034RaftGroupReplicaSuperBlockPB\022\030\n\020primary"
366
26.8k
      "_table_id\030\001 \002(\014\022\025\n\rraft_group_id\030\002 \002(\014\022\""
367
26.8k
      "\n\tpartition\030\r \001(\0132\017.yb.PartitionPB\022\033\n\023OB"
368
26.8k
      "SOLETE_table_name\030\007 \001(\t\022>\n\023OBSOLETE_tabl"
369
26.8k
      "e_type\030\017 \001(\0162\r.yb.TableType:\022DEFAULT_TAB"
370
26.8k
      "LE_TYPE\022%\n\017OBSOLETE_schema\030\010 \001(\0132\014.yb.Sc"
371
26.8k
      "hemaPB\022\037\n\027OBSOLETE_schema_version\030\t \001(\r\022"
372
26.8k
      "8\n\031OBSOLETE_partition_schema\030\016 \001(\0132\025.yb."
373
26.8k
      "PartitionSchemaPB\022J\n\021tablet_data_state\030\n"
374
26.8k
      " \001(\0162\032.yb.tablet.TabletDataState:\023TABLET"
375
26.8k
      "_DATA_UNKNOWN\022\017\n\007wal_dir\030\022 \001(\t\022.\n\032tombst"
376
26.8k
      "one_last_logged_opid\030\014 \001(\0132\n.yb.OpIdPB\022*"
377
26.8k
      "\n\010kv_store\030\030 \001(\0132\030.yb.tablet.KvStoreInfo"
378
26.8k
      "PB\022\034\n\024OBSOLETE_rocksdb_dir\030\020 \001(\t\0221\n\026OBSO"
379
26.8k
      "LETE_rocksdb_files\030\021 \003(\0132\021.yb.tablet.Fil"
380
26.8k
      "ePB\022:\n\027OBSOLETE_snapshot_files\030\024 \003(\0132\031.y"
381
26.8k
      "b.tablet.SnapshotFilePB\0222\n\025OBSOLETE_dele"
382
26.8k
      "ted_cols\030\023 \003(\0132\023.yb.DeletedColumnPB\022)\n\020O"
383
26.8k
      "BSOLETE_indexes\030\025 \003(\0132\017.yb.IndexInfoPB\022,"
384
26.8k
      "\n\023OBSOLETE_index_info\030\026 \001(\0132\017.yb.IndexIn"
385
26.8k
      "foPB\022/\n\017OBSOLETE_tables\030\027 \003(\0132\026.yb.table"
386
26.8k
      "t.TableInfoPB\022\030\n\tcolocated\030\031 \001(\010:\005false\022"
387
26.8k
      "5\n\030cdc_min_replicated_index\030\032 \001(\003:\02392233"
388
26.8k
      "72036854775807\022\"\n\032is_under_twodc_replica"
389
26.8k
      "tion\030\033 \001(\010\022\016\n\006hidden\030\034 \001(\010\022\037\n\027restoratio"
390
26.8k
      "n_hybrid_time\030  \001(\006\022\037\n\013split_op_id\030\035 \001(\013"
391
26.8k
      "2\n.yb.OpIdPB\022\036\n\026split_child_tablet_ids\030\036"
392
26.8k
      " \003(\014\022\033\n\023active_restorations\030\037 \003(\014J\004\010\003\020\004J"
393
26.8k
      "\004\010\004\020\005J\004\010\005\020\006J\004\010\013\020\014\"9\n\006FilePB\022\014\n\004name\030\001 \001("
394
26.8k
      "\t\022\022\n\nsize_bytes\030\002 \001(\004\022\r\n\005inode\030\003 \001(\004\"F\n\016"
395
26.8k
      "SnapshotFilePB\022\037\n\004file\030\001 \001(\0132\021.yb.tablet"
396
26.8k
      ".FilePB\022\023\n\013snapshot_id\030\002 \001(\014B\017\n\rorg.yb.t"
397
26.8k
      "ablet"
398
26.8k
  };
399
26.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
400
26.8k
      descriptor, 2085);
401
26.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
402
26.8k
    "yb/tablet/metadata.proto", &protobuf_RegisterTypes);
403
26.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
404
26.8k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
405
26.8k
  ::protobuf_yb_2ftablet_2ftablet_5ftypes_2eproto::AddDescriptors();
406
26.8k
  ::protobuf_yb_2futil_2fopid_2eproto::AddDescriptors();
407
26.8k
}
408
409
121k
void AddDescriptors() {
410
121k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
411
121k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
412
121k
}
413
// Force AddDescriptors() to be called at dynamic initialization time.
414
struct StaticDescriptorInitializer {
415
26.8k
  StaticDescriptorInitializer() {
416
26.8k
    AddDescriptors();
417
26.8k
  }
418
} static_descriptor_initializer;
419
}  // namespace protobuf_yb_2ftablet_2fmetadata_2eproto
420
namespace yb {
421
namespace tablet {
422
423
// ===================================================================
424
425
26.8k
void TableInfoPB::InitAsDefaultInstance() {
426
26.8k
  ::yb::tablet::_TableInfoPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
427
26.8k
      ::yb::SchemaPB::internal_default_instance());
428
26.8k
  ::yb::tablet::_TableInfoPB_default_instance_._instance.get_mutable()->partition_schema_ = const_cast< ::yb::PartitionSchemaPB*>(
429
26.8k
      ::yb::PartitionSchemaPB::internal_default_instance());
430
26.8k
  ::yb::tablet::_TableInfoPB_default_instance_._instance.get_mutable()->index_info_ = const_cast< ::yb::IndexInfoPB*>(
431
26.8k
      ::yb::IndexInfoPB::internal_default_instance());
432
26.8k
}
433
0
void TableInfoPB::clear_schema() {
434
0
  if (schema_ != NULL) schema_->Clear();
435
0
  clear_has_schema();
436
0
}
437
0
void TableInfoPB::clear_partition_schema() {
438
0
  if (partition_schema_ != NULL) partition_schema_->Clear();
439
0
  clear_has_partition_schema();
440
0
}
441
0
void TableInfoPB::clear_indexes() {
442
0
  indexes_.Clear();
443
0
}
444
0
void TableInfoPB::clear_index_info() {
445
0
  if (index_info_ != NULL) index_info_->Clear();
446
0
  clear_has_index_info();
447
0
}
448
0
void TableInfoPB::clear_deleted_cols() {
449
0
  deleted_cols_.Clear();
450
0
}
451
#if !defined(_MSC_VER) || _MSC_VER >= 1900
452
const int TableInfoPB::kTableIdFieldNumber;
453
const int TableInfoPB::kNamespaceNameFieldNumber;
454
const int TableInfoPB::kTableNameFieldNumber;
455
const int TableInfoPB::kTableTypeFieldNumber;
456
const int TableInfoPB::kSchemaFieldNumber;
457
const int TableInfoPB::kSchemaVersionFieldNumber;
458
const int TableInfoPB::kPartitionSchemaFieldNumber;
459
const int TableInfoPB::kIndexesFieldNumber;
460
const int TableInfoPB::kIndexInfoFieldNumber;
461
const int TableInfoPB::kDeletedColsFieldNumber;
462
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
463
464
TableInfoPB::TableInfoPB()
465
302M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
466
302M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
467
302M
    ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
468
302M
  }
469
302M
  SharedCtor();
470
  // @@protoc_insertion_point(constructor:yb.tablet.TableInfoPB)
471
302M
}
472
TableInfoPB::TableInfoPB(const TableInfoPB& from)
473
  : ::google::protobuf::Message(),
474
      _internal_metadata_(NULL),
475
      _has_bits_(from._has_bits_),
476
      _cached_size_(0),
477
      indexes_(from.indexes_),
478
1.12k
      deleted_cols_(from.deleted_cols_) {
479
1.12k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
480
1.12k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
481
1.12k
  if (from.has_table_id()) {
482
1.12k
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
483
1.12k
  }
484
1.12k
  table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
485
1.12k
  if (from.has_table_name()) {
486
1.12k
    table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
487
1.12k
  }
488
1.12k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
489
1.12k
  if (from.has_namespace_name()) {
490
0
    namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
491
0
  }
492
1.12k
  if (from.has_schema()) {
493
1.12k
    schema_ = new ::yb::SchemaPB(*from.schema_);
494
1.12k
  } else {
495
0
    schema_ = NULL;
496
0
  }
497
1.12k
  if (from.has_partition_schema()) {
498
1.12k
    partition_schema_ = new ::yb::PartitionSchemaPB(*from.partition_schema_);
499
1.12k
  } else {
500
0
    partition_schema_ = NULL;
501
0
  }
502
1.12k
  if (from.has_index_info()) {
503
0
    index_info_ = new ::yb::IndexInfoPB(*from.index_info_);
504
1.12k
  } else {
505
1.12k
    index_info_ = NULL;
506
1.12k
  }
507
1.12k
  ::memcpy(&schema_version_, &from.schema_version_,
508
1.12k
    static_cast<size_t>(reinterpret_cast<char*>(&table_type_) -
509
1.12k
    reinterpret_cast<char*>(&schema_version_)) + sizeof(table_type_));
510
  // @@protoc_insertion_point(copy_constructor:yb.tablet.TableInfoPB)
511
1.12k
}
512
513
302M
void TableInfoPB::SharedCtor() {
514
302M
  _cached_size_ = 0;
515
302M
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
516
302M
  table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
517
302M
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
518
302M
  ::memset(&schema_, 0, static_cast<size_t>(
519
302M
      reinterpret_cast<char*>(&schema_version_) -
520
302M
      reinterpret_cast<char*>(&schema_)) + sizeof(schema_version_));
521
302M
  table_type_ = 2;
522
302M
}
523
524
302M
TableInfoPB::~TableInfoPB() {
525
  // @@protoc_insertion_point(destructor:yb.tablet.TableInfoPB)
526
302M
  SharedDtor();
527
302M
}
528
529
302M
void TableInfoPB::SharedDtor() {
530
302M
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
531
302M
  table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
532
302M
  namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
533
302M
  if (this != internal_default_instance()) 
delete schema_302M
;
534
302M
  if (this != internal_default_instance()) 
delete partition_schema_302M
;
535
302M
  if (this != internal_default_instance()) 
delete index_info_302M
;
536
302M
}
537
538
0
void TableInfoPB::SetCachedSize(int size) const {
539
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
540
0
  _cached_size_ = size;
541
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
542
0
}
543
0
const ::google::protobuf::Descriptor* TableInfoPB::descriptor() {
544
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
545
0
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
546
0
}
547
548
0
const TableInfoPB& TableInfoPB::default_instance() {
549
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsTableInfoPB();
550
0
  return *internal_default_instance();
551
0
}
552
553
0
TableInfoPB* TableInfoPB::New(::google::protobuf::Arena* arena) const {
554
0
  TableInfoPB* n = new TableInfoPB;
555
0
  if (arena != NULL) {
556
0
    arena->Own(n);
557
0
  }
558
0
  return n;
559
0
}
560
561
126
void TableInfoPB::Clear() {
562
// @@protoc_insertion_point(message_clear_start:yb.tablet.TableInfoPB)
563
126
  ::google::protobuf::uint32 cached_has_bits = 0;
564
  // Prevent compiler warnings about cached_has_bits being unused
565
126
  (void) cached_has_bits;
566
567
126
  indexes_.Clear();
568
126
  deleted_cols_.Clear();
569
126
  cached_has_bits = _has_bits_[0];
570
126
  if (cached_has_bits & 63u) {
571
0
    if (cached_has_bits & 0x00000001u) {
572
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
573
0
      (*table_id_.UnsafeRawStringPointer())->clear();
574
0
    }
575
0
    if (cached_has_bits & 0x00000002u) {
576
0
      GOOGLE_DCHECK(!table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
577
0
      (*table_name_.UnsafeRawStringPointer())->clear();
578
0
    }
579
0
    if (cached_has_bits & 0x00000004u) {
580
0
      GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
581
0
      (*namespace_name_.UnsafeRawStringPointer())->clear();
582
0
    }
583
0
    if (cached_has_bits & 0x00000008u) {
584
0
      GOOGLE_DCHECK(schema_ != NULL);
585
0
      schema_->Clear();
586
0
    }
587
0
    if (cached_has_bits & 0x00000010u) {
588
0
      GOOGLE_DCHECK(partition_schema_ != NULL);
589
0
      partition_schema_->Clear();
590
0
    }
591
0
    if (cached_has_bits & 0x00000020u) {
592
0
      GOOGLE_DCHECK(index_info_ != NULL);
593
0
      index_info_->Clear();
594
0
    }
595
0
  }
596
126
  if (cached_has_bits & 192u) {
597
0
    schema_version_ = 0u;
598
0
    table_type_ = 2;
599
0
  }
600
126
  _has_bits_.Clear();
601
126
  _internal_metadata_.Clear();
602
126
}
603
604
bool TableInfoPB::MergePartialFromCodedStream(
605
1.01M
    ::google::protobuf::io::CodedInputStream* input) {
606
6.11M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
607
1.01M
  ::google::protobuf::uint32 tag;
608
  // @@protoc_insertion_point(parse_start:yb.tablet.TableInfoPB)
609
7.13M
  for (;;) {
610
7.13M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
611
7.13M
    tag = p.first;
612
7.13M
    if (!p.second) 
goto handle_unusual1.01M
;
613
6.11M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
614
      // optional bytes table_id = 1;
615
1.01M
      case 1: {
616
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
617
1.01M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
618
1.01M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
619
1.01M
                input, this->mutable_table_id()));
620
1.01M
        } else {
621
0
          goto handle_unusual;
622
0
        }
623
1.01M
        break;
624
1.01M
      }
625
626
      // optional string table_name = 2;
627
1.01M
      case 2: {
628
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
629
1.01M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
630
1.01M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
631
1.01M
                input, this->mutable_table_name()));
632
1.01M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
633
1.01M
            this->table_name().data(), static_cast<int>(this->table_name().length()),
634
1.01M
            ::google::protobuf::internal::WireFormat::PARSE,
635
1.01M
            "yb.tablet.TableInfoPB.table_name");
636
1.01M
        } else {
637
0
          goto handle_unusual;
638
0
        }
639
1.01M
        break;
640
1.01M
      }
641
642
      // optional .yb.TableType table_type = 3 [default = DEFAULT_TABLE_TYPE];
643
1.01M
      case 3: {
644
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
645
1.01M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
646
1.01M
          int value;
647
1.01M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
648
1.01M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
649
1.01M
                 input, &value)));
650
1.01M
          if (::yb::TableType_IsValid(value)) {
651
1.01M
            set_table_type(static_cast< ::yb::TableType >(value));
652
1.01M
          } else {
653
9
            mutable_unknown_fields()->AddVarint(
654
9
                3, static_cast< ::google::protobuf::uint64>(value));
655
9
          }
656
18.4E
        } else {
657
18.4E
          goto handle_unusual;
658
18.4E
        }
659
1.01M
        break;
660
1.01M
      }
661
662
      // optional .yb.SchemaPB schema = 4;
663
1.01M
      case 4: {
664
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
665
1.01M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
666
1.01M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
667
1.01M
               input, mutable_schema()));
668
18.4E
        } else {
669
18.4E
          goto handle_unusual;
670
18.4E
        }
671
1.01M
        break;
672
1.01M
      }
673
674
      // optional uint32 schema_version = 5;
675
1.01M
      case 5: {
676
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
677
1.01M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
678
1.01M
          set_has_schema_version();
679
1.01M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
680
1.01M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
681
1.01M
                 input, &schema_version_)));
682
1.01M
        } else {
683
0
          goto handle_unusual;
684
0
        }
685
1.01M
        break;
686
1.01M
      }
687
688
      // optional .yb.PartitionSchemaPB partition_schema = 6;
689
1.01M
      case 6: {
690
1.01M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
691
1.01M
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
692
1.01M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
693
1.01M
               input, mutable_partition_schema()));
694
1.01M
        } else {
695
0
          goto handle_unusual;
696
0
        }
697
1.01M
        break;
698
1.01M
      }
699
700
      // repeated .yb.IndexInfoPB indexes = 7;
701
1.01M
      case 7: {
702
40
        if (static_cast< ::google::protobuf::uint8>(tag) ==
703
40
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
704
40
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
705
40
        } else {
706
0
          goto handle_unusual;
707
0
        }
708
40
        break;
709
40
      }
710
711
      // optional .yb.IndexInfoPB index_info = 8;
712
40
      case 8: {
713
36
        if (static_cast< ::google::protobuf::uint8>(tag) ==
714
36
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
715
36
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
716
36
               input, mutable_index_info()));
717
36
        } else {
718
0
          goto handle_unusual;
719
0
        }
720
36
        break;
721
36
      }
722
723
      // repeated .yb.DeletedColumnPB deleted_cols = 9;
724
636
      case 9: {
725
636
        if (static_cast< ::google::protobuf::uint8>(tag) ==
726
636
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
727
636
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_deleted_cols()));
728
636
        } else {
729
0
          goto handle_unusual;
730
0
        }
731
636
        break;
732
636
      }
733
734
      // optional string namespace_name = 10;
735
5.64k
      case 10: {
736
5.64k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
737
5.64k
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
738
5.64k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
739
5.64k
                input, this->mutable_namespace_name()));
740
5.64k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
741
5.64k
            this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
742
5.64k
            ::google::protobuf::internal::WireFormat::PARSE,
743
5.64k
            "yb.tablet.TableInfoPB.namespace_name");
744
18.4E
        } else {
745
18.4E
          goto handle_unusual;
746
18.4E
        }
747
5.64k
        break;
748
5.64k
      }
749
750
5.64k
      default: {
751
1.01M
      handle_unusual:
752
1.01M
        if (
tag == 01.01M
) {
753
1.01M
          goto success;
754
1.01M
        }
755
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
756
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
757
18.4E
        break;
758
18.4E
      }
759
6.11M
    }
760
6.11M
  }
761
1.01M
success:
762
  // @@protoc_insertion_point(parse_success:yb.tablet.TableInfoPB)
763
1.01M
  return true;
764
0
failure:
765
  // @@protoc_insertion_point(parse_failure:yb.tablet.TableInfoPB)
766
0
  return false;
767
1.01M
#undef DO_
768
1.01M
}
769
770
void TableInfoPB::SerializeWithCachedSizes(
771
0
    ::google::protobuf::io::CodedOutputStream* output) const {
772
  // @@protoc_insertion_point(serialize_start:yb.tablet.TableInfoPB)
773
0
  ::google::protobuf::uint32 cached_has_bits = 0;
774
0
  (void) cached_has_bits;
775
776
0
  cached_has_bits = _has_bits_[0];
777
  // optional bytes table_id = 1;
778
0
  if (cached_has_bits & 0x00000001u) {
779
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
780
0
      1, this->table_id(), output);
781
0
  }
782
783
  // optional string table_name = 2;
784
0
  if (cached_has_bits & 0x00000002u) {
785
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
786
0
      this->table_name().data(), static_cast<int>(this->table_name().length()),
787
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
788
0
      "yb.tablet.TableInfoPB.table_name");
789
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
790
0
      2, this->table_name(), output);
791
0
  }
792
793
  // optional .yb.TableType table_type = 3 [default = DEFAULT_TABLE_TYPE];
794
0
  if (cached_has_bits & 0x00000080u) {
795
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
796
0
      3, this->table_type(), output);
797
0
  }
798
799
  // optional .yb.SchemaPB schema = 4;
800
0
  if (cached_has_bits & 0x00000008u) {
801
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
802
0
      4, *this->schema_, output);
803
0
  }
804
805
  // optional uint32 schema_version = 5;
806
0
  if (cached_has_bits & 0x00000040u) {
807
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->schema_version(), output);
808
0
  }
809
810
  // optional .yb.PartitionSchemaPB partition_schema = 6;
811
0
  if (cached_has_bits & 0x00000010u) {
812
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
813
0
      6, *this->partition_schema_, output);
814
0
  }
815
816
  // repeated .yb.IndexInfoPB indexes = 7;
817
0
  for (unsigned int i = 0,
818
0
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
819
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
820
0
      7, this->indexes(static_cast<int>(i)), output);
821
0
  }
822
823
  // optional .yb.IndexInfoPB index_info = 8;
824
0
  if (cached_has_bits & 0x00000020u) {
825
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
826
0
      8, *this->index_info_, output);
827
0
  }
828
829
  // repeated .yb.DeletedColumnPB deleted_cols = 9;
830
0
  for (unsigned int i = 0,
831
0
      n = static_cast<unsigned int>(this->deleted_cols_size()); i < n; i++) {
832
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
833
0
      9, this->deleted_cols(static_cast<int>(i)), output);
834
0
  }
835
836
  // optional string namespace_name = 10;
837
0
  if (cached_has_bits & 0x00000004u) {
838
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
839
0
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
840
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
841
0
      "yb.tablet.TableInfoPB.namespace_name");
842
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
843
0
      10, this->namespace_name(), output);
844
0
  }
845
846
0
  if (_internal_metadata_.have_unknown_fields()) {
847
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
848
0
        _internal_metadata_.unknown_fields(), output);
849
0
  }
850
  // @@protoc_insertion_point(serialize_end:yb.tablet.TableInfoPB)
851
0
}
852
853
::google::protobuf::uint8* TableInfoPB::InternalSerializeWithCachedSizesToArray(
854
303M
    bool deterministic, ::google::protobuf::uint8* target) const {
855
303M
  (void)deterministic; // Unused
856
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.TableInfoPB)
857
303M
  ::google::protobuf::uint32 cached_has_bits = 0;
858
303M
  (void) cached_has_bits;
859
860
303M
  cached_has_bits = _has_bits_[0];
861
  // optional bytes table_id = 1;
862
303M
  if (cached_has_bits & 0x00000001u) {
863
303M
    target =
864
303M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
865
303M
        1, this->table_id(), target);
866
303M
  }
867
868
  // optional string table_name = 2;
869
303M
  if (cached_has_bits & 0x00000002u) {
870
303M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
871
303M
      this->table_name().data(), static_cast<int>(this->table_name().length()),
872
303M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
873
303M
      "yb.tablet.TableInfoPB.table_name");
874
303M
    target =
875
303M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
876
303M
        2, this->table_name(), target);
877
303M
  }
878
879
  // optional .yb.TableType table_type = 3 [default = DEFAULT_TABLE_TYPE];
880
303M
  if (
cached_has_bits & 0x00000080u303M
) {
881
303M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
882
303M
      3, this->table_type(), target);
883
303M
  }
884
885
  // optional .yb.SchemaPB schema = 4;
886
303M
  if (cached_has_bits & 0x00000008u) {
887
303M
    target = ::google::protobuf::internal::WireFormatLite::
888
303M
      InternalWriteMessageToArray(
889
303M
        4, *this->schema_, deterministic, target);
890
303M
  }
891
892
  // optional uint32 schema_version = 5;
893
303M
  if (
cached_has_bits & 0x00000040u303M
) {
894
303M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->schema_version(), target);
895
303M
  }
896
897
  // optional .yb.PartitionSchemaPB partition_schema = 6;
898
303M
  if (cached_has_bits & 0x00000010u) {
899
303M
    target = ::google::protobuf::internal::WireFormatLite::
900
303M
      InternalWriteMessageToArray(
901
303M
        6, *this->partition_schema_, deterministic, target);
902
303M
  }
903
904
  // repeated .yb.IndexInfoPB indexes = 7;
905
303M
  for (unsigned int i = 0,
906
303M
      n = static_cast<unsigned int>(this->indexes_size()); i < n; 
i++91.7k
) {
907
91.7k
    target = ::google::protobuf::internal::WireFormatLite::
908
91.7k
      InternalWriteMessageToArray(
909
91.7k
        7, this->indexes(static_cast<int>(i)), deterministic, target);
910
91.7k
  }
911
912
  // optional .yb.IndexInfoPB index_info = 8;
913
303M
  if (cached_has_bits & 0x00000020u) {
914
68.4k
    target = ::google::protobuf::internal::WireFormatLite::
915
68.4k
      InternalWriteMessageToArray(
916
68.4k
        8, *this->index_info_, deterministic, target);
917
68.4k
  }
918
919
  // repeated .yb.DeletedColumnPB deleted_cols = 9;
920
303M
  for (unsigned int i = 0,
921
303M
      n = static_cast<unsigned int>(this->deleted_cols_size()); i < n; 
i++21.4k
) {
922
21.4k
    target = ::google::protobuf::internal::WireFormatLite::
923
21.4k
      InternalWriteMessageToArray(
924
21.4k
        9, this->deleted_cols(static_cast<int>(i)), deterministic, target);
925
21.4k
  }
926
927
  // optional string namespace_name = 10;
928
303M
  if (cached_has_bits & 0x00000004u) {
929
301M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
930
301M
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
931
301M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
932
301M
      "yb.tablet.TableInfoPB.namespace_name");
933
301M
    target =
934
301M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
935
301M
        10, this->namespace_name(), target);
936
301M
  }
937
938
303M
  if (_internal_metadata_.have_unknown_fields()) {
939
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
940
0
        _internal_metadata_.unknown_fields(), target);
941
0
  }
942
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.TableInfoPB)
943
303M
  return target;
944
303M
}
945
946
305M
size_t TableInfoPB::ByteSizeLong() const {
947
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.TableInfoPB)
948
305M
  size_t total_size = 0;
949
950
305M
  if (_internal_metadata_.have_unknown_fields()) {
951
0
    total_size +=
952
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
953
0
        _internal_metadata_.unknown_fields());
954
0
  }
955
  // repeated .yb.IndexInfoPB indexes = 7;
956
305M
  {
957
305M
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
958
305M
    total_size += 1UL * count;
959
305M
    for (unsigned int i = 0; i < count; 
i++91.8k
) {
960
91.8k
      total_size +=
961
91.8k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
962
91.8k
          this->indexes(static_cast<int>(i)));
963
91.8k
    }
964
305M
  }
965
966
  // repeated .yb.DeletedColumnPB deleted_cols = 9;
967
305M
  {
968
305M
    unsigned int count = static_cast<unsigned int>(this->deleted_cols_size());
969
305M
    total_size += 1UL * count;
970
305M
    for (unsigned int i = 0; i < count; 
i++21.5k
) {
971
21.5k
      total_size +=
972
21.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
973
21.5k
          this->deleted_cols(static_cast<int>(i)));
974
21.5k
    }
975
305M
  }
976
977
305M
  if (_has_bits_[0 / 32] & 255u) {
978
    // optional bytes table_id = 1;
979
305M
    if (has_table_id()) {
980
305M
      total_size += 1 +
981
305M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
982
305M
          this->table_id());
983
305M
    }
984
985
    // optional string table_name = 2;
986
305M
    if (
has_table_name()305M
) {
987
305M
      total_size += 1 +
988
305M
        ::google::protobuf::internal::WireFormatLite::StringSize(
989
305M
          this->table_name());
990
305M
    }
991
992
    // optional string namespace_name = 10;
993
305M
    if (has_namespace_name()) {
994
301M
      total_size += 1 +
995
301M
        ::google::protobuf::internal::WireFormatLite::StringSize(
996
301M
          this->namespace_name());
997
301M
    }
998
999
    // optional .yb.SchemaPB schema = 4;
1000
305M
    if (has_schema()) {
1001
305M
      total_size += 1 +
1002
305M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1003
305M
          *this->schema_);
1004
305M
    }
1005
1006
    // optional .yb.PartitionSchemaPB partition_schema = 6;
1007
305M
    if (
has_partition_schema()305M
) {
1008
305M
      total_size += 1 +
1009
305M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1010
305M
          *this->partition_schema_);
1011
305M
    }
1012
1013
    // optional .yb.IndexInfoPB index_info = 8;
1014
305M
    if (has_index_info()) {
1015
68.4k
      total_size += 1 +
1016
68.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1017
68.4k
          *this->index_info_);
1018
68.4k
    }
1019
1020
    // optional uint32 schema_version = 5;
1021
305M
    if (
has_schema_version()305M
) {
1022
305M
      total_size += 1 +
1023
305M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
1024
305M
          this->schema_version());
1025
305M
    }
1026
1027
    // optional .yb.TableType table_type = 3 [default = DEFAULT_TABLE_TYPE];
1028
305M
    if (
has_table_type()305M
) {
1029
305M
      total_size += 1 +
1030
305M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->table_type());
1031
305M
    }
1032
1033
305M
  }
1034
305M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1035
305M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1036
305M
  _cached_size_ = cached_size;
1037
305M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1038
305M
  return total_size;
1039
305M
}
1040
1041
0
void TableInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
1042
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.TableInfoPB)
1043
0
  GOOGLE_DCHECK_NE(&from, this);
1044
0
  const TableInfoPB* source =
1045
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TableInfoPB>(
1046
0
          &from);
1047
0
  if (source == NULL) {
1048
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.TableInfoPB)
1049
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1050
0
  } else {
1051
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.TableInfoPB)
1052
0
    MergeFrom(*source);
1053
0
  }
1054
0
}
1055
1056
434k
void TableInfoPB::MergeFrom(const TableInfoPB& from) {
1057
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.TableInfoPB)
1058
434k
  GOOGLE_DCHECK_NE(&from, this);
1059
434k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1060
434k
  ::google::protobuf::uint32 cached_has_bits = 0;
1061
434k
  (void) cached_has_bits;
1062
1063
434k
  indexes_.MergeFrom(from.indexes_);
1064
434k
  deleted_cols_.MergeFrom(from.deleted_cols_);
1065
434k
  cached_has_bits = from._has_bits_[0];
1066
434k
  if (cached_has_bits & 255u) {
1067
434k
    if (cached_has_bits & 0x00000001u) {
1068
434k
      set_has_table_id();
1069
434k
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
1070
434k
    }
1071
434k
    if (cached_has_bits & 0x00000002u) {
1072
434k
      set_has_table_name();
1073
434k
      table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
1074
434k
    }
1075
434k
    if (cached_has_bits & 0x00000004u) {
1076
4.07k
      set_has_namespace_name();
1077
4.07k
      namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
1078
4.07k
    }
1079
434k
    if (
cached_has_bits & 0x00000008u434k
) {
1080
434k
      mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
1081
434k
    }
1082
434k
    if (
cached_has_bits & 0x00000010u434k
) {
1083
434k
      mutable_partition_schema()->::yb::PartitionSchemaPB::MergeFrom(from.partition_schema());
1084
434k
    }
1085
434k
    if (cached_has_bits & 0x00000020u) {
1086
36
      mutable_index_info()->::yb::IndexInfoPB::MergeFrom(from.index_info());
1087
36
    }
1088
434k
    if (cached_has_bits & 0x00000040u) {
1089
434k
      schema_version_ = from.schema_version_;
1090
434k
    }
1091
434k
    if (
cached_has_bits & 0x00000080u434k
) {
1092
434k
      table_type_ = from.table_type_;
1093
434k
    }
1094
434k
    _has_bits_[0] |= cached_has_bits;
1095
434k
  }
1096
434k
}
1097
1098
0
void TableInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
1099
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.TableInfoPB)
1100
0
  if (&from == this) return;
1101
0
  Clear();
1102
0
  MergeFrom(from);
1103
0
}
1104
1105
126
void TableInfoPB::CopyFrom(const TableInfoPB& from) {
1106
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.TableInfoPB)
1107
126
  if (&from == this) 
return0
;
1108
126
  Clear();
1109
126
  MergeFrom(from);
1110
126
}
1111
1112
306M
bool TableInfoPB::IsInitialized() const {
1113
306M
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) 
return false0
;
1114
306M
  if (has_schema()) {
1115
306M
    if (!this->schema_->IsInitialized()) 
return false0
;
1116
306M
  }
1117
306M
  if (has_partition_schema()) {
1118
306M
    if (!this->partition_schema_->IsInitialized()) 
return false0
;
1119
306M
  }
1120
306M
  if (has_index_info()) {
1121
68.5k
    if (!this->index_info_->IsInitialized()) 
return false0
;
1122
68.5k
  }
1123
306M
  return true;
1124
306M
}
1125
1126
0
void TableInfoPB::Swap(TableInfoPB* other) {
1127
0
  if (other == this) return;
1128
0
  InternalSwap(other);
1129
0
}
1130
0
void TableInfoPB::InternalSwap(TableInfoPB* other) {
1131
0
  using std::swap;
1132
0
  indexes_.InternalSwap(&other->indexes_);
1133
0
  deleted_cols_.InternalSwap(&other->deleted_cols_);
1134
0
  table_id_.Swap(&other->table_id_);
1135
0
  table_name_.Swap(&other->table_name_);
1136
0
  namespace_name_.Swap(&other->namespace_name_);
1137
0
  swap(schema_, other->schema_);
1138
0
  swap(partition_schema_, other->partition_schema_);
1139
0
  swap(index_info_, other->index_info_);
1140
0
  swap(schema_version_, other->schema_version_);
1141
0
  swap(table_type_, other->table_type_);
1142
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1143
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1144
0
  swap(_cached_size_, other->_cached_size_);
1145
0
}
1146
1147
2.66M
::google::protobuf::Metadata TableInfoPB::GetMetadata() const {
1148
2.66M
  protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
1149
2.66M
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages];
1150
2.66M
}
1151
1152
1153
// ===================================================================
1154
1155
26.8k
void KvStoreInfoPB::InitAsDefaultInstance() {
1156
26.8k
}
1157
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1158
const int KvStoreInfoPB::kKvStoreIdFieldNumber;
1159
const int KvStoreInfoPB::kRocksdbDirFieldNumber;
1160
const int KvStoreInfoPB::kRocksdbFilesFieldNumber;
1161
const int KvStoreInfoPB::kSnapshotFilesFieldNumber;
1162
const int KvStoreInfoPB::kTablesFieldNumber;
1163
const int KvStoreInfoPB::kLowerBoundKeyFieldNumber;
1164
const int KvStoreInfoPB::kUpperBoundKeyFieldNumber;
1165
const int KvStoreInfoPB::kHasBeenFullyCompactedFieldNumber;
1166
const int KvStoreInfoPB::kSnapshotSchedulesFieldNumber;
1167
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1168
1169
KvStoreInfoPB::KvStoreInfoPB()
1170
1.59M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1171
1.59M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1172
1.56M
    ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsKvStoreInfoPB();
1173
1.56M
  }
1174
1.59M
  SharedCtor();
1175
  // @@protoc_insertion_point(constructor:yb.tablet.KvStoreInfoPB)
1176
1.59M
}
1177
KvStoreInfoPB::KvStoreInfoPB(const KvStoreInfoPB& from)
1178
  : ::google::protobuf::Message(),
1179
      _internal_metadata_(NULL),
1180
      _has_bits_(from._has_bits_),
1181
      _cached_size_(0),
1182
      rocksdb_files_(from.rocksdb_files_),
1183
      snapshot_files_(from.snapshot_files_),
1184
      tables_(from.tables_),
1185
2
      snapshot_schedules_(from.snapshot_schedules_) {
1186
2
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1187
2
  kv_store_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1188
2
  if (from.has_kv_store_id()) {
1189
2
    kv_store_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kv_store_id_);
1190
2
  }
1191
2
  rocksdb_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1192
2
  if (from.has_rocksdb_dir()) {
1193
2
    rocksdb_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rocksdb_dir_);
1194
2
  }
1195
2
  lower_bound_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1196
2
  if (from.has_lower_bound_key()) {
1197
0
    lower_bound_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lower_bound_key_);
1198
0
  }
1199
2
  upper_bound_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1200
2
  if (from.has_upper_bound_key()) {
1201
0
    upper_bound_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.upper_bound_key_);
1202
0
  }
1203
2
  has_been_fully_compacted_ = from.has_been_fully_compacted_;
1204
  // @@protoc_insertion_point(copy_constructor:yb.tablet.KvStoreInfoPB)
1205
2
}
1206
1207
1.59M
void KvStoreInfoPB::SharedCtor() {
1208
1.59M
  _cached_size_ = 0;
1209
1.59M
  kv_store_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1210
1.59M
  rocksdb_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1211
1.59M
  lower_bound_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1212
1.59M
  upper_bound_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1213
1.59M
  has_been_fully_compacted_ = false;
1214
1.59M
}
1215
1216
1.56M
KvStoreInfoPB::~KvStoreInfoPB() {
1217
  // @@protoc_insertion_point(destructor:yb.tablet.KvStoreInfoPB)
1218
1.56M
  SharedDtor();
1219
1.56M
}
1220
1221
1.56M
void KvStoreInfoPB::SharedDtor() {
1222
1.56M
  kv_store_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1223
1.56M
  rocksdb_dir_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1224
1.56M
  lower_bound_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1225
1.56M
  upper_bound_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1226
1.56M
}
1227
1228
0
void KvStoreInfoPB::SetCachedSize(int size) const {
1229
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1230
0
  _cached_size_ = size;
1231
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1232
0
}
1233
0
const ::google::protobuf::Descriptor* KvStoreInfoPB::descriptor() {
1234
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
1235
0
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1236
0
}
1237
1238
0
const KvStoreInfoPB& KvStoreInfoPB::default_instance() {
1239
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsKvStoreInfoPB();
1240
0
  return *internal_default_instance();
1241
0
}
1242
1243
0
KvStoreInfoPB* KvStoreInfoPB::New(::google::protobuf::Arena* arena) const {
1244
0
  KvStoreInfoPB* n = new KvStoreInfoPB;
1245
0
  if (arena != NULL) {
1246
0
    arena->Own(n);
1247
0
  }
1248
0
  return n;
1249
0
}
1250
1251
0
void KvStoreInfoPB::Clear() {
1252
// @@protoc_insertion_point(message_clear_start:yb.tablet.KvStoreInfoPB)
1253
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1254
  // Prevent compiler warnings about cached_has_bits being unused
1255
0
  (void) cached_has_bits;
1256
1257
0
  rocksdb_files_.Clear();
1258
0
  snapshot_files_.Clear();
1259
0
  tables_.Clear();
1260
0
  snapshot_schedules_.Clear();
1261
0
  cached_has_bits = _has_bits_[0];
1262
0
  if (cached_has_bits & 15u) {
1263
0
    if (cached_has_bits & 0x00000001u) {
1264
0
      GOOGLE_DCHECK(!kv_store_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1265
0
      (*kv_store_id_.UnsafeRawStringPointer())->clear();
1266
0
    }
1267
0
    if (cached_has_bits & 0x00000002u) {
1268
0
      GOOGLE_DCHECK(!rocksdb_dir_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1269
0
      (*rocksdb_dir_.UnsafeRawStringPointer())->clear();
1270
0
    }
1271
0
    if (cached_has_bits & 0x00000004u) {
1272
0
      GOOGLE_DCHECK(!lower_bound_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1273
0
      (*lower_bound_key_.UnsafeRawStringPointer())->clear();
1274
0
    }
1275
0
    if (cached_has_bits & 0x00000008u) {
1276
0
      GOOGLE_DCHECK(!upper_bound_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1277
0
      (*upper_bound_key_.UnsafeRawStringPointer())->clear();
1278
0
    }
1279
0
  }
1280
0
  has_been_fully_compacted_ = false;
1281
0
  _has_bits_.Clear();
1282
0
  _internal_metadata_.Clear();
1283
0
}
1284
1285
bool KvStoreInfoPB::MergePartialFromCodedStream(
1286
4.40k
    ::google::protobuf::io::CodedInputStream* input) {
1287
25.5k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1288
4.40k
  ::google::protobuf::uint32 tag;
1289
  // @@protoc_insertion_point(parse_start:yb.tablet.KvStoreInfoPB)
1290
29.8k
  for (;;) {
1291
29.8k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1292
29.8k
    tag = p.first;
1293
29.8k
    if (!p.second) 
goto handle_unusual4.39k
;
1294
25.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1295
      // required bytes kv_store_id = 1;
1296
4.39k
      case 1: {
1297
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1298
4.39k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1299
4.39k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1300
4.39k
                input, this->mutable_kv_store_id()));
1301
18.4E
        } else {
1302
18.4E
          goto handle_unusual;
1303
18.4E
        }
1304
4.39k
        break;
1305
4.39k
      }
1306
1307
      // optional string rocksdb_dir = 2;
1308
4.39k
      case 2: {
1309
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1310
4.39k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1311
4.39k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1312
4.39k
                input, this->mutable_rocksdb_dir()));
1313
4.39k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1314
4.39k
            this->rocksdb_dir().data(), static_cast<int>(this->rocksdb_dir().length()),
1315
4.39k
            ::google::protobuf::internal::WireFormat::PARSE,
1316
4.39k
            "yb.tablet.KvStoreInfoPB.rocksdb_dir");
1317
4.39k
        } else {
1318
0
          goto handle_unusual;
1319
0
        }
1320
4.39k
        break;
1321
4.39k
      }
1322
1323
      // repeated .yb.tablet.FilePB rocksdb_files = 3;
1324
6.58k
      case 3: {
1325
6.58k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1326
6.58k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1327
6.58k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rocksdb_files()));
1328
6.58k
        } else {
1329
0
          goto handle_unusual;
1330
0
        }
1331
6.58k
        break;
1332
6.58k
      }
1333
1334
      // repeated .yb.tablet.SnapshotFilePB snapshot_files = 4;
1335
6.58k
      case 4: {
1336
60
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1337
60
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1338
60
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_snapshot_files()));
1339
60
        } else {
1340
0
          goto handle_unusual;
1341
0
        }
1342
60
        break;
1343
60
      }
1344
1345
      // repeated .yb.tablet.TableInfoPB tables = 5;
1346
5.65k
      case 5: {
1347
5.65k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1348
5.65k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1349
5.64k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tables()));
1350
5.64k
        } else {
1351
3
          goto handle_unusual;
1352
3
        }
1353
5.64k
        break;
1354
5.65k
      }
1355
1356
      // optional bytes lower_bound_key = 6;
1357
5.64k
      case 6: {
1358
11
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1359
11
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1360
11
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1361
11
                input, this->mutable_lower_bound_key()));
1362
11
        } else {
1363
0
          goto handle_unusual;
1364
0
        }
1365
11
        break;
1366
11
      }
1367
1368
      // optional bytes upper_bound_key = 7;
1369
11
      case 7: {
1370
10
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1371
10
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1372
10
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1373
10
                input, this->mutable_upper_bound_key()));
1374
10
        } else {
1375
0
          goto handle_unusual;
1376
0
        }
1377
10
        break;
1378
10
      }
1379
1380
      // optional bool has_been_fully_compacted = 8;
1381
4.39k
      case 8: {
1382
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1383
4.40k
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
1384
4.40k
          set_has_has_been_fully_compacted();
1385
4.40k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1386
4.40k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1387
4.40k
                 input, &has_been_fully_compacted_)));
1388
18.4E
        } else {
1389
18.4E
          goto handle_unusual;
1390
18.4E
        }
1391
4.40k
        break;
1392
4.39k
      }
1393
1394
      // repeated bytes snapshot_schedules = 9;
1395
4.40k
      case 9: {
1396
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1397
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
1398
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1399
0
                input, this->add_snapshot_schedules()));
1400
0
        } else {
1401
0
          goto handle_unusual;
1402
0
        }
1403
0
        break;
1404
0
      }
1405
1406
0
      default: {
1407
4.39k
      handle_unusual:
1408
4.39k
        if (tag == 0) {
1409
4.39k
          goto success;
1410
4.39k
        }
1411
2
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1412
2
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1413
2
        break;
1414
2
      }
1415
25.4k
    }
1416
25.4k
  }
1417
4.39k
success:
1418
  // @@protoc_insertion_point(parse_success:yb.tablet.KvStoreInfoPB)
1419
4.39k
  return true;
1420
0
failure:
1421
  // @@protoc_insertion_point(parse_failure:yb.tablet.KvStoreInfoPB)
1422
0
  return false;
1423
4.40k
#undef DO_
1424
4.40k
}
1425
1426
void KvStoreInfoPB::SerializeWithCachedSizes(
1427
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1428
  // @@protoc_insertion_point(serialize_start:yb.tablet.KvStoreInfoPB)
1429
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1430
0
  (void) cached_has_bits;
1431
1432
0
  cached_has_bits = _has_bits_[0];
1433
  // required bytes kv_store_id = 1;
1434
0
  if (cached_has_bits & 0x00000001u) {
1435
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1436
0
      1, this->kv_store_id(), output);
1437
0
  }
1438
1439
  // optional string rocksdb_dir = 2;
1440
0
  if (cached_has_bits & 0x00000002u) {
1441
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1442
0
      this->rocksdb_dir().data(), static_cast<int>(this->rocksdb_dir().length()),
1443
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1444
0
      "yb.tablet.KvStoreInfoPB.rocksdb_dir");
1445
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1446
0
      2, this->rocksdb_dir(), output);
1447
0
  }
1448
1449
  // repeated .yb.tablet.FilePB rocksdb_files = 3;
1450
0
  for (unsigned int i = 0,
1451
0
      n = static_cast<unsigned int>(this->rocksdb_files_size()); i < n; i++) {
1452
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1453
0
      3, this->rocksdb_files(static_cast<int>(i)), output);
1454
0
  }
1455
1456
  // repeated .yb.tablet.SnapshotFilePB snapshot_files = 4;
1457
0
  for (unsigned int i = 0,
1458
0
      n = static_cast<unsigned int>(this->snapshot_files_size()); i < n; i++) {
1459
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1460
0
      4, this->snapshot_files(static_cast<int>(i)), output);
1461
0
  }
1462
1463
  // repeated .yb.tablet.TableInfoPB tables = 5;
1464
0
  for (unsigned int i = 0,
1465
0
      n = static_cast<unsigned int>(this->tables_size()); i < n; i++) {
1466
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1467
0
      5, this->tables(static_cast<int>(i)), output);
1468
0
  }
1469
1470
  // optional bytes lower_bound_key = 6;
1471
0
  if (cached_has_bits & 0x00000004u) {
1472
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1473
0
      6, this->lower_bound_key(), output);
1474
0
  }
1475
1476
  // optional bytes upper_bound_key = 7;
1477
0
  if (cached_has_bits & 0x00000008u) {
1478
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1479
0
      7, this->upper_bound_key(), output);
1480
0
  }
1481
1482
  // optional bool has_been_fully_compacted = 8;
1483
0
  if (cached_has_bits & 0x00000010u) {
1484
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->has_been_fully_compacted(), output);
1485
0
  }
1486
1487
  // repeated bytes snapshot_schedules = 9;
1488
0
  for (int i = 0, n = this->snapshot_schedules_size(); i < n; i++) {
1489
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
1490
0
      9, this->snapshot_schedules(i), output);
1491
0
  }
1492
1493
0
  if (_internal_metadata_.have_unknown_fields()) {
1494
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1495
0
        _internal_metadata_.unknown_fields(), output);
1496
0
  }
1497
  // @@protoc_insertion_point(serialize_end:yb.tablet.KvStoreInfoPB)
1498
0
}
1499
1500
::google::protobuf::uint8* KvStoreInfoPB::InternalSerializeWithCachedSizesToArray(
1501
1.56M
    bool deterministic, ::google::protobuf::uint8* target) const {
1502
1.56M
  (void)deterministic; // Unused
1503
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.KvStoreInfoPB)
1504
1.56M
  ::google::protobuf::uint32 cached_has_bits = 0;
1505
1.56M
  (void) cached_has_bits;
1506
1507
1.56M
  cached_has_bits = _has_bits_[0];
1508
  // required bytes kv_store_id = 1;
1509
1.56M
  if (
cached_has_bits & 0x00000001u1.56M
) {
1510
1.56M
    target =
1511
1.56M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1512
1.56M
        1, this->kv_store_id(), target);
1513
1.56M
  }
1514
1515
  // optional string rocksdb_dir = 2;
1516
1.56M
  if (
cached_has_bits & 0x00000002u1.56M
) {
1517
1.56M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1518
1.56M
      this->rocksdb_dir().data(), static_cast<int>(this->rocksdb_dir().length()),
1519
1.56M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1520
1.56M
      "yb.tablet.KvStoreInfoPB.rocksdb_dir");
1521
1.56M
    target =
1522
1.56M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1523
1.56M
        2, this->rocksdb_dir(), target);
1524
1.56M
  }
1525
1526
  // repeated .yb.tablet.FilePB rocksdb_files = 3;
1527
1.56M
  for (unsigned int i = 0,
1528
1.57M
      n = static_cast<unsigned int>(this->rocksdb_files_size()); i < n; 
i++13.8k
) {
1529
13.8k
    target = ::google::protobuf::internal::WireFormatLite::
1530
13.8k
      InternalWriteMessageToArray(
1531
13.8k
        3, this->rocksdb_files(static_cast<int>(i)), deterministic, target);
1532
13.8k
  }
1533
1534
  // repeated .yb.tablet.SnapshotFilePB snapshot_files = 4;
1535
1.56M
  for (unsigned int i = 0,
1536
1.56M
      n = static_cast<unsigned int>(this->snapshot_files_size()); i < n; 
i++60
) {
1537
60
    target = ::google::protobuf::internal::WireFormatLite::
1538
60
      InternalWriteMessageToArray(
1539
60
        4, this->snapshot_files(static_cast<int>(i)), deterministic, target);
1540
60
  }
1541
1542
  // repeated .yb.tablet.TableInfoPB tables = 5;
1543
1.56M
  for (unsigned int i = 0,
1544
303M
      n = static_cast<unsigned int>(this->tables_size()); i < n; 
i++301M
) {
1545
301M
    target = ::google::protobuf::internal::WireFormatLite::
1546
301M
      InternalWriteMessageToArray(
1547
301M
        5, this->tables(static_cast<int>(i)), deterministic, target);
1548
301M
  }
1549
1550
  // optional bytes lower_bound_key = 6;
1551
1.56M
  if (cached_has_bits & 0x00000004u) {
1552
364
    target =
1553
364
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1554
364
        6, this->lower_bound_key(), target);
1555
364
  }
1556
1557
  // optional bytes upper_bound_key = 7;
1558
1.56M
  if (cached_has_bits & 0x00000008u) {
1559
514
    target =
1560
514
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1561
514
        7, this->upper_bound_key(), target);
1562
514
  }
1563
1564
  // optional bool has_been_fully_compacted = 8;
1565
1.56M
  if (
cached_has_bits & 0x00000010u1.56M
) {
1566
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->has_been_fully_compacted(), target);
1567
1.56M
  }
1568
1569
  // repeated bytes snapshot_schedules = 9;
1570
1.56M
  for (int i = 0, n = this->snapshot_schedules_size(); i < n; 
i++327
) {
1571
327
    target = ::google::protobuf::internal::WireFormatLite::
1572
327
      WriteBytesToArray(9, this->snapshot_schedules(i), target);
1573
327
  }
1574
1575
1.56M
  if (_internal_metadata_.have_unknown_fields()) {
1576
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1577
0
        _internal_metadata_.unknown_fields(), target);
1578
0
  }
1579
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.KvStoreInfoPB)
1580
1.56M
  return target;
1581
1.56M
}
1582
1583
1.56M
size_t KvStoreInfoPB::ByteSizeLong() const {
1584
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.KvStoreInfoPB)
1585
1.56M
  size_t total_size = 0;
1586
1587
1.56M
  if (_internal_metadata_.have_unknown_fields()) {
1588
0
    total_size +=
1589
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1590
0
        _internal_metadata_.unknown_fields());
1591
0
  }
1592
  // required bytes kv_store_id = 1;
1593
1.56M
  if (has_kv_store_id()) {
1594
1.56M
    total_size += 1 +
1595
1.56M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1596
1.56M
        this->kv_store_id());
1597
1.56M
  }
1598
  // repeated .yb.tablet.FilePB rocksdb_files = 3;
1599
1.56M
  {
1600
1.56M
    unsigned int count = static_cast<unsigned int>(this->rocksdb_files_size());
1601
1.56M
    total_size += 1UL * count;
1602
1.58M
    for (unsigned int i = 0; i < count; 
i++20.4k
) {
1603
20.4k
      total_size +=
1604
20.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1605
20.4k
          this->rocksdb_files(static_cast<int>(i)));
1606
20.4k
    }
1607
1.56M
  }
1608
1609
  // repeated .yb.tablet.SnapshotFilePB snapshot_files = 4;
1610
1.56M
  {
1611
1.56M
    unsigned int count = static_cast<unsigned int>(this->snapshot_files_size());
1612
1.56M
    total_size += 1UL * count;
1613
1.56M
    for (unsigned int i = 0; i < count; 
i++120
) {
1614
120
      total_size +=
1615
120
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1616
120
          this->snapshot_files(static_cast<int>(i)));
1617
120
    }
1618
1.56M
  }
1619
1620
  // repeated .yb.tablet.TableInfoPB tables = 5;
1621
1.56M
  {
1622
1.56M
    unsigned int count = static_cast<unsigned int>(this->tables_size());
1623
1.56M
    total_size += 1UL * count;
1624
303M
    for (unsigned int i = 0; i < count; 
i++301M
) {
1625
301M
      total_size +=
1626
301M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1627
301M
          this->tables(static_cast<int>(i)));
1628
301M
    }
1629
1.56M
  }
1630
1631
  // repeated bytes snapshot_schedules = 9;
1632
1.56M
  total_size += 1 *
1633
1.56M
      ::google::protobuf::internal::FromIntSize(this->snapshot_schedules_size());
1634
1.56M
  for (int i = 0, n = this->snapshot_schedules_size(); i < n; 
i++326
) {
1635
326
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1636
326
      this->snapshot_schedules(i));
1637
326
  }
1638
1639
1.56M
  if (_has_bits_[0 / 32] & 30u) {
1640
    // optional string rocksdb_dir = 2;
1641
1.56M
    if (
has_rocksdb_dir()1.56M
) {
1642
1.56M
      total_size += 1 +
1643
1.56M
        ::google::protobuf::internal::WireFormatLite::StringSize(
1644
1.56M
          this->rocksdb_dir());
1645
1.56M
    }
1646
1647
    // optional bytes lower_bound_key = 6;
1648
1.56M
    if (has_lower_bound_key()) {
1649
365
      total_size += 1 +
1650
365
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1651
365
          this->lower_bound_key());
1652
365
    }
1653
1654
    // optional bytes upper_bound_key = 7;
1655
1.56M
    if (has_upper_bound_key()) {
1656
514
      total_size += 1 +
1657
514
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1658
514
          this->upper_bound_key());
1659
514
    }
1660
1661
    // optional bool has_been_fully_compacted = 8;
1662
1.56M
    if (has_has_been_fully_compacted()) {
1663
1.56M
      total_size += 1 + 1;
1664
1.56M
    }
1665
1666
1.56M
  }
1667
1.56M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1668
1.56M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1669
1.56M
  _cached_size_ = cached_size;
1670
1.56M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1671
1.56M
  return total_size;
1672
1.56M
}
1673
1674
0
void KvStoreInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
1675
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.KvStoreInfoPB)
1676
0
  GOOGLE_DCHECK_NE(&from, this);
1677
0
  const KvStoreInfoPB* source =
1678
0
      ::google::protobuf::internal::DynamicCastToGenerated<const KvStoreInfoPB>(
1679
0
          &from);
1680
0
  if (source == NULL) {
1681
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.KvStoreInfoPB)
1682
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1683
0
  } else {
1684
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.KvStoreInfoPB)
1685
0
    MergeFrom(*source);
1686
0
  }
1687
0
}
1688
1689
4.05k
void KvStoreInfoPB::MergeFrom(const KvStoreInfoPB& from) {
1690
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.KvStoreInfoPB)
1691
4.05k
  GOOGLE_DCHECK_NE(&from, this);
1692
4.05k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1693
4.05k
  ::google::protobuf::uint32 cached_has_bits = 0;
1694
4.05k
  (void) cached_has_bits;
1695
1696
4.05k
  rocksdb_files_.MergeFrom(from.rocksdb_files_);
1697
4.05k
  snapshot_files_.MergeFrom(from.snapshot_files_);
1698
4.05k
  tables_.MergeFrom(from.tables_);
1699
4.05k
  snapshot_schedules_.MergeFrom(from.snapshot_schedules_);
1700
4.05k
  cached_has_bits = from._has_bits_[0];
1701
4.05k
  if (cached_has_bits & 31u) {
1702
4.05k
    if (cached_has_bits & 0x00000001u) {
1703
4.05k
      set_has_kv_store_id();
1704
4.05k
      kv_store_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kv_store_id_);
1705
4.05k
    }
1706
4.05k
    if (cached_has_bits & 0x00000002u) {
1707
4.05k
      set_has_rocksdb_dir();
1708
4.05k
      rocksdb_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rocksdb_dir_);
1709
4.05k
    }
1710
4.05k
    if (cached_has_bits & 0x00000004u) {
1711
3
      set_has_lower_bound_key();
1712
3
      lower_bound_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lower_bound_key_);
1713
3
    }
1714
4.05k
    if (cached_has_bits & 0x00000008u) {
1715
1
      set_has_upper_bound_key();
1716
1
      upper_bound_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.upper_bound_key_);
1717
1
    }
1718
4.05k
    if (
cached_has_bits & 0x00000010u4.05k
) {
1719
4.05k
      has_been_fully_compacted_ = from.has_been_fully_compacted_;
1720
4.05k
    }
1721
4.05k
    _has_bits_[0] |= cached_has_bits;
1722
4.05k
  }
1723
4.05k
}
1724
1725
0
void KvStoreInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
1726
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.KvStoreInfoPB)
1727
0
  if (&from == this) return;
1728
0
  Clear();
1729
0
  MergeFrom(from);
1730
0
}
1731
1732
0
void KvStoreInfoPB::CopyFrom(const KvStoreInfoPB& from) {
1733
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.KvStoreInfoPB)
1734
0
  if (&from == this) return;
1735
0
  Clear();
1736
0
  MergeFrom(from);
1737
0
}
1738
1739
1.56M
bool KvStoreInfoPB::IsInitialized() const {
1740
1.56M
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) 
return false0
;
1741
1.56M
  if (!::google::protobuf::internal::AllAreInitialized(this->tables())) 
return false0
;
1742
1.56M
  return true;
1743
1.56M
}
1744
1745
0
void KvStoreInfoPB::Swap(KvStoreInfoPB* other) {
1746
0
  if (other == this) return;
1747
0
  InternalSwap(other);
1748
0
}
1749
0
void KvStoreInfoPB::InternalSwap(KvStoreInfoPB* other) {
1750
0
  using std::swap;
1751
0
  rocksdb_files_.InternalSwap(&other->rocksdb_files_);
1752
0
  snapshot_files_.InternalSwap(&other->snapshot_files_);
1753
0
  tables_.InternalSwap(&other->tables_);
1754
0
  snapshot_schedules_.InternalSwap(&other->snapshot_schedules_);
1755
0
  kv_store_id_.Swap(&other->kv_store_id_);
1756
0
  rocksdb_dir_.Swap(&other->rocksdb_dir_);
1757
0
  lower_bound_key_.Swap(&other->lower_bound_key_);
1758
0
  upper_bound_key_.Swap(&other->upper_bound_key_);
1759
0
  swap(has_been_fully_compacted_, other->has_been_fully_compacted_);
1760
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1761
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1762
0
  swap(_cached_size_, other->_cached_size_);
1763
0
}
1764
1765
4.05k
::google::protobuf::Metadata KvStoreInfoPB::GetMetadata() const {
1766
4.05k
  protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
1767
4.05k
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages];
1768
4.05k
}
1769
1770
1771
// ===================================================================
1772
1773
26.8k
void RaftGroupReplicaSuperBlockPB::InitAsDefaultInstance() {
1774
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>(
1775
26.8k
      ::yb::PartitionPB::internal_default_instance());
1776
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->obsolete_schema_ = const_cast< ::yb::SchemaPB*>(
1777
26.8k
      ::yb::SchemaPB::internal_default_instance());
1778
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->obsolete_partition_schema_ = const_cast< ::yb::PartitionSchemaPB*>(
1779
26.8k
      ::yb::PartitionSchemaPB::internal_default_instance());
1780
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->tombstone_last_logged_opid_ = const_cast< ::yb::OpIdPB*>(
1781
26.8k
      ::yb::OpIdPB::internal_default_instance());
1782
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->kv_store_ = const_cast< ::yb::tablet::KvStoreInfoPB*>(
1783
26.8k
      ::yb::tablet::KvStoreInfoPB::internal_default_instance());
1784
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->obsolete_index_info_ = const_cast< ::yb::IndexInfoPB*>(
1785
26.8k
      ::yb::IndexInfoPB::internal_default_instance());
1786
26.8k
  ::yb::tablet::_RaftGroupReplicaSuperBlockPB_default_instance_._instance.get_mutable()->split_op_id_ = const_cast< ::yb::OpIdPB*>(
1787
26.8k
      ::yb::OpIdPB::internal_default_instance());
1788
26.8k
}
1789
0
void RaftGroupReplicaSuperBlockPB::clear_partition() {
1790
0
  if (partition_ != NULL) partition_->Clear();
1791
0
  clear_has_partition();
1792
0
}
1793
0
void RaftGroupReplicaSuperBlockPB::clear_obsolete_schema() {
1794
0
  if (obsolete_schema_ != NULL) obsolete_schema_->Clear();
1795
0
  clear_has_obsolete_schema();
1796
0
}
1797
0
void RaftGroupReplicaSuperBlockPB::clear_obsolete_partition_schema() {
1798
0
  if (obsolete_partition_schema_ != NULL) obsolete_partition_schema_->Clear();
1799
0
  clear_has_obsolete_partition_schema();
1800
0
}
1801
0
void RaftGroupReplicaSuperBlockPB::clear_tombstone_last_logged_opid() {
1802
0
  if (tombstone_last_logged_opid_ != NULL) tombstone_last_logged_opid_->Clear();
1803
0
  clear_has_tombstone_last_logged_opid();
1804
0
}
1805
0
void RaftGroupReplicaSuperBlockPB::clear_obsolete_deleted_cols() {
1806
0
  obsolete_deleted_cols_.Clear();
1807
0
}
1808
0
void RaftGroupReplicaSuperBlockPB::clear_obsolete_indexes() {
1809
0
  obsolete_indexes_.Clear();
1810
0
}
1811
0
void RaftGroupReplicaSuperBlockPB::clear_obsolete_index_info() {
1812
0
  if (obsolete_index_info_ != NULL) obsolete_index_info_->Clear();
1813
0
  clear_has_obsolete_index_info();
1814
0
}
1815
0
void RaftGroupReplicaSuperBlockPB::clear_split_op_id() {
1816
0
  if (split_op_id_ != NULL) split_op_id_->Clear();
1817
0
  clear_has_split_op_id();
1818
0
}
1819
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1820
const int RaftGroupReplicaSuperBlockPB::kPrimaryTableIdFieldNumber;
1821
const int RaftGroupReplicaSuperBlockPB::kRaftGroupIdFieldNumber;
1822
const int RaftGroupReplicaSuperBlockPB::kPartitionFieldNumber;
1823
const int RaftGroupReplicaSuperBlockPB::kOBSOLETETableNameFieldNumber;
1824
const int RaftGroupReplicaSuperBlockPB::kOBSOLETETableTypeFieldNumber;
1825
const int RaftGroupReplicaSuperBlockPB::kOBSOLETESchemaFieldNumber;
1826
const int RaftGroupReplicaSuperBlockPB::kOBSOLETESchemaVersionFieldNumber;
1827
const int RaftGroupReplicaSuperBlockPB::kOBSOLETEPartitionSchemaFieldNumber;
1828
const int RaftGroupReplicaSuperBlockPB::kTabletDataStateFieldNumber;
1829
const int RaftGroupReplicaSuperBlockPB::kWalDirFieldNumber;
1830
const int RaftGroupReplicaSuperBlockPB::kTombstoneLastLoggedOpidFieldNumber;
1831
const int RaftGroupReplicaSuperBlockPB::kKvStoreFieldNumber;
1832
const int RaftGroupReplicaSuperBlockPB::kOBSOLETERocksdbDirFieldNumber;
1833
const int RaftGroupReplicaSuperBlockPB::kOBSOLETERocksdbFilesFieldNumber;
1834
const int RaftGroupReplicaSuperBlockPB::kOBSOLETESnapshotFilesFieldNumber;
1835
const int RaftGroupReplicaSuperBlockPB::kOBSOLETEDeletedColsFieldNumber;
1836
const int RaftGroupReplicaSuperBlockPB::kOBSOLETEIndexesFieldNumber;
1837
const int RaftGroupReplicaSuperBlockPB::kOBSOLETEIndexInfoFieldNumber;
1838
const int RaftGroupReplicaSuperBlockPB::kOBSOLETETablesFieldNumber;
1839
const int RaftGroupReplicaSuperBlockPB::kColocatedFieldNumber;
1840
const int RaftGroupReplicaSuperBlockPB::kCdcMinReplicatedIndexFieldNumber;
1841
const int RaftGroupReplicaSuperBlockPB::kIsUnderTwodcReplicationFieldNumber;
1842
const int RaftGroupReplicaSuperBlockPB::kHiddenFieldNumber;
1843
const int RaftGroupReplicaSuperBlockPB::kRestorationHybridTimeFieldNumber;
1844
const int RaftGroupReplicaSuperBlockPB::kSplitOpIdFieldNumber;
1845
const int RaftGroupReplicaSuperBlockPB::kSplitChildTabletIdsFieldNumber;
1846
const int RaftGroupReplicaSuperBlockPB::kActiveRestorationsFieldNumber;
1847
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1848
1849
RaftGroupReplicaSuperBlockPB::RaftGroupReplicaSuperBlockPB()
1850
3.16M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1851
3.16M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1852
3.13M
    ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsRaftGroupReplicaSuperBlockPB();
1853
3.13M
  }
1854
3.16M
  SharedCtor();
1855
  // @@protoc_insertion_point(constructor:yb.tablet.RaftGroupReplicaSuperBlockPB)
1856
3.16M
}
1857
RaftGroupReplicaSuperBlockPB::RaftGroupReplicaSuperBlockPB(const RaftGroupReplicaSuperBlockPB& from)
1858
  : ::google::protobuf::Message(),
1859
      _internal_metadata_(NULL),
1860
      _has_bits_(from._has_bits_),
1861
      _cached_size_(0),
1862
      obsolete_rocksdb_files_(from.obsolete_rocksdb_files_),
1863
      obsolete_deleted_cols_(from.obsolete_deleted_cols_),
1864
      obsolete_snapshot_files_(from.obsolete_snapshot_files_),
1865
      obsolete_indexes_(from.obsolete_indexes_),
1866
      obsolete_tables_(from.obsolete_tables_),
1867
      split_child_tablet_ids_(from.split_child_tablet_ids_),
1868
2
      active_restorations_(from.active_restorations_) {
1869
2
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1870
2
  primary_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1871
2
  if (from.has_primary_table_id()) {
1872
2
    primary_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_table_id_);
1873
2
  }
1874
2
  raft_group_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1875
2
  if (from.has_raft_group_id()) {
1876
2
    raft_group_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raft_group_id_);
1877
2
  }
1878
2
  obsolete_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1879
2
  if (from.has_obsolete_table_name()) {
1880
0
    obsolete_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_table_name_);
1881
0
  }
1882
2
  obsolete_rocksdb_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1883
2
  if (from.has_obsolete_rocksdb_dir()) {
1884
0
    obsolete_rocksdb_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_rocksdb_dir_);
1885
0
  }
1886
2
  wal_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1887
2
  if (from.has_wal_dir()) {
1888
2
    wal_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wal_dir_);
1889
2
  }
1890
2
  if (from.has_obsolete_schema()) {
1891
0
    obsolete_schema_ = new ::yb::SchemaPB(*from.obsolete_schema_);
1892
2
  } else {
1893
2
    obsolete_schema_ = NULL;
1894
2
  }
1895
2
  if (from.has_tombstone_last_logged_opid()) {
1896
0
    tombstone_last_logged_opid_ = new ::yb::OpIdPB(*from.tombstone_last_logged_opid_);
1897
2
  } else {
1898
2
    tombstone_last_logged_opid_ = NULL;
1899
2
  }
1900
2
  if (from.has_partition()) {
1901
2
    partition_ = new ::yb::PartitionPB(*from.partition_);
1902
2
  } else {
1903
0
    partition_ = NULL;
1904
0
  }
1905
2
  if (from.has_obsolete_partition_schema()) {
1906
0
    obsolete_partition_schema_ = new ::yb::PartitionSchemaPB(*from.obsolete_partition_schema_);
1907
2
  } else {
1908
2
    obsolete_partition_schema_ = NULL;
1909
2
  }
1910
2
  if (from.has_obsolete_index_info()) {
1911
0
    obsolete_index_info_ = new ::yb::IndexInfoPB(*from.obsolete_index_info_);
1912
2
  } else {
1913
2
    obsolete_index_info_ = NULL;
1914
2
  }
1915
2
  if (from.has_kv_store()) {
1916
2
    kv_store_ = new ::yb::tablet::KvStoreInfoPB(*from.kv_store_);
1917
2
  } else {
1918
0
    kv_store_ = NULL;
1919
0
  }
1920
2
  if (from.has_split_op_id()) {
1921
0
    split_op_id_ = new ::yb::OpIdPB(*from.split_op_id_);
1922
2
  } else {
1923
2
    split_op_id_ = NULL;
1924
2
  }
1925
2
  ::memcpy(&obsolete_schema_version_, &from.obsolete_schema_version_,
1926
2
    static_cast<size_t>(reinterpret_cast<char*>(&cdc_min_replicated_index_) -
1927
2
    reinterpret_cast<char*>(&obsolete_schema_version_)) + sizeof(cdc_min_replicated_index_));
1928
  // @@protoc_insertion_point(copy_constructor:yb.tablet.RaftGroupReplicaSuperBlockPB)
1929
2
}
1930
1931
3.16M
void RaftGroupReplicaSuperBlockPB::SharedCtor() {
1932
3.16M
  _cached_size_ = 0;
1933
3.16M
  primary_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1934
3.16M
  raft_group_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1935
3.16M
  obsolete_table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1936
3.16M
  obsolete_rocksdb_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1937
3.16M
  wal_dir_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1938
3.16M
  ::memset(&obsolete_schema_, 0, static_cast<size_t>(
1939
3.16M
      reinterpret_cast<char*>(&restoration_hybrid_time_) -
1940
3.16M
      reinterpret_cast<char*>(&obsolete_schema_)) + sizeof(restoration_hybrid_time_));
1941
3.16M
  tablet_data_state_ = 999;
1942
3.16M
  obsolete_table_type_ = 2;
1943
3.16M
  cdc_min_replicated_index_ = GOOGLE_LONGLONG(9223372036854775807);
1944
3.16M
}
1945
1946
3.13M
RaftGroupReplicaSuperBlockPB::~RaftGroupReplicaSuperBlockPB() {
1947
  // @@protoc_insertion_point(destructor:yb.tablet.RaftGroupReplicaSuperBlockPB)
1948
3.13M
  SharedDtor();
1949
3.13M
}
1950
1951
3.13M
void RaftGroupReplicaSuperBlockPB::SharedDtor() {
1952
3.13M
  primary_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1953
3.13M
  raft_group_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1954
3.13M
  obsolete_table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1955
3.13M
  obsolete_rocksdb_dir_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1956
3.13M
  wal_dir_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1957
3.13M
  if (this != internal_default_instance()) 
delete obsolete_schema_3.13M
;
1958
3.13M
  if (this != internal_default_instance()) 
delete tombstone_last_logged_opid_3.13M
;
1959
3.13M
  if (this != internal_default_instance()) 
delete partition_3.13M
;
1960
3.13M
  if (
this != internal_default_instance()3.13M
) delete obsolete_partition_schema_;
1961
3.13M
  if (
this != internal_default_instance()3.13M
) delete obsolete_index_info_;
1962
3.13M
  if (
this != internal_default_instance()3.13M
) delete kv_store_;
1963
3.13M
  if (
this != internal_default_instance()3.13M
) delete split_op_id_;
1964
3.13M
}
1965
1966
0
void RaftGroupReplicaSuperBlockPB::SetCachedSize(int size) const {
1967
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1968
0
  _cached_size_ = size;
1969
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1970
0
}
1971
0
const ::google::protobuf::Descriptor* RaftGroupReplicaSuperBlockPB::descriptor() {
1972
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
1973
0
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1974
0
}
1975
1976
0
const RaftGroupReplicaSuperBlockPB& RaftGroupReplicaSuperBlockPB::default_instance() {
1977
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsRaftGroupReplicaSuperBlockPB();
1978
0
  return *internal_default_instance();
1979
0
}
1980
1981
0
RaftGroupReplicaSuperBlockPB* RaftGroupReplicaSuperBlockPB::New(::google::protobuf::Arena* arena) const {
1982
0
  RaftGroupReplicaSuperBlockPB* n = new RaftGroupReplicaSuperBlockPB;
1983
0
  if (arena != NULL) {
1984
0
    arena->Own(n);
1985
0
  }
1986
0
  return n;
1987
0
}
1988
1989
6.42k
void RaftGroupReplicaSuperBlockPB::Clear() {
1990
// @@protoc_insertion_point(message_clear_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
1991
6.42k
  ::google::protobuf::uint32 cached_has_bits = 0;
1992
  // Prevent compiler warnings about cached_has_bits being unused
1993
6.42k
  (void) cached_has_bits;
1994
1995
6.42k
  obsolete_rocksdb_files_.Clear();
1996
6.42k
  obsolete_deleted_cols_.Clear();
1997
6.42k
  obsolete_snapshot_files_.Clear();
1998
6.42k
  obsolete_indexes_.Clear();
1999
6.42k
  obsolete_tables_.Clear();
2000
6.42k
  split_child_tablet_ids_.Clear();
2001
6.42k
  active_restorations_.Clear();
2002
6.42k
  cached_has_bits = _has_bits_[0];
2003
6.42k
  if (cached_has_bits & 255u) {
2004
0
    if (cached_has_bits & 0x00000001u) {
2005
0
      GOOGLE_DCHECK(!primary_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2006
0
      (*primary_table_id_.UnsafeRawStringPointer())->clear();
2007
0
    }
2008
0
    if (cached_has_bits & 0x00000002u) {
2009
0
      GOOGLE_DCHECK(!raft_group_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2010
0
      (*raft_group_id_.UnsafeRawStringPointer())->clear();
2011
0
    }
2012
0
    if (cached_has_bits & 0x00000004u) {
2013
0
      GOOGLE_DCHECK(!obsolete_table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2014
0
      (*obsolete_table_name_.UnsafeRawStringPointer())->clear();
2015
0
    }
2016
0
    if (cached_has_bits & 0x00000008u) {
2017
0
      GOOGLE_DCHECK(!obsolete_rocksdb_dir_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2018
0
      (*obsolete_rocksdb_dir_.UnsafeRawStringPointer())->clear();
2019
0
    }
2020
0
    if (cached_has_bits & 0x00000010u) {
2021
0
      GOOGLE_DCHECK(!wal_dir_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2022
0
      (*wal_dir_.UnsafeRawStringPointer())->clear();
2023
0
    }
2024
0
    if (cached_has_bits & 0x00000020u) {
2025
0
      GOOGLE_DCHECK(obsolete_schema_ != NULL);
2026
0
      obsolete_schema_->Clear();
2027
0
    }
2028
0
    if (cached_has_bits & 0x00000040u) {
2029
0
      GOOGLE_DCHECK(tombstone_last_logged_opid_ != NULL);
2030
0
      tombstone_last_logged_opid_->Clear();
2031
0
    }
2032
0
    if (cached_has_bits & 0x00000080u) {
2033
0
      GOOGLE_DCHECK(partition_ != NULL);
2034
0
      partition_->Clear();
2035
0
    }
2036
0
  }
2037
6.42k
  if (cached_has_bits & 3840u) {
2038
0
    if (cached_has_bits & 0x00000100u) {
2039
0
      GOOGLE_DCHECK(obsolete_partition_schema_ != NULL);
2040
0
      obsolete_partition_schema_->Clear();
2041
0
    }
2042
0
    if (cached_has_bits & 0x00000200u) {
2043
0
      GOOGLE_DCHECK(obsolete_index_info_ != NULL);
2044
0
      obsolete_index_info_->Clear();
2045
0
    }
2046
0
    if (cached_has_bits & 0x00000400u) {
2047
0
      GOOGLE_DCHECK(kv_store_ != NULL);
2048
0
      kv_store_->Clear();
2049
0
    }
2050
0
    if (cached_has_bits & 0x00000800u) {
2051
0
      GOOGLE_DCHECK(split_op_id_ != NULL);
2052
0
      split_op_id_->Clear();
2053
0
    }
2054
0
  }
2055
6.42k
  if (cached_has_bits & 61440u) {
2056
0
    ::memset(&obsolete_schema_version_, 0, static_cast<size_t>(
2057
0
        reinterpret_cast<char*>(&hidden_) -
2058
0
        reinterpret_cast<char*>(&obsolete_schema_version_)) + sizeof(hidden_));
2059
0
  }
2060
6.42k
  if (cached_has_bits & 983040u) {
2061
0
    restoration_hybrid_time_ = GOOGLE_ULONGLONG(0);
2062
0
    tablet_data_state_ = 999;
2063
0
    obsolete_table_type_ = 2;
2064
0
    cdc_min_replicated_index_ = GOOGLE_LONGLONG(9223372036854775807);
2065
0
  }
2066
6.42k
  _has_bits_.Clear();
2067
6.42k
  _internal_metadata_.Clear();
2068
6.42k
}
2069
2070
bool RaftGroupReplicaSuperBlockPB::MergePartialFromCodedStream(
2071
4.39k
    ::google::protobuf::io::CodedInputStream* input) {
2072
48.3k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2073
4.39k
  ::google::protobuf::uint32 tag;
2074
  // @@protoc_insertion_point(parse_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
2075
52.7k
  for (;;) {
2076
52.7k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
2077
52.7k
    tag = p.first;
2078
52.7k
    if (!p.second) 
goto handle_unusual4.39k
;
2079
48.3k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2080
      // required bytes primary_table_id = 1;
2081
4.39k
      case 1: {
2082
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2083
4.39k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2084
4.39k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2085
4.39k
                input, this->mutable_primary_table_id()));
2086
18.4E
        } else {
2087
18.4E
          goto handle_unusual;
2088
18.4E
        }
2089
4.39k
        break;
2090
4.39k
      }
2091
2092
      // required bytes raft_group_id = 2;
2093
4.40k
      case 2: {
2094
4.40k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2095
4.40k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2096
4.40k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2097
4.40k
                input, this->mutable_raft_group_id()));
2098
4.40k
        } else {
2099
0
          goto handle_unusual;
2100
0
        }
2101
4.40k
        break;
2102
4.40k
      }
2103
2104
      // optional string OBSOLETE_table_name = 7;
2105
4.40k
      case 7: {
2106
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2107
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
2108
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2109
0
                input, this->mutable_obsolete_table_name()));
2110
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2111
0
            this->obsolete_table_name().data(), static_cast<int>(this->obsolete_table_name().length()),
2112
0
            ::google::protobuf::internal::WireFormat::PARSE,
2113
0
            "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_table_name");
2114
0
        } else {
2115
0
          goto handle_unusual;
2116
0
        }
2117
0
        break;
2118
0
      }
2119
2120
      // optional .yb.SchemaPB OBSOLETE_schema = 8;
2121
0
      case 8: {
2122
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2123
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
2124
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2125
0
               input, mutable_obsolete_schema()));
2126
0
        } else {
2127
0
          goto handle_unusual;
2128
0
        }
2129
0
        break;
2130
0
      }
2131
2132
      // optional uint32 OBSOLETE_schema_version = 9;
2133
0
      case 9: {
2134
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2135
0
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
2136
0
          set_has_obsolete_schema_version();
2137
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2138
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2139
0
                 input, &obsolete_schema_version_)));
2140
0
        } else {
2141
0
          goto handle_unusual;
2142
0
        }
2143
0
        break;
2144
0
      }
2145
2146
      // optional .yb.tablet.TabletDataState tablet_data_state = 10 [default = TABLET_DATA_UNKNOWN];
2147
4.40k
      case 10: {
2148
4.40k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2149
4.40k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
2150
4.40k
          int value;
2151
4.40k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2152
4.40k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2153
4.40k
                 input, &value)));
2154
4.40k
          if (::yb::tablet::TabletDataState_IsValid(value)) {
2155
4.39k
            set_tablet_data_state(static_cast< ::yb::tablet::TabletDataState >(value));
2156
4.39k
          } else {
2157
7
            mutable_unknown_fields()->AddVarint(
2158
7
                10, static_cast< ::google::protobuf::uint64>(value));
2159
7
          }
2160
4.40k
        } else {
2161
0
          goto handle_unusual;
2162
0
        }
2163
4.40k
        break;
2164
4.40k
      }
2165
2166
      // optional .yb.OpIdPB tombstone_last_logged_opid = 12;
2167
4.40k
      case 12: {
2168
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2169
7
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
2170
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2171
7
               input, mutable_tombstone_last_logged_opid()));
2172
7
        } else {
2173
0
          goto handle_unusual;
2174
0
        }
2175
7
        break;
2176
7
      }
2177
2178
      // optional .yb.PartitionPB partition = 13;
2179
4.39k
      case 13: {
2180
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2181
4.39k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
2182
4.39k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2183
4.39k
               input, mutable_partition()));
2184
4.39k
        } else {
2185
0
          goto handle_unusual;
2186
0
        }
2187
4.39k
        break;
2188
4.39k
      }
2189
2190
      // optional .yb.PartitionSchemaPB OBSOLETE_partition_schema = 14;
2191
4.39k
      case 14: {
2192
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2193
0
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
2194
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2195
0
               input, mutable_obsolete_partition_schema()));
2196
0
        } else {
2197
0
          goto handle_unusual;
2198
0
        }
2199
0
        break;
2200
0
      }
2201
2202
      // optional .yb.TableType OBSOLETE_table_type = 15 [default = DEFAULT_TABLE_TYPE];
2203
0
      case 15: {
2204
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2205
0
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
2206
0
          int value;
2207
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2208
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2209
0
                 input, &value)));
2210
0
          if (::yb::TableType_IsValid(value)) {
2211
0
            set_obsolete_table_type(static_cast< ::yb::TableType >(value));
2212
0
          } else {
2213
0
            mutable_unknown_fields()->AddVarint(
2214
0
                15, static_cast< ::google::protobuf::uint64>(value));
2215
0
          }
2216
0
        } else {
2217
0
          goto handle_unusual;
2218
0
        }
2219
0
        break;
2220
0
      }
2221
2222
      // optional string OBSOLETE_rocksdb_dir = 16;
2223
0
      case 16: {
2224
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2225
0
            static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
2226
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2227
0
                input, this->mutable_obsolete_rocksdb_dir()));
2228
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2229
0
            this->obsolete_rocksdb_dir().data(), static_cast<int>(this->obsolete_rocksdb_dir().length()),
2230
0
            ::google::protobuf::internal::WireFormat::PARSE,
2231
0
            "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_rocksdb_dir");
2232
0
        } else {
2233
0
          goto handle_unusual;
2234
0
        }
2235
0
        break;
2236
0
      }
2237
2238
      // repeated .yb.tablet.FilePB OBSOLETE_rocksdb_files = 17;
2239
0
      case 17: {
2240
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2241
0
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
2242
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_rocksdb_files()));
2243
0
        } else {
2244
0
          goto handle_unusual;
2245
0
        }
2246
0
        break;
2247
0
      }
2248
2249
      // optional string wal_dir = 18;
2250
4.40k
      case 18: {
2251
4.40k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2252
4.40k
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
2253
4.39k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2254
4.39k
                input, this->mutable_wal_dir()));
2255
4.39k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2256
4.39k
            this->wal_dir().data(), static_cast<int>(this->wal_dir().length()),
2257
4.39k
            ::google::protobuf::internal::WireFormat::PARSE,
2258
4.39k
            "yb.tablet.RaftGroupReplicaSuperBlockPB.wal_dir");
2259
4.39k
        } else {
2260
5
          goto handle_unusual;
2261
5
        }
2262
4.39k
        break;
2263
4.40k
      }
2264
2265
      // repeated .yb.DeletedColumnPB OBSOLETE_deleted_cols = 19;
2266
4.39k
      case 19: {
2267
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2268
0
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
2269
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_deleted_cols()));
2270
0
        } else {
2271
0
          goto handle_unusual;
2272
0
        }
2273
0
        break;
2274
0
      }
2275
2276
      // repeated .yb.tablet.SnapshotFilePB OBSOLETE_snapshot_files = 20;
2277
0
      case 20: {
2278
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2279
0
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
2280
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_snapshot_files()));
2281
0
        } else {
2282
0
          goto handle_unusual;
2283
0
        }
2284
0
        break;
2285
0
      }
2286
2287
      // repeated .yb.IndexInfoPB OBSOLETE_indexes = 21;
2288
0
      case 21: {
2289
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2290
0
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
2291
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_indexes()));
2292
0
        } else {
2293
0
          goto handle_unusual;
2294
0
        }
2295
0
        break;
2296
0
      }
2297
2298
      // optional .yb.IndexInfoPB OBSOLETE_index_info = 22;
2299
0
      case 22: {
2300
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2301
0
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
2302
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2303
0
               input, mutable_obsolete_index_info()));
2304
0
        } else {
2305
0
          goto handle_unusual;
2306
0
        }
2307
0
        break;
2308
0
      }
2309
2310
      // repeated .yb.tablet.TableInfoPB OBSOLETE_tables = 23;
2311
0
      case 23: {
2312
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2313
0
            static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
2314
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_tables()));
2315
0
        } else {
2316
0
          goto handle_unusual;
2317
0
        }
2318
0
        break;
2319
0
      }
2320
2321
      // optional .yb.tablet.KvStoreInfoPB kv_store = 24;
2322
4.40k
      case 24: {
2323
4.40k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2324
4.40k
            static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
2325
4.40k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2326
4.40k
               input, mutable_kv_store()));
2327
18.4E
        } else {
2328
18.4E
          goto handle_unusual;
2329
18.4E
        }
2330
4.40k
        break;
2331
4.40k
      }
2332
2333
      // optional bool colocated = 25 [default = false];
2334
4.40k
      case 25: {
2335
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2336
4.39k
            static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
2337
4.39k
          set_has_colocated();
2338
4.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2339
4.39k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2340
4.39k
                 input, &colocated_)));
2341
4.39k
        } else {
2342
0
          goto handle_unusual;
2343
0
        }
2344
4.39k
        break;
2345
4.39k
      }
2346
2347
      // optional int64 cdc_min_replicated_index = 26 [default = 9223372036854775807];
2348
4.39k
      case 26: {
2349
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2350
4.39k
            static_cast< ::google::protobuf::uint8>(208u /* 208 & 0xFF */)) {
2351
4.39k
          set_has_cdc_min_replicated_index();
2352
4.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2353
4.39k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2354
4.39k
                 input, &cdc_min_replicated_index_)));
2355
4.39k
        } else {
2356
0
          goto handle_unusual;
2357
0
        }
2358
4.39k
        break;
2359
4.39k
      }
2360
2361
      // optional bool is_under_twodc_replication = 27;
2362
4.39k
      case 27: {
2363
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2364
4.39k
            static_cast< ::google::protobuf::uint8>(216u /* 216 & 0xFF */)) {
2365
4.39k
          set_has_is_under_twodc_replication();
2366
4.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2367
4.39k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2368
4.39k
                 input, &is_under_twodc_replication_)));
2369
4.39k
        } else {
2370
0
          goto handle_unusual;
2371
0
        }
2372
4.39k
        break;
2373
4.39k
      }
2374
2375
      // optional bool hidden = 28;
2376
4.39k
      case 28: {
2377
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2378
4.39k
            static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) {
2379
4.39k
          set_has_hidden();
2380
4.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2381
4.39k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2382
4.39k
                 input, &hidden_)));
2383
18.4E
        } else {
2384
18.4E
          goto handle_unusual;
2385
18.4E
        }
2386
4.39k
        break;
2387
4.39k
      }
2388
2389
      // optional .yb.OpIdPB split_op_id = 29;
2390
4.39k
      case 29: {
2391
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2392
4
            static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) {
2393
4
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2394
4
               input, mutable_split_op_id()));
2395
4
        } else {
2396
0
          goto handle_unusual;
2397
0
        }
2398
4
        break;
2399
4
      }
2400
2401
      // repeated bytes split_child_tablet_ids = 30;
2402
8
      case 30: {
2403
8
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2404
8
            static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
2405
8
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2406
8
                input, this->add_split_child_tablet_ids()));
2407
8
        } else {
2408
0
          goto handle_unusual;
2409
0
        }
2410
8
        break;
2411
8
      }
2412
2413
      // repeated bytes active_restorations = 31;
2414
8
      case 31: {
2415
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2416
0
            static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
2417
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2418
0
                input, this->add_active_restorations()));
2419
0
        } else {
2420
0
          goto handle_unusual;
2421
0
        }
2422
0
        break;
2423
0
      }
2424
2425
      // optional fixed64 restoration_hybrid_time = 32;
2426
4.39k
      case 32: {
2427
4.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2428
4.39k
            static_cast< ::google::protobuf::uint8>(1u /* 257 & 0xFF */)) {
2429
4.39k
          set_has_restoration_hybrid_time();
2430
4.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2431
4.39k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
2432
4.39k
                 input, &restoration_hybrid_time_)));
2433
18.4E
        } else {
2434
18.4E
          goto handle_unusual;
2435
18.4E
        }
2436
4.39k
        break;
2437
4.39k
      }
2438
2439
4.39k
      default: {
2440
4.40k
      handle_unusual:
2441
4.40k
        if (tag == 0) {
2442
4.39k
          goto success;
2443
4.39k
        }
2444
2
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2445
2
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2446
2
        break;
2447
2
      }
2448
48.3k
    }
2449
48.3k
  }
2450
4.39k
success:
2451
  // @@protoc_insertion_point(parse_success:yb.tablet.RaftGroupReplicaSuperBlockPB)
2452
4.39k
  return true;
2453
0
failure:
2454
  // @@protoc_insertion_point(parse_failure:yb.tablet.RaftGroupReplicaSuperBlockPB)
2455
0
  return false;
2456
4.39k
#undef DO_
2457
4.39k
}
2458
2459
void RaftGroupReplicaSuperBlockPB::SerializeWithCachedSizes(
2460
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2461
  // @@protoc_insertion_point(serialize_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
2462
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2463
0
  (void) cached_has_bits;
2464
2465
0
  cached_has_bits = _has_bits_[0];
2466
  // required bytes primary_table_id = 1;
2467
0
  if (cached_has_bits & 0x00000001u) {
2468
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2469
0
      1, this->primary_table_id(), output);
2470
0
  }
2471
2472
  // required bytes raft_group_id = 2;
2473
0
  if (cached_has_bits & 0x00000002u) {
2474
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2475
0
      2, this->raft_group_id(), output);
2476
0
  }
2477
2478
  // optional string OBSOLETE_table_name = 7;
2479
0
  if (cached_has_bits & 0x00000004u) {
2480
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2481
0
      this->obsolete_table_name().data(), static_cast<int>(this->obsolete_table_name().length()),
2482
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2483
0
      "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_table_name");
2484
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2485
0
      7, this->obsolete_table_name(), output);
2486
0
  }
2487
2488
  // optional .yb.SchemaPB OBSOLETE_schema = 8;
2489
0
  if (cached_has_bits & 0x00000020u) {
2490
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2491
0
      8, *this->obsolete_schema_, output);
2492
0
  }
2493
2494
  // optional uint32 OBSOLETE_schema_version = 9;
2495
0
  if (cached_has_bits & 0x00001000u) {
2496
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->obsolete_schema_version(), output);
2497
0
  }
2498
2499
  // optional .yb.tablet.TabletDataState tablet_data_state = 10 [default = TABLET_DATA_UNKNOWN];
2500
0
  if (cached_has_bits & 0x00020000u) {
2501
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2502
0
      10, this->tablet_data_state(), output);
2503
0
  }
2504
2505
  // optional .yb.OpIdPB tombstone_last_logged_opid = 12;
2506
0
  if (cached_has_bits & 0x00000040u) {
2507
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2508
0
      12, *this->tombstone_last_logged_opid_, output);
2509
0
  }
2510
2511
  // optional .yb.PartitionPB partition = 13;
2512
0
  if (cached_has_bits & 0x00000080u) {
2513
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2514
0
      13, *this->partition_, output);
2515
0
  }
2516
2517
  // optional .yb.PartitionSchemaPB OBSOLETE_partition_schema = 14;
2518
0
  if (cached_has_bits & 0x00000100u) {
2519
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2520
0
      14, *this->obsolete_partition_schema_, output);
2521
0
  }
2522
2523
  // optional .yb.TableType OBSOLETE_table_type = 15 [default = DEFAULT_TABLE_TYPE];
2524
0
  if (cached_has_bits & 0x00040000u) {
2525
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2526
0
      15, this->obsolete_table_type(), output);
2527
0
  }
2528
2529
  // optional string OBSOLETE_rocksdb_dir = 16;
2530
0
  if (cached_has_bits & 0x00000008u) {
2531
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2532
0
      this->obsolete_rocksdb_dir().data(), static_cast<int>(this->obsolete_rocksdb_dir().length()),
2533
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2534
0
      "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_rocksdb_dir");
2535
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2536
0
      16, this->obsolete_rocksdb_dir(), output);
2537
0
  }
2538
2539
  // repeated .yb.tablet.FilePB OBSOLETE_rocksdb_files = 17;
2540
0
  for (unsigned int i = 0,
2541
0
      n = static_cast<unsigned int>(this->obsolete_rocksdb_files_size()); i < n; i++) {
2542
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2543
0
      17, this->obsolete_rocksdb_files(static_cast<int>(i)), output);
2544
0
  }
2545
2546
  // optional string wal_dir = 18;
2547
0
  if (cached_has_bits & 0x00000010u) {
2548
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2549
0
      this->wal_dir().data(), static_cast<int>(this->wal_dir().length()),
2550
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2551
0
      "yb.tablet.RaftGroupReplicaSuperBlockPB.wal_dir");
2552
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2553
0
      18, this->wal_dir(), output);
2554
0
  }
2555
2556
  // repeated .yb.DeletedColumnPB OBSOLETE_deleted_cols = 19;
2557
0
  for (unsigned int i = 0,
2558
0
      n = static_cast<unsigned int>(this->obsolete_deleted_cols_size()); i < n; i++) {
2559
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2560
0
      19, this->obsolete_deleted_cols(static_cast<int>(i)), output);
2561
0
  }
2562
2563
  // repeated .yb.tablet.SnapshotFilePB OBSOLETE_snapshot_files = 20;
2564
0
  for (unsigned int i = 0,
2565
0
      n = static_cast<unsigned int>(this->obsolete_snapshot_files_size()); i < n; i++) {
2566
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2567
0
      20, this->obsolete_snapshot_files(static_cast<int>(i)), output);
2568
0
  }
2569
2570
  // repeated .yb.IndexInfoPB OBSOLETE_indexes = 21;
2571
0
  for (unsigned int i = 0,
2572
0
      n = static_cast<unsigned int>(this->obsolete_indexes_size()); i < n; i++) {
2573
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2574
0
      21, this->obsolete_indexes(static_cast<int>(i)), output);
2575
0
  }
2576
2577
  // optional .yb.IndexInfoPB OBSOLETE_index_info = 22;
2578
0
  if (cached_has_bits & 0x00000200u) {
2579
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2580
0
      22, *this->obsolete_index_info_, output);
2581
0
  }
2582
2583
  // repeated .yb.tablet.TableInfoPB OBSOLETE_tables = 23;
2584
0
  for (unsigned int i = 0,
2585
0
      n = static_cast<unsigned int>(this->obsolete_tables_size()); i < n; i++) {
2586
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2587
0
      23, this->obsolete_tables(static_cast<int>(i)), output);
2588
0
  }
2589
2590
  // optional .yb.tablet.KvStoreInfoPB kv_store = 24;
2591
0
  if (cached_has_bits & 0x00000400u) {
2592
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2593
0
      24, *this->kv_store_, output);
2594
0
  }
2595
2596
  // optional bool colocated = 25 [default = false];
2597
0
  if (cached_has_bits & 0x00002000u) {
2598
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(25, this->colocated(), output);
2599
0
  }
2600
2601
  // optional int64 cdc_min_replicated_index = 26 [default = 9223372036854775807];
2602
0
  if (cached_has_bits & 0x00080000u) {
2603
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(26, this->cdc_min_replicated_index(), output);
2604
0
  }
2605
2606
  // optional bool is_under_twodc_replication = 27;
2607
0
  if (cached_has_bits & 0x00004000u) {
2608
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->is_under_twodc_replication(), output);
2609
0
  }
2610
2611
  // optional bool hidden = 28;
2612
0
  if (cached_has_bits & 0x00008000u) {
2613
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(28, this->hidden(), output);
2614
0
  }
2615
2616
  // optional .yb.OpIdPB split_op_id = 29;
2617
0
  if (cached_has_bits & 0x00000800u) {
2618
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2619
0
      29, *this->split_op_id_, output);
2620
0
  }
2621
2622
  // repeated bytes split_child_tablet_ids = 30;
2623
0
  for (int i = 0, n = this->split_child_tablet_ids_size(); i < n; i++) {
2624
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
2625
0
      30, this->split_child_tablet_ids(i), output);
2626
0
  }
2627
2628
  // repeated bytes active_restorations = 31;
2629
0
  for (int i = 0, n = this->active_restorations_size(); i < n; i++) {
2630
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
2631
0
      31, this->active_restorations(i), output);
2632
0
  }
2633
2634
  // optional fixed64 restoration_hybrid_time = 32;
2635
0
  if (cached_has_bits & 0x00010000u) {
2636
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(32, this->restoration_hybrid_time(), output);
2637
0
  }
2638
2639
0
  if (_internal_metadata_.have_unknown_fields()) {
2640
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2641
0
        _internal_metadata_.unknown_fields(), output);
2642
0
  }
2643
  // @@protoc_insertion_point(serialize_end:yb.tablet.RaftGroupReplicaSuperBlockPB)
2644
0
}
2645
2646
::google::protobuf::uint8* RaftGroupReplicaSuperBlockPB::InternalSerializeWithCachedSizesToArray(
2647
1.56M
    bool deterministic, ::google::protobuf::uint8* target) const {
2648
1.56M
  (void)deterministic; // Unused
2649
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
2650
1.56M
  ::google::protobuf::uint32 cached_has_bits = 0;
2651
1.56M
  (void) cached_has_bits;
2652
2653
1.56M
  cached_has_bits = _has_bits_[0];
2654
  // required bytes primary_table_id = 1;
2655
1.56M
  if (cached_has_bits & 0x00000001u) {
2656
1.56M
    target =
2657
1.56M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2658
1.56M
        1, this->primary_table_id(), target);
2659
1.56M
  }
2660
2661
  // required bytes raft_group_id = 2;
2662
1.56M
  if (cached_has_bits & 0x00000002u) {
2663
1.56M
    target =
2664
1.56M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2665
1.56M
        2, this->raft_group_id(), target);
2666
1.56M
  }
2667
2668
  // optional string OBSOLETE_table_name = 7;
2669
1.56M
  if (cached_has_bits & 0x00000004u) {
2670
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2671
0
      this->obsolete_table_name().data(), static_cast<int>(this->obsolete_table_name().length()),
2672
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2673
0
      "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_table_name");
2674
0
    target =
2675
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2676
0
        7, this->obsolete_table_name(), target);
2677
0
  }
2678
2679
  // optional .yb.SchemaPB OBSOLETE_schema = 8;
2680
1.56M
  if (cached_has_bits & 0x00000020u) {
2681
0
    target = ::google::protobuf::internal::WireFormatLite::
2682
0
      InternalWriteMessageToArray(
2683
0
        8, *this->obsolete_schema_, deterministic, target);
2684
0
  }
2685
2686
  // optional uint32 OBSOLETE_schema_version = 9;
2687
1.56M
  if (cached_has_bits & 0x00001000u) {
2688
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->obsolete_schema_version(), target);
2689
0
  }
2690
2691
  // optional .yb.tablet.TabletDataState tablet_data_state = 10 [default = TABLET_DATA_UNKNOWN];
2692
1.56M
  if (cached_has_bits & 0x00020000u) {
2693
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2694
1.56M
      10, this->tablet_data_state(), target);
2695
1.56M
  }
2696
2697
  // optional .yb.OpIdPB tombstone_last_logged_opid = 12;
2698
1.56M
  if (cached_has_bits & 0x00000040u) {
2699
150k
    target = ::google::protobuf::internal::WireFormatLite::
2700
150k
      InternalWriteMessageToArray(
2701
150k
        12, *this->tombstone_last_logged_opid_, deterministic, target);
2702
150k
  }
2703
2704
  // optional .yb.PartitionPB partition = 13;
2705
1.56M
  if (cached_has_bits & 0x00000080u) {
2706
1.56M
    target = ::google::protobuf::internal::WireFormatLite::
2707
1.56M
      InternalWriteMessageToArray(
2708
1.56M
        13, *this->partition_, deterministic, target);
2709
1.56M
  }
2710
2711
  // optional .yb.PartitionSchemaPB OBSOLETE_partition_schema = 14;
2712
1.56M
  if (cached_has_bits & 0x00000100u) {
2713
0
    target = ::google::protobuf::internal::WireFormatLite::
2714
0
      InternalWriteMessageToArray(
2715
0
        14, *this->obsolete_partition_schema_, deterministic, target);
2716
0
  }
2717
2718
  // optional .yb.TableType OBSOLETE_table_type = 15 [default = DEFAULT_TABLE_TYPE];
2719
1.56M
  if (cached_has_bits & 0x00040000u) {
2720
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2721
0
      15, this->obsolete_table_type(), target);
2722
0
  }
2723
2724
  // optional string OBSOLETE_rocksdb_dir = 16;
2725
1.56M
  if (cached_has_bits & 0x00000008u) {
2726
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2727
0
      this->obsolete_rocksdb_dir().data(), static_cast<int>(this->obsolete_rocksdb_dir().length()),
2728
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2729
0
      "yb.tablet.RaftGroupReplicaSuperBlockPB.OBSOLETE_rocksdb_dir");
2730
0
    target =
2731
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2732
0
        16, this->obsolete_rocksdb_dir(), target);
2733
0
  }
2734
2735
  // repeated .yb.tablet.FilePB OBSOLETE_rocksdb_files = 17;
2736
1.56M
  for (unsigned int i = 0,
2737
1.56M
      n = static_cast<unsigned int>(this->obsolete_rocksdb_files_size()); i < n; 
i++0
) {
2738
0
    target = ::google::protobuf::internal::WireFormatLite::
2739
0
      InternalWriteMessageToArray(
2740
0
        17, this->obsolete_rocksdb_files(static_cast<int>(i)), deterministic, target);
2741
0
  }
2742
2743
  // optional string wal_dir = 18;
2744
1.56M
  if (cached_has_bits & 0x00000010u) {
2745
1.56M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2746
1.56M
      this->wal_dir().data(), static_cast<int>(this->wal_dir().length()),
2747
1.56M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2748
1.56M
      "yb.tablet.RaftGroupReplicaSuperBlockPB.wal_dir");
2749
1.56M
    target =
2750
1.56M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2751
1.56M
        18, this->wal_dir(), target);
2752
1.56M
  }
2753
2754
  // repeated .yb.DeletedColumnPB OBSOLETE_deleted_cols = 19;
2755
1.56M
  for (unsigned int i = 0,
2756
1.56M
      n = static_cast<unsigned int>(this->obsolete_deleted_cols_size()); i < n; 
i++0
) {
2757
0
    target = ::google::protobuf::internal::WireFormatLite::
2758
0
      InternalWriteMessageToArray(
2759
0
        19, this->obsolete_deleted_cols(static_cast<int>(i)), deterministic, target);
2760
0
  }
2761
2762
  // repeated .yb.tablet.SnapshotFilePB OBSOLETE_snapshot_files = 20;
2763
1.56M
  for (unsigned int i = 0,
2764
1.56M
      n = static_cast<unsigned int>(this->obsolete_snapshot_files_size()); i < n; 
i++0
) {
2765
0
    target = ::google::protobuf::internal::WireFormatLite::
2766
0
      InternalWriteMessageToArray(
2767
0
        20, this->obsolete_snapshot_files(static_cast<int>(i)), deterministic, target);
2768
0
  }
2769
2770
  // repeated .yb.IndexInfoPB OBSOLETE_indexes = 21;
2771
1.56M
  for (unsigned int i = 0,
2772
1.56M
      n = static_cast<unsigned int>(this->obsolete_indexes_size()); i < n; 
i++0
) {
2773
0
    target = ::google::protobuf::internal::WireFormatLite::
2774
0
      InternalWriteMessageToArray(
2775
0
        21, this->obsolete_indexes(static_cast<int>(i)), deterministic, target);
2776
0
  }
2777
2778
  // optional .yb.IndexInfoPB OBSOLETE_index_info = 22;
2779
1.56M
  if (cached_has_bits & 0x00000200u) {
2780
0
    target = ::google::protobuf::internal::WireFormatLite::
2781
0
      InternalWriteMessageToArray(
2782
0
        22, *this->obsolete_index_info_, deterministic, target);
2783
0
  }
2784
2785
  // repeated .yb.tablet.TableInfoPB OBSOLETE_tables = 23;
2786
1.56M
  for (unsigned int i = 0,
2787
1.56M
      n = static_cast<unsigned int>(this->obsolete_tables_size()); i < n; 
i++0
) {
2788
0
    target = ::google::protobuf::internal::WireFormatLite::
2789
0
      InternalWriteMessageToArray(
2790
0
        23, this->obsolete_tables(static_cast<int>(i)), deterministic, target);
2791
0
  }
2792
2793
  // optional .yb.tablet.KvStoreInfoPB kv_store = 24;
2794
1.56M
  if (cached_has_bits & 0x00000400u) {
2795
1.56M
    target = ::google::protobuf::internal::WireFormatLite::
2796
1.56M
      InternalWriteMessageToArray(
2797
1.56M
        24, *this->kv_store_, deterministic, target);
2798
1.56M
  }
2799
2800
  // optional bool colocated = 25 [default = false];
2801
1.56M
  if (cached_has_bits & 0x00002000u) {
2802
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(25, this->colocated(), target);
2803
1.56M
  }
2804
2805
  // optional int64 cdc_min_replicated_index = 26 [default = 9223372036854775807];
2806
1.56M
  if (cached_has_bits & 0x00080000u) {
2807
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(26, this->cdc_min_replicated_index(), target);
2808
1.56M
  }
2809
2810
  // optional bool is_under_twodc_replication = 27;
2811
1.56M
  if (cached_has_bits & 0x00004000u) {
2812
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->is_under_twodc_replication(), target);
2813
1.56M
  }
2814
2815
  // optional bool hidden = 28;
2816
1.56M
  if (cached_has_bits & 0x00008000u) {
2817
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(28, this->hidden(), target);
2818
1.56M
  }
2819
2820
  // optional .yb.OpIdPB split_op_id = 29;
2821
1.56M
  if (cached_has_bits & 0x00000800u) {
2822
162
    target = ::google::protobuf::internal::WireFormatLite::
2823
162
      InternalWriteMessageToArray(
2824
162
        29, *this->split_op_id_, deterministic, target);
2825
162
  }
2826
2827
  // repeated bytes split_child_tablet_ids = 30;
2828
1.56M
  for (int i = 0, n = this->split_child_tablet_ids_size(); i < n; 
i++324
) {
2829
324
    target = ::google::protobuf::internal::WireFormatLite::
2830
324
      WriteBytesToArray(30, this->split_child_tablet_ids(i), target);
2831
324
  }
2832
2833
  // repeated bytes active_restorations = 31;
2834
1.56M
  for (int i = 0, n = this->active_restorations_size(); i < n; 
i++30
) {
2835
30
    target = ::google::protobuf::internal::WireFormatLite::
2836
30
      WriteBytesToArray(31, this->active_restorations(i), target);
2837
30
  }
2838
2839
  // optional fixed64 restoration_hybrid_time = 32;
2840
1.56M
  if (cached_has_bits & 0x00010000u) {
2841
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(32, this->restoration_hybrid_time(), target);
2842
1.56M
  }
2843
2844
1.56M
  if (_internal_metadata_.have_unknown_fields()) {
2845
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2846
0
        _internal_metadata_.unknown_fields(), target);
2847
0
  }
2848
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.RaftGroupReplicaSuperBlockPB)
2849
1.56M
  return target;
2850
1.56M
}
2851
2852
0
size_t RaftGroupReplicaSuperBlockPB::RequiredFieldsByteSizeFallback() const {
2853
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
2854
0
  size_t total_size = 0;
2855
2856
0
  if (has_primary_table_id()) {
2857
    // required bytes primary_table_id = 1;
2858
0
    total_size += 1 +
2859
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2860
0
        this->primary_table_id());
2861
0
  }
2862
2863
0
  if (has_raft_group_id()) {
2864
    // required bytes raft_group_id = 2;
2865
0
    total_size += 1 +
2866
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2867
0
        this->raft_group_id());
2868
0
  }
2869
2870
0
  return total_size;
2871
0
}
2872
1.56M
size_t RaftGroupReplicaSuperBlockPB::ByteSizeLong() const {
2873
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
2874
1.56M
  size_t total_size = 0;
2875
2876
1.56M
  if (_internal_metadata_.have_unknown_fields()) {
2877
0
    total_size +=
2878
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2879
0
        _internal_metadata_.unknown_fields());
2880
0
  }
2881
1.56M
  if (
((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 01.56M
) { // All required fields are present.
2882
    // required bytes primary_table_id = 1;
2883
1.56M
    total_size += 1 +
2884
1.56M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2885
1.56M
        this->primary_table_id());
2886
2887
    // required bytes raft_group_id = 2;
2888
1.56M
    total_size += 1 +
2889
1.56M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2890
1.56M
        this->raft_group_id());
2891
2892
18.4E
  } else {
2893
18.4E
    total_size += RequiredFieldsByteSizeFallback();
2894
18.4E
  }
2895
  // repeated .yb.tablet.FilePB OBSOLETE_rocksdb_files = 17;
2896
1.56M
  {
2897
1.56M
    unsigned int count = static_cast<unsigned int>(this->obsolete_rocksdb_files_size());
2898
1.56M
    total_size += 2UL * count;
2899
1.56M
    for (unsigned int i = 0; i < count; 
i++0
) {
2900
0
      total_size +=
2901
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2902
0
          this->obsolete_rocksdb_files(static_cast<int>(i)));
2903
0
    }
2904
1.56M
  }
2905
2906
  // repeated .yb.DeletedColumnPB OBSOLETE_deleted_cols = 19;
2907
1.56M
  {
2908
1.56M
    unsigned int count = static_cast<unsigned int>(this->obsolete_deleted_cols_size());
2909
1.56M
    total_size += 2UL * count;
2910
1.56M
    for (unsigned int i = 0; i < count; 
i++0
) {
2911
0
      total_size +=
2912
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2913
0
          this->obsolete_deleted_cols(static_cast<int>(i)));
2914
0
    }
2915
1.56M
  }
2916
2917
  // repeated .yb.tablet.SnapshotFilePB OBSOLETE_snapshot_files = 20;
2918
1.56M
  {
2919
1.56M
    unsigned int count = static_cast<unsigned int>(this->obsolete_snapshot_files_size());
2920
1.56M
    total_size += 2UL * count;
2921
1.56M
    for (unsigned int i = 0; i < count; 
i++0
) {
2922
0
      total_size +=
2923
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2924
0
          this->obsolete_snapshot_files(static_cast<int>(i)));
2925
0
    }
2926
1.56M
  }
2927
2928
  // repeated .yb.IndexInfoPB OBSOLETE_indexes = 21;
2929
1.56M
  {
2930
1.56M
    unsigned int count = static_cast<unsigned int>(this->obsolete_indexes_size());
2931
1.56M
    total_size += 2UL * count;
2932
1.56M
    for (unsigned int i = 0; i < count; 
i++0
) {
2933
0
      total_size +=
2934
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2935
0
          this->obsolete_indexes(static_cast<int>(i)));
2936
0
    }
2937
1.56M
  }
2938
2939
  // repeated .yb.tablet.TableInfoPB OBSOLETE_tables = 23;
2940
1.56M
  {
2941
1.56M
    unsigned int count = static_cast<unsigned int>(this->obsolete_tables_size());
2942
1.56M
    total_size += 2UL * count;
2943
1.56M
    for (unsigned int i = 0; i < count; 
i++0
) {
2944
0
      total_size +=
2945
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2946
0
          this->obsolete_tables(static_cast<int>(i)));
2947
0
    }
2948
1.56M
  }
2949
2950
  // repeated bytes split_child_tablet_ids = 30;
2951
1.56M
  total_size += 2 *
2952
1.56M
      ::google::protobuf::internal::FromIntSize(this->split_child_tablet_ids_size());
2953
1.56M
  for (int i = 0, n = this->split_child_tablet_ids_size(); i < n; 
i++326
) {
2954
326
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
2955
326
      this->split_child_tablet_ids(i));
2956
326
  }
2957
2958
  // repeated bytes active_restorations = 31;
2959
1.56M
  total_size += 2 *
2960
1.56M
      ::google::protobuf::internal::FromIntSize(this->active_restorations_size());
2961
1.56M
  for (int i = 0, n = this->active_restorations_size(); i < n; 
i++30
) {
2962
30
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
2963
30
      this->active_restorations(i));
2964
30
  }
2965
2966
1.56M
  if (_has_bits_[0 / 32] & 252u) {
2967
    // optional string OBSOLETE_table_name = 7;
2968
1.56M
    if (has_obsolete_table_name()) {
2969
0
      total_size += 1 +
2970
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2971
0
          this->obsolete_table_name());
2972
0
    }
2973
2974
    // optional string OBSOLETE_rocksdb_dir = 16;
2975
1.56M
    if (has_obsolete_rocksdb_dir()) {
2976
0
      total_size += 2 +
2977
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
2978
0
          this->obsolete_rocksdb_dir());
2979
0
    }
2980
2981
    // optional string wal_dir = 18;
2982
1.56M
    if (
has_wal_dir()1.56M
) {
2983
1.56M
      total_size += 2 +
2984
1.56M
        ::google::protobuf::internal::WireFormatLite::StringSize(
2985
1.56M
          this->wal_dir());
2986
1.56M
    }
2987
2988
    // optional .yb.SchemaPB OBSOLETE_schema = 8;
2989
1.56M
    if (has_obsolete_schema()) {
2990
0
      total_size += 1 +
2991
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2992
0
          *this->obsolete_schema_);
2993
0
    }
2994
2995
    // optional .yb.OpIdPB tombstone_last_logged_opid = 12;
2996
1.56M
    if (has_tombstone_last_logged_opid()) {
2997
150k
      total_size += 1 +
2998
150k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2999
150k
          *this->tombstone_last_logged_opid_);
3000
150k
    }
3001
3002
    // optional .yb.PartitionPB partition = 13;
3003
1.56M
    if (
has_partition()1.56M
) {
3004
1.56M
      total_size += 1 +
3005
1.56M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3006
1.56M
          *this->partition_);
3007
1.56M
    }
3008
3009
1.56M
  }
3010
1.56M
  if (_has_bits_[8 / 32] & 65280u) {
3011
    // optional .yb.PartitionSchemaPB OBSOLETE_partition_schema = 14;
3012
1.56M
    if (has_obsolete_partition_schema()) {
3013
0
      total_size += 1 +
3014
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3015
0
          *this->obsolete_partition_schema_);
3016
0
    }
3017
3018
    // optional .yb.IndexInfoPB OBSOLETE_index_info = 22;
3019
1.56M
    if (has_obsolete_index_info()) {
3020
0
      total_size += 2 +
3021
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3022
0
          *this->obsolete_index_info_);
3023
0
    }
3024
3025
    // optional .yb.tablet.KvStoreInfoPB kv_store = 24;
3026
1.56M
    if (
has_kv_store()1.56M
) {
3027
1.56M
      total_size += 2 +
3028
1.56M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3029
1.56M
          *this->kv_store_);
3030
1.56M
    }
3031
3032
    // optional .yb.OpIdPB split_op_id = 29;
3033
1.56M
    if (has_split_op_id()) {
3034
163
      total_size += 2 +
3035
163
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3036
163
          *this->split_op_id_);
3037
163
    }
3038
3039
    // optional uint32 OBSOLETE_schema_version = 9;
3040
1.56M
    if (has_obsolete_schema_version()) {
3041
0
      total_size += 1 +
3042
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3043
0
          this->obsolete_schema_version());
3044
0
    }
3045
3046
    // optional bool colocated = 25 [default = false];
3047
1.56M
    if (
has_colocated()1.56M
) {
3048
1.56M
      total_size += 2 + 1;
3049
1.56M
    }
3050
3051
    // optional bool is_under_twodc_replication = 27;
3052
1.56M
    if (has_is_under_twodc_replication()) {
3053
1.56M
      total_size += 2 + 1;
3054
1.56M
    }
3055
3056
    // optional bool hidden = 28;
3057
1.56M
    if (has_hidden()) {
3058
1.56M
      total_size += 2 + 1;
3059
1.56M
    }
3060
3061
1.56M
  }
3062
1.56M
  if (_has_bits_[16 / 32] & 983040u) {
3063
    // optional fixed64 restoration_hybrid_time = 32;
3064
1.56M
    if (
has_restoration_hybrid_time()1.56M
) {
3065
1.56M
      total_size += 2 + 8;
3066
1.56M
    }
3067
3068
    // optional .yb.tablet.TabletDataState tablet_data_state = 10 [default = TABLET_DATA_UNKNOWN];
3069
1.56M
    if (
has_tablet_data_state()1.56M
) {
3070
1.56M
      total_size += 1 +
3071
1.56M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->tablet_data_state());
3072
1.56M
    }
3073
3074
    // optional .yb.TableType OBSOLETE_table_type = 15 [default = DEFAULT_TABLE_TYPE];
3075
1.56M
    if (has_obsolete_table_type()) {
3076
0
      total_size += 1 +
3077
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->obsolete_table_type());
3078
0
    }
3079
3080
    // optional int64 cdc_min_replicated_index = 26 [default = 9223372036854775807];
3081
1.56M
    if (has_cdc_min_replicated_index()) {
3082
1.56M
      total_size += 2 +
3083
1.56M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
3084
1.56M
          this->cdc_min_replicated_index());
3085
1.56M
    }
3086
3087
1.56M
  }
3088
1.56M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3089
1.56M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3090
1.56M
  _cached_size_ = cached_size;
3091
1.56M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3092
1.56M
  return total_size;
3093
1.56M
}
3094
3095
0
void RaftGroupReplicaSuperBlockPB::MergeFrom(const ::google::protobuf::Message& from) {
3096
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
3097
0
  GOOGLE_DCHECK_NE(&from, this);
3098
0
  const RaftGroupReplicaSuperBlockPB* source =
3099
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RaftGroupReplicaSuperBlockPB>(
3100
0
          &from);
3101
0
  if (source == NULL) {
3102
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.RaftGroupReplicaSuperBlockPB)
3103
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3104
0
  } else {
3105
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.RaftGroupReplicaSuperBlockPB)
3106
0
    MergeFrom(*source);
3107
0
  }
3108
0
}
3109
3110
4.05k
void RaftGroupReplicaSuperBlockPB::MergeFrom(const RaftGroupReplicaSuperBlockPB& from) {
3111
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
3112
4.05k
  GOOGLE_DCHECK_NE(&from, this);
3113
4.05k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3114
4.05k
  ::google::protobuf::uint32 cached_has_bits = 0;
3115
4.05k
  (void) cached_has_bits;
3116
3117
4.05k
  obsolete_rocksdb_files_.MergeFrom(from.obsolete_rocksdb_files_);
3118
4.05k
  obsolete_deleted_cols_.MergeFrom(from.obsolete_deleted_cols_);
3119
4.05k
  obsolete_snapshot_files_.MergeFrom(from.obsolete_snapshot_files_);
3120
4.05k
  obsolete_indexes_.MergeFrom(from.obsolete_indexes_);
3121
4.05k
  obsolete_tables_.MergeFrom(from.obsolete_tables_);
3122
4.05k
  split_child_tablet_ids_.MergeFrom(from.split_child_tablet_ids_);
3123
4.05k
  active_restorations_.MergeFrom(from.active_restorations_);
3124
4.05k
  cached_has_bits = from._has_bits_[0];
3125
4.05k
  if (cached_has_bits & 255u) {
3126
4.05k
    if (cached_has_bits & 0x00000001u) {
3127
4.05k
      set_has_primary_table_id();
3128
4.05k
      primary_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_table_id_);
3129
4.05k
    }
3130
4.05k
    if (cached_has_bits & 0x00000002u) {
3131
4.05k
      set_has_raft_group_id();
3132
4.05k
      raft_group_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raft_group_id_);
3133
4.05k
    }
3134
4.05k
    if (cached_has_bits & 0x00000004u) {
3135
0
      set_has_obsolete_table_name();
3136
0
      obsolete_table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_table_name_);
3137
0
    }
3138
4.05k
    if (cached_has_bits & 0x00000008u) {
3139
0
      set_has_obsolete_rocksdb_dir();
3140
0
      obsolete_rocksdb_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_rocksdb_dir_);
3141
0
    }
3142
4.05k
    if (cached_has_bits & 0x00000010u) {
3143
4.05k
      set_has_wal_dir();
3144
4.05k
      wal_dir_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.wal_dir_);
3145
4.05k
    }
3146
4.05k
    if (cached_has_bits & 0x00000020u) {
3147
0
      mutable_obsolete_schema()->::yb::SchemaPB::MergeFrom(from.obsolete_schema());
3148
0
    }
3149
4.05k
    if (cached_has_bits & 0x00000040u) {
3150
0
      mutable_tombstone_last_logged_opid()->::yb::OpIdPB::MergeFrom(from.tombstone_last_logged_opid());
3151
0
    }
3152
4.05k
    if (cached_has_bits & 0x00000080u) {
3153
4.05k
      mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition());
3154
4.05k
    }
3155
4.05k
  }
3156
4.05k
  if (cached_has_bits & 65280u) {
3157
4.05k
    if (cached_has_bits & 0x00000100u) {
3158
0
      mutable_obsolete_partition_schema()->::yb::PartitionSchemaPB::MergeFrom(from.obsolete_partition_schema());
3159
0
    }
3160
4.05k
    if (cached_has_bits & 0x00000200u) {
3161
0
      mutable_obsolete_index_info()->::yb::IndexInfoPB::MergeFrom(from.obsolete_index_info());
3162
0
    }
3163
4.05k
    if (cached_has_bits & 0x00000400u) {
3164
4.05k
      mutable_kv_store()->::yb::tablet::KvStoreInfoPB::MergeFrom(from.kv_store());
3165
4.05k
    }
3166
4.05k
    if (cached_has_bits & 0x00000800u) {
3167
2
      mutable_split_op_id()->::yb::OpIdPB::MergeFrom(from.split_op_id());
3168
2
    }
3169
4.05k
    if (cached_has_bits & 0x00001000u) {
3170
0
      obsolete_schema_version_ = from.obsolete_schema_version_;
3171
0
    }
3172
4.05k
    if (
cached_has_bits & 0x00002000u4.05k
) {
3173
4.05k
      colocated_ = from.colocated_;
3174
4.05k
    }
3175
4.05k
    if (
cached_has_bits & 0x00004000u4.05k
) {
3176
4.05k
      is_under_twodc_replication_ = from.is_under_twodc_replication_;
3177
4.05k
    }
3178
4.05k
    if (cached_has_bits & 0x00008000u) {
3179
4.05k
      hidden_ = from.hidden_;
3180
4.05k
    }
3181
4.05k
    _has_bits_[0] |= cached_has_bits;
3182
4.05k
  }
3183
4.05k
  if (cached_has_bits & 983040u) {
3184
4.05k
    if (cached_has_bits & 0x00010000u) {
3185
4.05k
      restoration_hybrid_time_ = from.restoration_hybrid_time_;
3186
4.05k
    }
3187
4.05k
    if (
cached_has_bits & 0x00020000u4.05k
) {
3188
4.05k
      tablet_data_state_ = from.tablet_data_state_;
3189
4.05k
    }
3190
4.05k
    if (cached_has_bits & 0x00040000u) {
3191
0
      obsolete_table_type_ = from.obsolete_table_type_;
3192
0
    }
3193
4.05k
    if (cached_has_bits & 0x00080000u) {
3194
4.05k
      cdc_min_replicated_index_ = from.cdc_min_replicated_index_;
3195
4.05k
    }
3196
4.05k
    _has_bits_[0] |= cached_has_bits;
3197
4.05k
  }
3198
4.05k
}
3199
3200
0
void RaftGroupReplicaSuperBlockPB::CopyFrom(const ::google::protobuf::Message& from) {
3201
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
3202
0
  if (&from == this) return;
3203
0
  Clear();
3204
0
  MergeFrom(from);
3205
0
}
3206
3207
4.05k
void RaftGroupReplicaSuperBlockPB::CopyFrom(const RaftGroupReplicaSuperBlockPB& from) {
3208
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.RaftGroupReplicaSuperBlockPB)
3209
4.05k
  if (&from == this) 
return0
;
3210
4.05k
  Clear();
3211
4.05k
  MergeFrom(from);
3212
4.05k
}
3213
3214
1.56M
bool RaftGroupReplicaSuperBlockPB::IsInitialized() const {
3215
1.56M
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) 
return false0
;
3216
1.56M
  if (!::google::protobuf::internal::AllAreInitialized(this->obsolete_indexes())) 
return false0
;
3217
1.56M
  if (!::google::protobuf::internal::AllAreInitialized(this->obsolete_tables())) 
return false0
;
3218
1.56M
  if (has_obsolete_schema()) {
3219
0
    if (!this->obsolete_schema_->IsInitialized()) return false;
3220
0
  }
3221
1.56M
  if (has_tombstone_last_logged_opid()) {
3222
150k
    if (!this->tombstone_last_logged_opid_->IsInitialized()) 
return false0
;
3223
150k
  }
3224
1.56M
  if (has_obsolete_partition_schema()) {
3225
0
    if (!this->obsolete_partition_schema_->IsInitialized()) return false;
3226
0
  }
3227
1.56M
  if (has_obsolete_index_info()) {
3228
0
    if (!this->obsolete_index_info_->IsInitialized()) return false;
3229
0
  }
3230
1.56M
  if (has_kv_store()) {
3231
1.56M
    if (!this->kv_store_->IsInitialized()) 
return false0
;
3232
1.56M
  }
3233
1.56M
  if (has_split_op_id()) {
3234
166
    if (!this->split_op_id_->IsInitialized()) 
return false0
;
3235
166
  }
3236
1.56M
  return true;
3237
1.56M
}
3238
3239
1.56M
void RaftGroupReplicaSuperBlockPB::Swap(RaftGroupReplicaSuperBlockPB* other) {
3240
1.56M
  if (other == this) 
return0
;
3241
1.56M
  InternalSwap(other);
3242
1.56M
}
3243
1.55M
void RaftGroupReplicaSuperBlockPB::InternalSwap(RaftGroupReplicaSuperBlockPB* other) {
3244
1.55M
  using std::swap;
3245
1.55M
  obsolete_rocksdb_files_.InternalSwap(&other->obsolete_rocksdb_files_);
3246
1.55M
  obsolete_deleted_cols_.InternalSwap(&other->obsolete_deleted_cols_);
3247
1.55M
  obsolete_snapshot_files_.InternalSwap(&other->obsolete_snapshot_files_);
3248
1.55M
  obsolete_indexes_.InternalSwap(&other->obsolete_indexes_);
3249
1.55M
  obsolete_tables_.InternalSwap(&other->obsolete_tables_);
3250
1.55M
  split_child_tablet_ids_.InternalSwap(&other->split_child_tablet_ids_);
3251
1.55M
  active_restorations_.InternalSwap(&other->active_restorations_);
3252
1.55M
  primary_table_id_.Swap(&other->primary_table_id_);
3253
1.55M
  raft_group_id_.Swap(&other->raft_group_id_);
3254
1.55M
  obsolete_table_name_.Swap(&other->obsolete_table_name_);
3255
1.55M
  obsolete_rocksdb_dir_.Swap(&other->obsolete_rocksdb_dir_);
3256
1.55M
  wal_dir_.Swap(&other->wal_dir_);
3257
1.55M
  swap(obsolete_schema_, other->obsolete_schema_);
3258
1.55M
  swap(tombstone_last_logged_opid_, other->tombstone_last_logged_opid_);
3259
1.55M
  swap(partition_, other->partition_);
3260
1.55M
  swap(obsolete_partition_schema_, other->obsolete_partition_schema_);
3261
1.55M
  swap(obsolete_index_info_, other->obsolete_index_info_);
3262
1.55M
  swap(kv_store_, other->kv_store_);
3263
1.55M
  swap(split_op_id_, other->split_op_id_);
3264
1.55M
  swap(obsolete_schema_version_, other->obsolete_schema_version_);
3265
1.55M
  swap(colocated_, other->colocated_);
3266
1.55M
  swap(is_under_twodc_replication_, other->is_under_twodc_replication_);
3267
1.55M
  swap(hidden_, other->hidden_);
3268
1.55M
  swap(restoration_hybrid_time_, other->restoration_hybrid_time_);
3269
1.55M
  swap(tablet_data_state_, other->tablet_data_state_);
3270
1.55M
  swap(obsolete_table_type_, other->obsolete_table_type_);
3271
1.55M
  swap(cdc_min_replicated_index_, other->cdc_min_replicated_index_);
3272
1.55M
  swap(_has_bits_[0], other->_has_bits_[0]);
3273
1.55M
  _internal_metadata_.Swap(&other->_internal_metadata_);
3274
1.55M
  swap(_cached_size_, other->_cached_size_);
3275
1.55M
}
3276
3277
3.12M
::google::protobuf::Metadata RaftGroupReplicaSuperBlockPB::GetMetadata() const {
3278
3.12M
  protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
3279
3.12M
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages];
3280
3.12M
}
3281
3282
3283
// ===================================================================
3284
3285
26.8k
void FilePB::InitAsDefaultInstance() {
3286
26.8k
}
3287
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3288
const int FilePB::kNameFieldNumber;
3289
const int FilePB::kSizeBytesFieldNumber;
3290
const int FilePB::kInodeFieldNumber;
3291
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3292
3293
FilePB::FilePB()
3294
53.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3295
53.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3296
26.7k
    ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsFilePB();
3297
26.7k
  }
3298
53.6k
  SharedCtor();
3299
  // @@protoc_insertion_point(constructor:yb.tablet.FilePB)
3300
53.6k
}
3301
FilePB::FilePB(const FilePB& from)
3302
  : ::google::protobuf::Message(),
3303
      _internal_metadata_(NULL),
3304
      _has_bits_(from._has_bits_),
3305
0
      _cached_size_(0) {
3306
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3307
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3308
0
  if (from.has_name()) {
3309
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3310
0
  }
3311
0
  ::memcpy(&size_bytes_, &from.size_bytes_,
3312
0
    static_cast<size_t>(reinterpret_cast<char*>(&inode_) -
3313
0
    reinterpret_cast<char*>(&size_bytes_)) + sizeof(inode_));
3314
  // @@protoc_insertion_point(copy_constructor:yb.tablet.FilePB)
3315
0
}
3316
3317
53.6k
void FilePB::SharedCtor() {
3318
53.6k
  _cached_size_ = 0;
3319
53.6k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3320
53.6k
  ::memset(&size_bytes_, 0, static_cast<size_t>(
3321
53.6k
      reinterpret_cast<char*>(&inode_) -
3322
53.6k
      reinterpret_cast<char*>(&size_bytes_)) + sizeof(inode_));
3323
53.6k
}
3324
3325
26.2k
FilePB::~FilePB() {
3326
  // @@protoc_insertion_point(destructor:yb.tablet.FilePB)
3327
26.2k
  SharedDtor();
3328
26.2k
}
3329
3330
26.2k
void FilePB::SharedDtor() {
3331
26.2k
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3332
26.2k
}
3333
3334
0
void FilePB::SetCachedSize(int size) const {
3335
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3336
0
  _cached_size_ = size;
3337
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3338
0
}
3339
0
const ::google::protobuf::Descriptor* FilePB::descriptor() {
3340
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
3341
0
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3342
0
}
3343
3344
0
const FilePB& FilePB::default_instance() {
3345
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsFilePB();
3346
0
  return *internal_default_instance();
3347
0
}
3348
3349
0
FilePB* FilePB::New(::google::protobuf::Arena* arena) const {
3350
0
  FilePB* n = new FilePB;
3351
0
  if (arena != NULL) {
3352
0
    arena->Own(n);
3353
0
  }
3354
0
  return n;
3355
0
}
3356
3357
0
void FilePB::Clear() {
3358
// @@protoc_insertion_point(message_clear_start:yb.tablet.FilePB)
3359
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3360
  // Prevent compiler warnings about cached_has_bits being unused
3361
0
  (void) cached_has_bits;
3362
3363
0
  cached_has_bits = _has_bits_[0];
3364
0
  if (cached_has_bits & 0x00000001u) {
3365
0
    GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3366
0
    (*name_.UnsafeRawStringPointer())->clear();
3367
0
  }
3368
0
  if (cached_has_bits & 6u) {
3369
0
    ::memset(&size_bytes_, 0, static_cast<size_t>(
3370
0
        reinterpret_cast<char*>(&inode_) -
3371
0
        reinterpret_cast<char*>(&size_bytes_)) + sizeof(inode_));
3372
0
  }
3373
0
  _has_bits_.Clear();
3374
0
  _internal_metadata_.Clear();
3375
0
}
3376
3377
bool FilePB::MergePartialFromCodedStream(
3378
6.63k
    ::google::protobuf::io::CodedInputStream* input) {
3379
19.9k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3380
6.63k
  ::google::protobuf::uint32 tag;
3381
  // @@protoc_insertion_point(parse_start:yb.tablet.FilePB)
3382
26.5k
  for (;;) {
3383
26.5k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3384
26.5k
    tag = p.first;
3385
26.5k
    if (!p.second) 
goto handle_unusual6.63k
;
3386
19.9k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3387
      // optional string name = 1;
3388
6.63k
      case 1: {
3389
6.63k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3390
6.63k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3391
6.63k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3392
6.63k
                input, this->mutable_name()));
3393
6.63k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3394
6.63k
            this->name().data(), static_cast<int>(this->name().length()),
3395
6.63k
            ::google::protobuf::internal::WireFormat::PARSE,
3396
6.63k
            "yb.tablet.FilePB.name");
3397
18.4E
        } else {
3398
18.4E
          goto handle_unusual;
3399
18.4E
        }
3400
6.63k
        break;
3401
6.63k
      }
3402
3403
      // optional uint64 size_bytes = 2;
3404
6.63k
      case 2: {
3405
6.63k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3406
6.63k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3407
6.63k
          set_has_size_bytes();
3408
6.63k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3409
6.63k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3410
6.63k
                 input, &size_bytes_)));
3411
6.63k
        } else {
3412
0
          goto handle_unusual;
3413
0
        }
3414
6.63k
        break;
3415
6.63k
      }
3416
3417
      // optional uint64 inode = 3;
3418
6.63k
      case 3: {
3419
6.63k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3420
6.63k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3421
6.63k
          set_has_inode();
3422
6.63k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3423
6.63k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3424
6.63k
                 input, &inode_)));
3425
6.63k
        } else {
3426
0
          goto handle_unusual;
3427
0
        }
3428
6.63k
        break;
3429
6.63k
      }
3430
3431
6.63k
      default: {
3432
6.63k
      handle_unusual:
3433
6.63k
        if (tag == 0) {
3434
6.63k
          goto success;
3435
6.63k
        }
3436
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3437
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3438
0
        break;
3439
0
      }
3440
19.9k
    }
3441
19.9k
  }
3442
6.63k
success:
3443
  // @@protoc_insertion_point(parse_success:yb.tablet.FilePB)
3444
6.63k
  return true;
3445
0
failure:
3446
  // @@protoc_insertion_point(parse_failure:yb.tablet.FilePB)
3447
0
  return false;
3448
6.63k
#undef DO_
3449
6.63k
}
3450
3451
void FilePB::SerializeWithCachedSizes(
3452
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3453
  // @@protoc_insertion_point(serialize_start:yb.tablet.FilePB)
3454
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3455
0
  (void) cached_has_bits;
3456
3457
0
  cached_has_bits = _has_bits_[0];
3458
  // optional string name = 1;
3459
0
  if (cached_has_bits & 0x00000001u) {
3460
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3461
0
      this->name().data(), static_cast<int>(this->name().length()),
3462
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3463
0
      "yb.tablet.FilePB.name");
3464
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3465
0
      1, this->name(), output);
3466
0
  }
3467
3468
  // optional uint64 size_bytes = 2;
3469
0
  if (cached_has_bits & 0x00000002u) {
3470
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->size_bytes(), output);
3471
0
  }
3472
3473
  // optional uint64 inode = 3;
3474
0
  if (cached_has_bits & 0x00000004u) {
3475
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->inode(), output);
3476
0
  }
3477
3478
0
  if (_internal_metadata_.have_unknown_fields()) {
3479
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3480
0
        _internal_metadata_.unknown_fields(), output);
3481
0
  }
3482
  // @@protoc_insertion_point(serialize_end:yb.tablet.FilePB)
3483
0
}
3484
3485
::google::protobuf::uint8* FilePB::InternalSerializeWithCachedSizesToArray(
3486
13.9k
    bool deterministic, ::google::protobuf::uint8* target) const {
3487
13.9k
  (void)deterministic; // Unused
3488
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.FilePB)
3489
13.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
3490
13.9k
  (void) cached_has_bits;
3491
3492
13.9k
  cached_has_bits = _has_bits_[0];
3493
  // optional string name = 1;
3494
13.9k
  if (
cached_has_bits & 0x00000001u13.9k
) {
3495
13.9k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3496
13.9k
      this->name().data(), static_cast<int>(this->name().length()),
3497
13.9k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3498
13.9k
      "yb.tablet.FilePB.name");
3499
13.9k
    target =
3500
13.9k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3501
13.9k
        1, this->name(), target);
3502
13.9k
  }
3503
3504
  // optional uint64 size_bytes = 2;
3505
13.9k
  if (
cached_has_bits & 0x00000002u13.9k
) {
3506
13.9k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->size_bytes(), target);
3507
13.9k
  }
3508
3509
  // optional uint64 inode = 3;
3510
13.9k
  if (
cached_has_bits & 0x00000004u13.9k
) {
3511
13.9k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->inode(), target);
3512
13.9k
  }
3513
3514
13.9k
  if (_internal_metadata_.have_unknown_fields()) {
3515
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3516
0
        _internal_metadata_.unknown_fields(), target);
3517
0
  }
3518
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.FilePB)
3519
13.9k
  return target;
3520
13.9k
}
3521
3522
20.5k
size_t FilePB::ByteSizeLong() const {
3523
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.FilePB)
3524
20.5k
  size_t total_size = 0;
3525
3526
20.5k
  if (_internal_metadata_.have_unknown_fields()) {
3527
0
    total_size +=
3528
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3529
0
        _internal_metadata_.unknown_fields());
3530
0
  }
3531
20.5k
  if (_has_bits_[0 / 32] & 7u) {
3532
    // optional string name = 1;
3533
20.5k
    if (has_name()) {
3534
20.5k
      total_size += 1 +
3535
20.5k
        ::google::protobuf::internal::WireFormatLite::StringSize(
3536
20.5k
          this->name());
3537
20.5k
    }
3538
3539
    // optional uint64 size_bytes = 2;
3540
20.5k
    if (has_size_bytes()) {
3541
20.5k
      total_size += 1 +
3542
20.5k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3543
20.5k
          this->size_bytes());
3544
20.5k
    }
3545
3546
    // optional uint64 inode = 3;
3547
20.5k
    if (has_inode()) {
3548
20.5k
      total_size += 1 +
3549
20.5k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3550
20.5k
          this->inode());
3551
20.5k
    }
3552
3553
20.5k
  }
3554
20.5k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3555
20.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3556
20.5k
  _cached_size_ = cached_size;
3557
20.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3558
20.5k
  return total_size;
3559
20.5k
}
3560
3561
0
void FilePB::MergeFrom(const ::google::protobuf::Message& from) {
3562
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.FilePB)
3563
0
  GOOGLE_DCHECK_NE(&from, this);
3564
0
  const FilePB* source =
3565
0
      ::google::protobuf::internal::DynamicCastToGenerated<const FilePB>(
3566
0
          &from);
3567
0
  if (source == NULL) {
3568
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.FilePB)
3569
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3570
0
  } else {
3571
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.FilePB)
3572
0
    MergeFrom(*source);
3573
0
  }
3574
0
}
3575
3576
13.2k
void FilePB::MergeFrom(const FilePB& from) {
3577
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.FilePB)
3578
13.2k
  GOOGLE_DCHECK_NE(&from, this);
3579
13.2k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3580
13.2k
  ::google::protobuf::uint32 cached_has_bits = 0;
3581
13.2k
  (void) cached_has_bits;
3582
3583
13.2k
  cached_has_bits = from._has_bits_[0];
3584
13.2k
  if (cached_has_bits & 7u) {
3585
13.2k
    if (cached_has_bits & 0x00000001u) {
3586
13.2k
      set_has_name();
3587
13.2k
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3588
13.2k
    }
3589
13.2k
    if (cached_has_bits & 0x00000002u) {
3590
13.2k
      size_bytes_ = from.size_bytes_;
3591
13.2k
    }
3592
13.2k
    if (cached_has_bits & 0x00000004u) {
3593
13.2k
      inode_ = from.inode_;
3594
13.2k
    }
3595
13.2k
    _has_bits_[0] |= cached_has_bits;
3596
13.2k
  }
3597
13.2k
}
3598
3599
0
void FilePB::CopyFrom(const ::google::protobuf::Message& from) {
3600
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.FilePB)
3601
0
  if (&from == this) return;
3602
0
  Clear();
3603
0
  MergeFrom(from);
3604
0
}
3605
3606
0
void FilePB::CopyFrom(const FilePB& from) {
3607
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.FilePB)
3608
0
  if (&from == this) return;
3609
0
  Clear();
3610
0
  MergeFrom(from);
3611
0
}
3612
3613
0
bool FilePB::IsInitialized() const {
3614
0
  return true;
3615
0
}
3616
3617
0
void FilePB::Swap(FilePB* other) {
3618
0
  if (other == this) return;
3619
0
  InternalSwap(other);
3620
0
}
3621
210
void FilePB::InternalSwap(FilePB* other) {
3622
210
  using std::swap;
3623
210
  name_.Swap(&other->name_);
3624
210
  swap(size_bytes_, other->size_bytes_);
3625
210
  swap(inode_, other->inode_);
3626
210
  swap(_has_bits_[0], other->_has_bits_[0]);
3627
210
  _internal_metadata_.Swap(&other->_internal_metadata_);
3628
210
  swap(_cached_size_, other->_cached_size_);
3629
210
}
3630
3631
26.4k
::google::protobuf::Metadata FilePB::GetMetadata() const {
3632
26.4k
  protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
3633
26.4k
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages];
3634
26.4k
}
3635
3636
3637
// ===================================================================
3638
3639
26.8k
void SnapshotFilePB::InitAsDefaultInstance() {
3640
26.8k
  ::yb::tablet::_SnapshotFilePB_default_instance_._instance.get_mutable()->file_ = const_cast< ::yb::tablet::FilePB*>(
3641
26.8k
      ::yb::tablet::FilePB::internal_default_instance());
3642
26.8k
}
3643
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3644
const int SnapshotFilePB::kFileFieldNumber;
3645
const int SnapshotFilePB::kSnapshotIdFieldNumber;
3646
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3647
3648
SnapshotFilePB::SnapshotFilePB()
3649
27.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3650
27.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3651
248
    ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsSnapshotFilePB();
3652
248
  }
3653
27.1k
  SharedCtor();
3654
  // @@protoc_insertion_point(constructor:yb.tablet.SnapshotFilePB)
3655
27.1k
}
3656
SnapshotFilePB::SnapshotFilePB(const SnapshotFilePB& from)
3657
  : ::google::protobuf::Message(),
3658
      _internal_metadata_(NULL),
3659
      _has_bits_(from._has_bits_),
3660
0
      _cached_size_(0) {
3661
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3662
0
  snapshot_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3663
0
  if (from.has_snapshot_id()) {
3664
0
    snapshot_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_id_);
3665
0
  }
3666
0
  if (from.has_file()) {
3667
0
    file_ = new ::yb::tablet::FilePB(*from.file_);
3668
0
  } else {
3669
0
    file_ = NULL;
3670
0
  }
3671
  // @@protoc_insertion_point(copy_constructor:yb.tablet.SnapshotFilePB)
3672
0
}
3673
3674
27.1k
void SnapshotFilePB::SharedCtor() {
3675
27.1k
  _cached_size_ = 0;
3676
27.1k
  snapshot_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3677
27.1k
  file_ = NULL;
3678
27.1k
}
3679
3680
248
SnapshotFilePB::~SnapshotFilePB() {
3681
  // @@protoc_insertion_point(destructor:yb.tablet.SnapshotFilePB)
3682
248
  SharedDtor();
3683
248
}
3684
3685
248
void SnapshotFilePB::SharedDtor() {
3686
248
  snapshot_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3687
248
  if (this != internal_default_instance()) delete file_;
3688
248
}
3689
3690
0
void SnapshotFilePB::SetCachedSize(int size) const {
3691
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3692
0
  _cached_size_ = size;
3693
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3694
0
}
3695
0
const ::google::protobuf::Descriptor* SnapshotFilePB::descriptor() {
3696
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
3697
0
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3698
0
}
3699
3700
0
const SnapshotFilePB& SnapshotFilePB::default_instance() {
3701
0
  ::protobuf_yb_2ftablet_2fmetadata_2eproto::InitDefaultsSnapshotFilePB();
3702
0
  return *internal_default_instance();
3703
0
}
3704
3705
0
SnapshotFilePB* SnapshotFilePB::New(::google::protobuf::Arena* arena) const {
3706
0
  SnapshotFilePB* n = new SnapshotFilePB;
3707
0
  if (arena != NULL) {
3708
0
    arena->Own(n);
3709
0
  }
3710
0
  return n;
3711
0
}
3712
3713
0
void SnapshotFilePB::Clear() {
3714
// @@protoc_insertion_point(message_clear_start:yb.tablet.SnapshotFilePB)
3715
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3716
  // Prevent compiler warnings about cached_has_bits being unused
3717
0
  (void) cached_has_bits;
3718
3719
0
  cached_has_bits = _has_bits_[0];
3720
0
  if (cached_has_bits & 3u) {
3721
0
    if (cached_has_bits & 0x00000001u) {
3722
0
      GOOGLE_DCHECK(!snapshot_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3723
0
      (*snapshot_id_.UnsafeRawStringPointer())->clear();
3724
0
    }
3725
0
    if (cached_has_bits & 0x00000002u) {
3726
0
      GOOGLE_DCHECK(file_ != NULL);
3727
0
      file_->Clear();
3728
0
    }
3729
0
  }
3730
0
  _has_bits_.Clear();
3731
0
  _internal_metadata_.Clear();
3732
0
}
3733
3734
bool SnapshotFilePB::MergePartialFromCodedStream(
3735
60
    ::google::protobuf::io::CodedInputStream* input) {
3736
120
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3737
60
  ::google::protobuf::uint32 tag;
3738
  // @@protoc_insertion_point(parse_start:yb.tablet.SnapshotFilePB)
3739
180
  for (;;) {
3740
180
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3741
180
    tag = p.first;
3742
180
    if (!p.second) 
goto handle_unusual60
;
3743
120
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3744
      // optional .yb.tablet.FilePB file = 1;
3745
60
      case 1: {
3746
60
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3747
60
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3748
60
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3749
60
               input, mutable_file()));
3750
60
        } else {
3751
0
          goto handle_unusual;
3752
0
        }
3753
60
        break;
3754
60
      }
3755
3756
      // optional bytes snapshot_id = 2;
3757
60
      case 2: {
3758
60
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3759
60
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3760
60
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3761
60
                input, this->mutable_snapshot_id()));
3762
60
        } else {
3763
0
          goto handle_unusual;
3764
0
        }
3765
60
        break;
3766
60
      }
3767
3768
60
      default: {
3769
60
      handle_unusual:
3770
60
        if (tag == 0) {
3771
60
          goto success;
3772
60
        }
3773
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3774
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3775
0
        break;
3776
0
      }
3777
120
    }
3778
120
  }
3779
60
success:
3780
  // @@protoc_insertion_point(parse_success:yb.tablet.SnapshotFilePB)
3781
60
  return true;
3782
0
failure:
3783
  // @@protoc_insertion_point(parse_failure:yb.tablet.SnapshotFilePB)
3784
0
  return false;
3785
60
#undef DO_
3786
60
}
3787
3788
void SnapshotFilePB::SerializeWithCachedSizes(
3789
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3790
  // @@protoc_insertion_point(serialize_start:yb.tablet.SnapshotFilePB)
3791
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3792
0
  (void) cached_has_bits;
3793
3794
0
  cached_has_bits = _has_bits_[0];
3795
  // optional .yb.tablet.FilePB file = 1;
3796
0
  if (cached_has_bits & 0x00000002u) {
3797
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3798
0
      1, *this->file_, output);
3799
0
  }
3800
3801
  // optional bytes snapshot_id = 2;
3802
0
  if (cached_has_bits & 0x00000001u) {
3803
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3804
0
      2, this->snapshot_id(), output);
3805
0
  }
3806
3807
0
  if (_internal_metadata_.have_unknown_fields()) {
3808
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3809
0
        _internal_metadata_.unknown_fields(), output);
3810
0
  }
3811
  // @@protoc_insertion_point(serialize_end:yb.tablet.SnapshotFilePB)
3812
0
}
3813
3814
::google::protobuf::uint8* SnapshotFilePB::InternalSerializeWithCachedSizesToArray(
3815
60
    bool deterministic, ::google::protobuf::uint8* target) const {
3816
60
  (void)deterministic; // Unused
3817
  // @@protoc_insertion_point(serialize_to_array_start:yb.tablet.SnapshotFilePB)
3818
60
  ::google::protobuf::uint32 cached_has_bits = 0;
3819
60
  (void) cached_has_bits;
3820
3821
60
  cached_has_bits = _has_bits_[0];
3822
  // optional .yb.tablet.FilePB file = 1;
3823
60
  if (cached_has_bits & 0x00000002u) {
3824
60
    target = ::google::protobuf::internal::WireFormatLite::
3825
60
      InternalWriteMessageToArray(
3826
60
        1, *this->file_, deterministic, target);
3827
60
  }
3828
3829
  // optional bytes snapshot_id = 2;
3830
60
  if (cached_has_bits & 0x00000001u) {
3831
60
    target =
3832
60
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3833
60
        2, this->snapshot_id(), target);
3834
60
  }
3835
3836
60
  if (_internal_metadata_.have_unknown_fields()) {
3837
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3838
0
        _internal_metadata_.unknown_fields(), target);
3839
0
  }
3840
  // @@protoc_insertion_point(serialize_to_array_end:yb.tablet.SnapshotFilePB)
3841
60
  return target;
3842
60
}
3843
3844
120
size_t SnapshotFilePB::ByteSizeLong() const {
3845
// @@protoc_insertion_point(message_byte_size_start:yb.tablet.SnapshotFilePB)
3846
120
  size_t total_size = 0;
3847
3848
120
  if (_internal_metadata_.have_unknown_fields()) {
3849
0
    total_size +=
3850
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3851
0
        _internal_metadata_.unknown_fields());
3852
0
  }
3853
120
  if (_has_bits_[0 / 32] & 3u) {
3854
    // optional bytes snapshot_id = 2;
3855
120
    if (has_snapshot_id()) {
3856
120
      total_size += 1 +
3857
120
        ::google::protobuf::internal::WireFormatLite::BytesSize(
3858
120
          this->snapshot_id());
3859
120
    }
3860
3861
    // optional .yb.tablet.FilePB file = 1;
3862
120
    if (has_file()) {
3863
120
      total_size += 1 +
3864
120
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3865
120
          *this->file_);
3866
120
    }
3867
3868
120
  }
3869
120
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3870
120
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3871
120
  _cached_size_ = cached_size;
3872
120
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3873
120
  return total_size;
3874
120
}
3875
3876
0
void SnapshotFilePB::MergeFrom(const ::google::protobuf::Message& from) {
3877
// @@protoc_insertion_point(generalized_merge_from_start:yb.tablet.SnapshotFilePB)
3878
0
  GOOGLE_DCHECK_NE(&from, this);
3879
0
  const SnapshotFilePB* source =
3880
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SnapshotFilePB>(
3881
0
          &from);
3882
0
  if (source == NULL) {
3883
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tablet.SnapshotFilePB)
3884
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3885
0
  } else {
3886
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tablet.SnapshotFilePB)
3887
0
    MergeFrom(*source);
3888
0
  }
3889
0
}
3890
3891
124
void SnapshotFilePB::MergeFrom(const SnapshotFilePB& from) {
3892
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tablet.SnapshotFilePB)
3893
124
  GOOGLE_DCHECK_NE(&from, this);
3894
124
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3895
124
  ::google::protobuf::uint32 cached_has_bits = 0;
3896
124
  (void) cached_has_bits;
3897
3898
124
  cached_has_bits = from._has_bits_[0];
3899
124
  if (cached_has_bits & 3u) {
3900
124
    if (cached_has_bits & 0x00000001u) {
3901
124
      set_has_snapshot_id();
3902
124
      snapshot_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.snapshot_id_);
3903
124
    }
3904
124
    if (cached_has_bits & 0x00000002u) {
3905
124
      mutable_file()->::yb::tablet::FilePB::MergeFrom(from.file());
3906
124
    }
3907
124
  }
3908
124
}
3909
3910
0
void SnapshotFilePB::CopyFrom(const ::google::protobuf::Message& from) {
3911
// @@protoc_insertion_point(generalized_copy_from_start:yb.tablet.SnapshotFilePB)
3912
0
  if (&from == this) return;
3913
0
  Clear();
3914
0
  MergeFrom(from);
3915
0
}
3916
3917
0
void SnapshotFilePB::CopyFrom(const SnapshotFilePB& from) {
3918
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tablet.SnapshotFilePB)
3919
0
  if (&from == this) return;
3920
0
  Clear();
3921
0
  MergeFrom(from);
3922
0
}
3923
3924
0
bool SnapshotFilePB::IsInitialized() const {
3925
0
  return true;
3926
0
}
3927
3928
0
void SnapshotFilePB::Swap(SnapshotFilePB* other) {
3929
0
  if (other == this) return;
3930
0
  InternalSwap(other);
3931
0
}
3932
0
void SnapshotFilePB::InternalSwap(SnapshotFilePB* other) {
3933
0
  using std::swap;
3934
0
  snapshot_id_.Swap(&other->snapshot_id_);
3935
0
  swap(file_, other->file_);
3936
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3937
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3938
0
  swap(_cached_size_, other->_cached_size_);
3939
0
}
3940
3941
248
::google::protobuf::Metadata SnapshotFilePB::GetMetadata() const {
3942
248
  protobuf_yb_2ftablet_2fmetadata_2eproto::protobuf_AssignDescriptorsOnce();
3943
248
  return ::protobuf_yb_2ftablet_2fmetadata_2eproto::file_level_metadata[kIndexInFileMessages];
3944
248
}
3945
3946
3947
// @@protoc_insertion_point(namespace_scope)
3948
}  // namespace tablet
3949
}  // namespace yb
3950
3951
// @@protoc_insertion_point(global_scope)