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/common/common.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/common/common.proto
3
4
#include "yb/common/common.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
class QLTypePB_UDTypeInfoDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<QLTypePB_UDTypeInfo>
27
      _instance;
28
} _QLTypePB_UDTypeInfo_default_instance_;
29
class QLTypePBDefaultTypeInternal {
30
 public:
31
  ::google::protobuf::internal::ExplicitlyConstructed<QLTypePB>
32
      _instance;
33
} _QLTypePB_default_instance_;
34
class ColumnSchemaPBDefaultTypeInternal {
35
 public:
36
  ::google::protobuf::internal::ExplicitlyConstructed<ColumnSchemaPB>
37
      _instance;
38
} _ColumnSchemaPB_default_instance_;
39
class ColocatedTableIdentifierPBDefaultTypeInternal {
40
 public:
41
  ::google::protobuf::internal::ExplicitlyConstructed<ColocatedTableIdentifierPB>
42
      _instance;
43
  ::google::protobuf::uint32 pgtable_id_;
44
  ::google::protobuf::internal::ArenaStringPtr cotable_id_;
45
} _ColocatedTableIdentifierPB_default_instance_;
46
class TablePropertiesPBDefaultTypeInternal {
47
 public:
48
  ::google::protobuf::internal::ExplicitlyConstructed<TablePropertiesPB>
49
      _instance;
50
} _TablePropertiesPB_default_instance_;
51
class SchemaPBDefaultTypeInternal {
52
 public:
53
  ::google::protobuf::internal::ExplicitlyConstructed<SchemaPB>
54
      _instance;
55
} _SchemaPB_default_instance_;
56
class IndexInfoPB_IndexColumnPBDefaultTypeInternal {
57
 public:
58
  ::google::protobuf::internal::ExplicitlyConstructed<IndexInfoPB_IndexColumnPB>
59
      _instance;
60
} _IndexInfoPB_IndexColumnPB_default_instance_;
61
class IndexInfoPB_WherePredicateSpecPBDefaultTypeInternal {
62
 public:
63
  ::google::protobuf::internal::ExplicitlyConstructed<IndexInfoPB_WherePredicateSpecPB>
64
      _instance;
65
} _IndexInfoPB_WherePredicateSpecPB_default_instance_;
66
class IndexInfoPBDefaultTypeInternal {
67
 public:
68
  ::google::protobuf::internal::ExplicitlyConstructed<IndexInfoPB>
69
      _instance;
70
} _IndexInfoPB_default_instance_;
71
class PartitionSchemaPB_ColumnIdentifierPBDefaultTypeInternal {
72
 public:
73
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionSchemaPB_ColumnIdentifierPB>
74
      _instance;
75
  ::google::protobuf::int32 id_;
76
  ::google::protobuf::internal::ArenaStringPtr name_;
77
} _PartitionSchemaPB_ColumnIdentifierPB_default_instance_;
78
class PartitionSchemaPB_RangeSplitPBDefaultTypeInternal {
79
 public:
80
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionSchemaPB_RangeSplitPB>
81
      _instance;
82
} _PartitionSchemaPB_RangeSplitPB_default_instance_;
83
class PartitionSchemaPB_RangeSchemaPBDefaultTypeInternal {
84
 public:
85
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionSchemaPB_RangeSchemaPB>
86
      _instance;
87
} _PartitionSchemaPB_RangeSchemaPB_default_instance_;
88
class PartitionSchemaPB_HashBucketSchemaPBDefaultTypeInternal {
89
 public:
90
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionSchemaPB_HashBucketSchemaPB>
91
      _instance;
92
} _PartitionSchemaPB_HashBucketSchemaPB_default_instance_;
93
class PartitionSchemaPBDefaultTypeInternal {
94
 public:
95
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionSchemaPB>
96
      _instance;
97
} _PartitionSchemaPB_default_instance_;
98
class PartitionPBDefaultTypeInternal {
99
 public:
100
  ::google::protobuf::internal::ExplicitlyConstructed<PartitionPB>
101
      _instance;
102
} _PartitionPB_default_instance_;
103
class TransactionMetadataPBDefaultTypeInternal {
104
 public:
105
  ::google::protobuf::internal::ExplicitlyConstructed<TransactionMetadataPB>
106
      _instance;
107
} _TransactionMetadataPB_default_instance_;
108
class ReadHybridTimePBDefaultTypeInternal {
109
 public:
110
  ::google::protobuf::internal::ExplicitlyConstructed<ReadHybridTimePB>
111
      _instance;
112
} _ReadHybridTimePB_default_instance_;
113
class ChildTransactionDataPB_LocalLimitsEntry_DoNotUseDefaultTypeInternal {
114
 public:
115
  ::google::protobuf::internal::ExplicitlyConstructed<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse>
116
      _instance;
117
} _ChildTransactionDataPB_LocalLimitsEntry_DoNotUse_default_instance_;
118
class ChildTransactionDataPBDefaultTypeInternal {
119
 public:
120
  ::google::protobuf::internal::ExplicitlyConstructed<ChildTransactionDataPB>
121
      _instance;
122
} _ChildTransactionDataPB_default_instance_;
123
class TransactionInvolvedTabletPBDefaultTypeInternal {
124
 public:
125
  ::google::protobuf::internal::ExplicitlyConstructed<TransactionInvolvedTabletPB>
126
      _instance;
127
} _TransactionInvolvedTabletPB_default_instance_;
128
class ChildTransactionResultPB_ReadRestartsEntry_DoNotUseDefaultTypeInternal {
129
 public:
130
  ::google::protobuf::internal::ExplicitlyConstructed<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse>
131
      _instance;
132
} _ChildTransactionResultPB_ReadRestartsEntry_DoNotUse_default_instance_;
133
class ChildTransactionResultPBDefaultTypeInternal {
134
 public:
135
  ::google::protobuf::internal::ExplicitlyConstructed<ChildTransactionResultPB>
136
      _instance;
137
} _ChildTransactionResultPB_default_instance_;
138
class DeletedColumnPBDefaultTypeInternal {
139
 public:
140
  ::google::protobuf::internal::ExplicitlyConstructed<DeletedColumnPB>
141
      _instance;
142
} _DeletedColumnPB_default_instance_;
143
class QLSubscriptedColPBDefaultTypeInternal {
144
 public:
145
  ::google::protobuf::internal::ExplicitlyConstructed<QLSubscriptedColPB>
146
      _instance;
147
} _QLSubscriptedColPB_default_instance_;
148
class QLJsonColumnOperationsPBDefaultTypeInternal {
149
 public:
150
  ::google::protobuf::internal::ExplicitlyConstructed<QLJsonColumnOperationsPB>
151
      _instance;
152
} _QLJsonColumnOperationsPB_default_instance_;
153
class QLJsonOperationPBDefaultTypeInternal {
154
 public:
155
  ::google::protobuf::internal::ExplicitlyConstructed<QLJsonOperationPB>
156
      _instance;
157
} _QLJsonOperationPB_default_instance_;
158
class QLExpressionPBDefaultTypeInternal {
159
 public:
160
  ::google::protobuf::internal::ExplicitlyConstructed<QLExpressionPB>
161
      _instance;
162
  const ::yb::QLValuePB* value_;
163
  ::google::protobuf::int32 column_id_;
164
  const ::yb::QLSubscriptedColPB* subscripted_col_;
165
  ::google::protobuf::int32 bind_id_;
166
  const ::yb::QLConditionPB* condition_;
167
  const ::yb::QLBCallPB* bfcall_;
168
  const ::yb::QLBCallPB* tscall_;
169
  const ::yb::QLBCallPB* bocall_;
170
  const ::yb::QLJsonColumnOperationsPB* json_column_;
171
} _QLExpressionPB_default_instance_;
172
class QLConditionPBDefaultTypeInternal {
173
 public:
174
  ::google::protobuf::internal::ExplicitlyConstructed<QLConditionPB>
175
      _instance;
176
} _QLConditionPB_default_instance_;
177
class QLBCallPBDefaultTypeInternal {
178
 public:
179
  ::google::protobuf::internal::ExplicitlyConstructed<QLBCallPB>
180
      _instance;
181
} _QLBCallPB_default_instance_;
182
class ExplainPlanPBDefaultTypeInternal {
183
 public:
184
  ::google::protobuf::internal::ExplicitlyConstructed<ExplainPlanPB>
185
      _instance;
186
  const ::yb::SelectPlanPB* select_plan_;
187
  const ::yb::InsertPlanPB* insert_plan_;
188
  const ::yb::UpdatePlanPB* update_plan_;
189
  const ::yb::DeletePlanPB* delete_plan_;
190
} _ExplainPlanPB_default_instance_;
191
class SelectPlanPBDefaultTypeInternal {
192
 public:
193
  ::google::protobuf::internal::ExplicitlyConstructed<SelectPlanPB>
194
      _instance;
195
} _SelectPlanPB_default_instance_;
196
class InsertPlanPBDefaultTypeInternal {
197
 public:
198
  ::google::protobuf::internal::ExplicitlyConstructed<InsertPlanPB>
199
      _instance;
200
} _InsertPlanPB_default_instance_;
201
class UpdatePlanPBDefaultTypeInternal {
202
 public:
203
  ::google::protobuf::internal::ExplicitlyConstructed<UpdatePlanPB>
204
      _instance;
205
} _UpdatePlanPB_default_instance_;
206
class DeletePlanPBDefaultTypeInternal {
207
 public:
208
  ::google::protobuf::internal::ExplicitlyConstructed<DeletePlanPB>
209
      _instance;
210
} _DeletePlanPB_default_instance_;
211
}  // namespace yb
212
namespace protobuf_yb_2fcommon_2fcommon_2eproto {
213
17.1k
void InitDefaultsQLTypePB_UDTypeInfoImpl() {
214
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
215
216
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
217
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
218
#else
219
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
220
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
221
17.1k
  {
222
17.1k
    void* ptr = &::yb::_QLTypePB_UDTypeInfo_default_instance_;
223
17.1k
    new (ptr) ::yb::QLTypePB_UDTypeInfo();
224
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
225
17.1k
  }
226
17.1k
  ::yb::QLTypePB_UDTypeInfo::InitAsDefaultInstance();
227
17.1k
}
228
229
64.3k
void InitDefaultsQLTypePB_UDTypeInfo() {
230
64.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
231
64.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLTypePB_UDTypeInfoImpl);
232
64.3k
}
233
234
17.1k
void InitDefaultsQLTypePBImpl() {
235
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
236
237
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
238
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
239
#else
240
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
241
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
242
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB_UDTypeInfo();
243
17.1k
  {
244
17.1k
    void* ptr = &::yb::_QLTypePB_default_instance_;
245
17.1k
    new (ptr) ::yb::QLTypePB();
246
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
247
17.1k
  }
248
17.1k
  ::yb::QLTypePB::InitAsDefaultInstance();
249
17.1k
}
250
251
999M
void InitDefaultsQLTypePB() {
252
999M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
253
999M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLTypePBImpl);
254
999M
}
255
256
17.1k
void InitDefaultsColumnSchemaPBImpl() {
257
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
258
259
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
260
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
261
#else
262
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
263
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
264
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
265
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
266
17.1k
  {
267
17.1k
    void* ptr = &::yb::_ColumnSchemaPB_default_instance_;
268
17.1k
    new (ptr) ::yb::ColumnSchemaPB();
269
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
270
17.1k
  }
271
17.1k
  ::yb::ColumnSchemaPB::InitAsDefaultInstance();
272
17.1k
}
273
274
982M
void InitDefaultsColumnSchemaPB() {
275
982M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
276
982M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsColumnSchemaPBImpl);
277
982M
}
278
279
17.1k
void InitDefaultsColocatedTableIdentifierPBImpl() {
280
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
281
282
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
283
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
284
#else
285
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
286
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
287
17.1k
  {
288
17.1k
    void* ptr = &::yb::_ColocatedTableIdentifierPB_default_instance_;
289
17.1k
    new (ptr) ::yb::ColocatedTableIdentifierPB();
290
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
291
17.1k
  }
292
17.1k
  ::yb::ColocatedTableIdentifierPB::InitAsDefaultInstance();
293
17.1k
}
294
295
145M
void InitDefaultsColocatedTableIdentifierPB() {
296
145M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
297
145M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsColocatedTableIdentifierPBImpl);
298
145M
}
299
300
17.1k
void InitDefaultsTablePropertiesPBImpl() {
301
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
302
303
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
304
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
305
#else
306
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
307
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
308
17.1k
  {
309
17.1k
    void* ptr = &::yb::_TablePropertiesPB_default_instance_;
310
17.1k
    new (ptr) ::yb::TablePropertiesPB();
311
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
312
17.1k
  }
313
17.1k
  ::yb::TablePropertiesPB::InitAsDefaultInstance();
314
17.1k
}
315
316
145M
void InitDefaultsTablePropertiesPB() {
317
145M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
318
145M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTablePropertiesPBImpl);
319
145M
}
320
321
17.1k
void InitDefaultsSchemaPBImpl() {
322
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
323
324
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
325
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
326
#else
327
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
328
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
329
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColumnSchemaPB();
330
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTablePropertiesPB();
331
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColocatedTableIdentifierPB();
332
17.1k
  {
333
17.1k
    void* ptr = &::yb::_SchemaPB_default_instance_;
334
17.1k
    new (ptr) ::yb::SchemaPB();
335
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
336
17.1k
  }
337
17.1k
  ::yb::SchemaPB::InitAsDefaultInstance();
338
17.1k
}
339
340
170M
void InitDefaultsSchemaPB() {
341
170M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
342
170M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSchemaPBImpl);
343
170M
}
344
345
17.1k
void InitDefaultsIndexInfoPB_IndexColumnPBImpl() {
346
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
347
348
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
349
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
350
#else
351
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
352
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
353
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
354
17.1k
  {
355
17.1k
    void* ptr = &::yb::_IndexInfoPB_IndexColumnPB_default_instance_;
356
17.1k
    new (ptr) ::yb::IndexInfoPB_IndexColumnPB();
357
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
358
17.1k
  }
359
17.1k
  ::yb::IndexInfoPB_IndexColumnPB::InitAsDefaultInstance();
360
17.1k
}
361
362
1.25M
void InitDefaultsIndexInfoPB_IndexColumnPB() {
363
1.25M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
364
1.25M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIndexInfoPB_IndexColumnPBImpl);
365
1.25M
}
366
367
17.1k
void InitDefaultsIndexInfoPB_WherePredicateSpecPBImpl() {
368
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
369
370
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
371
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
372
#else
373
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
374
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
375
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
376
17.1k
  {
377
17.1k
    void* ptr = &::yb::_IndexInfoPB_WherePredicateSpecPB_default_instance_;
378
17.1k
    new (ptr) ::yb::IndexInfoPB_WherePredicateSpecPB();
379
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
380
17.1k
  }
381
17.1k
  ::yb::IndexInfoPB_WherePredicateSpecPB::InitAsDefaultInstance();
382
17.1k
}
383
384
88.7k
void InitDefaultsIndexInfoPB_WherePredicateSpecPB() {
385
88.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
386
88.7k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIndexInfoPB_WherePredicateSpecPBImpl);
387
88.7k
}
388
389
17.1k
void InitDefaultsIndexInfoPBImpl() {
390
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
391
392
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
393
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
394
#else
395
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
396
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
397
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_IndexColumnPB();
398
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_WherePredicateSpecPB();
399
17.1k
  {
400
17.1k
    void* ptr = &::yb::_IndexInfoPB_default_instance_;
401
17.1k
    new (ptr) ::yb::IndexInfoPB();
402
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
403
17.1k
  }
404
17.1k
  ::yb::IndexInfoPB::InitAsDefaultInstance();
405
17.1k
}
406
407
743k
void InitDefaultsIndexInfoPB() {
408
743k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
409
743k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIndexInfoPBImpl);
410
743k
}
411
412
17.1k
void InitDefaultsPartitionSchemaPB_ColumnIdentifierPBImpl() {
413
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
414
415
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
416
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
417
#else
418
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
419
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
420
17.1k
  {
421
17.1k
    void* ptr = &::yb::_PartitionSchemaPB_ColumnIdentifierPB_default_instance_;
422
17.1k
    new (ptr) ::yb::PartitionSchemaPB_ColumnIdentifierPB();
423
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
424
17.1k
  }
425
17.1k
  ::yb::PartitionSchemaPB_ColumnIdentifierPB::InitAsDefaultInstance();
426
17.1k
}
427
428
275M
void InitDefaultsPartitionSchemaPB_ColumnIdentifierPB() {
429
275M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
430
275M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionSchemaPB_ColumnIdentifierPBImpl);
431
275M
}
432
433
17.1k
void InitDefaultsPartitionSchemaPB_RangeSplitPBImpl() {
434
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
435
436
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
437
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
438
#else
439
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
440
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
441
17.1k
  {
442
17.1k
    void* ptr = &::yb::_PartitionSchemaPB_RangeSplitPB_default_instance_;
443
17.1k
    new (ptr) ::yb::PartitionSchemaPB_RangeSplitPB();
444
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
445
17.1k
  }
446
17.1k
  ::yb::PartitionSchemaPB_RangeSplitPB::InitAsDefaultInstance();
447
17.1k
}
448
449
36.0k
void InitDefaultsPartitionSchemaPB_RangeSplitPB() {
450
36.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
451
36.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionSchemaPB_RangeSplitPBImpl);
452
36.0k
}
453
454
17.1k
void InitDefaultsPartitionSchemaPB_RangeSchemaPBImpl() {
455
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
456
457
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
458
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
459
#else
460
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
461
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
462
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_ColumnIdentifierPB();
463
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSplitPB();
464
17.1k
  {
465
17.1k
    void* ptr = &::yb::_PartitionSchemaPB_RangeSchemaPB_default_instance_;
466
17.1k
    new (ptr) ::yb::PartitionSchemaPB_RangeSchemaPB();
467
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
468
17.1k
  }
469
17.1k
  ::yb::PartitionSchemaPB_RangeSchemaPB::InitAsDefaultInstance();
470
17.1k
}
471
472
140M
void InitDefaultsPartitionSchemaPB_RangeSchemaPB() {
473
140M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
474
140M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionSchemaPB_RangeSchemaPBImpl);
475
140M
}
476
477
17.1k
void InitDefaultsPartitionSchemaPB_HashBucketSchemaPBImpl() {
478
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
479
480
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
481
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
482
#else
483
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
484
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
485
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_ColumnIdentifierPB();
486
17.1k
  {
487
17.1k
    void* ptr = &::yb::_PartitionSchemaPB_HashBucketSchemaPB_default_instance_;
488
17.1k
    new (ptr) ::yb::PartitionSchemaPB_HashBucketSchemaPB();
489
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
490
17.1k
  }
491
17.1k
  ::yb::PartitionSchemaPB_HashBucketSchemaPB::InitAsDefaultInstance();
492
17.1k
}
493
494
34.2k
void InitDefaultsPartitionSchemaPB_HashBucketSchemaPB() {
495
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
496
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionSchemaPB_HashBucketSchemaPBImpl);
497
34.2k
}
498
499
17.1k
void InitDefaultsPartitionSchemaPBImpl() {
500
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
501
502
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
503
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
504
#else
505
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
506
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
507
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_HashBucketSchemaPB();
508
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSchemaPB();
509
17.1k
  {
510
17.1k
    void* ptr = &::yb::_PartitionSchemaPB_default_instance_;
511
17.1k
    new (ptr) ::yb::PartitionSchemaPB();
512
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
513
17.1k
  }
514
17.1k
  ::yb::PartitionSchemaPB::InitAsDefaultInstance();
515
17.1k
}
516
517
142M
void InitDefaultsPartitionSchemaPB() {
518
142M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
519
142M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionSchemaPBImpl);
520
142M
}
521
522
17.1k
void InitDefaultsPartitionPBImpl() {
523
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
524
525
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
526
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
527
#else
528
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
529
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
530
17.1k
  {
531
17.1k
    void* ptr = &::yb::_PartitionPB_default_instance_;
532
17.1k
    new (ptr) ::yb::PartitionPB();
533
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
534
17.1k
  }
535
17.1k
  ::yb::PartitionPB::InitAsDefaultInstance();
536
17.1k
}
537
538
1.55M
void InitDefaultsPartitionPB() {
539
1.55M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
540
1.55M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPartitionPBImpl);
541
1.55M
}
542
543
17.1k
void InitDefaultsTransactionMetadataPBImpl() {
544
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
545
546
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
547
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
548
#else
549
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
550
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
551
17.1k
  {
552
17.1k
    void* ptr = &::yb::_TransactionMetadataPB_default_instance_;
553
17.1k
    new (ptr) ::yb::TransactionMetadataPB();
554
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
555
17.1k
  }
556
17.1k
  ::yb::TransactionMetadataPB::InitAsDefaultInstance();
557
17.1k
}
558
559
3.42M
void InitDefaultsTransactionMetadataPB() {
560
3.42M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
561
3.42M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionMetadataPBImpl);
562
3.42M
}
563
564
17.1k
void InitDefaultsReadHybridTimePBImpl() {
565
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
566
567
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
568
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
569
#else
570
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
571
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
572
17.1k
  {
573
17.1k
    void* ptr = &::yb::_ReadHybridTimePB_default_instance_;
574
17.1k
    new (ptr) ::yb::ReadHybridTimePB();
575
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
576
17.1k
  }
577
17.1k
  ::yb::ReadHybridTimePB::InitAsDefaultInstance();
578
17.1k
}
579
580
7.20M
void InitDefaultsReadHybridTimePB() {
581
7.20M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
582
7.20M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReadHybridTimePBImpl);
583
7.20M
}
584
585
17.1k
void InitDefaultsChildTransactionDataPB_LocalLimitsEntry_DoNotUseImpl() {
586
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
587
588
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
589
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
590
#else
591
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
592
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
593
17.1k
  {
594
17.1k
    void* ptr = &::yb::_ChildTransactionDataPB_LocalLimitsEntry_DoNotUse_default_instance_;
595
17.1k
    new (ptr) ::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse();
596
17.1k
  }
597
17.1k
  ::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::InitAsDefaultInstance();
598
17.1k
}
599
600
34.2k
void InitDefaultsChildTransactionDataPB_LocalLimitsEntry_DoNotUse() {
601
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
602
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChildTransactionDataPB_LocalLimitsEntry_DoNotUseImpl);
603
34.2k
}
604
605
17.1k
void InitDefaultsChildTransactionDataPBImpl() {
606
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
607
608
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
609
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
610
#else
611
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
612
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
613
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB();
614
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
615
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionDataPB_LocalLimitsEntry_DoNotUse();
616
17.1k
  {
617
17.1k
    void* ptr = &::yb::_ChildTransactionDataPB_default_instance_;
618
17.1k
    new (ptr) ::yb::ChildTransactionDataPB();
619
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
620
17.1k
  }
621
17.1k
  ::yb::ChildTransactionDataPB::InitAsDefaultInstance();
622
17.1k
}
623
624
475k
void InitDefaultsChildTransactionDataPB() {
625
475k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
626
475k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChildTransactionDataPBImpl);
627
475k
}
628
629
17.1k
void InitDefaultsTransactionInvolvedTabletPBImpl() {
630
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
631
632
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
633
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
634
#else
635
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
636
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
637
17.1k
  {
638
17.1k
    void* ptr = &::yb::_TransactionInvolvedTabletPB_default_instance_;
639
17.1k
    new (ptr) ::yb::TransactionInvolvedTabletPB();
640
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
641
17.1k
  }
642
17.1k
  ::yb::TransactionInvolvedTabletPB::InitAsDefaultInstance();
643
17.1k
}
644
645
111k
void InitDefaultsTransactionInvolvedTabletPB() {
646
111k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
647
111k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTransactionInvolvedTabletPBImpl);
648
111k
}
649
650
17.1k
void InitDefaultsChildTransactionResultPB_ReadRestartsEntry_DoNotUseImpl() {
651
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
652
653
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
654
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
655
#else
656
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
657
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
658
17.1k
  {
659
17.1k
    void* ptr = &::yb::_ChildTransactionResultPB_ReadRestartsEntry_DoNotUse_default_instance_;
660
17.1k
    new (ptr) ::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse();
661
17.1k
  }
662
17.1k
  ::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::InitAsDefaultInstance();
663
17.1k
}
664
665
34.2k
void InitDefaultsChildTransactionResultPB_ReadRestartsEntry_DoNotUse() {
666
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
667
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChildTransactionResultPB_ReadRestartsEntry_DoNotUseImpl);
668
34.2k
}
669
670
17.1k
void InitDefaultsChildTransactionResultPBImpl() {
671
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
672
673
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
674
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
675
#else
676
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
677
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
678
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionInvolvedTabletPB();
679
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionResultPB_ReadRestartsEntry_DoNotUse();
680
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
681
17.1k
  {
682
17.1k
    void* ptr = &::yb::_ChildTransactionResultPB_default_instance_;
683
17.1k
    new (ptr) ::yb::ChildTransactionResultPB();
684
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
685
17.1k
  }
686
17.1k
  ::yb::ChildTransactionResultPB::InitAsDefaultInstance();
687
17.1k
}
688
689
98.1k
void InitDefaultsChildTransactionResultPB() {
690
98.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
691
98.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsChildTransactionResultPBImpl);
692
98.1k
}
693
694
17.1k
void InitDefaultsDeletedColumnPBImpl() {
695
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
696
697
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
698
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
699
#else
700
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
701
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
702
17.1k
  {
703
17.1k
    void* ptr = &::yb::_DeletedColumnPB_default_instance_;
704
17.1k
    new (ptr) ::yb::DeletedColumnPB();
705
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
706
17.1k
  }
707
17.1k
  ::yb::DeletedColumnPB::InitAsDefaultInstance();
708
17.1k
}
709
710
61.9k
void InitDefaultsDeletedColumnPB() {
711
61.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
712
61.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeletedColumnPBImpl);
713
61.9k
}
714
715
17.1k
void InitDefaultsQLBCallPBImpl() {
716
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
717
718
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
719
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
720
#else
721
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
722
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
723
17.1k
  protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
724
17.1k
  {
725
17.1k
    void* ptr = &::yb::_QLSubscriptedColPB_default_instance_;
726
17.1k
    new (ptr) ::yb::QLSubscriptedColPB();
727
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
728
17.1k
  }
729
17.1k
  {
730
17.1k
    void* ptr = &::yb::_QLJsonColumnOperationsPB_default_instance_;
731
17.1k
    new (ptr) ::yb::QLJsonColumnOperationsPB();
732
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
733
17.1k
  }
734
17.1k
  {
735
17.1k
    void* ptr = &::yb::_QLJsonOperationPB_default_instance_;
736
17.1k
    new (ptr) ::yb::QLJsonOperationPB();
737
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
738
17.1k
  }
739
17.1k
  {
740
17.1k
    void* ptr = &::yb::_QLExpressionPB_default_instance_;
741
17.1k
    new (ptr) ::yb::QLExpressionPB();
742
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
743
17.1k
  }
744
17.1k
  {
745
17.1k
    void* ptr = &::yb::_QLConditionPB_default_instance_;
746
17.1k
    new (ptr) ::yb::QLConditionPB();
747
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
748
17.1k
  }
749
17.1k
  {
750
17.1k
    void* ptr = &::yb::_QLBCallPB_default_instance_;
751
17.1k
    new (ptr) ::yb::QLBCallPB();
752
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
753
17.1k
  }
754
17.1k
  ::yb::QLSubscriptedColPB::InitAsDefaultInstance();
755
17.1k
  ::yb::QLJsonColumnOperationsPB::InitAsDefaultInstance();
756
17.1k
  ::yb::QLJsonOperationPB::InitAsDefaultInstance();
757
17.1k
  ::yb::QLExpressionPB::InitAsDefaultInstance();
758
17.1k
  ::yb::QLConditionPB::InitAsDefaultInstance();
759
17.1k
  ::yb::QLBCallPB::InitAsDefaultInstance();
760
17.1k
}
761
762
41.4M
void InitDefaultsQLBCallPB() {
763
41.4M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
764
41.4M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQLBCallPBImpl);
765
41.4M
}
766
767
17.1k
void InitDefaultsExplainPlanPBImpl() {
768
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
769
770
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
771
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
772
#else
773
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
774
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
775
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSelectPlanPB();
776
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsInsertPlanPB();
777
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsUpdatePlanPB();
778
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletePlanPB();
779
17.1k
  {
780
17.1k
    void* ptr = &::yb::_ExplainPlanPB_default_instance_;
781
17.1k
    new (ptr) ::yb::ExplainPlanPB();
782
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
783
17.1k
  }
784
17.1k
  ::yb::ExplainPlanPB::InitAsDefaultInstance();
785
17.1k
}
786
787
17.3k
void InitDefaultsExplainPlanPB() {
788
17.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
789
17.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExplainPlanPBImpl);
790
17.3k
}
791
792
17.1k
void InitDefaultsSelectPlanPBImpl() {
793
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
794
795
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
796
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
797
#else
798
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
799
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
800
17.1k
  {
801
17.1k
    void* ptr = &::yb::_SelectPlanPB_default_instance_;
802
17.1k
    new (ptr) ::yb::SelectPlanPB();
803
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
804
17.1k
  }
805
17.1k
  ::yb::SelectPlanPB::InitAsDefaultInstance();
806
17.1k
}
807
808
34.4k
void InitDefaultsSelectPlanPB() {
809
34.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
810
34.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSelectPlanPBImpl);
811
34.4k
}
812
813
17.1k
void InitDefaultsInsertPlanPBImpl() {
814
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
815
816
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
817
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
818
#else
819
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
820
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
821
17.1k
  {
822
17.1k
    void* ptr = &::yb::_InsertPlanPB_default_instance_;
823
17.1k
    new (ptr) ::yb::InsertPlanPB();
824
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
825
17.1k
  }
826
17.1k
  ::yb::InsertPlanPB::InitAsDefaultInstance();
827
17.1k
}
828
829
34.2k
void InitDefaultsInsertPlanPB() {
830
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
831
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsInsertPlanPBImpl);
832
34.2k
}
833
834
17.1k
void InitDefaultsUpdatePlanPBImpl() {
835
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
836
837
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
838
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
839
#else
840
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
841
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
842
17.1k
  {
843
17.1k
    void* ptr = &::yb::_UpdatePlanPB_default_instance_;
844
17.1k
    new (ptr) ::yb::UpdatePlanPB();
845
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
846
17.1k
  }
847
17.1k
  ::yb::UpdatePlanPB::InitAsDefaultInstance();
848
17.1k
}
849
850
34.2k
void InitDefaultsUpdatePlanPB() {
851
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
852
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUpdatePlanPBImpl);
853
34.2k
}
854
855
17.1k
void InitDefaultsDeletePlanPBImpl() {
856
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
857
858
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
859
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
860
#else
861
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
862
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
863
17.1k
  {
864
17.1k
    void* ptr = &::yb::_DeletePlanPB_default_instance_;
865
17.1k
    new (ptr) ::yb::DeletePlanPB();
866
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
867
17.1k
  }
868
17.1k
  ::yb::DeletePlanPB::InitAsDefaultInstance();
869
17.1k
}
870
871
34.2k
void InitDefaultsDeletePlanPB() {
872
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
873
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeletePlanPBImpl);
874
34.2k
}
875
876
::google::protobuf::Metadata file_level_metadata[34];
877
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[5];
878
879
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
880
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, _has_bits_),
881
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, _internal_metadata_),
882
  ~0u,  // no _extensions_
883
  ~0u,  // no _oneof_case_
884
  ~0u,  // no _weak_field_map_
885
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, keyspace_name_),
886
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, name_),
887
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, id_),
888
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB_UDTypeInfo, field_names_),
889
  0,
890
  1,
891
  2,
892
  ~0u,
893
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB, _has_bits_),
894
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB, _internal_metadata_),
895
  ~0u,  // no _extensions_
896
  ~0u,  // no _oneof_case_
897
  ~0u,  // no _weak_field_map_
898
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB, main_),
899
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB, params_),
900
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLTypePB, udtype_info_),
901
  1,
902
  ~0u,
903
  0,
904
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, _has_bits_),
905
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, _internal_metadata_),
906
  ~0u,  // no _extensions_
907
  ~0u,  // no _oneof_case_
908
  ~0u,  // no _weak_field_map_
909
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, id_),
910
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, name_),
911
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, type_),
912
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, is_key_),
913
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, is_hash_key_),
914
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, is_nullable_),
915
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, is_static_),
916
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, is_counter_),
917
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, order_),
918
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, sorting_type_),
919
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, pg_type_oid_),
920
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColumnSchemaPB, obsolete_json_operations_),
921
  2,
922
  0,
923
  1,
924
  3,
925
  4,
926
  5,
927
  6,
928
  7,
929
  9,
930
  8,
931
  10,
932
  ~0u,
933
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColocatedTableIdentifierPB, _has_bits_),
934
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColocatedTableIdentifierPB, _internal_metadata_),
935
  ~0u,  // no _extensions_
936
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColocatedTableIdentifierPB, _oneof_case_[0]),
937
  ~0u,  // no _weak_field_map_
938
  offsetof(::yb::ColocatedTableIdentifierPBDefaultTypeInternal, pgtable_id_),
939
  offsetof(::yb::ColocatedTableIdentifierPBDefaultTypeInternal, cotable_id_),
940
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ColocatedTableIdentifierPB, value_),
941
  ~0u,
942
  ~0u,
943
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, _has_bits_),
944
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, _internal_metadata_),
945
  ~0u,  // no _extensions_
946
  ~0u,  // no _oneof_case_
947
  ~0u,  // no _weak_field_map_
948
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, default_time_to_live_),
949
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, contain_counters_),
950
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, is_transactional_),
951
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, copartition_table_id_),
952
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, consistency_level_),
953
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, use_mangled_column_name_),
954
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, num_tablets_),
955
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, is_ysql_catalog_table_),
956
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, retain_delete_markers_),
957
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TablePropertiesPB, backfilling_timestamp_),
958
  1,
959
  2,
960
  3,
961
  0,
962
  9,
963
  4,
964
  6,
965
  5,
966
  8,
967
  7,
968
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, _has_bits_),
969
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, _internal_metadata_),
970
  ~0u,  // no _extensions_
971
  ~0u,  // no _oneof_case_
972
  ~0u,  // no _weak_field_map_
973
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, columns_),
974
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, table_properties_),
975
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, colocated_table_id_),
976
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SchemaPB, pgschema_name_),
977
  ~0u,
978
  1,
979
  2,
980
  0,
981
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, _has_bits_),
982
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, _internal_metadata_),
983
  ~0u,  // no _extensions_
984
  ~0u,  // no _oneof_case_
985
  ~0u,  // no _weak_field_map_
986
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, column_id_),
987
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, column_name_),
988
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, indexed_column_id_),
989
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_IndexColumnPB, colexpr_),
990
  2,
991
  0,
992
  3,
993
  1,
994
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_WherePredicateSpecPB, _has_bits_),
995
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_WherePredicateSpecPB, _internal_metadata_),
996
  ~0u,  // no _extensions_
997
  ~0u,  // no _oneof_case_
998
  ~0u,  // no _weak_field_map_
999
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_WherePredicateSpecPB, column_ids_),
1000
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB_WherePredicateSpecPB, where_expr_),
1001
  ~0u,
1002
  0,
1003
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, _has_bits_),
1004
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, _internal_metadata_),
1005
  ~0u,  // no _extensions_
1006
  ~0u,  // no _oneof_case_
1007
  ~0u,  // no _weak_field_map_
1008
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, table_id_),
1009
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, indexed_table_id_),
1010
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, version_),
1011
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, is_local_),
1012
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, is_unique_),
1013
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, index_permissions_),
1014
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, columns_),
1015
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, hash_column_count_),
1016
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, range_column_count_),
1017
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, indexed_hash_column_ids_),
1018
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, indexed_range_column_ids_),
1019
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, use_mangled_column_name_),
1020
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, backfill_error_message_),
1021
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, is_backfill_deferred_),
1022
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::IndexInfoPB, where_predicate_spec_),
1023
  0,
1024
  1,
1025
  4,
1026
  7,
1027
  8,
1028
  11,
1029
  ~0u,
1030
  5,
1031
  6,
1032
  ~0u,
1033
  ~0u,
1034
  9,
1035
  2,
1036
  10,
1037
  3,
1038
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_ColumnIdentifierPB, _has_bits_),
1039
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_ColumnIdentifierPB, _internal_metadata_),
1040
  ~0u,  // no _extensions_
1041
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_ColumnIdentifierPB, _oneof_case_[0]),
1042
  ~0u,  // no _weak_field_map_
1043
  offsetof(::yb::PartitionSchemaPB_ColumnIdentifierPBDefaultTypeInternal, id_),
1044
  offsetof(::yb::PartitionSchemaPB_ColumnIdentifierPBDefaultTypeInternal, name_),
1045
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_ColumnIdentifierPB, identifier_),
1046
  ~0u,
1047
  ~0u,
1048
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSplitPB, _has_bits_),
1049
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSplitPB, _internal_metadata_),
1050
  ~0u,  // no _extensions_
1051
  ~0u,  // no _oneof_case_
1052
  ~0u,  // no _weak_field_map_
1053
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSplitPB, column_bounds_),
1054
  0,
1055
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSchemaPB, _has_bits_),
1056
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSchemaPB, _internal_metadata_),
1057
  ~0u,  // no _extensions_
1058
  ~0u,  // no _oneof_case_
1059
  ~0u,  // no _weak_field_map_
1060
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSchemaPB, columns_),
1061
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSchemaPB, splits_),
1062
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_RangeSchemaPB, deprecated_split_rows_),
1063
  ~0u,
1064
  ~0u,
1065
  ~0u,
1066
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, _has_bits_),
1067
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, _internal_metadata_),
1068
  ~0u,  // no _extensions_
1069
  ~0u,  // no _oneof_case_
1070
  ~0u,  // no _weak_field_map_
1071
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, columns_),
1072
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, num_buckets_),
1073
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, seed_),
1074
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB_HashBucketSchemaPB, hash_algorithm_),
1075
  ~0u,
1076
  0,
1077
  1,
1078
  2,
1079
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB, _has_bits_),
1080
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB, _internal_metadata_),
1081
  ~0u,  // no _extensions_
1082
  ~0u,  // no _oneof_case_
1083
  ~0u,  // no _weak_field_map_
1084
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB, hash_bucket_schemas_),
1085
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB, range_schema_),
1086
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionSchemaPB, hash_schema_),
1087
  ~0u,
1088
  0,
1089
  1,
1090
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionPB, _has_bits_),
1091
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionPB, _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::PartitionPB, hash_buckets_),
1096
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionPB, partition_key_start_),
1097
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PartitionPB, partition_key_end_),
1098
  ~0u,
1099
  0,
1100
  1,
1101
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, _has_bits_),
1102
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, _internal_metadata_),
1103
  ~0u,  // no _extensions_
1104
  ~0u,  // no _oneof_case_
1105
  ~0u,  // no _weak_field_map_
1106
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, transaction_id_),
1107
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, isolation_),
1108
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, status_tablet_),
1109
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, priority_),
1110
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, start_hybrid_time_),
1111
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, metadata_write_time_),
1112
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionMetadataPB, locality_),
1113
  0,
1114
  5,
1115
  1,
1116
  2,
1117
  3,
1118
  4,
1119
  6,
1120
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, _has_bits_),
1121
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, _internal_metadata_),
1122
  ~0u,  // no _extensions_
1123
  ~0u,  // no _oneof_case_
1124
  ~0u,  // no _weak_field_map_
1125
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, read_ht_),
1126
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, deprecated_max_of_read_time_and_local_limit_ht_),
1127
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, global_limit_ht_),
1128
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, in_txn_limit_ht_),
1129
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ReadHybridTimePB, local_limit_ht_),
1130
  0,
1131
  1,
1132
  2,
1133
  3,
1134
  4,
1135
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse, _has_bits_),
1136
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse, _internal_metadata_),
1137
  ~0u,  // no _extensions_
1138
  ~0u,  // no _oneof_case_
1139
  ~0u,  // no _weak_field_map_
1140
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse, key_),
1141
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse, value_),
1142
  0,
1143
  1,
1144
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB, _has_bits_),
1145
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB, _internal_metadata_),
1146
  ~0u,  // no _extensions_
1147
  ~0u,  // no _oneof_case_
1148
  ~0u,  // no _weak_field_map_
1149
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB, metadata_),
1150
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB, read_time_),
1151
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionDataPB, local_limits_),
1152
  0,
1153
  1,
1154
  ~0u,
1155
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionInvolvedTabletPB, _has_bits_),
1156
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionInvolvedTabletPB, _internal_metadata_),
1157
  ~0u,  // no _extensions_
1158
  ~0u,  // no _oneof_case_
1159
  ~0u,  // no _weak_field_map_
1160
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionInvolvedTabletPB, tablet_id_),
1161
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionInvolvedTabletPB, metadata_state_),
1162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::TransactionInvolvedTabletPB, num_batches_),
1163
  0,
1164
  2,
1165
  1,
1166
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse, _has_bits_),
1167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse, _internal_metadata_),
1168
  ~0u,  // no _extensions_
1169
  ~0u,  // no _oneof_case_
1170
  ~0u,  // no _weak_field_map_
1171
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse, key_),
1172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse, value_),
1173
  0,
1174
  1,
1175
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, _has_bits_),
1176
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, _internal_metadata_),
1177
  ~0u,  // no _extensions_
1178
  ~0u,  // no _oneof_case_
1179
  ~0u,  // no _weak_field_map_
1180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, tablets_),
1181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, restart_read_ht_),
1182
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, read_restarts_),
1183
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ChildTransactionResultPB, used_read_time_),
1184
  ~0u,
1185
  1,
1186
  ~0u,
1187
  0,
1188
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletedColumnPB, _has_bits_),
1189
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletedColumnPB, _internal_metadata_),
1190
  ~0u,  // no _extensions_
1191
  ~0u,  // no _oneof_case_
1192
  ~0u,  // no _weak_field_map_
1193
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletedColumnPB, column_id_),
1194
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletedColumnPB, deleted_hybrid_time_),
1195
  1,
1196
  0,
1197
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSubscriptedColPB, _has_bits_),
1198
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSubscriptedColPB, _internal_metadata_),
1199
  ~0u,  // no _extensions_
1200
  ~0u,  // no _oneof_case_
1201
  ~0u,  // no _weak_field_map_
1202
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSubscriptedColPB, column_id_),
1203
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLSubscriptedColPB, subscript_args_),
1204
  0,
1205
  ~0u,
1206
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonColumnOperationsPB, _has_bits_),
1207
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonColumnOperationsPB, _internal_metadata_),
1208
  ~0u,  // no _extensions_
1209
  ~0u,  // no _oneof_case_
1210
  ~0u,  // no _weak_field_map_
1211
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonColumnOperationsPB, column_id_),
1212
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonColumnOperationsPB, json_operations_),
1213
  0,
1214
  ~0u,
1215
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonOperationPB, _has_bits_),
1216
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonOperationPB, _internal_metadata_),
1217
  ~0u,  // no _extensions_
1218
  ~0u,  // no _oneof_case_
1219
  ~0u,  // no _weak_field_map_
1220
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonOperationPB, json_operator_),
1221
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLJsonOperationPB, operand_),
1222
  1,
1223
  0,
1224
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLExpressionPB, _has_bits_),
1225
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLExpressionPB, _internal_metadata_),
1226
  ~0u,  // no _extensions_
1227
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLExpressionPB, _oneof_case_[0]),
1228
  ~0u,  // no _weak_field_map_
1229
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, value_),
1230
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, column_id_),
1231
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, subscripted_col_),
1232
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, bind_id_),
1233
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, condition_),
1234
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, bfcall_),
1235
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, tscall_),
1236
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, bocall_),
1237
  offsetof(::yb::QLExpressionPBDefaultTypeInternal, json_column_),
1238
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLExpressionPB, expr_),
1239
  ~0u,
1240
  ~0u,
1241
  ~0u,
1242
  ~0u,
1243
  ~0u,
1244
  ~0u,
1245
  ~0u,
1246
  ~0u,
1247
  ~0u,
1248
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLConditionPB, _has_bits_),
1249
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLConditionPB, _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::QLConditionPB, op_),
1254
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLConditionPB, operands_),
1255
  0,
1256
  ~0u,
1257
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLBCallPB, _has_bits_),
1258
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLBCallPB, _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::QLBCallPB, opcode_),
1263
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::QLBCallPB, operands_),
1264
  0,
1265
  ~0u,
1266
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ExplainPlanPB, _has_bits_),
1267
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ExplainPlanPB, _internal_metadata_),
1268
  ~0u,  // no _extensions_
1269
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ExplainPlanPB, _oneof_case_[0]),
1270
  ~0u,  // no _weak_field_map_
1271
  offsetof(::yb::ExplainPlanPBDefaultTypeInternal, select_plan_),
1272
  offsetof(::yb::ExplainPlanPBDefaultTypeInternal, insert_plan_),
1273
  offsetof(::yb::ExplainPlanPBDefaultTypeInternal, update_plan_),
1274
  offsetof(::yb::ExplainPlanPBDefaultTypeInternal, delete_plan_),
1275
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ExplainPlanPB, plan_),
1276
  ~0u,
1277
  ~0u,
1278
  ~0u,
1279
  ~0u,
1280
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, _has_bits_),
1281
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, _internal_metadata_),
1282
  ~0u,  // no _extensions_
1283
  ~0u,  // no _oneof_case_
1284
  ~0u,  // no _weak_field_map_
1285
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, select_type_),
1286
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, aggregate_),
1287
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, key_conditions_),
1288
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, filter_),
1289
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::SelectPlanPB, output_width_),
1290
  0,
1291
  1,
1292
  2,
1293
  3,
1294
  4,
1295
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InsertPlanPB, _has_bits_),
1296
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InsertPlanPB, _internal_metadata_),
1297
  ~0u,  // no _extensions_
1298
  ~0u,  // no _oneof_case_
1299
  ~0u,  // no _weak_field_map_
1300
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InsertPlanPB, insert_type_),
1301
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::InsertPlanPB, output_width_),
1302
  0,
1303
  1,
1304
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, _has_bits_),
1305
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, _internal_metadata_),
1306
  ~0u,  // no _extensions_
1307
  ~0u,  // no _oneof_case_
1308
  ~0u,  // no _weak_field_map_
1309
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, update_type_),
1310
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, scan_type_),
1311
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, key_conditions_),
1312
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::UpdatePlanPB, output_width_),
1313
  0,
1314
  1,
1315
  2,
1316
  3,
1317
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, _has_bits_),
1318
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, _internal_metadata_),
1319
  ~0u,  // no _extensions_
1320
  ~0u,  // no _oneof_case_
1321
  ~0u,  // no _weak_field_map_
1322
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, delete_type_),
1323
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, scan_type_),
1324
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, key_conditions_),
1325
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, filter_),
1326
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::DeletePlanPB, output_width_),
1327
  0,
1328
  1,
1329
  2,
1330
  3,
1331
  4,
1332
};
1333
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1334
  { 0, 9, sizeof(::yb::QLTypePB_UDTypeInfo)},
1335
  { 13, 21, sizeof(::yb::QLTypePB)},
1336
  { 24, 41, sizeof(::yb::ColumnSchemaPB)},
1337
  { 53, 61, sizeof(::yb::ColocatedTableIdentifierPB)},
1338
  { 63, 78, sizeof(::yb::TablePropertiesPB)},
1339
  { 88, 97, sizeof(::yb::SchemaPB)},
1340
  { 101, 110, sizeof(::yb::IndexInfoPB_IndexColumnPB)},
1341
  { 114, 121, sizeof(::yb::IndexInfoPB_WherePredicateSpecPB)},
1342
  { 123, 143, sizeof(::yb::IndexInfoPB)},
1343
  { 158, 166, sizeof(::yb::PartitionSchemaPB_ColumnIdentifierPB)},
1344
  { 168, 174, sizeof(::yb::PartitionSchemaPB_RangeSplitPB)},
1345
  { 175, 183, sizeof(::yb::PartitionSchemaPB_RangeSchemaPB)},
1346
  { 186, 195, sizeof(::yb::PartitionSchemaPB_HashBucketSchemaPB)},
1347
  { 199, 207, sizeof(::yb::PartitionSchemaPB)},
1348
  { 210, 218, sizeof(::yb::PartitionPB)},
1349
  { 221, 233, sizeof(::yb::TransactionMetadataPB)},
1350
  { 240, 250, sizeof(::yb::ReadHybridTimePB)},
1351
  { 255, 262, sizeof(::yb::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse)},
1352
  { 264, 272, sizeof(::yb::ChildTransactionDataPB)},
1353
  { 275, 283, sizeof(::yb::TransactionInvolvedTabletPB)},
1354
  { 286, 293, sizeof(::yb::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse)},
1355
  { 295, 304, sizeof(::yb::ChildTransactionResultPB)},
1356
  { 308, 315, sizeof(::yb::DeletedColumnPB)},
1357
  { 317, 324, sizeof(::yb::QLSubscriptedColPB)},
1358
  { 326, 333, sizeof(::yb::QLJsonColumnOperationsPB)},
1359
  { 335, 342, sizeof(::yb::QLJsonOperationPB)},
1360
  { 344, 359, sizeof(::yb::QLExpressionPB)},
1361
  { 368, 375, sizeof(::yb::QLConditionPB)},
1362
  { 377, 384, sizeof(::yb::QLBCallPB)},
1363
  { 386, 396, sizeof(::yb::ExplainPlanPB)},
1364
  { 400, 410, sizeof(::yb::SelectPlanPB)},
1365
  { 415, 422, sizeof(::yb::InsertPlanPB)},
1366
  { 424, 433, sizeof(::yb::UpdatePlanPB)},
1367
  { 437, 447, sizeof(::yb::DeletePlanPB)},
1368
};
1369
1370
static ::google::protobuf::Message const * const file_default_instances[] = {
1371
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLTypePB_UDTypeInfo_default_instance_),
1372
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLTypePB_default_instance_),
1373
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ColumnSchemaPB_default_instance_),
1374
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ColocatedTableIdentifierPB_default_instance_),
1375
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_TablePropertiesPB_default_instance_),
1376
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_SchemaPB_default_instance_),
1377
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_IndexInfoPB_IndexColumnPB_default_instance_),
1378
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_IndexInfoPB_WherePredicateSpecPB_default_instance_),
1379
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_IndexInfoPB_default_instance_),
1380
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionSchemaPB_ColumnIdentifierPB_default_instance_),
1381
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionSchemaPB_RangeSplitPB_default_instance_),
1382
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionSchemaPB_RangeSchemaPB_default_instance_),
1383
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionSchemaPB_HashBucketSchemaPB_default_instance_),
1384
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionSchemaPB_default_instance_),
1385
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PartitionPB_default_instance_),
1386
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_TransactionMetadataPB_default_instance_),
1387
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ReadHybridTimePB_default_instance_),
1388
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ChildTransactionDataPB_LocalLimitsEntry_DoNotUse_default_instance_),
1389
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ChildTransactionDataPB_default_instance_),
1390
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_TransactionInvolvedTabletPB_default_instance_),
1391
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ChildTransactionResultPB_ReadRestartsEntry_DoNotUse_default_instance_),
1392
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ChildTransactionResultPB_default_instance_),
1393
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_DeletedColumnPB_default_instance_),
1394
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLSubscriptedColPB_default_instance_),
1395
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLJsonColumnOperationsPB_default_instance_),
1396
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLJsonOperationPB_default_instance_),
1397
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLExpressionPB_default_instance_),
1398
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLConditionPB_default_instance_),
1399
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_QLBCallPB_default_instance_),
1400
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ExplainPlanPB_default_instance_),
1401
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_SelectPlanPB_default_instance_),
1402
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_InsertPlanPB_default_instance_),
1403
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_UpdatePlanPB_default_instance_),
1404
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_DeletePlanPB_default_instance_),
1405
};
1406
1407
6.48k
void protobuf_AssignDescriptors() {
1408
6.48k
  AddDescriptors();
1409
6.48k
  ::google::protobuf::MessageFactory* factory = NULL;
1410
6.48k
  AssignDescriptors(
1411
6.48k
      "yb/common/common.proto", schemas, file_default_instances, TableStruct::offsets, factory,
1412
6.48k
      file_level_metadata, file_level_enum_descriptors, NULL);
1413
6.48k
}
1414
1415
53.9M
void protobuf_AssignDescriptorsOnce() {
1416
53.9M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1417
53.9M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
1418
53.9M
}
1419
1420
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
1421
0
void protobuf_RegisterTypes(const ::std::string&) {
1422
0
  protobuf_AssignDescriptorsOnce();
1423
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 34);
1424
0
}
1425
1426
17.1k
void AddDescriptorsImpl() {
1427
17.1k
  InitDefaults();
1428
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
1429
17.1k
      "\n\026yb/common/common.proto\022\002yb\032\034yb/common/"
1430
17.1k
      "common_types.proto\032\033yb/common/transactio"
1431
17.1k
      "n.proto\032\025yb/common/value.proto\"\306\001\n\010QLTyp"
1432
17.1k
      "ePB\022\032\n\004main\030\001 \001(\0162\014.yb.DataType\022\034\n\006param"
1433
17.1k
      "s\030\002 \003(\0132\014.yb.QLTypePB\022,\n\013udtype_info\030\003 \001"
1434
17.1k
      "(\0132\027.yb.QLTypePB.UDTypeInfo\032R\n\nUDTypeInf"
1435
17.1k
      "o\022\025\n\rkeyspace_name\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\n"
1436
17.1k
      "\n\002id\030\003 \001(\t\022\023\n\013field_names\030\004 \003(\t\"\322\002\n\016Colu"
1437
17.1k
      "mnSchemaPB\022\n\n\002id\030\001 \001(\r\022\014\n\004name\030\002 \002(\t\022\032\n\004"
1438
17.1k
      "type\030\003 \002(\0132\014.yb.QLTypePB\022\025\n\006is_key\030\004 \001(\010"
1439
17.1k
      ":\005false\022\032\n\013is_hash_key\030\005 \001(\010:\005false\022\032\n\013i"
1440
17.1k
      "s_nullable\030\006 \001(\010:\005false\022\030\n\tis_static\030\007 \001"
1441
17.1k
      "(\010:\005false\022\031\n\nis_counter\030\010 \001(\010:\005false\022\020\n\005"
1442
17.1k
      "order\030\014 \001(\005:\0010\022\027\n\014sorting_type\030\t \001(\r:\0010\022"
1443
17.1k
      "\026\n\013pg_type_oid\030\016 \001(\r:\0010\0227\n\030OBSOLETE_json"
1444
17.1k
      "_operations\030\r \003(\0132\025.yb.QLJsonOperationPB"
1445
17.1k
      "J\004\010\n\020\013J\004\010\013\020\014\"Q\n\032ColocatedTableIdentifier"
1446
17.1k
      "PB\022\024\n\npgtable_id\030\001 \001(\rH\000\022\024\n\ncotable_id\030\002"
1447
17.1k
      " \001(\014H\000B\007\n\005value\"\360\002\n\021TablePropertiesPB\022\034\n"
1448
17.1k
      "\024default_time_to_live\030\001 \001(\004\022\030\n\020contain_c"
1449
17.1k
      "ounters\030\002 \001(\010\022\037\n\020is_transactional\030\003 \001(\010:"
1450
17.1k
      "\005false\022\034\n\024copartition_table_id\030\004 \001(\014\0229\n\021"
1451
17.1k
      "consistency_level\030\005 \001(\0162\026.yb.YBConsisten"
1452
17.1k
      "cyLevel:\006STRONG\022&\n\027use_mangled_column_na"
1453
17.1k
      "me\030\006 \001(\010:\005false\022\026\n\013num_tablets\030\007 \001(\005:\0010\022"
1454
17.1k
      "$\n\025is_ysql_catalog_table\030\010 \001(\010:\005false\022$\n"
1455
17.1k
      "\025retain_delete_markers\030\t \001(\010:\005false\022\035\n\025b"
1456
17.1k
      "ackfilling_timestamp\030\n \001(\004\"\263\001\n\010SchemaPB\022"
1457
17.1k
      "#\n\007columns\030\001 \003(\0132\022.yb.ColumnSchemaPB\022/\n\020"
1458
17.1k
      "table_properties\030\002 \001(\0132\025.yb.TablePropert"
1459
17.1k
      "iesPB\022:\n\022colocated_table_id\030\003 \001(\0132\036.yb.C"
1460
17.1k
      "olocatedTableIdentifierPB\022\025\n\rpgschema_na"
1461
17.1k
      "me\030\004 \001(\t\"\373\005\n\013IndexInfoPB\022\020\n\010table_id\030\001 \001"
1462
17.1k
      "(\014\022\030\n\020indexed_table_id\030\010 \001(\014\022\022\n\007version\030"
1463
17.1k
      "\002 \001(\r:\0010\022\027\n\010is_local\030\003 \001(\010:\005false\022\030\n\tis_"
1464
17.1k
      "unique\030\007 \001(\010:\005false\022Q\n\021index_permissions"
1465
17.1k
      "\030\014 \001(\0162\024.yb.IndexPermissions: INDEX_PERM"
1466
17.1k
      "_READ_WRITE_AND_DELETE\022.\n\007columns\030\004 \003(\0132"
1467
17.1k
      "\035.yb.IndexInfoPB.IndexColumnPB\022\031\n\021hash_c"
1468
17.1k
      "olumn_count\030\005 \001(\r\022\032\n\022range_column_count\030"
1469
17.1k
      "\006 \001(\r\022\037\n\027indexed_hash_column_ids\030\t \003(\r\022 "
1470
17.1k
      "\n\030indexed_range_column_ids\030\n \003(\r\022&\n\027use_"
1471
17.1k
      "mangled_column_name\030\013 \001(\010:\005false\022\036\n\026back"
1472
17.1k
      "fill_error_message\030\037 \001(\t\022#\n\024is_backfill_"
1473
17.1k
      "deferred\030  \001(\010:\005false\022B\n\024where_predicate"
1474
17.1k
      "_spec\030! \001(\0132$.yb.IndexInfoPB.WherePredic"
1475
17.1k
      "ateSpecPB\032w\n\rIndexColumnPB\022\021\n\tcolumn_id\030"
1476
17.1k
      "\001 \001(\r\022\023\n\013column_name\030\003 \001(\t\022\031\n\021indexed_co"
1477
17.1k
      "lumn_id\030\002 \001(\r\022#\n\007colexpr\030\004 \001(\0132\022.yb.QLEx"
1478
17.1k
      "pressionPB\032R\n\024WherePredicateSpecPB\022\022\n\nco"
1479
17.1k
      "lumn_ids\030\001 \003(\r\022&\n\nwhere_expr\030\002 \001(\0132\022.yb."
1480
17.1k
      "QLExpressionPB\"\245\006\n\021PartitionSchemaPB\022E\n\023"
1481
17.1k
      "hash_bucket_schemas\030\001 \003(\0132(.yb.Partition"
1482
17.1k
      "SchemaPB.HashBucketSchemaPB\0229\n\014range_sch"
1483
17.1k
      "ema\030\002 \001(\0132#.yb.PartitionSchemaPB.RangeSc"
1484
17.1k
      "hemaPB\0225\n\013hash_schema\030\003 \001(\0162 .yb.Partiti"
1485
17.1k
      "onSchemaPB.HashSchema\032@\n\022ColumnIdentifie"
1486
17.1k
      "rPB\022\014\n\002id\030\001 \001(\005H\000\022\016\n\004name\030\002 \001(\tH\000B\014\n\nide"
1487
17.1k
      "ntifier\032%\n\014RangeSplitPB\022\025\n\rcolumn_bounds"
1488
17.1k
      "\030\001 \001(\014\032\235\001\n\rRangeSchemaPB\0229\n\007columns\030\001 \003("
1489
17.1k
      "\0132(.yb.PartitionSchemaPB.ColumnIdentifie"
1490
17.1k
      "rPB\0222\n\006splits\030\003 \003(\0132\".yb.PartitionSchema"
1491
17.1k
      "PB.RangeSplitPB\022\035\n\025DEPRECATED_split_rows"
1492
17.1k
      "\030\002 \003(\014\032\363\001\n\022HashBucketSchemaPB\0229\n\007columns"
1493
17.1k
      "\030\001 \003(\0132(.yb.PartitionSchemaPB.ColumnIden"
1494
17.1k
      "tifierPB\022\023\n\013num_buckets\030\002 \002(\005\022\014\n\004seed\030\003 "
1495
17.1k
      "\001(\r\022N\n\016hash_algorithm\030\004 \001(\01626.yb.Partiti"
1496
17.1k
      "onSchemaPB.HashBucketSchemaPB.HashAlgori"
1497
17.1k
      "thm\"/\n\rHashAlgorithm\022\013\n\007UNKNOWN\020\000\022\021\n\rMUR"
1498
17.1k
      "MUR_HASH_2\020\001\"X\n\nHashSchema\022\034\n\030MULTI_COLU"
1499
17.1k
      "MN_HASH_SCHEMA\020\001\022\025\n\021REDIS_HASH_SCHEMA\020\002\022"
1500
17.1k
      "\025\n\021PGSQL_HASH_SCHEMA\020\003\"_\n\013PartitionPB\022\030\n"
1501
17.1k
      "\014hash_buckets\030\001 \003(\005B\002\020\001\022\033\n\023partition_key"
1502
17.1k
      "_start\030\002 \001(\014\022\031\n\021partition_key_end\030\003 \001(\014\""
1503
17.1k
      "\365\001\n\025TransactionMetadataPB\022\026\n\016transaction"
1504
17.1k
      "_id\030\001 \001(\014\0228\n\tisolation\030\002 \001(\0162\022.yb.Isolat"
1505
17.1k
      "ionLevel:\021NON_TRANSACTIONAL\022\025\n\rstatus_ta"
1506
17.1k
      "blet\030\003 \001(\t\022\020\n\010priority\030\004 \001(\006\022\031\n\021start_hy"
1507
17.1k
      "brid_time\030\005 \001(\006\022\033\n\023metadata_write_time\030\006"
1508
17.1k
      " \001(\006\022)\n\010locality\030\007 \001(\0162\027.yb.TransactionL"
1509
17.1k
      "ocality\"\245\001\n\020ReadHybridTimePB\022\017\n\007read_ht\030"
1510
17.1k
      "\001 \001(\006\0226\n.DEPRECATED_max_of_read_time_and"
1511
17.1k
      "_local_limit_ht\030\002 \001(\006\022\027\n\017global_limit_ht"
1512
17.1k
      "\030\003 \001(\006\022\027\n\017in_txn_limit_ht\030\004 \001(\006\022\026\n\016local"
1513
17.1k
      "_limit_ht\030\005 \001(\006\"\345\001\n\026ChildTransactionData"
1514
17.1k
      "PB\022+\n\010metadata\030\001 \001(\0132\031.yb.TransactionMet"
1515
17.1k
      "adataPB\022\'\n\tread_time\030\002 \001(\0132\024.yb.ReadHybr"
1516
17.1k
      "idTimePB\022A\n\014local_limits\030\003 \003(\0132+.yb.Chil"
1517
17.1k
      "dTransactionDataPB.LocalLimitsEntry\0322\n\020L"
1518
17.1k
      "ocalLimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
1519
17.1k
      "\001(\006:\0028\001\"~\n\033TransactionInvolvedTabletPB\022\021"
1520
17.1k
      "\n\ttablet_id\030\001 \001(\014\0227\n\016metadata_state\030\002 \001("
1521
17.1k
      "\0162\037.yb.InvolvedTabletMetadataState\022\023\n\013nu"
1522
17.1k
      "m_batches\030\003 \001(\004\"\217\002\n\030ChildTransactionResu"
1523
17.1k
      "ltPB\0220\n\007tablets\030\001 \003(\0132\037.yb.TransactionIn"
1524
17.1k
      "volvedTabletPB\022\027\n\017restart_read_ht\030\002 \001(\006\022"
1525
17.1k
      "E\n\rread_restarts\030\003 \003(\0132..yb.ChildTransac"
1526
17.1k
      "tionResultPB.ReadRestartsEntry\022,\n\016used_r"
1527
17.1k
      "ead_time\030\004 \001(\0132\024.yb.ReadHybridTimePB\0323\n\021"
1528
17.1k
      "ReadRestartsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
1529
17.1k
      "\002 \001(\006:\0028\001\"A\n\017DeletedColumnPB\022\021\n\tcolumn_i"
1530
17.1k
      "d\030\001 \001(\005\022\033\n\023deleted_hybrid_time\030\002 \001(\006\"S\n\022"
1531
17.1k
      "QLSubscriptedColPB\022\021\n\tcolumn_id\030\001 \001(\005\022*\n"
1532
17.1k
      "\016subscript_args\030\002 \003(\0132\022.yb.QLExpressionP"
1533
17.1k
      "B\"]\n\030QLJsonColumnOperationsPB\022\021\n\tcolumn_"
1534
17.1k
      "id\030\001 \001(\005\022.\n\017json_operations\030\002 \003(\0132\025.yb.Q"
1535
17.1k
      "LJsonOperationPB\"c\n\021QLJsonOperationPB\022)\n"
1536
17.1k
      "\rjson_operator\030\001 \002(\0162\022.yb.JsonOperatorPB"
1537
17.1k
      "\022#\n\007operand\030\002 \002(\0132\022.yb.QLExpressionPB\"\323\002"
1538
17.1k
      "\n\016QLExpressionPB\022\036\n\005value\030\001 \001(\0132\r.yb.QLV"
1539
17.1k
      "aluePBH\000\022\023\n\tcolumn_id\030\002 \001(\005H\000\0221\n\017subscri"
1540
17.1k
      "pted_col\030\003 \001(\0132\026.yb.QLSubscriptedColPBH\000"
1541
17.1k
      "\022\021\n\007bind_id\030\004 \001(\005H\000\022&\n\tcondition\030\005 \001(\0132\021"
1542
17.1k
      ".yb.QLConditionPBH\000\022\037\n\006bfcall\030\006 \001(\0132\r.yb"
1543
17.1k
      ".QLBCallPBH\000\022\037\n\006tscall\030\007 \001(\0132\r.yb.QLBCal"
1544
17.1k
      "lPBH\000\022\037\n\006bocall\030\010 \001(\0132\r.yb.QLBCallPBH\000\0223"
1545
17.1k
      "\n\013json_column\030\t \001(\0132\034.yb.QLJsonColumnOpe"
1546
17.1k
      "rationsPBH\000B\006\n\004expr\"Q\n\rQLConditionPB\022\032\n\002"
1547
17.1k
      "op\030\001 \001(\0162\016.yb.QLOperator\022$\n\010operands\030\002 \003"
1548
17.1k
      "(\0132\022.yb.QLExpressionPB\"A\n\tQLBCallPB\022\016\n\006o"
1549
17.1k
      "pcode\030\001 \001(\005\022$\n\010operands\030\002 \003(\0132\022.yb.QLExp"
1550
17.1k
      "ressionPB\"\273\001\n\rExplainPlanPB\022\'\n\013select_pl"
1551
17.1k
      "an\030\001 \001(\0132\020.yb.SelectPlanPBH\000\022\'\n\013insert_p"
1552
17.1k
      "lan\030\002 \001(\0132\020.yb.InsertPlanPBH\000\022\'\n\013update_"
1553
17.1k
      "plan\030\003 \001(\0132\020.yb.UpdatePlanPBH\000\022\'\n\013delete"
1554
17.1k
      "_plan\030\004 \001(\0132\020.yb.DeletePlanPBH\000B\006\n\004plan\""
1555
17.1k
      "t\n\014SelectPlanPB\022\023\n\013select_type\030\001 \001(\t\022\021\n\t"
1556
17.1k
      "aggregate\030\002 \001(\t\022\026\n\016key_conditions\030\003 \001(\t\022"
1557
17.1k
      "\016\n\006filter\030\004 \001(\t\022\024\n\014output_width\030\005 \001(\005\"9\n"
1558
17.1k
      "\014InsertPlanPB\022\023\n\013insert_type\030\001 \001(\t\022\024\n\014ou"
1559
17.1k
      "tput_width\030\002 \001(\005\"d\n\014UpdatePlanPB\022\023\n\013upda"
1560
17.1k
      "te_type\030\001 \001(\t\022\021\n\tscan_type\030\002 \001(\t\022\026\n\016key_"
1561
17.1k
      "conditions\030\003 \001(\t\022\024\n\014output_width\030\004 \001(\005\"t"
1562
17.1k
      "\n\014DeletePlanPB\022\023\n\013delete_type\030\001 \001(\t\022\021\n\ts"
1563
17.1k
      "can_type\030\002 \001(\t\022\026\n\016key_conditions\030\003 \001(\t\022\016"
1564
17.1k
      "\n\006filter\030\004 \001(\t\022\024\n\014output_width\030\005 \001(\005*\?\n\t"
1565
17.1k
      "OrderMode\022\026\n\022UNKNOWN_ORDER_MODE\020\000\022\r\n\tUNO"
1566
17.1k
      "RDERED\020\001\022\013\n\007ORDERED\020\002*;\n\nWaitPolicy\022\016\n\nW"
1567
17.1k
      "AIT_BLOCK\020\000\022\r\n\tWAIT_SKIP\020\001\022\016\n\nWAIT_ERROR"
1568
17.1k
      "\020\002*D\n\033InvolvedTabletMetadataState\022\013\n\007MIS"
1569
17.1k
      "SING\020\000\022\t\n\005EXIST\020\001\022\r\n\tMAY_EXIST\020\002B\010\n\006org."
1570
17.1k
      "yb"
1571
17.1k
  };
1572
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
1573
17.1k
      descriptor, 5642);
1574
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
1575
17.1k
    "yb/common/common.proto", &protobuf_RegisterTypes);
1576
17.1k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
1577
17.1k
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors();
1578
17.1k
  ::protobuf_yb_2fcommon_2fvalue_2eproto::AddDescriptors();
1579
17.1k
}
1580
1581
271k
void AddDescriptors() {
1582
271k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
1583
271k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
1584
271k
}
1585
// Force AddDescriptors() to be called at dynamic initialization time.
1586
struct StaticDescriptorInitializer {
1587
17.1k
  StaticDescriptorInitializer() {
1588
17.1k
    AddDescriptors();
1589
17.1k
  }
1590
} static_descriptor_initializer;
1591
}  // namespace protobuf_yb_2fcommon_2fcommon_2eproto
1592
namespace yb {
1593
0
const ::google::protobuf::EnumDescriptor* PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm_descriptor() {
1594
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1595
0
  return protobuf_yb_2fcommon_2fcommon_2eproto::file_level_enum_descriptors[0];
1596
0
}
1597
0
bool PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm_IsValid(int value) {
1598
0
  switch (value) {
1599
0
    case 0:
1600
0
    case 1:
1601
0
      return true;
1602
0
    default:
1603
0
      return false;
1604
0
  }
1605
0
}
1606
1607
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1608
const PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm PartitionSchemaPB_HashBucketSchemaPB::UNKNOWN;
1609
const PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm PartitionSchemaPB_HashBucketSchemaPB::MURMUR_HASH_2;
1610
const PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm PartitionSchemaPB_HashBucketSchemaPB::HashAlgorithm_MIN;
1611
const PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm PartitionSchemaPB_HashBucketSchemaPB::HashAlgorithm_MAX;
1612
const int PartitionSchemaPB_HashBucketSchemaPB::HashAlgorithm_ARRAYSIZE;
1613
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1614
0
const ::google::protobuf::EnumDescriptor* PartitionSchemaPB_HashSchema_descriptor() {
1615
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1616
0
  return protobuf_yb_2fcommon_2fcommon_2eproto::file_level_enum_descriptors[1];
1617
0
}
1618
720k
bool PartitionSchemaPB_HashSchema_IsValid(int value) {
1619
720k
  switch (value) {
1620
613k
    case 1:
1621
627k
    case 2:
1622
720k
    case 3:
1623
720k
      return true;
1624
0
    default:
1625
0
      return false;
1626
720k
  }
1627
720k
}
1628
1629
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1630
const PartitionSchemaPB_HashSchema PartitionSchemaPB::MULTI_COLUMN_HASH_SCHEMA;
1631
const PartitionSchemaPB_HashSchema PartitionSchemaPB::REDIS_HASH_SCHEMA;
1632
const PartitionSchemaPB_HashSchema PartitionSchemaPB::PGSQL_HASH_SCHEMA;
1633
const PartitionSchemaPB_HashSchema PartitionSchemaPB::HashSchema_MIN;
1634
const PartitionSchemaPB_HashSchema PartitionSchemaPB::HashSchema_MAX;
1635
const int PartitionSchemaPB::HashSchema_ARRAYSIZE;
1636
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1637
0
const ::google::protobuf::EnumDescriptor* OrderMode_descriptor() {
1638
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1639
0
  return protobuf_yb_2fcommon_2fcommon_2eproto::file_level_enum_descriptors[2];
1640
0
}
1641
0
bool OrderMode_IsValid(int value) {
1642
0
  switch (value) {
1643
0
    case 0:
1644
0
    case 1:
1645
0
    case 2:
1646
0
      return true;
1647
0
    default:
1648
0
      return false;
1649
0
  }
1650
0
}
1651
1652
0
const ::google::protobuf::EnumDescriptor* WaitPolicy_descriptor() {
1653
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1654
0
  return protobuf_yb_2fcommon_2fcommon_2eproto::file_level_enum_descriptors[3];
1655
0
}
1656
2.06M
bool WaitPolicy_IsValid(int value) {
1657
2.06M
  switch (value) {
1658
0
    case 0:
1659
2.09k
    case 1:
1660
2.06M
    case 2:
1661
2.06M
      return true;
1662
0
    default:
1663
0
      return false;
1664
2.06M
  }
1665
2.06M
}
1666
1667
0
const ::google::protobuf::EnumDescriptor* InvolvedTabletMetadataState_descriptor() {
1668
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1669
0
  return protobuf_yb_2fcommon_2fcommon_2eproto::file_level_enum_descriptors[4];
1670
0
}
1671
49.7k
bool InvolvedTabletMetadataState_IsValid(int value) {
1672
49.7k
  switch (value) {
1673
781
    case 0:
1674
49.7k
    case 1:
1675
49.7k
    case 2:
1676
49.7k
      return true;
1677
0
    default:
1678
0
      return false;
1679
49.7k
  }
1680
49.7k
}
1681
1682
1683
// ===================================================================
1684
1685
17.1k
void QLTypePB_UDTypeInfo::InitAsDefaultInstance() {
1686
17.1k
}
1687
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1688
const int QLTypePB_UDTypeInfo::kKeyspaceNameFieldNumber;
1689
const int QLTypePB_UDTypeInfo::kNameFieldNumber;
1690
const int QLTypePB_UDTypeInfo::kIdFieldNumber;
1691
const int QLTypePB_UDTypeInfo::kFieldNamesFieldNumber;
1692
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1693
1694
QLTypePB_UDTypeInfo::QLTypePB_UDTypeInfo()
1695
47.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1696
30.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1697
30.0k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB_UDTypeInfo();
1698
30.0k
  }
1699
47.2k
  SharedCtor();
1700
  // @@protoc_insertion_point(constructor:yb.QLTypePB.UDTypeInfo)
1701
47.2k
}
1702
QLTypePB_UDTypeInfo::QLTypePB_UDTypeInfo(const QLTypePB_UDTypeInfo& from)
1703
  : ::google::protobuf::Message(),
1704
      _internal_metadata_(NULL),
1705
      _has_bits_(from._has_bits_),
1706
      _cached_size_(0),
1707
2
      field_names_(from.field_names_) {
1708
2
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1709
2
  keyspace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1710
2
  if (from.has_keyspace_name()) {
1711
2
    keyspace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyspace_name_);
1712
2
  }
1713
2
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1714
2
  if (from.has_name()) {
1715
2
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1716
2
  }
1717
2
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1718
2
  if (from.has_id()) {
1719
2
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
1720
2
  }
1721
  // @@protoc_insertion_point(copy_constructor:yb.QLTypePB.UDTypeInfo)
1722
2
}
1723
1724
47.2k
void QLTypePB_UDTypeInfo::SharedCtor() {
1725
47.2k
  _cached_size_ = 0;
1726
47.2k
  keyspace_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1727
47.2k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1728
47.2k
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1729
47.2k
}
1730
1731
29.5k
QLTypePB_UDTypeInfo::~QLTypePB_UDTypeInfo() {
1732
  // @@protoc_insertion_point(destructor:yb.QLTypePB.UDTypeInfo)
1733
29.5k
  SharedDtor();
1734
29.5k
}
1735
1736
29.5k
void QLTypePB_UDTypeInfo::SharedDtor() {
1737
29.5k
  keyspace_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1738
29.5k
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1739
29.5k
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1740
29.5k
}
1741
1742
0
void QLTypePB_UDTypeInfo::SetCachedSize(int size) const {
1743
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1744
0
  _cached_size_ = size;
1745
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1746
0
}
1747
0
const ::google::protobuf::Descriptor* QLTypePB_UDTypeInfo::descriptor() {
1748
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
1749
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1750
0
}
1751
1752
0
const QLTypePB_UDTypeInfo& QLTypePB_UDTypeInfo::default_instance() {
1753
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB_UDTypeInfo();
1754
0
  return *internal_default_instance();
1755
0
}
1756
1757
0
QLTypePB_UDTypeInfo* QLTypePB_UDTypeInfo::New(::google::protobuf::Arena* arena) const {
1758
0
  QLTypePB_UDTypeInfo* n = new QLTypePB_UDTypeInfo;
1759
0
  if (arena != NULL) {
1760
0
    arena->Own(n);
1761
0
  }
1762
0
  return n;
1763
0
}
1764
1765
238
void QLTypePB_UDTypeInfo::Clear() {
1766
// @@protoc_insertion_point(message_clear_start:yb.QLTypePB.UDTypeInfo)
1767
238
  ::google::protobuf::uint32 cached_has_bits = 0;
1768
  // Prevent compiler warnings about cached_has_bits being unused
1769
238
  (void) cached_has_bits;
1770
1771
238
  field_names_.Clear();
1772
238
  cached_has_bits = _has_bits_[0];
1773
238
  if (cached_has_bits & 7u) {
1774
238
    if (cached_has_bits & 0x00000001u) {
1775
238
      GOOGLE_DCHECK(!keyspace_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1776
238
      (*keyspace_name_.UnsafeRawStringPointer())->clear();
1777
238
    }
1778
238
    if (cached_has_bits & 0x00000002u) {
1779
238
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1780
238
      (*name_.UnsafeRawStringPointer())->clear();
1781
238
    }
1782
238
    if (cached_has_bits & 0x00000004u) {
1783
237
      GOOGLE_DCHECK(!id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1784
237
      (*id_.UnsafeRawStringPointer())->clear();
1785
237
    }
1786
238
  }
1787
238
  _has_bits_.Clear();
1788
238
  _internal_metadata_.Clear();
1789
238
}
1790
1791
bool QLTypePB_UDTypeInfo::MergePartialFromCodedStream(
1792
3.17k
    ::google::protobuf::io::CodedInputStream* input) {
1793
15.7k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1794
3.17k
  ::google::protobuf::uint32 tag;
1795
  // @@protoc_insertion_point(parse_start:yb.QLTypePB.UDTypeInfo)
1796
18.8k
  for (;;) {
1797
18.8k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1798
18.8k
    tag = p.first;
1799
18.8k
    if (!p.second) goto handle_unusual;
1800
15.6k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1801
      // optional string keyspace_name = 1;
1802
3.17k
      case 1: {
1803
3.17k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1804
3.17k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1805
3.17k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1806
3.17k
                input, this->mutable_keyspace_name()));
1807
3.17k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1808
3.17k
            this->keyspace_name().data(), static_cast<int>(this->keyspace_name().length()),
1809
3.17k
            ::google::protobuf::internal::WireFormat::PARSE,
1810
3.17k
            "yb.QLTypePB.UDTypeInfo.keyspace_name");
1811
18.4E
        } else {
1812
18.4E
          goto handle_unusual;
1813
18.4E
        }
1814
3.17k
        break;
1815
3.17k
      }
1816
1817
      // optional string name = 2;
1818
3.17k
      case 2: {
1819
3.17k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1820
3.17k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1821
3.17k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1822
3.17k
                input, this->mutable_name()));
1823
3.17k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1824
3.17k
            this->name().data(), static_cast<int>(this->name().length()),
1825
3.17k
            ::google::protobuf::internal::WireFormat::PARSE,
1826
3.17k
            "yb.QLTypePB.UDTypeInfo.name");
1827
18.4E
        } else {
1828
18.4E
          goto handle_unusual;
1829
18.4E
        }
1830
3.17k
        break;
1831
3.17k
      }
1832
1833
      // optional string id = 3;
1834
3.17k
      case 3: {
1835
3.17k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1836
3.17k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1837
3.17k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1838
3.17k
                input, this->mutable_id()));
1839
3.17k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1840
3.17k
            this->id().data(), static_cast<int>(this->id().length()),
1841
3.17k
            ::google::protobuf::internal::WireFormat::PARSE,
1842
3.17k
            "yb.QLTypePB.UDTypeInfo.id");
1843
1
        } else {
1844
1
          goto handle_unusual;
1845
1
        }
1846
3.17k
        break;
1847
3.17k
      }
1848
1849
      // repeated string field_names = 4;
1850
6.19k
      case 4: {
1851
6.19k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1852
6.19k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1853
6.19k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1854
6.19k
                input, this->add_field_names()));
1855
6.19k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1856
6.19k
            this->field_names(this->field_names_size() - 1).data(),
1857
6.19k
            static_cast<int>(this->field_names(this->field_names_size() - 1).length()),
1858
6.19k
            ::google::protobuf::internal::WireFormat::PARSE,
1859
6.19k
            "yb.QLTypePB.UDTypeInfo.field_names");
1860
0
        } else {
1861
0
          goto handle_unusual;
1862
0
        }
1863
6.19k
        break;
1864
3.17k
      }
1865
1866
0
      default: {
1867
3.17k
      handle_unusual:
1868
3.17k
        if (tag == 0) {
1869
3.17k
          goto success;
1870
3.17k
        }
1871
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1872
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1873
0
        break;
1874
0
      }
1875
15.6k
    }
1876
15.6k
  }
1877
3.17k
success:
1878
  // @@protoc_insertion_point(parse_success:yb.QLTypePB.UDTypeInfo)
1879
3.17k
  return true;
1880
0
failure:
1881
  // @@protoc_insertion_point(parse_failure:yb.QLTypePB.UDTypeInfo)
1882
0
  return false;
1883
3.17k
#undef DO_
1884
3.17k
}
1885
1886
void QLTypePB_UDTypeInfo::SerializeWithCachedSizes(
1887
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1888
  // @@protoc_insertion_point(serialize_start:yb.QLTypePB.UDTypeInfo)
1889
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1890
0
  (void) cached_has_bits;
1891
1892
0
  cached_has_bits = _has_bits_[0];
1893
  // optional string keyspace_name = 1;
1894
0
  if (cached_has_bits & 0x00000001u) {
1895
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1896
0
      this->keyspace_name().data(), static_cast<int>(this->keyspace_name().length()),
1897
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1898
0
      "yb.QLTypePB.UDTypeInfo.keyspace_name");
1899
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1900
0
      1, this->keyspace_name(), output);
1901
0
  }
1902
1903
  // optional string name = 2;
1904
0
  if (cached_has_bits & 0x00000002u) {
1905
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1906
0
      this->name().data(), static_cast<int>(this->name().length()),
1907
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1908
0
      "yb.QLTypePB.UDTypeInfo.name");
1909
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1910
0
      2, this->name(), output);
1911
0
  }
1912
1913
  // optional string id = 3;
1914
0
  if (cached_has_bits & 0x00000004u) {
1915
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1916
0
      this->id().data(), static_cast<int>(this->id().length()),
1917
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1918
0
      "yb.QLTypePB.UDTypeInfo.id");
1919
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1920
0
      3, this->id(), output);
1921
0
  }
1922
1923
  // repeated string field_names = 4;
1924
0
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
1925
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1926
0
      this->field_names(i).data(), static_cast<int>(this->field_names(i).length()),
1927
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1928
0
      "yb.QLTypePB.UDTypeInfo.field_names");
1929
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
1930
0
      4, this->field_names(i), output);
1931
0
  }
1932
1933
0
  if (_internal_metadata_.have_unknown_fields()) {
1934
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1935
0
        _internal_metadata_.unknown_fields(), output);
1936
0
  }
1937
  // @@protoc_insertion_point(serialize_end:yb.QLTypePB.UDTypeInfo)
1938
0
}
1939
1940
::google::protobuf::uint8* QLTypePB_UDTypeInfo::InternalSerializeWithCachedSizesToArray(
1941
14.3k
    bool deterministic, ::google::protobuf::uint8* target) const {
1942
14.3k
  (void)deterministic; // Unused
1943
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLTypePB.UDTypeInfo)
1944
14.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
1945
14.3k
  (void) cached_has_bits;
1946
1947
14.3k
  cached_has_bits = _has_bits_[0];
1948
  // optional string keyspace_name = 1;
1949
14.3k
  if (cached_has_bits & 0x00000001u) {
1950
14.3k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1951
14.3k
      this->keyspace_name().data(), static_cast<int>(this->keyspace_name().length()),
1952
14.3k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1953
14.3k
      "yb.QLTypePB.UDTypeInfo.keyspace_name");
1954
14.3k
    target =
1955
14.3k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1956
14.3k
        1, this->keyspace_name(), target);
1957
14.3k
  }
1958
1959
  // optional string name = 2;
1960
14.4k
  if (cached_has_bits & 0x00000002u) {
1961
14.4k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1962
14.4k
      this->name().data(), static_cast<int>(this->name().length()),
1963
14.4k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1964
14.4k
      "yb.QLTypePB.UDTypeInfo.name");
1965
14.4k
    target =
1966
14.4k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1967
14.4k
        2, this->name(), target);
1968
14.4k
  }
1969
1970
  // optional string id = 3;
1971
14.4k
  if (cached_has_bits & 0x00000004u) {
1972
14.4k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1973
14.4k
      this->id().data(), static_cast<int>(this->id().length()),
1974
14.4k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1975
14.4k
      "yb.QLTypePB.UDTypeInfo.id");
1976
14.4k
    target =
1977
14.4k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1978
14.4k
        3, this->id(), target);
1979
14.4k
  }
1980
1981
  // repeated string field_names = 4;
1982
42.3k
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
1983
27.9k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1984
27.9k
      this->field_names(i).data(), static_cast<int>(this->field_names(i).length()),
1985
27.9k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1986
27.9k
      "yb.QLTypePB.UDTypeInfo.field_names");
1987
27.9k
    target = ::google::protobuf::internal::WireFormatLite::
1988
27.9k
      WriteStringToArray(4, this->field_names(i), target);
1989
27.9k
  }
1990
1991
14.3k
  if (_internal_metadata_.have_unknown_fields()) {
1992
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1993
0
        _internal_metadata_.unknown_fields(), target);
1994
0
  }
1995
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLTypePB.UDTypeInfo)
1996
14.3k
  return target;
1997
14.3k
}
1998
1999
20.3k
size_t QLTypePB_UDTypeInfo::ByteSizeLong() const {
2000
// @@protoc_insertion_point(message_byte_size_start:yb.QLTypePB.UDTypeInfo)
2001
20.3k
  size_t total_size = 0;
2002
2003
20.3k
  if (_internal_metadata_.have_unknown_fields()) {
2004
0
    total_size +=
2005
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2006
0
        _internal_metadata_.unknown_fields());
2007
0
  }
2008
  // repeated string field_names = 4;
2009
20.3k
  total_size += 1 *
2010
20.3k
      ::google::protobuf::internal::FromIntSize(this->field_names_size());
2011
59.7k
  for (int i = 0, n = this->field_names_size(); i < n; i++) {
2012
39.3k
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
2013
39.3k
      this->field_names(i));
2014
39.3k
  }
2015
2016
20.3k
  if (_has_bits_[0 / 32] & 7u) {
2017
    // optional string keyspace_name = 1;
2018
20.2k
    if (has_keyspace_name()) {
2019
20.2k
      total_size += 1 +
2020
20.2k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2021
20.2k
          this->keyspace_name());
2022
20.2k
    }
2023
2024
    // optional string name = 2;
2025
20.2k
    if (has_name()) {
2026
20.2k
      total_size += 1 +
2027
20.2k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2028
20.2k
          this->name());
2029
20.2k
    }
2030
2031
    // optional string id = 3;
2032
20.2k
    if (has_id()) {
2033
20.2k
      total_size += 1 +
2034
20.2k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2035
20.2k
          this->id());
2036
20.2k
    }
2037
2038
20.2k
  }
2039
20.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2040
20.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2041
20.3k
  _cached_size_ = cached_size;
2042
20.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2043
20.3k
  return total_size;
2044
20.3k
}
2045
2046
0
void QLTypePB_UDTypeInfo::MergeFrom(const ::google::protobuf::Message& from) {
2047
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLTypePB.UDTypeInfo)
2048
0
  GOOGLE_DCHECK_NE(&from, this);
2049
0
  const QLTypePB_UDTypeInfo* source =
2050
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLTypePB_UDTypeInfo>(
2051
0
          &from);
2052
0
  if (source == NULL) {
2053
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLTypePB.UDTypeInfo)
2054
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2055
0
  } else {
2056
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLTypePB.UDTypeInfo)
2057
0
    MergeFrom(*source);
2058
0
  }
2059
0
}
2060
2061
16.4k
void QLTypePB_UDTypeInfo::MergeFrom(const QLTypePB_UDTypeInfo& from) {
2062
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLTypePB.UDTypeInfo)
2063
16.4k
  GOOGLE_DCHECK_NE(&from, this);
2064
16.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2065
16.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
2066
16.4k
  (void) cached_has_bits;
2067
2068
16.4k
  field_names_.MergeFrom(from.field_names_);
2069
16.4k
  cached_has_bits = from._has_bits_[0];
2070
16.4k
  if (cached_has_bits & 7u) {
2071
16.4k
    if (cached_has_bits & 0x00000001u) {
2072
16.4k
      set_has_keyspace_name();
2073
16.4k
      keyspace_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyspace_name_);
2074
16.4k
    }
2075
16.4k
    if (cached_has_bits & 0x00000002u) {
2076
16.3k
      set_has_name();
2077
16.3k
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2078
16.3k
    }
2079
16.4k
    if (cached_has_bits & 0x00000004u) {
2080
16.3k
      set_has_id();
2081
16.3k
      id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
2082
16.3k
    }
2083
16.4k
  }
2084
16.4k
}
2085
2086
0
void QLTypePB_UDTypeInfo::CopyFrom(const ::google::protobuf::Message& from) {
2087
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLTypePB.UDTypeInfo)
2088
0
  if (&from == this) return;
2089
0
  Clear();
2090
0
  MergeFrom(from);
2091
0
}
2092
2093
0
void QLTypePB_UDTypeInfo::CopyFrom(const QLTypePB_UDTypeInfo& from) {
2094
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLTypePB.UDTypeInfo)
2095
0
  if (&from == this) return;
2096
0
  Clear();
2097
0
  MergeFrom(from);
2098
0
}
2099
2100
0
bool QLTypePB_UDTypeInfo::IsInitialized() const {
2101
0
  return true;
2102
0
}
2103
2104
0
void QLTypePB_UDTypeInfo::Swap(QLTypePB_UDTypeInfo* other) {
2105
0
  if (other == this) return;
2106
0
  InternalSwap(other);
2107
0
}
2108
0
void QLTypePB_UDTypeInfo::InternalSwap(QLTypePB_UDTypeInfo* other) {
2109
0
  using std::swap;
2110
0
  field_names_.InternalSwap(&other->field_names_);
2111
0
  keyspace_name_.Swap(&other->keyspace_name_);
2112
0
  name_.Swap(&other->name_);
2113
0
  id_.Swap(&other->id_);
2114
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2115
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2116
0
  swap(_cached_size_, other->_cached_size_);
2117
0
}
2118
2119
9.27k
::google::protobuf::Metadata QLTypePB_UDTypeInfo::GetMetadata() const {
2120
9.27k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
2121
9.27k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
2122
9.27k
}
2123
2124
2125
// ===================================================================
2126
2127
17.1k
void QLTypePB::InitAsDefaultInstance() {
2128
17.1k
  ::yb::_QLTypePB_default_instance_._instance.get_mutable()->udtype_info_ = const_cast< ::yb::QLTypePB_UDTypeInfo*>(
2129
17.1k
      ::yb::QLTypePB_UDTypeInfo::internal_default_instance());
2130
17.1k
}
2131
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2132
const int QLTypePB::kMainFieldNumber;
2133
const int QLTypePB::kParamsFieldNumber;
2134
const int QLTypePB::kUdtypeInfoFieldNumber;
2135
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2136
2137
QLTypePB::QLTypePB()
2138
999M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2139
999M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2140
999M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
2141
999M
  }
2142
999M
  SharedCtor();
2143
  // @@protoc_insertion_point(constructor:yb.QLTypePB)
2144
999M
}
2145
QLTypePB::QLTypePB(const QLTypePB& from)
2146
  : ::google::protobuf::Message(),
2147
      _internal_metadata_(NULL),
2148
      _has_bits_(from._has_bits_),
2149
      _cached_size_(0),
2150
173
      params_(from.params_) {
2151
173
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2152
173
  if (from.has_udtype_info()) {
2153
2
    udtype_info_ = new ::yb::QLTypePB_UDTypeInfo(*from.udtype_info_);
2154
171
  } else {
2155
171
    udtype_info_ = NULL;
2156
171
  }
2157
173
  main_ = from.main_;
2158
  // @@protoc_insertion_point(copy_constructor:yb.QLTypePB)
2159
173
}
2160
2161
999M
void QLTypePB::SharedCtor() {
2162
999M
  _cached_size_ = 0;
2163
999M
  udtype_info_ = NULL;
2164
999M
  main_ = 999;
2165
999M
}
2166
2167
997M
QLTypePB::~QLTypePB() {
2168
  // @@protoc_insertion_point(destructor:yb.QLTypePB)
2169
997M
  SharedDtor();
2170
997M
}
2171
2172
997M
void QLTypePB::SharedDtor() {
2173
997M
  if (this != internal_default_instance()) delete udtype_info_;
2174
997M
}
2175
2176
0
void QLTypePB::SetCachedSize(int size) const {
2177
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2178
0
  _cached_size_ = size;
2179
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2180
0
}
2181
0
const ::google::protobuf::Descriptor* QLTypePB::descriptor() {
2182
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
2183
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2184
0
}
2185
2186
0
const QLTypePB& QLTypePB::default_instance() {
2187
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
2188
0
  return *internal_default_instance();
2189
0
}
2190
2191
0
QLTypePB* QLTypePB::New(::google::protobuf::Arena* arena) const {
2192
0
  QLTypePB* n = new QLTypePB;
2193
0
  if (arena != NULL) {
2194
0
    arena->Own(n);
2195
0
  }
2196
0
  return n;
2197
0
}
2198
2199
639k
void QLTypePB::Clear() {
2200
// @@protoc_insertion_point(message_clear_start:yb.QLTypePB)
2201
639k
  ::google::protobuf::uint32 cached_has_bits = 0;
2202
  // Prevent compiler warnings about cached_has_bits being unused
2203
639k
  (void) cached_has_bits;
2204
2205
639k
  params_.Clear();
2206
639k
  cached_has_bits = _has_bits_[0];
2207
639k
  if (cached_has_bits & 3u) {
2208
638k
    if (cached_has_bits & 0x00000001u) {
2209
238
      GOOGLE_DCHECK(udtype_info_ != NULL);
2210
238
      udtype_info_->Clear();
2211
238
    }
2212
638k
    main_ = 999;
2213
638k
  }
2214
639k
  _has_bits_.Clear();
2215
639k
  _internal_metadata_.Clear();
2216
639k
}
2217
2218
bool QLTypePB::MergePartialFromCodedStream(
2219
9.77M
    ::google::protobuf::io::CodedInputStream* input) {
2220
10.5M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2221
9.77M
  ::google::protobuf::uint32 tag;
2222
  // @@protoc_insertion_point(parse_start:yb.QLTypePB)
2223
20.2M
  for (;;) {
2224
20.2M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2225
20.2M
    tag = p.first;
2226
20.2M
    if (!p.second) goto handle_unusual;
2227
10.5M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2228
      // optional .yb.DataType main = 1;
2229
9.77M
      case 1: {
2230
9.77M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2231
9.77M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2232
9.77M
          int value;
2233
9.77M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2234
9.77M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2235
9.77M
                 input, &value)));
2236
9.77M
          if (::yb::DataType_IsValid(value)) {
2237
9.77M
            set_main(static_cast< ::yb::DataType >(value));
2238
521
          } else {
2239
521
            mutable_unknown_fields()->AddVarint(
2240
521
                1, static_cast< ::google::protobuf::uint64>(value));
2241
521
          }
2242
18.4E
        } else {
2243
18.4E
          goto handle_unusual;
2244
18.4E
        }
2245
9.77M
        break;
2246
9.77M
      }
2247
2248
      // repeated .yb.QLTypePB params = 2;
2249
763k
      case 2: {
2250
763k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2251
763k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2252
763k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_params()));
2253
18.4E
        } else {
2254
18.4E
          goto handle_unusual;
2255
18.4E
        }
2256
763k
        break;
2257
763k
      }
2258
2259
      // optional .yb.QLTypePB.UDTypeInfo udtype_info = 3;
2260
3.17k
      case 3: {
2261
3.17k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2262
3.17k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2263
3.17k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2264
3.17k
               input, mutable_udtype_info()));
2265
0
        } else {
2266
0
          goto handle_unusual;
2267
0
        }
2268
3.17k
        break;
2269
9.77M
      }
2270
2271
0
      default: {
2272
9.77M
      handle_unusual:
2273
9.77M
        if (tag == 0) {
2274
9.77M
          goto success;
2275
9.77M
        }
2276
521
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2277
521
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2278
521
        break;
2279
521
      }
2280
10.5M
    }
2281
10.5M
  }
2282
9.77M
success:
2283
  // @@protoc_insertion_point(parse_success:yb.QLTypePB)
2284
9.77M
  return true;
2285
0
failure:
2286
  // @@protoc_insertion_point(parse_failure:yb.QLTypePB)
2287
0
  return false;
2288
9.77M
#undef DO_
2289
9.77M
}
2290
2291
void QLTypePB::SerializeWithCachedSizes(
2292
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2293
  // @@protoc_insertion_point(serialize_start:yb.QLTypePB)
2294
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2295
0
  (void) cached_has_bits;
2296
2297
0
  cached_has_bits = _has_bits_[0];
2298
  // optional .yb.DataType main = 1;
2299
0
  if (cached_has_bits & 0x00000002u) {
2300
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2301
0
      1, this->main(), output);
2302
0
  }
2303
2304
  // repeated .yb.QLTypePB params = 2;
2305
0
  for (unsigned int i = 0,
2306
0
      n = static_cast<unsigned int>(this->params_size()); i < n; i++) {
2307
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2308
0
      2, this->params(static_cast<int>(i)), output);
2309
0
  }
2310
2311
  // optional .yb.QLTypePB.UDTypeInfo udtype_info = 3;
2312
0
  if (cached_has_bits & 0x00000001u) {
2313
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2314
0
      3, *this->udtype_info_, output);
2315
0
  }
2316
2317
0
  if (_internal_metadata_.have_unknown_fields()) {
2318
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2319
0
        _internal_metadata_.unknown_fields(), output);
2320
0
  }
2321
  // @@protoc_insertion_point(serialize_end:yb.QLTypePB)
2322
0
}
2323
2324
::google::protobuf::uint8* QLTypePB::InternalSerializeWithCachedSizesToArray(
2325
971M
    bool deterministic, ::google::protobuf::uint8* target) const {
2326
971M
  (void)deterministic; // Unused
2327
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLTypePB)
2328
971M
  ::google::protobuf::uint32 cached_has_bits = 0;
2329
971M
  (void) cached_has_bits;
2330
2331
971M
  cached_has_bits = _has_bits_[0];
2332
  // optional .yb.DataType main = 1;
2333
971M
  if (cached_has_bits & 0x00000002u) {
2334
971M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2335
971M
      1, this->main(), target);
2336
971M
  }
2337
2338
  // repeated .yb.QLTypePB params = 2;
2339
971M
  for (unsigned int i = 0,
2340
972M
      n = static_cast<unsigned int>(this->params_size()); i < n; i++) {
2341
883k
    target = ::google::protobuf::internal::WireFormatLite::
2342
883k
      InternalWriteMessageToArray(
2343
883k
        2, this->params(static_cast<int>(i)), deterministic, target);
2344
883k
  }
2345
2346
  // optional .yb.QLTypePB.UDTypeInfo udtype_info = 3;
2347
971M
  if (cached_has_bits & 0x00000001u) {
2348
14.3k
    target = ::google::protobuf::internal::WireFormatLite::
2349
14.3k
      InternalWriteMessageToArray(
2350
14.3k
        3, *this->udtype_info_, deterministic, target);
2351
14.3k
  }
2352
2353
971M
  if (_internal_metadata_.have_unknown_fields()) {
2354
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2355
0
        _internal_metadata_.unknown_fields(), target);
2356
0
  }
2357
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLTypePB)
2358
971M
  return target;
2359
971M
}
2360
2361
984M
size_t QLTypePB::ByteSizeLong() const {
2362
// @@protoc_insertion_point(message_byte_size_start:yb.QLTypePB)
2363
984M
  size_t total_size = 0;
2364
2365
984M
  if (_internal_metadata_.have_unknown_fields()) {
2366
0
    total_size +=
2367
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2368
0
        _internal_metadata_.unknown_fields());
2369
0
  }
2370
  // repeated .yb.QLTypePB params = 2;
2371
984M
  {
2372
984M
    unsigned int count = static_cast<unsigned int>(this->params_size());
2373
984M
    total_size += 1UL * count;
2374
986M
    for (unsigned int i = 0; i < count; i++) {
2375
1.64M
      total_size +=
2376
1.64M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2377
1.64M
          this->params(static_cast<int>(i)));
2378
1.64M
    }
2379
984M
  }
2380
2381
984M
  if (_has_bits_[0 / 32] & 3u) {
2382
    // optional .yb.QLTypePB.UDTypeInfo udtype_info = 3;
2383
984M
    if (has_udtype_info()) {
2384
20.3k
      total_size += 1 +
2385
20.3k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2386
20.3k
          *this->udtype_info_);
2387
20.3k
    }
2388
2389
    // optional .yb.DataType main = 1;
2390
984M
    if (has_main()) {
2391
984M
      total_size += 1 +
2392
984M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->main());
2393
984M
    }
2394
2395
984M
  }
2396
984M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2397
984M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2398
984M
  _cached_size_ = cached_size;
2399
984M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2400
984M
  return total_size;
2401
984M
}
2402
2403
0
void QLTypePB::MergeFrom(const ::google::protobuf::Message& from) {
2404
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLTypePB)
2405
0
  GOOGLE_DCHECK_NE(&from, this);
2406
0
  const QLTypePB* source =
2407
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLTypePB>(
2408
0
          &from);
2409
0
  if (source == NULL) {
2410
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLTypePB)
2411
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2412
0
  } else {
2413
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLTypePB)
2414
0
    MergeFrom(*source);
2415
0
  }
2416
0
}
2417
2418
14.6M
void QLTypePB::MergeFrom(const QLTypePB& from) {
2419
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLTypePB)
2420
14.6M
  GOOGLE_DCHECK_NE(&from, this);
2421
14.6M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2422
14.6M
  ::google::protobuf::uint32 cached_has_bits = 0;
2423
14.6M
  (void) cached_has_bits;
2424
2425
14.6M
  params_.MergeFrom(from.params_);
2426
14.6M
  cached_has_bits = from._has_bits_[0];
2427
14.6M
  if (cached_has_bits & 3u) {
2428
14.6M
    if (cached_has_bits & 0x00000001u) {
2429
16.4k
      mutable_udtype_info()->::yb::QLTypePB_UDTypeInfo::MergeFrom(from.udtype_info());
2430
16.4k
    }
2431
14.6M
    if (cached_has_bits & 0x00000002u) {
2432
14.6M
      main_ = from.main_;
2433
14.6M
    }
2434
14.6M
    _has_bits_[0] |= cached_has_bits;
2435
14.6M
  }
2436
14.6M
}
2437
2438
0
void QLTypePB::CopyFrom(const ::google::protobuf::Message& from) {
2439
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLTypePB)
2440
0
  if (&from == this) return;
2441
0
  Clear();
2442
0
  MergeFrom(from);
2443
0
}
2444
2445
1.06k
void QLTypePB::CopyFrom(const QLTypePB& from) {
2446
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLTypePB)
2447
1.06k
  if (&from == this) return;
2448
1.06k
  Clear();
2449
1.06k
  MergeFrom(from);
2450
1.06k
}
2451
2452
0
bool QLTypePB::IsInitialized() const {
2453
0
  return true;
2454
0
}
2455
2456
0
void QLTypePB::Swap(QLTypePB* other) {
2457
0
  if (other == this) return;
2458
0
  InternalSwap(other);
2459
0
}
2460
0
void QLTypePB::InternalSwap(QLTypePB* other) {
2461
0
  using std::swap;
2462
0
  params_.InternalSwap(&other->params_);
2463
0
  swap(udtype_info_, other->udtype_info_);
2464
0
  swap(main_, other->main_);
2465
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2466
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2467
0
  swap(_cached_size_, other->_cached_size_);
2468
0
}
2469
2470
13.4M
::google::protobuf::Metadata QLTypePB::GetMetadata() const {
2471
13.4M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
2472
13.4M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
2473
13.4M
}
2474
2475
2476
// ===================================================================
2477
2478
17.1k
void ColumnSchemaPB::InitAsDefaultInstance() {
2479
17.1k
  ::yb::_ColumnSchemaPB_default_instance_._instance.get_mutable()->type_ = const_cast< ::yb::QLTypePB*>(
2480
17.1k
      ::yb::QLTypePB::internal_default_instance());
2481
17.1k
}
2482
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2483
const int ColumnSchemaPB::kIdFieldNumber;
2484
const int ColumnSchemaPB::kNameFieldNumber;
2485
const int ColumnSchemaPB::kTypeFieldNumber;
2486
const int ColumnSchemaPB::kIsKeyFieldNumber;
2487
const int ColumnSchemaPB::kIsHashKeyFieldNumber;
2488
const int ColumnSchemaPB::kIsNullableFieldNumber;
2489
const int ColumnSchemaPB::kIsStaticFieldNumber;
2490
const int ColumnSchemaPB::kIsCounterFieldNumber;
2491
const int ColumnSchemaPB::kOrderFieldNumber;
2492
const int ColumnSchemaPB::kSortingTypeFieldNumber;
2493
const int ColumnSchemaPB::kPgTypeOidFieldNumber;
2494
const int ColumnSchemaPB::kOBSOLETEJsonOperationsFieldNumber;
2495
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2496
2497
ColumnSchemaPB::ColumnSchemaPB()
2498
982M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2499
982M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2500
982M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColumnSchemaPB();
2501
982M
  }
2502
982M
  SharedCtor();
2503
  // @@protoc_insertion_point(constructor:yb.ColumnSchemaPB)
2504
982M
}
2505
ColumnSchemaPB::ColumnSchemaPB(const ColumnSchemaPB& from)
2506
  : ::google::protobuf::Message(),
2507
      _internal_metadata_(NULL),
2508
      _has_bits_(from._has_bits_),
2509
      _cached_size_(0),
2510
173
      obsolete_json_operations_(from.obsolete_json_operations_) {
2511
173
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2512
173
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2513
173
  if (from.has_name()) {
2514
173
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2515
173
  }
2516
173
  if (from.has_type()) {
2517
173
    type_ = new ::yb::QLTypePB(*from.type_);
2518
0
  } else {
2519
0
    type_ = NULL;
2520
0
  }
2521
173
  ::memcpy(&id_, &from.id_,
2522
173
    static_cast<size_t>(reinterpret_cast<char*>(&pg_type_oid_) -
2523
173
    reinterpret_cast<char*>(&id_)) + sizeof(pg_type_oid_));
2524
  // @@protoc_insertion_point(copy_constructor:yb.ColumnSchemaPB)
2525
173
}
2526
2527
982M
void ColumnSchemaPB::SharedCtor() {
2528
982M
  _cached_size_ = 0;
2529
982M
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2530
982M
  ::memset(&type_, 0, static_cast<size_t>(
2531
982M
      reinterpret_cast<char*>(&pg_type_oid_) -
2532
982M
      reinterpret_cast<char*>(&type_)) + sizeof(pg_type_oid_));
2533
982M
}
2534
2535
980M
ColumnSchemaPB::~ColumnSchemaPB() {
2536
  // @@protoc_insertion_point(destructor:yb.ColumnSchemaPB)
2537
980M
  SharedDtor();
2538
980M
}
2539
2540
980M
void ColumnSchemaPB::SharedDtor() {
2541
980M
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2542
980M
  if (this != internal_default_instance()) delete type_;
2543
980M
}
2544
2545
0
void ColumnSchemaPB::SetCachedSize(int size) const {
2546
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2547
0
  _cached_size_ = size;
2548
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2549
0
}
2550
0
const ::google::protobuf::Descriptor* ColumnSchemaPB::descriptor() {
2551
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
2552
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2553
0
}
2554
2555
0
const ColumnSchemaPB& ColumnSchemaPB::default_instance() {
2556
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColumnSchemaPB();
2557
0
  return *internal_default_instance();
2558
0
}
2559
2560
0
ColumnSchemaPB* ColumnSchemaPB::New(::google::protobuf::Arena* arena) const {
2561
0
  ColumnSchemaPB* n = new ColumnSchemaPB;
2562
0
  if (arena != NULL) {
2563
0
    arena->Own(n);
2564
0
  }
2565
0
  return n;
2566
0
}
2567
2568
961M
void ColumnSchemaPB::Clear() {
2569
// @@protoc_insertion_point(message_clear_start:yb.ColumnSchemaPB)
2570
961M
  ::google::protobuf::uint32 cached_has_bits = 0;
2571
  // Prevent compiler warnings about cached_has_bits being unused
2572
961M
  (void) cached_has_bits;
2573
2574
961M
  obsolete_json_operations_.Clear();
2575
961M
  cached_has_bits = _has_bits_[0];
2576
961M
  if (cached_has_bits & 3u) {
2577
638k
    if (cached_has_bits & 0x00000001u) {
2578
638k
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2579
638k
      (*name_.UnsafeRawStringPointer())->clear();
2580
638k
    }
2581
638k
    if (cached_has_bits & 0x00000002u) {
2582
638k
      GOOGLE_DCHECK(type_ != NULL);
2583
638k
      type_->Clear();
2584
638k
    }
2585
638k
  }
2586
961M
  if (cached_has_bits & 252u) {
2587
638k
    ::memset(&id_, 0, static_cast<size_t>(
2588
638k
        reinterpret_cast<char*>(&is_counter_) -
2589
638k
        reinterpret_cast<char*>(&id_)) + sizeof(is_counter_));
2590
638k
  }
2591
961M
  if (cached_has_bits & 1792u) {
2592
638k
    ::memset(&sorting_type_, 0, static_cast<size_t>(
2593
638k
        reinterpret_cast<char*>(&pg_type_oid_) -
2594
638k
        reinterpret_cast<char*>(&sorting_type_)) + sizeof(pg_type_oid_));
2595
638k
  }
2596
961M
  _has_bits_.Clear();
2597
961M
  _internal_metadata_.Clear();
2598
961M
}
2599
2600
bool ColumnSchemaPB::MergePartialFromCodedStream(
2601
6.37M
    ::google::protobuf::io::CodedInputStream* input) {
2602
64.0M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2603
6.37M
  ::google::protobuf::uint32 tag;
2604
  // @@protoc_insertion_point(parse_start:yb.ColumnSchemaPB)
2605
70.3M
  for (;;) {
2606
70.3M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2607
70.3M
    tag = p.first;
2608
70.3M
    if (!p.second) goto handle_unusual;
2609
63.9M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2610
      // optional uint32 id = 1;
2611
6.36M
      case 1: {
2612
6.36M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2613
6.36M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2614
6.36M
          set_has_id();
2615
6.36M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2616
6.36M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2617
6.36M
                 input, &id_)));
2618
18.4E
        } else {
2619
18.4E
          goto handle_unusual;
2620
18.4E
        }
2621
6.36M
        break;
2622
6.36M
      }
2623
2624
      // required string name = 2;
2625
6.37M
      case 2: {
2626
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2627
6.37M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2628
6.37M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2629
6.37M
                input, this->mutable_name()));
2630
6.37M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2631
6.37M
            this->name().data(), static_cast<int>(this->name().length()),
2632
6.37M
            ::google::protobuf::internal::WireFormat::PARSE,
2633
6.37M
            "yb.ColumnSchemaPB.name");
2634
18.4E
        } else {
2635
18.4E
          goto handle_unusual;
2636
18.4E
        }
2637
6.37M
        break;
2638
6.37M
      }
2639
2640
      // required .yb.QLTypePB type = 3;
2641
6.38M
      case 3: {
2642
6.38M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2643
6.38M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2644
6.38M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2645
6.38M
               input, mutable_type()));
2646
18.4E
        } else {
2647
18.4E
          goto handle_unusual;
2648
18.4E
        }
2649
6.38M
        break;
2650
6.38M
      }
2651
2652
      // optional bool is_key = 4 [default = false];
2653
6.37M
      case 4: {
2654
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2655
6.37M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2656
6.37M
          set_has_is_key();
2657
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2658
6.37M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2659
6.37M
                 input, &is_key_)));
2660
18.4E
        } else {
2661
18.4E
          goto handle_unusual;
2662
18.4E
        }
2663
6.37M
        break;
2664
6.37M
      }
2665
2666
      // optional bool is_hash_key = 5 [default = false];
2667
225k
      case 5: {
2668
225k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2669
226k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2670
226k
          set_has_is_hash_key();
2671
226k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2672
226k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2673
226k
                 input, &is_hash_key_)));
2674
18.4E
        } else {
2675
18.4E
          goto handle_unusual;
2676
18.4E
        }
2677
226k
        break;
2678
226k
      }
2679
2680
      // optional bool is_nullable = 6 [default = false];
2681
6.37M
      case 6: {
2682
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2683
6.37M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
2684
6.37M
          set_has_is_nullable();
2685
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2686
6.37M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2687
6.37M
                 input, &is_nullable_)));
2688
18.4E
        } else {
2689
18.4E
          goto handle_unusual;
2690
18.4E
        }
2691
6.37M
        break;
2692
6.37M
      }
2693
2694
      // optional bool is_static = 7 [default = false];
2695
6.37M
      case 7: {
2696
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2697
6.37M
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
2698
6.37M
          set_has_is_static();
2699
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2700
6.37M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2701
6.37M
                 input, &is_static_)));
2702
18.4E
        } else {
2703
18.4E
          goto handle_unusual;
2704
18.4E
        }
2705
6.37M
        break;
2706
6.37M
      }
2707
2708
      // optional bool is_counter = 8 [default = false];
2709
6.37M
      case 8: {
2710
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2711
6.37M
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
2712
6.37M
          set_has_is_counter();
2713
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2714
6.37M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2715
6.37M
                 input, &is_counter_)));
2716
18.4E
        } else {
2717
18.4E
          goto handle_unusual;
2718
18.4E
        }
2719
6.37M
        break;
2720
6.37M
      }
2721
2722
      // optional uint32 sorting_type = 9 [default = 0];
2723
6.37M
      case 9: {
2724
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2725
6.37M
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
2726
6.37M
          set_has_sorting_type();
2727
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2728
6.37M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2729
6.37M
                 input, &sorting_type_)));
2730
18.4E
        } else {
2731
18.4E
          goto handle_unusual;
2732
18.4E
        }
2733
6.37M
        break;
2734
6.37M
      }
2735
2736
      // optional int32 order = 12 [default = 0];
2737
6.37M
      case 12: {
2738
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2739
6.37M
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
2740
6.37M
          set_has_order();
2741
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2742
6.37M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2743
6.37M
                 input, &order_)));
2744
18.4E
        } else {
2745
18.4E
          goto handle_unusual;
2746
18.4E
        }
2747
6.37M
        break;
2748
6.37M
      }
2749
2750
      // repeated .yb.QLJsonOperationPB OBSOLETE_json_operations = 13;
2751
0
      case 13: {
2752
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2753
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
2754
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_obsolete_json_operations()));
2755
0
        } else {
2756
0
          goto handle_unusual;
2757
0
        }
2758
0
        break;
2759
0
      }
2760
2761
      // optional uint32 pg_type_oid = 14 [default = 0];
2762
6.37M
      case 14: {
2763
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2764
6.37M
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
2765
6.37M
          set_has_pg_type_oid();
2766
6.37M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2767
6.37M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2768
6.37M
                 input, &pg_type_oid_)));
2769
18.4E
        } else {
2770
18.4E
          goto handle_unusual;
2771
18.4E
        }
2772
6.37M
        break;
2773
6.37M
      }
2774
2775
0
      default: {
2776
6.37M
      handle_unusual:
2777
6.37M
        if (tag == 0) {
2778
6.37M
          goto success;
2779
6.37M
        }
2780
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2781
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2782
18.4E
        break;
2783
18.4E
      }
2784
63.9M
    }
2785
63.9M
  }
2786
6.37M
success:
2787
  // @@protoc_insertion_point(parse_success:yb.ColumnSchemaPB)
2788
6.37M
  return true;
2789
0
failure:
2790
  // @@protoc_insertion_point(parse_failure:yb.ColumnSchemaPB)
2791
0
  return false;
2792
6.37M
#undef DO_
2793
6.37M
}
2794
2795
void ColumnSchemaPB::SerializeWithCachedSizes(
2796
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2797
  // @@protoc_insertion_point(serialize_start:yb.ColumnSchemaPB)
2798
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2799
0
  (void) cached_has_bits;
2800
2801
0
  cached_has_bits = _has_bits_[0];
2802
  // optional uint32 id = 1;
2803
0
  if (cached_has_bits & 0x00000004u) {
2804
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->id(), output);
2805
0
  }
2806
2807
  // required string name = 2;
2808
0
  if (cached_has_bits & 0x00000001u) {
2809
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2810
0
      this->name().data(), static_cast<int>(this->name().length()),
2811
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2812
0
      "yb.ColumnSchemaPB.name");
2813
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2814
0
      2, this->name(), output);
2815
0
  }
2816
2817
  // required .yb.QLTypePB type = 3;
2818
0
  if (cached_has_bits & 0x00000002u) {
2819
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2820
0
      3, *this->type_, output);
2821
0
  }
2822
2823
  // optional bool is_key = 4 [default = false];
2824
0
  if (cached_has_bits & 0x00000008u) {
2825
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_key(), output);
2826
0
  }
2827
2828
  // optional bool is_hash_key = 5 [default = false];
2829
0
  if (cached_has_bits & 0x00000010u) {
2830
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_hash_key(), output);
2831
0
  }
2832
2833
  // optional bool is_nullable = 6 [default = false];
2834
0
  if (cached_has_bits & 0x00000020u) {
2835
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->is_nullable(), output);
2836
0
  }
2837
2838
  // optional bool is_static = 7 [default = false];
2839
0
  if (cached_has_bits & 0x00000040u) {
2840
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_static(), output);
2841
0
  }
2842
2843
  // optional bool is_counter = 8 [default = false];
2844
0
  if (cached_has_bits & 0x00000080u) {
2845
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->is_counter(), output);
2846
0
  }
2847
2848
  // optional uint32 sorting_type = 9 [default = 0];
2849
0
  if (cached_has_bits & 0x00000100u) {
2850
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->sorting_type(), output);
2851
0
  }
2852
2853
  // optional int32 order = 12 [default = 0];
2854
0
  if (cached_has_bits & 0x00000200u) {
2855
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->order(), output);
2856
0
  }
2857
2858
  // repeated .yb.QLJsonOperationPB OBSOLETE_json_operations = 13;
2859
0
  for (unsigned int i = 0,
2860
0
      n = static_cast<unsigned int>(this->obsolete_json_operations_size()); i < n; i++) {
2861
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2862
0
      13, this->obsolete_json_operations(static_cast<int>(i)), output);
2863
0
  }
2864
2865
  // optional uint32 pg_type_oid = 14 [default = 0];
2866
0
  if (cached_has_bits & 0x00000400u) {
2867
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->pg_type_oid(), output);
2868
0
  }
2869
2870
0
  if (_internal_metadata_.have_unknown_fields()) {
2871
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2872
0
        _internal_metadata_.unknown_fields(), output);
2873
0
  }
2874
  // @@protoc_insertion_point(serialize_end:yb.ColumnSchemaPB)
2875
0
}
2876
2877
::google::protobuf::uint8* ColumnSchemaPB::InternalSerializeWithCachedSizesToArray(
2878
960M
    bool deterministic, ::google::protobuf::uint8* target) const {
2879
960M
  (void)deterministic; // Unused
2880
  // @@protoc_insertion_point(serialize_to_array_start:yb.ColumnSchemaPB)
2881
960M
  ::google::protobuf::uint32 cached_has_bits = 0;
2882
960M
  (void) cached_has_bits;
2883
2884
960M
  cached_has_bits = _has_bits_[0];
2885
  // optional uint32 id = 1;
2886
960M
  if (cached_has_bits & 0x00000004u) {
2887
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->id(), target);
2888
960M
  }
2889
2890
  // required string name = 2;
2891
960M
  if (cached_has_bits & 0x00000001u) {
2892
960M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2893
960M
      this->name().data(), static_cast<int>(this->name().length()),
2894
960M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2895
960M
      "yb.ColumnSchemaPB.name");
2896
960M
    target =
2897
960M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2898
960M
        2, this->name(), target);
2899
960M
  }
2900
2901
  // required .yb.QLTypePB type = 3;
2902
960M
  if (cached_has_bits & 0x00000002u) {
2903
960M
    target = ::google::protobuf::internal::WireFormatLite::
2904
960M
      InternalWriteMessageToArray(
2905
960M
        3, *this->type_, deterministic, target);
2906
960M
  }
2907
2908
  // optional bool is_key = 4 [default = false];
2909
960M
  if (cached_has_bits & 0x00000008u) {
2910
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_key(), target);
2911
960M
  }
2912
2913
  // optional bool is_hash_key = 5 [default = false];
2914
960M
  if (cached_has_bits & 0x00000010u) {
2915
790k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_hash_key(), target);
2916
790k
  }
2917
2918
  // optional bool is_nullable = 6 [default = false];
2919
960M
  if (cached_has_bits & 0x00000020u) {
2920
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->is_nullable(), target);
2921
960M
  }
2922
2923
  // optional bool is_static = 7 [default = false];
2924
960M
  if (cached_has_bits & 0x00000040u) {
2925
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_static(), target);
2926
960M
  }
2927
2928
  // optional bool is_counter = 8 [default = false];
2929
960M
  if (cached_has_bits & 0x00000080u) {
2930
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->is_counter(), target);
2931
960M
  }
2932
2933
  // optional uint32 sorting_type = 9 [default = 0];
2934
960M
  if (cached_has_bits & 0x00000100u) {
2935
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->sorting_type(), target);
2936
960M
  }
2937
2938
  // optional int32 order = 12 [default = 0];
2939
960M
  if (cached_has_bits & 0x00000200u) {
2940
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->order(), target);
2941
960M
  }
2942
2943
  // repeated .yb.QLJsonOperationPB OBSOLETE_json_operations = 13;
2944
960M
  for (unsigned int i = 0,
2945
960M
      n = static_cast<unsigned int>(this->obsolete_json_operations_size()); i < n; i++) {
2946
0
    target = ::google::protobuf::internal::WireFormatLite::
2947
0
      InternalWriteMessageToArray(
2948
0
        13, this->obsolete_json_operations(static_cast<int>(i)), deterministic, target);
2949
0
  }
2950
2951
  // optional uint32 pg_type_oid = 14 [default = 0];
2952
960M
  if (cached_has_bits & 0x00000400u) {
2953
960M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->pg_type_oid(), target);
2954
960M
  }
2955
2956
960M
  if (_internal_metadata_.have_unknown_fields()) {
2957
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2958
0
        _internal_metadata_.unknown_fields(), target);
2959
0
  }
2960
  // @@protoc_insertion_point(serialize_to_array_end:yb.ColumnSchemaPB)
2961
960M
  return target;
2962
960M
}
2963
2964
0
size_t ColumnSchemaPB::RequiredFieldsByteSizeFallback() const {
2965
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.ColumnSchemaPB)
2966
0
  size_t total_size = 0;
2967
2968
0
  if (has_name()) {
2969
    // required string name = 2;
2970
0
    total_size += 1 +
2971
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
2972
0
        this->name());
2973
0
  }
2974
2975
0
  if (has_type()) {
2976
    // required .yb.QLTypePB type = 3;
2977
0
    total_size += 1 +
2978
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
2979
0
        *this->type_);
2980
0
  }
2981
2982
0
  return total_size;
2983
0
}
2984
970M
size_t ColumnSchemaPB::ByteSizeLong() const {
2985
// @@protoc_insertion_point(message_byte_size_start:yb.ColumnSchemaPB)
2986
970M
  size_t total_size = 0;
2987
2988
970M
  if (_internal_metadata_.have_unknown_fields()) {
2989
0
    total_size +=
2990
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2991
0
        _internal_metadata_.unknown_fields());
2992
0
  }
2993
970M
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
2994
    // required string name = 2;
2995
970M
    total_size += 1 +
2996
970M
      ::google::protobuf::internal::WireFormatLite::StringSize(
2997
970M
        this->name());
2998
2999
    // required .yb.QLTypePB type = 3;
3000
970M
    total_size += 1 +
3001
970M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3002
970M
        *this->type_);
3003
3004
10.0k
  } else {
3005
10.0k
    total_size += RequiredFieldsByteSizeFallback();
3006
10.0k
  }
3007
  // repeated .yb.QLJsonOperationPB OBSOLETE_json_operations = 13;
3008
970M
  {
3009
970M
    unsigned int count = static_cast<unsigned int>(this->obsolete_json_operations_size());
3010
970M
    total_size += 1UL * count;
3011
970M
    for (unsigned int i = 0; i < count; i++) {
3012
0
      total_size +=
3013
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3014
0
          this->obsolete_json_operations(static_cast<int>(i)));
3015
0
    }
3016
970M
  }
3017
3018
970M
  if (_has_bits_[0 / 32] & 252u) {
3019
    // optional uint32 id = 1;
3020
970M
    if (has_id()) {
3021
970M
      total_size += 1 +
3022
970M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3023
970M
          this->id());
3024
970M
    }
3025
3026
    // optional bool is_key = 4 [default = false];
3027
970M
    if (has_is_key()) {
3028
970M
      total_size += 1 + 1;
3029
970M
    }
3030
3031
    // optional bool is_hash_key = 5 [default = false];
3032
970M
    if (has_is_hash_key()) {
3033
1.22M
      total_size += 1 + 1;
3034
1.22M
    }
3035
3036
    // optional bool is_nullable = 6 [default = false];
3037
970M
    if (has_is_nullable()) {
3038
970M
      total_size += 1 + 1;
3039
970M
    }
3040
3041
    // optional bool is_static = 7 [default = false];
3042
970M
    if (has_is_static()) {
3043
970M
      total_size += 1 + 1;
3044
970M
    }
3045
3046
    // optional bool is_counter = 8 [default = false];
3047
970M
    if (has_is_counter()) {
3048
970M
      total_size += 1 + 1;
3049
970M
    }
3050
3051
970M
  }
3052
970M
  if (_has_bits_[8 / 32] & 1792u) {
3053
    // optional uint32 sorting_type = 9 [default = 0];
3054
970M
    if (has_sorting_type()) {
3055
970M
      total_size += 1 +
3056
970M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3057
970M
          this->sorting_type());
3058
970M
    }
3059
3060
    // optional int32 order = 12 [default = 0];
3061
970M
    if (has_order()) {
3062
970M
      total_size += 1 +
3063
970M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3064
970M
          this->order());
3065
970M
    }
3066
3067
    // optional uint32 pg_type_oid = 14 [default = 0];
3068
970M
    if (has_pg_type_oid()) {
3069
970M
      total_size += 1 +
3070
970M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3071
970M
          this->pg_type_oid());
3072
970M
    }
3073
3074
970M
  }
3075
970M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3076
970M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3077
970M
  _cached_size_ = cached_size;
3078
970M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3079
970M
  return total_size;
3080
970M
}
3081
3082
0
void ColumnSchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
3083
// @@protoc_insertion_point(generalized_merge_from_start:yb.ColumnSchemaPB)
3084
0
  GOOGLE_DCHECK_NE(&from, this);
3085
0
  const ColumnSchemaPB* source =
3086
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ColumnSchemaPB>(
3087
0
          &from);
3088
0
  if (source == NULL) {
3089
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ColumnSchemaPB)
3090
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3091
0
  } else {
3092
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ColumnSchemaPB)
3093
0
    MergeFrom(*source);
3094
0
  }
3095
0
}
3096
3097
13.9M
void ColumnSchemaPB::MergeFrom(const ColumnSchemaPB& from) {
3098
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ColumnSchemaPB)
3099
13.9M
  GOOGLE_DCHECK_NE(&from, this);
3100
13.9M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3101
13.9M
  ::google::protobuf::uint32 cached_has_bits = 0;
3102
13.9M
  (void) cached_has_bits;
3103
3104
13.9M
  obsolete_json_operations_.MergeFrom(from.obsolete_json_operations_);
3105
13.9M
  cached_has_bits = from._has_bits_[0];
3106
13.9M
  if (cached_has_bits & 255u) {
3107
13.9M
    if (cached_has_bits & 0x00000001u) {
3108
13.9M
      set_has_name();
3109
13.9M
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3110
13.9M
    }
3111
13.9M
    if (cached_has_bits & 0x00000002u) {
3112
13.9M
      mutable_type()->::yb::QLTypePB::MergeFrom(from.type());
3113
13.9M
    }
3114
13.9M
    if (cached_has_bits & 0x00000004u) {
3115
13.9M
      id_ = from.id_;
3116
13.9M
    }
3117
13.9M
    if (cached_has_bits & 0x00000008u) {
3118
13.9M
      is_key_ = from.is_key_;
3119
13.9M
    }
3120
13.9M
    if (cached_has_bits & 0x00000010u) {
3121
3.02M
      is_hash_key_ = from.is_hash_key_;
3122
3.02M
    }
3123
13.9M
    if (cached_has_bits & 0x00000020u) {
3124
13.9M
      is_nullable_ = from.is_nullable_;
3125
13.9M
    }
3126
13.9M
    if (cached_has_bits & 0x00000040u) {
3127
13.9M
      is_static_ = from.is_static_;
3128
13.9M
    }
3129
13.9M
    if (cached_has_bits & 0x00000080u) {
3130
13.9M
      is_counter_ = from.is_counter_;
3131
13.9M
    }
3132
13.9M
    _has_bits_[0] |= cached_has_bits;
3133
13.9M
  }
3134
13.9M
  if (cached_has_bits & 1792u) {
3135
13.9M
    if (cached_has_bits & 0x00000100u) {
3136
13.9M
      sorting_type_ = from.sorting_type_;
3137
13.9M
    }
3138
13.9M
    if (cached_has_bits & 0x00000200u) {
3139
13.9M
      order_ = from.order_;
3140
13.9M
    }
3141
13.9M
    if (cached_has_bits & 0x00000400u) {
3142
13.9M
      pg_type_oid_ = from.pg_type_oid_;
3143
13.9M
    }
3144
13.9M
    _has_bits_[0] |= cached_has_bits;
3145
13.9M
  }
3146
13.9M
}
3147
3148
0
void ColumnSchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
3149
// @@protoc_insertion_point(generalized_copy_from_start:yb.ColumnSchemaPB)
3150
0
  if (&from == this) return;
3151
0
  Clear();
3152
0
  MergeFrom(from);
3153
0
}
3154
3155
0
void ColumnSchemaPB::CopyFrom(const ColumnSchemaPB& from) {
3156
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ColumnSchemaPB)
3157
0
  if (&from == this) return;
3158
0
  Clear();
3159
0
  MergeFrom(from);
3160
0
}
3161
3162
1.02G
bool ColumnSchemaPB::IsInitialized() const {
3163
1.02G
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
3164
1.02G
  if (!::google::protobuf::internal::AllAreInitialized(this->obsolete_json_operations())) return false;
3165
1.02G
  return true;
3166
1.02G
}
3167
3168
0
void ColumnSchemaPB::Swap(ColumnSchemaPB* other) {
3169
0
  if (other == this) return;
3170
0
  InternalSwap(other);
3171
0
}
3172
0
void ColumnSchemaPB::InternalSwap(ColumnSchemaPB* other) {
3173
0
  using std::swap;
3174
0
  obsolete_json_operations_.InternalSwap(&other->obsolete_json_operations_);
3175
0
  name_.Swap(&other->name_);
3176
0
  swap(type_, other->type_);
3177
0
  swap(id_, other->id_);
3178
0
  swap(is_key_, other->is_key_);
3179
0
  swap(is_hash_key_, other->is_hash_key_);
3180
0
  swap(is_nullable_, other->is_nullable_);
3181
0
  swap(is_static_, other->is_static_);
3182
0
  swap(is_counter_, other->is_counter_);
3183
0
  swap(sorting_type_, other->sorting_type_);
3184
0
  swap(order_, other->order_);
3185
0
  swap(pg_type_oid_, other->pg_type_oid_);
3186
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3187
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3188
0
  swap(_cached_size_, other->_cached_size_);
3189
0
}
3190
3191
12.5M
::google::protobuf::Metadata ColumnSchemaPB::GetMetadata() const {
3192
12.5M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
3193
12.5M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
3194
12.5M
}
3195
3196
3197
// ===================================================================
3198
3199
17.1k
void ColocatedTableIdentifierPB::InitAsDefaultInstance() {
3200
17.1k
  ::yb::_ColocatedTableIdentifierPB_default_instance_.pgtable_id_ = 0u;
3201
17.1k
  ::yb::_ColocatedTableIdentifierPB_default_instance_.cotable_id_.UnsafeSetDefault(
3202
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
3203
17.1k
}
3204
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3205
const int ColocatedTableIdentifierPB::kPgtableIdFieldNumber;
3206
const int ColocatedTableIdentifierPB::kCotableIdFieldNumber;
3207
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3208
3209
ColocatedTableIdentifierPB::ColocatedTableIdentifierPB()
3210
145M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3211
145M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3212
145M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColocatedTableIdentifierPB();
3213
145M
  }
3214
145M
  SharedCtor();
3215
  // @@protoc_insertion_point(constructor:yb.ColocatedTableIdentifierPB)
3216
145M
}
3217
ColocatedTableIdentifierPB::ColocatedTableIdentifierPB(const ColocatedTableIdentifierPB& from)
3218
  : ::google::protobuf::Message(),
3219
      _internal_metadata_(NULL),
3220
      _has_bits_(from._has_bits_),
3221
499k
      _cached_size_(0) {
3222
499k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3223
499k
  clear_has_value();
3224
499k
  switch (from.value_case()) {
3225
15
    case kPgtableId: {
3226
15
      set_pgtable_id(from.pgtable_id());
3227
15
      break;
3228
0
    }
3229
0
    case kCotableId: {
3230
0
      set_cotable_id(from.cotable_id());
3231
0
      break;
3232
0
    }
3233
499k
    case VALUE_NOT_SET: {
3234
499k
      break;
3235
0
    }
3236
499k
  }
3237
  // @@protoc_insertion_point(copy_constructor:yb.ColocatedTableIdentifierPB)
3238
499k
}
3239
3240
145M
void ColocatedTableIdentifierPB::SharedCtor() {
3241
145M
  _cached_size_ = 0;
3242
145M
  clear_has_value();
3243
145M
}
3244
3245
145M
ColocatedTableIdentifierPB::~ColocatedTableIdentifierPB() {
3246
  // @@protoc_insertion_point(destructor:yb.ColocatedTableIdentifierPB)
3247
145M
  SharedDtor();
3248
145M
}
3249
3250
145M
void ColocatedTableIdentifierPB::SharedDtor() {
3251
145M
  if (has_value()) {
3252
139M
    clear_value();
3253
139M
  }
3254
145M
}
3255
3256
0
void ColocatedTableIdentifierPB::SetCachedSize(int size) const {
3257
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3258
0
  _cached_size_ = size;
3259
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3260
0
}
3261
0
const ::google::protobuf::Descriptor* ColocatedTableIdentifierPB::descriptor() {
3262
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
3263
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3264
0
}
3265
3266
0
const ColocatedTableIdentifierPB& ColocatedTableIdentifierPB::default_instance() {
3267
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsColocatedTableIdentifierPB();
3268
0
  return *internal_default_instance();
3269
0
}
3270
3271
0
ColocatedTableIdentifierPB* ColocatedTableIdentifierPB::New(::google::protobuf::Arena* arena) const {
3272
0
  ColocatedTableIdentifierPB* n = new ColocatedTableIdentifierPB;
3273
0
  if (arena != NULL) {
3274
0
    arena->Own(n);
3275
0
  }
3276
0
  return n;
3277
0
}
3278
3279
279M
void ColocatedTableIdentifierPB::clear_value() {
3280
// @@protoc_insertion_point(one_of_clear_start:yb.ColocatedTableIdentifierPB)
3281
279M
  switch (value_case()) {
3282
1.38k
    case kPgtableId: {
3283
      // No need to clear
3284
1.38k
      break;
3285
0
    }
3286
139M
    case kCotableId: {
3287
139M
      value_.cotable_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3288
139M
      break;
3289
0
    }
3290
139M
    case VALUE_NOT_SET: {
3291
139M
      break;
3292
279M
    }
3293
279M
  }
3294
279M
  _oneof_case_[0] = VALUE_NOT_SET;
3295
279M
}
3296
3297
3298
199k
void ColocatedTableIdentifierPB::Clear() {
3299
// @@protoc_insertion_point(message_clear_start:yb.ColocatedTableIdentifierPB)
3300
199k
  ::google::protobuf::uint32 cached_has_bits = 0;
3301
  // Prevent compiler warnings about cached_has_bits being unused
3302
199k
  (void) cached_has_bits;
3303
3304
199k
  clear_value();
3305
199k
  _has_bits_.Clear();
3306
199k
  _internal_metadata_.Clear();
3307
199k
}
3308
3309
bool ColocatedTableIdentifierPB::MergePartialFromCodedStream(
3310
1.02M
    ::google::protobuf::io::CodedInputStream* input) {
3311
309
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3312
1.02M
  ::google::protobuf::uint32 tag;
3313
  // @@protoc_insertion_point(parse_start:yb.ColocatedTableIdentifierPB)
3314
1.02M
  for (;;) {
3315
1.02M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3316
1.02M
    tag = p.first;
3317
1.02M
    if (!p.second) goto handle_unusual;
3318
563
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3319
      // optional uint32 pgtable_id = 1;
3320
29
      case 1: {
3321
29
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3322
29
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3323
29
          clear_value();
3324
29
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3325
29
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3326
29
                 input, &value_.pgtable_id_)));
3327
29
          set_has_pgtable_id();
3328
0
        } else {
3329
0
          goto handle_unusual;
3330
0
        }
3331
29
        break;
3332
29
      }
3333
3334
      // optional bytes cotable_id = 2;
3335
0
      case 2: {
3336
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3337
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3338
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3339
0
                input, this->mutable_cotable_id()));
3340
0
        } else {
3341
0
          goto handle_unusual;
3342
0
        }
3343
0
        break;
3344
1.02M
      }
3345
3346
0
      default: {
3347
1.02M
      handle_unusual:
3348
1.02M
        if (tag == 0) {
3349
1.02M
          goto success;
3350
1.02M
        }
3351
140
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3352
140
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3353
140
        break;
3354
140
      }
3355
563
    }
3356
563
  }
3357
1.02M
success:
3358
  // @@protoc_insertion_point(parse_success:yb.ColocatedTableIdentifierPB)
3359
1.02M
  return true;
3360
0
failure:
3361
  // @@protoc_insertion_point(parse_failure:yb.ColocatedTableIdentifierPB)
3362
0
  return false;
3363
1.02M
#undef DO_
3364
1.02M
}
3365
3366
void ColocatedTableIdentifierPB::SerializeWithCachedSizes(
3367
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3368
  // @@protoc_insertion_point(serialize_start:yb.ColocatedTableIdentifierPB)
3369
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3370
0
  (void) cached_has_bits;
3371
3372
0
  switch (value_case()) {
3373
0
    case kPgtableId:
3374
0
      ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->pgtable_id(), output);
3375
0
      break;
3376
0
    case kCotableId:
3377
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3378
0
        2, this->cotable_id(), output);
3379
0
      break;
3380
0
    default: ;
3381
0
  }
3382
0
  if (_internal_metadata_.have_unknown_fields()) {
3383
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3384
0
        _internal_metadata_.unknown_fields(), output);
3385
0
  }
3386
  // @@protoc_insertion_point(serialize_end:yb.ColocatedTableIdentifierPB)
3387
0
}
3388
3389
::google::protobuf::uint8* ColocatedTableIdentifierPB::InternalSerializeWithCachedSizesToArray(
3390
141M
    bool deterministic, ::google::protobuf::uint8* target) const {
3391
141M
  (void)deterministic; // Unused
3392
  // @@protoc_insertion_point(serialize_to_array_start:yb.ColocatedTableIdentifierPB)
3393
141M
  ::google::protobuf::uint32 cached_has_bits = 0;
3394
141M
  (void) cached_has_bits;
3395
3396
141M
  switch (value_case()) {
3397
1.36k
    case kPgtableId:
3398
1.36k
      target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->pgtable_id(), target);
3399
1.36k
      break;
3400
139M
    case kCotableId:
3401
139M
      target =
3402
139M
        ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3403
139M
          2, this->cotable_id(), target);
3404
139M
      break;
3405
2.11M
    default: ;
3406
141M
  }
3407
141M
  if (_internal_metadata_.have_unknown_fields()) {
3408
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3409
0
        _internal_metadata_.unknown_fields(), target);
3410
0
  }
3411
  // @@protoc_insertion_point(serialize_to_array_end:yb.ColocatedTableIdentifierPB)
3412
141M
  return target;
3413
141M
}
3414
3415
143M
size_t ColocatedTableIdentifierPB::ByteSizeLong() const {
3416
// @@protoc_insertion_point(message_byte_size_start:yb.ColocatedTableIdentifierPB)
3417
143M
  size_t total_size = 0;
3418
3419
143M
  if (_internal_metadata_.have_unknown_fields()) {
3420
0
    total_size +=
3421
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3422
0
        _internal_metadata_.unknown_fields());
3423
0
  }
3424
143M
  switch (value_case()) {
3425
    // optional uint32 pgtable_id = 1;
3426
1.40k
    case kPgtableId: {
3427
1.40k
      total_size += 1 +
3428
1.40k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3429
1.40k
          this->pgtable_id());
3430
1.40k
      break;
3431
0
    }
3432
    // optional bytes cotable_id = 2;
3433
139M
    case kCotableId: {
3434
139M
      total_size += 1 +
3435
139M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
3436
139M
          this->cotable_id());
3437
139M
      break;
3438
0
    }
3439
3.66M
    case VALUE_NOT_SET: {
3440
3.66M
      break;
3441
143M
    }
3442
143M
  }
3443
143M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3444
143M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3445
143M
  _cached_size_ = cached_size;
3446
143M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3447
143M
  return total_size;
3448
143M
}
3449
3450
0
void ColocatedTableIdentifierPB::MergeFrom(const ::google::protobuf::Message& from) {
3451
// @@protoc_insertion_point(generalized_merge_from_start:yb.ColocatedTableIdentifierPB)
3452
0
  GOOGLE_DCHECK_NE(&from, this);
3453
0
  const ColocatedTableIdentifierPB* source =
3454
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ColocatedTableIdentifierPB>(
3455
0
          &from);
3456
0
  if (source == NULL) {
3457
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ColocatedTableIdentifierPB)
3458
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3459
0
  } else {
3460
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ColocatedTableIdentifierPB)
3461
0
    MergeFrom(*source);
3462
0
  }
3463
0
}
3464
3465
3.51M
void ColocatedTableIdentifierPB::MergeFrom(const ColocatedTableIdentifierPB& from) {
3466
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ColocatedTableIdentifierPB)
3467
3.51M
  GOOGLE_DCHECK_NE(&from, this);
3468
3.51M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3469
3.51M
  ::google::protobuf::uint32 cached_has_bits = 0;
3470
3.51M
  (void) cached_has_bits;
3471
3472
3.51M
  switch (from.value_case()) {
3473
34
    case kPgtableId: {
3474
34
      set_pgtable_id(from.pgtable_id());
3475
34
      break;
3476
0
    }
3477
0
    case kCotableId: {
3478
0
      set_cotable_id(from.cotable_id());
3479
0
      break;
3480
0
    }
3481
3.51M
    case VALUE_NOT_SET: {
3482
3.51M
      break;
3483
0
    }
3484
3.51M
  }
3485
3.51M
}
3486
3487
0
void ColocatedTableIdentifierPB::CopyFrom(const ::google::protobuf::Message& from) {
3488
// @@protoc_insertion_point(generalized_copy_from_start:yb.ColocatedTableIdentifierPB)
3489
0
  if (&from == this) return;
3490
0
  Clear();
3491
0
  MergeFrom(from);
3492
0
}
3493
3494
0
void ColocatedTableIdentifierPB::CopyFrom(const ColocatedTableIdentifierPB& from) {
3495
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ColocatedTableIdentifierPB)
3496
0
  if (&from == this) return;
3497
0
  Clear();
3498
0
  MergeFrom(from);
3499
0
}
3500
3501
0
bool ColocatedTableIdentifierPB::IsInitialized() const {
3502
0
  return true;
3503
0
}
3504
3505
0
void ColocatedTableIdentifierPB::Swap(ColocatedTableIdentifierPB* other) {
3506
0
  if (other == this) return;
3507
0
  InternalSwap(other);
3508
0
}
3509
0
void ColocatedTableIdentifierPB::InternalSwap(ColocatedTableIdentifierPB* other) {
3510
0
  using std::swap;
3511
0
  swap(value_, other->value_);
3512
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
3513
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3514
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3515
0
  swap(_cached_size_, other->_cached_size_);
3516
0
}
3517
3518
1.70M
::google::protobuf::Metadata ColocatedTableIdentifierPB::GetMetadata() const {
3519
1.70M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
3520
1.70M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
3521
1.70M
}
3522
3523
3524
// ===================================================================
3525
3526
17.1k
void TablePropertiesPB::InitAsDefaultInstance() {
3527
17.1k
}
3528
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3529
const int TablePropertiesPB::kDefaultTimeToLiveFieldNumber;
3530
const int TablePropertiesPB::kContainCountersFieldNumber;
3531
const int TablePropertiesPB::kIsTransactionalFieldNumber;
3532
const int TablePropertiesPB::kCopartitionTableIdFieldNumber;
3533
const int TablePropertiesPB::kConsistencyLevelFieldNumber;
3534
const int TablePropertiesPB::kUseMangledColumnNameFieldNumber;
3535
const int TablePropertiesPB::kNumTabletsFieldNumber;
3536
const int TablePropertiesPB::kIsYsqlCatalogTableFieldNumber;
3537
const int TablePropertiesPB::kRetainDeleteMarkersFieldNumber;
3538
const int TablePropertiesPB::kBackfillingTimestampFieldNumber;
3539
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3540
3541
TablePropertiesPB::TablePropertiesPB()
3542
145M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3543
145M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3544
145M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTablePropertiesPB();
3545
145M
  }
3546
145M
  SharedCtor();
3547
  // @@protoc_insertion_point(constructor:yb.TablePropertiesPB)
3548
145M
}
3549
TablePropertiesPB::TablePropertiesPB(const TablePropertiesPB& from)
3550
  : ::google::protobuf::Message(),
3551
      _internal_metadata_(NULL),
3552
      _has_bits_(from._has_bits_),
3553
499k
      _cached_size_(0) {
3554
499k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3555
499k
  copartition_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3556
499k
  if (from.has_copartition_table_id()) {
3557
0
    copartition_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.copartition_table_id_);
3558
0
  }
3559
499k
  ::memcpy(&default_time_to_live_, &from.default_time_to_live_,
3560
499k
    static_cast<size_t>(reinterpret_cast<char*>(&consistency_level_) -
3561
499k
    reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(consistency_level_));
3562
  // @@protoc_insertion_point(copy_constructor:yb.TablePropertiesPB)
3563
499k
}
3564
3565
145M
void TablePropertiesPB::SharedCtor() {
3566
145M
  _cached_size_ = 0;
3567
145M
  copartition_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3568
145M
  ::memset(&default_time_to_live_, 0, static_cast<size_t>(
3569
145M
      reinterpret_cast<char*>(&retain_delete_markers_) -
3570
145M
      reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(retain_delete_markers_));
3571
145M
  consistency_level_ = 1;
3572
145M
}
3573
3574
145M
TablePropertiesPB::~TablePropertiesPB() {
3575
  // @@protoc_insertion_point(destructor:yb.TablePropertiesPB)
3576
145M
  SharedDtor();
3577
145M
}
3578
3579
145M
void TablePropertiesPB::SharedDtor() {
3580
145M
  copartition_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3581
145M
}
3582
3583
0
void TablePropertiesPB::SetCachedSize(int size) const {
3584
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3585
0
  _cached_size_ = size;
3586
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3587
0
}
3588
0
const ::google::protobuf::Descriptor* TablePropertiesPB::descriptor() {
3589
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
3590
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3591
0
}
3592
3593
0
const TablePropertiesPB& TablePropertiesPB::default_instance() {
3594
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTablePropertiesPB();
3595
0
  return *internal_default_instance();
3596
0
}
3597
3598
0
TablePropertiesPB* TablePropertiesPB::New(::google::protobuf::Arena* arena) const {
3599
0
  TablePropertiesPB* n = new TablePropertiesPB;
3600
0
  if (arena != NULL) {
3601
0
    arena->Own(n);
3602
0
  }
3603
0
  return n;
3604
0
}
3605
3606
199k
void TablePropertiesPB::Clear() {
3607
// @@protoc_insertion_point(message_clear_start:yb.TablePropertiesPB)
3608
199k
  ::google::protobuf::uint32 cached_has_bits = 0;
3609
  // Prevent compiler warnings about cached_has_bits being unused
3610
199k
  (void) cached_has_bits;
3611
3612
199k
  cached_has_bits = _has_bits_[0];
3613
199k
  if (cached_has_bits & 0x00000001u) {
3614
0
    GOOGLE_DCHECK(!copartition_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3615
0
    (*copartition_table_id_.UnsafeRawStringPointer())->clear();
3616
0
  }
3617
199k
  if (cached_has_bits & 254u) {
3618
199k
    ::memset(&default_time_to_live_, 0, static_cast<size_t>(
3619
199k
        reinterpret_cast<char*>(&backfilling_timestamp_) -
3620
199k
        reinterpret_cast<char*>(&default_time_to_live_)) + sizeof(backfilling_timestamp_));
3621
199k
  }
3622
199k
  if (cached_has_bits & 768u) {
3623
199k
    retain_delete_markers_ = false;
3624
199k
    consistency_level_ = 1;
3625
199k
  }
3626
199k
  _has_bits_.Clear();
3627
199k
  _internal_metadata_.Clear();
3628
199k
}
3629
3630
bool TablePropertiesPB::MergePartialFromCodedStream(
3631
1.02M
    ::google::protobuf::io::CodedInputStream* input) {
3632
6.16M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3633
1.02M
  ::google::protobuf::uint32 tag;
3634
  // @@protoc_insertion_point(parse_start:yb.TablePropertiesPB)
3635
7.18M
  for (;;) {
3636
7.18M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3637
7.18M
    tag = p.first;
3638
7.18M
    if (!p.second) goto handle_unusual;
3639
6.15M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3640
      // optional uint64 default_time_to_live = 1;
3641
4.13k
      case 1: {
3642
4.13k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3643
4.13k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3644
4.13k
          set_has_default_time_to_live();
3645
4.13k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3646
4.13k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3647
4.13k
                 input, &default_time_to_live_)));
3648
18.4E
        } else {
3649
18.4E
          goto handle_unusual;
3650
18.4E
        }
3651
4.13k
        break;
3652
4.13k
      }
3653
3654
      // optional bool contain_counters = 2;
3655
1.02M
      case 2: {
3656
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3657
1.02M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3658
1.02M
          set_has_contain_counters();
3659
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3660
1.02M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3661
1.02M
                 input, &contain_counters_)));
3662
18.4E
        } else {
3663
18.4E
          goto handle_unusual;
3664
18.4E
        }
3665
1.02M
        break;
3666
1.02M
      }
3667
3668
      // optional bool is_transactional = 3 [default = false];
3669
1.02M
      case 3: {
3670
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3671
1.02M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3672
1.02M
          set_has_is_transactional();
3673
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3674
1.02M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3675
1.02M
                 input, &is_transactional_)));
3676
18.4E
        } else {
3677
18.4E
          goto handle_unusual;
3678
18.4E
        }
3679
1.02M
        break;
3680
1.02M
      }
3681
3682
      // optional bytes copartition_table_id = 4;
3683
0
      case 4: {
3684
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3685
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3686
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3687
0
                input, this->mutable_copartition_table_id()));
3688
0
        } else {
3689
0
          goto handle_unusual;
3690
0
        }
3691
0
        break;
3692
0
      }
3693
3694
      // optional .yb.YBConsistencyLevel consistency_level = 5 [default = STRONG];
3695
1.02M
      case 5: {
3696
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3697
1.02M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
3698
1.02M
          int value;
3699
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3700
1.02M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3701
1.02M
                 input, &value)));
3702
1.02M
          if (::yb::YBConsistencyLevel_IsValid(value)) {
3703
1.02M
            set_consistency_level(static_cast< ::yb::YBConsistencyLevel >(value));
3704
870
          } else {
3705
870
            mutable_unknown_fields()->AddVarint(
3706
870
                5, static_cast< ::google::protobuf::uint64>(value));
3707
870
          }
3708
18.4E
        } else {
3709
18.4E
          goto handle_unusual;
3710
18.4E
        }
3711
1.02M
        break;
3712
1.02M
      }
3713
3714
      // optional bool use_mangled_column_name = 6 [default = false];
3715
1.02M
      case 6: {
3716
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3717
1.02M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
3718
1.02M
          set_has_use_mangled_column_name();
3719
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3720
1.02M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3721
1.02M
                 input, &use_mangled_column_name_)));
3722
18.4E
        } else {
3723
18.4E
          goto handle_unusual;
3724
18.4E
        }
3725
1.02M
        break;
3726
1.02M
      }
3727
3728
      // optional int32 num_tablets = 7 [default = 0];
3729
32.0k
      case 7: {
3730
32.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3731
32.0k
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
3732
32.0k
          set_has_num_tablets();
3733
32.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3734
32.0k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3735
32.0k
                 input, &num_tablets_)));
3736
18.4E
        } else {
3737
18.4E
          goto handle_unusual;
3738
18.4E
        }
3739
32.0k
        break;
3740
32.0k
      }
3741
3742
      // optional bool is_ysql_catalog_table = 8 [default = false];
3743
1.02M
      case 8: {
3744
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3745
1.02M
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
3746
1.02M
          set_has_is_ysql_catalog_table();
3747
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3748
1.02M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3749
1.02M
                 input, &is_ysql_catalog_table_)));
3750
18.4E
        } else {
3751
18.4E
          goto handle_unusual;
3752
18.4E
        }
3753
1.02M
        break;
3754
1.02M
      }
3755
3756
      // optional bool retain_delete_markers = 9 [default = false];
3757
1.02M
      case 9: {
3758
1.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3759
1.02M
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
3760
1.02M
          set_has_retain_delete_markers();
3761
1.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3762
1.02M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3763
1.02M
                 input, &retain_delete_markers_)));
3764
18.4E
        } else {
3765
18.4E
          goto handle_unusual;
3766
18.4E
        }
3767
1.02M
        break;
3768
1.02M
      }
3769
3770
      // optional uint64 backfilling_timestamp = 10;
3771
0
      case 10: {
3772
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3773
0
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
3774
0
          set_has_backfilling_timestamp();
3775
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3776
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
3777
0
                 input, &backfilling_timestamp_)));
3778
0
        } else {
3779
0
          goto handle_unusual;
3780
0
        }
3781
0
        break;
3782
1.02M
      }
3783
3784
0
      default: {
3785
1.02M
      handle_unusual:
3786
1.02M
        if (tag == 0) {
3787
1.02M
          goto success;
3788
1.02M
        }
3789
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3790
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3791
18.4E
        break;
3792
18.4E
      }
3793
6.15M
    }
3794
6.15M
  }
3795
1.02M
success:
3796
  // @@protoc_insertion_point(parse_success:yb.TablePropertiesPB)
3797
1.02M
  return true;
3798
0
failure:
3799
  // @@protoc_insertion_point(parse_failure:yb.TablePropertiesPB)
3800
0
  return false;
3801
1.02M
#undef DO_
3802
1.02M
}
3803
3804
void TablePropertiesPB::SerializeWithCachedSizes(
3805
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3806
  // @@protoc_insertion_point(serialize_start:yb.TablePropertiesPB)
3807
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3808
0
  (void) cached_has_bits;
3809
3810
0
  cached_has_bits = _has_bits_[0];
3811
  // optional uint64 default_time_to_live = 1;
3812
0
  if (cached_has_bits & 0x00000002u) {
3813
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->default_time_to_live(), output);
3814
0
  }
3815
3816
  // optional bool contain_counters = 2;
3817
0
  if (cached_has_bits & 0x00000004u) {
3818
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->contain_counters(), output);
3819
0
  }
3820
3821
  // optional bool is_transactional = 3 [default = false];
3822
0
  if (cached_has_bits & 0x00000008u) {
3823
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_transactional(), output);
3824
0
  }
3825
3826
  // optional bytes copartition_table_id = 4;
3827
0
  if (cached_has_bits & 0x00000001u) {
3828
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3829
0
      4, this->copartition_table_id(), output);
3830
0
  }
3831
3832
  // optional .yb.YBConsistencyLevel consistency_level = 5 [default = STRONG];
3833
0
  if (cached_has_bits & 0x00000200u) {
3834
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3835
0
      5, this->consistency_level(), output);
3836
0
  }
3837
3838
  // optional bool use_mangled_column_name = 6 [default = false];
3839
0
  if (cached_has_bits & 0x00000010u) {
3840
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->use_mangled_column_name(), output);
3841
0
  }
3842
3843
  // optional int32 num_tablets = 7 [default = 0];
3844
0
  if (cached_has_bits & 0x00000040u) {
3845
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->num_tablets(), output);
3846
0
  }
3847
3848
  // optional bool is_ysql_catalog_table = 8 [default = false];
3849
0
  if (cached_has_bits & 0x00000020u) {
3850
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->is_ysql_catalog_table(), output);
3851
0
  }
3852
3853
  // optional bool retain_delete_markers = 9 [default = false];
3854
0
  if (cached_has_bits & 0x00000100u) {
3855
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->retain_delete_markers(), output);
3856
0
  }
3857
3858
  // optional uint64 backfilling_timestamp = 10;
3859
0
  if (cached_has_bits & 0x00000080u) {
3860
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(10, this->backfilling_timestamp(), output);
3861
0
  }
3862
3863
0
  if (_internal_metadata_.have_unknown_fields()) {
3864
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3865
0
        _internal_metadata_.unknown_fields(), output);
3866
0
  }
3867
  // @@protoc_insertion_point(serialize_end:yb.TablePropertiesPB)
3868
0
}
3869
3870
::google::protobuf::uint8* TablePropertiesPB::InternalSerializeWithCachedSizesToArray(
3871
141M
    bool deterministic, ::google::protobuf::uint8* target) const {
3872
141M
  (void)deterministic; // Unused
3873
  // @@protoc_insertion_point(serialize_to_array_start:yb.TablePropertiesPB)
3874
141M
  ::google::protobuf::uint32 cached_has_bits = 0;
3875
141M
  (void) cached_has_bits;
3876
3877
141M
  cached_has_bits = _has_bits_[0];
3878
  // optional uint64 default_time_to_live = 1;
3879
141M
  if (cached_has_bits & 0x00000002u) {
3880
14.3k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->default_time_to_live(), target);
3881
14.3k
  }
3882
3883
  // optional bool contain_counters = 2;
3884
141M
  if (cached_has_bits & 0x00000004u) {
3885
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->contain_counters(), target);
3886
141M
  }
3887
3888
  // optional bool is_transactional = 3 [default = false];
3889
141M
  if (cached_has_bits & 0x00000008u) {
3890
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_transactional(), target);
3891
141M
  }
3892
3893
  // optional bytes copartition_table_id = 4;
3894
141M
  if (cached_has_bits & 0x00000001u) {
3895
0
    target =
3896
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3897
0
        4, this->copartition_table_id(), target);
3898
0
  }
3899
3900
  // optional .yb.YBConsistencyLevel consistency_level = 5 [default = STRONG];
3901
141M
  if (cached_has_bits & 0x00000200u) {
3902
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3903
141M
      5, this->consistency_level(), target);
3904
141M
  }
3905
3906
  // optional bool use_mangled_column_name = 6 [default = false];
3907
141M
  if (cached_has_bits & 0x00000010u) {
3908
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->use_mangled_column_name(), target);
3909
141M
  }
3910
3911
  // optional int32 num_tablets = 7 [default = 0];
3912
141M
  if (cached_has_bits & 0x00000040u) {
3913
126k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->num_tablets(), target);
3914
126k
  }
3915
3916
  // optional bool is_ysql_catalog_table = 8 [default = false];
3917
141M
  if (cached_has_bits & 0x00000020u) {
3918
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->is_ysql_catalog_table(), target);
3919
141M
  }
3920
3921
  // optional bool retain_delete_markers = 9 [default = false];
3922
141M
  if (cached_has_bits & 0x00000100u) {
3923
141M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->retain_delete_markers(), target);
3924
141M
  }
3925
3926
  // optional uint64 backfilling_timestamp = 10;
3927
141M
  if (cached_has_bits & 0x00000080u) {
3928
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(10, this->backfilling_timestamp(), target);
3929
0
  }
3930
3931
141M
  if (_internal_metadata_.have_unknown_fields()) {
3932
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3933
0
        _internal_metadata_.unknown_fields(), target);
3934
0
  }
3935
  // @@protoc_insertion_point(serialize_to_array_end:yb.TablePropertiesPB)
3936
141M
  return target;
3937
141M
}
3938
3939
143M
size_t TablePropertiesPB::ByteSizeLong() const {
3940
// @@protoc_insertion_point(message_byte_size_start:yb.TablePropertiesPB)
3941
143M
  size_t total_size = 0;
3942
3943
143M
  if (_internal_metadata_.have_unknown_fields()) {
3944
0
    total_size +=
3945
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3946
0
        _internal_metadata_.unknown_fields());
3947
0
  }
3948
143M
  if (_has_bits_[0 / 32] & 255u) {
3949
    // optional bytes copartition_table_id = 4;
3950
143M
    if (has_copartition_table_id()) {
3951
0
      total_size += 1 +
3952
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
3953
0
          this->copartition_table_id());
3954
0
    }
3955
3956
    // optional uint64 default_time_to_live = 1;
3957
143M
    if (has_default_time_to_live()) {
3958
20.0k
      total_size += 1 +
3959
20.0k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3960
20.0k
          this->default_time_to_live());
3961
20.0k
    }
3962
3963
    // optional bool contain_counters = 2;
3964
143M
    if (has_contain_counters()) {
3965
143M
      total_size += 1 + 1;
3966
143M
    }
3967
3968
    // optional bool is_transactional = 3 [default = false];
3969
143M
    if (has_is_transactional()) {
3970
143M
      total_size += 1 + 1;
3971
143M
    }
3972
3973
    // optional bool use_mangled_column_name = 6 [default = false];
3974
143M
    if (has_use_mangled_column_name()) {
3975
143M
      total_size += 1 + 1;
3976
143M
    }
3977
3978
    // optional bool is_ysql_catalog_table = 8 [default = false];
3979
143M
    if (has_is_ysql_catalog_table()) {
3980
143M
      total_size += 1 + 1;
3981
143M
    }
3982
3983
    // optional int32 num_tablets = 7 [default = 0];
3984
143M
    if (has_num_tablets()) {
3985
187k
      total_size += 1 +
3986
187k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3987
187k
          this->num_tablets());
3988
187k
    }
3989
3990
    // optional uint64 backfilling_timestamp = 10;
3991
143M
    if (has_backfilling_timestamp()) {
3992
0
      total_size += 1 +
3993
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
3994
0
          this->backfilling_timestamp());
3995
0
    }
3996
3997
143M
  }
3998
143M
  if (_has_bits_[8 / 32] & 768u) {
3999
    // optional bool retain_delete_markers = 9 [default = false];
4000
143M
    if (has_retain_delete_markers()) {
4001
143M
      total_size += 1 + 1;
4002
143M
    }
4003
4004
    // optional .yb.YBConsistencyLevel consistency_level = 5 [default = STRONG];
4005
143M
    if (has_consistency_level()) {
4006
143M
      total_size += 1 +
4007
143M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->consistency_level());
4008
143M
    }
4009
4010
143M
  }
4011
143M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4012
143M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4013
143M
  _cached_size_ = cached_size;
4014
143M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4015
143M
  return total_size;
4016
143M
}
4017
4018
0
void TablePropertiesPB::MergeFrom(const ::google::protobuf::Message& from) {
4019
// @@protoc_insertion_point(generalized_merge_from_start:yb.TablePropertiesPB)
4020
0
  GOOGLE_DCHECK_NE(&from, this);
4021
0
  const TablePropertiesPB* source =
4022
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TablePropertiesPB>(
4023
0
          &from);
4024
0
  if (source == NULL) {
4025
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.TablePropertiesPB)
4026
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4027
0
  } else {
4028
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.TablePropertiesPB)
4029
0
    MergeFrom(*source);
4030
0
  }
4031
0
}
4032
4033
3.51M
void TablePropertiesPB::MergeFrom(const TablePropertiesPB& from) {
4034
// @@protoc_insertion_point(class_specific_merge_from_start:yb.TablePropertiesPB)
4035
3.51M
  GOOGLE_DCHECK_NE(&from, this);
4036
3.51M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4037
3.51M
  ::google::protobuf::uint32 cached_has_bits = 0;
4038
3.51M
  (void) cached_has_bits;
4039
4040
3.51M
  cached_has_bits = from._has_bits_[0];
4041
3.51M
  if (cached_has_bits & 255u) {
4042
3.51M
    if (cached_has_bits & 0x00000001u) {
4043
0
      set_has_copartition_table_id();
4044
0
      copartition_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.copartition_table_id_);
4045
0
    }
4046
3.51M
    if (cached_has_bits & 0x00000002u) {
4047
677k
      default_time_to_live_ = from.default_time_to_live_;
4048
677k
    }
4049
3.51M
    if (cached_has_bits & 0x00000004u) {
4050
3.51M
      contain_counters_ = from.contain_counters_;
4051
3.51M
    }
4052
3.51M
    if (cached_has_bits & 0x00000008u) {
4053
3.51M
      is_transactional_ = from.is_transactional_;
4054
3.51M
    }
4055
3.51M
    if (cached_has_bits & 0x00000010u) {
4056
3.51M
      use_mangled_column_name_ = from.use_mangled_column_name_;
4057
3.51M
    }
4058
3.51M
    if (cached_has_bits & 0x00000020u) {
4059
3.51M
      is_ysql_catalog_table_ = from.is_ysql_catalog_table_;
4060
3.51M
    }
4061
3.51M
    if (cached_has_bits & 0x00000040u) {
4062
744k
      num_tablets_ = from.num_tablets_;
4063
744k
    }
4064
3.51M
    if (cached_has_bits & 0x00000080u) {
4065
0
      backfilling_timestamp_ = from.backfilling_timestamp_;
4066
0
    }
4067
3.51M
    _has_bits_[0] |= cached_has_bits;
4068
3.51M
  }
4069
3.51M
  if (cached_has_bits & 768u) {
4070
3.51M
    if (cached_has_bits & 0x00000100u) {
4071
3.51M
      retain_delete_markers_ = from.retain_delete_markers_;
4072
3.51M
    }
4073
3.51M
    if (cached_has_bits & 0x00000200u) {
4074
3.51M
      consistency_level_ = from.consistency_level_;
4075
3.51M
    }
4076
3.51M
    _has_bits_[0] |= cached_has_bits;
4077
3.51M
  }
4078
3.51M
}
4079
4080
0
void TablePropertiesPB::CopyFrom(const ::google::protobuf::Message& from) {
4081
// @@protoc_insertion_point(generalized_copy_from_start:yb.TablePropertiesPB)
4082
0
  if (&from == this) return;
4083
0
  Clear();
4084
0
  MergeFrom(from);
4085
0
}
4086
4087
0
void TablePropertiesPB::CopyFrom(const TablePropertiesPB& from) {
4088
// @@protoc_insertion_point(class_specific_copy_from_start:yb.TablePropertiesPB)
4089
0
  if (&from == this) return;
4090
0
  Clear();
4091
0
  MergeFrom(from);
4092
0
}
4093
4094
0
bool TablePropertiesPB::IsInitialized() const {
4095
0
  return true;
4096
0
}
4097
4098
0
void TablePropertiesPB::Swap(TablePropertiesPB* other) {
4099
0
  if (other == this) return;
4100
0
  InternalSwap(other);
4101
0
}
4102
0
void TablePropertiesPB::InternalSwap(TablePropertiesPB* other) {
4103
0
  using std::swap;
4104
0
  copartition_table_id_.Swap(&other->copartition_table_id_);
4105
0
  swap(default_time_to_live_, other->default_time_to_live_);
4106
0
  swap(contain_counters_, other->contain_counters_);
4107
0
  swap(is_transactional_, other->is_transactional_);
4108
0
  swap(use_mangled_column_name_, other->use_mangled_column_name_);
4109
0
  swap(is_ysql_catalog_table_, other->is_ysql_catalog_table_);
4110
0
  swap(num_tablets_, other->num_tablets_);
4111
0
  swap(backfilling_timestamp_, other->backfilling_timestamp_);
4112
0
  swap(retain_delete_markers_, other->retain_delete_markers_);
4113
0
  swap(consistency_level_, other->consistency_level_);
4114
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4115
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4116
0
  swap(_cached_size_, other->_cached_size_);
4117
0
}
4118
4119
2.20M
::google::protobuf::Metadata TablePropertiesPB::GetMetadata() const {
4120
2.20M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
4121
2.20M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
4122
2.20M
}
4123
4124
4125
// ===================================================================
4126
4127
17.1k
void SchemaPB::InitAsDefaultInstance() {
4128
17.1k
  ::yb::_SchemaPB_default_instance_._instance.get_mutable()->table_properties_ = const_cast< ::yb::TablePropertiesPB*>(
4129
17.1k
      ::yb::TablePropertiesPB::internal_default_instance());
4130
17.1k
  ::yb::_SchemaPB_default_instance_._instance.get_mutable()->colocated_table_id_ = const_cast< ::yb::ColocatedTableIdentifierPB*>(
4131
17.1k
      ::yb::ColocatedTableIdentifierPB::internal_default_instance());
4132
17.1k
}
4133
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4134
const int SchemaPB::kColumnsFieldNumber;
4135
const int SchemaPB::kTablePropertiesFieldNumber;
4136
const int SchemaPB::kColocatedTableIdFieldNumber;
4137
const int SchemaPB::kPgschemaNameFieldNumber;
4138
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4139
4140
SchemaPB::SchemaPB()
4141
170M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4142
170M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4143
170M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
4144
170M
  }
4145
170M
  SharedCtor();
4146
  // @@protoc_insertion_point(constructor:yb.SchemaPB)
4147
170M
}
4148
SchemaPB::SchemaPB(const SchemaPB& from)
4149
  : ::google::protobuf::Message(),
4150
      _internal_metadata_(NULL),
4151
      _has_bits_(from._has_bits_),
4152
      _cached_size_(0),
4153
478k
      columns_(from.columns_) {
4154
478k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4155
478k
  pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4156
478k
  if (from.has_pgschema_name()) {
4157
477k
    pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_);
4158
477k
  }
4159
478k
  if (from.has_table_properties()) {
4160
478k
    table_properties_ = new ::yb::TablePropertiesPB(*from.table_properties_);
4161
18.4E
  } else {
4162
18.4E
    table_properties_ = NULL;
4163
18.4E
  }
4164
478k
  if (from.has_colocated_table_id()) {
4165
477k
    colocated_table_id_ = new ::yb::ColocatedTableIdentifierPB(*from.colocated_table_id_);
4166
657
  } else {
4167
657
    colocated_table_id_ = NULL;
4168
657
  }
4169
  // @@protoc_insertion_point(copy_constructor:yb.SchemaPB)
4170
478k
}
4171
4172
170M
void SchemaPB::SharedCtor() {
4173
170M
  _cached_size_ = 0;
4174
170M
  pgschema_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4175
170M
  ::memset(&table_properties_, 0, static_cast<size_t>(
4176
170M
      reinterpret_cast<char*>(&colocated_table_id_) -
4177
170M
      reinterpret_cast<char*>(&table_properties_)) + sizeof(colocated_table_id_));
4178
170M
}
4179
4180
170M
SchemaPB::~SchemaPB() {
4181
  // @@protoc_insertion_point(destructor:yb.SchemaPB)
4182
170M
  SharedDtor();
4183
170M
}
4184
4185
170M
void SchemaPB::SharedDtor() {
4186
170M
  pgschema_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4187
170M
  if (this != internal_default_instance()) delete table_properties_;
4188
170M
  if (this != internal_default_instance()) delete colocated_table_id_;
4189
170M
}
4190
4191
0
void SchemaPB::SetCachedSize(int size) const {
4192
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4193
0
  _cached_size_ = size;
4194
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4195
0
}
4196
0
const ::google::protobuf::Descriptor* SchemaPB::descriptor() {
4197
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
4198
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4199
0
}
4200
4201
0
const SchemaPB& SchemaPB::default_instance() {
4202
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSchemaPB();
4203
0
  return *internal_default_instance();
4204
0
}
4205
4206
0
SchemaPB* SchemaPB::New(::google::protobuf::Arena* arena) const {
4207
0
  SchemaPB* n = new SchemaPB;
4208
0
  if (arena != NULL) {
4209
0
    arena->Own(n);
4210
0
  }
4211
0
  return n;
4212
0
}
4213
4214
142M
void SchemaPB::Clear() {
4215
// @@protoc_insertion_point(message_clear_start:yb.SchemaPB)
4216
142M
  ::google::protobuf::uint32 cached_has_bits = 0;
4217
  // Prevent compiler warnings about cached_has_bits being unused
4218
142M
  (void) cached_has_bits;
4219
4220
142M
  columns_.Clear();
4221
142M
  cached_has_bits = _has_bits_[0];
4222
142M
  if (cached_has_bits & 7u) {
4223
199k
    if (cached_has_bits & 0x00000001u) {
4224
199k
      GOOGLE_DCHECK(!pgschema_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4225
199k
      (*pgschema_name_.UnsafeRawStringPointer())->clear();
4226
199k
    }
4227
199k
    if (cached_has_bits & 0x00000002u) {
4228
199k
      GOOGLE_DCHECK(table_properties_ != NULL);
4229
199k
      table_properties_->Clear();
4230
199k
    }
4231
199k
    if (cached_has_bits & 0x00000004u) {
4232
199k
      GOOGLE_DCHECK(colocated_table_id_ != NULL);
4233
199k
      colocated_table_id_->Clear();
4234
199k
    }
4235
199k
  }
4236
142M
  _has_bits_.Clear();
4237
142M
  _internal_metadata_.Clear();
4238
142M
}
4239
4240
bool SchemaPB::MergePartialFromCodedStream(
4241
969k
    ::google::protobuf::io::CodedInputStream* input) {
4242
9.28M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4243
969k
  ::google::protobuf::uint32 tag;
4244
  // @@protoc_insertion_point(parse_start:yb.SchemaPB)
4245
10.2M
  for (;;) {
4246
10.2M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4247
10.2M
    tag = p.first;
4248
10.2M
    if (!p.second) goto handle_unusual;
4249
9.28M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4250
      // repeated .yb.ColumnSchemaPB columns = 1;
4251
6.37M
      case 1: {
4252
6.37M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4253
6.37M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4254
6.37M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_columns()));
4255
18.4E
        } else {
4256
18.4E
          goto handle_unusual;
4257
18.4E
        }
4258
6.37M
        break;
4259
6.37M
      }
4260
4261
      // optional .yb.TablePropertiesPB table_properties = 2;
4262
969k
      case 2: {
4263
969k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4264
969k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4265
969k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4266
969k
               input, mutable_table_properties()));
4267
18.4E
        } else {
4268
18.4E
          goto handle_unusual;
4269
18.4E
        }
4270
969k
        break;
4271
969k
      }
4272
4273
      // optional .yb.ColocatedTableIdentifierPB colocated_table_id = 3;
4274
969k
      case 3: {
4275
969k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4276
969k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4277
969k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4278
969k
               input, mutable_colocated_table_id()));
4279
18.4E
        } else {
4280
18.4E
          goto handle_unusual;
4281
18.4E
        }
4282
969k
        break;
4283
969k
      }
4284
4285
      // optional string pgschema_name = 4;
4286
968k
      case 4: {
4287
968k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4288
968k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
4289
968k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4290
968k
                input, this->mutable_pgschema_name()));
4291
968k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4292
968k
            this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
4293
968k
            ::google::protobuf::internal::WireFormat::PARSE,
4294
968k
            "yb.SchemaPB.pgschema_name");
4295
12
        } else {
4296
12
          goto handle_unusual;
4297
12
        }
4298
968k
        break;
4299
969k
      }
4300
4301
0
      default: {
4302
969k
      handle_unusual:
4303
969k
        if (tag == 0) {
4304
968k
          goto success;
4305
968k
        }
4306
115
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4307
115
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4308
115
        break;
4309
115
      }
4310
9.28M
    }
4311
9.28M
  }
4312
968k
success:
4313
  // @@protoc_insertion_point(parse_success:yb.SchemaPB)
4314
968k
  return true;
4315
0
failure:
4316
  // @@protoc_insertion_point(parse_failure:yb.SchemaPB)
4317
0
  return false;
4318
969k
#undef DO_
4319
969k
}
4320
4321
void SchemaPB::SerializeWithCachedSizes(
4322
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4323
  // @@protoc_insertion_point(serialize_start:yb.SchemaPB)
4324
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4325
0
  (void) cached_has_bits;
4326
4327
  // repeated .yb.ColumnSchemaPB columns = 1;
4328
0
  for (unsigned int i = 0,
4329
0
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
4330
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4331
0
      1, this->columns(static_cast<int>(i)), output);
4332
0
  }
4333
4334
0
  cached_has_bits = _has_bits_[0];
4335
  // optional .yb.TablePropertiesPB table_properties = 2;
4336
0
  if (cached_has_bits & 0x00000002u) {
4337
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4338
0
      2, *this->table_properties_, output);
4339
0
  }
4340
4341
  // optional .yb.ColocatedTableIdentifierPB colocated_table_id = 3;
4342
0
  if (cached_has_bits & 0x00000004u) {
4343
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4344
0
      3, *this->colocated_table_id_, output);
4345
0
  }
4346
4347
  // optional string pgschema_name = 4;
4348
0
  if (cached_has_bits & 0x00000001u) {
4349
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4350
0
      this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
4351
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4352
0
      "yb.SchemaPB.pgschema_name");
4353
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4354
0
      4, this->pgschema_name(), output);
4355
0
  }
4356
4357
0
  if (_internal_metadata_.have_unknown_fields()) {
4358
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4359
0
        _internal_metadata_.unknown_fields(), output);
4360
0
  }
4361
  // @@protoc_insertion_point(serialize_end:yb.SchemaPB)
4362
0
}
4363
4364
::google::protobuf::uint8* SchemaPB::InternalSerializeWithCachedSizesToArray(
4365
140M
    bool deterministic, ::google::protobuf::uint8* target) const {
4366
140M
  (void)deterministic; // Unused
4367
  // @@protoc_insertion_point(serialize_to_array_start:yb.SchemaPB)
4368
140M
  ::google::protobuf::uint32 cached_has_bits = 0;
4369
140M
  (void) cached_has_bits;
4370
4371
  // repeated .yb.ColumnSchemaPB columns = 1;
4372
140M
  for (unsigned int i = 0,
4373
1.10G
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
4374
960M
    target = ::google::protobuf::internal::WireFormatLite::
4375
960M
      InternalWriteMessageToArray(
4376
960M
        1, this->columns(static_cast<int>(i)), deterministic, target);
4377
960M
  }
4378
4379
140M
  cached_has_bits = _has_bits_[0];
4380
  // optional .yb.TablePropertiesPB table_properties = 2;
4381
140M
  if (cached_has_bits & 0x00000002u) {
4382
140M
    target = ::google::protobuf::internal::WireFormatLite::
4383
140M
      InternalWriteMessageToArray(
4384
140M
        2, *this->table_properties_, deterministic, target);
4385
140M
  }
4386
4387
  // optional .yb.ColocatedTableIdentifierPB colocated_table_id = 3;
4388
140M
  if (cached_has_bits & 0x00000004u) {
4389
140M
    target = ::google::protobuf::internal::WireFormatLite::
4390
140M
      InternalWriteMessageToArray(
4391
140M
        3, *this->colocated_table_id_, deterministic, target);
4392
140M
  }
4393
4394
  // optional string pgschema_name = 4;
4395
140M
  if (cached_has_bits & 0x00000001u) {
4396
140M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4397
140M
      this->pgschema_name().data(), static_cast<int>(this->pgschema_name().length()),
4398
140M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4399
140M
      "yb.SchemaPB.pgschema_name");
4400
140M
    target =
4401
140M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4402
140M
        4, this->pgschema_name(), target);
4403
140M
  }
4404
4405
140M
  if (_internal_metadata_.have_unknown_fields()) {
4406
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4407
0
        _internal_metadata_.unknown_fields(), target);
4408
0
  }
4409
  // @@protoc_insertion_point(serialize_to_array_end:yb.SchemaPB)
4410
140M
  return target;
4411
140M
}
4412
4413
141M
size_t SchemaPB::ByteSizeLong() const {
4414
// @@protoc_insertion_point(message_byte_size_start:yb.SchemaPB)
4415
141M
  size_t total_size = 0;
4416
4417
141M
  if (_internal_metadata_.have_unknown_fields()) {
4418
0
    total_size +=
4419
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4420
0
        _internal_metadata_.unknown_fields());
4421
0
  }
4422
  // repeated .yb.ColumnSchemaPB columns = 1;
4423
141M
  {
4424
141M
    unsigned int count = static_cast<unsigned int>(this->columns_size());
4425
141M
    total_size += 1UL * count;
4426
1.11G
    for (unsigned int i = 0; i < count; i++) {
4427
970M
      total_size +=
4428
970M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4429
970M
          this->columns(static_cast<int>(i)));
4430
970M
    }
4431
141M
  }
4432
4433
141M
  if (_has_bits_[0 / 32] & 7u) {
4434
    // optional string pgschema_name = 4;
4435
141M
    if (has_pgschema_name()) {
4436
141M
      total_size += 1 +
4437
141M
        ::google::protobuf::internal::WireFormatLite::StringSize(
4438
141M
          this->pgschema_name());
4439
141M
    }
4440
4441
    // optional .yb.TablePropertiesPB table_properties = 2;
4442
141M
    if (has_table_properties()) {
4443
141M
      total_size += 1 +
4444
141M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4445
141M
          *this->table_properties_);
4446
141M
    }
4447
4448
    // optional .yb.ColocatedTableIdentifierPB colocated_table_id = 3;
4449
141M
    if (has_colocated_table_id()) {
4450
141M
      total_size += 1 +
4451
141M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4452
141M
          *this->colocated_table_id_);
4453
141M
    }
4454
4455
141M
  }
4456
141M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4457
141M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4458
141M
  _cached_size_ = cached_size;
4459
141M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4460
141M
  return total_size;
4461
141M
}
4462
4463
0
void SchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
4464
// @@protoc_insertion_point(generalized_merge_from_start:yb.SchemaPB)
4465
0
  GOOGLE_DCHECK_NE(&from, this);
4466
0
  const SchemaPB* source =
4467
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SchemaPB>(
4468
0
          &from);
4469
0
  if (source == NULL) {
4470
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.SchemaPB)
4471
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4472
0
  } else {
4473
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.SchemaPB)
4474
0
    MergeFrom(*source);
4475
0
  }
4476
0
}
4477
4478
3.73M
void SchemaPB::MergeFrom(const SchemaPB& from) {
4479
// @@protoc_insertion_point(class_specific_merge_from_start:yb.SchemaPB)
4480
3.73M
  GOOGLE_DCHECK_NE(&from, this);
4481
3.73M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4482
3.73M
  ::google::protobuf::uint32 cached_has_bits = 0;
4483
3.73M
  (void) cached_has_bits;
4484
4485
3.73M
  columns_.MergeFrom(from.columns_);
4486
3.73M
  cached_has_bits = from._has_bits_[0];
4487
3.73M
  if (cached_has_bits & 7u) {
4488
3.44M
    if (cached_has_bits & 0x00000001u) {
4489
3.44M
      set_has_pgschema_name();
4490
3.44M
      pgschema_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pgschema_name_);
4491
3.44M
    }
4492
3.44M
    if (cached_has_bits & 0x00000002u) {
4493
3.44M
      mutable_table_properties()->::yb::TablePropertiesPB::MergeFrom(from.table_properties());
4494
3.44M
    }
4495
3.44M
    if (cached_has_bits & 0x00000004u) {
4496
3.44M
      mutable_colocated_table_id()->::yb::ColocatedTableIdentifierPB::MergeFrom(from.colocated_table_id());
4497
3.44M
    }
4498
3.44M
  }
4499
3.73M
}
4500
4501
0
void SchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
4502
// @@protoc_insertion_point(generalized_copy_from_start:yb.SchemaPB)
4503
0
  if (&from == this) return;
4504
0
  Clear();
4505
0
  MergeFrom(from);
4506
0
}
4507
4508
3.04M
void SchemaPB::CopyFrom(const SchemaPB& from) {
4509
// @@protoc_insertion_point(class_specific_copy_from_start:yb.SchemaPB)
4510
3.04M
  if (&from == this) return;
4511
3.04M
  Clear();
4512
3.04M
  MergeFrom(from);
4513
3.04M
}
4514
4515
158M
bool SchemaPB::IsInitialized() const {
4516
158M
  if (!::google::protobuf::internal::AllAreInitialized(this->columns())) return false;
4517
158M
  return true;
4518
158M
}
4519
4520
0
void SchemaPB::Swap(SchemaPB* other) {
4521
0
  if (other == this) return;
4522
0
  InternalSwap(other);
4523
0
}
4524
18.8M
void SchemaPB::InternalSwap(SchemaPB* other) {
4525
18.8M
  using std::swap;
4526
18.8M
  columns_.InternalSwap(&other->columns_);
4527
18.8M
  pgschema_name_.Swap(&other->pgschema_name_);
4528
18.8M
  swap(table_properties_, other->table_properties_);
4529
18.8M
  swap(colocated_table_id_, other->colocated_table_id_);
4530
18.8M
  swap(_has_bits_[0], other->_has_bits_[0]);
4531
18.8M
  _internal_metadata_.Swap(&other->_internal_metadata_);
4532
18.8M
  swap(_cached_size_, other->_cached_size_);
4533
18.8M
}
4534
4535
2.43M
::google::protobuf::Metadata SchemaPB::GetMetadata() const {
4536
2.43M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
4537
2.43M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
4538
2.43M
}
4539
4540
4541
// ===================================================================
4542
4543
17.1k
void IndexInfoPB_IndexColumnPB::InitAsDefaultInstance() {
4544
17.1k
  ::yb::_IndexInfoPB_IndexColumnPB_default_instance_._instance.get_mutable()->colexpr_ = const_cast< ::yb::QLExpressionPB*>(
4545
17.1k
      ::yb::QLExpressionPB::internal_default_instance());
4546
17.1k
}
4547
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4548
const int IndexInfoPB_IndexColumnPB::kColumnIdFieldNumber;
4549
const int IndexInfoPB_IndexColumnPB::kColumnNameFieldNumber;
4550
const int IndexInfoPB_IndexColumnPB::kIndexedColumnIdFieldNumber;
4551
const int IndexInfoPB_IndexColumnPB::kColexprFieldNumber;
4552
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4553
4554
IndexInfoPB_IndexColumnPB::IndexInfoPB_IndexColumnPB()
4555
1.24M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4556
1.22M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4557
1.22M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_IndexColumnPB();
4558
1.22M
  }
4559
1.24M
  SharedCtor();
4560
  // @@protoc_insertion_point(constructor:yb.IndexInfoPB.IndexColumnPB)
4561
1.24M
}
4562
IndexInfoPB_IndexColumnPB::IndexInfoPB_IndexColumnPB(const IndexInfoPB_IndexColumnPB& from)
4563
  : ::google::protobuf::Message(),
4564
      _internal_metadata_(NULL),
4565
      _has_bits_(from._has_bits_),
4566
0
      _cached_size_(0) {
4567
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4568
0
  column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4569
0
  if (from.has_column_name()) {
4570
0
    column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
4571
0
  }
4572
0
  if (from.has_colexpr()) {
4573
0
    colexpr_ = new ::yb::QLExpressionPB(*from.colexpr_);
4574
0
  } else {
4575
0
    colexpr_ = NULL;
4576
0
  }
4577
0
  ::memcpy(&column_id_, &from.column_id_,
4578
0
    static_cast<size_t>(reinterpret_cast<char*>(&indexed_column_id_) -
4579
0
    reinterpret_cast<char*>(&column_id_)) + sizeof(indexed_column_id_));
4580
  // @@protoc_insertion_point(copy_constructor:yb.IndexInfoPB.IndexColumnPB)
4581
0
}
4582
4583
1.24M
void IndexInfoPB_IndexColumnPB::SharedCtor() {
4584
1.24M
  _cached_size_ = 0;
4585
1.24M
  column_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4586
1.24M
  ::memset(&colexpr_, 0, static_cast<size_t>(
4587
1.24M
      reinterpret_cast<char*>(&indexed_column_id_) -
4588
1.24M
      reinterpret_cast<char*>(&colexpr_)) + sizeof(indexed_column_id_));
4589
1.24M
}
4590
4591
1.21M
IndexInfoPB_IndexColumnPB::~IndexInfoPB_IndexColumnPB() {
4592
  // @@protoc_insertion_point(destructor:yb.IndexInfoPB.IndexColumnPB)
4593
1.21M
  SharedDtor();
4594
1.21M
}
4595
4596
1.21M
void IndexInfoPB_IndexColumnPB::SharedDtor() {
4597
1.21M
  column_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4598
1.21M
  if (this != internal_default_instance()) delete colexpr_;
4599
1.21M
}
4600
4601
0
void IndexInfoPB_IndexColumnPB::SetCachedSize(int size) const {
4602
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4603
0
  _cached_size_ = size;
4604
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4605
0
}
4606
0
const ::google::protobuf::Descriptor* IndexInfoPB_IndexColumnPB::descriptor() {
4607
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
4608
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4609
0
}
4610
4611
0
const IndexInfoPB_IndexColumnPB& IndexInfoPB_IndexColumnPB::default_instance() {
4612
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_IndexColumnPB();
4613
0
  return *internal_default_instance();
4614
0
}
4615
4616
0
IndexInfoPB_IndexColumnPB* IndexInfoPB_IndexColumnPB::New(::google::protobuf::Arena* arena) const {
4617
0
  IndexInfoPB_IndexColumnPB* n = new IndexInfoPB_IndexColumnPB;
4618
0
  if (arena != NULL) {
4619
0
    arena->Own(n);
4620
0
  }
4621
0
  return n;
4622
0
}
4623
4624
14.9k
void IndexInfoPB_IndexColumnPB::Clear() {
4625
// @@protoc_insertion_point(message_clear_start:yb.IndexInfoPB.IndexColumnPB)
4626
14.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
4627
  // Prevent compiler warnings about cached_has_bits being unused
4628
14.9k
  (void) cached_has_bits;
4629
4630
14.9k
  cached_has_bits = _has_bits_[0];
4631
14.9k
  if (cached_has_bits & 3u) {
4632
14.8k
    if (cached_has_bits & 0x00000001u) {
4633
14.8k
      GOOGLE_DCHECK(!column_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4634
14.8k
      (*column_name_.UnsafeRawStringPointer())->clear();
4635
14.8k
    }
4636
14.8k
    if (cached_has_bits & 0x00000002u) {
4637
14.8k
      GOOGLE_DCHECK(colexpr_ != NULL);
4638
14.8k
      colexpr_->Clear();
4639
14.8k
    }
4640
14.8k
  }
4641
14.9k
  if (cached_has_bits & 12u) {
4642
14.9k
    ::memset(&column_id_, 0, static_cast<size_t>(
4643
14.9k
        reinterpret_cast<char*>(&indexed_column_id_) -
4644
14.9k
        reinterpret_cast<char*>(&column_id_)) + sizeof(indexed_column_id_));
4645
14.9k
  }
4646
14.9k
  _has_bits_.Clear();
4647
14.9k
  _internal_metadata_.Clear();
4648
14.9k
}
4649
4650
bool IndexInfoPB_IndexColumnPB::MergePartialFromCodedStream(
4651
298k
    ::google::protobuf::io::CodedInputStream* input) {
4652
1.18M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4653
298k
  ::google::protobuf::uint32 tag;
4654
  // @@protoc_insertion_point(parse_start:yb.IndexInfoPB.IndexColumnPB)
4655
1.47M
  for (;;) {
4656
1.47M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4657
1.47M
    tag = p.first;
4658
1.47M
    if (!p.second) goto handle_unusual;
4659
1.18M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4660
      // optional uint32 column_id = 1;
4661
296k
      case 1: {
4662
296k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4663
296k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4664
296k
          set_has_column_id();
4665
296k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4666
296k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4667
296k
                 input, &column_id_)));
4668
0
        } else {
4669
0
          goto handle_unusual;
4670
0
        }
4671
296k
        break;
4672
296k
      }
4673
4674
      // optional uint32 indexed_column_id = 2;
4675
298k
      case 2: {
4676
298k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4677
298k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4678
298k
          set_has_indexed_column_id();
4679
298k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4680
298k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4681
298k
                 input, &indexed_column_id_)));
4682
18.4E
        } else {
4683
18.4E
          goto handle_unusual;
4684
18.4E
        }
4685
298k
        break;
4686
298k
      }
4687
4688
      // optional string column_name = 3;
4689
296k
      case 3: {
4690
296k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4691
296k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4692
296k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4693
296k
                input, this->mutable_column_name()));
4694
296k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4695
296k
            this->column_name().data(), static_cast<int>(this->column_name().length()),
4696
296k
            ::google::protobuf::internal::WireFormat::PARSE,
4697
296k
            "yb.IndexInfoPB.IndexColumnPB.column_name");
4698
18.4E
        } else {
4699
18.4E
          goto handle_unusual;
4700
18.4E
        }
4701
296k
        break;
4702
296k
      }
4703
4704
      // optional .yb.QLExpressionPB colexpr = 4;
4705
296k
      case 4: {
4706
296k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4707
296k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
4708
296k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4709
296k
               input, mutable_colexpr()));
4710
18.4E
        } else {
4711
18.4E
          goto handle_unusual;
4712
18.4E
        }
4713
296k
        break;
4714
298k
      }
4715
4716
0
      default: {
4717
298k
      handle_unusual:
4718
298k
        if (tag == 0) {
4719
298k
          goto success;
4720
298k
        }
4721
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4722
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4723
18.4E
        break;
4724
18.4E
      }
4725
1.18M
    }
4726
1.18M
  }
4727
298k
success:
4728
  // @@protoc_insertion_point(parse_success:yb.IndexInfoPB.IndexColumnPB)
4729
298k
  return true;
4730
0
failure:
4731
  // @@protoc_insertion_point(parse_failure:yb.IndexInfoPB.IndexColumnPB)
4732
0
  return false;
4733
298k
#undef DO_
4734
298k
}
4735
4736
void IndexInfoPB_IndexColumnPB::SerializeWithCachedSizes(
4737
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4738
  // @@protoc_insertion_point(serialize_start:yb.IndexInfoPB.IndexColumnPB)
4739
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4740
0
  (void) cached_has_bits;
4741
4742
0
  cached_has_bits = _has_bits_[0];
4743
  // optional uint32 column_id = 1;
4744
0
  if (cached_has_bits & 0x00000004u) {
4745
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->column_id(), output);
4746
0
  }
4747
4748
  // optional uint32 indexed_column_id = 2;
4749
0
  if (cached_has_bits & 0x00000008u) {
4750
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->indexed_column_id(), output);
4751
0
  }
4752
4753
  // optional string column_name = 3;
4754
0
  if (cached_has_bits & 0x00000001u) {
4755
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4756
0
      this->column_name().data(), static_cast<int>(this->column_name().length()),
4757
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4758
0
      "yb.IndexInfoPB.IndexColumnPB.column_name");
4759
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4760
0
      3, this->column_name(), output);
4761
0
  }
4762
4763
  // optional .yb.QLExpressionPB colexpr = 4;
4764
0
  if (cached_has_bits & 0x00000002u) {
4765
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4766
0
      4, *this->colexpr_, output);
4767
0
  }
4768
4769
0
  if (_internal_metadata_.have_unknown_fields()) {
4770
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4771
0
        _internal_metadata_.unknown_fields(), output);
4772
0
  }
4773
  // @@protoc_insertion_point(serialize_end:yb.IndexInfoPB.IndexColumnPB)
4774
0
}
4775
4776
::google::protobuf::uint8* IndexInfoPB_IndexColumnPB::InternalSerializeWithCachedSizesToArray(
4777
1.06M
    bool deterministic, ::google::protobuf::uint8* target) const {
4778
1.06M
  (void)deterministic; // Unused
4779
  // @@protoc_insertion_point(serialize_to_array_start:yb.IndexInfoPB.IndexColumnPB)
4780
1.06M
  ::google::protobuf::uint32 cached_has_bits = 0;
4781
1.06M
  (void) cached_has_bits;
4782
4783
1.06M
  cached_has_bits = _has_bits_[0];
4784
  // optional uint32 column_id = 1;
4785
1.06M
  if (cached_has_bits & 0x00000004u) {
4786
1.06M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->column_id(), target);
4787
1.06M
  }
4788
4789
  // optional uint32 indexed_column_id = 2;
4790
1.06M
  if (cached_has_bits & 0x00000008u) {
4791
1.06M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->indexed_column_id(), target);
4792
1.06M
  }
4793
4794
  // optional string column_name = 3;
4795
1.06M
  if (cached_has_bits & 0x00000001u) {
4796
1.06M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4797
1.06M
      this->column_name().data(), static_cast<int>(this->column_name().length()),
4798
1.06M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4799
1.06M
      "yb.IndexInfoPB.IndexColumnPB.column_name");
4800
1.06M
    target =
4801
1.06M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4802
1.06M
        3, this->column_name(), target);
4803
1.06M
  }
4804
4805
  // optional .yb.QLExpressionPB colexpr = 4;
4806
1.06M
  if (cached_has_bits & 0x00000002u) {
4807
1.06M
    target = ::google::protobuf::internal::WireFormatLite::
4808
1.06M
      InternalWriteMessageToArray(
4809
1.06M
        4, *this->colexpr_, deterministic, target);
4810
1.06M
  }
4811
4812
1.06M
  if (_internal_metadata_.have_unknown_fields()) {
4813
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4814
0
        _internal_metadata_.unknown_fields(), target);
4815
0
  }
4816
  // @@protoc_insertion_point(serialize_to_array_end:yb.IndexInfoPB.IndexColumnPB)
4817
1.06M
  return target;
4818
1.06M
}
4819
4820
1.78M
size_t IndexInfoPB_IndexColumnPB::ByteSizeLong() const {
4821
// @@protoc_insertion_point(message_byte_size_start:yb.IndexInfoPB.IndexColumnPB)
4822
1.78M
  size_t total_size = 0;
4823
4824
1.78M
  if (_internal_metadata_.have_unknown_fields()) {
4825
0
    total_size +=
4826
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4827
0
        _internal_metadata_.unknown_fields());
4828
0
  }
4829
1.78M
  if (_has_bits_[0 / 32] & 15u) {
4830
    // optional string column_name = 3;
4831
1.78M
    if (has_column_name()) {
4832
1.77M
      total_size += 1 +
4833
1.77M
        ::google::protobuf::internal::WireFormatLite::StringSize(
4834
1.77M
          this->column_name());
4835
1.77M
    }
4836
4837
    // optional .yb.QLExpressionPB colexpr = 4;
4838
1.78M
    if (has_colexpr()) {
4839
1.77M
      total_size += 1 +
4840
1.77M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4841
1.77M
          *this->colexpr_);
4842
1.77M
    }
4843
4844
    // optional uint32 column_id = 1;
4845
1.78M
    if (has_column_id()) {
4846
1.77M
      total_size += 1 +
4847
1.77M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4848
1.77M
          this->column_id());
4849
1.77M
    }
4850
4851
    // optional uint32 indexed_column_id = 2;
4852
1.78M
    if (has_indexed_column_id()) {
4853
1.78M
      total_size += 1 +
4854
1.78M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4855
1.78M
          this->indexed_column_id());
4856
1.78M
    }
4857
4858
1.78M
  }
4859
1.78M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4860
1.78M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4861
1.78M
  _cached_size_ = cached_size;
4862
1.78M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4863
1.78M
  return total_size;
4864
1.78M
}
4865
4866
0
void IndexInfoPB_IndexColumnPB::MergeFrom(const ::google::protobuf::Message& from) {
4867
// @@protoc_insertion_point(generalized_merge_from_start:yb.IndexInfoPB.IndexColumnPB)
4868
0
  GOOGLE_DCHECK_NE(&from, this);
4869
0
  const IndexInfoPB_IndexColumnPB* source =
4870
0
      ::google::protobuf::internal::DynamicCastToGenerated<const IndexInfoPB_IndexColumnPB>(
4871
0
          &from);
4872
0
  if (source == NULL) {
4873
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.IndexInfoPB.IndexColumnPB)
4874
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4875
0
  } else {
4876
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.IndexInfoPB.IndexColumnPB)
4877
0
    MergeFrom(*source);
4878
0
  }
4879
0
}
4880
4881
503k
void IndexInfoPB_IndexColumnPB::MergeFrom(const IndexInfoPB_IndexColumnPB& from) {
4882
// @@protoc_insertion_point(class_specific_merge_from_start:yb.IndexInfoPB.IndexColumnPB)
4883
503k
  GOOGLE_DCHECK_NE(&from, this);
4884
503k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4885
503k
  ::google::protobuf::uint32 cached_has_bits = 0;
4886
503k
  (void) cached_has_bits;
4887
4888
503k
  cached_has_bits = from._has_bits_[0];
4889
503k
  if (cached_has_bits & 15u) {
4890
503k
    if (cached_has_bits & 0x00000001u) {
4891
498k
      set_has_column_name();
4892
498k
      column_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_name_);
4893
498k
    }
4894
503k
    if (cached_has_bits & 0x00000002u) {
4895
497k
      mutable_colexpr()->::yb::QLExpressionPB::MergeFrom(from.colexpr());
4896
497k
    }
4897
503k
    if (cached_has_bits & 0x00000004u) {
4898
496k
      column_id_ = from.column_id_;
4899
496k
    }
4900
503k
    if (cached_has_bits & 0x00000008u) {
4901
503k
      indexed_column_id_ = from.indexed_column_id_;
4902
503k
    }
4903
503k
    _has_bits_[0] |= cached_has_bits;
4904
503k
  }
4905
503k
}
4906
4907
0
void IndexInfoPB_IndexColumnPB::CopyFrom(const ::google::protobuf::Message& from) {
4908
// @@protoc_insertion_point(generalized_copy_from_start:yb.IndexInfoPB.IndexColumnPB)
4909
0
  if (&from == this) return;
4910
0
  Clear();
4911
0
  MergeFrom(from);
4912
0
}
4913
4914
0
void IndexInfoPB_IndexColumnPB::CopyFrom(const IndexInfoPB_IndexColumnPB& from) {
4915
// @@protoc_insertion_point(class_specific_copy_from_start:yb.IndexInfoPB.IndexColumnPB)
4916
0
  if (&from == this) return;
4917
0
  Clear();
4918
0
  MergeFrom(from);
4919
0
}
4920
4921
1.81M
bool IndexInfoPB_IndexColumnPB::IsInitialized() const {
4922
1.81M
  if (has_colexpr()) {
4923
1.80M
    if (!this->colexpr_->IsInitialized()) return false;
4924
1.81M
  }
4925
1.81M
  return true;
4926
1.81M
}
4927
4928
0
void IndexInfoPB_IndexColumnPB::Swap(IndexInfoPB_IndexColumnPB* other) {
4929
0
  if (other == this) return;
4930
0
  InternalSwap(other);
4931
0
}
4932
0
void IndexInfoPB_IndexColumnPB::InternalSwap(IndexInfoPB_IndexColumnPB* other) {
4933
0
  using std::swap;
4934
0
  column_name_.Swap(&other->column_name_);
4935
0
  swap(colexpr_, other->colexpr_);
4936
0
  swap(column_id_, other->column_id_);
4937
0
  swap(indexed_column_id_, other->indexed_column_id_);
4938
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4939
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4940
0
  swap(_cached_size_, other->_cached_size_);
4941
0
}
4942
4943
1.49M
::google::protobuf::Metadata IndexInfoPB_IndexColumnPB::GetMetadata() const {
4944
1.49M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
4945
1.49M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
4946
1.49M
}
4947
4948
4949
// ===================================================================
4950
4951
17.1k
void IndexInfoPB_WherePredicateSpecPB::InitAsDefaultInstance() {
4952
17.1k
  ::yb::_IndexInfoPB_WherePredicateSpecPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::QLExpressionPB*>(
4953
17.1k
      ::yb::QLExpressionPB::internal_default_instance());
4954
17.1k
}
4955
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4956
const int IndexInfoPB_WherePredicateSpecPB::kColumnIdsFieldNumber;
4957
const int IndexInfoPB_WherePredicateSpecPB::kWhereExprFieldNumber;
4958
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4959
4960
IndexInfoPB_WherePredicateSpecPB::IndexInfoPB_WherePredicateSpecPB()
4961
71.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4962
54.4k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4963
54.4k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_WherePredicateSpecPB();
4964
54.4k
  }
4965
71.5k
  SharedCtor();
4966
  // @@protoc_insertion_point(constructor:yb.IndexInfoPB.WherePredicateSpecPB)
4967
71.5k
}
4968
IndexInfoPB_WherePredicateSpecPB::IndexInfoPB_WherePredicateSpecPB(const IndexInfoPB_WherePredicateSpecPB& from)
4969
  : ::google::protobuf::Message(),
4970
      _internal_metadata_(NULL),
4971
      _has_bits_(from._has_bits_),
4972
      _cached_size_(0),
4973
38.8k
      column_ids_(from.column_ids_) {
4974
38.8k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4975
38.9k
  if (from.has_where_expr()) {
4976
38.9k
    where_expr_ = new ::yb::QLExpressionPB(*from.where_expr_);
4977
18.4E
  } else {
4978
18.4E
    where_expr_ = NULL;
4979
18.4E
  }
4980
  // @@protoc_insertion_point(copy_constructor:yb.IndexInfoPB.WherePredicateSpecPB)
4981
38.8k
}
4982
4983
71.4k
void IndexInfoPB_WherePredicateSpecPB::SharedCtor() {
4984
71.4k
  _cached_size_ = 0;
4985
71.4k
  where_expr_ = NULL;
4986
71.4k
}
4987
4988
93.2k
IndexInfoPB_WherePredicateSpecPB::~IndexInfoPB_WherePredicateSpecPB() {
4989
  // @@protoc_insertion_point(destructor:yb.IndexInfoPB.WherePredicateSpecPB)
4990
93.2k
  SharedDtor();
4991
93.2k
}
4992
4993
93.2k
void IndexInfoPB_WherePredicateSpecPB::SharedDtor() {
4994
93.2k
  if (this != internal_default_instance()) delete where_expr_;
4995
93.2k
}
4996
4997
0
void IndexInfoPB_WherePredicateSpecPB::SetCachedSize(int size) const {
4998
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4999
0
  _cached_size_ = size;
5000
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5001
0
}
5002
0
const ::google::protobuf::Descriptor* IndexInfoPB_WherePredicateSpecPB::descriptor() {
5003
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
5004
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5005
0
}
5006
5007
0
const IndexInfoPB_WherePredicateSpecPB& IndexInfoPB_WherePredicateSpecPB::default_instance() {
5008
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB_WherePredicateSpecPB();
5009
0
  return *internal_default_instance();
5010
0
}
5011
5012
0
IndexInfoPB_WherePredicateSpecPB* IndexInfoPB_WherePredicateSpecPB::New(::google::protobuf::Arena* arena) const {
5013
0
  IndexInfoPB_WherePredicateSpecPB* n = new IndexInfoPB_WherePredicateSpecPB;
5014
0
  if (arena != NULL) {
5015
0
    arena->Own(n);
5016
0
  }
5017
0
  return n;
5018
0
}
5019
5020
930
void IndexInfoPB_WherePredicateSpecPB::Clear() {
5021
// @@protoc_insertion_point(message_clear_start:yb.IndexInfoPB.WherePredicateSpecPB)
5022
930
  ::google::protobuf::uint32 cached_has_bits = 0;
5023
  // Prevent compiler warnings about cached_has_bits being unused
5024
930
  (void) cached_has_bits;
5025
5026
930
  column_ids_.Clear();
5027
930
  cached_has_bits = _has_bits_[0];
5028
930
  if (cached_has_bits & 0x00000001u) {
5029
930
    GOOGLE_DCHECK(where_expr_ != NULL);
5030
930
    where_expr_->Clear();
5031
930
  }
5032
930
  _has_bits_.Clear();
5033
930
  _internal_metadata_.Clear();
5034
930
}
5035
5036
bool IndexInfoPB_WherePredicateSpecPB::MergePartialFromCodedStream(
5037
27.3k
    ::google::protobuf::io::CodedInputStream* input) {
5038
54.6k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5039
27.3k
  ::google::protobuf::uint32 tag;
5040
  // @@protoc_insertion_point(parse_start:yb.IndexInfoPB.WherePredicateSpecPB)
5041
81.8k
  for (;;) {
5042
81.8k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5043
81.8k
    tag = p.first;
5044
81.8k
    if (!p.second) goto handle_unusual;
5045
54.5k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5046
      // repeated uint32 column_ids = 1;
5047
27.3k
      case 1: {
5048
27.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5049
27.3k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5050
27.3k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
5051
27.3k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5052
27.3k
                 1, 8u, input, this->mutable_column_ids())));
5053
18.4E
        } else if (
5054
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
5055
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5056
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
5057
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5058
0
                 input, this->mutable_column_ids())));
5059
18.4E
        } else {
5060
18.4E
          goto handle_unusual;
5061
18.4E
        }
5062
27.3k
        break;
5063
27.3k
      }
5064
5065
      // optional .yb.QLExpressionPB where_expr = 2;
5066
27.2k
      case 2: {
5067
27.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5068
27.3k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5069
27.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5070
27.3k
               input, mutable_where_expr()));
5071
18.4E
        } else {
5072
18.4E
          goto handle_unusual;
5073
18.4E
        }
5074
27.3k
        break;
5075
27.2k
      }
5076
5077
0
      default: {
5078
27.2k
      handle_unusual:
5079
27.2k
        if (tag == 0) {
5080
27.2k
          goto success;
5081
27.2k
        }
5082
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5083
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5084
18.4E
        break;
5085
18.4E
      }
5086
54.5k
    }
5087
54.5k
  }
5088
27.2k
success:
5089
  // @@protoc_insertion_point(parse_success:yb.IndexInfoPB.WherePredicateSpecPB)
5090
27.2k
  return true;
5091
0
failure:
5092
  // @@protoc_insertion_point(parse_failure:yb.IndexInfoPB.WherePredicateSpecPB)
5093
0
  return false;
5094
27.3k
#undef DO_
5095
27.3k
}
5096
5097
void IndexInfoPB_WherePredicateSpecPB::SerializeWithCachedSizes(
5098
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5099
  // @@protoc_insertion_point(serialize_start:yb.IndexInfoPB.WherePredicateSpecPB)
5100
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5101
0
  (void) cached_has_bits;
5102
5103
  // repeated uint32 column_ids = 1;
5104
0
  for (int i = 0, n = this->column_ids_size(); i < n; i++) {
5105
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
5106
0
      1, this->column_ids(i), output);
5107
0
  }
5108
5109
0
  cached_has_bits = _has_bits_[0];
5110
  // optional .yb.QLExpressionPB where_expr = 2;
5111
0
  if (cached_has_bits & 0x00000001u) {
5112
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5113
0
      2, *this->where_expr_, output);
5114
0
  }
5115
5116
0
  if (_internal_metadata_.have_unknown_fields()) {
5117
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5118
0
        _internal_metadata_.unknown_fields(), output);
5119
0
  }
5120
  // @@protoc_insertion_point(serialize_end:yb.IndexInfoPB.WherePredicateSpecPB)
5121
0
}
5122
5123
::google::protobuf::uint8* IndexInfoPB_WherePredicateSpecPB::InternalSerializeWithCachedSizesToArray(
5124
52.9k
    bool deterministic, ::google::protobuf::uint8* target) const {
5125
52.9k
  (void)deterministic; // Unused
5126
  // @@protoc_insertion_point(serialize_to_array_start:yb.IndexInfoPB.WherePredicateSpecPB)
5127
52.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
5128
52.9k
  (void) cached_has_bits;
5129
5130
  // repeated uint32 column_ids = 1;
5131
52.9k
  target = ::google::protobuf::internal::WireFormatLite::
5132
52.9k
    WriteUInt32ToArray(1, this->column_ids_, target);
5133
5134
52.9k
  cached_has_bits = _has_bits_[0];
5135
  // optional .yb.QLExpressionPB where_expr = 2;
5136
52.9k
  if (cached_has_bits & 0x00000001u) {
5137
52.9k
    target = ::google::protobuf::internal::WireFormatLite::
5138
52.9k
      InternalWriteMessageToArray(
5139
52.9k
        2, *this->where_expr_, deterministic, target);
5140
52.9k
  }
5141
5142
52.9k
  if (_internal_metadata_.have_unknown_fields()) {
5143
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5144
0
        _internal_metadata_.unknown_fields(), target);
5145
0
  }
5146
  // @@protoc_insertion_point(serialize_to_array_end:yb.IndexInfoPB.WherePredicateSpecPB)
5147
52.9k
  return target;
5148
52.9k
}
5149
5150
116k
size_t IndexInfoPB_WherePredicateSpecPB::ByteSizeLong() const {
5151
// @@protoc_insertion_point(message_byte_size_start:yb.IndexInfoPB.WherePredicateSpecPB)
5152
116k
  size_t total_size = 0;
5153
5154
116k
  if (_internal_metadata_.have_unknown_fields()) {
5155
0
    total_size +=
5156
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5157
0
        _internal_metadata_.unknown_fields());
5158
0
  }
5159
  // repeated uint32 column_ids = 1;
5160
116k
  {
5161
116k
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
5162
116k
      UInt32Size(this->column_ids_);
5163
116k
    total_size += 1 *
5164
116k
                  ::google::protobuf::internal::FromIntSize(this->column_ids_size());
5165
116k
    total_size += data_size;
5166
116k
  }
5167
5168
  // optional .yb.QLExpressionPB where_expr = 2;
5169
116k
  if (has_where_expr()) {
5170
115k
    total_size += 1 +
5171
115k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5172
115k
        *this->where_expr_);
5173
115k
  }
5174
5175
116k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5176
116k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5177
116k
  _cached_size_ = cached_size;
5178
116k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5179
116k
  return total_size;
5180
116k
}
5181
5182
0
void IndexInfoPB_WherePredicateSpecPB::MergeFrom(const ::google::protobuf::Message& from) {
5183
// @@protoc_insertion_point(generalized_merge_from_start:yb.IndexInfoPB.WherePredicateSpecPB)
5184
0
  GOOGLE_DCHECK_NE(&from, this);
5185
0
  const IndexInfoPB_WherePredicateSpecPB* source =
5186
0
      ::google::protobuf::internal::DynamicCastToGenerated<const IndexInfoPB_WherePredicateSpecPB>(
5187
0
          &from);
5188
0
  if (source == NULL) {
5189
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.IndexInfoPB.WherePredicateSpecPB)
5190
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5191
0
  } else {
5192
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.IndexInfoPB.WherePredicateSpecPB)
5193
0
    MergeFrom(*source);
5194
0
  }
5195
0
}
5196
5197
27.4k
void IndexInfoPB_WherePredicateSpecPB::MergeFrom(const IndexInfoPB_WherePredicateSpecPB& from) {
5198
// @@protoc_insertion_point(class_specific_merge_from_start:yb.IndexInfoPB.WherePredicateSpecPB)
5199
27.4k
  GOOGLE_DCHECK_NE(&from, this);
5200
27.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5201
27.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
5202
27.4k
  (void) cached_has_bits;
5203
5204
27.4k
  column_ids_.MergeFrom(from.column_ids_);
5205
27.4k
  if (from.has_where_expr()) {
5206
27.4k
    mutable_where_expr()->::yb::QLExpressionPB::MergeFrom(from.where_expr());
5207
27.4k
  }
5208
27.4k
}
5209
5210
0
void IndexInfoPB_WherePredicateSpecPB::CopyFrom(const ::google::protobuf::Message& from) {
5211
// @@protoc_insertion_point(generalized_copy_from_start:yb.IndexInfoPB.WherePredicateSpecPB)
5212
0
  if (&from == this) return;
5213
0
  Clear();
5214
0
  MergeFrom(from);
5215
0
}
5216
5217
0
void IndexInfoPB_WherePredicateSpecPB::CopyFrom(const IndexInfoPB_WherePredicateSpecPB& from) {
5218
// @@protoc_insertion_point(class_specific_copy_from_start:yb.IndexInfoPB.WherePredicateSpecPB)
5219
0
  if (&from == this) return;
5220
0
  Clear();
5221
0
  MergeFrom(from);
5222
0
}
5223
5224
124k
bool IndexInfoPB_WherePredicateSpecPB::IsInitialized() const {
5225
124k
  if (has_where_expr()) {
5226
124k
    if (!this->where_expr_->IsInitialized()) return false;
5227
124k
  }
5228
124k
  return true;
5229
124k
}
5230
5231
0
void IndexInfoPB_WherePredicateSpecPB::Swap(IndexInfoPB_WherePredicateSpecPB* other) {
5232
0
  if (other == this) return;
5233
0
  InternalSwap(other);
5234
0
}
5235
0
void IndexInfoPB_WherePredicateSpecPB::InternalSwap(IndexInfoPB_WherePredicateSpecPB* other) {
5236
0
  using std::swap;
5237
0
  column_ids_.InternalSwap(&other->column_ids_);
5238
0
  swap(where_expr_, other->where_expr_);
5239
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5240
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5241
0
  swap(_cached_size_, other->_cached_size_);
5242
0
}
5243
5244
124k
::google::protobuf::Metadata IndexInfoPB_WherePredicateSpecPB::GetMetadata() const {
5245
124k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
5246
124k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
5247
124k
}
5248
5249
5250
// ===================================================================
5251
5252
17.1k
void IndexInfoPB::InitAsDefaultInstance() {
5253
17.1k
  ::yb::_IndexInfoPB_default_instance_._instance.get_mutable()->where_predicate_spec_ = const_cast< ::yb::IndexInfoPB_WherePredicateSpecPB*>(
5254
17.1k
      ::yb::IndexInfoPB_WherePredicateSpecPB::internal_default_instance());
5255
17.1k
}
5256
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5257
const int IndexInfoPB::kTableIdFieldNumber;
5258
const int IndexInfoPB::kIndexedTableIdFieldNumber;
5259
const int IndexInfoPB::kVersionFieldNumber;
5260
const int IndexInfoPB::kIsLocalFieldNumber;
5261
const int IndexInfoPB::kIsUniqueFieldNumber;
5262
const int IndexInfoPB::kIndexPermissionsFieldNumber;
5263
const int IndexInfoPB::kColumnsFieldNumber;
5264
const int IndexInfoPB::kHashColumnCountFieldNumber;
5265
const int IndexInfoPB::kRangeColumnCountFieldNumber;
5266
const int IndexInfoPB::kIndexedHashColumnIdsFieldNumber;
5267
const int IndexInfoPB::kIndexedRangeColumnIdsFieldNumber;
5268
const int IndexInfoPB::kUseMangledColumnNameFieldNumber;
5269
const int IndexInfoPB::kBackfillErrorMessageFieldNumber;
5270
const int IndexInfoPB::kIsBackfillDeferredFieldNumber;
5271
const int IndexInfoPB::kWherePredicateSpecFieldNumber;
5272
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5273
5274
IndexInfoPB::IndexInfoPB()
5275
584k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5276
567k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5277
567k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
5278
567k
  }
5279
584k
  SharedCtor();
5280
  // @@protoc_insertion_point(constructor:yb.IndexInfoPB)
5281
584k
}
5282
IndexInfoPB::IndexInfoPB(const IndexInfoPB& from)
5283
  : ::google::protobuf::Message(),
5284
      _internal_metadata_(NULL),
5285
      _has_bits_(from._has_bits_),
5286
      _cached_size_(0),
5287
      columns_(from.columns_),
5288
      indexed_hash_column_ids_(from.indexed_hash_column_ids_),
5289
124k
      indexed_range_column_ids_(from.indexed_range_column_ids_) {
5290
124k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5291
124k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5292
124k
  if (from.has_table_id()) {
5293
32.2k
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
5294
32.2k
  }
5295
124k
  indexed_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5296
124k
  if (from.has_indexed_table_id()) {
5297
124k
    indexed_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.indexed_table_id_);
5298
124k
  }
5299
124k
  backfill_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5300
124k
  if (from.has_backfill_error_message()) {
5301
362
    backfill_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_error_message_);
5302
362
  }
5303
124k
  if (from.has_where_predicate_spec()) {
5304
11.5k
    where_predicate_spec_ = new ::yb::IndexInfoPB_WherePredicateSpecPB(*from.where_predicate_spec_);
5305
112k
  } else {
5306
112k
    where_predicate_spec_ = NULL;
5307
112k
  }
5308
124k
  ::memcpy(&version_, &from.version_,
5309
124k
    static_cast<size_t>(reinterpret_cast<char*>(&index_permissions_) -
5310
124k
    reinterpret_cast<char*>(&version_)) + sizeof(index_permissions_));
5311
  // @@protoc_insertion_point(copy_constructor:yb.IndexInfoPB)
5312
124k
}
5313
5314
584k
void IndexInfoPB::SharedCtor() {
5315
584k
  _cached_size_ = 0;
5316
584k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5317
584k
  indexed_table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5318
584k
  backfill_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5319
584k
  ::memset(&where_predicate_spec_, 0, static_cast<size_t>(
5320
584k
      reinterpret_cast<char*>(&is_backfill_deferred_) -
5321
584k
      reinterpret_cast<char*>(&where_predicate_spec_)) + sizeof(is_backfill_deferred_));
5322
584k
  index_permissions_ = 6;
5323
584k
}
5324
5325
591k
IndexInfoPB::~IndexInfoPB() {
5326
  // @@protoc_insertion_point(destructor:yb.IndexInfoPB)
5327
591k
  SharedDtor();
5328
591k
}
5329
5330
591k
void IndexInfoPB::SharedDtor() {
5331
591k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5332
591k
  indexed_table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5333
591k
  backfill_error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5334
591k
  if (this != internal_default_instance()) delete where_predicate_spec_;
5335
591k
}
5336
5337
0
void IndexInfoPB::SetCachedSize(int size) const {
5338
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5339
0
  _cached_size_ = size;
5340
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5341
0
}
5342
0
const ::google::protobuf::Descriptor* IndexInfoPB::descriptor() {
5343
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
5344
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5345
0
}
5346
5347
0
const IndexInfoPB& IndexInfoPB::default_instance() {
5348
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsIndexInfoPB();
5349
0
  return *internal_default_instance();
5350
0
}
5351
5352
0
IndexInfoPB* IndexInfoPB::New(::google::protobuf::Arena* arena) const {
5353
0
  IndexInfoPB* n = new IndexInfoPB;
5354
0
  if (arena != NULL) {
5355
0
    arena->Own(n);
5356
0
  }
5357
0
  return n;
5358
0
}
5359
5360
43.8k
void IndexInfoPB::Clear() {
5361
// @@protoc_insertion_point(message_clear_start:yb.IndexInfoPB)
5362
43.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
5363
  // Prevent compiler warnings about cached_has_bits being unused
5364
43.8k
  (void) cached_has_bits;
5365
5366
43.8k
  columns_.Clear();
5367
43.8k
  indexed_hash_column_ids_.Clear();
5368
43.8k
  indexed_range_column_ids_.Clear();
5369
43.8k
  cached_has_bits = _has_bits_[0];
5370
43.8k
  if (cached_has_bits & 15u) {
5371
4.53k
    if (cached_has_bits & 0x00000001u) {
5372
3.93k
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5373
3.93k
      (*table_id_.UnsafeRawStringPointer())->clear();
5374
3.93k
    }
5375
4.53k
    if (cached_has_bits & 0x00000002u) {
5376
4.53k
      GOOGLE_DCHECK(!indexed_table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5377
4.53k
      (*indexed_table_id_.UnsafeRawStringPointer())->clear();
5378
4.53k
    }
5379
4.53k
    if (cached_has_bits & 0x00000004u) {
5380
105
      GOOGLE_DCHECK(!backfill_error_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5381
105
      (*backfill_error_message_.UnsafeRawStringPointer())->clear();
5382
105
    }
5383
4.53k
    if (cached_has_bits & 0x00000008u) {
5384
930
      GOOGLE_DCHECK(where_predicate_spec_ != NULL);
5385
930
      where_predicate_spec_->Clear();
5386
930
    }
5387
4.53k
  }
5388
43.8k
  if (cached_has_bits & 240u) {
5389
4.01k
    ::memset(&version_, 0, static_cast<size_t>(
5390
4.01k
        reinterpret_cast<char*>(&is_local_) -
5391
4.01k
        reinterpret_cast<char*>(&version_)) + sizeof(is_local_));
5392
4.01k
  }
5393
43.8k
  if (cached_has_bits & 3840u) {
5394
4.40k
    ::memset(&is_unique_, 0, static_cast<size_t>(
5395
4.40k
        reinterpret_cast<char*>(&is_backfill_deferred_) -
5396
4.40k
        reinterpret_cast<char*>(&is_unique_)) + sizeof(is_backfill_deferred_));
5397
4.40k
    index_permissions_ = 6;
5398
4.40k
  }
5399
43.8k
  _has_bits_.Clear();
5400
43.8k
  _internal_metadata_.Clear();
5401
43.8k
}
5402
5403
bool IndexInfoPB::MergePartialFromCodedStream(
5404
208k
    ::google::protobuf::io::CodedInputStream* input) {
5405
1.32M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5406
208k
  ::google::protobuf::uint32 tag;
5407
  // @@protoc_insertion_point(parse_start:yb.IndexInfoPB)
5408
1.53M
  for (;;) {
5409
1.53M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5410
1.53M
    tag = p.first;
5411
1.53M
    if (!p.second) goto handle_unusual;
5412
1.32M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5413
      // optional bytes table_id = 1;
5414
82.2k
      case 1: {
5415
82.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5416
82.2k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5417
82.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5418
82.2k
                input, this->mutable_table_id()));
5419
18.4E
        } else {
5420
18.4E
          goto handle_unusual;
5421
18.4E
        }
5422
82.2k
        break;
5423
82.2k
      }
5424
5425
      // optional uint32 version = 2 [default = 0];
5426
1.69k
      case 2: {
5427
1.69k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5428
1.69k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5429
1.69k
          set_has_version();
5430
1.69k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5431
1.69k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5432
1.69k
                 input, &version_)));
5433
0
        } else {
5434
0
          goto handle_unusual;
5435
0
        }
5436
1.69k
        break;
5437
1.69k
      }
5438
5439
      // optional bool is_local = 3 [default = false];
5440
76.0k
      case 3: {
5441
76.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5442
76.1k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5443
76.1k
          set_has_is_local();
5444
76.1k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5445
76.1k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5446
76.1k
                 input, &is_local_)));
5447
18.4E
        } else {
5448
18.4E
          goto handle_unusual;
5449
18.4E
        }
5450
76.1k
        break;
5451
76.1k
      }
5452
5453
      // repeated .yb.IndexInfoPB.IndexColumnPB columns = 4;
5454
298k
      case 4: {
5455
298k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5456
298k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5457
298k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_columns()));
5458
18.4E
        } else {
5459
18.4E
          goto handle_unusual;
5460
18.4E
        }
5461
298k
        break;
5462
298k
      }
5463
5464
      // optional uint32 hash_column_count = 5;
5465
76.2k
      case 5: {
5466
76.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5467
76.2k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5468
76.2k
          set_has_hash_column_count();
5469
76.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5470
76.2k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5471
76.2k
                 input, &hash_column_count_)));
5472
6
        } else {
5473
6
          goto handle_unusual;
5474
6
        }
5475
76.2k
        break;
5476
76.2k
      }
5477
5478
      // optional uint32 range_column_count = 6;
5479
76.2k
      case 6: {
5480
76.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5481
76.2k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
5482
76.2k
          set_has_range_column_count();
5483
76.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5484
76.2k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5485
76.2k
                 input, &range_column_count_)));
5486
1
        } else {
5487
1
          goto handle_unusual;
5488
1
        }
5489
76.2k
        break;
5490
76.2k
      }
5491
5492
      // optional bool is_unique = 7 [default = false];
5493
174k
      case 7: {
5494
174k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5495
174k
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
5496
174k
          set_has_is_unique();
5497
174k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5498
174k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5499
174k
                 input, &is_unique_)));
5500
18.4E
        } else {
5501
18.4E
          goto handle_unusual;
5502
18.4E
        }
5503
174k
        break;
5504
174k
      }
5505
5506
      // optional bytes indexed_table_id = 8;
5507
208k
      case 8: {
5508
208k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5509
208k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5510
208k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5511
208k
                input, this->mutable_indexed_table_id()));
5512
18.4E
        } else {
5513
18.4E
          goto handle_unusual;
5514
18.4E
        }
5515
208k
        break;
5516
208k
      }
5517
5518
      // repeated uint32 indexed_hash_column_ids = 9;
5519
76.0k
      case 9: {
5520
76.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5521
76.0k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
5522
76.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
5523
76.0k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5524
76.0k
                 1, 72u, input, this->mutable_indexed_hash_column_ids())));
5525
18.4E
        } else if (
5526
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
5527
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
5528
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
5529
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5530
0
                 input, this->mutable_indexed_hash_column_ids())));
5531
18.4E
        } else {
5532
18.4E
          goto handle_unusual;
5533
18.4E
        }
5534
76.0k
        break;
5535
76.0k
      }
5536
5537
      // repeated uint32 indexed_range_column_ids = 10;
5538
46.6k
      case 10: {
5539
46.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5540
46.7k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
5541
46.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
5542
46.7k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5543
46.7k
                 1, 80u, input, this->mutable_indexed_range_column_ids())));
5544
18.4E
        } else if (
5545
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
5546
0
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
5547
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
5548
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5549
0
                 input, this->mutable_indexed_range_column_ids())));
5550
18.4E
        } else {
5551
18.4E
          goto handle_unusual;
5552
18.4E
        }
5553
46.7k
        break;
5554
46.7k
      }
5555
5556
      // optional bool use_mangled_column_name = 11 [default = false];
5557
75.5k
      case 11: {
5558
75.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5559
75.5k
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
5560
75.5k
          set_has_use_mangled_column_name();
5561
75.5k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5562
75.5k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5563
75.5k
                 input, &use_mangled_column_name_)));
5564
18.4E
        } else {
5565
18.4E
          goto handle_unusual;
5566
18.4E
        }
5567
75.5k
        break;
5568
75.5k
      }
5569
5570
      // optional .yb.IndexPermissions index_permissions = 12 [default = INDEX_PERM_READ_WRITE_AND_DELETE];
5571
65.5k
      case 12: {
5572
65.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5573
65.6k
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
5574
65.6k
          int value;
5575
65.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5576
65.6k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5577
65.6k
                 input, &value)));
5578
65.6k
          if (::yb::IndexPermissions_IsValid(value)) {
5579
65.4k
            set_index_permissions(static_cast< ::yb::IndexPermissions >(value));
5580
188
          } else {
5581
188
            mutable_unknown_fields()->AddVarint(
5582
188
                12, static_cast< ::google::protobuf::uint64>(value));
5583
188
          }
5584
18.4E
        } else {
5585
18.4E
          goto handle_unusual;
5586
18.4E
        }
5587
65.6k
        break;
5588
65.6k
      }
5589
5590
      // optional string backfill_error_message = 31;
5591
1.65k
      case 31: {
5592
1.65k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5593
1.65k
            static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
5594
1.65k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5595
1.65k
                input, this->mutable_backfill_error_message()));
5596
1.65k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5597
1.65k
            this->backfill_error_message().data(), static_cast<int>(this->backfill_error_message().length()),
5598
1.65k
            ::google::protobuf::internal::WireFormat::PARSE,
5599
1.65k
            "yb.IndexInfoPB.backfill_error_message");
5600
18.4E
        } else {
5601
18.4E
          goto handle_unusual;
5602
18.4E
        }
5603
1.65k
        break;
5604
1.65k
      }
5605
5606
      // optional bool is_backfill_deferred = 32 [default = false];
5607
41.7k
      case 32: {
5608
41.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5609
41.7k
            static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
5610
41.7k
          set_has_is_backfill_deferred();
5611
41.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5612
41.7k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5613
41.7k
                 input, &is_backfill_deferred_)));
5614
18.4E
        } else {
5615
18.4E
          goto handle_unusual;
5616
18.4E
        }
5617
41.7k
        break;
5618
41.7k
      }
5619
5620
      // optional .yb.IndexInfoPB.WherePredicateSpecPB where_predicate_spec = 33;
5621
27.2k
      case 33: {
5622
27.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5623
27.2k
            static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) {
5624
27.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5625
27.2k
               input, mutable_where_predicate_spec()));
5626
18.4E
        } else {
5627
18.4E
          goto handle_unusual;
5628
18.4E
        }
5629
27.2k
        break;
5630
208k
      }
5631
5632
0
      default: {
5633
208k
      handle_unusual:
5634
208k
        if (tag == 0) {
5635
208k
          goto success;
5636
208k
        }
5637
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5638
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5639
18.4E
        break;
5640
18.4E
      }
5641
1.32M
    }
5642
1.32M
  }
5643
208k
success:
5644
  // @@protoc_insertion_point(parse_success:yb.IndexInfoPB)
5645
208k
  return true;
5646
0
failure:
5647
  // @@protoc_insertion_point(parse_failure:yb.IndexInfoPB)
5648
0
  return false;
5649
208k
#undef DO_
5650
208k
}
5651
5652
void IndexInfoPB::SerializeWithCachedSizes(
5653
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5654
  // @@protoc_insertion_point(serialize_start:yb.IndexInfoPB)
5655
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5656
0
  (void) cached_has_bits;
5657
5658
0
  cached_has_bits = _has_bits_[0];
5659
  // optional bytes table_id = 1;
5660
0
  if (cached_has_bits & 0x00000001u) {
5661
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5662
0
      1, this->table_id(), output);
5663
0
  }
5664
5665
  // optional uint32 version = 2 [default = 0];
5666
0
  if (cached_has_bits & 0x00000010u) {
5667
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->version(), output);
5668
0
  }
5669
5670
  // optional bool is_local = 3 [default = false];
5671
0
  if (cached_has_bits & 0x00000080u) {
5672
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_local(), output);
5673
0
  }
5674
5675
  // repeated .yb.IndexInfoPB.IndexColumnPB columns = 4;
5676
0
  for (unsigned int i = 0,
5677
0
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
5678
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5679
0
      4, this->columns(static_cast<int>(i)), output);
5680
0
  }
5681
5682
  // optional uint32 hash_column_count = 5;
5683
0
  if (cached_has_bits & 0x00000020u) {
5684
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->hash_column_count(), output);
5685
0
  }
5686
5687
  // optional uint32 range_column_count = 6;
5688
0
  if (cached_has_bits & 0x00000040u) {
5689
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->range_column_count(), output);
5690
0
  }
5691
5692
  // optional bool is_unique = 7 [default = false];
5693
0
  if (cached_has_bits & 0x00000100u) {
5694
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->is_unique(), output);
5695
0
  }
5696
5697
  // optional bytes indexed_table_id = 8;
5698
0
  if (cached_has_bits & 0x00000002u) {
5699
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5700
0
      8, this->indexed_table_id(), output);
5701
0
  }
5702
5703
  // repeated uint32 indexed_hash_column_ids = 9;
5704
0
  for (int i = 0, n = this->indexed_hash_column_ids_size(); i < n; i++) {
5705
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
5706
0
      9, this->indexed_hash_column_ids(i), output);
5707
0
  }
5708
5709
  // repeated uint32 indexed_range_column_ids = 10;
5710
0
  for (int i = 0, n = this->indexed_range_column_ids_size(); i < n; i++) {
5711
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(
5712
0
      10, this->indexed_range_column_ids(i), output);
5713
0
  }
5714
5715
  // optional bool use_mangled_column_name = 11 [default = false];
5716
0
  if (cached_has_bits & 0x00000200u) {
5717
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->use_mangled_column_name(), output);
5718
0
  }
5719
5720
  // optional .yb.IndexPermissions index_permissions = 12 [default = INDEX_PERM_READ_WRITE_AND_DELETE];
5721
0
  if (cached_has_bits & 0x00000800u) {
5722
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5723
0
      12, this->index_permissions(), output);
5724
0
  }
5725
5726
  // optional string backfill_error_message = 31;
5727
0
  if (cached_has_bits & 0x00000004u) {
5728
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5729
0
      this->backfill_error_message().data(), static_cast<int>(this->backfill_error_message().length()),
5730
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5731
0
      "yb.IndexInfoPB.backfill_error_message");
5732
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5733
0
      31, this->backfill_error_message(), output);
5734
0
  }
5735
5736
  // optional bool is_backfill_deferred = 32 [default = false];
5737
0
  if (cached_has_bits & 0x00000400u) {
5738
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(32, this->is_backfill_deferred(), output);
5739
0
  }
5740
5741
  // optional .yb.IndexInfoPB.WherePredicateSpecPB where_predicate_spec = 33;
5742
0
  if (cached_has_bits & 0x00000008u) {
5743
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5744
0
      33, *this->where_predicate_spec_, output);
5745
0
  }
5746
5747
0
  if (_internal_metadata_.have_unknown_fields()) {
5748
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5749
0
        _internal_metadata_.unknown_fields(), output);
5750
0
  }
5751
  // @@protoc_insertion_point(serialize_end:yb.IndexInfoPB)
5752
0
}
5753
5754
::google::protobuf::uint8* IndexInfoPB::InternalSerializeWithCachedSizesToArray(
5755
328k
    bool deterministic, ::google::protobuf::uint8* target) const {
5756
328k
  (void)deterministic; // Unused
5757
  // @@protoc_insertion_point(serialize_to_array_start:yb.IndexInfoPB)
5758
328k
  ::google::protobuf::uint32 cached_has_bits = 0;
5759
328k
  (void) cached_has_bits;
5760
5761
328k
  cached_has_bits = _has_bits_[0];
5762
  // optional bytes table_id = 1;
5763
328k
  if (cached_has_bits & 0x00000001u) {
5764
289k
    target =
5765
289k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5766
289k
        1, this->table_id(), target);
5767
289k
  }
5768
5769
  // optional uint32 version = 2 [default = 0];
5770
328k
  if (cached_has_bits & 0x00000010u) {
5771
116k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->version(), target);
5772
116k
  }
5773
5774
  // optional bool is_local = 3 [default = false];
5775
328k
  if (cached_has_bits & 0x00000080u) {
5776
277k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_local(), target);
5777
277k
  }
5778
5779
  // repeated .yb.IndexInfoPB.IndexColumnPB columns = 4;
5780
328k
  for (unsigned int i = 0,
5781
1.39M
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
5782
1.06M
    target = ::google::protobuf::internal::WireFormatLite::
5783
1.06M
      InternalWriteMessageToArray(
5784
1.06M
        4, this->columns(static_cast<int>(i)), deterministic, target);
5785
1.06M
  }
5786
5787
  // optional uint32 hash_column_count = 5;
5788
328k
  if (cached_has_bits & 0x00000020u) {
5789
277k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->hash_column_count(), target);
5790
277k
  }
5791
5792
  // optional uint32 range_column_count = 6;
5793
328k
  if (cached_has_bits & 0x00000040u) {
5794
277k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->range_column_count(), target);
5795
277k
  }
5796
5797
  // optional bool is_unique = 7 [default = false];
5798
328k
  if (cached_has_bits & 0x00000100u) {
5799
309k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->is_unique(), target);
5800
309k
  }
5801
5802
  // optional bytes indexed_table_id = 8;
5803
328k
  if (cached_has_bits & 0x00000002u) {
5804
328k
    target =
5805
328k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5806
328k
        8, this->indexed_table_id(), target);
5807
328k
  }
5808
5809
  // repeated uint32 indexed_hash_column_ids = 9;
5810
328k
  target = ::google::protobuf::internal::WireFormatLite::
5811
328k
    WriteUInt32ToArray(9, this->indexed_hash_column_ids_, target);
5812
5813
  // repeated uint32 indexed_range_column_ids = 10;
5814
328k
  target = ::google::protobuf::internal::WireFormatLite::
5815
328k
    WriteUInt32ToArray(10, this->indexed_range_column_ids_, target);
5816
5817
  // optional bool use_mangled_column_name = 11 [default = false];
5818
328k
  if (cached_has_bits & 0x00000200u) {
5819
276k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->use_mangled_column_name(), target);
5820
276k
  }
5821
5822
  // optional .yb.IndexPermissions index_permissions = 12 [default = INDEX_PERM_READ_WRITE_AND_DELETE];
5823
328k
  if (cached_has_bits & 0x00000800u) {
5824
256k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5825
256k
      12, this->index_permissions(), target);
5826
256k
  }
5827
5828
  // optional string backfill_error_message = 31;
5829
328k
  if (cached_has_bits & 0x00000004u) {
5830
115k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5831
115k
      this->backfill_error_message().data(), static_cast<int>(this->backfill_error_message().length()),
5832
115k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5833
115k
      "yb.IndexInfoPB.backfill_error_message");
5834
115k
    target =
5835
115k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5836
115k
        31, this->backfill_error_message(), target);
5837
115k
  }
5838
5839
  // optional bool is_backfill_deferred = 32 [default = false];
5840
328k
  if (cached_has_bits & 0x00000400u) {
5841
87.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->is_backfill_deferred(), target);
5842
87.4k
  }
5843
5844
  // optional .yb.IndexInfoPB.WherePredicateSpecPB where_predicate_spec = 33;
5845
328k
  if (cached_has_bits & 0x00000008u) {
5846
52.9k
    target = ::google::protobuf::internal::WireFormatLite::
5847
52.9k
      InternalWriteMessageToArray(
5848
52.9k
        33, *this->where_predicate_spec_, deterministic, target);
5849
52.9k
  }
5850
5851
328k
  if (_internal_metadata_.have_unknown_fields()) {
5852
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5853
0
        _internal_metadata_.unknown_fields(), target);
5854
0
  }
5855
  // @@protoc_insertion_point(serialize_to_array_end:yb.IndexInfoPB)
5856
328k
  return target;
5857
328k
}
5858
5859
558k
size_t IndexInfoPB::ByteSizeLong() const {
5860
// @@protoc_insertion_point(message_byte_size_start:yb.IndexInfoPB)
5861
558k
  size_t total_size = 0;
5862
5863
558k
  if (_internal_metadata_.have_unknown_fields()) {
5864
0
    total_size +=
5865
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5866
0
        _internal_metadata_.unknown_fields());
5867
0
  }
5868
  // repeated .yb.IndexInfoPB.IndexColumnPB columns = 4;
5869
558k
  {
5870
558k
    unsigned int count = static_cast<unsigned int>(this->columns_size());
5871
558k
    total_size += 1UL * count;
5872
2.34M
    for (unsigned int i = 0; i < count; i++) {
5873
1.78M
      total_size +=
5874
1.78M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5875
1.78M
          this->columns(static_cast<int>(i)));
5876
1.78M
    }
5877
558k
  }
5878
5879
  // repeated uint32 indexed_hash_column_ids = 9;
5880
558k
  {
5881
558k
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
5882
558k
      UInt32Size(this->indexed_hash_column_ids_);
5883
558k
    total_size += 1 *
5884
558k
                  ::google::protobuf::internal::FromIntSize(this->indexed_hash_column_ids_size());
5885
558k
    total_size += data_size;
5886
558k
  }
5887
5888
  // repeated uint32 indexed_range_column_ids = 10;
5889
558k
  {
5890
558k
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
5891
558k
      UInt32Size(this->indexed_range_column_ids_);
5892
558k
    total_size += 1 *
5893
558k
                  ::google::protobuf::internal::FromIntSize(this->indexed_range_column_ids_size());
5894
558k
    total_size += data_size;
5895
558k
  }
5896
5897
558k
  if (_has_bits_[0 / 32] & 255u) {
5898
    // optional bytes table_id = 1;
5899
558k
    if (has_table_id()) {
5900
482k
      total_size += 1 +
5901
482k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5902
482k
          this->table_id());
5903
482k
    }
5904
5905
    // optional bytes indexed_table_id = 8;
5906
558k
    if (has_indexed_table_id()) {
5907
557k
      total_size += 1 +
5908
557k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5909
557k
          this->indexed_table_id());
5910
557k
    }
5911
5912
    // optional string backfill_error_message = 31;
5913
558k
    if (has_backfill_error_message()) {
5914
117k
      total_size += 2 +
5915
117k
        ::google::protobuf::internal::WireFormatLite::StringSize(
5916
117k
          this->backfill_error_message());
5917
117k
    }
5918
5919
    // optional .yb.IndexInfoPB.WherePredicateSpecPB where_predicate_spec = 33;
5920
558k
    if (has_where_predicate_spec()) {
5921
115k
      total_size += 2 +
5922
115k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5923
115k
          *this->where_predicate_spec_);
5924
115k
    }
5925
5926
    // optional uint32 version = 2 [default = 0];
5927
558k
    if (has_version()) {
5928
117k
      total_size += 1 +
5929
117k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5930
117k
          this->version());
5931
117k
    }
5932
5933
    // optional uint32 hash_column_count = 5;
5934
558k
    if (has_hash_column_count()) {
5935
460k
      total_size += 1 +
5936
460k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5937
460k
          this->hash_column_count());
5938
460k
    }
5939
5940
    // optional uint32 range_column_count = 6;
5941
558k
    if (has_range_column_count()) {
5942
459k
      total_size += 1 +
5943
459k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5944
459k
          this->range_column_count());
5945
459k
    }
5946
5947
    // optional bool is_local = 3 [default = false];
5948
558k
    if (has_is_local()) {
5949
459k
      total_size += 1 + 1;
5950
459k
    }
5951
5952
558k
  }
5953
558k
  if (_has_bits_[8 / 32] & 3840u) {
5954
    // optional bool is_unique = 7 [default = false];
5955
531k
    if (has_is_unique()) {
5956
520k
      total_size += 1 + 1;
5957
520k
    }
5958
5959
    // optional bool use_mangled_column_name = 11 [default = false];
5960
531k
    if (has_use_mangled_column_name()) {
5961
458k
      total_size += 1 + 1;
5962
458k
    }
5963
5964
    // optional bool is_backfill_deferred = 32 [default = false];
5965
531k
    if (has_is_backfill_deferred()) {
5966
183k
      total_size += 2 + 1;
5967
183k
    }
5968
5969
    // optional .yb.IndexPermissions index_permissions = 12 [default = INDEX_PERM_READ_WRITE_AND_DELETE];
5970
531k
    if (has_index_permissions()) {
5971
416k
      total_size += 1 +
5972
416k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->index_permissions());
5973
416k
    }
5974
5975
531k
  }
5976
558k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5977
558k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5978
558k
  _cached_size_ = cached_size;
5979
558k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5980
558k
  return total_size;
5981
558k
}
5982
5983
0
void IndexInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
5984
// @@protoc_insertion_point(generalized_merge_from_start:yb.IndexInfoPB)
5985
0
  GOOGLE_DCHECK_NE(&from, this);
5986
0
  const IndexInfoPB* source =
5987
0
      ::google::protobuf::internal::DynamicCastToGenerated<const IndexInfoPB>(
5988
0
          &from);
5989
0
  if (source == NULL) {
5990
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.IndexInfoPB)
5991
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5992
0
  } else {
5993
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.IndexInfoPB)
5994
0
    MergeFrom(*source);
5995
0
  }
5996
0
}
5997
5998
238k
void IndexInfoPB::MergeFrom(const IndexInfoPB& from) {
5999
// @@protoc_insertion_point(class_specific_merge_from_start:yb.IndexInfoPB)
6000
238k
  GOOGLE_DCHECK_NE(&from, this);
6001
238k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6002
238k
  ::google::protobuf::uint32 cached_has_bits = 0;
6003
238k
  (void) cached_has_bits;
6004
6005
238k
  columns_.MergeFrom(from.columns_);
6006
238k
  indexed_hash_column_ids_.MergeFrom(from.indexed_hash_column_ids_);
6007
238k
  indexed_range_column_ids_.MergeFrom(from.indexed_range_column_ids_);
6008
238k
  cached_has_bits = from._has_bits_[0];
6009
238k
  if (cached_has_bits & 255u) {
6010
238k
    if (cached_has_bits & 0x00000001u) {
6011
108k
      set_has_table_id();
6012
108k
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6013
108k
    }
6014
238k
    if (cached_has_bits & 0x00000002u) {
6015
238k
      set_has_indexed_table_id();
6016
238k
      indexed_table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.indexed_table_id_);
6017
238k
    }
6018
238k
    if (cached_has_bits & 0x00000004u) {
6019
1.96k
      set_has_backfill_error_message();
6020
1.96k
      backfill_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_error_message_);
6021
1.96k
    }
6022
238k
    if (cached_has_bits & 0x00000008u) {
6023
27.4k
      mutable_where_predicate_spec()->::yb::IndexInfoPB_WherePredicateSpecPB::MergeFrom(from.where_predicate_spec());
6024
27.4k
    }
6025
238k
    if (cached_has_bits & 0x00000010u) {
6026
2.12k
      version_ = from.version_;
6027
2.12k
    }
6028
238k
    if (cached_has_bits & 0x00000020u) {
6029
100k
      hash_column_count_ = from.hash_column_count_;
6030
100k
    }
6031
238k
    if (cached_has_bits & 0x00000040u) {
6032
100k
      range_column_count_ = from.range_column_count_;
6033
100k
    }
6034
238k
    if (cached_has_bits & 0x00000080u) {
6035
100k
      is_local_ = from.is_local_;
6036
100k
    }
6037
238k
    _has_bits_[0] |= cached_has_bits;
6038
238k
  }
6039
238k
  if (cached_has_bits & 3840u) {
6040
206k
    if (cached_has_bits & 0x00000100u) {
6041
201k
      is_unique_ = from.is_unique_;
6042
201k
    }
6043
206k
    if (cached_has_bits & 0x00000200u) {
6044
100k
      use_mangled_column_name_ = from.use_mangled_column_name_;
6045
100k
    }
6046
206k
    if (cached_has_bits & 0x00000400u) {
6047
60.0k
      is_backfill_deferred_ = from.is_backfill_deferred_;
6048
60.0k
    }
6049
206k
    if (cached_has_bits & 0x00000800u) {
6050
80.5k
      index_permissions_ = from.index_permissions_;
6051
80.5k
    }
6052
206k
    _has_bits_[0] |= cached_has_bits;
6053
206k
  }
6054
238k
}
6055
6056
0
void IndexInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
6057
// @@protoc_insertion_point(generalized_copy_from_start:yb.IndexInfoPB)
6058
0
  if (&from == this) return;
6059
0
  Clear();
6060
0
  MergeFrom(from);
6061
0
}
6062
6063
39.8k
void IndexInfoPB::CopyFrom(const IndexInfoPB& from) {
6064
// @@protoc_insertion_point(class_specific_copy_from_start:yb.IndexInfoPB)
6065
39.8k
  if (&from == this) return;
6066
39.8k
  Clear();
6067
39.8k
  MergeFrom(from);
6068
39.8k
}
6069
6070
657k
bool IndexInfoPB::IsInitialized() const {
6071
657k
  if (!::google::protobuf::internal::AllAreInitialized(this->columns())) return false;
6072
657k
  if (has_where_predicate_spec()) {
6073
124k
    if (!this->where_predicate_spec_->IsInitialized()) return false;
6074
657k
  }
6075
657k
  return true;
6076
657k
}
6077
6078
0
void IndexInfoPB::Swap(IndexInfoPB* other) {
6079
0
  if (other == this) return;
6080
0
  InternalSwap(other);
6081
0
}
6082
139
void IndexInfoPB::InternalSwap(IndexInfoPB* other) {
6083
139
  using std::swap;
6084
139
  columns_.InternalSwap(&other->columns_);
6085
139
  indexed_hash_column_ids_.InternalSwap(&other->indexed_hash_column_ids_);
6086
139
  indexed_range_column_ids_.InternalSwap(&other->indexed_range_column_ids_);
6087
139
  table_id_.Swap(&other->table_id_);
6088
139
  indexed_table_id_.Swap(&other->indexed_table_id_);
6089
139
  backfill_error_message_.Swap(&other->backfill_error_message_);
6090
139
  swap(where_predicate_spec_, other->where_predicate_spec_);
6091
139
  swap(version_, other->version_);
6092
139
  swap(hash_column_count_, other->hash_column_count_);
6093
139
  swap(range_column_count_, other->range_column_count_);
6094
139
  swap(is_local_, other->is_local_);
6095
139
  swap(is_unique_, other->is_unique_);
6096
139
  swap(use_mangled_column_name_, other->use_mangled_column_name_);
6097
139
  swap(is_backfill_deferred_, other->is_backfill_deferred_);
6098
139
  swap(index_permissions_, other->index_permissions_);
6099
139
  swap(_has_bits_[0], other->_has_bits_[0]);
6100
139
  _internal_metadata_.Swap(&other->_internal_metadata_);
6101
139
  swap(_cached_size_, other->_cached_size_);
6102
139
}
6103
6104
859k
::google::protobuf::Metadata IndexInfoPB::GetMetadata() const {
6105
859k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6106
859k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
6107
859k
}
6108
6109
6110
// ===================================================================
6111
6112
17.1k
void PartitionSchemaPB_ColumnIdentifierPB::InitAsDefaultInstance() {
6113
17.1k
  ::yb::_PartitionSchemaPB_ColumnIdentifierPB_default_instance_.id_ = 0;
6114
17.1k
  ::yb::_PartitionSchemaPB_ColumnIdentifierPB_default_instance_.name_.UnsafeSetDefault(
6115
17.1k
      &::google::protobuf::internal::GetEmptyStringAlreadyInited());
6116
17.1k
}
6117
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6118
const int PartitionSchemaPB_ColumnIdentifierPB::kIdFieldNumber;
6119
const int PartitionSchemaPB_ColumnIdentifierPB::kNameFieldNumber;
6120
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6121
6122
PartitionSchemaPB_ColumnIdentifierPB::PartitionSchemaPB_ColumnIdentifierPB()
6123
275M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6124
275M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6125
275M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_ColumnIdentifierPB();
6126
275M
  }
6127
275M
  SharedCtor();
6128
  // @@protoc_insertion_point(constructor:yb.PartitionSchemaPB.ColumnIdentifierPB)
6129
275M
}
6130
PartitionSchemaPB_ColumnIdentifierPB::PartitionSchemaPB_ColumnIdentifierPB(const PartitionSchemaPB_ColumnIdentifierPB& from)
6131
  : ::google::protobuf::Message(),
6132
      _internal_metadata_(NULL),
6133
      _has_bits_(from._has_bits_),
6134
1.21k
      _cached_size_(0) {
6135
1.21k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6136
1.21k
  clear_has_identifier();
6137
1.21k
  switch (from.identifier_case()) {
6138
1.08k
    case kId: {
6139
1.08k
      set_id(from.id());
6140
1.08k
      break;
6141
0
    }
6142
122
    case kName: {
6143
122
      set_name(from.name());
6144
122
      break;
6145
0
    }
6146
0
    case IDENTIFIER_NOT_SET: {
6147
0
      break;
6148
0
    }
6149
1.21k
  }
6150
  // @@protoc_insertion_point(copy_constructor:yb.PartitionSchemaPB.ColumnIdentifierPB)
6151
1.21k
}
6152
6153
275M
void PartitionSchemaPB_ColumnIdentifierPB::SharedCtor() {
6154
275M
  _cached_size_ = 0;
6155
275M
  clear_has_identifier();
6156
275M
}
6157
6158
275M
PartitionSchemaPB_ColumnIdentifierPB::~PartitionSchemaPB_ColumnIdentifierPB() {
6159
  // @@protoc_insertion_point(destructor:yb.PartitionSchemaPB.ColumnIdentifierPB)
6160
275M
  SharedDtor();
6161
275M
}
6162
6163
275M
void PartitionSchemaPB_ColumnIdentifierPB::SharedDtor() {
6164
275M
  if (has_identifier()) {
6165
275M
    clear_identifier();
6166
275M
  }
6167
275M
}
6168
6169
0
void PartitionSchemaPB_ColumnIdentifierPB::SetCachedSize(int size) const {
6170
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6171
0
  _cached_size_ = size;
6172
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6173
0
}
6174
0
const ::google::protobuf::Descriptor* PartitionSchemaPB_ColumnIdentifierPB::descriptor() {
6175
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6176
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6177
0
}
6178
6179
0
const PartitionSchemaPB_ColumnIdentifierPB& PartitionSchemaPB_ColumnIdentifierPB::default_instance() {
6180
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_ColumnIdentifierPB();
6181
0
  return *internal_default_instance();
6182
0
}
6183
6184
0
PartitionSchemaPB_ColumnIdentifierPB* PartitionSchemaPB_ColumnIdentifierPB::New(::google::protobuf::Arena* arena) const {
6185
0
  PartitionSchemaPB_ColumnIdentifierPB* n = new PartitionSchemaPB_ColumnIdentifierPB;
6186
0
  if (arena != NULL) {
6187
0
    arena->Own(n);
6188
0
  }
6189
0
  return n;
6190
0
}
6191
6192
551M
void PartitionSchemaPB_ColumnIdentifierPB::clear_identifier() {
6193
// @@protoc_insertion_point(one_of_clear_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6194
551M
  switch (identifier_case()) {
6195
275M
    case kId: {
6196
      // No need to clear
6197
275M
      break;
6198
0
    }
6199
730
    case kName: {
6200
730
      identifier_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6201
730
      break;
6202
0
    }
6203
275M
    case IDENTIFIER_NOT_SET: {
6204
275M
      break;
6205
551M
    }
6206
551M
  }
6207
551M
  _oneof_case_[0] = IDENTIFIER_NOT_SET;
6208
551M
}
6209
6210
6211
30
void PartitionSchemaPB_ColumnIdentifierPB::Clear() {
6212
// @@protoc_insertion_point(message_clear_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6213
30
  ::google::protobuf::uint32 cached_has_bits = 0;
6214
  // Prevent compiler warnings about cached_has_bits being unused
6215
30
  (void) cached_has_bits;
6216
6217
30
  clear_identifier();
6218
30
  _has_bits_.Clear();
6219
30
  _internal_metadata_.Clear();
6220
30
}
6221
6222
bool PartitionSchemaPB_ColumnIdentifierPB::MergePartialFromCodedStream(
6223
1.26k
    ::google::protobuf::io::CodedInputStream* input) {
6224
1.26k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6225
1.26k
  ::google::protobuf::uint32 tag;
6226
  // @@protoc_insertion_point(parse_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6227
2.52k
  for (;;) {
6228
2.52k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6229
2.52k
    tag = p.first;
6230
2.52k
    if (!p.second) goto handle_unusual;
6231
1.26k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6232
      // optional int32 id = 1;
6233
1.11k
      case 1: {
6234
1.11k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6235
1.11k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6236
1.11k
          clear_identifier();
6237
1.11k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6238
1.11k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6239
1.11k
                 input, &identifier_.id_)));
6240
1.11k
          set_has_id();
6241
0
        } else {
6242
0
          goto handle_unusual;
6243
0
        }
6244
1.11k
        break;
6245
1.11k
      }
6246
6247
      // optional string name = 2;
6248
152
      case 2: {
6249
152
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6250
152
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6251
152
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6252
152
                input, this->mutable_name()));
6253
152
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6254
152
            this->name().data(), static_cast<int>(this->name().length()),
6255
152
            ::google::protobuf::internal::WireFormat::PARSE,
6256
152
            "yb.PartitionSchemaPB.ColumnIdentifierPB.name");
6257
0
        } else {
6258
0
          goto handle_unusual;
6259
0
        }
6260
152
        break;
6261
1.26k
      }
6262
6263
0
      default: {
6264
1.26k
      handle_unusual:
6265
1.26k
        if (tag == 0) {
6266
1.26k
          goto success;
6267
1.26k
        }
6268
1
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6269
1
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6270
1
        break;
6271
1
      }
6272
1.26k
    }
6273
1.26k
  }
6274
1.26k
success:
6275
  // @@protoc_insertion_point(parse_success:yb.PartitionSchemaPB.ColumnIdentifierPB)
6276
1.26k
  return true;
6277
0
failure:
6278
  // @@protoc_insertion_point(parse_failure:yb.PartitionSchemaPB.ColumnIdentifierPB)
6279
0
  return false;
6280
1.26k
#undef DO_
6281
1.26k
}
6282
6283
void PartitionSchemaPB_ColumnIdentifierPB::SerializeWithCachedSizes(
6284
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6285
  // @@protoc_insertion_point(serialize_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6286
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6287
0
  (void) cached_has_bits;
6288
6289
0
  switch (identifier_case()) {
6290
0
    case kId:
6291
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
6292
0
      break;
6293
0
    case kName:
6294
0
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6295
0
        this->name().data(), static_cast<int>(this->name().length()),
6296
0
        ::google::protobuf::internal::WireFormat::SERIALIZE,
6297
0
        "yb.PartitionSchemaPB.ColumnIdentifierPB.name");
6298
0
      ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6299
0
        2, this->name(), output);
6300
0
      break;
6301
0
    default: ;
6302
0
  }
6303
0
  if (_internal_metadata_.have_unknown_fields()) {
6304
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6305
0
        _internal_metadata_.unknown_fields(), output);
6306
0
  }
6307
  // @@protoc_insertion_point(serialize_end:yb.PartitionSchemaPB.ColumnIdentifierPB)
6308
0
}
6309
6310
::google::protobuf::uint8* PartitionSchemaPB_ColumnIdentifierPB::InternalSerializeWithCachedSizesToArray(
6311
275M
    bool deterministic, ::google::protobuf::uint8* target) const {
6312
275M
  (void)deterministic; // Unused
6313
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6314
275M
  ::google::protobuf::uint32 cached_has_bits = 0;
6315
275M
  (void) cached_has_bits;
6316
6317
275M
  switch (identifier_case()) {
6318
275M
    case kId:
6319
275M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
6320
275M
      break;
6321
152
    case kName:
6322
152
      ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6323
152
        this->name().data(), static_cast<int>(this->name().length()),
6324
152
        ::google::protobuf::internal::WireFormat::SERIALIZE,
6325
152
        "yb.PartitionSchemaPB.ColumnIdentifierPB.name");
6326
152
      target =
6327
152
        ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6328
152
          2, this->name(), target);
6329
152
      break;
6330
0
    default: ;
6331
275M
  }
6332
275M
  if (_internal_metadata_.have_unknown_fields()) {
6333
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6334
0
        _internal_metadata_.unknown_fields(), target);
6335
0
  }
6336
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionSchemaPB.ColumnIdentifierPB)
6337
275M
  return target;
6338
275M
}
6339
6340
275M
size_t PartitionSchemaPB_ColumnIdentifierPB::ByteSizeLong() const {
6341
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6342
275M
  size_t total_size = 0;
6343
6344
275M
  if (_internal_metadata_.have_unknown_fields()) {
6345
0
    total_size +=
6346
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6347
0
        _internal_metadata_.unknown_fields());
6348
0
  }
6349
275M
  switch (identifier_case()) {
6350
    // optional int32 id = 1;
6351
275M
    case kId: {
6352
275M
      total_size += 1 +
6353
275M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
6354
275M
          this->id());
6355
275M
      break;
6356
0
    }
6357
    // optional string name = 2;
6358
304
    case kName: {
6359
304
      total_size += 1 +
6360
304
        ::google::protobuf::internal::WireFormatLite::StringSize(
6361
304
          this->name());
6362
304
      break;
6363
0
    }
6364
0
    case IDENTIFIER_NOT_SET: {
6365
0
      break;
6366
275M
    }
6367
275M
  }
6368
275M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6369
275M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6370
275M
  _cached_size_ = cached_size;
6371
275M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6372
275M
  return total_size;
6373
275M
}
6374
6375
0
void PartitionSchemaPB_ColumnIdentifierPB::MergeFrom(const ::google::protobuf::Message& from) {
6376
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6377
0
  GOOGLE_DCHECK_NE(&from, this);
6378
0
  const PartitionSchemaPB_ColumnIdentifierPB* source =
6379
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionSchemaPB_ColumnIdentifierPB>(
6380
0
          &from);
6381
0
  if (source == NULL) {
6382
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionSchemaPB.ColumnIdentifierPB)
6383
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6384
0
  } else {
6385
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionSchemaPB.ColumnIdentifierPB)
6386
0
    MergeFrom(*source);
6387
0
  }
6388
0
}
6389
6390
3.15k
void PartitionSchemaPB_ColumnIdentifierPB::MergeFrom(const PartitionSchemaPB_ColumnIdentifierPB& from) {
6391
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6392
3.15k
  GOOGLE_DCHECK_NE(&from, this);
6393
3.15k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6394
3.15k
  ::google::protobuf::uint32 cached_has_bits = 0;
6395
3.15k
  (void) cached_has_bits;
6396
6397
3.15k
  switch (from.identifier_case()) {
6398
2.85k
    case kId: {
6399
2.85k
      set_id(from.id());
6400
2.85k
      break;
6401
0
    }
6402
304
    case kName: {
6403
304
      set_name(from.name());
6404
304
      break;
6405
0
    }
6406
0
    case IDENTIFIER_NOT_SET: {
6407
0
      break;
6408
0
    }
6409
3.15k
  }
6410
3.15k
}
6411
6412
0
void PartitionSchemaPB_ColumnIdentifierPB::CopyFrom(const ::google::protobuf::Message& from) {
6413
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6414
0
  if (&from == this) return;
6415
0
  Clear();
6416
0
  MergeFrom(from);
6417
0
}
6418
6419
0
void PartitionSchemaPB_ColumnIdentifierPB::CopyFrom(const PartitionSchemaPB_ColumnIdentifierPB& from) {
6420
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionSchemaPB.ColumnIdentifierPB)
6421
0
  if (&from == this) return;
6422
0
  Clear();
6423
0
  MergeFrom(from);
6424
0
}
6425
6426
0
bool PartitionSchemaPB_ColumnIdentifierPB::IsInitialized() const {
6427
0
  return true;
6428
0
}
6429
6430
0
void PartitionSchemaPB_ColumnIdentifierPB::Swap(PartitionSchemaPB_ColumnIdentifierPB* other) {
6431
0
  if (other == this) return;
6432
0
  InternalSwap(other);
6433
0
}
6434
0
void PartitionSchemaPB_ColumnIdentifierPB::InternalSwap(PartitionSchemaPB_ColumnIdentifierPB* other) {
6435
0
  using std::swap;
6436
0
  swap(identifier_, other->identifier_);
6437
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
6438
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6439
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6440
0
  swap(_cached_size_, other->_cached_size_);
6441
0
}
6442
6443
2.67k
::google::protobuf::Metadata PartitionSchemaPB_ColumnIdentifierPB::GetMetadata() const {
6444
2.67k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6445
2.67k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
6446
2.67k
}
6447
6448
6449
// ===================================================================
6450
6451
17.1k
void PartitionSchemaPB_RangeSplitPB::InitAsDefaultInstance() {
6452
17.1k
}
6453
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6454
const int PartitionSchemaPB_RangeSplitPB::kColumnBoundsFieldNumber;
6455
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6456
6457
PartitionSchemaPB_RangeSplitPB::PartitionSchemaPB_RangeSplitPB()
6458
18.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6459
1.82k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6460
1.82k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSplitPB();
6461
1.82k
  }
6462
18.9k
  SharedCtor();
6463
  // @@protoc_insertion_point(constructor:yb.PartitionSchemaPB.RangeSplitPB)
6464
18.9k
}
6465
PartitionSchemaPB_RangeSplitPB::PartitionSchemaPB_RangeSplitPB(const PartitionSchemaPB_RangeSplitPB& from)
6466
  : ::google::protobuf::Message(),
6467
      _internal_metadata_(NULL),
6468
      _has_bits_(from._has_bits_),
6469
0
      _cached_size_(0) {
6470
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6471
0
  column_bounds_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6472
0
  if (from.has_column_bounds()) {
6473
0
    column_bounds_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_bounds_);
6474
0
  }
6475
  // @@protoc_insertion_point(copy_constructor:yb.PartitionSchemaPB.RangeSplitPB)
6476
0
}
6477
6478
18.9k
void PartitionSchemaPB_RangeSplitPB::SharedCtor() {
6479
18.9k
  _cached_size_ = 0;
6480
18.9k
  column_bounds_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6481
18.9k
}
6482
6483
1.62k
PartitionSchemaPB_RangeSplitPB::~PartitionSchemaPB_RangeSplitPB() {
6484
  // @@protoc_insertion_point(destructor:yb.PartitionSchemaPB.RangeSplitPB)
6485
1.62k
  SharedDtor();
6486
1.62k
}
6487
6488
1.62k
void PartitionSchemaPB_RangeSplitPB::SharedDtor() {
6489
1.62k
  column_bounds_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6490
1.62k
}
6491
6492
0
void PartitionSchemaPB_RangeSplitPB::SetCachedSize(int size) const {
6493
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6494
0
  _cached_size_ = size;
6495
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6496
0
}
6497
0
const ::google::protobuf::Descriptor* PartitionSchemaPB_RangeSplitPB::descriptor() {
6498
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6499
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6500
0
}
6501
6502
0
const PartitionSchemaPB_RangeSplitPB& PartitionSchemaPB_RangeSplitPB::default_instance() {
6503
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSplitPB();
6504
0
  return *internal_default_instance();
6505
0
}
6506
6507
0
PartitionSchemaPB_RangeSplitPB* PartitionSchemaPB_RangeSplitPB::New(::google::protobuf::Arena* arena) const {
6508
0
  PartitionSchemaPB_RangeSplitPB* n = new PartitionSchemaPB_RangeSplitPB;
6509
0
  if (arena != NULL) {
6510
0
    arena->Own(n);
6511
0
  }
6512
0
  return n;
6513
0
}
6514
6515
0
void PartitionSchemaPB_RangeSplitPB::Clear() {
6516
// @@protoc_insertion_point(message_clear_start:yb.PartitionSchemaPB.RangeSplitPB)
6517
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6518
  // Prevent compiler warnings about cached_has_bits being unused
6519
0
  (void) cached_has_bits;
6520
6521
0
  cached_has_bits = _has_bits_[0];
6522
0
  if (cached_has_bits & 0x00000001u) {
6523
0
    GOOGLE_DCHECK(!column_bounds_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6524
0
    (*column_bounds_.UnsafeRawStringPointer())->clear();
6525
0
  }
6526
0
  _has_bits_.Clear();
6527
0
  _internal_metadata_.Clear();
6528
0
}
6529
6530
bool PartitionSchemaPB_RangeSplitPB::MergePartialFromCodedStream(
6531
225
    ::google::protobuf::io::CodedInputStream* input) {
6532
223
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6533
225
  ::google::protobuf::uint32 tag;
6534
  // @@protoc_insertion_point(parse_start:yb.PartitionSchemaPB.RangeSplitPB)
6535
448
  for (;;) {
6536
448
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6537
448
    tag = p.first;
6538
448
    if (!p.second) goto handle_unusual;
6539
224
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6540
      // optional bytes column_bounds = 1;
6541
224
      case 1: {
6542
224
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6543
224
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6544
224
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6545
224
                input, this->mutable_column_bounds()));
6546
0
        } else {
6547
0
          goto handle_unusual;
6548
0
        }
6549
224
        break;
6550
224
      }
6551
6552
0
      default: {
6553
224
      handle_unusual:
6554
225
        if (tag == 0) {
6555
225
          goto success;
6556
225
        }
6557
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6558
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6559
18.4E
        break;
6560
18.4E
      }
6561
224
    }
6562
224
  }
6563
225
success:
6564
  // @@protoc_insertion_point(parse_success:yb.PartitionSchemaPB.RangeSplitPB)
6565
225
  return true;
6566
0
failure:
6567
  // @@protoc_insertion_point(parse_failure:yb.PartitionSchemaPB.RangeSplitPB)
6568
0
  return false;
6569
225
#undef DO_
6570
225
}
6571
6572
void PartitionSchemaPB_RangeSplitPB::SerializeWithCachedSizes(
6573
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6574
  // @@protoc_insertion_point(serialize_start:yb.PartitionSchemaPB.RangeSplitPB)
6575
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6576
0
  (void) cached_has_bits;
6577
6578
0
  cached_has_bits = _has_bits_[0];
6579
  // optional bytes column_bounds = 1;
6580
0
  if (cached_has_bits & 0x00000001u) {
6581
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6582
0
      1, this->column_bounds(), output);
6583
0
  }
6584
6585
0
  if (_internal_metadata_.have_unknown_fields()) {
6586
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6587
0
        _internal_metadata_.unknown_fields(), output);
6588
0
  }
6589
  // @@protoc_insertion_point(serialize_end:yb.PartitionSchemaPB.RangeSplitPB)
6590
0
}
6591
6592
::google::protobuf::uint8* PartitionSchemaPB_RangeSplitPB::InternalSerializeWithCachedSizesToArray(
6593
1.04k
    bool deterministic, ::google::protobuf::uint8* target) const {
6594
1.04k
  (void)deterministic; // Unused
6595
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionSchemaPB.RangeSplitPB)
6596
1.04k
  ::google::protobuf::uint32 cached_has_bits = 0;
6597
1.04k
  (void) cached_has_bits;
6598
6599
1.04k
  cached_has_bits = _has_bits_[0];
6600
  // optional bytes column_bounds = 1;
6601
1.04k
  if (cached_has_bits & 0x00000001u) {
6602
1.04k
    target =
6603
1.04k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6604
1.04k
        1, this->column_bounds(), target);
6605
1.04k
  }
6606
6607
1.04k
  if (_internal_metadata_.have_unknown_fields()) {
6608
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6609
0
        _internal_metadata_.unknown_fields(), target);
6610
0
  }
6611
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionSchemaPB.RangeSplitPB)
6612
1.04k
  return target;
6613
1.04k
}
6614
6615
1.27k
size_t PartitionSchemaPB_RangeSplitPB::ByteSizeLong() const {
6616
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionSchemaPB.RangeSplitPB)
6617
1.27k
  size_t total_size = 0;
6618
6619
1.27k
  if (_internal_metadata_.have_unknown_fields()) {
6620
0
    total_size +=
6621
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6622
0
        _internal_metadata_.unknown_fields());
6623
0
  }
6624
  // optional bytes column_bounds = 1;
6625
1.27k
  if (has_column_bounds()) {
6626
1.27k
    total_size += 1 +
6627
1.27k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
6628
1.27k
        this->column_bounds());
6629
1.27k
  }
6630
6631
1.27k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6632
1.27k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6633
1.27k
  _cached_size_ = cached_size;
6634
1.27k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6635
1.27k
  return total_size;
6636
1.27k
}
6637
6638
0
void PartitionSchemaPB_RangeSplitPB::MergeFrom(const ::google::protobuf::Message& from) {
6639
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionSchemaPB.RangeSplitPB)
6640
0
  GOOGLE_DCHECK_NE(&from, this);
6641
0
  const PartitionSchemaPB_RangeSplitPB* source =
6642
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionSchemaPB_RangeSplitPB>(
6643
0
          &from);
6644
0
  if (source == NULL) {
6645
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionSchemaPB.RangeSplitPB)
6646
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6647
0
  } else {
6648
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionSchemaPB.RangeSplitPB)
6649
0
    MergeFrom(*source);
6650
0
  }
6651
0
}
6652
6653
809
void PartitionSchemaPB_RangeSplitPB::MergeFrom(const PartitionSchemaPB_RangeSplitPB& from) {
6654
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionSchemaPB.RangeSplitPB)
6655
809
  GOOGLE_DCHECK_NE(&from, this);
6656
809
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6657
809
  ::google::protobuf::uint32 cached_has_bits = 0;
6658
809
  (void) cached_has_bits;
6659
6660
809
  if (from.has_column_bounds()) {
6661
809
    set_has_column_bounds();
6662
809
    column_bounds_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.column_bounds_);
6663
809
  }
6664
809
}
6665
6666
0
void PartitionSchemaPB_RangeSplitPB::CopyFrom(const ::google::protobuf::Message& from) {
6667
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionSchemaPB.RangeSplitPB)
6668
0
  if (&from == this) return;
6669
0
  Clear();
6670
0
  MergeFrom(from);
6671
0
}
6672
6673
0
void PartitionSchemaPB_RangeSplitPB::CopyFrom(const PartitionSchemaPB_RangeSplitPB& from) {
6674
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionSchemaPB.RangeSplitPB)
6675
0
  if (&from == this) return;
6676
0
  Clear();
6677
0
  MergeFrom(from);
6678
0
}
6679
6680
0
bool PartitionSchemaPB_RangeSplitPB::IsInitialized() const {
6681
0
  return true;
6682
0
}
6683
6684
0
void PartitionSchemaPB_RangeSplitPB::Swap(PartitionSchemaPB_RangeSplitPB* other) {
6685
0
  if (other == this) return;
6686
0
  InternalSwap(other);
6687
0
}
6688
0
void PartitionSchemaPB_RangeSplitPB::InternalSwap(PartitionSchemaPB_RangeSplitPB* other) {
6689
0
  using std::swap;
6690
0
  column_bounds_.Swap(&other->column_bounds_);
6691
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6692
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6693
0
  swap(_cached_size_, other->_cached_size_);
6694
0
}
6695
6696
373
::google::protobuf::Metadata PartitionSchemaPB_RangeSplitPB::GetMetadata() const {
6697
373
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6698
373
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
6699
373
}
6700
6701
6702
// ===================================================================
6703
6704
17.1k
void PartitionSchemaPB_RangeSchemaPB::InitAsDefaultInstance() {
6705
17.1k
}
6706
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6707
const int PartitionSchemaPB_RangeSchemaPB::kColumnsFieldNumber;
6708
const int PartitionSchemaPB_RangeSchemaPB::kSplitsFieldNumber;
6709
const int PartitionSchemaPB_RangeSchemaPB::kDEPRECATEDSplitRowsFieldNumber;
6710
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6711
6712
PartitionSchemaPB_RangeSchemaPB::PartitionSchemaPB_RangeSchemaPB()
6713
140M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6714
140M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6715
140M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSchemaPB();
6716
140M
  }
6717
140M
  SharedCtor();
6718
  // @@protoc_insertion_point(constructor:yb.PartitionSchemaPB.RangeSchemaPB)
6719
140M
}
6720
PartitionSchemaPB_RangeSchemaPB::PartitionSchemaPB_RangeSchemaPB(const PartitionSchemaPB_RangeSchemaPB& from)
6721
  : ::google::protobuf::Message(),
6722
      _internal_metadata_(NULL),
6723
      _has_bits_(from._has_bits_),
6724
      _cached_size_(0),
6725
      columns_(from.columns_),
6726
      deprecated_split_rows_(from.deprecated_split_rows_),
6727
1.30k
      splits_(from.splits_) {
6728
1.30k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6729
  // @@protoc_insertion_point(copy_constructor:yb.PartitionSchemaPB.RangeSchemaPB)
6730
1.30k
}
6731
6732
140M
void PartitionSchemaPB_RangeSchemaPB::SharedCtor() {
6733
140M
  _cached_size_ = 0;
6734
140M
}
6735
6736
140M
PartitionSchemaPB_RangeSchemaPB::~PartitionSchemaPB_RangeSchemaPB() {
6737
  // @@protoc_insertion_point(destructor:yb.PartitionSchemaPB.RangeSchemaPB)
6738
140M
  SharedDtor();
6739
140M
}
6740
6741
140M
void PartitionSchemaPB_RangeSchemaPB::SharedDtor() {
6742
140M
}
6743
6744
0
void PartitionSchemaPB_RangeSchemaPB::SetCachedSize(int size) const {
6745
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6746
0
  _cached_size_ = size;
6747
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6748
0
}
6749
0
const ::google::protobuf::Descriptor* PartitionSchemaPB_RangeSchemaPB::descriptor() {
6750
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
6751
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6752
0
}
6753
6754
0
const PartitionSchemaPB_RangeSchemaPB& PartitionSchemaPB_RangeSchemaPB::default_instance() {
6755
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_RangeSchemaPB();
6756
0
  return *internal_default_instance();
6757
0
}
6758
6759
0
PartitionSchemaPB_RangeSchemaPB* PartitionSchemaPB_RangeSchemaPB::New(::google::protobuf::Arena* arena) const {
6760
0
  PartitionSchemaPB_RangeSchemaPB* n = new PartitionSchemaPB_RangeSchemaPB;
6761
0
  if (arena != NULL) {
6762
0
    arena->Own(n);
6763
0
  }
6764
0
  return n;
6765
0
}
6766
6767
127
void PartitionSchemaPB_RangeSchemaPB::Clear() {
6768
// @@protoc_insertion_point(message_clear_start:yb.PartitionSchemaPB.RangeSchemaPB)
6769
127
  ::google::protobuf::uint32 cached_has_bits = 0;
6770
  // Prevent compiler warnings about cached_has_bits being unused
6771
127
  (void) cached_has_bits;
6772
6773
127
  columns_.Clear();
6774
127
  deprecated_split_rows_.Clear();
6775
127
  splits_.Clear();
6776
127
  _has_bits_.Clear();
6777
127
  _internal_metadata_.Clear();
6778
127
}
6779
6780
bool PartitionSchemaPB_RangeSchemaPB::MergePartialFromCodedStream(
6781
837
    ::google::protobuf::io::CodedInputStream* input) {
6782
1.48k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6783
837
  ::google::protobuf::uint32 tag;
6784
  // @@protoc_insertion_point(parse_start:yb.PartitionSchemaPB.RangeSchemaPB)
6785
2.32k
  for (;;) {
6786
2.32k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6787
2.32k
    tag = p.first;
6788
2.32k
    if (!p.second) goto handle_unusual;
6789
1.48k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6790
      // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
6791
1.26k
      case 1: {
6792
1.26k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6793
1.26k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6794
1.26k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_columns()));
6795
0
        } else {
6796
0
          goto handle_unusual;
6797
0
        }
6798
1.26k
        break;
6799
1.26k
      }
6800
6801
      // repeated bytes DEPRECATED_split_rows = 2;
6802
0
      case 2: {
6803
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6804
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6805
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6806
0
                input, this->add_deprecated_split_rows()));
6807
0
        } else {
6808
0
          goto handle_unusual;
6809
0
        }
6810
0
        break;
6811
0
      }
6812
6813
      // repeated .yb.PartitionSchemaPB.RangeSplitPB splits = 3;
6814
224
      case 3: {
6815
224
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6816
224
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6817
224
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_splits()));
6818
0
        } else {
6819
0
          goto handle_unusual;
6820
0
        }
6821
224
        break;
6822
837
      }
6823
6824
0
      default: {
6825
837
      handle_unusual:
6826
837
        if (tag == 0) {
6827
837
          goto success;
6828
837
        }
6829
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6830
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6831
0
        break;
6832
0
      }
6833
1.48k
    }
6834
1.48k
  }
6835
837
success:
6836
  // @@protoc_insertion_point(parse_success:yb.PartitionSchemaPB.RangeSchemaPB)
6837
837
  return true;
6838
0
failure:
6839
  // @@protoc_insertion_point(parse_failure:yb.PartitionSchemaPB.RangeSchemaPB)
6840
0
  return false;
6841
837
#undef DO_
6842
837
}
6843
6844
void PartitionSchemaPB_RangeSchemaPB::SerializeWithCachedSizes(
6845
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6846
  // @@protoc_insertion_point(serialize_start:yb.PartitionSchemaPB.RangeSchemaPB)
6847
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6848
0
  (void) cached_has_bits;
6849
6850
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
6851
0
  for (unsigned int i = 0,
6852
0
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
6853
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6854
0
      1, this->columns(static_cast<int>(i)), output);
6855
0
  }
6856
6857
  // repeated bytes DEPRECATED_split_rows = 2;
6858
0
  for (int i = 0, n = this->deprecated_split_rows_size(); i < n; i++) {
6859
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
6860
0
      2, this->deprecated_split_rows(i), output);
6861
0
  }
6862
6863
  // repeated .yb.PartitionSchemaPB.RangeSplitPB splits = 3;
6864
0
  for (unsigned int i = 0,
6865
0
      n = static_cast<unsigned int>(this->splits_size()); i < n; i++) {
6866
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6867
0
      3, this->splits(static_cast<int>(i)), output);
6868
0
  }
6869
6870
0
  if (_internal_metadata_.have_unknown_fields()) {
6871
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6872
0
        _internal_metadata_.unknown_fields(), output);
6873
0
  }
6874
  // @@protoc_insertion_point(serialize_end:yb.PartitionSchemaPB.RangeSchemaPB)
6875
0
}
6876
6877
::google::protobuf::uint8* PartitionSchemaPB_RangeSchemaPB::InternalSerializeWithCachedSizesToArray(
6878
140M
    bool deterministic, ::google::protobuf::uint8* target) const {
6879
140M
  (void)deterministic; // Unused
6880
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionSchemaPB.RangeSchemaPB)
6881
140M
  ::google::protobuf::uint32 cached_has_bits = 0;
6882
140M
  (void) cached_has_bits;
6883
6884
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
6885
140M
  for (unsigned int i = 0,
6886
415M
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
6887
275M
    target = ::google::protobuf::internal::WireFormatLite::
6888
275M
      InternalWriteMessageToArray(
6889
275M
        1, this->columns(static_cast<int>(i)), deterministic, target);
6890
275M
  }
6891
6892
  // repeated bytes DEPRECATED_split_rows = 2;
6893
140M
  for (int i = 0, n = this->deprecated_split_rows_size(); i < n; i++) {
6894
0
    target = ::google::protobuf::internal::WireFormatLite::
6895
0
      WriteBytesToArray(2, this->deprecated_split_rows(i), target);
6896
0
  }
6897
6898
  // repeated .yb.PartitionSchemaPB.RangeSplitPB splits = 3;
6899
140M
  for (unsigned int i = 0,
6900
140M
      n = static_cast<unsigned int>(this->splits_size()); i < n; i++) {
6901
1.04k
    target = ::google::protobuf::internal::WireFormatLite::
6902
1.04k
      InternalWriteMessageToArray(
6903
1.04k
        3, this->splits(static_cast<int>(i)), deterministic, target);
6904
1.04k
  }
6905
6906
140M
  if (_internal_metadata_.have_unknown_fields()) {
6907
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6908
0
        _internal_metadata_.unknown_fields(), target);
6909
0
  }
6910
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionSchemaPB.RangeSchemaPB)
6911
140M
  return target;
6912
140M
}
6913
6914
140M
size_t PartitionSchemaPB_RangeSchemaPB::ByteSizeLong() const {
6915
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionSchemaPB.RangeSchemaPB)
6916
140M
  size_t total_size = 0;
6917
6918
140M
  if (_internal_metadata_.have_unknown_fields()) {
6919
0
    total_size +=
6920
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6921
0
        _internal_metadata_.unknown_fields());
6922
0
  }
6923
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
6924
140M
  {
6925
140M
    unsigned int count = static_cast<unsigned int>(this->columns_size());
6926
140M
    total_size += 1UL * count;
6927
415M
    for (unsigned int i = 0; i < count; i++) {
6928
275M
      total_size +=
6929
275M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6930
275M
          this->columns(static_cast<int>(i)));
6931
275M
    }
6932
140M
  }
6933
6934
  // repeated bytes DEPRECATED_split_rows = 2;
6935
140M
  total_size += 1 *
6936
140M
      ::google::protobuf::internal::FromIntSize(this->deprecated_split_rows_size());
6937
140M
  for (int i = 0, n = this->deprecated_split_rows_size(); i < n; i++) {
6938
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
6939
0
      this->deprecated_split_rows(i));
6940
0
  }
6941
6942
  // repeated .yb.PartitionSchemaPB.RangeSplitPB splits = 3;
6943
140M
  {
6944
140M
    unsigned int count = static_cast<unsigned int>(this->splits_size());
6945
140M
    total_size += 1UL * count;
6946
140M
    for (unsigned int i = 0; i < count; i++) {
6947
1.27k
      total_size +=
6948
1.27k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6949
1.27k
          this->splits(static_cast<int>(i)));
6950
1.27k
    }
6951
140M
  }
6952
6953
140M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6954
140M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6955
140M
  _cached_size_ = cached_size;
6956
140M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6957
140M
  return total_size;
6958
140M
}
6959
6960
0
void PartitionSchemaPB_RangeSchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
6961
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionSchemaPB.RangeSchemaPB)
6962
0
  GOOGLE_DCHECK_NE(&from, this);
6963
0
  const PartitionSchemaPB_RangeSchemaPB* source =
6964
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionSchemaPB_RangeSchemaPB>(
6965
0
          &from);
6966
0
  if (source == NULL) {
6967
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionSchemaPB.RangeSchemaPB)
6968
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6969
0
  } else {
6970
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionSchemaPB.RangeSchemaPB)
6971
0
    MergeFrom(*source);
6972
0
  }
6973
0
}
6974
6975
768
void PartitionSchemaPB_RangeSchemaPB::MergeFrom(const PartitionSchemaPB_RangeSchemaPB& from) {
6976
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionSchemaPB.RangeSchemaPB)
6977
768
  GOOGLE_DCHECK_NE(&from, this);
6978
768
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6979
768
  ::google::protobuf::uint32 cached_has_bits = 0;
6980
768
  (void) cached_has_bits;
6981
6982
768
  columns_.MergeFrom(from.columns_);
6983
768
  deprecated_split_rows_.MergeFrom(from.deprecated_split_rows_);
6984
768
  splits_.MergeFrom(from.splits_);
6985
768
}
6986
6987
0
void PartitionSchemaPB_RangeSchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
6988
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionSchemaPB.RangeSchemaPB)
6989
0
  if (&from == this) return;
6990
0
  Clear();
6991
0
  MergeFrom(from);
6992
0
}
6993
6994
0
void PartitionSchemaPB_RangeSchemaPB::CopyFrom(const PartitionSchemaPB_RangeSchemaPB& from) {
6995
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionSchemaPB.RangeSchemaPB)
6996
0
  if (&from == this) return;
6997
0
  Clear();
6998
0
  MergeFrom(from);
6999
0
}
7000
7001
0
bool PartitionSchemaPB_RangeSchemaPB::IsInitialized() const {
7002
0
  return true;
7003
0
}
7004
7005
0
void PartitionSchemaPB_RangeSchemaPB::Swap(PartitionSchemaPB_RangeSchemaPB* other) {
7006
0
  if (other == this) return;
7007
0
  InternalSwap(other);
7008
0
}
7009
0
void PartitionSchemaPB_RangeSchemaPB::InternalSwap(PartitionSchemaPB_RangeSchemaPB* other) {
7010
0
  using std::swap;
7011
0
  columns_.InternalSwap(&other->columns_);
7012
0
  deprecated_split_rows_.InternalSwap(&other->deprecated_split_rows_);
7013
0
  splits_.InternalSwap(&other->splits_);
7014
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7015
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7016
0
  swap(_cached_size_, other->_cached_size_);
7017
0
}
7018
7019
2.88k
::google::protobuf::Metadata PartitionSchemaPB_RangeSchemaPB::GetMetadata() const {
7020
2.88k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7021
2.88k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
7022
2.88k
}
7023
7024
7025
// ===================================================================
7026
7027
17.1k
void PartitionSchemaPB_HashBucketSchemaPB::InitAsDefaultInstance() {
7028
17.1k
}
7029
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7030
const int PartitionSchemaPB_HashBucketSchemaPB::kColumnsFieldNumber;
7031
const int PartitionSchemaPB_HashBucketSchemaPB::kNumBucketsFieldNumber;
7032
const int PartitionSchemaPB_HashBucketSchemaPB::kSeedFieldNumber;
7033
const int PartitionSchemaPB_HashBucketSchemaPB::kHashAlgorithmFieldNumber;
7034
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7035
7036
PartitionSchemaPB_HashBucketSchemaPB::PartitionSchemaPB_HashBucketSchemaPB()
7037
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7038
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7039
0
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_HashBucketSchemaPB();
7040
0
  }
7041
17.1k
  SharedCtor();
7042
  // @@protoc_insertion_point(constructor:yb.PartitionSchemaPB.HashBucketSchemaPB)
7043
17.1k
}
7044
PartitionSchemaPB_HashBucketSchemaPB::PartitionSchemaPB_HashBucketSchemaPB(const PartitionSchemaPB_HashBucketSchemaPB& from)
7045
  : ::google::protobuf::Message(),
7046
      _internal_metadata_(NULL),
7047
      _has_bits_(from._has_bits_),
7048
      _cached_size_(0),
7049
0
      columns_(from.columns_) {
7050
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7051
0
  ::memcpy(&num_buckets_, &from.num_buckets_,
7052
0
    static_cast<size_t>(reinterpret_cast<char*>(&hash_algorithm_) -
7053
0
    reinterpret_cast<char*>(&num_buckets_)) + sizeof(hash_algorithm_));
7054
  // @@protoc_insertion_point(copy_constructor:yb.PartitionSchemaPB.HashBucketSchemaPB)
7055
0
}
7056
7057
17.1k
void PartitionSchemaPB_HashBucketSchemaPB::SharedCtor() {
7058
17.1k
  _cached_size_ = 0;
7059
17.1k
  ::memset(&num_buckets_, 0, static_cast<size_t>(
7060
17.1k
      reinterpret_cast<char*>(&hash_algorithm_) -
7061
17.1k
      reinterpret_cast<char*>(&num_buckets_)) + sizeof(hash_algorithm_));
7062
17.1k
}
7063
7064
0
PartitionSchemaPB_HashBucketSchemaPB::~PartitionSchemaPB_HashBucketSchemaPB() {
7065
  // @@protoc_insertion_point(destructor:yb.PartitionSchemaPB.HashBucketSchemaPB)
7066
0
  SharedDtor();
7067
0
}
7068
7069
0
void PartitionSchemaPB_HashBucketSchemaPB::SharedDtor() {
7070
0
}
7071
7072
0
void PartitionSchemaPB_HashBucketSchemaPB::SetCachedSize(int size) const {
7073
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7074
0
  _cached_size_ = size;
7075
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7076
0
}
7077
0
const ::google::protobuf::Descriptor* PartitionSchemaPB_HashBucketSchemaPB::descriptor() {
7078
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7079
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7080
0
}
7081
7082
0
const PartitionSchemaPB_HashBucketSchemaPB& PartitionSchemaPB_HashBucketSchemaPB::default_instance() {
7083
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB_HashBucketSchemaPB();
7084
0
  return *internal_default_instance();
7085
0
}
7086
7087
0
PartitionSchemaPB_HashBucketSchemaPB* PartitionSchemaPB_HashBucketSchemaPB::New(::google::protobuf::Arena* arena) const {
7088
0
  PartitionSchemaPB_HashBucketSchemaPB* n = new PartitionSchemaPB_HashBucketSchemaPB;
7089
0
  if (arena != NULL) {
7090
0
    arena->Own(n);
7091
0
  }
7092
0
  return n;
7093
0
}
7094
7095
0
void PartitionSchemaPB_HashBucketSchemaPB::Clear() {
7096
// @@protoc_insertion_point(message_clear_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7097
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7098
  // Prevent compiler warnings about cached_has_bits being unused
7099
0
  (void) cached_has_bits;
7100
7101
0
  columns_.Clear();
7102
0
  cached_has_bits = _has_bits_[0];
7103
0
  if (cached_has_bits & 7u) {
7104
0
    ::memset(&num_buckets_, 0, static_cast<size_t>(
7105
0
        reinterpret_cast<char*>(&hash_algorithm_) -
7106
0
        reinterpret_cast<char*>(&num_buckets_)) + sizeof(hash_algorithm_));
7107
0
  }
7108
0
  _has_bits_.Clear();
7109
0
  _internal_metadata_.Clear();
7110
0
}
7111
7112
bool PartitionSchemaPB_HashBucketSchemaPB::MergePartialFromCodedStream(
7113
0
    ::google::protobuf::io::CodedInputStream* input) {
7114
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7115
0
  ::google::protobuf::uint32 tag;
7116
  // @@protoc_insertion_point(parse_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7117
0
  for (;;) {
7118
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7119
0
    tag = p.first;
7120
0
    if (!p.second) goto handle_unusual;
7121
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7122
      // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
7123
0
      case 1: {
7124
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7125
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7126
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_columns()));
7127
0
        } else {
7128
0
          goto handle_unusual;
7129
0
        }
7130
0
        break;
7131
0
      }
7132
7133
      // required int32 num_buckets = 2;
7134
0
      case 2: {
7135
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7136
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7137
0
          set_has_num_buckets();
7138
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7139
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7140
0
                 input, &num_buckets_)));
7141
0
        } else {
7142
0
          goto handle_unusual;
7143
0
        }
7144
0
        break;
7145
0
      }
7146
7147
      // optional uint32 seed = 3;
7148
0
      case 3: {
7149
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7150
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7151
0
          set_has_seed();
7152
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7153
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7154
0
                 input, &seed_)));
7155
0
        } else {
7156
0
          goto handle_unusual;
7157
0
        }
7158
0
        break;
7159
0
      }
7160
7161
      // optional .yb.PartitionSchemaPB.HashBucketSchemaPB.HashAlgorithm hash_algorithm = 4;
7162
0
      case 4: {
7163
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7164
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
7165
0
          int value;
7166
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7167
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7168
0
                 input, &value)));
7169
0
          if (::yb::PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm_IsValid(value)) {
7170
0
            set_hash_algorithm(static_cast< ::yb::PartitionSchemaPB_HashBucketSchemaPB_HashAlgorithm >(value));
7171
0
          } else {
7172
0
            mutable_unknown_fields()->AddVarint(
7173
0
                4, static_cast< ::google::protobuf::uint64>(value));
7174
0
          }
7175
0
        } else {
7176
0
          goto handle_unusual;
7177
0
        }
7178
0
        break;
7179
0
      }
7180
7181
0
      default: {
7182
0
      handle_unusual:
7183
0
        if (tag == 0) {
7184
0
          goto success;
7185
0
        }
7186
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7187
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7188
0
        break;
7189
0
      }
7190
0
    }
7191
0
  }
7192
0
success:
7193
  // @@protoc_insertion_point(parse_success:yb.PartitionSchemaPB.HashBucketSchemaPB)
7194
0
  return true;
7195
0
failure:
7196
  // @@protoc_insertion_point(parse_failure:yb.PartitionSchemaPB.HashBucketSchemaPB)
7197
0
  return false;
7198
0
#undef DO_
7199
0
}
7200
7201
void PartitionSchemaPB_HashBucketSchemaPB::SerializeWithCachedSizes(
7202
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7203
  // @@protoc_insertion_point(serialize_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7204
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7205
0
  (void) cached_has_bits;
7206
7207
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
7208
0
  for (unsigned int i = 0,
7209
0
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
7210
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7211
0
      1, this->columns(static_cast<int>(i)), output);
7212
0
  }
7213
7214
0
  cached_has_bits = _has_bits_[0];
7215
  // required int32 num_buckets = 2;
7216
0
  if (cached_has_bits & 0x00000001u) {
7217
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_buckets(), output);
7218
0
  }
7219
7220
  // optional uint32 seed = 3;
7221
0
  if (cached_has_bits & 0x00000002u) {
7222
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->seed(), output);
7223
0
  }
7224
7225
  // optional .yb.PartitionSchemaPB.HashBucketSchemaPB.HashAlgorithm hash_algorithm = 4;
7226
0
  if (cached_has_bits & 0x00000004u) {
7227
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7228
0
      4, this->hash_algorithm(), output);
7229
0
  }
7230
7231
0
  if (_internal_metadata_.have_unknown_fields()) {
7232
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7233
0
        _internal_metadata_.unknown_fields(), output);
7234
0
  }
7235
  // @@protoc_insertion_point(serialize_end:yb.PartitionSchemaPB.HashBucketSchemaPB)
7236
0
}
7237
7238
::google::protobuf::uint8* PartitionSchemaPB_HashBucketSchemaPB::InternalSerializeWithCachedSizesToArray(
7239
0
    bool deterministic, ::google::protobuf::uint8* target) const {
7240
0
  (void)deterministic; // Unused
7241
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7242
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7243
0
  (void) cached_has_bits;
7244
7245
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
7246
0
  for (unsigned int i = 0,
7247
0
      n = static_cast<unsigned int>(this->columns_size()); i < n; i++) {
7248
0
    target = ::google::protobuf::internal::WireFormatLite::
7249
0
      InternalWriteMessageToArray(
7250
0
        1, this->columns(static_cast<int>(i)), deterministic, target);
7251
0
  }
7252
7253
0
  cached_has_bits = _has_bits_[0];
7254
  // required int32 num_buckets = 2;
7255
0
  if (cached_has_bits & 0x00000001u) {
7256
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_buckets(), target);
7257
0
  }
7258
7259
  // optional uint32 seed = 3;
7260
0
  if (cached_has_bits & 0x00000002u) {
7261
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->seed(), target);
7262
0
  }
7263
7264
  // optional .yb.PartitionSchemaPB.HashBucketSchemaPB.HashAlgorithm hash_algorithm = 4;
7265
0
  if (cached_has_bits & 0x00000004u) {
7266
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7267
0
      4, this->hash_algorithm(), target);
7268
0
  }
7269
7270
0
  if (_internal_metadata_.have_unknown_fields()) {
7271
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7272
0
        _internal_metadata_.unknown_fields(), target);
7273
0
  }
7274
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionSchemaPB.HashBucketSchemaPB)
7275
0
  return target;
7276
0
}
7277
7278
0
size_t PartitionSchemaPB_HashBucketSchemaPB::ByteSizeLong() const {
7279
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7280
0
  size_t total_size = 0;
7281
7282
0
  if (_internal_metadata_.have_unknown_fields()) {
7283
0
    total_size +=
7284
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7285
0
        _internal_metadata_.unknown_fields());
7286
0
  }
7287
  // required int32 num_buckets = 2;
7288
0
  if (has_num_buckets()) {
7289
0
    total_size += 1 +
7290
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
7291
0
        this->num_buckets());
7292
0
  }
7293
  // repeated .yb.PartitionSchemaPB.ColumnIdentifierPB columns = 1;
7294
0
  {
7295
0
    unsigned int count = static_cast<unsigned int>(this->columns_size());
7296
0
    total_size += 1UL * count;
7297
0
    for (unsigned int i = 0; i < count; i++) {
7298
0
      total_size +=
7299
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7300
0
          this->columns(static_cast<int>(i)));
7301
0
    }
7302
0
  }
7303
7304
0
  if (_has_bits_[0 / 32] & 6u) {
7305
    // optional uint32 seed = 3;
7306
0
    if (has_seed()) {
7307
0
      total_size += 1 +
7308
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
7309
0
          this->seed());
7310
0
    }
7311
7312
    // optional .yb.PartitionSchemaPB.HashBucketSchemaPB.HashAlgorithm hash_algorithm = 4;
7313
0
    if (has_hash_algorithm()) {
7314
0
      total_size += 1 +
7315
0
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->hash_algorithm());
7316
0
    }
7317
7318
0
  }
7319
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7320
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7321
0
  _cached_size_ = cached_size;
7322
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7323
0
  return total_size;
7324
0
}
7325
7326
0
void PartitionSchemaPB_HashBucketSchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
7327
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7328
0
  GOOGLE_DCHECK_NE(&from, this);
7329
0
  const PartitionSchemaPB_HashBucketSchemaPB* source =
7330
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionSchemaPB_HashBucketSchemaPB>(
7331
0
          &from);
7332
0
  if (source == NULL) {
7333
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionSchemaPB.HashBucketSchemaPB)
7334
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7335
0
  } else {
7336
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionSchemaPB.HashBucketSchemaPB)
7337
0
    MergeFrom(*source);
7338
0
  }
7339
0
}
7340
7341
0
void PartitionSchemaPB_HashBucketSchemaPB::MergeFrom(const PartitionSchemaPB_HashBucketSchemaPB& from) {
7342
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7343
0
  GOOGLE_DCHECK_NE(&from, this);
7344
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7345
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7346
0
  (void) cached_has_bits;
7347
7348
0
  columns_.MergeFrom(from.columns_);
7349
0
  cached_has_bits = from._has_bits_[0];
7350
0
  if (cached_has_bits & 7u) {
7351
0
    if (cached_has_bits & 0x00000001u) {
7352
0
      num_buckets_ = from.num_buckets_;
7353
0
    }
7354
0
    if (cached_has_bits & 0x00000002u) {
7355
0
      seed_ = from.seed_;
7356
0
    }
7357
0
    if (cached_has_bits & 0x00000004u) {
7358
0
      hash_algorithm_ = from.hash_algorithm_;
7359
0
    }
7360
0
    _has_bits_[0] |= cached_has_bits;
7361
0
  }
7362
0
}
7363
7364
0
void PartitionSchemaPB_HashBucketSchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
7365
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7366
0
  if (&from == this) return;
7367
0
  Clear();
7368
0
  MergeFrom(from);
7369
0
}
7370
7371
0
void PartitionSchemaPB_HashBucketSchemaPB::CopyFrom(const PartitionSchemaPB_HashBucketSchemaPB& from) {
7372
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionSchemaPB.HashBucketSchemaPB)
7373
0
  if (&from == this) return;
7374
0
  Clear();
7375
0
  MergeFrom(from);
7376
0
}
7377
7378
0
bool PartitionSchemaPB_HashBucketSchemaPB::IsInitialized() const {
7379
0
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
7380
0
  return true;
7381
0
}
7382
7383
0
void PartitionSchemaPB_HashBucketSchemaPB::Swap(PartitionSchemaPB_HashBucketSchemaPB* other) {
7384
0
  if (other == this) return;
7385
0
  InternalSwap(other);
7386
0
}
7387
0
void PartitionSchemaPB_HashBucketSchemaPB::InternalSwap(PartitionSchemaPB_HashBucketSchemaPB* other) {
7388
0
  using std::swap;
7389
0
  columns_.InternalSwap(&other->columns_);
7390
0
  swap(num_buckets_, other->num_buckets_);
7391
0
  swap(seed_, other->seed_);
7392
0
  swap(hash_algorithm_, other->hash_algorithm_);
7393
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7394
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7395
0
  swap(_cached_size_, other->_cached_size_);
7396
0
}
7397
7398
0
::google::protobuf::Metadata PartitionSchemaPB_HashBucketSchemaPB::GetMetadata() const {
7399
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7400
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
7401
0
}
7402
7403
7404
// ===================================================================
7405
7406
17.1k
void PartitionSchemaPB::InitAsDefaultInstance() {
7407
17.1k
  ::yb::_PartitionSchemaPB_default_instance_._instance.get_mutable()->range_schema_ = const_cast< ::yb::PartitionSchemaPB_RangeSchemaPB*>(
7408
17.1k
      ::yb::PartitionSchemaPB_RangeSchemaPB::internal_default_instance());
7409
17.1k
}
7410
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7411
const int PartitionSchemaPB::kHashBucketSchemasFieldNumber;
7412
const int PartitionSchemaPB::kRangeSchemaFieldNumber;
7413
const int PartitionSchemaPB::kHashSchemaFieldNumber;
7414
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7415
7416
PartitionSchemaPB::PartitionSchemaPB()
7417
142M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7418
142M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7419
142M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB();
7420
142M
  }
7421
142M
  SharedCtor();
7422
  // @@protoc_insertion_point(constructor:yb.PartitionSchemaPB)
7423
142M
}
7424
PartitionSchemaPB::PartitionSchemaPB(const PartitionSchemaPB& from)
7425
  : ::google::protobuf::Message(),
7426
      _internal_metadata_(NULL),
7427
      _has_bits_(from._has_bits_),
7428
      _cached_size_(0),
7429
495k
      hash_bucket_schemas_(from.hash_bucket_schemas_) {
7430
495k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7431
495k
  if (from.has_range_schema()) {
7432
1.30k
    range_schema_ = new ::yb::PartitionSchemaPB_RangeSchemaPB(*from.range_schema_);
7433
494k
  } else {
7434
494k
    range_schema_ = NULL;
7435
494k
  }
7436
495k
  hash_schema_ = from.hash_schema_;
7437
  // @@protoc_insertion_point(copy_constructor:yb.PartitionSchemaPB)
7438
495k
}
7439
7440
142M
void PartitionSchemaPB::SharedCtor() {
7441
142M
  _cached_size_ = 0;
7442
142M
  range_schema_ = NULL;
7443
142M
  hash_schema_ = 1;
7444
142M
}
7445
7446
142M
PartitionSchemaPB::~PartitionSchemaPB() {
7447
  // @@protoc_insertion_point(destructor:yb.PartitionSchemaPB)
7448
142M
  SharedDtor();
7449
142M
}
7450
7451
142M
void PartitionSchemaPB::SharedDtor() {
7452
142M
  if (this != internal_default_instance()) delete range_schema_;
7453
142M
}
7454
7455
0
void PartitionSchemaPB::SetCachedSize(int size) const {
7456
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7457
0
  _cached_size_ = size;
7458
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7459
0
}
7460
0
const ::google::protobuf::Descriptor* PartitionSchemaPB::descriptor() {
7461
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7462
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7463
0
}
7464
7465
0
const PartitionSchemaPB& PartitionSchemaPB::default_instance() {
7466
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionSchemaPB();
7467
0
  return *internal_default_instance();
7468
0
}
7469
7470
0
PartitionSchemaPB* PartitionSchemaPB::New(::google::protobuf::Arena* arena) const {
7471
0
  PartitionSchemaPB* n = new PartitionSchemaPB;
7472
0
  if (arena != NULL) {
7473
0
    arena->Own(n);
7474
0
  }
7475
0
  return n;
7476
0
}
7477
7478
140M
void PartitionSchemaPB::Clear() {
7479
// @@protoc_insertion_point(message_clear_start:yb.PartitionSchemaPB)
7480
140M
  ::google::protobuf::uint32 cached_has_bits = 0;
7481
  // Prevent compiler warnings about cached_has_bits being unused
7482
140M
  (void) cached_has_bits;
7483
7484
140M
  hash_bucket_schemas_.Clear();
7485
140M
  cached_has_bits = _has_bits_[0];
7486
140M
  if (cached_has_bits & 3u) {
7487
24
    if (cached_has_bits & 0x00000001u) {
7488
24
      GOOGLE_DCHECK(range_schema_ != NULL);
7489
24
      range_schema_->Clear();
7490
24
    }
7491
24
    hash_schema_ = 1;
7492
24
  }
7493
140M
  _has_bits_.Clear();
7494
140M
  _internal_metadata_.Clear();
7495
140M
}
7496
7497
bool PartitionSchemaPB::MergePartialFromCodedStream(
7498
958k
    ::google::protobuf::io::CodedInputStream* input) {
7499
171k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7500
958k
  ::google::protobuf::uint32 tag;
7501
  // @@protoc_insertion_point(parse_start:yb.PartitionSchemaPB)
7502
1.12M
  for (;;) {
7503
1.12M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7504
1.12M
    tag = p.first;
7505
1.12M
    if (!p.second) goto handle_unusual;
7506
171k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7507
      // repeated .yb.PartitionSchemaPB.HashBucketSchemaPB hash_bucket_schemas = 1;
7508
0
      case 1: {
7509
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7510
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7511
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_hash_bucket_schemas()));
7512
0
        } else {
7513
0
          goto handle_unusual;
7514
0
        }
7515
0
        break;
7516
0
      }
7517
7518
      // optional .yb.PartitionSchemaPB.RangeSchemaPB range_schema = 2;
7519
837
      case 2: {
7520
837
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7521
837
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7522
837
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7523
837
               input, mutable_range_schema()));
7524
0
        } else {
7525
0
          goto handle_unusual;
7526
0
        }
7527
837
        break;
7528
837
      }
7529
7530
      // optional .yb.PartitionSchemaPB.HashSchema hash_schema = 3;
7531
170k
      case 3: {
7532
170k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7533
170k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7534
170k
          int value;
7535
170k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7536
170k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7537
170k
                 input, &value)));
7538
170k
          if (::yb::PartitionSchemaPB_HashSchema_IsValid(value)) {
7539
170k
            set_hash_schema(static_cast< ::yb::PartitionSchemaPB_HashSchema >(value));
7540
559
          } else {
7541
559
            mutable_unknown_fields()->AddVarint(
7542
559
                3, static_cast< ::google::protobuf::uint64>(value));
7543
559
          }
7544
157
        } else {
7545
157
          goto handle_unusual;
7546
157
        }
7547
170k
        break;
7548
957k
      }
7549
7550
0
      default: {
7551
957k
      handle_unusual:
7552
957k
        if (tag == 0) {
7553
957k
          goto success;
7554
957k
        }
7555
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7556
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7557
18.4E
        break;
7558
18.4E
      }
7559
171k
    }
7560
171k
  }
7561
957k
success:
7562
  // @@protoc_insertion_point(parse_success:yb.PartitionSchemaPB)
7563
957k
  return true;
7564
0
failure:
7565
  // @@protoc_insertion_point(parse_failure:yb.PartitionSchemaPB)
7566
0
  return false;
7567
958k
#undef DO_
7568
958k
}
7569
7570
void PartitionSchemaPB::SerializeWithCachedSizes(
7571
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7572
  // @@protoc_insertion_point(serialize_start:yb.PartitionSchemaPB)
7573
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7574
0
  (void) cached_has_bits;
7575
7576
  // repeated .yb.PartitionSchemaPB.HashBucketSchemaPB hash_bucket_schemas = 1;
7577
0
  for (unsigned int i = 0,
7578
0
      n = static_cast<unsigned int>(this->hash_bucket_schemas_size()); i < n; i++) {
7579
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7580
0
      1, this->hash_bucket_schemas(static_cast<int>(i)), output);
7581
0
  }
7582
7583
0
  cached_has_bits = _has_bits_[0];
7584
  // optional .yb.PartitionSchemaPB.RangeSchemaPB range_schema = 2;
7585
0
  if (cached_has_bits & 0x00000001u) {
7586
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7587
0
      2, *this->range_schema_, output);
7588
0
  }
7589
7590
  // optional .yb.PartitionSchemaPB.HashSchema hash_schema = 3;
7591
0
  if (cached_has_bits & 0x00000002u) {
7592
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7593
0
      3, this->hash_schema(), output);
7594
0
  }
7595
7596
0
  if (_internal_metadata_.have_unknown_fields()) {
7597
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7598
0
        _internal_metadata_.unknown_fields(), output);
7599
0
  }
7600
  // @@protoc_insertion_point(serialize_end:yb.PartitionSchemaPB)
7601
0
}
7602
7603
::google::protobuf::uint8* PartitionSchemaPB::InternalSerializeWithCachedSizesToArray(
7604
141M
    bool deterministic, ::google::protobuf::uint8* target) const {
7605
141M
  (void)deterministic; // Unused
7606
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionSchemaPB)
7607
141M
  ::google::protobuf::uint32 cached_has_bits = 0;
7608
141M
  (void) cached_has_bits;
7609
7610
  // repeated .yb.PartitionSchemaPB.HashBucketSchemaPB hash_bucket_schemas = 1;
7611
141M
  for (unsigned int i = 0,
7612
141M
      n = static_cast<unsigned int>(this->hash_bucket_schemas_size()); i < n; i++) {
7613
0
    target = ::google::protobuf::internal::WireFormatLite::
7614
0
      InternalWriteMessageToArray(
7615
0
        1, this->hash_bucket_schemas(static_cast<int>(i)), deterministic, target);
7616
0
  }
7617
7618
141M
  cached_has_bits = _has_bits_[0];
7619
  // optional .yb.PartitionSchemaPB.RangeSchemaPB range_schema = 2;
7620
141M
  if (cached_has_bits & 0x00000001u) {
7621
140M
    target = ::google::protobuf::internal::WireFormatLite::
7622
140M
      InternalWriteMessageToArray(
7623
140M
        2, *this->range_schema_, deterministic, target);
7624
140M
  }
7625
7626
  // optional .yb.PartitionSchemaPB.HashSchema hash_schema = 3;
7627
141M
  if (cached_has_bits & 0x00000002u) {
7628
535k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7629
535k
      3, this->hash_schema(), target);
7630
535k
  }
7631
7632
141M
  if (_internal_metadata_.have_unknown_fields()) {
7633
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7634
0
        _internal_metadata_.unknown_fields(), target);
7635
0
  }
7636
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionSchemaPB)
7637
141M
  return target;
7638
141M
}
7639
7640
142M
size_t PartitionSchemaPB::ByteSizeLong() const {
7641
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionSchemaPB)
7642
142M
  size_t total_size = 0;
7643
7644
142M
  if (_internal_metadata_.have_unknown_fields()) {
7645
0
    total_size +=
7646
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7647
0
        _internal_metadata_.unknown_fields());
7648
0
  }
7649
  // repeated .yb.PartitionSchemaPB.HashBucketSchemaPB hash_bucket_schemas = 1;
7650
142M
  {
7651
142M
    unsigned int count = static_cast<unsigned int>(this->hash_bucket_schemas_size());
7652
142M
    total_size += 1UL * count;
7653
142M
    for (unsigned int i = 0; i < count; i++) {
7654
0
      total_size +=
7655
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7656
0
          this->hash_bucket_schemas(static_cast<int>(i)));
7657
0
    }
7658
142M
  }
7659
7660
142M
  if (_has_bits_[0 / 32] & 3u) {
7661
    // optional .yb.PartitionSchemaPB.RangeSchemaPB range_schema = 2;
7662
140M
    if (has_range_schema()) {
7663
140M
      total_size += 1 +
7664
140M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7665
140M
          *this->range_schema_);
7666
140M
    }
7667
7668
    // optional .yb.PartitionSchemaPB.HashSchema hash_schema = 3;
7669
140M
    if (has_hash_schema()) {
7670
702k
      total_size += 1 +
7671
702k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->hash_schema());
7672
702k
    }
7673
7674
140M
  }
7675
142M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7676
142M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7677
142M
  _cached_size_ = cached_size;
7678
142M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7679
142M
  return total_size;
7680
142M
}
7681
7682
0
void PartitionSchemaPB::MergeFrom(const ::google::protobuf::Message& from) {
7683
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionSchemaPB)
7684
0
  GOOGLE_DCHECK_NE(&from, this);
7685
0
  const PartitionSchemaPB* source =
7686
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionSchemaPB>(
7687
0
          &from);
7688
0
  if (source == NULL) {
7689
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionSchemaPB)
7690
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7691
0
  } else {
7692
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionSchemaPB)
7693
0
    MergeFrom(*source);
7694
0
  }
7695
0
}
7696
7697
682k
void PartitionSchemaPB::MergeFrom(const PartitionSchemaPB& from) {
7698
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionSchemaPB)
7699
682k
  GOOGLE_DCHECK_NE(&from, this);
7700
682k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7701
682k
  ::google::protobuf::uint32 cached_has_bits = 0;
7702
682k
  (void) cached_has_bits;
7703
7704
682k
  hash_bucket_schemas_.MergeFrom(from.hash_bucket_schemas_);
7705
682k
  cached_has_bits = from._has_bits_[0];
7706
682k
  if (cached_has_bits & 3u) {
7707
177k
    if (cached_has_bits & 0x00000001u) {
7708
768
      mutable_range_schema()->::yb::PartitionSchemaPB_RangeSchemaPB::MergeFrom(from.range_schema());
7709
768
    }
7710
177k
    if (cached_has_bits & 0x00000002u) {
7711
177k
      hash_schema_ = from.hash_schema_;
7712
177k
    }
7713
177k
    _has_bits_[0] |= cached_has_bits;
7714
177k
  }
7715
682k
}
7716
7717
0
void PartitionSchemaPB::CopyFrom(const ::google::protobuf::Message& from) {
7718
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionSchemaPB)
7719
0
  if (&from == this) return;
7720
0
  Clear();
7721
0
  MergeFrom(from);
7722
0
}
7723
7724
200k
void PartitionSchemaPB::CopyFrom(const PartitionSchemaPB& from) {
7725
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionSchemaPB)
7726
200k
  if (&from == this) return;
7727
200k
  Clear();
7728
200k
  MergeFrom(from);
7729
200k
}
7730
7731
143M
bool PartitionSchemaPB::IsInitialized() const {
7732
143M
  if (!::google::protobuf::internal::AllAreInitialized(this->hash_bucket_schemas())) return false;
7733
143M
  return true;
7734
143M
}
7735
7736
0
void PartitionSchemaPB::Swap(PartitionSchemaPB* other) {
7737
0
  if (other == this) return;
7738
0
  InternalSwap(other);
7739
0
}
7740
0
void PartitionSchemaPB::InternalSwap(PartitionSchemaPB* other) {
7741
0
  using std::swap;
7742
0
  hash_bucket_schemas_.InternalSwap(&other->hash_bucket_schemas_);
7743
0
  swap(range_schema_, other->range_schema_);
7744
0
  swap(hash_schema_, other->hash_schema_);
7745
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7746
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7747
0
  swap(_cached_size_, other->_cached_size_);
7748
0
}
7749
7750
1.41M
::google::protobuf::Metadata PartitionSchemaPB::GetMetadata() const {
7751
1.41M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7752
1.41M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
7753
1.41M
}
7754
7755
7756
// ===================================================================
7757
7758
17.1k
void PartitionPB::InitAsDefaultInstance() {
7759
17.1k
}
7760
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7761
const int PartitionPB::kHashBucketsFieldNumber;
7762
const int PartitionPB::kPartitionKeyStartFieldNumber;
7763
const int PartitionPB::kPartitionKeyEndFieldNumber;
7764
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7765
7766
PartitionPB::PartitionPB()
7767
1.44M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7768
1.42M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7769
1.42M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
7770
1.42M
  }
7771
1.44M
  SharedCtor();
7772
  // @@protoc_insertion_point(constructor:yb.PartitionPB)
7773
1.44M
}
7774
PartitionPB::PartitionPB(const PartitionPB& from)
7775
  : ::google::protobuf::Message(),
7776
      _internal_metadata_(NULL),
7777
      _has_bits_(from._has_bits_),
7778
      _cached_size_(0),
7779
342k
      hash_buckets_(from.hash_buckets_) {
7780
342k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7781
342k
  partition_key_start_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7782
342k
  if (from.has_partition_key_start()) {
7783
342k
    partition_key_start_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_start_);
7784
342k
  }
7785
342k
  partition_key_end_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7786
342k
  if (from.has_partition_key_end()) {
7787
342k
    partition_key_end_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_end_);
7788
342k
  }
7789
  // @@protoc_insertion_point(copy_constructor:yb.PartitionPB)
7790
342k
}
7791
7792
1.44M
void PartitionPB::SharedCtor() {
7793
1.44M
  _cached_size_ = 0;
7794
1.44M
  partition_key_start_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7795
1.44M
  partition_key_end_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7796
1.44M
}
7797
7798
1.67M
PartitionPB::~PartitionPB() {
7799
  // @@protoc_insertion_point(destructor:yb.PartitionPB)
7800
1.67M
  SharedDtor();
7801
1.67M
}
7802
7803
1.67M
void PartitionPB::SharedDtor() {
7804
1.67M
  partition_key_start_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7805
1.67M
  partition_key_end_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7806
1.67M
}
7807
7808
0
void PartitionPB::SetCachedSize(int size) const {
7809
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7810
0
  _cached_size_ = size;
7811
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7812
0
}
7813
0
const ::google::protobuf::Descriptor* PartitionPB::descriptor() {
7814
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
7815
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7816
0
}
7817
7818
0
const PartitionPB& PartitionPB::default_instance() {
7819
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
7820
0
  return *internal_default_instance();
7821
0
}
7822
7823
0
PartitionPB* PartitionPB::New(::google::protobuf::Arena* arena) const {
7824
0
  PartitionPB* n = new PartitionPB;
7825
0
  if (arena != NULL) {
7826
0
    arena->Own(n);
7827
0
  }
7828
0
  return n;
7829
0
}
7830
7831
1.23M
void PartitionPB::Clear() {
7832
// @@protoc_insertion_point(message_clear_start:yb.PartitionPB)
7833
1.23M
  ::google::protobuf::uint32 cached_has_bits = 0;
7834
  // Prevent compiler warnings about cached_has_bits being unused
7835
1.23M
  (void) cached_has_bits;
7836
7837
1.23M
  hash_buckets_.Clear();
7838
1.23M
  cached_has_bits = _has_bits_[0];
7839
1.23M
  if (cached_has_bits & 3u) {
7840
17.0k
    if (cached_has_bits & 0x00000001u) {
7841
17.0k
      GOOGLE_DCHECK(!partition_key_start_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7842
17.0k
      (*partition_key_start_.UnsafeRawStringPointer())->clear();
7843
17.0k
    }
7844
17.0k
    if (cached_has_bits & 0x00000002u) {
7845
17.0k
      GOOGLE_DCHECK(!partition_key_end_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7846
17.0k
      (*partition_key_end_.UnsafeRawStringPointer())->clear();
7847
17.0k
    }
7848
17.0k
  }
7849
1.23M
  _has_bits_.Clear();
7850
1.23M
  _internal_metadata_.Clear();
7851
1.23M
}
7852
7853
bool PartitionPB::MergePartialFromCodedStream(
7854
198k
    ::google::protobuf::io::CodedInputStream* input) {
7855
397k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7856
198k
  ::google::protobuf::uint32 tag;
7857
  // @@protoc_insertion_point(parse_start:yb.PartitionPB)
7858
595k
  for (;;) {
7859
595k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7860
595k
    tag = p.first;
7861
595k
    if (!p.second) goto handle_unusual;
7862
396k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7863
      // repeated int32 hash_buckets = 1 [packed = true];
7864
0
      case 1: {
7865
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7866
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7867
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
7868
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7869
0
                 input, this->mutable_hash_buckets())));
7870
0
        } else if (
7871
0
            static_cast< ::google::protobuf::uint8>(tag) ==
7872
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7873
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
7874
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7875
0
                 1, 10u, input, this->mutable_hash_buckets())));
7876
0
        } else {
7877
0
          goto handle_unusual;
7878
0
        }
7879
0
        break;
7880
0
      }
7881
7882
      // optional bytes partition_key_start = 2;
7883
198k
      case 2: {
7884
198k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7885
198k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7886
198k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7887
198k
                input, this->mutable_partition_key_start()));
7888
138
        } else {
7889
138
          goto handle_unusual;
7890
138
        }
7891
198k
        break;
7892
198k
      }
7893
7894
      // optional bytes partition_key_end = 3;
7895
198k
      case 3: {
7896
198k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7897
198k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7898
198k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7899
198k
                input, this->mutable_partition_key_end()));
7900
18.4E
        } else {
7901
18.4E
          goto handle_unusual;
7902
18.4E
        }
7903
198k
        break;
7904
198k
      }
7905
7906
0
      default: {
7907
198k
      handle_unusual:
7908
198k
        if (tag == 0) {
7909
198k
          goto success;
7910
198k
        }
7911
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7912
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7913
18.4E
        break;
7914
18.4E
      }
7915
396k
    }
7916
396k
  }
7917
198k
success:
7918
  // @@protoc_insertion_point(parse_success:yb.PartitionPB)
7919
198k
  return true;
7920
0
failure:
7921
  // @@protoc_insertion_point(parse_failure:yb.PartitionPB)
7922
0
  return false;
7923
198k
#undef DO_
7924
198k
}
7925
7926
void PartitionPB::SerializeWithCachedSizes(
7927
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7928
  // @@protoc_insertion_point(serialize_start:yb.PartitionPB)
7929
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7930
0
  (void) cached_has_bits;
7931
7932
  // repeated int32 hash_buckets = 1 [packed = true];
7933
0
  if (this->hash_buckets_size() > 0) {
7934
0
    ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
7935
0
    output->WriteVarint32(static_cast< ::google::protobuf::uint32>(
7936
0
        _hash_buckets_cached_byte_size_));
7937
0
  }
7938
0
  for (int i = 0, n = this->hash_buckets_size(); i < n; i++) {
7939
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
7940
0
      this->hash_buckets(i), output);
7941
0
  }
7942
7943
0
  cached_has_bits = _has_bits_[0];
7944
  // optional bytes partition_key_start = 2;
7945
0
  if (cached_has_bits & 0x00000001u) {
7946
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7947
0
      2, this->partition_key_start(), output);
7948
0
  }
7949
7950
  // optional bytes partition_key_end = 3;
7951
0
  if (cached_has_bits & 0x00000002u) {
7952
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7953
0
      3, this->partition_key_end(), output);
7954
0
  }
7955
7956
0
  if (_internal_metadata_.have_unknown_fields()) {
7957
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7958
0
        _internal_metadata_.unknown_fields(), output);
7959
0
  }
7960
  // @@protoc_insertion_point(serialize_end:yb.PartitionPB)
7961
0
}
7962
7963
::google::protobuf::uint8* PartitionPB::InternalSerializeWithCachedSizesToArray(
7964
1.17M
    bool deterministic, ::google::protobuf::uint8* target) const {
7965
1.17M
  (void)deterministic; // Unused
7966
  // @@protoc_insertion_point(serialize_to_array_start:yb.PartitionPB)
7967
1.17M
  ::google::protobuf::uint32 cached_has_bits = 0;
7968
1.17M
  (void) cached_has_bits;
7969
7970
  // repeated int32 hash_buckets = 1 [packed = true];
7971
1.17M
  if (this->hash_buckets_size() > 0) {
7972
0
    target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
7973
0
      1,
7974
0
      ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
7975
0
      target);
7976
0
    target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
7977
0
        static_cast< ::google::protobuf::int32>(
7978
0
            _hash_buckets_cached_byte_size_), target);
7979
0
    target = ::google::protobuf::internal::WireFormatLite::
7980
0
      WriteInt32NoTagToArray(this->hash_buckets_, target);
7981
0
  }
7982
7983
1.17M
  cached_has_bits = _has_bits_[0];
7984
  // optional bytes partition_key_start = 2;
7985
1.17M
  if (cached_has_bits & 0x00000001u) {
7986
1.16M
    target =
7987
1.16M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7988
1.16M
        2, this->partition_key_start(), target);
7989
1.16M
  }
7990
7991
  // optional bytes partition_key_end = 3;
7992
1.17M
  if (cached_has_bits & 0x00000002u) {
7993
1.16M
    target =
7994
1.16M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7995
1.16M
        3, this->partition_key_end(), target);
7996
1.16M
  }
7997
7998
1.17M
  if (_internal_metadata_.have_unknown_fields()) {
7999
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8000
0
        _internal_metadata_.unknown_fields(), target);
8001
0
  }
8002
  // @@protoc_insertion_point(serialize_to_array_end:yb.PartitionPB)
8003
1.17M
  return target;
8004
1.17M
}
8005
8006
1.37M
size_t PartitionPB::ByteSizeLong() const {
8007
// @@protoc_insertion_point(message_byte_size_start:yb.PartitionPB)
8008
1.37M
  size_t total_size = 0;
8009
8010
1.37M
  if (_internal_metadata_.have_unknown_fields()) {
8011
0
    total_size +=
8012
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8013
0
        _internal_metadata_.unknown_fields());
8014
0
  }
8015
  // repeated int32 hash_buckets = 1 [packed = true];
8016
1.37M
  {
8017
1.37M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
8018
1.37M
      Int32Size(this->hash_buckets_);
8019
1.37M
    if (data_size > 0) {
8020
0
      total_size += 1 +
8021
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
8022
0
            static_cast< ::google::protobuf::int32>(data_size));
8023
0
    }
8024
1.37M
    int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
8025
1.37M
    GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8026
1.37M
    _hash_buckets_cached_byte_size_ = cached_size;
8027
1.37M
    GOOGLE_SAFE_CONCURRENT_WRITES_END();
8028
1.37M
    total_size += data_size;
8029
1.37M
  }
8030
8031
1.37M
  if (_has_bits_[0 / 32] & 3u) {
8032
    // optional bytes partition_key_start = 2;
8033
1.37M
    if (has_partition_key_start()) {
8034
1.37M
      total_size += 1 +
8035
1.37M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8036
1.37M
          this->partition_key_start());
8037
1.37M
    }
8038
8039
    // optional bytes partition_key_end = 3;
8040
1.37M
    if (has_partition_key_end()) {
8041
1.37M
      total_size += 1 +
8042
1.37M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8043
1.37M
          this->partition_key_end());
8044
1.37M
    }
8045
8046
1.37M
  }
8047
1.37M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8048
1.37M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8049
1.37M
  _cached_size_ = cached_size;
8050
1.37M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8051
1.37M
  return total_size;
8052
1.37M
}
8053
8054
0
void PartitionPB::MergeFrom(const ::google::protobuf::Message& from) {
8055
// @@protoc_insertion_point(generalized_merge_from_start:yb.PartitionPB)
8056
0
  GOOGLE_DCHECK_NE(&from, this);
8057
0
  const PartitionPB* source =
8058
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PartitionPB>(
8059
0
          &from);
8060
0
  if (source == NULL) {
8061
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PartitionPB)
8062
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8063
0
  } else {
8064
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PartitionPB)
8065
0
    MergeFrom(*source);
8066
0
  }
8067
0
}
8068
8069
347k
void PartitionPB::MergeFrom(const PartitionPB& from) {
8070
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PartitionPB)
8071
347k
  GOOGLE_DCHECK_NE(&from, this);
8072
347k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8073
347k
  ::google::protobuf::uint32 cached_has_bits = 0;
8074
347k
  (void) cached_has_bits;
8075
8076
347k
  hash_buckets_.MergeFrom(from.hash_buckets_);
8077
347k
  cached_has_bits = from._has_bits_[0];
8078
347k
  if (cached_has_bits & 3u) {
8079
346k
    if (cached_has_bits & 0x00000001u) {
8080
346k
      set_has_partition_key_start();
8081
346k
      partition_key_start_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_start_);
8082
346k
    }
8083
346k
    if (cached_has_bits & 0x00000002u) {
8084
346k
      set_has_partition_key_end();
8085
346k
      partition_key_end_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_end_);
8086
346k
    }
8087
346k
  }
8088
347k
}
8089
8090
0
void PartitionPB::CopyFrom(const ::google::protobuf::Message& from) {
8091
// @@protoc_insertion_point(generalized_copy_from_start:yb.PartitionPB)
8092
0
  if (&from == this) return;
8093
0
  Clear();
8094
0
  MergeFrom(from);
8095
0
}
8096
8097
333k
void PartitionPB::CopyFrom(const PartitionPB& from) {
8098
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PartitionPB)
8099
333k
  if (&from == this) return;
8100
333k
  Clear();
8101
333k
  MergeFrom(from);
8102
333k
}
8103
8104
0
bool PartitionPB::IsInitialized() const {
8105
0
  return true;
8106
0
}
8107
8108
0
void PartitionPB::Swap(PartitionPB* other) {
8109
0
  if (other == this) return;
8110
0
  InternalSwap(other);
8111
0
}
8112
180
void PartitionPB::InternalSwap(PartitionPB* other) {
8113
180
  using std::swap;
8114
180
  hash_buckets_.InternalSwap(&other->hash_buckets_);
8115
180
  partition_key_start_.Swap(&other->partition_key_start_);
8116
180
  partition_key_end_.Swap(&other->partition_key_end_);
8117
180
  swap(_has_bits_[0], other->_has_bits_[0]);
8118
180
  _internal_metadata_.Swap(&other->_internal_metadata_);
8119
180
  swap(_cached_size_, other->_cached_size_);
8120
180
}
8121
8122
1.93M
::google::protobuf::Metadata PartitionPB::GetMetadata() const {
8123
1.93M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
8124
1.93M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
8125
1.93M
}
8126
8127
8128
// ===================================================================
8129
8130
17.1k
void TransactionMetadataPB::InitAsDefaultInstance() {
8131
17.1k
}
8132
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8133
const int TransactionMetadataPB::kTransactionIdFieldNumber;
8134
const int TransactionMetadataPB::kIsolationFieldNumber;
8135
const int TransactionMetadataPB::kStatusTabletFieldNumber;
8136
const int TransactionMetadataPB::kPriorityFieldNumber;
8137
const int TransactionMetadataPB::kStartHybridTimeFieldNumber;
8138
const int TransactionMetadataPB::kMetadataWriteTimeFieldNumber;
8139
const int TransactionMetadataPB::kLocalityFieldNumber;
8140
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8141
8142
TransactionMetadataPB::TransactionMetadataPB()
8143
3.27M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8144
3.25M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8145
3.25M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB();
8146
3.25M
  }
8147
3.27M
  SharedCtor();
8148
  // @@protoc_insertion_point(constructor:yb.TransactionMetadataPB)
8149
3.27M
}
8150
TransactionMetadataPB::TransactionMetadataPB(const TransactionMetadataPB& from)
8151
  : ::google::protobuf::Message(),
8152
      _internal_metadata_(NULL),
8153
      _has_bits_(from._has_bits_),
8154
1.16M
      _cached_size_(0) {
8155
1.16M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8156
1.16M
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8157
1.16M
  if (from.has_transaction_id()) {
8158
1.16M
    transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
8159
1.16M
  }
8160
1.16M
  status_tablet_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8161
1.16M
  if (from.has_status_tablet()) {
8162
1.16M
    status_tablet_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_tablet_);
8163
1.16M
  }
8164
1.16M
  ::memcpy(&priority_, &from.priority_,
8165
1.16M
    static_cast<size_t>(reinterpret_cast<char*>(&locality_) -
8166
1.16M
    reinterpret_cast<char*>(&priority_)) + sizeof(locality_));
8167
  // @@protoc_insertion_point(copy_constructor:yb.TransactionMetadataPB)
8168
1.16M
}
8169
8170
3.27M
void TransactionMetadataPB::SharedCtor() {
8171
3.27M
  _cached_size_ = 0;
8172
3.27M
  transaction_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8173
3.27M
  status_tablet_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8174
3.27M
  ::memset(&priority_, 0, static_cast<size_t>(
8175
3.27M
      reinterpret_cast<char*>(&isolation_) -
8176
3.27M
      reinterpret_cast<char*>(&priority_)) + sizeof(isolation_));
8177
3.27M
  locality_ = 1;
8178
3.27M
}
8179
8180
4.42M
TransactionMetadataPB::~TransactionMetadataPB() {
8181
  // @@protoc_insertion_point(destructor:yb.TransactionMetadataPB)
8182
4.42M
  SharedDtor();
8183
4.42M
}
8184
8185
4.42M
void TransactionMetadataPB::SharedDtor() {
8186
4.42M
  transaction_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8187
4.42M
  status_tablet_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8188
4.42M
}
8189
8190
0
void TransactionMetadataPB::SetCachedSize(int size) const {
8191
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8192
0
  _cached_size_ = size;
8193
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8194
0
}
8195
0
const ::google::protobuf::Descriptor* TransactionMetadataPB::descriptor() {
8196
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
8197
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8198
0
}
8199
8200
0
const TransactionMetadataPB& TransactionMetadataPB::default_instance() {
8201
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionMetadataPB();
8202
0
  return *internal_default_instance();
8203
0
}
8204
8205
0
TransactionMetadataPB* TransactionMetadataPB::New(::google::protobuf::Arena* arena) const {
8206
0
  TransactionMetadataPB* n = new TransactionMetadataPB;
8207
0
  if (arena != NULL) {
8208
0
    arena->Own(n);
8209
0
  }
8210
0
  return n;
8211
0
}
8212
8213
143k
void TransactionMetadataPB::Clear() {
8214
// @@protoc_insertion_point(message_clear_start:yb.TransactionMetadataPB)
8215
143k
  ::google::protobuf::uint32 cached_has_bits = 0;
8216
  // Prevent compiler warnings about cached_has_bits being unused
8217
143k
  (void) cached_has_bits;
8218
8219
143k
  cached_has_bits = _has_bits_[0];
8220
143k
  if (cached_has_bits & 3u) {
8221
1.45k
    if (cached_has_bits & 0x00000001u) {
8222
1.45k
      GOOGLE_DCHECK(!transaction_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8223
1.45k
      (*transaction_id_.UnsafeRawStringPointer())->clear();
8224
1.45k
    }
8225
1.45k
    if (cached_has_bits & 0x00000002u) {
8226
1.45k
      GOOGLE_DCHECK(!status_tablet_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8227
1.45k
      (*status_tablet_.UnsafeRawStringPointer())->clear();
8228
1.45k
    }
8229
1.45k
  }
8230
143k
  if (cached_has_bits & 124u) {
8231
1.45k
    ::memset(&priority_, 0, static_cast<size_t>(
8232
1.45k
        reinterpret_cast<char*>(&isolation_) -
8233
1.45k
        reinterpret_cast<char*>(&priority_)) + sizeof(isolation_));
8234
1.45k
    locality_ = 1;
8235
1.45k
  }
8236
143k
  _has_bits_.Clear();
8237
143k
  _internal_metadata_.Clear();
8238
143k
}
8239
8240
bool TransactionMetadataPB::MergePartialFromCodedStream(
8241
1.72M
    ::google::protobuf::io::CodedInputStream* input) {
8242
7.21M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8243
1.72M
  ::google::protobuf::uint32 tag;
8244
  // @@protoc_insertion_point(parse_start:yb.TransactionMetadataPB)
8245
8.93M
  for (;;) {
8246
8.93M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8247
8.93M
    tag = p.first;
8248
8.93M
    if (!p.second) goto handle_unusual;
8249
7.21M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8250
      // optional bytes transaction_id = 1;
8251
1.72M
      case 1: {
8252
1.72M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8253
1.72M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
8254
1.72M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8255
1.72M
                input, this->mutable_transaction_id()));
8256
52
        } else {
8257
52
          goto handle_unusual;
8258
52
        }
8259
1.72M
        break;
8260
1.72M
      }
8261
8262
      // optional .yb.IsolationLevel isolation = 2 [default = NON_TRANSACTIONAL];
8263
1.09M
      case 2: {
8264
1.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8265
1.09M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
8266
1.09M
          int value;
8267
1.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8268
1.09M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8269
1.09M
                 input, &value)));
8270
1.09M
          if (::yb::IsolationLevel_IsValid(value)) {
8271
1.09M
            set_isolation(static_cast< ::yb::IsolationLevel >(value));
8272
773
          } else {
8273
773
            mutable_unknown_fields()->AddVarint(
8274
773
                2, static_cast< ::google::protobuf::uint64>(value));
8275
773
          }
8276
18.4E
        } else {
8277
18.4E
          goto handle_unusual;
8278
18.4E
        }
8279
1.09M
        break;
8280
1.09M
      }
8281
8282
      // optional string status_tablet = 3;
8283
1.09M
      case 3: {
8284
1.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8285
1.09M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
8286
1.09M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8287
1.09M
                input, this->mutable_status_tablet()));
8288
1.09M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8289
1.09M
            this->status_tablet().data(), static_cast<int>(this->status_tablet().length()),
8290
1.09M
            ::google::protobuf::internal::WireFormat::PARSE,
8291
1.09M
            "yb.TransactionMetadataPB.status_tablet");
8292
18.4E
        } else {
8293
18.4E
          goto handle_unusual;
8294
18.4E
        }
8295
1.09M
        break;
8296
1.09M
      }
8297
8298
      // optional fixed64 priority = 4;
8299
1.09M
      case 4: {
8300
1.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8301
1.09M
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
8302
1.09M
          set_has_priority();
8303
1.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8304
1.09M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8305
1.09M
                 input, &priority_)));
8306
18.4E
        } else {
8307
18.4E
          goto handle_unusual;
8308
18.4E
        }
8309
1.09M
        break;
8310
1.09M
      }
8311
8312
      // optional fixed64 start_hybrid_time = 5;
8313
1.09M
      case 5: {
8314
1.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8315
1.09M
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
8316
1.09M
          set_has_start_hybrid_time();
8317
1.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8318
1.09M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8319
1.09M
                 input, &start_hybrid_time_)));
8320
18.4E
        } else {
8321
18.4E
          goto handle_unusual;
8322
18.4E
        }
8323
1.09M
        break;
8324
1.09M
      }
8325
8326
      // optional fixed64 metadata_write_time = 6;
8327
4
      case 6: {
8328
4
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8329
4
            static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
8330
4
          set_has_metadata_write_time();
8331
4
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8332
4
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8333
4
                 input, &metadata_write_time_)));
8334
0
        } else {
8335
0
          goto handle_unusual;
8336
0
        }
8337
4
        break;
8338
4
      }
8339
8340
      // optional .yb.TransactionLocality locality = 7;
8341
1.09M
      case 7: {
8342
1.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8343
1.09M
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8344
1.09M
          int value;
8345
1.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8346
1.09M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8347
1.09M
                 input, &value)));
8348
1.09M
          if (::yb::TransactionLocality_IsValid(value)) {
8349
1.09M
            set_locality(static_cast< ::yb::TransactionLocality >(value));
8350
222
          } else {
8351
222
            mutable_unknown_fields()->AddVarint(
8352
222
                7, static_cast< ::google::protobuf::uint64>(value));
8353
222
          }
8354
18.4E
        } else {
8355
18.4E
          goto handle_unusual;
8356
18.4E
        }
8357
1.09M
        break;
8358
1.72M
      }
8359
8360
0
      default: {
8361
1.72M
      handle_unusual:
8362
1.72M
        if (tag == 0) {
8363
1.72M
          goto success;
8364
1.72M
        }
8365
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8366
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8367
18.4E
        break;
8368
18.4E
      }
8369
7.21M
    }
8370
7.21M
  }
8371
1.72M
success:
8372
  // @@protoc_insertion_point(parse_success:yb.TransactionMetadataPB)
8373
1.72M
  return true;
8374
0
failure:
8375
  // @@protoc_insertion_point(parse_failure:yb.TransactionMetadataPB)
8376
0
  return false;
8377
1.72M
#undef DO_
8378
1.72M
}
8379
8380
void TransactionMetadataPB::SerializeWithCachedSizes(
8381
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8382
  // @@protoc_insertion_point(serialize_start:yb.TransactionMetadataPB)
8383
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8384
0
  (void) cached_has_bits;
8385
8386
0
  cached_has_bits = _has_bits_[0];
8387
  // optional bytes transaction_id = 1;
8388
0
  if (cached_has_bits & 0x00000001u) {
8389
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8390
0
      1, this->transaction_id(), output);
8391
0
  }
8392
8393
  // optional .yb.IsolationLevel isolation = 2 [default = NON_TRANSACTIONAL];
8394
0
  if (cached_has_bits & 0x00000020u) {
8395
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8396
0
      2, this->isolation(), output);
8397
0
  }
8398
8399
  // optional string status_tablet = 3;
8400
0
  if (cached_has_bits & 0x00000002u) {
8401
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8402
0
      this->status_tablet().data(), static_cast<int>(this->status_tablet().length()),
8403
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8404
0
      "yb.TransactionMetadataPB.status_tablet");
8405
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
8406
0
      3, this->status_tablet(), output);
8407
0
  }
8408
8409
  // optional fixed64 priority = 4;
8410
0
  if (cached_has_bits & 0x00000004u) {
8411
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->priority(), output);
8412
0
  }
8413
8414
  // optional fixed64 start_hybrid_time = 5;
8415
0
  if (cached_has_bits & 0x00000008u) {
8416
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->start_hybrid_time(), output);
8417
0
  }
8418
8419
  // optional fixed64 metadata_write_time = 6;
8420
0
  if (cached_has_bits & 0x00000010u) {
8421
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(6, this->metadata_write_time(), output);
8422
0
  }
8423
8424
  // optional .yb.TransactionLocality locality = 7;
8425
0
  if (cached_has_bits & 0x00000040u) {
8426
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
8427
0
      7, this->locality(), output);
8428
0
  }
8429
8430
0
  if (_internal_metadata_.have_unknown_fields()) {
8431
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8432
0
        _internal_metadata_.unknown_fields(), output);
8433
0
  }
8434
  // @@protoc_insertion_point(serialize_end:yb.TransactionMetadataPB)
8435
0
}
8436
8437
::google::protobuf::uint8* TransactionMetadataPB::InternalSerializeWithCachedSizesToArray(
8438
3.91M
    bool deterministic, ::google::protobuf::uint8* target) const {
8439
3.91M
  (void)deterministic; // Unused
8440
  // @@protoc_insertion_point(serialize_to_array_start:yb.TransactionMetadataPB)
8441
3.91M
  ::google::protobuf::uint32 cached_has_bits = 0;
8442
3.91M
  (void) cached_has_bits;
8443
8444
3.91M
  cached_has_bits = _has_bits_[0];
8445
  // optional bytes transaction_id = 1;
8446
3.91M
  if (cached_has_bits & 0x00000001u) {
8447
3.91M
    target =
8448
3.91M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8449
3.91M
        1, this->transaction_id(), target);
8450
3.91M
  }
8451
8452
  // optional .yb.IsolationLevel isolation = 2 [default = NON_TRANSACTIONAL];
8453
3.91M
  if (cached_has_bits & 0x00000020u) {
8454
3.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8455
3.10M
      2, this->isolation(), target);
8456
3.10M
  }
8457
8458
  // optional string status_tablet = 3;
8459
3.91M
  if (cached_has_bits & 0x00000002u) {
8460
3.10M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8461
3.10M
      this->status_tablet().data(), static_cast<int>(this->status_tablet().length()),
8462
3.10M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
8463
3.10M
      "yb.TransactionMetadataPB.status_tablet");
8464
3.10M
    target =
8465
3.10M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8466
3.10M
        3, this->status_tablet(), target);
8467
3.10M
  }
8468
8469
  // optional fixed64 priority = 4;
8470
3.91M
  if (cached_has_bits & 0x00000004u) {
8471
3.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->priority(), target);
8472
3.10M
  }
8473
8474
  // optional fixed64 start_hybrid_time = 5;
8475
3.91M
  if (cached_has_bits & 0x00000008u) {
8476
3.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->start_hybrid_time(), target);
8477
3.10M
  }
8478
8479
  // optional fixed64 metadata_write_time = 6;
8480
3.91M
  if (cached_has_bits & 0x00000010u) {
8481
967k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(6, this->metadata_write_time(), target);
8482
967k
  }
8483
8484
  // optional .yb.TransactionLocality locality = 7;
8485
3.91M
  if (cached_has_bits & 0x00000040u) {
8486
3.10M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8487
3.10M
      7, this->locality(), target);
8488
3.10M
  }
8489
8490
3.91M
  if (_internal_metadata_.have_unknown_fields()) {
8491
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8492
0
        _internal_metadata_.unknown_fields(), target);
8493
0
  }
8494
  // @@protoc_insertion_point(serialize_to_array_end:yb.TransactionMetadataPB)
8495
3.91M
  return target;
8496
3.91M
}
8497
8498
7.74M
size_t TransactionMetadataPB::ByteSizeLong() const {
8499
// @@protoc_insertion_point(message_byte_size_start:yb.TransactionMetadataPB)
8500
7.74M
  size_t total_size = 0;
8501
8502
7.74M
  if (_internal_metadata_.have_unknown_fields()) {
8503
0
    total_size +=
8504
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8505
0
        _internal_metadata_.unknown_fields());
8506
0
  }
8507
7.74M
  if (_has_bits_[0 / 32] & 127u) {
8508
    // optional bytes transaction_id = 1;
8509
7.74M
    if (has_transaction_id()) {
8510
7.74M
      total_size += 1 +
8511
7.74M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8512
7.74M
          this->transaction_id());
8513
7.74M
    }
8514
8515
    // optional string status_tablet = 3;
8516
7.74M
    if (has_status_tablet()) {
8517
5.92M
      total_size += 1 +
8518
5.92M
        ::google::protobuf::internal::WireFormatLite::StringSize(
8519
5.92M
          this->status_tablet());
8520
5.92M
    }
8521
8522
    // optional fixed64 priority = 4;
8523
7.74M
    if (has_priority()) {
8524
5.92M
      total_size += 1 + 8;
8525
5.92M
    }
8526
8527
    // optional fixed64 start_hybrid_time = 5;
8528
7.74M
    if (has_start_hybrid_time()) {
8529
5.92M
      total_size += 1 + 8;
8530
5.92M
    }
8531
8532
    // optional fixed64 metadata_write_time = 6;
8533
7.74M
    if (has_metadata_write_time()) {
8534
967k
      total_size += 1 + 8;
8535
967k
    }
8536
8537
    // optional .yb.IsolationLevel isolation = 2 [default = NON_TRANSACTIONAL];
8538
7.74M
    if (has_isolation()) {
8539
5.92M
      total_size += 1 +
8540
5.92M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->isolation());
8541
5.92M
    }
8542
8543
    // optional .yb.TransactionLocality locality = 7;
8544
7.74M
    if (has_locality()) {
8545
5.92M
      total_size += 1 +
8546
5.92M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->locality());
8547
5.92M
    }
8548
8549
7.74M
  }
8550
7.74M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8551
7.74M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8552
7.74M
  _cached_size_ = cached_size;
8553
7.74M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8554
7.74M
  return total_size;
8555
7.74M
}
8556
8557
0
void TransactionMetadataPB::MergeFrom(const ::google::protobuf::Message& from) {
8558
// @@protoc_insertion_point(generalized_merge_from_start:yb.TransactionMetadataPB)
8559
0
  GOOGLE_DCHECK_NE(&from, this);
8560
0
  const TransactionMetadataPB* source =
8561
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TransactionMetadataPB>(
8562
0
          &from);
8563
0
  if (source == NULL) {
8564
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.TransactionMetadataPB)
8565
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8566
0
  } else {
8567
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.TransactionMetadataPB)
8568
0
    MergeFrom(*source);
8569
0
  }
8570
0
}
8571
8572
548k
void TransactionMetadataPB::MergeFrom(const TransactionMetadataPB& from) {
8573
// @@protoc_insertion_point(class_specific_merge_from_start:yb.TransactionMetadataPB)
8574
548k
  GOOGLE_DCHECK_NE(&from, this);
8575
548k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8576
548k
  ::google::protobuf::uint32 cached_has_bits = 0;
8577
548k
  (void) cached_has_bits;
8578
8579
548k
  cached_has_bits = from._has_bits_[0];
8580
548k
  if (cached_has_bits & 127u) {
8581
546k
    if (cached_has_bits & 0x00000001u) {
8582
546k
      set_has_transaction_id();
8583
546k
      transaction_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_id_);
8584
546k
    }
8585
545k
    if (cached_has_bits & 0x00000002u) {
8586
446k
      set_has_status_tablet();
8587
446k
      status_tablet_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_tablet_);
8588
446k
    }
8589
545k
    if (cached_has_bits & 0x00000004u) {
8590
446k
      priority_ = from.priority_;
8591
446k
    }
8592
545k
    if (cached_has_bits & 0x00000008u) {
8593
446k
      start_hybrid_time_ = from.start_hybrid_time_;
8594
446k
    }
8595
545k
    if (cached_has_bits & 0x00000010u) {
8596
0
      metadata_write_time_ = from.metadata_write_time_;
8597
0
    }
8598
545k
    if (cached_has_bits & 0x00000020u) {
8599
446k
      isolation_ = from.isolation_;
8600
446k
    }
8601
545k
    if (cached_has_bits & 0x00000040u) {
8602
446k
      locality_ = from.locality_;
8603
446k
    }
8604
545k
    _has_bits_[0] |= cached_has_bits;
8605
545k
  }
8606
548k
}
8607
8608
0
void TransactionMetadataPB::CopyFrom(const ::google::protobuf::Message& from) {
8609
// @@protoc_insertion_point(generalized_copy_from_start:yb.TransactionMetadataPB)
8610
0
  if (&from == this) return;
8611
0
  Clear();
8612
0
  MergeFrom(from);
8613
0
}
8614
8615
142k
void TransactionMetadataPB::CopyFrom(const TransactionMetadataPB& from) {
8616
// @@protoc_insertion_point(class_specific_copy_from_start:yb.TransactionMetadataPB)
8617
142k
  if (&from == this) return;
8618
142k
  Clear();
8619
142k
  MergeFrom(from);
8620
142k
}
8621
8622
968k
bool TransactionMetadataPB::IsInitialized() const {
8623
968k
  return true;
8624
968k
}
8625
8626
0
void TransactionMetadataPB::Swap(TransactionMetadataPB* other) {
8627
0
  if (other == this) return;
8628
0
  InternalSwap(other);
8629
0
}
8630
0
void TransactionMetadataPB::InternalSwap(TransactionMetadataPB* other) {
8631
0
  using std::swap;
8632
0
  transaction_id_.Swap(&other->transaction_id_);
8633
0
  status_tablet_.Swap(&other->status_tablet_);
8634
0
  swap(priority_, other->priority_);
8635
0
  swap(start_hybrid_time_, other->start_hybrid_time_);
8636
0
  swap(metadata_write_time_, other->metadata_write_time_);
8637
0
  swap(isolation_, other->isolation_);
8638
0
  swap(locality_, other->locality_);
8639
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8640
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8641
0
  swap(_cached_size_, other->_cached_size_);
8642
0
}
8643
8644
4.16M
::google::protobuf::Metadata TransactionMetadataPB::GetMetadata() const {
8645
4.16M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
8646
4.16M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
8647
4.16M
}
8648
8649
8650
// ===================================================================
8651
8652
17.1k
void ReadHybridTimePB::InitAsDefaultInstance() {
8653
17.1k
}
8654
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8655
const int ReadHybridTimePB::kReadHtFieldNumber;
8656
const int ReadHybridTimePB::kDEPRECATEDMaxOfReadTimeAndLocalLimitHtFieldNumber;
8657
const int ReadHybridTimePB::kGlobalLimitHtFieldNumber;
8658
const int ReadHybridTimePB::kInTxnLimitHtFieldNumber;
8659
const int ReadHybridTimePB::kLocalLimitHtFieldNumber;
8660
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8661
8662
ReadHybridTimePB::ReadHybridTimePB()
8663
7.04M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8664
7.00M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8665
7.00M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
8666
7.00M
  }
8667
7.04M
  SharedCtor();
8668
  // @@protoc_insertion_point(constructor:yb.ReadHybridTimePB)
8669
7.04M
}
8670
ReadHybridTimePB::ReadHybridTimePB(const ReadHybridTimePB& from)
8671
  : ::google::protobuf::Message(),
8672
      _internal_metadata_(NULL),
8673
      _has_bits_(from._has_bits_),
8674
164k
      _cached_size_(0) {
8675
164k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8676
164k
  ::memcpy(&read_ht_, &from.read_ht_,
8677
164k
    static_cast<size_t>(reinterpret_cast<char*>(&local_limit_ht_) -
8678
164k
    reinterpret_cast<char*>(&read_ht_)) + sizeof(local_limit_ht_));
8679
  // @@protoc_insertion_point(copy_constructor:yb.ReadHybridTimePB)
8680
164k
}
8681
8682
7.03M
void ReadHybridTimePB::SharedCtor() {
8683
7.03M
  _cached_size_ = 0;
8684
7.03M
  ::memset(&read_ht_, 0, static_cast<size_t>(
8685
7.03M
      reinterpret_cast<char*>(&local_limit_ht_) -
8686
7.03M
      reinterpret_cast<char*>(&read_ht_)) + sizeof(local_limit_ht_));
8687
7.03M
}
8688
8689
7.19M
ReadHybridTimePB::~ReadHybridTimePB() {
8690
  // @@protoc_insertion_point(destructor:yb.ReadHybridTimePB)
8691
7.19M
  SharedDtor();
8692
7.19M
}
8693
8694
7.19M
void ReadHybridTimePB::SharedDtor() {
8695
7.19M
}
8696
8697
0
void ReadHybridTimePB::SetCachedSize(int size) const {
8698
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8699
0
  _cached_size_ = size;
8700
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8701
0
}
8702
0
const ::google::protobuf::Descriptor* ReadHybridTimePB::descriptor() {
8703
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
8704
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8705
0
}
8706
8707
0
const ReadHybridTimePB& ReadHybridTimePB::default_instance() {
8708
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
8709
0
  return *internal_default_instance();
8710
0
}
8711
8712
0
ReadHybridTimePB* ReadHybridTimePB::New(::google::protobuf::Arena* arena) const {
8713
0
  ReadHybridTimePB* n = new ReadHybridTimePB;
8714
0
  if (arena != NULL) {
8715
0
    arena->Own(n);
8716
0
  }
8717
0
  return n;
8718
0
}
8719
8720
4.23k
void ReadHybridTimePB::Clear() {
8721
// @@protoc_insertion_point(message_clear_start:yb.ReadHybridTimePB)
8722
4.23k
  ::google::protobuf::uint32 cached_has_bits = 0;
8723
  // Prevent compiler warnings about cached_has_bits being unused
8724
4.23k
  (void) cached_has_bits;
8725
8726
4.23k
  cached_has_bits = _has_bits_[0];
8727
4.23k
  if (cached_has_bits & 31u) {
8728
4.23k
    ::memset(&read_ht_, 0, static_cast<size_t>(
8729
4.23k
        reinterpret_cast<char*>(&local_limit_ht_) -
8730
4.23k
        reinterpret_cast<char*>(&read_ht_)) + sizeof(local_limit_ht_));
8731
4.23k
  }
8732
4.23k
  _has_bits_.Clear();
8733
4.23k
  _internal_metadata_.Clear();
8734
4.23k
}
8735
8736
bool ReadHybridTimePB::MergePartialFromCodedStream(
8737
1.58M
    ::google::protobuf::io::CodedInputStream* input) {
8738
7.81M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8739
1.58M
  ::google::protobuf::uint32 tag;
8740
  // @@protoc_insertion_point(parse_start:yb.ReadHybridTimePB)
8741
9.37M
  for (;;) {
8742
9.37M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8743
9.37M
    tag = p.first;
8744
9.37M
    if (!p.second) goto handle_unusual;
8745
7.79M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8746
      // optional fixed64 read_ht = 1;
8747
1.55M
      case 1: {
8748
1.55M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8749
1.56M
            static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
8750
1.56M
          set_has_read_ht();
8751
1.56M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8752
1.56M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8753
1.56M
                 input, &read_ht_)));
8754
18.4E
        } else {
8755
18.4E
          goto handle_unusual;
8756
18.4E
        }
8757
1.56M
        break;
8758
1.56M
      }
8759
8760
      // optional fixed64 DEPRECATED_max_of_read_time_and_local_limit_ht = 2;
8761
1.56M
      case 2: {
8762
1.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8763
1.56M
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
8764
1.56M
          set_has_deprecated_max_of_read_time_and_local_limit_ht();
8765
1.56M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8766
1.56M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8767
1.56M
                 input, &deprecated_max_of_read_time_and_local_limit_ht_)));
8768
18.4E
        } else {
8769
18.4E
          goto handle_unusual;
8770
18.4E
        }
8771
1.56M
        break;
8772
1.56M
      }
8773
8774
      // optional fixed64 global_limit_ht = 3;
8775
1.56M
      case 3: {
8776
1.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8777
1.56M
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
8778
1.56M
          set_has_global_limit_ht();
8779
1.56M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8780
1.56M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8781
1.56M
                 input, &global_limit_ht_)));
8782
18.4E
        } else {
8783
18.4E
          goto handle_unusual;
8784
18.4E
        }
8785
1.56M
        break;
8786
1.56M
      }
8787
8788
      // optional fixed64 in_txn_limit_ht = 4;
8789
1.56M
      case 4: {
8790
1.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8791
1.56M
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
8792
1.56M
          set_has_in_txn_limit_ht();
8793
1.56M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8794
1.56M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8795
1.56M
                 input, &in_txn_limit_ht_)));
8796
18.4E
        } else {
8797
18.4E
          goto handle_unusual;
8798
18.4E
        }
8799
1.56M
        break;
8800
1.56M
      }
8801
8802
      // optional fixed64 local_limit_ht = 5;
8803
1.56M
      case 5: {
8804
1.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8805
1.56M
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
8806
1.56M
          set_has_local_limit_ht();
8807
1.56M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8808
1.56M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
8809
1.56M
                 input, &local_limit_ht_)));
8810
18.4E
        } else {
8811
18.4E
          goto handle_unusual;
8812
18.4E
        }
8813
1.56M
        break;
8814
1.58M
      }
8815
8816
0
      default: {
8817
1.58M
      handle_unusual:
8818
1.58M
        if (tag == 0) {
8819
1.58M
          goto success;
8820
1.58M
        }
8821
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
8822
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
8823
18.4E
        break;
8824
18.4E
      }
8825
7.79M
    }
8826
7.79M
  }
8827
1.58M
success:
8828
  // @@protoc_insertion_point(parse_success:yb.ReadHybridTimePB)
8829
1.58M
  return true;
8830
0
failure:
8831
  // @@protoc_insertion_point(parse_failure:yb.ReadHybridTimePB)
8832
0
  return false;
8833
1.58M
#undef DO_
8834
1.58M
}
8835
8836
void ReadHybridTimePB::SerializeWithCachedSizes(
8837
0
    ::google::protobuf::io::CodedOutputStream* output) const {
8838
  // @@protoc_insertion_point(serialize_start:yb.ReadHybridTimePB)
8839
0
  ::google::protobuf::uint32 cached_has_bits = 0;
8840
0
  (void) cached_has_bits;
8841
8842
0
  cached_has_bits = _has_bits_[0];
8843
  // optional fixed64 read_ht = 1;
8844
0
  if (cached_has_bits & 0x00000001u) {
8845
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(1, this->read_ht(), output);
8846
0
  }
8847
8848
  // optional fixed64 DEPRECATED_max_of_read_time_and_local_limit_ht = 2;
8849
0
  if (cached_has_bits & 0x00000002u) {
8850
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->deprecated_max_of_read_time_and_local_limit_ht(), output);
8851
0
  }
8852
8853
  // optional fixed64 global_limit_ht = 3;
8854
0
  if (cached_has_bits & 0x00000004u) {
8855
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(3, this->global_limit_ht(), output);
8856
0
  }
8857
8858
  // optional fixed64 in_txn_limit_ht = 4;
8859
0
  if (cached_has_bits & 0x00000008u) {
8860
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(4, this->in_txn_limit_ht(), output);
8861
0
  }
8862
8863
  // optional fixed64 local_limit_ht = 5;
8864
0
  if (cached_has_bits & 0x00000010u) {
8865
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(5, this->local_limit_ht(), output);
8866
0
  }
8867
8868
0
  if (_internal_metadata_.have_unknown_fields()) {
8869
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8870
0
        _internal_metadata_.unknown_fields(), output);
8871
0
  }
8872
  // @@protoc_insertion_point(serialize_end:yb.ReadHybridTimePB)
8873
0
}
8874
8875
::google::protobuf::uint8* ReadHybridTimePB::InternalSerializeWithCachedSizesToArray(
8876
1.58M
    bool deterministic, ::google::protobuf::uint8* target) const {
8877
1.58M
  (void)deterministic; // Unused
8878
  // @@protoc_insertion_point(serialize_to_array_start:yb.ReadHybridTimePB)
8879
1.58M
  ::google::protobuf::uint32 cached_has_bits = 0;
8880
1.58M
  (void) cached_has_bits;
8881
8882
1.58M
  cached_has_bits = _has_bits_[0];
8883
  // optional fixed64 read_ht = 1;
8884
1.58M
  if (cached_has_bits & 0x00000001u) {
8885
1.56M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(1, this->read_ht(), target);
8886
1.56M
  }
8887
8888
  // optional fixed64 DEPRECATED_max_of_read_time_and_local_limit_ht = 2;
8889
1.58M
  if (cached_has_bits & 0x00000002u) {
8890
1.55M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->deprecated_max_of_read_time_and_local_limit_ht(), target);
8891
1.55M
  }
8892
8893
  // optional fixed64 global_limit_ht = 3;
8894
1.58M
  if (cached_has_bits & 0x00000004u) {
8895
1.55M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(3, this->global_limit_ht(), target);
8896
1.55M
  }
8897
8898
  // optional fixed64 in_txn_limit_ht = 4;
8899
1.58M
  if (cached_has_bits & 0x00000008u) {
8900
1.55M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(4, this->in_txn_limit_ht(), target);
8901
1.55M
  }
8902
8903
  // optional fixed64 local_limit_ht = 5;
8904
1.58M
  if (cached_has_bits & 0x00000010u) {
8905
1.55M
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(5, this->local_limit_ht(), target);
8906
1.55M
  }
8907
8908
1.58M
  if (_internal_metadata_.have_unknown_fields()) {
8909
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8910
0
        _internal_metadata_.unknown_fields(), target);
8911
0
  }
8912
  // @@protoc_insertion_point(serialize_to_array_end:yb.ReadHybridTimePB)
8913
1.58M
  return target;
8914
1.58M
}
8915
8916
3.15M
size_t ReadHybridTimePB::ByteSizeLong() const {
8917
// @@protoc_insertion_point(message_byte_size_start:yb.ReadHybridTimePB)
8918
3.15M
  size_t total_size = 0;
8919
8920
3.15M
  if (_internal_metadata_.have_unknown_fields()) {
8921
0
    total_size +=
8922
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8923
0
        _internal_metadata_.unknown_fields());
8924
0
  }
8925
3.15M
  if (_has_bits_[0 / 32] & 31u) {
8926
    // optional fixed64 read_ht = 1;
8927
3.11M
    if (has_read_ht()) {
8928
3.11M
      total_size += 1 + 8;
8929
3.11M
    }
8930
8931
    // optional fixed64 DEPRECATED_max_of_read_time_and_local_limit_ht = 2;
8932
3.12M
    if (has_deprecated_max_of_read_time_and_local_limit_ht()) {
8933
3.12M
      total_size += 1 + 8;
8934
3.12M
    }
8935
8936
    // optional fixed64 global_limit_ht = 3;
8937
3.12M
    if (has_global_limit_ht()) {
8938
3.12M
      total_size += 1 + 8;
8939
3.12M
    }
8940
8941
    // optional fixed64 in_txn_limit_ht = 4;
8942
3.12M
    if (has_in_txn_limit_ht()) {
8943
3.12M
      total_size += 1 + 8;
8944
3.12M
    }
8945
8946
    // optional fixed64 local_limit_ht = 5;
8947
3.11M
    if (has_local_limit_ht()) {
8948
3.11M
      total_size += 1 + 8;
8949
3.11M
    }
8950
8951
3.11M
  }
8952
3.15M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8953
3.15M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8954
3.15M
  _cached_size_ = cached_size;
8955
3.15M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8956
3.15M
  return total_size;
8957
3.15M
}
8958
8959
0
void ReadHybridTimePB::MergeFrom(const ::google::protobuf::Message& from) {
8960
// @@protoc_insertion_point(generalized_merge_from_start:yb.ReadHybridTimePB)
8961
0
  GOOGLE_DCHECK_NE(&from, this);
8962
0
  const ReadHybridTimePB* source =
8963
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReadHybridTimePB>(
8964
0
          &from);
8965
0
  if (source == NULL) {
8966
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ReadHybridTimePB)
8967
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8968
0
  } else {
8969
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ReadHybridTimePB)
8970
0
    MergeFrom(*source);
8971
0
  }
8972
0
}
8973
8974
1.33k
void ReadHybridTimePB::MergeFrom(const ReadHybridTimePB& from) {
8975
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ReadHybridTimePB)
8976
1.33k
  GOOGLE_DCHECK_NE(&from, this);
8977
1.33k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8978
1.33k
  ::google::protobuf::uint32 cached_has_bits = 0;
8979
1.33k
  (void) cached_has_bits;
8980
8981
1.33k
  cached_has_bits = from._has_bits_[0];
8982
1.33k
  if (cached_has_bits & 31u) {
8983
1.33k
    if (cached_has_bits & 0x00000001u) {
8984
1.33k
      read_ht_ = from.read_ht_;
8985
1.33k
    }
8986
1.33k
    if (cached_has_bits & 0x00000002u) {
8987
1.33k
      deprecated_max_of_read_time_and_local_limit_ht_ = from.deprecated_max_of_read_time_and_local_limit_ht_;
8988
1.33k
    }
8989
1.33k
    if (cached_has_bits & 0x00000004u) {
8990
1.33k
      global_limit_ht_ = from.global_limit_ht_;
8991
1.33k
    }
8992
1.33k
    if (cached_has_bits & 0x00000008u) {
8993
1.33k
      in_txn_limit_ht_ = from.in_txn_limit_ht_;
8994
1.33k
    }
8995
1.33k
    if (cached_has_bits & 0x00000010u) {
8996
1.33k
      local_limit_ht_ = from.local_limit_ht_;
8997
1.33k
    }
8998
1.33k
    _has_bits_[0] |= cached_has_bits;
8999
1.33k
  }
9000
1.33k
}
9001
9002
0
void ReadHybridTimePB::CopyFrom(const ::google::protobuf::Message& from) {
9003
// @@protoc_insertion_point(generalized_copy_from_start:yb.ReadHybridTimePB)
9004
0
  if (&from == this) return;
9005
0
  Clear();
9006
0
  MergeFrom(from);
9007
0
}
9008
9009
0
void ReadHybridTimePB::CopyFrom(const ReadHybridTimePB& from) {
9010
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ReadHybridTimePB)
9011
0
  if (&from == this) return;
9012
0
  Clear();
9013
0
  MergeFrom(from);
9014
0
}
9015
9016
0
bool ReadHybridTimePB::IsInitialized() const {
9017
0
  return true;
9018
0
}
9019
9020
0
void ReadHybridTimePB::Swap(ReadHybridTimePB* other) {
9021
0
  if (other == this) return;
9022
0
  InternalSwap(other);
9023
0
}
9024
0
void ReadHybridTimePB::InternalSwap(ReadHybridTimePB* other) {
9025
0
  using std::swap;
9026
0
  swap(read_ht_, other->read_ht_);
9027
0
  swap(deprecated_max_of_read_time_and_local_limit_ht_, other->deprecated_max_of_read_time_and_local_limit_ht_);
9028
0
  swap(global_limit_ht_, other->global_limit_ht_);
9029
0
  swap(in_txn_limit_ht_, other->in_txn_limit_ht_);
9030
0
  swap(local_limit_ht_, other->local_limit_ht_);
9031
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9032
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9033
0
  swap(_cached_size_, other->_cached_size_);
9034
0
}
9035
9036
1.02M
::google::protobuf::Metadata ReadHybridTimePB::GetMetadata() const {
9037
1.02M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9038
1.02M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
9039
1.02M
}
9040
9041
9042
// ===================================================================
9043
9044
17.1k
ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse() {}
9045
0
ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::ChildTransactionDataPB_LocalLimitsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
9046
0
void ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::MergeFrom(const ChildTransactionDataPB_LocalLimitsEntry_DoNotUse& other) {
9047
0
  MergeFromInternal(other);
9048
0
}
9049
0
::google::protobuf::Metadata ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::GetMetadata() const {
9050
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9051
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[17];
9052
0
}
9053
void ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::MergeFrom(
9054
0
    const ::google::protobuf::Message& other) {
9055
0
  ::google::protobuf::Message::MergeFrom(other);
9056
0
}
9057
9058
9059
// ===================================================================
9060
9061
17.1k
void ChildTransactionDataPB::InitAsDefaultInstance() {
9062
17.1k
  ::yb::_ChildTransactionDataPB_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::yb::TransactionMetadataPB*>(
9063
17.1k
      ::yb::TransactionMetadataPB::internal_default_instance());
9064
17.1k
  ::yb::_ChildTransactionDataPB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>(
9065
17.1k
      ::yb::ReadHybridTimePB::internal_default_instance());
9066
17.1k
}
9067
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9068
const int ChildTransactionDataPB::kMetadataFieldNumber;
9069
const int ChildTransactionDataPB::kReadTimeFieldNumber;
9070
const int ChildTransactionDataPB::kLocalLimitsFieldNumber;
9071
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9072
9073
ChildTransactionDataPB::ChildTransactionDataPB()
9074
456k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9075
441k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9076
441k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionDataPB();
9077
441k
  }
9078
456k
  SharedCtor();
9079
  // @@protoc_insertion_point(constructor:yb.ChildTransactionDataPB)
9080
456k
}
9081
ChildTransactionDataPB::ChildTransactionDataPB(const ChildTransactionDataPB& from)
9082
  : ::google::protobuf::Message(),
9083
      _internal_metadata_(NULL),
9084
      _has_bits_(from._has_bits_),
9085
164k
      _cached_size_(0) {
9086
164k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9087
164k
  local_limits_.MergeFrom(from.local_limits_);
9088
164k
  if (from.has_metadata()) {
9089
164k
    metadata_ = new ::yb::TransactionMetadataPB(*from.metadata_);
9090
18.4E
  } else {
9091
18.4E
    metadata_ = NULL;
9092
18.4E
  }
9093
164k
  if (from.has_read_time()) {
9094
164k
    read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_);
9095
18
  } else {
9096
18
    read_time_ = NULL;
9097
18
  }
9098
  // @@protoc_insertion_point(copy_constructor:yb.ChildTransactionDataPB)
9099
164k
}
9100
9101
457k
void ChildTransactionDataPB::SharedCtor() {
9102
457k
  _cached_size_ = 0;
9103
457k
  ::memset(&metadata_, 0, static_cast<size_t>(
9104
457k
      reinterpret_cast<char*>(&read_time_) -
9105
457k
      reinterpret_cast<char*>(&metadata_)) + sizeof(read_time_));
9106
457k
}
9107
9108
606k
ChildTransactionDataPB::~ChildTransactionDataPB() {
9109
  // @@protoc_insertion_point(destructor:yb.ChildTransactionDataPB)
9110
606k
  SharedDtor();
9111
606k
}
9112
9113
606k
void ChildTransactionDataPB::SharedDtor() {
9114
606k
  if (this != internal_default_instance()) delete metadata_;
9115
606k
  if (this != internal_default_instance()) delete read_time_;
9116
606k
}
9117
9118
0
void ChildTransactionDataPB::SetCachedSize(int size) const {
9119
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9120
0
  _cached_size_ = size;
9121
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9122
0
}
9123
0
const ::google::protobuf::Descriptor* ChildTransactionDataPB::descriptor() {
9124
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9125
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9126
0
}
9127
9128
0
const ChildTransactionDataPB& ChildTransactionDataPB::default_instance() {
9129
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionDataPB();
9130
0
  return *internal_default_instance();
9131
0
}
9132
9133
0
ChildTransactionDataPB* ChildTransactionDataPB::New(::google::protobuf::Arena* arena) const {
9134
0
  ChildTransactionDataPB* n = new ChildTransactionDataPB;
9135
0
  if (arena != NULL) {
9136
0
    arena->Own(n);
9137
0
  }
9138
0
  return n;
9139
0
}
9140
9141
0
void ChildTransactionDataPB::Clear() {
9142
// @@protoc_insertion_point(message_clear_start:yb.ChildTransactionDataPB)
9143
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9144
  // Prevent compiler warnings about cached_has_bits being unused
9145
0
  (void) cached_has_bits;
9146
9147
0
  local_limits_.Clear();
9148
0
  cached_has_bits = _has_bits_[0];
9149
0
  if (cached_has_bits & 3u) {
9150
0
    if (cached_has_bits & 0x00000001u) {
9151
0
      GOOGLE_DCHECK(metadata_ != NULL);
9152
0
      metadata_->Clear();
9153
0
    }
9154
0
    if (cached_has_bits & 0x00000002u) {
9155
0
      GOOGLE_DCHECK(read_time_ != NULL);
9156
0
      read_time_->Clear();
9157
0
    }
9158
0
  }
9159
0
  _has_bits_.Clear();
9160
0
  _internal_metadata_.Clear();
9161
0
}
9162
9163
bool ChildTransactionDataPB::MergePartialFromCodedStream(
9164
26.1k
    ::google::protobuf::io::CodedInputStream* input) {
9165
52.2k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9166
26.1k
  ::google::protobuf::uint32 tag;
9167
  // @@protoc_insertion_point(parse_start:yb.ChildTransactionDataPB)
9168
78.3k
  for (;;) {
9169
78.3k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9170
78.3k
    tag = p.first;
9171
78.3k
    if (!p.second) goto handle_unusual;
9172
52.2k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9173
      // optional .yb.TransactionMetadataPB metadata = 1;
9174
26.1k
      case 1: {
9175
26.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9176
26.1k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9177
26.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9178
26.1k
               input, mutable_metadata()));
9179
0
        } else {
9180
0
          goto handle_unusual;
9181
0
        }
9182
26.1k
        break;
9183
26.1k
      }
9184
9185
      // optional .yb.ReadHybridTimePB read_time = 2;
9186
26.1k
      case 2: {
9187
26.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9188
26.1k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9189
26.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9190
26.1k
               input, mutable_read_time()));
9191
2
        } else {
9192
2
          goto handle_unusual;
9193
2
        }
9194
26.1k
        break;
9195
26.1k
      }
9196
9197
      // map<string, fixed64> local_limits = 3;
9198
0
      case 3: {
9199
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9200
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
9201
0
          ChildTransactionDataPB_LocalLimitsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
9202
0
              ChildTransactionDataPB_LocalLimitsEntry_DoNotUse,
9203
0
              ::std::string, ::google::protobuf::uint64,
9204
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
9205
0
              ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
9206
0
              0 >,
9207
0
            ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 > > parser(&local_limits_);
9208
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9209
0
              input, &parser));
9210
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9211
0
            parser.key().data(), static_cast<int>(parser.key().length()),
9212
0
            ::google::protobuf::internal::WireFormat::PARSE,
9213
0
            "yb.ChildTransactionDataPB.LocalLimitsEntry.key");
9214
0
        } else {
9215
0
          goto handle_unusual;
9216
0
        }
9217
0
        break;
9218
26.0k
      }
9219
9220
0
      default: {
9221
26.0k
      handle_unusual:
9222
26.0k
        if (tag == 0) {
9223
26.0k
          goto success;
9224
26.0k
        }
9225
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9226
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9227
18.4E
        break;
9228
18.4E
      }
9229
52.2k
    }
9230
52.2k
  }
9231
26.0k
success:
9232
  // @@protoc_insertion_point(parse_success:yb.ChildTransactionDataPB)
9233
26.0k
  return true;
9234
0
failure:
9235
  // @@protoc_insertion_point(parse_failure:yb.ChildTransactionDataPB)
9236
0
  return false;
9237
26.1k
#undef DO_
9238
26.1k
}
9239
9240
void ChildTransactionDataPB::SerializeWithCachedSizes(
9241
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9242
  // @@protoc_insertion_point(serialize_start:yb.ChildTransactionDataPB)
9243
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9244
0
  (void) cached_has_bits;
9245
9246
0
  cached_has_bits = _has_bits_[0];
9247
  // optional .yb.TransactionMetadataPB metadata = 1;
9248
0
  if (cached_has_bits & 0x00000001u) {
9249
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9250
0
      1, *this->metadata_, output);
9251
0
  }
9252
9253
  // optional .yb.ReadHybridTimePB read_time = 2;
9254
0
  if (cached_has_bits & 0x00000002u) {
9255
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9256
0
      2, *this->read_time_, output);
9257
0
  }
9258
9259
  // map<string, fixed64> local_limits = 3;
9260
0
  if (!this->local_limits().empty()) {
9261
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer
9262
0
        ConstPtr;
9263
0
    typedef ConstPtr SortItem;
9264
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
9265
0
    struct Utf8Check {
9266
0
      static void Check(ConstPtr p) {
9267
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9268
0
          p->first.data(), static_cast<int>(p->first.length()),
9269
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
9270
0
          "yb.ChildTransactionDataPB.LocalLimitsEntry.key");
9271
0
      }
9272
0
    };
9273
9274
0
    if (output->IsSerializationDeterministic() &&
9275
0
        this->local_limits().size() > 1) {
9276
0
      ::google::protobuf::scoped_array<SortItem> items(
9277
0
          new SortItem[this->local_limits().size()]);
9278
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type;
9279
0
      size_type n = 0;
9280
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
9281
0
          it = this->local_limits().begin();
9282
0
          it != this->local_limits().end(); ++it, ++n) {
9283
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
9284
0
      }
9285
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
9286
0
      ::google::protobuf::scoped_ptr<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse> entry;
9287
0
      for (size_type i = 0; i < n; i++) {
9288
0
        entry.reset(local_limits_.NewEntryWrapper(
9289
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
9290
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9291
0
            3, *entry, output);
9292
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
9293
0
      }
9294
0
    } else {
9295
0
      ::google::protobuf::scoped_ptr<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse> entry;
9296
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
9297
0
          it = this->local_limits().begin();
9298
0
          it != this->local_limits().end(); ++it) {
9299
0
        entry.reset(local_limits_.NewEntryWrapper(
9300
0
            it->first, it->second));
9301
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9302
0
            3, *entry, output);
9303
0
        Utf8Check::Check(&*it);
9304
0
      }
9305
0
    }
9306
0
  }
9307
9308
0
  if (_internal_metadata_.have_unknown_fields()) {
9309
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9310
0
        _internal_metadata_.unknown_fields(), output);
9311
0
  }
9312
  // @@protoc_insertion_point(serialize_end:yb.ChildTransactionDataPB)
9313
0
}
9314
9315
::google::protobuf::uint8* ChildTransactionDataPB::InternalSerializeWithCachedSizesToArray(
9316
25.9k
    bool deterministic, ::google::protobuf::uint8* target) const {
9317
25.9k
  (void)deterministic; // Unused
9318
  // @@protoc_insertion_point(serialize_to_array_start:yb.ChildTransactionDataPB)
9319
25.9k
  ::google::protobuf::uint32 cached_has_bits = 0;
9320
25.9k
  (void) cached_has_bits;
9321
9322
25.9k
  cached_has_bits = _has_bits_[0];
9323
  // optional .yb.TransactionMetadataPB metadata = 1;
9324
25.9k
  if (cached_has_bits & 0x00000001u) {
9325
25.9k
    target = ::google::protobuf::internal::WireFormatLite::
9326
25.9k
      InternalWriteMessageToArray(
9327
25.9k
        1, *this->metadata_, deterministic, target);
9328
25.9k
  }
9329
9330
  // optional .yb.ReadHybridTimePB read_time = 2;
9331
25.9k
  if (cached_has_bits & 0x00000002u) {
9332
25.9k
    target = ::google::protobuf::internal::WireFormatLite::
9333
25.9k
      InternalWriteMessageToArray(
9334
25.9k
        2, *this->read_time_, deterministic, target);
9335
25.9k
  }
9336
9337
  // map<string, fixed64> local_limits = 3;
9338
25.9k
  if (!this->local_limits().empty()) {
9339
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer
9340
0
        ConstPtr;
9341
0
    typedef ConstPtr SortItem;
9342
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
9343
0
    struct Utf8Check {
9344
0
      static void Check(ConstPtr p) {
9345
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9346
0
          p->first.data(), static_cast<int>(p->first.length()),
9347
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
9348
0
          "yb.ChildTransactionDataPB.LocalLimitsEntry.key");
9349
0
      }
9350
0
    };
9351
9352
0
    if (deterministic &&
9353
0
        this->local_limits().size() > 1) {
9354
0
      ::google::protobuf::scoped_array<SortItem> items(
9355
0
          new SortItem[this->local_limits().size()]);
9356
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type;
9357
0
      size_type n = 0;
9358
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
9359
0
          it = this->local_limits().begin();
9360
0
          it != this->local_limits().end(); ++it, ++n) {
9361
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
9362
0
      }
9363
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
9364
0
      ::google::protobuf::scoped_ptr<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse> entry;
9365
0
      for (size_type i = 0; i < n; i++) {
9366
0
        entry.reset(local_limits_.NewEntryWrapper(
9367
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
9368
0
        target = ::google::protobuf::internal::WireFormatLite::
9369
0
                   InternalWriteMessageNoVirtualToArray(
9370
0
                       3, *entry, deterministic, target);
9371
0
;
9372
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
9373
0
      }
9374
0
    } else {
9375
0
      ::google::protobuf::scoped_ptr<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse> entry;
9376
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
9377
0
          it = this->local_limits().begin();
9378
0
          it != this->local_limits().end(); ++it) {
9379
0
        entry.reset(local_limits_.NewEntryWrapper(
9380
0
            it->first, it->second));
9381
0
        target = ::google::protobuf::internal::WireFormatLite::
9382
0
                   InternalWriteMessageNoVirtualToArray(
9383
0
                       3, *entry, deterministic, target);
9384
0
;
9385
0
        Utf8Check::Check(&*it);
9386
0
      }
9387
0
    }
9388
0
  }
9389
9390
25.9k
  if (_internal_metadata_.have_unknown_fields()) {
9391
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9392
0
        _internal_metadata_.unknown_fields(), target);
9393
0
  }
9394
  // @@protoc_insertion_point(serialize_to_array_end:yb.ChildTransactionDataPB)
9395
25.9k
  return target;
9396
25.9k
}
9397
9398
52.0k
size_t ChildTransactionDataPB::ByteSizeLong() const {
9399
// @@protoc_insertion_point(message_byte_size_start:yb.ChildTransactionDataPB)
9400
52.0k
  size_t total_size = 0;
9401
9402
52.0k
  if (_internal_metadata_.have_unknown_fields()) {
9403
0
    total_size +=
9404
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9405
0
        _internal_metadata_.unknown_fields());
9406
0
  }
9407
  // map<string, fixed64> local_limits = 3;
9408
52.0k
  total_size += 1 *
9409
52.0k
      ::google::protobuf::internal::FromIntSize(this->local_limits_size());
9410
52.0k
  {
9411
52.0k
    ::google::protobuf::scoped_ptr<ChildTransactionDataPB_LocalLimitsEntry_DoNotUse> entry;
9412
52.0k
    for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
9413
52.0k
        it = this->local_limits().begin();
9414
52.0k
        it != this->local_limits().end(); ++it) {
9415
0
      entry.reset(local_limits_.NewEntryWrapper(it->first, it->second));
9416
0
      total_size += ::google::protobuf::internal::WireFormatLite::
9417
0
          MessageSizeNoVirtual(*entry);
9418
0
    }
9419
52.0k
  }
9420
9421
52.0k
  if (_has_bits_[0 / 32] & 3u) {
9422
    // optional .yb.TransactionMetadataPB metadata = 1;
9423
52.0k
    if (has_metadata()) {
9424
51.9k
      total_size += 1 +
9425
51.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9426
51.9k
          *this->metadata_);
9427
51.9k
    }
9428
9429
    // optional .yb.ReadHybridTimePB read_time = 2;
9430
52.0k
    if (has_read_time()) {
9431
51.8k
      total_size += 1 +
9432
51.8k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9433
51.8k
          *this->read_time_);
9434
51.8k
    }
9435
9436
52.0k
  }
9437
52.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9438
52.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9439
52.0k
  _cached_size_ = cached_size;
9440
52.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9441
52.0k
  return total_size;
9442
52.0k
}
9443
9444
0
void ChildTransactionDataPB::MergeFrom(const ::google::protobuf::Message& from) {
9445
// @@protoc_insertion_point(generalized_merge_from_start:yb.ChildTransactionDataPB)
9446
0
  GOOGLE_DCHECK_NE(&from, this);
9447
0
  const ChildTransactionDataPB* source =
9448
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChildTransactionDataPB>(
9449
0
          &from);
9450
0
  if (source == NULL) {
9451
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ChildTransactionDataPB)
9452
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9453
0
  } else {
9454
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ChildTransactionDataPB)
9455
0
    MergeFrom(*source);
9456
0
  }
9457
0
}
9458
9459
0
void ChildTransactionDataPB::MergeFrom(const ChildTransactionDataPB& from) {
9460
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ChildTransactionDataPB)
9461
0
  GOOGLE_DCHECK_NE(&from, this);
9462
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9463
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9464
0
  (void) cached_has_bits;
9465
9466
0
  local_limits_.MergeFrom(from.local_limits_);
9467
0
  cached_has_bits = from._has_bits_[0];
9468
0
  if (cached_has_bits & 3u) {
9469
0
    if (cached_has_bits & 0x00000001u) {
9470
0
      mutable_metadata()->::yb::TransactionMetadataPB::MergeFrom(from.metadata());
9471
0
    }
9472
0
    if (cached_has_bits & 0x00000002u) {
9473
0
      mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time());
9474
0
    }
9475
0
  }
9476
0
}
9477
9478
0
void ChildTransactionDataPB::CopyFrom(const ::google::protobuf::Message& from) {
9479
// @@protoc_insertion_point(generalized_copy_from_start:yb.ChildTransactionDataPB)
9480
0
  if (&from == this) return;
9481
0
  Clear();
9482
0
  MergeFrom(from);
9483
0
}
9484
9485
0
void ChildTransactionDataPB::CopyFrom(const ChildTransactionDataPB& from) {
9486
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ChildTransactionDataPB)
9487
0
  if (&from == this) return;
9488
0
  Clear();
9489
0
  MergeFrom(from);
9490
0
}
9491
9492
0
bool ChildTransactionDataPB::IsInitialized() const {
9493
0
  return true;
9494
0
}
9495
9496
0
void ChildTransactionDataPB::Swap(ChildTransactionDataPB* other) {
9497
0
  if (other == this) return;
9498
0
  InternalSwap(other);
9499
0
}
9500
332k
void ChildTransactionDataPB::InternalSwap(ChildTransactionDataPB* other) {
9501
332k
  using std::swap;
9502
332k
  local_limits_.Swap(&other->local_limits_);
9503
332k
  swap(metadata_, other->metadata_);
9504
332k
  swap(read_time_, other->read_time_);
9505
332k
  swap(_has_bits_[0], other->_has_bits_[0]);
9506
332k
  _internal_metadata_.Swap(&other->_internal_metadata_);
9507
332k
  swap(_cached_size_, other->_cached_size_);
9508
332k
}
9509
9510
26.1k
::google::protobuf::Metadata ChildTransactionDataPB::GetMetadata() const {
9511
26.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9512
26.1k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
9513
26.1k
}
9514
9515
9516
// ===================================================================
9517
9518
17.1k
void TransactionInvolvedTabletPB::InitAsDefaultInstance() {
9519
17.1k
}
9520
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9521
const int TransactionInvolvedTabletPB::kTabletIdFieldNumber;
9522
const int TransactionInvolvedTabletPB::kMetadataStateFieldNumber;
9523
const int TransactionInvolvedTabletPB::kNumBatchesFieldNumber;
9524
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9525
9526
TransactionInvolvedTabletPB::TransactionInvolvedTabletPB()
9527
94.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9528
77.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9529
77.6k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionInvolvedTabletPB();
9530
77.6k
  }
9531
94.8k
  SharedCtor();
9532
  // @@protoc_insertion_point(constructor:yb.TransactionInvolvedTabletPB)
9533
94.8k
}
9534
TransactionInvolvedTabletPB::TransactionInvolvedTabletPB(const TransactionInvolvedTabletPB& from)
9535
  : ::google::protobuf::Message(),
9536
      _internal_metadata_(NULL),
9537
      _has_bits_(from._has_bits_),
9538
0
      _cached_size_(0) {
9539
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9540
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9541
0
  if (from.has_tablet_id()) {
9542
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
9543
0
  }
9544
0
  ::memcpy(&num_batches_, &from.num_batches_,
9545
0
    static_cast<size_t>(reinterpret_cast<char*>(&metadata_state_) -
9546
0
    reinterpret_cast<char*>(&num_batches_)) + sizeof(metadata_state_));
9547
  // @@protoc_insertion_point(copy_constructor:yb.TransactionInvolvedTabletPB)
9548
0
}
9549
9550
94.8k
void TransactionInvolvedTabletPB::SharedCtor() {
9551
94.8k
  _cached_size_ = 0;
9552
94.8k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9553
94.8k
  ::memset(&num_batches_, 0, static_cast<size_t>(
9554
94.8k
      reinterpret_cast<char*>(&metadata_state_) -
9555
94.8k
      reinterpret_cast<char*>(&num_batches_)) + sizeof(metadata_state_));
9556
94.8k
}
9557
9558
77.6k
TransactionInvolvedTabletPB::~TransactionInvolvedTabletPB() {
9559
  // @@protoc_insertion_point(destructor:yb.TransactionInvolvedTabletPB)
9560
77.6k
  SharedDtor();
9561
77.6k
}
9562
9563
77.6k
void TransactionInvolvedTabletPB::SharedDtor() {
9564
77.6k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9565
77.6k
}
9566
9567
0
void TransactionInvolvedTabletPB::SetCachedSize(int size) const {
9568
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9569
0
  _cached_size_ = size;
9570
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9571
0
}
9572
0
const ::google::protobuf::Descriptor* TransactionInvolvedTabletPB::descriptor() {
9573
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9574
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9575
0
}
9576
9577
0
const TransactionInvolvedTabletPB& TransactionInvolvedTabletPB::default_instance() {
9578
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsTransactionInvolvedTabletPB();
9579
0
  return *internal_default_instance();
9580
0
}
9581
9582
0
TransactionInvolvedTabletPB* TransactionInvolvedTabletPB::New(::google::protobuf::Arena* arena) const {
9583
0
  TransactionInvolvedTabletPB* n = new TransactionInvolvedTabletPB;
9584
0
  if (arena != NULL) {
9585
0
    arena->Own(n);
9586
0
  }
9587
0
  return n;
9588
0
}
9589
9590
100k
void TransactionInvolvedTabletPB::Clear() {
9591
// @@protoc_insertion_point(message_clear_start:yb.TransactionInvolvedTabletPB)
9592
100k
  ::google::protobuf::uint32 cached_has_bits = 0;
9593
  // Prevent compiler warnings about cached_has_bits being unused
9594
100k
  (void) cached_has_bits;
9595
9596
100k
  cached_has_bits = _has_bits_[0];
9597
100k
  if (cached_has_bits & 0x00000001u) {
9598
100k
    GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
9599
100k
    (*tablet_id_.UnsafeRawStringPointer())->clear();
9600
100k
  }
9601
100k
  if (cached_has_bits & 6u) {
9602
100k
    ::memset(&num_batches_, 0, static_cast<size_t>(
9603
100k
        reinterpret_cast<char*>(&metadata_state_) -
9604
100k
        reinterpret_cast<char*>(&num_batches_)) + sizeof(metadata_state_));
9605
100k
  }
9606
100k
  _has_bits_.Clear();
9607
100k
  _internal_metadata_.Clear();
9608
100k
}
9609
9610
bool TransactionInvolvedTabletPB::MergePartialFromCodedStream(
9611
7.28k
    ::google::protobuf::io::CodedInputStream* input) {
9612
21.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9613
7.28k
  ::google::protobuf::uint32 tag;
9614
  // @@protoc_insertion_point(parse_start:yb.TransactionInvolvedTabletPB)
9615
29.1k
  for (;;) {
9616
29.1k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9617
29.1k
    tag = p.first;
9618
29.1k
    if (!p.second) goto handle_unusual;
9619
21.8k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9620
      // optional bytes tablet_id = 1;
9621
7.28k
      case 1: {
9622
7.28k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9623
7.28k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9624
7.28k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
9625
7.28k
                input, this->mutable_tablet_id()));
9626
0
        } else {
9627
0
          goto handle_unusual;
9628
0
        }
9629
7.28k
        break;
9630
7.28k
      }
9631
9632
      // optional .yb.InvolvedTabletMetadataState metadata_state = 2;
9633
7.28k
      case 2: {
9634
7.28k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9635
7.28k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9636
7.28k
          int value;
9637
7.28k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9638
7.28k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9639
7.28k
                 input, &value)));
9640
7.28k
          if (::yb::InvolvedTabletMetadataState_IsValid(value)) {
9641
7.28k
            set_metadata_state(static_cast< ::yb::InvolvedTabletMetadataState >(value));
9642
0
          } else {
9643
0
            mutable_unknown_fields()->AddVarint(
9644
0
                2, static_cast< ::google::protobuf::uint64>(value));
9645
0
          }
9646
0
        } else {
9647
0
          goto handle_unusual;
9648
0
        }
9649
7.28k
        break;
9650
7.28k
      }
9651
9652
      // optional uint64 num_batches = 3;
9653
7.28k
      case 3: {
9654
7.28k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9655
7.28k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
9656
7.28k
          set_has_num_batches();
9657
7.28k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9658
7.28k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
9659
7.28k
                 input, &num_batches_)));
9660
0
        } else {
9661
0
          goto handle_unusual;
9662
0
        }
9663
7.28k
        break;
9664
7.28k
      }
9665
9666
0
      default: {
9667
7.28k
      handle_unusual:
9668
7.28k
        if (tag == 0) {
9669
7.28k
          goto success;
9670
7.28k
        }
9671
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9672
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9673
0
        break;
9674
0
      }
9675
21.8k
    }
9676
21.8k
  }
9677
7.28k
success:
9678
  // @@protoc_insertion_point(parse_success:yb.TransactionInvolvedTabletPB)
9679
7.28k
  return true;
9680
0
failure:
9681
  // @@protoc_insertion_point(parse_failure:yb.TransactionInvolvedTabletPB)
9682
0
  return false;
9683
7.28k
#undef DO_
9684
7.28k
}
9685
9686
void TransactionInvolvedTabletPB::SerializeWithCachedSizes(
9687
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9688
  // @@protoc_insertion_point(serialize_start:yb.TransactionInvolvedTabletPB)
9689
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9690
0
  (void) cached_has_bits;
9691
9692
0
  cached_has_bits = _has_bits_[0];
9693
  // optional bytes tablet_id = 1;
9694
0
  if (cached_has_bits & 0x00000001u) {
9695
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9696
0
      1, this->tablet_id(), output);
9697
0
  }
9698
9699
  // optional .yb.InvolvedTabletMetadataState metadata_state = 2;
9700
0
  if (cached_has_bits & 0x00000004u) {
9701
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
9702
0
      2, this->metadata_state(), output);
9703
0
  }
9704
9705
  // optional uint64 num_batches = 3;
9706
0
  if (cached_has_bits & 0x00000002u) {
9707
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->num_batches(), output);
9708
0
  }
9709
9710
0
  if (_internal_metadata_.have_unknown_fields()) {
9711
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9712
0
        _internal_metadata_.unknown_fields(), output);
9713
0
  }
9714
  // @@protoc_insertion_point(serialize_end:yb.TransactionInvolvedTabletPB)
9715
0
}
9716
9717
::google::protobuf::uint8* TransactionInvolvedTabletPB::InternalSerializeWithCachedSizesToArray(
9718
7.28k
    bool deterministic, ::google::protobuf::uint8* target) const {
9719
7.28k
  (void)deterministic; // Unused
9720
  // @@protoc_insertion_point(serialize_to_array_start:yb.TransactionInvolvedTabletPB)
9721
7.28k
  ::google::protobuf::uint32 cached_has_bits = 0;
9722
7.28k
  (void) cached_has_bits;
9723
9724
7.28k
  cached_has_bits = _has_bits_[0];
9725
  // optional bytes tablet_id = 1;
9726
7.28k
  if (cached_has_bits & 0x00000001u) {
9727
7.28k
    target =
9728
7.28k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9729
7.28k
        1, this->tablet_id(), target);
9730
7.28k
  }
9731
9732
  // optional .yb.InvolvedTabletMetadataState metadata_state = 2;
9733
7.28k
  if (cached_has_bits & 0x00000004u) {
9734
7.28k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9735
7.28k
      2, this->metadata_state(), target);
9736
7.28k
  }
9737
9738
  // optional uint64 num_batches = 3;
9739
7.28k
  if (cached_has_bits & 0x00000002u) {
9740
7.28k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->num_batches(), target);
9741
7.28k
  }
9742
9743
7.28k
  if (_internal_metadata_.have_unknown_fields()) {
9744
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9745
0
        _internal_metadata_.unknown_fields(), target);
9746
0
  }
9747
  // @@protoc_insertion_point(serialize_to_array_end:yb.TransactionInvolvedTabletPB)
9748
7.28k
  return target;
9749
7.28k
}
9750
9751
14.5k
size_t TransactionInvolvedTabletPB::ByteSizeLong() const {
9752
// @@protoc_insertion_point(message_byte_size_start:yb.TransactionInvolvedTabletPB)
9753
14.5k
  size_t total_size = 0;
9754
9755
14.5k
  if (_internal_metadata_.have_unknown_fields()) {
9756
0
    total_size +=
9757
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9758
0
        _internal_metadata_.unknown_fields());
9759
0
  }
9760
14.5k
  if (_has_bits_[0 / 32] & 7u) {
9761
    // optional bytes tablet_id = 1;
9762
14.5k
    if (has_tablet_id()) {
9763
14.5k
      total_size += 1 +
9764
14.5k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9765
14.5k
          this->tablet_id());
9766
14.5k
    }
9767
9768
    // optional uint64 num_batches = 3;
9769
14.5k
    if (has_num_batches()) {
9770
14.5k
      total_size += 1 +
9771
14.5k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9772
14.5k
          this->num_batches());
9773
14.5k
    }
9774
9775
    // optional .yb.InvolvedTabletMetadataState metadata_state = 2;
9776
14.5k
    if (has_metadata_state()) {
9777
14.5k
      total_size += 1 +
9778
14.5k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->metadata_state());
9779
14.5k
    }
9780
9781
14.5k
  }
9782
14.5k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9783
14.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9784
14.5k
  _cached_size_ = cached_size;
9785
14.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9786
14.5k
  return total_size;
9787
14.5k
}
9788
9789
0
void TransactionInvolvedTabletPB::MergeFrom(const ::google::protobuf::Message& from) {
9790
// @@protoc_insertion_point(generalized_merge_from_start:yb.TransactionInvolvedTabletPB)
9791
0
  GOOGLE_DCHECK_NE(&from, this);
9792
0
  const TransactionInvolvedTabletPB* source =
9793
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TransactionInvolvedTabletPB>(
9794
0
          &from);
9795
0
  if (source == NULL) {
9796
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.TransactionInvolvedTabletPB)
9797
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9798
0
  } else {
9799
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.TransactionInvolvedTabletPB)
9800
0
    MergeFrom(*source);
9801
0
  }
9802
0
}
9803
9804
135k
void TransactionInvolvedTabletPB::MergeFrom(const TransactionInvolvedTabletPB& from) {
9805
// @@protoc_insertion_point(class_specific_merge_from_start:yb.TransactionInvolvedTabletPB)
9806
135k
  GOOGLE_DCHECK_NE(&from, this);
9807
135k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9808
135k
  ::google::protobuf::uint32 cached_has_bits = 0;
9809
135k
  (void) cached_has_bits;
9810
9811
135k
  cached_has_bits = from._has_bits_[0];
9812
135k
  if (cached_has_bits & 7u) {
9813
135k
    if (cached_has_bits & 0x00000001u) {
9814
135k
      set_has_tablet_id();
9815
135k
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
9816
135k
    }
9817
135k
    if (cached_has_bits & 0x00000002u) {
9818
135k
      num_batches_ = from.num_batches_;
9819
135k
    }
9820
135k
    if (cached_has_bits & 0x00000004u) {
9821
135k
      metadata_state_ = from.metadata_state_;
9822
135k
    }
9823
135k
    _has_bits_[0] |= cached_has_bits;
9824
135k
  }
9825
135k
}
9826
9827
0
void TransactionInvolvedTabletPB::CopyFrom(const ::google::protobuf::Message& from) {
9828
// @@protoc_insertion_point(generalized_copy_from_start:yb.TransactionInvolvedTabletPB)
9829
0
  if (&from == this) return;
9830
0
  Clear();
9831
0
  MergeFrom(from);
9832
0
}
9833
9834
0
void TransactionInvolvedTabletPB::CopyFrom(const TransactionInvolvedTabletPB& from) {
9835
// @@protoc_insertion_point(class_specific_copy_from_start:yb.TransactionInvolvedTabletPB)
9836
0
  if (&from == this) return;
9837
0
  Clear();
9838
0
  MergeFrom(from);
9839
0
}
9840
9841
0
bool TransactionInvolvedTabletPB::IsInitialized() const {
9842
0
  return true;
9843
0
}
9844
9845
0
void TransactionInvolvedTabletPB::Swap(TransactionInvolvedTabletPB* other) {
9846
0
  if (other == this) return;
9847
0
  InternalSwap(other);
9848
0
}
9849
0
void TransactionInvolvedTabletPB::InternalSwap(TransactionInvolvedTabletPB* other) {
9850
0
  using std::swap;
9851
0
  tablet_id_.Swap(&other->tablet_id_);
9852
0
  swap(num_batches_, other->num_batches_);
9853
0
  swap(metadata_state_, other->metadata_state_);
9854
0
  swap(_has_bits_[0], other->_has_bits_[0]);
9855
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
9856
0
  swap(_cached_size_, other->_cached_size_);
9857
0
}
9858
9859
0
::google::protobuf::Metadata TransactionInvolvedTabletPB::GetMetadata() const {
9860
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9861
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
9862
0
}
9863
9864
9865
// ===================================================================
9866
9867
17.1k
ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse() {}
9868
0
ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::ChildTransactionResultPB_ReadRestartsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
9869
0
void ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::MergeFrom(const ChildTransactionResultPB_ReadRestartsEntry_DoNotUse& other) {
9870
0
  MergeFromInternal(other);
9871
0
}
9872
0
::google::protobuf::Metadata ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::GetMetadata() const {
9873
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9874
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[20];
9875
0
}
9876
void ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::MergeFrom(
9877
0
    const ::google::protobuf::Message& other) {
9878
0
  ::google::protobuf::Message::MergeFrom(other);
9879
0
}
9880
9881
9882
// ===================================================================
9883
9884
17.1k
void ChildTransactionResultPB::InitAsDefaultInstance() {
9885
17.1k
  ::yb::_ChildTransactionResultPB_default_instance_._instance.get_mutable()->used_read_time_ = const_cast< ::yb::ReadHybridTimePB*>(
9886
17.1k
      ::yb::ReadHybridTimePB::internal_default_instance());
9887
17.1k
}
9888
#if !defined(_MSC_VER) || _MSC_VER >= 1900
9889
const int ChildTransactionResultPB::kTabletsFieldNumber;
9890
const int ChildTransactionResultPB::kRestartReadHtFieldNumber;
9891
const int ChildTransactionResultPB::kReadRestartsFieldNumber;
9892
const int ChildTransactionResultPB::kUsedReadTimeFieldNumber;
9893
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9894
9895
ChildTransactionResultPB::ChildTransactionResultPB()
9896
81.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
9897
63.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9898
63.8k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionResultPB();
9899
63.8k
  }
9900
81.0k
  SharedCtor();
9901
  // @@protoc_insertion_point(constructor:yb.ChildTransactionResultPB)
9902
81.0k
}
9903
ChildTransactionResultPB::ChildTransactionResultPB(const ChildTransactionResultPB& from)
9904
  : ::google::protobuf::Message(),
9905
      _internal_metadata_(NULL),
9906
      _has_bits_(from._has_bits_),
9907
      _cached_size_(0),
9908
0
      tablets_(from.tablets_) {
9909
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9910
0
  read_restarts_.MergeFrom(from.read_restarts_);
9911
0
  if (from.has_used_read_time()) {
9912
0
    used_read_time_ = new ::yb::ReadHybridTimePB(*from.used_read_time_);
9913
0
  } else {
9914
0
    used_read_time_ = NULL;
9915
0
  }
9916
0
  restart_read_ht_ = from.restart_read_ht_;
9917
  // @@protoc_insertion_point(copy_constructor:yb.ChildTransactionResultPB)
9918
0
}
9919
9920
81.0k
void ChildTransactionResultPB::SharedCtor() {
9921
81.0k
  _cached_size_ = 0;
9922
81.0k
  ::memset(&used_read_time_, 0, static_cast<size_t>(
9923
81.0k
      reinterpret_cast<char*>(&restart_read_ht_) -
9924
81.0k
      reinterpret_cast<char*>(&used_read_time_)) + sizeof(restart_read_ht_));
9925
81.0k
}
9926
9927
63.8k
ChildTransactionResultPB::~ChildTransactionResultPB() {
9928
  // @@protoc_insertion_point(destructor:yb.ChildTransactionResultPB)
9929
63.8k
  SharedDtor();
9930
63.8k
}
9931
9932
63.8k
void ChildTransactionResultPB::SharedDtor() {
9933
63.8k
  if (this != internal_default_instance()) delete used_read_time_;
9934
63.8k
}
9935
9936
0
void ChildTransactionResultPB::SetCachedSize(int size) const {
9937
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9938
0
  _cached_size_ = size;
9939
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9940
0
}
9941
0
const ::google::protobuf::Descriptor* ChildTransactionResultPB::descriptor() {
9942
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
9943
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
9944
0
}
9945
9946
0
const ChildTransactionResultPB& ChildTransactionResultPB::default_instance() {
9947
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsChildTransactionResultPB();
9948
0
  return *internal_default_instance();
9949
0
}
9950
9951
0
ChildTransactionResultPB* ChildTransactionResultPB::New(::google::protobuf::Arena* arena) const {
9952
0
  ChildTransactionResultPB* n = new ChildTransactionResultPB;
9953
0
  if (arena != NULL) {
9954
0
    arena->Own(n);
9955
0
  }
9956
0
  return n;
9957
0
}
9958
9959
35.4k
void ChildTransactionResultPB::Clear() {
9960
// @@protoc_insertion_point(message_clear_start:yb.ChildTransactionResultPB)
9961
35.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
9962
  // Prevent compiler warnings about cached_has_bits being unused
9963
35.4k
  (void) cached_has_bits;
9964
9965
35.4k
  tablets_.Clear();
9966
35.4k
  read_restarts_.Clear();
9967
35.4k
  cached_has_bits = _has_bits_[0];
9968
35.4k
  if (cached_has_bits & 0x00000001u) {
9969
0
    GOOGLE_DCHECK(used_read_time_ != NULL);
9970
0
    used_read_time_->Clear();
9971
0
  }
9972
35.4k
  restart_read_ht_ = GOOGLE_ULONGLONG(0);
9973
35.4k
  _has_bits_.Clear();
9974
35.4k
  _internal_metadata_.Clear();
9975
35.4k
}
9976
9977
bool ChildTransactionResultPB::MergePartialFromCodedStream(
9978
4.60k
    ::google::protobuf::io::CodedInputStream* input) {
9979
11.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9980
4.60k
  ::google::protobuf::uint32 tag;
9981
  // @@protoc_insertion_point(parse_start:yb.ChildTransactionResultPB)
9982
16.4k
  for (;;) {
9983
16.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9984
16.4k
    tag = p.first;
9985
16.4k
    if (!p.second) goto handle_unusual;
9986
11.8k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9987
      // repeated .yb.TransactionInvolvedTabletPB tablets = 1;
9988
7.28k
      case 1: {
9989
7.28k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
9990
7.28k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
9991
7.28k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablets()));
9992
0
        } else {
9993
0
          goto handle_unusual;
9994
0
        }
9995
7.28k
        break;
9996
7.28k
      }
9997
9998
      // optional fixed64 restart_read_ht = 2;
9999
4.60k
      case 2: {
10000
4.60k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10001
4.60k
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
10002
4.60k
          set_has_restart_read_ht();
10003
4.60k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10004
4.60k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
10005
4.60k
                 input, &restart_read_ht_)));
10006
0
        } else {
10007
0
          goto handle_unusual;
10008
0
        }
10009
4.60k
        break;
10010
4.60k
      }
10011
10012
      // map<string, fixed64> read_restarts = 3;
10013
0
      case 3: {
10014
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10015
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
10016
0
          ChildTransactionResultPB_ReadRestartsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
10017
0
              ChildTransactionResultPB_ReadRestartsEntry_DoNotUse,
10018
0
              ::std::string, ::google::protobuf::uint64,
10019
0
              ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
10020
0
              ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
10021
0
              0 >,
10022
0
            ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 > > parser(&read_restarts_);
10023
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
10024
0
              input, &parser));
10025
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10026
0
            parser.key().data(), static_cast<int>(parser.key().length()),
10027
0
            ::google::protobuf::internal::WireFormat::PARSE,
10028
0
            "yb.ChildTransactionResultPB.ReadRestartsEntry.key");
10029
0
        } else {
10030
0
          goto handle_unusual;
10031
0
        }
10032
0
        break;
10033
0
      }
10034
10035
      // optional .yb.ReadHybridTimePB used_read_time = 4;
10036
0
      case 4: {
10037
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10038
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
10039
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
10040
0
               input, mutable_used_read_time()));
10041
0
        } else {
10042
0
          goto handle_unusual;
10043
0
        }
10044
0
        break;
10045
4.60k
      }
10046
10047
0
      default: {
10048
4.60k
      handle_unusual:
10049
4.60k
        if (tag == 0) {
10050
4.60k
          goto success;
10051
4.60k
        }
10052
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10053
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10054
0
        break;
10055
0
      }
10056
11.8k
    }
10057
11.8k
  }
10058
4.60k
success:
10059
  // @@protoc_insertion_point(parse_success:yb.ChildTransactionResultPB)
10060
4.60k
  return true;
10061
0
failure:
10062
  // @@protoc_insertion_point(parse_failure:yb.ChildTransactionResultPB)
10063
0
  return false;
10064
4.60k
#undef DO_
10065
4.60k
}
10066
10067
void ChildTransactionResultPB::SerializeWithCachedSizes(
10068
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10069
  // @@protoc_insertion_point(serialize_start:yb.ChildTransactionResultPB)
10070
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10071
0
  (void) cached_has_bits;
10072
10073
  // repeated .yb.TransactionInvolvedTabletPB tablets = 1;
10074
0
  for (unsigned int i = 0,
10075
0
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
10076
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10077
0
      1, this->tablets(static_cast<int>(i)), output);
10078
0
  }
10079
10080
0
  cached_has_bits = _has_bits_[0];
10081
  // optional fixed64 restart_read_ht = 2;
10082
0
  if (cached_has_bits & 0x00000002u) {
10083
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->restart_read_ht(), output);
10084
0
  }
10085
10086
  // map<string, fixed64> read_restarts = 3;
10087
0
  if (!this->read_restarts().empty()) {
10088
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer
10089
0
        ConstPtr;
10090
0
    typedef ConstPtr SortItem;
10091
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
10092
0
    struct Utf8Check {
10093
0
      static void Check(ConstPtr p) {
10094
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10095
0
          p->first.data(), static_cast<int>(p->first.length()),
10096
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
10097
0
          "yb.ChildTransactionResultPB.ReadRestartsEntry.key");
10098
0
      }
10099
0
    };
10100
10101
0
    if (output->IsSerializationDeterministic() &&
10102
0
        this->read_restarts().size() > 1) {
10103
0
      ::google::protobuf::scoped_array<SortItem> items(
10104
0
          new SortItem[this->read_restarts().size()]);
10105
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type;
10106
0
      size_type n = 0;
10107
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
10108
0
          it = this->read_restarts().begin();
10109
0
          it != this->read_restarts().end(); ++it, ++n) {
10110
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
10111
0
      }
10112
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
10113
0
      ::google::protobuf::scoped_ptr<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse> entry;
10114
0
      for (size_type i = 0; i < n; i++) {
10115
0
        entry.reset(read_restarts_.NewEntryWrapper(
10116
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
10117
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10118
0
            3, *entry, output);
10119
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
10120
0
      }
10121
0
    } else {
10122
0
      ::google::protobuf::scoped_ptr<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse> entry;
10123
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
10124
0
          it = this->read_restarts().begin();
10125
0
          it != this->read_restarts().end(); ++it) {
10126
0
        entry.reset(read_restarts_.NewEntryWrapper(
10127
0
            it->first, it->second));
10128
0
        ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10129
0
            3, *entry, output);
10130
0
        Utf8Check::Check(&*it);
10131
0
      }
10132
0
    }
10133
0
  }
10134
10135
  // optional .yb.ReadHybridTimePB used_read_time = 4;
10136
0
  if (cached_has_bits & 0x00000001u) {
10137
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10138
0
      4, *this->used_read_time_, output);
10139
0
  }
10140
10141
0
  if (_internal_metadata_.have_unknown_fields()) {
10142
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10143
0
        _internal_metadata_.unknown_fields(), output);
10144
0
  }
10145
  // @@protoc_insertion_point(serialize_end:yb.ChildTransactionResultPB)
10146
0
}
10147
10148
::google::protobuf::uint8* ChildTransactionResultPB::InternalSerializeWithCachedSizesToArray(
10149
4.60k
    bool deterministic, ::google::protobuf::uint8* target) const {
10150
4.60k
  (void)deterministic; // Unused
10151
  // @@protoc_insertion_point(serialize_to_array_start:yb.ChildTransactionResultPB)
10152
4.60k
  ::google::protobuf::uint32 cached_has_bits = 0;
10153
4.60k
  (void) cached_has_bits;
10154
10155
  // repeated .yb.TransactionInvolvedTabletPB tablets = 1;
10156
4.60k
  for (unsigned int i = 0,
10157
11.8k
      n = static_cast<unsigned int>(this->tablets_size()); i < n; i++) {
10158
7.28k
    target = ::google::protobuf::internal::WireFormatLite::
10159
7.28k
      InternalWriteMessageToArray(
10160
7.28k
        1, this->tablets(static_cast<int>(i)), deterministic, target);
10161
7.28k
  }
10162
10163
4.60k
  cached_has_bits = _has_bits_[0];
10164
  // optional fixed64 restart_read_ht = 2;
10165
4.60k
  if (cached_has_bits & 0x00000002u) {
10166
4.60k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->restart_read_ht(), target);
10167
4.60k
  }
10168
10169
  // map<string, fixed64> read_restarts = 3;
10170
4.60k
  if (!this->read_restarts().empty()) {
10171
0
    typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_pointer
10172
0
        ConstPtr;
10173
0
    typedef ConstPtr SortItem;
10174
0
    typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
10175
0
    struct Utf8Check {
10176
0
      static void Check(ConstPtr p) {
10177
0
        ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
10178
0
          p->first.data(), static_cast<int>(p->first.length()),
10179
0
          ::google::protobuf::internal::WireFormat::SERIALIZE,
10180
0
          "yb.ChildTransactionResultPB.ReadRestartsEntry.key");
10181
0
      }
10182
0
    };
10183
10184
0
    if (deterministic &&
10185
0
        this->read_restarts().size() > 1) {
10186
0
      ::google::protobuf::scoped_array<SortItem> items(
10187
0
          new SortItem[this->read_restarts().size()]);
10188
0
      typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::size_type size_type;
10189
0
      size_type n = 0;
10190
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
10191
0
          it = this->read_restarts().begin();
10192
0
          it != this->read_restarts().end(); ++it, ++n) {
10193
0
        items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
10194
0
      }
10195
0
      ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
10196
0
      ::google::protobuf::scoped_ptr<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse> entry;
10197
0
      for (size_type i = 0; i < n; i++) {
10198
0
        entry.reset(read_restarts_.NewEntryWrapper(
10199
0
            items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
10200
0
        target = ::google::protobuf::internal::WireFormatLite::
10201
0
                   InternalWriteMessageNoVirtualToArray(
10202
0
                       3, *entry, deterministic, target);
10203
0
;
10204
0
        Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
10205
0
      }
10206
0
    } else {
10207
0
      ::google::protobuf::scoped_ptr<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse> entry;
10208
0
      for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
10209
0
          it = this->read_restarts().begin();
10210
0
          it != this->read_restarts().end(); ++it) {
10211
0
        entry.reset(read_restarts_.NewEntryWrapper(
10212
0
            it->first, it->second));
10213
0
        target = ::google::protobuf::internal::WireFormatLite::
10214
0
                   InternalWriteMessageNoVirtualToArray(
10215
0
                       3, *entry, deterministic, target);
10216
0
;
10217
0
        Utf8Check::Check(&*it);
10218
0
      }
10219
0
    }
10220
0
  }
10221
10222
  // optional .yb.ReadHybridTimePB used_read_time = 4;
10223
4.60k
  if (cached_has_bits & 0x00000001u) {
10224
0
    target = ::google::protobuf::internal::WireFormatLite::
10225
0
      InternalWriteMessageToArray(
10226
0
        4, *this->used_read_time_, deterministic, target);
10227
0
  }
10228
10229
4.60k
  if (_internal_metadata_.have_unknown_fields()) {
10230
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10231
0
        _internal_metadata_.unknown_fields(), target);
10232
0
  }
10233
  // @@protoc_insertion_point(serialize_to_array_end:yb.ChildTransactionResultPB)
10234
4.60k
  return target;
10235
4.60k
}
10236
10237
9.20k
size_t ChildTransactionResultPB::ByteSizeLong() const {
10238
// @@protoc_insertion_point(message_byte_size_start:yb.ChildTransactionResultPB)
10239
9.20k
  size_t total_size = 0;
10240
10241
9.20k
  if (_internal_metadata_.have_unknown_fields()) {
10242
0
    total_size +=
10243
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10244
0
        _internal_metadata_.unknown_fields());
10245
0
  }
10246
  // repeated .yb.TransactionInvolvedTabletPB tablets = 1;
10247
9.20k
  {
10248
9.20k
    unsigned int count = static_cast<unsigned int>(this->tablets_size());
10249
9.20k
    total_size += 1UL * count;
10250
23.7k
    for (unsigned int i = 0; i < count; i++) {
10251
14.5k
      total_size +=
10252
14.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10253
14.5k
          this->tablets(static_cast<int>(i)));
10254
14.5k
    }
10255
9.20k
  }
10256
10257
  // map<string, fixed64> read_restarts = 3;
10258
9.20k
  total_size += 1 *
10259
9.20k
      ::google::protobuf::internal::FromIntSize(this->read_restarts_size());
10260
9.20k
  {
10261
9.20k
    ::google::protobuf::scoped_ptr<ChildTransactionResultPB_ReadRestartsEntry_DoNotUse> entry;
10262
9.20k
    for (::google::protobuf::Map< ::std::string, ::google::protobuf::uint64 >::const_iterator
10263
9.20k
        it = this->read_restarts().begin();
10264
9.20k
        it != this->read_restarts().end(); ++it) {
10265
0
      entry.reset(read_restarts_.NewEntryWrapper(it->first, it->second));
10266
0
      total_size += ::google::protobuf::internal::WireFormatLite::
10267
0
          MessageSizeNoVirtual(*entry);
10268
0
    }
10269
9.20k
  }
10270
10271
9.20k
  if (_has_bits_[0 / 32] & 3u) {
10272
    // optional .yb.ReadHybridTimePB used_read_time = 4;
10273
9.20k
    if (has_used_read_time()) {
10274
0
      total_size += 1 +
10275
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10276
0
          *this->used_read_time_);
10277
0
    }
10278
10279
    // optional fixed64 restart_read_ht = 2;
10280
9.20k
    if (has_restart_read_ht()) {
10281
9.20k
      total_size += 1 + 8;
10282
9.20k
    }
10283
10284
9.20k
  }
10285
9.20k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10286
9.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10287
9.20k
  _cached_size_ = cached_size;
10288
9.20k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10289
9.20k
  return total_size;
10290
9.20k
}
10291
10292
0
void ChildTransactionResultPB::MergeFrom(const ::google::protobuf::Message& from) {
10293
// @@protoc_insertion_point(generalized_merge_from_start:yb.ChildTransactionResultPB)
10294
0
  GOOGLE_DCHECK_NE(&from, this);
10295
0
  const ChildTransactionResultPB* source =
10296
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ChildTransactionResultPB>(
10297
0
          &from);
10298
0
  if (source == NULL) {
10299
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ChildTransactionResultPB)
10300
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10301
0
  } else {
10302
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ChildTransactionResultPB)
10303
0
    MergeFrom(*source);
10304
0
  }
10305
0
}
10306
10307
35.4k
void ChildTransactionResultPB::MergeFrom(const ChildTransactionResultPB& from) {
10308
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ChildTransactionResultPB)
10309
35.4k
  GOOGLE_DCHECK_NE(&from, this);
10310
35.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10311
35.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
10312
35.4k
  (void) cached_has_bits;
10313
10314
35.4k
  tablets_.MergeFrom(from.tablets_);
10315
35.4k
  read_restarts_.MergeFrom(from.read_restarts_);
10316
35.4k
  cached_has_bits = from._has_bits_[0];
10317
35.4k
  if (cached_has_bits & 3u) {
10318
35.4k
    if (cached_has_bits & 0x00000001u) {
10319
0
      mutable_used_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.used_read_time());
10320
0
    }
10321
35.4k
    if (cached_has_bits & 0x00000002u) {
10322
35.4k
      restart_read_ht_ = from.restart_read_ht_;
10323
35.4k
    }
10324
35.4k
    _has_bits_[0] |= cached_has_bits;
10325
35.4k
  }
10326
35.4k
}
10327
10328
0
void ChildTransactionResultPB::CopyFrom(const ::google::protobuf::Message& from) {
10329
// @@protoc_insertion_point(generalized_copy_from_start:yb.ChildTransactionResultPB)
10330
0
  if (&from == this) return;
10331
0
  Clear();
10332
0
  MergeFrom(from);
10333
0
}
10334
10335
35.4k
void ChildTransactionResultPB::CopyFrom(const ChildTransactionResultPB& from) {
10336
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ChildTransactionResultPB)
10337
35.4k
  if (&from == this) return;
10338
35.4k
  Clear();
10339
35.4k
  MergeFrom(from);
10340
35.4k
}
10341
10342
0
bool ChildTransactionResultPB::IsInitialized() const {
10343
0
  return true;
10344
0
}
10345
10346
0
void ChildTransactionResultPB::Swap(ChildTransactionResultPB* other) {
10347
0
  if (other == this) return;
10348
0
  InternalSwap(other);
10349
0
}
10350
29.0k
void ChildTransactionResultPB::InternalSwap(ChildTransactionResultPB* other) {
10351
29.0k
  using std::swap;
10352
29.0k
  tablets_.InternalSwap(&other->tablets_);
10353
29.0k
  read_restarts_.Swap(&other->read_restarts_);
10354
29.0k
  swap(used_read_time_, other->used_read_time_);
10355
29.0k
  swap(restart_read_ht_, other->restart_read_ht_);
10356
29.0k
  swap(_has_bits_[0], other->_has_bits_[0]);
10357
29.0k
  _internal_metadata_.Swap(&other->_internal_metadata_);
10358
29.0k
  swap(_cached_size_, other->_cached_size_);
10359
29.0k
}
10360
10361
0
::google::protobuf::Metadata ChildTransactionResultPB::GetMetadata() const {
10362
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10363
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
10364
0
}
10365
10366
10367
// ===================================================================
10368
10369
17.1k
void DeletedColumnPB::InitAsDefaultInstance() {
10370
17.1k
}
10371
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10372
const int DeletedColumnPB::kColumnIdFieldNumber;
10373
const int DeletedColumnPB::kDeletedHybridTimeFieldNumber;
10374
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10375
10376
DeletedColumnPB::DeletedColumnPB()
10377
30.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10378
13.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10379
13.1k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletedColumnPB();
10380
13.1k
  }
10381
30.3k
  SharedCtor();
10382
  // @@protoc_insertion_point(constructor:yb.DeletedColumnPB)
10383
30.3k
}
10384
DeletedColumnPB::DeletedColumnPB(const DeletedColumnPB& from)
10385
  : ::google::protobuf::Message(),
10386
      _internal_metadata_(NULL),
10387
      _has_bits_(from._has_bits_),
10388
0
      _cached_size_(0) {
10389
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10390
0
  ::memcpy(&deleted_hybrid_time_, &from.deleted_hybrid_time_,
10391
0
    static_cast<size_t>(reinterpret_cast<char*>(&column_id_) -
10392
0
    reinterpret_cast<char*>(&deleted_hybrid_time_)) + sizeof(column_id_));
10393
  // @@protoc_insertion_point(copy_constructor:yb.DeletedColumnPB)
10394
0
}
10395
10396
30.3k
void DeletedColumnPB::SharedCtor() {
10397
30.3k
  _cached_size_ = 0;
10398
30.3k
  ::memset(&deleted_hybrid_time_, 0, static_cast<size_t>(
10399
30.3k
      reinterpret_cast<char*>(&column_id_) -
10400
30.3k
      reinterpret_cast<char*>(&deleted_hybrid_time_)) + sizeof(column_id_));
10401
30.3k
}
10402
10403
13.2k
DeletedColumnPB::~DeletedColumnPB() {
10404
  // @@protoc_insertion_point(destructor:yb.DeletedColumnPB)
10405
13.2k
  SharedDtor();
10406
13.2k
}
10407
10408
13.2k
void DeletedColumnPB::SharedDtor() {
10409
13.2k
}
10410
10411
0
void DeletedColumnPB::SetCachedSize(int size) const {
10412
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10413
0
  _cached_size_ = size;
10414
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10415
0
}
10416
0
const ::google::protobuf::Descriptor* DeletedColumnPB::descriptor() {
10417
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10418
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10419
0
}
10420
10421
0
const DeletedColumnPB& DeletedColumnPB::default_instance() {
10422
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletedColumnPB();
10423
0
  return *internal_default_instance();
10424
0
}
10425
10426
0
DeletedColumnPB* DeletedColumnPB::New(::google::protobuf::Arena* arena) const {
10427
0
  DeletedColumnPB* n = new DeletedColumnPB;
10428
0
  if (arena != NULL) {
10429
0
    arena->Own(n);
10430
0
  }
10431
0
  return n;
10432
0
}
10433
10434
0
void DeletedColumnPB::Clear() {
10435
// @@protoc_insertion_point(message_clear_start:yb.DeletedColumnPB)
10436
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10437
  // Prevent compiler warnings about cached_has_bits being unused
10438
0
  (void) cached_has_bits;
10439
10440
0
  cached_has_bits = _has_bits_[0];
10441
0
  if (cached_has_bits & 3u) {
10442
0
    ::memset(&deleted_hybrid_time_, 0, static_cast<size_t>(
10443
0
        reinterpret_cast<char*>(&column_id_) -
10444
0
        reinterpret_cast<char*>(&deleted_hybrid_time_)) + sizeof(column_id_));
10445
0
  }
10446
0
  _has_bits_.Clear();
10447
0
  _internal_metadata_.Clear();
10448
0
}
10449
10450
bool DeletedColumnPB::MergePartialFromCodedStream(
10451
657
    ::google::protobuf::io::CodedInputStream* input) {
10452
1.31k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10453
657
  ::google::protobuf::uint32 tag;
10454
  // @@protoc_insertion_point(parse_start:yb.DeletedColumnPB)
10455
1.97k
  for (;;) {
10456
1.97k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10457
1.97k
    tag = p.first;
10458
1.97k
    if (!p.second) goto handle_unusual;
10459
1.31k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10460
      // optional int32 column_id = 1;
10461
657
      case 1: {
10462
657
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10463
657
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10464
657
          set_has_column_id();
10465
657
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10466
657
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10467
657
                 input, &column_id_)));
10468
0
        } else {
10469
0
          goto handle_unusual;
10470
0
        }
10471
657
        break;
10472
657
      }
10473
10474
      // optional fixed64 deleted_hybrid_time = 2;
10475
657
      case 2: {
10476
657
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10477
657
            static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
10478
657
          set_has_deleted_hybrid_time();
10479
657
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10480
657
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>(
10481
657
                 input, &deleted_hybrid_time_)));
10482
0
        } else {
10483
0
          goto handle_unusual;
10484
0
        }
10485
657
        break;
10486
657
      }
10487
10488
0
      default: {
10489
657
      handle_unusual:
10490
657
        if (tag == 0) {
10491
657
          goto success;
10492
657
        }
10493
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10494
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10495
0
        break;
10496
0
      }
10497
1.31k
    }
10498
1.31k
  }
10499
657
success:
10500
  // @@protoc_insertion_point(parse_success:yb.DeletedColumnPB)
10501
657
  return true;
10502
0
failure:
10503
  // @@protoc_insertion_point(parse_failure:yb.DeletedColumnPB)
10504
0
  return false;
10505
657
#undef DO_
10506
657
}
10507
10508
void DeletedColumnPB::SerializeWithCachedSizes(
10509
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10510
  // @@protoc_insertion_point(serialize_start:yb.DeletedColumnPB)
10511
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10512
0
  (void) cached_has_bits;
10513
10514
0
  cached_has_bits = _has_bits_[0];
10515
  // optional int32 column_id = 1;
10516
0
  if (cached_has_bits & 0x00000002u) {
10517
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output);
10518
0
  }
10519
10520
  // optional fixed64 deleted_hybrid_time = 2;
10521
0
  if (cached_has_bits & 0x00000001u) {
10522
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed64(2, this->deleted_hybrid_time(), output);
10523
0
  }
10524
10525
0
  if (_internal_metadata_.have_unknown_fields()) {
10526
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10527
0
        _internal_metadata_.unknown_fields(), output);
10528
0
  }
10529
  // @@protoc_insertion_point(serialize_end:yb.DeletedColumnPB)
10530
0
}
10531
10532
::google::protobuf::uint8* DeletedColumnPB::InternalSerializeWithCachedSizesToArray(
10533
12.4k
    bool deterministic, ::google::protobuf::uint8* target) const {
10534
12.4k
  (void)deterministic; // Unused
10535
  // @@protoc_insertion_point(serialize_to_array_start:yb.DeletedColumnPB)
10536
12.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
10537
12.4k
  (void) cached_has_bits;
10538
10539
12.4k
  cached_has_bits = _has_bits_[0];
10540
  // optional int32 column_id = 1;
10541
12.4k
  if (cached_has_bits & 0x00000002u) {
10542
12.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
10543
12.4k
  }
10544
10545
  // optional fixed64 deleted_hybrid_time = 2;
10546
12.4k
  if (cached_has_bits & 0x00000001u) {
10547
12.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(2, this->deleted_hybrid_time(), target);
10548
12.4k
  }
10549
10550
12.4k
  if (_internal_metadata_.have_unknown_fields()) {
10551
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10552
0
        _internal_metadata_.unknown_fields(), target);
10553
0
  }
10554
  // @@protoc_insertion_point(serialize_to_array_end:yb.DeletedColumnPB)
10555
12.4k
  return target;
10556
12.4k
}
10557
10558
12.5k
size_t DeletedColumnPB::ByteSizeLong() const {
10559
// @@protoc_insertion_point(message_byte_size_start:yb.DeletedColumnPB)
10560
12.5k
  size_t total_size = 0;
10561
10562
12.5k
  if (_internal_metadata_.have_unknown_fields()) {
10563
0
    total_size +=
10564
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10565
0
        _internal_metadata_.unknown_fields());
10566
0
  }
10567
12.5k
  if (_has_bits_[0 / 32] & 3u) {
10568
    // optional fixed64 deleted_hybrid_time = 2;
10569
12.5k
    if (has_deleted_hybrid_time()) {
10570
12.5k
      total_size += 1 + 8;
10571
12.5k
    }
10572
10573
    // optional int32 column_id = 1;
10574
12.5k
    if (has_column_id()) {
10575
12.4k
      total_size += 1 +
10576
12.4k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
10577
12.4k
          this->column_id());
10578
12.4k
    }
10579
10580
12.5k
  }
10581
12.5k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10582
12.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10583
12.5k
  _cached_size_ = cached_size;
10584
12.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10585
12.5k
  return total_size;
10586
12.5k
}
10587
10588
0
void DeletedColumnPB::MergeFrom(const ::google::protobuf::Message& from) {
10589
// @@protoc_insertion_point(generalized_merge_from_start:yb.DeletedColumnPB)
10590
0
  GOOGLE_DCHECK_NE(&from, this);
10591
0
  const DeletedColumnPB* source =
10592
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeletedColumnPB>(
10593
0
          &from);
10594
0
  if (source == NULL) {
10595
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.DeletedColumnPB)
10596
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10597
0
  } else {
10598
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.DeletedColumnPB)
10599
0
    MergeFrom(*source);
10600
0
  }
10601
0
}
10602
10603
0
void DeletedColumnPB::MergeFrom(const DeletedColumnPB& from) {
10604
// @@protoc_insertion_point(class_specific_merge_from_start:yb.DeletedColumnPB)
10605
0
  GOOGLE_DCHECK_NE(&from, this);
10606
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10607
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10608
0
  (void) cached_has_bits;
10609
10610
0
  cached_has_bits = from._has_bits_[0];
10611
0
  if (cached_has_bits & 3u) {
10612
0
    if (cached_has_bits & 0x00000001u) {
10613
0
      deleted_hybrid_time_ = from.deleted_hybrid_time_;
10614
0
    }
10615
0
    if (cached_has_bits & 0x00000002u) {
10616
0
      column_id_ = from.column_id_;
10617
0
    }
10618
0
    _has_bits_[0] |= cached_has_bits;
10619
0
  }
10620
0
}
10621
10622
0
void DeletedColumnPB::CopyFrom(const ::google::protobuf::Message& from) {
10623
// @@protoc_insertion_point(generalized_copy_from_start:yb.DeletedColumnPB)
10624
0
  if (&from == this) return;
10625
0
  Clear();
10626
0
  MergeFrom(from);
10627
0
}
10628
10629
0
void DeletedColumnPB::CopyFrom(const DeletedColumnPB& from) {
10630
// @@protoc_insertion_point(class_specific_copy_from_start:yb.DeletedColumnPB)
10631
0
  if (&from == this) return;
10632
0
  Clear();
10633
0
  MergeFrom(from);
10634
0
}
10635
10636
0
bool DeletedColumnPB::IsInitialized() const {
10637
0
  return true;
10638
0
}
10639
10640
0
void DeletedColumnPB::Swap(DeletedColumnPB* other) {
10641
0
  if (other == this) return;
10642
0
  InternalSwap(other);
10643
0
}
10644
0
void DeletedColumnPB::InternalSwap(DeletedColumnPB* other) {
10645
0
  using std::swap;
10646
0
  swap(deleted_hybrid_time_, other->deleted_hybrid_time_);
10647
0
  swap(column_id_, other->column_id_);
10648
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10649
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10650
0
  swap(_cached_size_, other->_cached_size_);
10651
0
}
10652
10653
0
::google::protobuf::Metadata DeletedColumnPB::GetMetadata() const {
10654
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10655
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
10656
0
}
10657
10658
10659
// ===================================================================
10660
10661
17.1k
void QLSubscriptedColPB::InitAsDefaultInstance() {
10662
17.1k
}
10663
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10664
const int QLSubscriptedColPB::kColumnIdFieldNumber;
10665
const int QLSubscriptedColPB::kSubscriptArgsFieldNumber;
10666
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10667
10668
QLSubscriptedColPB::QLSubscriptedColPB()
10669
17.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10670
480
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10671
480
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
10672
480
  }
10673
17.6k
  SharedCtor();
10674
  // @@protoc_insertion_point(constructor:yb.QLSubscriptedColPB)
10675
17.6k
}
10676
QLSubscriptedColPB::QLSubscriptedColPB(const QLSubscriptedColPB& from)
10677
  : ::google::protobuf::Message(),
10678
      _internal_metadata_(NULL),
10679
      _has_bits_(from._has_bits_),
10680
      _cached_size_(0),
10681
0
      subscript_args_(from.subscript_args_) {
10682
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10683
0
  column_id_ = from.column_id_;
10684
  // @@protoc_insertion_point(copy_constructor:yb.QLSubscriptedColPB)
10685
0
}
10686
10687
17.6k
void QLSubscriptedColPB::SharedCtor() {
10688
17.6k
  _cached_size_ = 0;
10689
17.6k
  column_id_ = 0;
10690
17.6k
}
10691
10692
480
QLSubscriptedColPB::~QLSubscriptedColPB() {
10693
  // @@protoc_insertion_point(destructor:yb.QLSubscriptedColPB)
10694
480
  SharedDtor();
10695
480
}
10696
10697
480
void QLSubscriptedColPB::SharedDtor() {
10698
480
}
10699
10700
0
void QLSubscriptedColPB::SetCachedSize(int size) const {
10701
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10702
0
  _cached_size_ = size;
10703
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10704
0
}
10705
0
const ::google::protobuf::Descriptor* QLSubscriptedColPB::descriptor() {
10706
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10707
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10708
0
}
10709
10710
0
const QLSubscriptedColPB& QLSubscriptedColPB::default_instance() {
10711
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
10712
0
  return *internal_default_instance();
10713
0
}
10714
10715
0
QLSubscriptedColPB* QLSubscriptedColPB::New(::google::protobuf::Arena* arena) const {
10716
0
  QLSubscriptedColPB* n = new QLSubscriptedColPB;
10717
0
  if (arena != NULL) {
10718
0
    arena->Own(n);
10719
0
  }
10720
0
  return n;
10721
0
}
10722
10723
0
void QLSubscriptedColPB::Clear() {
10724
// @@protoc_insertion_point(message_clear_start:yb.QLSubscriptedColPB)
10725
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10726
  // Prevent compiler warnings about cached_has_bits being unused
10727
0
  (void) cached_has_bits;
10728
10729
0
  subscript_args_.Clear();
10730
0
  column_id_ = 0;
10731
0
  _has_bits_.Clear();
10732
0
  _internal_metadata_.Clear();
10733
0
}
10734
10735
bool QLSubscriptedColPB::MergePartialFromCodedStream(
10736
236
    ::google::protobuf::io::CodedInputStream* input) {
10737
472
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
10738
236
  ::google::protobuf::uint32 tag;
10739
  // @@protoc_insertion_point(parse_start:yb.QLSubscriptedColPB)
10740
708
  for (;;) {
10741
708
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
10742
708
    tag = p.first;
10743
708
    if (!p.second) goto handle_unusual;
10744
472
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
10745
      // optional int32 column_id = 1;
10746
236
      case 1: {
10747
236
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10748
236
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
10749
236
          set_has_column_id();
10750
236
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
10751
236
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
10752
236
                 input, &column_id_)));
10753
0
        } else {
10754
0
          goto handle_unusual;
10755
0
        }
10756
236
        break;
10757
236
      }
10758
10759
      // repeated .yb.QLExpressionPB subscript_args = 2;
10760
236
      case 2: {
10761
236
        if (static_cast< ::google::protobuf::uint8>(tag) ==
10762
236
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
10763
236
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_subscript_args()));
10764
0
        } else {
10765
0
          goto handle_unusual;
10766
0
        }
10767
236
        break;
10768
236
      }
10769
10770
0
      default: {
10771
236
      handle_unusual:
10772
236
        if (tag == 0) {
10773
236
          goto success;
10774
236
        }
10775
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
10776
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
10777
0
        break;
10778
0
      }
10779
472
    }
10780
472
  }
10781
236
success:
10782
  // @@protoc_insertion_point(parse_success:yb.QLSubscriptedColPB)
10783
236
  return true;
10784
0
failure:
10785
  // @@protoc_insertion_point(parse_failure:yb.QLSubscriptedColPB)
10786
0
  return false;
10787
236
#undef DO_
10788
236
}
10789
10790
void QLSubscriptedColPB::SerializeWithCachedSizes(
10791
0
    ::google::protobuf::io::CodedOutputStream* output) const {
10792
  // @@protoc_insertion_point(serialize_start:yb.QLSubscriptedColPB)
10793
0
  ::google::protobuf::uint32 cached_has_bits = 0;
10794
0
  (void) cached_has_bits;
10795
10796
0
  cached_has_bits = _has_bits_[0];
10797
  // optional int32 column_id = 1;
10798
0
  if (cached_has_bits & 0x00000001u) {
10799
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output);
10800
0
  }
10801
10802
  // repeated .yb.QLExpressionPB subscript_args = 2;
10803
0
  for (unsigned int i = 0,
10804
0
      n = static_cast<unsigned int>(this->subscript_args_size()); i < n; i++) {
10805
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10806
0
      2, this->subscript_args(static_cast<int>(i)), output);
10807
0
  }
10808
10809
0
  if (_internal_metadata_.have_unknown_fields()) {
10810
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
10811
0
        _internal_metadata_.unknown_fields(), output);
10812
0
  }
10813
  // @@protoc_insertion_point(serialize_end:yb.QLSubscriptedColPB)
10814
0
}
10815
10816
::google::protobuf::uint8* QLSubscriptedColPB::InternalSerializeWithCachedSizesToArray(
10817
236
    bool deterministic, ::google::protobuf::uint8* target) const {
10818
236
  (void)deterministic; // Unused
10819
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLSubscriptedColPB)
10820
236
  ::google::protobuf::uint32 cached_has_bits = 0;
10821
236
  (void) cached_has_bits;
10822
10823
236
  cached_has_bits = _has_bits_[0];
10824
  // optional int32 column_id = 1;
10825
236
  if (cached_has_bits & 0x00000001u) {
10826
236
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
10827
236
  }
10828
10829
  // repeated .yb.QLExpressionPB subscript_args = 2;
10830
236
  for (unsigned int i = 0,
10831
472
      n = static_cast<unsigned int>(this->subscript_args_size()); i < n; i++) {
10832
236
    target = ::google::protobuf::internal::WireFormatLite::
10833
236
      InternalWriteMessageToArray(
10834
236
        2, this->subscript_args(static_cast<int>(i)), deterministic, target);
10835
236
  }
10836
10837
236
  if (_internal_metadata_.have_unknown_fields()) {
10838
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
10839
0
        _internal_metadata_.unknown_fields(), target);
10840
0
  }
10841
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLSubscriptedColPB)
10842
236
  return target;
10843
236
}
10844
10845
472
size_t QLSubscriptedColPB::ByteSizeLong() const {
10846
// @@protoc_insertion_point(message_byte_size_start:yb.QLSubscriptedColPB)
10847
472
  size_t total_size = 0;
10848
10849
472
  if (_internal_metadata_.have_unknown_fields()) {
10850
0
    total_size +=
10851
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
10852
0
        _internal_metadata_.unknown_fields());
10853
0
  }
10854
  // repeated .yb.QLExpressionPB subscript_args = 2;
10855
472
  {
10856
472
    unsigned int count = static_cast<unsigned int>(this->subscript_args_size());
10857
472
    total_size += 1UL * count;
10858
944
    for (unsigned int i = 0; i < count; i++) {
10859
472
      total_size +=
10860
472
        ::google::protobuf::internal::WireFormatLite::MessageSize(
10861
472
          this->subscript_args(static_cast<int>(i)));
10862
472
    }
10863
472
  }
10864
10865
  // optional int32 column_id = 1;
10866
472
  if (has_column_id()) {
10867
472
    total_size += 1 +
10868
472
      ::google::protobuf::internal::WireFormatLite::Int32Size(
10869
472
        this->column_id());
10870
472
  }
10871
10872
472
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
10873
472
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10874
472
  _cached_size_ = cached_size;
10875
472
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10876
472
  return total_size;
10877
472
}
10878
10879
0
void QLSubscriptedColPB::MergeFrom(const ::google::protobuf::Message& from) {
10880
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLSubscriptedColPB)
10881
0
  GOOGLE_DCHECK_NE(&from, this);
10882
0
  const QLSubscriptedColPB* source =
10883
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLSubscriptedColPB>(
10884
0
          &from);
10885
0
  if (source == NULL) {
10886
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLSubscriptedColPB)
10887
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
10888
0
  } else {
10889
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLSubscriptedColPB)
10890
0
    MergeFrom(*source);
10891
0
  }
10892
0
}
10893
10894
128
void QLSubscriptedColPB::MergeFrom(const QLSubscriptedColPB& from) {
10895
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLSubscriptedColPB)
10896
128
  GOOGLE_DCHECK_NE(&from, this);
10897
128
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10898
128
  ::google::protobuf::uint32 cached_has_bits = 0;
10899
128
  (void) cached_has_bits;
10900
10901
128
  subscript_args_.MergeFrom(from.subscript_args_);
10902
128
  if (from.has_column_id()) {
10903
128
    set_column_id(from.column_id());
10904
128
  }
10905
128
}
10906
10907
0
void QLSubscriptedColPB::CopyFrom(const ::google::protobuf::Message& from) {
10908
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLSubscriptedColPB)
10909
0
  if (&from == this) return;
10910
0
  Clear();
10911
0
  MergeFrom(from);
10912
0
}
10913
10914
0
void QLSubscriptedColPB::CopyFrom(const QLSubscriptedColPB& from) {
10915
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLSubscriptedColPB)
10916
0
  if (&from == this) return;
10917
0
  Clear();
10918
0
  MergeFrom(from);
10919
0
}
10920
10921
470
bool QLSubscriptedColPB::IsInitialized() const {
10922
470
  if (!::google::protobuf::internal::AllAreInitialized(this->subscript_args())) return false;
10923
470
  return true;
10924
470
}
10925
10926
0
void QLSubscriptedColPB::Swap(QLSubscriptedColPB* other) {
10927
0
  if (other == this) return;
10928
0
  InternalSwap(other);
10929
0
}
10930
0
void QLSubscriptedColPB::InternalSwap(QLSubscriptedColPB* other) {
10931
0
  using std::swap;
10932
0
  subscript_args_.InternalSwap(&other->subscript_args_);
10933
0
  swap(column_id_, other->column_id_);
10934
0
  swap(_has_bits_[0], other->_has_bits_[0]);
10935
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
10936
0
  swap(_cached_size_, other->_cached_size_);
10937
0
}
10938
10939
236
::google::protobuf::Metadata QLSubscriptedColPB::GetMetadata() const {
10940
236
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10941
236
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
10942
236
}
10943
10944
10945
// ===================================================================
10946
10947
17.1k
void QLJsonColumnOperationsPB::InitAsDefaultInstance() {
10948
17.1k
}
10949
#if !defined(_MSC_VER) || _MSC_VER >= 1900
10950
const int QLJsonColumnOperationsPB::kColumnIdFieldNumber;
10951
const int QLJsonColumnOperationsPB::kJsonOperationsFieldNumber;
10952
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
10953
10954
QLJsonColumnOperationsPB::QLJsonColumnOperationsPB()
10955
60.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
10956
43.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
10957
43.6k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
10958
43.6k
  }
10959
60.8k
  SharedCtor();
10960
  // @@protoc_insertion_point(constructor:yb.QLJsonColumnOperationsPB)
10961
60.8k
}
10962
QLJsonColumnOperationsPB::QLJsonColumnOperationsPB(const QLJsonColumnOperationsPB& from)
10963
  : ::google::protobuf::Message(),
10964
      _internal_metadata_(NULL),
10965
      _has_bits_(from._has_bits_),
10966
      _cached_size_(0),
10967
0
      json_operations_(from.json_operations_) {
10968
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
10969
0
  column_id_ = from.column_id_;
10970
  // @@protoc_insertion_point(copy_constructor:yb.QLJsonColumnOperationsPB)
10971
0
}
10972
10973
60.8k
void QLJsonColumnOperationsPB::SharedCtor() {
10974
60.8k
  _cached_size_ = 0;
10975
60.8k
  column_id_ = 0;
10976
60.8k
}
10977
10978
43.5k
QLJsonColumnOperationsPB::~QLJsonColumnOperationsPB() {
10979
  // @@protoc_insertion_point(destructor:yb.QLJsonColumnOperationsPB)
10980
43.5k
  SharedDtor();
10981
43.5k
}
10982
10983
43.5k
void QLJsonColumnOperationsPB::SharedDtor() {
10984
43.5k
}
10985
10986
0
void QLJsonColumnOperationsPB::SetCachedSize(int size) const {
10987
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
10988
0
  _cached_size_ = size;
10989
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
10990
0
}
10991
0
const ::google::protobuf::Descriptor* QLJsonColumnOperationsPB::descriptor() {
10992
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
10993
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
10994
0
}
10995
10996
0
const QLJsonColumnOperationsPB& QLJsonColumnOperationsPB::default_instance() {
10997
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
10998
0
  return *internal_default_instance();
10999
0
}
11000
11001
0
QLJsonColumnOperationsPB* QLJsonColumnOperationsPB::New(::google::protobuf::Arena* arena) const {
11002
0
  QLJsonColumnOperationsPB* n = new QLJsonColumnOperationsPB;
11003
0
  if (arena != NULL) {
11004
0
    arena->Own(n);
11005
0
  }
11006
0
  return n;
11007
0
}
11008
11009
0
void QLJsonColumnOperationsPB::Clear() {
11010
// @@protoc_insertion_point(message_clear_start:yb.QLJsonColumnOperationsPB)
11011
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11012
  // Prevent compiler warnings about cached_has_bits being unused
11013
0
  (void) cached_has_bits;
11014
11015
0
  json_operations_.Clear();
11016
0
  column_id_ = 0;
11017
0
  _has_bits_.Clear();
11018
0
  _internal_metadata_.Clear();
11019
0
}
11020
11021
bool QLJsonColumnOperationsPB::MergePartialFromCodedStream(
11022
6.64k
    ::google::protobuf::io::CodedInputStream* input) {
11023
17.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11024
6.64k
  ::google::protobuf::uint32 tag;
11025
  // @@protoc_insertion_point(parse_start:yb.QLJsonColumnOperationsPB)
11026
24.0k
  for (;;) {
11027
24.0k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11028
24.0k
    tag = p.first;
11029
24.0k
    if (!p.second) goto handle_unusual;
11030
17.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11031
      // optional int32 column_id = 1;
11032
6.62k
      case 1: {
11033
6.62k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11034
6.63k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11035
6.63k
          set_has_column_id();
11036
6.63k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11037
6.63k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11038
6.63k
                 input, &column_id_)));
11039
18.4E
        } else {
11040
18.4E
          goto handle_unusual;
11041
18.4E
        }
11042
6.63k
        break;
11043
6.63k
      }
11044
11045
      // repeated .yb.QLJsonOperationPB json_operations = 2;
11046
10.8k
      case 2: {
11047
10.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11048
10.8k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11049
10.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_json_operations()));
11050
0
        } else {
11051
0
          goto handle_unusual;
11052
0
        }
11053
10.8k
        break;
11054
6.63k
      }
11055
11056
0
      default: {
11057
6.63k
      handle_unusual:
11058
6.63k
        if (tag == 0) {
11059
6.63k
          goto success;
11060
6.63k
        }
11061
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11062
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11063
18.4E
        break;
11064
18.4E
      }
11065
17.4k
    }
11066
17.4k
  }
11067
6.63k
success:
11068
  // @@protoc_insertion_point(parse_success:yb.QLJsonColumnOperationsPB)
11069
6.63k
  return true;
11070
0
failure:
11071
  // @@protoc_insertion_point(parse_failure:yb.QLJsonColumnOperationsPB)
11072
0
  return false;
11073
6.64k
#undef DO_
11074
6.64k
}
11075
11076
void QLJsonColumnOperationsPB::SerializeWithCachedSizes(
11077
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11078
  // @@protoc_insertion_point(serialize_start:yb.QLJsonColumnOperationsPB)
11079
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11080
0
  (void) cached_has_bits;
11081
11082
0
  cached_has_bits = _has_bits_[0];
11083
  // optional int32 column_id = 1;
11084
0
  if (cached_has_bits & 0x00000001u) {
11085
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output);
11086
0
  }
11087
11088
  // repeated .yb.QLJsonOperationPB json_operations = 2;
11089
0
  for (unsigned int i = 0,
11090
0
      n = static_cast<unsigned int>(this->json_operations_size()); i < n; i++) {
11091
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11092
0
      2, this->json_operations(static_cast<int>(i)), output);
11093
0
  }
11094
11095
0
  if (_internal_metadata_.have_unknown_fields()) {
11096
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11097
0
        _internal_metadata_.unknown_fields(), output);
11098
0
  }
11099
  // @@protoc_insertion_point(serialize_end:yb.QLJsonColumnOperationsPB)
11100
0
}
11101
11102
::google::protobuf::uint8* QLJsonColumnOperationsPB::InternalSerializeWithCachedSizesToArray(
11103
22.8k
    bool deterministic, ::google::protobuf::uint8* target) const {
11104
22.8k
  (void)deterministic; // Unused
11105
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLJsonColumnOperationsPB)
11106
22.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
11107
22.8k
  (void) cached_has_bits;
11108
11109
22.8k
  cached_has_bits = _has_bits_[0];
11110
  // optional int32 column_id = 1;
11111
22.8k
  if (cached_has_bits & 0x00000001u) {
11112
22.8k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
11113
22.8k
  }
11114
11115
  // repeated .yb.QLJsonOperationPB json_operations = 2;
11116
22.8k
  for (unsigned int i = 0,
11117
59.2k
      n = static_cast<unsigned int>(this->json_operations_size()); i < n; i++) {
11118
36.4k
    target = ::google::protobuf::internal::WireFormatLite::
11119
36.4k
      InternalWriteMessageToArray(
11120
36.4k
        2, this->json_operations(static_cast<int>(i)), deterministic, target);
11121
36.4k
  }
11122
11123
22.8k
  if (_internal_metadata_.have_unknown_fields()) {
11124
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11125
0
        _internal_metadata_.unknown_fields(), target);
11126
0
  }
11127
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLJsonColumnOperationsPB)
11128
22.8k
  return target;
11129
22.8k
}
11130
11131
40.0k
size_t QLJsonColumnOperationsPB::ByteSizeLong() const {
11132
// @@protoc_insertion_point(message_byte_size_start:yb.QLJsonColumnOperationsPB)
11133
40.0k
  size_t total_size = 0;
11134
11135
40.0k
  if (_internal_metadata_.have_unknown_fields()) {
11136
0
    total_size +=
11137
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11138
0
        _internal_metadata_.unknown_fields());
11139
0
  }
11140
  // repeated .yb.QLJsonOperationPB json_operations = 2;
11141
40.0k
  {
11142
40.0k
    unsigned int count = static_cast<unsigned int>(this->json_operations_size());
11143
40.0k
    total_size += 1UL * count;
11144
103k
    for (unsigned int i = 0; i < count; i++) {
11145
63.9k
      total_size +=
11146
63.9k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
11147
63.9k
          this->json_operations(static_cast<int>(i)));
11148
63.9k
    }
11149
40.0k
  }
11150
11151
  // optional int32 column_id = 1;
11152
40.0k
  if (has_column_id()) {
11153
40.0k
    total_size += 1 +
11154
40.0k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
11155
40.0k
        this->column_id());
11156
40.0k
  }
11157
11158
40.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11159
40.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11160
40.0k
  _cached_size_ = cached_size;
11161
40.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11162
40.0k
  return total_size;
11163
40.0k
}
11164
11165
0
void QLJsonColumnOperationsPB::MergeFrom(const ::google::protobuf::Message& from) {
11166
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLJsonColumnOperationsPB)
11167
0
  GOOGLE_DCHECK_NE(&from, this);
11168
0
  const QLJsonColumnOperationsPB* source =
11169
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLJsonColumnOperationsPB>(
11170
0
          &from);
11171
0
  if (source == NULL) {
11172
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLJsonColumnOperationsPB)
11173
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11174
0
  } else {
11175
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLJsonColumnOperationsPB)
11176
0
    MergeFrom(*source);
11177
0
  }
11178
0
}
11179
11180
36.3k
void QLJsonColumnOperationsPB::MergeFrom(const QLJsonColumnOperationsPB& from) {
11181
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLJsonColumnOperationsPB)
11182
36.3k
  GOOGLE_DCHECK_NE(&from, this);
11183
36.3k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11184
36.3k
  ::google::protobuf::uint32 cached_has_bits = 0;
11185
36.3k
  (void) cached_has_bits;
11186
11187
36.3k
  json_operations_.MergeFrom(from.json_operations_);
11188
36.3k
  if (from.has_column_id()) {
11189
36.3k
    set_column_id(from.column_id());
11190
36.3k
  }
11191
36.3k
}
11192
11193
0
void QLJsonColumnOperationsPB::CopyFrom(const ::google::protobuf::Message& from) {
11194
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLJsonColumnOperationsPB)
11195
0
  if (&from == this) return;
11196
0
  Clear();
11197
0
  MergeFrom(from);
11198
0
}
11199
11200
0
void QLJsonColumnOperationsPB::CopyFrom(const QLJsonColumnOperationsPB& from) {
11201
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLJsonColumnOperationsPB)
11202
0
  if (&from == this) return;
11203
0
  Clear();
11204
0
  MergeFrom(from);
11205
0
}
11206
11207
37.0k
bool QLJsonColumnOperationsPB::IsInitialized() const {
11208
37.0k
  if (!::google::protobuf::internal::AllAreInitialized(this->json_operations())) return false;
11209
37.0k
  return true;
11210
37.0k
}
11211
11212
0
void QLJsonColumnOperationsPB::Swap(QLJsonColumnOperationsPB* other) {
11213
0
  if (other == this) return;
11214
0
  InternalSwap(other);
11215
0
}
11216
0
void QLJsonColumnOperationsPB::InternalSwap(QLJsonColumnOperationsPB* other) {
11217
0
  using std::swap;
11218
0
  json_operations_.InternalSwap(&other->json_operations_);
11219
0
  swap(column_id_, other->column_id_);
11220
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11221
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11222
0
  swap(_cached_size_, other->_cached_size_);
11223
0
}
11224
11225
31.0k
::google::protobuf::Metadata QLJsonColumnOperationsPB::GetMetadata() const {
11226
31.0k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
11227
31.0k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
11228
31.0k
}
11229
11230
11231
// ===================================================================
11232
11233
17.1k
void QLJsonOperationPB::InitAsDefaultInstance() {
11234
17.1k
  ::yb::_QLJsonOperationPB_default_instance_._instance.get_mutable()->operand_ = const_cast< ::yb::QLExpressionPB*>(
11235
17.1k
      ::yb::QLExpressionPB::internal_default_instance());
11236
17.1k
}
11237
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11238
const int QLJsonOperationPB::kJsonOperatorFieldNumber;
11239
const int QLJsonOperationPB::kOperandFieldNumber;
11240
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11241
11242
QLJsonOperationPB::QLJsonOperationPB()
11243
86.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11244
69.8k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11245
69.8k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
11246
69.8k
  }
11247
86.9k
  SharedCtor();
11248
  // @@protoc_insertion_point(constructor:yb.QLJsonOperationPB)
11249
86.9k
}
11250
QLJsonOperationPB::QLJsonOperationPB(const QLJsonOperationPB& from)
11251
  : ::google::protobuf::Message(),
11252
      _internal_metadata_(NULL),
11253
      _has_bits_(from._has_bits_),
11254
0
      _cached_size_(0) {
11255
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11256
0
  if (from.has_operand()) {
11257
0
    operand_ = new ::yb::QLExpressionPB(*from.operand_);
11258
0
  } else {
11259
0
    operand_ = NULL;
11260
0
  }
11261
0
  json_operator_ = from.json_operator_;
11262
  // @@protoc_insertion_point(copy_constructor:yb.QLJsonOperationPB)
11263
0
}
11264
11265
86.8k
void QLJsonOperationPB::SharedCtor() {
11266
86.8k
  _cached_size_ = 0;
11267
86.8k
  ::memset(&operand_, 0, static_cast<size_t>(
11268
86.8k
      reinterpret_cast<char*>(&json_operator_) -
11269
86.8k
      reinterpret_cast<char*>(&operand_)) + sizeof(json_operator_));
11270
86.8k
}
11271
11272
69.4k
QLJsonOperationPB::~QLJsonOperationPB() {
11273
  // @@protoc_insertion_point(destructor:yb.QLJsonOperationPB)
11274
69.4k
  SharedDtor();
11275
69.4k
}
11276
11277
69.4k
void QLJsonOperationPB::SharedDtor() {
11278
69.4k
  if (this != internal_default_instance()) delete operand_;
11279
69.4k
}
11280
11281
0
void QLJsonOperationPB::SetCachedSize(int size) const {
11282
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11283
0
  _cached_size_ = size;
11284
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11285
0
}
11286
0
const ::google::protobuf::Descriptor* QLJsonOperationPB::descriptor() {
11287
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
11288
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11289
0
}
11290
11291
0
const QLJsonOperationPB& QLJsonOperationPB::default_instance() {
11292
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
11293
0
  return *internal_default_instance();
11294
0
}
11295
11296
0
QLJsonOperationPB* QLJsonOperationPB::New(::google::protobuf::Arena* arena) const {
11297
0
  QLJsonOperationPB* n = new QLJsonOperationPB;
11298
0
  if (arena != NULL) {
11299
0
    arena->Own(n);
11300
0
  }
11301
0
  return n;
11302
0
}
11303
11304
0
void QLJsonOperationPB::Clear() {
11305
// @@protoc_insertion_point(message_clear_start:yb.QLJsonOperationPB)
11306
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11307
  // Prevent compiler warnings about cached_has_bits being unused
11308
0
  (void) cached_has_bits;
11309
11310
0
  cached_has_bits = _has_bits_[0];
11311
0
  if (cached_has_bits & 0x00000001u) {
11312
0
    GOOGLE_DCHECK(operand_ != NULL);
11313
0
    operand_->Clear();
11314
0
  }
11315
0
  json_operator_ = 0;
11316
0
  _has_bits_.Clear();
11317
0
  _internal_metadata_.Clear();
11318
0
}
11319
11320
bool QLJsonOperationPB::MergePartialFromCodedStream(
11321
10.9k
    ::google::protobuf::io::CodedInputStream* input) {
11322
21.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11323
10.9k
  ::google::protobuf::uint32 tag;
11324
  // @@protoc_insertion_point(parse_start:yb.QLJsonOperationPB)
11325
32.7k
  for (;;) {
11326
32.7k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11327
32.7k
    tag = p.first;
11328
32.7k
    if (!p.second) goto handle_unusual;
11329
21.7k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11330
      // required .yb.JsonOperatorPB json_operator = 1;
11331
10.9k
      case 1: {
11332
10.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11333
10.9k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
11334
10.9k
          int value;
11335
10.9k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11336
10.9k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
11337
10.9k
                 input, &value)));
11338
10.9k
          if (::yb::JsonOperatorPB_IsValid(value)) {
11339
10.9k
            set_json_operator(static_cast< ::yb::JsonOperatorPB >(value));
11340
4
          } else {
11341
4
            mutable_unknown_fields()->AddVarint(
11342
4
                1, static_cast< ::google::protobuf::uint64>(value));
11343
4
          }
11344
18.4E
        } else {
11345
18.4E
          goto handle_unusual;
11346
18.4E
        }
11347
10.9k
        break;
11348
10.9k
      }
11349
11350
      // required .yb.QLExpressionPB operand = 2;
11351
10.9k
      case 2: {
11352
10.9k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11353
10.9k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
11354
10.9k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11355
10.9k
               input, mutable_operand()));
11356
0
        } else {
11357
0
          goto handle_unusual;
11358
0
        }
11359
10.9k
        break;
11360
10.9k
      }
11361
11362
0
      default: {
11363
10.9k
      handle_unusual:
11364
10.9k
        if (tag == 0) {
11365
10.9k
          goto success;
11366
10.9k
        }
11367
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11368
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11369
18.4E
        break;
11370
18.4E
      }
11371
21.7k
    }
11372
21.7k
  }
11373
10.9k
success:
11374
  // @@protoc_insertion_point(parse_success:yb.QLJsonOperationPB)
11375
10.9k
  return true;
11376
0
failure:
11377
  // @@protoc_insertion_point(parse_failure:yb.QLJsonOperationPB)
11378
0
  return false;
11379
10.9k
#undef DO_
11380
10.9k
}
11381
11382
void QLJsonOperationPB::SerializeWithCachedSizes(
11383
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11384
  // @@protoc_insertion_point(serialize_start:yb.QLJsonOperationPB)
11385
0
  ::google::protobuf::uint32 cached_has_bits = 0;
11386
0
  (void) cached_has_bits;
11387
11388
0
  cached_has_bits = _has_bits_[0];
11389
  // required .yb.JsonOperatorPB json_operator = 1;
11390
0
  if (cached_has_bits & 0x00000002u) {
11391
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
11392
0
      1, this->json_operator(), output);
11393
0
  }
11394
11395
  // required .yb.QLExpressionPB operand = 2;
11396
0
  if (cached_has_bits & 0x00000001u) {
11397
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11398
0
      2, *this->operand_, output);
11399
0
  }
11400
11401
0
  if (_internal_metadata_.have_unknown_fields()) {
11402
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
11403
0
        _internal_metadata_.unknown_fields(), output);
11404
0
  }
11405
  // @@protoc_insertion_point(serialize_end:yb.QLJsonOperationPB)
11406
0
}
11407
11408
::google::protobuf::uint8* QLJsonOperationPB::InternalSerializeWithCachedSizesToArray(
11409
36.5k
    bool deterministic, ::google::protobuf::uint8* target) const {
11410
36.5k
  (void)deterministic; // Unused
11411
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLJsonOperationPB)
11412
36.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
11413
36.5k
  (void) cached_has_bits;
11414
11415
36.5k
  cached_has_bits = _has_bits_[0];
11416
  // required .yb.JsonOperatorPB json_operator = 1;
11417
36.5k
  if (cached_has_bits & 0x00000002u) {
11418
36.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
11419
36.5k
      1, this->json_operator(), target);
11420
36.5k
  }
11421
11422
  // required .yb.QLExpressionPB operand = 2;
11423
36.5k
  if (cached_has_bits & 0x00000001u) {
11424
36.5k
    target = ::google::protobuf::internal::WireFormatLite::
11425
36.5k
      InternalWriteMessageToArray(
11426
36.5k
        2, *this->operand_, deterministic, target);
11427
36.5k
  }
11428
11429
36.5k
  if (_internal_metadata_.have_unknown_fields()) {
11430
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
11431
0
        _internal_metadata_.unknown_fields(), target);
11432
0
  }
11433
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLJsonOperationPB)
11434
36.5k
  return target;
11435
36.5k
}
11436
11437
0
size_t QLJsonOperationPB::RequiredFieldsByteSizeFallback() const {
11438
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.QLJsonOperationPB)
11439
0
  size_t total_size = 0;
11440
11441
0
  if (has_operand()) {
11442
    // required .yb.QLExpressionPB operand = 2;
11443
0
    total_size += 1 +
11444
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
11445
0
        *this->operand_);
11446
0
  }
11447
11448
0
  if (has_json_operator()) {
11449
    // required .yb.JsonOperatorPB json_operator = 1;
11450
0
    total_size += 1 +
11451
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->json_operator());
11452
0
  }
11453
11454
0
  return total_size;
11455
0
}
11456
64.0k
size_t QLJsonOperationPB::ByteSizeLong() const {
11457
// @@protoc_insertion_point(message_byte_size_start:yb.QLJsonOperationPB)
11458
64.0k
  size_t total_size = 0;
11459
11460
64.0k
  if (_internal_metadata_.have_unknown_fields()) {
11461
0
    total_size +=
11462
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
11463
0
        _internal_metadata_.unknown_fields());
11464
0
  }
11465
64.0k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
11466
    // required .yb.QLExpressionPB operand = 2;
11467
64.0k
    total_size += 1 +
11468
64.0k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
11469
64.0k
        *this->operand_);
11470
11471
    // required .yb.JsonOperatorPB json_operator = 1;
11472
64.0k
    total_size += 1 +
11473
64.0k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->json_operator());
11474
11475
27
  } else {
11476
27
    total_size += RequiredFieldsByteSizeFallback();
11477
27
  }
11478
64.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
11479
64.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11480
64.0k
  _cached_size_ = cached_size;
11481
64.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11482
64.0k
  return total_size;
11483
64.0k
}
11484
11485
0
void QLJsonOperationPB::MergeFrom(const ::google::protobuf::Message& from) {
11486
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLJsonOperationPB)
11487
0
  GOOGLE_DCHECK_NE(&from, this);
11488
0
  const QLJsonOperationPB* source =
11489
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLJsonOperationPB>(
11490
0
          &from);
11491
0
  if (source == NULL) {
11492
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLJsonOperationPB)
11493
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
11494
0
  } else {
11495
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLJsonOperationPB)
11496
0
    MergeFrom(*source);
11497
0
  }
11498
0
}
11499
11500
57.5k
void QLJsonOperationPB::MergeFrom(const QLJsonOperationPB& from) {
11501
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLJsonOperationPB)
11502
57.5k
  GOOGLE_DCHECK_NE(&from, this);
11503
57.5k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11504
57.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
11505
57.5k
  (void) cached_has_bits;
11506
11507
57.5k
  cached_has_bits = from._has_bits_[0];
11508
57.5k
  if (cached_has_bits & 3u) {
11509
57.5k
    if (cached_has_bits & 0x00000001u) {
11510
57.5k
      mutable_operand()->::yb::QLExpressionPB::MergeFrom(from.operand());
11511
57.5k
    }
11512
57.4k
    if (cached_has_bits & 0x00000002u) {
11513
57.4k
      json_operator_ = from.json_operator_;
11514
57.4k
    }
11515
57.4k
    _has_bits_[0] |= cached_has_bits;
11516
57.4k
  }
11517
57.5k
}
11518
11519
0
void QLJsonOperationPB::CopyFrom(const ::google::protobuf::Message& from) {
11520
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLJsonOperationPB)
11521
0
  if (&from == this) return;
11522
0
  Clear();
11523
0
  MergeFrom(from);
11524
0
}
11525
11526
0
void QLJsonOperationPB::CopyFrom(const QLJsonOperationPB& from) {
11527
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLJsonOperationPB)
11528
0
  if (&from == this) return;
11529
0
  Clear();
11530
0
  MergeFrom(from);
11531
0
}
11532
11533
59.7k
bool QLJsonOperationPB::IsInitialized() const {
11534
59.7k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
11535
59.7k
  if (has_operand()) {
11536
59.7k
    if (!this->operand_->IsInitialized()) return false;
11537
59.7k
  }
11538
59.7k
  return true;
11539
59.7k
}
11540
11541
0
void QLJsonOperationPB::Swap(QLJsonOperationPB* other) {
11542
0
  if (other == this) return;
11543
0
  InternalSwap(other);
11544
0
}
11545
0
void QLJsonOperationPB::InternalSwap(QLJsonOperationPB* other) {
11546
0
  using std::swap;
11547
0
  swap(operand_, other->operand_);
11548
0
  swap(json_operator_, other->json_operator_);
11549
0
  swap(_has_bits_[0], other->_has_bits_[0]);
11550
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
11551
0
  swap(_cached_size_, other->_cached_size_);
11552
0
}
11553
11554
41.6k
::google::protobuf::Metadata QLJsonOperationPB::GetMetadata() const {
11555
41.6k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
11556
41.6k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
11557
41.6k
}
11558
11559
11560
// ===================================================================
11561
11562
17.1k
void QLExpressionPB::InitAsDefaultInstance() {
11563
17.1k
  ::yb::_QLExpressionPB_default_instance_.value_ = const_cast< ::yb::QLValuePB*>(
11564
17.1k
      ::yb::QLValuePB::internal_default_instance());
11565
17.1k
  ::yb::_QLExpressionPB_default_instance_.column_id_ = 0;
11566
17.1k
  ::yb::_QLExpressionPB_default_instance_.subscripted_col_ = const_cast< ::yb::QLSubscriptedColPB*>(
11567
17.1k
      ::yb::QLSubscriptedColPB::internal_default_instance());
11568
17.1k
  ::yb::_QLExpressionPB_default_instance_.bind_id_ = 0;
11569
17.1k
  ::yb::_QLExpressionPB_default_instance_.condition_ = const_cast< ::yb::QLConditionPB*>(
11570
17.1k
      ::yb::QLConditionPB::internal_default_instance());
11571
17.1k
  ::yb::_QLExpressionPB_default_instance_.bfcall_ = const_cast< ::yb::QLBCallPB*>(
11572
17.1k
      ::yb::QLBCallPB::internal_default_instance());
11573
17.1k
  ::yb::_QLExpressionPB_default_instance_.tscall_ = const_cast< ::yb::QLBCallPB*>(
11574
17.1k
      ::yb::QLBCallPB::internal_default_instance());
11575
17.1k
  ::yb::_QLExpressionPB_default_instance_.bocall_ = const_cast< ::yb::QLBCallPB*>(
11576
17.1k
      ::yb::QLBCallPB::internal_default_instance());
11577
17.1k
  ::yb::_QLExpressionPB_default_instance_.json_column_ = const_cast< ::yb::QLJsonColumnOperationsPB*>(
11578
17.1k
      ::yb::QLJsonColumnOperationsPB::internal_default_instance());
11579
17.1k
}
11580
0
void QLExpressionPB::set_allocated_value(::yb::QLValuePB* value) {
11581
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11582
0
  clear_expr();
11583
0
  if (value) {
11584
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11585
0
    if (message_arena != submessage_arena) {
11586
0
      value = ::google::protobuf::internal::GetOwnedMessage(
11587
0
          message_arena, value, submessage_arena);
11588
0
    }
11589
0
    set_has_value();
11590
0
    expr_.value_ = value;
11591
0
  }
11592
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.value)
11593
0
}
11594
0
void QLExpressionPB::clear_value() {
11595
0
  if (has_value()) {
11596
0
    delete expr_.value_;
11597
0
    clear_has_expr();
11598
0
  }
11599
0
}
11600
0
void QLExpressionPB::set_allocated_subscripted_col(::yb::QLSubscriptedColPB* subscripted_col) {
11601
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11602
0
  clear_expr();
11603
0
  if (subscripted_col) {
11604
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11605
0
    if (message_arena != submessage_arena) {
11606
0
      subscripted_col = ::google::protobuf::internal::GetOwnedMessage(
11607
0
          message_arena, subscripted_col, submessage_arena);
11608
0
    }
11609
0
    set_has_subscripted_col();
11610
0
    expr_.subscripted_col_ = subscripted_col;
11611
0
  }
11612
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.subscripted_col)
11613
0
}
11614
0
void QLExpressionPB::set_allocated_condition(::yb::QLConditionPB* condition) {
11615
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11616
0
  clear_expr();
11617
0
  if (condition) {
11618
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11619
0
    if (message_arena != submessage_arena) {
11620
0
      condition = ::google::protobuf::internal::GetOwnedMessage(
11621
0
          message_arena, condition, submessage_arena);
11622
0
    }
11623
0
    set_has_condition();
11624
0
    expr_.condition_ = condition;
11625
0
  }
11626
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.condition)
11627
0
}
11628
0
void QLExpressionPB::set_allocated_bfcall(::yb::QLBCallPB* bfcall) {
11629
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11630
0
  clear_expr();
11631
0
  if (bfcall) {
11632
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11633
0
    if (message_arena != submessage_arena) {
11634
0
      bfcall = ::google::protobuf::internal::GetOwnedMessage(
11635
0
          message_arena, bfcall, submessage_arena);
11636
0
    }
11637
0
    set_has_bfcall();
11638
0
    expr_.bfcall_ = bfcall;
11639
0
  }
11640
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.bfcall)
11641
0
}
11642
0
void QLExpressionPB::set_allocated_tscall(::yb::QLBCallPB* tscall) {
11643
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11644
0
  clear_expr();
11645
0
  if (tscall) {
11646
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11647
0
    if (message_arena != submessage_arena) {
11648
0
      tscall = ::google::protobuf::internal::GetOwnedMessage(
11649
0
          message_arena, tscall, submessage_arena);
11650
0
    }
11651
0
    set_has_tscall();
11652
0
    expr_.tscall_ = tscall;
11653
0
  }
11654
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.tscall)
11655
0
}
11656
0
void QLExpressionPB::set_allocated_bocall(::yb::QLBCallPB* bocall) {
11657
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11658
0
  clear_expr();
11659
0
  if (bocall) {
11660
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11661
0
    if (message_arena != submessage_arena) {
11662
0
      bocall = ::google::protobuf::internal::GetOwnedMessage(
11663
0
          message_arena, bocall, submessage_arena);
11664
0
    }
11665
0
    set_has_bocall();
11666
0
    expr_.bocall_ = bocall;
11667
0
  }
11668
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.bocall)
11669
0
}
11670
0
void QLExpressionPB::set_allocated_json_column(::yb::QLJsonColumnOperationsPB* json_column) {
11671
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
11672
0
  clear_expr();
11673
0
  if (json_column) {
11674
0
    ::google::protobuf::Arena* submessage_arena = NULL;
11675
0
    if (message_arena != submessage_arena) {
11676
0
      json_column = ::google::protobuf::internal::GetOwnedMessage(
11677
0
          message_arena, json_column, submessage_arena);
11678
0
    }
11679
0
    set_has_json_column();
11680
0
    expr_.json_column_ = json_column;
11681
0
  }
11682
  // @@protoc_insertion_point(field_set_allocated:yb.QLExpressionPB.json_column)
11683
0
}
11684
#if !defined(_MSC_VER) || _MSC_VER >= 1900
11685
const int QLExpressionPB::kValueFieldNumber;
11686
const int QLExpressionPB::kColumnIdFieldNumber;
11687
const int QLExpressionPB::kSubscriptedColFieldNumber;
11688
const int QLExpressionPB::kBindIdFieldNumber;
11689
const int QLExpressionPB::kConditionFieldNumber;
11690
const int QLExpressionPB::kBfcallFieldNumber;
11691
const int QLExpressionPB::kTscallFieldNumber;
11692
const int QLExpressionPB::kBocallFieldNumber;
11693
const int QLExpressionPB::kJsonColumnFieldNumber;
11694
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
11695
11696
QLExpressionPB::QLExpressionPB()
11697
40.8M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
11698
40.8M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
11699
40.8M
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
11700
40.8M
  }
11701
40.8M
  SharedCtor();
11702
  // @@protoc_insertion_point(constructor:yb.QLExpressionPB)
11703
40.8M
}
11704
QLExpressionPB::QLExpressionPB(const QLExpressionPB& from)
11705
  : ::google::protobuf::Message(),
11706
      _internal_metadata_(NULL),
11707
      _has_bits_(from._has_bits_),
11708
977k
      _cached_size_(0) {
11709
977k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
11710
977k
  clear_has_expr();
11711
977k
  switch (from.expr_case()) {
11712
289
    case kValue: {
11713
289
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
11714
289
      break;
11715
0
    }
11716
917k
    case kColumnId: {
11717
917k
      set_column_id(from.column_id());
11718
917k
      break;
11719
0
    }
11720
0
    case kSubscriptedCol: {
11721
0
      mutable_subscripted_col()->::yb::QLSubscriptedColPB::MergeFrom(from.subscripted_col());
11722
0
      break;
11723
0
    }
11724
0
    case kBindId: {
11725
0
      set_bind_id(from.bind_id());
11726
0
      break;
11727
0
    }
11728
38.9k
    case kCondition: {
11729
38.9k
      mutable_condition()->::yb::QLConditionPB::MergeFrom(from.condition());
11730
38.9k
      break;
11731
0
    }
11732
117
    case kBfcall: {
11733
117
      mutable_bfcall()->::yb::QLBCallPB::MergeFrom(from.bfcall());
11734
117
      break;
11735
0
    }
11736
0
    case kTscall: {
11737
0
      mutable_tscall()->::yb::QLBCallPB::MergeFrom(from.tscall());
11738
0
      break;
11739
0
    }
11740
0
    case kBocall: {
11741
0
      mutable_bocall()->::yb::QLBCallPB::MergeFrom(from.bocall());
11742
0
      break;
11743
0
    }
11744
17.6k
    case kJsonColumn: {
11745
17.6k
      mutable_json_column()->::yb::QLJsonColumnOperationsPB::MergeFrom(from.json_column());
11746
17.6k
      break;
11747
0
    }
11748
4.25k
    case EXPR_NOT_SET: {
11749
4.25k
      break;
11750
0
    }
11751
977k
  }
11752
  // @@protoc_insertion_point(copy_constructor:yb.QLExpressionPB)
11753
977k
}
11754
11755
40.9M
void QLExpressionPB::SharedCtor() {
11756
40.9M
  _cached_size_ = 0;
11757
40.9M
  clear_has_expr();
11758
40.9M
}
11759
11760
41.9M
QLExpressionPB::~QLExpressionPB() {
11761
  // @@protoc_insertion_point(destructor:yb.QLExpressionPB)
11762
41.9M
  SharedDtor();
11763
41.9M
}
11764
11765
41.9M
void QLExpressionPB::SharedDtor() {
11766
41.9M
  if (has_expr()) {
11767
41.4M
    clear_expr();
11768
41.4M
  }
11769
41.9M
}
11770
11771
0
void QLExpressionPB::SetCachedSize(int size) const {
11772
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
11773
0
  _cached_size_ = size;
11774
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
11775
0
}
11776
0
const ::google::protobuf::Descriptor* QLExpressionPB::descriptor() {
11777
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
11778
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
11779
0
}
11780
11781
0
const QLExpressionPB& QLExpressionPB::default_instance() {
11782
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
11783
0
  return *internal_default_instance();
11784
0
}
11785
11786
0
QLExpressionPB* QLExpressionPB::New(::google::protobuf::Arena* arena) const {
11787
0
  QLExpressionPB* n = new QLExpressionPB;
11788
0
  if (arena != NULL) {
11789
0
    arena->Own(n);
11790
0
  }
11791
0
  return n;
11792
0
}
11793
11794
87.7M
void QLExpressionPB::clear_expr() {
11795
// @@protoc_insertion_point(one_of_clear_start:yb.QLExpressionPB)
11796
87.7M
  switch (expr_case()) {
11797
24.0M
    case kValue: {
11798
24.0M
      delete expr_.value_;
11799
24.0M
      break;
11800
0
    }
11801
21.3M
    case kColumnId: {
11802
      // No need to clear
11803
21.3M
      break;
11804
0
    }
11805
480
    case kSubscriptedCol: {
11806
480
      delete expr_.subscripted_col_;
11807
480
      break;
11808
0
    }
11809
0
    case kBindId: {
11810
      // No need to clear
11811
0
      break;
11812
0
    }
11813
247k
    case kCondition: {
11814
247k
      delete expr_.condition_;
11815
247k
      break;
11816
0
    }
11817
1.70k
    case kBfcall: {
11818
1.70k
      delete expr_.bfcall_;
11819
1.70k
      break;
11820
0
    }
11821
10.7k
    case kTscall: {
11822
10.7k
      delete expr_.tscall_;
11823
10.7k
      break;
11824
0
    }
11825
0
    case kBocall: {
11826
0
      delete expr_.bocall_;
11827
0
      break;
11828
0
    }
11829
43.4k
    case kJsonColumn: {
11830
43.4k
      delete expr_.json_column_;
11831
43.4k
      break;
11832
0
    }
11833
42.3M
    case EXPR_NOT_SET: {
11834
42.3M
      break;
11835
87.6M
    }
11836
87.6M
  }
11837
87.6M
  _oneof_case_[0] = EXPR_NOT_SET;
11838
87.6M
}
11839
11840
11841
920k
void QLExpressionPB::Clear() {
11842
// @@protoc_insertion_point(message_clear_start:yb.QLExpressionPB)
11843
920k
  ::google::protobuf::uint32 cached_has_bits = 0;
11844
  // Prevent compiler warnings about cached_has_bits being unused
11845
920k
  (void) cached_has_bits;
11846
11847
920k
  clear_expr();
11848
920k
  _has_bits_.Clear();
11849
920k
  _internal_metadata_.Clear();
11850
920k
}
11851
11852
bool QLExpressionPB::MergePartialFromCodedStream(
11853
9.05M
    ::google::protobuf::io::CodedInputStream* input) {
11854
9.05M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
11855
9.05M
  ::google::protobuf::uint32 tag;
11856
  // @@protoc_insertion_point(parse_start:yb.QLExpressionPB)
11857
18.0M
  for (;;) {
11858
18.0M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
11859
18.0M
    tag = p.first;
11860
18.0M
    if (!p.second) goto handle_unusual;
11861
9.00M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
11862
      // optional .yb.QLValuePB value = 1;
11863
6.30M
      case 1: {
11864
6.30M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11865
6.30M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
11866
6.30M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11867
6.30M
               input, mutable_value()));
11868
18.4E
        } else {
11869
18.4E
          goto handle_unusual;
11870
18.4E
        }
11871
6.30M
        break;
11872
6.30M
      }
11873
11874
      // optional int32 column_id = 2;
11875
2.67M
      case 2: {
11876
2.67M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11877
2.67M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
11878
2.67M
          clear_expr();
11879
2.67M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11880
2.67M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11881
2.67M
                 input, &expr_.column_id_)));
11882
2.67M
          set_has_column_id();
11883
18.4E
        } else {
11884
18.4E
          goto handle_unusual;
11885
18.4E
        }
11886
2.67M
        break;
11887
2.67M
      }
11888
11889
      // optional .yb.QLSubscriptedColPB subscripted_col = 3;
11890
236
      case 3: {
11891
236
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11892
236
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
11893
236
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11894
236
               input, mutable_subscripted_col()));
11895
0
        } else {
11896
0
          goto handle_unusual;
11897
0
        }
11898
236
        break;
11899
236
      }
11900
11901
      // optional int32 bind_id = 4;
11902
0
      case 4: {
11903
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11904
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
11905
0
          clear_expr();
11906
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
11907
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
11908
0
                 input, &expr_.bind_id_)));
11909
0
          set_has_bind_id();
11910
0
        } else {
11911
0
          goto handle_unusual;
11912
0
        }
11913
0
        break;
11914
0
      }
11915
11916
      // optional .yb.QLConditionPB condition = 5;
11917
76.1k
      case 5: {
11918
76.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11919
76.1k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
11920
76.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11921
76.1k
               input, mutable_condition()));
11922
18.4E
        } else {
11923
18.4E
          goto handle_unusual;
11924
18.4E
        }
11925
76.1k
        break;
11926
76.1k
      }
11927
11928
      // optional .yb.QLBCallPB bfcall = 6;
11929
1.02k
      case 6: {
11930
1.02k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11931
1.02k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
11932
1.02k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11933
1.02k
               input, mutable_bfcall()));
11934
0
        } else {
11935
0
          goto handle_unusual;
11936
0
        }
11937
1.02k
        break;
11938
1.02k
      }
11939
11940
      // optional .yb.QLBCallPB tscall = 7;
11941
4.51k
      case 7: {
11942
4.51k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11943
4.51k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
11944
4.51k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11945
4.51k
               input, mutable_tscall()));
11946
18.4E
        } else {
11947
18.4E
          goto handle_unusual;
11948
18.4E
        }
11949
4.51k
        break;
11950
4.51k
      }
11951
11952
      // optional .yb.QLBCallPB bocall = 8;
11953
0
      case 8: {
11954
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11955
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
11956
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11957
0
               input, mutable_bocall()));
11958
0
        } else {
11959
0
          goto handle_unusual;
11960
0
        }
11961
0
        break;
11962
0
      }
11963
11964
      // optional .yb.QLJsonColumnOperationsPB json_column = 9;
11965
6.64k
      case 9: {
11966
6.64k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
11967
6.64k
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
11968
6.64k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
11969
6.64k
               input, mutable_json_column()));
11970
18.4E
        } else {
11971
18.4E
          goto handle_unusual;
11972
18.4E
        }
11973
6.64k
        break;
11974
9.05M
      }
11975
11976
0
      default: {
11977
9.05M
      handle_unusual:
11978
9.05M
        if (tag == 0) {
11979
9.05M
          goto success;
11980
9.05M
        }
11981
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
11982
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
11983
18.4E
        break;
11984
18.4E
      }
11985
9.00M
    }
11986
9.00M
  }
11987
9.05M
success:
11988
  // @@protoc_insertion_point(parse_success:yb.QLExpressionPB)
11989
9.05M
  return true;
11990
0
failure:
11991
  // @@protoc_insertion_point(parse_failure:yb.QLExpressionPB)
11992
0
  return false;
11993
9.05M
#undef DO_
11994
9.05M
}
11995
11996
void QLExpressionPB::SerializeWithCachedSizes(
11997
0
    ::google::protobuf::io::CodedOutputStream* output) const {
11998
  // @@protoc_insertion_point(serialize_start:yb.QLExpressionPB)
11999
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12000
0
  (void) cached_has_bits;
12001
12002
0
  switch (expr_case()) {
12003
0
    case kValue:
12004
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12005
0
        1, *expr_.value_, output);
12006
0
      break;
12007
0
    case kColumnId:
12008
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->column_id(), output);
12009
0
      break;
12010
0
    case kSubscriptedCol:
12011
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12012
0
        3, *expr_.subscripted_col_, output);
12013
0
      break;
12014
0
    case kBindId:
12015
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->bind_id(), output);
12016
0
      break;
12017
0
    case kCondition:
12018
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12019
0
        5, *expr_.condition_, output);
12020
0
      break;
12021
0
    case kBfcall:
12022
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12023
0
        6, *expr_.bfcall_, output);
12024
0
      break;
12025
0
    case kTscall:
12026
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12027
0
        7, *expr_.tscall_, output);
12028
0
      break;
12029
0
    case kBocall:
12030
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12031
0
        8, *expr_.bocall_, output);
12032
0
      break;
12033
0
    case kJsonColumn:
12034
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12035
0
        9, *expr_.json_column_, output);
12036
0
      break;
12037
0
    default: ;
12038
0
  }
12039
0
  if (_internal_metadata_.have_unknown_fields()) {
12040
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12041
0
        _internal_metadata_.unknown_fields(), output);
12042
0
  }
12043
  // @@protoc_insertion_point(serialize_end:yb.QLExpressionPB)
12044
0
}
12045
12046
::google::protobuf::uint8* QLExpressionPB::InternalSerializeWithCachedSizesToArray(
12047
10.0M
    bool deterministic, ::google::protobuf::uint8* target) const {
12048
10.0M
  (void)deterministic; // Unused
12049
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLExpressionPB)
12050
10.0M
  ::google::protobuf::uint32 cached_has_bits = 0;
12051
10.0M
  (void) cached_has_bits;
12052
12053
10.0M
  switch (expr_case()) {
12054
6.41M
    case kValue:
12055
6.41M
      target = ::google::protobuf::internal::WireFormatLite::
12056
6.41M
        InternalWriteMessageToArray(
12057
6.41M
          1, *expr_.value_, deterministic, target);
12058
6.41M
      break;
12059
3.44M
    case kColumnId:
12060
3.44M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->column_id(), target);
12061
3.44M
      break;
12062
236
    case kSubscriptedCol:
12063
236
      target = ::google::protobuf::internal::WireFormatLite::
12064
236
        InternalWriteMessageToArray(
12065
236
          3, *expr_.subscripted_col_, deterministic, target);
12066
236
      break;
12067
0
    case kBindId:
12068
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->bind_id(), target);
12069
0
      break;
12070
116k
    case kCondition:
12071
116k
      target = ::google::protobuf::internal::WireFormatLite::
12072
116k
        InternalWriteMessageToArray(
12073
116k
          5, *expr_.condition_, deterministic, target);
12074
116k
      break;
12075
1.02k
    case kBfcall:
12076
1.02k
      target = ::google::protobuf::internal::WireFormatLite::
12077
1.02k
        InternalWriteMessageToArray(
12078
1.02k
          6, *expr_.bfcall_, deterministic, target);
12079
1.02k
      break;
12080
4.52k
    case kTscall:
12081
4.52k
      target = ::google::protobuf::internal::WireFormatLite::
12082
4.52k
        InternalWriteMessageToArray(
12083
4.52k
          7, *expr_.tscall_, deterministic, target);
12084
4.52k
      break;
12085
0
    case kBocall:
12086
0
      target = ::google::protobuf::internal::WireFormatLite::
12087
0
        InternalWriteMessageToArray(
12088
0
          8, *expr_.bocall_, deterministic, target);
12089
0
      break;
12090
22.8k
    case kJsonColumn:
12091
22.8k
      target = ::google::protobuf::internal::WireFormatLite::
12092
22.8k
        InternalWriteMessageToArray(
12093
22.8k
          9, *expr_.json_column_, deterministic, target);
12094
22.8k
      break;
12095
6.10k
    default: ;
12096
10.0M
  }
12097
10.0M
  if (_internal_metadata_.have_unknown_fields()) {
12098
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12099
0
        _internal_metadata_.unknown_fields(), target);
12100
0
  }
12101
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLExpressionPB)
12102
10.0M
  return target;
12103
10.0M
}
12104
12105
19.6M
size_t QLExpressionPB::ByteSizeLong() const {
12106
// @@protoc_insertion_point(message_byte_size_start:yb.QLExpressionPB)
12107
19.6M
  size_t total_size = 0;
12108
12109
19.6M
  if (_internal_metadata_.have_unknown_fields()) {
12110
0
    total_size +=
12111
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12112
0
        _internal_metadata_.unknown_fields());
12113
0
  }
12114
19.6M
  switch (expr_case()) {
12115
    // optional .yb.QLValuePB value = 1;
12116
12.8M
    case kValue: {
12117
12.8M
      total_size += 1 +
12118
12.8M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12119
12.8M
          *expr_.value_);
12120
12.8M
      break;
12121
0
    }
12122
    // optional int32 column_id = 2;
12123
6.53M
    case kColumnId: {
12124
6.53M
      total_size += 1 +
12125
6.53M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
12126
6.53M
          this->column_id());
12127
6.53M
      break;
12128
0
    }
12129
    // optional .yb.QLSubscriptedColPB subscripted_col = 3;
12130
472
    case kSubscriptedCol: {
12131
472
      total_size += 1 +
12132
472
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12133
472
          *expr_.subscripted_col_);
12134
472
      break;
12135
0
    }
12136
    // optional int32 bind_id = 4;
12137
0
    case kBindId: {
12138
0
      total_size += 1 +
12139
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
12140
0
          this->bind_id());
12141
0
      break;
12142
0
    }
12143
    // optional .yb.QLConditionPB condition = 5;
12144
249k
    case kCondition: {
12145
249k
      total_size += 1 +
12146
249k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12147
249k
          *expr_.condition_);
12148
249k
      break;
12149
0
    }
12150
    // optional .yb.QLBCallPB bfcall = 6;
12151
2.04k
    case kBfcall: {
12152
2.04k
      total_size += 1 +
12153
2.04k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12154
2.04k
          *expr_.bfcall_);
12155
2.04k
      break;
12156
0
    }
12157
    // optional .yb.QLBCallPB tscall = 7;
12158
9.05k
    case kTscall: {
12159
9.05k
      total_size += 1 +
12160
9.05k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12161
9.05k
          *expr_.tscall_);
12162
9.05k
      break;
12163
0
    }
12164
    // optional .yb.QLBCallPB bocall = 8;
12165
0
    case kBocall: {
12166
0
      total_size += 1 +
12167
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12168
0
          *expr_.bocall_);
12169
0
      break;
12170
0
    }
12171
    // optional .yb.QLJsonColumnOperationsPB json_column = 9;
12172
40.0k
    case kJsonColumn: {
12173
40.0k
      total_size += 1 +
12174
40.0k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12175
40.0k
          *expr_.json_column_);
12176
40.0k
      break;
12177
0
    }
12178
8.17k
    case EXPR_NOT_SET: {
12179
8.17k
      break;
12180
19.6M
    }
12181
19.6M
  }
12182
19.6M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12183
19.6M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12184
19.6M
  _cached_size_ = cached_size;
12185
19.6M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12186
19.6M
  return total_size;
12187
19.6M
}
12188
12189
0
void QLExpressionPB::MergeFrom(const ::google::protobuf::Message& from) {
12190
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLExpressionPB)
12191
0
  GOOGLE_DCHECK_NE(&from, this);
12192
0
  const QLExpressionPB* source =
12193
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLExpressionPB>(
12194
0
          &from);
12195
0
  if (source == NULL) {
12196
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLExpressionPB)
12197
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12198
0
  } else {
12199
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLExpressionPB)
12200
0
    MergeFrom(*source);
12201
0
  }
12202
0
}
12203
12204
1.26M
void QLExpressionPB::MergeFrom(const QLExpressionPB& from) {
12205
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLExpressionPB)
12206
1.26M
  GOOGLE_DCHECK_NE(&from, this);
12207
1.26M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12208
1.26M
  ::google::protobuf::uint32 cached_has_bits = 0;
12209
1.26M
  (void) cached_has_bits;
12210
12211
1.26M
  switch (from.expr_case()) {
12212
160k
    case kValue: {
12213
160k
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
12214
160k
      break;
12215
0
    }
12216
1.00M
    case kColumnId: {
12217
1.00M
      set_column_id(from.column_id());
12218
1.00M
      break;
12219
0
    }
12220
128
    case kSubscriptedCol: {
12221
128
      mutable_subscripted_col()->::yb::QLSubscriptedColPB::MergeFrom(from.subscripted_col());
12222
128
      break;
12223
0
    }
12224
0
    case kBindId: {
12225
0
      set_bind_id(from.bind_id());
12226
0
      break;
12227
0
    }
12228
71.1k
    case kCondition: {
12229
71.1k
      mutable_condition()->::yb::QLConditionPB::MergeFrom(from.condition());
12230
71.1k
      break;
12231
0
    }
12232
76
    case kBfcall: {
12233
76
      mutable_bfcall()->::yb::QLBCallPB::MergeFrom(from.bfcall());
12234
76
      break;
12235
0
    }
12236
4.98k
    case kTscall: {
12237
4.98k
      mutable_tscall()->::yb::QLBCallPB::MergeFrom(from.tscall());
12238
4.98k
      break;
12239
0
    }
12240
0
    case kBocall: {
12241
0
      mutable_bocall()->::yb::QLBCallPB::MergeFrom(from.bocall());
12242
0
      break;
12243
0
    }
12244
18.7k
    case kJsonColumn: {
12245
18.7k
      mutable_json_column()->::yb::QLJsonColumnOperationsPB::MergeFrom(from.json_column());
12246
18.7k
      break;
12247
0
    }
12248
4.09k
    case EXPR_NOT_SET: {
12249
4.09k
      break;
12250
0
    }
12251
1.26M
  }
12252
1.26M
}
12253
12254
0
void QLExpressionPB::CopyFrom(const ::google::protobuf::Message& from) {
12255
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLExpressionPB)
12256
0
  if (&from == this) return;
12257
0
  Clear();
12258
0
  MergeFrom(from);
12259
0
}
12260
12261
439k
void QLExpressionPB::CopyFrom(const QLExpressionPB& from) {
12262
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLExpressionPB)
12263
439k
  if (&from == this) return;
12264
439k
  Clear();
12265
439k
  MergeFrom(from);
12266
439k
}
12267
12268
19.7M
bool QLExpressionPB::IsInitialized() const {
12269
19.7M
  switch (expr_case()) {
12270
12.7M
    case kValue: {
12271
12.7M
      break;
12272
0
    }
12273
6.61M
    case kColumnId: {
12274
6.61M
      break;
12275
0
    }
12276
472
    case kSubscriptedCol: {
12277
472
      if (has_subscripted_col()) {
12278
472
        if (!this->subscripted_col().IsInitialized()) return false;
12279
472
      }
12280
472
      break;
12281
472
    }
12282
0
    case kBindId: {
12283
0
      break;
12284
472
    }
12285
263k
    case kCondition: {
12286
263k
      if (has_condition()) {
12287
263k
        if (!this->condition().IsInitialized()) return false;
12288
263k
      }
12289
263k
      break;
12290
263k
    }
12291
2.04k
    case kBfcall: {
12292
2.04k
      if (has_bfcall()) {
12293
2.04k
        if (!this->bfcall().IsInitialized()) return false;
12294
2.04k
      }
12295
2.04k
      break;
12296
2.04k
    }
12297
9.03k
    case kTscall: {
12298
9.03k
      if (has_tscall()) {
12299
9.03k
        if (!this->tscall().IsInitialized()) return false;
12300
9.03k
      }
12301
9.03k
      break;
12302
9.03k
    }
12303
0
    case kBocall: {
12304
0
      if (has_bocall()) {
12305
0
        if (!this->bocall().IsInitialized()) return false;
12306
0
      }
12307
0
      break;
12308
0
    }
12309
37.0k
    case kJsonColumn: {
12310
37.0k
      if (has_json_column()) {
12311
37.0k
        if (!this->json_column().IsInitialized()) return false;
12312
37.0k
      }
12313
37.0k
      break;
12314
37.0k
    }
12315
8.19k
    case EXPR_NOT_SET: {
12316
8.19k
      break;
12317
19.7M
    }
12318
19.7M
  }
12319
19.7M
  return true;
12320
19.7M
}
12321
12322
0
void QLExpressionPB::Swap(QLExpressionPB* other) {
12323
0
  if (other == this) return;
12324
0
  InternalSwap(other);
12325
0
}
12326
8.35k
void QLExpressionPB::InternalSwap(QLExpressionPB* other) {
12327
8.35k
  using std::swap;
12328
8.35k
  swap(expr_, other->expr_);
12329
8.35k
  swap(_oneof_case_[0], other->_oneof_case_[0]);
12330
8.35k
  swap(_has_bits_[0], other->_has_bits_[0]);
12331
8.35k
  _internal_metadata_.Swap(&other->_internal_metadata_);
12332
8.35k
  swap(_cached_size_, other->_cached_size_);
12333
8.35k
}
12334
12335
10.2M
::google::protobuf::Metadata QLExpressionPB::GetMetadata() const {
12336
10.2M
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
12337
10.2M
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
12338
10.2M
}
12339
12340
12341
// ===================================================================
12342
12343
17.1k
void QLConditionPB::InitAsDefaultInstance() {
12344
17.1k
}
12345
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12346
const int QLConditionPB::kOpFieldNumber;
12347
const int QLConditionPB::kOperandsFieldNumber;
12348
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12349
12350
QLConditionPB::QLConditionPB()
12351
289k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12352
272k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12353
272k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
12354
272k
  }
12355
289k
  SharedCtor();
12356
  // @@protoc_insertion_point(constructor:yb.QLConditionPB)
12357
289k
}
12358
QLConditionPB::QLConditionPB(const QLConditionPB& from)
12359
  : ::google::protobuf::Message(),
12360
      _internal_metadata_(NULL),
12361
      _has_bits_(from._has_bits_),
12362
      _cached_size_(0),
12363
0
      operands_(from.operands_) {
12364
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12365
0
  op_ = from.op_;
12366
  // @@protoc_insertion_point(copy_constructor:yb.QLConditionPB)
12367
0
}
12368
12369
290k
void QLConditionPB::SharedCtor() {
12370
290k
  _cached_size_ = 0;
12371
290k
  op_ = 0;
12372
290k
}
12373
12374
273k
QLConditionPB::~QLConditionPB() {
12375
  // @@protoc_insertion_point(destructor:yb.QLConditionPB)
12376
273k
  SharedDtor();
12377
273k
}
12378
12379
273k
void QLConditionPB::SharedDtor() {
12380
273k
}
12381
12382
0
void QLConditionPB::SetCachedSize(int size) const {
12383
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12384
0
  _cached_size_ = size;
12385
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12386
0
}
12387
0
const ::google::protobuf::Descriptor* QLConditionPB::descriptor() {
12388
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
12389
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12390
0
}
12391
12392
0
const QLConditionPB& QLConditionPB::default_instance() {
12393
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
12394
0
  return *internal_default_instance();
12395
0
}
12396
12397
0
QLConditionPB* QLConditionPB::New(::google::protobuf::Arena* arena) const {
12398
0
  QLConditionPB* n = new QLConditionPB;
12399
0
  if (arena != NULL) {
12400
0
    arena->Own(n);
12401
0
  }
12402
0
  return n;
12403
0
}
12404
12405
0
void QLConditionPB::Clear() {
12406
// @@protoc_insertion_point(message_clear_start:yb.QLConditionPB)
12407
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12408
  // Prevent compiler warnings about cached_has_bits being unused
12409
0
  (void) cached_has_bits;
12410
12411
0
  operands_.Clear();
12412
0
  op_ = 0;
12413
0
  _has_bits_.Clear();
12414
0
  _internal_metadata_.Clear();
12415
0
}
12416
12417
bool QLConditionPB::MergePartialFromCodedStream(
12418
76.0k
    ::google::protobuf::io::CodedInputStream* input) {
12419
216k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12420
76.0k
  ::google::protobuf::uint32 tag;
12421
  // @@protoc_insertion_point(parse_start:yb.QLConditionPB)
12422
291k
  for (;;) {
12423
291k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12424
291k
    tag = p.first;
12425
291k
    if (!p.second) goto handle_unusual;
12426
215k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12427
      // optional .yb.QLOperator op = 1;
12428
75.8k
      case 1: {
12429
75.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12430
75.8k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
12431
75.8k
          int value;
12432
75.8k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12433
75.8k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
12434
75.8k
                 input, &value)));
12435
75.8k
          if (::yb::QLOperator_IsValid(value)) {
12436
75.3k
            set_op(static_cast< ::yb::QLOperator >(value));
12437
448
          } else {
12438
448
            mutable_unknown_fields()->AddVarint(
12439
448
                1, static_cast< ::google::protobuf::uint64>(value));
12440
448
          }
12441
0
        } else {
12442
0
          goto handle_unusual;
12443
0
        }
12444
75.8k
        break;
12445
75.8k
      }
12446
12447
      // repeated .yb.QLExpressionPB operands = 2;
12448
140k
      case 2: {
12449
140k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12450
140k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12451
140k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
12452
18.4E
        } else {
12453
18.4E
          goto handle_unusual;
12454
18.4E
        }
12455
140k
        break;
12456
75.9k
      }
12457
12458
0
      default: {
12459
75.9k
      handle_unusual:
12460
76.0k
        if (tag == 0) {
12461
76.0k
          goto success;
12462
76.0k
        }
12463
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12464
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12465
18.4E
        break;
12466
18.4E
      }
12467
215k
    }
12468
215k
  }
12469
76.0k
success:
12470
  // @@protoc_insertion_point(parse_success:yb.QLConditionPB)
12471
76.0k
  return true;
12472
0
failure:
12473
  // @@protoc_insertion_point(parse_failure:yb.QLConditionPB)
12474
0
  return false;
12475
76.0k
#undef DO_
12476
76.0k
}
12477
12478
void QLConditionPB::SerializeWithCachedSizes(
12479
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12480
  // @@protoc_insertion_point(serialize_start:yb.QLConditionPB)
12481
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12482
0
  (void) cached_has_bits;
12483
12484
0
  cached_has_bits = _has_bits_[0];
12485
  // optional .yb.QLOperator op = 1;
12486
0
  if (cached_has_bits & 0x00000001u) {
12487
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
12488
0
      1, this->op(), output);
12489
0
  }
12490
12491
  // repeated .yb.QLExpressionPB operands = 2;
12492
0
  for (unsigned int i = 0,
12493
0
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
12494
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12495
0
      2, this->operands(static_cast<int>(i)), output);
12496
0
  }
12497
12498
0
  if (_internal_metadata_.have_unknown_fields()) {
12499
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12500
0
        _internal_metadata_.unknown_fields(), output);
12501
0
  }
12502
  // @@protoc_insertion_point(serialize_end:yb.QLConditionPB)
12503
0
}
12504
12505
::google::protobuf::uint8* QLConditionPB::InternalSerializeWithCachedSizesToArray(
12506
116k
    bool deterministic, ::google::protobuf::uint8* target) const {
12507
116k
  (void)deterministic; // Unused
12508
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLConditionPB)
12509
116k
  ::google::protobuf::uint32 cached_has_bits = 0;
12510
116k
  (void) cached_has_bits;
12511
12512
116k
  cached_has_bits = _has_bits_[0];
12513
  // optional .yb.QLOperator op = 1;
12514
116k
  if (cached_has_bits & 0x00000001u) {
12515
116k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
12516
116k
      1, this->op(), target);
12517
116k
  }
12518
12519
  // repeated .yb.QLExpressionPB operands = 2;
12520
116k
  for (unsigned int i = 0,
12521
338k
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
12522
222k
    target = ::google::protobuf::internal::WireFormatLite::
12523
222k
      InternalWriteMessageToArray(
12524
222k
        2, this->operands(static_cast<int>(i)), deterministic, target);
12525
222k
  }
12526
12527
116k
  if (_internal_metadata_.have_unknown_fields()) {
12528
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12529
0
        _internal_metadata_.unknown_fields(), target);
12530
0
  }
12531
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLConditionPB)
12532
116k
  return target;
12533
116k
}
12534
12535
249k
size_t QLConditionPB::ByteSizeLong() const {
12536
// @@protoc_insertion_point(message_byte_size_start:yb.QLConditionPB)
12537
249k
  size_t total_size = 0;
12538
12539
249k
  if (_internal_metadata_.have_unknown_fields()) {
12540
0
    total_size +=
12541
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12542
0
        _internal_metadata_.unknown_fields());
12543
0
  }
12544
  // repeated .yb.QLExpressionPB operands = 2;
12545
249k
  {
12546
249k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
12547
249k
    total_size += 1UL * count;
12548
725k
    for (unsigned int i = 0; i < count; i++) {
12549
475k
      total_size +=
12550
475k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12551
475k
          this->operands(static_cast<int>(i)));
12552
475k
    }
12553
249k
  }
12554
12555
  // optional .yb.QLOperator op = 1;
12556
249k
  if (has_op()) {
12557
249k
    total_size += 1 +
12558
249k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
12559
249k
  }
12560
12561
249k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12562
249k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12563
249k
  _cached_size_ = cached_size;
12564
249k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12565
249k
  return total_size;
12566
249k
}
12567
12568
0
void QLConditionPB::MergeFrom(const ::google::protobuf::Message& from) {
12569
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLConditionPB)
12570
0
  GOOGLE_DCHECK_NE(&from, this);
12571
0
  const QLConditionPB* source =
12572
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLConditionPB>(
12573
0
          &from);
12574
0
  if (source == NULL) {
12575
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLConditionPB)
12576
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12577
0
  } else {
12578
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLConditionPB)
12579
0
    MergeFrom(*source);
12580
0
  }
12581
0
}
12582
12583
110k
void QLConditionPB::MergeFrom(const QLConditionPB& from) {
12584
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLConditionPB)
12585
110k
  GOOGLE_DCHECK_NE(&from, this);
12586
110k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12587
110k
  ::google::protobuf::uint32 cached_has_bits = 0;
12588
110k
  (void) cached_has_bits;
12589
12590
110k
  operands_.MergeFrom(from.operands_);
12591
110k
  if (from.has_op()) {
12592
109k
    set_op(from.op());
12593
109k
  }
12594
110k
}
12595
12596
0
void QLConditionPB::CopyFrom(const ::google::protobuf::Message& from) {
12597
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLConditionPB)
12598
0
  if (&from == this) return;
12599
0
  Clear();
12600
0
  MergeFrom(from);
12601
0
}
12602
12603
0
void QLConditionPB::CopyFrom(const QLConditionPB& from) {
12604
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLConditionPB)
12605
0
  if (&from == this) return;
12606
0
  Clear();
12607
0
  MergeFrom(from);
12608
0
}
12609
12610
263k
bool QLConditionPB::IsInitialized() const {
12611
263k
  if (!::google::protobuf::internal::AllAreInitialized(this->operands())) return false;
12612
263k
  return true;
12613
263k
}
12614
12615
0
void QLConditionPB::Swap(QLConditionPB* other) {
12616
0
  if (other == this) return;
12617
0
  InternalSwap(other);
12618
0
}
12619
0
void QLConditionPB::InternalSwap(QLConditionPB* other) {
12620
0
  using std::swap;
12621
0
  operands_.InternalSwap(&other->operands_);
12622
0
  swap(op_, other->op_);
12623
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12624
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12625
0
  swap(_cached_size_, other->_cached_size_);
12626
0
}
12627
12628
239k
::google::protobuf::Metadata QLConditionPB::GetMetadata() const {
12629
239k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
12630
239k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
12631
239k
}
12632
12633
12634
// ===================================================================
12635
12636
17.1k
void QLBCallPB::InitAsDefaultInstance() {
12637
17.1k
}
12638
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12639
const int QLBCallPB::kOpcodeFieldNumber;
12640
const int QLBCallPB::kOperandsFieldNumber;
12641
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12642
12643
QLBCallPB::QLBCallPB()
12644
29.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12645
12.4k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12646
12.4k
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
12647
12.4k
  }
12648
29.5k
  SharedCtor();
12649
  // @@protoc_insertion_point(constructor:yb.QLBCallPB)
12650
29.5k
}
12651
QLBCallPB::QLBCallPB(const QLBCallPB& from)
12652
  : ::google::protobuf::Message(),
12653
      _internal_metadata_(NULL),
12654
      _has_bits_(from._has_bits_),
12655
      _cached_size_(0),
12656
0
      operands_(from.operands_) {
12657
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12658
0
  opcode_ = from.opcode_;
12659
  // @@protoc_insertion_point(copy_constructor:yb.QLBCallPB)
12660
0
}
12661
12662
29.5k
void QLBCallPB::SharedCtor() {
12663
29.5k
  _cached_size_ = 0;
12664
29.5k
  opcode_ = 0;
12665
29.5k
}
12666
12667
12.4k
QLBCallPB::~QLBCallPB() {
12668
  // @@protoc_insertion_point(destructor:yb.QLBCallPB)
12669
12.4k
  SharedDtor();
12670
12.4k
}
12671
12672
12.4k
void QLBCallPB::SharedDtor() {
12673
12.4k
}
12674
12675
0
void QLBCallPB::SetCachedSize(int size) const {
12676
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12677
0
  _cached_size_ = size;
12678
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12679
0
}
12680
0
const ::google::protobuf::Descriptor* QLBCallPB::descriptor() {
12681
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
12682
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
12683
0
}
12684
12685
0
const QLBCallPB& QLBCallPB::default_instance() {
12686
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLBCallPB();
12687
0
  return *internal_default_instance();
12688
0
}
12689
12690
0
QLBCallPB* QLBCallPB::New(::google::protobuf::Arena* arena) const {
12691
0
  QLBCallPB* n = new QLBCallPB;
12692
0
  if (arena != NULL) {
12693
0
    arena->Own(n);
12694
0
  }
12695
0
  return n;
12696
0
}
12697
12698
0
void QLBCallPB::Clear() {
12699
// @@protoc_insertion_point(message_clear_start:yb.QLBCallPB)
12700
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12701
  // Prevent compiler warnings about cached_has_bits being unused
12702
0
  (void) cached_has_bits;
12703
12704
0
  operands_.Clear();
12705
0
  opcode_ = 0;
12706
0
  _has_bits_.Clear();
12707
0
  _internal_metadata_.Clear();
12708
0
}
12709
12710
bool QLBCallPB::MergePartialFromCodedStream(
12711
5.54k
    ::google::protobuf::io::CodedInputStream* input) {
12712
11.1k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
12713
5.54k
  ::google::protobuf::uint32 tag;
12714
  // @@protoc_insertion_point(parse_start:yb.QLBCallPB)
12715
16.6k
  for (;;) {
12716
16.6k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
12717
16.6k
    tag = p.first;
12718
16.6k
    if (!p.second) goto handle_unusual;
12719
11.1k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
12720
      // optional int32 opcode = 1;
12721
5.54k
      case 1: {
12722
5.54k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12723
5.54k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
12724
5.54k
          set_has_opcode();
12725
5.54k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
12726
5.54k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
12727
5.54k
                 input, &opcode_)));
12728
0
        } else {
12729
0
          goto handle_unusual;
12730
0
        }
12731
5.54k
        break;
12732
5.54k
      }
12733
12734
      // repeated .yb.QLExpressionPB operands = 2;
12735
5.59k
      case 2: {
12736
5.59k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
12737
5.59k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
12738
5.59k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
12739
18.4E
        } else {
12740
18.4E
          goto handle_unusual;
12741
18.4E
        }
12742
5.59k
        break;
12743
5.53k
      }
12744
12745
0
      default: {
12746
5.53k
      handle_unusual:
12747
5.53k
        if (tag == 0) {
12748
5.53k
          goto success;
12749
5.53k
        }
12750
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
12751
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
12752
18.4E
        break;
12753
18.4E
      }
12754
11.1k
    }
12755
11.1k
  }
12756
5.53k
success:
12757
  // @@protoc_insertion_point(parse_success:yb.QLBCallPB)
12758
5.53k
  return true;
12759
0
failure:
12760
  // @@protoc_insertion_point(parse_failure:yb.QLBCallPB)
12761
0
  return false;
12762
5.54k
#undef DO_
12763
5.54k
}
12764
12765
void QLBCallPB::SerializeWithCachedSizes(
12766
0
    ::google::protobuf::io::CodedOutputStream* output) const {
12767
  // @@protoc_insertion_point(serialize_start:yb.QLBCallPB)
12768
0
  ::google::protobuf::uint32 cached_has_bits = 0;
12769
0
  (void) cached_has_bits;
12770
12771
0
  cached_has_bits = _has_bits_[0];
12772
  // optional int32 opcode = 1;
12773
0
  if (cached_has_bits & 0x00000001u) {
12774
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->opcode(), output);
12775
0
  }
12776
12777
  // repeated .yb.QLExpressionPB operands = 2;
12778
0
  for (unsigned int i = 0,
12779
0
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
12780
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12781
0
      2, this->operands(static_cast<int>(i)), output);
12782
0
  }
12783
12784
0
  if (_internal_metadata_.have_unknown_fields()) {
12785
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
12786
0
        _internal_metadata_.unknown_fields(), output);
12787
0
  }
12788
  // @@protoc_insertion_point(serialize_end:yb.QLBCallPB)
12789
0
}
12790
12791
::google::protobuf::uint8* QLBCallPB::InternalSerializeWithCachedSizesToArray(
12792
5.54k
    bool deterministic, ::google::protobuf::uint8* target) const {
12793
5.54k
  (void)deterministic; // Unused
12794
  // @@protoc_insertion_point(serialize_to_array_start:yb.QLBCallPB)
12795
5.54k
  ::google::protobuf::uint32 cached_has_bits = 0;
12796
5.54k
  (void) cached_has_bits;
12797
12798
5.54k
  cached_has_bits = _has_bits_[0];
12799
  // optional int32 opcode = 1;
12800
5.54k
  if (cached_has_bits & 0x00000001u) {
12801
5.54k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->opcode(), target);
12802
5.54k
  }
12803
12804
  // repeated .yb.QLExpressionPB operands = 2;
12805
5.54k
  for (unsigned int i = 0,
12806
11.1k
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
12807
5.62k
    target = ::google::protobuf::internal::WireFormatLite::
12808
5.62k
      InternalWriteMessageToArray(
12809
5.62k
        2, this->operands(static_cast<int>(i)), deterministic, target);
12810
5.62k
  }
12811
12812
5.54k
  if (_internal_metadata_.have_unknown_fields()) {
12813
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
12814
0
        _internal_metadata_.unknown_fields(), target);
12815
0
  }
12816
  // @@protoc_insertion_point(serialize_to_array_end:yb.QLBCallPB)
12817
5.54k
  return target;
12818
5.54k
}
12819
12820
11.0k
size_t QLBCallPB::ByteSizeLong() const {
12821
// @@protoc_insertion_point(message_byte_size_start:yb.QLBCallPB)
12822
11.0k
  size_t total_size = 0;
12823
12824
11.0k
  if (_internal_metadata_.have_unknown_fields()) {
12825
0
    total_size +=
12826
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
12827
0
        _internal_metadata_.unknown_fields());
12828
0
  }
12829
  // repeated .yb.QLExpressionPB operands = 2;
12830
11.0k
  {
12831
11.0k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
12832
11.0k
    total_size += 1UL * count;
12833
22.3k
    for (unsigned int i = 0; i < count; i++) {
12834
11.2k
      total_size +=
12835
11.2k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
12836
11.2k
          this->operands(static_cast<int>(i)));
12837
11.2k
    }
12838
11.0k
  }
12839
12840
  // optional int32 opcode = 1;
12841
11.0k
  if (has_opcode()) {
12842
11.0k
    total_size += 1 +
12843
11.0k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
12844
11.0k
        this->opcode());
12845
11.0k
  }
12846
12847
11.0k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
12848
11.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
12849
11.0k
  _cached_size_ = cached_size;
12850
11.0k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
12851
11.0k
  return total_size;
12852
11.0k
}
12853
12854
0
void QLBCallPB::MergeFrom(const ::google::protobuf::Message& from) {
12855
// @@protoc_insertion_point(generalized_merge_from_start:yb.QLBCallPB)
12856
0
  GOOGLE_DCHECK_NE(&from, this);
12857
0
  const QLBCallPB* source =
12858
0
      ::google::protobuf::internal::DynamicCastToGenerated<const QLBCallPB>(
12859
0
          &from);
12860
0
  if (source == NULL) {
12861
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.QLBCallPB)
12862
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
12863
0
  } else {
12864
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.QLBCallPB)
12865
0
    MergeFrom(*source);
12866
0
  }
12867
0
}
12868
12869
5.18k
void QLBCallPB::MergeFrom(const QLBCallPB& from) {
12870
// @@protoc_insertion_point(class_specific_merge_from_start:yb.QLBCallPB)
12871
5.18k
  GOOGLE_DCHECK_NE(&from, this);
12872
5.18k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
12873
5.18k
  ::google::protobuf::uint32 cached_has_bits = 0;
12874
5.18k
  (void) cached_has_bits;
12875
12876
5.18k
  operands_.MergeFrom(from.operands_);
12877
5.18k
  if (from.has_opcode()) {
12878
5.18k
    set_opcode(from.opcode());
12879
5.18k
  }
12880
5.18k
}
12881
12882
0
void QLBCallPB::CopyFrom(const ::google::protobuf::Message& from) {
12883
// @@protoc_insertion_point(generalized_copy_from_start:yb.QLBCallPB)
12884
0
  if (&from == this) return;
12885
0
  Clear();
12886
0
  MergeFrom(from);
12887
0
}
12888
12889
0
void QLBCallPB::CopyFrom(const QLBCallPB& from) {
12890
// @@protoc_insertion_point(class_specific_copy_from_start:yb.QLBCallPB)
12891
0
  if (&from == this) return;
12892
0
  Clear();
12893
0
  MergeFrom(from);
12894
0
}
12895
12896
11.0k
bool QLBCallPB::IsInitialized() const {
12897
11.0k
  if (!::google::protobuf::internal::AllAreInitialized(this->operands())) return false;
12898
11.0k
  return true;
12899
11.0k
}
12900
12901
0
void QLBCallPB::Swap(QLBCallPB* other) {
12902
0
  if (other == this) return;
12903
0
  InternalSwap(other);
12904
0
}
12905
0
void QLBCallPB::InternalSwap(QLBCallPB* other) {
12906
0
  using std::swap;
12907
0
  operands_.InternalSwap(&other->operands_);
12908
0
  swap(opcode_, other->opcode_);
12909
0
  swap(_has_bits_[0], other->_has_bits_[0]);
12910
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
12911
0
  swap(_cached_size_, other->_cached_size_);
12912
0
}
12913
12914
5.52k
::google::protobuf::Metadata QLBCallPB::GetMetadata() const {
12915
5.52k
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
12916
5.52k
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
12917
5.52k
}
12918
12919
12920
// ===================================================================
12921
12922
17.1k
void ExplainPlanPB::InitAsDefaultInstance() {
12923
17.1k
  ::yb::_ExplainPlanPB_default_instance_.select_plan_ = const_cast< ::yb::SelectPlanPB*>(
12924
17.1k
      ::yb::SelectPlanPB::internal_default_instance());
12925
17.1k
  ::yb::_ExplainPlanPB_default_instance_.insert_plan_ = const_cast< ::yb::InsertPlanPB*>(
12926
17.1k
      ::yb::InsertPlanPB::internal_default_instance());
12927
17.1k
  ::yb::_ExplainPlanPB_default_instance_.update_plan_ = const_cast< ::yb::UpdatePlanPB*>(
12928
17.1k
      ::yb::UpdatePlanPB::internal_default_instance());
12929
17.1k
  ::yb::_ExplainPlanPB_default_instance_.delete_plan_ = const_cast< ::yb::DeletePlanPB*>(
12930
17.1k
      ::yb::DeletePlanPB::internal_default_instance());
12931
17.1k
}
12932
0
void ExplainPlanPB::set_allocated_select_plan(::yb::SelectPlanPB* select_plan) {
12933
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
12934
0
  clear_plan();
12935
0
  if (select_plan) {
12936
0
    ::google::protobuf::Arena* submessage_arena = NULL;
12937
0
    if (message_arena != submessage_arena) {
12938
0
      select_plan = ::google::protobuf::internal::GetOwnedMessage(
12939
0
          message_arena, select_plan, submessage_arena);
12940
0
    }
12941
0
    set_has_select_plan();
12942
0
    plan_.select_plan_ = select_plan;
12943
0
  }
12944
  // @@protoc_insertion_point(field_set_allocated:yb.ExplainPlanPB.select_plan)
12945
0
}
12946
0
void ExplainPlanPB::set_allocated_insert_plan(::yb::InsertPlanPB* insert_plan) {
12947
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
12948
0
  clear_plan();
12949
0
  if (insert_plan) {
12950
0
    ::google::protobuf::Arena* submessage_arena = NULL;
12951
0
    if (message_arena != submessage_arena) {
12952
0
      insert_plan = ::google::protobuf::internal::GetOwnedMessage(
12953
0
          message_arena, insert_plan, submessage_arena);
12954
0
    }
12955
0
    set_has_insert_plan();
12956
0
    plan_.insert_plan_ = insert_plan;
12957
0
  }
12958
  // @@protoc_insertion_point(field_set_allocated:yb.ExplainPlanPB.insert_plan)
12959
0
}
12960
0
void ExplainPlanPB::set_allocated_update_plan(::yb::UpdatePlanPB* update_plan) {
12961
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
12962
0
  clear_plan();
12963
0
  if (update_plan) {
12964
0
    ::google::protobuf::Arena* submessage_arena = NULL;
12965
0
    if (message_arena != submessage_arena) {
12966
0
      update_plan = ::google::protobuf::internal::GetOwnedMessage(
12967
0
          message_arena, update_plan, submessage_arena);
12968
0
    }
12969
0
    set_has_update_plan();
12970
0
    plan_.update_plan_ = update_plan;
12971
0
  }
12972
  // @@protoc_insertion_point(field_set_allocated:yb.ExplainPlanPB.update_plan)
12973
0
}
12974
0
void ExplainPlanPB::set_allocated_delete_plan(::yb::DeletePlanPB* delete_plan) {
12975
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
12976
0
  clear_plan();
12977
0
  if (delete_plan) {
12978
0
    ::google::protobuf::Arena* submessage_arena = NULL;
12979
0
    if (message_arena != submessage_arena) {
12980
0
      delete_plan = ::google::protobuf::internal::GetOwnedMessage(
12981
0
          message_arena, delete_plan, submessage_arena);
12982
0
    }
12983
0
    set_has_delete_plan();
12984
0
    plan_.delete_plan_ = delete_plan;
12985
0
  }
12986
  // @@protoc_insertion_point(field_set_allocated:yb.ExplainPlanPB.delete_plan)
12987
0
}
12988
#if !defined(_MSC_VER) || _MSC_VER >= 1900
12989
const int ExplainPlanPB::kSelectPlanFieldNumber;
12990
const int ExplainPlanPB::kInsertPlanFieldNumber;
12991
const int ExplainPlanPB::kUpdatePlanFieldNumber;
12992
const int ExplainPlanPB::kDeletePlanFieldNumber;
12993
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
12994
12995
ExplainPlanPB::ExplainPlanPB()
12996
17.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
12997
165
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
12998
165
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsExplainPlanPB();
12999
165
  }
13000
17.3k
  SharedCtor();
13001
  // @@protoc_insertion_point(constructor:yb.ExplainPlanPB)
13002
17.3k
}
13003
ExplainPlanPB::ExplainPlanPB(const ExplainPlanPB& from)
13004
  : ::google::protobuf::Message(),
13005
      _internal_metadata_(NULL),
13006
      _has_bits_(from._has_bits_),
13007
0
      _cached_size_(0) {
13008
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13009
0
  clear_has_plan();
13010
0
  switch (from.plan_case()) {
13011
0
    case kSelectPlan: {
13012
0
      mutable_select_plan()->::yb::SelectPlanPB::MergeFrom(from.select_plan());
13013
0
      break;
13014
0
    }
13015
0
    case kInsertPlan: {
13016
0
      mutable_insert_plan()->::yb::InsertPlanPB::MergeFrom(from.insert_plan());
13017
0
      break;
13018
0
    }
13019
0
    case kUpdatePlan: {
13020
0
      mutable_update_plan()->::yb::UpdatePlanPB::MergeFrom(from.update_plan());
13021
0
      break;
13022
0
    }
13023
0
    case kDeletePlan: {
13024
0
      mutable_delete_plan()->::yb::DeletePlanPB::MergeFrom(from.delete_plan());
13025
0
      break;
13026
0
    }
13027
0
    case PLAN_NOT_SET: {
13028
0
      break;
13029
0
    }
13030
0
  }
13031
  // @@protoc_insertion_point(copy_constructor:yb.ExplainPlanPB)
13032
0
}
13033
13034
17.3k
void ExplainPlanPB::SharedCtor() {
13035
17.3k
  _cached_size_ = 0;
13036
17.3k
  clear_has_plan();
13037
17.3k
}
13038
13039
165
ExplainPlanPB::~ExplainPlanPB() {
13040
  // @@protoc_insertion_point(destructor:yb.ExplainPlanPB)
13041
165
  SharedDtor();
13042
165
}
13043
13044
165
void ExplainPlanPB::SharedDtor() {
13045
165
  if (has_plan()) {
13046
165
    clear_plan();
13047
165
  }
13048
165
}
13049
13050
0
void ExplainPlanPB::SetCachedSize(int size) const {
13051
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13052
0
  _cached_size_ = size;
13053
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13054
0
}
13055
0
const ::google::protobuf::Descriptor* ExplainPlanPB::descriptor() {
13056
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
13057
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13058
0
}
13059
13060
0
const ExplainPlanPB& ExplainPlanPB::default_instance() {
13061
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsExplainPlanPB();
13062
0
  return *internal_default_instance();
13063
0
}
13064
13065
0
ExplainPlanPB* ExplainPlanPB::New(::google::protobuf::Arena* arena) const {
13066
0
  ExplainPlanPB* n = new ExplainPlanPB;
13067
0
  if (arena != NULL) {
13068
0
    arena->Own(n);
13069
0
  }
13070
0
  return n;
13071
0
}
13072
13073
330
void ExplainPlanPB::clear_plan() {
13074
// @@protoc_insertion_point(one_of_clear_start:yb.ExplainPlanPB)
13075
330
  switch (plan_case()) {
13076
161
    case kSelectPlan: {
13077
161
      delete plan_.select_plan_;
13078
161
      break;
13079
0
    }
13080
1
    case kInsertPlan: {
13081
1
      delete plan_.insert_plan_;
13082
1
      break;
13083
0
    }
13084
1
    case kUpdatePlan: {
13085
1
      delete plan_.update_plan_;
13086
1
      break;
13087
0
    }
13088
2
    case kDeletePlan: {
13089
2
      delete plan_.delete_plan_;
13090
2
      break;
13091
0
    }
13092
165
    case PLAN_NOT_SET: {
13093
165
      break;
13094
330
    }
13095
330
  }
13096
330
  _oneof_case_[0] = PLAN_NOT_SET;
13097
330
}
13098
13099
13100
0
void ExplainPlanPB::Clear() {
13101
// @@protoc_insertion_point(message_clear_start:yb.ExplainPlanPB)
13102
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13103
  // Prevent compiler warnings about cached_has_bits being unused
13104
0
  (void) cached_has_bits;
13105
13106
0
  clear_plan();
13107
0
  _has_bits_.Clear();
13108
0
  _internal_metadata_.Clear();
13109
0
}
13110
13111
bool ExplainPlanPB::MergePartialFromCodedStream(
13112
0
    ::google::protobuf::io::CodedInputStream* input) {
13113
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13114
0
  ::google::protobuf::uint32 tag;
13115
  // @@protoc_insertion_point(parse_start:yb.ExplainPlanPB)
13116
0
  for (;;) {
13117
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13118
0
    tag = p.first;
13119
0
    if (!p.second) goto handle_unusual;
13120
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13121
      // optional .yb.SelectPlanPB select_plan = 1;
13122
0
      case 1: {
13123
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13124
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13125
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13126
0
               input, mutable_select_plan()));
13127
0
        } else {
13128
0
          goto handle_unusual;
13129
0
        }
13130
0
        break;
13131
0
      }
13132
13133
      // optional .yb.InsertPlanPB insert_plan = 2;
13134
0
      case 2: {
13135
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13136
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13137
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13138
0
               input, mutable_insert_plan()));
13139
0
        } else {
13140
0
          goto handle_unusual;
13141
0
        }
13142
0
        break;
13143
0
      }
13144
13145
      // optional .yb.UpdatePlanPB update_plan = 3;
13146
0
      case 3: {
13147
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13148
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13149
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13150
0
               input, mutable_update_plan()));
13151
0
        } else {
13152
0
          goto handle_unusual;
13153
0
        }
13154
0
        break;
13155
0
      }
13156
13157
      // optional .yb.DeletePlanPB delete_plan = 4;
13158
0
      case 4: {
13159
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13160
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
13161
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
13162
0
               input, mutable_delete_plan()));
13163
0
        } else {
13164
0
          goto handle_unusual;
13165
0
        }
13166
0
        break;
13167
0
      }
13168
13169
0
      default: {
13170
0
      handle_unusual:
13171
0
        if (tag == 0) {
13172
0
          goto success;
13173
0
        }
13174
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13175
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13176
0
        break;
13177
0
      }
13178
0
    }
13179
0
  }
13180
0
success:
13181
  // @@protoc_insertion_point(parse_success:yb.ExplainPlanPB)
13182
0
  return true;
13183
0
failure:
13184
  // @@protoc_insertion_point(parse_failure:yb.ExplainPlanPB)
13185
0
  return false;
13186
0
#undef DO_
13187
0
}
13188
13189
void ExplainPlanPB::SerializeWithCachedSizes(
13190
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13191
  // @@protoc_insertion_point(serialize_start:yb.ExplainPlanPB)
13192
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13193
0
  (void) cached_has_bits;
13194
13195
0
  switch (plan_case()) {
13196
0
    case kSelectPlan:
13197
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13198
0
        1, *plan_.select_plan_, output);
13199
0
      break;
13200
0
    case kInsertPlan:
13201
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13202
0
        2, *plan_.insert_plan_, output);
13203
0
      break;
13204
0
    case kUpdatePlan:
13205
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13206
0
        3, *plan_.update_plan_, output);
13207
0
      break;
13208
0
    case kDeletePlan:
13209
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13210
0
        4, *plan_.delete_plan_, output);
13211
0
      break;
13212
0
    default: ;
13213
0
  }
13214
0
  if (_internal_metadata_.have_unknown_fields()) {
13215
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13216
0
        _internal_metadata_.unknown_fields(), output);
13217
0
  }
13218
  // @@protoc_insertion_point(serialize_end:yb.ExplainPlanPB)
13219
0
}
13220
13221
::google::protobuf::uint8* ExplainPlanPB::InternalSerializeWithCachedSizesToArray(
13222
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13223
0
  (void)deterministic; // Unused
13224
  // @@protoc_insertion_point(serialize_to_array_start:yb.ExplainPlanPB)
13225
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13226
0
  (void) cached_has_bits;
13227
13228
0
  switch (plan_case()) {
13229
0
    case kSelectPlan:
13230
0
      target = ::google::protobuf::internal::WireFormatLite::
13231
0
        InternalWriteMessageToArray(
13232
0
          1, *plan_.select_plan_, deterministic, target);
13233
0
      break;
13234
0
    case kInsertPlan:
13235
0
      target = ::google::protobuf::internal::WireFormatLite::
13236
0
        InternalWriteMessageToArray(
13237
0
          2, *plan_.insert_plan_, deterministic, target);
13238
0
      break;
13239
0
    case kUpdatePlan:
13240
0
      target = ::google::protobuf::internal::WireFormatLite::
13241
0
        InternalWriteMessageToArray(
13242
0
          3, *plan_.update_plan_, deterministic, target);
13243
0
      break;
13244
0
    case kDeletePlan:
13245
0
      target = ::google::protobuf::internal::WireFormatLite::
13246
0
        InternalWriteMessageToArray(
13247
0
          4, *plan_.delete_plan_, deterministic, target);
13248
0
      break;
13249
0
    default: ;
13250
0
  }
13251
0
  if (_internal_metadata_.have_unknown_fields()) {
13252
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13253
0
        _internal_metadata_.unknown_fields(), target);
13254
0
  }
13255
  // @@protoc_insertion_point(serialize_to_array_end:yb.ExplainPlanPB)
13256
0
  return target;
13257
0
}
13258
13259
0
size_t ExplainPlanPB::ByteSizeLong() const {
13260
// @@protoc_insertion_point(message_byte_size_start:yb.ExplainPlanPB)
13261
0
  size_t total_size = 0;
13262
13263
0
  if (_internal_metadata_.have_unknown_fields()) {
13264
0
    total_size +=
13265
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13266
0
        _internal_metadata_.unknown_fields());
13267
0
  }
13268
0
  switch (plan_case()) {
13269
    // optional .yb.SelectPlanPB select_plan = 1;
13270
0
    case kSelectPlan: {
13271
0
      total_size += 1 +
13272
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13273
0
          *plan_.select_plan_);
13274
0
      break;
13275
0
    }
13276
    // optional .yb.InsertPlanPB insert_plan = 2;
13277
0
    case kInsertPlan: {
13278
0
      total_size += 1 +
13279
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13280
0
          *plan_.insert_plan_);
13281
0
      break;
13282
0
    }
13283
    // optional .yb.UpdatePlanPB update_plan = 3;
13284
0
    case kUpdatePlan: {
13285
0
      total_size += 1 +
13286
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13287
0
          *plan_.update_plan_);
13288
0
      break;
13289
0
    }
13290
    // optional .yb.DeletePlanPB delete_plan = 4;
13291
0
    case kDeletePlan: {
13292
0
      total_size += 1 +
13293
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
13294
0
          *plan_.delete_plan_);
13295
0
      break;
13296
0
    }
13297
0
    case PLAN_NOT_SET: {
13298
0
      break;
13299
0
    }
13300
0
  }
13301
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13302
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13303
0
  _cached_size_ = cached_size;
13304
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13305
0
  return total_size;
13306
0
}
13307
13308
0
void ExplainPlanPB::MergeFrom(const ::google::protobuf::Message& from) {
13309
// @@protoc_insertion_point(generalized_merge_from_start:yb.ExplainPlanPB)
13310
0
  GOOGLE_DCHECK_NE(&from, this);
13311
0
  const ExplainPlanPB* source =
13312
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ExplainPlanPB>(
13313
0
          &from);
13314
0
  if (source == NULL) {
13315
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ExplainPlanPB)
13316
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13317
0
  } else {
13318
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ExplainPlanPB)
13319
0
    MergeFrom(*source);
13320
0
  }
13321
0
}
13322
13323
0
void ExplainPlanPB::MergeFrom(const ExplainPlanPB& from) {
13324
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ExplainPlanPB)
13325
0
  GOOGLE_DCHECK_NE(&from, this);
13326
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13327
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13328
0
  (void) cached_has_bits;
13329
13330
0
  switch (from.plan_case()) {
13331
0
    case kSelectPlan: {
13332
0
      mutable_select_plan()->::yb::SelectPlanPB::MergeFrom(from.select_plan());
13333
0
      break;
13334
0
    }
13335
0
    case kInsertPlan: {
13336
0
      mutable_insert_plan()->::yb::InsertPlanPB::MergeFrom(from.insert_plan());
13337
0
      break;
13338
0
    }
13339
0
    case kUpdatePlan: {
13340
0
      mutable_update_plan()->::yb::UpdatePlanPB::MergeFrom(from.update_plan());
13341
0
      break;
13342
0
    }
13343
0
    case kDeletePlan: {
13344
0
      mutable_delete_plan()->::yb::DeletePlanPB::MergeFrom(from.delete_plan());
13345
0
      break;
13346
0
    }
13347
0
    case PLAN_NOT_SET: {
13348
0
      break;
13349
0
    }
13350
0
  }
13351
0
}
13352
13353
0
void ExplainPlanPB::CopyFrom(const ::google::protobuf::Message& from) {
13354
// @@protoc_insertion_point(generalized_copy_from_start:yb.ExplainPlanPB)
13355
0
  if (&from == this) return;
13356
0
  Clear();
13357
0
  MergeFrom(from);
13358
0
}
13359
13360
0
void ExplainPlanPB::CopyFrom(const ExplainPlanPB& from) {
13361
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ExplainPlanPB)
13362
0
  if (&from == this) return;
13363
0
  Clear();
13364
0
  MergeFrom(from);
13365
0
}
13366
13367
0
bool ExplainPlanPB::IsInitialized() const {
13368
0
  return true;
13369
0
}
13370
13371
0
void ExplainPlanPB::Swap(ExplainPlanPB* other) {
13372
0
  if (other == this) return;
13373
0
  InternalSwap(other);
13374
0
}
13375
0
void ExplainPlanPB::InternalSwap(ExplainPlanPB* other) {
13376
0
  using std::swap;
13377
0
  swap(plan_, other->plan_);
13378
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
13379
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13380
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13381
0
  swap(_cached_size_, other->_cached_size_);
13382
0
}
13383
13384
0
::google::protobuf::Metadata ExplainPlanPB::GetMetadata() const {
13385
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
13386
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
13387
0
}
13388
13389
13390
// ===================================================================
13391
13392
17.1k
void SelectPlanPB::InitAsDefaultInstance() {
13393
17.1k
}
13394
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13395
const int SelectPlanPB::kSelectTypeFieldNumber;
13396
const int SelectPlanPB::kAggregateFieldNumber;
13397
const int SelectPlanPB::kKeyConditionsFieldNumber;
13398
const int SelectPlanPB::kFilterFieldNumber;
13399
const int SelectPlanPB::kOutputWidthFieldNumber;
13400
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13401
13402
SelectPlanPB::SelectPlanPB()
13403
17.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13404
161
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13405
161
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSelectPlanPB();
13406
161
  }
13407
17.2k
  SharedCtor();
13408
  // @@protoc_insertion_point(constructor:yb.SelectPlanPB)
13409
17.2k
}
13410
SelectPlanPB::SelectPlanPB(const SelectPlanPB& from)
13411
  : ::google::protobuf::Message(),
13412
      _internal_metadata_(NULL),
13413
      _has_bits_(from._has_bits_),
13414
0
      _cached_size_(0) {
13415
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13416
0
  select_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13417
0
  if (from.has_select_type()) {
13418
0
    select_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.select_type_);
13419
0
  }
13420
0
  aggregate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13421
0
  if (from.has_aggregate()) {
13422
0
    aggregate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_);
13423
0
  }
13424
0
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13425
0
  if (from.has_key_conditions()) {
13426
0
    key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
13427
0
  }
13428
0
  filter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13429
0
  if (from.has_filter()) {
13430
0
    filter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filter_);
13431
0
  }
13432
0
  output_width_ = from.output_width_;
13433
  // @@protoc_insertion_point(copy_constructor:yb.SelectPlanPB)
13434
0
}
13435
13436
17.2k
void SelectPlanPB::SharedCtor() {
13437
17.2k
  _cached_size_ = 0;
13438
17.2k
  select_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13439
17.2k
  aggregate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13440
17.2k
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13441
17.2k
  filter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13442
17.2k
  output_width_ = 0;
13443
17.2k
}
13444
13445
161
SelectPlanPB::~SelectPlanPB() {
13446
  // @@protoc_insertion_point(destructor:yb.SelectPlanPB)
13447
161
  SharedDtor();
13448
161
}
13449
13450
161
void SelectPlanPB::SharedDtor() {
13451
161
  select_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13452
161
  aggregate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13453
161
  key_conditions_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13454
161
  filter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13455
161
}
13456
13457
0
void SelectPlanPB::SetCachedSize(int size) const {
13458
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13459
0
  _cached_size_ = size;
13460
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13461
0
}
13462
0
const ::google::protobuf::Descriptor* SelectPlanPB::descriptor() {
13463
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
13464
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13465
0
}
13466
13467
0
const SelectPlanPB& SelectPlanPB::default_instance() {
13468
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsSelectPlanPB();
13469
0
  return *internal_default_instance();
13470
0
}
13471
13472
0
SelectPlanPB* SelectPlanPB::New(::google::protobuf::Arena* arena) const {
13473
0
  SelectPlanPB* n = new SelectPlanPB;
13474
0
  if (arena != NULL) {
13475
0
    arena->Own(n);
13476
0
  }
13477
0
  return n;
13478
0
}
13479
13480
0
void SelectPlanPB::Clear() {
13481
// @@protoc_insertion_point(message_clear_start:yb.SelectPlanPB)
13482
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13483
  // Prevent compiler warnings about cached_has_bits being unused
13484
0
  (void) cached_has_bits;
13485
13486
0
  cached_has_bits = _has_bits_[0];
13487
0
  if (cached_has_bits & 15u) {
13488
0
    if (cached_has_bits & 0x00000001u) {
13489
0
      GOOGLE_DCHECK(!select_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13490
0
      (*select_type_.UnsafeRawStringPointer())->clear();
13491
0
    }
13492
0
    if (cached_has_bits & 0x00000002u) {
13493
0
      GOOGLE_DCHECK(!aggregate_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13494
0
      (*aggregate_.UnsafeRawStringPointer())->clear();
13495
0
    }
13496
0
    if (cached_has_bits & 0x00000004u) {
13497
0
      GOOGLE_DCHECK(!key_conditions_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13498
0
      (*key_conditions_.UnsafeRawStringPointer())->clear();
13499
0
    }
13500
0
    if (cached_has_bits & 0x00000008u) {
13501
0
      GOOGLE_DCHECK(!filter_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13502
0
      (*filter_.UnsafeRawStringPointer())->clear();
13503
0
    }
13504
0
  }
13505
0
  output_width_ = 0;
13506
0
  _has_bits_.Clear();
13507
0
  _internal_metadata_.Clear();
13508
0
}
13509
13510
bool SelectPlanPB::MergePartialFromCodedStream(
13511
0
    ::google::protobuf::io::CodedInputStream* input) {
13512
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13513
0
  ::google::protobuf::uint32 tag;
13514
  // @@protoc_insertion_point(parse_start:yb.SelectPlanPB)
13515
0
  for (;;) {
13516
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13517
0
    tag = p.first;
13518
0
    if (!p.second) goto handle_unusual;
13519
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13520
      // optional string select_type = 1;
13521
0
      case 1: {
13522
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13523
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13524
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13525
0
                input, this->mutable_select_type()));
13526
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13527
0
            this->select_type().data(), static_cast<int>(this->select_type().length()),
13528
0
            ::google::protobuf::internal::WireFormat::PARSE,
13529
0
            "yb.SelectPlanPB.select_type");
13530
0
        } else {
13531
0
          goto handle_unusual;
13532
0
        }
13533
0
        break;
13534
0
      }
13535
13536
      // optional string aggregate = 2;
13537
0
      case 2: {
13538
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13539
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
13540
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13541
0
                input, this->mutable_aggregate()));
13542
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13543
0
            this->aggregate().data(), static_cast<int>(this->aggregate().length()),
13544
0
            ::google::protobuf::internal::WireFormat::PARSE,
13545
0
            "yb.SelectPlanPB.aggregate");
13546
0
        } else {
13547
0
          goto handle_unusual;
13548
0
        }
13549
0
        break;
13550
0
      }
13551
13552
      // optional string key_conditions = 3;
13553
0
      case 3: {
13554
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13555
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
13556
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13557
0
                input, this->mutable_key_conditions()));
13558
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13559
0
            this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
13560
0
            ::google::protobuf::internal::WireFormat::PARSE,
13561
0
            "yb.SelectPlanPB.key_conditions");
13562
0
        } else {
13563
0
          goto handle_unusual;
13564
0
        }
13565
0
        break;
13566
0
      }
13567
13568
      // optional string filter = 4;
13569
0
      case 4: {
13570
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13571
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
13572
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13573
0
                input, this->mutable_filter()));
13574
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13575
0
            this->filter().data(), static_cast<int>(this->filter().length()),
13576
0
            ::google::protobuf::internal::WireFormat::PARSE,
13577
0
            "yb.SelectPlanPB.filter");
13578
0
        } else {
13579
0
          goto handle_unusual;
13580
0
        }
13581
0
        break;
13582
0
      }
13583
13584
      // optional int32 output_width = 5;
13585
0
      case 5: {
13586
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13587
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
13588
0
          set_has_output_width();
13589
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13590
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
13591
0
                 input, &output_width_)));
13592
0
        } else {
13593
0
          goto handle_unusual;
13594
0
        }
13595
0
        break;
13596
0
      }
13597
13598
0
      default: {
13599
0
      handle_unusual:
13600
0
        if (tag == 0) {
13601
0
          goto success;
13602
0
        }
13603
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
13604
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
13605
0
        break;
13606
0
      }
13607
0
    }
13608
0
  }
13609
0
success:
13610
  // @@protoc_insertion_point(parse_success:yb.SelectPlanPB)
13611
0
  return true;
13612
0
failure:
13613
  // @@protoc_insertion_point(parse_failure:yb.SelectPlanPB)
13614
0
  return false;
13615
0
#undef DO_
13616
0
}
13617
13618
void SelectPlanPB::SerializeWithCachedSizes(
13619
0
    ::google::protobuf::io::CodedOutputStream* output) const {
13620
  // @@protoc_insertion_point(serialize_start:yb.SelectPlanPB)
13621
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13622
0
  (void) cached_has_bits;
13623
13624
0
  cached_has_bits = _has_bits_[0];
13625
  // optional string select_type = 1;
13626
0
  if (cached_has_bits & 0x00000001u) {
13627
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13628
0
      this->select_type().data(), static_cast<int>(this->select_type().length()),
13629
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13630
0
      "yb.SelectPlanPB.select_type");
13631
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13632
0
      1, this->select_type(), output);
13633
0
  }
13634
13635
  // optional string aggregate = 2;
13636
0
  if (cached_has_bits & 0x00000002u) {
13637
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13638
0
      this->aggregate().data(), static_cast<int>(this->aggregate().length()),
13639
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13640
0
      "yb.SelectPlanPB.aggregate");
13641
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13642
0
      2, this->aggregate(), output);
13643
0
  }
13644
13645
  // optional string key_conditions = 3;
13646
0
  if (cached_has_bits & 0x00000004u) {
13647
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13648
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
13649
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13650
0
      "yb.SelectPlanPB.key_conditions");
13651
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13652
0
      3, this->key_conditions(), output);
13653
0
  }
13654
13655
  // optional string filter = 4;
13656
0
  if (cached_has_bits & 0x00000008u) {
13657
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13658
0
      this->filter().data(), static_cast<int>(this->filter().length()),
13659
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13660
0
      "yb.SelectPlanPB.filter");
13661
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
13662
0
      4, this->filter(), output);
13663
0
  }
13664
13665
  // optional int32 output_width = 5;
13666
0
  if (cached_has_bits & 0x00000010u) {
13667
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->output_width(), output);
13668
0
  }
13669
13670
0
  if (_internal_metadata_.have_unknown_fields()) {
13671
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
13672
0
        _internal_metadata_.unknown_fields(), output);
13673
0
  }
13674
  // @@protoc_insertion_point(serialize_end:yb.SelectPlanPB)
13675
0
}
13676
13677
::google::protobuf::uint8* SelectPlanPB::InternalSerializeWithCachedSizesToArray(
13678
0
    bool deterministic, ::google::protobuf::uint8* target) const {
13679
0
  (void)deterministic; // Unused
13680
  // @@protoc_insertion_point(serialize_to_array_start:yb.SelectPlanPB)
13681
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13682
0
  (void) cached_has_bits;
13683
13684
0
  cached_has_bits = _has_bits_[0];
13685
  // optional string select_type = 1;
13686
0
  if (cached_has_bits & 0x00000001u) {
13687
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13688
0
      this->select_type().data(), static_cast<int>(this->select_type().length()),
13689
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13690
0
      "yb.SelectPlanPB.select_type");
13691
0
    target =
13692
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13693
0
        1, this->select_type(), target);
13694
0
  }
13695
13696
  // optional string aggregate = 2;
13697
0
  if (cached_has_bits & 0x00000002u) {
13698
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13699
0
      this->aggregate().data(), static_cast<int>(this->aggregate().length()),
13700
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13701
0
      "yb.SelectPlanPB.aggregate");
13702
0
    target =
13703
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13704
0
        2, this->aggregate(), target);
13705
0
  }
13706
13707
  // optional string key_conditions = 3;
13708
0
  if (cached_has_bits & 0x00000004u) {
13709
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13710
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
13711
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13712
0
      "yb.SelectPlanPB.key_conditions");
13713
0
    target =
13714
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13715
0
        3, this->key_conditions(), target);
13716
0
  }
13717
13718
  // optional string filter = 4;
13719
0
  if (cached_has_bits & 0x00000008u) {
13720
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13721
0
      this->filter().data(), static_cast<int>(this->filter().length()),
13722
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
13723
0
      "yb.SelectPlanPB.filter");
13724
0
    target =
13725
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
13726
0
        4, this->filter(), target);
13727
0
  }
13728
13729
  // optional int32 output_width = 5;
13730
0
  if (cached_has_bits & 0x00000010u) {
13731
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->output_width(), target);
13732
0
  }
13733
13734
0
  if (_internal_metadata_.have_unknown_fields()) {
13735
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
13736
0
        _internal_metadata_.unknown_fields(), target);
13737
0
  }
13738
  // @@protoc_insertion_point(serialize_to_array_end:yb.SelectPlanPB)
13739
0
  return target;
13740
0
}
13741
13742
0
size_t SelectPlanPB::ByteSizeLong() const {
13743
// @@protoc_insertion_point(message_byte_size_start:yb.SelectPlanPB)
13744
0
  size_t total_size = 0;
13745
13746
0
  if (_internal_metadata_.have_unknown_fields()) {
13747
0
    total_size +=
13748
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
13749
0
        _internal_metadata_.unknown_fields());
13750
0
  }
13751
0
  if (_has_bits_[0 / 32] & 31u) {
13752
    // optional string select_type = 1;
13753
0
    if (has_select_type()) {
13754
0
      total_size += 1 +
13755
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
13756
0
          this->select_type());
13757
0
    }
13758
13759
    // optional string aggregate = 2;
13760
0
    if (has_aggregate()) {
13761
0
      total_size += 1 +
13762
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
13763
0
          this->aggregate());
13764
0
    }
13765
13766
    // optional string key_conditions = 3;
13767
0
    if (has_key_conditions()) {
13768
0
      total_size += 1 +
13769
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
13770
0
          this->key_conditions());
13771
0
    }
13772
13773
    // optional string filter = 4;
13774
0
    if (has_filter()) {
13775
0
      total_size += 1 +
13776
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
13777
0
          this->filter());
13778
0
    }
13779
13780
    // optional int32 output_width = 5;
13781
0
    if (has_output_width()) {
13782
0
      total_size += 1 +
13783
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
13784
0
          this->output_width());
13785
0
    }
13786
13787
0
  }
13788
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
13789
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13790
0
  _cached_size_ = cached_size;
13791
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13792
0
  return total_size;
13793
0
}
13794
13795
0
void SelectPlanPB::MergeFrom(const ::google::protobuf::Message& from) {
13796
// @@protoc_insertion_point(generalized_merge_from_start:yb.SelectPlanPB)
13797
0
  GOOGLE_DCHECK_NE(&from, this);
13798
0
  const SelectPlanPB* source =
13799
0
      ::google::protobuf::internal::DynamicCastToGenerated<const SelectPlanPB>(
13800
0
          &from);
13801
0
  if (source == NULL) {
13802
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.SelectPlanPB)
13803
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
13804
0
  } else {
13805
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.SelectPlanPB)
13806
0
    MergeFrom(*source);
13807
0
  }
13808
0
}
13809
13810
0
void SelectPlanPB::MergeFrom(const SelectPlanPB& from) {
13811
// @@protoc_insertion_point(class_specific_merge_from_start:yb.SelectPlanPB)
13812
0
  GOOGLE_DCHECK_NE(&from, this);
13813
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13814
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13815
0
  (void) cached_has_bits;
13816
13817
0
  cached_has_bits = from._has_bits_[0];
13818
0
  if (cached_has_bits & 31u) {
13819
0
    if (cached_has_bits & 0x00000001u) {
13820
0
      set_has_select_type();
13821
0
      select_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.select_type_);
13822
0
    }
13823
0
    if (cached_has_bits & 0x00000002u) {
13824
0
      set_has_aggregate();
13825
0
      aggregate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_);
13826
0
    }
13827
0
    if (cached_has_bits & 0x00000004u) {
13828
0
      set_has_key_conditions();
13829
0
      key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
13830
0
    }
13831
0
    if (cached_has_bits & 0x00000008u) {
13832
0
      set_has_filter();
13833
0
      filter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filter_);
13834
0
    }
13835
0
    if (cached_has_bits & 0x00000010u) {
13836
0
      output_width_ = from.output_width_;
13837
0
    }
13838
0
    _has_bits_[0] |= cached_has_bits;
13839
0
  }
13840
0
}
13841
13842
0
void SelectPlanPB::CopyFrom(const ::google::protobuf::Message& from) {
13843
// @@protoc_insertion_point(generalized_copy_from_start:yb.SelectPlanPB)
13844
0
  if (&from == this) return;
13845
0
  Clear();
13846
0
  MergeFrom(from);
13847
0
}
13848
13849
0
void SelectPlanPB::CopyFrom(const SelectPlanPB& from) {
13850
// @@protoc_insertion_point(class_specific_copy_from_start:yb.SelectPlanPB)
13851
0
  if (&from == this) return;
13852
0
  Clear();
13853
0
  MergeFrom(from);
13854
0
}
13855
13856
0
bool SelectPlanPB::IsInitialized() const {
13857
0
  return true;
13858
0
}
13859
13860
0
void SelectPlanPB::Swap(SelectPlanPB* other) {
13861
0
  if (other == this) return;
13862
0
  InternalSwap(other);
13863
0
}
13864
0
void SelectPlanPB::InternalSwap(SelectPlanPB* other) {
13865
0
  using std::swap;
13866
0
  select_type_.Swap(&other->select_type_);
13867
0
  aggregate_.Swap(&other->aggregate_);
13868
0
  key_conditions_.Swap(&other->key_conditions_);
13869
0
  filter_.Swap(&other->filter_);
13870
0
  swap(output_width_, other->output_width_);
13871
0
  swap(_has_bits_[0], other->_has_bits_[0]);
13872
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
13873
0
  swap(_cached_size_, other->_cached_size_);
13874
0
}
13875
13876
0
::google::protobuf::Metadata SelectPlanPB::GetMetadata() const {
13877
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
13878
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
13879
0
}
13880
13881
13882
// ===================================================================
13883
13884
17.1k
void InsertPlanPB::InitAsDefaultInstance() {
13885
17.1k
}
13886
#if !defined(_MSC_VER) || _MSC_VER >= 1900
13887
const int InsertPlanPB::kInsertTypeFieldNumber;
13888
const int InsertPlanPB::kOutputWidthFieldNumber;
13889
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
13890
13891
InsertPlanPB::InsertPlanPB()
13892
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
13893
1
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
13894
1
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsInsertPlanPB();
13895
1
  }
13896
17.1k
  SharedCtor();
13897
  // @@protoc_insertion_point(constructor:yb.InsertPlanPB)
13898
17.1k
}
13899
InsertPlanPB::InsertPlanPB(const InsertPlanPB& from)
13900
  : ::google::protobuf::Message(),
13901
      _internal_metadata_(NULL),
13902
      _has_bits_(from._has_bits_),
13903
0
      _cached_size_(0) {
13904
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
13905
0
  insert_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13906
0
  if (from.has_insert_type()) {
13907
0
    insert_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.insert_type_);
13908
0
  }
13909
0
  output_width_ = from.output_width_;
13910
  // @@protoc_insertion_point(copy_constructor:yb.InsertPlanPB)
13911
0
}
13912
13913
17.1k
void InsertPlanPB::SharedCtor() {
13914
17.1k
  _cached_size_ = 0;
13915
17.1k
  insert_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13916
17.1k
  output_width_ = 0;
13917
17.1k
}
13918
13919
1
InsertPlanPB::~InsertPlanPB() {
13920
  // @@protoc_insertion_point(destructor:yb.InsertPlanPB)
13921
1
  SharedDtor();
13922
1
}
13923
13924
1
void InsertPlanPB::SharedDtor() {
13925
1
  insert_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
13926
1
}
13927
13928
0
void InsertPlanPB::SetCachedSize(int size) const {
13929
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
13930
0
  _cached_size_ = size;
13931
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
13932
0
}
13933
0
const ::google::protobuf::Descriptor* InsertPlanPB::descriptor() {
13934
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
13935
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
13936
0
}
13937
13938
0
const InsertPlanPB& InsertPlanPB::default_instance() {
13939
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsInsertPlanPB();
13940
0
  return *internal_default_instance();
13941
0
}
13942
13943
0
InsertPlanPB* InsertPlanPB::New(::google::protobuf::Arena* arena) const {
13944
0
  InsertPlanPB* n = new InsertPlanPB;
13945
0
  if (arena != NULL) {
13946
0
    arena->Own(n);
13947
0
  }
13948
0
  return n;
13949
0
}
13950
13951
0
void InsertPlanPB::Clear() {
13952
// @@protoc_insertion_point(message_clear_start:yb.InsertPlanPB)
13953
0
  ::google::protobuf::uint32 cached_has_bits = 0;
13954
  // Prevent compiler warnings about cached_has_bits being unused
13955
0
  (void) cached_has_bits;
13956
13957
0
  cached_has_bits = _has_bits_[0];
13958
0
  if (cached_has_bits & 0x00000001u) {
13959
0
    GOOGLE_DCHECK(!insert_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
13960
0
    (*insert_type_.UnsafeRawStringPointer())->clear();
13961
0
  }
13962
0
  output_width_ = 0;
13963
0
  _has_bits_.Clear();
13964
0
  _internal_metadata_.Clear();
13965
0
}
13966
13967
bool InsertPlanPB::MergePartialFromCodedStream(
13968
0
    ::google::protobuf::io::CodedInputStream* input) {
13969
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
13970
0
  ::google::protobuf::uint32 tag;
13971
  // @@protoc_insertion_point(parse_start:yb.InsertPlanPB)
13972
0
  for (;;) {
13973
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
13974
0
    tag = p.first;
13975
0
    if (!p.second) goto handle_unusual;
13976
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
13977
      // optional string insert_type = 1;
13978
0
      case 1: {
13979
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13980
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
13981
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
13982
0
                input, this->mutable_insert_type()));
13983
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
13984
0
            this->insert_type().data(), static_cast<int>(this->insert_type().length()),
13985
0
            ::google::protobuf::internal::WireFormat::PARSE,
13986
0
            "yb.InsertPlanPB.insert_type");
13987
0
        } else {
13988
0
          goto handle_unusual;
13989
0
        }
13990
0
        break;
13991
0
      }
13992
13993
      // optional int32 output_width = 2;
13994
0
      case 2: {
13995
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
13996
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
13997
0
          set_has_output_width();
13998
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
13999
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14000
0
                 input, &output_width_)));
14001
0
        } else {
14002
0
          goto handle_unusual;
14003
0
        }
14004
0
        break;
14005
0
      }
14006
14007
0
      default: {
14008
0
      handle_unusual:
14009
0
        if (tag == 0) {
14010
0
          goto success;
14011
0
        }
14012
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
14013
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
14014
0
        break;
14015
0
      }
14016
0
    }
14017
0
  }
14018
0
success:
14019
  // @@protoc_insertion_point(parse_success:yb.InsertPlanPB)
14020
0
  return true;
14021
0
failure:
14022
  // @@protoc_insertion_point(parse_failure:yb.InsertPlanPB)
14023
0
  return false;
14024
0
#undef DO_
14025
0
}
14026
14027
void InsertPlanPB::SerializeWithCachedSizes(
14028
0
    ::google::protobuf::io::CodedOutputStream* output) const {
14029
  // @@protoc_insertion_point(serialize_start:yb.InsertPlanPB)
14030
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14031
0
  (void) cached_has_bits;
14032
14033
0
  cached_has_bits = _has_bits_[0];
14034
  // optional string insert_type = 1;
14035
0
  if (cached_has_bits & 0x00000001u) {
14036
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14037
0
      this->insert_type().data(), static_cast<int>(this->insert_type().length()),
14038
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14039
0
      "yb.InsertPlanPB.insert_type");
14040
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14041
0
      1, this->insert_type(), output);
14042
0
  }
14043
14044
  // optional int32 output_width = 2;
14045
0
  if (cached_has_bits & 0x00000002u) {
14046
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->output_width(), output);
14047
0
  }
14048
14049
0
  if (_internal_metadata_.have_unknown_fields()) {
14050
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14051
0
        _internal_metadata_.unknown_fields(), output);
14052
0
  }
14053
  // @@protoc_insertion_point(serialize_end:yb.InsertPlanPB)
14054
0
}
14055
14056
::google::protobuf::uint8* InsertPlanPB::InternalSerializeWithCachedSizesToArray(
14057
0
    bool deterministic, ::google::protobuf::uint8* target) const {
14058
0
  (void)deterministic; // Unused
14059
  // @@protoc_insertion_point(serialize_to_array_start:yb.InsertPlanPB)
14060
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14061
0
  (void) cached_has_bits;
14062
14063
0
  cached_has_bits = _has_bits_[0];
14064
  // optional string insert_type = 1;
14065
0
  if (cached_has_bits & 0x00000001u) {
14066
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14067
0
      this->insert_type().data(), static_cast<int>(this->insert_type().length()),
14068
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14069
0
      "yb.InsertPlanPB.insert_type");
14070
0
    target =
14071
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14072
0
        1, this->insert_type(), target);
14073
0
  }
14074
14075
  // optional int32 output_width = 2;
14076
0
  if (cached_has_bits & 0x00000002u) {
14077
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->output_width(), target);
14078
0
  }
14079
14080
0
  if (_internal_metadata_.have_unknown_fields()) {
14081
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14082
0
        _internal_metadata_.unknown_fields(), target);
14083
0
  }
14084
  // @@protoc_insertion_point(serialize_to_array_end:yb.InsertPlanPB)
14085
0
  return target;
14086
0
}
14087
14088
0
size_t InsertPlanPB::ByteSizeLong() const {
14089
// @@protoc_insertion_point(message_byte_size_start:yb.InsertPlanPB)
14090
0
  size_t total_size = 0;
14091
14092
0
  if (_internal_metadata_.have_unknown_fields()) {
14093
0
    total_size +=
14094
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14095
0
        _internal_metadata_.unknown_fields());
14096
0
  }
14097
0
  if (_has_bits_[0 / 32] & 3u) {
14098
    // optional string insert_type = 1;
14099
0
    if (has_insert_type()) {
14100
0
      total_size += 1 +
14101
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14102
0
          this->insert_type());
14103
0
    }
14104
14105
    // optional int32 output_width = 2;
14106
0
    if (has_output_width()) {
14107
0
      total_size += 1 +
14108
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
14109
0
          this->output_width());
14110
0
    }
14111
14112
0
  }
14113
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14114
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14115
0
  _cached_size_ = cached_size;
14116
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14117
0
  return total_size;
14118
0
}
14119
14120
0
void InsertPlanPB::MergeFrom(const ::google::protobuf::Message& from) {
14121
// @@protoc_insertion_point(generalized_merge_from_start:yb.InsertPlanPB)
14122
0
  GOOGLE_DCHECK_NE(&from, this);
14123
0
  const InsertPlanPB* source =
14124
0
      ::google::protobuf::internal::DynamicCastToGenerated<const InsertPlanPB>(
14125
0
          &from);
14126
0
  if (source == NULL) {
14127
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.InsertPlanPB)
14128
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14129
0
  } else {
14130
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.InsertPlanPB)
14131
0
    MergeFrom(*source);
14132
0
  }
14133
0
}
14134
14135
0
void InsertPlanPB::MergeFrom(const InsertPlanPB& from) {
14136
// @@protoc_insertion_point(class_specific_merge_from_start:yb.InsertPlanPB)
14137
0
  GOOGLE_DCHECK_NE(&from, this);
14138
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14139
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14140
0
  (void) cached_has_bits;
14141
14142
0
  cached_has_bits = from._has_bits_[0];
14143
0
  if (cached_has_bits & 3u) {
14144
0
    if (cached_has_bits & 0x00000001u) {
14145
0
      set_has_insert_type();
14146
0
      insert_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.insert_type_);
14147
0
    }
14148
0
    if (cached_has_bits & 0x00000002u) {
14149
0
      output_width_ = from.output_width_;
14150
0
    }
14151
0
    _has_bits_[0] |= cached_has_bits;
14152
0
  }
14153
0
}
14154
14155
0
void InsertPlanPB::CopyFrom(const ::google::protobuf::Message& from) {
14156
// @@protoc_insertion_point(generalized_copy_from_start:yb.InsertPlanPB)
14157
0
  if (&from == this) return;
14158
0
  Clear();
14159
0
  MergeFrom(from);
14160
0
}
14161
14162
0
void InsertPlanPB::CopyFrom(const InsertPlanPB& from) {
14163
// @@protoc_insertion_point(class_specific_copy_from_start:yb.InsertPlanPB)
14164
0
  if (&from == this) return;
14165
0
  Clear();
14166
0
  MergeFrom(from);
14167
0
}
14168
14169
0
bool InsertPlanPB::IsInitialized() const {
14170
0
  return true;
14171
0
}
14172
14173
0
void InsertPlanPB::Swap(InsertPlanPB* other) {
14174
0
  if (other == this) return;
14175
0
  InternalSwap(other);
14176
0
}
14177
0
void InsertPlanPB::InternalSwap(InsertPlanPB* other) {
14178
0
  using std::swap;
14179
0
  insert_type_.Swap(&other->insert_type_);
14180
0
  swap(output_width_, other->output_width_);
14181
0
  swap(_has_bits_[0], other->_has_bits_[0]);
14182
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
14183
0
  swap(_cached_size_, other->_cached_size_);
14184
0
}
14185
14186
0
::google::protobuf::Metadata InsertPlanPB::GetMetadata() const {
14187
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
14188
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
14189
0
}
14190
14191
14192
// ===================================================================
14193
14194
17.1k
void UpdatePlanPB::InitAsDefaultInstance() {
14195
17.1k
}
14196
#if !defined(_MSC_VER) || _MSC_VER >= 1900
14197
const int UpdatePlanPB::kUpdateTypeFieldNumber;
14198
const int UpdatePlanPB::kScanTypeFieldNumber;
14199
const int UpdatePlanPB::kKeyConditionsFieldNumber;
14200
const int UpdatePlanPB::kOutputWidthFieldNumber;
14201
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14202
14203
UpdatePlanPB::UpdatePlanPB()
14204
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14205
1
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14206
1
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsUpdatePlanPB();
14207
1
  }
14208
17.1k
  SharedCtor();
14209
  // @@protoc_insertion_point(constructor:yb.UpdatePlanPB)
14210
17.1k
}
14211
UpdatePlanPB::UpdatePlanPB(const UpdatePlanPB& from)
14212
  : ::google::protobuf::Message(),
14213
      _internal_metadata_(NULL),
14214
      _has_bits_(from._has_bits_),
14215
0
      _cached_size_(0) {
14216
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14217
0
  update_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14218
0
  if (from.has_update_type()) {
14219
0
    update_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.update_type_);
14220
0
  }
14221
0
  scan_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14222
0
  if (from.has_scan_type()) {
14223
0
    scan_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scan_type_);
14224
0
  }
14225
0
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14226
0
  if (from.has_key_conditions()) {
14227
0
    key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
14228
0
  }
14229
0
  output_width_ = from.output_width_;
14230
  // @@protoc_insertion_point(copy_constructor:yb.UpdatePlanPB)
14231
0
}
14232
14233
17.1k
void UpdatePlanPB::SharedCtor() {
14234
17.1k
  _cached_size_ = 0;
14235
17.1k
  update_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14236
17.1k
  scan_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14237
17.1k
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14238
17.1k
  output_width_ = 0;
14239
17.1k
}
14240
14241
1
UpdatePlanPB::~UpdatePlanPB() {
14242
  // @@protoc_insertion_point(destructor:yb.UpdatePlanPB)
14243
1
  SharedDtor();
14244
1
}
14245
14246
1
void UpdatePlanPB::SharedDtor() {
14247
1
  update_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14248
1
  scan_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14249
1
  key_conditions_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14250
1
}
14251
14252
0
void UpdatePlanPB::SetCachedSize(int size) const {
14253
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14254
0
  _cached_size_ = size;
14255
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14256
0
}
14257
0
const ::google::protobuf::Descriptor* UpdatePlanPB::descriptor() {
14258
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
14259
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
14260
0
}
14261
14262
0
const UpdatePlanPB& UpdatePlanPB::default_instance() {
14263
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsUpdatePlanPB();
14264
0
  return *internal_default_instance();
14265
0
}
14266
14267
0
UpdatePlanPB* UpdatePlanPB::New(::google::protobuf::Arena* arena) const {
14268
0
  UpdatePlanPB* n = new UpdatePlanPB;
14269
0
  if (arena != NULL) {
14270
0
    arena->Own(n);
14271
0
  }
14272
0
  return n;
14273
0
}
14274
14275
0
void UpdatePlanPB::Clear() {
14276
// @@protoc_insertion_point(message_clear_start:yb.UpdatePlanPB)
14277
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14278
  // Prevent compiler warnings about cached_has_bits being unused
14279
0
  (void) cached_has_bits;
14280
14281
0
  cached_has_bits = _has_bits_[0];
14282
0
  if (cached_has_bits & 7u) {
14283
0
    if (cached_has_bits & 0x00000001u) {
14284
0
      GOOGLE_DCHECK(!update_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14285
0
      (*update_type_.UnsafeRawStringPointer())->clear();
14286
0
    }
14287
0
    if (cached_has_bits & 0x00000002u) {
14288
0
      GOOGLE_DCHECK(!scan_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14289
0
      (*scan_type_.UnsafeRawStringPointer())->clear();
14290
0
    }
14291
0
    if (cached_has_bits & 0x00000004u) {
14292
0
      GOOGLE_DCHECK(!key_conditions_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14293
0
      (*key_conditions_.UnsafeRawStringPointer())->clear();
14294
0
    }
14295
0
  }
14296
0
  output_width_ = 0;
14297
0
  _has_bits_.Clear();
14298
0
  _internal_metadata_.Clear();
14299
0
}
14300
14301
bool UpdatePlanPB::MergePartialFromCodedStream(
14302
0
    ::google::protobuf::io::CodedInputStream* input) {
14303
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14304
0
  ::google::protobuf::uint32 tag;
14305
  // @@protoc_insertion_point(parse_start:yb.UpdatePlanPB)
14306
0
  for (;;) {
14307
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14308
0
    tag = p.first;
14309
0
    if (!p.second) goto handle_unusual;
14310
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14311
      // optional string update_type = 1;
14312
0
      case 1: {
14313
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14314
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
14315
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14316
0
                input, this->mutable_update_type()));
14317
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14318
0
            this->update_type().data(), static_cast<int>(this->update_type().length()),
14319
0
            ::google::protobuf::internal::WireFormat::PARSE,
14320
0
            "yb.UpdatePlanPB.update_type");
14321
0
        } else {
14322
0
          goto handle_unusual;
14323
0
        }
14324
0
        break;
14325
0
      }
14326
14327
      // optional string scan_type = 2;
14328
0
      case 2: {
14329
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14330
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
14331
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14332
0
                input, this->mutable_scan_type()));
14333
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14334
0
            this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14335
0
            ::google::protobuf::internal::WireFormat::PARSE,
14336
0
            "yb.UpdatePlanPB.scan_type");
14337
0
        } else {
14338
0
          goto handle_unusual;
14339
0
        }
14340
0
        break;
14341
0
      }
14342
14343
      // optional string key_conditions = 3;
14344
0
      case 3: {
14345
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14346
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
14347
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14348
0
                input, this->mutable_key_conditions()));
14349
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14350
0
            this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14351
0
            ::google::protobuf::internal::WireFormat::PARSE,
14352
0
            "yb.UpdatePlanPB.key_conditions");
14353
0
        } else {
14354
0
          goto handle_unusual;
14355
0
        }
14356
0
        break;
14357
0
      }
14358
14359
      // optional int32 output_width = 4;
14360
0
      case 4: {
14361
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14362
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
14363
0
          set_has_output_width();
14364
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14365
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14366
0
                 input, &output_width_)));
14367
0
        } else {
14368
0
          goto handle_unusual;
14369
0
        }
14370
0
        break;
14371
0
      }
14372
14373
0
      default: {
14374
0
      handle_unusual:
14375
0
        if (tag == 0) {
14376
0
          goto success;
14377
0
        }
14378
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
14379
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
14380
0
        break;
14381
0
      }
14382
0
    }
14383
0
  }
14384
0
success:
14385
  // @@protoc_insertion_point(parse_success:yb.UpdatePlanPB)
14386
0
  return true;
14387
0
failure:
14388
  // @@protoc_insertion_point(parse_failure:yb.UpdatePlanPB)
14389
0
  return false;
14390
0
#undef DO_
14391
0
}
14392
14393
void UpdatePlanPB::SerializeWithCachedSizes(
14394
0
    ::google::protobuf::io::CodedOutputStream* output) const {
14395
  // @@protoc_insertion_point(serialize_start:yb.UpdatePlanPB)
14396
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14397
0
  (void) cached_has_bits;
14398
14399
0
  cached_has_bits = _has_bits_[0];
14400
  // optional string update_type = 1;
14401
0
  if (cached_has_bits & 0x00000001u) {
14402
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14403
0
      this->update_type().data(), static_cast<int>(this->update_type().length()),
14404
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14405
0
      "yb.UpdatePlanPB.update_type");
14406
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14407
0
      1, this->update_type(), output);
14408
0
  }
14409
14410
  // optional string scan_type = 2;
14411
0
  if (cached_has_bits & 0x00000002u) {
14412
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14413
0
      this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14414
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14415
0
      "yb.UpdatePlanPB.scan_type");
14416
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14417
0
      2, this->scan_type(), output);
14418
0
  }
14419
14420
  // optional string key_conditions = 3;
14421
0
  if (cached_has_bits & 0x00000004u) {
14422
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14423
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14424
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14425
0
      "yb.UpdatePlanPB.key_conditions");
14426
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14427
0
      3, this->key_conditions(), output);
14428
0
  }
14429
14430
  // optional int32 output_width = 4;
14431
0
  if (cached_has_bits & 0x00000008u) {
14432
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->output_width(), output);
14433
0
  }
14434
14435
0
  if (_internal_metadata_.have_unknown_fields()) {
14436
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14437
0
        _internal_metadata_.unknown_fields(), output);
14438
0
  }
14439
  // @@protoc_insertion_point(serialize_end:yb.UpdatePlanPB)
14440
0
}
14441
14442
::google::protobuf::uint8* UpdatePlanPB::InternalSerializeWithCachedSizesToArray(
14443
0
    bool deterministic, ::google::protobuf::uint8* target) const {
14444
0
  (void)deterministic; // Unused
14445
  // @@protoc_insertion_point(serialize_to_array_start:yb.UpdatePlanPB)
14446
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14447
0
  (void) cached_has_bits;
14448
14449
0
  cached_has_bits = _has_bits_[0];
14450
  // optional string update_type = 1;
14451
0
  if (cached_has_bits & 0x00000001u) {
14452
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14453
0
      this->update_type().data(), static_cast<int>(this->update_type().length()),
14454
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14455
0
      "yb.UpdatePlanPB.update_type");
14456
0
    target =
14457
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14458
0
        1, this->update_type(), target);
14459
0
  }
14460
14461
  // optional string scan_type = 2;
14462
0
  if (cached_has_bits & 0x00000002u) {
14463
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14464
0
      this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14465
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14466
0
      "yb.UpdatePlanPB.scan_type");
14467
0
    target =
14468
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14469
0
        2, this->scan_type(), target);
14470
0
  }
14471
14472
  // optional string key_conditions = 3;
14473
0
  if (cached_has_bits & 0x00000004u) {
14474
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14475
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14476
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14477
0
      "yb.UpdatePlanPB.key_conditions");
14478
0
    target =
14479
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14480
0
        3, this->key_conditions(), target);
14481
0
  }
14482
14483
  // optional int32 output_width = 4;
14484
0
  if (cached_has_bits & 0x00000008u) {
14485
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->output_width(), target);
14486
0
  }
14487
14488
0
  if (_internal_metadata_.have_unknown_fields()) {
14489
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14490
0
        _internal_metadata_.unknown_fields(), target);
14491
0
  }
14492
  // @@protoc_insertion_point(serialize_to_array_end:yb.UpdatePlanPB)
14493
0
  return target;
14494
0
}
14495
14496
0
size_t UpdatePlanPB::ByteSizeLong() const {
14497
// @@protoc_insertion_point(message_byte_size_start:yb.UpdatePlanPB)
14498
0
  size_t total_size = 0;
14499
14500
0
  if (_internal_metadata_.have_unknown_fields()) {
14501
0
    total_size +=
14502
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14503
0
        _internal_metadata_.unknown_fields());
14504
0
  }
14505
0
  if (_has_bits_[0 / 32] & 15u) {
14506
    // optional string update_type = 1;
14507
0
    if (has_update_type()) {
14508
0
      total_size += 1 +
14509
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14510
0
          this->update_type());
14511
0
    }
14512
14513
    // optional string scan_type = 2;
14514
0
    if (has_scan_type()) {
14515
0
      total_size += 1 +
14516
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14517
0
          this->scan_type());
14518
0
    }
14519
14520
    // optional string key_conditions = 3;
14521
0
    if (has_key_conditions()) {
14522
0
      total_size += 1 +
14523
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14524
0
          this->key_conditions());
14525
0
    }
14526
14527
    // optional int32 output_width = 4;
14528
0
    if (has_output_width()) {
14529
0
      total_size += 1 +
14530
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
14531
0
          this->output_width());
14532
0
    }
14533
14534
0
  }
14535
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
14536
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14537
0
  _cached_size_ = cached_size;
14538
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14539
0
  return total_size;
14540
0
}
14541
14542
0
void UpdatePlanPB::MergeFrom(const ::google::protobuf::Message& from) {
14543
// @@protoc_insertion_point(generalized_merge_from_start:yb.UpdatePlanPB)
14544
0
  GOOGLE_DCHECK_NE(&from, this);
14545
0
  const UpdatePlanPB* source =
14546
0
      ::google::protobuf::internal::DynamicCastToGenerated<const UpdatePlanPB>(
14547
0
          &from);
14548
0
  if (source == NULL) {
14549
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.UpdatePlanPB)
14550
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
14551
0
  } else {
14552
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.UpdatePlanPB)
14553
0
    MergeFrom(*source);
14554
0
  }
14555
0
}
14556
14557
0
void UpdatePlanPB::MergeFrom(const UpdatePlanPB& from) {
14558
// @@protoc_insertion_point(class_specific_merge_from_start:yb.UpdatePlanPB)
14559
0
  GOOGLE_DCHECK_NE(&from, this);
14560
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14561
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14562
0
  (void) cached_has_bits;
14563
14564
0
  cached_has_bits = from._has_bits_[0];
14565
0
  if (cached_has_bits & 15u) {
14566
0
    if (cached_has_bits & 0x00000001u) {
14567
0
      set_has_update_type();
14568
0
      update_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.update_type_);
14569
0
    }
14570
0
    if (cached_has_bits & 0x00000002u) {
14571
0
      set_has_scan_type();
14572
0
      scan_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scan_type_);
14573
0
    }
14574
0
    if (cached_has_bits & 0x00000004u) {
14575
0
      set_has_key_conditions();
14576
0
      key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
14577
0
    }
14578
0
    if (cached_has_bits & 0x00000008u) {
14579
0
      output_width_ = from.output_width_;
14580
0
    }
14581
0
    _has_bits_[0] |= cached_has_bits;
14582
0
  }
14583
0
}
14584
14585
0
void UpdatePlanPB::CopyFrom(const ::google::protobuf::Message& from) {
14586
// @@protoc_insertion_point(generalized_copy_from_start:yb.UpdatePlanPB)
14587
0
  if (&from == this) return;
14588
0
  Clear();
14589
0
  MergeFrom(from);
14590
0
}
14591
14592
0
void UpdatePlanPB::CopyFrom(const UpdatePlanPB& from) {
14593
// @@protoc_insertion_point(class_specific_copy_from_start:yb.UpdatePlanPB)
14594
0
  if (&from == this) return;
14595
0
  Clear();
14596
0
  MergeFrom(from);
14597
0
}
14598
14599
0
bool UpdatePlanPB::IsInitialized() const {
14600
0
  return true;
14601
0
}
14602
14603
0
void UpdatePlanPB::Swap(UpdatePlanPB* other) {
14604
0
  if (other == this) return;
14605
0
  InternalSwap(other);
14606
0
}
14607
0
void UpdatePlanPB::InternalSwap(UpdatePlanPB* other) {
14608
0
  using std::swap;
14609
0
  update_type_.Swap(&other->update_type_);
14610
0
  scan_type_.Swap(&other->scan_type_);
14611
0
  key_conditions_.Swap(&other->key_conditions_);
14612
0
  swap(output_width_, other->output_width_);
14613
0
  swap(_has_bits_[0], other->_has_bits_[0]);
14614
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
14615
0
  swap(_cached_size_, other->_cached_size_);
14616
0
}
14617
14618
0
::google::protobuf::Metadata UpdatePlanPB::GetMetadata() const {
14619
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
14620
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
14621
0
}
14622
14623
14624
// ===================================================================
14625
14626
17.1k
void DeletePlanPB::InitAsDefaultInstance() {
14627
17.1k
}
14628
#if !defined(_MSC_VER) || _MSC_VER >= 1900
14629
const int DeletePlanPB::kDeleteTypeFieldNumber;
14630
const int DeletePlanPB::kScanTypeFieldNumber;
14631
const int DeletePlanPB::kKeyConditionsFieldNumber;
14632
const int DeletePlanPB::kFilterFieldNumber;
14633
const int DeletePlanPB::kOutputWidthFieldNumber;
14634
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
14635
14636
DeletePlanPB::DeletePlanPB()
14637
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
14638
2
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
14639
2
    ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletePlanPB();
14640
2
  }
14641
17.1k
  SharedCtor();
14642
  // @@protoc_insertion_point(constructor:yb.DeletePlanPB)
14643
17.1k
}
14644
DeletePlanPB::DeletePlanPB(const DeletePlanPB& from)
14645
  : ::google::protobuf::Message(),
14646
      _internal_metadata_(NULL),
14647
      _has_bits_(from._has_bits_),
14648
0
      _cached_size_(0) {
14649
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
14650
0
  delete_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14651
0
  if (from.has_delete_type()) {
14652
0
    delete_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delete_type_);
14653
0
  }
14654
0
  scan_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14655
0
  if (from.has_scan_type()) {
14656
0
    scan_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scan_type_);
14657
0
  }
14658
0
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14659
0
  if (from.has_key_conditions()) {
14660
0
    key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
14661
0
  }
14662
0
  filter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14663
0
  if (from.has_filter()) {
14664
0
    filter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filter_);
14665
0
  }
14666
0
  output_width_ = from.output_width_;
14667
  // @@protoc_insertion_point(copy_constructor:yb.DeletePlanPB)
14668
0
}
14669
14670
17.1k
void DeletePlanPB::SharedCtor() {
14671
17.1k
  _cached_size_ = 0;
14672
17.1k
  delete_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14673
17.1k
  scan_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14674
17.1k
  key_conditions_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14675
17.1k
  filter_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14676
17.1k
  output_width_ = 0;
14677
17.1k
}
14678
14679
2
DeletePlanPB::~DeletePlanPB() {
14680
  // @@protoc_insertion_point(destructor:yb.DeletePlanPB)
14681
2
  SharedDtor();
14682
2
}
14683
14684
2
void DeletePlanPB::SharedDtor() {
14685
2
  delete_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14686
2
  scan_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14687
2
  key_conditions_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14688
2
  filter_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
14689
2
}
14690
14691
0
void DeletePlanPB::SetCachedSize(int size) const {
14692
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
14693
0
  _cached_size_ = size;
14694
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
14695
0
}
14696
0
const ::google::protobuf::Descriptor* DeletePlanPB::descriptor() {
14697
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
14698
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
14699
0
}
14700
14701
0
const DeletePlanPB& DeletePlanPB::default_instance() {
14702
0
  ::protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsDeletePlanPB();
14703
0
  return *internal_default_instance();
14704
0
}
14705
14706
0
DeletePlanPB* DeletePlanPB::New(::google::protobuf::Arena* arena) const {
14707
0
  DeletePlanPB* n = new DeletePlanPB;
14708
0
  if (arena != NULL) {
14709
0
    arena->Own(n);
14710
0
  }
14711
0
  return n;
14712
0
}
14713
14714
0
void DeletePlanPB::Clear() {
14715
// @@protoc_insertion_point(message_clear_start:yb.DeletePlanPB)
14716
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14717
  // Prevent compiler warnings about cached_has_bits being unused
14718
0
  (void) cached_has_bits;
14719
14720
0
  cached_has_bits = _has_bits_[0];
14721
0
  if (cached_has_bits & 15u) {
14722
0
    if (cached_has_bits & 0x00000001u) {
14723
0
      GOOGLE_DCHECK(!delete_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14724
0
      (*delete_type_.UnsafeRawStringPointer())->clear();
14725
0
    }
14726
0
    if (cached_has_bits & 0x00000002u) {
14727
0
      GOOGLE_DCHECK(!scan_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14728
0
      (*scan_type_.UnsafeRawStringPointer())->clear();
14729
0
    }
14730
0
    if (cached_has_bits & 0x00000004u) {
14731
0
      GOOGLE_DCHECK(!key_conditions_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14732
0
      (*key_conditions_.UnsafeRawStringPointer())->clear();
14733
0
    }
14734
0
    if (cached_has_bits & 0x00000008u) {
14735
0
      GOOGLE_DCHECK(!filter_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
14736
0
      (*filter_.UnsafeRawStringPointer())->clear();
14737
0
    }
14738
0
  }
14739
0
  output_width_ = 0;
14740
0
  _has_bits_.Clear();
14741
0
  _internal_metadata_.Clear();
14742
0
}
14743
14744
bool DeletePlanPB::MergePartialFromCodedStream(
14745
0
    ::google::protobuf::io::CodedInputStream* input) {
14746
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
14747
0
  ::google::protobuf::uint32 tag;
14748
  // @@protoc_insertion_point(parse_start:yb.DeletePlanPB)
14749
0
  for (;;) {
14750
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
14751
0
    tag = p.first;
14752
0
    if (!p.second) goto handle_unusual;
14753
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
14754
      // optional string delete_type = 1;
14755
0
      case 1: {
14756
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14757
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
14758
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14759
0
                input, this->mutable_delete_type()));
14760
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14761
0
            this->delete_type().data(), static_cast<int>(this->delete_type().length()),
14762
0
            ::google::protobuf::internal::WireFormat::PARSE,
14763
0
            "yb.DeletePlanPB.delete_type");
14764
0
        } else {
14765
0
          goto handle_unusual;
14766
0
        }
14767
0
        break;
14768
0
      }
14769
14770
      // optional string scan_type = 2;
14771
0
      case 2: {
14772
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14773
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
14774
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14775
0
                input, this->mutable_scan_type()));
14776
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14777
0
            this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14778
0
            ::google::protobuf::internal::WireFormat::PARSE,
14779
0
            "yb.DeletePlanPB.scan_type");
14780
0
        } else {
14781
0
          goto handle_unusual;
14782
0
        }
14783
0
        break;
14784
0
      }
14785
14786
      // optional string key_conditions = 3;
14787
0
      case 3: {
14788
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14789
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
14790
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14791
0
                input, this->mutable_key_conditions()));
14792
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14793
0
            this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14794
0
            ::google::protobuf::internal::WireFormat::PARSE,
14795
0
            "yb.DeletePlanPB.key_conditions");
14796
0
        } else {
14797
0
          goto handle_unusual;
14798
0
        }
14799
0
        break;
14800
0
      }
14801
14802
      // optional string filter = 4;
14803
0
      case 4: {
14804
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14805
0
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
14806
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
14807
0
                input, this->mutable_filter()));
14808
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14809
0
            this->filter().data(), static_cast<int>(this->filter().length()),
14810
0
            ::google::protobuf::internal::WireFormat::PARSE,
14811
0
            "yb.DeletePlanPB.filter");
14812
0
        } else {
14813
0
          goto handle_unusual;
14814
0
        }
14815
0
        break;
14816
0
      }
14817
14818
      // optional int32 output_width = 5;
14819
0
      case 5: {
14820
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
14821
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
14822
0
          set_has_output_width();
14823
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
14824
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
14825
0
                 input, &output_width_)));
14826
0
        } else {
14827
0
          goto handle_unusual;
14828
0
        }
14829
0
        break;
14830
0
      }
14831
14832
0
      default: {
14833
0
      handle_unusual:
14834
0
        if (tag == 0) {
14835
0
          goto success;
14836
0
        }
14837
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
14838
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
14839
0
        break;
14840
0
      }
14841
0
    }
14842
0
  }
14843
0
success:
14844
  // @@protoc_insertion_point(parse_success:yb.DeletePlanPB)
14845
0
  return true;
14846
0
failure:
14847
  // @@protoc_insertion_point(parse_failure:yb.DeletePlanPB)
14848
0
  return false;
14849
0
#undef DO_
14850
0
}
14851
14852
void DeletePlanPB::SerializeWithCachedSizes(
14853
0
    ::google::protobuf::io::CodedOutputStream* output) const {
14854
  // @@protoc_insertion_point(serialize_start:yb.DeletePlanPB)
14855
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14856
0
  (void) cached_has_bits;
14857
14858
0
  cached_has_bits = _has_bits_[0];
14859
  // optional string delete_type = 1;
14860
0
  if (cached_has_bits & 0x00000001u) {
14861
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14862
0
      this->delete_type().data(), static_cast<int>(this->delete_type().length()),
14863
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14864
0
      "yb.DeletePlanPB.delete_type");
14865
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14866
0
      1, this->delete_type(), output);
14867
0
  }
14868
14869
  // optional string scan_type = 2;
14870
0
  if (cached_has_bits & 0x00000002u) {
14871
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14872
0
      this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14873
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14874
0
      "yb.DeletePlanPB.scan_type");
14875
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14876
0
      2, this->scan_type(), output);
14877
0
  }
14878
14879
  // optional string key_conditions = 3;
14880
0
  if (cached_has_bits & 0x00000004u) {
14881
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14882
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14883
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14884
0
      "yb.DeletePlanPB.key_conditions");
14885
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14886
0
      3, this->key_conditions(), output);
14887
0
  }
14888
14889
  // optional string filter = 4;
14890
0
  if (cached_has_bits & 0x00000008u) {
14891
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14892
0
      this->filter().data(), static_cast<int>(this->filter().length()),
14893
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14894
0
      "yb.DeletePlanPB.filter");
14895
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
14896
0
      4, this->filter(), output);
14897
0
  }
14898
14899
  // optional int32 output_width = 5;
14900
0
  if (cached_has_bits & 0x00000010u) {
14901
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->output_width(), output);
14902
0
  }
14903
14904
0
  if (_internal_metadata_.have_unknown_fields()) {
14905
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
14906
0
        _internal_metadata_.unknown_fields(), output);
14907
0
  }
14908
  // @@protoc_insertion_point(serialize_end:yb.DeletePlanPB)
14909
0
}
14910
14911
::google::protobuf::uint8* DeletePlanPB::InternalSerializeWithCachedSizesToArray(
14912
0
    bool deterministic, ::google::protobuf::uint8* target) const {
14913
0
  (void)deterministic; // Unused
14914
  // @@protoc_insertion_point(serialize_to_array_start:yb.DeletePlanPB)
14915
0
  ::google::protobuf::uint32 cached_has_bits = 0;
14916
0
  (void) cached_has_bits;
14917
14918
0
  cached_has_bits = _has_bits_[0];
14919
  // optional string delete_type = 1;
14920
0
  if (cached_has_bits & 0x00000001u) {
14921
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14922
0
      this->delete_type().data(), static_cast<int>(this->delete_type().length()),
14923
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14924
0
      "yb.DeletePlanPB.delete_type");
14925
0
    target =
14926
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14927
0
        1, this->delete_type(), target);
14928
0
  }
14929
14930
  // optional string scan_type = 2;
14931
0
  if (cached_has_bits & 0x00000002u) {
14932
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14933
0
      this->scan_type().data(), static_cast<int>(this->scan_type().length()),
14934
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14935
0
      "yb.DeletePlanPB.scan_type");
14936
0
    target =
14937
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14938
0
        2, this->scan_type(), target);
14939
0
  }
14940
14941
  // optional string key_conditions = 3;
14942
0
  if (cached_has_bits & 0x00000004u) {
14943
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14944
0
      this->key_conditions().data(), static_cast<int>(this->key_conditions().length()),
14945
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14946
0
      "yb.DeletePlanPB.key_conditions");
14947
0
    target =
14948
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14949
0
        3, this->key_conditions(), target);
14950
0
  }
14951
14952
  // optional string filter = 4;
14953
0
  if (cached_has_bits & 0x00000008u) {
14954
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
14955
0
      this->filter().data(), static_cast<int>(this->filter().length()),
14956
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
14957
0
      "yb.DeletePlanPB.filter");
14958
0
    target =
14959
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
14960
0
        4, this->filter(), target);
14961
0
  }
14962
14963
  // optional int32 output_width = 5;
14964
0
  if (cached_has_bits & 0x00000010u) {
14965
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->output_width(), target);
14966
0
  }
14967
14968
0
  if (_internal_metadata_.have_unknown_fields()) {
14969
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
14970
0
        _internal_metadata_.unknown_fields(), target);
14971
0
  }
14972
  // @@protoc_insertion_point(serialize_to_array_end:yb.DeletePlanPB)
14973
0
  return target;
14974
0
}
14975
14976
0
size_t DeletePlanPB::ByteSizeLong() const {
14977
// @@protoc_insertion_point(message_byte_size_start:yb.DeletePlanPB)
14978
0
  size_t total_size = 0;
14979
14980
0
  if (_internal_metadata_.have_unknown_fields()) {
14981
0
    total_size +=
14982
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
14983
0
        _internal_metadata_.unknown_fields());
14984
0
  }
14985
0
  if (_has_bits_[0 / 32] & 31u) {
14986
    // optional string delete_type = 1;
14987
0
    if (has_delete_type()) {
14988
0
      total_size += 1 +
14989
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14990
0
          this->delete_type());
14991
0
    }
14992
14993
    // optional string scan_type = 2;
14994
0
    if (has_scan_type()) {
14995
0
      total_size += 1 +
14996
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
14997
0
          this->scan_type());
14998
0
    }
14999
15000
    // optional string key_conditions = 3;
15001
0
    if (has_key_conditions()) {
15002
0
      total_size += 1 +
15003
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
15004
0
          this->key_conditions());
15005
0
    }
15006
15007
    // optional string filter = 4;
15008
0
    if (has_filter()) {
15009
0
      total_size += 1 +
15010
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
15011
0
          this->filter());
15012
0
    }
15013
15014
    // optional int32 output_width = 5;
15015
0
    if (has_output_width()) {
15016
0
      total_size += 1 +
15017
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
15018
0
          this->output_width());
15019
0
    }
15020
15021
0
  }
15022
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
15023
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
15024
0
  _cached_size_ = cached_size;
15025
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
15026
0
  return total_size;
15027
0
}
15028
15029
0
void DeletePlanPB::MergeFrom(const ::google::protobuf::Message& from) {
15030
// @@protoc_insertion_point(generalized_merge_from_start:yb.DeletePlanPB)
15031
0
  GOOGLE_DCHECK_NE(&from, this);
15032
0
  const DeletePlanPB* source =
15033
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeletePlanPB>(
15034
0
          &from);
15035
0
  if (source == NULL) {
15036
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.DeletePlanPB)
15037
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
15038
0
  } else {
15039
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.DeletePlanPB)
15040
0
    MergeFrom(*source);
15041
0
  }
15042
0
}
15043
15044
0
void DeletePlanPB::MergeFrom(const DeletePlanPB& from) {
15045
// @@protoc_insertion_point(class_specific_merge_from_start:yb.DeletePlanPB)
15046
0
  GOOGLE_DCHECK_NE(&from, this);
15047
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
15048
0
  ::google::protobuf::uint32 cached_has_bits = 0;
15049
0
  (void) cached_has_bits;
15050
15051
0
  cached_has_bits = from._has_bits_[0];
15052
0
  if (cached_has_bits & 31u) {
15053
0
    if (cached_has_bits & 0x00000001u) {
15054
0
      set_has_delete_type();
15055
0
      delete_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delete_type_);
15056
0
    }
15057
0
    if (cached_has_bits & 0x00000002u) {
15058
0
      set_has_scan_type();
15059
0
      scan_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.scan_type_);
15060
0
    }
15061
0
    if (cached_has_bits & 0x00000004u) {
15062
0
      set_has_key_conditions();
15063
0
      key_conditions_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_conditions_);
15064
0
    }
15065
0
    if (cached_has_bits & 0x00000008u) {
15066
0
      set_has_filter();
15067
0
      filter_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filter_);
15068
0
    }
15069
0
    if (cached_has_bits & 0x00000010u) {
15070
0
      output_width_ = from.output_width_;
15071
0
    }
15072
0
    _has_bits_[0] |= cached_has_bits;
15073
0
  }
15074
0
}
15075
15076
0
void DeletePlanPB::CopyFrom(const ::google::protobuf::Message& from) {
15077
// @@protoc_insertion_point(generalized_copy_from_start:yb.DeletePlanPB)
15078
0
  if (&from == this) return;
15079
0
  Clear();
15080
0
  MergeFrom(from);
15081
0
}
15082
15083
0
void DeletePlanPB::CopyFrom(const DeletePlanPB& from) {
15084
// @@protoc_insertion_point(class_specific_copy_from_start:yb.DeletePlanPB)
15085
0
  if (&from == this) return;
15086
0
  Clear();
15087
0
  MergeFrom(from);
15088
0
}
15089
15090
0
bool DeletePlanPB::IsInitialized() const {
15091
0
  return true;
15092
0
}
15093
15094
0
void DeletePlanPB::Swap(DeletePlanPB* other) {
15095
0
  if (other == this) return;
15096
0
  InternalSwap(other);
15097
0
}
15098
0
void DeletePlanPB::InternalSwap(DeletePlanPB* other) {
15099
0
  using std::swap;
15100
0
  delete_type_.Swap(&other->delete_type_);
15101
0
  scan_type_.Swap(&other->scan_type_);
15102
0
  key_conditions_.Swap(&other->key_conditions_);
15103
0
  filter_.Swap(&other->filter_);
15104
0
  swap(output_width_, other->output_width_);
15105
0
  swap(_has_bits_[0], other->_has_bits_[0]);
15106
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
15107
0
  swap(_cached_size_, other->_cached_size_);
15108
0
}
15109
15110
0
::google::protobuf::Metadata DeletePlanPB::GetMetadata() const {
15111
0
  protobuf_yb_2fcommon_2fcommon_2eproto::protobuf_AssignDescriptorsOnce();
15112
0
  return ::protobuf_yb_2fcommon_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages];
15113
0
}
15114
15115
15116
// @@protoc_insertion_point(namespace_scope)
15117
}  // namespace yb
15118
15119
// @@protoc_insertion_point(global_scope)