YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/catalog_entity_info.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/master/catalog_entity_info.proto
3
4
#include "yb/master/catalog_entity_info.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace master {
25
class PlacementBlockPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<PlacementBlockPB>
28
      _instance;
29
} _PlacementBlockPB_default_instance_;
30
class PlacementInfoPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<PlacementInfoPB>
33
      _instance;
34
} _PlacementInfoPB_default_instance_;
35
class ReplicationInfoPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<ReplicationInfoPB>
38
      _instance;
39
} _ReplicationInfoPB_default_instance_;
40
class BackfillJobPB_BackfillStateEntry_DoNotUseDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<BackfillJobPB_BackfillStateEntry_DoNotUse>
43
      _instance;
44
} _BackfillJobPB_BackfillStateEntry_DoNotUse_default_instance_;
45
class BackfillJobPBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<BackfillJobPB>
48
      _instance;
49
} _BackfillJobPB_default_instance_;
50
class SysTablesEntryPBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<SysTablesEntryPB>
53
      _instance;
54
} _SysTablesEntryPB_default_instance_;
55
class SysTabletsEntryPB_BackfilledUntilEntry_DoNotUseDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse>
58
      _instance;
59
} _SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse_default_instance_;
60
class SysTabletsEntryPBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<SysTabletsEntryPB>
63
      _instance;
64
} _SysTabletsEntryPB_default_instance_;
65
class SysNamespaceEntryPBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<SysNamespaceEntryPB>
68
      _instance;
69
} _SysNamespaceEntryPB_default_instance_;
70
class SysUDTypeEntryPBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<SysUDTypeEntryPB>
73
      _instance;
74
} _SysUDTypeEntryPB_default_instance_;
75
class BlacklistPBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<BlacklistPB>
78
      _instance;
79
} _BlacklistPB_default_instance_;
80
class EncryptionInfoPBDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<EncryptionInfoPB>
83
      _instance;
84
} _EncryptionInfoPB_default_instance_;
85
class SysClusterConfigEntryPBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<SysClusterConfigEntryPB>
88
      _instance;
89
} _SysClusterConfigEntryPB_default_instance_;
90
class SysRedisConfigEntryPBDefaultTypeInternal {
91
 public:
92
  ::google::protobuf::internal::ExplicitlyConstructed<SysRedisConfigEntryPB>
93
      _instance;
94
} _SysRedisConfigEntryPB_default_instance_;
95
class ResourcePermissionsPBDefaultTypeInternal {
96
 public:
97
  ::google::protobuf::internal::ExplicitlyConstructed<ResourcePermissionsPB>
98
      _instance;
99
} _ResourcePermissionsPB_default_instance_;
100
class SysRoleEntryPBDefaultTypeInternal {
101
 public:
102
  ::google::protobuf::internal::ExplicitlyConstructed<SysRoleEntryPB>
103
      _instance;
104
} _SysRoleEntryPB_default_instance_;
105
class SysSecurityConfigEntryPBDefaultTypeInternal {
106
 public:
107
  ::google::protobuf::internal::ExplicitlyConstructed<SysSecurityConfigEntryPB>
108
      _instance;
109
} _SysSecurityConfigEntryPB_default_instance_;
110
class SysYSQLCatalogConfigEntryPBDefaultTypeInternal {
111
 public:
112
  ::google::protobuf::internal::ExplicitlyConstructed<SysYSQLCatalogConfigEntryPB>
113
      _instance;
114
} _SysYSQLCatalogConfigEntryPB_default_instance_;
115
class SysTransactionTablesConfigEntryPBDefaultTypeInternal {
116
 public:
117
  ::google::protobuf::internal::ExplicitlyConstructed<SysTransactionTablesConfigEntryPB>
118
      _instance;
119
} _SysTransactionTablesConfigEntryPB_default_instance_;
120
class SysConfigEntryPBDefaultTypeInternal {
121
 public:
122
  ::google::protobuf::internal::ExplicitlyConstructed<SysConfigEntryPB>
123
      _instance;
124
  const ::yb::master::SysSecurityConfigEntryPB* security_config_;
125
  const ::yb::master::SysYSQLCatalogConfigEntryPB* ysql_catalog_config_;
126
  const ::yb::master::SysTransactionTablesConfigEntryPB* transaction_tables_config_;
127
} _SysConfigEntryPB_default_instance_;
128
class SysRowEntryDefaultTypeInternal {
129
 public:
130
  ::google::protobuf::internal::ExplicitlyConstructed<SysRowEntry>
131
      _instance;
132
} _SysRowEntry_default_instance_;
133
class SysRowEntriesDefaultTypeInternal {
134
 public:
135
  ::google::protobuf::internal::ExplicitlyConstructed<SysRowEntries>
136
      _instance;
137
} _SysRowEntries_default_instance_;
138
class DdlLogEntryPBDefaultTypeInternal {
139
 public:
140
  ::google::protobuf::internal::ExplicitlyConstructed<DdlLogEntryPB>
141
      _instance;
142
} _DdlLogEntryPB_default_instance_;
143
class CDCStreamOptionsPBDefaultTypeInternal {
144
 public:
145
  ::google::protobuf::internal::ExplicitlyConstructed<CDCStreamOptionsPB>
146
      _instance;
147
} _CDCStreamOptionsPB_default_instance_;
148
class SysCDCStreamEntryPBDefaultTypeInternal {
149
 public:
150
  ::google::protobuf::internal::ExplicitlyConstructed<SysCDCStreamEntryPB>
151
      _instance;
152
} _SysCDCStreamEntryPB_default_instance_;
153
class SysSnapshotEntryPB_TabletSnapshotPBDefaultTypeInternal {
154
 public:
155
  ::google::protobuf::internal::ExplicitlyConstructed<SysSnapshotEntryPB_TabletSnapshotPB>
156
      _instance;
157
} _SysSnapshotEntryPB_TabletSnapshotPB_default_instance_;
158
class SysSnapshotEntryPBDefaultTypeInternal {
159
 public:
160
  ::google::protobuf::internal::ExplicitlyConstructed<SysSnapshotEntryPB>
161
      _instance;
162
} _SysSnapshotEntryPB_default_instance_;
163
class SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUseDefaultTypeInternal {
164
 public:
165
  ::google::protobuf::internal::ExplicitlyConstructed<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse>
166
      _instance;
167
} _SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse_default_instance_;
168
class SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUseDefaultTypeInternal {
169
 public:
170
  ::google::protobuf::internal::ExplicitlyConstructed<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse>
171
      _instance;
172
} _SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse_default_instance_;
173
class SysUniverseReplicationEntryPBDefaultTypeInternal {
174
 public:
175
  ::google::protobuf::internal::ExplicitlyConstructed<SysUniverseReplicationEntryPB>
176
      _instance;
177
} _SysUniverseReplicationEntryPB_default_instance_;
178
}  // namespace master
179
}  // namespace yb
180
namespace protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto {
181
15.8k
void InitDefaultsPlacementBlockPBImpl() {
182
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
183
184
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
185
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
186
#else
187
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
188
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
189
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
190
15.8k
  {
191
15.8k
    void* ptr = &::yb::master::_PlacementBlockPB_default_instance_;
192
15.8k
    new (ptr) ::yb::master::PlacementBlockPB();
193
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
194
15.8k
  }
195
15.8k
  ::yb::master::PlacementBlockPB::InitAsDefaultInstance();
196
15.8k
}
197
198
78.2k
void InitDefaultsPlacementBlockPB() {
199
78.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
200
78.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPlacementBlockPBImpl);
201
78.2k
}
202
203
15.8k
void InitDefaultsPlacementInfoPBImpl() {
204
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
205
206
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
207
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
208
#else
209
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
210
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
211
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementBlockPB();
212
15.8k
  {
213
15.8k
    void* ptr = &::yb::master::_PlacementInfoPB_default_instance_;
214
15.8k
    new (ptr) ::yb::master::PlacementInfoPB();
215
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
216
15.8k
  }
217
15.8k
  ::yb::master::PlacementInfoPB::InitAsDefaultInstance();
218
15.8k
}
219
220
344k
void InitDefaultsPlacementInfoPB() {
221
344k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
222
344k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPlacementInfoPBImpl);
223
344k
}
224
225
15.8k
void InitDefaultsReplicationInfoPBImpl() {
226
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
227
228
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
229
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
230
#else
231
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
232
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
233
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementInfoPB();
234
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
235
15.8k
  {
236
15.8k
    void* ptr = &::yb::master::_ReplicationInfoPB_default_instance_;
237
15.8k
    new (ptr) ::yb::master::ReplicationInfoPB();
238
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
239
15.8k
  }
240
15.8k
  ::yb::master::ReplicationInfoPB::InitAsDefaultInstance();
241
15.8k
}
242
243
442k
void InitDefaultsReplicationInfoPB() {
244
442k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
245
442k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReplicationInfoPBImpl);
246
442k
}
247
248
15.8k
void InitDefaultsBackfillJobPB_BackfillStateEntry_DoNotUseImpl() {
249
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
250
251
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
252
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
253
#else
254
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
255
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
256
15.8k
  {
257
15.8k
    void* ptr = &::yb::master::_BackfillJobPB_BackfillStateEntry_DoNotUse_default_instance_;
258
15.8k
    new (ptr) ::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse();
259
15.8k
  }
260
15.8k
  ::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse::InitAsDefaultInstance();
261
15.8k
}
262
263
31.6k
void InitDefaultsBackfillJobPB_BackfillStateEntry_DoNotUse() {
264
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
265
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBackfillJobPB_BackfillStateEntry_DoNotUseImpl);
266
31.6k
}
267
268
15.8k
void InitDefaultsBackfillJobPBImpl() {
269
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
270
271
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
272
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
273
#else
274
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
275
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
276
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
277
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBackfillJobPB_BackfillStateEntry_DoNotUse();
278
15.8k
  {
279
15.8k
    void* ptr = &::yb::master::_BackfillJobPB_default_instance_;
280
15.8k
    new (ptr) ::yb::master::BackfillJobPB();
281
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
282
15.8k
  }
283
15.8k
  ::yb::master::BackfillJobPB::InitAsDefaultInstance();
284
15.8k
}
285
286
54.0k
void InitDefaultsBackfillJobPB() {
287
54.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
288
54.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBackfillJobPBImpl);
289
54.0k
}
290
291
15.8k
void InitDefaultsSysTablesEntryPBImpl() {
292
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
293
294
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
295
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
296
#else
297
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
298
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
299
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
300
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB();
301
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsReplicationInfoPB();
302
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
303
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB();
304
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBackfillJobPB();
305
15.8k
  {
306
15.8k
    void* ptr = &::yb::master::_SysTablesEntryPB_default_instance_;
307
15.8k
    new (ptr) ::yb::master::SysTablesEntryPB();
308
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
309
15.8k
  }
310
15.8k
  ::yb::master::SysTablesEntryPB::InitAsDefaultInstance();
311
15.8k
}
312
313
740k
void InitDefaultsSysTablesEntryPB() {
314
740k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
315
740k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysTablesEntryPBImpl);
316
740k
}
317
318
15.8k
void InitDefaultsSysTabletsEntryPB_BackfilledUntilEntry_DoNotUseImpl() {
319
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
320
321
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
322
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
323
#else
324
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
325
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
326
15.8k
  {
327
15.8k
    void* ptr = &::yb::master::_SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse_default_instance_;
328
15.8k
    new (ptr) ::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse();
329
15.8k
  }
330
15.8k
  ::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::InitAsDefaultInstance();
331
15.8k
}
332
333
31.6k
void InitDefaultsSysTabletsEntryPB_BackfilledUntilEntry_DoNotUse() {
334
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
335
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysTabletsEntryPB_BackfilledUntilEntry_DoNotUseImpl);
336
31.6k
}
337
338
15.8k
void InitDefaultsSysTabletsEntryPBImpl() {
339
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
340
341
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
342
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
343
#else
344
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
345
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
346
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
347
15.8k
  protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePB();
348
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTabletsEntryPB_BackfilledUntilEntry_DoNotUse();
349
15.8k
  {
350
15.8k
    void* ptr = &::yb::master::_SysTabletsEntryPB_default_instance_;
351
15.8k
    new (ptr) ::yb::master::SysTabletsEntryPB();
352
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
353
15.8k
  }
354
15.8k
  ::yb::master::SysTabletsEntryPB::InitAsDefaultInstance();
355
15.8k
}
356
357
488k
void InitDefaultsSysTabletsEntryPB() {
358
488k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
359
488k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysTabletsEntryPBImpl);
360
488k
}
361
362
15.8k
void InitDefaultsSysNamespaceEntryPBImpl() {
363
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
364
365
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
366
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
367
#else
368
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
369
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
370
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB();
371
15.8k
  {
372
15.8k
    void* ptr = &::yb::master::_SysNamespaceEntryPB_default_instance_;
373
15.8k
    new (ptr) ::yb::master::SysNamespaceEntryPB();
374
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
375
15.8k
  }
376
15.8k
  ::yb::master::SysNamespaceEntryPB::InitAsDefaultInstance();
377
15.8k
}
378
379
47.7k
void InitDefaultsSysNamespaceEntryPB() {
380
47.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
381
47.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysNamespaceEntryPBImpl);
382
47.7k
}
383
384
15.8k
void InitDefaultsSysUDTypeEntryPBImpl() {
385
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
386
387
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
388
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
389
#else
390
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
391
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
392
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
393
15.8k
  {
394
15.8k
    void* ptr = &::yb::master::_SysUDTypeEntryPB_default_instance_;
395
15.8k
    new (ptr) ::yb::master::SysUDTypeEntryPB();
396
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
397
15.8k
  }
398
15.8k
  ::yb::master::SysUDTypeEntryPB::InitAsDefaultInstance();
399
15.8k
}
400
401
15.9k
void InitDefaultsSysUDTypeEntryPB() {
402
15.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
403
15.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysUDTypeEntryPBImpl);
404
15.9k
}
405
406
15.8k
void InitDefaultsBlacklistPBImpl() {
407
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
408
409
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
410
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
411
#else
412
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
413
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
414
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
415
15.8k
  {
416
15.8k
    void* ptr = &::yb::master::_BlacklistPB_default_instance_;
417
15.8k
    new (ptr) ::yb::master::BlacklistPB();
418
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
419
15.8k
  }
420
15.8k
  ::yb::master::BlacklistPB::InitAsDefaultInstance();
421
15.8k
}
422
423
294k
void InitDefaultsBlacklistPB() {
424
294k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
425
294k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlacklistPBImpl);
426
294k
}
427
428
15.8k
void InitDefaultsEncryptionInfoPBImpl() {
429
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
430
431
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
432
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
433
#else
434
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
435
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
436
15.8k
  {
437
15.8k
    void* ptr = &::yb::master::_EncryptionInfoPB_default_instance_;
438
15.8k
    new (ptr) ::yb::master::EncryptionInfoPB();
439
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
440
15.8k
  }
441
15.8k
  ::yb::master::EncryptionInfoPB::InitAsDefaultInstance();
442
15.8k
}
443
444
31.6k
void InitDefaultsEncryptionInfoPB() {
445
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
446
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEncryptionInfoPBImpl);
447
31.6k
}
448
449
15.8k
void InitDefaultsSysClusterConfigEntryPBImpl() {
450
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
451
452
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
453
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
454
#else
455
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
456
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
457
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsReplicationInfoPB();
458
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBlacklistPB();
459
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsEncryptionInfoPB();
460
15.8k
  protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::InitDefaultsConsumerRegistryPB();
461
15.8k
  {
462
15.8k
    void* ptr = &::yb::master::_SysClusterConfigEntryPB_default_instance_;
463
15.8k
    new (ptr) ::yb::master::SysClusterConfigEntryPB();
464
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
465
15.8k
  }
466
15.8k
  ::yb::master::SysClusterConfigEntryPB::InitAsDefaultInstance();
467
15.8k
}
468
469
621k
void InitDefaultsSysClusterConfigEntryPB() {
470
621k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
471
621k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysClusterConfigEntryPBImpl);
472
621k
}
473
474
15.8k
void InitDefaultsSysRedisConfigEntryPBImpl() {
475
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
476
477
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
478
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
479
#else
480
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
481
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
482
15.8k
  {
483
15.8k
    void* ptr = &::yb::master::_SysRedisConfigEntryPB_default_instance_;
484
15.8k
    new (ptr) ::yb::master::SysRedisConfigEntryPB();
485
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
486
15.8k
  }
487
15.8k
  ::yb::master::SysRedisConfigEntryPB::InitAsDefaultInstance();
488
15.8k
}
489
490
15.8k
void InitDefaultsSysRedisConfigEntryPB() {
491
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
492
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysRedisConfigEntryPBImpl);
493
15.8k
}
494
495
15.8k
void InitDefaultsResourcePermissionsPBImpl() {
496
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
497
498
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
499
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
500
#else
501
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
502
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
503
15.8k
  {
504
15.8k
    void* ptr = &::yb::master::_ResourcePermissionsPB_default_instance_;
505
15.8k
    new (ptr) ::yb::master::ResourcePermissionsPB();
506
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
507
15.8k
  }
508
15.8k
  ::yb::master::ResourcePermissionsPB::InitAsDefaultInstance();
509
15.8k
}
510
511
43.4k
void InitDefaultsResourcePermissionsPB() {
512
43.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
513
43.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResourcePermissionsPBImpl);
514
43.4k
}
515
516
15.8k
void InitDefaultsSysRoleEntryPBImpl() {
517
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
518
519
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
520
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
521
#else
522
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
523
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
524
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsResourcePermissionsPB();
525
15.8k
  {
526
15.8k
    void* ptr = &::yb::master::_SysRoleEntryPB_default_instance_;
527
15.8k
    new (ptr) ::yb::master::SysRoleEntryPB();
528
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
529
15.8k
  }
530
15.8k
  ::yb::master::SysRoleEntryPB::InitAsDefaultInstance();
531
15.8k
}
532
533
29.6k
void InitDefaultsSysRoleEntryPB() {
534
29.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
535
29.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysRoleEntryPBImpl);
536
29.6k
}
537
538
15.8k
void InitDefaultsSysSecurityConfigEntryPBImpl() {
539
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
540
541
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
542
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
543
#else
544
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
545
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
546
15.8k
  {
547
15.8k
    void* ptr = &::yb::master::_SysSecurityConfigEntryPB_default_instance_;
548
15.8k
    new (ptr) ::yb::master::SysSecurityConfigEntryPB();
549
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
550
15.8k
  }
551
15.8k
  ::yb::master::SysSecurityConfigEntryPB::InitAsDefaultInstance();
552
15.8k
}
553
554
42.4k
void InitDefaultsSysSecurityConfigEntryPB() {
555
42.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
556
42.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysSecurityConfigEntryPBImpl);
557
42.4k
}
558
559
15.8k
void InitDefaultsSysYSQLCatalogConfigEntryPBImpl() {
560
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
561
562
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
563
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
564
#else
565
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
566
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
567
15.8k
  {
568
15.8k
    void* ptr = &::yb::master::_SysYSQLCatalogConfigEntryPB_default_instance_;
569
15.8k
    new (ptr) ::yb::master::SysYSQLCatalogConfigEntryPB();
570
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
571
15.8k
  }
572
15.8k
  ::yb::master::SysYSQLCatalogConfigEntryPB::InitAsDefaultInstance();
573
15.8k
}
574
575
38.7k
void InitDefaultsSysYSQLCatalogConfigEntryPB() {
576
38.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
577
38.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysYSQLCatalogConfigEntryPBImpl);
578
38.7k
}
579
580
15.8k
void InitDefaultsSysTransactionTablesConfigEntryPBImpl() {
581
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
582
583
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
584
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
585
#else
586
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
587
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
588
15.8k
  {
589
15.8k
    void* ptr = &::yb::master::_SysTransactionTablesConfigEntryPB_default_instance_;
590
15.8k
    new (ptr) ::yb::master::SysTransactionTablesConfigEntryPB();
591
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
592
15.8k
  }
593
15.8k
  ::yb::master::SysTransactionTablesConfigEntryPB::InitAsDefaultInstance();
594
15.8k
}
595
596
36.9k
void InitDefaultsSysTransactionTablesConfigEntryPB() {
597
36.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
598
36.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysTransactionTablesConfigEntryPBImpl);
599
36.9k
}
600
601
15.8k
void InitDefaultsSysConfigEntryPBImpl() {
602
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
603
604
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
605
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
606
#else
607
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
608
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
609
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSecurityConfigEntryPB();
610
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysYSQLCatalogConfigEntryPB();
611
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTransactionTablesConfigEntryPB();
612
15.8k
  {
613
15.8k
    void* ptr = &::yb::master::_SysConfigEntryPB_default_instance_;
614
15.8k
    new (ptr) ::yb::master::SysConfigEntryPB();
615
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
616
15.8k
  }
617
15.8k
  ::yb::master::SysConfigEntryPB::InitAsDefaultInstance();
618
15.8k
}
619
620
40.2k
void InitDefaultsSysConfigEntryPB() {
621
40.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
622
40.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysConfigEntryPBImpl);
623
40.2k
}
624
625
15.8k
void InitDefaultsSysRowEntryImpl() {
626
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
627
628
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
629
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
630
#else
631
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
632
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
633
15.8k
  {
634
15.8k
    void* ptr = &::yb::master::_SysRowEntry_default_instance_;
635
15.8k
    new (ptr) ::yb::master::SysRowEntry();
636
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
637
15.8k
  }
638
15.8k
  ::yb::master::SysRowEntry::InitAsDefaultInstance();
639
15.8k
}
640
641
63.3k
void InitDefaultsSysRowEntry() {
642
63.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
643
63.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysRowEntryImpl);
644
63.3k
}
645
646
15.8k
void InitDefaultsSysRowEntriesImpl() {
647
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
648
649
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
650
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
651
#else
652
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
653
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
654
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntry();
655
15.8k
  {
656
15.8k
    void* ptr = &::yb::master::_SysRowEntries_default_instance_;
657
15.8k
    new (ptr) ::yb::master::SysRowEntries();
658
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
659
15.8k
  }
660
15.8k
  ::yb::master::SysRowEntries::InitAsDefaultInstance();
661
15.8k
}
662
663
15.8k
void InitDefaultsSysRowEntries() {
664
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
665
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysRowEntriesImpl);
666
15.8k
}
667
668
15.8k
void InitDefaultsDdlLogEntryPBImpl() {
669
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
670
671
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
672
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
673
#else
674
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
675
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
676
15.8k
  {
677
15.8k
    void* ptr = &::yb::master::_DdlLogEntryPB_default_instance_;
678
15.8k
    new (ptr) ::yb::master::DdlLogEntryPB();
679
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
680
15.8k
  }
681
15.8k
  ::yb::master::DdlLogEntryPB::InitAsDefaultInstance();
682
15.8k
}
683
684
36.2k
void InitDefaultsDdlLogEntryPB() {
685
36.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
686
36.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDdlLogEntryPBImpl);
687
36.2k
}
688
689
15.8k
void InitDefaultsCDCStreamOptionsPBImpl() {
690
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
691
692
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
693
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
694
#else
695
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
696
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
697
15.8k
  {
698
15.8k
    void* ptr = &::yb::master::_CDCStreamOptionsPB_default_instance_;
699
15.8k
    new (ptr) ::yb::master::CDCStreamOptionsPB();
700
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
701
15.8k
  }
702
15.8k
  ::yb::master::CDCStreamOptionsPB::InitAsDefaultInstance();
703
15.8k
}
704
705
98.6k
void InitDefaultsCDCStreamOptionsPB() {
706
98.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
707
98.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCDCStreamOptionsPBImpl);
708
98.6k
}
709
710
15.8k
void InitDefaultsSysCDCStreamEntryPBImpl() {
711
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
712
713
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
714
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
715
#else
716
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
717
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
718
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsCDCStreamOptionsPB();
719
15.8k
  {
720
15.8k
    void* ptr = &::yb::master::_SysCDCStreamEntryPB_default_instance_;
721
15.8k
    new (ptr) ::yb::master::SysCDCStreamEntryPB();
722
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
723
15.8k
  }
724
15.8k
  ::yb::master::SysCDCStreamEntryPB::InitAsDefaultInstance();
725
15.8k
}
726
727
34.5k
void InitDefaultsSysCDCStreamEntryPB() {
728
34.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
729
34.5k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysCDCStreamEntryPBImpl);
730
34.5k
}
731
732
15.8k
void InitDefaultsSysSnapshotEntryPB_TabletSnapshotPBImpl() {
733
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
734
735
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
736
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
737
#else
738
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
739
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
740
15.8k
  {
741
15.8k
    void* ptr = &::yb::master::_SysSnapshotEntryPB_TabletSnapshotPB_default_instance_;
742
15.8k
    new (ptr) ::yb::master::SysSnapshotEntryPB_TabletSnapshotPB();
743
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
744
15.8k
  }
745
15.8k
  ::yb::master::SysSnapshotEntryPB_TabletSnapshotPB::InitAsDefaultInstance();
746
15.8k
}
747
748
31.6k
void InitDefaultsSysSnapshotEntryPB_TabletSnapshotPB() {
749
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
750
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysSnapshotEntryPB_TabletSnapshotPBImpl);
751
31.6k
}
752
753
15.8k
void InitDefaultsSysSnapshotEntryPBImpl() {
754
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
755
756
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
757
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
758
#else
759
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
760
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
761
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSnapshotEntryPB_TabletSnapshotPB();
762
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntry();
763
15.8k
  {
764
15.8k
    void* ptr = &::yb::master::_SysSnapshotEntryPB_default_instance_;
765
15.8k
    new (ptr) ::yb::master::SysSnapshotEntryPB();
766
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
767
15.8k
  }
768
15.8k
  ::yb::master::SysSnapshotEntryPB::InitAsDefaultInstance();
769
15.8k
}
770
771
31.6k
void InitDefaultsSysSnapshotEntryPB() {
772
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
773
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysSnapshotEntryPBImpl);
774
31.6k
}
775
776
15.8k
void InitDefaultsSysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUseImpl() {
777
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
778
779
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
780
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
781
#else
782
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
783
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
784
15.8k
  {
785
15.8k
    void* ptr = &::yb::master::_SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse_default_instance_;
786
15.8k
    new (ptr) ::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse();
787
15.8k
  }
788
15.8k
  ::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::InitAsDefaultInstance();
789
15.8k
}
790
791
31.6k
void InitDefaultsSysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse() {
792
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
793
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUseImpl);
794
31.6k
}
795
796
15.8k
void InitDefaultsSysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUseImpl() {
797
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
798
799
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
800
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
801
#else
802
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
803
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
804
15.8k
  {
805
15.8k
    void* ptr = &::yb::master::_SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse_default_instance_;
806
15.8k
    new (ptr) ::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse();
807
15.8k
  }
808
15.8k
  ::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::InitAsDefaultInstance();
809
15.8k
}
810
811
31.6k
void InitDefaultsSysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse() {
812
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
813
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUseImpl);
814
31.6k
}
815
816
15.8k
void InitDefaultsSysUniverseReplicationEntryPBImpl() {
817
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
818
819
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
820
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
821
#else
822
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
823
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
824
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
825
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse();
826
15.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse();
827
15.8k
  {
828
15.8k
    void* ptr = &::yb::master::_SysUniverseReplicationEntryPB_default_instance_;
829
15.8k
    new (ptr) ::yb::master::SysUniverseReplicationEntryPB();
830
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
831
15.8k
  }
832
15.8k
  ::yb::master::SysUniverseReplicationEntryPB::InitAsDefaultInstance();
833
15.8k
}
834
835
31.6k
void InitDefaultsSysUniverseReplicationEntryPB() {
836
31.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
837
31.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSysUniverseReplicationEntryPBImpl);
838
31.6k
}
839
840
::google::protobuf::Metadata file_level_metadata[30];
841
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[8];
842
843
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
844
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementBlockPB, _has_bits_),
845
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementBlockPB, _internal_metadata_),
846
  ~0u,  // no _extensions_
847
  ~0u,  // no _oneof_case_
848
  ~0u,  // no _weak_field_map_
849
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementBlockPB, cloud_info_),
850
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementBlockPB, min_num_replicas_),
851
  0,
852
  1,
853
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementInfoPB, _has_bits_),
854
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementInfoPB, _internal_metadata_),
855
  ~0u,  // no _extensions_
856
  ~0u,  // no _oneof_case_
857
  ~0u,  // no _weak_field_map_
858
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementInfoPB, num_replicas_),
859
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementInfoPB, placement_blocks_),
860
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::PlacementInfoPB, placement_uuid_),
861
  1,
862
  ~0u,
863
  0,
864
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReplicationInfoPB, _has_bits_),
865
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReplicationInfoPB, _internal_metadata_),
866
  ~0u,  // no _extensions_
867
  ~0u,  // no _oneof_case_
868
  ~0u,  // no _weak_field_map_
869
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReplicationInfoPB, live_replicas_),
870
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReplicationInfoPB, read_replicas_),
871
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReplicationInfoPB, affinitized_leaders_),
872
  0,
873
  ~0u,
874
  ~0u,
875
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse, _has_bits_),
876
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse, _internal_metadata_),
877
  ~0u,  // no _extensions_
878
  ~0u,  // no _oneof_case_
879
  ~0u,  // no _weak_field_map_
880
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse, key_),
881
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse, value_),
882
  0,
883
  1,
884
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, _has_bits_),
885
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, _internal_metadata_),
886
  ~0u,  // no _extensions_
887
  ~0u,  // no _oneof_case_
888
  ~0u,  // no _weak_field_map_
889
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, indexes_),
890
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, backfill_state_),
891
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, num_rows_processed_),
892
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BackfillJobPB, backfilling_timestamp_),
893
  ~0u,
894
  ~0u,
895
  1,
896
  0,
897
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, _has_bits_),
898
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, _internal_metadata_),
899
  ~0u,  // no _extensions_
900
  ~0u,  // no _oneof_case_
901
  ~0u,  // no _weak_field_map_
902
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, name_),
903
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, table_type_),
904
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, namespace_id_),
905
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, namespace_name_),
906
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, version_),
907
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, schema_),
908
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, fully_applied_schema_),
909
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, partition_schema_),
910
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, partition_list_version_),
911
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, next_column_id_),
912
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, replication_info_),
913
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, state_),
914
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, state_msg_),
915
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, indexes_),
916
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, indexed_table_id_),
917
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, is_local_index_),
918
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, is_unique_index_),
919
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, index_info_),
920
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, is_pg_shared_table_),
921
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, wal_retention_secs_),
922
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, colocated_),
923
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, fully_applied_schema_version_),
924
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, fully_applied_indexes_),
925
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, fully_applied_index_info_),
926
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, transaction_),
927
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, updates_only_index_permissions_),
928
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, backfill_jobs_),
929
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, hide_state_),
930
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTablesEntryPB, transaction_table_tablespace_id_),
931
  0,
932
  25,
933
  2,
934
  4,
935
  13,
936
  6,
937
  7,
938
  9,
939
  22,
940
  15,
941
  8,
942
  14,
943
  1,
944
  ~0u,
945
  3,
946
  16,
947
  17,
948
  10,
949
  18,
950
  21,
951
  19,
952
  20,
953
  ~0u,
954
  11,
955
  12,
956
  23,
957
  ~0u,
958
  24,
959
  5,
960
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse, _has_bits_),
961
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse, _internal_metadata_),
962
  ~0u,  // no _extensions_
963
  ~0u,  // no _oneof_case_
964
  ~0u,  // no _weak_field_map_
965
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse, key_),
966
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse, value_),
967
  0,
968
  1,
969
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, _has_bits_),
970
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, _internal_metadata_),
971
  ~0u,  // no _extensions_
972
  ~0u,  // no _oneof_case_
973
  ~0u,  // no _weak_field_map_
974
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, obsolete_start_key_),
975
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, obsolete_end_key_),
976
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, partition_),
977
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, committed_consensus_state_),
978
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, state_),
979
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, state_msg_),
980
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, table_id_),
981
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, table_ids_),
982
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, colocated_),
983
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, deprecated_backfilled_until_),
984
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, split_depth_),
985
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, split_parent_tablet_id_),
986
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, backfilled_until_),
987
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, split_tablet_ids_),
988
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, hide_hybrid_time_),
989
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTabletsEntryPB, retained_by_snapshot_schedules_),
990
  0,
991
  1,
992
  7,
993
  6,
994
  11,
995
  2,
996
  3,
997
  ~0u,
998
  10,
999
  4,
1000
  8,
1001
  5,
1002
  ~0u,
1003
  ~0u,
1004
  9,
1005
  ~0u,
1006
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, _has_bits_),
1007
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, _internal_metadata_),
1008
  ~0u,  // no _extensions_
1009
  ~0u,  // no _oneof_case_
1010
  ~0u,  // no _weak_field_map_
1011
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, name_),
1012
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, database_type_),
1013
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, next_pg_oid_),
1014
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, colocated_),
1015
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, transaction_),
1016
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysNamespaceEntryPB, state_),
1017
  0,
1018
  5,
1019
  2,
1020
  3,
1021
  1,
1022
  4,
1023
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, _has_bits_),
1024
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, _internal_metadata_),
1025
  ~0u,  // no _extensions_
1026
  ~0u,  // no _oneof_case_
1027
  ~0u,  // no _weak_field_map_
1028
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, namespace_id_),
1029
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, name_),
1030
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, field_names_),
1031
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUDTypeEntryPB, field_types_),
1032
  0,
1033
  1,
1034
  ~0u,
1035
  ~0u,
1036
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BlacklistPB, _has_bits_),
1037
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BlacklistPB, _internal_metadata_),
1038
  ~0u,  // no _extensions_
1039
  ~0u,  // no _oneof_case_
1040
  ~0u,  // no _weak_field_map_
1041
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BlacklistPB, hosts_),
1042
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BlacklistPB, initial_replica_load_),
1043
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::BlacklistPB, initial_leader_load_),
1044
  ~0u,
1045
  0,
1046
  1,
1047
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, _has_bits_),
1048
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, _internal_metadata_),
1049
  ~0u,  // no _extensions_
1050
  ~0u,  // no _oneof_case_
1051
  ~0u,  // no _weak_field_map_
1052
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, encryption_enabled_),
1053
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, universe_key_registry_encoded_),
1054
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, key_path_),
1055
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, latest_version_id_),
1056
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::EncryptionInfoPB, key_in_memory_),
1057
  3,
1058
  0,
1059
  1,
1060
  2,
1061
  4,
1062
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, _has_bits_),
1063
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, _internal_metadata_),
1064
  ~0u,  // no _extensions_
1065
  ~0u,  // no _oneof_case_
1066
  ~0u,  // no _weak_field_map_
1067
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, version_),
1068
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, cluster_uuid_),
1069
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, replication_info_),
1070
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, server_blacklist_),
1071
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, leader_blacklist_),
1072
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, encryption_info_),
1073
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysClusterConfigEntryPB, consumer_registry_),
1074
  6,
1075
  0,
1076
  1,
1077
  2,
1078
  5,
1079
  3,
1080
  4,
1081
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRedisConfigEntryPB, _has_bits_),
1082
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRedisConfigEntryPB, _internal_metadata_),
1083
  ~0u,  // no _extensions_
1084
  ~0u,  // no _oneof_case_
1085
  ~0u,  // no _weak_field_map_
1086
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRedisConfigEntryPB, key_),
1087
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRedisConfigEntryPB, args_),
1088
  0,
1089
  ~0u,
1090
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, _has_bits_),
1091
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, _internal_metadata_),
1092
  ~0u,  // no _extensions_
1093
  ~0u,  // no _oneof_case_
1094
  ~0u,  // no _weak_field_map_
1095
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, resource_name_),
1096
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, canonical_resource_),
1097
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, namespace_name_),
1098
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, resource_type_),
1099
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionsPB, permissions_),
1100
  0,
1101
  1,
1102
  2,
1103
  3,
1104
  ~0u,
1105
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, _has_bits_),
1106
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, _internal_metadata_),
1107
  ~0u,  // no _extensions_
1108
  ~0u,  // no _oneof_case_
1109
  ~0u,  // no _weak_field_map_
1110
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, role_),
1111
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, can_login_),
1112
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, is_superuser_),
1113
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, member_of_),
1114
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, salted_hash_),
1115
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRoleEntryPB, resources_),
1116
  0,
1117
  2,
1118
  3,
1119
  ~0u,
1120
  1,
1121
  ~0u,
1122
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSecurityConfigEntryPB, _has_bits_),
1123
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSecurityConfigEntryPB, _internal_metadata_),
1124
  ~0u,  // no _extensions_
1125
  ~0u,  // no _oneof_case_
1126
  ~0u,  // no _weak_field_map_
1127
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSecurityConfigEntryPB, roles_version_),
1128
  0,
1129
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, _has_bits_),
1130
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, _internal_metadata_),
1131
  ~0u,  // no _extensions_
1132
  ~0u,  // no _oneof_case_
1133
  ~0u,  // no _weak_field_map_
1134
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, version_),
1135
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, initdb_done_),
1136
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, initdb_error_),
1137
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysYSQLCatalogConfigEntryPB, transactional_sys_catalog_enabled_),
1138
  1,
1139
  2,
1140
  0,
1141
  3,
1142
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTransactionTablesConfigEntryPB, _has_bits_),
1143
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTransactionTablesConfigEntryPB, _internal_metadata_),
1144
  ~0u,  // no _extensions_
1145
  ~0u,  // no _oneof_case_
1146
  ~0u,  // no _weak_field_map_
1147
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysTransactionTablesConfigEntryPB, version_),
1148
  0,
1149
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysConfigEntryPB, _has_bits_),
1150
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysConfigEntryPB, _internal_metadata_),
1151
  ~0u,  // no _extensions_
1152
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysConfigEntryPB, _oneof_case_[0]),
1153
  ~0u,  // no _weak_field_map_
1154
  offsetof(::yb::master::SysConfigEntryPBDefaultTypeInternal, security_config_),
1155
  offsetof(::yb::master::SysConfigEntryPBDefaultTypeInternal, ysql_catalog_config_),
1156
  offsetof(::yb::master::SysConfigEntryPBDefaultTypeInternal, transaction_tables_config_),
1157
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysConfigEntryPB, config_),
1158
  ~0u,
1159
  ~0u,
1160
  ~0u,
1161
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntry, _has_bits_),
1162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntry, _internal_metadata_),
1163
  ~0u,  // no _extensions_
1164
  ~0u,  // no _oneof_case_
1165
  ~0u,  // no _weak_field_map_
1166
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntry, type_),
1167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntry, id_),
1168
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntry, data_),
1169
  2,
1170
  0,
1171
  1,
1172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntries, _has_bits_),
1173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntries, _internal_metadata_),
1174
  ~0u,  // no _extensions_
1175
  ~0u,  // no _oneof_case_
1176
  ~0u,  // no _weak_field_map_
1177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysRowEntries, entries_),
1178
  ~0u,
1179
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, _has_bits_),
1180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, _internal_metadata_),
1181
  ~0u,  // no _extensions_
1182
  ~0u,  // no _oneof_case_
1183
  ~0u,  // no _weak_field_map_
1184
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, table_type_),
1185
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, namespace_name_),
1186
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, namespace_id_),
1187
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, table_name_),
1188
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, table_id_),
1189
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, action_),
1190
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DdlLogEntryPB, time_),
1191
  6,
1192
  0,
1193
  1,
1194
  2,
1195
  3,
1196
  4,
1197
  5,
1198
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamOptionsPB, _has_bits_),
1199
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamOptionsPB, _internal_metadata_),
1200
  ~0u,  // no _extensions_
1201
  ~0u,  // no _oneof_case_
1202
  ~0u,  // no _weak_field_map_
1203
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamOptionsPB, key_),
1204
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CDCStreamOptionsPB, value_),
1205
  0,
1206
  1,
1207
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, _has_bits_),
1208
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, _internal_metadata_),
1209
  ~0u,  // no _extensions_
1210
  ~0u,  // no _oneof_case_
1211
  ~0u,  // no _weak_field_map_
1212
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, table_id_),
1213
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, options_),
1214
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, state_),
1215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysCDCStreamEntryPB, namespace_id_),
1216
  ~0u,
1217
  ~0u,
1218
  1,
1219
  0,
1220
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB_TabletSnapshotPB, _has_bits_),
1221
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB_TabletSnapshotPB, _internal_metadata_),
1222
  ~0u,  // no _extensions_
1223
  ~0u,  // no _oneof_case_
1224
  ~0u,  // no _weak_field_map_
1225
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB_TabletSnapshotPB, id_),
1226
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB_TabletSnapshotPB, state_),
1227
  0,
1228
  1,
1229
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, _has_bits_),
1230
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, _internal_metadata_),
1231
  ~0u,  // no _extensions_
1232
  ~0u,  // no _oneof_case_
1233
  ~0u,  // no _weak_field_map_
1234
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, state_),
1235
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, tablet_snapshots_),
1236
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, entries_),
1237
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, snapshot_hybrid_time_),
1238
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, version_),
1239
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, schedule_id_),
1240
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysSnapshotEntryPB, previous_snapshot_hybrid_time_),
1241
  4,
1242
  ~0u,
1243
  ~0u,
1244
  1,
1245
  2,
1246
  0,
1247
  3,
1248
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse, _has_bits_),
1249
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse, _internal_metadata_),
1250
  ~0u,  // no _extensions_
1251
  ~0u,  // no _oneof_case_
1252
  ~0u,  // no _weak_field_map_
1253
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse, key_),
1254
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse, value_),
1255
  0,
1256
  1,
1257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse, _has_bits_),
1258
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse, _internal_metadata_),
1259
  ~0u,  // no _extensions_
1260
  ~0u,  // no _oneof_case_
1261
  ~0u,  // no _weak_field_map_
1262
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse, key_),
1263
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse, value_),
1264
  0,
1265
  1,
1266
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, _has_bits_),
1267
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, _internal_metadata_),
1268
  ~0u,  // no _extensions_
1269
  ~0u,  // no _oneof_case_
1270
  ~0u,  // no _weak_field_map_
1271
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, producer_id_),
1272
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, producer_master_addresses_),
1273
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, tables_),
1274
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, state_),
1275
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, validated_tables_),
1276
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::SysUniverseReplicationEntryPB, table_streams_),
1277
  0,
1278
  ~0u,
1279
  ~0u,
1280
  1,
1281
  ~0u,
1282
  ~0u,
1283
};
1284
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1285
  { 0, 7, sizeof(::yb::master::PlacementBlockPB)},
1286
  { 9, 17, sizeof(::yb::master::PlacementInfoPB)},
1287
  { 20, 28, sizeof(::yb::master::ReplicationInfoPB)},
1288
  { 31, 38, sizeof(::yb::master::BackfillJobPB_BackfillStateEntry_DoNotUse)},
1289
  { 40, 49, sizeof(::yb::master::BackfillJobPB)},
1290
  { 53, 87, sizeof(::yb::master::SysTablesEntryPB)},
1291
  { 116, 123, sizeof(::yb::master::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse)},
1292
  { 125, 146, sizeof(::yb::master::SysTabletsEntryPB)},
1293
  { 162, 173, sizeof(::yb::master::SysNamespaceEntryPB)},
1294
  { 179, 188, sizeof(::yb::master::SysUDTypeEntryPB)},
1295
  { 192, 200, sizeof(::yb::master::BlacklistPB)},
1296
  { 203, 213, sizeof(::yb::master::EncryptionInfoPB)},
1297
  { 218, 230, sizeof(::yb::master::SysClusterConfigEntryPB)},
1298
  { 237, 244, sizeof(::yb::master::SysRedisConfigEntryPB)},
1299
  { 246, 256, sizeof(::yb::master::ResourcePermissionsPB)},
1300
  { 261, 272, sizeof(::yb::master::SysRoleEntryPB)},
1301
  { 278, 284, sizeof(::yb::master::SysSecurityConfigEntryPB)},
1302
  { 285, 294, sizeof(::yb::master::SysYSQLCatalogConfigEntryPB)},
1303
  { 298, 304, sizeof(::yb::master::SysTransactionTablesConfigEntryPB)},
1304
  { 305, 314, sizeof(::yb::master::SysConfigEntryPB)},
1305
  { 317, 325, sizeof(::yb::master::SysRowEntry)},
1306
  { 328, 334, sizeof(::yb::master::SysRowEntries)},
1307
  { 335, 347, sizeof(::yb::master::DdlLogEntryPB)},
1308
  { 354, 361, sizeof(::yb::master::CDCStreamOptionsPB)},
1309
  { 363, 372, sizeof(::yb::master::SysCDCStreamEntryPB)},
1310
  { 376, 383, sizeof(::yb::master::SysSnapshotEntryPB_TabletSnapshotPB)},
1311
  { 385, 397, sizeof(::yb::master::SysSnapshotEntryPB)},
1312
  { 404, 411, sizeof(::yb::master::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse)},
1313
  { 413, 420, sizeof(::yb::master::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse)},
1314
  { 422, 433, sizeof(::yb::master::SysUniverseReplicationEntryPB)},
1315
};
1316
1317
static ::google::protobuf::Message const * const file_default_instances[] = {
1318
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_PlacementBlockPB_default_instance_),
1319
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_PlacementInfoPB_default_instance_),
1320
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReplicationInfoPB_default_instance_),
1321
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_BackfillJobPB_BackfillStateEntry_DoNotUse_default_instance_),
1322
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_BackfillJobPB_default_instance_),
1323
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysTablesEntryPB_default_instance_),
1324
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse_default_instance_),
1325
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysTabletsEntryPB_default_instance_),
1326
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysNamespaceEntryPB_default_instance_),
1327
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysUDTypeEntryPB_default_instance_),
1328
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_BlacklistPB_default_instance_),
1329
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_EncryptionInfoPB_default_instance_),
1330
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysClusterConfigEntryPB_default_instance_),
1331
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysRedisConfigEntryPB_default_instance_),
1332
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ResourcePermissionsPB_default_instance_),
1333
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysRoleEntryPB_default_instance_),
1334
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysSecurityConfigEntryPB_default_instance_),
1335
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysYSQLCatalogConfigEntryPB_default_instance_),
1336
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysTransactionTablesConfigEntryPB_default_instance_),
1337
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysConfigEntryPB_default_instance_),
1338
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysRowEntry_default_instance_),
1339
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysRowEntries_default_instance_),
1340
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DdlLogEntryPB_default_instance_),
1341
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CDCStreamOptionsPB_default_instance_),
1342
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysCDCStreamEntryPB_default_instance_),
1343
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysSnapshotEntryPB_TabletSnapshotPB_default_instance_),
1344
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysSnapshotEntryPB_default_instance_),
1345
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse_default_instance_),
1346
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse_default_instance_),
1347
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_SysUniverseReplicationEntryPB_default_instance_),
1348
};
1349
1350
2.00k
void protobuf_AssignDescriptors() {
1351
2.00k
  AddDescriptors();
1352
2.00k
  ::google::protobuf::MessageFactory* factory = NULL;
1353
2.00k
  AssignDescriptors(
1354
2.00k
      "yb/master/catalog_entity_info.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1355
2.00k
      file_level_metadata, file_level_enum_descriptors, NULL);
1356
2.00k
}
1357
1358
5.94M
void protobuf_AssignDescriptorsOnce() {
1359
5.94M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1360
5.94M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1361
5.94M
}
1362
1363
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
1364
0
void protobuf_RegisterTypes(const ::std::string&) {
1365
0
  protobuf_AssignDescriptorsOnce();
1366
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 30);
1367
0
}
1368
1369
15.8k
void AddDescriptorsImpl() {
1370
15.8k
  InitDefaults();
1371
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1372
15.8k
      "\n#yb/master/catalog_entity_info.proto\022\ty"
1373
15.8k
      "b.master\032\031yb/cdc/cdc_consumer.proto\032\026yb/"
1374
15.8k
      "common/common.proto\032\032yb/common/common_ne"
1375
15.8k
      "t.proto\032\034yb/common/common_types.proto\032\033y"
1376
15.8k
      "b/consensus/metadata.proto\032\034yb/master/ma"
1377
15.8k
      "ster_types.proto\"Q\n\020PlacementBlockPB\022#\n\n"
1378
15.8k
      "cloud_info\030\001 \001(\0132\017.yb.CloudInfoPB\022\030\n\020min"
1379
15.8k
      "_num_replicas\030\002 \001(\005\"v\n\017PlacementInfoPB\022\024"
1380
15.8k
      "\n\014num_replicas\030\001 \001(\005\0225\n\020placement_blocks"
1381
15.8k
      "\030\002 \003(\0132\033.yb.master.PlacementBlockPB\022\026\n\016p"
1382
15.8k
      "lacement_uuid\030\003 \001(\014\"\247\001\n\021ReplicationInfoP"
1383
15.8k
      "B\0221\n\rlive_replicas\030\001 \001(\0132\032.yb.master.Pla"
1384
15.8k
      "cementInfoPB\0221\n\rread_replicas\030\002 \003(\0132\032.yb"
1385
15.8k
      ".master.PlacementInfoPB\022,\n\023affinitized_l"
1386
15.8k
      "eaders\030\003 \003(\0132\017.yb.CloudInfoPB\"\275\002\n\rBackfi"
1387
15.8k
      "llJobPB\022 \n\007indexes\030\001 \003(\0132\017.yb.IndexInfoP"
1388
15.8k
      "B\022C\n\016backfill_state\030\002 \003(\0132+.yb.master.Ba"
1389
15.8k
      "ckfillJobPB.BackfillStateEntry\022\035\n\022num_ro"
1390
15.8k
      "ws_processed\030\004 \001(\004:\0010\022\035\n\025backfilling_tim"
1391
15.8k
      "estamp\030\003 \001(\004\032T\n\022BackfillStateEntry\022\013\n\003ke"
1392
15.8k
      "y\030\001 \001(\t\022-\n\005value\030\002 \001(\0162\036.yb.master.Backf"
1393
15.8k
      "illJobPB.State:\0028\001\"1\n\005State\022\017\n\013IN_PROGRE"
1394
15.8k
      "SS\020\000\022\n\n\006FAILED\020\001\022\013\n\007SUCCESS\020\002\"\322\t\n\020SysTab"
1395
15.8k
      "lesEntryPB\022\014\n\004name\030\001 \002(\014\0225\n\ntable_type\030\n"
1396
15.8k
      " \001(\0162\r.yb.TableType:\022DEFAULT_TABLE_TYPE\022"
1397
15.8k
      "\024\n\014namespace_id\030\013 \001(\014\022\026\n\016namespace_name\030"
1398
15.8k
      "\036 \001(\014\022\017\n\007version\030\002 \002(\r\022\034\n\006schema\030\003 \002(\0132\014"
1399
15.8k
      ".yb.SchemaPB\022*\n\024fully_applied_schema\030\004 \001"
1400
15.8k
      "(\0132\014.yb.SchemaPB\022/\n\020partition_schema\030\t \001"
1401
15.8k
      "(\0132\025.yb.PartitionSchemaPB\022\036\n\026partition_l"
1402
15.8k
      "ist_version\030\034 \001(\r\022\026\n\016next_column_id\030\010 \001("
1403
15.8k
      "\005\0226\n\020replication_info\030\005 \001(\0132\034.yb.master."
1404
15.8k
      "ReplicationInfoPB\0229\n\005state\030\006 \001(\0162!.yb.ma"
1405
15.8k
      "ster.SysTablesEntryPB.State:\007UNKNOWN\022\021\n\t"
1406
15.8k
      "state_msg\030\007 \001(\014\022 \n\007indexes\030\014 \003(\0132\017.yb.In"
1407
15.8k
      "dexInfoPB\022\030\n\020indexed_table_id\030\r \001(\014\022\035\n\016i"
1408
15.8k
      "s_local_index\030\016 \001(\010:\005false\022\036\n\017is_unique_"
1409
15.8k
      "index\030\017 \001(\010:\005false\022#\n\nindex_info\030\026 \001(\0132\017"
1410
15.8k
      ".yb.IndexInfoPB\022!\n\022is_pg_shared_table\030\020 "
1411
15.8k
      "\001(\010:\005false\022\032\n\022wal_retention_secs\030\030 \001(\r\022\030"
1412
15.8k
      "\n\tcolocated\030\031 \001(\010:\005false\022$\n\034fully_applie"
1413
15.8k
      "d_schema_version\030\027 \001(\r\022.\n\025fully_applied_"
1414
15.8k
      "indexes\030\032 \003(\0132\017.yb.IndexInfoPB\0221\n\030fully_"
1415
15.8k
      "applied_index_info\030\033 \001(\0132\017.yb.IndexInfoP"
1416
15.8k
      "B\022.\n\013transaction\030\035 \001(\0132\031.yb.TransactionM"
1417
15.8k
      "etadataPB\022-\n\036updates_only_index_permissi"
1418
15.8k
      "ons\030\037 \001(\010:\005false\022/\n\rbackfill_jobs\030  \003(\0132"
1419
15.8k
      "\030.yb.master.BackfillJobPB\0229\n\nhide_state\030"
1420
15.8k
      "! \001(\0162%.yb.master.SysTablesEntryPB.HideS"
1421
15.8k
      "tate\022\'\n\037transaction_table_tablespace_id\030"
1422
15.8k
      "\" \001(\014\"Y\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tPREPARING"
1423
15.8k
      "\020\001\022\013\n\007RUNNING\020\002\022\014\n\010ALTERING\020\003\022\014\n\010DELETIN"
1424
15.8k
      "G\020\004\022\013\n\007DELETED\020\005\"0\n\tHideState\022\013\n\007VISIBLE"
1425
15.8k
      "\020\000\022\n\n\006HIDING\020\001\022\n\n\006HIDDEN\020\002\"\333\005\n\021SysTablet"
1426
15.8k
      "sEntryPB\022\032\n\022OBSOLETE_start_key\030\001 \001(\014\022\030\n\020"
1427
15.8k
      "OBSOLETE_end_key\030\002 \001(\014\022\"\n\tpartition\030\007 \001("
1428
15.8k
      "\0132\017.yb.PartitionPB\022A\n\031committed_consensu"
1429
15.8k
      "s_state\030\003 \001(\0132\036.yb.consensus.ConsensusSt"
1430
15.8k
      "atePB\022:\n\005state\030\004 \001(\0162\".yb.master.SysTabl"
1431
15.8k
      "etsEntryPB.State:\007UNKNOWN\022\021\n\tstate_msg\030\005"
1432
15.8k
      " \001(\014\022\020\n\010table_id\030\006 \002(\014\022\021\n\ttable_ids\030\010 \003("
1433
15.8k
      "\014\022\030\n\tcolocated\030\t \001(\010:\005false\022#\n\033DEPRECATE"
1434
15.8k
      "D_backfilled_until\030\n \001(\014\022\023\n\013split_depth\030"
1435
15.8k
      "\013 \001(\004\022\036\n\026split_parent_tablet_id\030\r \001(\014\022K\n"
1436
15.8k
      "\020backfilled_until\030\014 \003(\01321.yb.master.SysT"
1437
15.8k
      "abletsEntryPB.BackfilledUntilEntry\022\030\n\020sp"
1438
15.8k
      "lit_tablet_ids\030\016 \003(\014\022\030\n\020hide_hybrid_time"
1439
15.8k
      "\030\020 \001(\006\022&\n\036retained_by_snapshot_schedules"
1440
15.8k
      "\030\021 \003(\014\0326\n\024BackfilledUntilEntry\022\013\n\003key\030\001 "
1441
15.8k
      "\001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"Z\n\005State\022\014\n\007UNKNO"
1442
15.8k
      "WN\020\347\007\022\r\n\tPREPARING\020\000\022\014\n\010CREATING\020\001\022\013\n\007RU"
1443
15.8k
      "NNING\020\002\022\014\n\010REPLACED\020\003\022\013\n\007DELETED\020\004J\004\010\017\020\020"
1444
15.8k
      "\"\323\002\n\023SysNamespaceEntryPB\022\014\n\004name\030\001 \001(\014\0228"
1445
15.8k
      "\n\rdatabase_type\030\002 \001(\0162\017.yb.YQLDatabase:\020"
1446
15.8k
      "YQL_DATABASE_CQL\022\023\n\013next_pg_oid\030\003 \001(\r\022\030\n"
1447
15.8k
      "\tcolocated\030\004 \001(\010:\005false\022.\n\013transaction\030\006"
1448
15.8k
      " \001(\0132\031.yb.TransactionMetadataPB\022<\n\005state"
1449
15.8k
      "\030\005 \001(\0162$.yb.master.SysNamespaceEntryPB.S"
1450
15.8k
      "tate:\007UNKNOWN\"W\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tP"
1451
15.8k
      "REPARING\020\001\022\n\n\006FAILED\020\002\022\013\n\007RUNNING\020\003\022\014\n\010D"
1452
15.8k
      "ELETING\020\004\022\013\n\007DELETED\020\005\"n\n\020SysUDTypeEntry"
1453
15.8k
      "PB\022\024\n\014namespace_id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023"
1454
15.8k
      "\n\013field_names\030\003 \003(\t\022!\n\013field_types\030\004 \003(\013"
1455
15.8k
      "2\014.yb.QLTypePB\"g\n\013BlacklistPB\022\035\n\005hosts\030\001"
1456
15.8k
      " \003(\0132\016.yb.HostPortPB\022\034\n\024initial_replica_"
1457
15.8k
      "load\030\002 \001(\005\022\033\n\023initial_leader_load\030\003 \001(\005\""
1458
15.8k
      "\231\001\n\020EncryptionInfoPB\022\032\n\022encryption_enabl"
1459
15.8k
      "ed\030\001 \001(\010\022%\n\035universe_key_registry_encode"
1460
15.8k
      "d\030\002 \001(\014\022\020\n\010key_path\030\003 \001(\t\022\031\n\021latest_vers"
1461
15.8k
      "ion_id\030\004 \001(\t\022\025\n\rkey_in_memory\030\005 \001(\010\"\311\002\n\027"
1462
15.8k
      "SysClusterConfigEntryPB\022\017\n\007version\030\001 \001(\005"
1463
15.8k
      "\022\024\n\014cluster_uuid\030\004 \001(\t\0226\n\020replication_in"
1464
15.8k
      "fo\030\002 \001(\0132\034.yb.master.ReplicationInfoPB\0220"
1465
15.8k
      "\n\020server_blacklist\030\003 \001(\0132\026.yb.master.Bla"
1466
15.8k
      "cklistPB\0220\n\020leader_blacklist\030\007 \001(\0132\026.yb."
1467
15.8k
      "master.BlacklistPB\0224\n\017encryption_info\030\005 "
1468
15.8k
      "\001(\0132\033.yb.master.EncryptionInfoPB\0225\n\021cons"
1469
15.8k
      "umer_registry\030\006 \001(\0132\032.yb.cdc.ConsumerReg"
1470
15.8k
      "istryPB\"2\n\025SysRedisConfigEntryPB\022\013\n\003key\030"
1471
15.8k
      "\001 \001(\t\022\014\n\004args\030\002 \003(\014\"\264\001\n\025ResourcePermissi"
1472
15.8k
      "onsPB\022\025\n\rresource_name\030\001 \001(\t\022\032\n\022canonica"
1473
15.8k
      "l_resource\030\013 \001(\t\022\026\n\016namespace_name\030\014 \001(\t"
1474
15.8k
      "\022\'\n\rresource_type\030\002 \001(\0162\020.yb.ResourceTyp"
1475
15.8k
      "e\022\'\n\013permissions\030\r \003(\0162\022.yb.PermissionTy"
1476
15.8k
      "pe\"\244\001\n\016SysRoleEntryPB\022\014\n\004role\030\001 \001(\014\022\021\n\tc"
1477
15.8k
      "an_login\030\002 \001(\010\022\024\n\014is_superuser\030\003 \001(\010\022\021\n\t"
1478
15.8k
      "member_of\030\004 \003(\014\022\023\n\013salted_hash\030\005 \001(\014\0223\n\t"
1479
15.8k
      "resources\030\007 \003(\0132 .yb.master.ResourcePerm"
1480
15.8k
      "issionsPB\"1\n\030SysSecurityConfigEntryPB\022\025\n"
1481
15.8k
      "\rroles_version\030\001 \001(\004\"\204\001\n\033SysYSQLCatalogC"
1482
15.8k
      "onfigEntryPB\022\017\n\007version\030\001 \001(\004\022\023\n\013initdb_"
1483
15.8k
      "done\030\002 \001(\010\022\024\n\014initdb_error\030\005 \001(\t\022)\n!tran"
1484
15.8k
      "sactional_sys_catalog_enabled\030\006 \001(\010\"4\n!S"
1485
15.8k
      "ysTransactionTablesConfigEntryPB\022\017\n\007vers"
1486
15.8k
      "ion\030\001 \001(\004\"\366\001\n\020SysConfigEntryPB\022>\n\017securi"
1487
15.8k
      "ty_config\030\001 \001(\0132#.yb.master.SysSecurityC"
1488
15.8k
      "onfigEntryPBH\000\022E\n\023ysql_catalog_config\030\002 "
1489
15.8k
      "\001(\0132&.yb.master.SysYSQLCatalogConfigEntr"
1490
15.8k
      "yPBH\000\022Q\n\031transaction_tables_config\030\003 \001(\013"
1491
15.8k
      "2,.yb.master.SysTransactionTablesConfigE"
1492
15.8k
      "ntryPBH\000B\010\n\006config\"Q\n\013SysRowEntry\022(\n\004typ"
1493
15.8k
      "e\030\001 \001(\0162\032.yb.master.SysRowEntryType\022\n\n\002i"
1494
15.8k
      "d\030\002 \001(\t\022\014\n\004data\030\003 \001(\014\"8\n\rSysRowEntries\022\'"
1495
15.8k
      "\n\007entries\030\001 \003(\0132\026.yb.master.SysRowEntry\""
1496
15.8k
      "\244\001\n\rDdlLogEntryPB\022!\n\ntable_type\030\001 \001(\0162\r."
1497
15.8k
      "yb.TableType\022\026\n\016namespace_name\030\002 \001(\t\022\024\n\014"
1498
15.8k
      "namespace_id\030\003 \001(\t\022\022\n\ntable_name\030\004 \001(\t\022\020"
1499
15.8k
      "\n\010table_id\030\005 \001(\t\022\016\n\006action\030\006 \001(\t\022\014\n\004time"
1500
15.8k
      "\030\007 \001(\006\"0\n\022CDCStreamOptionsPB\022\013\n\003key\030\001 \001("
1501
15.8k
      "\t\022\r\n\005value\030\002 \001(\014\"\351\001\n\023SysCDCStreamEntryPB"
1502
15.8k
      "\022\020\n\010table_id\030\001 \003(\t\022.\n\007options\030\002 \003(\0132\035.yb"
1503
15.8k
      ".master.CDCStreamOptionsPB\022;\n\005state\030\003 \001("
1504
15.8k
      "\0162$.yb.master.SysCDCStreamEntryPB.State:"
1505
15.8k
      "\006ACTIVE\022\024\n\014namespace_id\030\004 \001(\t\"=\n\005State\022\r"
1506
15.8k
      "\n\tINITIATED\020\003\022\n\n\006ACTIVE\020\000\022\014\n\010DELETING\020\001\022"
1507
15.8k
      "\013\n\007DELETED\020\002\"\211\004\n\022SysSnapshotEntryPB\022;\n\005s"
1508
15.8k
      "tate\030\001 \001(\0162#.yb.master.SysSnapshotEntryP"
1509
15.8k
      "B.State:\007UNKNOWN\022H\n\020tablet_snapshots\030\002 \003"
1510
15.8k
      "(\0132..yb.master.SysSnapshotEntryPB.Tablet"
1511
15.8k
      "SnapshotPB\022\'\n\007entries\030\003 \003(\0132\026.yb.master."
1512
15.8k
      "SysRowEntry\022\034\n\024snapshot_hybrid_time\030\004 \001("
1513
15.8k
      "\006\022\017\n\007version\030\005 \001(\003\022\023\n\013schedule_id\030\006 \001(\014\022"
1514
15.8k
      "%\n\035previous_snapshot_hybrid_time\030\007 \001(\006\032R"
1515
15.8k
      "\n\020TabletSnapshotPB\022\n\n\002id\030\001 \001(\014\0222\n\005state\030"
1516
15.8k
      "\002 \001(\0162#.yb.master.SysSnapshotEntryPB.Sta"
1517
15.8k
      "te\"\203\001\n\005State\022\013\n\007UNKNOWN\020\000\022\014\n\010CREATING\020\001\022"
1518
15.8k
      "\014\n\010COMPLETE\020\002\022\014\n\010DELETING\020\003\022\013\n\007DELETED\020\004"
1519
15.8k
      "\022\n\n\006FAILED\020\005\022\r\n\tCANCELLED\020\006\022\r\n\tRESTORING"
1520
15.8k
      "\020\007\022\014\n\010RESTORED\020\010\"\315\004\n\035SysUniverseReplicat"
1521
15.8k
      "ionEntryPB\022\023\n\013producer_id\030\001 \001(\t\0221\n\031produ"
1522
15.8k
      "cer_master_addresses\030\002 \003(\0132\016.yb.HostPort"
1523
15.8k
      "PB\022\016\n\006tables\030\003 \003(\t\022K\n\005state\030\004 \001(\0162..yb.m"
1524
15.8k
      "aster.SysUniverseReplicationEntryPB.Stat"
1525
15.8k
      "e:\014INITIALIZING\022W\n\020validated_tables\030\005 \003("
1526
15.8k
      "\0132=.yb.master.SysUniverseReplicationEntr"
1527
15.8k
      "yPB.ValidatedTablesEntry\022Q\n\rtable_stream"
1528
15.8k
      "s\030\006 \003(\0132:.yb.master.SysUniverseReplicati"
1529
15.8k
      "onEntryPB.TableStreamsEntry\0326\n\024Validated"
1530
15.8k
      "TablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
1531
15.8k
      "\0028\001\0323\n\021TableStreamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
1532
15.8k
      "\005value\030\002 \001(\t:\0028\001\"n\n\005State\022\020\n\014INITIALIZIN"
1533
15.8k
      "G\020\000\022\r\n\tVALIDATED\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED"
1534
15.8k
      "\020\003\022\014\n\010DISABLED\020\006\022\013\n\007DELETED\020\004\022\021\n\rDELETED"
1535
15.8k
      "_ERROR\020\005B\017\n\rorg.yb.master"
1536
15.8k
  };
1537
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1538
15.8k
      descriptor, 6545);
1539
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1540
15.8k
    "yb/master/catalog_entity_info.proto", &protobuf_RegisterTypes);
1541
15.8k
  ::protobuf_yb_2fcdc_2fcdc_5fconsumer_2eproto::AddDescriptors();
1542
15.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
1543
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
1544
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
1545
15.8k
  ::protobuf_yb_2fconsensus_2fmetadata_2eproto::AddDescriptors();
1546
15.8k
  ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors();
1547
15.8k
}
1548
1549
97.0k
void AddDescriptors() {
1550
97.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1551
97.0k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1552
97.0k
}
1553
// Force AddDescriptors() to be called at dynamic initialization time.
1554
struct StaticDescriptorInitializer {
1555
15.8k
  StaticDescriptorInitializer() {
1556
15.8k
    AddDescriptors();
1557
15.8k
  }
1558
} static_descriptor_initializer;
1559
}  // namespace protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto
1560
namespace yb {
1561
namespace master {
1562
3
const ::google::protobuf::EnumDescriptor* BackfillJobPB_State_descriptor() {
1563
3
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1564
3
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[0];
1565
3
}
1566
474
bool BackfillJobPB_State_IsValid(int value) {
1567
474
  switch (value) {
1568
461
    case 0:
1569
461
    case 1:
1570
474
    case 2:
1571
474
      return true;
1572
0
    default:
1573
0
      return false;
1574
474
  }
1575
474
}
1576
1577
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1578
const BackfillJobPB_State BackfillJobPB::IN_PROGRESS;
1579
const BackfillJobPB_State BackfillJobPB::FAILED;
1580
const BackfillJobPB_State BackfillJobPB::SUCCESS;
1581
const BackfillJobPB_State BackfillJobPB::State_MIN;
1582
const BackfillJobPB_State BackfillJobPB::State_MAX;
1583
const int BackfillJobPB::State_ARRAYSIZE;
1584
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1585
215k
const ::google::protobuf::EnumDescriptor* SysTablesEntryPB_State_descriptor() {
1586
215k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1587
215k
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[1];
1588
215k
}
1589
585k
bool SysTablesEntryPB_State_IsValid(int value) {
1590
585k
  switch (value) {
1591
0
    case 0:
1592
31.6k
    case 1:
1593
569k
    case 2:
1594
575k
    case 3:
1595
580k
    case 4:
1596
585k
    case 5:
1597
585k
      return true;
1598
0
    default:
1599
0
      return false;
1600
585k
  }
1601
585k
}
1602
1603
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1604
const SysTablesEntryPB_State SysTablesEntryPB::UNKNOWN;
1605
const SysTablesEntryPB_State SysTablesEntryPB::PREPARING;
1606
const SysTablesEntryPB_State SysTablesEntryPB::RUNNING;
1607
const SysTablesEntryPB_State SysTablesEntryPB::ALTERING;
1608
const SysTablesEntryPB_State SysTablesEntryPB::DELETING;
1609
const SysTablesEntryPB_State SysTablesEntryPB::DELETED;
1610
const SysTablesEntryPB_State SysTablesEntryPB::State_MIN;
1611
const SysTablesEntryPB_State SysTablesEntryPB::State_MAX;
1612
const int SysTablesEntryPB::State_ARRAYSIZE;
1613
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1614
0
const ::google::protobuf::EnumDescriptor* SysTablesEntryPB_HideState_descriptor() {
1615
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1616
0
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[2];
1617
0
}
1618
0
bool SysTablesEntryPB_HideState_IsValid(int value) {
1619
0
  switch (value) {
1620
0
    case 0:
1621
0
    case 1:
1622
0
    case 2:
1623
0
      return true;
1624
0
    default:
1625
0
      return false;
1626
0
  }
1627
0
}
1628
1629
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1630
const SysTablesEntryPB_HideState SysTablesEntryPB::VISIBLE;
1631
const SysTablesEntryPB_HideState SysTablesEntryPB::HIDING;
1632
const SysTablesEntryPB_HideState SysTablesEntryPB::HIDDEN;
1633
const SysTablesEntryPB_HideState SysTablesEntryPB::HideState_MIN;
1634
const SysTablesEntryPB_HideState SysTablesEntryPB::HideState_MAX;
1635
const int SysTablesEntryPB::HideState_ARRAYSIZE;
1636
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1637
47
const ::google::protobuf::EnumDescriptor* SysTabletsEntryPB_State_descriptor() {
1638
47
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1639
47
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[3];
1640
47
}
1641
169k
bool SysTabletsEntryPB_State_IsValid(int value) {
1642
169k
  switch (value) {
1643
53.7k
    case 0:
1644
82.2k
    case 1:
1645
152k
    case 2:
1646
152k
    case 3:
1647
169k
    case 4:
1648
169k
    case 999:
1649
169k
      return true;
1650
0
    default:
1651
0
      return false;
1652
169k
  }
1653
169k
}
1654
1655
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1656
const SysTabletsEntryPB_State SysTabletsEntryPB::UNKNOWN;
1657
const SysTabletsEntryPB_State SysTabletsEntryPB::PREPARING;
1658
const SysTabletsEntryPB_State SysTabletsEntryPB::CREATING;
1659
const SysTabletsEntryPB_State SysTabletsEntryPB::RUNNING;
1660
const SysTabletsEntryPB_State SysTabletsEntryPB::REPLACED;
1661
const SysTabletsEntryPB_State SysTabletsEntryPB::DELETED;
1662
const SysTabletsEntryPB_State SysTabletsEntryPB::State_MIN;
1663
const SysTabletsEntryPB_State SysTabletsEntryPB::State_MAX;
1664
const int SysTabletsEntryPB::State_ARRAYSIZE;
1665
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1666
4
const ::google::protobuf::EnumDescriptor* SysNamespaceEntryPB_State_descriptor() {
1667
4
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1668
4
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[4];
1669
4
}
1670
15.3k
bool SysNamespaceEntryPB_State_IsValid(int value) {
1671
15.3k
  switch (value) {
1672
0
    case 0:
1673
2.08k
    case 1:
1674
2.08k
    case 2:
1675
15.2k
    case 3:
1676
15.2k
    case 4:
1677
15.3k
    case 5:
1678
15.3k
      return true;
1679
0
    default:
1680
0
      return false;
1681
15.3k
  }
1682
15.3k
}
1683
1684
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1685
const SysNamespaceEntryPB_State SysNamespaceEntryPB::UNKNOWN;
1686
const SysNamespaceEntryPB_State SysNamespaceEntryPB::PREPARING;
1687
const SysNamespaceEntryPB_State SysNamespaceEntryPB::FAILED;
1688
const SysNamespaceEntryPB_State SysNamespaceEntryPB::RUNNING;
1689
const SysNamespaceEntryPB_State SysNamespaceEntryPB::DELETING;
1690
const SysNamespaceEntryPB_State SysNamespaceEntryPB::DELETED;
1691
const SysNamespaceEntryPB_State SysNamespaceEntryPB::State_MIN;
1692
const SysNamespaceEntryPB_State SysNamespaceEntryPB::State_MAX;
1693
const int SysNamespaceEntryPB::State_ARRAYSIZE;
1694
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1695
1
const ::google::protobuf::EnumDescriptor* SysCDCStreamEntryPB_State_descriptor() {
1696
1
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1697
1
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[5];
1698
1
}
1699
8.23k
bool SysCDCStreamEntryPB_State_IsValid(int value) {
1700
8.23k
  switch (value) {
1701
8.23k
    case 0:
1702
8.23k
    case 1:
1703
8.23k
    case 2:
1704
8.23k
    case 3:
1705
8.23k
      return true;
1706
0
    default:
1707
0
      return false;
1708
8.23k
  }
1709
8.23k
}
1710
1711
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1712
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::INITIATED;
1713
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::ACTIVE;
1714
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::DELETING;
1715
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::DELETED;
1716
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::State_MIN;
1717
const SysCDCStreamEntryPB_State SysCDCStreamEntryPB::State_MAX;
1718
const int SysCDCStreamEntryPB::State_ARRAYSIZE;
1719
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1720
0
const ::google::protobuf::EnumDescriptor* SysSnapshotEntryPB_State_descriptor() {
1721
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1722
0
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[6];
1723
0
}
1724
0
bool SysSnapshotEntryPB_State_IsValid(int value) {
1725
0
  switch (value) {
1726
0
    case 0:
1727
0
    case 1:
1728
0
    case 2:
1729
0
    case 3:
1730
0
    case 4:
1731
0
    case 5:
1732
0
    case 6:
1733
0
    case 7:
1734
0
    case 8:
1735
0
      return true;
1736
0
    default:
1737
0
      return false;
1738
0
  }
1739
0
}
1740
1741
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1742
const SysSnapshotEntryPB_State SysSnapshotEntryPB::UNKNOWN;
1743
const SysSnapshotEntryPB_State SysSnapshotEntryPB::CREATING;
1744
const SysSnapshotEntryPB_State SysSnapshotEntryPB::COMPLETE;
1745
const SysSnapshotEntryPB_State SysSnapshotEntryPB::DELETING;
1746
const SysSnapshotEntryPB_State SysSnapshotEntryPB::DELETED;
1747
const SysSnapshotEntryPB_State SysSnapshotEntryPB::FAILED;
1748
const SysSnapshotEntryPB_State SysSnapshotEntryPB::CANCELLED;
1749
const SysSnapshotEntryPB_State SysSnapshotEntryPB::RESTORING;
1750
const SysSnapshotEntryPB_State SysSnapshotEntryPB::RESTORED;
1751
const SysSnapshotEntryPB_State SysSnapshotEntryPB::State_MIN;
1752
const SysSnapshotEntryPB_State SysSnapshotEntryPB::State_MAX;
1753
const int SysSnapshotEntryPB::State_ARRAYSIZE;
1754
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1755
0
const ::google::protobuf::EnumDescriptor* SysUniverseReplicationEntryPB_State_descriptor() {
1756
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1757
0
  return protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_enum_descriptors[7];
1758
0
}
1759
2
bool SysUniverseReplicationEntryPB_State_IsValid(int value) {
1760
2
  switch (value) {
1761
2
    case 0:
1762
2
    case 1:
1763
2
    case 2:
1764
2
    case 3:
1765
2
    case 4:
1766
2
    case 5:
1767
2
    case 6:
1768
2
      return true;
1769
0
    default:
1770
0
      return false;
1771
2
  }
1772
2
}
1773
1774
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1775
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::INITIALIZING;
1776
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::VALIDATED;
1777
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::ACTIVE;
1778
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::FAILED;
1779
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::DISABLED;
1780
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::DELETED;
1781
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::DELETED_ERROR;
1782
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::State_MIN;
1783
const SysUniverseReplicationEntryPB_State SysUniverseReplicationEntryPB::State_MAX;
1784
const int SysUniverseReplicationEntryPB::State_ARRAYSIZE;
1785
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1786
1787
// ===================================================================
1788
1789
15.8k
void PlacementBlockPB::InitAsDefaultInstance() {
1790
15.8k
  ::yb::master::_PlacementBlockPB_default_instance_._instance.get_mutable()->cloud_info_ = const_cast< ::yb::CloudInfoPB*>(
1791
15.8k
      ::yb::CloudInfoPB::internal_default_instance());
1792
15.8k
}
1793
0
void PlacementBlockPB::clear_cloud_info() {
1794
0
  if (cloud_info_ != NULL) cloud_info_->Clear();
1795
0
  clear_has_cloud_info();
1796
0
}
1797
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1798
const int PlacementBlockPB::kCloudInfoFieldNumber;
1799
const int PlacementBlockPB::kMinNumReplicasFieldNumber;
1800
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1801
1802
PlacementBlockPB::PlacementBlockPB()
1803
62.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1804
46.5k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1805
46.5k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementBlockPB();
1806
46.5k
  }
1807
62.4k
  SharedCtor();
1808
  // @@protoc_insertion_point(constructor:yb.master.PlacementBlockPB)
1809
62.4k
}
1810
PlacementBlockPB::PlacementBlockPB(const PlacementBlockPB& from)
1811
  : ::google::protobuf::Message(),
1812
      _internal_metadata_(NULL),
1813
      _has_bits_(from._has_bits_),
1814
0
      _cached_size_(0) {
1815
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1816
0
  if (from.has_cloud_info()) {
1817
0
    cloud_info_ = new ::yb::CloudInfoPB(*from.cloud_info_);
1818
0
  } else {
1819
0
    cloud_info_ = NULL;
1820
0
  }
1821
0
  min_num_replicas_ = from.min_num_replicas_;
1822
  // @@protoc_insertion_point(copy_constructor:yb.master.PlacementBlockPB)
1823
0
}
1824
1825
62.4k
void PlacementBlockPB::SharedCtor() {
1826
62.4k
  _cached_size_ = 0;
1827
62.4k
  ::memset(&cloud_info_, 0, static_cast<size_t>(
1828
62.4k
      reinterpret_cast<char*>(&min_num_replicas_) -
1829
62.4k
      reinterpret_cast<char*>(&cloud_info_)) + sizeof(min_num_replicas_));
1830
62.4k
}
1831
1832
46.5k
PlacementBlockPB::~PlacementBlockPB() {
1833
  // @@protoc_insertion_point(destructor:yb.master.PlacementBlockPB)
1834
46.5k
  SharedDtor();
1835
46.5k
}
1836
1837
46.5k
void PlacementBlockPB::SharedDtor() {
1838
46.5k
  if (this != internal_default_instance()) delete cloud_info_;
1839
46.5k
}
1840
1841
0
void PlacementBlockPB::SetCachedSize(int size) const {
1842
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1843
0
  _cached_size_ = size;
1844
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1845
0
}
1846
0
const ::google::protobuf::Descriptor* PlacementBlockPB::descriptor() {
1847
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
1848
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1849
0
}
1850
1851
0
const PlacementBlockPB& PlacementBlockPB::default_instance() {
1852
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementBlockPB();
1853
0
  return *internal_default_instance();
1854
0
}
1855
1856
0
PlacementBlockPB* PlacementBlockPB::New(::google::protobuf::Arena* arena) const {
1857
0
  PlacementBlockPB* n = new PlacementBlockPB;
1858
0
  if (arena != NULL) {
1859
0
    arena->Own(n);
1860
0
  }
1861
0
  return n;
1862
0
}
1863
1864
73
void PlacementBlockPB::Clear() {
1865
// @@protoc_insertion_point(message_clear_start:yb.master.PlacementBlockPB)
1866
73
  ::google::protobuf::uint32 cached_has_bits = 0;
1867
  // Prevent compiler warnings about cached_has_bits being unused
1868
73
  (void) cached_has_bits;
1869
1870
73
  cached_has_bits = _has_bits_[0];
1871
73
  if (cached_has_bits & 0x00000001u) {
1872
72
    GOOGLE_DCHECK(cloud_info_ != NULL);
1873
72
    cloud_info_->Clear();
1874
72
  }
1875
73
  min_num_replicas_ = 0;
1876
73
  _has_bits_.Clear();
1877
73
  _internal_metadata_.Clear();
1878
73
}
1879
1880
bool PlacementBlockPB::MergePartialFromCodedStream(
1881
111
    ::google::protobuf::io::CodedInputStream* input) {
1882
220
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1883
111
  ::google::protobuf::uint32 tag;
1884
  // @@protoc_insertion_point(parse_start:yb.master.PlacementBlockPB)
1885
331
  for (;;) {
1886
331
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1887
331
    tag = p.first;
1888
331
    if (!p.second) goto handle_unusual;
1889
220
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1890
      // optional .yb.CloudInfoPB cloud_info = 1;
1891
110
      case 1: {
1892
110
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1893
110
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1894
110
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1895
110
               input, mutable_cloud_info()));
1896
0
        } else {
1897
0
          goto handle_unusual;
1898
0
        }
1899
110
        break;
1900
110
      }
1901
1902
      // optional int32 min_num_replicas = 2;
1903
110
      case 2: {
1904
110
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1905
110
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1906
110
          set_has_min_num_replicas();
1907
110
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1908
110
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1909
110
                 input, &min_num_replicas_)));
1910
0
        } else {
1911
0
          goto handle_unusual;
1912
0
        }
1913
110
        break;
1914
111
      }
1915
1916
0
      default: {
1917
111
      handle_unusual:
1918
111
        if (tag == 0) {
1919
111
          goto success;
1920
111
        }
1921
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1922
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1923
0
        break;
1924
0
      }
1925
220
    }
1926
220
  }
1927
111
success:
1928
  // @@protoc_insertion_point(parse_success:yb.master.PlacementBlockPB)
1929
111
  return true;
1930
0
failure:
1931
  // @@protoc_insertion_point(parse_failure:yb.master.PlacementBlockPB)
1932
0
  return false;
1933
111
#undef DO_
1934
111
}
1935
1936
void PlacementBlockPB::SerializeWithCachedSizes(
1937
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1938
  // @@protoc_insertion_point(serialize_start:yb.master.PlacementBlockPB)
1939
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1940
0
  (void) cached_has_bits;
1941
1942
0
  cached_has_bits = _has_bits_[0];
1943
  // optional .yb.CloudInfoPB cloud_info = 1;
1944
0
  if (cached_has_bits & 0x00000001u) {
1945
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1946
0
      1, *this->cloud_info_, output);
1947
0
  }
1948
1949
  // optional int32 min_num_replicas = 2;
1950
0
  if (cached_has_bits & 0x00000002u) {
1951
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_num_replicas(), output);
1952
0
  }
1953
1954
0
  if (_internal_metadata_.have_unknown_fields()) {
1955
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1956
0
        _internal_metadata_.unknown_fields(), output);
1957
0
  }
1958
  // @@protoc_insertion_point(serialize_end:yb.master.PlacementBlockPB)
1959
0
}
1960
1961
::google::protobuf::uint8* PlacementBlockPB::InternalSerializeWithCachedSizesToArray(
1962
216
    bool deterministic, ::google::protobuf::uint8* target) const {
1963
216
  (void)deterministic; // Unused
1964
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.PlacementBlockPB)
1965
216
  ::google::protobuf::uint32 cached_has_bits = 0;
1966
216
  (void) cached_has_bits;
1967
1968
216
  cached_has_bits = _has_bits_[0];
1969
  // optional .yb.CloudInfoPB cloud_info = 1;
1970
216
  if (cached_has_bits & 0x00000001u) {
1971
214
    target = ::google::protobuf::internal::WireFormatLite::
1972
214
      InternalWriteMessageToArray(
1973
214
        1, *this->cloud_info_, deterministic, target);
1974
214
  }
1975
1976
  // optional int32 min_num_replicas = 2;
1977
216
  if (cached_has_bits & 0x00000002u) {
1978
214
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_num_replicas(), target);
1979
214
  }
1980
1981
216
  if (_internal_metadata_.have_unknown_fields()) {
1982
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1983
0
        _internal_metadata_.unknown_fields(), target);
1984
0
  }
1985
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.PlacementBlockPB)
1986
216
  return target;
1987
216
}
1988
1989
327
size_t PlacementBlockPB::ByteSizeLong() const {
1990
// @@protoc_insertion_point(message_byte_size_start:yb.master.PlacementBlockPB)
1991
327
  size_t total_size = 0;
1992
1993
327
  if (_internal_metadata_.have_unknown_fields()) {
1994
0
    total_size +=
1995
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1996
0
        _internal_metadata_.unknown_fields());
1997
0
  }
1998
327
  if (_has_bits_[0 / 32] & 3u) {
1999
    // optional .yb.CloudInfoPB cloud_info = 1;
2000
324
    if (has_cloud_info()) {
2001
324
      total_size += 1 +
2002
324
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2003
324
          *this->cloud_info_);
2004
324
    }
2005
2006
    // optional int32 min_num_replicas = 2;
2007
324
    if (has_min_num_replicas()) {
2008
324
      total_size += 1 +
2009
324
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2010
324
          this->min_num_replicas());
2011
324
    }
2012
2013
324
  }
2014
327
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2015
327
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2016
327
  _cached_size_ = cached_size;
2017
327
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2018
327
  return total_size;
2019
327
}
2020
2021
0
void PlacementBlockPB::MergeFrom(const ::google::protobuf::Message& from) {
2022
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.PlacementBlockPB)
2023
0
  GOOGLE_DCHECK_NE(&from, this);
2024
0
  const PlacementBlockPB* source =
2025
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PlacementBlockPB>(
2026
0
          &from);
2027
0
  if (source == NULL) {
2028
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.PlacementBlockPB)
2029
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2030
0
  } else {
2031
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.PlacementBlockPB)
2032
0
    MergeFrom(*source);
2033
0
  }
2034
0
}
2035
2036
46.4k
void PlacementBlockPB::MergeFrom(const PlacementBlockPB& from) {
2037
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.PlacementBlockPB)
2038
46.4k
  GOOGLE_DCHECK_NE(&from, this);
2039
46.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2040
46.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
2041
46.4k
  (void) cached_has_bits;
2042
2043
46.4k
  cached_has_bits = from._has_bits_[0];
2044
46.4k
  if (cached_has_bits & 3u) {
2045
46.4k
    if (cached_has_bits & 0x00000001u) {
2046
46.4k
      mutable_cloud_info()->::yb::CloudInfoPB::MergeFrom(from.cloud_info());
2047
46.4k
    }
2048
46.4k
    if (cached_has_bits & 0x00000002u) {
2049
46.4k
      min_num_replicas_ = from.min_num_replicas_;
2050
46.4k
    }
2051
46.4k
    _has_bits_[0] |= cached_has_bits;
2052
46.4k
  }
2053
46.4k
}
2054
2055
0
void PlacementBlockPB::CopyFrom(const ::google::protobuf::Message& from) {
2056
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.PlacementBlockPB)
2057
0
  if (&from == this) return;
2058
0
  Clear();
2059
0
  MergeFrom(from);
2060
0
}
2061
2062
0
void PlacementBlockPB::CopyFrom(const PlacementBlockPB& from) {
2063
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.PlacementBlockPB)
2064
0
  if (&from == this) return;
2065
0
  Clear();
2066
0
  MergeFrom(from);
2067
0
}
2068
2069
0
bool PlacementBlockPB::IsInitialized() const {
2070
0
  return true;
2071
0
}
2072
2073
0
void PlacementBlockPB::Swap(PlacementBlockPB* other) {
2074
0
  if (other == this) return;
2075
0
  InternalSwap(other);
2076
0
}
2077
0
void PlacementBlockPB::InternalSwap(PlacementBlockPB* other) {
2078
0
  using std::swap;
2079
0
  swap(cloud_info_, other->cloud_info_);
2080
0
  swap(min_num_replicas_, other->min_num_replicas_);
2081
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2082
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2083
0
  swap(_cached_size_, other->_cached_size_);
2084
0
}
2085
2086
297
::google::protobuf::Metadata PlacementBlockPB::GetMetadata() const {
2087
297
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2088
297
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
2089
297
}
2090
2091
2092
// ===================================================================
2093
2094
15.8k
void PlacementInfoPB::InitAsDefaultInstance() {
2095
15.8k
}
2096
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2097
const int PlacementInfoPB::kNumReplicasFieldNumber;
2098
const int PlacementInfoPB::kPlacementBlocksFieldNumber;
2099
const int PlacementInfoPB::kPlacementUuidFieldNumber;
2100
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2101
2102
PlacementInfoPB::PlacementInfoPB()
2103
329k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2104
313k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2105
313k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementInfoPB();
2106
313k
  }
2107
329k
  SharedCtor();
2108
  // @@protoc_insertion_point(constructor:yb.master.PlacementInfoPB)
2109
329k
}
2110
PlacementInfoPB::PlacementInfoPB(const PlacementInfoPB& from)
2111
  : ::google::protobuf::Message(),
2112
      _internal_metadata_(NULL),
2113
      _has_bits_(from._has_bits_),
2114
      _cached_size_(0),
2115
11.0k
      placement_blocks_(from.placement_blocks_) {
2116
11.0k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2117
11.0k
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2118
11.0k
  if (from.has_placement_uuid()) {
2119
1.07k
    placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
2120
1.07k
  }
2121
11.0k
  num_replicas_ = from.num_replicas_;
2122
  // @@protoc_insertion_point(copy_constructor:yb.master.PlacementInfoPB)
2123
11.0k
}
2124
2125
328k
void PlacementInfoPB::SharedCtor() {
2126
328k
  _cached_size_ = 0;
2127
328k
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2128
328k
  num_replicas_ = 0;
2129
328k
}
2130
2131
323k
PlacementInfoPB::~PlacementInfoPB() {
2132
  // @@protoc_insertion_point(destructor:yb.master.PlacementInfoPB)
2133
323k
  SharedDtor();
2134
323k
}
2135
2136
323k
void PlacementInfoPB::SharedDtor() {
2137
323k
  placement_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2138
323k
}
2139
2140
0
void PlacementInfoPB::SetCachedSize(int size) const {
2141
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2142
0
  _cached_size_ = size;
2143
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2144
0
}
2145
0
const ::google::protobuf::Descriptor* PlacementInfoPB::descriptor() {
2146
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2147
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2148
0
}
2149
2150
0
const PlacementInfoPB& PlacementInfoPB::default_instance() {
2151
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsPlacementInfoPB();
2152
0
  return *internal_default_instance();
2153
0
}
2154
2155
0
PlacementInfoPB* PlacementInfoPB::New(::google::protobuf::Arena* arena) const {
2156
0
  PlacementInfoPB* n = new PlacementInfoPB;
2157
0
  if (arena != NULL) {
2158
0
    arena->Own(n);
2159
0
  }
2160
0
  return n;
2161
0
}
2162
2163
121k
void PlacementInfoPB::Clear() {
2164
// @@protoc_insertion_point(message_clear_start:yb.master.PlacementInfoPB)
2165
121k
  ::google::protobuf::uint32 cached_has_bits = 0;
2166
  // Prevent compiler warnings about cached_has_bits being unused
2167
121k
  (void) cached_has_bits;
2168
2169
121k
  placement_blocks_.Clear();
2170
121k
  cached_has_bits = _has_bits_[0];
2171
121k
  if (cached_has_bits & 0x00000001u) {
2172
13
    GOOGLE_DCHECK(!placement_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2173
13
    (*placement_uuid_.UnsafeRawStringPointer())->clear();
2174
13
  }
2175
121k
  num_replicas_ = 0;
2176
121k
  _has_bits_.Clear();
2177
121k
  _internal_metadata_.Clear();
2178
121k
}
2179
2180
bool PlacementInfoPB::MergePartialFromCodedStream(
2181
116
    ::google::protobuf::io::CodedInputStream* input) {
2182
240
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2183
116
  ::google::protobuf::uint32 tag;
2184
  // @@protoc_insertion_point(parse_start:yb.master.PlacementInfoPB)
2185
356
  for (;;) {
2186
356
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2187
356
    tag = p.first;
2188
356
    if (!p.second) goto handle_unusual;
2189
240
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2190
      // optional int32 num_replicas = 1;
2191
105
      case 1: {
2192
105
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2193
105
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2194
105
          set_has_num_replicas();
2195
105
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2196
105
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2197
105
                 input, &num_replicas_)));
2198
0
        } else {
2199
0
          goto handle_unusual;
2200
0
        }
2201
105
        break;
2202
105
      }
2203
2204
      // repeated .yb.master.PlacementBlockPB placement_blocks = 2;
2205
111
      case 2: {
2206
111
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2207
111
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2208
111
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_placement_blocks()));
2209
0
        } else {
2210
0
          goto handle_unusual;
2211
0
        }
2212
111
        break;
2213
111
      }
2214
2215
      // optional bytes placement_uuid = 3;
2216
24
      case 3: {
2217
24
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2218
24
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2219
24
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2220
24
                input, this->mutable_placement_uuid()));
2221
0
        } else {
2222
0
          goto handle_unusual;
2223
0
        }
2224
24
        break;
2225
116
      }
2226
2227
0
      default: {
2228
116
      handle_unusual:
2229
116
        if (tag == 0) {
2230
116
          goto success;
2231
116
        }
2232
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2233
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2234
0
        break;
2235
0
      }
2236
240
    }
2237
240
  }
2238
116
success:
2239
  // @@protoc_insertion_point(parse_success:yb.master.PlacementInfoPB)
2240
116
  return true;
2241
0
failure:
2242
  // @@protoc_insertion_point(parse_failure:yb.master.PlacementInfoPB)
2243
0
  return false;
2244
116
#undef DO_
2245
116
}
2246
2247
void PlacementInfoPB::SerializeWithCachedSizes(
2248
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2249
  // @@protoc_insertion_point(serialize_start:yb.master.PlacementInfoPB)
2250
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2251
0
  (void) cached_has_bits;
2252
2253
0
  cached_has_bits = _has_bits_[0];
2254
  // optional int32 num_replicas = 1;
2255
0
  if (cached_has_bits & 0x00000002u) {
2256
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num_replicas(), output);
2257
0
  }
2258
2259
  // repeated .yb.master.PlacementBlockPB placement_blocks = 2;
2260
0
  for (unsigned int i = 0,
2261
0
      n = static_cast<unsigned int>(this->placement_blocks_size()); i < n; i++) {
2262
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2263
0
      2, this->placement_blocks(static_cast<int>(i)), output);
2264
0
  }
2265
2266
  // optional bytes placement_uuid = 3;
2267
0
  if (cached_has_bits & 0x00000001u) {
2268
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2269
0
      3, this->placement_uuid(), output);
2270
0
  }
2271
2272
0
  if (_internal_metadata_.have_unknown_fields()) {
2273
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2274
0
        _internal_metadata_.unknown_fields(), output);
2275
0
  }
2276
  // @@protoc_insertion_point(serialize_end:yb.master.PlacementInfoPB)
2277
0
}
2278
2279
::google::protobuf::uint8* PlacementInfoPB::InternalSerializeWithCachedSizesToArray(
2280
252
    bool deterministic, ::google::protobuf::uint8* target) const {
2281
252
  (void)deterministic; // Unused
2282
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.PlacementInfoPB)
2283
252
  ::google::protobuf::uint32 cached_has_bits = 0;
2284
252
  (void) cached_has_bits;
2285
2286
252
  cached_has_bits = _has_bits_[0];
2287
  // optional int32 num_replicas = 1;
2288
252
  if (cached_has_bits & 0x00000002u) {
2289
230
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num_replicas(), target);
2290
230
  }
2291
2292
  // repeated .yb.master.PlacementBlockPB placement_blocks = 2;
2293
252
  for (unsigned int i = 0,
2294
468
      n = static_cast<unsigned int>(this->placement_blocks_size()); i < n; i++) {
2295
216
    target = ::google::protobuf::internal::WireFormatLite::
2296
216
      InternalWriteMessageToArray(
2297
216
        2, this->placement_blocks(static_cast<int>(i)), deterministic, target);
2298
216
  }
2299
2300
  // optional bytes placement_uuid = 3;
2301
252
  if (cached_has_bits & 0x00000001u) {
2302
54
    target =
2303
54
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2304
54
        3, this->placement_uuid(), target);
2305
54
  }
2306
2307
252
  if (_internal_metadata_.have_unknown_fields()) {
2308
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2309
0
        _internal_metadata_.unknown_fields(), target);
2310
0
  }
2311
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.PlacementInfoPB)
2312
252
  return target;
2313
252
}
2314
2315
396
size_t PlacementInfoPB::ByteSizeLong() const {
2316
// @@protoc_insertion_point(message_byte_size_start:yb.master.PlacementInfoPB)
2317
396
  size_t total_size = 0;
2318
2319
396
  if (_internal_metadata_.have_unknown_fields()) {
2320
0
    total_size +=
2321
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2322
0
        _internal_metadata_.unknown_fields());
2323
0
  }
2324
  // repeated .yb.master.PlacementBlockPB placement_blocks = 2;
2325
396
  {
2326
396
    unsigned int count = static_cast<unsigned int>(this->placement_blocks_size());
2327
396
    total_size += 1UL * count;
2328
723
    for (unsigned int i = 0; i < count; i++) {
2329
327
      total_size +=
2330
327
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2331
327
          this->placement_blocks(static_cast<int>(i)));
2332
327
    }
2333
396
  }
2334
2335
396
  if (_has_bits_[0 / 32] & 3u) {
2336
    // optional bytes placement_uuid = 3;
2337
393
    if (has_placement_uuid()) {
2338
83
      total_size += 1 +
2339
83
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2340
83
          this->placement_uuid());
2341
83
    }
2342
2343
    // optional int32 num_replicas = 1;
2344
393
    if (has_num_replicas()) {
2345
363
      total_size += 1 +
2346
363
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2347
363
          this->num_replicas());
2348
363
    }
2349
2350
393
  }
2351
396
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2352
396
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2353
396
  _cached_size_ = cached_size;
2354
396
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2355
396
  return total_size;
2356
396
}
2357
2358
0
void PlacementInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
2359
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.PlacementInfoPB)
2360
0
  GOOGLE_DCHECK_NE(&from, this);
2361
0
  const PlacementInfoPB* source =
2362
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PlacementInfoPB>(
2363
0
          &from);
2364
0
  if (source == NULL) {
2365
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.PlacementInfoPB)
2366
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2367
0
  } else {
2368
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.PlacementInfoPB)
2369
0
    MergeFrom(*source);
2370
0
  }
2371
0
}
2372
2373
191k
void PlacementInfoPB::MergeFrom(const PlacementInfoPB& from) {
2374
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.PlacementInfoPB)
2375
191k
  GOOGLE_DCHECK_NE(&from, this);
2376
191k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2377
191k
  ::google::protobuf::uint32 cached_has_bits = 0;
2378
191k
  (void) cached_has_bits;
2379
2380
191k
  placement_blocks_.MergeFrom(from.placement_blocks_);
2381
191k
  cached_has_bits = from._has_bits_[0];
2382
191k
  if (cached_has_bits & 3u) {
2383
80.8k
    if (cached_has_bits & 0x00000001u) {
2384
28.2k
      set_has_placement_uuid();
2385
28.2k
      placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
2386
28.2k
    }
2387
80.8k
    if (cached_has_bits & 0x00000002u) {
2388
73.4k
      num_replicas_ = from.num_replicas_;
2389
73.4k
    }
2390
80.8k
    _has_bits_[0] |= cached_has_bits;
2391
80.8k
  }
2392
191k
}
2393
2394
0
void PlacementInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
2395
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.PlacementInfoPB)
2396
0
  if (&from == this) return;
2397
0
  Clear();
2398
0
  MergeFrom(from);
2399
0
}
2400
2401
121k
void PlacementInfoPB::CopyFrom(const PlacementInfoPB& from) {
2402
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.PlacementInfoPB)
2403
121k
  if (&from == this) return;
2404
121k
  Clear();
2405
121k
  MergeFrom(from);
2406
121k
}
2407
2408
0
bool PlacementInfoPB::IsInitialized() const {
2409
0
  return true;
2410
0
}
2411
2412
0
void PlacementInfoPB::Swap(PlacementInfoPB* other) {
2413
0
  if (other == this) return;
2414
0
  InternalSwap(other);
2415
0
}
2416
121k
void PlacementInfoPB::InternalSwap(PlacementInfoPB* other) {
2417
121k
  using std::swap;
2418
121k
  placement_blocks_.InternalSwap(&other->placement_blocks_);
2419
121k
  placement_uuid_.Swap(&other->placement_uuid_);
2420
121k
  swap(num_replicas_, other->num_replicas_);
2421
121k
  swap(_has_bits_[0], other->_has_bits_[0]);
2422
121k
  _internal_metadata_.Swap(&other->_internal_metadata_);
2423
121k
  swap(_cached_size_, other->_cached_size_);
2424
121k
}
2425
2426
293
::google::protobuf::Metadata PlacementInfoPB::GetMetadata() const {
2427
293
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2428
293
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
2429
293
}
2430
2431
2432
// ===================================================================
2433
2434
15.8k
void ReplicationInfoPB::InitAsDefaultInstance() {
2435
15.8k
  ::yb::master::_ReplicationInfoPB_default_instance_._instance.get_mutable()->live_replicas_ = const_cast< ::yb::master::PlacementInfoPB*>(
2436
15.8k
      ::yb::master::PlacementInfoPB::internal_default_instance());
2437
15.8k
}
2438
5
void ReplicationInfoPB::clear_affinitized_leaders() {
2439
5
  affinitized_leaders_.Clear();
2440
5
}
2441
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2442
const int ReplicationInfoPB::kLiveReplicasFieldNumber;
2443
const int ReplicationInfoPB::kReadReplicasFieldNumber;
2444
const int ReplicationInfoPB::kAffinitizedLeadersFieldNumber;
2445
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2446
2447
ReplicationInfoPB::ReplicationInfoPB()
2448
347k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2449
331k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2450
331k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsReplicationInfoPB();
2451
331k
  }
2452
347k
  SharedCtor();
2453
  // @@protoc_insertion_point(constructor:yb.master.ReplicationInfoPB)
2454
347k
}
2455
ReplicationInfoPB::ReplicationInfoPB(const ReplicationInfoPB& from)
2456
  : ::google::protobuf::Message(),
2457
      _internal_metadata_(NULL),
2458
      _has_bits_(from._has_bits_),
2459
      _cached_size_(0),
2460
      read_replicas_(from.read_replicas_),
2461
155k
      affinitized_leaders_(from.affinitized_leaders_) {
2462
155k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2463
155k
  if (from.has_live_replicas()) {
2464
11.0k
    live_replicas_ = new ::yb::master::PlacementInfoPB(*from.live_replicas_);
2465
144k
  } else {
2466
144k
    live_replicas_ = NULL;
2467
144k
  }
2468
  // @@protoc_insertion_point(copy_constructor:yb.master.ReplicationInfoPB)
2469
155k
}
2470
2471
347k
void ReplicationInfoPB::SharedCtor() {
2472
347k
  _cached_size_ = 0;
2473
347k
  live_replicas_ = NULL;
2474
347k
}
2475
2476
487k
ReplicationInfoPB::~ReplicationInfoPB() {
2477
  // @@protoc_insertion_point(destructor:yb.master.ReplicationInfoPB)
2478
487k
  SharedDtor();
2479
487k
}
2480
2481
487k
void ReplicationInfoPB::SharedDtor() {
2482
487k
  if (this != internal_default_instance()) delete live_replicas_;
2483
487k
}
2484
2485
0
void ReplicationInfoPB::SetCachedSize(int size) const {
2486
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2487
0
  _cached_size_ = size;
2488
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2489
0
}
2490
0
const ::google::protobuf::Descriptor* ReplicationInfoPB::descriptor() {
2491
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2492
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2493
0
}
2494
2495
0
const ReplicationInfoPB& ReplicationInfoPB::default_instance() {
2496
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsReplicationInfoPB();
2497
0
  return *internal_default_instance();
2498
0
}
2499
2500
0
ReplicationInfoPB* ReplicationInfoPB::New(::google::protobuf::Arena* arena) const {
2501
0
  ReplicationInfoPB* n = new ReplicationInfoPB;
2502
0
  if (arena != NULL) {
2503
0
    arena->Own(n);
2504
0
  }
2505
0
  return n;
2506
0
}
2507
2508
124k
void ReplicationInfoPB::Clear() {
2509
// @@protoc_insertion_point(message_clear_start:yb.master.ReplicationInfoPB)
2510
124k
  ::google::protobuf::uint32 cached_has_bits = 0;
2511
  // Prevent compiler warnings about cached_has_bits being unused
2512
124k
  (void) cached_has_bits;
2513
2514
124k
  read_replicas_.Clear();
2515
124k
  affinitized_leaders_.Clear();
2516
124k
  cached_has_bits = _has_bits_[0];
2517
124k
  if (cached_has_bits & 0x00000001u) {
2518
68
    GOOGLE_DCHECK(live_replicas_ != NULL);
2519
68
    live_replicas_->Clear();
2520
68
  }
2521
124k
  _has_bits_.Clear();
2522
124k
  _internal_metadata_.Clear();
2523
124k
}
2524
2525
bool ReplicationInfoPB::MergePartialFromCodedStream(
2526
121
    ::google::protobuf::io::CodedInputStream* input) {
2527
136
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2528
121
  ::google::protobuf::uint32 tag;
2529
  // @@protoc_insertion_point(parse_start:yb.master.ReplicationInfoPB)
2530
257
  for (;;) {
2531
257
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2532
257
    tag = p.first;
2533
257
    if (!p.second) goto handle_unusual;
2534
136
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2535
      // optional .yb.master.PlacementInfoPB live_replicas = 1;
2536
108
      case 1: {
2537
108
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2538
108
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2539
108
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2540
108
               input, mutable_live_replicas()));
2541
0
        } else {
2542
0
          goto handle_unusual;
2543
0
        }
2544
108
        break;
2545
108
      }
2546
2547
      // repeated .yb.master.PlacementInfoPB read_replicas = 2;
2548
8
      case 2: {
2549
8
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2550
8
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2551
8
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_read_replicas()));
2552
0
        } else {
2553
0
          goto handle_unusual;
2554
0
        }
2555
8
        break;
2556
8
      }
2557
2558
      // repeated .yb.CloudInfoPB affinitized_leaders = 3;
2559
20
      case 3: {
2560
20
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2561
20
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2562
20
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_affinitized_leaders()));
2563
0
        } else {
2564
0
          goto handle_unusual;
2565
0
        }
2566
20
        break;
2567
121
      }
2568
2569
0
      default: {
2570
121
      handle_unusual:
2571
121
        if (tag == 0) {
2572
121
          goto success;
2573
121
        }
2574
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2575
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2576
0
        break;
2577
0
      }
2578
136
    }
2579
136
  }
2580
121
success:
2581
  // @@protoc_insertion_point(parse_success:yb.master.ReplicationInfoPB)
2582
121
  return true;
2583
0
failure:
2584
  // @@protoc_insertion_point(parse_failure:yb.master.ReplicationInfoPB)
2585
0
  return false;
2586
121
#undef DO_
2587
121
}
2588
2589
void ReplicationInfoPB::SerializeWithCachedSizes(
2590
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2591
  // @@protoc_insertion_point(serialize_start:yb.master.ReplicationInfoPB)
2592
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2593
0
  (void) cached_has_bits;
2594
2595
0
  cached_has_bits = _has_bits_[0];
2596
  // optional .yb.master.PlacementInfoPB live_replicas = 1;
2597
0
  if (cached_has_bits & 0x00000001u) {
2598
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2599
0
      1, *this->live_replicas_, output);
2600
0
  }
2601
2602
  // repeated .yb.master.PlacementInfoPB read_replicas = 2;
2603
0
  for (unsigned int i = 0,
2604
0
      n = static_cast<unsigned int>(this->read_replicas_size()); i < n; i++) {
2605
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2606
0
      2, this->read_replicas(static_cast<int>(i)), output);
2607
0
  }
2608
2609
  // repeated .yb.CloudInfoPB affinitized_leaders = 3;
2610
0
  for (unsigned int i = 0,
2611
0
      n = static_cast<unsigned int>(this->affinitized_leaders_size()); i < n; i++) {
2612
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2613
0
      3, this->affinitized_leaders(static_cast<int>(i)), output);
2614
0
  }
2615
2616
0
  if (_internal_metadata_.have_unknown_fields()) {
2617
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2618
0
        _internal_metadata_.unknown_fields(), output);
2619
0
  }
2620
  // @@protoc_insertion_point(serialize_end:yb.master.ReplicationInfoPB)
2621
0
}
2622
2623
::google::protobuf::uint8* ReplicationInfoPB::InternalSerializeWithCachedSizesToArray(
2624
270
    bool deterministic, ::google::protobuf::uint8* target) const {
2625
270
  (void)deterministic; // Unused
2626
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReplicationInfoPB)
2627
270
  ::google::protobuf::uint32 cached_has_bits = 0;
2628
270
  (void) cached_has_bits;
2629
2630
270
  cached_has_bits = _has_bits_[0];
2631
  // optional .yb.master.PlacementInfoPB live_replicas = 1;
2632
270
  if (cached_has_bits & 0x00000001u) {
2633
234
    target = ::google::protobuf::internal::WireFormatLite::
2634
234
      InternalWriteMessageToArray(
2635
234
        1, *this->live_replicas_, deterministic, target);
2636
234
  }
2637
2638
  // repeated .yb.master.PlacementInfoPB read_replicas = 2;
2639
270
  for (unsigned int i = 0,
2640
288
      n = static_cast<unsigned int>(this->read_replicas_size()); i < n; i++) {
2641
18
    target = ::google::protobuf::internal::WireFormatLite::
2642
18
      InternalWriteMessageToArray(
2643
18
        2, this->read_replicas(static_cast<int>(i)), deterministic, target);
2644
18
  }
2645
2646
  // repeated .yb.CloudInfoPB affinitized_leaders = 3;
2647
270
  for (unsigned int i = 0,
2648
322
      n = static_cast<unsigned int>(this->affinitized_leaders_size()); i < n; i++) {
2649
52
    target = ::google::protobuf::internal::WireFormatLite::
2650
52
      InternalWriteMessageToArray(
2651
52
        3, this->affinitized_leaders(static_cast<int>(i)), deterministic, target);
2652
52
  }
2653
2654
270
  if (_internal_metadata_.have_unknown_fields()) {
2655
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2656
0
        _internal_metadata_.unknown_fields(), target);
2657
0
  }
2658
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReplicationInfoPB)
2659
270
  return target;
2660
270
}
2661
2662
427
size_t ReplicationInfoPB::ByteSizeLong() const {
2663
// @@protoc_insertion_point(message_byte_size_start:yb.master.ReplicationInfoPB)
2664
427
  size_t total_size = 0;
2665
2666
427
  if (_internal_metadata_.have_unknown_fields()) {
2667
0
    total_size +=
2668
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2669
0
        _internal_metadata_.unknown_fields());
2670
0
  }
2671
  // repeated .yb.master.PlacementInfoPB read_replicas = 2;
2672
427
  {
2673
427
    unsigned int count = static_cast<unsigned int>(this->read_replicas_size());
2674
427
    total_size += 1UL * count;
2675
455
    for (unsigned int i = 0; i < count; i++) {
2676
28
      total_size +=
2677
28
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2678
28
          this->read_replicas(static_cast<int>(i)));
2679
28
    }
2680
427
  }
2681
2682
  // repeated .yb.CloudInfoPB affinitized_leaders = 3;
2683
427
  {
2684
427
    unsigned int count = static_cast<unsigned int>(this->affinitized_leaders_size());
2685
427
    total_size += 1UL * count;
2686
507
    for (unsigned int i = 0; i < count; i++) {
2687
80
      total_size +=
2688
80
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2689
80
          this->affinitized_leaders(static_cast<int>(i)));
2690
80
    }
2691
427
  }
2692
2693
  // optional .yb.master.PlacementInfoPB live_replicas = 1;
2694
427
  if (has_live_replicas()) {
2695
368
    total_size += 1 +
2696
368
      ::google::protobuf::internal::WireFormatLite::MessageSize(
2697
368
        *this->live_replicas_);
2698
368
  }
2699
2700
427
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2701
427
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2702
427
  _cached_size_ = cached_size;
2703
427
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2704
427
  return total_size;
2705
427
}
2706
2707
0
void ReplicationInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
2708
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReplicationInfoPB)
2709
0
  GOOGLE_DCHECK_NE(&from, this);
2710
0
  const ReplicationInfoPB* source =
2711
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReplicationInfoPB>(
2712
0
          &from);
2713
0
  if (source == NULL) {
2714
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReplicationInfoPB)
2715
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2716
0
  } else {
2717
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReplicationInfoPB)
2718
0
    MergeFrom(*source);
2719
0
  }
2720
0
}
2721
2722
178k
void ReplicationInfoPB::MergeFrom(const ReplicationInfoPB& from) {
2723
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReplicationInfoPB)
2724
178k
  GOOGLE_DCHECK_NE(&from, this);
2725
178k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2726
178k
  ::google::protobuf::uint32 cached_has_bits = 0;
2727
178k
  (void) cached_has_bits;
2728
2729
178k
  read_replicas_.MergeFrom(from.read_replicas_);
2730
178k
  affinitized_leaders_.MergeFrom(from.affinitized_leaders_);
2731
178k
  if (from.has_live_replicas()) {
2732
56.0k
    mutable_live_replicas()->::yb::master::PlacementInfoPB::MergeFrom(from.live_replicas());
2733
56.0k
  }
2734
178k
}
2735
2736
0
void ReplicationInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
2737
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReplicationInfoPB)
2738
0
  if (&from == this) return;
2739
0
  Clear();
2740
0
  MergeFrom(from);
2741
0
}
2742
2743
124k
void ReplicationInfoPB::CopyFrom(const ReplicationInfoPB& from) {
2744
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReplicationInfoPB)
2745
124k
  if (&from == this) return;
2746
124k
  Clear();
2747
124k
  MergeFrom(from);
2748
124k
}
2749
2750
0
bool ReplicationInfoPB::IsInitialized() const {
2751
0
  return true;
2752
0
}
2753
2754
0
void ReplicationInfoPB::Swap(ReplicationInfoPB* other) {
2755
0
  if (other == this) return;
2756
0
  InternalSwap(other);
2757
0
}
2758
153k
void ReplicationInfoPB::InternalSwap(ReplicationInfoPB* other) {
2759
153k
  using std::swap;
2760
153k
  read_replicas_.InternalSwap(&other->read_replicas_);
2761
153k
  affinitized_leaders_.InternalSwap(&other->affinitized_leaders_);
2762
153k
  swap(live_replicas_, other->live_replicas_);
2763
153k
  swap(_has_bits_[0], other->_has_bits_[0]);
2764
153k
  _internal_metadata_.Swap(&other->_internal_metadata_);
2765
153k
  swap(_cached_size_, other->_cached_size_);
2766
153k
}
2767
2768
230
::google::protobuf::Metadata ReplicationInfoPB::GetMetadata() const {
2769
230
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2770
230
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
2771
230
}
2772
2773
2774
// ===================================================================
2775
2776
20.0k
BackfillJobPB_BackfillStateEntry_DoNotUse::BackfillJobPB_BackfillStateEntry_DoNotUse() {}
2777
7.13k
BackfillJobPB_BackfillStateEntry_DoNotUse::BackfillJobPB_BackfillStateEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
2778
0
void BackfillJobPB_BackfillStateEntry_DoNotUse::MergeFrom(const BackfillJobPB_BackfillStateEntry_DoNotUse& other) {
2779
0
  MergeFromInternal(other);
2780
0
}
2781
48.4k
::google::protobuf::Metadata BackfillJobPB_BackfillStateEntry_DoNotUse::GetMetadata() const {
2782
48.4k
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2783
48.4k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[3];
2784
48.4k
}
2785
void BackfillJobPB_BackfillStateEntry_DoNotUse::MergeFrom(
2786
0
    const ::google::protobuf::Message& other) {
2787
0
  ::google::protobuf::Message::MergeFrom(other);
2788
0
}
2789
2790
2791
// ===================================================================
2792
2793
15.8k
void BackfillJobPB::InitAsDefaultInstance() {
2794
15.8k
}
2795
0
void BackfillJobPB::clear_indexes() {
2796
0
  indexes_.Clear();
2797
0
}
2798
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2799
const int BackfillJobPB::kIndexesFieldNumber;
2800
const int BackfillJobPB::kBackfillStateFieldNumber;
2801
const int BackfillJobPB::kNumRowsProcessedFieldNumber;
2802
const int BackfillJobPB::kBackfillingTimestampFieldNumber;
2803
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2804
2805
BackfillJobPB::BackfillJobPB()
2806
22.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2807
6.52k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2808
6.52k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBackfillJobPB();
2809
6.52k
  }
2810
22.3k
  SharedCtor();
2811
  // @@protoc_insertion_point(constructor:yb.master.BackfillJobPB)
2812
22.3k
}
2813
BackfillJobPB::BackfillJobPB(const BackfillJobPB& from)
2814
  : ::google::protobuf::Message(),
2815
      _internal_metadata_(NULL),
2816
      _has_bits_(from._has_bits_),
2817
      _cached_size_(0),
2818
819
      indexes_(from.indexes_) {
2819
819
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2820
819
  backfill_state_.MergeFrom(from.backfill_state_);
2821
819
  ::memcpy(&backfilling_timestamp_, &from.backfilling_timestamp_,
2822
819
    static_cast<size_t>(reinterpret_cast<char*>(&num_rows_processed_) -
2823
819
    reinterpret_cast<char*>(&backfilling_timestamp_)) + sizeof(num_rows_processed_));
2824
  // @@protoc_insertion_point(copy_constructor:yb.master.BackfillJobPB)
2825
819
}
2826
2827
22.3k
void BackfillJobPB::SharedCtor() {
2828
22.3k
  _cached_size_ = 0;
2829
22.3k
  ::memset(&backfilling_timestamp_, 0, static_cast<size_t>(
2830
22.3k
      reinterpret_cast<char*>(&num_rows_processed_) -
2831
22.3k
      reinterpret_cast<char*>(&backfilling_timestamp_)) + sizeof(num_rows_processed_));
2832
22.3k
}
2833
2834
7.29k
BackfillJobPB::~BackfillJobPB() {
2835
  // @@protoc_insertion_point(destructor:yb.master.BackfillJobPB)
2836
7.29k
  SharedDtor();
2837
7.29k
}
2838
2839
7.29k
void BackfillJobPB::SharedDtor() {
2840
7.29k
}
2841
2842
0
void BackfillJobPB::SetCachedSize(int size) const {
2843
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2844
0
  _cached_size_ = size;
2845
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2846
0
}
2847
0
const ::google::protobuf::Descriptor* BackfillJobPB::descriptor() {
2848
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
2849
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2850
0
}
2851
2852
0
const BackfillJobPB& BackfillJobPB::default_instance() {
2853
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBackfillJobPB();
2854
0
  return *internal_default_instance();
2855
0
}
2856
2857
0
BackfillJobPB* BackfillJobPB::New(::google::protobuf::Arena* arena) const {
2858
0
  BackfillJobPB* n = new BackfillJobPB;
2859
0
  if (arena != NULL) {
2860
0
    arena->Own(n);
2861
0
  }
2862
0
  return n;
2863
0
}
2864
2865
407
void BackfillJobPB::Clear() {
2866
// @@protoc_insertion_point(message_clear_start:yb.master.BackfillJobPB)
2867
407
  ::google::protobuf::uint32 cached_has_bits = 0;
2868
  // Prevent compiler warnings about cached_has_bits being unused
2869
407
  (void) cached_has_bits;
2870
2871
407
  indexes_.Clear();
2872
407
  backfill_state_.Clear();
2873
407
  cached_has_bits = _has_bits_[0];
2874
407
  if (cached_has_bits & 3u) {
2875
407
    ::memset(&backfilling_timestamp_, 0, static_cast<size_t>(
2876
407
        reinterpret_cast<char*>(&num_rows_processed_) -
2877
407
        reinterpret_cast<char*>(&backfilling_timestamp_)) + sizeof(num_rows_processed_));
2878
407
  }
2879
407
  _has_bits_.Clear();
2880
407
  _internal_metadata_.Clear();
2881
407
}
2882
2883
bool BackfillJobPB::MergePartialFromCodedStream(
2884
473
    ::google::protobuf::io::CodedInputStream* input) {
2885
1.91k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2886
473
  ::google::protobuf::uint32 tag;
2887
  // @@protoc_insertion_point(parse_start:yb.master.BackfillJobPB)
2888
1.90k
  for (;;) {
2889
1.90k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2890
1.90k
    tag = p.first;
2891
1.90k
    if (!p.second) goto handle_unusual;
2892
1.43k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2893
      // repeated .yb.IndexInfoPB indexes = 1;
2894
474
      case 1: {
2895
474
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2896
474
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2897
474
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
2898
0
        } else {
2899
0
          goto handle_unusual;
2900
0
        }
2901
474
        break;
2902
474
      }
2903
2904
      // map<string, .yb.master.BackfillJobPB.State> backfill_state = 2;
2905
474
      case 2: {
2906
474
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2907
474
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2908
474
          ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry(backfill_state_.NewEntry());
2909
474
          {
2910
474
            ::std::string data;
2911
474
            DO_(::google::protobuf::internal::WireFormatLite::ReadString(input, &data));
2912
474
            DO_(entry->ParseFromString(data));
2913
474
            if (::yb::master::BackfillJobPB_State_IsValid(*entry->mutable_value())) {
2914
474
              (*mutable_backfill_state())[entry->key()] =
2915
474
                  static_cast< ::yb::master::BackfillJobPB_State >(*entry->mutable_value());
2916
0
            } else {
2917
0
              mutable_unknown_fields()->AddLengthDelimited(2, data);
2918
0
            }
2919
474
          }
2920
474
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2921
474
            entry->key().data(), static_cast<int>(entry->key().length()),
2922
474
            ::google::protobuf::internal::WireFormat::PARSE,
2923
474
            "yb.master.BackfillJobPB.BackfillStateEntry.key");
2924
0
        } else {
2925
0
          goto handle_unusual;
2926
0
        }
2927
474
        break;
2928
474
      }
2929
2930
      // optional uint64 backfilling_timestamp = 3;
2931
361
      case 3: {
2932
361
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2933
361
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2934
361
          set_has_backfilling_timestamp();
2935
361
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2936
361
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2937
361
                 input, &backfilling_timestamp_)));
2938
0
        } else {
2939
0
          goto handle_unusual;
2940
0
        }
2941
361
        break;
2942
361
      }
2943
2944
      // optional uint64 num_rows_processed = 4 [default = 0];
2945
127
      case 4: {
2946
127
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2947
127
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2948
127
          set_has_num_rows_processed();
2949
127
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2950
127
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2951
127
                 input, &num_rows_processed_)));
2952
0
        } else {
2953
0
          goto handle_unusual;
2954
0
        }
2955
127
        break;
2956
473
      }
2957
2958
0
      default: {
2959
473
      handle_unusual:
2960
473
        if (tag == 0) {
2961
473
          goto success;
2962
473
        }
2963
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2964
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2965
0
        break;
2966
0
      }
2967
1.43k
    }
2968
1.43k
  }
2969
473
success:
2970
  // @@protoc_insertion_point(parse_success:yb.master.BackfillJobPB)
2971
473
  return true;
2972
0
failure:
2973
  // @@protoc_insertion_point(parse_failure:yb.master.BackfillJobPB)
2974
0
  return false;
2975
473
#undef DO_
2976
473
}
2977
2978
void BackfillJobPB::SerializeWithCachedSizes(
2979
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2980
  // @@protoc_insertion_point(serialize_start:yb.master.BackfillJobPB)
2981
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2982
0
  (void) cached_has_bits;
2983
2984
  // repeated .yb.IndexInfoPB indexes = 1;
2985
0
  for (unsigned int i = 0,
2986
0
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
2987
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2988
0
      1, this->indexes(static_cast<int>(i)), output);
2989
0
  }
2990
2991
  // map<string, .yb.master.BackfillJobPB.State> backfill_state = 2;
2992
0
  if (!this->backfill_state().empty()) {
2993
0
    typedef ::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_pointer
2994
0
        ConstPtr;
2995
0
    typedef ConstPtr SortItem;
2996
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
2997
0
    struct Utf8Check {
2998
0
      static void Check(ConstPtr p) {
2999
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3000
0
          p->first.data(), static_cast<int>(p->first.length()),
3001
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
3002
0
          "yb.master.BackfillJobPB.BackfillStateEntry.key");
3003
0
      }
3004
0
    };
3005
3006
0
    if (output->IsSerializationDeterministic() &&
3007
0
        this->backfill_state().size() > 1) {
3008
0
      ::google::protobuf::scoped_array<SortItem> items(
3009
0
          new SortItem[this->backfill_state().size()]);
3010
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::size_type size_type;
3011
0
      size_type n = 0;
3012
0
      for (::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_iterator
3013
0
          it = this->backfill_state().begin();
3014
0
          it != this->backfill_state().end(); ++it, ++n) {
3015
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
3016
0
      }
3017
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
3018
0
      ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry;
3019
0
      for (size_type i = 0; i < n; i++) {
3020
0
        entry.reset(backfill_state_.NewEnumEntryWrapper(
3021
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
3022
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3023
0
            2, *entry, output);
3024
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
3025
0
      }
3026
0
    } else {
3027
0
      ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry;
3028
0
      for (::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_iterator
3029
0
          it = this->backfill_state().begin();
3030
0
          it != this->backfill_state().end(); ++it) {
3031
0
        entry.reset(backfill_state_.NewEnumEntryWrapper(
3032
0
            it->first, it->second));
3033
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3034
0
            2, *entry, output);
3035
0
        Utf8Check::Check(&*it);
3036
0
      }
3037
0
    }
3038
0
  }
3039
3040
0
  cached_has_bits = _has_bits_[0];
3041
  // optional uint64 backfilling_timestamp = 3;
3042
0
  if (cached_has_bits & 0x00000001u) {
3043
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->backfilling_timestamp(), output);
3044
0
  }
3045
3046
  // optional uint64 num_rows_processed = 4 [default = 0];
3047
0
  if (cached_has_bits & 0x00000002u) {
3048
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->num_rows_processed(), output);
3049
0
  }
3050
3051
0
  if (_internal_metadata_.have_unknown_fields()) {
3052
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3053
0
        _internal_metadata_.unknown_fields(), output);
3054
0
  }
3055
  // @@protoc_insertion_point(serialize_end:yb.master.BackfillJobPB)
3056
0
}
3057
3058
::google::protobuf::uint8* BackfillJobPB::InternalSerializeWithCachedSizesToArray(
3059
3.20k
    bool deterministic, ::google::protobuf::uint8* target) const {
3060
3.20k
  (void)deterministic; // Unused
3061
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.BackfillJobPB)
3062
3.20k
  ::google::protobuf::uint32 cached_has_bits = 0;
3063
3.20k
  (void) cached_has_bits;
3064
3065
  // repeated .yb.IndexInfoPB indexes = 1;
3066
3.20k
  for (unsigned int i = 0,
3067
6.53k
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
3068
3.33k
    target = ::google::protobuf::internal::WireFormatLite::
3069
3.33k
      InternalWriteMessageToArray(
3070
3.33k
        1, this->indexes(static_cast<int>(i)), deterministic, target);
3071
3.33k
  }
3072
3073
  // map<string, .yb.master.BackfillJobPB.State> backfill_state = 2;
3074
3.20k
  if (!this->backfill_state().empty()) {
3075
3.20k
    typedef ::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_pointer
3076
3.20k
        ConstPtr;
3077
3.20k
    typedef ConstPtr SortItem;
3078
3.20k
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
3079
3.20k
    struct Utf8Check {
3080
3.33k
      static void Check(ConstPtr p) {
3081
3.33k
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3082
3.33k
          p->first.data(), static_cast<int>(p->first.length()),
3083
3.33k
          ::google::protobuf::internal::WireFormat::SERIALIZE,
3084
3.33k
          "yb.master.BackfillJobPB.BackfillStateEntry.key");
3085
3.33k
      }
3086
3.20k
    };
3087
3088
3.20k
    if (deterministic &&
3089
0
        this->backfill_state().size() > 1) {
3090
0
      ::google::protobuf::scoped_array<SortItem> items(
3091
0
          new SortItem[this->backfill_state().size()]);
3092
0
      typedef ::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::size_type size_type;
3093
0
      size_type n = 0;
3094
0
      for (::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_iterator
3095
0
          it = this->backfill_state().begin();
3096
0
          it != this->backfill_state().end(); ++it, ++n) {
3097
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
3098
0
      }
3099
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
3100
0
      ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry;
3101
0
      for (size_type i = 0; i < n; i++) {
3102
0
        entry.reset(backfill_state_.NewEnumEntryWrapper(
3103
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
3104
0
        target = ::google::protobuf::internal::WireFormatLite::
3105
0
                   InternalWriteMessageNoVirtualToArray(
3106
0
                       2, *entry, deterministic, target);
3107
0
;
3108
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
3109
0
      }
3110
3.20k
    } else {
3111
3.20k
      ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry;
3112
3.20k
      for (::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_iterator
3113
3.20k
          it = this->backfill_state().begin();
3114
6.53k
          it != this->backfill_state().end(); ++it) {
3115
3.33k
        entry.reset(backfill_state_.NewEnumEntryWrapper(
3116
3.33k
            it->first, it->second));
3117
3.33k
        target = ::google::protobuf::internal::WireFormatLite::
3118
3.33k
                   InternalWriteMessageNoVirtualToArray(
3119
3.33k
                       2, *entry, deterministic, target);
3120
3.33k
;
3121
3.33k
        Utf8Check::Check(&*it);
3122
3.33k
      }
3123
3.20k
    }
3124
3.20k
  }
3125
3126
3.20k
  cached_has_bits = _has_bits_[0];
3127
  // optional uint64 backfilling_timestamp = 3;
3128
3.20k
  if (cached_has_bits & 0x00000001u) {
3129
2.63k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->backfilling_timestamp(), target);
3130
2.63k
  }
3131
3132
  // optional uint64 num_rows_processed = 4 [default = 0];
3133
3.20k
  if (cached_has_bits & 0x00000002u) {
3134
1.83k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->num_rows_processed(), target);
3135
1.83k
  }
3136
3137
3.20k
  if (_internal_metadata_.have_unknown_fields()) {
3138
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3139
0
        _internal_metadata_.unknown_fields(), target);
3140
0
  }
3141
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.BackfillJobPB)
3142
3.20k
  return target;
3143
3.20k
}
3144
3145
3.67k
size_t BackfillJobPB::ByteSizeLong() const {
3146
// @@protoc_insertion_point(message_byte_size_start:yb.master.BackfillJobPB)
3147
3.67k
  size_t total_size = 0;
3148
3149
3.67k
  if (_internal_metadata_.have_unknown_fields()) {
3150
0
    total_size +=
3151
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3152
0
        _internal_metadata_.unknown_fields());
3153
0
  }
3154
  // repeated .yb.IndexInfoPB indexes = 1;
3155
3.67k
  {
3156
3.67k
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
3157
3.67k
    total_size += 1UL * count;
3158
7.47k
    for (unsigned int i = 0; i < count; i++) {
3159
3.80k
      total_size +=
3160
3.80k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3161
3.80k
          this->indexes(static_cast<int>(i)));
3162
3.80k
    }
3163
3.67k
  }
3164
3165
  // map<string, .yb.master.BackfillJobPB.State> backfill_state = 2;
3166
3.67k
  total_size += 1 *
3167
3.67k
      ::google::protobuf::internal::FromIntSize(this->backfill_state_size());
3168
3.67k
  {
3169
3.67k
    ::google::protobuf::scoped_ptr<BackfillJobPB_BackfillStateEntry_DoNotUse> entry;
3170
3.67k
    for (::google::protobuf::Map< ::std::string, ::yb::master::BackfillJobPB_State >::const_iterator
3171
3.67k
        it = this->backfill_state().begin();
3172
7.47k
        it != this->backfill_state().end(); ++it) {
3173
3.80k
      entry.reset(backfill_state_.NewEnumEntryWrapper(it->first, it->second));
3174
3.80k
      total_size += ::google::protobuf::internal::WireFormatLite::
3175
3.80k
          MessageSizeNoVirtual(*entry);
3176
3.80k
    }
3177
3.67k
  }
3178
3179
3.67k
  if (_has_bits_[0 / 32] & 3u) {
3180
    // optional uint64 backfilling_timestamp = 3;
3181
2.99k
    if (has_backfilling_timestamp()) {
3182
2.99k
      total_size += 1 +
3183
2.99k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3184
2.99k
          this->backfilling_timestamp());
3185
2.99k
    }
3186
3187
    // optional uint64 num_rows_processed = 4 [default = 0];
3188
2.99k
    if (has_num_rows_processed()) {
3189
1.96k
      total_size += 1 +
3190
1.96k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3191
1.96k
          this->num_rows_processed());
3192
1.96k
    }
3193
3194
2.99k
  }
3195
3.67k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3196
3.67k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3197
3.67k
  _cached_size_ = cached_size;
3198
3.67k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3199
3.67k
  return total_size;
3200
3.67k
}
3201
3202
0
void BackfillJobPB::MergeFrom(const ::google::protobuf::Message& from) {
3203
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.BackfillJobPB)
3204
0
  GOOGLE_DCHECK_NE(&from, this);
3205
0
  const BackfillJobPB* source =
3206
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BackfillJobPB>(
3207
0
          &from);
3208
0
  if (source == NULL) {
3209
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.BackfillJobPB)
3210
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3211
0
  } else {
3212
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.BackfillJobPB)
3213
0
    MergeFrom(*source);
3214
0
  }
3215
0
}
3216
3217
5.25k
void BackfillJobPB::MergeFrom(const BackfillJobPB& from) {
3218
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.BackfillJobPB)
3219
5.25k
  GOOGLE_DCHECK_NE(&from, this);
3220
5.25k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3221
5.25k
  ::google::protobuf::uint32 cached_has_bits = 0;
3222
5.25k
  (void) cached_has_bits;
3223
3224
5.25k
  indexes_.MergeFrom(from.indexes_);
3225
5.25k
  backfill_state_.MergeFrom(from.backfill_state_);
3226
5.25k
  cached_has_bits = from._has_bits_[0];
3227
5.25k
  if (cached_has_bits & 3u) {
3228
4.50k
    if (cached_has_bits & 0x00000001u) {
3229
4.50k
      backfilling_timestamp_ = from.backfilling_timestamp_;
3230
4.50k
    }
3231
4.50k
    if (cached_has_bits & 0x00000002u) {
3232
3.70k
      num_rows_processed_ = from.num_rows_processed_;
3233
3.70k
    }
3234
4.50k
    _has_bits_[0] |= cached_has_bits;
3235
4.50k
  }
3236
5.25k
}
3237
3238
0
void BackfillJobPB::CopyFrom(const ::google::protobuf::Message& from) {
3239
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.BackfillJobPB)
3240
0
  if (&from == this) return;
3241
0
  Clear();
3242
0
  MergeFrom(from);
3243
0
}
3244
3245
0
void BackfillJobPB::CopyFrom(const BackfillJobPB& from) {
3246
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.BackfillJobPB)
3247
0
  if (&from == this) return;
3248
0
  Clear();
3249
0
  MergeFrom(from);
3250
0
}
3251
3252
3.67k
bool BackfillJobPB::IsInitialized() const {
3253
3.67k
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) return false;
3254
3.67k
  return true;
3255
3.67k
}
3256
3257
0
void BackfillJobPB::Swap(BackfillJobPB* other) {
3258
0
  if (other == this) return;
3259
0
  InternalSwap(other);
3260
0
}
3261
350
void BackfillJobPB::InternalSwap(BackfillJobPB* other) {
3262
350
  using std::swap;
3263
350
  indexes_.InternalSwap(&other->indexes_);
3264
350
  backfill_state_.Swap(&other->backfill_state_);
3265
350
  swap(backfilling_timestamp_, other->backfilling_timestamp_);
3266
350
  swap(num_rows_processed_, other->num_rows_processed_);
3267
350
  swap(_has_bits_[0], other->_has_bits_[0]);
3268
350
  _internal_metadata_.Swap(&other->_internal_metadata_);
3269
350
  swap(_cached_size_, other->_cached_size_);
3270
350
}
3271
3272
92.8k
::google::protobuf::Metadata BackfillJobPB::GetMetadata() const {
3273
92.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
3274
92.8k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
3275
92.8k
}
3276
3277
3278
// ===================================================================
3279
3280
15.8k
void SysTablesEntryPB::InitAsDefaultInstance() {
3281
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->schema_ = const_cast< ::yb::SchemaPB*>(
3282
15.8k
      ::yb::SchemaPB::internal_default_instance());
3283
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->fully_applied_schema_ = const_cast< ::yb::SchemaPB*>(
3284
15.8k
      ::yb::SchemaPB::internal_default_instance());
3285
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->partition_schema_ = const_cast< ::yb::PartitionSchemaPB*>(
3286
15.8k
      ::yb::PartitionSchemaPB::internal_default_instance());
3287
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->replication_info_ = const_cast< ::yb::master::ReplicationInfoPB*>(
3288
15.8k
      ::yb::master::ReplicationInfoPB::internal_default_instance());
3289
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->index_info_ = const_cast< ::yb::IndexInfoPB*>(
3290
15.8k
      ::yb::IndexInfoPB::internal_default_instance());
3291
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->fully_applied_index_info_ = const_cast< ::yb::IndexInfoPB*>(
3292
15.8k
      ::yb::IndexInfoPB::internal_default_instance());
3293
15.8k
  ::yb::master::_SysTablesEntryPB_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::yb::TransactionMetadataPB*>(
3294
15.8k
      ::yb::TransactionMetadataPB::internal_default_instance());
3295
15.8k
}
3296
0
void SysTablesEntryPB::clear_schema() {
3297
0
  if (schema_ != NULL) schema_->Clear();
3298
0
  clear_has_schema();
3299
0
}
3300
4.39k
void SysTablesEntryPB::clear_fully_applied_schema() {
3301
4.39k
  if (fully_applied_schema_ != NULL) fully_applied_schema_->Clear();
3302
4.39k
  clear_has_fully_applied_schema();
3303
4.39k
}
3304
0
void SysTablesEntryPB::clear_partition_schema() {
3305
0
  if (partition_schema_ != NULL) partition_schema_->Clear();
3306
0
  clear_has_partition_schema();
3307
0
}
3308
0
void SysTablesEntryPB::clear_indexes() {
3309
0
  indexes_.Clear();
3310
0
}
3311
0
void SysTablesEntryPB::clear_index_info() {
3312
0
  if (index_info_ != NULL) index_info_->Clear();
3313
0
  clear_has_index_info();
3314
0
}
3315
4.39k
void SysTablesEntryPB::clear_fully_applied_indexes() {
3316
4.39k
  fully_applied_indexes_.Clear();
3317
4.39k
}
3318
4.39k
void SysTablesEntryPB::clear_fully_applied_index_info() {
3319
4.39k
  if (fully_applied_index_info_ != NULL) fully_applied_index_info_->Clear();
3320
4.39k
  clear_has_fully_applied_index_info();
3321
4.39k
}
3322
1.37k
void SysTablesEntryPB::clear_transaction() {
3323
1.37k
  if (transaction_ != NULL) transaction_->Clear();
3324
1.37k
  clear_has_transaction();
3325
1.37k
}
3326
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3327
const int SysTablesEntryPB::kNameFieldNumber;
3328
const int SysTablesEntryPB::kTableTypeFieldNumber;
3329
const int SysTablesEntryPB::kNamespaceIdFieldNumber;
3330
const int SysTablesEntryPB::kNamespaceNameFieldNumber;
3331
const int SysTablesEntryPB::kVersionFieldNumber;
3332
const int SysTablesEntryPB::kSchemaFieldNumber;
3333
const int SysTablesEntryPB::kFullyAppliedSchemaFieldNumber;
3334
const int SysTablesEntryPB::kPartitionSchemaFieldNumber;
3335
const int SysTablesEntryPB::kPartitionListVersionFieldNumber;
3336
const int SysTablesEntryPB::kNextColumnIdFieldNumber;
3337
const int SysTablesEntryPB::kReplicationInfoFieldNumber;
3338
const int SysTablesEntryPB::kStateFieldNumber;
3339
const int SysTablesEntryPB::kStateMsgFieldNumber;
3340
const int SysTablesEntryPB::kIndexesFieldNumber;
3341
const int SysTablesEntryPB::kIndexedTableIdFieldNumber;
3342
const int SysTablesEntryPB::kIsLocalIndexFieldNumber;
3343
const int SysTablesEntryPB::kIsUniqueIndexFieldNumber;
3344
const int SysTablesEntryPB::kIndexInfoFieldNumber;
3345
const int SysTablesEntryPB::kIsPgSharedTableFieldNumber;
3346
const int SysTablesEntryPB::kWalRetentionSecsFieldNumber;
3347
const int SysTablesEntryPB::kColocatedFieldNumber;
3348
const int SysTablesEntryPB::kFullyAppliedSchemaVersionFieldNumber;
3349
const int SysTablesEntryPB::kFullyAppliedIndexesFieldNumber;
3350
const int SysTablesEntryPB::kFullyAppliedIndexInfoFieldNumber;
3351
const int SysTablesEntryPB::kTransactionFieldNumber;
3352
const int SysTablesEntryPB::kUpdatesOnlyIndexPermissionsFieldNumber;
3353
const int SysTablesEntryPB::kBackfillJobsFieldNumber;
3354
const int SysTablesEntryPB::kHideStateFieldNumber;
3355
const int SysTablesEntryPB::kTransactionTableTablespaceIdFieldNumber;
3356
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3357
3358
SysTablesEntryPB::SysTablesEntryPB()
3359
740k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3360
724k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3361
724k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTablesEntryPB();
3362
724k
  }
3363
740k
  SharedCtor();
3364
  // @@protoc_insertion_point(constructor:yb.master.SysTablesEntryPB)
3365
740k
}
3366
SysTablesEntryPB::SysTablesEntryPB(const SysTablesEntryPB& from)
3367
  : ::google::protobuf::Message(),
3368
      _internal_metadata_(NULL),
3369
      _has_bits_(from._has_bits_),
3370
      _cached_size_(0),
3371
      indexes_(from.indexes_),
3372
      fully_applied_indexes_(from.fully_applied_indexes_),
3373
733k
      backfill_jobs_(from.backfill_jobs_) {
3374
733k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3375
733k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3376
733k
  if (from.has_name()) {
3377
489k
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3378
489k
  }
3379
733k
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3380
733k
  if (from.has_state_msg()) {
3381
22.0k
    state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
3382
22.0k
  }
3383
733k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3384
733k
  if (from.has_namespace_id()) {
3385
489k
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
3386
489k
  }
3387
733k
  indexed_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3388
733k
  if (from.has_indexed_table_id()) {
3389
121k
    indexed_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.indexed_table_id_);
3390
121k
  }
3391
733k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3392
733k
  if (from.has_namespace_name()) {
3393
489k
    namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
3394
489k
  }
3395
733k
  transaction_table_tablespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3396
733k
  if (from.has_transaction_table_tablespace_id()) {
3397
0
    transaction_table_tablespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_table_tablespace_id_);
3398
0
  }
3399
733k
  if (from.has_schema()) {
3400
489k
    schema_ = new ::yb::SchemaPB(*from.schema_);
3401
243k
  } else {
3402
243k
    schema_ = NULL;
3403
243k
  }
3404
733k
  if (from.has_fully_applied_schema()) {
3405
3.58k
    fully_applied_schema_ = new ::yb::SchemaPB(*from.fully_applied_schema_);
3406
729k
  } else {
3407
729k
    fully_applied_schema_ = NULL;
3408
729k
  }
3409
733k
  if (from.has_replication_info()) {
3410
237
    replication_info_ = new ::yb::master::ReplicationInfoPB(*from.replication_info_);
3411
732k
  } else {
3412
732k
    replication_info_ = NULL;
3413
732k
  }
3414
733k
  if (from.has_partition_schema()) {
3415
489k
    partition_schema_ = new ::yb::PartitionSchemaPB(*from.partition_schema_);
3416
243k
  } else {
3417
243k
    partition_schema_ = NULL;
3418
243k
  }
3419
733k
  if (from.has_index_info()) {
3420
121k
    index_info_ = new ::yb::IndexInfoPB(*from.index_info_);
3421
611k
  } else {
3422
611k
    index_info_ = NULL;
3423
611k
  }
3424
733k
  if (from.has_fully_applied_index_info()) {
3425
0
    fully_applied_index_info_ = new ::yb::IndexInfoPB(*from.fully_applied_index_info_);
3426
733k
  } else {
3427
733k
    fully_applied_index_info_ = NULL;
3428
733k
  }
3429
733k
  if (from.has_transaction()) {
3430
29.9k
    transaction_ = new ::yb::TransactionMetadataPB(*from.transaction_);
3431
703k
  } else {
3432
703k
    transaction_ = NULL;
3433
703k
  }
3434
733k
  ::memcpy(&version_, &from.version_,
3435
733k
    static_cast<size_t>(reinterpret_cast<char*>(&table_type_) -
3436
733k
    reinterpret_cast<char*>(&version_)) + sizeof(table_type_));
3437
  // @@protoc_insertion_point(copy_constructor:yb.master.SysTablesEntryPB)
3438
733k
}
3439
3440
740k
void SysTablesEntryPB::SharedCtor() {
3441
740k
  _cached_size_ = 0;
3442
740k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3443
740k
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3444
740k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3445
740k
  indexed_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3446
740k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3447
740k
  transaction_table_tablespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3448
740k
  ::memset(&schema_, 0, static_cast<size_t>(
3449
740k
      reinterpret_cast<char*>(&hide_state_) -
3450
740k
      reinterpret_cast<char*>(&schema_)) + sizeof(hide_state_));
3451
740k
  table_type_ = 2;
3452
740k
}
3453
3454
1.21M
SysTablesEntryPB::~SysTablesEntryPB() {
3455
  // @@protoc_insertion_point(destructor:yb.master.SysTablesEntryPB)
3456
1.21M
  SharedDtor();
3457
1.21M
}
3458
3459
1.21M
void SysTablesEntryPB::SharedDtor() {
3460
1.21M
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3461
1.21M
  state_msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3462
1.21M
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3463
1.21M
  indexed_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3464
1.21M
  namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3465
1.21M
  transaction_table_tablespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3466
1.21M
  if (this != internal_default_instance()) delete schema_;
3467
1.21M
  if (this != internal_default_instance()) delete fully_applied_schema_;
3468
1.21M
  if (this != internal_default_instance()) delete replication_info_;
3469
1.21M
  if (this != internal_default_instance()) delete partition_schema_;
3470
1.21M
  if (this != internal_default_instance()) delete index_info_;
3471
1.21M
  if (this != internal_default_instance()) delete fully_applied_index_info_;
3472
1.21M
  if (this != internal_default_instance()) delete transaction_;
3473
1.21M
}
3474
3475
0
void SysTablesEntryPB::SetCachedSize(int size) const {
3476
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3477
0
  _cached_size_ = size;
3478
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3479
0
}
3480
0
const ::google::protobuf::Descriptor* SysTablesEntryPB::descriptor() {
3481
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
3482
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3483
0
}
3484
3485
0
const SysTablesEntryPB& SysTablesEntryPB::default_instance() {
3486
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTablesEntryPB();
3487
0
  return *internal_default_instance();
3488
0
}
3489
3490
0
SysTablesEntryPB* SysTablesEntryPB::New(::google::protobuf::Arena* arena) const {
3491
0
  SysTablesEntryPB* n = new SysTablesEntryPB;
3492
0
  if (arena != NULL) {
3493
0
    arena->Own(n);
3494
0
  }
3495
0
  return n;
3496
0
}
3497
3498
421k
void SysTablesEntryPB::Clear() {
3499
// @@protoc_insertion_point(message_clear_start:yb.master.SysTablesEntryPB)
3500
421k
  ::google::protobuf::uint32 cached_has_bits = 0;
3501
  // Prevent compiler warnings about cached_has_bits being unused
3502
421k
  (void) cached_has_bits;
3503
3504
421k
  indexes_.Clear();
3505
421k
  fully_applied_indexes_.Clear();
3506
421k
  backfill_jobs_.Clear();
3507
421k
  cached_has_bits = _has_bits_[0];
3508
421k
  if (cached_has_bits & 255u) {
3509
0
    if (cached_has_bits & 0x00000001u) {
3510
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3511
0
      (*name_.UnsafeRawStringPointer())->clear();
3512
0
    }
3513
0
    if (cached_has_bits & 0x00000002u) {
3514
0
      GOOGLE_DCHECK(!state_msg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3515
0
      (*state_msg_.UnsafeRawStringPointer())->clear();
3516
0
    }
3517
0
    if (cached_has_bits & 0x00000004u) {
3518
0
      GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3519
0
      (*namespace_id_.UnsafeRawStringPointer())->clear();
3520
0
    }
3521
0
    if (cached_has_bits & 0x00000008u) {
3522
0
      GOOGLE_DCHECK(!indexed_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3523
0
      (*indexed_table_id_.UnsafeRawStringPointer())->clear();
3524
0
    }
3525
0
    if (cached_has_bits & 0x00000010u) {
3526
0
      GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3527
0
      (*namespace_name_.UnsafeRawStringPointer())->clear();
3528
0
    }
3529
0
    if (cached_has_bits & 0x00000020u) {
3530
0
      GOOGLE_DCHECK(!transaction_table_tablespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3531
0
      (*transaction_table_tablespace_id_.UnsafeRawStringPointer())->clear();
3532
0
    }
3533
0
    if (cached_has_bits & 0x00000040u) {
3534
0
      GOOGLE_DCHECK(schema_ != NULL);
3535
0
      schema_->Clear();
3536
0
    }
3537
0
    if (cached_has_bits & 0x00000080u) {
3538
0
      GOOGLE_DCHECK(fully_applied_schema_ != NULL);
3539
0
      fully_applied_schema_->Clear();
3540
0
    }
3541
0
  }
3542
421k
  if (cached_has_bits & 7936u) {
3543
0
    if (cached_has_bits & 0x00000100u) {
3544
0
      GOOGLE_DCHECK(replication_info_ != NULL);
3545
0
      replication_info_->Clear();
3546
0
    }
3547
0
    if (cached_has_bits & 0x00000200u) {
3548
0
      GOOGLE_DCHECK(partition_schema_ != NULL);
3549
0
      partition_schema_->Clear();
3550
0
    }
3551
0
    if (cached_has_bits & 0x00000400u) {
3552
0
      GOOGLE_DCHECK(index_info_ != NULL);
3553
0
      index_info_->Clear();
3554
0
    }
3555
0
    if (cached_has_bits & 0x00000800u) {
3556
0
      GOOGLE_DCHECK(fully_applied_index_info_ != NULL);
3557
0
      fully_applied_index_info_->Clear();
3558
0
    }
3559
0
    if (cached_has_bits & 0x00001000u) {
3560
0
      GOOGLE_DCHECK(transaction_ != NULL);
3561
0
      transaction_->Clear();
3562
0
    }
3563
0
  }
3564
421k
  if (cached_has_bits & 57344u) {
3565
0
    ::memset(&version_, 0, static_cast<size_t>(
3566
0
        reinterpret_cast<char*>(&next_column_id_) -
3567
0
        reinterpret_cast<char*>(&version_)) + sizeof(next_column_id_));
3568
0
  }
3569
421k
  if (cached_has_bits & 16711680u) {
3570
0
    ::memset(&is_local_index_, 0, static_cast<size_t>(
3571
0
        reinterpret_cast<char*>(&updates_only_index_permissions_) -
3572
0
        reinterpret_cast<char*>(&is_local_index_)) + sizeof(updates_only_index_permissions_));
3573
0
  }
3574
421k
  if (cached_has_bits & 50331648u) {
3575
0
    hide_state_ = 0;
3576
0
    table_type_ = 2;
3577
0
  }
3578
421k
  _has_bits_.Clear();
3579
421k
  _internal_metadata_.Clear();
3580
421k
}
3581
3582
bool SysTablesEntryPB::MergePartialFromCodedStream(
3583
210k
    ::google::protobuf::io::CodedInputStream* input) {
3584
2.26M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3585
210k
  ::google::protobuf::uint32 tag;
3586
  // @@protoc_insertion_point(parse_start:yb.master.SysTablesEntryPB)
3587
2.47M
  for (;;) {
3588
2.47M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
3589
2.47M
    tag = p.first;
3590
2.47M
    if (!p.second) goto handle_unusual;
3591
2.26M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3592
      // required bytes name = 1;
3593
210k
      case 1: {
3594
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3595
210k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3596
210k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3597
210k
                input, this->mutable_name()));
3598
0
        } else {
3599
0
          goto handle_unusual;
3600
0
        }
3601
210k
        break;
3602
210k
      }
3603
3604
      // required uint32 version = 2;
3605
210k
      case 2: {
3606
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3607
210k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3608
210k
          set_has_version();
3609
210k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3610
210k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3611
210k
                 input, &version_)));
3612
0
        } else {
3613
0
          goto handle_unusual;
3614
0
        }
3615
210k
        break;
3616
210k
      }
3617
3618
      // required .yb.SchemaPB schema = 3;
3619
210k
      case 3: {
3620
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3621
210k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3622
210k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3623
210k
               input, mutable_schema()));
3624
0
        } else {
3625
0
          goto handle_unusual;
3626
0
        }
3627
210k
        break;
3628
210k
      }
3629
3630
      // optional .yb.SchemaPB fully_applied_schema = 4;
3631
0
      case 4: {
3632
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3633
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3634
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3635
0
               input, mutable_fully_applied_schema()));
3636
0
        } else {
3637
0
          goto handle_unusual;
3638
0
        }
3639
0
        break;
3640
0
      }
3641
3642
      // optional .yb.master.ReplicationInfoPB replication_info = 5;
3643
3
      case 5: {
3644
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3645
3
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
3646
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3647
3
               input, mutable_replication_info()));
3648
0
        } else {
3649
0
          goto handle_unusual;
3650
0
        }
3651
3
        break;
3652
3
      }
3653
3654
      // optional .yb.master.SysTablesEntryPB.State state = 6 [default = UNKNOWN];
3655
210k
      case 6: {
3656
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3657
210k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
3658
210k
          int value;
3659
210k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3660
210k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3661
210k
                 input, &value)));
3662
210k
          if (::yb::master::SysTablesEntryPB_State_IsValid(value)) {
3663
210k
            set_state(static_cast< ::yb::master::SysTablesEntryPB_State >(value));
3664
0
          } else {
3665
0
            mutable_unknown_fields()->AddVarint(
3666
0
                6, static_cast< ::google::protobuf::uint64>(value));
3667
0
          }
3668
0
        } else {
3669
0
          goto handle_unusual;
3670
0
        }
3671
210k
        break;
3672
210k
      }
3673
3674
      // optional bytes state_msg = 7;
3675
55
      case 7: {
3676
55
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3677
55
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
3678
55
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3679
55
                input, this->mutable_state_msg()));
3680
0
        } else {
3681
0
          goto handle_unusual;
3682
0
        }
3683
55
        break;
3684
55
      }
3685
3686
      // optional int32 next_column_id = 8;
3687
210k
      case 8: {
3688
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3689
210k
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
3690
210k
          set_has_next_column_id();
3691
210k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3692
210k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3693
210k
                 input, &next_column_id_)));
3694
0
        } else {
3695
0
          goto handle_unusual;
3696
0
        }
3697
210k
        break;
3698
210k
      }
3699
3700
      // optional .yb.PartitionSchemaPB partition_schema = 9;
3701
210k
      case 9: {
3702
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3703
210k
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
3704
210k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3705
210k
               input, mutable_partition_schema()));
3706
0
        } else {
3707
0
          goto handle_unusual;
3708
0
        }
3709
210k
        break;
3710
210k
      }
3711
3712
      // optional .yb.TableType table_type = 10 [default = DEFAULT_TABLE_TYPE];
3713
210k
      case 10: {
3714
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3715
210k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
3716
210k
          int value;
3717
210k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3718
210k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3719
210k
                 input, &value)));
3720
210k
          if (::yb::TableType_IsValid(value)) {
3721
210k
            set_table_type(static_cast< ::yb::TableType >(value));
3722
0
          } else {
3723
0
            mutable_unknown_fields()->AddVarint(
3724
0
                10, static_cast< ::google::protobuf::uint64>(value));
3725
0
          }
3726
0
        } else {
3727
0
          goto handle_unusual;
3728
0
        }
3729
210k
        break;
3730
210k
      }
3731
3732
      // optional bytes namespace_id = 11;
3733
210k
      case 11: {
3734
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3735
210k
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
3736
210k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3737
210k
                input, this->mutable_namespace_id()));
3738
0
        } else {
3739
0
          goto handle_unusual;
3740
0
        }
3741
210k
        break;
3742
210k
      }
3743
3744
      // repeated .yb.IndexInfoPB indexes = 12;
3745
17
      case 12: {
3746
17
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3747
17
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
3748
17
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_indexes()));
3749
0
        } else {
3750
0
          goto handle_unusual;
3751
0
        }
3752
17
        break;
3753
17
      }
3754
3755
      // optional bytes indexed_table_id = 13;
3756
90.0k
      case 13: {
3757
90.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3758
90.0k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
3759
90.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3760
90.0k
                input, this->mutable_indexed_table_id()));
3761
0
        } else {
3762
0
          goto handle_unusual;
3763
0
        }
3764
90.0k
        break;
3765
90.0k
      }
3766
3767
      // optional bool is_local_index = 14 [default = false];
3768
90.0k
      case 14: {
3769
90.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3770
90.0k
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
3771
90.0k
          set_has_is_local_index();
3772
90.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3773
90.0k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3774
90.0k
                 input, &is_local_index_)));
3775
0
        } else {
3776
0
          goto handle_unusual;
3777
0
        }
3778
90.0k
        break;
3779
90.0k
      }
3780
3781
      // optional bool is_unique_index = 15 [default = false];
3782
90.0k
      case 15: {
3783
90.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3784
90.0k
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
3785
90.0k
          set_has_is_unique_index();
3786
90.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3787
90.0k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3788
90.0k
                 input, &is_unique_index_)));
3789
0
        } else {
3790
0
          goto handle_unusual;
3791
0
        }
3792
90.0k
        break;
3793
90.0k
      }
3794
3795
      // optional bool is_pg_shared_table = 16 [default = false];
3796
7.26k
      case 16: {
3797
7.26k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3798
7.26k
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
3799
7.26k
          set_has_is_pg_shared_table();
3800
7.26k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3801
7.26k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3802
7.26k
                 input, &is_pg_shared_table_)));
3803
0
        } else {
3804
0
          goto handle_unusual;
3805
0
        }
3806
7.26k
        break;
3807
7.26k
      }
3808
3809
      // optional .yb.IndexInfoPB index_info = 22;
3810
90.0k
      case 22: {
3811
90.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3812
90.0k
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
3813
90.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3814
90.0k
               input, mutable_index_info()));
3815
0
        } else {
3816
0
          goto handle_unusual;
3817
0
        }
3818
90.0k
        break;
3819
90.0k
      }
3820
3821
      // optional uint32 fully_applied_schema_version = 23;
3822
0
      case 23: {
3823
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3824
0
            static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
3825
0
          set_has_fully_applied_schema_version();
3826
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3827
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3828
0
                 input, &fully_applied_schema_version_)));
3829
0
        } else {
3830
0
          goto handle_unusual;
3831
0
        }
3832
0
        break;
3833
0
      }
3834
3835
      // optional uint32 wal_retention_secs = 24;
3836
0
      case 24: {
3837
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3838
0
            static_cast< ::google::protobuf::uint8>(192u /* 192 & 0xFF */)) {
3839
0
          set_has_wal_retention_secs();
3840
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3841
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3842
0
                 input, &wal_retention_secs_)));
3843
0
        } else {
3844
0
          goto handle_unusual;
3845
0
        }
3846
0
        break;
3847
0
      }
3848
3849
      // optional bool colocated = 25 [default = false];
3850
1
      case 25: {
3851
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3852
1
            static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
3853
1
          set_has_colocated();
3854
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3855
1
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3856
1
                 input, &colocated_)));
3857
0
        } else {
3858
0
          goto handle_unusual;
3859
0
        }
3860
1
        break;
3861
1
      }
3862
3863
      // repeated .yb.IndexInfoPB fully_applied_indexes = 26;
3864
0
      case 26: {
3865
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3866
0
            static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
3867
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_fully_applied_indexes()));
3868
0
        } else {
3869
0
          goto handle_unusual;
3870
0
        }
3871
0
        break;
3872
0
      }
3873
3874
      // optional .yb.IndexInfoPB fully_applied_index_info = 27;
3875
0
      case 27: {
3876
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3877
0
            static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
3878
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3879
0
               input, mutable_fully_applied_index_info()));
3880
0
        } else {
3881
0
          goto handle_unusual;
3882
0
        }
3883
0
        break;
3884
0
      }
3885
3886
      // optional uint32 partition_list_version = 28;
3887
2
      case 28: {
3888
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3889
2
            static_cast< ::google::protobuf::uint8>(224u /* 224 & 0xFF */)) {
3890
2
          set_has_partition_list_version();
3891
2
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3892
2
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3893
2
                 input, &partition_list_version_)));
3894
0
        } else {
3895
0
          goto handle_unusual;
3896
0
        }
3897
2
        break;
3898
2
      }
3899
3900
      // optional .yb.TransactionMetadataPB transaction = 29;
3901
3
      case 29: {
3902
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3903
3
            static_cast< ::google::protobuf::uint8>(234u /* 234 & 0xFF */)) {
3904
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3905
3
               input, mutable_transaction()));
3906
0
        } else {
3907
0
          goto handle_unusual;
3908
0
        }
3909
3
        break;
3910
3
      }
3911
3912
      // optional bytes namespace_name = 30;
3913
210k
      case 30: {
3914
210k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3915
210k
            static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
3916
210k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3917
210k
                input, this->mutable_namespace_name()));
3918
0
        } else {
3919
0
          goto handle_unusual;
3920
0
        }
3921
210k
        break;
3922
210k
      }
3923
3924
      // optional bool updates_only_index_permissions = 31 [default = false];
3925
18
      case 31: {
3926
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3927
18
            static_cast< ::google::protobuf::uint8>(248u /* 248 & 0xFF */)) {
3928
18
          set_has_updates_only_index_permissions();
3929
18
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3930
18
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3931
18
                 input, &updates_only_index_permissions_)));
3932
0
        } else {
3933
0
          goto handle_unusual;
3934
0
        }
3935
18
        break;
3936
18
      }
3937
3938
      // repeated .yb.master.BackfillJobPB backfill_jobs = 32;
3939
4
      case 32: {
3940
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3941
4
            static_cast< ::google::protobuf::uint8>(2u /* 258 & 0xFF */)) {
3942
4
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_backfill_jobs()));
3943
0
        } else {
3944
0
          goto handle_unusual;
3945
0
        }
3946
4
        break;
3947
4
      }
3948
3949
      // optional .yb.master.SysTablesEntryPB.HideState hide_state = 33;
3950
0
      case 33: {
3951
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3952
0
            static_cast< ::google::protobuf::uint8>(8u /* 264 & 0xFF */)) {
3953
0
          int value;
3954
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3955
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3956
0
                 input, &value)));
3957
0
          if (::yb::master::SysTablesEntryPB_HideState_IsValid(value)) {
3958
0
            set_hide_state(static_cast< ::yb::master::SysTablesEntryPB_HideState >(value));
3959
0
          } else {
3960
0
            mutable_unknown_fields()->AddVarint(
3961
0
                33, static_cast< ::google::protobuf::uint64>(value));
3962
0
          }
3963
0
        } else {
3964
0
          goto handle_unusual;
3965
0
        }
3966
0
        break;
3967
0
      }
3968
3969
      // optional bytes transaction_table_tablespace_id = 34;
3970
0
      case 34: {
3971
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3972
0
            static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
3973
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3974
0
                input, this->mutable_transaction_table_tablespace_id()));
3975
0
        } else {
3976
0
          goto handle_unusual;
3977
0
        }
3978
0
        break;
3979
210k
      }
3980
3981
0
      default: {
3982
210k
      handle_unusual:
3983
210k
        if (tag == 0) {
3984
210k
          goto success;
3985
210k
        }
3986
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3987
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3988
0
        break;
3989
0
      }
3990
2.26M
    }
3991
2.26M
  }
3992
210k
success:
3993
  // @@protoc_insertion_point(parse_success:yb.master.SysTablesEntryPB)
3994
210k
  return true;
3995
0
failure:
3996
  // @@protoc_insertion_point(parse_failure:yb.master.SysTablesEntryPB)
3997
0
  return false;
3998
210k
#undef DO_
3999
210k
}
4000
4001
void SysTablesEntryPB::SerializeWithCachedSizes(
4002
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4003
  // @@protoc_insertion_point(serialize_start:yb.master.SysTablesEntryPB)
4004
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4005
0
  (void) cached_has_bits;
4006
4007
0
  cached_has_bits = _has_bits_[0];
4008
  // required bytes name = 1;
4009
0
  if (cached_has_bits & 0x00000001u) {
4010
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4011
0
      1, this->name(), output);
4012
0
  }
4013
4014
  // required uint32 version = 2;
4015
0
  if (cached_has_bits & 0x00002000u) {
4016
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->version(), output);
4017
0
  }
4018
4019
  // required .yb.SchemaPB schema = 3;
4020
0
  if (cached_has_bits & 0x00000040u) {
4021
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4022
0
      3, *this->schema_, output);
4023
0
  }
4024
4025
  // optional .yb.SchemaPB fully_applied_schema = 4;
4026
0
  if (cached_has_bits & 0x00000080u) {
4027
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4028
0
      4, *this->fully_applied_schema_, output);
4029
0
  }
4030
4031
  // optional .yb.master.ReplicationInfoPB replication_info = 5;
4032
0
  if (cached_has_bits & 0x00000100u) {
4033
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4034
0
      5, *this->replication_info_, output);
4035
0
  }
4036
4037
  // optional .yb.master.SysTablesEntryPB.State state = 6 [default = UNKNOWN];
4038
0
  if (cached_has_bits & 0x00004000u) {
4039
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4040
0
      6, this->state(), output);
4041
0
  }
4042
4043
  // optional bytes state_msg = 7;
4044
0
  if (cached_has_bits & 0x00000002u) {
4045
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4046
0
      7, this->state_msg(), output);
4047
0
  }
4048
4049
  // optional int32 next_column_id = 8;
4050
0
  if (cached_has_bits & 0x00008000u) {
4051
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->next_column_id(), output);
4052
0
  }
4053
4054
  // optional .yb.PartitionSchemaPB partition_schema = 9;
4055
0
  if (cached_has_bits & 0x00000200u) {
4056
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4057
0
      9, *this->partition_schema_, output);
4058
0
  }
4059
4060
  // optional .yb.TableType table_type = 10 [default = DEFAULT_TABLE_TYPE];
4061
0
  if (cached_has_bits & 0x02000000u) {
4062
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4063
0
      10, this->table_type(), output);
4064
0
  }
4065
4066
  // optional bytes namespace_id = 11;
4067
0
  if (cached_has_bits & 0x00000004u) {
4068
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4069
0
      11, this->namespace_id(), output);
4070
0
  }
4071
4072
  // repeated .yb.IndexInfoPB indexes = 12;
4073
0
  for (unsigned int i = 0,
4074
0
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
4075
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4076
0
      12, this->indexes(static_cast<int>(i)), output);
4077
0
  }
4078
4079
  // optional bytes indexed_table_id = 13;
4080
0
  if (cached_has_bits & 0x00000008u) {
4081
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4082
0
      13, this->indexed_table_id(), output);
4083
0
  }
4084
4085
  // optional bool is_local_index = 14 [default = false];
4086
0
  if (cached_has_bits & 0x00010000u) {
4087
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->is_local_index(), output);
4088
0
  }
4089
4090
  // optional bool is_unique_index = 15 [default = false];
4091
0
  if (cached_has_bits & 0x00020000u) {
4092
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_unique_index(), output);
4093
0
  }
4094
4095
  // optional bool is_pg_shared_table = 16 [default = false];
4096
0
  if (cached_has_bits & 0x00040000u) {
4097
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->is_pg_shared_table(), output);
4098
0
  }
4099
4100
  // optional .yb.IndexInfoPB index_info = 22;
4101
0
  if (cached_has_bits & 0x00000400u) {
4102
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4103
0
      22, *this->index_info_, output);
4104
0
  }
4105
4106
  // optional uint32 fully_applied_schema_version = 23;
4107
0
  if (cached_has_bits & 0x00100000u) {
4108
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(23, this->fully_applied_schema_version(), output);
4109
0
  }
4110
4111
  // optional uint32 wal_retention_secs = 24;
4112
0
  if (cached_has_bits & 0x00200000u) {
4113
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(24, this->wal_retention_secs(), output);
4114
0
  }
4115
4116
  // optional bool colocated = 25 [default = false];
4117
0
  if (cached_has_bits & 0x00080000u) {
4118
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(25, this->colocated(), output);
4119
0
  }
4120
4121
  // repeated .yb.IndexInfoPB fully_applied_indexes = 26;
4122
0
  for (unsigned int i = 0,
4123
0
      n = static_cast<unsigned int>(this->fully_applied_indexes_size()); i < n; i++) {
4124
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4125
0
      26, this->fully_applied_indexes(static_cast<int>(i)), output);
4126
0
  }
4127
4128
  // optional .yb.IndexInfoPB fully_applied_index_info = 27;
4129
0
  if (cached_has_bits & 0x00000800u) {
4130
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4131
0
      27, *this->fully_applied_index_info_, output);
4132
0
  }
4133
4134
  // optional uint32 partition_list_version = 28;
4135
0
  if (cached_has_bits & 0x00400000u) {
4136
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(28, this->partition_list_version(), output);
4137
0
  }
4138
4139
  // optional .yb.TransactionMetadataPB transaction = 29;
4140
0
  if (cached_has_bits & 0x00001000u) {
4141
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4142
0
      29, *this->transaction_, output);
4143
0
  }
4144
4145
  // optional bytes namespace_name = 30;
4146
0
  if (cached_has_bits & 0x00000010u) {
4147
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4148
0
      30, this->namespace_name(), output);
4149
0
  }
4150
4151
  // optional bool updates_only_index_permissions = 31 [default = false];
4152
0
  if (cached_has_bits & 0x00800000u) {
4153
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->updates_only_index_permissions(), output);
4154
0
  }
4155
4156
  // repeated .yb.master.BackfillJobPB backfill_jobs = 32;
4157
0
  for (unsigned int i = 0,
4158
0
      n = static_cast<unsigned int>(this->backfill_jobs_size()); i < n; i++) {
4159
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4160
0
      32, this->backfill_jobs(static_cast<int>(i)), output);
4161
0
  }
4162
4163
  // optional .yb.master.SysTablesEntryPB.HideState hide_state = 33;
4164
0
  if (cached_has_bits & 0x01000000u) {
4165
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4166
0
      33, this->hide_state(), output);
4167
0
  }
4168
4169
  // optional bytes transaction_table_tablespace_id = 34;
4170
0
  if (cached_has_bits & 0x00000020u) {
4171
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4172
0
      34, this->transaction_table_tablespace_id(), output);
4173
0
  }
4174
4175
0
  if (_internal_metadata_.have_unknown_fields()) {
4176
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4177
0
        _internal_metadata_.unknown_fields(), output);
4178
0
  }
4179
  // @@protoc_insertion_point(serialize_end:yb.master.SysTablesEntryPB)
4180
0
}
4181
4182
::google::protobuf::uint8* SysTablesEntryPB::InternalSerializeWithCachedSizesToArray(
4183
57.1k
    bool deterministic, ::google::protobuf::uint8* target) const {
4184
57.1k
  (void)deterministic; // Unused
4185
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysTablesEntryPB)
4186
57.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
4187
57.1k
  (void) cached_has_bits;
4188
4189
57.1k
  cached_has_bits = _has_bits_[0];
4190
  // required bytes name = 1;
4191
57.1k
  if (cached_has_bits & 0x00000001u) {
4192
57.1k
    target =
4193
57.1k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4194
57.1k
        1, this->name(), target);
4195
57.1k
  }
4196
4197
  // required uint32 version = 2;
4198
57.1k
  if (cached_has_bits & 0x00002000u) {
4199
57.1k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->version(), target);
4200
57.1k
  }
4201
4202
  // required .yb.SchemaPB schema = 3;
4203
57.1k
  if (cached_has_bits & 0x00000040u) {
4204
57.1k
    target = ::google::protobuf::internal::WireFormatLite::
4205
57.1k
      InternalWriteMessageToArray(
4206
57.1k
        3, *this->schema_, deterministic, target);
4207
57.1k
  }
4208
4209
  // optional .yb.SchemaPB fully_applied_schema = 4;
4210
57.1k
  if (cached_has_bits & 0x00000080u) {
4211
3.27k
    target = ::google::protobuf::internal::WireFormatLite::
4212
3.27k
      InternalWriteMessageToArray(
4213
3.27k
        4, *this->fully_applied_schema_, deterministic, target);
4214
3.27k
  }
4215
4216
  // optional .yb.master.ReplicationInfoPB replication_info = 5;
4217
57.1k
  if (cached_has_bits & 0x00000100u) {
4218
14
    target = ::google::protobuf::internal::WireFormatLite::
4219
14
      InternalWriteMessageToArray(
4220
14
        5, *this->replication_info_, deterministic, target);
4221
14
  }
4222
4223
  // optional .yb.master.SysTablesEntryPB.State state = 6 [default = UNKNOWN];
4224
57.1k
  if (cached_has_bits & 0x00004000u) {
4225
57.1k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4226
57.1k
      6, this->state(), target);
4227
57.1k
  }
4228
4229
  // optional bytes state_msg = 7;
4230
57.1k
  if (cached_has_bits & 0x00000002u) {
4231
22.1k
    target =
4232
22.1k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4233
22.1k
        7, this->state_msg(), target);
4234
22.1k
  }
4235
4236
  // optional int32 next_column_id = 8;
4237
57.1k
  if (cached_has_bits & 0x00008000u) {
4238
55.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->next_column_id(), target);
4239
55.5k
  }
4240
4241
  // optional .yb.PartitionSchemaPB partition_schema = 9;
4242
57.1k
  if (cached_has_bits & 0x00000200u) {
4243
55.5k
    target = ::google::protobuf::internal::WireFormatLite::
4244
55.5k
      InternalWriteMessageToArray(
4245
55.5k
        9, *this->partition_schema_, deterministic, target);
4246
55.5k
  }
4247
4248
  // optional .yb.TableType table_type = 10 [default = DEFAULT_TABLE_TYPE];
4249
57.1k
  if (cached_has_bits & 0x02000000u) {
4250
57.1k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4251
57.1k
      10, this->table_type(), target);
4252
57.1k
  }
4253
4254
  // optional bytes namespace_id = 11;
4255
57.1k
  if (cached_has_bits & 0x00000004u) {
4256
57.1k
    target =
4257
57.1k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4258
57.1k
        11, this->namespace_id(), target);
4259
57.1k
  }
4260
4261
  // repeated .yb.IndexInfoPB indexes = 12;
4262
57.1k
  for (unsigned int i = 0,
4263
68.3k
      n = static_cast<unsigned int>(this->indexes_size()); i < n; i++) {
4264
11.1k
    target = ::google::protobuf::internal::WireFormatLite::
4265
11.1k
      InternalWriteMessageToArray(
4266
11.1k
        12, this->indexes(static_cast<int>(i)), deterministic, target);
4267
11.1k
  }
4268
4269
  // optional bytes indexed_table_id = 13;
4270
57.1k
  if (cached_has_bits & 0x00000008u) {
4271
5.36k
    target =
4272
5.36k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4273
5.36k
        13, this->indexed_table_id(), target);
4274
5.36k
  }
4275
4276
  // optional bool is_local_index = 14 [default = false];
4277
57.1k
  if (cached_has_bits & 0x00010000u) {
4278
5.36k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->is_local_index(), target);
4279
5.36k
  }
4280
4281
  // optional bool is_unique_index = 15 [default = false];
4282
57.1k
  if (cached_has_bits & 0x00020000u) {
4283
5.36k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_unique_index(), target);
4284
5.36k
  }
4285
4286
  // optional bool is_pg_shared_table = 16 [default = false];
4287
57.1k
  if (cached_has_bits & 0x00040000u) {
4288
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->is_pg_shared_table(), target);
4289
0
  }
4290
4291
  // optional .yb.IndexInfoPB index_info = 22;
4292
57.1k
  if (cached_has_bits & 0x00000400u) {
4293
5.36k
    target = ::google::protobuf::internal::WireFormatLite::
4294
5.36k
      InternalWriteMessageToArray(
4295
5.36k
        22, *this->index_info_, deterministic, target);
4296
5.36k
  }
4297
4298
  // optional uint32 fully_applied_schema_version = 23;
4299
57.1k
  if (cached_has_bits & 0x00100000u) {
4300
3.27k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(23, this->fully_applied_schema_version(), target);
4301
3.27k
  }
4302
4303
  // optional uint32 wal_retention_secs = 24;
4304
57.1k
  if (cached_has_bits & 0x00200000u) {
4305
5.07k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(24, this->wal_retention_secs(), target);
4306
5.07k
  }
4307
4308
  // optional bool colocated = 25 [default = false];
4309
57.1k
  if (cached_has_bits & 0x00080000u) {
4310
183
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(25, this->colocated(), target);
4311
183
  }
4312
4313
  // repeated .yb.IndexInfoPB fully_applied_indexes = 26;
4314
57.1k
  for (unsigned int i = 0,
4315
62.2k
      n = static_cast<unsigned int>(this->fully_applied_indexes_size()); i < n; i++) {
4316
5.08k
    target = ::google::protobuf::internal::WireFormatLite::
4317
5.08k
      InternalWriteMessageToArray(
4318
5.08k
        26, this->fully_applied_indexes(static_cast<int>(i)), deterministic, target);
4319
5.08k
  }
4320
4321
  // optional .yb.IndexInfoPB fully_applied_index_info = 27;
4322
57.1k
  if (cached_has_bits & 0x00000800u) {
4323
0
    target = ::google::protobuf::internal::WireFormatLite::
4324
0
      InternalWriteMessageToArray(
4325
0
        27, *this->fully_applied_index_info_, deterministic, target);
4326
0
  }
4327
4328
  // optional uint32 partition_list_version = 28;
4329
57.1k
  if (cached_has_bits & 0x00400000u) {
4330
36
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(28, this->partition_list_version(), target);
4331
36
  }
4332
4333
  // optional .yb.TransactionMetadataPB transaction = 29;
4334
57.1k
  if (cached_has_bits & 0x00001000u) {
4335
2.11k
    target = ::google::protobuf::internal::WireFormatLite::
4336
2.11k
      InternalWriteMessageToArray(
4337
2.11k
        29, *this->transaction_, deterministic, target);
4338
2.11k
  }
4339
4340
  // optional bytes namespace_name = 30;
4341
57.1k
  if (cached_has_bits & 0x00000010u) {
4342
55.5k
    target =
4343
55.5k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4344
55.5k
        30, this->namespace_name(), target);
4345
55.5k
  }
4346
4347
  // optional bool updates_only_index_permissions = 31 [default = false];
4348
57.1k
  if (cached_has_bits & 0x00800000u) {
4349
7.78k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->updates_only_index_permissions(), target);
4350
7.78k
  }
4351
4352
  // repeated .yb.master.BackfillJobPB backfill_jobs = 32;
4353
57.1k
  for (unsigned int i = 0,
4354
59.9k
      n = static_cast<unsigned int>(this->backfill_jobs_size()); i < n; i++) {
4355
2.73k
    target = ::google::protobuf::internal::WireFormatLite::
4356
2.73k
      InternalWriteMessageToArray(
4357
2.73k
        32, this->backfill_jobs(static_cast<int>(i)), deterministic, target);
4358
2.73k
  }
4359
4360
  // optional .yb.master.SysTablesEntryPB.HideState hide_state = 33;
4361
57.1k
  if (cached_has_bits & 0x01000000u) {
4362
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4363
0
      33, this->hide_state(), target);
4364
0
  }
4365
4366
  // optional bytes transaction_table_tablespace_id = 34;
4367
57.1k
  if (cached_has_bits & 0x00000020u) {
4368
0
    target =
4369
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4370
0
        34, this->transaction_table_tablespace_id(), target);
4371
0
  }
4372
4373
57.1k
  if (_internal_metadata_.have_unknown_fields()) {
4374
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4375
0
        _internal_metadata_.unknown_fields(), target);
4376
0
  }
4377
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysTablesEntryPB)
4378
57.1k
  return target;
4379
57.1k
}
4380
4381
0
size_t SysTablesEntryPB::RequiredFieldsByteSizeFallback() const {
4382
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.SysTablesEntryPB)
4383
0
  size_t total_size = 0;
4384
4385
0
  if (has_name()) {
4386
    // required bytes name = 1;
4387
0
    total_size += 1 +
4388
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
4389
0
        this->name());
4390
0
  }
4391
4392
0
  if (has_schema()) {
4393
    // required .yb.SchemaPB schema = 3;
4394
0
    total_size += 1 +
4395
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4396
0
        *this->schema_);
4397
0
  }
4398
4399
0
  if (has_version()) {
4400
    // required uint32 version = 2;
4401
0
    total_size += 1 +
4402
0
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
4403
0
        this->version());
4404
0
  }
4405
4406
0
  return total_size;
4407
0
}
4408
57.1k
size_t SysTablesEntryPB::ByteSizeLong() const {
4409
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysTablesEntryPB)
4410
57.1k
  size_t total_size = 0;
4411
4412
57.1k
  if (_internal_metadata_.have_unknown_fields()) {
4413
0
    total_size +=
4414
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4415
0
        _internal_metadata_.unknown_fields());
4416
0
  }
4417
57.1k
  if (((_has_bits_[0] & 0x00002041) ^ 0x00002041) == 0) {  // All required fields are present.
4418
    // required bytes name = 1;
4419
57.1k
    total_size += 1 +
4420
57.1k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
4421
57.1k
        this->name());
4422
4423
    // required .yb.SchemaPB schema = 3;
4424
57.1k
    total_size += 1 +
4425
57.1k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4426
57.1k
        *this->schema_);
4427
4428
    // required uint32 version = 2;
4429
57.1k
    total_size += 1 +
4430
57.1k
      ::google::protobuf::internal::WireFormatLite::UInt32Size(
4431
57.1k
        this->version());
4432
4433
17
  } else {
4434
17
    total_size += RequiredFieldsByteSizeFallback();
4435
17
  }
4436
  // repeated .yb.IndexInfoPB indexes = 12;
4437
57.1k
  {
4438
57.1k
    unsigned int count = static_cast<unsigned int>(this->indexes_size());
4439
57.1k
    total_size += 1UL * count;
4440
68.3k
    for (unsigned int i = 0; i < count; i++) {
4441
11.1k
      total_size +=
4442
11.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4443
11.1k
          this->indexes(static_cast<int>(i)));
4444
11.1k
    }
4445
57.1k
  }
4446
4447
  // repeated .yb.IndexInfoPB fully_applied_indexes = 26;
4448
57.1k
  {
4449
57.1k
    unsigned int count = static_cast<unsigned int>(this->fully_applied_indexes_size());
4450
57.1k
    total_size += 2UL * count;
4451
62.2k
    for (unsigned int i = 0; i < count; i++) {
4452
5.08k
      total_size +=
4453
5.08k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4454
5.08k
          this->fully_applied_indexes(static_cast<int>(i)));
4455
5.08k
    }
4456
57.1k
  }
4457
4458
  // repeated .yb.master.BackfillJobPB backfill_jobs = 32;
4459
57.1k
  {
4460
57.1k
    unsigned int count = static_cast<unsigned int>(this->backfill_jobs_size());
4461
57.1k
    total_size += 2UL * count;
4462
59.9k
    for (unsigned int i = 0; i < count; i++) {
4463
2.73k
      total_size +=
4464
2.73k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4465
2.73k
          this->backfill_jobs(static_cast<int>(i)));
4466
2.73k
    }
4467
57.1k
  }
4468
4469
57.1k
  if (_has_bits_[0 / 32] & 62u) {
4470
    // optional bytes state_msg = 7;
4471
57.1k
    if (has_state_msg()) {
4472
22.1k
      total_size += 1 +
4473
22.1k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4474
22.1k
          this->state_msg());
4475
22.1k
    }
4476
4477
    // optional bytes namespace_id = 11;
4478
57.1k
    if (has_namespace_id()) {
4479
57.1k
      total_size += 1 +
4480
57.1k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4481
57.1k
          this->namespace_id());
4482
57.1k
    }
4483
4484
    // optional bytes indexed_table_id = 13;
4485
57.1k
    if (has_indexed_table_id()) {
4486
5.36k
      total_size += 1 +
4487
5.36k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4488
5.36k
          this->indexed_table_id());
4489
5.36k
    }
4490
4491
    // optional bytes namespace_name = 30;
4492
57.1k
    if (has_namespace_name()) {
4493
55.5k
      total_size += 2 +
4494
55.5k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4495
55.5k
          this->namespace_name());
4496
55.5k
    }
4497
4498
    // optional bytes transaction_table_tablespace_id = 34;
4499
57.1k
    if (has_transaction_table_tablespace_id()) {
4500
0
      total_size += 2 +
4501
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4502
0
          this->transaction_table_tablespace_id());
4503
0
    }
4504
4505
57.1k
  }
4506
  // optional .yb.SchemaPB fully_applied_schema = 4;
4507
57.1k
  if (has_fully_applied_schema()) {
4508
3.27k
    total_size += 1 +
4509
3.27k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4510
3.27k
        *this->fully_applied_schema_);
4511
3.27k
  }
4512
4513
57.1k
  if (_has_bits_[8 / 32] & 7936u) {
4514
    // optional .yb.master.ReplicationInfoPB replication_info = 5;
4515
55.5k
    if (has_replication_info()) {
4516
14
      total_size += 1 +
4517
14
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4518
14
          *this->replication_info_);
4519
14
    }
4520
4521
    // optional .yb.PartitionSchemaPB partition_schema = 9;
4522
55.5k
    if (has_partition_schema()) {
4523
55.5k
      total_size += 1 +
4524
55.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4525
55.5k
          *this->partition_schema_);
4526
55.5k
    }
4527
4528
    // optional .yb.IndexInfoPB index_info = 22;
4529
55.5k
    if (has_index_info()) {
4530
5.36k
      total_size += 2 +
4531
5.36k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4532
5.36k
          *this->index_info_);
4533
5.36k
    }
4534
4535
    // optional .yb.IndexInfoPB fully_applied_index_info = 27;
4536
55.5k
    if (has_fully_applied_index_info()) {
4537
0
      total_size += 2 +
4538
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4539
0
          *this->fully_applied_index_info_);
4540
0
    }
4541
4542
    // optional .yb.TransactionMetadataPB transaction = 29;
4543
55.5k
    if (has_transaction()) {
4544
2.11k
      total_size += 2 +
4545
2.11k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4546
2.11k
          *this->transaction_);
4547
2.11k
    }
4548
4549
55.5k
  }
4550
57.1k
  if (_has_bits_[8 / 32] & 49152u) {
4551
    // optional .yb.master.SysTablesEntryPB.State state = 6 [default = UNKNOWN];
4552
57.1k
    if (has_state()) {
4553
57.1k
      total_size += 1 +
4554
57.1k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
4555
57.1k
    }
4556
4557
    // optional int32 next_column_id = 8;
4558
57.1k
    if (has_next_column_id()) {
4559
55.5k
      total_size += 1 +
4560
55.5k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
4561
55.5k
          this->next_column_id());
4562
55.5k
    }
4563
4564
57.1k
  }
4565
57.1k
  if (_has_bits_[16 / 32] & 16711680u) {
4566
    // optional bool is_local_index = 14 [default = false];
4567
18.2k
    if (has_is_local_index()) {
4568
5.36k
      total_size += 1 + 1;
4569
5.36k
    }
4570
4571
    // optional bool is_unique_index = 15 [default = false];
4572
18.2k
    if (has_is_unique_index()) {
4573
5.36k
      total_size += 1 + 1;
4574
5.36k
    }
4575
4576
    // optional bool is_pg_shared_table = 16 [default = false];
4577
18.2k
    if (has_is_pg_shared_table()) {
4578
0
      total_size += 2 + 1;
4579
0
    }
4580
4581
    // optional bool colocated = 25 [default = false];
4582
18.2k
    if (has_colocated()) {
4583
183
      total_size += 2 + 1;
4584
183
    }
4585
4586
    // optional uint32 fully_applied_schema_version = 23;
4587
18.2k
    if (has_fully_applied_schema_version()) {
4588
3.27k
      total_size += 2 +
4589
3.27k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4590
3.27k
          this->fully_applied_schema_version());
4591
3.27k
    }
4592
4593
    // optional uint32 wal_retention_secs = 24;
4594
18.2k
    if (has_wal_retention_secs()) {
4595
5.07k
      total_size += 2 +
4596
5.07k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4597
5.07k
          this->wal_retention_secs());
4598
5.07k
    }
4599
4600
    // optional uint32 partition_list_version = 28;
4601
18.2k
    if (has_partition_list_version()) {
4602
36
      total_size += 2 +
4603
36
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4604
36
          this->partition_list_version());
4605
36
    }
4606
4607
    // optional bool updates_only_index_permissions = 31 [default = false];
4608
18.2k
    if (has_updates_only_index_permissions()) {
4609
7.78k
      total_size += 2 + 1;
4610
7.78k
    }
4611
4612
18.2k
  }
4613
57.1k
  if (_has_bits_[24 / 32] & 50331648u) {
4614
    // optional .yb.master.SysTablesEntryPB.HideState hide_state = 33;
4615
57.1k
    if (has_hide_state()) {
4616
0
      total_size += 2 +
4617
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->hide_state());
4618
0
    }
4619
4620
    // optional .yb.TableType table_type = 10 [default = DEFAULT_TABLE_TYPE];
4621
57.1k
    if (has_table_type()) {
4622
57.1k
      total_size += 1 +
4623
57.1k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->table_type());
4624
57.1k
    }
4625
4626
57.1k
  }
4627
57.1k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4628
57.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4629
57.1k
  _cached_size_ = cached_size;
4630
57.1k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4631
57.1k
  return total_size;
4632
57.1k
}
4633
4634
0
void SysTablesEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
4635
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysTablesEntryPB)
4636
0
  GOOGLE_DCHECK_NE(&from, this);
4637
0
  const SysTablesEntryPB* source =
4638
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysTablesEntryPB>(
4639
0
          &from);
4640
0
  if (source == NULL) {
4641
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysTablesEntryPB)
4642
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4643
0
  } else {
4644
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysTablesEntryPB)
4645
0
    MergeFrom(*source);
4646
0
  }
4647
0
}
4648
4649
210k
void SysTablesEntryPB::MergeFrom(const SysTablesEntryPB& from) {
4650
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysTablesEntryPB)
4651
210k
  GOOGLE_DCHECK_NE(&from, this);
4652
210k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4653
210k
  ::google::protobuf::uint32 cached_has_bits = 0;
4654
210k
  (void) cached_has_bits;
4655
4656
210k
  indexes_.MergeFrom(from.indexes_);
4657
210k
  fully_applied_indexes_.MergeFrom(from.fully_applied_indexes_);
4658
210k
  backfill_jobs_.MergeFrom(from.backfill_jobs_);
4659
210k
  cached_has_bits = from._has_bits_[0];
4660
210k
  if (cached_has_bits & 255u) {
4661
210k
    if (cached_has_bits & 0x00000001u) {
4662
210k
      set_has_name();
4663
210k
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4664
210k
    }
4665
210k
    if (cached_has_bits & 0x00000002u) {
4666
19
      set_has_state_msg();
4667
19
      state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
4668
19
    }
4669
210k
    if (cached_has_bits & 0x00000004u) {
4670
210k
      set_has_namespace_id();
4671
210k
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
4672
210k
    }
4673
210k
    if (cached_has_bits & 0x00000008u) {
4674
90.0k
      set_has_indexed_table_id();
4675
90.0k
      indexed_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.indexed_table_id_);
4676
90.0k
    }
4677
210k
    if (cached_has_bits & 0x00000010u) {
4678
210k
      set_has_namespace_name();
4679
210k
      namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
4680
210k
    }
4681
210k
    if (cached_has_bits & 0x00000020u) {
4682
0
      set_has_transaction_table_tablespace_id();
4683
0
      transaction_table_tablespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_table_tablespace_id_);
4684
0
    }
4685
210k
    if (cached_has_bits & 0x00000040u) {
4686
210k
      mutable_schema()->::yb::SchemaPB::MergeFrom(from.schema());
4687
210k
    }
4688
210k
    if (cached_has_bits & 0x00000080u) {
4689
0
      mutable_fully_applied_schema()->::yb::SchemaPB::MergeFrom(from.fully_applied_schema());
4690
0
    }
4691
210k
  }
4692
210k
  if (cached_has_bits & 65280u) {
4693
210k
    if (cached_has_bits & 0x00000100u) {
4694
3
      mutable_replication_info()->::yb::master::ReplicationInfoPB::MergeFrom(from.replication_info());
4695
3
    }
4696
210k
    if (cached_has_bits & 0x00000200u) {
4697
210k
      mutable_partition_schema()->::yb::PartitionSchemaPB::MergeFrom(from.partition_schema());
4698
210k
    }
4699
210k
    if (cached_has_bits & 0x00000400u) {
4700
90.0k
      mutable_index_info()->::yb::IndexInfoPB::MergeFrom(from.index_info());
4701
90.0k
    }
4702
210k
    if (cached_has_bits & 0x00000800u) {
4703
0
      mutable_fully_applied_index_info()->::yb::IndexInfoPB::MergeFrom(from.fully_applied_index_info());
4704
0
    }
4705
210k
    if (cached_has_bits & 0x00001000u) {
4706
1
      mutable_transaction()->::yb::TransactionMetadataPB::MergeFrom(from.transaction());
4707
1
    }
4708
210k
    if (cached_has_bits & 0x00002000u) {
4709
210k
      version_ = from.version_;
4710
210k
    }
4711
210k
    if (cached_has_bits & 0x00004000u) {
4712
210k
      state_ = from.state_;
4713
210k
    }
4714
210k
    if (cached_has_bits & 0x00008000u) {
4715
210k
      next_column_id_ = from.next_column_id_;
4716
210k
    }
4717
210k
    _has_bits_[0] |= cached_has_bits;
4718
210k
  }
4719
210k
  if (cached_has_bits & 16711680u) {
4720
94.4k
    if (cached_has_bits & 0x00010000u) {
4721
90.0k
      is_local_index_ = from.is_local_index_;
4722
90.0k
    }
4723
94.4k
    if (cached_has_bits & 0x00020000u) {
4724
90.0k
      is_unique_index_ = from.is_unique_index_;
4725
90.0k
    }
4726
94.4k
    if (cached_has_bits & 0x00040000u) {
4727
7.26k
      is_pg_shared_table_ = from.is_pg_shared_table_;
4728
7.26k
    }
4729
94.4k
    if (cached_has_bits & 0x00080000u) {
4730
1
      colocated_ = from.colocated_;
4731
1
    }
4732
94.4k
    if (cached_has_bits & 0x00100000u) {
4733
0
      fully_applied_schema_version_ = from.fully_applied_schema_version_;
4734
0
    }
4735
94.4k
    if (cached_has_bits & 0x00200000u) {
4736
0
      wal_retention_secs_ = from.wal_retention_secs_;
4737
0
    }
4738
94.4k
    if (cached_has_bits & 0x00400000u) {
4739
2
      partition_list_version_ = from.partition_list_version_;
4740
2
    }
4741
94.4k
    if (cached_has_bits & 0x00800000u) {
4742
14
      updates_only_index_permissions_ = from.updates_only_index_permissions_;
4743
14
    }
4744
94.4k
    _has_bits_[0] |= cached_has_bits;
4745
94.4k
  }
4746
210k
  if (cached_has_bits & 50331648u) {
4747
210k
    if (cached_has_bits & 0x01000000u) {
4748
0
      hide_state_ = from.hide_state_;
4749
0
    }
4750
210k
    if (cached_has_bits & 0x02000000u) {
4751
210k
      table_type_ = from.table_type_;
4752
210k
    }
4753
210k
    _has_bits_[0] |= cached_has_bits;
4754
210k
  }
4755
210k
}
4756
4757
0
void SysTablesEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
4758
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysTablesEntryPB)
4759
0
  if (&from == this) return;
4760
0
  Clear();
4761
0
  MergeFrom(from);
4762
0
}
4763
4764
210k
void SysTablesEntryPB::CopyFrom(const SysTablesEntryPB& from) {
4765
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysTablesEntryPB)
4766
210k
  if (&from == this) return;
4767
210k
  Clear();
4768
210k
  MergeFrom(from);
4769
210k
}
4770
4771
296k
bool SysTablesEntryPB::IsInitialized() const {
4772
296k
  if ((_has_bits_[0] & 0x00002041) != 0x00002041) return false;
4773
296k
  if (!::google::protobuf::internal::AllAreInitialized(this->indexes())) return false;
4774
296k
  if (!::google::protobuf::internal::AllAreInitialized(this->fully_applied_indexes())) return false;
4775
296k
  if (!::google::protobuf::internal::AllAreInitialized(this->backfill_jobs())) return false;
4776
296k
  if (has_schema()) {
4777
296k
    if (!this->schema_->IsInitialized()) return false;
4778
296k
  }
4779
296k
  if (has_fully_applied_schema()) {
4780
3.27k
    if (!this->fully_applied_schema_->IsInitialized()) return false;
4781
296k
  }
4782
296k
  if (has_partition_schema()) {
4783
294k
    if (!this->partition_schema_->IsInitialized()) return false;
4784
296k
  }
4785
296k
  if (has_index_info()) {
4786
98.5k
    if (!this->index_info_->IsInitialized()) return false;
4787
296k
  }
4788
296k
  if (has_fully_applied_index_info()) {
4789
0
    if (!this->fully_applied_index_info_->IsInitialized()) return false;
4790
296k
  }
4791
296k
  return true;
4792
296k
}
4793
4794
0
void SysTablesEntryPB::Swap(SysTablesEntryPB* other) {
4795
0
  if (other == this) return;
4796
0
  InternalSwap(other);
4797
0
}
4798
809k
void SysTablesEntryPB::InternalSwap(SysTablesEntryPB* other) {
4799
809k
  using std::swap;
4800
809k
  indexes_.InternalSwap(&other->indexes_);
4801
809k
  fully_applied_indexes_.InternalSwap(&other->fully_applied_indexes_);
4802
809k
  backfill_jobs_.InternalSwap(&other->backfill_jobs_);
4803
809k
  name_.Swap(&other->name_);
4804
809k
  state_msg_.Swap(&other->state_msg_);
4805
809k
  namespace_id_.Swap(&other->namespace_id_);
4806
809k
  indexed_table_id_.Swap(&other->indexed_table_id_);
4807
809k
  namespace_name_.Swap(&other->namespace_name_);
4808
809k
  transaction_table_tablespace_id_.Swap(&other->transaction_table_tablespace_id_);
4809
809k
  swap(schema_, other->schema_);
4810
809k
  swap(fully_applied_schema_, other->fully_applied_schema_);
4811
809k
  swap(replication_info_, other->replication_info_);
4812
809k
  swap(partition_schema_, other->partition_schema_);
4813
809k
  swap(index_info_, other->index_info_);
4814
809k
  swap(fully_applied_index_info_, other->fully_applied_index_info_);
4815
809k
  swap(transaction_, other->transaction_);
4816
809k
  swap(version_, other->version_);
4817
809k
  swap(state_, other->state_);
4818
809k
  swap(next_column_id_, other->next_column_id_);
4819
809k
  swap(is_local_index_, other->is_local_index_);
4820
809k
  swap(is_unique_index_, other->is_unique_index_);
4821
809k
  swap(is_pg_shared_table_, other->is_pg_shared_table_);
4822
809k
  swap(colocated_, other->colocated_);
4823
809k
  swap(fully_applied_schema_version_, other->fully_applied_schema_version_);
4824
809k
  swap(wal_retention_secs_, other->wal_retention_secs_);
4825
809k
  swap(partition_list_version_, other->partition_list_version_);
4826
809k
  swap(updates_only_index_permissions_, other->updates_only_index_permissions_);
4827
809k
  swap(hide_state_, other->hide_state_);
4828
809k
  swap(table_type_, other->table_type_);
4829
809k
  swap(_has_bits_[0], other->_has_bits_[0]);
4830
809k
  _internal_metadata_.Swap(&other->_internal_metadata_);
4831
809k
  swap(_cached_size_, other->_cached_size_);
4832
809k
}
4833
4834
891k
::google::protobuf::Metadata SysTablesEntryPB::GetMetadata() const {
4835
891k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
4836
891k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
4837
891k
}
4838
4839
4840
// ===================================================================
4841
4842
18.5k
SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse() {}
4843
5.12k
SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
4844
0
void SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::MergeFrom(const SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse& other) {
4845
0
  MergeFromInternal(other);
4846
0
}
4847
1.47k
::google::protobuf::Metadata SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::GetMetadata() const {
4848
1.47k
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
4849
1.47k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[6];
4850
1.47k
}
4851
void SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::MergeFrom(
4852
0
    const ::google::protobuf::Message& other) {
4853
0
  ::google::protobuf::Message::MergeFrom(other);
4854
0
}
4855
4856
4857
// ===================================================================
4858
4859
15.8k
void SysTabletsEntryPB::InitAsDefaultInstance() {
4860
15.8k
  ::yb::master::_SysTabletsEntryPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>(
4861
15.8k
      ::yb::PartitionPB::internal_default_instance());
4862
15.8k
  ::yb::master::_SysTabletsEntryPB_default_instance_._instance.get_mutable()->committed_consensus_state_ = const_cast< ::yb::consensus::ConsensusStatePB*>(
4863
15.8k
      ::yb::consensus::ConsensusStatePB::internal_default_instance());
4864
15.8k
}
4865
0
void SysTabletsEntryPB::clear_partition() {
4866
0
  if (partition_ != NULL) partition_->Clear();
4867
0
  clear_has_partition();
4868
0
}
4869
0
void SysTabletsEntryPB::clear_committed_consensus_state() {
4870
0
  if (committed_consensus_state_ != NULL) committed_consensus_state_->Clear();
4871
0
  clear_has_committed_consensus_state();
4872
0
}
4873
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4874
const int SysTabletsEntryPB::kOBSOLETEStartKeyFieldNumber;
4875
const int SysTabletsEntryPB::kOBSOLETEEndKeyFieldNumber;
4876
const int SysTabletsEntryPB::kPartitionFieldNumber;
4877
const int SysTabletsEntryPB::kCommittedConsensusStateFieldNumber;
4878
const int SysTabletsEntryPB::kStateFieldNumber;
4879
const int SysTabletsEntryPB::kStateMsgFieldNumber;
4880
const int SysTabletsEntryPB::kTableIdFieldNumber;
4881
const int SysTabletsEntryPB::kTableIdsFieldNumber;
4882
const int SysTabletsEntryPB::kColocatedFieldNumber;
4883
const int SysTabletsEntryPB::kDEPRECATEDBackfilledUntilFieldNumber;
4884
const int SysTabletsEntryPB::kSplitDepthFieldNumber;
4885
const int SysTabletsEntryPB::kSplitParentTabletIdFieldNumber;
4886
const int SysTabletsEntryPB::kBackfilledUntilFieldNumber;
4887
const int SysTabletsEntryPB::kSplitTabletIdsFieldNumber;
4888
const int SysTabletsEntryPB::kHideHybridTimeFieldNumber;
4889
const int SysTabletsEntryPB::kRetainedBySnapshotSchedulesFieldNumber;
4890
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4891
4892
SysTabletsEntryPB::SysTabletsEntryPB()
4893
488k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4894
473k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4895
473k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTabletsEntryPB();
4896
473k
  }
4897
488k
  SharedCtor();
4898
  // @@protoc_insertion_point(constructor:yb.master.SysTabletsEntryPB)
4899
488k
}
4900
SysTabletsEntryPB::SysTabletsEntryPB(const SysTabletsEntryPB& from)
4901
  : ::google::protobuf::Message(),
4902
      _internal_metadata_(NULL),
4903
      _has_bits_(from._has_bits_),
4904
      _cached_size_(0),
4905
      table_ids_(from.table_ids_),
4906
      split_tablet_ids_(from.split_tablet_ids_),
4907
401k
      retained_by_snapshot_schedules_(from.retained_by_snapshot_schedules_) {
4908
401k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4909
401k
  backfilled_until_.MergeFrom(from.backfilled_until_);
4910
401k
  obsolete_start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4911
401k
  if (from.has_obsolete_start_key()) {
4912
0
    obsolete_start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_start_key_);
4913
0
  }
4914
401k
  obsolete_end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4915
401k
  if (from.has_obsolete_end_key()) {
4916
0
    obsolete_end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_end_key_);
4917
0
  }
4918
401k
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4919
401k
  if (from.has_state_msg()) {
4920
307k
    state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
4921
307k
  }
4922
401k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4923
401k
  if (from.has_table_id()) {
4924
338k
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
4925
338k
  }
4926
401k
  deprecated_backfilled_until_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4927
401k
  if (from.has_deprecated_backfilled_until()) {
4928
0
    deprecated_backfilled_until_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_backfilled_until_);
4929
0
  }
4930
401k
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4931
401k
  if (from.has_split_parent_tablet_id()) {
4932
580
    split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
4933
580
  }
4934
401k
  if (from.has_committed_consensus_state()) {
4935
307k
    committed_consensus_state_ = new ::yb::consensus::ConsensusStatePB(*from.committed_consensus_state_);
4936
93.9k
  } else {
4937
93.9k
    committed_consensus_state_ = NULL;
4938
93.9k
  }
4939
401k
  if (from.has_partition()) {
4940
338k
    partition_ = new ::yb::PartitionPB(*from.partition_);
4941
63.1k
  } else {
4942
63.1k
    partition_ = NULL;
4943
63.1k
  }
4944
401k
  ::memcpy(&split_depth_, &from.split_depth_,
4945
401k
    static_cast<size_t>(reinterpret_cast<char*>(&state_) -
4946
401k
    reinterpret_cast<char*>(&split_depth_)) + sizeof(state_));
4947
  // @@protoc_insertion_point(copy_constructor:yb.master.SysTabletsEntryPB)
4948
401k
}
4949
4950
488k
void SysTabletsEntryPB::SharedCtor() {
4951
488k
  _cached_size_ = 0;
4952
488k
  obsolete_start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4953
488k
  obsolete_end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4954
488k
  state_msg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4955
488k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4956
488k
  deprecated_backfilled_until_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4957
488k
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4958
488k
  ::memset(&committed_consensus_state_, 0, static_cast<size_t>(
4959
488k
      reinterpret_cast<char*>(&colocated_) -
4960
488k
      reinterpret_cast<char*>(&committed_consensus_state_)) + sizeof(colocated_));
4961
488k
  state_ = 999;
4962
488k
}
4963
4964
813k
SysTabletsEntryPB::~SysTabletsEntryPB() {
4965
  // @@protoc_insertion_point(destructor:yb.master.SysTabletsEntryPB)
4966
813k
  SharedDtor();
4967
813k
}
4968
4969
813k
void SysTabletsEntryPB::SharedDtor() {
4970
813k
  obsolete_start_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4971
813k
  obsolete_end_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4972
813k
  state_msg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4973
813k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4974
813k
  deprecated_backfilled_until_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4975
813k
  split_parent_tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4976
813k
  if (this != internal_default_instance()) delete committed_consensus_state_;
4977
813k
  if (this != internal_default_instance()) delete partition_;
4978
813k
}
4979
4980
0
void SysTabletsEntryPB::SetCachedSize(int size) const {
4981
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4982
0
  _cached_size_ = size;
4983
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4984
0
}
4985
0
const ::google::protobuf::Descriptor* SysTabletsEntryPB::descriptor() {
4986
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
4987
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4988
0
}
4989
4990
0
const SysTabletsEntryPB& SysTabletsEntryPB::default_instance() {
4991
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTabletsEntryPB();
4992
0
  return *internal_default_instance();
4993
0
}
4994
4995
0
SysTabletsEntryPB* SysTabletsEntryPB::New(::google::protobuf::Arena* arena) const {
4996
0
  SysTabletsEntryPB* n = new SysTabletsEntryPB;
4997
0
  if (arena != NULL) {
4998
0
    arena->Own(n);
4999
0
  }
5000
0
  return n;
5001
0
}
5002
5003
15.7k
void SysTabletsEntryPB::Clear() {
5004
// @@protoc_insertion_point(message_clear_start:yb.master.SysTabletsEntryPB)
5005
15.7k
  ::google::protobuf::uint32 cached_has_bits = 0;
5006
  // Prevent compiler warnings about cached_has_bits being unused
5007
15.7k
  (void) cached_has_bits;
5008
5009
15.7k
  table_ids_.Clear();
5010
15.7k
  backfilled_until_.Clear();
5011
15.7k
  split_tablet_ids_.Clear();
5012
15.7k
  retained_by_snapshot_schedules_.Clear();
5013
15.7k
  cached_has_bits = _has_bits_[0];
5014
15.7k
  if (cached_has_bits & 255u) {
5015
0
    if (cached_has_bits & 0x00000001u) {
5016
0
      GOOGLE_DCHECK(!obsolete_start_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5017
0
      (*obsolete_start_key_.UnsafeRawStringPointer())->clear();
5018
0
    }
5019
0
    if (cached_has_bits & 0x00000002u) {
5020
0
      GOOGLE_DCHECK(!obsolete_end_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5021
0
      (*obsolete_end_key_.UnsafeRawStringPointer())->clear();
5022
0
    }
5023
0
    if (cached_has_bits & 0x00000004u) {
5024
0
      GOOGLE_DCHECK(!state_msg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5025
0
      (*state_msg_.UnsafeRawStringPointer())->clear();
5026
0
    }
5027
0
    if (cached_has_bits & 0x00000008u) {
5028
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5029
0
      (*table_id_.UnsafeRawStringPointer())->clear();
5030
0
    }
5031
0
    if (cached_has_bits & 0x00000010u) {
5032
0
      GOOGLE_DCHECK(!deprecated_backfilled_until_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5033
0
      (*deprecated_backfilled_until_.UnsafeRawStringPointer())->clear();
5034
0
    }
5035
0
    if (cached_has_bits & 0x00000020u) {
5036
0
      GOOGLE_DCHECK(!split_parent_tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5037
0
      (*split_parent_tablet_id_.UnsafeRawStringPointer())->clear();
5038
0
    }
5039
0
    if (cached_has_bits & 0x00000040u) {
5040
0
      GOOGLE_DCHECK(committed_consensus_state_ != NULL);
5041
0
      committed_consensus_state_->Clear();
5042
0
    }
5043
0
    if (cached_has_bits & 0x00000080u) {
5044
0
      GOOGLE_DCHECK(partition_ != NULL);
5045
0
      partition_->Clear();
5046
0
    }
5047
0
  }
5048
15.7k
  if (cached_has_bits & 3840u) {
5049
0
    ::memset(&split_depth_, 0, static_cast<size_t>(
5050
0
        reinterpret_cast<char*>(&colocated_) -
5051
0
        reinterpret_cast<char*>(&split_depth_)) + sizeof(colocated_));
5052
0
    state_ = 999;
5053
0
  }
5054
15.7k
  _has_bits_.Clear();
5055
15.7k
  _internal_metadata_.Clear();
5056
15.7k
}
5057
5058
bool SysTabletsEntryPB::MergePartialFromCodedStream(
5059
8.02k
    ::google::protobuf::io::CodedInputStream* input) {
5060
236k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5061
8.02k
  ::google::protobuf::uint32 tag;
5062
  // @@protoc_insertion_point(parse_start:yb.master.SysTabletsEntryPB)
5063
244k
  for (;;) {
5064
244k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5065
244k
    tag = p.first;
5066
244k
    if (!p.second) goto handle_unusual;
5067
236k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5068
      // optional bytes OBSOLETE_start_key = 1;
5069
0
      case 1: {
5070
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5071
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5072
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5073
0
                input, this->mutable_obsolete_start_key()));
5074
0
        } else {
5075
0
          goto handle_unusual;
5076
0
        }
5077
0
        break;
5078
0
      }
5079
5080
      // optional bytes OBSOLETE_end_key = 2;
5081
0
      case 2: {
5082
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5083
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5084
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5085
0
                input, this->mutable_obsolete_end_key()));
5086
0
        } else {
5087
0
          goto handle_unusual;
5088
0
        }
5089
0
        break;
5090
0
      }
5091
5092
      // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
5093
745
      case 3: {
5094
745
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5095
745
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5096
745
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5097
745
               input, mutable_committed_consensus_state()));
5098
0
        } else {
5099
0
          goto handle_unusual;
5100
0
        }
5101
745
        break;
5102
745
      }
5103
5104
      // optional .yb.master.SysTabletsEntryPB.State state = 4 [default = UNKNOWN];
5105
8.02k
      case 4: {
5106
8.02k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5107
8.02k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
5108
8.02k
          int value;
5109
8.02k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5110
8.02k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5111
8.02k
                 input, &value)));
5112
8.02k
          if (::yb::master::SysTabletsEntryPB_State_IsValid(value)) {
5113
8.02k
            set_state(static_cast< ::yb::master::SysTabletsEntryPB_State >(value));
5114
0
          } else {
5115
0
            mutable_unknown_fields()->AddVarint(
5116
0
                4, static_cast< ::google::protobuf::uint64>(value));
5117
0
          }
5118
0
        } else {
5119
0
          goto handle_unusual;
5120
0
        }
5121
8.02k
        break;
5122
8.02k
      }
5123
5124
      // optional bytes state_msg = 5;
5125
743
      case 5: {
5126
743
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5127
743
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
5128
743
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5129
743
                input, this->mutable_state_msg()));
5130
0
        } else {
5131
0
          goto handle_unusual;
5132
0
        }
5133
743
        break;
5134
743
      }
5135
5136
      // required bytes table_id = 6;
5137
8.02k
      case 6: {
5138
8.02k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5139
8.02k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
5140
8.02k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5141
8.02k
                input, this->mutable_table_id()));
5142
0
        } else {
5143
0
          goto handle_unusual;
5144
0
        }
5145
8.02k
        break;
5146
8.02k
      }
5147
5148
      // optional .yb.PartitionPB partition = 7;
5149
8.02k
      case 7: {
5150
8.02k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5151
8.02k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5152
8.02k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5153
8.02k
               input, mutable_partition()));
5154
0
        } else {
5155
0
          goto handle_unusual;
5156
0
        }
5157
8.02k
        break;
5158
8.02k
      }
5159
5160
      // repeated bytes table_ids = 8;
5161
211k
      case 8: {
5162
211k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5163
211k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5164
211k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5165
211k
                input, this->add_table_ids()));
5166
0
        } else {
5167
0
          goto handle_unusual;
5168
0
        }
5169
211k
        break;
5170
211k
      }
5171
5172
      // optional bool colocated = 9 [default = false];
5173
1
      case 9: {
5174
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5175
1
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
5176
1
          set_has_colocated();
5177
1
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5178
1
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5179
1
                 input, &colocated_)));
5180
0
        } else {
5181
0
          goto handle_unusual;
5182
0
        }
5183
1
        break;
5184
1
      }
5185
5186
      // optional bytes DEPRECATED_backfilled_until = 10;
5187
0
      case 10: {
5188
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5189
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
5190
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5191
0
                input, this->mutable_deprecated_backfilled_until()));
5192
0
        } else {
5193
0
          goto handle_unusual;
5194
0
        }
5195
0
        break;
5196
0
      }
5197
5198
      // optional uint64 split_depth = 11;
5199
2
      case 11: {
5200
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5201
2
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
5202
2
          set_has_split_depth();
5203
2
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5204
2
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5205
2
                 input, &split_depth_)));
5206
0
        } else {
5207
0
          goto handle_unusual;
5208
0
        }
5209
2
        break;
5210
2
      }
5211
5212
      // map<string, bytes> backfilled_until = 12;
5213
0
      case 12: {
5214
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5215
0
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
5216
0
          SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
5217
0
              SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse,
5218
0
              ::std::string, ::std::string,
5219
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
5220
0
              ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
5221
0
              0 >,
5222
0
            ::google::protobuf::Map< ::std::string, ::std::string > > parser(&backfilled_until_);
5223
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5224
0
              input, &parser));
5225
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5226
0
            parser.key().data(), static_cast<int>(parser.key().length()),
5227
0
            ::google::protobuf::internal::WireFormat::PARSE,
5228
0
            "yb.master.SysTabletsEntryPB.BackfilledUntilEntry.key");
5229
0
        } else {
5230
0
          goto handle_unusual;
5231
0
        }
5232
0
        break;
5233
0
      }
5234
5235
      // optional bytes split_parent_tablet_id = 13;
5236
2
      case 13: {
5237
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5238
2
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
5239
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5240
2
                input, this->mutable_split_parent_tablet_id()));
5241
0
        } else {
5242
0
          goto handle_unusual;
5243
0
        }
5244
2
        break;
5245
2
      }
5246
5247
      // repeated bytes split_tablet_ids = 14;
5248
2
      case 14: {
5249
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5250
2
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
5251
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5252
2
                input, this->add_split_tablet_ids()));
5253
0
        } else {
5254
0
          goto handle_unusual;
5255
0
        }
5256
2
        break;
5257
2
      }
5258
5259
      // optional fixed64 hide_hybrid_time = 16;
5260
0
      case 16: {
5261
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5262
0
            static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) {
5263
0
          set_has_hide_hybrid_time();
5264
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5265
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
5266
0
                 input, &hide_hybrid_time_)));
5267
0
        } else {
5268
0
          goto handle_unusual;
5269
0
        }
5270
0
        break;
5271
0
      }
5272
5273
      // repeated bytes retained_by_snapshot_schedules = 17;
5274
0
      case 17: {
5275
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5276
0
            static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
5277
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5278
0
                input, this->add_retained_by_snapshot_schedules()));
5279
0
        } else {
5280
0
          goto handle_unusual;
5281
0
        }
5282
0
        break;
5283
8.02k
      }
5284
5285
0
      default: {
5286
8.02k
      handle_unusual:
5287
8.02k
        if (tag == 0) {
5288
8.02k
          goto success;
5289
8.02k
        }
5290
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5291
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5292
0
        break;
5293
0
      }
5294
236k
    }
5295
236k
  }
5296
8.02k
success:
5297
  // @@protoc_insertion_point(parse_success:yb.master.SysTabletsEntryPB)
5298
8.02k
  return true;
5299
0
failure:
5300
  // @@protoc_insertion_point(parse_failure:yb.master.SysTabletsEntryPB)
5301
0
  return false;
5302
8.02k
#undef DO_
5303
8.02k
}
5304
5305
void SysTabletsEntryPB::SerializeWithCachedSizes(
5306
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5307
  // @@protoc_insertion_point(serialize_start:yb.master.SysTabletsEntryPB)
5308
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5309
0
  (void) cached_has_bits;
5310
5311
0
  cached_has_bits = _has_bits_[0];
5312
  // optional bytes OBSOLETE_start_key = 1;
5313
0
  if (cached_has_bits & 0x00000001u) {
5314
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5315
0
      1, this->obsolete_start_key(), output);
5316
0
  }
5317
5318
  // optional bytes OBSOLETE_end_key = 2;
5319
0
  if (cached_has_bits & 0x00000002u) {
5320
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5321
0
      2, this->obsolete_end_key(), output);
5322
0
  }
5323
5324
  // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
5325
0
  if (cached_has_bits & 0x00000040u) {
5326
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5327
0
      3, *this->committed_consensus_state_, output);
5328
0
  }
5329
5330
  // optional .yb.master.SysTabletsEntryPB.State state = 4 [default = UNKNOWN];
5331
0
  if (cached_has_bits & 0x00000800u) {
5332
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5333
0
      4, this->state(), output);
5334
0
  }
5335
5336
  // optional bytes state_msg = 5;
5337
0
  if (cached_has_bits & 0x00000004u) {
5338
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5339
0
      5, this->state_msg(), output);
5340
0
  }
5341
5342
  // required bytes table_id = 6;
5343
0
  if (cached_has_bits & 0x00000008u) {
5344
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5345
0
      6, this->table_id(), output);
5346
0
  }
5347
5348
  // optional .yb.PartitionPB partition = 7;
5349
0
  if (cached_has_bits & 0x00000080u) {
5350
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5351
0
      7, *this->partition_, output);
5352
0
  }
5353
5354
  // repeated bytes table_ids = 8;
5355
0
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
5356
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
5357
0
      8, this->table_ids(i), output);
5358
0
  }
5359
5360
  // optional bool colocated = 9 [default = false];
5361
0
  if (cached_has_bits & 0x00000400u) {
5362
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->colocated(), output);
5363
0
  }
5364
5365
  // optional bytes DEPRECATED_backfilled_until = 10;
5366
0
  if (cached_has_bits & 0x00000010u) {
5367
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5368
0
      10, this->deprecated_backfilled_until(), output);
5369
0
  }
5370
5371
  // optional uint64 split_depth = 11;
5372
0
  if (cached_has_bits & 0x00000100u) {
5373
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->split_depth(), output);
5374
0
  }
5375
5376
  // map<string, bytes> backfilled_until = 12;
5377
0
  if (!this->backfilled_until().empty()) {
5378
0
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
5379
0
        ConstPtr;
5380
0
    typedef ConstPtr SortItem;
5381
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
5382
0
    struct Utf8Check {
5383
0
      static void Check(ConstPtr p) {
5384
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5385
0
          p->first.data(), static_cast<int>(p->first.length()),
5386
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
5387
0
          "yb.master.SysTabletsEntryPB.BackfilledUntilEntry.key");
5388
0
      }
5389
0
    };
5390
5391
0
    if (output->IsSerializationDeterministic() &&
5392
0
        this->backfilled_until().size() > 1) {
5393
0
      ::google::protobuf::scoped_array<SortItem> items(
5394
0
          new SortItem[this->backfilled_until().size()]);
5395
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
5396
0
      size_type n = 0;
5397
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
5398
0
          it = this->backfilled_until().begin();
5399
0
          it != this->backfilled_until().end(); ++it, ++n) {
5400
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
5401
0
      }
5402
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
5403
0
      ::google::protobuf::scoped_ptr<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse> entry;
5404
0
      for (size_type i = 0; i < n; i++) {
5405
0
        entry.reset(backfilled_until_.NewEntryWrapper(
5406
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
5407
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5408
0
            12, *entry, output);
5409
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
5410
0
      }
5411
0
    } else {
5412
0
      ::google::protobuf::scoped_ptr<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse> entry;
5413
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
5414
0
          it = this->backfilled_until().begin();
5415
0
          it != this->backfilled_until().end(); ++it) {
5416
0
        entry.reset(backfilled_until_.NewEntryWrapper(
5417
0
            it->first, it->second));
5418
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5419
0
            12, *entry, output);
5420
0
        Utf8Check::Check(&*it);
5421
0
      }
5422
0
    }
5423
0
  }
5424
5425
  // optional bytes split_parent_tablet_id = 13;
5426
0
  if (cached_has_bits & 0x00000020u) {
5427
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5428
0
      13, this->split_parent_tablet_id(), output);
5429
0
  }
5430
5431
  // repeated bytes split_tablet_ids = 14;
5432
0
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
5433
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
5434
0
      14, this->split_tablet_ids(i), output);
5435
0
  }
5436
5437
  // optional fixed64 hide_hybrid_time = 16;
5438
0
  if (cached_has_bits & 0x00000200u) {
5439
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(16, this->hide_hybrid_time(), output);
5440
0
  }
5441
5442
  // repeated bytes retained_by_snapshot_schedules = 17;
5443
0
  for (int i = 0, n = this->retained_by_snapshot_schedules_size(); i < n; i++) {
5444
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
5445
0
      17, this->retained_by_snapshot_schedules(i), output);
5446
0
  }
5447
5448
0
  if (_internal_metadata_.have_unknown_fields()) {
5449
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5450
0
        _internal_metadata_.unknown_fields(), output);
5451
0
  }
5452
  // @@protoc_insertion_point(serialize_end:yb.master.SysTabletsEntryPB)
5453
0
}
5454
5455
::google::protobuf::uint8* SysTabletsEntryPB::InternalSerializeWithCachedSizesToArray(
5456
142k
    bool deterministic, ::google::protobuf::uint8* target) const {
5457
142k
  (void)deterministic; // Unused
5458
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysTabletsEntryPB)
5459
142k
  ::google::protobuf::uint32 cached_has_bits = 0;
5460
142k
  (void) cached_has_bits;
5461
5462
142k
  cached_has_bits = _has_bits_[0];
5463
  // optional bytes OBSOLETE_start_key = 1;
5464
142k
  if (cached_has_bits & 0x00000001u) {
5465
0
    target =
5466
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5467
0
        1, this->obsolete_start_key(), target);
5468
0
  }
5469
5470
  // optional bytes OBSOLETE_end_key = 2;
5471
142k
  if (cached_has_bits & 0x00000002u) {
5472
0
    target =
5473
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5474
0
        2, this->obsolete_end_key(), target);
5475
0
  }
5476
5477
  // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
5478
142k
  if (cached_has_bits & 0x00000040u) {
5479
84.9k
    target = ::google::protobuf::internal::WireFormatLite::
5480
84.9k
      InternalWriteMessageToArray(
5481
84.9k
        3, *this->committed_consensus_state_, deterministic, target);
5482
84.9k
  }
5483
5484
  // optional .yb.master.SysTabletsEntryPB.State state = 4 [default = UNKNOWN];
5485
142k
  if (cached_has_bits & 0x00000800u) {
5486
142k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5487
142k
      4, this->state(), target);
5488
142k
  }
5489
5490
  // optional bytes state_msg = 5;
5491
142k
  if (cached_has_bits & 0x00000004u) {
5492
84.9k
    target =
5493
84.9k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5494
84.9k
        5, this->state_msg(), target);
5495
84.9k
  }
5496
5497
  // required bytes table_id = 6;
5498
142k
  if (cached_has_bits & 0x00000008u) {
5499
142k
    target =
5500
142k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5501
142k
        6, this->table_id(), target);
5502
142k
  }
5503
5504
  // optional .yb.PartitionPB partition = 7;
5505
142k
  if (cached_has_bits & 0x00000080u) {
5506
142k
    target = ::google::protobuf::internal::WireFormatLite::
5507
142k
      InternalWriteMessageToArray(
5508
142k
        7, *this->partition_, deterministic, target);
5509
142k
  }
5510
5511
  // repeated bytes table_ids = 8;
5512
1.70M
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
5513
1.56M
    target = ::google::protobuf::internal::WireFormatLite::
5514
1.56M
      WriteBytesToArray(8, this->table_ids(i), target);
5515
1.56M
  }
5516
5517
  // optional bool colocated = 9 [default = false];
5518
142k
  if (cached_has_bits & 0x00000400u) {
5519
125
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->colocated(), target);
5520
125
  }
5521
5522
  // optional bytes DEPRECATED_backfilled_until = 10;
5523
142k
  if (cached_has_bits & 0x00000010u) {
5524
0
    target =
5525
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5526
0
        10, this->deprecated_backfilled_until(), target);
5527
0
  }
5528
5529
  // optional uint64 split_depth = 11;
5530
142k
  if (cached_has_bits & 0x00000100u) {
5531
110
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->split_depth(), target);
5532
110
  }
5533
5534
  // map<string, bytes> backfilled_until = 12;
5535
142k
  if (!this->backfilled_until().empty()) {
5536
2.52k
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
5537
2.52k
        ConstPtr;
5538
2.52k
    typedef ConstPtr SortItem;
5539
2.52k
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
5540
2.52k
    struct Utf8Check {
5541
2.58k
      static void Check(ConstPtr p) {
5542
2.58k
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5543
2.58k
          p->first.data(), static_cast<int>(p->first.length()),
5544
2.58k
          ::google::protobuf::internal::WireFormat::SERIALIZE,
5545
2.58k
          "yb.master.SysTabletsEntryPB.BackfilledUntilEntry.key");
5546
2.58k
      }
5547
2.52k
    };
5548
5549
2.52k
    if (deterministic &&
5550
0
        this->backfilled_until().size() > 1) {
5551
0
      ::google::protobuf::scoped_array<SortItem> items(
5552
0
          new SortItem[this->backfilled_until().size()]);
5553
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
5554
0
      size_type n = 0;
5555
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
5556
0
          it = this->backfilled_until().begin();
5557
0
          it != this->backfilled_until().end(); ++it, ++n) {
5558
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
5559
0
      }
5560
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
5561
0
      ::google::protobuf::scoped_ptr<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse> entry;
5562
0
      for (size_type i = 0; i < n; i++) {
5563
0
        entry.reset(backfilled_until_.NewEntryWrapper(
5564
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
5565
0
        target = ::google::protobuf::internal::WireFormatLite::
5566
0
                   InternalWriteMessageNoVirtualToArray(
5567
0
                       12, *entry, deterministic, target);
5568
0
;
5569
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
5570
0
      }
5571
2.52k
    } else {
5572
2.52k
      ::google::protobuf::scoped_ptr<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse> entry;
5573
2.52k
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
5574
2.52k
          it = this->backfilled_until().begin();
5575
5.08k
          it != this->backfilled_until().end(); ++it) {
5576
2.56k
        entry.reset(backfilled_until_.NewEntryWrapper(
5577
2.56k
            it->first, it->second));
5578
2.56k
        target = ::google::protobuf::internal::WireFormatLite::
5579
2.56k
                   InternalWriteMessageNoVirtualToArray(
5580
2.56k
                       12, *entry, deterministic, target);
5581
2.56k
;
5582
2.56k
        Utf8Check::Check(&*it);
5583
2.56k
      }
5584
2.52k
    }
5585
2.52k
  }
5586
5587
  // optional bytes split_parent_tablet_id = 13;
5588
142k
  if (cached_has_bits & 0x00000020u) {
5589
110
    target =
5590
110
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5591
110
        13, this->split_parent_tablet_id(), target);
5592
110
  }
5593
5594
  // repeated bytes split_tablet_ids = 14;
5595
142k
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
5596
76
    target = ::google::protobuf::internal::WireFormatLite::
5597
76
      WriteBytesToArray(14, this->split_tablet_ids(i), target);
5598
76
  }
5599
5600
  // optional fixed64 hide_hybrid_time = 16;
5601
142k
  if (cached_has_bits & 0x00000200u) {
5602
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(16, this->hide_hybrid_time(), target);
5603
0
  }
5604
5605
  // repeated bytes retained_by_snapshot_schedules = 17;
5606
142k
  for (int i = 0, n = this->retained_by_snapshot_schedules_size(); i < n; i++) {
5607
0
    target = ::google::protobuf::internal::WireFormatLite::
5608
0
      WriteBytesToArray(17, this->retained_by_snapshot_schedules(i), target);
5609
0
  }
5610
5611
142k
  if (_internal_metadata_.have_unknown_fields()) {
5612
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5613
0
        _internal_metadata_.unknown_fields(), target);
5614
0
  }
5615
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysTabletsEntryPB)
5616
142k
  return target;
5617
142k
}
5618
5619
142k
size_t SysTabletsEntryPB::ByteSizeLong() const {
5620
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysTabletsEntryPB)
5621
142k
  size_t total_size = 0;
5622
5623
142k
  if (_internal_metadata_.have_unknown_fields()) {
5624
0
    total_size +=
5625
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5626
0
        _internal_metadata_.unknown_fields());
5627
0
  }
5628
  // required bytes table_id = 6;
5629
142k
  if (has_table_id()) {
5630
142k
    total_size += 1 +
5631
142k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
5632
142k
        this->table_id());
5633
142k
  }
5634
  // repeated bytes table_ids = 8;
5635
142k
  total_size += 1 *
5636
142k
      ::google::protobuf::internal::FromIntSize(this->table_ids_size());
5637
1.70M
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
5638
1.56M
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5639
1.56M
      this->table_ids(i));
5640
1.56M
  }
5641
5642
  // map<string, bytes> backfilled_until = 12;
5643
142k
  total_size += 1 *
5644
142k
      ::google::protobuf::internal::FromIntSize(this->backfilled_until_size());
5645
142k
  {
5646
142k
    ::google::protobuf::scoped_ptr<SysTabletsEntryPB_BackfilledUntilEntry_DoNotUse> entry;
5647
142k
    for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
5648
142k
        it = this->backfilled_until().begin();
5649
145k
        it != this->backfilled_until().end(); ++it) {
5650
2.56k
      entry.reset(backfilled_until_.NewEntryWrapper(it->first, it->second));
5651
2.56k
      total_size += ::google::protobuf::internal::WireFormatLite::
5652
2.56k
          MessageSizeNoVirtual(*entry);
5653
2.56k
    }
5654
142k
  }
5655
5656
  // repeated bytes split_tablet_ids = 14;
5657
142k
  total_size += 1 *
5658
142k
      ::google::protobuf::internal::FromIntSize(this->split_tablet_ids_size());
5659
142k
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
5660
76
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5661
76
      this->split_tablet_ids(i));
5662
76
  }
5663
5664
  // repeated bytes retained_by_snapshot_schedules = 17;
5665
142k
  total_size += 2 *
5666
142k
      ::google::protobuf::internal::FromIntSize(this->retained_by_snapshot_schedules_size());
5667
142k
  for (int i = 0, n = this->retained_by_snapshot_schedules_size(); i < n; i++) {
5668
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5669
0
      this->retained_by_snapshot_schedules(i));
5670
0
  }
5671
5672
142k
  if (_has_bits_[0 / 32] & 7u) {
5673
    // optional bytes OBSOLETE_start_key = 1;
5674
84.9k
    if (has_obsolete_start_key()) {
5675
0
      total_size += 1 +
5676
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5677
0
          this->obsolete_start_key());
5678
0
    }
5679
5680
    // optional bytes OBSOLETE_end_key = 2;
5681
84.9k
    if (has_obsolete_end_key()) {
5682
0
      total_size += 1 +
5683
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5684
0
          this->obsolete_end_key());
5685
0
    }
5686
5687
    // optional bytes state_msg = 5;
5688
84.9k
    if (has_state_msg()) {
5689
84.9k
      total_size += 1 +
5690
84.9k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5691
84.9k
          this->state_msg());
5692
84.9k
    }
5693
5694
84.9k
  }
5695
142k
  if (_has_bits_[0 / 32] & 240u) {
5696
    // optional bytes DEPRECATED_backfilled_until = 10;
5697
142k
    if (has_deprecated_backfilled_until()) {
5698
0
      total_size += 1 +
5699
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5700
0
          this->deprecated_backfilled_until());
5701
0
    }
5702
5703
    // optional bytes split_parent_tablet_id = 13;
5704
142k
    if (has_split_parent_tablet_id()) {
5705
110
      total_size += 1 +
5706
110
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5707
110
          this->split_parent_tablet_id());
5708
110
    }
5709
5710
    // optional .yb.consensus.ConsensusStatePB committed_consensus_state = 3;
5711
142k
    if (has_committed_consensus_state()) {
5712
84.9k
      total_size += 1 +
5713
84.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5714
84.9k
          *this->committed_consensus_state_);
5715
84.9k
    }
5716
5717
    // optional .yb.PartitionPB partition = 7;
5718
142k
    if (has_partition()) {
5719
142k
      total_size += 1 +
5720
142k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5721
142k
          *this->partition_);
5722
142k
    }
5723
5724
142k
  }
5725
142k
  if (_has_bits_[8 / 32] & 3840u) {
5726
    // optional uint64 split_depth = 11;
5727
142k
    if (has_split_depth()) {
5728
110
      total_size += 1 +
5729
110
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5730
110
          this->split_depth());
5731
110
    }
5732
5733
    // optional fixed64 hide_hybrid_time = 16;
5734
142k
    if (has_hide_hybrid_time()) {
5735
0
      total_size += 2 + 8;
5736
0
    }
5737
5738
    // optional bool colocated = 9 [default = false];
5739
142k
    if (has_colocated()) {
5740
125
      total_size += 1 + 1;
5741
125
    }
5742
5743
    // optional .yb.master.SysTabletsEntryPB.State state = 4 [default = UNKNOWN];
5744
142k
    if (has_state()) {
5745
142k
      total_size += 1 +
5746
142k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
5747
142k
    }
5748
5749
142k
  }
5750
142k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5751
142k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5752
142k
  _cached_size_ = cached_size;
5753
142k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5754
142k
  return total_size;
5755
142k
}
5756
5757
0
void SysTabletsEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
5758
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysTabletsEntryPB)
5759
0
  GOOGLE_DCHECK_NE(&from, this);
5760
0
  const SysTabletsEntryPB* source =
5761
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysTabletsEntryPB>(
5762
0
          &from);
5763
0
  if (source == NULL) {
5764
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysTabletsEntryPB)
5765
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5766
0
  } else {
5767
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysTabletsEntryPB)
5768
0
    MergeFrom(*source);
5769
0
  }
5770
0
}
5771
5772
7.72k
void SysTabletsEntryPB::MergeFrom(const SysTabletsEntryPB& from) {
5773
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysTabletsEntryPB)
5774
7.72k
  GOOGLE_DCHECK_NE(&from, this);
5775
7.72k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5776
7.72k
  ::google::protobuf::uint32 cached_has_bits = 0;
5777
7.72k
  (void) cached_has_bits;
5778
5779
7.72k
  table_ids_.MergeFrom(from.table_ids_);
5780
7.72k
  backfilled_until_.MergeFrom(from.backfilled_until_);
5781
7.72k
  split_tablet_ids_.MergeFrom(from.split_tablet_ids_);
5782
7.72k
  retained_by_snapshot_schedules_.MergeFrom(from.retained_by_snapshot_schedules_);
5783
7.72k
  cached_has_bits = from._has_bits_[0];
5784
7.72k
  if (cached_has_bits & 255u) {
5785
7.72k
    if (cached_has_bits & 0x00000001u) {
5786
0
      set_has_obsolete_start_key();
5787
0
      obsolete_start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_start_key_);
5788
0
    }
5789
7.72k
    if (cached_has_bits & 0x00000002u) {
5790
0
      set_has_obsolete_end_key();
5791
0
      obsolete_end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.obsolete_end_key_);
5792
0
    }
5793
7.72k
    if (cached_has_bits & 0x00000004u) {
5794
465
      set_has_state_msg();
5795
465
      state_msg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_msg_);
5796
465
    }
5797
7.72k
    if (cached_has_bits & 0x00000008u) {
5798
7.72k
      set_has_table_id();
5799
7.72k
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
5800
7.72k
    }
5801
7.72k
    if (cached_has_bits & 0x00000010u) {
5802
0
      set_has_deprecated_backfilled_until();
5803
0
      deprecated_backfilled_until_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_backfilled_until_);
5804
0
    }
5805
7.72k
    if (cached_has_bits & 0x00000020u) {
5806
2
      set_has_split_parent_tablet_id();
5807
2
      split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
5808
2
    }
5809
7.72k
    if (cached_has_bits & 0x00000040u) {
5810
467
      mutable_committed_consensus_state()->::yb::consensus::ConsensusStatePB::MergeFrom(from.committed_consensus_state());
5811
467
    }
5812
7.72k
    if (cached_has_bits & 0x00000080u) {
5813
7.72k
      mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition());
5814
7.72k
    }
5815
7.72k
  }
5816
7.72k
  if (cached_has_bits & 3840u) {
5817
7.72k
    if (cached_has_bits & 0x00000100u) {
5818
2
      split_depth_ = from.split_depth_;
5819
2
    }
5820
7.72k
    if (cached_has_bits & 0x00000200u) {
5821
0
      hide_hybrid_time_ = from.hide_hybrid_time_;
5822
0
    }
5823
7.72k
    if (cached_has_bits & 0x00000400u) {
5824
1
      colocated_ = from.colocated_;
5825
1
    }
5826
7.72k
    if (cached_has_bits & 0x00000800u) {
5827
7.72k
      state_ = from.state_;
5828
7.72k
    }
5829
7.72k
    _has_bits_[0] |= cached_has_bits;
5830
7.72k
  }
5831
7.72k
}
5832
5833
0
void SysTabletsEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
5834
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysTabletsEntryPB)
5835
0
  if (&from == this) return;
5836
0
  Clear();
5837
0
  MergeFrom(from);
5838
0
}
5839
5840
7.72k
void SysTabletsEntryPB::CopyFrom(const SysTabletsEntryPB& from) {
5841
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysTabletsEntryPB)
5842
7.72k
  if (&from == this) return;
5843
7.72k
  Clear();
5844
7.72k
  MergeFrom(from);
5845
7.72k
}
5846
5847
150k
bool SysTabletsEntryPB::IsInitialized() const {
5848
150k
  if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
5849
150k
  if (has_committed_consensus_state()) {
5850
85.7k
    if (!this->committed_consensus_state_->IsInitialized()) return false;
5851
150k
  }
5852
150k
  return true;
5853
150k
}
5854
5855
0
void SysTabletsEntryPB::Swap(SysTabletsEntryPB* other) {
5856
0
  if (other == this) return;
5857
0
  InternalSwap(other);
5858
0
}
5859
1.20M
void SysTabletsEntryPB::InternalSwap(SysTabletsEntryPB* other) {
5860
1.20M
  using std::swap;
5861
1.20M
  table_ids_.InternalSwap(&other->table_ids_);
5862
1.20M
  backfilled_until_.Swap(&other->backfilled_until_);
5863
1.20M
  split_tablet_ids_.InternalSwap(&other->split_tablet_ids_);
5864
1.20M
  retained_by_snapshot_schedules_.InternalSwap(&other->retained_by_snapshot_schedules_);
5865
1.20M
  obsolete_start_key_.Swap(&other->obsolete_start_key_);
5866
1.20M
  obsolete_end_key_.Swap(&other->obsolete_end_key_);
5867
1.20M
  state_msg_.Swap(&other->state_msg_);
5868
1.20M
  table_id_.Swap(&other->table_id_);
5869
1.20M
  deprecated_backfilled_until_.Swap(&other->deprecated_backfilled_until_);
5870
1.20M
  split_parent_tablet_id_.Swap(&other->split_parent_tablet_id_);
5871
1.20M
  swap(committed_consensus_state_, other->committed_consensus_state_);
5872
1.20M
  swap(partition_, other->partition_);
5873
1.20M
  swap(split_depth_, other->split_depth_);
5874
1.20M
  swap(hide_hybrid_time_, other->hide_hybrid_time_);
5875
1.20M
  swap(colocated_, other->colocated_);
5876
1.20M
  swap(state_, other->state_);
5877
1.20M
  swap(_has_bits_[0], other->_has_bits_[0]);
5878
1.20M
  _internal_metadata_.Swap(&other->_internal_metadata_);
5879
1.20M
  swap(_cached_size_, other->_cached_size_);
5880
1.20M
}
5881
5882
4.18M
::google::protobuf::Metadata SysTabletsEntryPB::GetMetadata() const {
5883
4.18M
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
5884
4.18M
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
5885
4.18M
}
5886
5887
5888
// ===================================================================
5889
5890
15.8k
void SysNamespaceEntryPB::InitAsDefaultInstance() {
5891
15.8k
  ::yb::master::_SysNamespaceEntryPB_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::yb::TransactionMetadataPB*>(
5892
15.8k
      ::yb::TransactionMetadataPB::internal_default_instance());
5893
15.8k
}
5894
20
void SysNamespaceEntryPB::clear_transaction() {
5895
20
  if (transaction_ != NULL) transaction_->Clear();
5896
20
  clear_has_transaction();
5897
20
}
5898
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5899
const int SysNamespaceEntryPB::kNameFieldNumber;
5900
const int SysNamespaceEntryPB::kDatabaseTypeFieldNumber;
5901
const int SysNamespaceEntryPB::kNextPgOidFieldNumber;
5902
const int SysNamespaceEntryPB::kColocatedFieldNumber;
5903
const int SysNamespaceEntryPB::kTransactionFieldNumber;
5904
const int SysNamespaceEntryPB::kStateFieldNumber;
5905
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5906
5907
SysNamespaceEntryPB::SysNamespaceEntryPB()
5908
47.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5909
31.9k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5910
31.9k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysNamespaceEntryPB();
5911
31.9k
  }
5912
47.7k
  SharedCtor();
5913
  // @@protoc_insertion_point(constructor:yb.master.SysNamespaceEntryPB)
5914
47.7k
}
5915
SysNamespaceEntryPB::SysNamespaceEntryPB(const SysNamespaceEntryPB& from)
5916
  : ::google::protobuf::Message(),
5917
      _internal_metadata_(NULL),
5918
      _has_bits_(from._has_bits_),
5919
16.2k
      _cached_size_(0) {
5920
16.2k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5921
16.2k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5922
16.2k
  if (from.has_name()) {
5923
6.21k
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
5924
6.21k
  }
5925
16.2k
  if (from.has_transaction()) {
5926
279
    transaction_ = new ::yb::TransactionMetadataPB(*from.transaction_);
5927
15.9k
  } else {
5928
15.9k
    transaction_ = NULL;
5929
15.9k
  }
5930
16.2k
  ::memcpy(&next_pg_oid_, &from.next_pg_oid_,
5931
16.2k
    static_cast<size_t>(reinterpret_cast<char*>(&database_type_) -
5932
16.2k
    reinterpret_cast<char*>(&next_pg_oid_)) + sizeof(database_type_));
5933
  // @@protoc_insertion_point(copy_constructor:yb.master.SysNamespaceEntryPB)
5934
16.2k
}
5935
5936
47.7k
void SysNamespaceEntryPB::SharedCtor() {
5937
47.7k
  _cached_size_ = 0;
5938
47.7k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5939
47.7k
  ::memset(&transaction_, 0, static_cast<size_t>(
5940
47.7k
      reinterpret_cast<char*>(&state_) -
5941
47.7k
      reinterpret_cast<char*>(&transaction_)) + sizeof(state_));
5942
47.7k
  database_type_ = 2;
5943
47.7k
}
5944
5945
39.9k
SysNamespaceEntryPB::~SysNamespaceEntryPB() {
5946
  // @@protoc_insertion_point(destructor:yb.master.SysNamespaceEntryPB)
5947
39.9k
  SharedDtor();
5948
39.9k
}
5949
5950
39.9k
void SysNamespaceEntryPB::SharedDtor() {
5951
39.9k
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5952
39.9k
  if (this != internal_default_instance()) delete transaction_;
5953
39.9k
}
5954
5955
0
void SysNamespaceEntryPB::SetCachedSize(int size) const {
5956
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5957
0
  _cached_size_ = size;
5958
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5959
0
}
5960
0
const ::google::protobuf::Descriptor* SysNamespaceEntryPB::descriptor() {
5961
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
5962
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5963
0
}
5964
5965
0
const SysNamespaceEntryPB& SysNamespaceEntryPB::default_instance() {
5966
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysNamespaceEntryPB();
5967
0
  return *internal_default_instance();
5968
0
}
5969
5970
0
SysNamespaceEntryPB* SysNamespaceEntryPB::New(::google::protobuf::Arena* arena) const {
5971
0
  SysNamespaceEntryPB* n = new SysNamespaceEntryPB;
5972
0
  if (arena != NULL) {
5973
0
    arena->Own(n);
5974
0
  }
5975
0
  return n;
5976
0
}
5977
5978
6.29k
void SysNamespaceEntryPB::Clear() {
5979
// @@protoc_insertion_point(message_clear_start:yb.master.SysNamespaceEntryPB)
5980
6.29k
  ::google::protobuf::uint32 cached_has_bits = 0;
5981
  // Prevent compiler warnings about cached_has_bits being unused
5982
6.29k
  (void) cached_has_bits;
5983
5984
6.29k
  cached_has_bits = _has_bits_[0];
5985
6.29k
  if (cached_has_bits & 3u) {
5986
0
    if (cached_has_bits & 0x00000001u) {
5987
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5988
0
      (*name_.UnsafeRawStringPointer())->clear();
5989
0
    }
5990
0
    if (cached_has_bits & 0x00000002u) {
5991
0
      GOOGLE_DCHECK(transaction_ != NULL);
5992
0
      transaction_->Clear();
5993
0
    }
5994
0
  }
5995
6.29k
  if (cached_has_bits & 60u) {
5996
0
    ::memset(&next_pg_oid_, 0, static_cast<size_t>(
5997
0
        reinterpret_cast<char*>(&state_) -
5998
0
        reinterpret_cast<char*>(&next_pg_oid_)) + sizeof(state_));
5999
0
    database_type_ = 2;
6000
0
  }
6001
6.29k
  _has_bits_.Clear();
6002
6.29k
  _internal_metadata_.Clear();
6003
6.29k
}
6004
6005
bool SysNamespaceEntryPB::MergePartialFromCodedStream(
6006
3.15k
    ::google::protobuf::io::CodedInputStream* input) {
6007
13.1k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6008
3.15k
  ::google::protobuf::uint32 tag;
6009
  // @@protoc_insertion_point(parse_start:yb.master.SysNamespaceEntryPB)
6010
16.2k
  for (;;) {
6011
16.2k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6012
16.2k
    tag = p.first;
6013
16.2k
    if (!p.second) goto handle_unusual;
6014
13.1k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6015
      // optional bytes name = 1;
6016
3.15k
      case 1: {
6017
3.15k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6018
3.15k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6019
3.15k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6020
3.15k
                input, this->mutable_name()));
6021
0
        } else {
6022
0
          goto handle_unusual;
6023
0
        }
6024
3.15k
        break;
6025
3.15k
      }
6026
6027
      // optional .yb.YQLDatabase database_type = 2 [default = YQL_DATABASE_CQL];
6028
3.14k
      case 2: {
6029
3.14k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6030
3.14k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6031
3.14k
          int value;
6032
3.14k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6033
3.14k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6034
3.14k
                 input, &value)));
6035
3.14k
          if (::yb::YQLDatabase_IsValid(value)) {
6036
3.14k
            set_database_type(static_cast< ::yb::YQLDatabase >(value));
6037
0
          } else {
6038
0
            mutable_unknown_fields()->AddVarint(
6039
0
                2, static_cast< ::google::protobuf::uint64>(value));
6040
0
          }
6041
0
        } else {
6042
0
          goto handle_unusual;
6043
0
        }
6044
3.14k
        break;
6045
3.14k
      }
6046
6047
      // optional uint32 next_pg_oid = 3;
6048
1.81k
      case 3: {
6049
1.81k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6050
1.81k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6051
1.81k
          set_has_next_pg_oid();
6052
1.81k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6053
1.81k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6054
1.81k
                 input, &next_pg_oid_)));
6055
0
        } else {
6056
0
          goto handle_unusual;
6057
0
        }
6058
1.81k
        break;
6059
1.81k
      }
6060
6061
      // optional bool colocated = 4 [default = false];
6062
1.86k
      case 4: {
6063
1.86k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6064
1.86k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6065
1.86k
          set_has_colocated();
6066
1.86k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6067
1.86k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6068
1.86k
                 input, &colocated_)));
6069
0
        } else {
6070
0
          goto handle_unusual;
6071
0
        }
6072
1.86k
        break;
6073
1.86k
      }
6074
6075
      // optional .yb.master.SysNamespaceEntryPB.State state = 5 [default = UNKNOWN];
6076
3.14k
      case 5: {
6077
3.14k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6078
3.14k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
6079
3.14k
          int value;
6080
3.14k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6081
3.14k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6082
3.14k
                 input, &value)));
6083
3.14k
          if (::yb::master::SysNamespaceEntryPB_State_IsValid(value)) {
6084
3.14k
            set_state(static_cast< ::yb::master::SysNamespaceEntryPB_State >(value));
6085
0
          } else {
6086
0
            mutable_unknown_fields()->AddVarint(
6087
0
                5, static_cast< ::google::protobuf::uint64>(value));
6088
0
          }
6089
0
        } else {
6090
0
          goto handle_unusual;
6091
0
        }
6092
3.14k
        break;
6093
3.14k
      }
6094
6095
      // optional .yb.TransactionMetadataPB transaction = 6;
6096
0
      case 6: {
6097
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6098
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6099
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6100
0
               input, mutable_transaction()));
6101
0
        } else {
6102
0
          goto handle_unusual;
6103
0
        }
6104
0
        break;
6105
3.15k
      }
6106
6107
0
      default: {
6108
3.15k
      handle_unusual:
6109
3.15k
        if (tag == 0) {
6110
3.15k
          goto success;
6111
3.15k
        }
6112
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6113
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6114
0
        break;
6115
0
      }
6116
13.1k
    }
6117
13.1k
  }
6118
3.15k
success:
6119
  // @@protoc_insertion_point(parse_success:yb.master.SysNamespaceEntryPB)
6120
3.15k
  return true;
6121
0
failure:
6122
  // @@protoc_insertion_point(parse_failure:yb.master.SysNamespaceEntryPB)
6123
0
  return false;
6124
3.15k
#undef DO_
6125
3.15k
}
6126
6127
void SysNamespaceEntryPB::SerializeWithCachedSizes(
6128
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6129
  // @@protoc_insertion_point(serialize_start:yb.master.SysNamespaceEntryPB)
6130
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6131
0
  (void) cached_has_bits;
6132
6133
0
  cached_has_bits = _has_bits_[0];
6134
  // optional bytes name = 1;
6135
0
  if (cached_has_bits & 0x00000001u) {
6136
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6137
0
      1, this->name(), output);
6138
0
  }
6139
6140
  // optional .yb.YQLDatabase database_type = 2 [default = YQL_DATABASE_CQL];
6141
0
  if (cached_has_bits & 0x00000020u) {
6142
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
6143
0
      2, this->database_type(), output);
6144
0
  }
6145
6146
  // optional uint32 next_pg_oid = 3;
6147
0
  if (cached_has_bits & 0x00000004u) {
6148
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->next_pg_oid(), output);
6149
0
  }
6150
6151
  // optional bool colocated = 4 [default = false];
6152
0
  if (cached_has_bits & 0x00000008u) {
6153
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->colocated(), output);
6154
0
  }
6155
6156
  // optional .yb.master.SysNamespaceEntryPB.State state = 5 [default = UNKNOWN];
6157
0
  if (cached_has_bits & 0x00000010u) {
6158
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
6159
0
      5, this->state(), output);
6160
0
  }
6161
6162
  // optional .yb.TransactionMetadataPB transaction = 6;
6163
0
  if (cached_has_bits & 0x00000002u) {
6164
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6165
0
      6, *this->transaction_, output);
6166
0
  }
6167
6168
0
  if (_internal_metadata_.have_unknown_fields()) {
6169
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6170
0
        _internal_metadata_.unknown_fields(), output);
6171
0
  }
6172
  // @@protoc_insertion_point(serialize_end:yb.master.SysNamespaceEntryPB)
6173
0
}
6174
6175
::google::protobuf::uint8* SysNamespaceEntryPB::InternalSerializeWithCachedSizesToArray(
6176
9.40k
    bool deterministic, ::google::protobuf::uint8* target) const {
6177
9.40k
  (void)deterministic; // Unused
6178
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysNamespaceEntryPB)
6179
9.40k
  ::google::protobuf::uint32 cached_has_bits = 0;
6180
9.40k
  (void) cached_has_bits;
6181
6182
9.40k
  cached_has_bits = _has_bits_[0];
6183
  // optional bytes name = 1;
6184
9.40k
  if (cached_has_bits & 0x00000001u) {
6185
9.40k
    target =
6186
9.40k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6187
9.40k
        1, this->name(), target);
6188
9.40k
  }
6189
6190
  // optional .yb.YQLDatabase database_type = 2 [default = YQL_DATABASE_CQL];
6191
9.40k
  if (cached_has_bits & 0x00000020u) {
6192
9.40k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6193
9.40k
      2, this->database_type(), target);
6194
9.40k
  }
6195
6196
  // optional uint32 next_pg_oid = 3;
6197
9.40k
  if (cached_has_bits & 0x00000004u) {
6198
650
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->next_pg_oid(), target);
6199
650
  }
6200
6201
  // optional bool colocated = 4 [default = false];
6202
9.40k
  if (cached_has_bits & 0x00000008u) {
6203
4.64k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->colocated(), target);
6204
4.64k
  }
6205
6206
  // optional .yb.master.SysNamespaceEntryPB.State state = 5 [default = UNKNOWN];
6207
9.40k
  if (cached_has_bits & 0x00000010u) {
6208
9.40k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6209
9.40k
      5, this->state(), target);
6210
9.40k
  }
6211
6212
  // optional .yb.TransactionMetadataPB transaction = 6;
6213
9.40k
  if (cached_has_bits & 0x00000002u) {
6214
46
    target = ::google::protobuf::internal::WireFormatLite::
6215
46
      InternalWriteMessageToArray(
6216
46
        6, *this->transaction_, deterministic, target);
6217
46
  }
6218
6219
9.40k
  if (_internal_metadata_.have_unknown_fields()) {
6220
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6221
0
        _internal_metadata_.unknown_fields(), target);
6222
0
  }
6223
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysNamespaceEntryPB)
6224
9.40k
  return target;
6225
9.40k
}
6226
6227
9.40k
size_t SysNamespaceEntryPB::ByteSizeLong() const {
6228
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysNamespaceEntryPB)
6229
9.40k
  size_t total_size = 0;
6230
6231
9.40k
  if (_internal_metadata_.have_unknown_fields()) {
6232
0
    total_size +=
6233
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6234
0
        _internal_metadata_.unknown_fields());
6235
0
  }
6236
9.40k
  if (_has_bits_[0 / 32] & 63u) {
6237
    // optional bytes name = 1;
6238
9.40k
    if (has_name()) {
6239
9.40k
      total_size += 1 +
6240
9.40k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6241
9.40k
          this->name());
6242
9.40k
    }
6243
6244
    // optional .yb.TransactionMetadataPB transaction = 6;
6245
9.40k
    if (has_transaction()) {
6246
46
      total_size += 1 +
6247
46
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6248
46
          *this->transaction_);
6249
46
    }
6250
6251
    // optional uint32 next_pg_oid = 3;
6252
9.40k
    if (has_next_pg_oid()) {
6253
650
      total_size += 1 +
6254
650
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
6255
650
          this->next_pg_oid());
6256
650
    }
6257
6258
    // optional bool colocated = 4 [default = false];
6259
9.40k
    if (has_colocated()) {
6260
4.64k
      total_size += 1 + 1;
6261
4.64k
    }
6262
6263
    // optional .yb.master.SysNamespaceEntryPB.State state = 5 [default = UNKNOWN];
6264
9.40k
    if (has_state()) {
6265
9.40k
      total_size += 1 +
6266
9.40k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
6267
9.40k
    }
6268
6269
    // optional .yb.YQLDatabase database_type = 2 [default = YQL_DATABASE_CQL];
6270
9.40k
    if (has_database_type()) {
6271
9.40k
      total_size += 1 +
6272
9.40k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->database_type());
6273
9.40k
    }
6274
6275
9.40k
  }
6276
9.40k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6277
9.40k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6278
9.40k
  _cached_size_ = cached_size;
6279
9.40k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6280
9.40k
  return total_size;
6281
9.40k
}
6282
6283
0
void SysNamespaceEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
6284
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysNamespaceEntryPB)
6285
0
  GOOGLE_DCHECK_NE(&from, this);
6286
0
  const SysNamespaceEntryPB* source =
6287
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysNamespaceEntryPB>(
6288
0
          &from);
6289
0
  if (source == NULL) {
6290
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysNamespaceEntryPB)
6291
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6292
0
  } else {
6293
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysNamespaceEntryPB)
6294
0
    MergeFrom(*source);
6295
0
  }
6296
0
}
6297
6298
3.14k
void SysNamespaceEntryPB::MergeFrom(const SysNamespaceEntryPB& from) {
6299
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysNamespaceEntryPB)
6300
3.14k
  GOOGLE_DCHECK_NE(&from, this);
6301
3.14k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6302
3.14k
  ::google::protobuf::uint32 cached_has_bits = 0;
6303
3.14k
  (void) cached_has_bits;
6304
6305
3.14k
  cached_has_bits = from._has_bits_[0];
6306
3.14k
  if (cached_has_bits & 63u) {
6307
3.14k
    if (cached_has_bits & 0x00000001u) {
6308
3.14k
      set_has_name();
6309
3.14k
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6310
3.14k
    }
6311
3.14k
    if (cached_has_bits & 0x00000002u) {
6312
0
      mutable_transaction()->::yb::TransactionMetadataPB::MergeFrom(from.transaction());
6313
0
    }
6314
3.14k
    if (cached_has_bits & 0x00000004u) {
6315
1.81k
      next_pg_oid_ = from.next_pg_oid_;
6316
1.81k
    }
6317
3.14k
    if (cached_has_bits & 0x00000008u) {
6318
1.86k
      colocated_ = from.colocated_;
6319
1.86k
    }
6320
3.14k
    if (cached_has_bits & 0x00000010u) {
6321
3.14k
      state_ = from.state_;
6322
3.14k
    }
6323
3.14k
    if (cached_has_bits & 0x00000020u) {
6324
3.14k
      database_type_ = from.database_type_;
6325
3.14k
    }
6326
3.14k
    _has_bits_[0] |= cached_has_bits;
6327
3.14k
  }
6328
3.14k
}
6329
6330
0
void SysNamespaceEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
6331
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysNamespaceEntryPB)
6332
0
  if (&from == this) return;
6333
0
  Clear();
6334
0
  MergeFrom(from);
6335
0
}
6336
6337
3.14k
void SysNamespaceEntryPB::CopyFrom(const SysNamespaceEntryPB& from) {
6338
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysNamespaceEntryPB)
6339
3.14k
  if (&from == this) return;
6340
3.14k
  Clear();
6341
3.14k
  MergeFrom(from);
6342
3.14k
}
6343
6344
12.5k
bool SysNamespaceEntryPB::IsInitialized() const {
6345
12.5k
  return true;
6346
12.5k
}
6347
6348
0
void SysNamespaceEntryPB::Swap(SysNamespaceEntryPB* other) {
6349
0
  if (other == this) return;
6350
0
  InternalSwap(other);
6351
0
}
6352
46.9k
void SysNamespaceEntryPB::InternalSwap(SysNamespaceEntryPB* other) {
6353
46.9k
  using std::swap;
6354
46.9k
  name_.Swap(&other->name_);
6355
46.9k
  swap(transaction_, other->transaction_);
6356
46.9k
  swap(next_pg_oid_, other->next_pg_oid_);
6357
46.9k
  swap(colocated_, other->colocated_);
6358
46.9k
  swap(state_, other->state_);
6359
46.9k
  swap(database_type_, other->database_type_);
6360
46.9k
  swap(_has_bits_[0], other->_has_bits_[0]);
6361
46.9k
  _internal_metadata_.Swap(&other->_internal_metadata_);
6362
46.9k
  swap(_cached_size_, other->_cached_size_);
6363
46.9k
}
6364
6365
95.4k
::google::protobuf::Metadata SysNamespaceEntryPB::GetMetadata() const {
6366
95.4k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
6367
95.4k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
6368
95.4k
}
6369
6370
6371
// ===================================================================
6372
6373
15.8k
void SysUDTypeEntryPB::InitAsDefaultInstance() {
6374
15.8k
}
6375
0
void SysUDTypeEntryPB::clear_field_types() {
6376
0
  field_types_.Clear();
6377
0
}
6378
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6379
const int SysUDTypeEntryPB::kNamespaceIdFieldNumber;
6380
const int SysUDTypeEntryPB::kNameFieldNumber;
6381
const int SysUDTypeEntryPB::kFieldNamesFieldNumber;
6382
const int SysUDTypeEntryPB::kFieldTypesFieldNumber;
6383
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6384
6385
SysUDTypeEntryPB::SysUDTypeEntryPB()
6386
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6387
140
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6388
140
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUDTypeEntryPB();
6389
140
  }
6390
15.9k
  SharedCtor();
6391
  // @@protoc_insertion_point(constructor:yb.master.SysUDTypeEntryPB)
6392
15.9k
}
6393
SysUDTypeEntryPB::SysUDTypeEntryPB(const SysUDTypeEntryPB& from)
6394
  : ::google::protobuf::Message(),
6395
      _internal_metadata_(NULL),
6396
      _has_bits_(from._has_bits_),
6397
      _cached_size_(0),
6398
      field_names_(from.field_names_),
6399
92
      field_types_(from.field_types_) {
6400
92
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6401
92
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6402
92
  if (from.has_namespace_id()) {
6403
45
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
6404
45
  }
6405
92
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6406
92
  if (from.has_name()) {
6407
45
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6408
45
  }
6409
  // @@protoc_insertion_point(copy_constructor:yb.master.SysUDTypeEntryPB)
6410
92
}
6411
6412
15.9k
void SysUDTypeEntryPB::SharedCtor() {
6413
15.9k
  _cached_size_ = 0;
6414
15.9k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6415
15.9k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6416
15.9k
}
6417
6418
232
SysUDTypeEntryPB::~SysUDTypeEntryPB() {
6419
  // @@protoc_insertion_point(destructor:yb.master.SysUDTypeEntryPB)
6420
232
  SharedDtor();
6421
232
}
6422
6423
232
void SysUDTypeEntryPB::SharedDtor() {
6424
232
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6425
232
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6426
232
}
6427
6428
0
void SysUDTypeEntryPB::SetCachedSize(int size) const {
6429
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6430
0
  _cached_size_ = size;
6431
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6432
0
}
6433
0
const ::google::protobuf::Descriptor* SysUDTypeEntryPB::descriptor() {
6434
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
6435
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6436
0
}
6437
6438
0
const SysUDTypeEntryPB& SysUDTypeEntryPB::default_instance() {
6439
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUDTypeEntryPB();
6440
0
  return *internal_default_instance();
6441
0
}
6442
6443
0
SysUDTypeEntryPB* SysUDTypeEntryPB::New(::google::protobuf::Arena* arena) const {
6444
0
  SysUDTypeEntryPB* n = new SysUDTypeEntryPB;
6445
0
  if (arena != NULL) {
6446
0
    arena->Own(n);
6447
0
  }
6448
0
  return n;
6449
0
}
6450
6451
2
void SysUDTypeEntryPB::Clear() {
6452
// @@protoc_insertion_point(message_clear_start:yb.master.SysUDTypeEntryPB)
6453
2
  ::google::protobuf::uint32 cached_has_bits = 0;
6454
  // Prevent compiler warnings about cached_has_bits being unused
6455
2
  (void) cached_has_bits;
6456
6457
2
  field_names_.Clear();
6458
2
  field_types_.Clear();
6459
2
  cached_has_bits = _has_bits_[0];
6460
2
  if (cached_has_bits & 3u) {
6461
0
    if (cached_has_bits & 0x00000001u) {
6462
0
      GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6463
0
      (*namespace_id_.UnsafeRawStringPointer())->clear();
6464
0
    }
6465
0
    if (cached_has_bits & 0x00000002u) {
6466
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6467
0
      (*name_.UnsafeRawStringPointer())->clear();
6468
0
    }
6469
0
  }
6470
2
  _has_bits_.Clear();
6471
2
  _internal_metadata_.Clear();
6472
2
}
6473
6474
bool SysUDTypeEntryPB::MergePartialFromCodedStream(
6475
1
    ::google::protobuf::io::CodedInputStream* input) {
6476
2
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6477
1
  ::google::protobuf::uint32 tag;
6478
  // @@protoc_insertion_point(parse_start:yb.master.SysUDTypeEntryPB)
6479
3
  for (;;) {
6480
3
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6481
3
    tag = p.first;
6482
3
    if (!p.second) goto handle_unusual;
6483
2
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6484
      // optional string namespace_id = 1;
6485
1
      case 1: {
6486
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6487
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6488
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6489
1
                input, this->mutable_namespace_id()));
6490
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6491
1
            this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
6492
1
            ::google::protobuf::internal::WireFormat::PARSE,
6493
1
            "yb.master.SysUDTypeEntryPB.namespace_id");
6494
0
        } else {
6495
0
          goto handle_unusual;
6496
0
        }
6497
1
        break;
6498
1
      }
6499
6500
      // optional string name = 2;
6501
1
      case 2: {
6502
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6503
1
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6504
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6505
1
                input, this->mutable_name()));
6506
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6507
1
            this->name().data(), static_cast<int>(this->name().length()),
6508
1
            ::google::protobuf::internal::WireFormat::PARSE,
6509
1
            "yb.master.SysUDTypeEntryPB.name");
6510
0
        } else {
6511
0
          goto handle_unusual;
6512
0
        }
6513
1
        break;
6514
1
      }
6515
6516
      // repeated string field_names = 3;
6517
0
      case 3: {
6518
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6519
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6520
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6521
0
                input, this->add_field_names()));
6522
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6523
0
            this->field_names(this->field_names_size() - 1).data(),
6524
0
            static_cast<int>(this->field_names(this->field_names_size() - 1).length()),
6525
0
            ::google::protobuf::internal::WireFormat::PARSE,
6526
0
            "yb.master.SysUDTypeEntryPB.field_names");
6527
0
        } else {
6528
0
          goto handle_unusual;
6529
0
        }
6530
0
        break;
6531
0
      }
6532
6533
      // repeated .yb.QLTypePB field_types = 4;
6534
0
      case 4: {
6535
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6536
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
6537
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_field_types()));
6538
0
        } else {
6539
0
          goto handle_unusual;
6540
0
        }
6541
0
        break;
6542
1
      }
6543
6544
0
      default: {
6545
1
      handle_unusual:
6546
1
        if (tag == 0) {
6547
1
          goto success;
6548
1
        }
6549
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6550
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6551
0
        break;
6552
0
      }
6553
2
    }
6554
2
  }
6555
1
success:
6556
  // @@protoc_insertion_point(parse_success:yb.master.SysUDTypeEntryPB)
6557
1
  return true;
6558
0
failure:
6559
  // @@protoc_insertion_point(parse_failure:yb.master.SysUDTypeEntryPB)
6560
0
  return false;
6561
1
#undef DO_
6562
1
}
6563
6564
void SysUDTypeEntryPB::SerializeWithCachedSizes(
6565
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6566
  // @@protoc_insertion_point(serialize_start:yb.master.SysUDTypeEntryPB)
6567
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6568
0
  (void) cached_has_bits;
6569
6570
0
  cached_has_bits = _has_bits_[0];
6571
  // optional string namespace_id = 1;
6572
0
  if (cached_has_bits & 0x00000001u) {
6573
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6574
0
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
6575
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6576
0
      "yb.master.SysUDTypeEntryPB.namespace_id");
6577
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6578
0
      1, this->namespace_id(), output);
6579
0
  }
6580
6581
  // optional string name = 2;
6582
0
  if (cached_has_bits & 0x00000002u) {
6583
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6584
0
      this->name().data(), static_cast<int>(this->name().length()),
6585
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6586
0
      "yb.master.SysUDTypeEntryPB.name");
6587
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6588
0
      2, this->name(), output);
6589
0
  }
6590
6591
  // repeated string field_names = 3;
6592
0
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
6593
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6594
0
      this->field_names(i).data(), static_cast<int>(this->field_names(i).length()),
6595
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6596
0
      "yb.master.SysUDTypeEntryPB.field_names");
6597
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
6598
0
      3, this->field_names(i), output);
6599
0
  }
6600
6601
  // repeated .yb.QLTypePB field_types = 4;
6602
0
  for (unsigned int i = 0,
6603
0
      n = static_cast<unsigned int>(this->field_types_size()); i < n; i++) {
6604
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6605
0
      4, this->field_types(static_cast<int>(i)), output);
6606
0
  }
6607
6608
0
  if (_internal_metadata_.have_unknown_fields()) {
6609
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6610
0
        _internal_metadata_.unknown_fields(), output);
6611
0
  }
6612
  // @@protoc_insertion_point(serialize_end:yb.master.SysUDTypeEntryPB)
6613
0
}
6614
6615
::google::protobuf::uint8* SysUDTypeEntryPB::InternalSerializeWithCachedSizesToArray(
6616
46
    bool deterministic, ::google::protobuf::uint8* target) const {
6617
46
  (void)deterministic; // Unused
6618
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysUDTypeEntryPB)
6619
46
  ::google::protobuf::uint32 cached_has_bits = 0;
6620
46
  (void) cached_has_bits;
6621
6622
46
  cached_has_bits = _has_bits_[0];
6623
  // optional string namespace_id = 1;
6624
46
  if (cached_has_bits & 0x00000001u) {
6625
46
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6626
46
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
6627
46
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6628
46
      "yb.master.SysUDTypeEntryPB.namespace_id");
6629
46
    target =
6630
46
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6631
46
        1, this->namespace_id(), target);
6632
46
  }
6633
6634
  // optional string name = 2;
6635
46
  if (cached_has_bits & 0x00000002u) {
6636
46
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6637
46
      this->name().data(), static_cast<int>(this->name().length()),
6638
46
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6639
46
      "yb.master.SysUDTypeEntryPB.name");
6640
46
    target =
6641
46
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6642
46
        2, this->name(), target);
6643
46
  }
6644
6645
  // repeated string field_names = 3;
6646
131
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
6647
85
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6648
85
      this->field_names(i).data(), static_cast<int>(this->field_names(i).length()),
6649
85
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6650
85
      "yb.master.SysUDTypeEntryPB.field_names");
6651
85
    target = ::google::protobuf::internal::WireFormatLite::
6652
85
      WriteStringToArray(3, this->field_names(i), target);
6653
85
  }
6654
6655
  // repeated .yb.QLTypePB field_types = 4;
6656
46
  for (unsigned int i = 0,
6657
131
      n = static_cast<unsigned int>(this->field_types_size()); i < n; i++) {
6658
85
    target = ::google::protobuf::internal::WireFormatLite::
6659
85
      InternalWriteMessageToArray(
6660
85
        4, this->field_types(static_cast<int>(i)), deterministic, target);
6661
85
  }
6662
6663
46
  if (_internal_metadata_.have_unknown_fields()) {
6664
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6665
0
        _internal_metadata_.unknown_fields(), target);
6666
0
  }
6667
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysUDTypeEntryPB)
6668
46
  return target;
6669
46
}
6670
6671
46
size_t SysUDTypeEntryPB::ByteSizeLong() const {
6672
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysUDTypeEntryPB)
6673
46
  size_t total_size = 0;
6674
6675
46
  if (_internal_metadata_.have_unknown_fields()) {
6676
0
    total_size +=
6677
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6678
0
        _internal_metadata_.unknown_fields());
6679
0
  }
6680
  // repeated string field_names = 3;
6681
46
  total_size += 1 *
6682
46
      ::google::protobuf::internal::FromIntSize(this->field_names_size());
6683
131
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
6684
85
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
6685
85
      this->field_names(i));
6686
85
  }
6687
6688
  // repeated .yb.QLTypePB field_types = 4;
6689
46
  {
6690
46
    unsigned int count = static_cast<unsigned int>(this->field_types_size());
6691
46
    total_size += 1UL * count;
6692
131
    for (unsigned int i = 0; i < count; i++) {
6693
85
      total_size +=
6694
85
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6695
85
          this->field_types(static_cast<int>(i)));
6696
85
    }
6697
46
  }
6698
6699
46
  if (_has_bits_[0 / 32] & 3u) {
6700
    // optional string namespace_id = 1;
6701
46
    if (has_namespace_id()) {
6702
46
      total_size += 1 +
6703
46
        ::google::protobuf::internal::WireFormatLite::StringSize(
6704
46
          this->namespace_id());
6705
46
    }
6706
6707
    // optional string name = 2;
6708
46
    if (has_name()) {
6709
46
      total_size += 1 +
6710
46
        ::google::protobuf::internal::WireFormatLite::StringSize(
6711
46
          this->name());
6712
46
    }
6713
6714
46
  }
6715
46
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6716
46
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6717
46
  _cached_size_ = cached_size;
6718
46
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6719
46
  return total_size;
6720
46
}
6721
6722
0
void SysUDTypeEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
6723
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysUDTypeEntryPB)
6724
0
  GOOGLE_DCHECK_NE(&from, this);
6725
0
  const SysUDTypeEntryPB* source =
6726
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysUDTypeEntryPB>(
6727
0
          &from);
6728
0
  if (source == NULL) {
6729
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysUDTypeEntryPB)
6730
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6731
0
  } else {
6732
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysUDTypeEntryPB)
6733
0
    MergeFrom(*source);
6734
0
  }
6735
0
}
6736
6737
1
void SysUDTypeEntryPB::MergeFrom(const SysUDTypeEntryPB& from) {
6738
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysUDTypeEntryPB)
6739
1
  GOOGLE_DCHECK_NE(&from, this);
6740
1
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6741
1
  ::google::protobuf::uint32 cached_has_bits = 0;
6742
1
  (void) cached_has_bits;
6743
6744
1
  field_names_.MergeFrom(from.field_names_);
6745
1
  field_types_.MergeFrom(from.field_types_);
6746
1
  cached_has_bits = from._has_bits_[0];
6747
1
  if (cached_has_bits & 3u) {
6748
1
    if (cached_has_bits & 0x00000001u) {
6749
1
      set_has_namespace_id();
6750
1
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
6751
1
    }
6752
1
    if (cached_has_bits & 0x00000002u) {
6753
1
      set_has_name();
6754
1
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6755
1
    }
6756
1
  }
6757
1
}
6758
6759
0
void SysUDTypeEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
6760
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysUDTypeEntryPB)
6761
0
  if (&from == this) return;
6762
0
  Clear();
6763
0
  MergeFrom(from);
6764
0
}
6765
6766
1
void SysUDTypeEntryPB::CopyFrom(const SysUDTypeEntryPB& from) {
6767
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysUDTypeEntryPB)
6768
1
  if (&from == this) return;
6769
1
  Clear();
6770
1
  MergeFrom(from);
6771
1
}
6772
6773
47
bool SysUDTypeEntryPB::IsInitialized() const {
6774
47
  return true;
6775
47
}
6776
6777
0
void SysUDTypeEntryPB::Swap(SysUDTypeEntryPB* other) {
6778
0
  if (other == this) return;
6779
0
  InternalSwap(other);
6780
0
}
6781
276
void SysUDTypeEntryPB::InternalSwap(SysUDTypeEntryPB* other) {
6782
276
  using std::swap;
6783
276
  field_names_.InternalSwap(&other->field_names_);
6784
276
  field_types_.InternalSwap(&other->field_types_);
6785
276
  namespace_id_.Swap(&other->namespace_id_);
6786
276
  name_.Swap(&other->name_);
6787
276
  swap(_has_bits_[0], other->_has_bits_[0]);
6788
276
  _internal_metadata_.Swap(&other->_internal_metadata_);
6789
276
  swap(_cached_size_, other->_cached_size_);
6790
276
}
6791
6792
648
::google::protobuf::Metadata SysUDTypeEntryPB::GetMetadata() const {
6793
648
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
6794
648
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
6795
648
}
6796
6797
6798
// ===================================================================
6799
6800
15.8k
void BlacklistPB::InitAsDefaultInstance() {
6801
15.8k
}
6802
0
void BlacklistPB::clear_hosts() {
6803
0
  hosts_.Clear();
6804
0
}
6805
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6806
const int BlacklistPB::kHostsFieldNumber;
6807
const int BlacklistPB::kInitialReplicaLoadFieldNumber;
6808
const int BlacklistPB::kInitialLeaderLoadFieldNumber;
6809
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6810
6811
BlacklistPB::BlacklistPB()
6812
278k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6813
262k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6814
262k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBlacklistPB();
6815
262k
  }
6816
278k
  SharedCtor();
6817
  // @@protoc_insertion_point(constructor:yb.master.BlacklistPB)
6818
278k
}
6819
BlacklistPB::BlacklistPB(const BlacklistPB& from)
6820
  : ::google::protobuf::Message(),
6821
      _internal_metadata_(NULL),
6822
      _has_bits_(from._has_bits_),
6823
      _cached_size_(0),
6824
58
      hosts_(from.hosts_) {
6825
58
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6826
58
  ::memcpy(&initial_replica_load_, &from.initial_replica_load_,
6827
58
    static_cast<size_t>(reinterpret_cast<char*>(&initial_leader_load_) -
6828
58
    reinterpret_cast<char*>(&initial_replica_load_)) + sizeof(initial_leader_load_));
6829
  // @@protoc_insertion_point(copy_constructor:yb.master.BlacklistPB)
6830
58
}
6831
6832
278k
void BlacklistPB::SharedCtor() {
6833
278k
  _cached_size_ = 0;
6834
278k
  ::memset(&initial_replica_load_, 0, static_cast<size_t>(
6835
278k
      reinterpret_cast<char*>(&initial_leader_load_) -
6836
278k
      reinterpret_cast<char*>(&initial_replica_load_)) + sizeof(initial_leader_load_));
6837
278k
}
6838
6839
261k
BlacklistPB::~BlacklistPB() {
6840
  // @@protoc_insertion_point(destructor:yb.master.BlacklistPB)
6841
261k
  SharedDtor();
6842
261k
}
6843
6844
261k
void BlacklistPB::SharedDtor() {
6845
261k
}
6846
6847
0
void BlacklistPB::SetCachedSize(int size) const {
6848
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6849
0
  _cached_size_ = size;
6850
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6851
0
}
6852
0
const ::google::protobuf::Descriptor* BlacklistPB::descriptor() {
6853
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
6854
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6855
0
}
6856
6857
0
const BlacklistPB& BlacklistPB::default_instance() {
6858
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsBlacklistPB();
6859
0
  return *internal_default_instance();
6860
0
}
6861
6862
0
BlacklistPB* BlacklistPB::New(::google::protobuf::Arena* arena) const {
6863
0
  BlacklistPB* n = new BlacklistPB;
6864
0
  if (arena != NULL) {
6865
0
    arena->Own(n);
6866
0
  }
6867
0
  return n;
6868
0
}
6869
6870
243k
void BlacklistPB::Clear() {
6871
// @@protoc_insertion_point(message_clear_start:yb.master.BlacklistPB)
6872
243k
  ::google::protobuf::uint32 cached_has_bits = 0;
6873
  // Prevent compiler warnings about cached_has_bits being unused
6874
243k
  (void) cached_has_bits;
6875
6876
243k
  hosts_.Clear();
6877
243k
  cached_has_bits = _has_bits_[0];
6878
243k
  if (cached_has_bits & 3u) {
6879
17
    ::memset(&initial_replica_load_, 0, static_cast<size_t>(
6880
17
        reinterpret_cast<char*>(&initial_leader_load_) -
6881
17
        reinterpret_cast<char*>(&initial_replica_load_)) + sizeof(initial_leader_load_));
6882
17
  }
6883
243k
  _has_bits_.Clear();
6884
243k
  _internal_metadata_.Clear();
6885
243k
}
6886
6887
bool BlacklistPB::MergePartialFromCodedStream(
6888
45
    ::google::protobuf::io::CodedInputStream* input) {
6889
69
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6890
45
  ::google::protobuf::uint32 tag;
6891
  // @@protoc_insertion_point(parse_start:yb.master.BlacklistPB)
6892
114
  for (;;) {
6893
114
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6894
114
    tag = p.first;
6895
114
    if (!p.second) goto handle_unusual;
6896
69
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6897
      // repeated .yb.HostPortPB hosts = 1;
6898
51
      case 1: {
6899
51
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6900
51
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6901
51
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_hosts()));
6902
0
        } else {
6903
0
          goto handle_unusual;
6904
0
        }
6905
51
        break;
6906
51
      }
6907
6908
      // optional int32 initial_replica_load = 2;
6909
10
      case 2: {
6910
10
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6911
10
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6912
10
          set_has_initial_replica_load();
6913
10
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6914
10
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6915
10
                 input, &initial_replica_load_)));
6916
0
        } else {
6917
0
          goto handle_unusual;
6918
0
        }
6919
10
        break;
6920
10
      }
6921
6922
      // optional int32 initial_leader_load = 3;
6923
8
      case 3: {
6924
8
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6925
8
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
6926
8
          set_has_initial_leader_load();
6927
8
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6928
8
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6929
8
                 input, &initial_leader_load_)));
6930
0
        } else {
6931
0
          goto handle_unusual;
6932
0
        }
6933
8
        break;
6934
45
      }
6935
6936
0
      default: {
6937
45
      handle_unusual:
6938
45
        if (tag == 0) {
6939
45
          goto success;
6940
45
        }
6941
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6942
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6943
0
        break;
6944
0
      }
6945
69
    }
6946
69
  }
6947
45
success:
6948
  // @@protoc_insertion_point(parse_success:yb.master.BlacklistPB)
6949
45
  return true;
6950
0
failure:
6951
  // @@protoc_insertion_point(parse_failure:yb.master.BlacklistPB)
6952
0
  return false;
6953
45
#undef DO_
6954
45
}
6955
6956
void BlacklistPB::SerializeWithCachedSizes(
6957
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6958
  // @@protoc_insertion_point(serialize_start:yb.master.BlacklistPB)
6959
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6960
0
  (void) cached_has_bits;
6961
6962
  // repeated .yb.HostPortPB hosts = 1;
6963
0
  for (unsigned int i = 0,
6964
0
      n = static_cast<unsigned int>(this->hosts_size()); i < n; i++) {
6965
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6966
0
      1, this->hosts(static_cast<int>(i)), output);
6967
0
  }
6968
6969
0
  cached_has_bits = _has_bits_[0];
6970
  // optional int32 initial_replica_load = 2;
6971
0
  if (cached_has_bits & 0x00000001u) {
6972
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->initial_replica_load(), output);
6973
0
  }
6974
6975
  // optional int32 initial_leader_load = 3;
6976
0
  if (cached_has_bits & 0x00000002u) {
6977
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->initial_leader_load(), output);
6978
0
  }
6979
6980
0
  if (_internal_metadata_.have_unknown_fields()) {
6981
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6982
0
        _internal_metadata_.unknown_fields(), output);
6983
0
  }
6984
  // @@protoc_insertion_point(serialize_end:yb.master.BlacklistPB)
6985
0
}
6986
6987
::google::protobuf::uint8* BlacklistPB::InternalSerializeWithCachedSizesToArray(
6988
91
    bool deterministic, ::google::protobuf::uint8* target) const {
6989
91
  (void)deterministic; // Unused
6990
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.BlacklistPB)
6991
91
  ::google::protobuf::uint32 cached_has_bits = 0;
6992
91
  (void) cached_has_bits;
6993
6994
  // repeated .yb.HostPortPB hosts = 1;
6995
91
  for (unsigned int i = 0,
6996
188
      n = static_cast<unsigned int>(this->hosts_size()); i < n; i++) {
6997
97
    target = ::google::protobuf::internal::WireFormatLite::
6998
97
      InternalWriteMessageToArray(
6999
97
        1, this->hosts(static_cast<int>(i)), deterministic, target);
7000
97
  }
7001
7002
91
  cached_has_bits = _has_bits_[0];
7003
  // optional int32 initial_replica_load = 2;
7004
91
  if (cached_has_bits & 0x00000001u) {
7005
46
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->initial_replica_load(), target);
7006
46
  }
7007
7008
  // optional int32 initial_leader_load = 3;
7009
91
  if (cached_has_bits & 0x00000002u) {
7010
37
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->initial_leader_load(), target);
7011
37
  }
7012
7013
91
  if (_internal_metadata_.have_unknown_fields()) {
7014
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7015
0
        _internal_metadata_.unknown_fields(), target);
7016
0
  }
7017
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.BlacklistPB)
7018
91
  return target;
7019
91
}
7020
7021
148
size_t BlacklistPB::ByteSizeLong() const {
7022
// @@protoc_insertion_point(message_byte_size_start:yb.master.BlacklistPB)
7023
148
  size_t total_size = 0;
7024
7025
148
  if (_internal_metadata_.have_unknown_fields()) {
7026
0
    total_size +=
7027
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7028
0
        _internal_metadata_.unknown_fields());
7029
0
  }
7030
  // repeated .yb.HostPortPB hosts = 1;
7031
148
  {
7032
148
    unsigned int count = static_cast<unsigned int>(this->hosts_size());
7033
148
    total_size += 1UL * count;
7034
305
    for (unsigned int i = 0; i < count; i++) {
7035
157
      total_size +=
7036
157
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7037
157
          this->hosts(static_cast<int>(i)));
7038
157
    }
7039
148
  }
7040
7041
148
  if (_has_bits_[0 / 32] & 3u) {
7042
    // optional int32 initial_replica_load = 2;
7043
132
    if (has_initial_replica_load()) {
7044
72
      total_size += 1 +
7045
72
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7046
72
          this->initial_replica_load());
7047
72
    }
7048
7049
    // optional int32 initial_leader_load = 3;
7050
132
    if (has_initial_leader_load()) {
7051
60
      total_size += 1 +
7052
60
        ::google::protobuf::internal::WireFormatLite::Int32Size(
7053
60
          this->initial_leader_load());
7054
60
    }
7055
7056
132
  }
7057
148
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7058
148
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7059
148
  _cached_size_ = cached_size;
7060
148
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7061
148
  return total_size;
7062
148
}
7063
7064
0
void BlacklistPB::MergeFrom(const ::google::protobuf::Message& from) {
7065
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.BlacklistPB)
7066
0
  GOOGLE_DCHECK_NE(&from, this);
7067
0
  const BlacklistPB* source =
7068
0
      ::google::protobuf::internal::DynamicCastToGenerated<const BlacklistPB>(
7069
0
          &from);
7070
0
  if (source == NULL) {
7071
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.BlacklistPB)
7072
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7073
0
  } else {
7074
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.BlacklistPB)
7075
0
    MergeFrom(*source);
7076
0
  }
7077
0
}
7078
7079
262k
void BlacklistPB::MergeFrom(const BlacklistPB& from) {
7080
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.BlacklistPB)
7081
262k
  GOOGLE_DCHECK_NE(&from, this);
7082
262k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7083
262k
  ::google::protobuf::uint32 cached_has_bits = 0;
7084
262k
  (void) cached_has_bits;
7085
7086
262k
  hosts_.MergeFrom(from.hosts_);
7087
262k
  cached_has_bits = from._has_bits_[0];
7088
262k
  if (cached_has_bits & 3u) {
7089
23.3k
    if (cached_has_bits & 0x00000001u) {
7090
19.3k
      initial_replica_load_ = from.initial_replica_load_;
7091
19.3k
    }
7092
23.3k
    if (cached_has_bits & 0x00000002u) {
7093
3.99k
      initial_leader_load_ = from.initial_leader_load_;
7094
3.99k
    }
7095
23.3k
    _has_bits_[0] |= cached_has_bits;
7096
23.3k
  }
7097
262k
}
7098
7099
0
void BlacklistPB::CopyFrom(const ::google::protobuf::Message& from) {
7100
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.BlacklistPB)
7101
0
  if (&from == this) return;
7102
0
  Clear();
7103
0
  MergeFrom(from);
7104
0
}
7105
7106
243k
void BlacklistPB::CopyFrom(const BlacklistPB& from) {
7107
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.BlacklistPB)
7108
243k
  if (&from == this) return;
7109
243k
  Clear();
7110
243k
  MergeFrom(from);
7111
243k
}
7112
7113
136
bool BlacklistPB::IsInitialized() const {
7114
136
  if (!::google::protobuf::internal::AllAreInitialized(this->hosts())) return false;
7115
136
  return true;
7116
136
}
7117
7118
0
void BlacklistPB::Swap(BlacklistPB* other) {
7119
0
  if (other == this) return;
7120
0
  InternalSwap(other);
7121
0
}
7122
0
void BlacklistPB::InternalSwap(BlacklistPB* other) {
7123
0
  using std::swap;
7124
0
  hosts_.InternalSwap(&other->hosts_);
7125
0
  swap(initial_replica_load_, other->initial_replica_load_);
7126
0
  swap(initial_leader_load_, other->initial_leader_load_);
7127
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7128
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7129
0
  swap(_cached_size_, other->_cached_size_);
7130
0
}
7131
7132
34
::google::protobuf::Metadata BlacklistPB::GetMetadata() const {
7133
34
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
7134
34
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
7135
34
}
7136
7137
7138
// ===================================================================
7139
7140
15.8k
void EncryptionInfoPB::InitAsDefaultInstance() {
7141
15.8k
}
7142
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7143
const int EncryptionInfoPB::kEncryptionEnabledFieldNumber;
7144
const int EncryptionInfoPB::kUniverseKeyRegistryEncodedFieldNumber;
7145
const int EncryptionInfoPB::kKeyPathFieldNumber;
7146
const int EncryptionInfoPB::kLatestVersionIdFieldNumber;
7147
const int EncryptionInfoPB::kKeyInMemoryFieldNumber;
7148
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7149
7150
EncryptionInfoPB::EncryptionInfoPB()
7151
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7152
6
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7153
6
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsEncryptionInfoPB();
7154
6
  }
7155
15.8k
  SharedCtor();
7156
  // @@protoc_insertion_point(constructor:yb.master.EncryptionInfoPB)
7157
15.8k
}
7158
EncryptionInfoPB::EncryptionInfoPB(const EncryptionInfoPB& from)
7159
  : ::google::protobuf::Message(),
7160
      _internal_metadata_(NULL),
7161
      _has_bits_(from._has_bits_),
7162
3
      _cached_size_(0) {
7163
3
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7164
3
  universe_key_registry_encoded_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7165
3
  if (from.has_universe_key_registry_encoded()) {
7166
3
    universe_key_registry_encoded_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.universe_key_registry_encoded_);
7167
3
  }
7168
3
  key_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7169
3
  if (from.has_key_path()) {
7170
0
    key_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_path_);
7171
0
  }
7172
3
  latest_version_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7173
3
  if (from.has_latest_version_id()) {
7174
3
    latest_version_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.latest_version_id_);
7175
3
  }
7176
3
  ::memcpy(&encryption_enabled_, &from.encryption_enabled_,
7177
3
    static_cast<size_t>(reinterpret_cast<char*>(&key_in_memory_) -
7178
3
    reinterpret_cast<char*>(&encryption_enabled_)) + sizeof(key_in_memory_));
7179
  // @@protoc_insertion_point(copy_constructor:yb.master.EncryptionInfoPB)
7180
3
}
7181
7182
15.8k
void EncryptionInfoPB::SharedCtor() {
7183
15.8k
  _cached_size_ = 0;
7184
15.8k
  universe_key_registry_encoded_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7185
15.8k
  key_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7186
15.8k
  latest_version_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7187
15.8k
  ::memset(&encryption_enabled_, 0, static_cast<size_t>(
7188
15.8k
      reinterpret_cast<char*>(&key_in_memory_) -
7189
15.8k
      reinterpret_cast<char*>(&encryption_enabled_)) + sizeof(key_in_memory_));
7190
15.8k
}
7191
7192
6
EncryptionInfoPB::~EncryptionInfoPB() {
7193
  // @@protoc_insertion_point(destructor:yb.master.EncryptionInfoPB)
7194
6
  SharedDtor();
7195
6
}
7196
7197
6
void EncryptionInfoPB::SharedDtor() {
7198
6
  universe_key_registry_encoded_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7199
6
  key_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7200
6
  latest_version_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7201
6
}
7202
7203
0
void EncryptionInfoPB::SetCachedSize(int size) const {
7204
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7205
0
  _cached_size_ = size;
7206
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7207
0
}
7208
0
const ::google::protobuf::Descriptor* EncryptionInfoPB::descriptor() {
7209
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
7210
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7211
0
}
7212
7213
0
const EncryptionInfoPB& EncryptionInfoPB::default_instance() {
7214
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsEncryptionInfoPB();
7215
0
  return *internal_default_instance();
7216
0
}
7217
7218
0
EncryptionInfoPB* EncryptionInfoPB::New(::google::protobuf::Arena* arena) const {
7219
0
  EncryptionInfoPB* n = new EncryptionInfoPB;
7220
0
  if (arena != NULL) {
7221
0
    arena->Own(n);
7222
0
  }
7223
0
  return n;
7224
0
}
7225
7226
0
void EncryptionInfoPB::Clear() {
7227
// @@protoc_insertion_point(message_clear_start:yb.master.EncryptionInfoPB)
7228
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7229
  // Prevent compiler warnings about cached_has_bits being unused
7230
0
  (void) cached_has_bits;
7231
7232
0
  cached_has_bits = _has_bits_[0];
7233
0
  if (cached_has_bits & 7u) {
7234
0
    if (cached_has_bits & 0x00000001u) {
7235
0
      GOOGLE_DCHECK(!universe_key_registry_encoded_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7236
0
      (*universe_key_registry_encoded_.UnsafeRawStringPointer())->clear();
7237
0
    }
7238
0
    if (cached_has_bits & 0x00000002u) {
7239
0
      GOOGLE_DCHECK(!key_path_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7240
0
      (*key_path_.UnsafeRawStringPointer())->clear();
7241
0
    }
7242
0
    if (cached_has_bits & 0x00000004u) {
7243
0
      GOOGLE_DCHECK(!latest_version_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7244
0
      (*latest_version_id_.UnsafeRawStringPointer())->clear();
7245
0
    }
7246
0
  }
7247
0
  ::memset(&encryption_enabled_, 0, static_cast<size_t>(
7248
0
      reinterpret_cast<char*>(&key_in_memory_) -
7249
0
      reinterpret_cast<char*>(&encryption_enabled_)) + sizeof(key_in_memory_));
7250
0
  _has_bits_.Clear();
7251
0
  _internal_metadata_.Clear();
7252
0
}
7253
7254
bool EncryptionInfoPB::MergePartialFromCodedStream(
7255
0
    ::google::protobuf::io::CodedInputStream* input) {
7256
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7257
0
  ::google::protobuf::uint32 tag;
7258
  // @@protoc_insertion_point(parse_start:yb.master.EncryptionInfoPB)
7259
0
  for (;;) {
7260
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7261
0
    tag = p.first;
7262
0
    if (!p.second) goto handle_unusual;
7263
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7264
      // optional bool encryption_enabled = 1;
7265
0
      case 1: {
7266
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7267
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7268
0
          set_has_encryption_enabled();
7269
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7270
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7271
0
                 input, &encryption_enabled_)));
7272
0
        } else {
7273
0
          goto handle_unusual;
7274
0
        }
7275
0
        break;
7276
0
      }
7277
7278
      // optional bytes universe_key_registry_encoded = 2;
7279
0
      case 2: {
7280
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7281
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7282
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7283
0
                input, this->mutable_universe_key_registry_encoded()));
7284
0
        } else {
7285
0
          goto handle_unusual;
7286
0
        }
7287
0
        break;
7288
0
      }
7289
7290
      // optional string key_path = 3;
7291
0
      case 3: {
7292
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7293
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7294
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7295
0
                input, this->mutable_key_path()));
7296
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7297
0
            this->key_path().data(), static_cast<int>(this->key_path().length()),
7298
0
            ::google::protobuf::internal::WireFormat::PARSE,
7299
0
            "yb.master.EncryptionInfoPB.key_path");
7300
0
        } else {
7301
0
          goto handle_unusual;
7302
0
        }
7303
0
        break;
7304
0
      }
7305
7306
      // optional string latest_version_id = 4;
7307
0
      case 4: {
7308
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7309
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
7310
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7311
0
                input, this->mutable_latest_version_id()));
7312
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7313
0
            this->latest_version_id().data(), static_cast<int>(this->latest_version_id().length()),
7314
0
            ::google::protobuf::internal::WireFormat::PARSE,
7315
0
            "yb.master.EncryptionInfoPB.latest_version_id");
7316
0
        } else {
7317
0
          goto handle_unusual;
7318
0
        }
7319
0
        break;
7320
0
      }
7321
7322
      // optional bool key_in_memory = 5;
7323
0
      case 5: {
7324
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7325
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
7326
0
          set_has_key_in_memory();
7327
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7328
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7329
0
                 input, &key_in_memory_)));
7330
0
        } else {
7331
0
          goto handle_unusual;
7332
0
        }
7333
0
        break;
7334
0
      }
7335
7336
0
      default: {
7337
0
      handle_unusual:
7338
0
        if (tag == 0) {
7339
0
          goto success;
7340
0
        }
7341
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7342
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7343
0
        break;
7344
0
      }
7345
0
    }
7346
0
  }
7347
0
success:
7348
  // @@protoc_insertion_point(parse_success:yb.master.EncryptionInfoPB)
7349
0
  return true;
7350
0
failure:
7351
  // @@protoc_insertion_point(parse_failure:yb.master.EncryptionInfoPB)
7352
0
  return false;
7353
0
#undef DO_
7354
0
}
7355
7356
void EncryptionInfoPB::SerializeWithCachedSizes(
7357
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7358
  // @@protoc_insertion_point(serialize_start:yb.master.EncryptionInfoPB)
7359
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7360
0
  (void) cached_has_bits;
7361
7362
0
  cached_has_bits = _has_bits_[0];
7363
  // optional bool encryption_enabled = 1;
7364
0
  if (cached_has_bits & 0x00000008u) {
7365
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->encryption_enabled(), output);
7366
0
  }
7367
7368
  // optional bytes universe_key_registry_encoded = 2;
7369
0
  if (cached_has_bits & 0x00000001u) {
7370
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7371
0
      2, this->universe_key_registry_encoded(), output);
7372
0
  }
7373
7374
  // optional string key_path = 3;
7375
0
  if (cached_has_bits & 0x00000002u) {
7376
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7377
0
      this->key_path().data(), static_cast<int>(this->key_path().length()),
7378
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7379
0
      "yb.master.EncryptionInfoPB.key_path");
7380
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7381
0
      3, this->key_path(), output);
7382
0
  }
7383
7384
  // optional string latest_version_id = 4;
7385
0
  if (cached_has_bits & 0x00000004u) {
7386
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7387
0
      this->latest_version_id().data(), static_cast<int>(this->latest_version_id().length()),
7388
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7389
0
      "yb.master.EncryptionInfoPB.latest_version_id");
7390
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7391
0
      4, this->latest_version_id(), output);
7392
0
  }
7393
7394
  // optional bool key_in_memory = 5;
7395
0
  if (cached_has_bits & 0x00000010u) {
7396
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->key_in_memory(), output);
7397
0
  }
7398
7399
0
  if (_internal_metadata_.have_unknown_fields()) {
7400
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7401
0
        _internal_metadata_.unknown_fields(), output);
7402
0
  }
7403
  // @@protoc_insertion_point(serialize_end:yb.master.EncryptionInfoPB)
7404
0
}
7405
7406
::google::protobuf::uint8* EncryptionInfoPB::InternalSerializeWithCachedSizesToArray(
7407
6
    bool deterministic, ::google::protobuf::uint8* target) const {
7408
6
  (void)deterministic; // Unused
7409
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.EncryptionInfoPB)
7410
6
  ::google::protobuf::uint32 cached_has_bits = 0;
7411
6
  (void) cached_has_bits;
7412
7413
6
  cached_has_bits = _has_bits_[0];
7414
  // optional bool encryption_enabled = 1;
7415
6
  if (cached_has_bits & 0x00000008u) {
7416
6
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->encryption_enabled(), target);
7417
6
  }
7418
7419
  // optional bytes universe_key_registry_encoded = 2;
7420
6
  if (cached_has_bits & 0x00000001u) {
7421
6
    target =
7422
6
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7423
6
        2, this->universe_key_registry_encoded(), target);
7424
6
  }
7425
7426
  // optional string key_path = 3;
7427
6
  if (cached_has_bits & 0x00000002u) {
7428
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7429
0
      this->key_path().data(), static_cast<int>(this->key_path().length()),
7430
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7431
0
      "yb.master.EncryptionInfoPB.key_path");
7432
0
    target =
7433
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7434
0
        3, this->key_path(), target);
7435
0
  }
7436
7437
  // optional string latest_version_id = 4;
7438
6
  if (cached_has_bits & 0x00000004u) {
7439
6
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7440
6
      this->latest_version_id().data(), static_cast<int>(this->latest_version_id().length()),
7441
6
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7442
6
      "yb.master.EncryptionInfoPB.latest_version_id");
7443
6
    target =
7444
6
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7445
6
        4, this->latest_version_id(), target);
7446
6
  }
7447
7448
  // optional bool key_in_memory = 5;
7449
6
  if (cached_has_bits & 0x00000010u) {
7450
6
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->key_in_memory(), target);
7451
6
  }
7452
7453
6
  if (_internal_metadata_.have_unknown_fields()) {
7454
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7455
0
        _internal_metadata_.unknown_fields(), target);
7456
0
  }
7457
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.EncryptionInfoPB)
7458
6
  return target;
7459
6
}
7460
7461
6
size_t EncryptionInfoPB::ByteSizeLong() const {
7462
// @@protoc_insertion_point(message_byte_size_start:yb.master.EncryptionInfoPB)
7463
6
  size_t total_size = 0;
7464
7465
6
  if (_internal_metadata_.have_unknown_fields()) {
7466
0
    total_size +=
7467
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7468
0
        _internal_metadata_.unknown_fields());
7469
0
  }
7470
6
  if (_has_bits_[0 / 32] & 31u) {
7471
    // optional bytes universe_key_registry_encoded = 2;
7472
6
    if (has_universe_key_registry_encoded()) {
7473
6
      total_size += 1 +
7474
6
        ::google::protobuf::internal::WireFormatLite::BytesSize(
7475
6
          this->universe_key_registry_encoded());
7476
6
    }
7477
7478
    // optional string key_path = 3;
7479
6
    if (has_key_path()) {
7480
0
      total_size += 1 +
7481
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
7482
0
          this->key_path());
7483
0
    }
7484
7485
    // optional string latest_version_id = 4;
7486
6
    if (has_latest_version_id()) {
7487
6
      total_size += 1 +
7488
6
        ::google::protobuf::internal::WireFormatLite::StringSize(
7489
6
          this->latest_version_id());
7490
6
    }
7491
7492
    // optional bool encryption_enabled = 1;
7493
6
    if (has_encryption_enabled()) {
7494
6
      total_size += 1 + 1;
7495
6
    }
7496
7497
    // optional bool key_in_memory = 5;
7498
6
    if (has_key_in_memory()) {
7499
6
      total_size += 1 + 1;
7500
6
    }
7501
7502
6
  }
7503
6
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7504
6
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7505
6
  _cached_size_ = cached_size;
7506
6
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7507
6
  return total_size;
7508
6
}
7509
7510
0
void EncryptionInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
7511
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.EncryptionInfoPB)
7512
0
  GOOGLE_DCHECK_NE(&from, this);
7513
0
  const EncryptionInfoPB* source =
7514
0
      ::google::protobuf::internal::DynamicCastToGenerated<const EncryptionInfoPB>(
7515
0
          &from);
7516
0
  if (source == NULL) {
7517
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.EncryptionInfoPB)
7518
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7519
0
  } else {
7520
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.EncryptionInfoPB)
7521
0
    MergeFrom(*source);
7522
0
  }
7523
0
}
7524
7525
3
void EncryptionInfoPB::MergeFrom(const EncryptionInfoPB& from) {
7526
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.EncryptionInfoPB)
7527
3
  GOOGLE_DCHECK_NE(&from, this);
7528
3
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7529
3
  ::google::protobuf::uint32 cached_has_bits = 0;
7530
3
  (void) cached_has_bits;
7531
7532
3
  cached_has_bits = from._has_bits_[0];
7533
3
  if (cached_has_bits & 31u) {
7534
3
    if (cached_has_bits & 0x00000001u) {
7535
3
      set_has_universe_key_registry_encoded();
7536
3
      universe_key_registry_encoded_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.universe_key_registry_encoded_);
7537
3
    }
7538
3
    if (cached_has_bits & 0x00000002u) {
7539
0
      set_has_key_path();
7540
0
      key_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_path_);
7541
0
    }
7542
3
    if (cached_has_bits & 0x00000004u) {
7543
3
      set_has_latest_version_id();
7544
3
      latest_version_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.latest_version_id_);
7545
3
    }
7546
3
    if (cached_has_bits & 0x00000008u) {
7547
3
      encryption_enabled_ = from.encryption_enabled_;
7548
3
    }
7549
3
    if (cached_has_bits & 0x00000010u) {
7550
3
      key_in_memory_ = from.key_in_memory_;
7551
3
    }
7552
3
    _has_bits_[0] |= cached_has_bits;
7553
3
  }
7554
3
}
7555
7556
0
void EncryptionInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
7557
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.EncryptionInfoPB)
7558
0
  if (&from == this) return;
7559
0
  Clear();
7560
0
  MergeFrom(from);
7561
0
}
7562
7563
0
void EncryptionInfoPB::CopyFrom(const EncryptionInfoPB& from) {
7564
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.EncryptionInfoPB)
7565
0
  if (&from == this) return;
7566
0
  Clear();
7567
0
  MergeFrom(from);
7568
0
}
7569
7570
0
bool EncryptionInfoPB::IsInitialized() const {
7571
0
  return true;
7572
0
}
7573
7574
0
void EncryptionInfoPB::Swap(EncryptionInfoPB* other) {
7575
0
  if (other == this) return;
7576
0
  InternalSwap(other);
7577
0
}
7578
0
void EncryptionInfoPB::InternalSwap(EncryptionInfoPB* other) {
7579
0
  using std::swap;
7580
0
  universe_key_registry_encoded_.Swap(&other->universe_key_registry_encoded_);
7581
0
  key_path_.Swap(&other->key_path_);
7582
0
  latest_version_id_.Swap(&other->latest_version_id_);
7583
0
  swap(encryption_enabled_, other->encryption_enabled_);
7584
0
  swap(key_in_memory_, other->key_in_memory_);
7585
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7586
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7587
0
  swap(_cached_size_, other->_cached_size_);
7588
0
}
7589
7590
0
::google::protobuf::Metadata EncryptionInfoPB::GetMetadata() const {
7591
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
7592
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
7593
0
}
7594
7595
7596
// ===================================================================
7597
7598
15.8k
void SysClusterConfigEntryPB::InitAsDefaultInstance() {
7599
15.8k
  ::yb::master::_SysClusterConfigEntryPB_default_instance_._instance.get_mutable()->replication_info_ = const_cast< ::yb::master::ReplicationInfoPB*>(
7600
15.8k
      ::yb::master::ReplicationInfoPB::internal_default_instance());
7601
15.8k
  ::yb::master::_SysClusterConfigEntryPB_default_instance_._instance.get_mutable()->server_blacklist_ = const_cast< ::yb::master::BlacklistPB*>(
7602
15.8k
      ::yb::master::BlacklistPB::internal_default_instance());
7603
15.8k
  ::yb::master::_SysClusterConfigEntryPB_default_instance_._instance.get_mutable()->leader_blacklist_ = const_cast< ::yb::master::BlacklistPB*>(
7604
15.8k
      ::yb::master::BlacklistPB::internal_default_instance());
7605
15.8k
  ::yb::master::_SysClusterConfigEntryPB_default_instance_._instance.get_mutable()->encryption_info_ = const_cast< ::yb::master::EncryptionInfoPB*>(
7606
15.8k
      ::yb::master::EncryptionInfoPB::internal_default_instance());
7607
15.8k
  ::yb::master::_SysClusterConfigEntryPB_default_instance_._instance.get_mutable()->consumer_registry_ = const_cast< ::yb::cdc::ConsumerRegistryPB*>(
7608
15.8k
      ::yb::cdc::ConsumerRegistryPB::internal_default_instance());
7609
15.8k
}
7610
0
void SysClusterConfigEntryPB::clear_consumer_registry() {
7611
0
  if (consumer_registry_ != NULL) consumer_registry_->Clear();
7612
0
  clear_has_consumer_registry();
7613
0
}
7614
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7615
const int SysClusterConfigEntryPB::kVersionFieldNumber;
7616
const int SysClusterConfigEntryPB::kClusterUuidFieldNumber;
7617
const int SysClusterConfigEntryPB::kReplicationInfoFieldNumber;
7618
const int SysClusterConfigEntryPB::kServerBlacklistFieldNumber;
7619
const int SysClusterConfigEntryPB::kLeaderBlacklistFieldNumber;
7620
const int SysClusterConfigEntryPB::kEncryptionInfoFieldNumber;
7621
const int SysClusterConfigEntryPB::kConsumerRegistryFieldNumber;
7622
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7623
7624
SysClusterConfigEntryPB::SysClusterConfigEntryPB()
7625
590k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7626
573k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7627
573k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysClusterConfigEntryPB();
7628
573k
  }
7629
590k
  SharedCtor();
7630
  // @@protoc_insertion_point(constructor:yb.master.SysClusterConfigEntryPB)
7631
590k
}
7632
SysClusterConfigEntryPB::SysClusterConfigEntryPB(const SysClusterConfigEntryPB& from)
7633
  : ::google::protobuf::Message(),
7634
      _internal_metadata_(NULL),
7635
      _has_bits_(from._has_bits_),
7636
2.61k
      _cached_size_(0) {
7637
2.61k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7638
2.61k
  cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7639
2.61k
  if (from.has_cluster_uuid()) {
7640
243
    cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_);
7641
243
  }
7642
2.61k
  if (from.has_replication_info()) {
7643
148
    replication_info_ = new ::yb::master::ReplicationInfoPB(*from.replication_info_);
7644
2.47k
  } else {
7645
2.47k
    replication_info_ = NULL;
7646
2.47k
  }
7647
2.61k
  if (from.has_server_blacklist()) {
7648
29
    server_blacklist_ = new ::yb::master::BlacklistPB(*from.server_blacklist_);
7649
2.58k
  } else {
7650
2.58k
    server_blacklist_ = NULL;
7651
2.58k
  }
7652
2.61k
  if (from.has_encryption_info()) {
7653
3
    encryption_info_ = new ::yb::master::EncryptionInfoPB(*from.encryption_info_);
7654
2.61k
  } else {
7655
2.61k
    encryption_info_ = NULL;
7656
2.61k
  }
7657
2.61k
  if (from.has_consumer_registry()) {
7658
0
    consumer_registry_ = new ::yb::cdc::ConsumerRegistryPB(*from.consumer_registry_);
7659
2.61k
  } else {
7660
2.61k
    consumer_registry_ = NULL;
7661
2.61k
  }
7662
2.61k
  if (from.has_leader_blacklist()) {
7663
29
    leader_blacklist_ = new ::yb::master::BlacklistPB(*from.leader_blacklist_);
7664
2.58k
  } else {
7665
2.58k
    leader_blacklist_ = NULL;
7666
2.58k
  }
7667
2.61k
  version_ = from.version_;
7668
  // @@protoc_insertion_point(copy_constructor:yb.master.SysClusterConfigEntryPB)
7669
2.61k
}
7670
7671
589k
void SysClusterConfigEntryPB::SharedCtor() {
7672
589k
  _cached_size_ = 0;
7673
589k
  cluster_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7674
589k
  ::memset(&replication_info_, 0, static_cast<size_t>(
7675
589k
      reinterpret_cast<char*>(&version_) -
7676
589k
      reinterpret_cast<char*>(&replication_info_)) + sizeof(version_));
7677
589k
}
7678
7679
575k
SysClusterConfigEntryPB::~SysClusterConfigEntryPB() {
7680
  // @@protoc_insertion_point(destructor:yb.master.SysClusterConfigEntryPB)
7681
575k
  SharedDtor();
7682
575k
}
7683
7684
575k
void SysClusterConfigEntryPB::SharedDtor() {
7685
575k
  cluster_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7686
575k
  if (this != internal_default_instance()) delete replication_info_;
7687
575k
  if (this != internal_default_instance()) delete server_blacklist_;
7688
575k
  if (this != internal_default_instance()) delete encryption_info_;
7689
575k
  if (this != internal_default_instance()) delete consumer_registry_;
7690
575k
  if (this != internal_default_instance()) delete leader_blacklist_;
7691
575k
}
7692
7693
0
void SysClusterConfigEntryPB::SetCachedSize(int size) const {
7694
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7695
0
  _cached_size_ = size;
7696
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7697
0
}
7698
0
const ::google::protobuf::Descriptor* SysClusterConfigEntryPB::descriptor() {
7699
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
7700
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7701
0
}
7702
7703
0
const SysClusterConfigEntryPB& SysClusterConfigEntryPB::default_instance() {
7704
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysClusterConfigEntryPB();
7705
0
  return *internal_default_instance();
7706
0
}
7707
7708
0
SysClusterConfigEntryPB* SysClusterConfigEntryPB::New(::google::protobuf::Arena* arena) const {
7709
0
  SysClusterConfigEntryPB* n = new SysClusterConfigEntryPB;
7710
0
  if (arena != NULL) {
7711
0
    arena->Own(n);
7712
0
  }
7713
0
  return n;
7714
0
}
7715
7716
567k
void SysClusterConfigEntryPB::Clear() {
7717
// @@protoc_insertion_point(message_clear_start:yb.master.SysClusterConfigEntryPB)
7718
567k
  ::google::protobuf::uint32 cached_has_bits = 0;
7719
  // Prevent compiler warnings about cached_has_bits being unused
7720
567k
  (void) cached_has_bits;
7721
7722
567k
  cached_has_bits = _has_bits_[0];
7723
567k
  if (cached_has_bits & 63u) {
7724
111
    if (cached_has_bits & 0x00000001u) {
7725
111
      GOOGLE_DCHECK(!cluster_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7726
111
      (*cluster_uuid_.UnsafeRawStringPointer())->clear();
7727
111
    }
7728
111
    if (cached_has_bits & 0x00000002u) {
7729
47
      GOOGLE_DCHECK(replication_info_ != NULL);
7730
47
      replication_info_->Clear();
7731
47
    }
7732
111
    if (cached_has_bits & 0x00000004u) {
7733
6
      GOOGLE_DCHECK(server_blacklist_ != NULL);
7734
6
      server_blacklist_->Clear();
7735
6
    }
7736
111
    if (cached_has_bits & 0x00000008u) {
7737
0
      GOOGLE_DCHECK(encryption_info_ != NULL);
7738
0
      encryption_info_->Clear();
7739
0
    }
7740
111
    if (cached_has_bits & 0x00000010u) {
7741
0
      GOOGLE_DCHECK(consumer_registry_ != NULL);
7742
0
      consumer_registry_->Clear();
7743
0
    }
7744
111
    if (cached_has_bits & 0x00000020u) {
7745
11
      GOOGLE_DCHECK(leader_blacklist_ != NULL);
7746
11
      leader_blacklist_->Clear();
7747
11
    }
7748
111
  }
7749
567k
  version_ = 0;
7750
567k
  _has_bits_.Clear();
7751
567k
  _internal_metadata_.Clear();
7752
567k
}
7753
7754
bool SysClusterConfigEntryPB::MergePartialFromCodedStream(
7755
569
    ::google::protobuf::io::CodedInputStream* input) {
7756
1.29k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7757
569
  ::google::protobuf::uint32 tag;
7758
  // @@protoc_insertion_point(parse_start:yb.master.SysClusterConfigEntryPB)
7759
1.85k
  for (;;) {
7760
1.85k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7761
1.85k
    tag = p.first;
7762
1.85k
    if (!p.second) goto handle_unusual;
7763
1.29k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7764
      // optional int32 version = 1;
7765
567
      case 1: {
7766
567
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7767
567
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7768
567
          set_has_version();
7769
567
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7770
567
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7771
567
                 input, &version_)));
7772
0
        } else {
7773
0
          goto handle_unusual;
7774
0
        }
7775
567
        break;
7776
567
      }
7777
7778
      // optional .yb.master.ReplicationInfoPB replication_info = 2;
7779
111
      case 2: {
7780
111
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7781
111
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7782
111
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7783
111
               input, mutable_replication_info()));
7784
0
        } else {
7785
0
          goto handle_unusual;
7786
0
        }
7787
111
        break;
7788
111
      }
7789
7790
      // optional .yb.master.BlacklistPB server_blacklist = 3;
7791
27
      case 3: {
7792
27
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7793
27
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7794
27
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7795
27
               input, mutable_server_blacklist()));
7796
0
        } else {
7797
0
          goto handle_unusual;
7798
0
        }
7799
27
        break;
7800
27
      }
7801
7802
      // optional string cluster_uuid = 4;
7803
567
      case 4: {
7804
567
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7805
567
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
7806
567
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7807
567
                input, this->mutable_cluster_uuid()));
7808
567
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7809
567
            this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
7810
567
            ::google::protobuf::internal::WireFormat::PARSE,
7811
567
            "yb.master.SysClusterConfigEntryPB.cluster_uuid");
7812
0
        } else {
7813
0
          goto handle_unusual;
7814
0
        }
7815
567
        break;
7816
567
      }
7817
7818
      // optional .yb.master.EncryptionInfoPB encryption_info = 5;
7819
0
      case 5: {
7820
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7821
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
7822
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7823
0
               input, mutable_encryption_info()));
7824
0
        } else {
7825
0
          goto handle_unusual;
7826
0
        }
7827
0
        break;
7828
0
      }
7829
7830
      // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 6;
7831
0
      case 6: {
7832
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7833
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
7834
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7835
0
               input, mutable_consumer_registry()));
7836
0
        } else {
7837
0
          goto handle_unusual;
7838
0
        }
7839
0
        break;
7840
0
      }
7841
7842
      // optional .yb.master.BlacklistPB leader_blacklist = 7;
7843
18
      case 7: {
7844
18
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7845
18
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
7846
18
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7847
18
               input, mutable_leader_blacklist()));
7848
0
        } else {
7849
0
          goto handle_unusual;
7850
0
        }
7851
18
        break;
7852
569
      }
7853
7854
0
      default: {
7855
569
      handle_unusual:
7856
569
        if (tag == 0) {
7857
569
          goto success;
7858
569
        }
7859
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7860
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7861
0
        break;
7862
0
      }
7863
1.29k
    }
7864
1.29k
  }
7865
569
success:
7866
  // @@protoc_insertion_point(parse_success:yb.master.SysClusterConfigEntryPB)
7867
569
  return true;
7868
0
failure:
7869
  // @@protoc_insertion_point(parse_failure:yb.master.SysClusterConfigEntryPB)
7870
0
  return false;
7871
569
#undef DO_
7872
569
}
7873
7874
void SysClusterConfigEntryPB::SerializeWithCachedSizes(
7875
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7876
  // @@protoc_insertion_point(serialize_start:yb.master.SysClusterConfigEntryPB)
7877
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7878
0
  (void) cached_has_bits;
7879
7880
0
  cached_has_bits = _has_bits_[0];
7881
  // optional int32 version = 1;
7882
0
  if (cached_has_bits & 0x00000040u) {
7883
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output);
7884
0
  }
7885
7886
  // optional .yb.master.ReplicationInfoPB replication_info = 2;
7887
0
  if (cached_has_bits & 0x00000002u) {
7888
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7889
0
      2, *this->replication_info_, output);
7890
0
  }
7891
7892
  // optional .yb.master.BlacklistPB server_blacklist = 3;
7893
0
  if (cached_has_bits & 0x00000004u) {
7894
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7895
0
      3, *this->server_blacklist_, output);
7896
0
  }
7897
7898
  // optional string cluster_uuid = 4;
7899
0
  if (cached_has_bits & 0x00000001u) {
7900
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7901
0
      this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
7902
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7903
0
      "yb.master.SysClusterConfigEntryPB.cluster_uuid");
7904
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7905
0
      4, this->cluster_uuid(), output);
7906
0
  }
7907
7908
  // optional .yb.master.EncryptionInfoPB encryption_info = 5;
7909
0
  if (cached_has_bits & 0x00000008u) {
7910
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7911
0
      5, *this->encryption_info_, output);
7912
0
  }
7913
7914
  // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 6;
7915
0
  if (cached_has_bits & 0x00000010u) {
7916
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7917
0
      6, *this->consumer_registry_, output);
7918
0
  }
7919
7920
  // optional .yb.master.BlacklistPB leader_blacklist = 7;
7921
0
  if (cached_has_bits & 0x00000020u) {
7922
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7923
0
      7, *this->leader_blacklist_, output);
7924
0
  }
7925
7926
0
  if (_internal_metadata_.have_unknown_fields()) {
7927
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7928
0
        _internal_metadata_.unknown_fields(), output);
7929
0
  }
7930
  // @@protoc_insertion_point(serialize_end:yb.master.SysClusterConfigEntryPB)
7931
0
}
7932
7933
::google::protobuf::uint8* SysClusterConfigEntryPB::InternalSerializeWithCachedSizesToArray(
7934
2.30k
    bool deterministic, ::google::protobuf::uint8* target) const {
7935
2.30k
  (void)deterministic; // Unused
7936
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysClusterConfigEntryPB)
7937
2.30k
  ::google::protobuf::uint32 cached_has_bits = 0;
7938
2.30k
  (void) cached_has_bits;
7939
7940
2.30k
  cached_has_bits = _has_bits_[0];
7941
  // optional int32 version = 1;
7942
2.30k
  if (cached_has_bits & 0x00000040u) {
7943
2.30k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target);
7944
2.30k
  }
7945
7946
  // optional .yb.master.ReplicationInfoPB replication_info = 2;
7947
2.30k
  if (cached_has_bits & 0x00000002u) {
7948
249
    target = ::google::protobuf::internal::WireFormatLite::
7949
249
      InternalWriteMessageToArray(
7950
249
        2, *this->replication_info_, deterministic, target);
7951
249
  }
7952
7953
  // optional .yb.master.BlacklistPB server_blacklist = 3;
7954
2.30k
  if (cached_has_bits & 0x00000004u) {
7955
52
    target = ::google::protobuf::internal::WireFormatLite::
7956
52
      InternalWriteMessageToArray(
7957
52
        3, *this->server_blacklist_, deterministic, target);
7958
52
  }
7959
7960
  // optional string cluster_uuid = 4;
7961
2.30k
  if (cached_has_bits & 0x00000001u) {
7962
2.30k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7963
2.30k
      this->cluster_uuid().data(), static_cast<int>(this->cluster_uuid().length()),
7964
2.30k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7965
2.30k
      "yb.master.SysClusterConfigEntryPB.cluster_uuid");
7966
2.30k
    target =
7967
2.30k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7968
2.30k
        4, this->cluster_uuid(), target);
7969
2.30k
  }
7970
7971
  // optional .yb.master.EncryptionInfoPB encryption_info = 5;
7972
2.30k
  if (cached_has_bits & 0x00000008u) {
7973
6
    target = ::google::protobuf::internal::WireFormatLite::
7974
6
      InternalWriteMessageToArray(
7975
6
        5, *this->encryption_info_, deterministic, target);
7976
6
  }
7977
7978
  // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 6;
7979
2.30k
  if (cached_has_bits & 0x00000010u) {
7980
0
    target = ::google::protobuf::internal::WireFormatLite::
7981
0
      InternalWriteMessageToArray(
7982
0
        6, *this->consumer_registry_, deterministic, target);
7983
0
  }
7984
7985
  // optional .yb.master.BlacklistPB leader_blacklist = 7;
7986
2.30k
  if (cached_has_bits & 0x00000020u) {
7987
39
    target = ::google::protobuf::internal::WireFormatLite::
7988
39
      InternalWriteMessageToArray(
7989
39
        7, *this->leader_blacklist_, deterministic, target);
7990
39
  }
7991
7992
2.30k
  if (_internal_metadata_.have_unknown_fields()) {
7993
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7994
0
        _internal_metadata_.unknown_fields(), target);
7995
0
  }
7996
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysClusterConfigEntryPB)
7997
2.30k
  return target;
7998
2.30k
}
7999
8000
2.54k
size_t SysClusterConfigEntryPB::ByteSizeLong() const {
8001
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysClusterConfigEntryPB)
8002
2.54k
  size_t total_size = 0;
8003
8004
2.54k
  if (_internal_metadata_.have_unknown_fields()) {
8005
0
    total_size +=
8006
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8007
0
        _internal_metadata_.unknown_fields());
8008
0
  }
8009
2.54k
  if (_has_bits_[0 / 32] & 127u) {
8010
    // optional string cluster_uuid = 4;
8011
2.54k
    if (has_cluster_uuid()) {
8012
2.54k
      total_size += 1 +
8013
2.54k
        ::google::protobuf::internal::WireFormatLite::StringSize(
8014
2.54k
          this->cluster_uuid());
8015
2.54k
    }
8016
8017
    // optional .yb.master.ReplicationInfoPB replication_info = 2;
8018
2.54k
    if (has_replication_info()) {
8019
399
      total_size += 1 +
8020
399
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8021
399
          *this->replication_info_);
8022
399
    }
8023
8024
    // optional .yb.master.BlacklistPB server_blacklist = 3;
8025
2.54k
    if (has_server_blacklist()) {
8026
84
      total_size += 1 +
8027
84
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8028
84
          *this->server_blacklist_);
8029
84
    }
8030
8031
    // optional .yb.master.EncryptionInfoPB encryption_info = 5;
8032
2.54k
    if (has_encryption_info()) {
8033
6
      total_size += 1 +
8034
6
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8035
6
          *this->encryption_info_);
8036
6
    }
8037
8038
    // optional .yb.cdc.ConsumerRegistryPB consumer_registry = 6;
8039
2.54k
    if (has_consumer_registry()) {
8040
0
      total_size += 1 +
8041
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8042
0
          *this->consumer_registry_);
8043
0
    }
8044
8045
    // optional .yb.master.BlacklistPB leader_blacklist = 7;
8046
2.54k
    if (has_leader_blacklist()) {
8047
64
      total_size += 1 +
8048
64
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8049
64
          *this->leader_blacklist_);
8050
64
    }
8051
8052
    // optional int32 version = 1;
8053
2.54k
    if (has_version()) {
8054
2.54k
      total_size += 1 +
8055
2.54k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
8056
2.54k
          this->version());
8057
2.54k
    }
8058
8059
2.54k
  }
8060
2.54k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8061
2.54k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8062
2.54k
  _cached_size_ = cached_size;
8063
2.54k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8064
2.54k
  return total_size;
8065
2.54k
}
8066
8067
0
void SysClusterConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
8068
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysClusterConfigEntryPB)
8069
0
  GOOGLE_DCHECK_NE(&from, this);
8070
0
  const SysClusterConfigEntryPB* source =
8071
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysClusterConfigEntryPB>(
8072
0
          &from);
8073
0
  if (source == NULL) {
8074
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysClusterConfigEntryPB)
8075
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8076
0
  } else {
8077
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysClusterConfigEntryPB)
8078
0
    MergeFrom(*source);
8079
0
  }
8080
0
}
8081
8082
567k
void SysClusterConfigEntryPB::MergeFrom(const SysClusterConfigEntryPB& from) {
8083
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysClusterConfigEntryPB)
8084
567k
  GOOGLE_DCHECK_NE(&from, this);
8085
567k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8086
567k
  ::google::protobuf::uint32 cached_has_bits = 0;
8087
567k
  (void) cached_has_bits;
8088
8089
567k
  cached_has_bits = from._has_bits_[0];
8090
567k
  if (cached_has_bits & 127u) {
8091
567k
    if (cached_has_bits & 0x00000001u) {
8092
567k
      set_has_cluster_uuid();
8093
567k
      cluster_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_uuid_);
8094
567k
    }
8095
567k
    if (cached_has_bits & 0x00000002u) {
8096
54.2k
      mutable_replication_info()->::yb::master::ReplicationInfoPB::MergeFrom(from.replication_info());
8097
54.2k
    }
8098
567k
    if (cached_has_bits & 0x00000004u) {
8099
16.4k
      mutable_server_blacklist()->::yb::master::BlacklistPB::MergeFrom(from.server_blacklist());
8100
16.4k
    }
8101
567k
    if (cached_has_bits & 0x00000008u) {
8102
3
      mutable_encryption_info()->::yb::master::EncryptionInfoPB::MergeFrom(from.encryption_info());
8103
3
    }
8104
567k
    if (cached_has_bits & 0x00000010u) {
8105
0
      mutable_consumer_registry()->::yb::cdc::ConsumerRegistryPB::MergeFrom(from.consumer_registry());
8106
0
    }
8107
567k
    if (cached_has_bits & 0x00000020u) {
8108
3.14k
      mutable_leader_blacklist()->::yb::master::BlacklistPB::MergeFrom(from.leader_blacklist());
8109
3.14k
    }
8110
567k
    if (cached_has_bits & 0x00000040u) {
8111
567k
      version_ = from.version_;
8112
567k
    }
8113
567k
    _has_bits_[0] |= cached_has_bits;
8114
567k
  }
8115
567k
}
8116
8117
0
void SysClusterConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
8118
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysClusterConfigEntryPB)
8119
0
  if (&from == this) return;
8120
0
  Clear();
8121
0
  MergeFrom(from);
8122
0
}
8123
8124
567k
void SysClusterConfigEntryPB::CopyFrom(const SysClusterConfigEntryPB& from) {
8125
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysClusterConfigEntryPB)
8126
567k
  if (&from == this) return;
8127
567k
  Clear();
8128
567k
  MergeFrom(from);
8129
567k
}
8130
8131
2.87k
bool SysClusterConfigEntryPB::IsInitialized() const {
8132
2.87k
  if (has_server_blacklist()) {
8133
79
    if (!this->server_blacklist_->IsInitialized()) return false;
8134
2.87k
  }
8135
2.87k
  if (has_consumer_registry()) {
8136
0
    if (!this->consumer_registry_->IsInitialized()) return false;
8137
2.87k
  }
8138
2.87k
  if (has_leader_blacklist()) {
8139
57
    if (!this->leader_blacklist_->IsInitialized()) return false;
8140
2.87k
  }
8141
2.87k
  return true;
8142
2.87k
}
8143
8144
0
void SysClusterConfigEntryPB::Swap(SysClusterConfigEntryPB* other) {
8145
0
  if (other == this) return;
8146
0
  InternalSwap(other);
8147
0
}
8148
9.42k
void SysClusterConfigEntryPB::InternalSwap(SysClusterConfigEntryPB* other) {
8149
9.42k
  using std::swap;
8150
9.42k
  cluster_uuid_.Swap(&other->cluster_uuid_);
8151
9.42k
  swap(replication_info_, other->replication_info_);
8152
9.42k
  swap(server_blacklist_, other->server_blacklist_);
8153
9.42k
  swap(encryption_info_, other->encryption_info_);
8154
9.42k
  swap(consumer_registry_, other->consumer_registry_);
8155
9.42k
  swap(leader_blacklist_, other->leader_blacklist_);
8156
9.42k
  swap(version_, other->version_);
8157
9.42k
  swap(_has_bits_[0], other->_has_bits_[0]);
8158
9.42k
  _internal_metadata_.Swap(&other->_internal_metadata_);
8159
9.42k
  swap(_cached_size_, other->_cached_size_);
8160
9.42k
}
8161
8162
16.9k
::google::protobuf::Metadata SysClusterConfigEntryPB::GetMetadata() const {
8163
16.9k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
8164
16.9k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
8165
16.9k
}
8166
8167
8168
// ===================================================================
8169
8170
15.8k
void SysRedisConfigEntryPB::InitAsDefaultInstance() {
8171
15.8k
}
8172
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8173
const int SysRedisConfigEntryPB::kKeyFieldNumber;
8174
const int SysRedisConfigEntryPB::kArgsFieldNumber;
8175
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8176
8177
SysRedisConfigEntryPB::SysRedisConfigEntryPB()
8178
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8179
22
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8180
22
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRedisConfigEntryPB();
8181
22
  }
8182
15.8k
  SharedCtor();
8183
  // @@protoc_insertion_point(constructor:yb.master.SysRedisConfigEntryPB)
8184
15.8k
}
8185
SysRedisConfigEntryPB::SysRedisConfigEntryPB(const SysRedisConfigEntryPB& from)
8186
  : ::google::protobuf::Message(),
8187
      _internal_metadata_(NULL),
8188
      _has_bits_(from._has_bits_),
8189
      _cached_size_(0),
8190
8
      args_(from.args_) {
8191
8
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8192
8
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8193
8
  if (from.has_key()) {
8194
1
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
8195
1
  }
8196
  // @@protoc_insertion_point(copy_constructor:yb.master.SysRedisConfigEntryPB)
8197
8
}
8198
8199
15.8k
void SysRedisConfigEntryPB::SharedCtor() {
8200
15.8k
  _cached_size_ = 0;
8201
15.8k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8202
15.8k
}
8203
8204
30
SysRedisConfigEntryPB::~SysRedisConfigEntryPB() {
8205
  // @@protoc_insertion_point(destructor:yb.master.SysRedisConfigEntryPB)
8206
30
  SharedDtor();
8207
30
}
8208
8209
30
void SysRedisConfigEntryPB::SharedDtor() {
8210
30
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8211
30
}
8212
8213
0
void SysRedisConfigEntryPB::SetCachedSize(int size) const {
8214
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8215
0
  _cached_size_ = size;
8216
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8217
0
}
8218
0
const ::google::protobuf::Descriptor* SysRedisConfigEntryPB::descriptor() {
8219
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
8220
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8221
0
}
8222
8223
0
const SysRedisConfigEntryPB& SysRedisConfigEntryPB::default_instance() {
8224
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRedisConfigEntryPB();
8225
0
  return *internal_default_instance();
8226
0
}
8227
8228
0
SysRedisConfigEntryPB* SysRedisConfigEntryPB::New(::google::protobuf::Arena* arena) const {
8229
0
  SysRedisConfigEntryPB* n = new SysRedisConfigEntryPB;
8230
0
  if (arena != NULL) {
8231
0
    arena->Own(n);
8232
0
  }
8233
0
  return n;
8234
0
}
8235
8236
10
void SysRedisConfigEntryPB::Clear() {
8237
// @@protoc_insertion_point(message_clear_start:yb.master.SysRedisConfigEntryPB)
8238
10
  ::google::protobuf::uint32 cached_has_bits = 0;
8239
  // Prevent compiler warnings about cached_has_bits being unused
8240
10
  (void) cached_has_bits;
8241
8242
10
  args_.Clear();
8243
10
  cached_has_bits = _has_bits_[0];
8244
10
  if (cached_has_bits & 0x00000001u) {
8245
0
    GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8246
0
    (*key_.UnsafeRawStringPointer())->clear();
8247
0
  }
8248
10
  _has_bits_.Clear();
8249
10
  _internal_metadata_.Clear();
8250
10
}
8251
8252
bool SysRedisConfigEntryPB::MergePartialFromCodedStream(
8253
5
    ::google::protobuf::io::CodedInputStream* input) {
8254
12
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8255
5
  ::google::protobuf::uint32 tag;
8256
  // @@protoc_insertion_point(parse_start:yb.master.SysRedisConfigEntryPB)
8257
17
  for (;;) {
8258
17
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8259
17
    tag = p.first;
8260
17
    if (!p.second) goto handle_unusual;
8261
12
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8262
      // optional string key = 1;
8263
5
      case 1: {
8264
5
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8265
5
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8266
5
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8267
5
                input, this->mutable_key()));
8268
5
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8269
5
            this->key().data(), static_cast<int>(this->key().length()),
8270
5
            ::google::protobuf::internal::WireFormat::PARSE,
8271
5
            "yb.master.SysRedisConfigEntryPB.key");
8272
0
        } else {
8273
0
          goto handle_unusual;
8274
0
        }
8275
5
        break;
8276
5
      }
8277
8278
      // repeated bytes args = 2;
8279
7
      case 2: {
8280
7
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8281
7
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
8282
7
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8283
7
                input, this->add_args()));
8284
0
        } else {
8285
0
          goto handle_unusual;
8286
0
        }
8287
7
        break;
8288
5
      }
8289
8290
0
      default: {
8291
5
      handle_unusual:
8292
5
        if (tag == 0) {
8293
5
          goto success;
8294
5
        }
8295
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8296
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8297
0
        break;
8298
0
      }
8299
12
    }
8300
12
  }
8301
5
success:
8302
  // @@protoc_insertion_point(parse_success:yb.master.SysRedisConfigEntryPB)
8303
5
  return true;
8304
0
failure:
8305
  // @@protoc_insertion_point(parse_failure:yb.master.SysRedisConfigEntryPB)
8306
0
  return false;
8307
5
#undef DO_
8308
5
}
8309
8310
void SysRedisConfigEntryPB::SerializeWithCachedSizes(
8311
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8312
  // @@protoc_insertion_point(serialize_start:yb.master.SysRedisConfigEntryPB)
8313
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8314
0
  (void) cached_has_bits;
8315
8316
0
  cached_has_bits = _has_bits_[0];
8317
  // optional string key = 1;
8318
0
  if (cached_has_bits & 0x00000001u) {
8319
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8320
0
      this->key().data(), static_cast<int>(this->key().length()),
8321
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8322
0
      "yb.master.SysRedisConfigEntryPB.key");
8323
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8324
0
      1, this->key(), output);
8325
0
  }
8326
8327
  // repeated bytes args = 2;
8328
0
  for (int i = 0, n = this->args_size(); i < n; i++) {
8329
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
8330
0
      2, this->args(i), output);
8331
0
  }
8332
8333
0
  if (_internal_metadata_.have_unknown_fields()) {
8334
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8335
0
        _internal_metadata_.unknown_fields(), output);
8336
0
  }
8337
  // @@protoc_insertion_point(serialize_end:yb.master.SysRedisConfigEntryPB)
8338
0
}
8339
8340
::google::protobuf::uint8* SysRedisConfigEntryPB::InternalSerializeWithCachedSizesToArray(
8341
3
    bool deterministic, ::google::protobuf::uint8* target) const {
8342
3
  (void)deterministic; // Unused
8343
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysRedisConfigEntryPB)
8344
3
  ::google::protobuf::uint32 cached_has_bits = 0;
8345
3
  (void) cached_has_bits;
8346
8347
3
  cached_has_bits = _has_bits_[0];
8348
  // optional string key = 1;
8349
3
  if (cached_has_bits & 0x00000001u) {
8350
3
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8351
3
      this->key().data(), static_cast<int>(this->key().length()),
8352
3
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8353
3
      "yb.master.SysRedisConfigEntryPB.key");
8354
3
    target =
8355
3
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8356
3
        1, this->key(), target);
8357
3
  }
8358
8359
  // repeated bytes args = 2;
8360
8
  for (int i = 0, n = this->args_size(); i < n; i++) {
8361
5
    target = ::google::protobuf::internal::WireFormatLite::
8362
5
      WriteBytesToArray(2, this->args(i), target);
8363
5
  }
8364
8365
3
  if (_internal_metadata_.have_unknown_fields()) {
8366
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8367
0
        _internal_metadata_.unknown_fields(), target);
8368
0
  }
8369
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysRedisConfigEntryPB)
8370
3
  return target;
8371
3
}
8372
8373
3
size_t SysRedisConfigEntryPB::ByteSizeLong() const {
8374
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysRedisConfigEntryPB)
8375
3
  size_t total_size = 0;
8376
8377
3
  if (_internal_metadata_.have_unknown_fields()) {
8378
0
    total_size +=
8379
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8380
0
        _internal_metadata_.unknown_fields());
8381
0
  }
8382
  // repeated bytes args = 2;
8383
3
  total_size += 1 *
8384
3
      ::google::protobuf::internal::FromIntSize(this->args_size());
8385
8
  for (int i = 0, n = this->args_size(); i < n; i++) {
8386
5
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
8387
5
      this->args(i));
8388
5
  }
8389
8390
  // optional string key = 1;
8391
3
  if (has_key()) {
8392
3
    total_size += 1 +
8393
3
      ::google::protobuf::internal::WireFormatLite::StringSize(
8394
3
        this->key());
8395
3
  }
8396
8397
3
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8398
3
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8399
3
  _cached_size_ = cached_size;
8400
3
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8401
3
  return total_size;
8402
3
}
8403
8404
0
void SysRedisConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
8405
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysRedisConfigEntryPB)
8406
0
  GOOGLE_DCHECK_NE(&from, this);
8407
0
  const SysRedisConfigEntryPB* source =
8408
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysRedisConfigEntryPB>(
8409
0
          &from);
8410
0
  if (source == NULL) {
8411
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysRedisConfigEntryPB)
8412
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8413
0
  } else {
8414
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysRedisConfigEntryPB)
8415
0
    MergeFrom(*source);
8416
0
  }
8417
0
}
8418
8419
5
void SysRedisConfigEntryPB::MergeFrom(const SysRedisConfigEntryPB& from) {
8420
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysRedisConfigEntryPB)
8421
5
  GOOGLE_DCHECK_NE(&from, this);
8422
5
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8423
5
  ::google::protobuf::uint32 cached_has_bits = 0;
8424
5
  (void) cached_has_bits;
8425
8426
5
  args_.MergeFrom(from.args_);
8427
5
  if (from.has_key()) {
8428
5
    set_has_key();
8429
5
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
8430
5
  }
8431
5
}
8432
8433
0
void SysRedisConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
8434
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysRedisConfigEntryPB)
8435
0
  if (&from == this) return;
8436
0
  Clear();
8437
0
  MergeFrom(from);
8438
0
}
8439
8440
5
void SysRedisConfigEntryPB::CopyFrom(const SysRedisConfigEntryPB& from) {
8441
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysRedisConfigEntryPB)
8442
5
  if (&from == this) return;
8443
5
  Clear();
8444
5
  MergeFrom(from);
8445
5
}
8446
8447
8
bool SysRedisConfigEntryPB::IsInitialized() const {
8448
8
  return true;
8449
8
}
8450
8451
0
void SysRedisConfigEntryPB::Swap(SysRedisConfigEntryPB* other) {
8452
0
  if (other == this) return;
8453
0
  InternalSwap(other);
8454
0
}
8455
26
void SysRedisConfigEntryPB::InternalSwap(SysRedisConfigEntryPB* other) {
8456
26
  using std::swap;
8457
26
  args_.InternalSwap(&other->args_);
8458
26
  key_.Swap(&other->key_);
8459
26
  swap(_has_bits_[0], other->_has_bits_[0]);
8460
26
  _internal_metadata_.Swap(&other->_internal_metadata_);
8461
26
  swap(_cached_size_, other->_cached_size_);
8462
26
}
8463
8464
40
::google::protobuf::Metadata SysRedisConfigEntryPB::GetMetadata() const {
8465
40
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
8466
40
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
8467
40
}
8468
8469
8470
// ===================================================================
8471
8472
15.8k
void ResourcePermissionsPB::InitAsDefaultInstance() {
8473
15.8k
}
8474
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8475
const int ResourcePermissionsPB::kResourceNameFieldNumber;
8476
const int ResourcePermissionsPB::kCanonicalResourceFieldNumber;
8477
const int ResourcePermissionsPB::kNamespaceNameFieldNumber;
8478
const int ResourcePermissionsPB::kResourceTypeFieldNumber;
8479
const int ResourcePermissionsPB::kPermissionsFieldNumber;
8480
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8481
8482
ResourcePermissionsPB::ResourcePermissionsPB()
8483
27.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8484
11.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8485
11.7k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsResourcePermissionsPB();
8486
11.7k
  }
8487
27.5k
  SharedCtor();
8488
  // @@protoc_insertion_point(constructor:yb.master.ResourcePermissionsPB)
8489
27.5k
}
8490
ResourcePermissionsPB::ResourcePermissionsPB(const ResourcePermissionsPB& from)
8491
  : ::google::protobuf::Message(),
8492
      _internal_metadata_(NULL),
8493
      _has_bits_(from._has_bits_),
8494
      _cached_size_(0),
8495
0
      permissions_(from.permissions_) {
8496
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8497
0
  resource_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8498
0
  if (from.has_resource_name()) {
8499
0
    resource_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_name_);
8500
0
  }
8501
0
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8502
0
  if (from.has_canonical_resource()) {
8503
0
    canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
8504
0
  }
8505
0
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8506
0
  if (from.has_namespace_name()) {
8507
0
    namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
8508
0
  }
8509
0
  resource_type_ = from.resource_type_;
8510
  // @@protoc_insertion_point(copy_constructor:yb.master.ResourcePermissionsPB)
8511
0
}
8512
8513
27.5k
void ResourcePermissionsPB::SharedCtor() {
8514
27.5k
  _cached_size_ = 0;
8515
27.5k
  resource_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8516
27.5k
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8517
27.5k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8518
27.5k
  resource_type_ = 1;
8519
27.5k
}
8520
8521
11.6k
ResourcePermissionsPB::~ResourcePermissionsPB() {
8522
  // @@protoc_insertion_point(destructor:yb.master.ResourcePermissionsPB)
8523
11.6k
  SharedDtor();
8524
11.6k
}
8525
8526
11.6k
void ResourcePermissionsPB::SharedDtor() {
8527
11.6k
  resource_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8528
11.6k
  canonical_resource_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8529
11.6k
  namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8530
11.6k
}
8531
8532
0
void ResourcePermissionsPB::SetCachedSize(int size) const {
8533
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8534
0
  _cached_size_ = size;
8535
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8536
0
}
8537
0
const ::google::protobuf::Descriptor* ResourcePermissionsPB::descriptor() {
8538
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
8539
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8540
0
}
8541
8542
0
const ResourcePermissionsPB& ResourcePermissionsPB::default_instance() {
8543
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsResourcePermissionsPB();
8544
0
  return *internal_default_instance();
8545
0
}
8546
8547
0
ResourcePermissionsPB* ResourcePermissionsPB::New(::google::protobuf::Arena* arena) const {
8548
0
  ResourcePermissionsPB* n = new ResourcePermissionsPB;
8549
0
  if (arena != NULL) {
8550
0
    arena->Own(n);
8551
0
  }
8552
0
  return n;
8553
0
}
8554
8555
0
void ResourcePermissionsPB::Clear() {
8556
// @@protoc_insertion_point(message_clear_start:yb.master.ResourcePermissionsPB)
8557
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8558
  // Prevent compiler warnings about cached_has_bits being unused
8559
0
  (void) cached_has_bits;
8560
8561
0
  permissions_.Clear();
8562
0
  cached_has_bits = _has_bits_[0];
8563
0
  if (cached_has_bits & 15u) {
8564
0
    if (cached_has_bits & 0x00000001u) {
8565
0
      GOOGLE_DCHECK(!resource_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8566
0
      (*resource_name_.UnsafeRawStringPointer())->clear();
8567
0
    }
8568
0
    if (cached_has_bits & 0x00000002u) {
8569
0
      GOOGLE_DCHECK(!canonical_resource_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8570
0
      (*canonical_resource_.UnsafeRawStringPointer())->clear();
8571
0
    }
8572
0
    if (cached_has_bits & 0x00000004u) {
8573
0
      GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8574
0
      (*namespace_name_.UnsafeRawStringPointer())->clear();
8575
0
    }
8576
0
    resource_type_ = 1;
8577
0
  }
8578
0
  _has_bits_.Clear();
8579
0
  _internal_metadata_.Clear();
8580
0
}
8581
8582
bool ResourcePermissionsPB::MergePartialFromCodedStream(
8583
2
    ::google::protobuf::io::CodedInputStream* input) {
8584
10
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8585
2
  ::google::protobuf::uint32 tag;
8586
  // @@protoc_insertion_point(parse_start:yb.master.ResourcePermissionsPB)
8587
12
  for (;;) {
8588
12
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8589
12
    tag = p.first;
8590
12
    if (!p.second) goto handle_unusual;
8591
10
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8592
      // optional string resource_name = 1;
8593
1
      case 1: {
8594
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8595
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8596
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8597
1
                input, this->mutable_resource_name()));
8598
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8599
1
            this->resource_name().data(), static_cast<int>(this->resource_name().length()),
8600
1
            ::google::protobuf::internal::WireFormat::PARSE,
8601
1
            "yb.master.ResourcePermissionsPB.resource_name");
8602
0
        } else {
8603
0
          goto handle_unusual;
8604
0
        }
8605
1
        break;
8606
1
      }
8607
8608
      // optional .yb.ResourceType resource_type = 2;
8609
2
      case 2: {
8610
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8611
2
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8612
2
          int value;
8613
2
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8614
2
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8615
2
                 input, &value)));
8616
2
          if (::yb::ResourceType_IsValid(value)) {
8617
2
            set_resource_type(static_cast< ::yb::ResourceType >(value));
8618
0
          } else {
8619
0
            mutable_unknown_fields()->AddVarint(
8620
0
                2, static_cast< ::google::protobuf::uint64>(value));
8621
0
          }
8622
0
        } else {
8623
0
          goto handle_unusual;
8624
0
        }
8625
2
        break;
8626
2
      }
8627
8628
      // optional string canonical_resource = 11;
8629
2
      case 11: {
8630
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8631
2
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
8632
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8633
2
                input, this->mutable_canonical_resource()));
8634
2
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8635
2
            this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
8636
2
            ::google::protobuf::internal::WireFormat::PARSE,
8637
2
            "yb.master.ResourcePermissionsPB.canonical_resource");
8638
0
        } else {
8639
0
          goto handle_unusual;
8640
0
        }
8641
2
        break;
8642
2
      }
8643
8644
      // optional string namespace_name = 12;
8645
1
      case 12: {
8646
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8647
1
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
8648
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8649
1
                input, this->mutable_namespace_name()));
8650
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8651
1
            this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
8652
1
            ::google::protobuf::internal::WireFormat::PARSE,
8653
1
            "yb.master.ResourcePermissionsPB.namespace_name");
8654
0
        } else {
8655
0
          goto handle_unusual;
8656
0
        }
8657
1
        break;
8658
1
      }
8659
8660
      // repeated .yb.PermissionType permissions = 13;
8661
4
      case 13: {
8662
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8663
4
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
8664
4
          int value;
8665
4
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8666
4
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8667
4
                 input, &value)));
8668
4
          if (::yb::PermissionType_IsValid(value)) {
8669
4
            add_permissions(static_cast< ::yb::PermissionType >(value));
8670
0
          } else {
8671
0
            mutable_unknown_fields()->AddVarint(
8672
0
                13, static_cast< ::google::protobuf::uint64>(value));
8673
0
          }
8674
0
        } else if (
8675
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8676
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
8677
0
          DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
8678
0
                 input,
8679
0
                 13,
8680
0
                 ::yb::PermissionType_IsValid,
8681
0
                 mutable_unknown_fields(),
8682
0
                 this->mutable_permissions())));
8683
0
        } else {
8684
0
          goto handle_unusual;
8685
0
        }
8686
4
        break;
8687
2
      }
8688
8689
0
      default: {
8690
2
      handle_unusual:
8691
2
        if (tag == 0) {
8692
2
          goto success;
8693
2
        }
8694
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8695
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8696
0
        break;
8697
0
      }
8698
10
    }
8699
10
  }
8700
2
success:
8701
  // @@protoc_insertion_point(parse_success:yb.master.ResourcePermissionsPB)
8702
2
  return true;
8703
0
failure:
8704
  // @@protoc_insertion_point(parse_failure:yb.master.ResourcePermissionsPB)
8705
0
  return false;
8706
2
#undef DO_
8707
2
}
8708
8709
void ResourcePermissionsPB::SerializeWithCachedSizes(
8710
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8711
  // @@protoc_insertion_point(serialize_start:yb.master.ResourcePermissionsPB)
8712
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8713
0
  (void) cached_has_bits;
8714
8715
0
  cached_has_bits = _has_bits_[0];
8716
  // optional string resource_name = 1;
8717
0
  if (cached_has_bits & 0x00000001u) {
8718
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8719
0
      this->resource_name().data(), static_cast<int>(this->resource_name().length()),
8720
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8721
0
      "yb.master.ResourcePermissionsPB.resource_name");
8722
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8723
0
      1, this->resource_name(), output);
8724
0
  }
8725
8726
  // optional .yb.ResourceType resource_type = 2;
8727
0
  if (cached_has_bits & 0x00000008u) {
8728
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8729
0
      2, this->resource_type(), output);
8730
0
  }
8731
8732
  // optional string canonical_resource = 11;
8733
0
  if (cached_has_bits & 0x00000002u) {
8734
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8735
0
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
8736
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8737
0
      "yb.master.ResourcePermissionsPB.canonical_resource");
8738
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8739
0
      11, this->canonical_resource(), output);
8740
0
  }
8741
8742
  // optional string namespace_name = 12;
8743
0
  if (cached_has_bits & 0x00000004u) {
8744
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8745
0
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
8746
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8747
0
      "yb.master.ResourcePermissionsPB.namespace_name");
8748
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8749
0
      12, this->namespace_name(), output);
8750
0
  }
8751
8752
  // repeated .yb.PermissionType permissions = 13;
8753
0
  for (int i = 0, n = this->permissions_size(); i < n; i++) {
8754
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8755
0
      13, this->permissions(i), output);
8756
0
  }
8757
8758
0
  if (_internal_metadata_.have_unknown_fields()) {
8759
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8760
0
        _internal_metadata_.unknown_fields(), output);
8761
0
  }
8762
  // @@protoc_insertion_point(serialize_end:yb.master.ResourcePermissionsPB)
8763
0
}
8764
8765
::google::protobuf::uint8* ResourcePermissionsPB::InternalSerializeWithCachedSizesToArray(
8766
5.79k
    bool deterministic, ::google::protobuf::uint8* target) const {
8767
5.79k
  (void)deterministic; // Unused
8768
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ResourcePermissionsPB)
8769
5.79k
  ::google::protobuf::uint32 cached_has_bits = 0;
8770
5.79k
  (void) cached_has_bits;
8771
8772
5.79k
  cached_has_bits = _has_bits_[0];
8773
  // optional string resource_name = 1;
8774
5.79k
  if (cached_has_bits & 0x00000001u) {
8775
5.57k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8776
5.57k
      this->resource_name().data(), static_cast<int>(this->resource_name().length()),
8777
5.57k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8778
5.57k
      "yb.master.ResourcePermissionsPB.resource_name");
8779
5.57k
    target =
8780
5.57k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8781
5.57k
        1, this->resource_name(), target);
8782
5.57k
  }
8783
8784
  // optional .yb.ResourceType resource_type = 2;
8785
5.79k
  if (cached_has_bits & 0x00000008u) {
8786
5.79k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8787
5.79k
      2, this->resource_type(), target);
8788
5.79k
  }
8789
8790
  // optional string canonical_resource = 11;
8791
5.79k
  if (cached_has_bits & 0x00000002u) {
8792
5.79k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8793
5.79k
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
8794
5.79k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8795
5.79k
      "yb.master.ResourcePermissionsPB.canonical_resource");
8796
5.79k
    target =
8797
5.79k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8798
5.79k
        11, this->canonical_resource(), target);
8799
5.79k
  }
8800
8801
  // optional string namespace_name = 12;
8802
5.79k
  if (cached_has_bits & 0x00000004u) {
8803
5.48k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8804
5.48k
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
8805
5.48k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8806
5.48k
      "yb.master.ResourcePermissionsPB.namespace_name");
8807
5.48k
    target =
8808
5.48k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8809
5.48k
        12, this->namespace_name(), target);
8810
5.48k
  }
8811
8812
  // repeated .yb.PermissionType permissions = 13;
8813
5.79k
  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8814
5.79k
    13, this->permissions_, target);
8815
8816
5.79k
  if (_internal_metadata_.have_unknown_fields()) {
8817
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8818
0
        _internal_metadata_.unknown_fields(), target);
8819
0
  }
8820
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ResourcePermissionsPB)
8821
5.79k
  return target;
8822
5.79k
}
8823
8824
5.79k
size_t ResourcePermissionsPB::ByteSizeLong() const {
8825
// @@protoc_insertion_point(message_byte_size_start:yb.master.ResourcePermissionsPB)
8826
5.79k
  size_t total_size = 0;
8827
8828
5.79k
  if (_internal_metadata_.have_unknown_fields()) {
8829
0
    total_size +=
8830
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8831
0
        _internal_metadata_.unknown_fields());
8832
0
  }
8833
  // repeated .yb.PermissionType permissions = 13;
8834
5.79k
  {
8835
5.79k
    size_t data_size = 0;
8836
31.5k
    unsigned int count = static_cast<unsigned int>(this->permissions_size());for (unsigned int i = 0; i < count; i++) {
8837
25.7k
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
8838
25.7k
        this->permissions(static_cast<int>(i)));
8839
25.7k
    }
8840
5.79k
    total_size += (1UL * count) + data_size;
8841
5.79k
  }
8842
8843
5.79k
  if (_has_bits_[0 / 32] & 15u) {
8844
    // optional string resource_name = 1;
8845
5.79k
    if (has_resource_name()) {
8846
5.57k
      total_size += 1 +
8847
5.57k
        ::google::protobuf::internal::WireFormatLite::StringSize(
8848
5.57k
          this->resource_name());
8849
5.57k
    }
8850
8851
    // optional string canonical_resource = 11;
8852
5.79k
    if (has_canonical_resource()) {
8853
5.79k
      total_size += 1 +
8854
5.79k
        ::google::protobuf::internal::WireFormatLite::StringSize(
8855
5.79k
          this->canonical_resource());
8856
5.79k
    }
8857
8858
    // optional string namespace_name = 12;
8859
5.79k
    if (has_namespace_name()) {
8860
5.48k
      total_size += 1 +
8861
5.48k
        ::google::protobuf::internal::WireFormatLite::StringSize(
8862
5.48k
          this->namespace_name());
8863
5.48k
    }
8864
8865
    // optional .yb.ResourceType resource_type = 2;
8866
5.79k
    if (has_resource_type()) {
8867
5.79k
      total_size += 1 +
8868
5.79k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type());
8869
5.79k
    }
8870
8871
5.79k
  }
8872
5.79k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8873
5.79k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8874
5.79k
  _cached_size_ = cached_size;
8875
5.79k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8876
5.79k
  return total_size;
8877
5.79k
}
8878
8879
0
void ResourcePermissionsPB::MergeFrom(const ::google::protobuf::Message& from) {
8880
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ResourcePermissionsPB)
8881
0
  GOOGLE_DCHECK_NE(&from, this);
8882
0
  const ResourcePermissionsPB* source =
8883
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ResourcePermissionsPB>(
8884
0
          &from);
8885
0
  if (source == NULL) {
8886
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ResourcePermissionsPB)
8887
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8888
0
  } else {
8889
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ResourcePermissionsPB)
8890
0
    MergeFrom(*source);
8891
0
  }
8892
0
}
8893
8894
9.46k
void ResourcePermissionsPB::MergeFrom(const ResourcePermissionsPB& from) {
8895
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ResourcePermissionsPB)
8896
9.46k
  GOOGLE_DCHECK_NE(&from, this);
8897
9.46k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8898
9.46k
  ::google::protobuf::uint32 cached_has_bits = 0;
8899
9.46k
  (void) cached_has_bits;
8900
8901
9.46k
  permissions_.MergeFrom(from.permissions_);
8902
9.46k
  cached_has_bits = from._has_bits_[0];
8903
9.46k
  if (cached_has_bits & 15u) {
8904
9.46k
    if (cached_has_bits & 0x00000001u) {
8905
9.00k
      set_has_resource_name();
8906
9.00k
      resource_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_name_);
8907
9.00k
    }
8908
9.46k
    if (cached_has_bits & 0x00000002u) {
8909
9.46k
      set_has_canonical_resource();
8910
9.46k
      canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
8911
9.46k
    }
8912
9.46k
    if (cached_has_bits & 0x00000004u) {
8913
8.82k
      set_has_namespace_name();
8914
8.82k
      namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
8915
8.82k
    }
8916
9.46k
    if (cached_has_bits & 0x00000008u) {
8917
9.46k
      resource_type_ = from.resource_type_;
8918
9.46k
    }
8919
9.46k
    _has_bits_[0] |= cached_has_bits;
8920
9.46k
  }
8921
9.46k
}
8922
8923
0
void ResourcePermissionsPB::CopyFrom(const ::google::protobuf::Message& from) {
8924
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ResourcePermissionsPB)
8925
0
  if (&from == this) return;
8926
0
  Clear();
8927
0
  MergeFrom(from);
8928
0
}
8929
8930
0
void ResourcePermissionsPB::CopyFrom(const ResourcePermissionsPB& from) {
8931
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ResourcePermissionsPB)
8932
0
  if (&from == this) return;
8933
0
  Clear();
8934
0
  MergeFrom(from);
8935
0
}
8936
8937
0
bool ResourcePermissionsPB::IsInitialized() const {
8938
0
  return true;
8939
0
}
8940
8941
0
void ResourcePermissionsPB::Swap(ResourcePermissionsPB* other) {
8942
0
  if (other == this) return;
8943
0
  InternalSwap(other);
8944
0
}
8945
0
void ResourcePermissionsPB::InternalSwap(ResourcePermissionsPB* other) {
8946
0
  using std::swap;
8947
0
  permissions_.InternalSwap(&other->permissions_);
8948
0
  resource_name_.Swap(&other->resource_name_);
8949
0
  canonical_resource_.Swap(&other->canonical_resource_);
8950
0
  namespace_name_.Swap(&other->namespace_name_);
8951
0
  swap(resource_type_, other->resource_type_);
8952
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8953
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8954
0
  swap(_cached_size_, other->_cached_size_);
8955
0
}
8956
8957
5.16k
::google::protobuf::Metadata ResourcePermissionsPB::GetMetadata() const {
8958
5.16k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
8959
5.16k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
8960
5.16k
}
8961
8962
8963
// ===================================================================
8964
8965
15.8k
void SysRoleEntryPB::InitAsDefaultInstance() {
8966
15.8k
}
8967
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8968
const int SysRoleEntryPB::kRoleFieldNumber;
8969
const int SysRoleEntryPB::kCanLoginFieldNumber;
8970
const int SysRoleEntryPB::kIsSuperuserFieldNumber;
8971
const int SysRoleEntryPB::kMemberOfFieldNumber;
8972
const int SysRoleEntryPB::kSaltedHashFieldNumber;
8973
const int SysRoleEntryPB::kResourcesFieldNumber;
8974
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8975
8976
SysRoleEntryPB::SysRoleEntryPB()
8977
29.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8978
13.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8979
13.8k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRoleEntryPB();
8980
13.8k
  }
8981
29.6k
  SharedCtor();
8982
  // @@protoc_insertion_point(constructor:yb.master.SysRoleEntryPB)
8983
29.6k
}
8984
SysRoleEntryPB::SysRoleEntryPB(const SysRoleEntryPB& from)
8985
  : ::google::protobuf::Message(),
8986
      _internal_metadata_(NULL),
8987
      _has_bits_(from._has_bits_),
8988
      _cached_size_(0),
8989
      member_of_(from.member_of_),
8990
13.1k
      resources_(from.resources_) {
8991
13.1k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8992
13.1k
  role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8993
13.1k
  if (from.has_role()) {
8994
10.3k
    role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_);
8995
10.3k
  }
8996
13.1k
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8997
13.1k
  if (from.has_salted_hash()) {
8998
10.2k
    salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
8999
10.2k
  }
9000
13.1k
  ::memcpy(&can_login_, &from.can_login_,
9001
13.1k
    static_cast<size_t>(reinterpret_cast<char*>(&is_superuser_) -
9002
13.1k
    reinterpret_cast<char*>(&can_login_)) + sizeof(is_superuser_));
9003
  // @@protoc_insertion_point(copy_constructor:yb.master.SysRoleEntryPB)
9004
13.1k
}
9005
9006
29.6k
void SysRoleEntryPB::SharedCtor() {
9007
29.6k
  _cached_size_ = 0;
9008
29.6k
  role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9009
29.6k
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9010
29.6k
  ::memset(&can_login_, 0, static_cast<size_t>(
9011
29.6k
      reinterpret_cast<char*>(&is_superuser_) -
9012
29.6k
      reinterpret_cast<char*>(&can_login_)) + sizeof(is_superuser_));
9013
29.6k
}
9014
9015
24.9k
SysRoleEntryPB::~SysRoleEntryPB() {
9016
  // @@protoc_insertion_point(destructor:yb.master.SysRoleEntryPB)
9017
24.9k
  SharedDtor();
9018
24.9k
}
9019
9020
24.9k
void SysRoleEntryPB::SharedDtor() {
9021
24.9k
  role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9022
24.9k
  salted_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9023
24.9k
}
9024
9025
0
void SysRoleEntryPB::SetCachedSize(int size) const {
9026
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9027
0
  _cached_size_ = size;
9028
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9029
0
}
9030
0
const ::google::protobuf::Descriptor* SysRoleEntryPB::descriptor() {
9031
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
9032
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9033
0
}
9034
9035
0
const SysRoleEntryPB& SysRoleEntryPB::default_instance() {
9036
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRoleEntryPB();
9037
0
  return *internal_default_instance();
9038
0
}
9039
9040
0
SysRoleEntryPB* SysRoleEntryPB::New(::google::protobuf::Arena* arena) const {
9041
0
  SysRoleEntryPB* n = new SysRoleEntryPB;
9042
0
  if (arena != NULL) {
9043
0
    arena->Own(n);
9044
0
  }
9045
0
  return n;
9046
0
}
9047
9048
854
void SysRoleEntryPB::Clear() {
9049
// @@protoc_insertion_point(message_clear_start:yb.master.SysRoleEntryPB)
9050
854
  ::google::protobuf::uint32 cached_has_bits = 0;
9051
  // Prevent compiler warnings about cached_has_bits being unused
9052
854
  (void) cached_has_bits;
9053
9054
854
  member_of_.Clear();
9055
854
  resources_.Clear();
9056
854
  cached_has_bits = _has_bits_[0];
9057
854
  if (cached_has_bits & 3u) {
9058
0
    if (cached_has_bits & 0x00000001u) {
9059
0
      GOOGLE_DCHECK(!role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9060
0
      (*role_.UnsafeRawStringPointer())->clear();
9061
0
    }
9062
0
    if (cached_has_bits & 0x00000002u) {
9063
0
      GOOGLE_DCHECK(!salted_hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9064
0
      (*salted_hash_.UnsafeRawStringPointer())->clear();
9065
0
    }
9066
0
  }
9067
854
  ::memset(&can_login_, 0, static_cast<size_t>(
9068
854
      reinterpret_cast<char*>(&is_superuser_) -
9069
854
      reinterpret_cast<char*>(&can_login_)) + sizeof(is_superuser_));
9070
854
  _has_bits_.Clear();
9071
854
  _internal_metadata_.Clear();
9072
854
}
9073
9074
bool SysRoleEntryPB::MergePartialFromCodedStream(
9075
427
    ::google::protobuf::io::CodedInputStream* input) {
9076
1.71k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9077
427
  ::google::protobuf::uint32 tag;
9078
  // @@protoc_insertion_point(parse_start:yb.master.SysRoleEntryPB)
9079
2.13k
  for (;;) {
9080
2.13k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9081
2.13k
    tag = p.first;
9082
2.13k
    if (!p.second) goto handle_unusual;
9083
1.71k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9084
      // optional bytes role = 1;
9085
427
      case 1: {
9086
427
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9087
427
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9088
427
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9089
427
                input, this->mutable_role()));
9090
0
        } else {
9091
0
          goto handle_unusual;
9092
0
        }
9093
427
        break;
9094
427
      }
9095
9096
      // optional bool can_login = 2;
9097
427
      case 2: {
9098
427
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9099
427
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9100
427
          set_has_can_login();
9101
427
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9102
427
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9103
427
                 input, &can_login_)));
9104
0
        } else {
9105
0
          goto handle_unusual;
9106
0
        }
9107
427
        break;
9108
427
      }
9109
9110
      // optional bool is_superuser = 3;
9111
427
      case 3: {
9112
427
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9113
427
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
9114
427
          set_has_is_superuser();
9115
427
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9116
427
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9117
427
                 input, &is_superuser_)));
9118
0
        } else {
9119
0
          goto handle_unusual;
9120
0
        }
9121
427
        break;
9122
427
      }
9123
9124
      // repeated bytes member_of = 4;
9125
0
      case 4: {
9126
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9127
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
9128
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9129
0
                input, this->add_member_of()));
9130
0
        } else {
9131
0
          goto handle_unusual;
9132
0
        }
9133
0
        break;
9134
0
      }
9135
9136
      // optional bytes salted_hash = 5;
9137
427
      case 5: {
9138
427
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9139
427
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
9140
427
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9141
427
                input, this->mutable_salted_hash()));
9142
0
        } else {
9143
0
          goto handle_unusual;
9144
0
        }
9145
427
        break;
9146
427
      }
9147
9148
      // repeated .yb.master.ResourcePermissionsPB resources = 7;
9149
2
      case 7: {
9150
2
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9151
2
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
9152
2
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_resources()));
9153
0
        } else {
9154
0
          goto handle_unusual;
9155
0
        }
9156
2
        break;
9157
427
      }
9158
9159
0
      default: {
9160
427
      handle_unusual:
9161
427
        if (tag == 0) {
9162
427
          goto success;
9163
427
        }
9164
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9165
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9166
0
        break;
9167
0
      }
9168
1.71k
    }
9169
1.71k
  }
9170
427
success:
9171
  // @@protoc_insertion_point(parse_success:yb.master.SysRoleEntryPB)
9172
427
  return true;
9173
0
failure:
9174
  // @@protoc_insertion_point(parse_failure:yb.master.SysRoleEntryPB)
9175
0
  return false;
9176
427
#undef DO_
9177
427
}
9178
9179
void SysRoleEntryPB::SerializeWithCachedSizes(
9180
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9181
  // @@protoc_insertion_point(serialize_start:yb.master.SysRoleEntryPB)
9182
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9183
0
  (void) cached_has_bits;
9184
9185
0
  cached_has_bits = _has_bits_[0];
9186
  // optional bytes role = 1;
9187
0
  if (cached_has_bits & 0x00000001u) {
9188
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9189
0
      1, this->role(), output);
9190
0
  }
9191
9192
  // optional bool can_login = 2;
9193
0
  if (cached_has_bits & 0x00000004u) {
9194
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->can_login(), output);
9195
0
  }
9196
9197
  // optional bool is_superuser = 3;
9198
0
  if (cached_has_bits & 0x00000008u) {
9199
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_superuser(), output);
9200
0
  }
9201
9202
  // repeated bytes member_of = 4;
9203
0
  for (int i = 0, n = this->member_of_size(); i < n; i++) {
9204
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
9205
0
      4, this->member_of(i), output);
9206
0
  }
9207
9208
  // optional bytes salted_hash = 5;
9209
0
  if (cached_has_bits & 0x00000002u) {
9210
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9211
0
      5, this->salted_hash(), output);
9212
0
  }
9213
9214
  // repeated .yb.master.ResourcePermissionsPB resources = 7;
9215
0
  for (unsigned int i = 0,
9216
0
      n = static_cast<unsigned int>(this->resources_size()); i < n; i++) {
9217
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9218
0
      7, this->resources(static_cast<int>(i)), output);
9219
0
  }
9220
9221
0
  if (_internal_metadata_.have_unknown_fields()) {
9222
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9223
0
        _internal_metadata_.unknown_fields(), output);
9224
0
  }
9225
  // @@protoc_insertion_point(serialize_end:yb.master.SysRoleEntryPB)
9226
0
}
9227
9228
::google::protobuf::uint8* SysRoleEntryPB::InternalSerializeWithCachedSizesToArray(
9229
5.06k
    bool deterministic, ::google::protobuf::uint8* target) const {
9230
5.06k
  (void)deterministic; // Unused
9231
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysRoleEntryPB)
9232
5.06k
  ::google::protobuf::uint32 cached_has_bits = 0;
9233
5.06k
  (void) cached_has_bits;
9234
9235
5.06k
  cached_has_bits = _has_bits_[0];
9236
  // optional bytes role = 1;
9237
5.06k
  if (cached_has_bits & 0x00000001u) {
9238
5.06k
    target =
9239
5.06k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9240
5.06k
        1, this->role(), target);
9241
5.06k
  }
9242
9243
  // optional bool can_login = 2;
9244
5.06k
  if (cached_has_bits & 0x00000004u) {
9245
5.06k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->can_login(), target);
9246
5.06k
  }
9247
9248
  // optional bool is_superuser = 3;
9249
5.06k
  if (cached_has_bits & 0x00000008u) {
9250
5.06k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_superuser(), target);
9251
5.06k
  }
9252
9253
  // repeated bytes member_of = 4;
9254
5.12k
  for (int i = 0, n = this->member_of_size(); i < n; i++) {
9255
61
    target = ::google::protobuf::internal::WireFormatLite::
9256
61
      WriteBytesToArray(4, this->member_of(i), target);
9257
61
  }
9258
9259
  // optional bytes salted_hash = 5;
9260
5.06k
  if (cached_has_bits & 0x00000002u) {
9261
5.01k
    target =
9262
5.01k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9263
5.01k
        5, this->salted_hash(), target);
9264
5.01k
  }
9265
9266
  // repeated .yb.master.ResourcePermissionsPB resources = 7;
9267
5.06k
  for (unsigned int i = 0,
9268
10.8k
      n = static_cast<unsigned int>(this->resources_size()); i < n; i++) {
9269
5.79k
    target = ::google::protobuf::internal::WireFormatLite::
9270
5.79k
      InternalWriteMessageToArray(
9271
5.79k
        7, this->resources(static_cast<int>(i)), deterministic, target);
9272
5.79k
  }
9273
9274
5.06k
  if (_internal_metadata_.have_unknown_fields()) {
9275
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9276
0
        _internal_metadata_.unknown_fields(), target);
9277
0
  }
9278
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysRoleEntryPB)
9279
5.06k
  return target;
9280
5.06k
}
9281
9282
5.06k
size_t SysRoleEntryPB::ByteSizeLong() const {
9283
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysRoleEntryPB)
9284
5.06k
  size_t total_size = 0;
9285
9286
5.06k
  if (_internal_metadata_.have_unknown_fields()) {
9287
0
    total_size +=
9288
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9289
0
        _internal_metadata_.unknown_fields());
9290
0
  }
9291
  // repeated bytes member_of = 4;
9292
5.06k
  total_size += 1 *
9293
5.06k
      ::google::protobuf::internal::FromIntSize(this->member_of_size());
9294
5.12k
  for (int i = 0, n = this->member_of_size(); i < n; i++) {
9295
61
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
9296
61
      this->member_of(i));
9297
61
  }
9298
9299
  // repeated .yb.master.ResourcePermissionsPB resources = 7;
9300
5.06k
  {
9301
5.06k
    unsigned int count = static_cast<unsigned int>(this->resources_size());
9302
5.06k
    total_size += 1UL * count;
9303
10.8k
    for (unsigned int i = 0; i < count; i++) {
9304
5.79k
      total_size +=
9305
5.79k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9306
5.79k
          this->resources(static_cast<int>(i)));
9307
5.79k
    }
9308
5.06k
  }
9309
9310
5.06k
  if (_has_bits_[0 / 32] & 15u) {
9311
    // optional bytes role = 1;
9312
5.06k
    if (has_role()) {
9313
5.06k
      total_size += 1 +
9314
5.06k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9315
5.06k
          this->role());
9316
5.06k
    }
9317
9318
    // optional bytes salted_hash = 5;
9319
5.06k
    if (has_salted_hash()) {
9320
5.01k
      total_size += 1 +
9321
5.01k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9322
5.01k
          this->salted_hash());
9323
5.01k
    }
9324
9325
    // optional bool can_login = 2;
9326
5.06k
    if (has_can_login()) {
9327
5.06k
      total_size += 1 + 1;
9328
5.06k
    }
9329
9330
    // optional bool is_superuser = 3;
9331
5.06k
    if (has_is_superuser()) {
9332
5.06k
      total_size += 1 + 1;
9333
5.06k
    }
9334
9335
5.06k
  }
9336
5.06k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9337
5.06k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9338
5.06k
  _cached_size_ = cached_size;
9339
5.06k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9340
5.06k
  return total_size;
9341
5.06k
}
9342
9343
0
void SysRoleEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
9344
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysRoleEntryPB)
9345
0
  GOOGLE_DCHECK_NE(&from, this);
9346
0
  const SysRoleEntryPB* source =
9347
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysRoleEntryPB>(
9348
0
          &from);
9349
0
  if (source == NULL) {
9350
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysRoleEntryPB)
9351
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9352
0
  } else {
9353
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysRoleEntryPB)
9354
0
    MergeFrom(*source);
9355
0
  }
9356
0
}
9357
9358
427
void SysRoleEntryPB::MergeFrom(const SysRoleEntryPB& from) {
9359
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysRoleEntryPB)
9360
427
  GOOGLE_DCHECK_NE(&from, this);
9361
427
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9362
427
  ::google::protobuf::uint32 cached_has_bits = 0;
9363
427
  (void) cached_has_bits;
9364
9365
427
  member_of_.MergeFrom(from.member_of_);
9366
427
  resources_.MergeFrom(from.resources_);
9367
427
  cached_has_bits = from._has_bits_[0];
9368
427
  if (cached_has_bits & 15u) {
9369
427
    if (cached_has_bits & 0x00000001u) {
9370
427
      set_has_role();
9371
427
      role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_);
9372
427
    }
9373
427
    if (cached_has_bits & 0x00000002u) {
9374
427
      set_has_salted_hash();
9375
427
      salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
9376
427
    }
9377
427
    if (cached_has_bits & 0x00000004u) {
9378
427
      can_login_ = from.can_login_;
9379
427
    }
9380
427
    if (cached_has_bits & 0x00000008u) {
9381
427
      is_superuser_ = from.is_superuser_;
9382
427
    }
9383
427
    _has_bits_[0] |= cached_has_bits;
9384
427
  }
9385
427
}
9386
9387
0
void SysRoleEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
9388
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysRoleEntryPB)
9389
0
  if (&from == this) return;
9390
0
  Clear();
9391
0
  MergeFrom(from);
9392
0
}
9393
9394
427
void SysRoleEntryPB::CopyFrom(const SysRoleEntryPB& from) {
9395
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysRoleEntryPB)
9396
427
  if (&from == this) return;
9397
427
  Clear();
9398
427
  MergeFrom(from);
9399
427
}
9400
9401
5.49k
bool SysRoleEntryPB::IsInitialized() const {
9402
5.49k
  return true;
9403
5.49k
}
9404
9405
0
void SysRoleEntryPB::Swap(SysRoleEntryPB* other) {
9406
0
  if (other == this) return;
9407
0
  InternalSwap(other);
9408
0
}
9409
27.1k
void SysRoleEntryPB::InternalSwap(SysRoleEntryPB* other) {
9410
27.1k
  using std::swap;
9411
27.1k
  member_of_.InternalSwap(&other->member_of_);
9412
27.1k
  resources_.InternalSwap(&other->resources_);
9413
27.1k
  role_.Swap(&other->role_);
9414
27.1k
  salted_hash_.Swap(&other->salted_hash_);
9415
27.1k
  swap(can_login_, other->can_login_);
9416
27.1k
  swap(is_superuser_, other->is_superuser_);
9417
27.1k
  swap(_has_bits_[0], other->_has_bits_[0]);
9418
27.1k
  _internal_metadata_.Swap(&other->_internal_metadata_);
9419
27.1k
  swap(_cached_size_, other->_cached_size_);
9420
27.1k
}
9421
9422
67.3k
::google::protobuf::Metadata SysRoleEntryPB::GetMetadata() const {
9423
67.3k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
9424
67.3k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
9425
67.3k
}
9426
9427
9428
// ===================================================================
9429
9430
15.8k
void SysSecurityConfigEntryPB::InitAsDefaultInstance() {
9431
15.8k
}
9432
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9433
const int SysSecurityConfigEntryPB::kRolesVersionFieldNumber;
9434
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9435
9436
SysSecurityConfigEntryPB::SysSecurityConfigEntryPB()
9437
26.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9438
10.7k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9439
10.7k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSecurityConfigEntryPB();
9440
10.7k
  }
9441
26.6k
  SharedCtor();
9442
  // @@protoc_insertion_point(constructor:yb.master.SysSecurityConfigEntryPB)
9443
26.6k
}
9444
SysSecurityConfigEntryPB::SysSecurityConfigEntryPB(const SysSecurityConfigEntryPB& from)
9445
  : ::google::protobuf::Message(),
9446
      _internal_metadata_(NULL),
9447
      _has_bits_(from._has_bits_),
9448
0
      _cached_size_(0) {
9449
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9450
0
  roles_version_ = from.roles_version_;
9451
  // @@protoc_insertion_point(copy_constructor:yb.master.SysSecurityConfigEntryPB)
9452
0
}
9453
9454
26.6k
void SysSecurityConfigEntryPB::SharedCtor() {
9455
26.6k
  _cached_size_ = 0;
9456
26.6k
  roles_version_ = GOOGLE_ULONGLONG(0);
9457
26.6k
}
9458
9459
8.83k
SysSecurityConfigEntryPB::~SysSecurityConfigEntryPB() {
9460
  // @@protoc_insertion_point(destructor:yb.master.SysSecurityConfigEntryPB)
9461
8.83k
  SharedDtor();
9462
8.83k
}
9463
9464
8.83k
void SysSecurityConfigEntryPB::SharedDtor() {
9465
8.83k
}
9466
9467
0
void SysSecurityConfigEntryPB::SetCachedSize(int size) const {
9468
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9469
0
  _cached_size_ = size;
9470
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9471
0
}
9472
0
const ::google::protobuf::Descriptor* SysSecurityConfigEntryPB::descriptor() {
9473
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
9474
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9475
0
}
9476
9477
0
const SysSecurityConfigEntryPB& SysSecurityConfigEntryPB::default_instance() {
9478
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSecurityConfigEntryPB();
9479
0
  return *internal_default_instance();
9480
0
}
9481
9482
0
SysSecurityConfigEntryPB* SysSecurityConfigEntryPB::New(::google::protobuf::Arena* arena) const {
9483
0
  SysSecurityConfigEntryPB* n = new SysSecurityConfigEntryPB;
9484
0
  if (arena != NULL) {
9485
0
    arena->Own(n);
9486
0
  }
9487
0
  return n;
9488
0
}
9489
9490
0
void SysSecurityConfigEntryPB::Clear() {
9491
// @@protoc_insertion_point(message_clear_start:yb.master.SysSecurityConfigEntryPB)
9492
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9493
  // Prevent compiler warnings about cached_has_bits being unused
9494
0
  (void) cached_has_bits;
9495
9496
0
  roles_version_ = GOOGLE_ULONGLONG(0);
9497
0
  _has_bits_.Clear();
9498
0
  _internal_metadata_.Clear();
9499
0
}
9500
9501
bool SysSecurityConfigEntryPB::MergePartialFromCodedStream(
9502
426
    ::google::protobuf::io::CodedInputStream* input) {
9503
426
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9504
426
  ::google::protobuf::uint32 tag;
9505
  // @@protoc_insertion_point(parse_start:yb.master.SysSecurityConfigEntryPB)
9506
852
  for (;;) {
9507
852
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9508
852
    tag = p.first;
9509
852
    if (!p.second) goto handle_unusual;
9510
426
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9511
      // optional uint64 roles_version = 1;
9512
426
      case 1: {
9513
426
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9514
426
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9515
426
          set_has_roles_version();
9516
426
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9517
426
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9518
426
                 input, &roles_version_)));
9519
0
        } else {
9520
0
          goto handle_unusual;
9521
0
        }
9522
426
        break;
9523
426
      }
9524
9525
0
      default: {
9526
426
      handle_unusual:
9527
426
        if (tag == 0) {
9528
426
          goto success;
9529
426
        }
9530
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9531
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9532
0
        break;
9533
0
      }
9534
426
    }
9535
426
  }
9536
426
success:
9537
  // @@protoc_insertion_point(parse_success:yb.master.SysSecurityConfigEntryPB)
9538
426
  return true;
9539
0
failure:
9540
  // @@protoc_insertion_point(parse_failure:yb.master.SysSecurityConfigEntryPB)
9541
0
  return false;
9542
426
#undef DO_
9543
426
}
9544
9545
void SysSecurityConfigEntryPB::SerializeWithCachedSizes(
9546
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9547
  // @@protoc_insertion_point(serialize_start:yb.master.SysSecurityConfigEntryPB)
9548
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9549
0
  (void) cached_has_bits;
9550
9551
0
  cached_has_bits = _has_bits_[0];
9552
  // optional uint64 roles_version = 1;
9553
0
  if (cached_has_bits & 0x00000001u) {
9554
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->roles_version(), output);
9555
0
  }
9556
9557
0
  if (_internal_metadata_.have_unknown_fields()) {
9558
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9559
0
        _internal_metadata_.unknown_fields(), output);
9560
0
  }
9561
  // @@protoc_insertion_point(serialize_end:yb.master.SysSecurityConfigEntryPB)
9562
0
}
9563
9564
::google::protobuf::uint8* SysSecurityConfigEntryPB::InternalSerializeWithCachedSizesToArray(
9565
7.97k
    bool deterministic, ::google::protobuf::uint8* target) const {
9566
7.97k
  (void)deterministic; // Unused
9567
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysSecurityConfigEntryPB)
9568
7.97k
  ::google::protobuf::uint32 cached_has_bits = 0;
9569
7.97k
  (void) cached_has_bits;
9570
9571
7.97k
  cached_has_bits = _has_bits_[0];
9572
  // optional uint64 roles_version = 1;
9573
7.97k
  if (cached_has_bits & 0x00000001u) {
9574
7.97k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->roles_version(), target);
9575
7.97k
  }
9576
9577
7.97k
  if (_internal_metadata_.have_unknown_fields()) {
9578
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9579
0
        _internal_metadata_.unknown_fields(), target);
9580
0
  }
9581
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysSecurityConfigEntryPB)
9582
7.97k
  return target;
9583
7.97k
}
9584
9585
7.97k
size_t SysSecurityConfigEntryPB::ByteSizeLong() const {
9586
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysSecurityConfigEntryPB)
9587
7.97k
  size_t total_size = 0;
9588
9589
7.97k
  if (_internal_metadata_.have_unknown_fields()) {
9590
0
    total_size +=
9591
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9592
0
        _internal_metadata_.unknown_fields());
9593
0
  }
9594
  // optional uint64 roles_version = 1;
9595
7.97k
  if (has_roles_version()) {
9596
7.97k
    total_size += 1 +
9597
7.97k
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
9598
7.97k
        this->roles_version());
9599
7.97k
  }
9600
9601
7.97k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9602
7.97k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9603
7.97k
  _cached_size_ = cached_size;
9604
7.97k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9605
7.97k
  return total_size;
9606
7.97k
}
9607
9608
0
void SysSecurityConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
9609
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysSecurityConfigEntryPB)
9610
0
  GOOGLE_DCHECK_NE(&from, this);
9611
0
  const SysSecurityConfigEntryPB* source =
9612
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysSecurityConfigEntryPB>(
9613
0
          &from);
9614
0
  if (source == NULL) {
9615
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysSecurityConfigEntryPB)
9616
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9617
0
  } else {
9618
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysSecurityConfigEntryPB)
9619
0
    MergeFrom(*source);
9620
0
  }
9621
0
}
9622
9623
6.44k
void SysSecurityConfigEntryPB::MergeFrom(const SysSecurityConfigEntryPB& from) {
9624
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysSecurityConfigEntryPB)
9625
6.44k
  GOOGLE_DCHECK_NE(&from, this);
9626
6.44k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9627
6.44k
  ::google::protobuf::uint32 cached_has_bits = 0;
9628
6.44k
  (void) cached_has_bits;
9629
9630
6.44k
  if (from.has_roles_version()) {
9631
6.44k
    set_roles_version(from.roles_version());
9632
6.44k
  }
9633
6.44k
}
9634
9635
0
void SysSecurityConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
9636
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysSecurityConfigEntryPB)
9637
0
  if (&from == this) return;
9638
0
  Clear();
9639
0
  MergeFrom(from);
9640
0
}
9641
9642
0
void SysSecurityConfigEntryPB::CopyFrom(const SysSecurityConfigEntryPB& from) {
9643
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysSecurityConfigEntryPB)
9644
0
  if (&from == this) return;
9645
0
  Clear();
9646
0
  MergeFrom(from);
9647
0
}
9648
9649
0
bool SysSecurityConfigEntryPB::IsInitialized() const {
9650
0
  return true;
9651
0
}
9652
9653
0
void SysSecurityConfigEntryPB::Swap(SysSecurityConfigEntryPB* other) {
9654
0
  if (other == this) return;
9655
0
  InternalSwap(other);
9656
0
}
9657
1.94k
void SysSecurityConfigEntryPB::InternalSwap(SysSecurityConfigEntryPB* other) {
9658
1.94k
  using std::swap;
9659
1.94k
  swap(roles_version_, other->roles_version_);
9660
1.94k
  swap(_has_bits_[0], other->_has_bits_[0]);
9661
1.94k
  _internal_metadata_.Swap(&other->_internal_metadata_);
9662
1.94k
  swap(_cached_size_, other->_cached_size_);
9663
1.94k
}
9664
9665
60.2k
::google::protobuf::Metadata SysSecurityConfigEntryPB::GetMetadata() const {
9666
60.2k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
9667
60.2k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
9668
60.2k
}
9669
9670
9671
// ===================================================================
9672
9673
15.8k
void SysYSQLCatalogConfigEntryPB::InitAsDefaultInstance() {
9674
15.8k
}
9675
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9676
const int SysYSQLCatalogConfigEntryPB::kVersionFieldNumber;
9677
const int SysYSQLCatalogConfigEntryPB::kInitdbDoneFieldNumber;
9678
const int SysYSQLCatalogConfigEntryPB::kInitdbErrorFieldNumber;
9679
const int SysYSQLCatalogConfigEntryPB::kTransactionalSysCatalogEnabledFieldNumber;
9680
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9681
9682
SysYSQLCatalogConfigEntryPB::SysYSQLCatalogConfigEntryPB()
9683
22.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9684
7.05k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9685
7.05k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysYSQLCatalogConfigEntryPB();
9686
7.05k
  }
9687
22.8k
  SharedCtor();
9688
  // @@protoc_insertion_point(constructor:yb.master.SysYSQLCatalogConfigEntryPB)
9689
22.8k
}
9690
SysYSQLCatalogConfigEntryPB::SysYSQLCatalogConfigEntryPB(const SysYSQLCatalogConfigEntryPB& from)
9691
  : ::google::protobuf::Message(),
9692
      _internal_metadata_(NULL),
9693
      _has_bits_(from._has_bits_),
9694
0
      _cached_size_(0) {
9695
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9696
0
  initdb_error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9697
0
  if (from.has_initdb_error()) {
9698
0
    initdb_error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.initdb_error_);
9699
0
  }
9700
0
  ::memcpy(&version_, &from.version_,
9701
0
    static_cast<size_t>(reinterpret_cast<char*>(&transactional_sys_catalog_enabled_) -
9702
0
    reinterpret_cast<char*>(&version_)) + sizeof(transactional_sys_catalog_enabled_));
9703
  // @@protoc_insertion_point(copy_constructor:yb.master.SysYSQLCatalogConfigEntryPB)
9704
0
}
9705
9706
22.8k
void SysYSQLCatalogConfigEntryPB::SharedCtor() {
9707
22.8k
  _cached_size_ = 0;
9708
22.8k
  initdb_error_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9709
22.8k
  ::memset(&version_, 0, static_cast<size_t>(
9710
22.8k
      reinterpret_cast<char*>(&transactional_sys_catalog_enabled_) -
9711
22.8k
      reinterpret_cast<char*>(&version_)) + sizeof(transactional_sys_catalog_enabled_));
9712
22.8k
}
9713
9714
5.12k
SysYSQLCatalogConfigEntryPB::~SysYSQLCatalogConfigEntryPB() {
9715
  // @@protoc_insertion_point(destructor:yb.master.SysYSQLCatalogConfigEntryPB)
9716
5.12k
  SharedDtor();
9717
5.12k
}
9718
9719
5.12k
void SysYSQLCatalogConfigEntryPB::SharedDtor() {
9720
5.12k
  initdb_error_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9721
5.12k
}
9722
9723
0
void SysYSQLCatalogConfigEntryPB::SetCachedSize(int size) const {
9724
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9725
0
  _cached_size_ = size;
9726
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9727
0
}
9728
0
const ::google::protobuf::Descriptor* SysYSQLCatalogConfigEntryPB::descriptor() {
9729
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
9730
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9731
0
}
9732
9733
0
const SysYSQLCatalogConfigEntryPB& SysYSQLCatalogConfigEntryPB::default_instance() {
9734
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysYSQLCatalogConfigEntryPB();
9735
0
  return *internal_default_instance();
9736
0
}
9737
9738
0
SysYSQLCatalogConfigEntryPB* SysYSQLCatalogConfigEntryPB::New(::google::protobuf::Arena* arena) const {
9739
0
  SysYSQLCatalogConfigEntryPB* n = new SysYSQLCatalogConfigEntryPB;
9740
0
  if (arena != NULL) {
9741
0
    arena->Own(n);
9742
0
  }
9743
0
  return n;
9744
0
}
9745
9746
0
void SysYSQLCatalogConfigEntryPB::Clear() {
9747
// @@protoc_insertion_point(message_clear_start:yb.master.SysYSQLCatalogConfigEntryPB)
9748
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9749
  // Prevent compiler warnings about cached_has_bits being unused
9750
0
  (void) cached_has_bits;
9751
9752
0
  cached_has_bits = _has_bits_[0];
9753
0
  if (cached_has_bits & 0x00000001u) {
9754
0
    GOOGLE_DCHECK(!initdb_error_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9755
0
    (*initdb_error_.UnsafeRawStringPointer())->clear();
9756
0
  }
9757
0
  if (cached_has_bits & 14u) {
9758
0
    ::memset(&version_, 0, static_cast<size_t>(
9759
0
        reinterpret_cast<char*>(&transactional_sys_catalog_enabled_) -
9760
0
        reinterpret_cast<char*>(&version_)) + sizeof(transactional_sys_catalog_enabled_));
9761
0
  }
9762
0
  _has_bits_.Clear();
9763
0
  _internal_metadata_.Clear();
9764
0
}
9765
9766
bool SysYSQLCatalogConfigEntryPB::MergePartialFromCodedStream(
9767
425
    ::google::protobuf::io::CodedInputStream* input) {
9768
851
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9769
425
  ::google::protobuf::uint32 tag;
9770
  // @@protoc_insertion_point(parse_start:yb.master.SysYSQLCatalogConfigEntryPB)
9771
1.27k
  for (;;) {
9772
1.27k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9773
1.27k
    tag = p.first;
9774
1.27k
    if (!p.second) goto handle_unusual;
9775
851
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9776
      // optional uint64 version = 1;
9777
425
      case 1: {
9778
425
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9779
425
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9780
425
          set_has_version();
9781
425
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9782
425
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9783
425
                 input, &version_)));
9784
0
        } else {
9785
0
          goto handle_unusual;
9786
0
        }
9787
425
        break;
9788
425
      }
9789
9790
      // optional bool initdb_done = 2;
9791
363
      case 2: {
9792
363
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9793
363
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9794
363
          set_has_initdb_done();
9795
363
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9796
363
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9797
363
                 input, &initdb_done_)));
9798
0
        } else {
9799
0
          goto handle_unusual;
9800
0
        }
9801
363
        break;
9802
363
      }
9803
9804
      // optional string initdb_error = 5;
9805
0
      case 5: {
9806
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9807
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
9808
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9809
0
                input, this->mutable_initdb_error()));
9810
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9811
0
            this->initdb_error().data(), static_cast<int>(this->initdb_error().length()),
9812
0
            ::google::protobuf::internal::WireFormat::PARSE,
9813
0
            "yb.master.SysYSQLCatalogConfigEntryPB.initdb_error");
9814
0
        } else {
9815
0
          goto handle_unusual;
9816
0
        }
9817
0
        break;
9818
0
      }
9819
9820
      // optional bool transactional_sys_catalog_enabled = 6;
9821
63
      case 6: {
9822
63
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9823
63
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
9824
63
          set_has_transactional_sys_catalog_enabled();
9825
63
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9826
63
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9827
63
                 input, &transactional_sys_catalog_enabled_)));
9828
0
        } else {
9829
0
          goto handle_unusual;
9830
0
        }
9831
63
        break;
9832
425
      }
9833
9834
0
      default: {
9835
425
      handle_unusual:
9836
425
        if (tag == 0) {
9837
425
          goto success;
9838
425
        }
9839
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9840
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9841
0
        break;
9842
0
      }
9843
851
    }
9844
851
  }
9845
425
success:
9846
  // @@protoc_insertion_point(parse_success:yb.master.SysYSQLCatalogConfigEntryPB)
9847
425
  return true;
9848
0
failure:
9849
  // @@protoc_insertion_point(parse_failure:yb.master.SysYSQLCatalogConfigEntryPB)
9850
0
  return false;
9851
425
#undef DO_
9852
425
}
9853
9854
void SysYSQLCatalogConfigEntryPB::SerializeWithCachedSizes(
9855
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9856
  // @@protoc_insertion_point(serialize_start:yb.master.SysYSQLCatalogConfigEntryPB)
9857
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9858
0
  (void) cached_has_bits;
9859
9860
0
  cached_has_bits = _has_bits_[0];
9861
  // optional uint64 version = 1;
9862
0
  if (cached_has_bits & 0x00000002u) {
9863
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->version(), output);
9864
0
  }
9865
9866
  // optional bool initdb_done = 2;
9867
0
  if (cached_has_bits & 0x00000004u) {
9868
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->initdb_done(), output);
9869
0
  }
9870
9871
  // optional string initdb_error = 5;
9872
0
  if (cached_has_bits & 0x00000001u) {
9873
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9874
0
      this->initdb_error().data(), static_cast<int>(this->initdb_error().length()),
9875
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9876
0
      "yb.master.SysYSQLCatalogConfigEntryPB.initdb_error");
9877
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9878
0
      5, this->initdb_error(), output);
9879
0
  }
9880
9881
  // optional bool transactional_sys_catalog_enabled = 6;
9882
0
  if (cached_has_bits & 0x00000008u) {
9883
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->transactional_sys_catalog_enabled(), output);
9884
0
  }
9885
9886
0
  if (_internal_metadata_.have_unknown_fields()) {
9887
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9888
0
        _internal_metadata_.unknown_fields(), output);
9889
0
  }
9890
  // @@protoc_insertion_point(serialize_end:yb.master.SysYSQLCatalogConfigEntryPB)
9891
0
}
9892
9893
::google::protobuf::uint8* SysYSQLCatalogConfigEntryPB::InternalSerializeWithCachedSizesToArray(
9894
4.25k
    bool deterministic, ::google::protobuf::uint8* target) const {
9895
4.25k
  (void)deterministic; // Unused
9896
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysYSQLCatalogConfigEntryPB)
9897
4.25k
  ::google::protobuf::uint32 cached_has_bits = 0;
9898
4.25k
  (void) cached_has_bits;
9899
9900
4.25k
  cached_has_bits = _has_bits_[0];
9901
  // optional uint64 version = 1;
9902
4.25k
  if (cached_has_bits & 0x00000002u) {
9903
4.25k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->version(), target);
9904
4.25k
  }
9905
9906
  // optional bool initdb_done = 2;
9907
4.25k
  if (cached_has_bits & 0x00000004u) {
9908
722
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->initdb_done(), target);
9909
722
  }
9910
9911
  // optional string initdb_error = 5;
9912
4.25k
  if (cached_has_bits & 0x00000001u) {
9913
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9914
0
      this->initdb_error().data(), static_cast<int>(this->initdb_error().length()),
9915
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9916
0
      "yb.master.SysYSQLCatalogConfigEntryPB.initdb_error");
9917
0
    target =
9918
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9919
0
        5, this->initdb_error(), target);
9920
0
  }
9921
9922
  // optional bool transactional_sys_catalog_enabled = 6;
9923
4.25k
  if (cached_has_bits & 0x00000008u) {
9924
1.94k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->transactional_sys_catalog_enabled(), target);
9925
1.94k
  }
9926
9927
4.25k
  if (_internal_metadata_.have_unknown_fields()) {
9928
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9929
0
        _internal_metadata_.unknown_fields(), target);
9930
0
  }
9931
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysYSQLCatalogConfigEntryPB)
9932
4.25k
  return target;
9933
4.25k
}
9934
9935
4.25k
size_t SysYSQLCatalogConfigEntryPB::ByteSizeLong() const {
9936
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysYSQLCatalogConfigEntryPB)
9937
4.25k
  size_t total_size = 0;
9938
9939
4.25k
  if (_internal_metadata_.have_unknown_fields()) {
9940
0
    total_size +=
9941
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9942
0
        _internal_metadata_.unknown_fields());
9943
0
  }
9944
4.25k
  if (_has_bits_[0 / 32] & 15u) {
9945
    // optional string initdb_error = 5;
9946
4.25k
    if (has_initdb_error()) {
9947
0
      total_size += 1 +
9948
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
9949
0
          this->initdb_error());
9950
0
    }
9951
9952
    // optional uint64 version = 1;
9953
4.25k
    if (has_version()) {
9954
4.25k
      total_size += 1 +
9955
4.25k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9956
4.25k
          this->version());
9957
4.25k
    }
9958
9959
    // optional bool initdb_done = 2;
9960
4.25k
    if (has_initdb_done()) {
9961
722
      total_size += 1 + 1;
9962
722
    }
9963
9964
    // optional bool transactional_sys_catalog_enabled = 6;
9965
4.25k
    if (has_transactional_sys_catalog_enabled()) {
9966
1.94k
      total_size += 1 + 1;
9967
1.94k
    }
9968
9969
4.25k
  }
9970
4.25k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9971
4.25k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9972
4.25k
  _cached_size_ = cached_size;
9973
4.25k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9974
4.25k
  return total_size;
9975
4.25k
}
9976
9977
0
void SysYSQLCatalogConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
9978
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysYSQLCatalogConfigEntryPB)
9979
0
  GOOGLE_DCHECK_NE(&from, this);
9980
0
  const SysYSQLCatalogConfigEntryPB* source =
9981
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysYSQLCatalogConfigEntryPB>(
9982
0
          &from);
9983
0
  if (source == NULL) {
9984
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysYSQLCatalogConfigEntryPB)
9985
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9986
0
  } else {
9987
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysYSQLCatalogConfigEntryPB)
9988
0
    MergeFrom(*source);
9989
0
  }
9990
0
}
9991
9992
2.73k
void SysYSQLCatalogConfigEntryPB::MergeFrom(const SysYSQLCatalogConfigEntryPB& from) {
9993
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysYSQLCatalogConfigEntryPB)
9994
2.73k
  GOOGLE_DCHECK_NE(&from, this);
9995
2.73k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9996
2.73k
  ::google::protobuf::uint32 cached_has_bits = 0;
9997
2.73k
  (void) cached_has_bits;
9998
9999
2.73k
  cached_has_bits = from._has_bits_[0];
10000
2.73k
  if (cached_has_bits & 15u) {
10001
2.73k
    if (cached_has_bits & 0x00000001u) {
10002
0
      set_has_initdb_error();
10003
0
      initdb_error_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.initdb_error_);
10004
0
    }
10005
2.73k
    if (cached_has_bits & 0x00000002u) {
10006
2.73k
      version_ = from.version_;
10007
2.73k
    }
10008
2.73k
    if (cached_has_bits & 0x00000004u) {
10009
724
      initdb_done_ = from.initdb_done_;
10010
724
    }
10011
2.73k
    if (cached_has_bits & 0x00000008u) {
10012
63
      transactional_sys_catalog_enabled_ = from.transactional_sys_catalog_enabled_;
10013
63
    }
10014
2.73k
    _has_bits_[0] |= cached_has_bits;
10015
2.73k
  }
10016
2.73k
}
10017
10018
0
void SysYSQLCatalogConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
10019
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysYSQLCatalogConfigEntryPB)
10020
0
  if (&from == this) return;
10021
0
  Clear();
10022
0
  MergeFrom(from);
10023
0
}
10024
10025
0
void SysYSQLCatalogConfigEntryPB::CopyFrom(const SysYSQLCatalogConfigEntryPB& from) {
10026
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysYSQLCatalogConfigEntryPB)
10027
0
  if (&from == this) return;
10028
0
  Clear();
10029
0
  MergeFrom(from);
10030
0
}
10031
10032
0
bool SysYSQLCatalogConfigEntryPB::IsInitialized() const {
10033
0
  return true;
10034
0
}
10035
10036
0
void SysYSQLCatalogConfigEntryPB::Swap(SysYSQLCatalogConfigEntryPB* other) {
10037
0
  if (other == this) return;
10038
0
  InternalSwap(other);
10039
0
}
10040
1.94k
void SysYSQLCatalogConfigEntryPB::InternalSwap(SysYSQLCatalogConfigEntryPB* other) {
10041
1.94k
  using std::swap;
10042
1.94k
  initdb_error_.Swap(&other->initdb_error_);
10043
1.94k
  swap(version_, other->version_);
10044
1.94k
  swap(initdb_done_, other->initdb_done_);
10045
1.94k
  swap(transactional_sys_catalog_enabled_, other->transactional_sys_catalog_enabled_);
10046
1.94k
  swap(_has_bits_[0], other->_has_bits_[0]);
10047
1.94k
  _internal_metadata_.Swap(&other->_internal_metadata_);
10048
1.94k
  swap(_cached_size_, other->_cached_size_);
10049
1.94k
}
10050
10051
23.8k
::google::protobuf::Metadata SysYSQLCatalogConfigEntryPB::GetMetadata() const {
10052
23.8k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10053
23.8k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
10054
23.8k
}
10055
10056
10057
// ===================================================================
10058
10059
15.8k
void SysTransactionTablesConfigEntryPB::InitAsDefaultInstance() {
10060
15.8k
}
10061
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10062
const int SysTransactionTablesConfigEntryPB::kVersionFieldNumber;
10063
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10064
10065
SysTransactionTablesConfigEntryPB::SysTransactionTablesConfigEntryPB()
10066
21.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10067
5.31k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10068
5.31k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTransactionTablesConfigEntryPB();
10069
5.31k
  }
10070
21.1k
  SharedCtor();
10071
  // @@protoc_insertion_point(constructor:yb.master.SysTransactionTablesConfigEntryPB)
10072
21.1k
}
10073
SysTransactionTablesConfigEntryPB::SysTransactionTablesConfigEntryPB(const SysTransactionTablesConfigEntryPB& from)
10074
  : ::google::protobuf::Message(),
10075
      _internal_metadata_(NULL),
10076
      _has_bits_(from._has_bits_),
10077
0
      _cached_size_(0) {
10078
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10079
0
  version_ = from.version_;
10080
  // @@protoc_insertion_point(copy_constructor:yb.master.SysTransactionTablesConfigEntryPB)
10081
0
}
10082
10083
21.1k
void SysTransactionTablesConfigEntryPB::SharedCtor() {
10084
21.1k
  _cached_size_ = 0;
10085
21.1k
  version_ = GOOGLE_ULONGLONG(0);
10086
21.1k
}
10087
10088
3.37k
SysTransactionTablesConfigEntryPB::~SysTransactionTablesConfigEntryPB() {
10089
  // @@protoc_insertion_point(destructor:yb.master.SysTransactionTablesConfigEntryPB)
10090
3.37k
  SharedDtor();
10091
3.37k
}
10092
10093
3.37k
void SysTransactionTablesConfigEntryPB::SharedDtor() {
10094
3.37k
}
10095
10096
0
void SysTransactionTablesConfigEntryPB::SetCachedSize(int size) const {
10097
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10098
0
  _cached_size_ = size;
10099
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10100
0
}
10101
0
const ::google::protobuf::Descriptor* SysTransactionTablesConfigEntryPB::descriptor() {
10102
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10103
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10104
0
}
10105
10106
0
const SysTransactionTablesConfigEntryPB& SysTransactionTablesConfigEntryPB::default_instance() {
10107
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysTransactionTablesConfigEntryPB();
10108
0
  return *internal_default_instance();
10109
0
}
10110
10111
0
SysTransactionTablesConfigEntryPB* SysTransactionTablesConfigEntryPB::New(::google::protobuf::Arena* arena) const {
10112
0
  SysTransactionTablesConfigEntryPB* n = new SysTransactionTablesConfigEntryPB;
10113
0
  if (arena != NULL) {
10114
0
    arena->Own(n);
10115
0
  }
10116
0
  return n;
10117
0
}
10118
10119
0
void SysTransactionTablesConfigEntryPB::Clear() {
10120
// @@protoc_insertion_point(message_clear_start:yb.master.SysTransactionTablesConfigEntryPB)
10121
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10122
  // Prevent compiler warnings about cached_has_bits being unused
10123
0
  (void) cached_has_bits;
10124
10125
0
  version_ = GOOGLE_ULONGLONG(0);
10126
0
  _has_bits_.Clear();
10127
0
  _internal_metadata_.Clear();
10128
0
}
10129
10130
bool SysTransactionTablesConfigEntryPB::MergePartialFromCodedStream(
10131
425
    ::google::protobuf::io::CodedInputStream* input) {
10132
425
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10133
425
  ::google::protobuf::uint32 tag;
10134
  // @@protoc_insertion_point(parse_start:yb.master.SysTransactionTablesConfigEntryPB)
10135
850
  for (;;) {
10136
850
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10137
850
    tag = p.first;
10138
850
    if (!p.second) goto handle_unusual;
10139
425
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10140
      // optional uint64 version = 1;
10141
425
      case 1: {
10142
425
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10143
425
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10144
425
          set_has_version();
10145
425
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10146
425
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
10147
425
                 input, &version_)));
10148
0
        } else {
10149
0
          goto handle_unusual;
10150
0
        }
10151
425
        break;
10152
425
      }
10153
10154
0
      default: {
10155
425
      handle_unusual:
10156
425
        if (tag == 0) {
10157
425
          goto success;
10158
425
        }
10159
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10160
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10161
0
        break;
10162
0
      }
10163
425
    }
10164
425
  }
10165
425
success:
10166
  // @@protoc_insertion_point(parse_success:yb.master.SysTransactionTablesConfigEntryPB)
10167
425
  return true;
10168
0
failure:
10169
  // @@protoc_insertion_point(parse_failure:yb.master.SysTransactionTablesConfigEntryPB)
10170
0
  return false;
10171
425
#undef DO_
10172
425
}
10173
10174
void SysTransactionTablesConfigEntryPB::SerializeWithCachedSizes(
10175
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10176
  // @@protoc_insertion_point(serialize_start:yb.master.SysTransactionTablesConfigEntryPB)
10177
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10178
0
  (void) cached_has_bits;
10179
10180
0
  cached_has_bits = _has_bits_[0];
10181
  // optional uint64 version = 1;
10182
0
  if (cached_has_bits & 0x00000001u) {
10183
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->version(), output);
10184
0
  }
10185
10186
0
  if (_internal_metadata_.have_unknown_fields()) {
10187
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10188
0
        _internal_metadata_.unknown_fields(), output);
10189
0
  }
10190
  // @@protoc_insertion_point(serialize_end:yb.master.SysTransactionTablesConfigEntryPB)
10191
0
}
10192
10193
::google::protobuf::uint8* SysTransactionTablesConfigEntryPB::InternalSerializeWithCachedSizesToArray(
10194
2.51k
    bool deterministic, ::google::protobuf::uint8* target) const {
10195
2.51k
  (void)deterministic; // Unused
10196
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysTransactionTablesConfigEntryPB)
10197
2.51k
  ::google::protobuf::uint32 cached_has_bits = 0;
10198
2.51k
  (void) cached_has_bits;
10199
10200
2.51k
  cached_has_bits = _has_bits_[0];
10201
  // optional uint64 version = 1;
10202
2.51k
  if (cached_has_bits & 0x00000001u) {
10203
2.51k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->version(), target);
10204
2.51k
  }
10205
10206
2.51k
  if (_internal_metadata_.have_unknown_fields()) {
10207
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10208
0
        _internal_metadata_.unknown_fields(), target);
10209
0
  }
10210
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysTransactionTablesConfigEntryPB)
10211
2.51k
  return target;
10212
2.51k
}
10213
10214
2.51k
size_t SysTransactionTablesConfigEntryPB::ByteSizeLong() const {
10215
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysTransactionTablesConfigEntryPB)
10216
2.51k
  size_t total_size = 0;
10217
10218
2.51k
  if (_internal_metadata_.have_unknown_fields()) {
10219
0
    total_size +=
10220
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10221
0
        _internal_metadata_.unknown_fields());
10222
0
  }
10223
  // optional uint64 version = 1;
10224
2.51k
  if (has_version()) {
10225
2.51k
    total_size += 1 +
10226
2.51k
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
10227
2.51k
        this->version());
10228
2.51k
  }
10229
10230
2.51k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10231
2.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10232
2.51k
  _cached_size_ = cached_size;
10233
2.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10234
2.51k
  return total_size;
10235
2.51k
}
10236
10237
0
void SysTransactionTablesConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
10238
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysTransactionTablesConfigEntryPB)
10239
0
  GOOGLE_DCHECK_NE(&from, this);
10240
0
  const SysTransactionTablesConfigEntryPB* source =
10241
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysTransactionTablesConfigEntryPB>(
10242
0
          &from);
10243
0
  if (source == NULL) {
10244
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysTransactionTablesConfigEntryPB)
10245
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10246
0
  } else {
10247
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysTransactionTablesConfigEntryPB)
10248
0
    MergeFrom(*source);
10249
0
  }
10250
0
}
10251
10252
988
void SysTransactionTablesConfigEntryPB::MergeFrom(const SysTransactionTablesConfigEntryPB& from) {
10253
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysTransactionTablesConfigEntryPB)
10254
988
  GOOGLE_DCHECK_NE(&from, this);
10255
988
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10256
988
  ::google::protobuf::uint32 cached_has_bits = 0;
10257
988
  (void) cached_has_bits;
10258
10259
988
  if (from.has_version()) {
10260
988
    set_version(from.version());
10261
988
  }
10262
988
}
10263
10264
0
void SysTransactionTablesConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
10265
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysTransactionTablesConfigEntryPB)
10266
0
  if (&from == this) return;
10267
0
  Clear();
10268
0
  MergeFrom(from);
10269
0
}
10270
10271
0
void SysTransactionTablesConfigEntryPB::CopyFrom(const SysTransactionTablesConfigEntryPB& from) {
10272
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysTransactionTablesConfigEntryPB)
10273
0
  if (&from == this) return;
10274
0
  Clear();
10275
0
  MergeFrom(from);
10276
0
}
10277
10278
0
bool SysTransactionTablesConfigEntryPB::IsInitialized() const {
10279
0
  return true;
10280
0
}
10281
10282
0
void SysTransactionTablesConfigEntryPB::Swap(SysTransactionTablesConfigEntryPB* other) {
10283
0
  if (other == this) return;
10284
0
  InternalSwap(other);
10285
0
}
10286
1.94k
void SysTransactionTablesConfigEntryPB::InternalSwap(SysTransactionTablesConfigEntryPB* other) {
10287
1.94k
  using std::swap;
10288
1.94k
  swap(version_, other->version_);
10289
1.94k
  swap(_has_bits_[0], other->_has_bits_[0]);
10290
1.94k
  _internal_metadata_.Swap(&other->_internal_metadata_);
10291
1.94k
  swap(_cached_size_, other->_cached_size_);
10292
1.94k
}
10293
10294
5.64k
::google::protobuf::Metadata SysTransactionTablesConfigEntryPB::GetMetadata() const {
10295
5.64k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10296
5.64k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
10297
5.64k
}
10298
10299
10300
// ===================================================================
10301
10302
15.8k
void SysConfigEntryPB::InitAsDefaultInstance() {
10303
15.8k
  ::yb::master::_SysConfigEntryPB_default_instance_.security_config_ = const_cast< ::yb::master::SysSecurityConfigEntryPB*>(
10304
15.8k
      ::yb::master::SysSecurityConfigEntryPB::internal_default_instance());
10305
15.8k
  ::yb::master::_SysConfigEntryPB_default_instance_.ysql_catalog_config_ = const_cast< ::yb::master::SysYSQLCatalogConfigEntryPB*>(
10306
15.8k
      ::yb::master::SysYSQLCatalogConfigEntryPB::internal_default_instance());
10307
15.8k
  ::yb::master::_SysConfigEntryPB_default_instance_.transaction_tables_config_ = const_cast< ::yb::master::SysTransactionTablesConfigEntryPB*>(
10308
15.8k
      ::yb::master::SysTransactionTablesConfigEntryPB::internal_default_instance());
10309
15.8k
}
10310
0
void SysConfigEntryPB::set_allocated_security_config(::yb::master::SysSecurityConfigEntryPB* security_config) {
10311
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
10312
0
  clear_config();
10313
0
  if (security_config) {
10314
0
    ::google::protobuf::Arena* submessage_arena = NULL;
10315
0
    if (message_arena != submessage_arena) {
10316
0
      security_config = ::google::protobuf::internal::GetOwnedMessage(
10317
0
          message_arena, security_config, submessage_arena);
10318
0
    }
10319
0
    set_has_security_config();
10320
0
    config_.security_config_ = security_config;
10321
0
  }
10322
  // @@protoc_insertion_point(field_set_allocated:yb.master.SysConfigEntryPB.security_config)
10323
0
}
10324
0
void SysConfigEntryPB::set_allocated_ysql_catalog_config(::yb::master::SysYSQLCatalogConfigEntryPB* ysql_catalog_config) {
10325
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
10326
0
  clear_config();
10327
0
  if (ysql_catalog_config) {
10328
0
    ::google::protobuf::Arena* submessage_arena = NULL;
10329
0
    if (message_arena != submessage_arena) {
10330
0
      ysql_catalog_config = ::google::protobuf::internal::GetOwnedMessage(
10331
0
          message_arena, ysql_catalog_config, submessage_arena);
10332
0
    }
10333
0
    set_has_ysql_catalog_config();
10334
0
    config_.ysql_catalog_config_ = ysql_catalog_config;
10335
0
  }
10336
  // @@protoc_insertion_point(field_set_allocated:yb.master.SysConfigEntryPB.ysql_catalog_config)
10337
0
}
10338
0
void SysConfigEntryPB::set_allocated_transaction_tables_config(::yb::master::SysTransactionTablesConfigEntryPB* transaction_tables_config) {
10339
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
10340
0
  clear_config();
10341
0
  if (transaction_tables_config) {
10342
0
    ::google::protobuf::Arena* submessage_arena = NULL;
10343
0
    if (message_arena != submessage_arena) {
10344
0
      transaction_tables_config = ::google::protobuf::internal::GetOwnedMessage(
10345
0
          message_arena, transaction_tables_config, submessage_arena);
10346
0
    }
10347
0
    set_has_transaction_tables_config();
10348
0
    config_.transaction_tables_config_ = transaction_tables_config;
10349
0
  }
10350
  // @@protoc_insertion_point(field_set_allocated:yb.master.SysConfigEntryPB.transaction_tables_config)
10351
0
}
10352
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10353
const int SysConfigEntryPB::kSecurityConfigFieldNumber;
10354
const int SysConfigEntryPB::kYsqlCatalogConfigFieldNumber;
10355
const int SysConfigEntryPB::kTransactionTablesConfigFieldNumber;
10356
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10357
10358
SysConfigEntryPB::SysConfigEntryPB()
10359
40.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10360
24.4k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10361
24.4k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysConfigEntryPB();
10362
24.4k
  }
10363
40.2k
  SharedCtor();
10364
  // @@protoc_insertion_point(constructor:yb.master.SysConfigEntryPB)
10365
40.2k
}
10366
SysConfigEntryPB::SysConfigEntryPB(const SysConfigEntryPB& from)
10367
  : ::google::protobuf::Message(),
10368
      _internal_metadata_(NULL),
10369
      _has_bits_(from._has_bits_),
10370
16.0k
      _cached_size_(0) {
10371
16.0k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10372
16.0k
  clear_has_config();
10373
16.0k
  switch (from.config_case()) {
10374
6.02k
    case kSecurityConfig: {
10375
6.02k
      mutable_security_config()->::yb::master::SysSecurityConfigEntryPB::MergeFrom(from.security_config());
10376
6.02k
      break;
10377
0
    }
10378
2.30k
    case kYsqlCatalogConfig: {
10379
2.30k
      mutable_ysql_catalog_config()->::yb::master::SysYSQLCatalogConfigEntryPB::MergeFrom(from.ysql_catalog_config());
10380
2.30k
      break;
10381
0
    }
10382
563
    case kTransactionTablesConfig: {
10383
563
      mutable_transaction_tables_config()->::yb::master::SysTransactionTablesConfigEntryPB::MergeFrom(from.transaction_tables_config());
10384
563
      break;
10385
0
    }
10386
7.12k
    case CONFIG_NOT_SET: {
10387
7.12k
      break;
10388
0
    }
10389
16.0k
  }
10390
  // @@protoc_insertion_point(copy_constructor:yb.master.SysConfigEntryPB)
10391
16.0k
}
10392
10393
40.2k
void SysConfigEntryPB::SharedCtor() {
10394
40.2k
  _cached_size_ = 0;
10395
40.2k
  clear_has_config();
10396
40.2k
}
10397
10398
34.6k
SysConfigEntryPB::~SysConfigEntryPB() {
10399
  // @@protoc_insertion_point(destructor:yb.master.SysConfigEntryPB)
10400
34.6k
  SharedDtor();
10401
34.6k
}
10402
10403
34.6k
void SysConfigEntryPB::SharedDtor() {
10404
34.6k
  if (has_config()) {
10405
11.4k
    clear_config();
10406
11.4k
  }
10407
34.6k
}
10408
10409
0
void SysConfigEntryPB::SetCachedSize(int size) const {
10410
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10411
0
  _cached_size_ = size;
10412
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10413
0
}
10414
0
const ::google::protobuf::Descriptor* SysConfigEntryPB::descriptor() {
10415
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10416
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10417
0
}
10418
10419
0
const SysConfigEntryPB& SysConfigEntryPB::default_instance() {
10420
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysConfigEntryPB();
10421
0
  return *internal_default_instance();
10422
0
}
10423
10424
0
SysConfigEntryPB* SysConfigEntryPB::New(::google::protobuf::Arena* arena) const {
10425
0
  SysConfigEntryPB* n = new SysConfigEntryPB;
10426
0
  if (arena != NULL) {
10427
0
    arena->Own(n);
10428
0
  }
10429
0
  return n;
10430
0
}
10431
10432
31.3k
void SysConfigEntryPB::clear_config() {
10433
// @@protoc_insertion_point(one_of_clear_start:yb.master.SysConfigEntryPB)
10434
31.3k
  switch (config_case()) {
10435
6.89k
    case kSecurityConfig: {
10436
6.89k
      delete config_.security_config_;
10437
6.89k
      break;
10438
0
    }
10439
3.17k
    case kYsqlCatalogConfig: {
10440
3.17k
      delete config_.ysql_catalog_config_;
10441
3.17k
      break;
10442
0
    }
10443
1.42k
    case kTransactionTablesConfig: {
10444
1.42k
      delete config_.transaction_tables_config_;
10445
1.42k
      break;
10446
0
    }
10447
19.8k
    case CONFIG_NOT_SET: {
10448
19.8k
      break;
10449
31.3k
    }
10450
31.3k
  }
10451
31.3k
  _oneof_case_[0] = CONFIG_NOT_SET;
10452
31.3k
}
10453
10454
10455
2.55k
void SysConfigEntryPB::Clear() {
10456
// @@protoc_insertion_point(message_clear_start:yb.master.SysConfigEntryPB)
10457
2.55k
  ::google::protobuf::uint32 cached_has_bits = 0;
10458
  // Prevent compiler warnings about cached_has_bits being unused
10459
2.55k
  (void) cached_has_bits;
10460
10461
2.55k
  clear_config();
10462
2.55k
  _has_bits_.Clear();
10463
2.55k
  _internal_metadata_.Clear();
10464
2.55k
}
10465
10466
bool SysConfigEntryPB::MergePartialFromCodedStream(
10467
1.27k
    ::google::protobuf::io::CodedInputStream* input) {
10468
1.27k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10469
1.27k
  ::google::protobuf::uint32 tag;
10470
  // @@protoc_insertion_point(parse_start:yb.master.SysConfigEntryPB)
10471
2.55k
  for (;;) {
10472
2.55k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10473
2.55k
    tag = p.first;
10474
2.55k
    if (!p.second) goto handle_unusual;
10475
1.27k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10476
      // optional .yb.master.SysSecurityConfigEntryPB security_config = 1;
10477
426
      case 1: {
10478
426
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10479
426
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
10480
426
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10481
426
               input, mutable_security_config()));
10482
0
        } else {
10483
0
          goto handle_unusual;
10484
0
        }
10485
426
        break;
10486
426
      }
10487
10488
      // optional .yb.master.SysYSQLCatalogConfigEntryPB ysql_catalog_config = 2;
10489
425
      case 2: {
10490
425
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10491
425
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10492
425
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10493
425
               input, mutable_ysql_catalog_config()));
10494
0
        } else {
10495
0
          goto handle_unusual;
10496
0
        }
10497
425
        break;
10498
425
      }
10499
10500
      // optional .yb.master.SysTransactionTablesConfigEntryPB transaction_tables_config = 3;
10501
425
      case 3: {
10502
425
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10503
425
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10504
425
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10505
425
               input, mutable_transaction_tables_config()));
10506
0
        } else {
10507
0
          goto handle_unusual;
10508
0
        }
10509
425
        break;
10510
1.27k
      }
10511
10512
0
      default: {
10513
1.27k
      handle_unusual:
10514
1.27k
        if (tag == 0) {
10515
1.27k
          goto success;
10516
1.27k
        }
10517
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10518
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10519
0
        break;
10520
0
      }
10521
1.27k
    }
10522
1.27k
  }
10523
1.27k
success:
10524
  // @@protoc_insertion_point(parse_success:yb.master.SysConfigEntryPB)
10525
1.27k
  return true;
10526
0
failure:
10527
  // @@protoc_insertion_point(parse_failure:yb.master.SysConfigEntryPB)
10528
0
  return false;
10529
1.27k
#undef DO_
10530
1.27k
}
10531
10532
void SysConfigEntryPB::SerializeWithCachedSizes(
10533
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10534
  // @@protoc_insertion_point(serialize_start:yb.master.SysConfigEntryPB)
10535
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10536
0
  (void) cached_has_bits;
10537
10538
0
  switch (config_case()) {
10539
0
    case kSecurityConfig:
10540
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10541
0
        1, *config_.security_config_, output);
10542
0
      break;
10543
0
    case kYsqlCatalogConfig:
10544
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10545
0
        2, *config_.ysql_catalog_config_, output);
10546
0
      break;
10547
0
    case kTransactionTablesConfig:
10548
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10549
0
        3, *config_.transaction_tables_config_, output);
10550
0
      break;
10551
0
    default: ;
10552
0
  }
10553
0
  if (_internal_metadata_.have_unknown_fields()) {
10554
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10555
0
        _internal_metadata_.unknown_fields(), output);
10556
0
  }
10557
  // @@protoc_insertion_point(serialize_end:yb.master.SysConfigEntryPB)
10558
0
}
10559
10560
::google::protobuf::uint8* SysConfigEntryPB::InternalSerializeWithCachedSizesToArray(
10561
14.7k
    bool deterministic, ::google::protobuf::uint8* target) const {
10562
14.7k
  (void)deterministic; // Unused
10563
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysConfigEntryPB)
10564
14.7k
  ::google::protobuf::uint32 cached_has_bits = 0;
10565
14.7k
  (void) cached_has_bits;
10566
10567
14.7k
  switch (config_case()) {
10568
7.97k
    case kSecurityConfig:
10569
7.97k
      target = ::google::protobuf::internal::WireFormatLite::
10570
7.97k
        InternalWriteMessageToArray(
10571
7.97k
          1, *config_.security_config_, deterministic, target);
10572
7.97k
      break;
10573
4.25k
    case kYsqlCatalogConfig:
10574
4.25k
      target = ::google::protobuf::internal::WireFormatLite::
10575
4.25k
        InternalWriteMessageToArray(
10576
4.25k
          2, *config_.ysql_catalog_config_, deterministic, target);
10577
4.25k
      break;
10578
2.51k
    case kTransactionTablesConfig:
10579
2.51k
      target = ::google::protobuf::internal::WireFormatLite::
10580
2.51k
        InternalWriteMessageToArray(
10581
2.51k
          3, *config_.transaction_tables_config_, deterministic, target);
10582
2.51k
      break;
10583
0
    default: ;
10584
14.7k
  }
10585
14.7k
  if (_internal_metadata_.have_unknown_fields()) {
10586
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10587
0
        _internal_metadata_.unknown_fields(), target);
10588
0
  }
10589
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysConfigEntryPB)
10590
14.7k
  return target;
10591
14.7k
}
10592
10593
14.7k
size_t SysConfigEntryPB::ByteSizeLong() const {
10594
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysConfigEntryPB)
10595
14.7k
  size_t total_size = 0;
10596
10597
14.7k
  if (_internal_metadata_.have_unknown_fields()) {
10598
0
    total_size +=
10599
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10600
0
        _internal_metadata_.unknown_fields());
10601
0
  }
10602
14.7k
  switch (config_case()) {
10603
    // optional .yb.master.SysSecurityConfigEntryPB security_config = 1;
10604
7.97k
    case kSecurityConfig: {
10605
7.97k
      total_size += 1 +
10606
7.97k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10607
7.97k
          *config_.security_config_);
10608
7.97k
      break;
10609
0
    }
10610
    // optional .yb.master.SysYSQLCatalogConfigEntryPB ysql_catalog_config = 2;
10611
4.25k
    case kYsqlCatalogConfig: {
10612
4.25k
      total_size += 1 +
10613
4.25k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10614
4.25k
          *config_.ysql_catalog_config_);
10615
4.25k
      break;
10616
0
    }
10617
    // optional .yb.master.SysTransactionTablesConfigEntryPB transaction_tables_config = 3;
10618
2.51k
    case kTransactionTablesConfig: {
10619
2.51k
      total_size += 1 +
10620
2.51k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10621
2.51k
          *config_.transaction_tables_config_);
10622
2.51k
      break;
10623
0
    }
10624
0
    case CONFIG_NOT_SET: {
10625
0
      break;
10626
14.7k
    }
10627
14.7k
  }
10628
14.7k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10629
14.7k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10630
14.7k
  _cached_size_ = cached_size;
10631
14.7k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10632
14.7k
  return total_size;
10633
14.7k
}
10634
10635
0
void SysConfigEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
10636
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysConfigEntryPB)
10637
0
  GOOGLE_DCHECK_NE(&from, this);
10638
0
  const SysConfigEntryPB* source =
10639
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysConfigEntryPB>(
10640
0
          &from);
10641
0
  if (source == NULL) {
10642
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysConfigEntryPB)
10643
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10644
0
  } else {
10645
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysConfigEntryPB)
10646
0
    MergeFrom(*source);
10647
0
  }
10648
0
}
10649
10650
1.27k
void SysConfigEntryPB::MergeFrom(const SysConfigEntryPB& from) {
10651
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysConfigEntryPB)
10652
1.27k
  GOOGLE_DCHECK_NE(&from, this);
10653
1.27k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10654
1.27k
  ::google::protobuf::uint32 cached_has_bits = 0;
10655
1.27k
  (void) cached_has_bits;
10656
10657
1.27k
  switch (from.config_case()) {
10658
426
    case kSecurityConfig: {
10659
426
      mutable_security_config()->::yb::master::SysSecurityConfigEntryPB::MergeFrom(from.security_config());
10660
426
      break;
10661
0
    }
10662
425
    case kYsqlCatalogConfig: {
10663
425
      mutable_ysql_catalog_config()->::yb::master::SysYSQLCatalogConfigEntryPB::MergeFrom(from.ysql_catalog_config());
10664
425
      break;
10665
0
    }
10666
425
    case kTransactionTablesConfig: {
10667
425
      mutable_transaction_tables_config()->::yb::master::SysTransactionTablesConfigEntryPB::MergeFrom(from.transaction_tables_config());
10668
425
      break;
10669
0
    }
10670
0
    case CONFIG_NOT_SET: {
10671
0
      break;
10672
0
    }
10673
1.27k
  }
10674
1.27k
}
10675
10676
0
void SysConfigEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
10677
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysConfigEntryPB)
10678
0
  if (&from == this) return;
10679
0
  Clear();
10680
0
  MergeFrom(from);
10681
0
}
10682
10683
1.27k
void SysConfigEntryPB::CopyFrom(const SysConfigEntryPB& from) {
10684
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysConfigEntryPB)
10685
1.27k
  if (&from == this) return;
10686
1.27k
  Clear();
10687
1.27k
  MergeFrom(from);
10688
1.27k
}
10689
10690
16.0k
bool SysConfigEntryPB::IsInitialized() const {
10691
16.0k
  return true;
10692
16.0k
}
10693
10694
0
void SysConfigEntryPB::Swap(SysConfigEntryPB* other) {
10695
0
  if (other == this) return;
10696
0
  InternalSwap(other);
10697
0
}
10698
48.0k
void SysConfigEntryPB::InternalSwap(SysConfigEntryPB* other) {
10699
48.0k
  using std::swap;
10700
48.0k
  swap(config_, other->config_);
10701
48.0k
  swap(_oneof_case_[0], other->_oneof_case_[0]);
10702
48.0k
  swap(_has_bits_[0], other->_has_bits_[0]);
10703
48.0k
  _internal_metadata_.Swap(&other->_internal_metadata_);
10704
48.0k
  swap(_cached_size_, other->_cached_size_);
10705
48.0k
}
10706
10707
153k
::google::protobuf::Metadata SysConfigEntryPB::GetMetadata() const {
10708
153k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10709
153k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
10710
153k
}
10711
10712
10713
// ===================================================================
10714
10715
15.8k
void SysRowEntry::InitAsDefaultInstance() {
10716
15.8k
}
10717
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10718
const int SysRowEntry::kTypeFieldNumber;
10719
const int SysRowEntry::kIdFieldNumber;
10720
const int SysRowEntry::kDataFieldNumber;
10721
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10722
10723
SysRowEntry::SysRowEntry()
10724
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10725
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10726
0
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntry();
10727
0
  }
10728
15.8k
  SharedCtor();
10729
  // @@protoc_insertion_point(constructor:yb.master.SysRowEntry)
10730
15.8k
}
10731
SysRowEntry::SysRowEntry(const SysRowEntry& from)
10732
  : ::google::protobuf::Message(),
10733
      _internal_metadata_(NULL),
10734
      _has_bits_(from._has_bits_),
10735
0
      _cached_size_(0) {
10736
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10737
0
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10738
0
  if (from.has_id()) {
10739
0
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
10740
0
  }
10741
0
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10742
0
  if (from.has_data()) {
10743
0
    data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
10744
0
  }
10745
0
  type_ = from.type_;
10746
  // @@protoc_insertion_point(copy_constructor:yb.master.SysRowEntry)
10747
0
}
10748
10749
15.8k
void SysRowEntry::SharedCtor() {
10750
15.8k
  _cached_size_ = 0;
10751
15.8k
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10752
15.8k
  data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10753
15.8k
  type_ = 0;
10754
15.8k
}
10755
10756
0
SysRowEntry::~SysRowEntry() {
10757
  // @@protoc_insertion_point(destructor:yb.master.SysRowEntry)
10758
0
  SharedDtor();
10759
0
}
10760
10761
0
void SysRowEntry::SharedDtor() {
10762
0
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10763
0
  data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
10764
0
}
10765
10766
0
void SysRowEntry::SetCachedSize(int size) const {
10767
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10768
0
  _cached_size_ = size;
10769
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10770
0
}
10771
0
const ::google::protobuf::Descriptor* SysRowEntry::descriptor() {
10772
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
10773
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10774
0
}
10775
10776
0
const SysRowEntry& SysRowEntry::default_instance() {
10777
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntry();
10778
0
  return *internal_default_instance();
10779
0
}
10780
10781
0
SysRowEntry* SysRowEntry::New(::google::protobuf::Arena* arena) const {
10782
0
  SysRowEntry* n = new SysRowEntry;
10783
0
  if (arena != NULL) {
10784
0
    arena->Own(n);
10785
0
  }
10786
0
  return n;
10787
0
}
10788
10789
0
void SysRowEntry::Clear() {
10790
// @@protoc_insertion_point(message_clear_start:yb.master.SysRowEntry)
10791
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10792
  // Prevent compiler warnings about cached_has_bits being unused
10793
0
  (void) cached_has_bits;
10794
10795
0
  cached_has_bits = _has_bits_[0];
10796
0
  if (cached_has_bits & 3u) {
10797
0
    if (cached_has_bits & 0x00000001u) {
10798
0
      GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10799
0
      (*id_.UnsafeRawStringPointer())->clear();
10800
0
    }
10801
0
    if (cached_has_bits & 0x00000002u) {
10802
0
      GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
10803
0
      (*data_.UnsafeRawStringPointer())->clear();
10804
0
    }
10805
0
  }
10806
0
  type_ = 0;
10807
0
  _has_bits_.Clear();
10808
0
  _internal_metadata_.Clear();
10809
0
}
10810
10811
bool SysRowEntry::MergePartialFromCodedStream(
10812
0
    ::google::protobuf::io::CodedInputStream* input) {
10813
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10814
0
  ::google::protobuf::uint32 tag;
10815
  // @@protoc_insertion_point(parse_start:yb.master.SysRowEntry)
10816
0
  for (;;) {
10817
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10818
0
    tag = p.first;
10819
0
    if (!p.second) goto handle_unusual;
10820
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10821
      // optional .yb.master.SysRowEntryType type = 1;
10822
0
      case 1: {
10823
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10824
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10825
0
          int value;
10826
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10827
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
10828
0
                 input, &value)));
10829
0
          if (::yb::master::SysRowEntryType_IsValid(value)) {
10830
0
            set_type(static_cast< ::yb::master::SysRowEntryType >(value));
10831
0
          } else {
10832
0
            mutable_unknown_fields()->AddVarint(
10833
0
                1, static_cast< ::google::protobuf::uint64>(value));
10834
0
          }
10835
0
        } else {
10836
0
          goto handle_unusual;
10837
0
        }
10838
0
        break;
10839
0
      }
10840
10841
      // optional string id = 2;
10842
0
      case 2: {
10843
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10844
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10845
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
10846
0
                input, this->mutable_id()));
10847
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10848
0
            this->id().data(), static_cast<int>(this->id().length()),
10849
0
            ::google::protobuf::internal::WireFormat::PARSE,
10850
0
            "yb.master.SysRowEntry.id");
10851
0
        } else {
10852
0
          goto handle_unusual;
10853
0
        }
10854
0
        break;
10855
0
      }
10856
10857
      // optional bytes data = 3;
10858
0
      case 3: {
10859
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10860
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10861
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
10862
0
                input, this->mutable_data()));
10863
0
        } else {
10864
0
          goto handle_unusual;
10865
0
        }
10866
0
        break;
10867
0
      }
10868
10869
0
      default: {
10870
0
      handle_unusual:
10871
0
        if (tag == 0) {
10872
0
          goto success;
10873
0
        }
10874
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10875
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10876
0
        break;
10877
0
      }
10878
0
    }
10879
0
  }
10880
0
success:
10881
  // @@protoc_insertion_point(parse_success:yb.master.SysRowEntry)
10882
0
  return true;
10883
0
failure:
10884
  // @@protoc_insertion_point(parse_failure:yb.master.SysRowEntry)
10885
0
  return false;
10886
0
#undef DO_
10887
0
}
10888
10889
void SysRowEntry::SerializeWithCachedSizes(
10890
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10891
  // @@protoc_insertion_point(serialize_start:yb.master.SysRowEntry)
10892
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10893
0
  (void) cached_has_bits;
10894
10895
0
  cached_has_bits = _has_bits_[0];
10896
  // optional .yb.master.SysRowEntryType type = 1;
10897
0
  if (cached_has_bits & 0x00000004u) {
10898
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
10899
0
      1, this->type(), output);
10900
0
  }
10901
10902
  // optional string id = 2;
10903
0
  if (cached_has_bits & 0x00000001u) {
10904
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10905
0
      this->id().data(), static_cast<int>(this->id().length()),
10906
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10907
0
      "yb.master.SysRowEntry.id");
10908
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10909
0
      2, this->id(), output);
10910
0
  }
10911
10912
  // optional bytes data = 3;
10913
0
  if (cached_has_bits & 0x00000002u) {
10914
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
10915
0
      3, this->data(), output);
10916
0
  }
10917
10918
0
  if (_internal_metadata_.have_unknown_fields()) {
10919
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10920
0
        _internal_metadata_.unknown_fields(), output);
10921
0
  }
10922
  // @@protoc_insertion_point(serialize_end:yb.master.SysRowEntry)
10923
0
}
10924
10925
::google::protobuf::uint8* SysRowEntry::InternalSerializeWithCachedSizesToArray(
10926
0
    bool deterministic, ::google::protobuf::uint8* target) const {
10927
0
  (void)deterministic; // Unused
10928
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysRowEntry)
10929
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10930
0
  (void) cached_has_bits;
10931
10932
0
  cached_has_bits = _has_bits_[0];
10933
  // optional .yb.master.SysRowEntryType type = 1;
10934
0
  if (cached_has_bits & 0x00000004u) {
10935
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
10936
0
      1, this->type(), target);
10937
0
  }
10938
10939
  // optional string id = 2;
10940
0
  if (cached_has_bits & 0x00000001u) {
10941
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10942
0
      this->id().data(), static_cast<int>(this->id().length()),
10943
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
10944
0
      "yb.master.SysRowEntry.id");
10945
0
    target =
10946
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10947
0
        2, this->id(), target);
10948
0
  }
10949
10950
  // optional bytes data = 3;
10951
0
  if (cached_has_bits & 0x00000002u) {
10952
0
    target =
10953
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
10954
0
        3, this->data(), target);
10955
0
  }
10956
10957
0
  if (_internal_metadata_.have_unknown_fields()) {
10958
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10959
0
        _internal_metadata_.unknown_fields(), target);
10960
0
  }
10961
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysRowEntry)
10962
0
  return target;
10963
0
}
10964
10965
0
size_t SysRowEntry::ByteSizeLong() const {
10966
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysRowEntry)
10967
0
  size_t total_size = 0;
10968
10969
0
  if (_internal_metadata_.have_unknown_fields()) {
10970
0
    total_size +=
10971
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10972
0
        _internal_metadata_.unknown_fields());
10973
0
  }
10974
0
  if (_has_bits_[0 / 32] & 7u) {
10975
    // optional string id = 2;
10976
0
    if (has_id()) {
10977
0
      total_size += 1 +
10978
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
10979
0
          this->id());
10980
0
    }
10981
10982
    // optional bytes data = 3;
10983
0
    if (has_data()) {
10984
0
      total_size += 1 +
10985
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
10986
0
          this->data());
10987
0
    }
10988
10989
    // optional .yb.master.SysRowEntryType type = 1;
10990
0
    if (has_type()) {
10991
0
      total_size += 1 +
10992
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
10993
0
    }
10994
10995
0
  }
10996
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10997
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10998
0
  _cached_size_ = cached_size;
10999
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11000
0
  return total_size;
11001
0
}
11002
11003
0
void SysRowEntry::MergeFrom(const ::google::protobuf::Message& from) {
11004
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysRowEntry)
11005
0
  GOOGLE_DCHECK_NE(&from, this);
11006
0
  const SysRowEntry* source =
11007
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysRowEntry>(
11008
0
          &from);
11009
0
  if (source == NULL) {
11010
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysRowEntry)
11011
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11012
0
  } else {
11013
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysRowEntry)
11014
0
    MergeFrom(*source);
11015
0
  }
11016
0
}
11017
11018
0
void SysRowEntry::MergeFrom(const SysRowEntry& from) {
11019
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysRowEntry)
11020
0
  GOOGLE_DCHECK_NE(&from, this);
11021
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11022
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11023
0
  (void) cached_has_bits;
11024
11025
0
  cached_has_bits = from._has_bits_[0];
11026
0
  if (cached_has_bits & 7u) {
11027
0
    if (cached_has_bits & 0x00000001u) {
11028
0
      set_has_id();
11029
0
      id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
11030
0
    }
11031
0
    if (cached_has_bits & 0x00000002u) {
11032
0
      set_has_data();
11033
0
      data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
11034
0
    }
11035
0
    if (cached_has_bits & 0x00000004u) {
11036
0
      type_ = from.type_;
11037
0
    }
11038
0
    _has_bits_[0] |= cached_has_bits;
11039
0
  }
11040
0
}
11041
11042
0
void SysRowEntry::CopyFrom(const ::google::protobuf::Message& from) {
11043
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysRowEntry)
11044
0
  if (&from == this) return;
11045
0
  Clear();
11046
0
  MergeFrom(from);
11047
0
}
11048
11049
0
void SysRowEntry::CopyFrom(const SysRowEntry& from) {
11050
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysRowEntry)
11051
0
  if (&from == this) return;
11052
0
  Clear();
11053
0
  MergeFrom(from);
11054
0
}
11055
11056
0
bool SysRowEntry::IsInitialized() const {
11057
0
  return true;
11058
0
}
11059
11060
0
void SysRowEntry::Swap(SysRowEntry* other) {
11061
0
  if (other == this) return;
11062
0
  InternalSwap(other);
11063
0
}
11064
0
void SysRowEntry::InternalSwap(SysRowEntry* other) {
11065
0
  using std::swap;
11066
0
  id_.Swap(&other->id_);
11067
0
  data_.Swap(&other->data_);
11068
0
  swap(type_, other->type_);
11069
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11070
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11071
0
  swap(_cached_size_, other->_cached_size_);
11072
0
}
11073
11074
0
::google::protobuf::Metadata SysRowEntry::GetMetadata() const {
11075
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11076
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
11077
0
}
11078
11079
11080
// ===================================================================
11081
11082
15.8k
void SysRowEntries::InitAsDefaultInstance() {
11083
15.8k
}
11084
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11085
const int SysRowEntries::kEntriesFieldNumber;
11086
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11087
11088
SysRowEntries::SysRowEntries()
11089
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11090
1
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11091
1
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntries();
11092
1
  }
11093
15.8k
  SharedCtor();
11094
  // @@protoc_insertion_point(constructor:yb.master.SysRowEntries)
11095
15.8k
}
11096
SysRowEntries::SysRowEntries(const SysRowEntries& from)
11097
  : ::google::protobuf::Message(),
11098
      _internal_metadata_(NULL),
11099
      _has_bits_(from._has_bits_),
11100
      _cached_size_(0),
11101
0
      entries_(from.entries_) {
11102
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11103
  // @@protoc_insertion_point(copy_constructor:yb.master.SysRowEntries)
11104
0
}
11105
11106
15.8k
void SysRowEntries::SharedCtor() {
11107
15.8k
  _cached_size_ = 0;
11108
15.8k
}
11109
11110
1
SysRowEntries::~SysRowEntries() {
11111
  // @@protoc_insertion_point(destructor:yb.master.SysRowEntries)
11112
1
  SharedDtor();
11113
1
}
11114
11115
1
void SysRowEntries::SharedDtor() {
11116
1
}
11117
11118
0
void SysRowEntries::SetCachedSize(int size) const {
11119
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11120
0
  _cached_size_ = size;
11121
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11122
0
}
11123
0
const ::google::protobuf::Descriptor* SysRowEntries::descriptor() {
11124
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11125
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11126
0
}
11127
11128
0
const SysRowEntries& SysRowEntries::default_instance() {
11129
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysRowEntries();
11130
0
  return *internal_default_instance();
11131
0
}
11132
11133
0
SysRowEntries* SysRowEntries::New(::google::protobuf::Arena* arena) const {
11134
0
  SysRowEntries* n = new SysRowEntries;
11135
0
  if (arena != NULL) {
11136
0
    arena->Own(n);
11137
0
  }
11138
0
  return n;
11139
0
}
11140
11141
0
void SysRowEntries::Clear() {
11142
// @@protoc_insertion_point(message_clear_start:yb.master.SysRowEntries)
11143
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11144
  // Prevent compiler warnings about cached_has_bits being unused
11145
0
  (void) cached_has_bits;
11146
11147
0
  entries_.Clear();
11148
0
  _has_bits_.Clear();
11149
0
  _internal_metadata_.Clear();
11150
0
}
11151
11152
bool SysRowEntries::MergePartialFromCodedStream(
11153
0
    ::google::protobuf::io::CodedInputStream* input) {
11154
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11155
0
  ::google::protobuf::uint32 tag;
11156
  // @@protoc_insertion_point(parse_start:yb.master.SysRowEntries)
11157
0
  for (;;) {
11158
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11159
0
    tag = p.first;
11160
0
    if (!p.second) goto handle_unusual;
11161
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11162
      // repeated .yb.master.SysRowEntry entries = 1;
11163
0
      case 1: {
11164
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11165
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11166
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_entries()));
11167
0
        } else {
11168
0
          goto handle_unusual;
11169
0
        }
11170
0
        break;
11171
0
      }
11172
11173
0
      default: {
11174
0
      handle_unusual:
11175
0
        if (tag == 0) {
11176
0
          goto success;
11177
0
        }
11178
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11179
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11180
0
        break;
11181
0
      }
11182
0
    }
11183
0
  }
11184
0
success:
11185
  // @@protoc_insertion_point(parse_success:yb.master.SysRowEntries)
11186
0
  return true;
11187
0
failure:
11188
  // @@protoc_insertion_point(parse_failure:yb.master.SysRowEntries)
11189
0
  return false;
11190
0
#undef DO_
11191
0
}
11192
11193
void SysRowEntries::SerializeWithCachedSizes(
11194
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11195
  // @@protoc_insertion_point(serialize_start:yb.master.SysRowEntries)
11196
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11197
0
  (void) cached_has_bits;
11198
11199
  // repeated .yb.master.SysRowEntry entries = 1;
11200
0
  for (unsigned int i = 0,
11201
0
      n = static_cast<unsigned int>(this->entries_size()); i < n; i++) {
11202
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11203
0
      1, this->entries(static_cast<int>(i)), output);
11204
0
  }
11205
11206
0
  if (_internal_metadata_.have_unknown_fields()) {
11207
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11208
0
        _internal_metadata_.unknown_fields(), output);
11209
0
  }
11210
  // @@protoc_insertion_point(serialize_end:yb.master.SysRowEntries)
11211
0
}
11212
11213
::google::protobuf::uint8* SysRowEntries::InternalSerializeWithCachedSizesToArray(
11214
0
    bool deterministic, ::google::protobuf::uint8* target) const {
11215
0
  (void)deterministic; // Unused
11216
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysRowEntries)
11217
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11218
0
  (void) cached_has_bits;
11219
11220
  // repeated .yb.master.SysRowEntry entries = 1;
11221
0
  for (unsigned int i = 0,
11222
0
      n = static_cast<unsigned int>(this->entries_size()); i < n; i++) {
11223
0
    target = ::google::protobuf::internal::WireFormatLite::
11224
0
      InternalWriteMessageToArray(
11225
0
        1, this->entries(static_cast<int>(i)), deterministic, target);
11226
0
  }
11227
11228
0
  if (_internal_metadata_.have_unknown_fields()) {
11229
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11230
0
        _internal_metadata_.unknown_fields(), target);
11231
0
  }
11232
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysRowEntries)
11233
0
  return target;
11234
0
}
11235
11236
0
size_t SysRowEntries::ByteSizeLong() const {
11237
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysRowEntries)
11238
0
  size_t total_size = 0;
11239
11240
0
  if (_internal_metadata_.have_unknown_fields()) {
11241
0
    total_size +=
11242
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11243
0
        _internal_metadata_.unknown_fields());
11244
0
  }
11245
  // repeated .yb.master.SysRowEntry entries = 1;
11246
0
  {
11247
0
    unsigned int count = static_cast<unsigned int>(this->entries_size());
11248
0
    total_size += 1UL * count;
11249
0
    for (unsigned int i = 0; i < count; i++) {
11250
0
      total_size +=
11251
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
11252
0
          this->entries(static_cast<int>(i)));
11253
0
    }
11254
0
  }
11255
11256
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11257
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11258
0
  _cached_size_ = cached_size;
11259
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11260
0
  return total_size;
11261
0
}
11262
11263
0
void SysRowEntries::MergeFrom(const ::google::protobuf::Message& from) {
11264
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysRowEntries)
11265
0
  GOOGLE_DCHECK_NE(&from, this);
11266
0
  const SysRowEntries* source =
11267
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysRowEntries>(
11268
0
          &from);
11269
0
  if (source == NULL) {
11270
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysRowEntries)
11271
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11272
0
  } else {
11273
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysRowEntries)
11274
0
    MergeFrom(*source);
11275
0
  }
11276
0
}
11277
11278
0
void SysRowEntries::MergeFrom(const SysRowEntries& from) {
11279
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysRowEntries)
11280
0
  GOOGLE_DCHECK_NE(&from, this);
11281
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11282
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11283
0
  (void) cached_has_bits;
11284
11285
0
  entries_.MergeFrom(from.entries_);
11286
0
}
11287
11288
0
void SysRowEntries::CopyFrom(const ::google::protobuf::Message& from) {
11289
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysRowEntries)
11290
0
  if (&from == this) return;
11291
0
  Clear();
11292
0
  MergeFrom(from);
11293
0
}
11294
11295
0
void SysRowEntries::CopyFrom(const SysRowEntries& from) {
11296
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysRowEntries)
11297
0
  if (&from == this) return;
11298
0
  Clear();
11299
0
  MergeFrom(from);
11300
0
}
11301
11302
0
bool SysRowEntries::IsInitialized() const {
11303
0
  return true;
11304
0
}
11305
11306
0
void SysRowEntries::Swap(SysRowEntries* other) {
11307
0
  if (other == this) return;
11308
0
  InternalSwap(other);
11309
0
}
11310
0
void SysRowEntries::InternalSwap(SysRowEntries* other) {
11311
0
  using std::swap;
11312
0
  entries_.InternalSwap(&other->entries_);
11313
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11314
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11315
0
  swap(_cached_size_, other->_cached_size_);
11316
0
}
11317
11318
0
::google::protobuf::Metadata SysRowEntries::GetMetadata() const {
11319
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11320
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
11321
0
}
11322
11323
11324
// ===================================================================
11325
11326
15.8k
void DdlLogEntryPB::InitAsDefaultInstance() {
11327
15.8k
}
11328
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11329
const int DdlLogEntryPB::kTableTypeFieldNumber;
11330
const int DdlLogEntryPB::kNamespaceNameFieldNumber;
11331
const int DdlLogEntryPB::kNamespaceIdFieldNumber;
11332
const int DdlLogEntryPB::kTableNameFieldNumber;
11333
const int DdlLogEntryPB::kTableIdFieldNumber;
11334
const int DdlLogEntryPB::kActionFieldNumber;
11335
const int DdlLogEntryPB::kTimeFieldNumber;
11336
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11337
11338
DdlLogEntryPB::DdlLogEntryPB()
11339
20.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11340
4.61k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11341
4.61k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsDdlLogEntryPB();
11342
4.61k
  }
11343
20.4k
  SharedCtor();
11344
  // @@protoc_insertion_point(constructor:yb.master.DdlLogEntryPB)
11345
20.4k
}
11346
DdlLogEntryPB::DdlLogEntryPB(const DdlLogEntryPB& from)
11347
  : ::google::protobuf::Message(),
11348
      _internal_metadata_(NULL),
11349
      _has_bits_(from._has_bits_),
11350
0
      _cached_size_(0) {
11351
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11352
0
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11353
0
  if (from.has_namespace_name()) {
11354
0
    namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
11355
0
  }
11356
0
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11357
0
  if (from.has_namespace_id()) {
11358
0
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
11359
0
  }
11360
0
  table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11361
0
  if (from.has_table_name()) {
11362
0
    table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
11363
0
  }
11364
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11365
0
  if (from.has_table_id()) {
11366
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
11367
0
  }
11368
0
  action_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11369
0
  if (from.has_action()) {
11370
0
    action_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.action_);
11371
0
  }
11372
0
  ::memcpy(&time_, &from.time_,
11373
0
    static_cast<size_t>(reinterpret_cast<char*>(&table_type_) -
11374
0
    reinterpret_cast<char*>(&time_)) + sizeof(table_type_));
11375
  // @@protoc_insertion_point(copy_constructor:yb.master.DdlLogEntryPB)
11376
0
}
11377
11378
20.4k
void DdlLogEntryPB::SharedCtor() {
11379
20.4k
  _cached_size_ = 0;
11380
20.4k
  namespace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11381
20.4k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11382
20.4k
  table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11383
20.4k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11384
20.4k
  action_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11385
20.4k
  time_ = GOOGLE_ULONGLONG(0);
11386
20.4k
  table_type_ = 2;
11387
20.4k
}
11388
11389
3.62k
DdlLogEntryPB::~DdlLogEntryPB() {
11390
  // @@protoc_insertion_point(destructor:yb.master.DdlLogEntryPB)
11391
3.62k
  SharedDtor();
11392
3.62k
}
11393
11394
3.62k
void DdlLogEntryPB::SharedDtor() {
11395
3.62k
  namespace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11396
3.62k
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11397
3.62k
  table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11398
3.62k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11399
3.62k
  action_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11400
3.62k
}
11401
11402
0
void DdlLogEntryPB::SetCachedSize(int size) const {
11403
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11404
0
  _cached_size_ = size;
11405
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11406
0
}
11407
0
const ::google::protobuf::Descriptor* DdlLogEntryPB::descriptor() {
11408
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11409
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11410
0
}
11411
11412
0
const DdlLogEntryPB& DdlLogEntryPB::default_instance() {
11413
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsDdlLogEntryPB();
11414
0
  return *internal_default_instance();
11415
0
}
11416
11417
0
DdlLogEntryPB* DdlLogEntryPB::New(::google::protobuf::Arena* arena) const {
11418
0
  DdlLogEntryPB* n = new DdlLogEntryPB;
11419
0
  if (arena != NULL) {
11420
0
    arena->Own(n);
11421
0
  }
11422
0
  return n;
11423
0
}
11424
11425
0
void DdlLogEntryPB::Clear() {
11426
// @@protoc_insertion_point(message_clear_start:yb.master.DdlLogEntryPB)
11427
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11428
  // Prevent compiler warnings about cached_has_bits being unused
11429
0
  (void) cached_has_bits;
11430
11431
0
  cached_has_bits = _has_bits_[0];
11432
0
  if (cached_has_bits & 31u) {
11433
0
    if (cached_has_bits & 0x00000001u) {
11434
0
      GOOGLE_DCHECK(!namespace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11435
0
      (*namespace_name_.UnsafeRawStringPointer())->clear();
11436
0
    }
11437
0
    if (cached_has_bits & 0x00000002u) {
11438
0
      GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11439
0
      (*namespace_id_.UnsafeRawStringPointer())->clear();
11440
0
    }
11441
0
    if (cached_has_bits & 0x00000004u) {
11442
0
      GOOGLE_DCHECK(!table_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11443
0
      (*table_name_.UnsafeRawStringPointer())->clear();
11444
0
    }
11445
0
    if (cached_has_bits & 0x00000008u) {
11446
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11447
0
      (*table_id_.UnsafeRawStringPointer())->clear();
11448
0
    }
11449
0
    if (cached_has_bits & 0x00000010u) {
11450
0
      GOOGLE_DCHECK(!action_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
11451
0
      (*action_.UnsafeRawStringPointer())->clear();
11452
0
    }
11453
0
  }
11454
0
  if (cached_has_bits & 96u) {
11455
0
    time_ = GOOGLE_ULONGLONG(0);
11456
0
    table_type_ = 2;
11457
0
  }
11458
0
  _has_bits_.Clear();
11459
0
  _internal_metadata_.Clear();
11460
0
}
11461
11462
bool DdlLogEntryPB::MergePartialFromCodedStream(
11463
0
    ::google::protobuf::io::CodedInputStream* input) {
11464
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11465
0
  ::google::protobuf::uint32 tag;
11466
  // @@protoc_insertion_point(parse_start:yb.master.DdlLogEntryPB)
11467
0
  for (;;) {
11468
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11469
0
    tag = p.first;
11470
0
    if (!p.second) goto handle_unusual;
11471
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11472
      // optional .yb.TableType table_type = 1;
11473
0
      case 1: {
11474
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11475
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11476
0
          int value;
11477
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11478
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11479
0
                 input, &value)));
11480
0
          if (::yb::TableType_IsValid(value)) {
11481
0
            set_table_type(static_cast< ::yb::TableType >(value));
11482
0
          } else {
11483
0
            mutable_unknown_fields()->AddVarint(
11484
0
                1, static_cast< ::google::protobuf::uint64>(value));
11485
0
          }
11486
0
        } else {
11487
0
          goto handle_unusual;
11488
0
        }
11489
0
        break;
11490
0
      }
11491
11492
      // optional string namespace_name = 2;
11493
0
      case 2: {
11494
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11495
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11496
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11497
0
                input, this->mutable_namespace_name()));
11498
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11499
0
            this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
11500
0
            ::google::protobuf::internal::WireFormat::PARSE,
11501
0
            "yb.master.DdlLogEntryPB.namespace_name");
11502
0
        } else {
11503
0
          goto handle_unusual;
11504
0
        }
11505
0
        break;
11506
0
      }
11507
11508
      // optional string namespace_id = 3;
11509
0
      case 3: {
11510
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11511
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
11512
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11513
0
                input, this->mutable_namespace_id()));
11514
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11515
0
            this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
11516
0
            ::google::protobuf::internal::WireFormat::PARSE,
11517
0
            "yb.master.DdlLogEntryPB.namespace_id");
11518
0
        } else {
11519
0
          goto handle_unusual;
11520
0
        }
11521
0
        break;
11522
0
      }
11523
11524
      // optional string table_name = 4;
11525
0
      case 4: {
11526
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11527
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
11528
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11529
0
                input, this->mutable_table_name()));
11530
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11531
0
            this->table_name().data(), static_cast<int>(this->table_name().length()),
11532
0
            ::google::protobuf::internal::WireFormat::PARSE,
11533
0
            "yb.master.DdlLogEntryPB.table_name");
11534
0
        } else {
11535
0
          goto handle_unusual;
11536
0
        }
11537
0
        break;
11538
0
      }
11539
11540
      // optional string table_id = 5;
11541
0
      case 5: {
11542
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11543
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
11544
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11545
0
                input, this->mutable_table_id()));
11546
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11547
0
            this->table_id().data(), static_cast<int>(this->table_id().length()),
11548
0
            ::google::protobuf::internal::WireFormat::PARSE,
11549
0
            "yb.master.DdlLogEntryPB.table_id");
11550
0
        } else {
11551
0
          goto handle_unusual;
11552
0
        }
11553
0
        break;
11554
0
      }
11555
11556
      // optional string action = 6;
11557
0
      case 6: {
11558
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11559
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
11560
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
11561
0
                input, this->mutable_action()));
11562
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11563
0
            this->action().data(), static_cast<int>(this->action().length()),
11564
0
            ::google::protobuf::internal::WireFormat::PARSE,
11565
0
            "yb.master.DdlLogEntryPB.action");
11566
0
        } else {
11567
0
          goto handle_unusual;
11568
0
        }
11569
0
        break;
11570
0
      }
11571
11572
      // optional fixed64 time = 7;
11573
0
      case 7: {
11574
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11575
0
            static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
11576
0
          set_has_time();
11577
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11578
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
11579
0
                 input, &time_)));
11580
0
        } else {
11581
0
          goto handle_unusual;
11582
0
        }
11583
0
        break;
11584
0
      }
11585
11586
0
      default: {
11587
0
      handle_unusual:
11588
0
        if (tag == 0) {
11589
0
          goto success;
11590
0
        }
11591
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11592
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11593
0
        break;
11594
0
      }
11595
0
    }
11596
0
  }
11597
0
success:
11598
  // @@protoc_insertion_point(parse_success:yb.master.DdlLogEntryPB)
11599
0
  return true;
11600
0
failure:
11601
  // @@protoc_insertion_point(parse_failure:yb.master.DdlLogEntryPB)
11602
0
  return false;
11603
0
#undef DO_
11604
0
}
11605
11606
void DdlLogEntryPB::SerializeWithCachedSizes(
11607
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11608
  // @@protoc_insertion_point(serialize_start:yb.master.DdlLogEntryPB)
11609
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11610
0
  (void) cached_has_bits;
11611
11612
0
  cached_has_bits = _has_bits_[0];
11613
  // optional .yb.TableType table_type = 1;
11614
0
  if (cached_has_bits & 0x00000040u) {
11615
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
11616
0
      1, this->table_type(), output);
11617
0
  }
11618
11619
  // optional string namespace_name = 2;
11620
0
  if (cached_has_bits & 0x00000001u) {
11621
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11622
0
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
11623
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11624
0
      "yb.master.DdlLogEntryPB.namespace_name");
11625
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11626
0
      2, this->namespace_name(), output);
11627
0
  }
11628
11629
  // optional string namespace_id = 3;
11630
0
  if (cached_has_bits & 0x00000002u) {
11631
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11632
0
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
11633
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11634
0
      "yb.master.DdlLogEntryPB.namespace_id");
11635
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11636
0
      3, this->namespace_id(), output);
11637
0
  }
11638
11639
  // optional string table_name = 4;
11640
0
  if (cached_has_bits & 0x00000004u) {
11641
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11642
0
      this->table_name().data(), static_cast<int>(this->table_name().length()),
11643
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11644
0
      "yb.master.DdlLogEntryPB.table_name");
11645
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11646
0
      4, this->table_name(), output);
11647
0
  }
11648
11649
  // optional string table_id = 5;
11650
0
  if (cached_has_bits & 0x00000008u) {
11651
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11652
0
      this->table_id().data(), static_cast<int>(this->table_id().length()),
11653
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11654
0
      "yb.master.DdlLogEntryPB.table_id");
11655
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11656
0
      5, this->table_id(), output);
11657
0
  }
11658
11659
  // optional string action = 6;
11660
0
  if (cached_has_bits & 0x00000010u) {
11661
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11662
0
      this->action().data(), static_cast<int>(this->action().length()),
11663
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11664
0
      "yb.master.DdlLogEntryPB.action");
11665
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
11666
0
      6, this->action(), output);
11667
0
  }
11668
11669
  // optional fixed64 time = 7;
11670
0
  if (cached_has_bits & 0x00000020u) {
11671
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(7, this->time(), output);
11672
0
  }
11673
11674
0
  if (_internal_metadata_.have_unknown_fields()) {
11675
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11676
0
        _internal_metadata_.unknown_fields(), output);
11677
0
  }
11678
  // @@protoc_insertion_point(serialize_end:yb.master.DdlLogEntryPB)
11679
0
}
11680
11681
::google::protobuf::uint8* DdlLogEntryPB::InternalSerializeWithCachedSizesToArray(
11682
3.04k
    bool deterministic, ::google::protobuf::uint8* target) const {
11683
3.04k
  (void)deterministic; // Unused
11684
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.DdlLogEntryPB)
11685
3.04k
  ::google::protobuf::uint32 cached_has_bits = 0;
11686
3.04k
  (void) cached_has_bits;
11687
11688
3.04k
  cached_has_bits = _has_bits_[0];
11689
  // optional .yb.TableType table_type = 1;
11690
3.04k
  if (cached_has_bits & 0x00000040u) {
11691
3.04k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11692
3.04k
      1, this->table_type(), target);
11693
3.04k
  }
11694
11695
  // optional string namespace_name = 2;
11696
3.04k
  if (cached_has_bits & 0x00000001u) {
11697
3.04k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11698
3.04k
      this->namespace_name().data(), static_cast<int>(this->namespace_name().length()),
11699
3.04k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11700
3.04k
      "yb.master.DdlLogEntryPB.namespace_name");
11701
3.04k
    target =
11702
3.04k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11703
3.04k
        2, this->namespace_name(), target);
11704
3.04k
  }
11705
11706
  // optional string namespace_id = 3;
11707
3.04k
  if (cached_has_bits & 0x00000002u) {
11708
3.04k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11709
3.04k
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
11710
3.04k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11711
3.04k
      "yb.master.DdlLogEntryPB.namespace_id");
11712
3.04k
    target =
11713
3.04k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11714
3.04k
        3, this->namespace_id(), target);
11715
3.04k
  }
11716
11717
  // optional string table_name = 4;
11718
3.04k
  if (cached_has_bits & 0x00000004u) {
11719
3.04k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11720
3.04k
      this->table_name().data(), static_cast<int>(this->table_name().length()),
11721
3.04k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11722
3.04k
      "yb.master.DdlLogEntryPB.table_name");
11723
3.04k
    target =
11724
3.04k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11725
3.04k
        4, this->table_name(), target);
11726
3.04k
  }
11727
11728
  // optional string table_id = 5;
11729
3.04k
  if (cached_has_bits & 0x00000008u) {
11730
3.04k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11731
3.04k
      this->table_id().data(), static_cast<int>(this->table_id().length()),
11732
3.04k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11733
3.04k
      "yb.master.DdlLogEntryPB.table_id");
11734
3.04k
    target =
11735
3.04k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11736
3.04k
        5, this->table_id(), target);
11737
3.04k
  }
11738
11739
  // optional string action = 6;
11740
3.04k
  if (cached_has_bits & 0x00000010u) {
11741
3.04k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
11742
3.04k
      this->action().data(), static_cast<int>(this->action().length()),
11743
3.04k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
11744
3.04k
      "yb.master.DdlLogEntryPB.action");
11745
3.04k
    target =
11746
3.04k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
11747
3.04k
        6, this->action(), target);
11748
3.04k
  }
11749
11750
  // optional fixed64 time = 7;
11751
3.04k
  if (cached_has_bits & 0x00000020u) {
11752
3.04k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(7, this->time(), target);
11753
3.04k
  }
11754
11755
3.04k
  if (_internal_metadata_.have_unknown_fields()) {
11756
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11757
0
        _internal_metadata_.unknown_fields(), target);
11758
0
  }
11759
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.DdlLogEntryPB)
11760
3.04k
  return target;
11761
3.04k
}
11762
11763
3.04k
size_t DdlLogEntryPB::ByteSizeLong() const {
11764
// @@protoc_insertion_point(message_byte_size_start:yb.master.DdlLogEntryPB)
11765
3.04k
  size_t total_size = 0;
11766
11767
3.04k
  if (_internal_metadata_.have_unknown_fields()) {
11768
0
    total_size +=
11769
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11770
0
        _internal_metadata_.unknown_fields());
11771
0
  }
11772
3.04k
  if (_has_bits_[0 / 32] & 127u) {
11773
    // optional string namespace_name = 2;
11774
3.04k
    if (has_namespace_name()) {
11775
3.04k
      total_size += 1 +
11776
3.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
11777
3.04k
          this->namespace_name());
11778
3.04k
    }
11779
11780
    // optional string namespace_id = 3;
11781
3.04k
    if (has_namespace_id()) {
11782
3.04k
      total_size += 1 +
11783
3.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
11784
3.04k
          this->namespace_id());
11785
3.04k
    }
11786
11787
    // optional string table_name = 4;
11788
3.04k
    if (has_table_name()) {
11789
3.04k
      total_size += 1 +
11790
3.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
11791
3.04k
          this->table_name());
11792
3.04k
    }
11793
11794
    // optional string table_id = 5;
11795
3.04k
    if (has_table_id()) {
11796
3.04k
      total_size += 1 +
11797
3.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
11798
3.04k
          this->table_id());
11799
3.04k
    }
11800
11801
    // optional string action = 6;
11802
3.04k
    if (has_action()) {
11803
3.04k
      total_size += 1 +
11804
3.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
11805
3.04k
          this->action());
11806
3.04k
    }
11807
11808
    // optional fixed64 time = 7;
11809
3.04k
    if (has_time()) {
11810
3.04k
      total_size += 1 + 8;
11811
3.04k
    }
11812
11813
    // optional .yb.TableType table_type = 1;
11814
3.04k
    if (has_table_type()) {
11815
3.04k
      total_size += 1 +
11816
3.04k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->table_type());
11817
3.04k
    }
11818
11819
3.04k
  }
11820
3.04k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11821
3.04k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11822
3.04k
  _cached_size_ = cached_size;
11823
3.04k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11824
3.04k
  return total_size;
11825
3.04k
}
11826
11827
0
void DdlLogEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
11828
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.DdlLogEntryPB)
11829
0
  GOOGLE_DCHECK_NE(&from, this);
11830
0
  const DdlLogEntryPB* source =
11831
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DdlLogEntryPB>(
11832
0
          &from);
11833
0
  if (source == NULL) {
11834
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DdlLogEntryPB)
11835
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11836
0
  } else {
11837
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DdlLogEntryPB)
11838
0
    MergeFrom(*source);
11839
0
  }
11840
0
}
11841
11842
0
void DdlLogEntryPB::MergeFrom(const DdlLogEntryPB& from) {
11843
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DdlLogEntryPB)
11844
0
  GOOGLE_DCHECK_NE(&from, this);
11845
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11846
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11847
0
  (void) cached_has_bits;
11848
11849
0
  cached_has_bits = from._has_bits_[0];
11850
0
  if (cached_has_bits & 127u) {
11851
0
    if (cached_has_bits & 0x00000001u) {
11852
0
      set_has_namespace_name();
11853
0
      namespace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_name_);
11854
0
    }
11855
0
    if (cached_has_bits & 0x00000002u) {
11856
0
      set_has_namespace_id();
11857
0
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
11858
0
    }
11859
0
    if (cached_has_bits & 0x00000004u) {
11860
0
      set_has_table_name();
11861
0
      table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_);
11862
0
    }
11863
0
    if (cached_has_bits & 0x00000008u) {
11864
0
      set_has_table_id();
11865
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
11866
0
    }
11867
0
    if (cached_has_bits & 0x00000010u) {
11868
0
      set_has_action();
11869
0
      action_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.action_);
11870
0
    }
11871
0
    if (cached_has_bits & 0x00000020u) {
11872
0
      time_ = from.time_;
11873
0
    }
11874
0
    if (cached_has_bits & 0x00000040u) {
11875
0
      table_type_ = from.table_type_;
11876
0
    }
11877
0
    _has_bits_[0] |= cached_has_bits;
11878
0
  }
11879
0
}
11880
11881
0
void DdlLogEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
11882
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.DdlLogEntryPB)
11883
0
  if (&from == this) return;
11884
0
  Clear();
11885
0
  MergeFrom(from);
11886
0
}
11887
11888
0
void DdlLogEntryPB::CopyFrom(const DdlLogEntryPB& from) {
11889
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DdlLogEntryPB)
11890
0
  if (&from == this) return;
11891
0
  Clear();
11892
0
  MergeFrom(from);
11893
0
}
11894
11895
3.04k
bool DdlLogEntryPB::IsInitialized() const {
11896
3.04k
  return true;
11897
3.04k
}
11898
11899
0
void DdlLogEntryPB::Swap(DdlLogEntryPB* other) {
11900
0
  if (other == this) return;
11901
0
  InternalSwap(other);
11902
0
}
11903
580
void DdlLogEntryPB::InternalSwap(DdlLogEntryPB* other) {
11904
580
  using std::swap;
11905
580
  namespace_name_.Swap(&other->namespace_name_);
11906
580
  namespace_id_.Swap(&other->namespace_id_);
11907
580
  table_name_.Swap(&other->table_name_);
11908
580
  table_id_.Swap(&other->table_id_);
11909
580
  action_.Swap(&other->action_);
11910
580
  swap(time_, other->time_);
11911
580
  swap(table_type_, other->table_type_);
11912
580
  swap(_has_bits_[0], other->_has_bits_[0]);
11913
580
  _internal_metadata_.Swap(&other->_internal_metadata_);
11914
580
  swap(_cached_size_, other->_cached_size_);
11915
580
}
11916
11917
24.3k
::google::protobuf::Metadata DdlLogEntryPB::GetMetadata() const {
11918
24.3k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11919
24.3k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
11920
24.3k
}
11921
11922
11923
// ===================================================================
11924
11925
15.8k
void CDCStreamOptionsPB::InitAsDefaultInstance() {
11926
15.8k
}
11927
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11928
const int CDCStreamOptionsPB::kKeyFieldNumber;
11929
const int CDCStreamOptionsPB::kValueFieldNumber;
11930
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11931
11932
CDCStreamOptionsPB::CDCStreamOptionsPB()
11933
51.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11934
35.2k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11935
35.2k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsCDCStreamOptionsPB();
11936
35.2k
  }
11937
51.1k
  SharedCtor();
11938
  // @@protoc_insertion_point(constructor:yb.master.CDCStreamOptionsPB)
11939
51.1k
}
11940
CDCStreamOptionsPB::CDCStreamOptionsPB(const CDCStreamOptionsPB& from)
11941
  : ::google::protobuf::Message(),
11942
      _internal_metadata_(NULL),
11943
      _has_bits_(from._has_bits_),
11944
10.9k
      _cached_size_(0) {
11945
10.9k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11946
10.9k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11947
10.9k
  if (from.has_key()) {
11948
10.9k
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
11949
10.9k
  }
11950
10.9k
  value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11951
10.9k
  if (from.has_value()) {
11952
10.9k
    value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
11953
10.9k
  }
11954
  // @@protoc_insertion_point(copy_constructor:yb.master.CDCStreamOptionsPB)
11955
10.9k
}
11956
11957
51.1k
void CDCStreamOptionsPB::SharedCtor() {
11958
51.1k
  _cached_size_ = 0;
11959
51.1k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11960
51.1k
  value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11961
51.1k
}
11962
11963
45.4k
CDCStreamOptionsPB::~CDCStreamOptionsPB() {
11964
  // @@protoc_insertion_point(destructor:yb.master.CDCStreamOptionsPB)
11965
45.4k
  SharedDtor();
11966
45.4k
}
11967
11968
45.4k
void CDCStreamOptionsPB::SharedDtor() {
11969
45.4k
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11970
45.4k
  value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
11971
45.4k
}
11972
11973
0
void CDCStreamOptionsPB::SetCachedSize(int size) const {
11974
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11975
0
  _cached_size_ = size;
11976
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11977
0
}
11978
0
const ::google::protobuf::Descriptor* CDCStreamOptionsPB::descriptor() {
11979
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
11980
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11981
0
}
11982
11983
0
const CDCStreamOptionsPB& CDCStreamOptionsPB::default_instance() {
11984
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsCDCStreamOptionsPB();
11985
0
  return *internal_default_instance();
11986
0
}
11987
11988
0
CDCStreamOptionsPB* CDCStreamOptionsPB::New(::google::protobuf::Arena* arena) const {
11989
0
  CDCStreamOptionsPB* n = new CDCStreamOptionsPB;
11990
0
  if (arena != NULL) {
11991
0
    arena->Own(n);
11992
0
  }
11993
0
  return n;
11994
0
}
11995
11996
0
void CDCStreamOptionsPB::Clear() {
11997
// @@protoc_insertion_point(message_clear_start:yb.master.CDCStreamOptionsPB)
11998
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11999
  // Prevent compiler warnings about cached_has_bits being unused
12000
0
  (void) cached_has_bits;
12001
12002
0
  cached_has_bits = _has_bits_[0];
12003
0
  if (cached_has_bits & 3u) {
12004
0
    if (cached_has_bits & 0x00000001u) {
12005
0
      GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12006
0
      (*key_.UnsafeRawStringPointer())->clear();
12007
0
    }
12008
0
    if (cached_has_bits & 0x00000002u) {
12009
0
      GOOGLE_DCHECK(!value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12010
0
      (*value_.UnsafeRawStringPointer())->clear();
12011
0
    }
12012
0
  }
12013
0
  _has_bits_.Clear();
12014
0
  _internal_metadata_.Clear();
12015
0
}
12016
12017
bool CDCStreamOptionsPB::MergePartialFromCodedStream(
12018
10.9k
    ::google::protobuf::io::CodedInputStream* input) {
12019
21.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12020
10.9k
  ::google::protobuf::uint32 tag;
12021
  // @@protoc_insertion_point(parse_start:yb.master.CDCStreamOptionsPB)
12022
32.7k
  for (;;) {
12023
32.7k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12024
32.7k
    tag = p.first;
12025
32.7k
    if (!p.second) goto handle_unusual;
12026
21.8k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12027
      // optional string key = 1;
12028
10.9k
      case 1: {
12029
10.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12030
10.9k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12031
10.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12032
10.9k
                input, this->mutable_key()));
12033
10.9k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12034
10.9k
            this->key().data(), static_cast<int>(this->key().length()),
12035
10.9k
            ::google::protobuf::internal::WireFormat::PARSE,
12036
10.9k
            "yb.master.CDCStreamOptionsPB.key");
12037
0
        } else {
12038
0
          goto handle_unusual;
12039
0
        }
12040
10.9k
        break;
12041
10.9k
      }
12042
12043
      // optional bytes value = 2;
12044
10.9k
      case 2: {
12045
10.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12046
10.9k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12047
10.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12048
10.9k
                input, this->mutable_value()));
12049
0
        } else {
12050
0
          goto handle_unusual;
12051
0
        }
12052
10.9k
        break;
12053
10.9k
      }
12054
12055
0
      default: {
12056
10.9k
      handle_unusual:
12057
10.9k
        if (tag == 0) {
12058
10.9k
          goto success;
12059
10.9k
        }
12060
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12061
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12062
0
        break;
12063
0
      }
12064
21.8k
    }
12065
21.8k
  }
12066
10.9k
success:
12067
  // @@protoc_insertion_point(parse_success:yb.master.CDCStreamOptionsPB)
12068
10.9k
  return true;
12069
0
failure:
12070
  // @@protoc_insertion_point(parse_failure:yb.master.CDCStreamOptionsPB)
12071
0
  return false;
12072
10.9k
#undef DO_
12073
10.9k
}
12074
12075
void CDCStreamOptionsPB::SerializeWithCachedSizes(
12076
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12077
  // @@protoc_insertion_point(serialize_start:yb.master.CDCStreamOptionsPB)
12078
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12079
0
  (void) cached_has_bits;
12080
12081
0
  cached_has_bits = _has_bits_[0];
12082
  // optional string key = 1;
12083
0
  if (cached_has_bits & 0x00000001u) {
12084
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12085
0
      this->key().data(), static_cast<int>(this->key().length()),
12086
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12087
0
      "yb.master.CDCStreamOptionsPB.key");
12088
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12089
0
      1, this->key(), output);
12090
0
  }
12091
12092
  // optional bytes value = 2;
12093
0
  if (cached_has_bits & 0x00000002u) {
12094
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12095
0
      2, this->value(), output);
12096
0
  }
12097
12098
0
  if (_internal_metadata_.have_unknown_fields()) {
12099
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12100
0
        _internal_metadata_.unknown_fields(), output);
12101
0
  }
12102
  // @@protoc_insertion_point(serialize_end:yb.master.CDCStreamOptionsPB)
12103
0
}
12104
12105
::google::protobuf::uint8* CDCStreamOptionsPB::InternalSerializeWithCachedSizesToArray(
12106
24.3k
    bool deterministic, ::google::protobuf::uint8* target) const {
12107
24.3k
  (void)deterministic; // Unused
12108
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.CDCStreamOptionsPB)
12109
24.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
12110
24.3k
  (void) cached_has_bits;
12111
12112
24.3k
  cached_has_bits = _has_bits_[0];
12113
  // optional string key = 1;
12114
24.3k
  if (cached_has_bits & 0x00000001u) {
12115
24.3k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12116
24.3k
      this->key().data(), static_cast<int>(this->key().length()),
12117
24.3k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12118
24.3k
      "yb.master.CDCStreamOptionsPB.key");
12119
24.3k
    target =
12120
24.3k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12121
24.3k
        1, this->key(), target);
12122
24.3k
  }
12123
12124
  // optional bytes value = 2;
12125
24.3k
  if (cached_has_bits & 0x00000002u) {
12126
24.3k
    target =
12127
24.3k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12128
24.3k
        2, this->value(), target);
12129
24.3k
  }
12130
12131
24.3k
  if (_internal_metadata_.have_unknown_fields()) {
12132
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12133
0
        _internal_metadata_.unknown_fields(), target);
12134
0
  }
12135
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.CDCStreamOptionsPB)
12136
24.3k
  return target;
12137
24.3k
}
12138
12139
35.2k
size_t CDCStreamOptionsPB::ByteSizeLong() const {
12140
// @@protoc_insertion_point(message_byte_size_start:yb.master.CDCStreamOptionsPB)
12141
35.2k
  size_t total_size = 0;
12142
12143
35.2k
  if (_internal_metadata_.have_unknown_fields()) {
12144
0
    total_size +=
12145
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12146
0
        _internal_metadata_.unknown_fields());
12147
0
  }
12148
35.2k
  if (_has_bits_[0 / 32] & 3u) {
12149
    // optional string key = 1;
12150
35.2k
    if (has_key()) {
12151
35.2k
      total_size += 1 +
12152
35.2k
        ::google::protobuf::internal::WireFormatLite::StringSize(
12153
35.2k
          this->key());
12154
35.2k
    }
12155
12156
    // optional bytes value = 2;
12157
35.2k
    if (has_value()) {
12158
35.2k
      total_size += 1 +
12159
35.2k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
12160
35.2k
          this->value());
12161
35.2k
    }
12162
12163
35.2k
  }
12164
35.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12165
35.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12166
35.2k
  _cached_size_ = cached_size;
12167
35.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12168
35.2k
  return total_size;
12169
35.2k
}
12170
12171
0
void CDCStreamOptionsPB::MergeFrom(const ::google::protobuf::Message& from) {
12172
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.CDCStreamOptionsPB)
12173
0
  GOOGLE_DCHECK_NE(&from, this);
12174
0
  const CDCStreamOptionsPB* source =
12175
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CDCStreamOptionsPB>(
12176
0
          &from);
12177
0
  if (source == NULL) {
12178
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CDCStreamOptionsPB)
12179
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12180
0
  } else {
12181
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CDCStreamOptionsPB)
12182
0
    MergeFrom(*source);
12183
0
  }
12184
0
}
12185
12186
13.4k
void CDCStreamOptionsPB::MergeFrom(const CDCStreamOptionsPB& from) {
12187
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CDCStreamOptionsPB)
12188
13.4k
  GOOGLE_DCHECK_NE(&from, this);
12189
13.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12190
13.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
12191
13.4k
  (void) cached_has_bits;
12192
12193
13.4k
  cached_has_bits = from._has_bits_[0];
12194
13.4k
  if (cached_has_bits & 3u) {
12195
13.4k
    if (cached_has_bits & 0x00000001u) {
12196
13.4k
      set_has_key();
12197
13.4k
      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
12198
13.4k
    }
12199
13.4k
    if (cached_has_bits & 0x00000002u) {
12200
13.4k
      set_has_value();
12201
13.4k
      value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_);
12202
13.4k
    }
12203
13.4k
  }
12204
13.4k
}
12205
12206
0
void CDCStreamOptionsPB::CopyFrom(const ::google::protobuf::Message& from) {
12207
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.CDCStreamOptionsPB)
12208
0
  if (&from == this) return;
12209
0
  Clear();
12210
0
  MergeFrom(from);
12211
0
}
12212
12213
0
void CDCStreamOptionsPB::CopyFrom(const CDCStreamOptionsPB& from) {
12214
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CDCStreamOptionsPB)
12215
0
  if (&from == this) return;
12216
0
  Clear();
12217
0
  MergeFrom(from);
12218
0
}
12219
12220
0
bool CDCStreamOptionsPB::IsInitialized() const {
12221
0
  return true;
12222
0
}
12223
12224
0
void CDCStreamOptionsPB::Swap(CDCStreamOptionsPB* other) {
12225
0
  if (other == this) return;
12226
0
  InternalSwap(other);
12227
0
}
12228
0
void CDCStreamOptionsPB::InternalSwap(CDCStreamOptionsPB* other) {
12229
0
  using std::swap;
12230
0
  key_.Swap(&other->key_);
12231
0
  value_.Swap(&other->value_);
12232
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12233
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12234
0
  swap(_cached_size_, other->_cached_size_);
12235
0
}
12236
12237
34.3k
::google::protobuf::Metadata CDCStreamOptionsPB::GetMetadata() const {
12238
34.3k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
12239
34.3k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
12240
34.3k
}
12241
12242
12243
// ===================================================================
12244
12245
15.8k
void SysCDCStreamEntryPB::InitAsDefaultInstance() {
12246
15.8k
}
12247
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12248
const int SysCDCStreamEntryPB::kTableIdFieldNumber;
12249
const int SysCDCStreamEntryPB::kOptionsFieldNumber;
12250
const int SysCDCStreamEntryPB::kStateFieldNumber;
12251
const int SysCDCStreamEntryPB::kNamespaceIdFieldNumber;
12252
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12253
12254
SysCDCStreamEntryPB::SysCDCStreamEntryPB()
12255
18.7k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12256
2.85k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12257
2.85k
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysCDCStreamEntryPB();
12258
2.85k
  }
12259
18.7k
  SharedCtor();
12260
  // @@protoc_insertion_point(constructor:yb.master.SysCDCStreamEntryPB)
12261
18.7k
}
12262
SysCDCStreamEntryPB::SysCDCStreamEntryPB(const SysCDCStreamEntryPB& from)
12263
  : ::google::protobuf::Message(),
12264
      _internal_metadata_(NULL),
12265
      _has_bits_(from._has_bits_),
12266
      _cached_size_(0),
12267
      table_id_(from.table_id_),
12268
2.69k
      options_(from.options_) {
12269
2.69k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12270
2.69k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12271
2.69k
  if (from.has_namespace_id()) {
12272
2.53k
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
12273
2.53k
  }
12274
2.69k
  state_ = from.state_;
12275
  // @@protoc_insertion_point(copy_constructor:yb.master.SysCDCStreamEntryPB)
12276
2.69k
}
12277
12278
18.7k
void SysCDCStreamEntryPB::SharedCtor() {
12279
18.7k
  _cached_size_ = 0;
12280
18.7k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12281
18.7k
  state_ = 0;
12282
18.7k
}
12283
12284
5.40k
SysCDCStreamEntryPB::~SysCDCStreamEntryPB() {
12285
  // @@protoc_insertion_point(destructor:yb.master.SysCDCStreamEntryPB)
12286
5.40k
  SharedDtor();
12287
5.40k
}
12288
12289
5.40k
void SysCDCStreamEntryPB::SharedDtor() {
12290
5.40k
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12291
5.40k
}
12292
12293
0
void SysCDCStreamEntryPB::SetCachedSize(int size) const {
12294
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12295
0
  _cached_size_ = size;
12296
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12297
0
}
12298
0
const ::google::protobuf::Descriptor* SysCDCStreamEntryPB::descriptor() {
12299
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
12300
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12301
0
}
12302
12303
0
const SysCDCStreamEntryPB& SysCDCStreamEntryPB::default_instance() {
12304
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysCDCStreamEntryPB();
12305
0
  return *internal_default_instance();
12306
0
}
12307
12308
0
SysCDCStreamEntryPB* SysCDCStreamEntryPB::New(::google::protobuf::Arena* arena) const {
12309
0
  SysCDCStreamEntryPB* n = new SysCDCStreamEntryPB;
12310
0
  if (arena != NULL) {
12311
0
    arena->Own(n);
12312
0
  }
12313
0
  return n;
12314
0
}
12315
12316
2
void SysCDCStreamEntryPB::Clear() {
12317
// @@protoc_insertion_point(message_clear_start:yb.master.SysCDCStreamEntryPB)
12318
2
  ::google::protobuf::uint32 cached_has_bits = 0;
12319
  // Prevent compiler warnings about cached_has_bits being unused
12320
2
  (void) cached_has_bits;
12321
12322
2
  table_id_.Clear();
12323
2
  options_.Clear();
12324
2
  cached_has_bits = _has_bits_[0];
12325
2
  if (cached_has_bits & 0x00000001u) {
12326
0
    GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12327
0
    (*namespace_id_.UnsafeRawStringPointer())->clear();
12328
0
  }
12329
2
  state_ = 0;
12330
2
  _has_bits_.Clear();
12331
2
  _internal_metadata_.Clear();
12332
2
}
12333
12334
bool SysCDCStreamEntryPB::MergePartialFromCodedStream(
12335
1
    ::google::protobuf::io::CodedInputStream* input) {
12336
1
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12337
1
  ::google::protobuf::uint32 tag;
12338
  // @@protoc_insertion_point(parse_start:yb.master.SysCDCStreamEntryPB)
12339
2
  for (;;) {
12340
2
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12341
2
    tag = p.first;
12342
2
    if (!p.second) goto handle_unusual;
12343
1
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12344
      // repeated string table_id = 1;
12345
1
      case 1: {
12346
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12347
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12348
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12349
1
                input, this->add_table_id()));
12350
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12351
1
            this->table_id(this->table_id_size() - 1).data(),
12352
1
            static_cast<int>(this->table_id(this->table_id_size() - 1).length()),
12353
1
            ::google::protobuf::internal::WireFormat::PARSE,
12354
1
            "yb.master.SysCDCStreamEntryPB.table_id");
12355
0
        } else {
12356
0
          goto handle_unusual;
12357
0
        }
12358
1
        break;
12359
1
      }
12360
12361
      // repeated .yb.master.CDCStreamOptionsPB options = 2;
12362
0
      case 2: {
12363
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12364
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12365
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_options()));
12366
0
        } else {
12367
0
          goto handle_unusual;
12368
0
        }
12369
0
        break;
12370
0
      }
12371
12372
      // optional .yb.master.SysCDCStreamEntryPB.State state = 3 [default = ACTIVE];
12373
0
      case 3: {
12374
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12375
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
12376
0
          int value;
12377
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12378
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12379
0
                 input, &value)));
12380
0
          if (::yb::master::SysCDCStreamEntryPB_State_IsValid(value)) {
12381
0
            set_state(static_cast< ::yb::master::SysCDCStreamEntryPB_State >(value));
12382
0
          } else {
12383
0
            mutable_unknown_fields()->AddVarint(
12384
0
                3, static_cast< ::google::protobuf::uint64>(value));
12385
0
          }
12386
0
        } else {
12387
0
          goto handle_unusual;
12388
0
        }
12389
0
        break;
12390
0
      }
12391
12392
      // optional string namespace_id = 4;
12393
0
      case 4: {
12394
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12395
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
12396
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
12397
0
                input, this->mutable_namespace_id()));
12398
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12399
0
            this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
12400
0
            ::google::protobuf::internal::WireFormat::PARSE,
12401
0
            "yb.master.SysCDCStreamEntryPB.namespace_id");
12402
0
        } else {
12403
0
          goto handle_unusual;
12404
0
        }
12405
0
        break;
12406
1
      }
12407
12408
0
      default: {
12409
1
      handle_unusual:
12410
1
        if (tag == 0) {
12411
1
          goto success;
12412
1
        }
12413
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12414
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12415
0
        break;
12416
0
      }
12417
1
    }
12418
1
  }
12419
1
success:
12420
  // @@protoc_insertion_point(parse_success:yb.master.SysCDCStreamEntryPB)
12421
1
  return true;
12422
0
failure:
12423
  // @@protoc_insertion_point(parse_failure:yb.master.SysCDCStreamEntryPB)
12424
0
  return false;
12425
1
#undef DO_
12426
1
}
12427
12428
void SysCDCStreamEntryPB::SerializeWithCachedSizes(
12429
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12430
  // @@protoc_insertion_point(serialize_start:yb.master.SysCDCStreamEntryPB)
12431
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12432
0
  (void) cached_has_bits;
12433
12434
  // repeated string table_id = 1;
12435
0
  for (int i = 0, n = this->table_id_size(); i < n; i++) {
12436
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12437
0
      this->table_id(i).data(), static_cast<int>(this->table_id(i).length()),
12438
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12439
0
      "yb.master.SysCDCStreamEntryPB.table_id");
12440
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
12441
0
      1, this->table_id(i), output);
12442
0
  }
12443
12444
  // repeated .yb.master.CDCStreamOptionsPB options = 2;
12445
0
  for (unsigned int i = 0,
12446
0
      n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
12447
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12448
0
      2, this->options(static_cast<int>(i)), output);
12449
0
  }
12450
12451
0
  cached_has_bits = _has_bits_[0];
12452
  // optional .yb.master.SysCDCStreamEntryPB.State state = 3 [default = ACTIVE];
12453
0
  if (cached_has_bits & 0x00000002u) {
12454
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
12455
0
      3, this->state(), output);
12456
0
  }
12457
12458
  // optional string namespace_id = 4;
12459
0
  if (cached_has_bits & 0x00000001u) {
12460
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12461
0
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
12462
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12463
0
      "yb.master.SysCDCStreamEntryPB.namespace_id");
12464
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
12465
0
      4, this->namespace_id(), output);
12466
0
  }
12467
12468
0
  if (_internal_metadata_.have_unknown_fields()) {
12469
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12470
0
        _internal_metadata_.unknown_fields(), output);
12471
0
  }
12472
  // @@protoc_insertion_point(serialize_end:yb.master.SysCDCStreamEntryPB)
12473
0
}
12474
12475
::google::protobuf::uint8* SysCDCStreamEntryPB::InternalSerializeWithCachedSizesToArray(
12476
2.69k
    bool deterministic, ::google::protobuf::uint8* target) const {
12477
2.69k
  (void)deterministic; // Unused
12478
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysCDCStreamEntryPB)
12479
2.69k
  ::google::protobuf::uint32 cached_has_bits = 0;
12480
2.69k
  (void) cached_has_bits;
12481
12482
  // repeated string table_id = 1;
12483
47.3k
  for (int i = 0, n = this->table_id_size(); i < n; i++) {
12484
44.6k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12485
44.6k
      this->table_id(i).data(), static_cast<int>(this->table_id(i).length()),
12486
44.6k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12487
44.6k
      "yb.master.SysCDCStreamEntryPB.table_id");
12488
44.6k
    target = ::google::protobuf::internal::WireFormatLite::
12489
44.6k
      WriteStringToArray(1, this->table_id(i), target);
12490
44.6k
  }
12491
12492
  // repeated .yb.master.CDCStreamOptionsPB options = 2;
12493
2.69k
  for (unsigned int i = 0,
12494
16.1k
      n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
12495
13.4k
    target = ::google::protobuf::internal::WireFormatLite::
12496
13.4k
      InternalWriteMessageToArray(
12497
13.4k
        2, this->options(static_cast<int>(i)), deterministic, target);
12498
13.4k
  }
12499
12500
2.69k
  cached_has_bits = _has_bits_[0];
12501
  // optional .yb.master.SysCDCStreamEntryPB.State state = 3 [default = ACTIVE];
12502
2.69k
  if (cached_has_bits & 0x00000002u) {
12503
2.69k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12504
2.69k
      3, this->state(), target);
12505
2.69k
  }
12506
12507
  // optional string namespace_id = 4;
12508
2.69k
  if (cached_has_bits & 0x00000001u) {
12509
2.69k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
12510
2.69k
      this->namespace_id().data(), static_cast<int>(this->namespace_id().length()),
12511
2.69k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
12512
2.69k
      "yb.master.SysCDCStreamEntryPB.namespace_id");
12513
2.69k
    target =
12514
2.69k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
12515
2.69k
        4, this->namespace_id(), target);
12516
2.69k
  }
12517
12518
2.69k
  if (_internal_metadata_.have_unknown_fields()) {
12519
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12520
0
        _internal_metadata_.unknown_fields(), target);
12521
0
  }
12522
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysCDCStreamEntryPB)
12523
2.69k
  return target;
12524
2.69k
}
12525
12526
2.69k
size_t SysCDCStreamEntryPB::ByteSizeLong() const {
12527
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysCDCStreamEntryPB)
12528
2.69k
  size_t total_size = 0;
12529
12530
2.69k
  if (_internal_metadata_.have_unknown_fields()) {
12531
0
    total_size +=
12532
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12533
0
        _internal_metadata_.unknown_fields());
12534
0
  }
12535
  // repeated string table_id = 1;
12536
2.69k
  total_size += 1 *
12537
2.69k
      ::google::protobuf::internal::FromIntSize(this->table_id_size());
12538
47.3k
  for (int i = 0, n = this->table_id_size(); i < n; i++) {
12539
44.6k
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
12540
44.6k
      this->table_id(i));
12541
44.6k
  }
12542
12543
  // repeated .yb.master.CDCStreamOptionsPB options = 2;
12544
2.69k
  {
12545
2.69k
    unsigned int count = static_cast<unsigned int>(this->options_size());
12546
2.69k
    total_size += 1UL * count;
12547
16.1k
    for (unsigned int i = 0; i < count; i++) {
12548
13.4k
      total_size +=
12549
13.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12550
13.4k
          this->options(static_cast<int>(i)));
12551
13.4k
    }
12552
2.69k
  }
12553
12554
2.69k
  if (_has_bits_[0 / 32] & 3u) {
12555
    // optional string namespace_id = 4;
12556
2.69k
    if (has_namespace_id()) {
12557
2.69k
      total_size += 1 +
12558
2.69k
        ::google::protobuf::internal::WireFormatLite::StringSize(
12559
2.69k
          this->namespace_id());
12560
2.69k
    }
12561
12562
    // optional .yb.master.SysCDCStreamEntryPB.State state = 3 [default = ACTIVE];
12563
2.69k
    if (has_state()) {
12564
2.69k
      total_size += 1 +
12565
2.69k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
12566
2.69k
    }
12567
12568
2.69k
  }
12569
2.69k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12570
2.69k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12571
2.69k
  _cached_size_ = cached_size;
12572
2.69k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12573
2.69k
  return total_size;
12574
2.69k
}
12575
12576
0
void SysCDCStreamEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
12577
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysCDCStreamEntryPB)
12578
0
  GOOGLE_DCHECK_NE(&from, this);
12579
0
  const SysCDCStreamEntryPB* source =
12580
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysCDCStreamEntryPB>(
12581
0
          &from);
12582
0
  if (source == NULL) {
12583
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysCDCStreamEntryPB)
12584
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12585
0
  } else {
12586
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysCDCStreamEntryPB)
12587
0
    MergeFrom(*source);
12588
0
  }
12589
0
}
12590
12591
1
void SysCDCStreamEntryPB::MergeFrom(const SysCDCStreamEntryPB& from) {
12592
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysCDCStreamEntryPB)
12593
1
  GOOGLE_DCHECK_NE(&from, this);
12594
1
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12595
1
  ::google::protobuf::uint32 cached_has_bits = 0;
12596
1
  (void) cached_has_bits;
12597
12598
1
  table_id_.MergeFrom(from.table_id_);
12599
1
  options_.MergeFrom(from.options_);
12600
1
  cached_has_bits = from._has_bits_[0];
12601
1
  if (cached_has_bits & 3u) {
12602
0
    if (cached_has_bits & 0x00000001u) {
12603
0
      set_has_namespace_id();
12604
0
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
12605
0
    }
12606
0
    if (cached_has_bits & 0x00000002u) {
12607
0
      state_ = from.state_;
12608
0
    }
12609
0
    _has_bits_[0] |= cached_has_bits;
12610
0
  }
12611
1
}
12612
12613
0
void SysCDCStreamEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
12614
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysCDCStreamEntryPB)
12615
0
  if (&from == this) return;
12616
0
  Clear();
12617
0
  MergeFrom(from);
12618
0
}
12619
12620
1
void SysCDCStreamEntryPB::CopyFrom(const SysCDCStreamEntryPB& from) {
12621
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysCDCStreamEntryPB)
12622
1
  if (&from == this) return;
12623
1
  Clear();
12624
1
  MergeFrom(from);
12625
1
}
12626
12627
2.69k
bool SysCDCStreamEntryPB::IsInitialized() const {
12628
2.69k
  return true;
12629
2.69k
}
12630
12631
0
void SysCDCStreamEntryPB::Swap(SysCDCStreamEntryPB* other) {
12632
0
  if (other == this) return;
12633
0
  InternalSwap(other);
12634
0
}
12635
8.09k
void SysCDCStreamEntryPB::InternalSwap(SysCDCStreamEntryPB* other) {
12636
8.09k
  using std::swap;
12637
8.09k
  table_id_.InternalSwap(&other->table_id_);
12638
8.09k
  options_.InternalSwap(&other->options_);
12639
8.09k
  namespace_id_.Swap(&other->namespace_id_);
12640
8.09k
  swap(state_, other->state_);
12641
8.09k
  swap(_has_bits_[0], other->_has_bits_[0]);
12642
8.09k
  _internal_metadata_.Swap(&other->_internal_metadata_);
12643
8.09k
  swap(_cached_size_, other->_cached_size_);
12644
8.09k
}
12645
12646
26.7k
::google::protobuf::Metadata SysCDCStreamEntryPB::GetMetadata() const {
12647
26.7k
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
12648
26.7k
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
12649
26.7k
}
12650
12651
12652
// ===================================================================
12653
12654
15.8k
void SysSnapshotEntryPB_TabletSnapshotPB::InitAsDefaultInstance() {
12655
15.8k
}
12656
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12657
const int SysSnapshotEntryPB_TabletSnapshotPB::kIdFieldNumber;
12658
const int SysSnapshotEntryPB_TabletSnapshotPB::kStateFieldNumber;
12659
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12660
12661
SysSnapshotEntryPB_TabletSnapshotPB::SysSnapshotEntryPB_TabletSnapshotPB()
12662
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12663
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12664
0
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSnapshotEntryPB_TabletSnapshotPB();
12665
0
  }
12666
15.8k
  SharedCtor();
12667
  // @@protoc_insertion_point(constructor:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12668
15.8k
}
12669
SysSnapshotEntryPB_TabletSnapshotPB::SysSnapshotEntryPB_TabletSnapshotPB(const SysSnapshotEntryPB_TabletSnapshotPB& from)
12670
  : ::google::protobuf::Message(),
12671
      _internal_metadata_(NULL),
12672
      _has_bits_(from._has_bits_),
12673
0
      _cached_size_(0) {
12674
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12675
0
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12676
0
  if (from.has_id()) {
12677
0
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
12678
0
  }
12679
0
  state_ = from.state_;
12680
  // @@protoc_insertion_point(copy_constructor:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12681
0
}
12682
12683
15.8k
void SysSnapshotEntryPB_TabletSnapshotPB::SharedCtor() {
12684
15.8k
  _cached_size_ = 0;
12685
15.8k
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12686
15.8k
  state_ = 0;
12687
15.8k
}
12688
12689
0
SysSnapshotEntryPB_TabletSnapshotPB::~SysSnapshotEntryPB_TabletSnapshotPB() {
12690
  // @@protoc_insertion_point(destructor:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12691
0
  SharedDtor();
12692
0
}
12693
12694
0
void SysSnapshotEntryPB_TabletSnapshotPB::SharedDtor() {
12695
0
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12696
0
}
12697
12698
0
void SysSnapshotEntryPB_TabletSnapshotPB::SetCachedSize(int size) const {
12699
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12700
0
  _cached_size_ = size;
12701
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12702
0
}
12703
0
const ::google::protobuf::Descriptor* SysSnapshotEntryPB_TabletSnapshotPB::descriptor() {
12704
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
12705
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12706
0
}
12707
12708
0
const SysSnapshotEntryPB_TabletSnapshotPB& SysSnapshotEntryPB_TabletSnapshotPB::default_instance() {
12709
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSnapshotEntryPB_TabletSnapshotPB();
12710
0
  return *internal_default_instance();
12711
0
}
12712
12713
0
SysSnapshotEntryPB_TabletSnapshotPB* SysSnapshotEntryPB_TabletSnapshotPB::New(::google::protobuf::Arena* arena) const {
12714
0
  SysSnapshotEntryPB_TabletSnapshotPB* n = new SysSnapshotEntryPB_TabletSnapshotPB;
12715
0
  if (arena != NULL) {
12716
0
    arena->Own(n);
12717
0
  }
12718
0
  return n;
12719
0
}
12720
12721
0
void SysSnapshotEntryPB_TabletSnapshotPB::Clear() {
12722
// @@protoc_insertion_point(message_clear_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12723
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12724
  // Prevent compiler warnings about cached_has_bits being unused
12725
0
  (void) cached_has_bits;
12726
12727
0
  cached_has_bits = _has_bits_[0];
12728
0
  if (cached_has_bits & 0x00000001u) {
12729
0
    GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
12730
0
    (*id_.UnsafeRawStringPointer())->clear();
12731
0
  }
12732
0
  state_ = 0;
12733
0
  _has_bits_.Clear();
12734
0
  _internal_metadata_.Clear();
12735
0
}
12736
12737
bool SysSnapshotEntryPB_TabletSnapshotPB::MergePartialFromCodedStream(
12738
0
    ::google::protobuf::io::CodedInputStream* input) {
12739
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12740
0
  ::google::protobuf::uint32 tag;
12741
  // @@protoc_insertion_point(parse_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12742
0
  for (;;) {
12743
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12744
0
    tag = p.first;
12745
0
    if (!p.second) goto handle_unusual;
12746
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12747
      // optional bytes id = 1;
12748
0
      case 1: {
12749
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12750
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
12751
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
12752
0
                input, this->mutable_id()));
12753
0
        } else {
12754
0
          goto handle_unusual;
12755
0
        }
12756
0
        break;
12757
0
      }
12758
12759
      // optional .yb.master.SysSnapshotEntryPB.State state = 2;
12760
0
      case 2: {
12761
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12762
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
12763
0
          int value;
12764
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12765
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12766
0
                 input, &value)));
12767
0
          if (::yb::master::SysSnapshotEntryPB_State_IsValid(value)) {
12768
0
            set_state(static_cast< ::yb::master::SysSnapshotEntryPB_State >(value));
12769
0
          } else {
12770
0
            mutable_unknown_fields()->AddVarint(
12771
0
                2, static_cast< ::google::protobuf::uint64>(value));
12772
0
          }
12773
0
        } else {
12774
0
          goto handle_unusual;
12775
0
        }
12776
0
        break;
12777
0
      }
12778
12779
0
      default: {
12780
0
      handle_unusual:
12781
0
        if (tag == 0) {
12782
0
          goto success;
12783
0
        }
12784
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12785
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12786
0
        break;
12787
0
      }
12788
0
    }
12789
0
  }
12790
0
success:
12791
  // @@protoc_insertion_point(parse_success:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12792
0
  return true;
12793
0
failure:
12794
  // @@protoc_insertion_point(parse_failure:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12795
0
  return false;
12796
0
#undef DO_
12797
0
}
12798
12799
void SysSnapshotEntryPB_TabletSnapshotPB::SerializeWithCachedSizes(
12800
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12801
  // @@protoc_insertion_point(serialize_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12802
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12803
0
  (void) cached_has_bits;
12804
12805
0
  cached_has_bits = _has_bits_[0];
12806
  // optional bytes id = 1;
12807
0
  if (cached_has_bits & 0x00000001u) {
12808
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12809
0
      1, this->id(), output);
12810
0
  }
12811
12812
  // optional .yb.master.SysSnapshotEntryPB.State state = 2;
12813
0
  if (cached_has_bits & 0x00000002u) {
12814
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
12815
0
      2, this->state(), output);
12816
0
  }
12817
12818
0
  if (_internal_metadata_.have_unknown_fields()) {
12819
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12820
0
        _internal_metadata_.unknown_fields(), output);
12821
0
  }
12822
  // @@protoc_insertion_point(serialize_end:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12823
0
}
12824
12825
::google::protobuf::uint8* SysSnapshotEntryPB_TabletSnapshotPB::InternalSerializeWithCachedSizesToArray(
12826
0
    bool deterministic, ::google::protobuf::uint8* target) const {
12827
0
  (void)deterministic; // Unused
12828
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12829
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12830
0
  (void) cached_has_bits;
12831
12832
0
  cached_has_bits = _has_bits_[0];
12833
  // optional bytes id = 1;
12834
0
  if (cached_has_bits & 0x00000001u) {
12835
0
    target =
12836
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12837
0
        1, this->id(), target);
12838
0
  }
12839
12840
  // optional .yb.master.SysSnapshotEntryPB.State state = 2;
12841
0
  if (cached_has_bits & 0x00000002u) {
12842
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12843
0
      2, this->state(), target);
12844
0
  }
12845
12846
0
  if (_internal_metadata_.have_unknown_fields()) {
12847
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12848
0
        _internal_metadata_.unknown_fields(), target);
12849
0
  }
12850
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12851
0
  return target;
12852
0
}
12853
12854
0
size_t SysSnapshotEntryPB_TabletSnapshotPB::ByteSizeLong() const {
12855
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12856
0
  size_t total_size = 0;
12857
12858
0
  if (_internal_metadata_.have_unknown_fields()) {
12859
0
    total_size +=
12860
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12861
0
        _internal_metadata_.unknown_fields());
12862
0
  }
12863
0
  if (_has_bits_[0 / 32] & 3u) {
12864
    // optional bytes id = 1;
12865
0
    if (has_id()) {
12866
0
      total_size += 1 +
12867
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
12868
0
          this->id());
12869
0
    }
12870
12871
    // optional .yb.master.SysSnapshotEntryPB.State state = 2;
12872
0
    if (has_state()) {
12873
0
      total_size += 1 +
12874
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
12875
0
    }
12876
12877
0
  }
12878
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12879
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12880
0
  _cached_size_ = cached_size;
12881
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12882
0
  return total_size;
12883
0
}
12884
12885
0
void SysSnapshotEntryPB_TabletSnapshotPB::MergeFrom(const ::google::protobuf::Message& from) {
12886
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12887
0
  GOOGLE_DCHECK_NE(&from, this);
12888
0
  const SysSnapshotEntryPB_TabletSnapshotPB* source =
12889
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysSnapshotEntryPB_TabletSnapshotPB>(
12890
0
          &from);
12891
0
  if (source == NULL) {
12892
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12893
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12894
0
  } else {
12895
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12896
0
    MergeFrom(*source);
12897
0
  }
12898
0
}
12899
12900
0
void SysSnapshotEntryPB_TabletSnapshotPB::MergeFrom(const SysSnapshotEntryPB_TabletSnapshotPB& from) {
12901
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12902
0
  GOOGLE_DCHECK_NE(&from, this);
12903
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12904
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12905
0
  (void) cached_has_bits;
12906
12907
0
  cached_has_bits = from._has_bits_[0];
12908
0
  if (cached_has_bits & 3u) {
12909
0
    if (cached_has_bits & 0x00000001u) {
12910
0
      set_has_id();
12911
0
      id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
12912
0
    }
12913
0
    if (cached_has_bits & 0x00000002u) {
12914
0
      state_ = from.state_;
12915
0
    }
12916
0
    _has_bits_[0] |= cached_has_bits;
12917
0
  }
12918
0
}
12919
12920
0
void SysSnapshotEntryPB_TabletSnapshotPB::CopyFrom(const ::google::protobuf::Message& from) {
12921
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12922
0
  if (&from == this) return;
12923
0
  Clear();
12924
0
  MergeFrom(from);
12925
0
}
12926
12927
0
void SysSnapshotEntryPB_TabletSnapshotPB::CopyFrom(const SysSnapshotEntryPB_TabletSnapshotPB& from) {
12928
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysSnapshotEntryPB.TabletSnapshotPB)
12929
0
  if (&from == this) return;
12930
0
  Clear();
12931
0
  MergeFrom(from);
12932
0
}
12933
12934
0
bool SysSnapshotEntryPB_TabletSnapshotPB::IsInitialized() const {
12935
0
  return true;
12936
0
}
12937
12938
0
void SysSnapshotEntryPB_TabletSnapshotPB::Swap(SysSnapshotEntryPB_TabletSnapshotPB* other) {
12939
0
  if (other == this) return;
12940
0
  InternalSwap(other);
12941
0
}
12942
0
void SysSnapshotEntryPB_TabletSnapshotPB::InternalSwap(SysSnapshotEntryPB_TabletSnapshotPB* other) {
12943
0
  using std::swap;
12944
0
  id_.Swap(&other->id_);
12945
0
  swap(state_, other->state_);
12946
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12947
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12948
0
  swap(_cached_size_, other->_cached_size_);
12949
0
}
12950
12951
0
::google::protobuf::Metadata SysSnapshotEntryPB_TabletSnapshotPB::GetMetadata() const {
12952
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
12953
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
12954
0
}
12955
12956
12957
// ===================================================================
12958
12959
15.8k
void SysSnapshotEntryPB::InitAsDefaultInstance() {
12960
15.8k
}
12961
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12962
const int SysSnapshotEntryPB::kStateFieldNumber;
12963
const int SysSnapshotEntryPB::kTabletSnapshotsFieldNumber;
12964
const int SysSnapshotEntryPB::kEntriesFieldNumber;
12965
const int SysSnapshotEntryPB::kSnapshotHybridTimeFieldNumber;
12966
const int SysSnapshotEntryPB::kVersionFieldNumber;
12967
const int SysSnapshotEntryPB::kScheduleIdFieldNumber;
12968
const int SysSnapshotEntryPB::kPreviousSnapshotHybridTimeFieldNumber;
12969
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12970
12971
SysSnapshotEntryPB::SysSnapshotEntryPB()
12972
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12973
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12974
0
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSnapshotEntryPB();
12975
0
  }
12976
15.8k
  SharedCtor();
12977
  // @@protoc_insertion_point(constructor:yb.master.SysSnapshotEntryPB)
12978
15.8k
}
12979
SysSnapshotEntryPB::SysSnapshotEntryPB(const SysSnapshotEntryPB& from)
12980
  : ::google::protobuf::Message(),
12981
      _internal_metadata_(NULL),
12982
      _has_bits_(from._has_bits_),
12983
      _cached_size_(0),
12984
      tablet_snapshots_(from.tablet_snapshots_),
12985
0
      entries_(from.entries_) {
12986
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12987
0
  schedule_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
12988
0
  if (from.has_schedule_id()) {
12989
0
    schedule_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_id_);
12990
0
  }
12991
0
  ::memcpy(&snapshot_hybrid_time_, &from.snapshot_hybrid_time_,
12992
0
    static_cast<size_t>(reinterpret_cast<char*>(&state_) -
12993
0
    reinterpret_cast<char*>(&snapshot_hybrid_time_)) + sizeof(state_));
12994
  // @@protoc_insertion_point(copy_constructor:yb.master.SysSnapshotEntryPB)
12995
0
}
12996
12997
15.8k
void SysSnapshotEntryPB::SharedCtor() {
12998
15.8k
  _cached_size_ = 0;
12999
15.8k
  schedule_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13000
15.8k
  ::memset(&snapshot_hybrid_time_, 0, static_cast<size_t>(
13001
15.8k
      reinterpret_cast<char*>(&state_) -
13002
15.8k
      reinterpret_cast<char*>(&snapshot_hybrid_time_)) + sizeof(state_));
13003
15.8k
}
13004
13005
0
SysSnapshotEntryPB::~SysSnapshotEntryPB() {
13006
  // @@protoc_insertion_point(destructor:yb.master.SysSnapshotEntryPB)
13007
0
  SharedDtor();
13008
0
}
13009
13010
0
void SysSnapshotEntryPB::SharedDtor() {
13011
0
  schedule_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13012
0
}
13013
13014
0
void SysSnapshotEntryPB::SetCachedSize(int size) const {
13015
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13016
0
  _cached_size_ = size;
13017
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13018
0
}
13019
0
const ::google::protobuf::Descriptor* SysSnapshotEntryPB::descriptor() {
13020
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
13021
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13022
0
}
13023
13024
0
const SysSnapshotEntryPB& SysSnapshotEntryPB::default_instance() {
13025
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysSnapshotEntryPB();
13026
0
  return *internal_default_instance();
13027
0
}
13028
13029
0
SysSnapshotEntryPB* SysSnapshotEntryPB::New(::google::protobuf::Arena* arena) const {
13030
0
  SysSnapshotEntryPB* n = new SysSnapshotEntryPB;
13031
0
  if (arena != NULL) {
13032
0
    arena->Own(n);
13033
0
  }
13034
0
  return n;
13035
0
}
13036
13037
0
void SysSnapshotEntryPB::Clear() {
13038
// @@protoc_insertion_point(message_clear_start:yb.master.SysSnapshotEntryPB)
13039
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13040
  // Prevent compiler warnings about cached_has_bits being unused
13041
0
  (void) cached_has_bits;
13042
13043
0
  tablet_snapshots_.Clear();
13044
0
  entries_.Clear();
13045
0
  cached_has_bits = _has_bits_[0];
13046
0
  if (cached_has_bits & 0x00000001u) {
13047
0
    GOOGLE_DCHECK(!schedule_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13048
0
    (*schedule_id_.UnsafeRawStringPointer())->clear();
13049
0
  }
13050
0
  if (cached_has_bits & 30u) {
13051
0
    ::memset(&snapshot_hybrid_time_, 0, static_cast<size_t>(
13052
0
        reinterpret_cast<char*>(&state_) -
13053
0
        reinterpret_cast<char*>(&snapshot_hybrid_time_)) + sizeof(state_));
13054
0
  }
13055
0
  _has_bits_.Clear();
13056
0
  _internal_metadata_.Clear();
13057
0
}
13058
13059
bool SysSnapshotEntryPB::MergePartialFromCodedStream(
13060
0
    ::google::protobuf::io::CodedInputStream* input) {
13061
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13062
0
  ::google::protobuf::uint32 tag;
13063
  // @@protoc_insertion_point(parse_start:yb.master.SysSnapshotEntryPB)
13064
0
  for (;;) {
13065
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13066
0
    tag = p.first;
13067
0
    if (!p.second) goto handle_unusual;
13068
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13069
      // optional .yb.master.SysSnapshotEntryPB.State state = 1 [default = UNKNOWN];
13070
0
      case 1: {
13071
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13072
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
13073
0
          int value;
13074
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13075
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
13076
0
                 input, &value)));
13077
0
          if (::yb::master::SysSnapshotEntryPB_State_IsValid(value)) {
13078
0
            set_state(static_cast< ::yb::master::SysSnapshotEntryPB_State >(value));
13079
0
          } else {
13080
0
            mutable_unknown_fields()->AddVarint(
13081
0
                1, static_cast< ::google::protobuf::uint64>(value));
13082
0
          }
13083
0
        } else {
13084
0
          goto handle_unusual;
13085
0
        }
13086
0
        break;
13087
0
      }
13088
13089
      // repeated .yb.master.SysSnapshotEntryPB.TabletSnapshotPB tablet_snapshots = 2;
13090
0
      case 2: {
13091
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13092
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13093
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablet_snapshots()));
13094
0
        } else {
13095
0
          goto handle_unusual;
13096
0
        }
13097
0
        break;
13098
0
      }
13099
13100
      // repeated .yb.master.SysRowEntry entries = 3;
13101
0
      case 3: {
13102
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13103
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13104
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_entries()));
13105
0
        } else {
13106
0
          goto handle_unusual;
13107
0
        }
13108
0
        break;
13109
0
      }
13110
13111
      // optional fixed64 snapshot_hybrid_time = 4;
13112
0
      case 4: {
13113
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13114
0
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
13115
0
          set_has_snapshot_hybrid_time();
13116
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13117
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
13118
0
                 input, &snapshot_hybrid_time_)));
13119
0
        } else {
13120
0
          goto handle_unusual;
13121
0
        }
13122
0
        break;
13123
0
      }
13124
13125
      // optional int64 version = 5;
13126
0
      case 5: {
13127
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13128
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
13129
0
          set_has_version();
13130
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13131
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
13132
0
                 input, &version_)));
13133
0
        } else {
13134
0
          goto handle_unusual;
13135
0
        }
13136
0
        break;
13137
0
      }
13138
13139
      // optional bytes schedule_id = 6;
13140
0
      case 6: {
13141
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13142
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
13143
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
13144
0
                input, this->mutable_schedule_id()));
13145
0
        } else {
13146
0
          goto handle_unusual;
13147
0
        }
13148
0
        break;
13149
0
      }
13150
13151
      // optional fixed64 previous_snapshot_hybrid_time = 7;
13152
0
      case 7: {
13153
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13154
0
            static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
13155
0
          set_has_previous_snapshot_hybrid_time();
13156
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13157
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
13158
0
                 input, &previous_snapshot_hybrid_time_)));
13159
0
        } else {
13160
0
          goto handle_unusual;
13161
0
        }
13162
0
        break;
13163
0
      }
13164
13165
0
      default: {
13166
0
      handle_unusual:
13167
0
        if (tag == 0) {
13168
0
          goto success;
13169
0
        }
13170
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13171
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13172
0
        break;
13173
0
      }
13174
0
    }
13175
0
  }
13176
0
success:
13177
  // @@protoc_insertion_point(parse_success:yb.master.SysSnapshotEntryPB)
13178
0
  return true;
13179
0
failure:
13180
  // @@protoc_insertion_point(parse_failure:yb.master.SysSnapshotEntryPB)
13181
0
  return false;
13182
0
#undef DO_
13183
0
}
13184
13185
void SysSnapshotEntryPB::SerializeWithCachedSizes(
13186
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13187
  // @@protoc_insertion_point(serialize_start:yb.master.SysSnapshotEntryPB)
13188
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13189
0
  (void) cached_has_bits;
13190
13191
0
  cached_has_bits = _has_bits_[0];
13192
  // optional .yb.master.SysSnapshotEntryPB.State state = 1 [default = UNKNOWN];
13193
0
  if (cached_has_bits & 0x00000010u) {
13194
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
13195
0
      1, this->state(), output);
13196
0
  }
13197
13198
  // repeated .yb.master.SysSnapshotEntryPB.TabletSnapshotPB tablet_snapshots = 2;
13199
0
  for (unsigned int i = 0,
13200
0
      n = static_cast<unsigned int>(this->tablet_snapshots_size()); i < n; i++) {
13201
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13202
0
      2, this->tablet_snapshots(static_cast<int>(i)), output);
13203
0
  }
13204
13205
  // repeated .yb.master.SysRowEntry entries = 3;
13206
0
  for (unsigned int i = 0,
13207
0
      n = static_cast<unsigned int>(this->entries_size()); i < n; i++) {
13208
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13209
0
      3, this->entries(static_cast<int>(i)), output);
13210
0
  }
13211
13212
  // optional fixed64 snapshot_hybrid_time = 4;
13213
0
  if (cached_has_bits & 0x00000002u) {
13214
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->snapshot_hybrid_time(), output);
13215
0
  }
13216
13217
  // optional int64 version = 5;
13218
0
  if (cached_has_bits & 0x00000004u) {
13219
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->version(), output);
13220
0
  }
13221
13222
  // optional bytes schedule_id = 6;
13223
0
  if (cached_has_bits & 0x00000001u) {
13224
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
13225
0
      6, this->schedule_id(), output);
13226
0
  }
13227
13228
  // optional fixed64 previous_snapshot_hybrid_time = 7;
13229
0
  if (cached_has_bits & 0x00000008u) {
13230
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(7, this->previous_snapshot_hybrid_time(), output);
13231
0
  }
13232
13233
0
  if (_internal_metadata_.have_unknown_fields()) {
13234
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13235
0
        _internal_metadata_.unknown_fields(), output);
13236
0
  }
13237
  // @@protoc_insertion_point(serialize_end:yb.master.SysSnapshotEntryPB)
13238
0
}
13239
13240
::google::protobuf::uint8* SysSnapshotEntryPB::InternalSerializeWithCachedSizesToArray(
13241
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13242
0
  (void)deterministic; // Unused
13243
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysSnapshotEntryPB)
13244
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13245
0
  (void) cached_has_bits;
13246
13247
0
  cached_has_bits = _has_bits_[0];
13248
  // optional .yb.master.SysSnapshotEntryPB.State state = 1 [default = UNKNOWN];
13249
0
  if (cached_has_bits & 0x00000010u) {
13250
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
13251
0
      1, this->state(), target);
13252
0
  }
13253
13254
  // repeated .yb.master.SysSnapshotEntryPB.TabletSnapshotPB tablet_snapshots = 2;
13255
0
  for (unsigned int i = 0,
13256
0
      n = static_cast<unsigned int>(this->tablet_snapshots_size()); i < n; i++) {
13257
0
    target = ::google::protobuf::internal::WireFormatLite::
13258
0
      InternalWriteMessageToArray(
13259
0
        2, this->tablet_snapshots(static_cast<int>(i)), deterministic, target);
13260
0
  }
13261
13262
  // repeated .yb.master.SysRowEntry entries = 3;
13263
0
  for (unsigned int i = 0,
13264
0
      n = static_cast<unsigned int>(this->entries_size()); i < n; i++) {
13265
0
    target = ::google::protobuf::internal::WireFormatLite::
13266
0
      InternalWriteMessageToArray(
13267
0
        3, this->entries(static_cast<int>(i)), deterministic, target);
13268
0
  }
13269
13270
  // optional fixed64 snapshot_hybrid_time = 4;
13271
0
  if (cached_has_bits & 0x00000002u) {
13272
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->snapshot_hybrid_time(), target);
13273
0
  }
13274
13275
  // optional int64 version = 5;
13276
0
  if (cached_has_bits & 0x00000004u) {
13277
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->version(), target);
13278
0
  }
13279
13280
  // optional bytes schedule_id = 6;
13281
0
  if (cached_has_bits & 0x00000001u) {
13282
0
    target =
13283
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
13284
0
        6, this->schedule_id(), target);
13285
0
  }
13286
13287
  // optional fixed64 previous_snapshot_hybrid_time = 7;
13288
0
  if (cached_has_bits & 0x00000008u) {
13289
0
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(7, this->previous_snapshot_hybrid_time(), target);
13290
0
  }
13291
13292
0
  if (_internal_metadata_.have_unknown_fields()) {
13293
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13294
0
        _internal_metadata_.unknown_fields(), target);
13295
0
  }
13296
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysSnapshotEntryPB)
13297
0
  return target;
13298
0
}
13299
13300
0
size_t SysSnapshotEntryPB::ByteSizeLong() const {
13301
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysSnapshotEntryPB)
13302
0
  size_t total_size = 0;
13303
13304
0
  if (_internal_metadata_.have_unknown_fields()) {
13305
0
    total_size +=
13306
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13307
0
        _internal_metadata_.unknown_fields());
13308
0
  }
13309
  // repeated .yb.master.SysSnapshotEntryPB.TabletSnapshotPB tablet_snapshots = 2;
13310
0
  {
13311
0
    unsigned int count = static_cast<unsigned int>(this->tablet_snapshots_size());
13312
0
    total_size += 1UL * count;
13313
0
    for (unsigned int i = 0; i < count; i++) {
13314
0
      total_size +=
13315
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13316
0
          this->tablet_snapshots(static_cast<int>(i)));
13317
0
    }
13318
0
  }
13319
13320
  // repeated .yb.master.SysRowEntry entries = 3;
13321
0
  {
13322
0
    unsigned int count = static_cast<unsigned int>(this->entries_size());
13323
0
    total_size += 1UL * count;
13324
0
    for (unsigned int i = 0; i < count; i++) {
13325
0
      total_size +=
13326
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13327
0
          this->entries(static_cast<int>(i)));
13328
0
    }
13329
0
  }
13330
13331
0
  if (_has_bits_[0 / 32] & 31u) {
13332
    // optional bytes schedule_id = 6;
13333
0
    if (has_schedule_id()) {
13334
0
      total_size += 1 +
13335
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
13336
0
          this->schedule_id());
13337
0
    }
13338
13339
    // optional fixed64 snapshot_hybrid_time = 4;
13340
0
    if (has_snapshot_hybrid_time()) {
13341
0
      total_size += 1 + 8;
13342
0
    }
13343
13344
    // optional int64 version = 5;
13345
0
    if (has_version()) {
13346
0
      total_size += 1 +
13347
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
13348
0
          this->version());
13349
0
    }
13350
13351
    // optional fixed64 previous_snapshot_hybrid_time = 7;
13352
0
    if (has_previous_snapshot_hybrid_time()) {
13353
0
      total_size += 1 + 8;
13354
0
    }
13355
13356
    // optional .yb.master.SysSnapshotEntryPB.State state = 1 [default = UNKNOWN];
13357
0
    if (has_state()) {
13358
0
      total_size += 1 +
13359
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
13360
0
    }
13361
13362
0
  }
13363
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13364
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13365
0
  _cached_size_ = cached_size;
13366
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13367
0
  return total_size;
13368
0
}
13369
13370
0
void SysSnapshotEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
13371
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysSnapshotEntryPB)
13372
0
  GOOGLE_DCHECK_NE(&from, this);
13373
0
  const SysSnapshotEntryPB* source =
13374
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysSnapshotEntryPB>(
13375
0
          &from);
13376
0
  if (source == NULL) {
13377
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysSnapshotEntryPB)
13378
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13379
0
  } else {
13380
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysSnapshotEntryPB)
13381
0
    MergeFrom(*source);
13382
0
  }
13383
0
}
13384
13385
0
void SysSnapshotEntryPB::MergeFrom(const SysSnapshotEntryPB& from) {
13386
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysSnapshotEntryPB)
13387
0
  GOOGLE_DCHECK_NE(&from, this);
13388
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13389
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13390
0
  (void) cached_has_bits;
13391
13392
0
  tablet_snapshots_.MergeFrom(from.tablet_snapshots_);
13393
0
  entries_.MergeFrom(from.entries_);
13394
0
  cached_has_bits = from._has_bits_[0];
13395
0
  if (cached_has_bits & 31u) {
13396
0
    if (cached_has_bits & 0x00000001u) {
13397
0
      set_has_schedule_id();
13398
0
      schedule_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_id_);
13399
0
    }
13400
0
    if (cached_has_bits & 0x00000002u) {
13401
0
      snapshot_hybrid_time_ = from.snapshot_hybrid_time_;
13402
0
    }
13403
0
    if (cached_has_bits & 0x00000004u) {
13404
0
      version_ = from.version_;
13405
0
    }
13406
0
    if (cached_has_bits & 0x00000008u) {
13407
0
      previous_snapshot_hybrid_time_ = from.previous_snapshot_hybrid_time_;
13408
0
    }
13409
0
    if (cached_has_bits & 0x00000010u) {
13410
0
      state_ = from.state_;
13411
0
    }
13412
0
    _has_bits_[0] |= cached_has_bits;
13413
0
  }
13414
0
}
13415
13416
0
void SysSnapshotEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
13417
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysSnapshotEntryPB)
13418
0
  if (&from == this) return;
13419
0
  Clear();
13420
0
  MergeFrom(from);
13421
0
}
13422
13423
0
void SysSnapshotEntryPB::CopyFrom(const SysSnapshotEntryPB& from) {
13424
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysSnapshotEntryPB)
13425
0
  if (&from == this) return;
13426
0
  Clear();
13427
0
  MergeFrom(from);
13428
0
}
13429
13430
0
bool SysSnapshotEntryPB::IsInitialized() const {
13431
0
  return true;
13432
0
}
13433
13434
0
void SysSnapshotEntryPB::Swap(SysSnapshotEntryPB* other) {
13435
0
  if (other == this) return;
13436
0
  InternalSwap(other);
13437
0
}
13438
0
void SysSnapshotEntryPB::InternalSwap(SysSnapshotEntryPB* other) {
13439
0
  using std::swap;
13440
0
  tablet_snapshots_.InternalSwap(&other->tablet_snapshots_);
13441
0
  entries_.InternalSwap(&other->entries_);
13442
0
  schedule_id_.Swap(&other->schedule_id_);
13443
0
  swap(snapshot_hybrid_time_, other->snapshot_hybrid_time_);
13444
0
  swap(version_, other->version_);
13445
0
  swap(previous_snapshot_hybrid_time_, other->previous_snapshot_hybrid_time_);
13446
0
  swap(state_, other->state_);
13447
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13448
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13449
0
  swap(_cached_size_, other->_cached_size_);
13450
0
}
13451
13452
0
::google::protobuf::Metadata SysSnapshotEntryPB::GetMetadata() const {
13453
0
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
13454
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
13455
0
}
13456
13457
13458
// ===================================================================
13459
13460
15.8k
SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse() {}
13461
0
SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
13462
0
void SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::MergeFrom(const SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse& other) {
13463
0
  MergeFromInternal(other);
13464
0
}
13465
0
::google::protobuf::Metadata SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::GetMetadata() const {
13466
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
13467
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[27];
13468
0
}
13469
void SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::MergeFrom(
13470
0
    const ::google::protobuf::Message& other) {
13471
0
  ::google::protobuf::Message::MergeFrom(other);
13472
0
}
13473
13474
13475
// ===================================================================
13476
13477
15.8k
SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse() {}
13478
0
SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
13479
0
void SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::MergeFrom(const SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse& other) {
13480
0
  MergeFromInternal(other);
13481
0
}
13482
0
::google::protobuf::Metadata SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::GetMetadata() const {
13483
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
13484
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[28];
13485
0
}
13486
void SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::MergeFrom(
13487
0
    const ::google::protobuf::Message& other) {
13488
0
  ::google::protobuf::Message::MergeFrom(other);
13489
0
}
13490
13491
13492
// ===================================================================
13493
13494
15.8k
void SysUniverseReplicationEntryPB::InitAsDefaultInstance() {
13495
15.8k
}
13496
0
void SysUniverseReplicationEntryPB::clear_producer_master_addresses() {
13497
0
  producer_master_addresses_.Clear();
13498
0
}
13499
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13500
const int SysUniverseReplicationEntryPB::kProducerIdFieldNumber;
13501
const int SysUniverseReplicationEntryPB::kProducerMasterAddressesFieldNumber;
13502
const int SysUniverseReplicationEntryPB::kTablesFieldNumber;
13503
const int SysUniverseReplicationEntryPB::kStateFieldNumber;
13504
const int SysUniverseReplicationEntryPB::kValidatedTablesFieldNumber;
13505
const int SysUniverseReplicationEntryPB::kTableStreamsFieldNumber;
13506
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13507
13508
SysUniverseReplicationEntryPB::SysUniverseReplicationEntryPB()
13509
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13510
9
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13511
9
    ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUniverseReplicationEntryPB();
13512
9
  }
13513
15.8k
  SharedCtor();
13514
  // @@protoc_insertion_point(constructor:yb.master.SysUniverseReplicationEntryPB)
13515
15.8k
}
13516
SysUniverseReplicationEntryPB::SysUniverseReplicationEntryPB(const SysUniverseReplicationEntryPB& from)
13517
  : ::google::protobuf::Message(),
13518
      _internal_metadata_(NULL),
13519
      _has_bits_(from._has_bits_),
13520
      _cached_size_(0),
13521
      producer_master_addresses_(from.producer_master_addresses_),
13522
4
      tables_(from.tables_) {
13523
4
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13524
4
  validated_tables_.MergeFrom(from.validated_tables_);
13525
4
  table_streams_.MergeFrom(from.table_streams_);
13526
4
  producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13527
4
  if (from.has_producer_id()) {
13528
0
    producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_);
13529
0
  }
13530
4
  state_ = from.state_;
13531
  // @@protoc_insertion_point(copy_constructor:yb.master.SysUniverseReplicationEntryPB)
13532
4
}
13533
13534
15.8k
void SysUniverseReplicationEntryPB::SharedCtor() {
13535
15.8k
  _cached_size_ = 0;
13536
15.8k
  producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13537
15.8k
  state_ = 0;
13538
15.8k
}
13539
13540
11
SysUniverseReplicationEntryPB::~SysUniverseReplicationEntryPB() {
13541
  // @@protoc_insertion_point(destructor:yb.master.SysUniverseReplicationEntryPB)
13542
11
  SharedDtor();
13543
11
}
13544
13545
11
void SysUniverseReplicationEntryPB::SharedDtor() {
13546
11
  producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13547
11
}
13548
13549
0
void SysUniverseReplicationEntryPB::SetCachedSize(int size) const {
13550
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13551
0
  _cached_size_ = size;
13552
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13553
0
}
13554
0
const ::google::protobuf::Descriptor* SysUniverseReplicationEntryPB::descriptor() {
13555
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
13556
0
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13557
0
}
13558
13559
0
const SysUniverseReplicationEntryPB& SysUniverseReplicationEntryPB::default_instance() {
13560
0
  ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::InitDefaultsSysUniverseReplicationEntryPB();
13561
0
  return *internal_default_instance();
13562
0
}
13563
13564
0
SysUniverseReplicationEntryPB* SysUniverseReplicationEntryPB::New(::google::protobuf::Arena* arena) const {
13565
0
  SysUniverseReplicationEntryPB* n = new SysUniverseReplicationEntryPB;
13566
0
  if (arena != NULL) {
13567
0
    arena->Own(n);
13568
0
  }
13569
0
  return n;
13570
0
}
13571
13572
2
void SysUniverseReplicationEntryPB::Clear() {
13573
// @@protoc_insertion_point(message_clear_start:yb.master.SysUniverseReplicationEntryPB)
13574
2
  ::google::protobuf::uint32 cached_has_bits = 0;
13575
  // Prevent compiler warnings about cached_has_bits being unused
13576
2
  (void) cached_has_bits;
13577
13578
2
  producer_master_addresses_.Clear();
13579
2
  tables_.Clear();
13580
2
  validated_tables_.Clear();
13581
2
  table_streams_.Clear();
13582
2
  cached_has_bits = _has_bits_[0];
13583
2
  if (cached_has_bits & 0x00000001u) {
13584
0
    GOOGLE_DCHECK(!producer_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13585
0
    (*producer_id_.UnsafeRawStringPointer())->clear();
13586
0
  }
13587
2
  state_ = 0;
13588
2
  _has_bits_.Clear();
13589
2
  _internal_metadata_.Clear();
13590
2
}
13591
13592
bool SysUniverseReplicationEntryPB::MergePartialFromCodedStream(
13593
1
    ::google::protobuf::io::CodedInputStream* input) {
13594
1
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13595
1
  ::google::protobuf::uint32 tag;
13596
  // @@protoc_insertion_point(parse_start:yb.master.SysUniverseReplicationEntryPB)
13597
2
  for (;;) {
13598
2
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13599
2
    tag = p.first;
13600
2
    if (!p.second) goto handle_unusual;
13601
1
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13602
      // optional string producer_id = 1;
13603
0
      case 1: {
13604
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13605
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13606
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13607
0
                input, this->mutable_producer_id()));
13608
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13609
0
            this->producer_id().data(), static_cast<int>(this->producer_id().length()),
13610
0
            ::google::protobuf::internal::WireFormat::PARSE,
13611
0
            "yb.master.SysUniverseReplicationEntryPB.producer_id");
13612
0
        } else {
13613
0
          goto handle_unusual;
13614
0
        }
13615
0
        break;
13616
0
      }
13617
13618
      // repeated .yb.HostPortPB producer_master_addresses = 2;
13619
0
      case 2: {
13620
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13621
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13622
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_producer_master_addresses()));
13623
0
        } else {
13624
0
          goto handle_unusual;
13625
0
        }
13626
0
        break;
13627
0
      }
13628
13629
      // repeated string tables = 3;
13630
1
      case 3: {
13631
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13632
1
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13633
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13634
1
                input, this->add_tables()));
13635
1
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13636
1
            this->tables(this->tables_size() - 1).data(),
13637
1
            static_cast<int>(this->tables(this->tables_size() - 1).length()),
13638
1
            ::google::protobuf::internal::WireFormat::PARSE,
13639
1
            "yb.master.SysUniverseReplicationEntryPB.tables");
13640
0
        } else {
13641
0
          goto handle_unusual;
13642
0
        }
13643
1
        break;
13644
1
      }
13645
13646
      // optional .yb.master.SysUniverseReplicationEntryPB.State state = 4 [default = INITIALIZING];
13647
0
      case 4: {
13648
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13649
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
13650
0
          int value;
13651
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13652
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
13653
0
                 input, &value)));
13654
0
          if (::yb::master::SysUniverseReplicationEntryPB_State_IsValid(value)) {
13655
0
            set_state(static_cast< ::yb::master::SysUniverseReplicationEntryPB_State >(value));
13656
0
          } else {
13657
0
            mutable_unknown_fields()->AddVarint(
13658
0
                4, static_cast< ::google::protobuf::uint64>(value));
13659
0
          }
13660
0
        } else {
13661
0
          goto handle_unusual;
13662
0
        }
13663
0
        break;
13664
0
      }
13665
13666
      // map<string, string> validated_tables = 5;
13667
0
      case 5: {
13668
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13669
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
13670
0
          SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
13671
0
              SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse,
13672
0
              ::std::string, ::std::string,
13673
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
13674
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
13675
0
              0 >,
13676
0
            ::google::protobuf::Map< ::std::string, ::std::string > > parser(&validated_tables_);
13677
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
13678
0
              input, &parser));
13679
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13680
0
            parser.key().data(), static_cast<int>(parser.key().length()),
13681
0
            ::google::protobuf::internal::WireFormat::PARSE,
13682
0
            "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.key");
13683
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13684
0
            parser.value().data(), static_cast<int>(parser.value().length()),
13685
0
            ::google::protobuf::internal::WireFormat::PARSE,
13686
0
            "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.value");
13687
0
        } else {
13688
0
          goto handle_unusual;
13689
0
        }
13690
0
        break;
13691
0
      }
13692
13693
      // map<string, string> table_streams = 6;
13694
0
      case 6: {
13695
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13696
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
13697
0
          SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
13698
0
              SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse,
13699
0
              ::std::string, ::std::string,
13700
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
13701
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
13702
0
              0 >,
13703
0
            ::google::protobuf::Map< ::std::string, ::std::string > > parser(&table_streams_);
13704
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
13705
0
              input, &parser));
13706
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13707
0
            parser.key().data(), static_cast<int>(parser.key().length()),
13708
0
            ::google::protobuf::internal::WireFormat::PARSE,
13709
0
            "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.key");
13710
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13711
0
            parser.value().data(), static_cast<int>(parser.value().length()),
13712
0
            ::google::protobuf::internal::WireFormat::PARSE,
13713
0
            "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.value");
13714
0
        } else {
13715
0
          goto handle_unusual;
13716
0
        }
13717
0
        break;
13718
1
      }
13719
13720
0
      default: {
13721
1
      handle_unusual:
13722
1
        if (tag == 0) {
13723
1
          goto success;
13724
1
        }
13725
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13726
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13727
0
        break;
13728
0
      }
13729
1
    }
13730
1
  }
13731
1
success:
13732
  // @@protoc_insertion_point(parse_success:yb.master.SysUniverseReplicationEntryPB)
13733
1
  return true;
13734
0
failure:
13735
  // @@protoc_insertion_point(parse_failure:yb.master.SysUniverseReplicationEntryPB)
13736
0
  return false;
13737
1
#undef DO_
13738
1
}
13739
13740
void SysUniverseReplicationEntryPB::SerializeWithCachedSizes(
13741
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13742
  // @@protoc_insertion_point(serialize_start:yb.master.SysUniverseReplicationEntryPB)
13743
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13744
0
  (void) cached_has_bits;
13745
13746
0
  cached_has_bits = _has_bits_[0];
13747
  // optional string producer_id = 1;
13748
0
  if (cached_has_bits & 0x00000001u) {
13749
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13750
0
      this->producer_id().data(), static_cast<int>(this->producer_id().length()),
13751
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13752
0
      "yb.master.SysUniverseReplicationEntryPB.producer_id");
13753
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13754
0
      1, this->producer_id(), output);
13755
0
  }
13756
13757
  // repeated .yb.HostPortPB producer_master_addresses = 2;
13758
0
  for (unsigned int i = 0,
13759
0
      n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++) {
13760
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13761
0
      2, this->producer_master_addresses(static_cast<int>(i)), output);
13762
0
  }
13763
13764
  // repeated string tables = 3;
13765
0
  for (int i = 0, n = this->tables_size(); i < n; i++) {
13766
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13767
0
      this->tables(i).data(), static_cast<int>(this->tables(i).length()),
13768
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13769
0
      "yb.master.SysUniverseReplicationEntryPB.tables");
13770
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
13771
0
      3, this->tables(i), output);
13772
0
  }
13773
13774
  // optional .yb.master.SysUniverseReplicationEntryPB.State state = 4 [default = INITIALIZING];
13775
0
  if (cached_has_bits & 0x00000002u) {
13776
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
13777
0
      4, this->state(), output);
13778
0
  }
13779
13780
  // map<string, string> validated_tables = 5;
13781
0
  if (!this->validated_tables().empty()) {
13782
0
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
13783
0
        ConstPtr;
13784
0
    typedef ConstPtr SortItem;
13785
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
13786
0
    struct Utf8Check {
13787
0
      static void Check(ConstPtr p) {
13788
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13789
0
          p->first.data(), static_cast<int>(p->first.length()),
13790
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13791
0
          "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.key");
13792
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13793
0
          p->second.data(), static_cast<int>(p->second.length()),
13794
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13795
0
          "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.value");
13796
0
      }
13797
0
    };
13798
13799
0
    if (output->IsSerializationDeterministic() &&
13800
0
        this->validated_tables().size() > 1) {
13801
0
      ::google::protobuf::scoped_array<SortItem> items(
13802
0
          new SortItem[this->validated_tables().size()]);
13803
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
13804
0
      size_type n = 0;
13805
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13806
0
          it = this->validated_tables().begin();
13807
0
          it != this->validated_tables().end(); ++it, ++n) {
13808
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
13809
0
      }
13810
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
13811
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse> entry;
13812
0
      for (size_type i = 0; i < n; i++) {
13813
0
        entry.reset(validated_tables_.NewEntryWrapper(
13814
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
13815
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13816
0
            5, *entry, output);
13817
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
13818
0
      }
13819
0
    } else {
13820
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse> entry;
13821
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13822
0
          it = this->validated_tables().begin();
13823
0
          it != this->validated_tables().end(); ++it) {
13824
0
        entry.reset(validated_tables_.NewEntryWrapper(
13825
0
            it->first, it->second));
13826
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13827
0
            5, *entry, output);
13828
0
        Utf8Check::Check(&*it);
13829
0
      }
13830
0
    }
13831
0
  }
13832
13833
  // map<string, string> table_streams = 6;
13834
0
  if (!this->table_streams().empty()) {
13835
0
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
13836
0
        ConstPtr;
13837
0
    typedef ConstPtr SortItem;
13838
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
13839
0
    struct Utf8Check {
13840
0
      static void Check(ConstPtr p) {
13841
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13842
0
          p->first.data(), static_cast<int>(p->first.length()),
13843
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13844
0
          "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.key");
13845
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13846
0
          p->second.data(), static_cast<int>(p->second.length()),
13847
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13848
0
          "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.value");
13849
0
      }
13850
0
    };
13851
13852
0
    if (output->IsSerializationDeterministic() &&
13853
0
        this->table_streams().size() > 1) {
13854
0
      ::google::protobuf::scoped_array<SortItem> items(
13855
0
          new SortItem[this->table_streams().size()]);
13856
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
13857
0
      size_type n = 0;
13858
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13859
0
          it = this->table_streams().begin();
13860
0
          it != this->table_streams().end(); ++it, ++n) {
13861
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
13862
0
      }
13863
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
13864
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse> entry;
13865
0
      for (size_type i = 0; i < n; i++) {
13866
0
        entry.reset(table_streams_.NewEntryWrapper(
13867
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
13868
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13869
0
            6, *entry, output);
13870
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
13871
0
      }
13872
0
    } else {
13873
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse> entry;
13874
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13875
0
          it = this->table_streams().begin();
13876
0
          it != this->table_streams().end(); ++it) {
13877
0
        entry.reset(table_streams_.NewEntryWrapper(
13878
0
            it->first, it->second));
13879
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13880
0
            6, *entry, output);
13881
0
        Utf8Check::Check(&*it);
13882
0
      }
13883
0
    }
13884
0
  }
13885
13886
0
  if (_internal_metadata_.have_unknown_fields()) {
13887
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13888
0
        _internal_metadata_.unknown_fields(), output);
13889
0
  }
13890
  // @@protoc_insertion_point(serialize_end:yb.master.SysUniverseReplicationEntryPB)
13891
0
}
13892
13893
::google::protobuf::uint8* SysUniverseReplicationEntryPB::InternalSerializeWithCachedSizesToArray(
13894
3
    bool deterministic, ::google::protobuf::uint8* target) const {
13895
3
  (void)deterministic; // Unused
13896
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.SysUniverseReplicationEntryPB)
13897
3
  ::google::protobuf::uint32 cached_has_bits = 0;
13898
3
  (void) cached_has_bits;
13899
13900
3
  cached_has_bits = _has_bits_[0];
13901
  // optional string producer_id = 1;
13902
3
  if (cached_has_bits & 0x00000001u) {
13903
2
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13904
2
      this->producer_id().data(), static_cast<int>(this->producer_id().length()),
13905
2
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13906
2
      "yb.master.SysUniverseReplicationEntryPB.producer_id");
13907
2
    target =
13908
2
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13909
2
        1, this->producer_id(), target);
13910
2
  }
13911
13912
  // repeated .yb.HostPortPB producer_master_addresses = 2;
13913
3
  for (unsigned int i = 0,
13914
5
      n = static_cast<unsigned int>(this->producer_master_addresses_size()); i < n; i++) {
13915
2
    target = ::google::protobuf::internal::WireFormatLite::
13916
2
      InternalWriteMessageToArray(
13917
2
        2, this->producer_master_addresses(static_cast<int>(i)), deterministic, target);
13918
2
  }
13919
13920
  // repeated string tables = 3;
13921
6
  for (int i = 0, n = this->tables_size(); i < n; i++) {
13922
3
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13923
3
      this->tables(i).data(), static_cast<int>(this->tables(i).length()),
13924
3
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13925
3
      "yb.master.SysUniverseReplicationEntryPB.tables");
13926
3
    target = ::google::protobuf::internal::WireFormatLite::
13927
3
      WriteStringToArray(3, this->tables(i), target);
13928
3
  }
13929
13930
  // optional .yb.master.SysUniverseReplicationEntryPB.State state = 4 [default = INITIALIZING];
13931
3
  if (cached_has_bits & 0x00000002u) {
13932
2
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
13933
2
      4, this->state(), target);
13934
2
  }
13935
13936
  // map<string, string> validated_tables = 5;
13937
3
  if (!this->validated_tables().empty()) {
13938
0
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
13939
0
        ConstPtr;
13940
0
    typedef ConstPtr SortItem;
13941
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
13942
0
    struct Utf8Check {
13943
0
      static void Check(ConstPtr p) {
13944
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13945
0
          p->first.data(), static_cast<int>(p->first.length()),
13946
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13947
0
          "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.key");
13948
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13949
0
          p->second.data(), static_cast<int>(p->second.length()),
13950
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
13951
0
          "yb.master.SysUniverseReplicationEntryPB.ValidatedTablesEntry.value");
13952
0
      }
13953
0
    };
13954
13955
0
    if (deterministic &&
13956
0
        this->validated_tables().size() > 1) {
13957
0
      ::google::protobuf::scoped_array<SortItem> items(
13958
0
          new SortItem[this->validated_tables().size()]);
13959
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
13960
0
      size_type n = 0;
13961
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13962
0
          it = this->validated_tables().begin();
13963
0
          it != this->validated_tables().end(); ++it, ++n) {
13964
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
13965
0
      }
13966
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
13967
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse> entry;
13968
0
      for (size_type i = 0; i < n; i++) {
13969
0
        entry.reset(validated_tables_.NewEntryWrapper(
13970
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
13971
0
        target = ::google::protobuf::internal::WireFormatLite::
13972
0
                   InternalWriteMessageNoVirtualToArray(
13973
0
                       5, *entry, deterministic, target);
13974
0
;
13975
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
13976
0
      }
13977
0
    } else {
13978
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse> entry;
13979
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
13980
0
          it = this->validated_tables().begin();
13981
0
          it != this->validated_tables().end(); ++it) {
13982
0
        entry.reset(validated_tables_.NewEntryWrapper(
13983
0
            it->first, it->second));
13984
0
        target = ::google::protobuf::internal::WireFormatLite::
13985
0
                   InternalWriteMessageNoVirtualToArray(
13986
0
                       5, *entry, deterministic, target);
13987
0
;
13988
0
        Utf8Check::Check(&*it);
13989
0
      }
13990
0
    }
13991
0
  }
13992
13993
  // map<string, string> table_streams = 6;
13994
3
  if (!this->table_streams().empty()) {
13995
0
    typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
13996
0
        ConstPtr;
13997
0
    typedef ConstPtr SortItem;
13998
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
13999
0
    struct Utf8Check {
14000
0
      static void Check(ConstPtr p) {
14001
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14002
0
          p->first.data(), static_cast<int>(p->first.length()),
14003
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
14004
0
          "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.key");
14005
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14006
0
          p->second.data(), static_cast<int>(p->second.length()),
14007
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
14008
0
          "yb.master.SysUniverseReplicationEntryPB.TableStreamsEntry.value");
14009
0
      }
14010
0
    };
14011
14012
0
    if (deterministic &&
14013
0
        this->table_streams().size() > 1) {
14014
0
      ::google::protobuf::scoped_array<SortItem> items(
14015
0
          new SortItem[this->table_streams().size()]);
14016
0
      typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
14017
0
      size_type n = 0;
14018
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
14019
0
          it = this->table_streams().begin();
14020
0
          it != this->table_streams().end(); ++it, ++n) {
14021
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
14022
0
      }
14023
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
14024
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse> entry;
14025
0
      for (size_type i = 0; i < n; i++) {
14026
0
        entry.reset(table_streams_.NewEntryWrapper(
14027
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
14028
0
        target = ::google::protobuf::internal::WireFormatLite::
14029
0
                   InternalWriteMessageNoVirtualToArray(
14030
0
                       6, *entry, deterministic, target);
14031
0
;
14032
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
14033
0
      }
14034
0
    } else {
14035
0
      ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse> entry;
14036
0
      for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
14037
0
          it = this->table_streams().begin();
14038
0
          it != this->table_streams().end(); ++it) {
14039
0
        entry.reset(table_streams_.NewEntryWrapper(
14040
0
            it->first, it->second));
14041
0
        target = ::google::protobuf::internal::WireFormatLite::
14042
0
                   InternalWriteMessageNoVirtualToArray(
14043
0
                       6, *entry, deterministic, target);
14044
0
;
14045
0
        Utf8Check::Check(&*it);
14046
0
      }
14047
0
    }
14048
0
  }
14049
14050
3
  if (_internal_metadata_.have_unknown_fields()) {
14051
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14052
0
        _internal_metadata_.unknown_fields(), target);
14053
0
  }
14054
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.SysUniverseReplicationEntryPB)
14055
3
  return target;
14056
3
}
14057
14058
3
size_t SysUniverseReplicationEntryPB::ByteSizeLong() const {
14059
// @@protoc_insertion_point(message_byte_size_start:yb.master.SysUniverseReplicationEntryPB)
14060
3
  size_t total_size = 0;
14061
14062
3
  if (_internal_metadata_.have_unknown_fields()) {
14063
0
    total_size +=
14064
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14065
0
        _internal_metadata_.unknown_fields());
14066
0
  }
14067
  // repeated .yb.HostPortPB producer_master_addresses = 2;
14068
3
  {
14069
3
    unsigned int count = static_cast<unsigned int>(this->producer_master_addresses_size());
14070
3
    total_size += 1UL * count;
14071
5
    for (unsigned int i = 0; i < count; i++) {
14072
2
      total_size +=
14073
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
14074
2
          this->producer_master_addresses(static_cast<int>(i)));
14075
2
    }
14076
3
  }
14077
14078
  // repeated string tables = 3;
14079
3
  total_size += 1 *
14080
3
      ::google::protobuf::internal::FromIntSize(this->tables_size());
14081
6
  for (int i = 0, n = this->tables_size(); i < n; i++) {
14082
3
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
14083
3
      this->tables(i));
14084
3
  }
14085
14086
  // map<string, string> validated_tables = 5;
14087
3
  total_size += 1 *
14088
3
      ::google::protobuf::internal::FromIntSize(this->validated_tables_size());
14089
3
  {
14090
3
    ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_ValidatedTablesEntry_DoNotUse> entry;
14091
3
    for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
14092
3
        it = this->validated_tables().begin();
14093
3
        it != this->validated_tables().end(); ++it) {
14094
0
      entry.reset(validated_tables_.NewEntryWrapper(it->first, it->second));
14095
0
      total_size += ::google::protobuf::internal::WireFormatLite::
14096
0
          MessageSizeNoVirtual(*entry);
14097
0
    }
14098
3
  }
14099
14100
  // map<string, string> table_streams = 6;
14101
3
  total_size += 1 *
14102
3
      ::google::protobuf::internal::FromIntSize(this->table_streams_size());
14103
3
  {
14104
3
    ::google::protobuf::scoped_ptr<SysUniverseReplicationEntryPB_TableStreamsEntry_DoNotUse> entry;
14105
3
    for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
14106
3
        it = this->table_streams().begin();
14107
3
        it != this->table_streams().end(); ++it) {
14108
0
      entry.reset(table_streams_.NewEntryWrapper(it->first, it->second));
14109
0
      total_size += ::google::protobuf::internal::WireFormatLite::
14110
0
          MessageSizeNoVirtual(*entry);
14111
0
    }
14112
3
  }
14113
14114
3
  if (_has_bits_[0 / 32] & 3u) {
14115
    // optional string producer_id = 1;
14116
2
    if (has_producer_id()) {
14117
2
      total_size += 1 +
14118
2
        ::google::protobuf::internal::WireFormatLite::StringSize(
14119
2
          this->producer_id());
14120
2
    }
14121
14122
    // optional .yb.master.SysUniverseReplicationEntryPB.State state = 4 [default = INITIALIZING];
14123
2
    if (has_state()) {
14124
2
      total_size += 1 +
14125
2
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
14126
2
    }
14127
14128
2
  }
14129
3
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14130
3
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14131
3
  _cached_size_ = cached_size;
14132
3
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14133
3
  return total_size;
14134
3
}
14135
14136
0
void SysUniverseReplicationEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
14137
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.SysUniverseReplicationEntryPB)
14138
0
  GOOGLE_DCHECK_NE(&from, this);
14139
0
  const SysUniverseReplicationEntryPB* source =
14140
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SysUniverseReplicationEntryPB>(
14141
0
          &from);
14142
0
  if (source == NULL) {
14143
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.SysUniverseReplicationEntryPB)
14144
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14145
0
  } else {
14146
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.SysUniverseReplicationEntryPB)
14147
0
    MergeFrom(*source);
14148
0
  }
14149
0
}
14150
14151
1
void SysUniverseReplicationEntryPB::MergeFrom(const SysUniverseReplicationEntryPB& from) {
14152
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.SysUniverseReplicationEntryPB)
14153
1
  GOOGLE_DCHECK_NE(&from, this);
14154
1
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14155
1
  ::google::protobuf::uint32 cached_has_bits = 0;
14156
1
  (void) cached_has_bits;
14157
14158
1
  producer_master_addresses_.MergeFrom(from.producer_master_addresses_);
14159
1
  tables_.MergeFrom(from.tables_);
14160
1
  validated_tables_.MergeFrom(from.validated_tables_);
14161
1
  table_streams_.MergeFrom(from.table_streams_);
14162
1
  cached_has_bits = from._has_bits_[0];
14163
1
  if (cached_has_bits & 3u) {
14164
0
    if (cached_has_bits & 0x00000001u) {
14165
0
      set_has_producer_id();
14166
0
      producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_);
14167
0
    }
14168
0
    if (cached_has_bits & 0x00000002u) {
14169
0
      state_ = from.state_;
14170
0
    }
14171
0
    _has_bits_[0] |= cached_has_bits;
14172
0
  }
14173
1
}
14174
14175
0
void SysUniverseReplicationEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
14176
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.SysUniverseReplicationEntryPB)
14177
0
  if (&from == this) return;
14178
0
  Clear();
14179
0
  MergeFrom(from);
14180
0
}
14181
14182
1
void SysUniverseReplicationEntryPB::CopyFrom(const SysUniverseReplicationEntryPB& from) {
14183
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.SysUniverseReplicationEntryPB)
14184
1
  if (&from == this) return;
14185
1
  Clear();
14186
1
  MergeFrom(from);
14187
1
}
14188
14189
4
bool SysUniverseReplicationEntryPB::IsInitialized() const {
14190
4
  if (!::google::protobuf::internal::AllAreInitialized(this->producer_master_addresses())) return false;
14191
4
  return true;
14192
4
}
14193
14194
0
void SysUniverseReplicationEntryPB::Swap(SysUniverseReplicationEntryPB* other) {
14195
0
  if (other == this) return;
14196
0
  InternalSwap(other);
14197
0
}
14198
12
void SysUniverseReplicationEntryPB::InternalSwap(SysUniverseReplicationEntryPB* other) {
14199
12
  using std::swap;
14200
12
  producer_master_addresses_.InternalSwap(&other->producer_master_addresses_);
14201
12
  tables_.InternalSwap(&other->tables_);
14202
12
  validated_tables_.Swap(&other->validated_tables_);
14203
12
  table_streams_.Swap(&other->table_streams_);
14204
12
  producer_id_.Swap(&other->producer_id_);
14205
12
  swap(state_, other->state_);
14206
12
  swap(_has_bits_[0], other->_has_bits_[0]);
14207
12
  _internal_metadata_.Swap(&other->_internal_metadata_);
14208
12
  swap(_cached_size_, other->_cached_size_);
14209
12
}
14210
14211
32
::google::protobuf::Metadata SysUniverseReplicationEntryPB::GetMetadata() const {
14212
32
  protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::protobuf_AssignDescriptorsOnce();
14213
32
  return ::protobuf_yb_2fmaster_2fcatalog_5fentity_5finfo_2eproto::file_level_metadata[kIndexInFileMessages];
14214
32
}
14215
14216
14217
// @@protoc_insertion_point(namespace_scope)
14218
}  // namespace master
14219
}  // namespace yb
14220
14221
// @@protoc_insertion_point(global_scope)