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/pgsql_protocol.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/common/pgsql_protocol.proto
3
4
#include "yb/common/pgsql_protocol.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 PgsqlBCallPBDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlBCallPB>
27
      _instance;
28
} _PgsqlBCallPB_default_instance_;
29
class PgsqlConditionPBDefaultTypeInternal {
30
 public:
31
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlConditionPB>
32
      _instance;
33
} _PgsqlConditionPB_default_instance_;
34
class PgsqlExpressionPBDefaultTypeInternal {
35
 public:
36
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlExpressionPB>
37
      _instance;
38
  const ::yb::QLValuePB* value_;
39
  ::google::protobuf::int32 column_id_;
40
  ::google::protobuf::int32 bind_id_;
41
  ::google::protobuf::int32 alias_id_;
42
  const ::yb::PgsqlBCallPB* bfcall_;
43
  const ::yb::PgsqlBCallPB* tscall_;
44
  const ::yb::PgsqlBCallPB* bocall_;
45
  const ::yb::PgsqlConditionPB* condition_;
46
} _PgsqlExpressionPB_default_instance_;
47
class PgsqlBatchArgumentPBDefaultTypeInternal {
48
 public:
49
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlBatchArgumentPB>
50
      _instance;
51
} _PgsqlBatchArgumentPB_default_instance_;
52
class PgsqlColumnRefsPBDefaultTypeInternal {
53
 public:
54
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlColumnRefsPB>
55
      _instance;
56
} _PgsqlColumnRefsPB_default_instance_;
57
class PgsqlColRefPBDefaultTypeInternal {
58
 public:
59
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlColRefPB>
60
      _instance;
61
} _PgsqlColRefPB_default_instance_;
62
class PgsqlColumnValuePBDefaultTypeInternal {
63
 public:
64
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlColumnValuePB>
65
      _instance;
66
} _PgsqlColumnValuePB_default_instance_;
67
class PgsqlRSColDescPBDefaultTypeInternal {
68
 public:
69
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlRSColDescPB>
70
      _instance;
71
} _PgsqlRSColDescPB_default_instance_;
72
class PgsqlRSRowDescPBDefaultTypeInternal {
73
 public:
74
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlRSRowDescPB>
75
      _instance;
76
} _PgsqlRSRowDescPB_default_instance_;
77
class PgsqlPartitionBoundDefaultTypeInternal {
78
 public:
79
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlPartitionBound>
80
      _instance;
81
} _PgsqlPartitionBound_default_instance_;
82
class PgsqlSamplingStatePBDefaultTypeInternal {
83
 public:
84
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlSamplingStatePB>
85
      _instance;
86
} _PgsqlSamplingStatePB_default_instance_;
87
class PgsqlWriteRequestPBDefaultTypeInternal {
88
 public:
89
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlWriteRequestPB>
90
      _instance;
91
} _PgsqlWriteRequestPB_default_instance_;
92
class PgsqlPagingStatePBDefaultTypeInternal {
93
 public:
94
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlPagingStatePB>
95
      _instance;
96
} _PgsqlPagingStatePB_default_instance_;
97
class PgsqlBackfillSpecPBDefaultTypeInternal {
98
 public:
99
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlBackfillSpecPB>
100
      _instance;
101
} _PgsqlBackfillSpecPB_default_instance_;
102
class PgsqlReadRequestPBDefaultTypeInternal {
103
 public:
104
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlReadRequestPB>
105
      _instance;
106
} _PgsqlReadRequestPB_default_instance_;
107
class PgsqlResponsePBDefaultTypeInternal {
108
 public:
109
  ::google::protobuf::internal::ExplicitlyConstructed<PgsqlResponsePB>
110
      _instance;
111
} _PgsqlResponsePB_default_instance_;
112
}  // namespace yb
113
namespace protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto {
114
17.1k
void InitDefaultsPgsqlBCallPBImpl() {
115
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
116
117
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
118
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
119
#else
120
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
121
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
122
17.1k
  protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
123
17.1k
  {
124
17.1k
    void* ptr = &::yb::_PgsqlBCallPB_default_instance_;
125
17.1k
    new (ptr) ::yb::PgsqlBCallPB();
126
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
127
17.1k
  }
128
17.1k
  {
129
17.1k
    void* ptr = &::yb::_PgsqlConditionPB_default_instance_;
130
17.1k
    new (ptr) ::yb::PgsqlConditionPB();
131
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
132
17.1k
  }
133
17.1k
  {
134
17.1k
    void* ptr = &::yb::_PgsqlExpressionPB_default_instance_;
135
17.1k
    new (ptr) ::yb::PgsqlExpressionPB();
136
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
137
17.1k
  }
138
17.1k
  ::yb::PgsqlBCallPB::InitAsDefaultInstance();
139
17.1k
  ::yb::PgsqlConditionPB::InitAsDefaultInstance();
140
17.1k
  ::yb::PgsqlExpressionPB::InitAsDefaultInstance();
141
17.1k
}
142
143
122M
void InitDefaultsPgsqlBCallPB() {
144
122M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
145
122M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBCallPBImpl);
146
122M
}
147
148
17.1k
void InitDefaultsPgsqlBatchArgumentPBImpl() {
149
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
150
151
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
152
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
153
#else
154
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
155
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
156
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
157
17.1k
  {
158
17.1k
    void* ptr = &::yb::_PgsqlBatchArgumentPB_default_instance_;
159
17.1k
    new (ptr) ::yb::PgsqlBatchArgumentPB();
160
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
161
17.1k
  }
162
17.1k
  ::yb::PgsqlBatchArgumentPB::InitAsDefaultInstance();
163
17.1k
}
164
165
1.20M
void InitDefaultsPgsqlBatchArgumentPB() {
166
1.20M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
167
1.20M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBatchArgumentPBImpl);
168
1.20M
}
169
170
17.1k
void InitDefaultsPgsqlColumnRefsPBImpl() {
171
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
172
173
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
174
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
175
#else
176
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
177
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
178
17.1k
  {
179
17.1k
    void* ptr = &::yb::_PgsqlColumnRefsPB_default_instance_;
180
17.1k
    new (ptr) ::yb::PgsqlColumnRefsPB();
181
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
182
17.1k
  }
183
17.1k
  ::yb::PgsqlColumnRefsPB::InitAsDefaultInstance();
184
17.1k
}
185
186
11.0M
void InitDefaultsPgsqlColumnRefsPB() {
187
11.0M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
188
11.0M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColumnRefsPBImpl);
189
11.0M
}
190
191
17.1k
void InitDefaultsPgsqlColRefPBImpl() {
192
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
193
194
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
195
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
196
#else
197
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
198
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
199
17.1k
  {
200
17.1k
    void* ptr = &::yb::_PgsqlColRefPB_default_instance_;
201
17.1k
    new (ptr) ::yb::PgsqlColRefPB();
202
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
203
17.1k
  }
204
17.1k
  ::yb::PgsqlColRefPB::InitAsDefaultInstance();
205
17.1k
}
206
207
33.4M
void InitDefaultsPgsqlColRefPB() {
208
33.4M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
209
33.4M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColRefPBImpl);
210
33.4M
}
211
212
17.1k
void InitDefaultsPgsqlColumnValuePBImpl() {
213
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
214
215
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
216
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
217
#else
218
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
219
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
220
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
221
17.1k
  {
222
17.1k
    void* ptr = &::yb::_PgsqlColumnValuePB_default_instance_;
223
17.1k
    new (ptr) ::yb::PgsqlColumnValuePB();
224
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
225
17.1k
  }
226
17.1k
  ::yb::PgsqlColumnValuePB::InitAsDefaultInstance();
227
17.1k
}
228
229
17.6M
void InitDefaultsPgsqlColumnValuePB() {
230
17.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
231
17.6M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColumnValuePBImpl);
232
17.6M
}
233
234
17.1k
void InitDefaultsPgsqlRSColDescPBImpl() {
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();
243
17.1k
  {
244
17.1k
    void* ptr = &::yb::_PgsqlRSColDescPB_default_instance_;
245
17.1k
    new (ptr) ::yb::PgsqlRSColDescPB();
246
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
247
17.1k
  }
248
17.1k
  ::yb::PgsqlRSColDescPB::InitAsDefaultInstance();
249
17.1k
}
250
251
34.2k
void InitDefaultsPgsqlRSColDescPB() {
252
34.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
253
34.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlRSColDescPBImpl);
254
34.2k
}
255
256
17.1k
void InitDefaultsPgsqlRSRowDescPBImpl() {
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_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSColDescPB();
265
17.1k
  {
266
17.1k
    void* ptr = &::yb::_PgsqlRSRowDescPB_default_instance_;
267
17.1k
    new (ptr) ::yb::PgsqlRSRowDescPB();
268
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
269
17.1k
  }
270
17.1k
  ::yb::PgsqlRSRowDescPB::InitAsDefaultInstance();
271
17.1k
}
272
273
51.4k
void InitDefaultsPgsqlRSRowDescPB() {
274
51.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
275
51.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlRSRowDescPBImpl);
276
51.4k
}
277
278
17.1k
void InitDefaultsPgsqlPartitionBoundImpl() {
279
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
280
281
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
282
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
283
#else
284
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
285
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
286
17.1k
  {
287
17.1k
    void* ptr = &::yb::_PgsqlPartitionBound_default_instance_;
288
17.1k
    new (ptr) ::yb::PgsqlPartitionBound();
289
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
290
17.1k
  }
291
17.1k
  ::yb::PgsqlPartitionBound::InitAsDefaultInstance();
292
17.1k
}
293
294
625k
void InitDefaultsPgsqlPartitionBound() {
295
625k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
296
625k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlPartitionBoundImpl);
297
625k
}
298
299
17.1k
void InitDefaultsPgsqlSamplingStatePBImpl() {
300
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
301
302
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
303
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
304
#else
305
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
306
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
307
17.1k
  {
308
17.1k
    void* ptr = &::yb::_PgsqlSamplingStatePB_default_instance_;
309
17.1k
    new (ptr) ::yb::PgsqlSamplingStatePB();
310
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
311
17.1k
  }
312
17.1k
  ::yb::PgsqlSamplingStatePB::InitAsDefaultInstance();
313
17.1k
}
314
315
52.1k
void InitDefaultsPgsqlSamplingStatePB() {
316
52.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
317
52.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlSamplingStatePBImpl);
318
52.1k
}
319
320
17.1k
void InitDefaultsPgsqlWriteRequestPBImpl() {
321
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
324
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
325
#else
326
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
327
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
328
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
329
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnValuePB();
330
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
331
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
332
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
333
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
334
17.1k
  {
335
17.1k
    void* ptr = &::yb::_PgsqlWriteRequestPB_default_instance_;
336
17.1k
    new (ptr) ::yb::PgsqlWriteRequestPB();
337
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
338
17.1k
  }
339
17.1k
  ::yb::PgsqlWriteRequestPB::InitAsDefaultInstance();
340
17.1k
}
341
342
6.25M
void InitDefaultsPgsqlWriteRequestPB() {
343
6.25M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
344
6.25M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlWriteRequestPBImpl);
345
6.25M
}
346
347
17.1k
void InitDefaultsPgsqlPagingStatePBImpl() {
348
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
349
350
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
351
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
352
#else
353
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
354
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
355
17.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
356
17.1k
  {
357
17.1k
    void* ptr = &::yb::_PgsqlPagingStatePB_default_instance_;
358
17.1k
    new (ptr) ::yb::PgsqlPagingStatePB();
359
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
360
17.1k
  }
361
17.1k
  ::yb::PgsqlPagingStatePB::InitAsDefaultInstance();
362
17.1k
}
363
364
326k
void InitDefaultsPgsqlPagingStatePB() {
365
326k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
366
326k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlPagingStatePBImpl);
367
326k
}
368
369
17.1k
void InitDefaultsPgsqlBackfillSpecPBImpl() {
370
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
371
372
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
373
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
374
#else
375
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
376
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
377
17.1k
  {
378
17.1k
    void* ptr = &::yb::_PgsqlBackfillSpecPB_default_instance_;
379
17.1k
    new (ptr) ::yb::PgsqlBackfillSpecPB();
380
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
381
17.1k
  }
382
17.1k
  ::yb::PgsqlBackfillSpecPB::InitAsDefaultInstance();
383
17.1k
}
384
385
18.9k
void InitDefaultsPgsqlBackfillSpecPB() {
386
18.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
387
18.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBackfillSpecPBImpl);
388
18.9k
}
389
390
17.1k
void InitDefaultsPgsqlReadRequestPBImpl() {
391
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
392
393
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
394
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
395
#else
396
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
397
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
398
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
399
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
400
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
401
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
402
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
403
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPartitionBound();
404
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
405
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
406
17.1k
  {
407
17.1k
    void* ptr = &::yb::_PgsqlReadRequestPB_default_instance_;
408
17.1k
    new (ptr) ::yb::PgsqlReadRequestPB();
409
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
410
17.1k
  }
411
17.1k
  ::yb::PgsqlReadRequestPB::InitAsDefaultInstance();
412
17.1k
}
413
414
5.80M
void InitDefaultsPgsqlReadRequestPB() {
415
5.80M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
416
5.80M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlReadRequestPBImpl);
417
5.80M
}
418
419
17.1k
void InitDefaultsPgsqlResponsePBImpl() {
420
17.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
421
422
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
423
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
424
#else
425
17.1k
  ::google::protobuf::internal::InitProtobufDefaults();
426
17.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
427
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
428
17.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
429
17.1k
  {
430
17.1k
    void* ptr = &::yb::_PgsqlResponsePB_default_instance_;
431
17.1k
    new (ptr) ::yb::PgsqlResponsePB();
432
17.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
433
17.1k
  }
434
17.1k
  ::yb::PgsqlResponsePB::InitAsDefaultInstance();
435
17.1k
}
436
437
26.1M
void InitDefaultsPgsqlResponsePB() {
438
26.1M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
439
26.1M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlResponsePBImpl);
440
26.1M
}
441
442
::google::protobuf::Metadata file_level_metadata[16];
443
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
444
445
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
446
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBCallPB, _has_bits_),
447
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBCallPB, _internal_metadata_),
448
  ~0u,  // no _extensions_
449
  ~0u,  // no _oneof_case_
450
  ~0u,  // no _weak_field_map_
451
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBCallPB, opcode_),
452
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBCallPB, operands_),
453
  0,
454
  ~0u,
455
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlConditionPB, _has_bits_),
456
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlConditionPB, _internal_metadata_),
457
  ~0u,  // no _extensions_
458
  ~0u,  // no _oneof_case_
459
  ~0u,  // no _weak_field_map_
460
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlConditionPB, op_),
461
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlConditionPB, operands_),
462
  0,
463
  ~0u,
464
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlExpressionPB, _has_bits_),
465
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlExpressionPB, _internal_metadata_),
466
  ~0u,  // no _extensions_
467
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlExpressionPB, _oneof_case_[0]),
468
  ~0u,  // no _weak_field_map_
469
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, value_),
470
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, column_id_),
471
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, bind_id_),
472
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, alias_id_),
473
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, bfcall_),
474
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, tscall_),
475
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, bocall_),
476
  offsetof(::yb::PgsqlExpressionPBDefaultTypeInternal, condition_),
477
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlExpressionPB, expr_),
478
  ~0u,
479
  ~0u,
480
  ~0u,
481
  ~0u,
482
  ~0u,
483
  ~0u,
484
  ~0u,
485
  ~0u,
486
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, _has_bits_),
487
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, _internal_metadata_),
488
  ~0u,  // no _extensions_
489
  ~0u,  // no _oneof_case_
490
  ~0u,  // no _weak_field_map_
491
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, order_),
492
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, ybctid_),
493
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, hash_code_),
494
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, max_hash_code_),
495
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, partition_column_values_),
496
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBatchArgumentPB, range_column_values_),
497
  1,
498
  0,
499
  2,
500
  3,
501
  ~0u,
502
  ~0u,
503
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnRefsPB, _has_bits_),
504
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnRefsPB, _internal_metadata_),
505
  ~0u,  // no _extensions_
506
  ~0u,  // no _oneof_case_
507
  ~0u,  // no _weak_field_map_
508
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnRefsPB, ids_),
509
  ~0u,
510
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, _has_bits_),
511
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, _internal_metadata_),
512
  ~0u,  // no _extensions_
513
  ~0u,  // no _oneof_case_
514
  ~0u,  // no _weak_field_map_
515
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, column_id_),
516
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, attno_),
517
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, typid_),
518
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, typmod_),
519
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColRefPB, collid_),
520
  0,
521
  1,
522
  2,
523
  3,
524
  4,
525
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnValuePB, _has_bits_),
526
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnValuePB, _internal_metadata_),
527
  ~0u,  // no _extensions_
528
  ~0u,  // no _oneof_case_
529
  ~0u,  // no _weak_field_map_
530
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnValuePB, column_id_),
531
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlColumnValuePB, expr_),
532
  1,
533
  0,
534
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSColDescPB, _has_bits_),
535
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSColDescPB, _internal_metadata_),
536
  ~0u,  // no _extensions_
537
  ~0u,  // no _oneof_case_
538
  ~0u,  // no _weak_field_map_
539
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSColDescPB, name_),
540
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSColDescPB, ql_type_),
541
  0,
542
  1,
543
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSRowDescPB, _has_bits_),
544
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSRowDescPB, _internal_metadata_),
545
  ~0u,  // no _extensions_
546
  ~0u,  // no _oneof_case_
547
  ~0u,  // no _weak_field_map_
548
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlRSRowDescPB, rscol_descs_),
549
  ~0u,
550
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPartitionBound, _has_bits_),
551
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPartitionBound, _internal_metadata_),
552
  ~0u,  // no _extensions_
553
  ~0u,  // no _oneof_case_
554
  ~0u,  // no _weak_field_map_
555
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPartitionBound, key_),
556
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPartitionBound, is_inclusive_),
557
  0,
558
  1,
559
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, _has_bits_),
560
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, _internal_metadata_),
561
  ~0u,  // no _extensions_
562
  ~0u,  // no _oneof_case_
563
  ~0u,  // no _weak_field_map_
564
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, targrows_),
565
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, numrows_),
566
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, samplerows_),
567
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, rowstoskip_),
568
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, rstate_w_),
569
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlSamplingStatePB, rand_state_),
570
  0,
571
  1,
572
  2,
573
  3,
574
  4,
575
  5,
576
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, _has_bits_),
577
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, _internal_metadata_),
578
  ~0u,  // no _extensions_
579
  ~0u,  // no _oneof_case_
580
  ~0u,  // no _weak_field_map_
581
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, client_),
582
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, stmt_id_),
583
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, stmt_type_),
584
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, table_id_),
585
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, schema_version_),
586
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, hash_code_),
587
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, partition_column_values_),
588
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, range_column_values_),
589
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, ybctid_column_value_),
590
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, column_values_),
591
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, batch_arguments_),
592
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, column_new_values_),
593
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, rsrow_desc_),
594
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, targets_),
595
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, where_expr_),
596
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, column_refs_),
597
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, ysql_catalog_version_),
598
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, is_ysql_catalog_change_),
599
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, is_backfill_),
600
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, is_delete_persist_needed_),
601
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, col_refs_),
602
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlWriteRequestPB, partition_key_),
603
  13,
604
  6,
605
  14,
606
  0,
607
  7,
608
  8,
609
  ~0u,
610
  ~0u,
611
  2,
612
  ~0u,
613
  ~0u,
614
  ~0u,
615
  3,
616
  ~0u,
617
  4,
618
  5,
619
  9,
620
  10,
621
  11,
622
  12,
623
  ~0u,
624
  1,
625
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, _has_bits_),
626
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, _internal_metadata_),
627
  ~0u,  // no _extensions_
628
  ~0u,  // no _oneof_case_
629
  ~0u,  // no _weak_field_map_
630
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, table_id_),
631
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, next_partition_key_),
632
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, next_row_key_),
633
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, total_num_rows_read_),
634
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, next_partition_index_),
635
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlPagingStatePB, read_time_),
636
  0,
637
  1,
638
  2,
639
  4,
640
  5,
641
  3,
642
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBackfillSpecPB, _has_bits_),
643
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBackfillSpecPB, _internal_metadata_),
644
  ~0u,  // no _extensions_
645
  ~0u,  // no _oneof_case_
646
  ~0u,  // no _weak_field_map_
647
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBackfillSpecPB, limit_),
648
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBackfillSpecPB, count_),
649
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlBackfillSpecPB, next_row_key_),
650
  2,
651
  1,
652
  0,
653
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, _has_bits_),
654
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, _internal_metadata_),
655
  ~0u,  // no _extensions_
656
  ~0u,  // no _oneof_case_
657
  ~0u,  // no _weak_field_map_
658
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, client_),
659
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, stmt_id_),
660
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, table_id_),
661
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, schema_version_),
662
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, hash_code_),
663
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, ybctid_column_value_),
664
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, partition_column_values_),
665
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, range_column_values_),
666
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, index_request_),
667
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, where_expr_),
668
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, condition_expr_),
669
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, batch_arguments_),
670
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, rsrow_desc_),
671
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, targets_),
672
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, column_refs_),
673
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, is_forward_scan_),
674
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, distinct_),
675
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, is_aggregate_),
676
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, limit_),
677
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, paging_state_),
678
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, return_paging_state_),
679
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, max_hash_code_),
680
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, ysql_catalog_version_),
681
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, row_mark_type_),
682
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, wait_policy_),
683
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, lower_bound_),
684
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, upper_bound_),
685
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, deprecated_max_partition_key_),
686
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, is_for_backfill_),
687
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, sampling_state_),
688
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, backfill_spec_),
689
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, where_clauses_),
690
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, col_refs_),
691
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlReadRequestPB, partition_key_),
692
  26,
693
  14,
694
  0,
695
  15,
696
  16,
697
  8,
698
  ~0u,
699
  ~0u,
700
  9,
701
  5,
702
  10,
703
  ~0u,
704
  4,
705
  ~0u,
706
  6,
707
  27,
708
  19,
709
  20,
710
  17,
711
  7,
712
  21,
713
  23,
714
  18,
715
  24,
716
  25,
717
  11,
718
  12,
719
  1,
720
  22,
721
  13,
722
  2,
723
  ~0u,
724
  ~0u,
725
  3,
726
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, _has_bits_),
727
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, _internal_metadata_),
728
  ~0u,  // no _extensions_
729
  ~0u,  // no _oneof_case_
730
  ~0u,  // no _weak_field_map_
731
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, status_),
732
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, skipped_),
733
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, error_message_),
734
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, rows_data_sidecar_),
735
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, paging_state_),
736
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, batch_arg_count_),
737
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, batch_orders_),
738
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, rows_affected_count_),
739
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, pg_error_code_),
740
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, txn_error_code_),
741
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, sampling_state_),
742
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, backfill_spec_),
743
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::PgsqlResponsePB, is_backfill_batch_done_),
744
  4,
745
  9,
746
  0,
747
  5,
748
  2,
749
  11,
750
  ~0u,
751
  7,
752
  6,
753
  8,
754
  3,
755
  1,
756
  10,
757
};
758
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
759
  { 0, 7, sizeof(::yb::PgsqlBCallPB)},
760
  { 9, 16, sizeof(::yb::PgsqlConditionPB)},
761
  { 18, 32, sizeof(::yb::PgsqlExpressionPB)},
762
  { 40, 51, sizeof(::yb::PgsqlBatchArgumentPB)},
763
  { 57, 63, sizeof(::yb::PgsqlColumnRefsPB)},
764
  { 64, 74, sizeof(::yb::PgsqlColRefPB)},
765
  { 79, 86, sizeof(::yb::PgsqlColumnValuePB)},
766
  { 88, 95, sizeof(::yb::PgsqlRSColDescPB)},
767
  { 97, 103, sizeof(::yb::PgsqlRSRowDescPB)},
768
  { 104, 111, sizeof(::yb::PgsqlPartitionBound)},
769
  { 113, 124, sizeof(::yb::PgsqlSamplingStatePB)},
770
  { 130, 157, sizeof(::yb::PgsqlWriteRequestPB)},
771
  { 179, 190, sizeof(::yb::PgsqlPagingStatePB)},
772
  { 196, 204, sizeof(::yb::PgsqlBackfillSpecPB)},
773
  { 207, 246, sizeof(::yb::PgsqlReadRequestPB)},
774
  { 280, 298, sizeof(::yb::PgsqlResponsePB)},
775
};
776
777
static ::google::protobuf::Message const * const file_default_instances[] = {
778
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlBCallPB_default_instance_),
779
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlConditionPB_default_instance_),
780
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlExpressionPB_default_instance_),
781
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlBatchArgumentPB_default_instance_),
782
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlColumnRefsPB_default_instance_),
783
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlColRefPB_default_instance_),
784
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlColumnValuePB_default_instance_),
785
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlRSColDescPB_default_instance_),
786
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlRSRowDescPB_default_instance_),
787
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlPartitionBound_default_instance_),
788
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlSamplingStatePB_default_instance_),
789
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlWriteRequestPB_default_instance_),
790
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlPagingStatePB_default_instance_),
791
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlBackfillSpecPB_default_instance_),
792
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlReadRequestPB_default_instance_),
793
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_PgsqlResponsePB_default_instance_),
794
};
795
796
1.05k
void protobuf_AssignDescriptors() {
797
1.05k
  AddDescriptors();
798
1.05k
  ::google::protobuf::MessageFactory* factory = NULL;
799
1.05k
  AssignDescriptors(
800
1.05k
      "yb/common/pgsql_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory,
801
1.05k
      file_level_metadata, file_level_enum_descriptors, NULL);
802
1.05k
}
803
804
81.0M
void protobuf_AssignDescriptorsOnce() {
805
81.0M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
806
81.0M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
807
81.0M
}
808
809
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
810
0
void protobuf_RegisterTypes(const ::std::string&) {
811
0
  protobuf_AssignDescriptorsOnce();
812
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 16);
813
0
}
814
815
17.1k
void AddDescriptorsImpl() {
816
17.1k
  InitDefaults();
817
17.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
818
17.1k
      "\n\036yb/common/pgsql_protocol.proto\022\002yb\032\026yb"
819
17.1k
      "/common/common.proto\032\034yb/common/common_t"
820
17.1k
      "ypes.proto\032\033yb/common/transaction.proto\032"
821
17.1k
      "\025yb/common/value.proto\"G\n\014PgsqlBCallPB\022\016"
822
17.1k
      "\n\006opcode\030\001 \001(\005\022\'\n\010operands\030\002 \003(\0132\025.yb.Pg"
823
17.1k
      "sqlExpressionPB\"W\n\020PgsqlConditionPB\022\032\n\002o"
824
17.1k
      "p\030\001 \001(\0162\016.yb.QLOperator\022\'\n\010operands\030\002 \003("
825
17.1k
      "\0132\025.yb.PgsqlExpressionPB\"\216\002\n\021PgsqlExpres"
826
17.1k
      "sionPB\022\036\n\005value\030\001 \001(\0132\r.yb.QLValuePBH\000\022\023"
827
17.1k
      "\n\tcolumn_id\030\002 \001(\005H\000\022\021\n\007bind_id\030\003 \001(\005H\000\022\022"
828
17.1k
      "\n\010alias_id\030\004 \001(\005H\000\022\"\n\006bfcall\030\005 \001(\0132\020.yb."
829
17.1k
      "PgsqlBCallPBH\000\022\"\n\006tscall\030\006 \001(\0132\020.yb.Pgsq"
830
17.1k
      "lBCallPBH\000\022\"\n\006bocall\030\007 \001(\0132\020.yb.PgsqlBCa"
831
17.1k
      "llPBH\000\022)\n\tcondition\030\010 \001(\0132\024.yb.PgsqlCond"
832
17.1k
      "itionPBH\000B\006\n\004expr\"\342\001\n\024PgsqlBatchArgument"
833
17.1k
      "PB\022\r\n\005order\030\001 \001(\003\022%\n\006ybctid\030\002 \001(\0132\025.yb.P"
834
17.1k
      "gsqlExpressionPB\022\021\n\thash_code\030\003 \001(\r\022\025\n\rm"
835
17.1k
      "ax_hash_code\030\004 \001(\r\0226\n\027partition_column_v"
836
17.1k
      "alues\030\005 \003(\0132\025.yb.PgsqlExpressionPB\0222\n\023ra"
837
17.1k
      "nge_column_values\030\006 \003(\0132\025.yb.PgsqlExpres"
838
17.1k
      "sionPB\" \n\021PgsqlColumnRefsPB\022\013\n\003ids\030\001 \003(\005"
839
17.1k
      "\"`\n\rPgsqlColRefPB\022\021\n\tcolumn_id\030\001 \001(\005\022\r\n\005"
840
17.1k
      "attno\030\002 \001(\005\022\r\n\005typid\030\003 \001(\005\022\016\n\006typmod\030\004 \001"
841
17.1k
      "(\005\022\016\n\006collid\030\005 \001(\005\"L\n\022PgsqlColumnValuePB"
842
17.1k
      "\022\021\n\tcolumn_id\030\001 \001(\005\022#\n\004expr\030\002 \001(\0132\025.yb.P"
843
17.1k
      "gsqlExpressionPB\"\?\n\020PgsqlRSColDescPB\022\014\n\004"
844
17.1k
      "name\030\001 \001(\t\022\035\n\007ql_type\030\002 \001(\0132\014.yb.QLTypeP"
845
17.1k
      "B\"=\n\020PgsqlRSRowDescPB\022)\n\013rscol_descs\030\001 \003"
846
17.1k
      "(\0132\024.yb.PgsqlRSColDescPB\"8\n\023PgsqlPartiti"
847
17.1k
      "onBound\022\013\n\003key\030\001 \001(\014\022\024\n\014is_inclusive\030\002 \001"
848
17.1k
      "(\010\"\207\001\n\024PgsqlSamplingStatePB\022\020\n\010targrows\030"
849
17.1k
      "\001 \001(\005\022\017\n\007numrows\030\002 \001(\005\022\022\n\nsamplerows\030\003 \001"
850
17.1k
      "(\001\022\022\n\nrowstoskip\030\004 \001(\001\022\020\n\010rstate_w\030\005 \001(\001"
851
17.1k
      "\022\022\n\nrand_state\030\006 \001(\004\"\326\007\n\023PgsqlWriteReque"
852
17.1k
      "stPB\022\034\n\006client\030\001 \001(\0162\014.yb.QLClient\022\017\n\007st"
853
17.1k
      "mt_id\030\002 \001(\004\0228\n\tstmt_type\030\003 \001(\0162%.yb.Pgsq"
854
17.1k
      "lWriteRequestPB.PgsqlStmtType\022\020\n\010table_i"
855
17.1k
      "d\030\004 \001(\014\022\026\n\016schema_version\030\005 \001(\r\022\021\n\thash_"
856
17.1k
      "code\030\006 \001(\r\0226\n\027partition_column_values\030\007 "
857
17.1k
      "\003(\0132\025.yb.PgsqlExpressionPB\0222\n\023range_colu"
858
17.1k
      "mn_values\030\010 \003(\0132\025.yb.PgsqlExpressionPB\0222"
859
17.1k
      "\n\023ybctid_column_value\030\t \001(\0132\025.yb.PgsqlEx"
860
17.1k
      "pressionPB\022-\n\rcolumn_values\030\n \003(\0132\026.yb.P"
861
17.1k
      "gsqlColumnValuePB\0221\n\017batch_arguments\030\022 \003"
862
17.1k
      "(\0132\030.yb.PgsqlBatchArgumentPB\0221\n\021column_n"
863
17.1k
      "ew_values\030\013 \003(\0132\026.yb.PgsqlColumnValuePB\022"
864
17.1k
      "(\n\nrsrow_desc\030\014 \001(\0132\024.yb.PgsqlRSRowDescP"
865
17.1k
      "B\022&\n\007targets\030\r \003(\0132\025.yb.PgsqlExpressionP"
866
17.1k
      "B\022)\n\nwhere_expr\030\016 \001(\0132\025.yb.PgsqlExpressi"
867
17.1k
      "onPB\022*\n\013column_refs\030\017 \001(\0132\025.yb.PgsqlColu"
868
17.1k
      "mnRefsPB\022\034\n\024ysql_catalog_version\030\020 \001(\004\022%"
869
17.1k
      "\n\026is_ysql_catalog_change\030\021 \001(\010:\005false\022\032\n"
870
17.1k
      "\013is_backfill\030\023 \001(\010:\005false\022\'\n\030is_delete_p"
871
17.1k
      "ersist_needed\030\024 \001(\010:\005false\022#\n\010col_refs\030\025"
872
17.1k
      " \003(\0132\021.yb.PgsqlColRefPB\022\025\n\rpartition_key"
873
17.1k
      "\030\026 \001(\t\"u\n\rPgsqlStmtType\022\020\n\014PGSQL_INSERT\020"
874
17.1k
      "\001\022\020\n\014PGSQL_UPDATE\020\002\022\020\n\014PGSQL_DELETE\020\003\022\020\n"
875
17.1k
      "\014PGSQL_UPSERT\020\004\022\034\n\030PGSQL_TRUNCATE_COLOCA"
876
17.1k
      "TED\020\005\"\274\001\n\022PgsqlPagingStatePB\022\020\n\010table_id"
877
17.1k
      "\030\001 \001(\014\022\032\n\022next_partition_key\030\002 \001(\014\022\024\n\014ne"
878
17.1k
      "xt_row_key\030\003 \001(\014\022\033\n\023total_num_rows_read\030"
879
17.1k
      "\004 \001(\004\022\034\n\024next_partition_index\030\005 \001(\004\022\'\n\tr"
880
17.1k
      "ead_time\030\006 \001(\0132\024.yb.ReadHybridTimePB\"P\n\023"
881
17.1k
      "PgsqlBackfillSpecPB\022\021\n\005limit\030\001 \001(\003:\002-1\022\020"
882
17.1k
      "\n\005count\030\002 \001(\003:\0010\022\024\n\014next_row_key\030\003 \001(\014\"\371"
883
17.1k
      "\t\n\022PgsqlReadRequestPB\022\034\n\006client\030\001 \001(\0162\014."
884
17.1k
      "yb.QLClient\022\017\n\007stmt_id\030\002 \001(\004\022\020\n\010table_id"
885
17.1k
      "\030\023 \001(\014\022\026\n\016schema_version\030\003 \001(\r\022\021\n\thash_c"
886
17.1k
      "ode\030\004 \001(\r\0222\n\023ybctid_column_value\030\024 \001(\0132\025"
887
17.1k
      ".yb.PgsqlExpressionPB\0226\n\027partition_colum"
888
17.1k
      "n_values\030\005 \003(\0132\025.yb.PgsqlExpressionPB\0222\n"
889
17.1k
      "\023range_column_values\030\022 \003(\0132\025.yb.PgsqlExp"
890
17.1k
      "ressionPB\022-\n\rindex_request\030\025 \001(\0132\026.yb.Pg"
891
17.1k
      "sqlReadRequestPB\022)\n\nwhere_expr\030\010 \001(\0132\025.y"
892
17.1k
      "b.PgsqlExpressionPB\022-\n\016condition_expr\030\026 "
893
17.1k
      "\001(\0132\025.yb.PgsqlExpressionPB\0221\n\017batch_argu"
894
17.1k
      "ments\030\030 \003(\0132\030.yb.PgsqlBatchArgumentPB\022(\n"
895
17.1k
      "\nrsrow_desc\030\006 \001(\0132\024.yb.PgsqlRSRowDescPB\022"
896
17.1k
      "&\n\007targets\030\007 \003(\0132\025.yb.PgsqlExpressionPB\022"
897
17.1k
      "*\n\013column_refs\030\t \001(\0132\025.yb.PgsqlColumnRef"
898
17.1k
      "sPB\022\035\n\017is_forward_scan\030\n \001(\010:\004true\022\027\n\010di"
899
17.1k
      "stinct\030\013 \001(\010:\005false\022\033\n\014is_aggregate\030\014 \001("
900
17.1k
      "\010:\005false\022\r\n\005limit\030\r \001(\004\022,\n\014paging_state\030"
901
17.1k
      "\016 \001(\0132\026.yb.PgsqlPagingStatePB\022\"\n\023return_"
902
17.1k
      "paging_state\030\017 \001(\010:\005false\022\025\n\rmax_hash_co"
903
17.1k
      "de\030\021 \001(\r\022\034\n\024ysql_catalog_version\030\020 \001(\004\022&"
904
17.1k
      "\n\rrow_mark_type\030\027 \001(\0162\017.yb.RowMarkType\022/"
905
17.1k
      "\n\013wait_policy\030  \001(\0162\016.yb.WaitPolicy:\nWAI"
906
17.1k
      "T_ERROR\022,\n\013lower_bound\030\033 \001(\0132\027.yb.PgsqlP"
907
17.1k
      "artitionBound\022,\n\013upper_bound\030\034 \001(\0132\027.yb."
908
17.1k
      "PgsqlPartitionBound\022$\n\034DEPRECATED_max_pa"
909
17.1k
      "rtition_key\030\031 \001(\014\022\036\n\017is_for_backfill\030\035 \001"
910
17.1k
      "(\010:\005false\0220\n\016sampling_state\030\036 \001(\0132\030.yb.P"
911
17.1k
      "gsqlSamplingStatePB\022\025\n\rbackfill_spec\030\037 \001"
912
17.1k
      "(\014\022,\n\rwhere_clauses\030! \003(\0132\025.yb.PgsqlExpr"
913
17.1k
      "essionPB\022#\n\010col_refs\030\" \003(\0132\021.yb.PgsqlCol"
914
17.1k
      "RefPB\022\025\n\rpartition_key\030# \001(\014J\004\010\032\020\033\"\213\005\n\017P"
915
17.1k
      "gsqlResponsePB\022B\n\006status\030\001 \001(\0162!.yb.Pgsq"
916
17.1k
      "lResponsePB.RequestStatus:\017PGSQL_STATUS_"
917
17.1k
      "OK\022\017\n\007skipped\030\006 \001(\010\022\025\n\rerror_message\030\002 \001"
918
17.1k
      "(\t\022\031\n\021rows_data_sidecar\030\004 \001(\005\022,\n\014paging_"
919
17.1k
      "state\030\005 \001(\0132\026.yb.PgsqlPagingStatePB\022\032\n\017b"
920
17.1k
      "atch_arg_count\030\n \001(\003:\0011\022\024\n\014batch_orders\030"
921
17.1k
      "\014 \003(\003\022\033\n\023rows_affected_count\030\007 \001(\005\022\025\n\rpg"
922
17.1k
      "_error_code\030\010 \001(\004\022\026\n\016txn_error_code\030\t \001("
923
17.1k
      "\r\0220\n\016sampling_state\030\013 \001(\0132\030.yb.PgsqlSamp"
924
17.1k
      "lingStatePB\022\025\n\rbackfill_spec\030\r \001(\014\022\036\n\026is"
925
17.1k
      "_backfill_batch_done\030\016 \001(\010\"\333\001\n\rRequestSt"
926
17.1k
      "atus\022\023\n\017PGSQL_STATUS_OK\020\000\022(\n$PGSQL_STATU"
927
17.1k
      "S_SCHEMA_VERSION_MISMATCH\020\001\022\036\n\032PGSQL_STA"
928
17.1k
      "TUS_RUNTIME_ERROR\020\002\022\034\n\030PGSQL_STATUS_USAG"
929
17.1k
      "E_ERROR\020\003\022\'\n#PGSQL_STATUS_RESTART_REQUIR"
930
17.1k
      "ED_ERROR\020\004\022$\n PGSQL_STATUS_DUPLICATE_KEY"
931
17.1k
      "_ERROR\020\005B\010\n\006org.yb"
932
17.1k
  };
933
17.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
934
17.1k
      descriptor, 4538);
935
17.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
936
17.1k
    "yb/common/pgsql_protocol.proto", &protobuf_RegisterTypes);
937
17.1k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
938
17.1k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
939
17.1k
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors();
940
17.1k
  ::protobuf_yb_2fcommon_2fvalue_2eproto::AddDescriptors();
941
17.1k
}
942
943
47.7k
void AddDescriptors() {
944
47.7k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
945
47.7k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
946
47.7k
}
947
// Force AddDescriptors() to be called at dynamic initialization time.
948
struct StaticDescriptorInitializer {
949
17.1k
  StaticDescriptorInitializer() {
950
17.1k
    AddDescriptors();
951
17.1k
  }
952
} static_descriptor_initializer;
953
}  // namespace protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto
954
namespace yb {
955
0
const ::google::protobuf::EnumDescriptor* PgsqlWriteRequestPB_PgsqlStmtType_descriptor() {
956
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
957
0
  return protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_enum_descriptors[0];
958
0
}
959
9.53M
bool PgsqlWriteRequestPB_PgsqlStmtType_IsValid(int value) {
960
9.53M
  switch (value) {
961
6.28M
    case 1:
962
7.00M
    case 2:
963
7.57M
    case 3:
964
9.53M
    case 4:
965
9.53M
    case 5:
966
9.53M
      return true;
967
0
    default:
968
0
      return false;
969
9.53M
  }
970
9.53M
}
971
972
#if !defined(_MSC_VER) || _MSC_VER >= 1900
973
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PGSQL_INSERT;
974
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PGSQL_UPDATE;
975
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PGSQL_DELETE;
976
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PGSQL_UPSERT;
977
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PGSQL_TRUNCATE_COLOCATED;
978
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PgsqlStmtType_MIN;
979
const PgsqlWriteRequestPB_PgsqlStmtType PgsqlWriteRequestPB::PgsqlStmtType_MAX;
980
const int PgsqlWriteRequestPB::PgsqlStmtType_ARRAYSIZE;
981
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
982
0
const ::google::protobuf::EnumDescriptor* PgsqlResponsePB_RequestStatus_descriptor() {
983
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
984
0
  return protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_enum_descriptors[1];
985
0
}
986
16.0M
bool PgsqlResponsePB_RequestStatus_IsValid(int value) {
987
16.0M
  switch (value) {
988
15.6M
    case 0:
989
15.6M
    case 1:
990
15.6M
    case 2:
991
15.6M
    case 3:
992
16.0M
    case 4:
993
16.0M
    case 5:
994
16.0M
      return true;
995
0
    default:
996
0
      return false;
997
16.0M
  }
998
16.0M
}
999
1000
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1001
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_OK;
1002
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_SCHEMA_VERSION_MISMATCH;
1003
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_RUNTIME_ERROR;
1004
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_USAGE_ERROR;
1005
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_RESTART_REQUIRED_ERROR;
1006
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::PGSQL_STATUS_DUPLICATE_KEY_ERROR;
1007
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::RequestStatus_MIN;
1008
const PgsqlResponsePB_RequestStatus PgsqlResponsePB::RequestStatus_MAX;
1009
const int PgsqlResponsePB::RequestStatus_ARRAYSIZE;
1010
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1011
1012
// ===================================================================
1013
1014
17.1k
void PgsqlBCallPB::InitAsDefaultInstance() {
1015
17.1k
}
1016
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1017
const int PgsqlBCallPB::kOpcodeFieldNumber;
1018
const int PgsqlBCallPB::kOperandsFieldNumber;
1019
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1020
1021
PgsqlBCallPB::PgsqlBCallPB()
1022
39.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1023
22.6k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1024
22.6k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1025
22.6k
  }
1026
39.8k
  SharedCtor();
1027
  // @@protoc_insertion_point(constructor:yb.PgsqlBCallPB)
1028
39.8k
}
1029
PgsqlBCallPB::PgsqlBCallPB(const PgsqlBCallPB& from)
1030
  : ::google::protobuf::Message(),
1031
      _internal_metadata_(NULL),
1032
      _has_bits_(from._has_bits_),
1033
      _cached_size_(0),
1034
0
      operands_(from.operands_) {
1035
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1036
0
  opcode_ = from.opcode_;
1037
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlBCallPB)
1038
0
}
1039
1040
39.8k
void PgsqlBCallPB::SharedCtor() {
1041
39.8k
  _cached_size_ = 0;
1042
39.8k
  opcode_ = 0;
1043
39.8k
}
1044
1045
22.6k
PgsqlBCallPB::~PgsqlBCallPB() {
1046
  // @@protoc_insertion_point(destructor:yb.PgsqlBCallPB)
1047
22.6k
  SharedDtor();
1048
22.6k
}
1049
1050
22.6k
void PgsqlBCallPB::SharedDtor() {
1051
22.6k
}
1052
1053
0
void PgsqlBCallPB::SetCachedSize(int size) const {
1054
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1055
0
  _cached_size_ = size;
1056
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1057
0
}
1058
0
const ::google::protobuf::Descriptor* PgsqlBCallPB::descriptor() {
1059
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1060
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1061
0
}
1062
1063
0
const PgsqlBCallPB& PgsqlBCallPB::default_instance() {
1064
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1065
0
  return *internal_default_instance();
1066
0
}
1067
1068
0
PgsqlBCallPB* PgsqlBCallPB::New(::google::protobuf::Arena* arena) const {
1069
0
  PgsqlBCallPB* n = new PgsqlBCallPB;
1070
0
  if (arena != NULL) {
1071
0
    arena->Own(n);
1072
0
  }
1073
0
  return n;
1074
0
}
1075
1076
0
void PgsqlBCallPB::Clear() {
1077
// @@protoc_insertion_point(message_clear_start:yb.PgsqlBCallPB)
1078
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1079
  // Prevent compiler warnings about cached_has_bits being unused
1080
0
  (void) cached_has_bits;
1081
1082
0
  operands_.Clear();
1083
0
  opcode_ = 0;
1084
0
  _has_bits_.Clear();
1085
0
  _internal_metadata_.Clear();
1086
0
}
1087
1088
bool PgsqlBCallPB::MergePartialFromCodedStream(
1089
14.7k
    ::google::protobuf::io::CodedInputStream* input) {
1090
29.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1091
14.7k
  ::google::protobuf::uint32 tag;
1092
  // @@protoc_insertion_point(parse_start:yb.PgsqlBCallPB)
1093
44.2k
  for (;;) {
1094
44.2k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1095
44.2k
    tag = p.first;
1096
44.2k
    if (!p.second) goto handle_unusual;
1097
29.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1098
      // optional int32 opcode = 1;
1099
14.7k
      case 1: {
1100
14.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1101
14.7k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1102
14.7k
          set_has_opcode();
1103
14.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1104
14.7k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1105
14.7k
                 input, &opcode_)));
1106
0
        } else {
1107
0
          goto handle_unusual;
1108
0
        }
1109
14.7k
        break;
1110
14.7k
      }
1111
1112
      // repeated .yb.PgsqlExpressionPB operands = 2;
1113
14.7k
      case 2: {
1114
14.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1115
14.7k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1116
14.7k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
1117
18.4E
        } else {
1118
18.4E
          goto handle_unusual;
1119
18.4E
        }
1120
14.7k
        break;
1121
14.7k
      }
1122
1123
0
      default: {
1124
14.7k
      handle_unusual:
1125
14.7k
        if (tag == 0) {
1126
14.7k
          goto success;
1127
14.7k
        }
1128
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1129
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1130
18.4E
        break;
1131
18.4E
      }
1132
29.4k
    }
1133
29.4k
  }
1134
14.7k
success:
1135
  // @@protoc_insertion_point(parse_success:yb.PgsqlBCallPB)
1136
14.7k
  return true;
1137
0
failure:
1138
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBCallPB)
1139
0
  return false;
1140
14.7k
#undef DO_
1141
14.7k
}
1142
1143
void PgsqlBCallPB::SerializeWithCachedSizes(
1144
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1145
  // @@protoc_insertion_point(serialize_start:yb.PgsqlBCallPB)
1146
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1147
0
  (void) cached_has_bits;
1148
1149
0
  cached_has_bits = _has_bits_[0];
1150
  // optional int32 opcode = 1;
1151
0
  if (cached_has_bits & 0x00000001u) {
1152
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->opcode(), output);
1153
0
  }
1154
1155
  // repeated .yb.PgsqlExpressionPB operands = 2;
1156
0
  for (unsigned int i = 0,
1157
0
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
1158
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1159
0
      2, this->operands(static_cast<int>(i)), output);
1160
0
  }
1161
1162
0
  if (_internal_metadata_.have_unknown_fields()) {
1163
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1164
0
        _internal_metadata_.unknown_fields(), output);
1165
0
  }
1166
  // @@protoc_insertion_point(serialize_end:yb.PgsqlBCallPB)
1167
0
}
1168
1169
::google::protobuf::uint8* PgsqlBCallPB::InternalSerializeWithCachedSizesToArray(
1170
14.7k
    bool deterministic, ::google::protobuf::uint8* target) const {
1171
14.7k
  (void)deterministic; // Unused
1172
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBCallPB)
1173
14.7k
  ::google::protobuf::uint32 cached_has_bits = 0;
1174
14.7k
  (void) cached_has_bits;
1175
1176
14.7k
  cached_has_bits = _has_bits_[0];
1177
  // optional int32 opcode = 1;
1178
14.7k
  if (cached_has_bits & 0x00000001u) {
1179
14.7k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->opcode(), target);
1180
14.7k
  }
1181
1182
  // repeated .yb.PgsqlExpressionPB operands = 2;
1183
14.7k
  for (unsigned int i = 0,
1184
29.5k
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
1185
14.7k
    target = ::google::protobuf::internal::WireFormatLite::
1186
14.7k
      InternalWriteMessageToArray(
1187
14.7k
        2, this->operands(static_cast<int>(i)), deterministic, target);
1188
14.7k
  }
1189
1190
14.7k
  if (_internal_metadata_.have_unknown_fields()) {
1191
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1192
0
        _internal_metadata_.unknown_fields(), target);
1193
0
  }
1194
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlBCallPB)
1195
14.7k
  return target;
1196
14.7k
}
1197
1198
29.5k
size_t PgsqlBCallPB::ByteSizeLong() const {
1199
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBCallPB)
1200
29.5k
  size_t total_size = 0;
1201
1202
29.5k
  if (_internal_metadata_.have_unknown_fields()) {
1203
0
    total_size +=
1204
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1205
0
        _internal_metadata_.unknown_fields());
1206
0
  }
1207
  // repeated .yb.PgsqlExpressionPB operands = 2;
1208
29.5k
  {
1209
29.5k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
1210
29.5k
    total_size += 1UL * count;
1211
59.0k
    for (unsigned int i = 0; i < count; i++) {
1212
29.5k
      total_size +=
1213
29.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1214
29.5k
          this->operands(static_cast<int>(i)));
1215
29.5k
    }
1216
29.5k
  }
1217
1218
  // optional int32 opcode = 1;
1219
29.5k
  if (has_opcode()) {
1220
29.5k
    total_size += 1 +
1221
29.5k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
1222
29.5k
        this->opcode());
1223
29.5k
  }
1224
1225
29.5k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1226
29.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1227
29.5k
  _cached_size_ = cached_size;
1228
29.5k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1229
29.5k
  return total_size;
1230
29.5k
}
1231
1232
0
void PgsqlBCallPB::MergeFrom(const ::google::protobuf::Message& from) {
1233
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlBCallPB)
1234
0
  GOOGLE_DCHECK_NE(&from, this);
1235
0
  const PgsqlBCallPB* source =
1236
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlBCallPB>(
1237
0
          &from);
1238
0
  if (source == NULL) {
1239
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlBCallPB)
1240
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1241
0
  } else {
1242
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlBCallPB)
1243
0
    MergeFrom(*source);
1244
0
  }
1245
0
}
1246
1247
1.93k
void PgsqlBCallPB::MergeFrom(const PgsqlBCallPB& from) {
1248
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlBCallPB)
1249
1.93k
  GOOGLE_DCHECK_NE(&from, this);
1250
1.93k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1251
1.93k
  ::google::protobuf::uint32 cached_has_bits = 0;
1252
1.93k
  (void) cached_has_bits;
1253
1254
1.93k
  operands_.MergeFrom(from.operands_);
1255
1.93k
  if (from.has_opcode()) {
1256
1.93k
    set_opcode(from.opcode());
1257
1.93k
  }
1258
1.93k
}
1259
1260
0
void PgsqlBCallPB::CopyFrom(const ::google::protobuf::Message& from) {
1261
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlBCallPB)
1262
0
  if (&from == this) return;
1263
0
  Clear();
1264
0
  MergeFrom(from);
1265
0
}
1266
1267
0
void PgsqlBCallPB::CopyFrom(const PgsqlBCallPB& from) {
1268
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlBCallPB)
1269
0
  if (&from == this) return;
1270
0
  Clear();
1271
0
  MergeFrom(from);
1272
0
}
1273
1274
0
bool PgsqlBCallPB::IsInitialized() const {
1275
0
  return true;
1276
0
}
1277
1278
0
void PgsqlBCallPB::Swap(PgsqlBCallPB* other) {
1279
0
  if (other == this) return;
1280
0
  InternalSwap(other);
1281
0
}
1282
0
void PgsqlBCallPB::InternalSwap(PgsqlBCallPB* other) {
1283
0
  using std::swap;
1284
0
  operands_.InternalSwap(&other->operands_);
1285
0
  swap(opcode_, other->opcode_);
1286
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1287
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1288
0
  swap(_cached_size_, other->_cached_size_);
1289
0
}
1290
1291
14.7k
::google::protobuf::Metadata PgsqlBCallPB::GetMetadata() const {
1292
14.7k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1293
14.7k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1294
14.7k
}
1295
1296
1297
// ===================================================================
1298
1299
17.1k
void PgsqlConditionPB::InitAsDefaultInstance() {
1300
17.1k
}
1301
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1302
const int PgsqlConditionPB::kOpFieldNumber;
1303
const int PgsqlConditionPB::kOperandsFieldNumber;
1304
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1305
1306
PgsqlConditionPB::PgsqlConditionPB()
1307
2.78M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1308
2.76M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1309
2.76M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1310
2.76M
  }
1311
2.78M
  SharedCtor();
1312
  // @@protoc_insertion_point(constructor:yb.PgsqlConditionPB)
1313
2.78M
}
1314
PgsqlConditionPB::PgsqlConditionPB(const PgsqlConditionPB& from)
1315
  : ::google::protobuf::Message(),
1316
      _internal_metadata_(NULL),
1317
      _has_bits_(from._has_bits_),
1318
      _cached_size_(0),
1319
0
      operands_(from.operands_) {
1320
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1321
0
  op_ = from.op_;
1322
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlConditionPB)
1323
0
}
1324
1325
2.78M
void PgsqlConditionPB::SharedCtor() {
1326
2.78M
  _cached_size_ = 0;
1327
2.78M
  op_ = 0;
1328
2.78M
}
1329
1330
2.76M
PgsqlConditionPB::~PgsqlConditionPB() {
1331
  // @@protoc_insertion_point(destructor:yb.PgsqlConditionPB)
1332
2.76M
  SharedDtor();
1333
2.76M
}
1334
1335
2.76M
void PgsqlConditionPB::SharedDtor() {
1336
2.76M
}
1337
1338
0
void PgsqlConditionPB::SetCachedSize(int size) const {
1339
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1340
0
  _cached_size_ = size;
1341
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1342
0
}
1343
0
const ::google::protobuf::Descriptor* PgsqlConditionPB::descriptor() {
1344
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1345
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1346
0
}
1347
1348
0
const PgsqlConditionPB& PgsqlConditionPB::default_instance() {
1349
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1350
0
  return *internal_default_instance();
1351
0
}
1352
1353
0
PgsqlConditionPB* PgsqlConditionPB::New(::google::protobuf::Arena* arena) const {
1354
0
  PgsqlConditionPB* n = new PgsqlConditionPB;
1355
0
  if (arena != NULL) {
1356
0
    arena->Own(n);
1357
0
  }
1358
0
  return n;
1359
0
}
1360
1361
0
void PgsqlConditionPB::Clear() {
1362
// @@protoc_insertion_point(message_clear_start:yb.PgsqlConditionPB)
1363
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1364
  // Prevent compiler warnings about cached_has_bits being unused
1365
0
  (void) cached_has_bits;
1366
1367
0
  operands_.Clear();
1368
0
  op_ = 0;
1369
0
  _has_bits_.Clear();
1370
0
  _internal_metadata_.Clear();
1371
0
}
1372
1373
bool PgsqlConditionPB::MergePartialFromCodedStream(
1374
10.6k
    ::google::protobuf::io::CodedInputStream* input) {
1375
26.8k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1376
10.6k
  ::google::protobuf::uint32 tag;
1377
  // @@protoc_insertion_point(parse_start:yb.PgsqlConditionPB)
1378
37.4k
  for (;;) {
1379
37.4k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1380
37.4k
    tag = p.first;
1381
37.4k
    if (!p.second) goto handle_unusual;
1382
26.8k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1383
      // optional .yb.QLOperator op = 1;
1384
10.6k
      case 1: {
1385
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1386
10.6k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1387
10.6k
          int value;
1388
10.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1389
10.6k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1390
10.6k
                 input, &value)));
1391
10.6k
          if (::yb::QLOperator_IsValid(value)) {
1392
10.6k
            set_op(static_cast< ::yb::QLOperator >(value));
1393
0
          } else {
1394
0
            mutable_unknown_fields()->AddVarint(
1395
0
                1, static_cast< ::google::protobuf::uint64>(value));
1396
0
          }
1397
0
        } else {
1398
0
          goto handle_unusual;
1399
0
        }
1400
10.6k
        break;
1401
10.6k
      }
1402
1403
      // repeated .yb.PgsqlExpressionPB operands = 2;
1404
16.2k
      case 2: {
1405
16.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1406
16.2k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1407
16.2k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
1408
0
        } else {
1409
0
          goto handle_unusual;
1410
0
        }
1411
16.2k
        break;
1412
10.6k
      }
1413
1414
0
      default: {
1415
10.6k
      handle_unusual:
1416
10.6k
        if (tag == 0) {
1417
10.6k
          goto success;
1418
10.6k
        }
1419
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1420
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1421
0
        break;
1422
0
      }
1423
26.8k
    }
1424
26.8k
  }
1425
10.6k
success:
1426
  // @@protoc_insertion_point(parse_success:yb.PgsqlConditionPB)
1427
10.6k
  return true;
1428
0
failure:
1429
  // @@protoc_insertion_point(parse_failure:yb.PgsqlConditionPB)
1430
0
  return false;
1431
10.6k
#undef DO_
1432
10.6k
}
1433
1434
void PgsqlConditionPB::SerializeWithCachedSizes(
1435
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1436
  // @@protoc_insertion_point(serialize_start:yb.PgsqlConditionPB)
1437
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1438
0
  (void) cached_has_bits;
1439
1440
0
  cached_has_bits = _has_bits_[0];
1441
  // optional .yb.QLOperator op = 1;
1442
0
  if (cached_has_bits & 0x00000001u) {
1443
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1444
0
      1, this->op(), output);
1445
0
  }
1446
1447
  // repeated .yb.PgsqlExpressionPB operands = 2;
1448
0
  for (unsigned int i = 0,
1449
0
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
1450
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1451
0
      2, this->operands(static_cast<int>(i)), output);
1452
0
  }
1453
1454
0
  if (_internal_metadata_.have_unknown_fields()) {
1455
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1456
0
        _internal_metadata_.unknown_fields(), output);
1457
0
  }
1458
  // @@protoc_insertion_point(serialize_end:yb.PgsqlConditionPB)
1459
0
}
1460
1461
::google::protobuf::uint8* PgsqlConditionPB::InternalSerializeWithCachedSizesToArray(
1462
10.6k
    bool deterministic, ::google::protobuf::uint8* target) const {
1463
10.6k
  (void)deterministic; // Unused
1464
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlConditionPB)
1465
10.6k
  ::google::protobuf::uint32 cached_has_bits = 0;
1466
10.6k
  (void) cached_has_bits;
1467
1468
10.6k
  cached_has_bits = _has_bits_[0];
1469
  // optional .yb.QLOperator op = 1;
1470
10.6k
  if (cached_has_bits & 0x00000001u) {
1471
10.6k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1472
10.6k
      1, this->op(), target);
1473
10.6k
  }
1474
1475
  // repeated .yb.PgsqlExpressionPB operands = 2;
1476
10.6k
  for (unsigned int i = 0,
1477
26.8k
      n = static_cast<unsigned int>(this->operands_size()); i < n; i++) {
1478
16.2k
    target = ::google::protobuf::internal::WireFormatLite::
1479
16.2k
      InternalWriteMessageToArray(
1480
16.2k
        2, this->operands(static_cast<int>(i)), deterministic, target);
1481
16.2k
  }
1482
1483
10.6k
  if (_internal_metadata_.have_unknown_fields()) {
1484
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1485
0
        _internal_metadata_.unknown_fields(), target);
1486
0
  }
1487
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlConditionPB)
1488
10.6k
  return target;
1489
10.6k
}
1490
1491
21.2k
size_t PgsqlConditionPB::ByteSizeLong() const {
1492
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlConditionPB)
1493
21.2k
  size_t total_size = 0;
1494
1495
21.2k
  if (_internal_metadata_.have_unknown_fields()) {
1496
0
    total_size +=
1497
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1498
0
        _internal_metadata_.unknown_fields());
1499
0
  }
1500
  // repeated .yb.PgsqlExpressionPB operands = 2;
1501
21.2k
  {
1502
21.2k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
1503
21.2k
    total_size += 1UL * count;
1504
53.7k
    for (unsigned int i = 0; i < count; i++) {
1505
32.5k
      total_size +=
1506
32.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1507
32.5k
          this->operands(static_cast<int>(i)));
1508
32.5k
    }
1509
21.2k
  }
1510
1511
  // optional .yb.QLOperator op = 1;
1512
21.2k
  if (has_op()) {
1513
21.2k
    total_size += 1 +
1514
21.2k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
1515
21.2k
  }
1516
1517
21.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1518
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1519
21.2k
  _cached_size_ = cached_size;
1520
21.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1521
21.2k
  return total_size;
1522
21.2k
}
1523
1524
0
void PgsqlConditionPB::MergeFrom(const ::google::protobuf::Message& from) {
1525
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlConditionPB)
1526
0
  GOOGLE_DCHECK_NE(&from, this);
1527
0
  const PgsqlConditionPB* source =
1528
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlConditionPB>(
1529
0
          &from);
1530
0
  if (source == NULL) {
1531
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlConditionPB)
1532
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1533
0
  } else {
1534
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlConditionPB)
1535
0
    MergeFrom(*source);
1536
0
  }
1537
0
}
1538
1539
2.65M
void PgsqlConditionPB::MergeFrom(const PgsqlConditionPB& from) {
1540
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlConditionPB)
1541
2.65M
  GOOGLE_DCHECK_NE(&from, this);
1542
2.65M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1543
2.65M
  ::google::protobuf::uint32 cached_has_bits = 0;
1544
2.65M
  (void) cached_has_bits;
1545
1546
2.65M
  operands_.MergeFrom(from.operands_);
1547
2.65M
  if (from.has_op()) {
1548
2.65M
    set_op(from.op());
1549
2.65M
  }
1550
2.65M
}
1551
1552
0
void PgsqlConditionPB::CopyFrom(const ::google::protobuf::Message& from) {
1553
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlConditionPB)
1554
0
  if (&from == this) return;
1555
0
  Clear();
1556
0
  MergeFrom(from);
1557
0
}
1558
1559
0
void PgsqlConditionPB::CopyFrom(const PgsqlConditionPB& from) {
1560
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlConditionPB)
1561
0
  if (&from == this) return;
1562
0
  Clear();
1563
0
  MergeFrom(from);
1564
0
}
1565
1566
0
bool PgsqlConditionPB::IsInitialized() const {
1567
0
  return true;
1568
0
}
1569
1570
0
void PgsqlConditionPB::Swap(PgsqlConditionPB* other) {
1571
0
  if (other == this) return;
1572
0
  InternalSwap(other);
1573
0
}
1574
0
void PgsqlConditionPB::InternalSwap(PgsqlConditionPB* other) {
1575
0
  using std::swap;
1576
0
  operands_.InternalSwap(&other->operands_);
1577
0
  swap(op_, other->op_);
1578
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1579
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1580
0
  swap(_cached_size_, other->_cached_size_);
1581
0
}
1582
1583
10.6k
::google::protobuf::Metadata PgsqlConditionPB::GetMetadata() const {
1584
10.6k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1585
10.6k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1586
10.6k
}
1587
1588
1589
// ===================================================================
1590
1591
17.1k
void PgsqlExpressionPB::InitAsDefaultInstance() {
1592
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.value_ = const_cast< ::yb::QLValuePB*>(
1593
17.1k
      ::yb::QLValuePB::internal_default_instance());
1594
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.column_id_ = 0;
1595
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bind_id_ = 0;
1596
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.alias_id_ = 0;
1597
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bfcall_ = const_cast< ::yb::PgsqlBCallPB*>(
1598
17.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1599
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.tscall_ = const_cast< ::yb::PgsqlBCallPB*>(
1600
17.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1601
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bocall_ = const_cast< ::yb::PgsqlBCallPB*>(
1602
17.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1603
17.1k
  ::yb::_PgsqlExpressionPB_default_instance_.condition_ = const_cast< ::yb::PgsqlConditionPB*>(
1604
17.1k
      ::yb::PgsqlConditionPB::internal_default_instance());
1605
17.1k
}
1606
0
void PgsqlExpressionPB::set_allocated_value(::yb::QLValuePB* value) {
1607
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1608
0
  clear_expr();
1609
0
  if (value) {
1610
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1611
0
    if (message_arena != submessage_arena) {
1612
0
      value = ::google::protobuf::internal::GetOwnedMessage(
1613
0
          message_arena, value, submessage_arena);
1614
0
    }
1615
0
    set_has_value();
1616
0
    expr_.value_ = value;
1617
0
  }
1618
  // @@protoc_insertion_point(field_set_allocated:yb.PgsqlExpressionPB.value)
1619
0
}
1620
0
void PgsqlExpressionPB::clear_value() {
1621
0
  if (has_value()) {
1622
0
    delete expr_.value_;
1623
0
    clear_has_expr();
1624
0
  }
1625
0
}
1626
0
void PgsqlExpressionPB::set_allocated_bfcall(::yb::PgsqlBCallPB* bfcall) {
1627
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1628
0
  clear_expr();
1629
0
  if (bfcall) {
1630
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1631
0
    if (message_arena != submessage_arena) {
1632
0
      bfcall = ::google::protobuf::internal::GetOwnedMessage(
1633
0
          message_arena, bfcall, submessage_arena);
1634
0
    }
1635
0
    set_has_bfcall();
1636
0
    expr_.bfcall_ = bfcall;
1637
0
  }
1638
  // @@protoc_insertion_point(field_set_allocated:yb.PgsqlExpressionPB.bfcall)
1639
0
}
1640
0
void PgsqlExpressionPB::set_allocated_tscall(::yb::PgsqlBCallPB* tscall) {
1641
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1642
0
  clear_expr();
1643
0
  if (tscall) {
1644
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1645
0
    if (message_arena != submessage_arena) {
1646
0
      tscall = ::google::protobuf::internal::GetOwnedMessage(
1647
0
          message_arena, tscall, submessage_arena);
1648
0
    }
1649
0
    set_has_tscall();
1650
0
    expr_.tscall_ = tscall;
1651
0
  }
1652
  // @@protoc_insertion_point(field_set_allocated:yb.PgsqlExpressionPB.tscall)
1653
0
}
1654
0
void PgsqlExpressionPB::set_allocated_bocall(::yb::PgsqlBCallPB* bocall) {
1655
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1656
0
  clear_expr();
1657
0
  if (bocall) {
1658
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1659
0
    if (message_arena != submessage_arena) {
1660
0
      bocall = ::google::protobuf::internal::GetOwnedMessage(
1661
0
          message_arena, bocall, submessage_arena);
1662
0
    }
1663
0
    set_has_bocall();
1664
0
    expr_.bocall_ = bocall;
1665
0
  }
1666
  // @@protoc_insertion_point(field_set_allocated:yb.PgsqlExpressionPB.bocall)
1667
0
}
1668
0
void PgsqlExpressionPB::set_allocated_condition(::yb::PgsqlConditionPB* condition) {
1669
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1670
0
  clear_expr();
1671
0
  if (condition) {
1672
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1673
0
    if (message_arena != submessage_arena) {
1674
0
      condition = ::google::protobuf::internal::GetOwnedMessage(
1675
0
          message_arena, condition, submessage_arena);
1676
0
    }
1677
0
    set_has_condition();
1678
0
    expr_.condition_ = condition;
1679
0
  }
1680
  // @@protoc_insertion_point(field_set_allocated:yb.PgsqlExpressionPB.condition)
1681
0
}
1682
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1683
const int PgsqlExpressionPB::kValueFieldNumber;
1684
const int PgsqlExpressionPB::kColumnIdFieldNumber;
1685
const int PgsqlExpressionPB::kBindIdFieldNumber;
1686
const int PgsqlExpressionPB::kAliasIdFieldNumber;
1687
const int PgsqlExpressionPB::kBfcallFieldNumber;
1688
const int PgsqlExpressionPB::kTscallFieldNumber;
1689
const int PgsqlExpressionPB::kBocallFieldNumber;
1690
const int PgsqlExpressionPB::kConditionFieldNumber;
1691
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1692
1693
PgsqlExpressionPB::PgsqlExpressionPB()
1694
119M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1695
119M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1696
119M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1697
119M
  }
1698
119M
  SharedCtor();
1699
  // @@protoc_insertion_point(constructor:yb.PgsqlExpressionPB)
1700
119M
}
1701
PgsqlExpressionPB::PgsqlExpressionPB(const PgsqlExpressionPB& from)
1702
  : ::google::protobuf::Message(),
1703
      _internal_metadata_(NULL),
1704
      _has_bits_(from._has_bits_),
1705
0
      _cached_size_(0) {
1706
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1707
0
  clear_has_expr();
1708
0
  switch (from.expr_case()) {
1709
0
    case kValue: {
1710
0
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
1711
0
      break;
1712
0
    }
1713
0
    case kColumnId: {
1714
0
      set_column_id(from.column_id());
1715
0
      break;
1716
0
    }
1717
0
    case kBindId: {
1718
0
      set_bind_id(from.bind_id());
1719
0
      break;
1720
0
    }
1721
0
    case kAliasId: {
1722
0
      set_alias_id(from.alias_id());
1723
0
      break;
1724
0
    }
1725
0
    case kBfcall: {
1726
0
      mutable_bfcall()->::yb::PgsqlBCallPB::MergeFrom(from.bfcall());
1727
0
      break;
1728
0
    }
1729
0
    case kTscall: {
1730
0
      mutable_tscall()->::yb::PgsqlBCallPB::MergeFrom(from.tscall());
1731
0
      break;
1732
0
    }
1733
0
    case kBocall: {
1734
0
      mutable_bocall()->::yb::PgsqlBCallPB::MergeFrom(from.bocall());
1735
0
      break;
1736
0
    }
1737
0
    case kCondition: {
1738
0
      mutable_condition()->::yb::PgsqlConditionPB::MergeFrom(from.condition());
1739
0
      break;
1740
0
    }
1741
0
    case EXPR_NOT_SET: {
1742
0
      break;
1743
0
    }
1744
0
  }
1745
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlExpressionPB)
1746
0
}
1747
1748
119M
void PgsqlExpressionPB::SharedCtor() {
1749
119M
  _cached_size_ = 0;
1750
119M
  clear_has_expr();
1751
119M
}
1752
1753
119M
PgsqlExpressionPB::~PgsqlExpressionPB() {
1754
  // @@protoc_insertion_point(destructor:yb.PgsqlExpressionPB)
1755
119M
  SharedDtor();
1756
119M
}
1757
1758
119M
void PgsqlExpressionPB::SharedDtor() {
1759
119M
  if (has_expr()) {
1760
116M
    clear_expr();
1761
116M
  }
1762
119M
}
1763
1764
0
void PgsqlExpressionPB::SetCachedSize(int size) const {
1765
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1766
0
  _cached_size_ = size;
1767
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1768
0
}
1769
0
const ::google::protobuf::Descriptor* PgsqlExpressionPB::descriptor() {
1770
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1771
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1772
0
}
1773
1774
0
const PgsqlExpressionPB& PgsqlExpressionPB::default_instance() {
1775
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1776
0
  return *internal_default_instance();
1777
0
}
1778
1779
0
PgsqlExpressionPB* PgsqlExpressionPB::New(::google::protobuf::Arena* arena) const {
1780
0
  PgsqlExpressionPB* n = new PgsqlExpressionPB;
1781
0
  if (arena != NULL) {
1782
0
    arena->Own(n);
1783
0
  }
1784
0
  return n;
1785
0
}
1786
1787
241M
void PgsqlExpressionPB::clear_expr() {
1788
// @@protoc_insertion_point(one_of_clear_start:yb.PgsqlExpressionPB)
1789
241M
  switch (expr_case()) {
1790
80.2M
    case kValue: {
1791
80.2M
      delete expr_.value_;
1792
80.2M
      break;
1793
0
    }
1794
35.9M
    case kColumnId: {
1795
      // No need to clear
1796
35.9M
      break;
1797
0
    }
1798
0
    case kBindId: {
1799
      // No need to clear
1800
0
      break;
1801
0
    }
1802
0
    case kAliasId: {
1803
      // No need to clear
1804
0
      break;
1805
0
    }
1806
0
    case kBfcall: {
1807
0
      delete expr_.bfcall_;
1808
0
      break;
1809
0
    }
1810
22.6k
    case kTscall: {
1811
22.6k
      delete expr_.tscall_;
1812
22.6k
      break;
1813
0
    }
1814
0
    case kBocall: {
1815
0
      delete expr_.bocall_;
1816
0
      break;
1817
0
    }
1818
2.76M
    case kCondition: {
1819
2.76M
      delete expr_.condition_;
1820
2.76M
      break;
1821
0
    }
1822
122M
    case EXPR_NOT_SET: {
1823
122M
      break;
1824
241M
    }
1825
241M
  }
1826
241M
  _oneof_case_[0] = EXPR_NOT_SET;
1827
241M
}
1828
1829
1830
6.09M
void PgsqlExpressionPB::Clear() {
1831
// @@protoc_insertion_point(message_clear_start:yb.PgsqlExpressionPB)
1832
6.09M
  ::google::protobuf::uint32 cached_has_bits = 0;
1833
  // Prevent compiler warnings about cached_has_bits being unused
1834
6.09M
  (void) cached_has_bits;
1835
1836
6.09M
  clear_expr();
1837
6.09M
  _has_bits_.Clear();
1838
6.09M
  _internal_metadata_.Clear();
1839
6.09M
}
1840
1841
bool PgsqlExpressionPB::MergePartialFromCodedStream(
1842
37.8M
    ::google::protobuf::io::CodedInputStream* input) {
1843
37.8M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1844
37.8M
  ::google::protobuf::uint32 tag;
1845
  // @@protoc_insertion_point(parse_start:yb.PgsqlExpressionPB)
1846
75.5M
  for (;;) {
1847
75.5M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1848
75.5M
    tag = p.first;
1849
75.5M
    if (!p.second) goto handle_unusual;
1850
37.7M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1851
      // optional .yb.QLValuePB value = 1;
1852
16.0M
      case 1: {
1853
16.0M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1854
16.0M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1855
16.0M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1856
16.0M
               input, mutable_value()));
1857
18.4E
        } else {
1858
18.4E
          goto handle_unusual;
1859
18.4E
        }
1860
16.0M
        break;
1861
16.0M
      }
1862
1863
      // optional int32 column_id = 2;
1864
21.7M
      case 2: {
1865
21.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1866
21.7M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1867
21.7M
          clear_expr();
1868
21.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1869
21.7M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1870
21.7M
                 input, &expr_.column_id_)));
1871
21.7M
          set_has_column_id();
1872
18.4E
        } else {
1873
18.4E
          goto handle_unusual;
1874
18.4E
        }
1875
21.7M
        break;
1876
21.7M
      }
1877
1878
      // optional int32 bind_id = 3;
1879
0
      case 3: {
1880
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1881
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1882
0
          clear_expr();
1883
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1884
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1885
0
                 input, &expr_.bind_id_)));
1886
0
          set_has_bind_id();
1887
0
        } else {
1888
0
          goto handle_unusual;
1889
0
        }
1890
0
        break;
1891
0
      }
1892
1893
      // optional int32 alias_id = 4;
1894
0
      case 4: {
1895
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1896
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1897
0
          clear_expr();
1898
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1899
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1900
0
                 input, &expr_.alias_id_)));
1901
0
          set_has_alias_id();
1902
0
        } else {
1903
0
          goto handle_unusual;
1904
0
        }
1905
0
        break;
1906
0
      }
1907
1908
      // optional .yb.PgsqlBCallPB bfcall = 5;
1909
0
      case 5: {
1910
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1911
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1912
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1913
0
               input, mutable_bfcall()));
1914
0
        } else {
1915
0
          goto handle_unusual;
1916
0
        }
1917
0
        break;
1918
0
      }
1919
1920
      // optional .yb.PgsqlBCallPB tscall = 6;
1921
14.7k
      case 6: {
1922
14.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1923
14.7k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1924
14.7k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1925
14.7k
               input, mutable_tscall()));
1926
0
        } else {
1927
0
          goto handle_unusual;
1928
0
        }
1929
14.7k
        break;
1930
14.7k
      }
1931
1932
      // optional .yb.PgsqlBCallPB bocall = 7;
1933
0
      case 7: {
1934
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1935
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
1936
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1937
0
               input, mutable_bocall()));
1938
0
        } else {
1939
0
          goto handle_unusual;
1940
0
        }
1941
0
        break;
1942
0
      }
1943
1944
      // optional .yb.PgsqlConditionPB condition = 8;
1945
10.6k
      case 8: {
1946
10.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1947
10.6k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1948
10.6k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1949
10.6k
               input, mutable_condition()));
1950
0
        } else {
1951
0
          goto handle_unusual;
1952
0
        }
1953
10.6k
        break;
1954
37.8M
      }
1955
1956
0
      default: {
1957
37.8M
      handle_unusual:
1958
37.8M
        if (tag == 0) {
1959
37.8M
          goto success;
1960
37.8M
        }
1961
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1962
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1963
18.4E
        break;
1964
18.4E
      }
1965
37.7M
    }
1966
37.7M
  }
1967
37.8M
success:
1968
  // @@protoc_insertion_point(parse_success:yb.PgsqlExpressionPB)
1969
37.8M
  return true;
1970
0
failure:
1971
  // @@protoc_insertion_point(parse_failure:yb.PgsqlExpressionPB)
1972
0
  return false;
1973
37.8M
#undef DO_
1974
37.8M
}
1975
1976
void PgsqlExpressionPB::SerializeWithCachedSizes(
1977
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1978
  // @@protoc_insertion_point(serialize_start:yb.PgsqlExpressionPB)
1979
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1980
0
  (void) cached_has_bits;
1981
1982
0
  switch (expr_case()) {
1983
0
    case kValue:
1984
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1985
0
        1, *expr_.value_, output);
1986
0
      break;
1987
0
    case kColumnId:
1988
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->column_id(), output);
1989
0
      break;
1990
0
    case kBindId:
1991
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->bind_id(), output);
1992
0
      break;
1993
0
    case kAliasId:
1994
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->alias_id(), output);
1995
0
      break;
1996
0
    case kBfcall:
1997
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1998
0
        5, *expr_.bfcall_, output);
1999
0
      break;
2000
0
    case kTscall:
2001
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2002
0
        6, *expr_.tscall_, output);
2003
0
      break;
2004
0
    case kBocall:
2005
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2006
0
        7, *expr_.bocall_, output);
2007
0
      break;
2008
0
    case kCondition:
2009
0
      ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2010
0
        8, *expr_.condition_, output);
2011
0
      break;
2012
0
    default: ;
2013
0
  }
2014
0
  if (_internal_metadata_.have_unknown_fields()) {
2015
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2016
0
        _internal_metadata_.unknown_fields(), output);
2017
0
  }
2018
  // @@protoc_insertion_point(serialize_end:yb.PgsqlExpressionPB)
2019
0
}
2020
2021
::google::protobuf::uint8* PgsqlExpressionPB::InternalSerializeWithCachedSizesToArray(
2022
37.8M
    bool deterministic, ::google::protobuf::uint8* target) const {
2023
37.8M
  (void)deterministic; // Unused
2024
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlExpressionPB)
2025
37.8M
  ::google::protobuf::uint32 cached_has_bits = 0;
2026
37.8M
  (void) cached_has_bits;
2027
2028
37.8M
  switch (expr_case()) {
2029
16.0M
    case kValue:
2030
16.0M
      target = ::google::protobuf::internal::WireFormatLite::
2031
16.0M
        InternalWriteMessageToArray(
2032
16.0M
          1, *expr_.value_, deterministic, target);
2033
16.0M
      break;
2034
21.7M
    case kColumnId:
2035
21.7M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->column_id(), target);
2036
21.7M
      break;
2037
0
    case kBindId:
2038
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->bind_id(), target);
2039
0
      break;
2040
0
    case kAliasId:
2041
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->alias_id(), target);
2042
0
      break;
2043
0
    case kBfcall:
2044
0
      target = ::google::protobuf::internal::WireFormatLite::
2045
0
        InternalWriteMessageToArray(
2046
0
          5, *expr_.bfcall_, deterministic, target);
2047
0
      break;
2048
14.7k
    case kTscall:
2049
14.7k
      target = ::google::protobuf::internal::WireFormatLite::
2050
14.7k
        InternalWriteMessageToArray(
2051
14.7k
          6, *expr_.tscall_, deterministic, target);
2052
14.7k
      break;
2053
0
    case kBocall:
2054
0
      target = ::google::protobuf::internal::WireFormatLite::
2055
0
        InternalWriteMessageToArray(
2056
0
          7, *expr_.bocall_, deterministic, target);
2057
0
      break;
2058
10.6k
    case kCondition:
2059
10.6k
      target = ::google::protobuf::internal::WireFormatLite::
2060
10.6k
        InternalWriteMessageToArray(
2061
10.6k
          8, *expr_.condition_, deterministic, target);
2062
10.6k
      break;
2063
0
    default: ;
2064
37.8M
  }
2065
37.8M
  if (_internal_metadata_.have_unknown_fields()) {
2066
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2067
0
        _internal_metadata_.unknown_fields(), target);
2068
0
  }
2069
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlExpressionPB)
2070
37.8M
  return target;
2071
37.8M
}
2072
2073
186M
size_t PgsqlExpressionPB::ByteSizeLong() const {
2074
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlExpressionPB)
2075
186M
  size_t total_size = 0;
2076
2077
186M
  if (_internal_metadata_.have_unknown_fields()) {
2078
0
    total_size +=
2079
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2080
0
        _internal_metadata_.unknown_fields());
2081
0
  }
2082
186M
  switch (expr_case()) {
2083
    // optional .yb.QLValuePB value = 1;
2084
143M
    case kValue: {
2085
143M
      total_size += 1 +
2086
143M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2087
143M
          *expr_.value_);
2088
143M
      break;
2089
0
    }
2090
    // optional int32 column_id = 2;
2091
43.4M
    case kColumnId: {
2092
43.4M
      total_size += 1 +
2093
43.4M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2094
43.4M
          this->column_id());
2095
43.4M
      break;
2096
0
    }
2097
    // optional int32 bind_id = 3;
2098
0
    case kBindId: {
2099
0
      total_size += 1 +
2100
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2101
0
          this->bind_id());
2102
0
      break;
2103
0
    }
2104
    // optional int32 alias_id = 4;
2105
0
    case kAliasId: {
2106
0
      total_size += 1 +
2107
0
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2108
0
          this->alias_id());
2109
0
      break;
2110
0
    }
2111
    // optional .yb.PgsqlBCallPB bfcall = 5;
2112
0
    case kBfcall: {
2113
0
      total_size += 1 +
2114
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2115
0
          *expr_.bfcall_);
2116
0
      break;
2117
0
    }
2118
    // optional .yb.PgsqlBCallPB tscall = 6;
2119
29.5k
    case kTscall: {
2120
29.5k
      total_size += 1 +
2121
29.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2122
29.5k
          *expr_.tscall_);
2123
29.5k
      break;
2124
0
    }
2125
    // optional .yb.PgsqlBCallPB bocall = 7;
2126
0
    case kBocall: {
2127
0
      total_size += 1 +
2128
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2129
0
          *expr_.bocall_);
2130
0
      break;
2131
0
    }
2132
    // optional .yb.PgsqlConditionPB condition = 8;
2133
21.2k
    case kCondition: {
2134
21.2k
      total_size += 1 +
2135
21.2k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2136
21.2k
          *expr_.condition_);
2137
21.2k
      break;
2138
0
    }
2139
0
    case EXPR_NOT_SET: {
2140
0
      break;
2141
186M
    }
2142
186M
  }
2143
186M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2144
186M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2145
186M
  _cached_size_ = cached_size;
2146
186M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2147
186M
  return total_size;
2148
186M
}
2149
2150
0
void PgsqlExpressionPB::MergeFrom(const ::google::protobuf::Message& from) {
2151
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlExpressionPB)
2152
0
  GOOGLE_DCHECK_NE(&from, this);
2153
0
  const PgsqlExpressionPB* source =
2154
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlExpressionPB>(
2155
0
          &from);
2156
0
  if (source == NULL) {
2157
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlExpressionPB)
2158
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2159
0
  } else {
2160
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlExpressionPB)
2161
0
    MergeFrom(*source);
2162
0
  }
2163
0
}
2164
2165
50.1M
void PgsqlExpressionPB::MergeFrom(const PgsqlExpressionPB& from) {
2166
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlExpressionPB)
2167
50.1M
  GOOGLE_DCHECK_NE(&from, this);
2168
50.1M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2169
50.1M
  ::google::protobuf::uint32 cached_has_bits = 0;
2170
50.1M
  (void) cached_has_bits;
2171
2172
50.1M
  switch (from.expr_case()) {
2173
41.1M
    case kValue: {
2174
41.1M
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
2175
41.1M
      break;
2176
0
    }
2177
6.39M
    case kColumnId: {
2178
6.39M
      set_column_id(from.column_id());
2179
6.39M
      break;
2180
0
    }
2181
0
    case kBindId: {
2182
0
      set_bind_id(from.bind_id());
2183
0
      break;
2184
0
    }
2185
0
    case kAliasId: {
2186
0
      set_alias_id(from.alias_id());
2187
0
      break;
2188
0
    }
2189
0
    case kBfcall: {
2190
0
      mutable_bfcall()->::yb::PgsqlBCallPB::MergeFrom(from.bfcall());
2191
0
      break;
2192
0
    }
2193
1.93k
    case kTscall: {
2194
1.93k
      mutable_tscall()->::yb::PgsqlBCallPB::MergeFrom(from.tscall());
2195
1.93k
      break;
2196
0
    }
2197
0
    case kBocall: {
2198
0
      mutable_bocall()->::yb::PgsqlBCallPB::MergeFrom(from.bocall());
2199
0
      break;
2200
0
    }
2201
2.65M
    case kCondition: {
2202
2.65M
      mutable_condition()->::yb::PgsqlConditionPB::MergeFrom(from.condition());
2203
2.65M
      break;
2204
0
    }
2205
0
    case EXPR_NOT_SET: {
2206
0
      break;
2207
0
    }
2208
50.1M
  }
2209
50.1M
}
2210
2211
0
void PgsqlExpressionPB::CopyFrom(const ::google::protobuf::Message& from) {
2212
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlExpressionPB)
2213
0
  if (&from == this) return;
2214
0
  Clear();
2215
0
  MergeFrom(from);
2216
0
}
2217
2218
1.45M
void PgsqlExpressionPB::CopyFrom(const PgsqlExpressionPB& from) {
2219
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlExpressionPB)
2220
1.45M
  if (&from == this) return;
2221
1.45M
  Clear();
2222
1.45M
  MergeFrom(from);
2223
1.45M
}
2224
2225
0
bool PgsqlExpressionPB::IsInitialized() const {
2226
0
  return true;
2227
0
}
2228
2229
0
void PgsqlExpressionPB::Swap(PgsqlExpressionPB* other) {
2230
0
  if (other == this) return;
2231
0
  InternalSwap(other);
2232
0
}
2233
0
void PgsqlExpressionPB::InternalSwap(PgsqlExpressionPB* other) {
2234
0
  using std::swap;
2235
0
  swap(expr_, other->expr_);
2236
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
2237
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2238
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2239
0
  swap(_cached_size_, other->_cached_size_);
2240
0
}
2241
2242
37.8M
::google::protobuf::Metadata PgsqlExpressionPB::GetMetadata() const {
2243
37.8M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2244
37.8M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2245
37.8M
}
2246
2247
2248
// ===================================================================
2249
2250
17.1k
void PgsqlBatchArgumentPB::InitAsDefaultInstance() {
2251
17.1k
  ::yb::_PgsqlBatchArgumentPB_default_instance_._instance.get_mutable()->ybctid_ = const_cast< ::yb::PgsqlExpressionPB*>(
2252
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
2253
17.1k
}
2254
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2255
const int PgsqlBatchArgumentPB::kOrderFieldNumber;
2256
const int PgsqlBatchArgumentPB::kYbctidFieldNumber;
2257
const int PgsqlBatchArgumentPB::kHashCodeFieldNumber;
2258
const int PgsqlBatchArgumentPB::kMaxHashCodeFieldNumber;
2259
const int PgsqlBatchArgumentPB::kPartitionColumnValuesFieldNumber;
2260
const int PgsqlBatchArgumentPB::kRangeColumnValuesFieldNumber;
2261
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2262
2263
PgsqlBatchArgumentPB::PgsqlBatchArgumentPB()
2264
1.17M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2265
1.15M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2266
1.15M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
2267
1.15M
  }
2268
1.17M
  SharedCtor();
2269
  // @@protoc_insertion_point(constructor:yb.PgsqlBatchArgumentPB)
2270
1.17M
}
2271
PgsqlBatchArgumentPB::PgsqlBatchArgumentPB(const PgsqlBatchArgumentPB& from)
2272
  : ::google::protobuf::Message(),
2273
      _internal_metadata_(NULL),
2274
      _has_bits_(from._has_bits_),
2275
      _cached_size_(0),
2276
      partition_column_values_(from.partition_column_values_),
2277
0
      range_column_values_(from.range_column_values_) {
2278
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2279
0
  if (from.has_ybctid()) {
2280
0
    ybctid_ = new ::yb::PgsqlExpressionPB(*from.ybctid_);
2281
0
  } else {
2282
0
    ybctid_ = NULL;
2283
0
  }
2284
0
  ::memcpy(&order_, &from.order_,
2285
0
    static_cast<size_t>(reinterpret_cast<char*>(&max_hash_code_) -
2286
0
    reinterpret_cast<char*>(&order_)) + sizeof(max_hash_code_));
2287
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlBatchArgumentPB)
2288
0
}
2289
2290
1.17M
void PgsqlBatchArgumentPB::SharedCtor() {
2291
1.17M
  _cached_size_ = 0;
2292
1.17M
  ::memset(&ybctid_, 0, static_cast<size_t>(
2293
1.17M
      reinterpret_cast<char*>(&max_hash_code_) -
2294
1.17M
      reinterpret_cast<char*>(&ybctid_)) + sizeof(max_hash_code_));
2295
1.17M
}
2296
2297
1.15M
PgsqlBatchArgumentPB::~PgsqlBatchArgumentPB() {
2298
  // @@protoc_insertion_point(destructor:yb.PgsqlBatchArgumentPB)
2299
1.15M
  SharedDtor();
2300
1.15M
}
2301
2302
1.15M
void PgsqlBatchArgumentPB::SharedDtor() {
2303
1.15M
  if (this != internal_default_instance()) delete ybctid_;
2304
1.15M
}
2305
2306
0
void PgsqlBatchArgumentPB::SetCachedSize(int size) const {
2307
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2308
0
  _cached_size_ = size;
2309
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2310
0
}
2311
0
const ::google::protobuf::Descriptor* PgsqlBatchArgumentPB::descriptor() {
2312
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2313
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2314
0
}
2315
2316
0
const PgsqlBatchArgumentPB& PgsqlBatchArgumentPB::default_instance() {
2317
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
2318
0
  return *internal_default_instance();
2319
0
}
2320
2321
0
PgsqlBatchArgumentPB* PgsqlBatchArgumentPB::New(::google::protobuf::Arena* arena) const {
2322
0
  PgsqlBatchArgumentPB* n = new PgsqlBatchArgumentPB;
2323
0
  if (arena != NULL) {
2324
0
    arena->Own(n);
2325
0
  }
2326
0
  return n;
2327
0
}
2328
2329
559k
void PgsqlBatchArgumentPB::Clear() {
2330
// @@protoc_insertion_point(message_clear_start:yb.PgsqlBatchArgumentPB)
2331
559k
  ::google::protobuf::uint32 cached_has_bits = 0;
2332
  // Prevent compiler warnings about cached_has_bits being unused
2333
559k
  (void) cached_has_bits;
2334
2335
559k
  partition_column_values_.Clear();
2336
559k
  range_column_values_.Clear();
2337
559k
  cached_has_bits = _has_bits_[0];
2338
559k
  if (cached_has_bits & 0x00000001u) {
2339
559k
    GOOGLE_DCHECK(ybctid_ != NULL);
2340
559k
    ybctid_->Clear();
2341
559k
  }
2342
559k
  if (cached_has_bits & 14u) {
2343
559k
    ::memset(&order_, 0, static_cast<size_t>(
2344
559k
        reinterpret_cast<char*>(&max_hash_code_) -
2345
559k
        reinterpret_cast<char*>(&order_)) + sizeof(max_hash_code_));
2346
559k
  }
2347
559k
  _has_bits_.Clear();
2348
559k
  _internal_metadata_.Clear();
2349
559k
}
2350
2351
bool PgsqlBatchArgumentPB::MergePartialFromCodedStream(
2352
903k
    ::google::protobuf::io::CodedInputStream* input) {
2353
1.80M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2354
903k
  ::google::protobuf::uint32 tag;
2355
  // @@protoc_insertion_point(parse_start:yb.PgsqlBatchArgumentPB)
2356
2.71M
  for (;;) {
2357
2.71M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2358
2.71M
    tag = p.first;
2359
2.71M
    if (!p.second) goto handle_unusual;
2360
1.80M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2361
      // optional int64 order = 1;
2362
903k
      case 1: {
2363
903k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2364
903k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2365
903k
          set_has_order();
2366
903k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2367
903k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2368
903k
                 input, &order_)));
2369
0
        } else {
2370
0
          goto handle_unusual;
2371
0
        }
2372
903k
        break;
2373
903k
      }
2374
2375
      // optional .yb.PgsqlExpressionPB ybctid = 2;
2376
903k
      case 2: {
2377
903k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2378
903k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2379
903k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2380
903k
               input, mutable_ybctid()));
2381
0
        } else {
2382
0
          goto handle_unusual;
2383
0
        }
2384
903k
        break;
2385
903k
      }
2386
2387
      // optional uint32 hash_code = 3;
2388
0
      case 3: {
2389
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2390
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2391
0
          set_has_hash_code();
2392
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2393
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2394
0
                 input, &hash_code_)));
2395
0
        } else {
2396
0
          goto handle_unusual;
2397
0
        }
2398
0
        break;
2399
0
      }
2400
2401
      // optional uint32 max_hash_code = 4;
2402
0
      case 4: {
2403
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2404
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2405
0
          set_has_max_hash_code();
2406
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2407
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2408
0
                 input, &max_hash_code_)));
2409
0
        } else {
2410
0
          goto handle_unusual;
2411
0
        }
2412
0
        break;
2413
0
      }
2414
2415
      // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
2416
0
      case 5: {
2417
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2418
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
2419
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_partition_column_values()));
2420
0
        } else {
2421
0
          goto handle_unusual;
2422
0
        }
2423
0
        break;
2424
0
      }
2425
2426
      // repeated .yb.PgsqlExpressionPB range_column_values = 6;
2427
0
      case 6: {
2428
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2429
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
2430
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values()));
2431
0
        } else {
2432
0
          goto handle_unusual;
2433
0
        }
2434
0
        break;
2435
903k
      }
2436
2437
0
      default: {
2438
903k
      handle_unusual:
2439
903k
        if (tag == 0) {
2440
903k
          goto success;
2441
903k
        }
2442
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2443
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2444
0
        break;
2445
0
      }
2446
1.80M
    }
2447
1.80M
  }
2448
903k
success:
2449
  // @@protoc_insertion_point(parse_success:yb.PgsqlBatchArgumentPB)
2450
903k
  return true;
2451
0
failure:
2452
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBatchArgumentPB)
2453
0
  return false;
2454
903k
#undef DO_
2455
903k
}
2456
2457
void PgsqlBatchArgumentPB::SerializeWithCachedSizes(
2458
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2459
  // @@protoc_insertion_point(serialize_start:yb.PgsqlBatchArgumentPB)
2460
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2461
0
  (void) cached_has_bits;
2462
2463
0
  cached_has_bits = _has_bits_[0];
2464
  // optional int64 order = 1;
2465
0
  if (cached_has_bits & 0x00000002u) {
2466
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->order(), output);
2467
0
  }
2468
2469
  // optional .yb.PgsqlExpressionPB ybctid = 2;
2470
0
  if (cached_has_bits & 0x00000001u) {
2471
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2472
0
      2, *this->ybctid_, output);
2473
0
  }
2474
2475
  // optional uint32 hash_code = 3;
2476
0
  if (cached_has_bits & 0x00000004u) {
2477
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->hash_code(), output);
2478
0
  }
2479
2480
  // optional uint32 max_hash_code = 4;
2481
0
  if (cached_has_bits & 0x00000008u) {
2482
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->max_hash_code(), output);
2483
0
  }
2484
2485
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
2486
0
  for (unsigned int i = 0,
2487
0
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
2488
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2489
0
      5, this->partition_column_values(static_cast<int>(i)), output);
2490
0
  }
2491
2492
  // repeated .yb.PgsqlExpressionPB range_column_values = 6;
2493
0
  for (unsigned int i = 0,
2494
0
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
2495
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2496
0
      6, this->range_column_values(static_cast<int>(i)), output);
2497
0
  }
2498
2499
0
  if (_internal_metadata_.have_unknown_fields()) {
2500
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2501
0
        _internal_metadata_.unknown_fields(), output);
2502
0
  }
2503
  // @@protoc_insertion_point(serialize_end:yb.PgsqlBatchArgumentPB)
2504
0
}
2505
2506
::google::protobuf::uint8* PgsqlBatchArgumentPB::InternalSerializeWithCachedSizesToArray(
2507
903k
    bool deterministic, ::google::protobuf::uint8* target) const {
2508
903k
  (void)deterministic; // Unused
2509
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBatchArgumentPB)
2510
903k
  ::google::protobuf::uint32 cached_has_bits = 0;
2511
903k
  (void) cached_has_bits;
2512
2513
903k
  cached_has_bits = _has_bits_[0];
2514
  // optional int64 order = 1;
2515
903k
  if (cached_has_bits & 0x00000002u) {
2516
903k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->order(), target);
2517
903k
  }
2518
2519
  // optional .yb.PgsqlExpressionPB ybctid = 2;
2520
903k
  if (cached_has_bits & 0x00000001u) {
2521
903k
    target = ::google::protobuf::internal::WireFormatLite::
2522
903k
      InternalWriteMessageToArray(
2523
903k
        2, *this->ybctid_, deterministic, target);
2524
903k
  }
2525
2526
  // optional uint32 hash_code = 3;
2527
903k
  if (cached_has_bits & 0x00000004u) {
2528
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->hash_code(), target);
2529
0
  }
2530
2531
  // optional uint32 max_hash_code = 4;
2532
903k
  if (cached_has_bits & 0x00000008u) {
2533
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->max_hash_code(), target);
2534
0
  }
2535
2536
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
2537
903k
  for (unsigned int i = 0,
2538
903k
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
2539
0
    target = ::google::protobuf::internal::WireFormatLite::
2540
0
      InternalWriteMessageToArray(
2541
0
        5, this->partition_column_values(static_cast<int>(i)), deterministic, target);
2542
0
  }
2543
2544
  // repeated .yb.PgsqlExpressionPB range_column_values = 6;
2545
903k
  for (unsigned int i = 0,
2546
903k
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
2547
0
    target = ::google::protobuf::internal::WireFormatLite::
2548
0
      InternalWriteMessageToArray(
2549
0
        6, this->range_column_values(static_cast<int>(i)), deterministic, target);
2550
0
  }
2551
2552
903k
  if (_internal_metadata_.have_unknown_fields()) {
2553
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2554
0
        _internal_metadata_.unknown_fields(), target);
2555
0
  }
2556
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlBatchArgumentPB)
2557
903k
  return target;
2558
903k
}
2559
2560
1.80M
size_t PgsqlBatchArgumentPB::ByteSizeLong() const {
2561
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBatchArgumentPB)
2562
1.80M
  size_t total_size = 0;
2563
2564
1.80M
  if (_internal_metadata_.have_unknown_fields()) {
2565
0
    total_size +=
2566
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2567
0
        _internal_metadata_.unknown_fields());
2568
0
  }
2569
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
2570
1.80M
  {
2571
1.80M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
2572
1.80M
    total_size += 1UL * count;
2573
1.80M
    for (unsigned int i = 0; i < count; i++) {
2574
0
      total_size +=
2575
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2576
0
          this->partition_column_values(static_cast<int>(i)));
2577
0
    }
2578
1.80M
  }
2579
2580
  // repeated .yb.PgsqlExpressionPB range_column_values = 6;
2581
1.80M
  {
2582
1.80M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
2583
1.80M
    total_size += 1UL * count;
2584
1.80M
    for (unsigned int i = 0; i < count; i++) {
2585
0
      total_size +=
2586
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2587
0
          this->range_column_values(static_cast<int>(i)));
2588
0
    }
2589
1.80M
  }
2590
2591
1.80M
  if (_has_bits_[0 / 32] & 15u) {
2592
    // optional .yb.PgsqlExpressionPB ybctid = 2;
2593
1.80M
    if (has_ybctid()) {
2594
1.80M
      total_size += 1 +
2595
1.80M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2596
1.80M
          *this->ybctid_);
2597
1.80M
    }
2598
2599
    // optional int64 order = 1;
2600
1.80M
    if (has_order()) {
2601
1.80M
      total_size += 1 +
2602
1.80M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2603
1.80M
          this->order());
2604
1.80M
    }
2605
2606
    // optional uint32 hash_code = 3;
2607
1.80M
    if (has_hash_code()) {
2608
0
      total_size += 1 +
2609
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2610
0
          this->hash_code());
2611
0
    }
2612
2613
    // optional uint32 max_hash_code = 4;
2614
1.80M
    if (has_max_hash_code()) {
2615
0
      total_size += 1 +
2616
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
2617
0
          this->max_hash_code());
2618
0
    }
2619
2620
1.80M
  }
2621
1.80M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2622
1.80M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2623
1.80M
  _cached_size_ = cached_size;
2624
1.80M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2625
1.80M
  return total_size;
2626
1.80M
}
2627
2628
0
void PgsqlBatchArgumentPB::MergeFrom(const ::google::protobuf::Message& from) {
2629
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlBatchArgumentPB)
2630
0
  GOOGLE_DCHECK_NE(&from, this);
2631
0
  const PgsqlBatchArgumentPB* source =
2632
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlBatchArgumentPB>(
2633
0
          &from);
2634
0
  if (source == NULL) {
2635
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlBatchArgumentPB)
2636
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2637
0
  } else {
2638
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlBatchArgumentPB)
2639
0
    MergeFrom(*source);
2640
0
  }
2641
0
}
2642
2643
0
void PgsqlBatchArgumentPB::MergeFrom(const PgsqlBatchArgumentPB& from) {
2644
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlBatchArgumentPB)
2645
0
  GOOGLE_DCHECK_NE(&from, this);
2646
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2647
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2648
0
  (void) cached_has_bits;
2649
2650
0
  partition_column_values_.MergeFrom(from.partition_column_values_);
2651
0
  range_column_values_.MergeFrom(from.range_column_values_);
2652
0
  cached_has_bits = from._has_bits_[0];
2653
0
  if (cached_has_bits & 15u) {
2654
0
    if (cached_has_bits & 0x00000001u) {
2655
0
      mutable_ybctid()->::yb::PgsqlExpressionPB::MergeFrom(from.ybctid());
2656
0
    }
2657
0
    if (cached_has_bits & 0x00000002u) {
2658
0
      order_ = from.order_;
2659
0
    }
2660
0
    if (cached_has_bits & 0x00000004u) {
2661
0
      hash_code_ = from.hash_code_;
2662
0
    }
2663
0
    if (cached_has_bits & 0x00000008u) {
2664
0
      max_hash_code_ = from.max_hash_code_;
2665
0
    }
2666
0
    _has_bits_[0] |= cached_has_bits;
2667
0
  }
2668
0
}
2669
2670
0
void PgsqlBatchArgumentPB::CopyFrom(const ::google::protobuf::Message& from) {
2671
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlBatchArgumentPB)
2672
0
  if (&from == this) return;
2673
0
  Clear();
2674
0
  MergeFrom(from);
2675
0
}
2676
2677
0
void PgsqlBatchArgumentPB::CopyFrom(const PgsqlBatchArgumentPB& from) {
2678
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlBatchArgumentPB)
2679
0
  if (&from == this) return;
2680
0
  Clear();
2681
0
  MergeFrom(from);
2682
0
}
2683
2684
0
bool PgsqlBatchArgumentPB::IsInitialized() const {
2685
0
  return true;
2686
0
}
2687
2688
0
void PgsqlBatchArgumentPB::Swap(PgsqlBatchArgumentPB* other) {
2689
0
  if (other == this) return;
2690
0
  InternalSwap(other);
2691
0
}
2692
0
void PgsqlBatchArgumentPB::InternalSwap(PgsqlBatchArgumentPB* other) {
2693
0
  using std::swap;
2694
0
  partition_column_values_.InternalSwap(&other->partition_column_values_);
2695
0
  range_column_values_.InternalSwap(&other->range_column_values_);
2696
0
  swap(ybctid_, other->ybctid_);
2697
0
  swap(order_, other->order_);
2698
0
  swap(hash_code_, other->hash_code_);
2699
0
  swap(max_hash_code_, other->max_hash_code_);
2700
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2701
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2702
0
  swap(_cached_size_, other->_cached_size_);
2703
0
}
2704
2705
903k
::google::protobuf::Metadata PgsqlBatchArgumentPB::GetMetadata() const {
2706
903k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2707
903k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2708
903k
}
2709
2710
2711
// ===================================================================
2712
2713
17.1k
void PgsqlColumnRefsPB::InitAsDefaultInstance() {
2714
17.1k
}
2715
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2716
const int PgsqlColumnRefsPB::kIdsFieldNumber;
2717
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2718
2719
PgsqlColumnRefsPB::PgsqlColumnRefsPB()
2720
10.9M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2721
10.9M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2722
10.9M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
2723
10.9M
  }
2724
10.9M
  SharedCtor();
2725
  // @@protoc_insertion_point(constructor:yb.PgsqlColumnRefsPB)
2726
10.9M
}
2727
PgsqlColumnRefsPB::PgsqlColumnRefsPB(const PgsqlColumnRefsPB& from)
2728
  : ::google::protobuf::Message(),
2729
      _internal_metadata_(NULL),
2730
      _has_bits_(from._has_bits_),
2731
      _cached_size_(0),
2732
0
      ids_(from.ids_) {
2733
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2734
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlColumnRefsPB)
2735
0
}
2736
2737
10.9M
void PgsqlColumnRefsPB::SharedCtor() {
2738
10.9M
  _cached_size_ = 0;
2739
10.9M
}
2740
2741
10.9M
PgsqlColumnRefsPB::~PgsqlColumnRefsPB() {
2742
  // @@protoc_insertion_point(destructor:yb.PgsqlColumnRefsPB)
2743
10.9M
  SharedDtor();
2744
10.9M
}
2745
2746
10.9M
void PgsqlColumnRefsPB::SharedDtor() {
2747
10.9M
}
2748
2749
0
void PgsqlColumnRefsPB::SetCachedSize(int size) const {
2750
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2751
0
  _cached_size_ = size;
2752
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2753
0
}
2754
0
const ::google::protobuf::Descriptor* PgsqlColumnRefsPB::descriptor() {
2755
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2756
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2757
0
}
2758
2759
0
const PgsqlColumnRefsPB& PgsqlColumnRefsPB::default_instance() {
2760
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
2761
0
  return *internal_default_instance();
2762
0
}
2763
2764
0
PgsqlColumnRefsPB* PgsqlColumnRefsPB::New(::google::protobuf::Arena* arena) const {
2765
0
  PgsqlColumnRefsPB* n = new PgsqlColumnRefsPB;
2766
0
  if (arena != NULL) {
2767
0
    arena->Own(n);
2768
0
  }
2769
0
  return n;
2770
0
}
2771
2772
2.84M
void PgsqlColumnRefsPB::Clear() {
2773
// @@protoc_insertion_point(message_clear_start:yb.PgsqlColumnRefsPB)
2774
2.84M
  ::google::protobuf::uint32 cached_has_bits = 0;
2775
  // Prevent compiler warnings about cached_has_bits being unused
2776
2.84M
  (void) cached_has_bits;
2777
2778
2.84M
  ids_.Clear();
2779
2.84M
  _has_bits_.Clear();
2780
2.84M
  _internal_metadata_.Clear();
2781
2.84M
}
2782
2783
bool PgsqlColumnRefsPB::MergePartialFromCodedStream(
2784
6.68M
    ::google::protobuf::io::CodedInputStream* input) {
2785
5.58M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2786
6.68M
  ::google::protobuf::uint32 tag;
2787
  // @@protoc_insertion_point(parse_start:yb.PgsqlColumnRefsPB)
2788
12.2M
  for (;;) {
2789
12.2M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2790
12.2M
    tag = p.first;
2791
12.2M
    if (!p.second) goto handle_unusual;
2792
5.58M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2793
      // repeated int32 ids = 1;
2794
5.58M
      case 1: {
2795
5.58M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2796
5.58M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2797
5.58M
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
2798
5.58M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2799
5.58M
                 1, 8u, input, this->mutable_ids())));
2800
18.4E
        } else if (
2801
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
2802
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2803
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
2804
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2805
0
                 input, this->mutable_ids())));
2806
18.4E
        } else {
2807
18.4E
          goto handle_unusual;
2808
18.4E
        }
2809
5.58M
        break;
2810
6.68M
      }
2811
2812
0
      default: {
2813
6.68M
      handle_unusual:
2814
6.68M
        if (tag == 0) {
2815
6.68M
          goto success;
2816
6.68M
        }
2817
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2818
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2819
18.4E
        break;
2820
18.4E
      }
2821
5.58M
    }
2822
5.58M
  }
2823
6.68M
success:
2824
  // @@protoc_insertion_point(parse_success:yb.PgsqlColumnRefsPB)
2825
6.68M
  return true;
2826
0
failure:
2827
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColumnRefsPB)
2828
0
  return false;
2829
6.68M
#undef DO_
2830
6.68M
}
2831
2832
void PgsqlColumnRefsPB::SerializeWithCachedSizes(
2833
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2834
  // @@protoc_insertion_point(serialize_start:yb.PgsqlColumnRefsPB)
2835
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2836
0
  (void) cached_has_bits;
2837
2838
  // repeated int32 ids = 1;
2839
0
  for (int i = 0, n = this->ids_size(); i < n; i++) {
2840
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
2841
0
      1, this->ids(i), output);
2842
0
  }
2843
2844
0
  if (_internal_metadata_.have_unknown_fields()) {
2845
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2846
0
        _internal_metadata_.unknown_fields(), output);
2847
0
  }
2848
  // @@protoc_insertion_point(serialize_end:yb.PgsqlColumnRefsPB)
2849
0
}
2850
2851
::google::protobuf::uint8* PgsqlColumnRefsPB::InternalSerializeWithCachedSizesToArray(
2852
6.68M
    bool deterministic, ::google::protobuf::uint8* target) const {
2853
6.68M
  (void)deterministic; // Unused
2854
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColumnRefsPB)
2855
6.68M
  ::google::protobuf::uint32 cached_has_bits = 0;
2856
6.68M
  (void) cached_has_bits;
2857
2858
  // repeated int32 ids = 1;
2859
6.68M
  target = ::google::protobuf::internal::WireFormatLite::
2860
6.68M
    WriteInt32ToArray(1, this->ids_, target);
2861
2862
6.68M
  if (_internal_metadata_.have_unknown_fields()) {
2863
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2864
0
        _internal_metadata_.unknown_fields(), target);
2865
0
  }
2866
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlColumnRefsPB)
2867
6.68M
  return target;
2868
6.68M
}
2869
2870
13.3M
size_t PgsqlColumnRefsPB::ByteSizeLong() const {
2871
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColumnRefsPB)
2872
13.3M
  size_t total_size = 0;
2873
2874
13.3M
  if (_internal_metadata_.have_unknown_fields()) {
2875
0
    total_size +=
2876
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2877
0
        _internal_metadata_.unknown_fields());
2878
0
  }
2879
  // repeated int32 ids = 1;
2880
13.3M
  {
2881
13.3M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
2882
13.3M
      Int32Size(this->ids_);
2883
13.3M
    total_size += 1 *
2884
13.3M
                  ::google::protobuf::internal::FromIntSize(this->ids_size());
2885
13.3M
    total_size += data_size;
2886
13.3M
  }
2887
2888
13.3M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2889
13.3M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2890
13.3M
  _cached_size_ = cached_size;
2891
13.3M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2892
13.3M
  return total_size;
2893
13.3M
}
2894
2895
0
void PgsqlColumnRefsPB::MergeFrom(const ::google::protobuf::Message& from) {
2896
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlColumnRefsPB)
2897
0
  GOOGLE_DCHECK_NE(&from, this);
2898
0
  const PgsqlColumnRefsPB* source =
2899
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlColumnRefsPB>(
2900
0
          &from);
2901
0
  if (source == NULL) {
2902
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlColumnRefsPB)
2903
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2904
0
  } else {
2905
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlColumnRefsPB)
2906
0
    MergeFrom(*source);
2907
0
  }
2908
0
}
2909
2910
1.45M
void PgsqlColumnRefsPB::MergeFrom(const PgsqlColumnRefsPB& from) {
2911
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlColumnRefsPB)
2912
1.45M
  GOOGLE_DCHECK_NE(&from, this);
2913
1.45M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2914
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
2915
1.45M
  (void) cached_has_bits;
2916
2917
1.45M
  ids_.MergeFrom(from.ids_);
2918
1.45M
}
2919
2920
0
void PgsqlColumnRefsPB::CopyFrom(const ::google::protobuf::Message& from) {
2921
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlColumnRefsPB)
2922
0
  if (&from == this) return;
2923
0
  Clear();
2924
0
  MergeFrom(from);
2925
0
}
2926
2927
0
void PgsqlColumnRefsPB::CopyFrom(const PgsqlColumnRefsPB& from) {
2928
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlColumnRefsPB)
2929
0
  if (&from == this) return;
2930
0
  Clear();
2931
0
  MergeFrom(from);
2932
0
}
2933
2934
0
bool PgsqlColumnRefsPB::IsInitialized() const {
2935
0
  return true;
2936
0
}
2937
2938
0
void PgsqlColumnRefsPB::Swap(PgsqlColumnRefsPB* other) {
2939
0
  if (other == this) return;
2940
0
  InternalSwap(other);
2941
0
}
2942
0
void PgsqlColumnRefsPB::InternalSwap(PgsqlColumnRefsPB* other) {
2943
0
  using std::swap;
2944
0
  ids_.InternalSwap(&other->ids_);
2945
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2946
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2947
0
  swap(_cached_size_, other->_cached_size_);
2948
0
}
2949
2950
6.68M
::google::protobuf::Metadata PgsqlColumnRefsPB::GetMetadata() const {
2951
6.68M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2952
6.68M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2953
6.68M
}
2954
2955
2956
// ===================================================================
2957
2958
17.1k
void PgsqlColRefPB::InitAsDefaultInstance() {
2959
17.1k
}
2960
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2961
const int PgsqlColRefPB::kColumnIdFieldNumber;
2962
const int PgsqlColRefPB::kAttnoFieldNumber;
2963
const int PgsqlColRefPB::kTypidFieldNumber;
2964
const int PgsqlColRefPB::kTypmodFieldNumber;
2965
const int PgsqlColRefPB::kCollidFieldNumber;
2966
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2967
2968
PgsqlColRefPB::PgsqlColRefPB()
2969
33.4M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2970
33.4M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2971
33.4M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
2972
33.4M
  }
2973
33.4M
  SharedCtor();
2974
  // @@protoc_insertion_point(constructor:yb.PgsqlColRefPB)
2975
33.4M
}
2976
PgsqlColRefPB::PgsqlColRefPB(const PgsqlColRefPB& from)
2977
  : ::google::protobuf::Message(),
2978
      _internal_metadata_(NULL),
2979
      _has_bits_(from._has_bits_),
2980
0
      _cached_size_(0) {
2981
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2982
0
  ::memcpy(&column_id_, &from.column_id_,
2983
0
    static_cast<size_t>(reinterpret_cast<char*>(&collid_) -
2984
0
    reinterpret_cast<char*>(&column_id_)) + sizeof(collid_));
2985
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlColRefPB)
2986
0
}
2987
2988
33.4M
void PgsqlColRefPB::SharedCtor() {
2989
33.4M
  _cached_size_ = 0;
2990
33.4M
  ::memset(&column_id_, 0, static_cast<size_t>(
2991
33.4M
      reinterpret_cast<char*>(&collid_) -
2992
33.4M
      reinterpret_cast<char*>(&column_id_)) + sizeof(collid_));
2993
33.4M
}
2994
2995
33.4M
PgsqlColRefPB::~PgsqlColRefPB() {
2996
  // @@protoc_insertion_point(destructor:yb.PgsqlColRefPB)
2997
33.4M
  SharedDtor();
2998
33.4M
}
2999
3000
33.4M
void PgsqlColRefPB::SharedDtor() {
3001
33.4M
}
3002
3003
0
void PgsqlColRefPB::SetCachedSize(int size) const {
3004
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3005
0
  _cached_size_ = size;
3006
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3007
0
}
3008
0
const ::google::protobuf::Descriptor* PgsqlColRefPB::descriptor() {
3009
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3010
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3011
0
}
3012
3013
0
const PgsqlColRefPB& PgsqlColRefPB::default_instance() {
3014
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
3015
0
  return *internal_default_instance();
3016
0
}
3017
3018
0
PgsqlColRefPB* PgsqlColRefPB::New(::google::protobuf::Arena* arena) const {
3019
0
  PgsqlColRefPB* n = new PgsqlColRefPB;
3020
0
  if (arena != NULL) {
3021
0
    arena->Own(n);
3022
0
  }
3023
0
  return n;
3024
0
}
3025
3026
0
void PgsqlColRefPB::Clear() {
3027
// @@protoc_insertion_point(message_clear_start:yb.PgsqlColRefPB)
3028
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3029
  // Prevent compiler warnings about cached_has_bits being unused
3030
0
  (void) cached_has_bits;
3031
3032
0
  cached_has_bits = _has_bits_[0];
3033
0
  if (cached_has_bits & 31u) {
3034
0
    ::memset(&column_id_, 0, static_cast<size_t>(
3035
0
        reinterpret_cast<char*>(&collid_) -
3036
0
        reinterpret_cast<char*>(&column_id_)) + sizeof(collid_));
3037
0
  }
3038
0
  _has_bits_.Clear();
3039
0
  _internal_metadata_.Clear();
3040
0
}
3041
3042
bool PgsqlColRefPB::MergePartialFromCodedStream(
3043
21.1M
    ::google::protobuf::io::CodedInputStream* input) {
3044
42.3M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3045
21.1M
  ::google::protobuf::uint32 tag;
3046
  // @@protoc_insertion_point(parse_start:yb.PgsqlColRefPB)
3047
63.5M
  for (;;) {
3048
63.5M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3049
63.5M
    tag = p.first;
3050
63.5M
    if (!p.second) goto handle_unusual;
3051
42.3M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3052
      // optional int32 column_id = 1;
3053
21.1M
      case 1: {
3054
21.1M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3055
21.1M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3056
21.1M
          set_has_column_id();
3057
21.1M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3058
21.1M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3059
21.1M
                 input, &column_id_)));
3060
18.4E
        } else {
3061
18.4E
          goto handle_unusual;
3062
18.4E
        }
3063
21.1M
        break;
3064
21.1M
      }
3065
3066
      // optional int32 attno = 2;
3067
21.1M
      case 2: {
3068
21.1M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3069
21.1M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3070
21.1M
          set_has_attno();
3071
21.1M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3072
21.1M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3073
21.1M
                 input, &attno_)));
3074
18.4E
        } else {
3075
18.4E
          goto handle_unusual;
3076
18.4E
        }
3077
21.1M
        break;
3078
21.1M
      }
3079
3080
      // optional int32 typid = 3;
3081
8.45k
      case 3: {
3082
8.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3083
8.45k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3084
8.45k
          set_has_typid();
3085
8.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3086
8.45k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3087
8.45k
                 input, &typid_)));
3088
0
        } else {
3089
0
          goto handle_unusual;
3090
0
        }
3091
8.45k
        break;
3092
8.45k
      }
3093
3094
      // optional int32 typmod = 4;
3095
8.45k
      case 4: {
3096
8.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3097
8.45k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3098
8.45k
          set_has_typmod();
3099
8.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3100
8.45k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3101
8.45k
                 input, &typmod_)));
3102
0
        } else {
3103
0
          goto handle_unusual;
3104
0
        }
3105
8.45k
        break;
3106
8.45k
      }
3107
3108
      // optional int32 collid = 5;
3109
8.45k
      case 5: {
3110
8.45k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3111
8.45k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
3112
8.45k
          set_has_collid();
3113
8.45k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3114
8.45k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3115
8.45k
                 input, &collid_)));
3116
0
        } else {
3117
0
          goto handle_unusual;
3118
0
        }
3119
8.45k
        break;
3120
21.1M
      }
3121
3122
0
      default: {
3123
21.1M
      handle_unusual:
3124
21.1M
        if (tag == 0) {
3125
21.1M
          goto success;
3126
21.1M
        }
3127
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3128
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3129
18.4E
        break;
3130
18.4E
      }
3131
42.3M
    }
3132
42.3M
  }
3133
21.1M
success:
3134
  // @@protoc_insertion_point(parse_success:yb.PgsqlColRefPB)
3135
21.1M
  return true;
3136
0
failure:
3137
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColRefPB)
3138
0
  return false;
3139
21.1M
#undef DO_
3140
21.1M
}
3141
3142
void PgsqlColRefPB::SerializeWithCachedSizes(
3143
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3144
  // @@protoc_insertion_point(serialize_start:yb.PgsqlColRefPB)
3145
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3146
0
  (void) cached_has_bits;
3147
3148
0
  cached_has_bits = _has_bits_[0];
3149
  // optional int32 column_id = 1;
3150
0
  if (cached_has_bits & 0x00000001u) {
3151
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output);
3152
0
  }
3153
3154
  // optional int32 attno = 2;
3155
0
  if (cached_has_bits & 0x00000002u) {
3156
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->attno(), output);
3157
0
  }
3158
3159
  // optional int32 typid = 3;
3160
0
  if (cached_has_bits & 0x00000004u) {
3161
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->typid(), output);
3162
0
  }
3163
3164
  // optional int32 typmod = 4;
3165
0
  if (cached_has_bits & 0x00000008u) {
3166
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->typmod(), output);
3167
0
  }
3168
3169
  // optional int32 collid = 5;
3170
0
  if (cached_has_bits & 0x00000010u) {
3171
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->collid(), output);
3172
0
  }
3173
3174
0
  if (_internal_metadata_.have_unknown_fields()) {
3175
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3176
0
        _internal_metadata_.unknown_fields(), output);
3177
0
  }
3178
  // @@protoc_insertion_point(serialize_end:yb.PgsqlColRefPB)
3179
0
}
3180
3181
::google::protobuf::uint8* PgsqlColRefPB::InternalSerializeWithCachedSizesToArray(
3182
21.1M
    bool deterministic, ::google::protobuf::uint8* target) const {
3183
21.1M
  (void)deterministic; // Unused
3184
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColRefPB)
3185
21.1M
  ::google::protobuf::uint32 cached_has_bits = 0;
3186
21.1M
  (void) cached_has_bits;
3187
3188
21.1M
  cached_has_bits = _has_bits_[0];
3189
  // optional int32 column_id = 1;
3190
21.1M
  if (cached_has_bits & 0x00000001u) {
3191
21.1M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
3192
21.1M
  }
3193
3194
  // optional int32 attno = 2;
3195
21.1M
  if (cached_has_bits & 0x00000002u) {
3196
21.1M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->attno(), target);
3197
21.1M
  }
3198
3199
  // optional int32 typid = 3;
3200
21.1M
  if (cached_has_bits & 0x00000004u) {
3201
8.45k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->typid(), target);
3202
8.45k
  }
3203
3204
  // optional int32 typmod = 4;
3205
21.1M
  if (cached_has_bits & 0x00000008u) {
3206
8.45k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->typmod(), target);
3207
8.45k
  }
3208
3209
  // optional int32 collid = 5;
3210
21.1M
  if (cached_has_bits & 0x00000010u) {
3211
8.45k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->collid(), target);
3212
8.45k
  }
3213
3214
21.1M
  if (_internal_metadata_.have_unknown_fields()) {
3215
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3216
0
        _internal_metadata_.unknown_fields(), target);
3217
0
  }
3218
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlColRefPB)
3219
21.1M
  return target;
3220
21.1M
}
3221
3222
42.3M
size_t PgsqlColRefPB::ByteSizeLong() const {
3223
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColRefPB)
3224
42.3M
  size_t total_size = 0;
3225
3226
42.3M
  if (_internal_metadata_.have_unknown_fields()) {
3227
0
    total_size +=
3228
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3229
0
        _internal_metadata_.unknown_fields());
3230
0
  }
3231
42.3M
  if (_has_bits_[0 / 32] & 31u) {
3232
    // optional int32 column_id = 1;
3233
42.3M
    if (has_column_id()) {
3234
42.3M
      total_size += 1 +
3235
42.3M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3236
42.3M
          this->column_id());
3237
42.3M
    }
3238
3239
    // optional int32 attno = 2;
3240
42.3M
    if (has_attno()) {
3241
42.3M
      total_size += 1 +
3242
42.3M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3243
42.3M
          this->attno());
3244
42.3M
    }
3245
3246
    // optional int32 typid = 3;
3247
42.3M
    if (has_typid()) {
3248
16.9k
      total_size += 1 +
3249
16.9k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3250
16.9k
          this->typid());
3251
16.9k
    }
3252
3253
    // optional int32 typmod = 4;
3254
42.3M
    if (has_typmod()) {
3255
16.9k
      total_size += 1 +
3256
16.9k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3257
16.9k
          this->typmod());
3258
16.9k
    }
3259
3260
    // optional int32 collid = 5;
3261
42.3M
    if (has_collid()) {
3262
16.9k
      total_size += 1 +
3263
16.9k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3264
16.9k
          this->collid());
3265
16.9k
    }
3266
3267
42.3M
  }
3268
42.3M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3269
42.3M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3270
42.3M
  _cached_size_ = cached_size;
3271
42.3M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3272
42.3M
  return total_size;
3273
42.3M
}
3274
3275
0
void PgsqlColRefPB::MergeFrom(const ::google::protobuf::Message& from) {
3276
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlColRefPB)
3277
0
  GOOGLE_DCHECK_NE(&from, this);
3278
0
  const PgsqlColRefPB* source =
3279
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlColRefPB>(
3280
0
          &from);
3281
0
  if (source == NULL) {
3282
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlColRefPB)
3283
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3284
0
  } else {
3285
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlColRefPB)
3286
0
    MergeFrom(*source);
3287
0
  }
3288
0
}
3289
3290
4.93M
void PgsqlColRefPB::MergeFrom(const PgsqlColRefPB& from) {
3291
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlColRefPB)
3292
4.93M
  GOOGLE_DCHECK_NE(&from, this);
3293
4.93M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3294
4.93M
  ::google::protobuf::uint32 cached_has_bits = 0;
3295
4.93M
  (void) cached_has_bits;
3296
3297
4.93M
  cached_has_bits = from._has_bits_[0];
3298
4.93M
  if (cached_has_bits & 31u) {
3299
4.93M
    if (cached_has_bits & 0x00000001u) {
3300
4.93M
      column_id_ = from.column_id_;
3301
4.93M
    }
3302
4.93M
    if (cached_has_bits & 0x00000002u) {
3303
4.93M
      attno_ = from.attno_;
3304
4.93M
    }
3305
4.93M
    if (cached_has_bits & 0x00000004u) {
3306
364
      typid_ = from.typid_;
3307
364
    }
3308
4.93M
    if (cached_has_bits & 0x00000008u) {
3309
364
      typmod_ = from.typmod_;
3310
364
    }
3311
4.93M
    if (cached_has_bits & 0x00000010u) {
3312
364
      collid_ = from.collid_;
3313
364
    }
3314
4.93M
    _has_bits_[0] |= cached_has_bits;
3315
4.93M
  }
3316
4.93M
}
3317
3318
0
void PgsqlColRefPB::CopyFrom(const ::google::protobuf::Message& from) {
3319
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlColRefPB)
3320
0
  if (&from == this) return;
3321
0
  Clear();
3322
0
  MergeFrom(from);
3323
0
}
3324
3325
0
void PgsqlColRefPB::CopyFrom(const PgsqlColRefPB& from) {
3326
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlColRefPB)
3327
0
  if (&from == this) return;
3328
0
  Clear();
3329
0
  MergeFrom(from);
3330
0
}
3331
3332
0
bool PgsqlColRefPB::IsInitialized() const {
3333
0
  return true;
3334
0
}
3335
3336
0
void PgsqlColRefPB::Swap(PgsqlColRefPB* other) {
3337
0
  if (other == this) return;
3338
0
  InternalSwap(other);
3339
0
}
3340
0
void PgsqlColRefPB::InternalSwap(PgsqlColRefPB* other) {
3341
0
  using std::swap;
3342
0
  swap(column_id_, other->column_id_);
3343
0
  swap(attno_, other->attno_);
3344
0
  swap(typid_, other->typid_);
3345
0
  swap(typmod_, other->typmod_);
3346
0
  swap(collid_, other->collid_);
3347
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3348
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3349
0
  swap(_cached_size_, other->_cached_size_);
3350
0
}
3351
3352
21.1M
::google::protobuf::Metadata PgsqlColRefPB::GetMetadata() const {
3353
21.1M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3354
21.1M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3355
21.1M
}
3356
3357
3358
// ===================================================================
3359
3360
17.1k
void PgsqlColumnValuePB::InitAsDefaultInstance() {
3361
17.1k
  ::yb::_PgsqlColumnValuePB_default_instance_._instance.get_mutable()->expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
3362
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
3363
17.1k
}
3364
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3365
const int PgsqlColumnValuePB::kColumnIdFieldNumber;
3366
const int PgsqlColumnValuePB::kExprFieldNumber;
3367
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3368
3369
PgsqlColumnValuePB::PgsqlColumnValuePB()
3370
17.6M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3371
17.6M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3372
17.6M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnValuePB();
3373
17.6M
  }
3374
17.6M
  SharedCtor();
3375
  // @@protoc_insertion_point(constructor:yb.PgsqlColumnValuePB)
3376
17.6M
}
3377
PgsqlColumnValuePB::PgsqlColumnValuePB(const PgsqlColumnValuePB& from)
3378
  : ::google::protobuf::Message(),
3379
      _internal_metadata_(NULL),
3380
      _has_bits_(from._has_bits_),
3381
0
      _cached_size_(0) {
3382
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3383
0
  if (from.has_expr()) {
3384
0
    expr_ = new ::yb::PgsqlExpressionPB(*from.expr_);
3385
0
  } else {
3386
0
    expr_ = NULL;
3387
0
  }
3388
0
  column_id_ = from.column_id_;
3389
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlColumnValuePB)
3390
0
}
3391
3392
17.6M
void PgsqlColumnValuePB::SharedCtor() {
3393
17.6M
  _cached_size_ = 0;
3394
17.6M
  ::memset(&expr_, 0, static_cast<size_t>(
3395
17.6M
      reinterpret_cast<char*>(&column_id_) -
3396
17.6M
      reinterpret_cast<char*>(&expr_)) + sizeof(column_id_));
3397
17.6M
}
3398
3399
17.6M
PgsqlColumnValuePB::~PgsqlColumnValuePB() {
3400
  // @@protoc_insertion_point(destructor:yb.PgsqlColumnValuePB)
3401
17.6M
  SharedDtor();
3402
17.6M
}
3403
3404
17.6M
void PgsqlColumnValuePB::SharedDtor() {
3405
17.6M
  if (this != internal_default_instance()) delete expr_;
3406
17.6M
}
3407
3408
0
void PgsqlColumnValuePB::SetCachedSize(int size) const {
3409
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3410
0
  _cached_size_ = size;
3411
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3412
0
}
3413
0
const ::google::protobuf::Descriptor* PgsqlColumnValuePB::descriptor() {
3414
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3415
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3416
0
}
3417
3418
0
const PgsqlColumnValuePB& PgsqlColumnValuePB::default_instance() {
3419
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnValuePB();
3420
0
  return *internal_default_instance();
3421
0
}
3422
3423
0
PgsqlColumnValuePB* PgsqlColumnValuePB::New(::google::protobuf::Arena* arena) const {
3424
0
  PgsqlColumnValuePB* n = new PgsqlColumnValuePB;
3425
0
  if (arena != NULL) {
3426
0
    arena->Own(n);
3427
0
  }
3428
0
  return n;
3429
0
}
3430
3431
0
void PgsqlColumnValuePB::Clear() {
3432
// @@protoc_insertion_point(message_clear_start:yb.PgsqlColumnValuePB)
3433
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3434
  // Prevent compiler warnings about cached_has_bits being unused
3435
0
  (void) cached_has_bits;
3436
3437
0
  cached_has_bits = _has_bits_[0];
3438
0
  if (cached_has_bits & 0x00000001u) {
3439
0
    GOOGLE_DCHECK(expr_ != NULL);
3440
0
    expr_->Clear();
3441
0
  }
3442
0
  column_id_ = 0;
3443
0
  _has_bits_.Clear();
3444
0
  _internal_metadata_.Clear();
3445
0
}
3446
3447
bool PgsqlColumnValuePB::MergePartialFromCodedStream(
3448
7.33M
    ::google::protobuf::io::CodedInputStream* input) {
3449
14.6M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3450
7.33M
  ::google::protobuf::uint32 tag;
3451
  // @@protoc_insertion_point(parse_start:yb.PgsqlColumnValuePB)
3452
21.9M
  for (;;) {
3453
21.9M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3454
21.9M
    tag = p.first;
3455
21.9M
    if (!p.second) goto handle_unusual;
3456
14.6M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3457
      // optional int32 column_id = 1;
3458
7.33M
      case 1: {
3459
7.33M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3460
7.33M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3461
7.33M
          set_has_column_id();
3462
7.33M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3463
7.33M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3464
7.33M
                 input, &column_id_)));
3465
167
        } else {
3466
167
          goto handle_unusual;
3467
167
        }
3468
7.33M
        break;
3469
7.33M
      }
3470
3471
      // optional .yb.PgsqlExpressionPB expr = 2;
3472
7.33M
      case 2: {
3473
7.33M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3474
7.33M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3475
7.33M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3476
7.33M
               input, mutable_expr()));
3477
18.4E
        } else {
3478
18.4E
          goto handle_unusual;
3479
18.4E
        }
3480
7.33M
        break;
3481
7.33M
      }
3482
3483
0
      default: {
3484
7.33M
      handle_unusual:
3485
7.33M
        if (tag == 0) {
3486
7.33M
          goto success;
3487
7.33M
        }
3488
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3489
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3490
18.4E
        break;
3491
18.4E
      }
3492
14.6M
    }
3493
14.6M
  }
3494
7.33M
success:
3495
  // @@protoc_insertion_point(parse_success:yb.PgsqlColumnValuePB)
3496
7.33M
  return true;
3497
0
failure:
3498
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColumnValuePB)
3499
0
  return false;
3500
7.33M
#undef DO_
3501
7.33M
}
3502
3503
void PgsqlColumnValuePB::SerializeWithCachedSizes(
3504
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3505
  // @@protoc_insertion_point(serialize_start:yb.PgsqlColumnValuePB)
3506
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3507
0
  (void) cached_has_bits;
3508
3509
0
  cached_has_bits = _has_bits_[0];
3510
  // optional int32 column_id = 1;
3511
0
  if (cached_has_bits & 0x00000002u) {
3512
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->column_id(), output);
3513
0
  }
3514
3515
  // optional .yb.PgsqlExpressionPB expr = 2;
3516
0
  if (cached_has_bits & 0x00000001u) {
3517
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3518
0
      2, *this->expr_, output);
3519
0
  }
3520
3521
0
  if (_internal_metadata_.have_unknown_fields()) {
3522
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3523
0
        _internal_metadata_.unknown_fields(), output);
3524
0
  }
3525
  // @@protoc_insertion_point(serialize_end:yb.PgsqlColumnValuePB)
3526
0
}
3527
3528
::google::protobuf::uint8* PgsqlColumnValuePB::InternalSerializeWithCachedSizesToArray(
3529
7.33M
    bool deterministic, ::google::protobuf::uint8* target) const {
3530
7.33M
  (void)deterministic; // Unused
3531
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColumnValuePB)
3532
7.33M
  ::google::protobuf::uint32 cached_has_bits = 0;
3533
7.33M
  (void) cached_has_bits;
3534
3535
7.33M
  cached_has_bits = _has_bits_[0];
3536
  // optional int32 column_id = 1;
3537
7.33M
  if (cached_has_bits & 0x00000002u) {
3538
7.33M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
3539
7.33M
  }
3540
3541
  // optional .yb.PgsqlExpressionPB expr = 2;
3542
7.33M
  if (cached_has_bits & 0x00000001u) {
3543
7.33M
    target = ::google::protobuf::internal::WireFormatLite::
3544
7.33M
      InternalWriteMessageToArray(
3545
7.33M
        2, *this->expr_, deterministic, target);
3546
7.33M
  }
3547
3548
7.33M
  if (_internal_metadata_.have_unknown_fields()) {
3549
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3550
0
        _internal_metadata_.unknown_fields(), target);
3551
0
  }
3552
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlColumnValuePB)
3553
7.33M
  return target;
3554
7.33M
}
3555
3556
75.4M
size_t PgsqlColumnValuePB::ByteSizeLong() const {
3557
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColumnValuePB)
3558
75.4M
  size_t total_size = 0;
3559
3560
75.4M
  if (_internal_metadata_.have_unknown_fields()) {
3561
0
    total_size +=
3562
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3563
0
        _internal_metadata_.unknown_fields());
3564
0
  }
3565
75.4M
  if (_has_bits_[0 / 32] & 3u) {
3566
    // optional .yb.PgsqlExpressionPB expr = 2;
3567
75.4M
    if (has_expr()) {
3568
75.4M
      total_size += 1 +
3569
75.4M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3570
75.4M
          *this->expr_);
3571
75.4M
    }
3572
3573
    // optional int32 column_id = 1;
3574
75.4M
    if (has_column_id()) {
3575
75.4M
      total_size += 1 +
3576
75.4M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3577
75.4M
          this->column_id());
3578
75.4M
    }
3579
3580
75.4M
  }
3581
75.4M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3582
75.4M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3583
75.4M
  _cached_size_ = cached_size;
3584
75.4M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3585
75.4M
  return total_size;
3586
75.4M
}
3587
3588
0
void PgsqlColumnValuePB::MergeFrom(const ::google::protobuf::Message& from) {
3589
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlColumnValuePB)
3590
0
  GOOGLE_DCHECK_NE(&from, this);
3591
0
  const PgsqlColumnValuePB* source =
3592
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlColumnValuePB>(
3593
0
          &from);
3594
0
  if (source == NULL) {
3595
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlColumnValuePB)
3596
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3597
0
  } else {
3598
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlColumnValuePB)
3599
0
    MergeFrom(*source);
3600
0
  }
3601
0
}
3602
3603
0
void PgsqlColumnValuePB::MergeFrom(const PgsqlColumnValuePB& from) {
3604
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlColumnValuePB)
3605
0
  GOOGLE_DCHECK_NE(&from, this);
3606
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3607
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3608
0
  (void) cached_has_bits;
3609
3610
0
  cached_has_bits = from._has_bits_[0];
3611
0
  if (cached_has_bits & 3u) {
3612
0
    if (cached_has_bits & 0x00000001u) {
3613
0
      mutable_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.expr());
3614
0
    }
3615
0
    if (cached_has_bits & 0x00000002u) {
3616
0
      column_id_ = from.column_id_;
3617
0
    }
3618
0
    _has_bits_[0] |= cached_has_bits;
3619
0
  }
3620
0
}
3621
3622
0
void PgsqlColumnValuePB::CopyFrom(const ::google::protobuf::Message& from) {
3623
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlColumnValuePB)
3624
0
  if (&from == this) return;
3625
0
  Clear();
3626
0
  MergeFrom(from);
3627
0
}
3628
3629
0
void PgsqlColumnValuePB::CopyFrom(const PgsqlColumnValuePB& from) {
3630
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlColumnValuePB)
3631
0
  if (&from == this) return;
3632
0
  Clear();
3633
0
  MergeFrom(from);
3634
0
}
3635
3636
0
bool PgsqlColumnValuePB::IsInitialized() const {
3637
0
  return true;
3638
0
}
3639
3640
0
void PgsqlColumnValuePB::Swap(PgsqlColumnValuePB* other) {
3641
0
  if (other == this) return;
3642
0
  InternalSwap(other);
3643
0
}
3644
0
void PgsqlColumnValuePB::InternalSwap(PgsqlColumnValuePB* other) {
3645
0
  using std::swap;
3646
0
  swap(expr_, other->expr_);
3647
0
  swap(column_id_, other->column_id_);
3648
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3649
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3650
0
  swap(_cached_size_, other->_cached_size_);
3651
0
}
3652
3653
7.33M
::google::protobuf::Metadata PgsqlColumnValuePB::GetMetadata() const {
3654
7.33M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3655
7.33M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3656
7.33M
}
3657
3658
3659
// ===================================================================
3660
3661
17.1k
void PgsqlRSColDescPB::InitAsDefaultInstance() {
3662
17.1k
  ::yb::_PgsqlRSColDescPB_default_instance_._instance.get_mutable()->ql_type_ = const_cast< ::yb::QLTypePB*>(
3663
17.1k
      ::yb::QLTypePB::internal_default_instance());
3664
17.1k
}
3665
0
void PgsqlRSColDescPB::clear_ql_type() {
3666
0
  if (ql_type_ != NULL) ql_type_->Clear();
3667
0
  clear_has_ql_type();
3668
0
}
3669
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3670
const int PgsqlRSColDescPB::kNameFieldNumber;
3671
const int PgsqlRSColDescPB::kQlTypeFieldNumber;
3672
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3673
3674
PgsqlRSColDescPB::PgsqlRSColDescPB()
3675
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3676
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3677
0
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSColDescPB();
3678
0
  }
3679
17.1k
  SharedCtor();
3680
  // @@protoc_insertion_point(constructor:yb.PgsqlRSColDescPB)
3681
17.1k
}
3682
PgsqlRSColDescPB::PgsqlRSColDescPB(const PgsqlRSColDescPB& from)
3683
  : ::google::protobuf::Message(),
3684
      _internal_metadata_(NULL),
3685
      _has_bits_(from._has_bits_),
3686
0
      _cached_size_(0) {
3687
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3688
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3689
0
  if (from.has_name()) {
3690
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3691
0
  }
3692
0
  if (from.has_ql_type()) {
3693
0
    ql_type_ = new ::yb::QLTypePB(*from.ql_type_);
3694
0
  } else {
3695
0
    ql_type_ = NULL;
3696
0
  }
3697
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlRSColDescPB)
3698
0
}
3699
3700
17.1k
void PgsqlRSColDescPB::SharedCtor() {
3701
17.1k
  _cached_size_ = 0;
3702
17.1k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3703
17.1k
  ql_type_ = NULL;
3704
17.1k
}
3705
3706
0
PgsqlRSColDescPB::~PgsqlRSColDescPB() {
3707
  // @@protoc_insertion_point(destructor:yb.PgsqlRSColDescPB)
3708
0
  SharedDtor();
3709
0
}
3710
3711
0
void PgsqlRSColDescPB::SharedDtor() {
3712
0
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3713
0
  if (this != internal_default_instance()) delete ql_type_;
3714
0
}
3715
3716
0
void PgsqlRSColDescPB::SetCachedSize(int size) const {
3717
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3718
0
  _cached_size_ = size;
3719
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3720
0
}
3721
0
const ::google::protobuf::Descriptor* PgsqlRSColDescPB::descriptor() {
3722
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3723
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3724
0
}
3725
3726
0
const PgsqlRSColDescPB& PgsqlRSColDescPB::default_instance() {
3727
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSColDescPB();
3728
0
  return *internal_default_instance();
3729
0
}
3730
3731
0
PgsqlRSColDescPB* PgsqlRSColDescPB::New(::google::protobuf::Arena* arena) const {
3732
0
  PgsqlRSColDescPB* n = new PgsqlRSColDescPB;
3733
0
  if (arena != NULL) {
3734
0
    arena->Own(n);
3735
0
  }
3736
0
  return n;
3737
0
}
3738
3739
0
void PgsqlRSColDescPB::Clear() {
3740
// @@protoc_insertion_point(message_clear_start:yb.PgsqlRSColDescPB)
3741
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3742
  // Prevent compiler warnings about cached_has_bits being unused
3743
0
  (void) cached_has_bits;
3744
3745
0
  cached_has_bits = _has_bits_[0];
3746
0
  if (cached_has_bits & 3u) {
3747
0
    if (cached_has_bits & 0x00000001u) {
3748
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3749
0
      (*name_.UnsafeRawStringPointer())->clear();
3750
0
    }
3751
0
    if (cached_has_bits & 0x00000002u) {
3752
0
      GOOGLE_DCHECK(ql_type_ != NULL);
3753
0
      ql_type_->Clear();
3754
0
    }
3755
0
  }
3756
0
  _has_bits_.Clear();
3757
0
  _internal_metadata_.Clear();
3758
0
}
3759
3760
bool PgsqlRSColDescPB::MergePartialFromCodedStream(
3761
0
    ::google::protobuf::io::CodedInputStream* input) {
3762
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3763
0
  ::google::protobuf::uint32 tag;
3764
  // @@protoc_insertion_point(parse_start:yb.PgsqlRSColDescPB)
3765
0
  for (;;) {
3766
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3767
0
    tag = p.first;
3768
0
    if (!p.second) goto handle_unusual;
3769
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3770
      // optional string name = 1;
3771
0
      case 1: {
3772
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3773
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3774
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3775
0
                input, this->mutable_name()));
3776
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3777
0
            this->name().data(), static_cast<int>(this->name().length()),
3778
0
            ::google::protobuf::internal::WireFormat::PARSE,
3779
0
            "yb.PgsqlRSColDescPB.name");
3780
0
        } else {
3781
0
          goto handle_unusual;
3782
0
        }
3783
0
        break;
3784
0
      }
3785
3786
      // optional .yb.QLTypePB ql_type = 2;
3787
0
      case 2: {
3788
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3789
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3790
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3791
0
               input, mutable_ql_type()));
3792
0
        } else {
3793
0
          goto handle_unusual;
3794
0
        }
3795
0
        break;
3796
0
      }
3797
3798
0
      default: {
3799
0
      handle_unusual:
3800
0
        if (tag == 0) {
3801
0
          goto success;
3802
0
        }
3803
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3804
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3805
0
        break;
3806
0
      }
3807
0
    }
3808
0
  }
3809
0
success:
3810
  // @@protoc_insertion_point(parse_success:yb.PgsqlRSColDescPB)
3811
0
  return true;
3812
0
failure:
3813
  // @@protoc_insertion_point(parse_failure:yb.PgsqlRSColDescPB)
3814
0
  return false;
3815
0
#undef DO_
3816
0
}
3817
3818
void PgsqlRSColDescPB::SerializeWithCachedSizes(
3819
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3820
  // @@protoc_insertion_point(serialize_start:yb.PgsqlRSColDescPB)
3821
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3822
0
  (void) cached_has_bits;
3823
3824
0
  cached_has_bits = _has_bits_[0];
3825
  // optional string name = 1;
3826
0
  if (cached_has_bits & 0x00000001u) {
3827
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3828
0
      this->name().data(), static_cast<int>(this->name().length()),
3829
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3830
0
      "yb.PgsqlRSColDescPB.name");
3831
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3832
0
      1, this->name(), output);
3833
0
  }
3834
3835
  // optional .yb.QLTypePB ql_type = 2;
3836
0
  if (cached_has_bits & 0x00000002u) {
3837
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3838
0
      2, *this->ql_type_, output);
3839
0
  }
3840
3841
0
  if (_internal_metadata_.have_unknown_fields()) {
3842
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3843
0
        _internal_metadata_.unknown_fields(), output);
3844
0
  }
3845
  // @@protoc_insertion_point(serialize_end:yb.PgsqlRSColDescPB)
3846
0
}
3847
3848
::google::protobuf::uint8* PgsqlRSColDescPB::InternalSerializeWithCachedSizesToArray(
3849
0
    bool deterministic, ::google::protobuf::uint8* target) const {
3850
0
  (void)deterministic; // Unused
3851
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlRSColDescPB)
3852
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3853
0
  (void) cached_has_bits;
3854
3855
0
  cached_has_bits = _has_bits_[0];
3856
  // optional string name = 1;
3857
0
  if (cached_has_bits & 0x00000001u) {
3858
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3859
0
      this->name().data(), static_cast<int>(this->name().length()),
3860
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3861
0
      "yb.PgsqlRSColDescPB.name");
3862
0
    target =
3863
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3864
0
        1, this->name(), target);
3865
0
  }
3866
3867
  // optional .yb.QLTypePB ql_type = 2;
3868
0
  if (cached_has_bits & 0x00000002u) {
3869
0
    target = ::google::protobuf::internal::WireFormatLite::
3870
0
      InternalWriteMessageToArray(
3871
0
        2, *this->ql_type_, deterministic, target);
3872
0
  }
3873
3874
0
  if (_internal_metadata_.have_unknown_fields()) {
3875
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3876
0
        _internal_metadata_.unknown_fields(), target);
3877
0
  }
3878
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlRSColDescPB)
3879
0
  return target;
3880
0
}
3881
3882
0
size_t PgsqlRSColDescPB::ByteSizeLong() const {
3883
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlRSColDescPB)
3884
0
  size_t total_size = 0;
3885
3886
0
  if (_internal_metadata_.have_unknown_fields()) {
3887
0
    total_size +=
3888
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3889
0
        _internal_metadata_.unknown_fields());
3890
0
  }
3891
0
  if (_has_bits_[0 / 32] & 3u) {
3892
    // optional string name = 1;
3893
0
    if (has_name()) {
3894
0
      total_size += 1 +
3895
0
        ::google::protobuf::internal::WireFormatLite::StringSize(
3896
0
          this->name());
3897
0
    }
3898
3899
    // optional .yb.QLTypePB ql_type = 2;
3900
0
    if (has_ql_type()) {
3901
0
      total_size += 1 +
3902
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3903
0
          *this->ql_type_);
3904
0
    }
3905
3906
0
  }
3907
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3908
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3909
0
  _cached_size_ = cached_size;
3910
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3911
0
  return total_size;
3912
0
}
3913
3914
0
void PgsqlRSColDescPB::MergeFrom(const ::google::protobuf::Message& from) {
3915
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlRSColDescPB)
3916
0
  GOOGLE_DCHECK_NE(&from, this);
3917
0
  const PgsqlRSColDescPB* source =
3918
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlRSColDescPB>(
3919
0
          &from);
3920
0
  if (source == NULL) {
3921
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlRSColDescPB)
3922
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3923
0
  } else {
3924
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlRSColDescPB)
3925
0
    MergeFrom(*source);
3926
0
  }
3927
0
}
3928
3929
0
void PgsqlRSColDescPB::MergeFrom(const PgsqlRSColDescPB& from) {
3930
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlRSColDescPB)
3931
0
  GOOGLE_DCHECK_NE(&from, this);
3932
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3933
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3934
0
  (void) cached_has_bits;
3935
3936
0
  cached_has_bits = from._has_bits_[0];
3937
0
  if (cached_has_bits & 3u) {
3938
0
    if (cached_has_bits & 0x00000001u) {
3939
0
      set_has_name();
3940
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
3941
0
    }
3942
0
    if (cached_has_bits & 0x00000002u) {
3943
0
      mutable_ql_type()->::yb::QLTypePB::MergeFrom(from.ql_type());
3944
0
    }
3945
0
  }
3946
0
}
3947
3948
0
void PgsqlRSColDescPB::CopyFrom(const ::google::protobuf::Message& from) {
3949
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlRSColDescPB)
3950
0
  if (&from == this) return;
3951
0
  Clear();
3952
0
  MergeFrom(from);
3953
0
}
3954
3955
0
void PgsqlRSColDescPB::CopyFrom(const PgsqlRSColDescPB& from) {
3956
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlRSColDescPB)
3957
0
  if (&from == this) return;
3958
0
  Clear();
3959
0
  MergeFrom(from);
3960
0
}
3961
3962
0
bool PgsqlRSColDescPB::IsInitialized() const {
3963
0
  return true;
3964
0
}
3965
3966
0
void PgsqlRSColDescPB::Swap(PgsqlRSColDescPB* other) {
3967
0
  if (other == this) return;
3968
0
  InternalSwap(other);
3969
0
}
3970
0
void PgsqlRSColDescPB::InternalSwap(PgsqlRSColDescPB* other) {
3971
0
  using std::swap;
3972
0
  name_.Swap(&other->name_);
3973
0
  swap(ql_type_, other->ql_type_);
3974
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3975
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3976
0
  swap(_cached_size_, other->_cached_size_);
3977
0
}
3978
3979
0
::google::protobuf::Metadata PgsqlRSColDescPB::GetMetadata() const {
3980
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3981
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3982
0
}
3983
3984
3985
// ===================================================================
3986
3987
17.1k
void PgsqlRSRowDescPB::InitAsDefaultInstance() {
3988
17.1k
}
3989
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3990
const int PgsqlRSRowDescPB::kRscolDescsFieldNumber;
3991
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3992
3993
PgsqlRSRowDescPB::PgsqlRSRowDescPB()
3994
17.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3995
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3996
0
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
3997
0
  }
3998
17.1k
  SharedCtor();
3999
  // @@protoc_insertion_point(constructor:yb.PgsqlRSRowDescPB)
4000
17.1k
}
4001
PgsqlRSRowDescPB::PgsqlRSRowDescPB(const PgsqlRSRowDescPB& from)
4002
  : ::google::protobuf::Message(),
4003
      _internal_metadata_(NULL),
4004
      _has_bits_(from._has_bits_),
4005
      _cached_size_(0),
4006
0
      rscol_descs_(from.rscol_descs_) {
4007
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4008
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlRSRowDescPB)
4009
0
}
4010
4011
17.1k
void PgsqlRSRowDescPB::SharedCtor() {
4012
17.1k
  _cached_size_ = 0;
4013
17.1k
}
4014
4015
0
PgsqlRSRowDescPB::~PgsqlRSRowDescPB() {
4016
  // @@protoc_insertion_point(destructor:yb.PgsqlRSRowDescPB)
4017
0
  SharedDtor();
4018
0
}
4019
4020
0
void PgsqlRSRowDescPB::SharedDtor() {
4021
0
}
4022
4023
0
void PgsqlRSRowDescPB::SetCachedSize(int size) const {
4024
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4025
0
  _cached_size_ = size;
4026
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4027
0
}
4028
0
const ::google::protobuf::Descriptor* PgsqlRSRowDescPB::descriptor() {
4029
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4030
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4031
0
}
4032
4033
0
const PgsqlRSRowDescPB& PgsqlRSRowDescPB::default_instance() {
4034
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
4035
0
  return *internal_default_instance();
4036
0
}
4037
4038
0
PgsqlRSRowDescPB* PgsqlRSRowDescPB::New(::google::protobuf::Arena* arena) const {
4039
0
  PgsqlRSRowDescPB* n = new PgsqlRSRowDescPB;
4040
0
  if (arena != NULL) {
4041
0
    arena->Own(n);
4042
0
  }
4043
0
  return n;
4044
0
}
4045
4046
0
void PgsqlRSRowDescPB::Clear() {
4047
// @@protoc_insertion_point(message_clear_start:yb.PgsqlRSRowDescPB)
4048
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4049
  // Prevent compiler warnings about cached_has_bits being unused
4050
0
  (void) cached_has_bits;
4051
4052
0
  rscol_descs_.Clear();
4053
0
  _has_bits_.Clear();
4054
0
  _internal_metadata_.Clear();
4055
0
}
4056
4057
bool PgsqlRSRowDescPB::MergePartialFromCodedStream(
4058
0
    ::google::protobuf::io::CodedInputStream* input) {
4059
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4060
0
  ::google::protobuf::uint32 tag;
4061
  // @@protoc_insertion_point(parse_start:yb.PgsqlRSRowDescPB)
4062
0
  for (;;) {
4063
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4064
0
    tag = p.first;
4065
0
    if (!p.second) goto handle_unusual;
4066
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4067
      // repeated .yb.PgsqlRSColDescPB rscol_descs = 1;
4068
0
      case 1: {
4069
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4070
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4071
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rscol_descs()));
4072
0
        } else {
4073
0
          goto handle_unusual;
4074
0
        }
4075
0
        break;
4076
0
      }
4077
4078
0
      default: {
4079
0
      handle_unusual:
4080
0
        if (tag == 0) {
4081
0
          goto success;
4082
0
        }
4083
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4084
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4085
0
        break;
4086
0
      }
4087
0
    }
4088
0
  }
4089
0
success:
4090
  // @@protoc_insertion_point(parse_success:yb.PgsqlRSRowDescPB)
4091
0
  return true;
4092
0
failure:
4093
  // @@protoc_insertion_point(parse_failure:yb.PgsqlRSRowDescPB)
4094
0
  return false;
4095
0
#undef DO_
4096
0
}
4097
4098
void PgsqlRSRowDescPB::SerializeWithCachedSizes(
4099
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4100
  // @@protoc_insertion_point(serialize_start:yb.PgsqlRSRowDescPB)
4101
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4102
0
  (void) cached_has_bits;
4103
4104
  // repeated .yb.PgsqlRSColDescPB rscol_descs = 1;
4105
0
  for (unsigned int i = 0,
4106
0
      n = static_cast<unsigned int>(this->rscol_descs_size()); i < n; i++) {
4107
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4108
0
      1, this->rscol_descs(static_cast<int>(i)), output);
4109
0
  }
4110
4111
0
  if (_internal_metadata_.have_unknown_fields()) {
4112
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4113
0
        _internal_metadata_.unknown_fields(), output);
4114
0
  }
4115
  // @@protoc_insertion_point(serialize_end:yb.PgsqlRSRowDescPB)
4116
0
}
4117
4118
::google::protobuf::uint8* PgsqlRSRowDescPB::InternalSerializeWithCachedSizesToArray(
4119
0
    bool deterministic, ::google::protobuf::uint8* target) const {
4120
0
  (void)deterministic; // Unused
4121
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlRSRowDescPB)
4122
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4123
0
  (void) cached_has_bits;
4124
4125
  // repeated .yb.PgsqlRSColDescPB rscol_descs = 1;
4126
0
  for (unsigned int i = 0,
4127
0
      n = static_cast<unsigned int>(this->rscol_descs_size()); i < n; i++) {
4128
0
    target = ::google::protobuf::internal::WireFormatLite::
4129
0
      InternalWriteMessageToArray(
4130
0
        1, this->rscol_descs(static_cast<int>(i)), deterministic, target);
4131
0
  }
4132
4133
0
  if (_internal_metadata_.have_unknown_fields()) {
4134
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4135
0
        _internal_metadata_.unknown_fields(), target);
4136
0
  }
4137
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlRSRowDescPB)
4138
0
  return target;
4139
0
}
4140
4141
0
size_t PgsqlRSRowDescPB::ByteSizeLong() const {
4142
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlRSRowDescPB)
4143
0
  size_t total_size = 0;
4144
4145
0
  if (_internal_metadata_.have_unknown_fields()) {
4146
0
    total_size +=
4147
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4148
0
        _internal_metadata_.unknown_fields());
4149
0
  }
4150
  // repeated .yb.PgsqlRSColDescPB rscol_descs = 1;
4151
0
  {
4152
0
    unsigned int count = static_cast<unsigned int>(this->rscol_descs_size());
4153
0
    total_size += 1UL * count;
4154
0
    for (unsigned int i = 0; i < count; i++) {
4155
0
      total_size +=
4156
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4157
0
          this->rscol_descs(static_cast<int>(i)));
4158
0
    }
4159
0
  }
4160
4161
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4162
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4163
0
  _cached_size_ = cached_size;
4164
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4165
0
  return total_size;
4166
0
}
4167
4168
0
void PgsqlRSRowDescPB::MergeFrom(const ::google::protobuf::Message& from) {
4169
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlRSRowDescPB)
4170
0
  GOOGLE_DCHECK_NE(&from, this);
4171
0
  const PgsqlRSRowDescPB* source =
4172
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlRSRowDescPB>(
4173
0
          &from);
4174
0
  if (source == NULL) {
4175
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlRSRowDescPB)
4176
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4177
0
  } else {
4178
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlRSRowDescPB)
4179
0
    MergeFrom(*source);
4180
0
  }
4181
0
}
4182
4183
0
void PgsqlRSRowDescPB::MergeFrom(const PgsqlRSRowDescPB& from) {
4184
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlRSRowDescPB)
4185
0
  GOOGLE_DCHECK_NE(&from, this);
4186
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4187
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4188
0
  (void) cached_has_bits;
4189
4190
0
  rscol_descs_.MergeFrom(from.rscol_descs_);
4191
0
}
4192
4193
0
void PgsqlRSRowDescPB::CopyFrom(const ::google::protobuf::Message& from) {
4194
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlRSRowDescPB)
4195
0
  if (&from == this) return;
4196
0
  Clear();
4197
0
  MergeFrom(from);
4198
0
}
4199
4200
0
void PgsqlRSRowDescPB::CopyFrom(const PgsqlRSRowDescPB& from) {
4201
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlRSRowDescPB)
4202
0
  if (&from == this) return;
4203
0
  Clear();
4204
0
  MergeFrom(from);
4205
0
}
4206
4207
0
bool PgsqlRSRowDescPB::IsInitialized() const {
4208
0
  return true;
4209
0
}
4210
4211
0
void PgsqlRSRowDescPB::Swap(PgsqlRSRowDescPB* other) {
4212
0
  if (other == this) return;
4213
0
  InternalSwap(other);
4214
0
}
4215
0
void PgsqlRSRowDescPB::InternalSwap(PgsqlRSRowDescPB* other) {
4216
0
  using std::swap;
4217
0
  rscol_descs_.InternalSwap(&other->rscol_descs_);
4218
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4219
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4220
0
  swap(_cached_size_, other->_cached_size_);
4221
0
}
4222
4223
0
::google::protobuf::Metadata PgsqlRSRowDescPB::GetMetadata() const {
4224
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4225
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4226
0
}
4227
4228
4229
// ===================================================================
4230
4231
17.1k
void PgsqlPartitionBound::InitAsDefaultInstance() {
4232
17.1k
}
4233
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4234
const int PgsqlPartitionBound::kKeyFieldNumber;
4235
const int PgsqlPartitionBound::kIsInclusiveFieldNumber;
4236
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4237
4238
PgsqlPartitionBound::PgsqlPartitionBound()
4239
608k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4240
591k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4241
591k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPartitionBound();
4242
591k
  }
4243
608k
  SharedCtor();
4244
  // @@protoc_insertion_point(constructor:yb.PgsqlPartitionBound)
4245
608k
}
4246
PgsqlPartitionBound::PgsqlPartitionBound(const PgsqlPartitionBound& from)
4247
  : ::google::protobuf::Message(),
4248
      _internal_metadata_(NULL),
4249
      _has_bits_(from._has_bits_),
4250
0
      _cached_size_(0) {
4251
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4252
0
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4253
0
  if (from.has_key()) {
4254
0
    key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
4255
0
  }
4256
0
  is_inclusive_ = from.is_inclusive_;
4257
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlPartitionBound)
4258
0
}
4259
4260
608k
void PgsqlPartitionBound::SharedCtor() {
4261
608k
  _cached_size_ = 0;
4262
608k
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4263
608k
  is_inclusive_ = false;
4264
608k
}
4265
4266
591k
PgsqlPartitionBound::~PgsqlPartitionBound() {
4267
  // @@protoc_insertion_point(destructor:yb.PgsqlPartitionBound)
4268
591k
  SharedDtor();
4269
591k
}
4270
4271
591k
void PgsqlPartitionBound::SharedDtor() {
4272
591k
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4273
591k
}
4274
4275
0
void PgsqlPartitionBound::SetCachedSize(int size) const {
4276
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4277
0
  _cached_size_ = size;
4278
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4279
0
}
4280
0
const ::google::protobuf::Descriptor* PgsqlPartitionBound::descriptor() {
4281
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4282
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4283
0
}
4284
4285
0
const PgsqlPartitionBound& PgsqlPartitionBound::default_instance() {
4286
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPartitionBound();
4287
0
  return *internal_default_instance();
4288
0
}
4289
4290
0
PgsqlPartitionBound* PgsqlPartitionBound::New(::google::protobuf::Arena* arena) const {
4291
0
  PgsqlPartitionBound* n = new PgsqlPartitionBound;
4292
0
  if (arena != NULL) {
4293
0
    arena->Own(n);
4294
0
  }
4295
0
  return n;
4296
0
}
4297
4298
1.01k
void PgsqlPartitionBound::Clear() {
4299
// @@protoc_insertion_point(message_clear_start:yb.PgsqlPartitionBound)
4300
1.01k
  ::google::protobuf::uint32 cached_has_bits = 0;
4301
  // Prevent compiler warnings about cached_has_bits being unused
4302
1.01k
  (void) cached_has_bits;
4303
4304
1.01k
  cached_has_bits = _has_bits_[0];
4305
1.01k
  if (cached_has_bits & 0x00000001u) {
4306
834
    GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4307
834
    (*key_.UnsafeRawStringPointer())->clear();
4308
834
  }
4309
1.01k
  is_inclusive_ = false;
4310
1.01k
  _has_bits_.Clear();
4311
1.01k
  _internal_metadata_.Clear();
4312
1.01k
}
4313
4314
bool PgsqlPartitionBound::MergePartialFromCodedStream(
4315
394k
    ::google::protobuf::io::CodedInputStream* input) {
4316
789k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4317
394k
  ::google::protobuf::uint32 tag;
4318
  // @@protoc_insertion_point(parse_start:yb.PgsqlPartitionBound)
4319
1.18M
  for (;;) {
4320
1.18M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4321
1.18M
    tag = p.first;
4322
1.18M
    if (!p.second) goto handle_unusual;
4323
789k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4324
      // optional bytes key = 1;
4325
394k
      case 1: {
4326
394k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4327
394k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4328
394k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4329
394k
                input, this->mutable_key()));
4330
8
        } else {
4331
8
          goto handle_unusual;
4332
8
        }
4333
394k
        break;
4334
394k
      }
4335
4336
      // optional bool is_inclusive = 2;
4337
394k
      case 2: {
4338
394k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4339
394k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4340
394k
          set_has_is_inclusive();
4341
394k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4342
394k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4343
394k
                 input, &is_inclusive_)));
4344
18.4E
        } else {
4345
18.4E
          goto handle_unusual;
4346
18.4E
        }
4347
394k
        break;
4348
394k
      }
4349
4350
0
      default: {
4351
394k
      handle_unusual:
4352
394k
        if (tag == 0) {
4353
394k
          goto success;
4354
394k
        }
4355
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4356
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4357
18.4E
        break;
4358
18.4E
      }
4359
789k
    }
4360
789k
  }
4361
394k
success:
4362
  // @@protoc_insertion_point(parse_success:yb.PgsqlPartitionBound)
4363
394k
  return true;
4364
0
failure:
4365
  // @@protoc_insertion_point(parse_failure:yb.PgsqlPartitionBound)
4366
0
  return false;
4367
394k
#undef DO_
4368
394k
}
4369
4370
void PgsqlPartitionBound::SerializeWithCachedSizes(
4371
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4372
  // @@protoc_insertion_point(serialize_start:yb.PgsqlPartitionBound)
4373
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4374
0
  (void) cached_has_bits;
4375
4376
0
  cached_has_bits = _has_bits_[0];
4377
  // optional bytes key = 1;
4378
0
  if (cached_has_bits & 0x00000001u) {
4379
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
4380
0
      1, this->key(), output);
4381
0
  }
4382
4383
  // optional bool is_inclusive = 2;
4384
0
  if (cached_has_bits & 0x00000002u) {
4385
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_inclusive(), output);
4386
0
  }
4387
4388
0
  if (_internal_metadata_.have_unknown_fields()) {
4389
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4390
0
        _internal_metadata_.unknown_fields(), output);
4391
0
  }
4392
  // @@protoc_insertion_point(serialize_end:yb.PgsqlPartitionBound)
4393
0
}
4394
4395
::google::protobuf::uint8* PgsqlPartitionBound::InternalSerializeWithCachedSizesToArray(
4396
394k
    bool deterministic, ::google::protobuf::uint8* target) const {
4397
394k
  (void)deterministic; // Unused
4398
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlPartitionBound)
4399
394k
  ::google::protobuf::uint32 cached_has_bits = 0;
4400
394k
  (void) cached_has_bits;
4401
4402
394k
  cached_has_bits = _has_bits_[0];
4403
  // optional bytes key = 1;
4404
394k
  if (cached_has_bits & 0x00000001u) {
4405
394k
    target =
4406
394k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4407
394k
        1, this->key(), target);
4408
394k
  }
4409
4410
  // optional bool is_inclusive = 2;
4411
394k
  if (cached_has_bits & 0x00000002u) {
4412
394k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_inclusive(), target);
4413
394k
  }
4414
4415
394k
  if (_internal_metadata_.have_unknown_fields()) {
4416
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4417
0
        _internal_metadata_.unknown_fields(), target);
4418
0
  }
4419
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlPartitionBound)
4420
394k
  return target;
4421
394k
}
4422
4423
789k
size_t PgsqlPartitionBound::ByteSizeLong() const {
4424
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlPartitionBound)
4425
789k
  size_t total_size = 0;
4426
4427
789k
  if (_internal_metadata_.have_unknown_fields()) {
4428
0
    total_size +=
4429
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4430
0
        _internal_metadata_.unknown_fields());
4431
0
  }
4432
789k
  if (_has_bits_[0 / 32] & 3u) {
4433
    // optional bytes key = 1;
4434
789k
    if (has_key()) {
4435
789k
      total_size += 1 +
4436
789k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4437
789k
          this->key());
4438
789k
    }
4439
4440
    // optional bool is_inclusive = 2;
4441
789k
    if (has_is_inclusive()) {
4442
789k
      total_size += 1 + 1;
4443
789k
    }
4444
4445
789k
  }
4446
789k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4447
789k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4448
789k
  _cached_size_ = cached_size;
4449
789k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4450
789k
  return total_size;
4451
789k
}
4452
4453
0
void PgsqlPartitionBound::MergeFrom(const ::google::protobuf::Message& from) {
4454
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlPartitionBound)
4455
0
  GOOGLE_DCHECK_NE(&from, this);
4456
0
  const PgsqlPartitionBound* source =
4457
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlPartitionBound>(
4458
0
          &from);
4459
0
  if (source == NULL) {
4460
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlPartitionBound)
4461
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4462
0
  } else {
4463
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlPartitionBound)
4464
0
    MergeFrom(*source);
4465
0
  }
4466
0
}
4467
4468
0
void PgsqlPartitionBound::MergeFrom(const PgsqlPartitionBound& from) {
4469
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlPartitionBound)
4470
0
  GOOGLE_DCHECK_NE(&from, this);
4471
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4472
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4473
0
  (void) cached_has_bits;
4474
4475
0
  cached_has_bits = from._has_bits_[0];
4476
0
  if (cached_has_bits & 3u) {
4477
0
    if (cached_has_bits & 0x00000001u) {
4478
0
      set_has_key();
4479
0
      key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
4480
0
    }
4481
0
    if (cached_has_bits & 0x00000002u) {
4482
0
      is_inclusive_ = from.is_inclusive_;
4483
0
    }
4484
0
    _has_bits_[0] |= cached_has_bits;
4485
0
  }
4486
0
}
4487
4488
0
void PgsqlPartitionBound::CopyFrom(const ::google::protobuf::Message& from) {
4489
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlPartitionBound)
4490
0
  if (&from == this) return;
4491
0
  Clear();
4492
0
  MergeFrom(from);
4493
0
}
4494
4495
0
void PgsqlPartitionBound::CopyFrom(const PgsqlPartitionBound& from) {
4496
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlPartitionBound)
4497
0
  if (&from == this) return;
4498
0
  Clear();
4499
0
  MergeFrom(from);
4500
0
}
4501
4502
0
bool PgsqlPartitionBound::IsInitialized() const {
4503
0
  return true;
4504
0
}
4505
4506
0
void PgsqlPartitionBound::Swap(PgsqlPartitionBound* other) {
4507
0
  if (other == this) return;
4508
0
  InternalSwap(other);
4509
0
}
4510
0
void PgsqlPartitionBound::InternalSwap(PgsqlPartitionBound* other) {
4511
0
  using std::swap;
4512
0
  key_.Swap(&other->key_);
4513
0
  swap(is_inclusive_, other->is_inclusive_);
4514
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4515
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4516
0
  swap(_cached_size_, other->_cached_size_);
4517
0
}
4518
4519
394k
::google::protobuf::Metadata PgsqlPartitionBound::GetMetadata() const {
4520
394k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4521
394k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4522
394k
}
4523
4524
4525
// ===================================================================
4526
4527
17.1k
void PgsqlSamplingStatePB::InitAsDefaultInstance() {
4528
17.1k
}
4529
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4530
const int PgsqlSamplingStatePB::kTargrowsFieldNumber;
4531
const int PgsqlSamplingStatePB::kNumrowsFieldNumber;
4532
const int PgsqlSamplingStatePB::kSamplerowsFieldNumber;
4533
const int PgsqlSamplingStatePB::kRowstoskipFieldNumber;
4534
const int PgsqlSamplingStatePB::kRstateWFieldNumber;
4535
const int PgsqlSamplingStatePB::kRandStateFieldNumber;
4536
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4537
4538
PgsqlSamplingStatePB::PgsqlSamplingStatePB()
4539
17.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4540
705
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4541
705
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
4542
705
  }
4543
17.8k
  SharedCtor();
4544
  // @@protoc_insertion_point(constructor:yb.PgsqlSamplingStatePB)
4545
17.8k
}
4546
PgsqlSamplingStatePB::PgsqlSamplingStatePB(const PgsqlSamplingStatePB& from)
4547
  : ::google::protobuf::Message(),
4548
      _internal_metadata_(NULL),
4549
      _has_bits_(from._has_bits_),
4550
109
      _cached_size_(0) {
4551
109
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4552
109
  ::memcpy(&targrows_, &from.targrows_,
4553
109
    static_cast<size_t>(reinterpret_cast<char*>(&rand_state_) -
4554
109
    reinterpret_cast<char*>(&targrows_)) + sizeof(rand_state_));
4555
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlSamplingStatePB)
4556
109
}
4557
4558
17.8k
void PgsqlSamplingStatePB::SharedCtor() {
4559
17.8k
  _cached_size_ = 0;
4560
17.8k
  ::memset(&targrows_, 0, static_cast<size_t>(
4561
17.8k
      reinterpret_cast<char*>(&rand_state_) -
4562
17.8k
      reinterpret_cast<char*>(&targrows_)) + sizeof(rand_state_));
4563
17.8k
}
4564
4565
814
PgsqlSamplingStatePB::~PgsqlSamplingStatePB() {
4566
  // @@protoc_insertion_point(destructor:yb.PgsqlSamplingStatePB)
4567
814
  SharedDtor();
4568
814
}
4569
4570
814
void PgsqlSamplingStatePB::SharedDtor() {
4571
814
}
4572
4573
0
void PgsqlSamplingStatePB::SetCachedSize(int size) const {
4574
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4575
0
  _cached_size_ = size;
4576
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4577
0
}
4578
0
const ::google::protobuf::Descriptor* PgsqlSamplingStatePB::descriptor() {
4579
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4580
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4581
0
}
4582
4583
0
const PgsqlSamplingStatePB& PgsqlSamplingStatePB::default_instance() {
4584
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
4585
0
  return *internal_default_instance();
4586
0
}
4587
4588
0
PgsqlSamplingStatePB* PgsqlSamplingStatePB::New(::google::protobuf::Arena* arena) const {
4589
0
  PgsqlSamplingStatePB* n = new PgsqlSamplingStatePB;
4590
0
  if (arena != NULL) {
4591
0
    arena->Own(n);
4592
0
  }
4593
0
  return n;
4594
0
}
4595
4596
0
void PgsqlSamplingStatePB::Clear() {
4597
// @@protoc_insertion_point(message_clear_start:yb.PgsqlSamplingStatePB)
4598
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4599
  // Prevent compiler warnings about cached_has_bits being unused
4600
0
  (void) cached_has_bits;
4601
4602
0
  cached_has_bits = _has_bits_[0];
4603
0
  if (cached_has_bits & 63u) {
4604
0
    ::memset(&targrows_, 0, static_cast<size_t>(
4605
0
        reinterpret_cast<char*>(&rand_state_) -
4606
0
        reinterpret_cast<char*>(&targrows_)) + sizeof(rand_state_));
4607
0
  }
4608
0
  _has_bits_.Clear();
4609
0
  _internal_metadata_.Clear();
4610
0
}
4611
4612
bool PgsqlSamplingStatePB::MergePartialFromCodedStream(
4613
408
    ::google::protobuf::io::CodedInputStream* input) {
4614
2.44k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4615
408
  ::google::protobuf::uint32 tag;
4616
  // @@protoc_insertion_point(parse_start:yb.PgsqlSamplingStatePB)
4617
2.85k
  for (;;) {
4618
2.85k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4619
2.85k
    tag = p.first;
4620
2.85k
    if (!p.second) goto handle_unusual;
4621
2.44k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4622
      // optional int32 targrows = 1;
4623
408
      case 1: {
4624
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4625
408
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4626
408
          set_has_targrows();
4627
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4628
408
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4629
408
                 input, &targrows_)));
4630
0
        } else {
4631
0
          goto handle_unusual;
4632
0
        }
4633
408
        break;
4634
408
      }
4635
4636
      // optional int32 numrows = 2;
4637
408
      case 2: {
4638
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4639
408
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4640
408
          set_has_numrows();
4641
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4642
408
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4643
408
                 input, &numrows_)));
4644
0
        } else {
4645
0
          goto handle_unusual;
4646
0
        }
4647
408
        break;
4648
408
      }
4649
4650
      // optional double samplerows = 3;
4651
408
      case 3: {
4652
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4653
408
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
4654
408
          set_has_samplerows();
4655
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4656
408
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4657
408
                 input, &samplerows_)));
4658
0
        } else {
4659
0
          goto handle_unusual;
4660
0
        }
4661
408
        break;
4662
408
      }
4663
4664
      // optional double rowstoskip = 4;
4665
408
      case 4: {
4666
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4667
408
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
4668
408
          set_has_rowstoskip();
4669
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4670
408
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4671
408
                 input, &rowstoskip_)));
4672
0
        } else {
4673
0
          goto handle_unusual;
4674
0
        }
4675
408
        break;
4676
408
      }
4677
4678
      // optional double rstate_w = 5;
4679
408
      case 5: {
4680
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4681
408
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
4682
408
          set_has_rstate_w();
4683
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4684
408
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4685
408
                 input, &rstate_w_)));
4686
0
        } else {
4687
0
          goto handle_unusual;
4688
0
        }
4689
408
        break;
4690
408
      }
4691
4692
      // optional uint64 rand_state = 6;
4693
408
      case 6: {
4694
408
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4695
408
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
4696
408
          set_has_rand_state();
4697
408
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4698
408
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4699
408
                 input, &rand_state_)));
4700
0
        } else {
4701
0
          goto handle_unusual;
4702
0
        }
4703
408
        break;
4704
408
      }
4705
4706
0
      default: {
4707
408
      handle_unusual:
4708
408
        if (tag == 0) {
4709
408
          goto success;
4710
408
        }
4711
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4712
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4713
0
        break;
4714
0
      }
4715
2.44k
    }
4716
2.44k
  }
4717
408
success:
4718
  // @@protoc_insertion_point(parse_success:yb.PgsqlSamplingStatePB)
4719
408
  return true;
4720
0
failure:
4721
  // @@protoc_insertion_point(parse_failure:yb.PgsqlSamplingStatePB)
4722
0
  return false;
4723
408
#undef DO_
4724
408
}
4725
4726
void PgsqlSamplingStatePB::SerializeWithCachedSizes(
4727
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4728
  // @@protoc_insertion_point(serialize_start:yb.PgsqlSamplingStatePB)
4729
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4730
0
  (void) cached_has_bits;
4731
4732
0
  cached_has_bits = _has_bits_[0];
4733
  // optional int32 targrows = 1;
4734
0
  if (cached_has_bits & 0x00000001u) {
4735
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->targrows(), output);
4736
0
  }
4737
4738
  // optional int32 numrows = 2;
4739
0
  if (cached_has_bits & 0x00000002u) {
4740
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->numrows(), output);
4741
0
  }
4742
4743
  // optional double samplerows = 3;
4744
0
  if (cached_has_bits & 0x00000004u) {
4745
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->samplerows(), output);
4746
0
  }
4747
4748
  // optional double rowstoskip = 4;
4749
0
  if (cached_has_bits & 0x00000008u) {
4750
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->rowstoskip(), output);
4751
0
  }
4752
4753
  // optional double rstate_w = 5;
4754
0
  if (cached_has_bits & 0x00000010u) {
4755
0
    ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->rstate_w(), output);
4756
0
  }
4757
4758
  // optional uint64 rand_state = 6;
4759
0
  if (cached_has_bits & 0x00000020u) {
4760
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->rand_state(), output);
4761
0
  }
4762
4763
0
  if (_internal_metadata_.have_unknown_fields()) {
4764
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4765
0
        _internal_metadata_.unknown_fields(), output);
4766
0
  }
4767
  // @@protoc_insertion_point(serialize_end:yb.PgsqlSamplingStatePB)
4768
0
}
4769
4770
::google::protobuf::uint8* PgsqlSamplingStatePB::InternalSerializeWithCachedSizesToArray(
4771
408
    bool deterministic, ::google::protobuf::uint8* target) const {
4772
408
  (void)deterministic; // Unused
4773
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlSamplingStatePB)
4774
408
  ::google::protobuf::uint32 cached_has_bits = 0;
4775
408
  (void) cached_has_bits;
4776
4777
408
  cached_has_bits = _has_bits_[0];
4778
  // optional int32 targrows = 1;
4779
408
  if (cached_has_bits & 0x00000001u) {
4780
408
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->targrows(), target);
4781
408
  }
4782
4783
  // optional int32 numrows = 2;
4784
408
  if (cached_has_bits & 0x00000002u) {
4785
408
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->numrows(), target);
4786
408
  }
4787
4788
  // optional double samplerows = 3;
4789
408
  if (cached_has_bits & 0x00000004u) {
4790
408
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->samplerows(), target);
4791
408
  }
4792
4793
  // optional double rowstoskip = 4;
4794
408
  if (cached_has_bits & 0x00000008u) {
4795
408
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->rowstoskip(), target);
4796
408
  }
4797
4798
  // optional double rstate_w = 5;
4799
408
  if (cached_has_bits & 0x00000010u) {
4800
408
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->rstate_w(), target);
4801
408
  }
4802
4803
  // optional uint64 rand_state = 6;
4804
408
  if (cached_has_bits & 0x00000020u) {
4805
408
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->rand_state(), target);
4806
408
  }
4807
4808
408
  if (_internal_metadata_.have_unknown_fields()) {
4809
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4810
0
        _internal_metadata_.unknown_fields(), target);
4811
0
  }
4812
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlSamplingStatePB)
4813
408
  return target;
4814
408
}
4815
4816
816
size_t PgsqlSamplingStatePB::ByteSizeLong() const {
4817
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlSamplingStatePB)
4818
816
  size_t total_size = 0;
4819
4820
816
  if (_internal_metadata_.have_unknown_fields()) {
4821
0
    total_size +=
4822
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4823
0
        _internal_metadata_.unknown_fields());
4824
0
  }
4825
816
  if (_has_bits_[0 / 32] & 63u) {
4826
    // optional int32 targrows = 1;
4827
816
    if (has_targrows()) {
4828
816
      total_size += 1 +
4829
816
        ::google::protobuf::internal::WireFormatLite::Int32Size(
4830
816
          this->targrows());
4831
816
    }
4832
4833
    // optional int32 numrows = 2;
4834
816
    if (has_numrows()) {
4835
816
      total_size += 1 +
4836
816
        ::google::protobuf::internal::WireFormatLite::Int32Size(
4837
816
          this->numrows());
4838
816
    }
4839
4840
    // optional double samplerows = 3;
4841
816
    if (has_samplerows()) {
4842
816
      total_size += 1 + 8;
4843
816
    }
4844
4845
    // optional double rowstoskip = 4;
4846
816
    if (has_rowstoskip()) {
4847
816
      total_size += 1 + 8;
4848
816
    }
4849
4850
    // optional double rstate_w = 5;
4851
816
    if (has_rstate_w()) {
4852
816
      total_size += 1 + 8;
4853
816
    }
4854
4855
    // optional uint64 rand_state = 6;
4856
816
    if (has_rand_state()) {
4857
816
      total_size += 1 +
4858
816
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
4859
816
          this->rand_state());
4860
816
    }
4861
4862
816
  }
4863
816
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4864
816
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4865
816
  _cached_size_ = cached_size;
4866
816
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4867
816
  return total_size;
4868
816
}
4869
4870
0
void PgsqlSamplingStatePB::MergeFrom(const ::google::protobuf::Message& from) {
4871
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlSamplingStatePB)
4872
0
  GOOGLE_DCHECK_NE(&from, this);
4873
0
  const PgsqlSamplingStatePB* source =
4874
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlSamplingStatePB>(
4875
0
          &from);
4876
0
  if (source == NULL) {
4877
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlSamplingStatePB)
4878
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4879
0
  } else {
4880
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlSamplingStatePB)
4881
0
    MergeFrom(*source);
4882
0
  }
4883
0
}
4884
4885
109
void PgsqlSamplingStatePB::MergeFrom(const PgsqlSamplingStatePB& from) {
4886
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlSamplingStatePB)
4887
109
  GOOGLE_DCHECK_NE(&from, this);
4888
109
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4889
109
  ::google::protobuf::uint32 cached_has_bits = 0;
4890
109
  (void) cached_has_bits;
4891
4892
109
  cached_has_bits = from._has_bits_[0];
4893
109
  if (cached_has_bits & 63u) {
4894
109
    if (cached_has_bits & 0x00000001u) {
4895
109
      targrows_ = from.targrows_;
4896
109
    }
4897
109
    if (cached_has_bits & 0x00000002u) {
4898
109
      numrows_ = from.numrows_;
4899
109
    }
4900
109
    if (cached_has_bits & 0x00000004u) {
4901
109
      samplerows_ = from.samplerows_;
4902
109
    }
4903
109
    if (cached_has_bits & 0x00000008u) {
4904
109
      rowstoskip_ = from.rowstoskip_;
4905
109
    }
4906
109
    if (cached_has_bits & 0x00000010u) {
4907
109
      rstate_w_ = from.rstate_w_;
4908
109
    }
4909
109
    if (cached_has_bits & 0x00000020u) {
4910
109
      rand_state_ = from.rand_state_;
4911
109
    }
4912
109
    _has_bits_[0] |= cached_has_bits;
4913
109
  }
4914
109
}
4915
4916
0
void PgsqlSamplingStatePB::CopyFrom(const ::google::protobuf::Message& from) {
4917
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlSamplingStatePB)
4918
0
  if (&from == this) return;
4919
0
  Clear();
4920
0
  MergeFrom(from);
4921
0
}
4922
4923
0
void PgsqlSamplingStatePB::CopyFrom(const PgsqlSamplingStatePB& from) {
4924
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlSamplingStatePB)
4925
0
  if (&from == this) return;
4926
0
  Clear();
4927
0
  MergeFrom(from);
4928
0
}
4929
4930
0
bool PgsqlSamplingStatePB::IsInitialized() const {
4931
0
  return true;
4932
0
}
4933
4934
0
void PgsqlSamplingStatePB::Swap(PgsqlSamplingStatePB* other) {
4935
0
  if (other == this) return;
4936
0
  InternalSwap(other);
4937
0
}
4938
0
void PgsqlSamplingStatePB::InternalSwap(PgsqlSamplingStatePB* other) {
4939
0
  using std::swap;
4940
0
  swap(targrows_, other->targrows_);
4941
0
  swap(numrows_, other->numrows_);
4942
0
  swap(samplerows_, other->samplerows_);
4943
0
  swap(rowstoskip_, other->rowstoskip_);
4944
0
  swap(rstate_w_, other->rstate_w_);
4945
0
  swap(rand_state_, other->rand_state_);
4946
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4947
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4948
0
  swap(_cached_size_, other->_cached_size_);
4949
0
}
4950
4951
205
::google::protobuf::Metadata PgsqlSamplingStatePB::GetMetadata() const {
4952
205
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4953
205
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4954
205
}
4955
4956
4957
// ===================================================================
4958
4959
17.1k
void PgsqlWriteRequestPB::InitAsDefaultInstance() {
4960
17.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->ybctid_column_value_ = const_cast< ::yb::PgsqlExpressionPB*>(
4961
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
4962
17.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->rsrow_desc_ = const_cast< ::yb::PgsqlRSRowDescPB*>(
4963
17.1k
      ::yb::PgsqlRSRowDescPB::internal_default_instance());
4964
17.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
4965
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
4966
17.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::PgsqlColumnRefsPB*>(
4967
17.1k
      ::yb::PgsqlColumnRefsPB::internal_default_instance());
4968
17.1k
}
4969
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4970
const int PgsqlWriteRequestPB::kClientFieldNumber;
4971
const int PgsqlWriteRequestPB::kStmtIdFieldNumber;
4972
const int PgsqlWriteRequestPB::kStmtTypeFieldNumber;
4973
const int PgsqlWriteRequestPB::kTableIdFieldNumber;
4974
const int PgsqlWriteRequestPB::kSchemaVersionFieldNumber;
4975
const int PgsqlWriteRequestPB::kHashCodeFieldNumber;
4976
const int PgsqlWriteRequestPB::kPartitionColumnValuesFieldNumber;
4977
const int PgsqlWriteRequestPB::kRangeColumnValuesFieldNumber;
4978
const int PgsqlWriteRequestPB::kYbctidColumnValueFieldNumber;
4979
const int PgsqlWriteRequestPB::kColumnValuesFieldNumber;
4980
const int PgsqlWriteRequestPB::kBatchArgumentsFieldNumber;
4981
const int PgsqlWriteRequestPB::kColumnNewValuesFieldNumber;
4982
const int PgsqlWriteRequestPB::kRsrowDescFieldNumber;
4983
const int PgsqlWriteRequestPB::kTargetsFieldNumber;
4984
const int PgsqlWriteRequestPB::kWhereExprFieldNumber;
4985
const int PgsqlWriteRequestPB::kColumnRefsFieldNumber;
4986
const int PgsqlWriteRequestPB::kYsqlCatalogVersionFieldNumber;
4987
const int PgsqlWriteRequestPB::kIsYsqlCatalogChangeFieldNumber;
4988
const int PgsqlWriteRequestPB::kIsBackfillFieldNumber;
4989
const int PgsqlWriteRequestPB::kIsDeletePersistNeededFieldNumber;
4990
const int PgsqlWriteRequestPB::kColRefsFieldNumber;
4991
const int PgsqlWriteRequestPB::kPartitionKeyFieldNumber;
4992
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4993
4994
PgsqlWriteRequestPB::PgsqlWriteRequestPB()
4995
6.22M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4996
6.20M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4997
6.20M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlWriteRequestPB();
4998
6.20M
  }
4999
6.22M
  SharedCtor();
5000
  // @@protoc_insertion_point(constructor:yb.PgsqlWriteRequestPB)
5001
6.22M
}
5002
PgsqlWriteRequestPB::PgsqlWriteRequestPB(const PgsqlWriteRequestPB& from)
5003
  : ::google::protobuf::Message(),
5004
      _internal_metadata_(NULL),
5005
      _has_bits_(from._has_bits_),
5006
      _cached_size_(0),
5007
      partition_column_values_(from.partition_column_values_),
5008
      range_column_values_(from.range_column_values_),
5009
      column_values_(from.column_values_),
5010
      column_new_values_(from.column_new_values_),
5011
      targets_(from.targets_),
5012
      batch_arguments_(from.batch_arguments_),
5013
0
      col_refs_(from.col_refs_) {
5014
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5015
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5016
0
  if (from.has_table_id()) {
5017
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
5018
0
  }
5019
0
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5020
0
  if (from.has_partition_key()) {
5021
0
    partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
5022
0
  }
5023
0
  if (from.has_ybctid_column_value()) {
5024
0
    ybctid_column_value_ = new ::yb::PgsqlExpressionPB(*from.ybctid_column_value_);
5025
0
  } else {
5026
0
    ybctid_column_value_ = NULL;
5027
0
  }
5028
0
  if (from.has_rsrow_desc()) {
5029
0
    rsrow_desc_ = new ::yb::PgsqlRSRowDescPB(*from.rsrow_desc_);
5030
0
  } else {
5031
0
    rsrow_desc_ = NULL;
5032
0
  }
5033
0
  if (from.has_where_expr()) {
5034
0
    where_expr_ = new ::yb::PgsqlExpressionPB(*from.where_expr_);
5035
0
  } else {
5036
0
    where_expr_ = NULL;
5037
0
  }
5038
0
  if (from.has_column_refs()) {
5039
0
    column_refs_ = new ::yb::PgsqlColumnRefsPB(*from.column_refs_);
5040
0
  } else {
5041
0
    column_refs_ = NULL;
5042
0
  }
5043
0
  ::memcpy(&stmt_id_, &from.stmt_id_,
5044
0
    static_cast<size_t>(reinterpret_cast<char*>(&stmt_type_) -
5045
0
    reinterpret_cast<char*>(&stmt_id_)) + sizeof(stmt_type_));
5046
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlWriteRequestPB)
5047
0
}
5048
5049
6.22M
void PgsqlWriteRequestPB::SharedCtor() {
5050
6.22M
  _cached_size_ = 0;
5051
6.22M
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5052
6.22M
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5053
6.22M
  ::memset(&ybctid_column_value_, 0, static_cast<size_t>(
5054
6.22M
      reinterpret_cast<char*>(&is_delete_persist_needed_) -
5055
6.22M
      reinterpret_cast<char*>(&ybctid_column_value_)) + sizeof(is_delete_persist_needed_));
5056
6.22M
  client_ = 1;
5057
6.22M
  stmt_type_ = 1;
5058
6.22M
}
5059
5060
6.20M
PgsqlWriteRequestPB::~PgsqlWriteRequestPB() {
5061
  // @@protoc_insertion_point(destructor:yb.PgsqlWriteRequestPB)
5062
6.20M
  SharedDtor();
5063
6.20M
}
5064
5065
6.20M
void PgsqlWriteRequestPB::SharedDtor() {
5066
6.20M
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5067
6.20M
  partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5068
6.20M
  if (this != internal_default_instance()) delete ybctid_column_value_;
5069
6.20M
  if (this != internal_default_instance()) delete rsrow_desc_;
5070
6.20M
  if (this != internal_default_instance()) delete where_expr_;
5071
6.20M
  if (this != internal_default_instance()) delete column_refs_;
5072
6.20M
}
5073
5074
0
void PgsqlWriteRequestPB::SetCachedSize(int size) const {
5075
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5076
0
  _cached_size_ = size;
5077
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5078
0
}
5079
0
const ::google::protobuf::Descriptor* PgsqlWriteRequestPB::descriptor() {
5080
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
5081
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5082
0
}
5083
5084
0
const PgsqlWriteRequestPB& PgsqlWriteRequestPB::default_instance() {
5085
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlWriteRequestPB();
5086
0
  return *internal_default_instance();
5087
0
}
5088
5089
0
PgsqlWriteRequestPB* PgsqlWriteRequestPB::New(::google::protobuf::Arena* arena) const {
5090
0
  PgsqlWriteRequestPB* n = new PgsqlWriteRequestPB;
5091
0
  if (arena != NULL) {
5092
0
    arena->Own(n);
5093
0
  }
5094
0
  return n;
5095
0
}
5096
5097
0
void PgsqlWriteRequestPB::Clear() {
5098
// @@protoc_insertion_point(message_clear_start:yb.PgsqlWriteRequestPB)
5099
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5100
  // Prevent compiler warnings about cached_has_bits being unused
5101
0
  (void) cached_has_bits;
5102
5103
0
  partition_column_values_.Clear();
5104
0
  range_column_values_.Clear();
5105
0
  column_values_.Clear();
5106
0
  column_new_values_.Clear();
5107
0
  targets_.Clear();
5108
0
  batch_arguments_.Clear();
5109
0
  col_refs_.Clear();
5110
0
  cached_has_bits = _has_bits_[0];
5111
0
  if (cached_has_bits & 63u) {
5112
0
    if (cached_has_bits & 0x00000001u) {
5113
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5114
0
      (*table_id_.UnsafeRawStringPointer())->clear();
5115
0
    }
5116
0
    if (cached_has_bits & 0x00000002u) {
5117
0
      GOOGLE_DCHECK(!partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5118
0
      (*partition_key_.UnsafeRawStringPointer())->clear();
5119
0
    }
5120
0
    if (cached_has_bits & 0x00000004u) {
5121
0
      GOOGLE_DCHECK(ybctid_column_value_ != NULL);
5122
0
      ybctid_column_value_->Clear();
5123
0
    }
5124
0
    if (cached_has_bits & 0x00000008u) {
5125
0
      GOOGLE_DCHECK(rsrow_desc_ != NULL);
5126
0
      rsrow_desc_->Clear();
5127
0
    }
5128
0
    if (cached_has_bits & 0x00000010u) {
5129
0
      GOOGLE_DCHECK(where_expr_ != NULL);
5130
0
      where_expr_->Clear();
5131
0
    }
5132
0
    if (cached_has_bits & 0x00000020u) {
5133
0
      GOOGLE_DCHECK(column_refs_ != NULL);
5134
0
      column_refs_->Clear();
5135
0
    }
5136
0
  }
5137
0
  if (cached_has_bits & 192u) {
5138
0
    ::memset(&stmt_id_, 0, static_cast<size_t>(
5139
0
        reinterpret_cast<char*>(&schema_version_) -
5140
0
        reinterpret_cast<char*>(&stmt_id_)) + sizeof(schema_version_));
5141
0
  }
5142
0
  if (cached_has_bits & 32512u) {
5143
0
    ::memset(&hash_code_, 0, static_cast<size_t>(
5144
0
        reinterpret_cast<char*>(&is_delete_persist_needed_) -
5145
0
        reinterpret_cast<char*>(&hash_code_)) + sizeof(is_delete_persist_needed_));
5146
0
    client_ = 1;
5147
0
    stmt_type_ = 1;
5148
0
  }
5149
0
  _has_bits_.Clear();
5150
0
  _internal_metadata_.Clear();
5151
0
}
5152
5153
bool PgsqlWriteRequestPB::MergePartialFromCodedStream(
5154
3.09M
    ::google::protobuf::io::CodedInputStream* input) {
5155
38.9M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5156
3.09M
  ::google::protobuf::uint32 tag;
5157
  // @@protoc_insertion_point(parse_start:yb.PgsqlWriteRequestPB)
5158
41.9M
  for (;;) {
5159
41.9M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5160
41.9M
    tag = p.first;
5161
41.9M
    if (!p.second) goto handle_unusual;
5162
38.8M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5163
      // optional .yb.QLClient client = 1;
5164
3.09M
      case 1: {
5165
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5166
3.09M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5167
3.09M
          int value;
5168
3.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5169
3.09M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5170
3.09M
                 input, &value)));
5171
3.09M
          if (::yb::QLClient_IsValid(value)) {
5172
3.09M
            set_client(static_cast< ::yb::QLClient >(value));
5173
252
          } else {
5174
252
            mutable_unknown_fields()->AddVarint(
5175
252
                1, static_cast< ::google::protobuf::uint64>(value));
5176
252
          }
5177
18.4E
        } else {
5178
18.4E
          goto handle_unusual;
5179
18.4E
        }
5180
3.09M
        break;
5181
3.09M
      }
5182
5183
      // optional uint64 stmt_id = 2;
5184
3.09M
      case 2: {
5185
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5186
3.09M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5187
3.09M
          set_has_stmt_id();
5188
3.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5189
3.09M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5190
3.09M
                 input, &stmt_id_)));
5191
18.4E
        } else {
5192
18.4E
          goto handle_unusual;
5193
18.4E
        }
5194
3.09M
        break;
5195
3.09M
      }
5196
5197
      // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5198
3.09M
      case 3: {
5199
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5200
3.09M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5201
3.09M
          int value;
5202
3.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5203
3.09M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5204
3.09M
                 input, &value)));
5205
3.09M
          if (::yb::PgsqlWriteRequestPB_PgsqlStmtType_IsValid(value)) {
5206
3.09M
            set_stmt_type(static_cast< ::yb::PgsqlWriteRequestPB_PgsqlStmtType >(value));
5207
18.4E
          } else {
5208
18.4E
            mutable_unknown_fields()->AddVarint(
5209
18.4E
                3, static_cast< ::google::protobuf::uint64>(value));
5210
18.4E
          }
5211
9
        } else {
5212
9
          goto handle_unusual;
5213
9
        }
5214
3.09M
        break;
5215
3.09M
      }
5216
5217
      // optional bytes table_id = 4;
5218
3.09M
      case 4: {
5219
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5220
3.09M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5221
3.09M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5222
3.09M
                input, this->mutable_table_id()));
5223
18.4E
        } else {
5224
18.4E
          goto handle_unusual;
5225
18.4E
        }
5226
3.09M
        break;
5227
3.09M
      }
5228
5229
      // optional uint32 schema_version = 5;
5230
3.09M
      case 5: {
5231
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5232
3.09M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5233
3.09M
          set_has_schema_version();
5234
3.09M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5235
3.09M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5236
3.09M
                 input, &schema_version_)));
5237
14
        } else {
5238
14
          goto handle_unusual;
5239
14
        }
5240
3.09M
        break;
5241
3.09M
      }
5242
5243
      // optional uint32 hash_code = 6;
5244
1.94M
      case 6: {
5245
1.94M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5246
1.94M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
5247
1.94M
          set_has_hash_code();
5248
1.94M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5249
1.94M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5250
1.94M
                 input, &hash_code_)));
5251
14
        } else {
5252
14
          goto handle_unusual;
5253
14
        }
5254
1.94M
        break;
5255
1.94M
      }
5256
5257
      // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5258
234k
      case 7: {
5259
234k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5260
234k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5261
234k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_partition_column_values()));
5262
1
        } else {
5263
1
          goto handle_unusual;
5264
1
        }
5265
234k
        break;
5266
234k
      }
5267
5268
      // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5269
1.56M
      case 8: {
5270
1.56M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5271
1.56M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5272
1.56M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values()));
5273
0
        } else {
5274
0
          goto handle_unusual;
5275
0
        }
5276
1.56M
        break;
5277
1.56M
      }
5278
5279
      // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5280
2.49M
      case 9: {
5281
2.49M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5282
2.49M
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
5283
2.49M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5284
2.49M
               input, mutable_ybctid_column_value()));
5285
20
        } else {
5286
20
          goto handle_unusual;
5287
20
        }
5288
2.49M
        break;
5289
2.49M
      }
5290
5291
      // repeated .yb.PgsqlColumnValuePB column_values = 10;
5292
6.87M
      case 10: {
5293
6.87M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5294
6.87M
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
5295
6.87M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_values()));
5296
18.4E
        } else {
5297
18.4E
          goto handle_unusual;
5298
18.4E
        }
5299
6.87M
        break;
5300
6.87M
      }
5301
5302
      // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5303
460k
      case 11: {
5304
460k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5305
460k
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
5306
460k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_new_values()));
5307
0
        } else {
5308
0
          goto handle_unusual;
5309
0
        }
5310
460k
        break;
5311
460k
      }
5312
5313
      // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5314
0
      case 12: {
5315
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5316
0
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
5317
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5318
0
               input, mutable_rsrow_desc()));
5319
0
        } else {
5320
0
          goto handle_unusual;
5321
0
        }
5322
0
        break;
5323
0
      }
5324
5325
      // repeated .yb.PgsqlExpressionPB targets = 13;
5326
0
      case 13: {
5327
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5328
0
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
5329
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_targets()));
5330
0
        } else {
5331
0
          goto handle_unusual;
5332
0
        }
5333
0
        break;
5334
0
      }
5335
5336
      // optional .yb.PgsqlExpressionPB where_expr = 14;
5337
33
      case 14: {
5338
33
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5339
33
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
5340
33
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5341
33
               input, mutable_where_expr()));
5342
0
        } else {
5343
0
          goto handle_unusual;
5344
0
        }
5345
33
        break;
5346
33
      }
5347
5348
      // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5349
3.09M
      case 15: {
5350
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5351
3.09M
            static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
5352
3.09M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5353
3.09M
               input, mutable_column_refs()));
5354
18.4E
        } else {
5355
18.4E
          goto handle_unusual;
5356
18.4E
        }
5357
3.09M
        break;
5358
3.09M
      }
5359
5360
      // optional uint64 ysql_catalog_version = 16;
5361
3.08M
      case 16: {
5362
3.08M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5363
3.08M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
5364
3.08M
          set_has_ysql_catalog_version();
5365
3.08M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5366
3.08M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5367
3.08M
                 input, &ysql_catalog_version_)));
5368
18.4E
        } else {
5369
18.4E
          goto handle_unusual;
5370
18.4E
        }
5371
3.08M
        break;
5372
3.08M
      }
5373
5374
      // optional bool is_ysql_catalog_change = 17 [default = false];
5375
0
      case 17: {
5376
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5377
0
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
5378
0
          set_has_is_ysql_catalog_change();
5379
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5380
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5381
0
                 input, &is_ysql_catalog_change_)));
5382
0
        } else {
5383
0
          goto handle_unusual;
5384
0
        }
5385
0
        break;
5386
0
      }
5387
5388
      // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5389
0
      case 18: {
5390
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5391
0
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
5392
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_batch_arguments()));
5393
0
        } else {
5394
0
          goto handle_unusual;
5395
0
        }
5396
0
        break;
5397
0
      }
5398
5399
      // optional bool is_backfill = 19 [default = false];
5400
145k
      case 19: {
5401
145k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5402
145k
            static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
5403
145k
          set_has_is_backfill();
5404
145k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5405
145k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5406
145k
                 input, &is_backfill_)));
5407
0
        } else {
5408
0
          goto handle_unusual;
5409
0
        }
5410
145k
        break;
5411
145k
      }
5412
5413
      // optional bool is_delete_persist_needed = 20 [default = false];
5414
0
      case 20: {
5415
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5416
0
            static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
5417
0
          set_has_is_delete_persist_needed();
5418
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5419
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5420
0
                 input, &is_delete_persist_needed_)));
5421
0
        } else {
5422
0
          goto handle_unusual;
5423
0
        }
5424
0
        break;
5425
0
      }
5426
5427
      // repeated .yb.PgsqlColRefPB col_refs = 21;
5428
460k
      case 21: {
5429
460k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5430
460k
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
5431
460k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_col_refs()));
5432
0
        } else {
5433
0
          goto handle_unusual;
5434
0
        }
5435
460k
        break;
5436
460k
      }
5437
5438
      // optional string partition_key = 22;
5439
3.09M
      case 22: {
5440
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5441
3.09M
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
5442
3.09M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5443
3.09M
                input, this->mutable_partition_key()));
5444
3.09M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5445
3.09M
            this->partition_key().data(), static_cast<int>(this->partition_key().length()),
5446
3.09M
            ::google::protobuf::internal::WireFormat::PARSE,
5447
3.09M
            "yb.PgsqlWriteRequestPB.partition_key");
5448
18.4E
        } else {
5449
18.4E
          goto handle_unusual;
5450
18.4E
        }
5451
3.09M
        break;
5452
3.09M
      }
5453
5454
0
      default: {
5455
3.09M
      handle_unusual:
5456
3.09M
        if (tag == 0) {
5457
3.09M
          goto success;
5458
3.09M
        }
5459
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5460
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5461
18.4E
        break;
5462
18.4E
      }
5463
38.8M
    }
5464
38.8M
  }
5465
3.09M
success:
5466
  // @@protoc_insertion_point(parse_success:yb.PgsqlWriteRequestPB)
5467
3.09M
  return true;
5468
0
failure:
5469
  // @@protoc_insertion_point(parse_failure:yb.PgsqlWriteRequestPB)
5470
0
  return false;
5471
3.09M
#undef DO_
5472
3.09M
}
5473
5474
void PgsqlWriteRequestPB::SerializeWithCachedSizes(
5475
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5476
  // @@protoc_insertion_point(serialize_start:yb.PgsqlWriteRequestPB)
5477
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5478
0
  (void) cached_has_bits;
5479
5480
0
  cached_has_bits = _has_bits_[0];
5481
  // optional .yb.QLClient client = 1;
5482
0
  if (cached_has_bits & 0x00002000u) {
5483
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5484
0
      1, this->client(), output);
5485
0
  }
5486
5487
  // optional uint64 stmt_id = 2;
5488
0
  if (cached_has_bits & 0x00000040u) {
5489
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stmt_id(), output);
5490
0
  }
5491
5492
  // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5493
0
  if (cached_has_bits & 0x00004000u) {
5494
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5495
0
      3, this->stmt_type(), output);
5496
0
  }
5497
5498
  // optional bytes table_id = 4;
5499
0
  if (cached_has_bits & 0x00000001u) {
5500
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5501
0
      4, this->table_id(), output);
5502
0
  }
5503
5504
  // optional uint32 schema_version = 5;
5505
0
  if (cached_has_bits & 0x00000080u) {
5506
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->schema_version(), output);
5507
0
  }
5508
5509
  // optional uint32 hash_code = 6;
5510
0
  if (cached_has_bits & 0x00000100u) {
5511
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->hash_code(), output);
5512
0
  }
5513
5514
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5515
0
  for (unsigned int i = 0,
5516
0
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
5517
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5518
0
      7, this->partition_column_values(static_cast<int>(i)), output);
5519
0
  }
5520
5521
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5522
0
  for (unsigned int i = 0,
5523
0
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
5524
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5525
0
      8, this->range_column_values(static_cast<int>(i)), output);
5526
0
  }
5527
5528
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5529
0
  if (cached_has_bits & 0x00000004u) {
5530
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5531
0
      9, *this->ybctid_column_value_, output);
5532
0
  }
5533
5534
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5535
0
  for (unsigned int i = 0,
5536
0
      n = static_cast<unsigned int>(this->column_values_size()); i < n; i++) {
5537
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5538
0
      10, this->column_values(static_cast<int>(i)), output);
5539
0
  }
5540
5541
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5542
0
  for (unsigned int i = 0,
5543
0
      n = static_cast<unsigned int>(this->column_new_values_size()); i < n; i++) {
5544
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5545
0
      11, this->column_new_values(static_cast<int>(i)), output);
5546
0
  }
5547
5548
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5549
0
  if (cached_has_bits & 0x00000008u) {
5550
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5551
0
      12, *this->rsrow_desc_, output);
5552
0
  }
5553
5554
  // repeated .yb.PgsqlExpressionPB targets = 13;
5555
0
  for (unsigned int i = 0,
5556
0
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
5557
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5558
0
      13, this->targets(static_cast<int>(i)), output);
5559
0
  }
5560
5561
  // optional .yb.PgsqlExpressionPB where_expr = 14;
5562
0
  if (cached_has_bits & 0x00000010u) {
5563
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5564
0
      14, *this->where_expr_, output);
5565
0
  }
5566
5567
  // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5568
0
  if (cached_has_bits & 0x00000020u) {
5569
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5570
0
      15, *this->column_refs_, output);
5571
0
  }
5572
5573
  // optional uint64 ysql_catalog_version = 16;
5574
0
  if (cached_has_bits & 0x00000200u) {
5575
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->ysql_catalog_version(), output);
5576
0
  }
5577
5578
  // optional bool is_ysql_catalog_change = 17 [default = false];
5579
0
  if (cached_has_bits & 0x00000400u) {
5580
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_ysql_catalog_change(), output);
5581
0
  }
5582
5583
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5584
0
  for (unsigned int i = 0,
5585
0
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
5586
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5587
0
      18, this->batch_arguments(static_cast<int>(i)), output);
5588
0
  }
5589
5590
  // optional bool is_backfill = 19 [default = false];
5591
0
  if (cached_has_bits & 0x00000800u) {
5592
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->is_backfill(), output);
5593
0
  }
5594
5595
  // optional bool is_delete_persist_needed = 20 [default = false];
5596
0
  if (cached_has_bits & 0x00001000u) {
5597
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->is_delete_persist_needed(), output);
5598
0
  }
5599
5600
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5601
0
  for (unsigned int i = 0,
5602
0
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
5603
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5604
0
      21, this->col_refs(static_cast<int>(i)), output);
5605
0
  }
5606
5607
  // optional string partition_key = 22;
5608
0
  if (cached_has_bits & 0x00000002u) {
5609
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5610
0
      this->partition_key().data(), static_cast<int>(this->partition_key().length()),
5611
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5612
0
      "yb.PgsqlWriteRequestPB.partition_key");
5613
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5614
0
      22, this->partition_key(), output);
5615
0
  }
5616
5617
0
  if (_internal_metadata_.have_unknown_fields()) {
5618
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5619
0
        _internal_metadata_.unknown_fields(), output);
5620
0
  }
5621
  // @@protoc_insertion_point(serialize_end:yb.PgsqlWriteRequestPB)
5622
0
}
5623
5624
::google::protobuf::uint8* PgsqlWriteRequestPB::InternalSerializeWithCachedSizesToArray(
5625
3.09M
    bool deterministic, ::google::protobuf::uint8* target) const {
5626
3.09M
  (void)deterministic; // Unused
5627
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlWriteRequestPB)
5628
3.09M
  ::google::protobuf::uint32 cached_has_bits = 0;
5629
3.09M
  (void) cached_has_bits;
5630
5631
3.09M
  cached_has_bits = _has_bits_[0];
5632
  // optional .yb.QLClient client = 1;
5633
3.09M
  if (cached_has_bits & 0x00002000u) {
5634
3.09M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5635
3.09M
      1, this->client(), target);
5636
3.09M
  }
5637
5638
  // optional uint64 stmt_id = 2;
5639
3.09M
  if (cached_has_bits & 0x00000040u) {
5640
3.09M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stmt_id(), target);
5641
3.09M
  }
5642
5643
  // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5644
3.09M
  if (cached_has_bits & 0x00004000u) {
5645
3.09M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5646
3.09M
      3, this->stmt_type(), target);
5647
3.09M
  }
5648
5649
  // optional bytes table_id = 4;
5650
3.09M
  if (cached_has_bits & 0x00000001u) {
5651
3.09M
    target =
5652
3.09M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5653
3.09M
        4, this->table_id(), target);
5654
3.09M
  }
5655
5656
  // optional uint32 schema_version = 5;
5657
3.09M
  if (cached_has_bits & 0x00000080u) {
5658
3.09M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->schema_version(), target);
5659
3.09M
  }
5660
5661
  // optional uint32 hash_code = 6;
5662
3.09M
  if (cached_has_bits & 0x00000100u) {
5663
1.94M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->hash_code(), target);
5664
1.94M
  }
5665
5666
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5667
3.09M
  for (unsigned int i = 0,
5668
3.32M
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
5669
234k
    target = ::google::protobuf::internal::WireFormatLite::
5670
234k
      InternalWriteMessageToArray(
5671
234k
        7, this->partition_column_values(static_cast<int>(i)), deterministic, target);
5672
234k
  }
5673
5674
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5675
3.09M
  for (unsigned int i = 0,
5676
4.65M
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
5677
1.56M
    target = ::google::protobuf::internal::WireFormatLite::
5678
1.56M
      InternalWriteMessageToArray(
5679
1.56M
        8, this->range_column_values(static_cast<int>(i)), deterministic, target);
5680
1.56M
  }
5681
5682
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5683
3.09M
  if (cached_has_bits & 0x00000004u) {
5684
2.49M
    target = ::google::protobuf::internal::WireFormatLite::
5685
2.49M
      InternalWriteMessageToArray(
5686
2.49M
        9, *this->ybctid_column_value_, deterministic, target);
5687
2.49M
  }
5688
5689
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5690
3.09M
  for (unsigned int i = 0,
5691
9.96M
      n = static_cast<unsigned int>(this->column_values_size()); i < n; i++) {
5692
6.87M
    target = ::google::protobuf::internal::WireFormatLite::
5693
6.87M
      InternalWriteMessageToArray(
5694
6.87M
        10, this->column_values(static_cast<int>(i)), deterministic, target);
5695
6.87M
  }
5696
5697
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5698
3.09M
  for (unsigned int i = 0,
5699
3.55M
      n = static_cast<unsigned int>(this->column_new_values_size()); i < n; i++) {
5700
460k
    target = ::google::protobuf::internal::WireFormatLite::
5701
460k
      InternalWriteMessageToArray(
5702
460k
        11, this->column_new_values(static_cast<int>(i)), deterministic, target);
5703
460k
  }
5704
5705
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5706
3.09M
  if (cached_has_bits & 0x00000008u) {
5707
0
    target = ::google::protobuf::internal::WireFormatLite::
5708
0
      InternalWriteMessageToArray(
5709
0
        12, *this->rsrow_desc_, deterministic, target);
5710
0
  }
5711
5712
  // repeated .yb.PgsqlExpressionPB targets = 13;
5713
3.09M
  for (unsigned int i = 0,
5714
3.09M
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
5715
0
    target = ::google::protobuf::internal::WireFormatLite::
5716
0
      InternalWriteMessageToArray(
5717
0
        13, this->targets(static_cast<int>(i)), deterministic, target);
5718
0
  }
5719
5720
  // optional .yb.PgsqlExpressionPB where_expr = 14;
5721
3.09M
  if (cached_has_bits & 0x00000010u) {
5722
33
    target = ::google::protobuf::internal::WireFormatLite::
5723
33
      InternalWriteMessageToArray(
5724
33
        14, *this->where_expr_, deterministic, target);
5725
33
  }
5726
5727
  // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5728
3.09M
  if (cached_has_bits & 0x00000020u) {
5729
3.09M
    target = ::google::protobuf::internal::WireFormatLite::
5730
3.09M
      InternalWriteMessageToArray(
5731
3.09M
        15, *this->column_refs_, deterministic, target);
5732
3.09M
  }
5733
5734
  // optional uint64 ysql_catalog_version = 16;
5735
3.09M
  if (cached_has_bits & 0x00000200u) {
5736
3.08M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->ysql_catalog_version(), target);
5737
3.08M
  }
5738
5739
  // optional bool is_ysql_catalog_change = 17 [default = false];
5740
3.09M
  if (cached_has_bits & 0x00000400u) {
5741
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_ysql_catalog_change(), target);
5742
0
  }
5743
5744
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5745
3.09M
  for (unsigned int i = 0,
5746
3.09M
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
5747
0
    target = ::google::protobuf::internal::WireFormatLite::
5748
0
      InternalWriteMessageToArray(
5749
0
        18, this->batch_arguments(static_cast<int>(i)), deterministic, target);
5750
0
  }
5751
5752
  // optional bool is_backfill = 19 [default = false];
5753
3.09M
  if (cached_has_bits & 0x00000800u) {
5754
145k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->is_backfill(), target);
5755
145k
  }
5756
5757
  // optional bool is_delete_persist_needed = 20 [default = false];
5758
3.09M
  if (cached_has_bits & 0x00001000u) {
5759
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->is_delete_persist_needed(), target);
5760
0
  }
5761
5762
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5763
3.09M
  for (unsigned int i = 0,
5764
3.55M
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
5765
460k
    target = ::google::protobuf::internal::WireFormatLite::
5766
460k
      InternalWriteMessageToArray(
5767
460k
        21, this->col_refs(static_cast<int>(i)), deterministic, target);
5768
460k
  }
5769
5770
  // optional string partition_key = 22;
5771
3.09M
  if (cached_has_bits & 0x00000002u) {
5772
3.09M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5773
3.09M
      this->partition_key().data(), static_cast<int>(this->partition_key().length()),
5774
3.09M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5775
3.09M
      "yb.PgsqlWriteRequestPB.partition_key");
5776
3.09M
    target =
5777
3.09M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5778
3.09M
        22, this->partition_key(), target);
5779
3.09M
  }
5780
5781
3.09M
  if (_internal_metadata_.have_unknown_fields()) {
5782
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5783
0
        _internal_metadata_.unknown_fields(), target);
5784
0
  }
5785
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlWriteRequestPB)
5786
3.09M
  return target;
5787
3.09M
}
5788
5789
22.5M
size_t PgsqlWriteRequestPB::ByteSizeLong() const {
5790
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlWriteRequestPB)
5791
22.5M
  size_t total_size = 0;
5792
5793
22.5M
  if (_internal_metadata_.have_unknown_fields()) {
5794
0
    total_size +=
5795
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5796
0
        _internal_metadata_.unknown_fields());
5797
0
  }
5798
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5799
22.5M
  {
5800
22.5M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
5801
22.5M
    total_size += 1UL * count;
5802
23.0M
    for (unsigned int i = 0; i < count; i++) {
5803
468k
      total_size +=
5804
468k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5805
468k
          this->partition_column_values(static_cast<int>(i)));
5806
468k
    }
5807
22.5M
  }
5808
5809
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5810
22.5M
  {
5811
22.5M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
5812
22.5M
    total_size += 1UL * count;
5813
76.1M
    for (unsigned int i = 0; i < count; i++) {
5814
53.5M
      total_size +=
5815
53.5M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5816
53.5M
          this->range_column_values(static_cast<int>(i)));
5817
53.5M
    }
5818
22.5M
  }
5819
5820
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5821
22.5M
  {
5822
22.5M
    unsigned int count = static_cast<unsigned int>(this->column_values_size());
5823
22.5M
    total_size += 1UL * count;
5824
97.0M
    for (unsigned int i = 0; i < count; i++) {
5825
74.5M
      total_size +=
5826
74.5M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5827
74.5M
          this->column_values(static_cast<int>(i)));
5828
74.5M
    }
5829
22.5M
  }
5830
5831
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5832
22.5M
  {
5833
22.5M
    unsigned int count = static_cast<unsigned int>(this->column_new_values_size());
5834
22.5M
    total_size += 1UL * count;
5835
23.4M
    for (unsigned int i = 0; i < count; i++) {
5836
920k
      total_size +=
5837
920k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5838
920k
          this->column_new_values(static_cast<int>(i)));
5839
920k
    }
5840
22.5M
  }
5841
5842
  // repeated .yb.PgsqlExpressionPB targets = 13;
5843
22.5M
  {
5844
22.5M
    unsigned int count = static_cast<unsigned int>(this->targets_size());
5845
22.5M
    total_size += 1UL * count;
5846
22.5M
    for (unsigned int i = 0; i < count; i++) {
5847
0
      total_size +=
5848
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5849
0
          this->targets(static_cast<int>(i)));
5850
0
    }
5851
22.5M
  }
5852
5853
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5854
22.5M
  {
5855
22.5M
    unsigned int count = static_cast<unsigned int>(this->batch_arguments_size());
5856
22.5M
    total_size += 2UL * count;
5857
22.5M
    for (unsigned int i = 0; i < count; i++) {
5858
0
      total_size +=
5859
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5860
0
          this->batch_arguments(static_cast<int>(i)));
5861
0
    }
5862
22.5M
  }
5863
5864
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5865
22.5M
  {
5866
22.5M
    unsigned int count = static_cast<unsigned int>(this->col_refs_size());
5867
22.5M
    total_size += 2UL * count;
5868
23.4M
    for (unsigned int i = 0; i < count; i++) {
5869
920k
      total_size +=
5870
920k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5871
920k
          this->col_refs(static_cast<int>(i)));
5872
920k
    }
5873
22.5M
  }
5874
5875
22.5M
  if (_has_bits_[0 / 32] & 255u) {
5876
    // optional bytes table_id = 4;
5877
22.5M
    if (has_table_id()) {
5878
22.5M
      total_size += 1 +
5879
22.5M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5880
22.5M
          this->table_id());
5881
22.5M
    }
5882
5883
    // optional string partition_key = 22;
5884
22.5M
    if (has_partition_key()) {
5885
6.19M
      total_size += 2 +
5886
6.19M
        ::google::protobuf::internal::WireFormatLite::StringSize(
5887
6.19M
          this->partition_key());
5888
6.19M
    }
5889
5890
    // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5891
22.5M
    if (has_ybctid_column_value()) {
5892
4.99M
      total_size += 1 +
5893
4.99M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5894
4.99M
          *this->ybctid_column_value_);
5895
4.99M
    }
5896
5897
    // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5898
22.5M
    if (has_rsrow_desc()) {
5899
0
      total_size += 1 +
5900
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5901
0
          *this->rsrow_desc_);
5902
0
    }
5903
5904
    // optional .yb.PgsqlExpressionPB where_expr = 14;
5905
22.5M
    if (has_where_expr()) {
5906
66
      total_size += 1 +
5907
66
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5908
66
          *this->where_expr_);
5909
66
    }
5910
5911
    // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5912
22.5M
    if (has_column_refs()) {
5913
6.19M
      total_size += 1 +
5914
6.19M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5915
6.19M
          *this->column_refs_);
5916
6.19M
    }
5917
5918
    // optional uint64 stmt_id = 2;
5919
22.5M
    if (has_stmt_id()) {
5920
6.19M
      total_size += 1 +
5921
6.19M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5922
6.19M
          this->stmt_id());
5923
6.19M
    }
5924
5925
    // optional uint32 schema_version = 5;
5926
22.5M
    if (has_schema_version()) {
5927
22.5M
      total_size += 1 +
5928
22.5M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5929
22.5M
          this->schema_version());
5930
22.5M
    }
5931
5932
22.5M
  }
5933
22.5M
  if (_has_bits_[8 / 32] & 32512u) {
5934
    // optional uint32 hash_code = 6;
5935
22.5M
    if (has_hash_code()) {
5936
3.89M
      total_size += 1 +
5937
3.89M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5938
3.89M
          this->hash_code());
5939
3.89M
    }
5940
5941
    // optional uint64 ysql_catalog_version = 16;
5942
22.5M
    if (has_ysql_catalog_version()) {
5943
6.17M
      total_size += 2 +
5944
6.17M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5945
6.17M
          this->ysql_catalog_version());
5946
6.17M
    }
5947
5948
    // optional bool is_ysql_catalog_change = 17 [default = false];
5949
22.5M
    if (has_is_ysql_catalog_change()) {
5950
0
      total_size += 2 + 1;
5951
0
    }
5952
5953
    // optional bool is_backfill = 19 [default = false];
5954
22.5M
    if (has_is_backfill()) {
5955
290k
      total_size += 2 + 1;
5956
290k
    }
5957
5958
    // optional bool is_delete_persist_needed = 20 [default = false];
5959
22.5M
    if (has_is_delete_persist_needed()) {
5960
0
      total_size += 2 + 1;
5961
0
    }
5962
5963
    // optional .yb.QLClient client = 1;
5964
22.5M
    if (has_client()) {
5965
22.5M
      total_size += 1 +
5966
22.5M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->client());
5967
22.5M
    }
5968
5969
    // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5970
22.5M
    if (has_stmt_type()) {
5971
22.5M
      total_size += 1 +
5972
22.5M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->stmt_type());
5973
22.5M
    }
5974
5975
22.5M
  }
5976
22.5M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5977
22.5M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5978
22.5M
  _cached_size_ = cached_size;
5979
22.5M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5980
22.5M
  return total_size;
5981
22.5M
}
5982
5983
0
void PgsqlWriteRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5984
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlWriteRequestPB)
5985
0
  GOOGLE_DCHECK_NE(&from, this);
5986
0
  const PgsqlWriteRequestPB* source =
5987
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlWriteRequestPB>(
5988
0
          &from);
5989
0
  if (source == NULL) {
5990
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlWriteRequestPB)
5991
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5992
0
  } else {
5993
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlWriteRequestPB)
5994
0
    MergeFrom(*source);
5995
0
  }
5996
0
}
5997
5998
0
void PgsqlWriteRequestPB::MergeFrom(const PgsqlWriteRequestPB& from) {
5999
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlWriteRequestPB)
6000
0
  GOOGLE_DCHECK_NE(&from, this);
6001
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6002
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6003
0
  (void) cached_has_bits;
6004
6005
0
  partition_column_values_.MergeFrom(from.partition_column_values_);
6006
0
  range_column_values_.MergeFrom(from.range_column_values_);
6007
0
  column_values_.MergeFrom(from.column_values_);
6008
0
  column_new_values_.MergeFrom(from.column_new_values_);
6009
0
  targets_.MergeFrom(from.targets_);
6010
0
  batch_arguments_.MergeFrom(from.batch_arguments_);
6011
0
  col_refs_.MergeFrom(from.col_refs_);
6012
0
  cached_has_bits = from._has_bits_[0];
6013
0
  if (cached_has_bits & 255u) {
6014
0
    if (cached_has_bits & 0x00000001u) {
6015
0
      set_has_table_id();
6016
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6017
0
    }
6018
0
    if (cached_has_bits & 0x00000002u) {
6019
0
      set_has_partition_key();
6020
0
      partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
6021
0
    }
6022
0
    if (cached_has_bits & 0x00000004u) {
6023
0
      mutable_ybctid_column_value()->::yb::PgsqlExpressionPB::MergeFrom(from.ybctid_column_value());
6024
0
    }
6025
0
    if (cached_has_bits & 0x00000008u) {
6026
0
      mutable_rsrow_desc()->::yb::PgsqlRSRowDescPB::MergeFrom(from.rsrow_desc());
6027
0
    }
6028
0
    if (cached_has_bits & 0x00000010u) {
6029
0
      mutable_where_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.where_expr());
6030
0
    }
6031
0
    if (cached_has_bits & 0x00000020u) {
6032
0
      mutable_column_refs()->::yb::PgsqlColumnRefsPB::MergeFrom(from.column_refs());
6033
0
    }
6034
0
    if (cached_has_bits & 0x00000040u) {
6035
0
      stmt_id_ = from.stmt_id_;
6036
0
    }
6037
0
    if (cached_has_bits & 0x00000080u) {
6038
0
      schema_version_ = from.schema_version_;
6039
0
    }
6040
0
    _has_bits_[0] |= cached_has_bits;
6041
0
  }
6042
0
  if (cached_has_bits & 32512u) {
6043
0
    if (cached_has_bits & 0x00000100u) {
6044
0
      hash_code_ = from.hash_code_;
6045
0
    }
6046
0
    if (cached_has_bits & 0x00000200u) {
6047
0
      ysql_catalog_version_ = from.ysql_catalog_version_;
6048
0
    }
6049
0
    if (cached_has_bits & 0x00000400u) {
6050
0
      is_ysql_catalog_change_ = from.is_ysql_catalog_change_;
6051
0
    }
6052
0
    if (cached_has_bits & 0x00000800u) {
6053
0
      is_backfill_ = from.is_backfill_;
6054
0
    }
6055
0
    if (cached_has_bits & 0x00001000u) {
6056
0
      is_delete_persist_needed_ = from.is_delete_persist_needed_;
6057
0
    }
6058
0
    if (cached_has_bits & 0x00002000u) {
6059
0
      client_ = from.client_;
6060
0
    }
6061
0
    if (cached_has_bits & 0x00004000u) {
6062
0
      stmt_type_ = from.stmt_type_;
6063
0
    }
6064
0
    _has_bits_[0] |= cached_has_bits;
6065
0
  }
6066
0
}
6067
6068
0
void PgsqlWriteRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6069
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlWriteRequestPB)
6070
0
  if (&from == this) return;
6071
0
  Clear();
6072
0
  MergeFrom(from);
6073
0
}
6074
6075
0
void PgsqlWriteRequestPB::CopyFrom(const PgsqlWriteRequestPB& from) {
6076
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlWriteRequestPB)
6077
0
  if (&from == this) return;
6078
0
  Clear();
6079
0
  MergeFrom(from);
6080
0
}
6081
6082
0
bool PgsqlWriteRequestPB::IsInitialized() const {
6083
0
  return true;
6084
0
}
6085
6086
0
void PgsqlWriteRequestPB::Swap(PgsqlWriteRequestPB* other) {
6087
0
  if (other == this) return;
6088
0
  InternalSwap(other);
6089
0
}
6090
0
void PgsqlWriteRequestPB::InternalSwap(PgsqlWriteRequestPB* other) {
6091
0
  using std::swap;
6092
0
  partition_column_values_.InternalSwap(&other->partition_column_values_);
6093
0
  range_column_values_.InternalSwap(&other->range_column_values_);
6094
0
  column_values_.InternalSwap(&other->column_values_);
6095
0
  column_new_values_.InternalSwap(&other->column_new_values_);
6096
0
  targets_.InternalSwap(&other->targets_);
6097
0
  batch_arguments_.InternalSwap(&other->batch_arguments_);
6098
0
  col_refs_.InternalSwap(&other->col_refs_);
6099
0
  table_id_.Swap(&other->table_id_);
6100
0
  partition_key_.Swap(&other->partition_key_);
6101
0
  swap(ybctid_column_value_, other->ybctid_column_value_);
6102
0
  swap(rsrow_desc_, other->rsrow_desc_);
6103
0
  swap(where_expr_, other->where_expr_);
6104
0
  swap(column_refs_, other->column_refs_);
6105
0
  swap(stmt_id_, other->stmt_id_);
6106
0
  swap(schema_version_, other->schema_version_);
6107
0
  swap(hash_code_, other->hash_code_);
6108
0
  swap(ysql_catalog_version_, other->ysql_catalog_version_);
6109
0
  swap(is_ysql_catalog_change_, other->is_ysql_catalog_change_);
6110
0
  swap(is_backfill_, other->is_backfill_);
6111
0
  swap(is_delete_persist_needed_, other->is_delete_persist_needed_);
6112
0
  swap(client_, other->client_);
6113
0
  swap(stmt_type_, other->stmt_type_);
6114
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6115
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6116
0
  swap(_cached_size_, other->_cached_size_);
6117
0
}
6118
6119
3.09M
::google::protobuf::Metadata PgsqlWriteRequestPB::GetMetadata() const {
6120
3.09M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6121
3.09M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6122
3.09M
}
6123
6124
6125
// ===================================================================
6126
6127
17.1k
void PgsqlPagingStatePB::InitAsDefaultInstance() {
6128
17.1k
  ::yb::_PgsqlPagingStatePB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>(
6129
17.1k
      ::yb::ReadHybridTimePB::internal_default_instance());
6130
17.1k
}
6131
0
void PgsqlPagingStatePB::clear_read_time() {
6132
0
  if (read_time_ != NULL) read_time_->Clear();
6133
0
  clear_has_read_time();
6134
0
}
6135
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6136
const int PgsqlPagingStatePB::kTableIdFieldNumber;
6137
const int PgsqlPagingStatePB::kNextPartitionKeyFieldNumber;
6138
const int PgsqlPagingStatePB::kNextRowKeyFieldNumber;
6139
const int PgsqlPagingStatePB::kTotalNumRowsReadFieldNumber;
6140
const int PgsqlPagingStatePB::kNextPartitionIndexFieldNumber;
6141
const int PgsqlPagingStatePB::kReadTimeFieldNumber;
6142
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6143
6144
PgsqlPagingStatePB::PgsqlPagingStatePB()
6145
292k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6146
275k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6147
275k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
6148
275k
  }
6149
292k
  SharedCtor();
6150
  // @@protoc_insertion_point(constructor:yb.PgsqlPagingStatePB)
6151
292k
}
6152
PgsqlPagingStatePB::PgsqlPagingStatePB(const PgsqlPagingStatePB& from)
6153
  : ::google::protobuf::Message(),
6154
      _internal_metadata_(NULL),
6155
      _has_bits_(from._has_bits_),
6156
0
      _cached_size_(0) {
6157
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6158
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6159
0
  if (from.has_table_id()) {
6160
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6161
0
  }
6162
0
  next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6163
0
  if (from.has_next_partition_key()) {
6164
0
    next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_);
6165
0
  }
6166
0
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6167
0
  if (from.has_next_row_key()) {
6168
0
    next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6169
0
  }
6170
0
  if (from.has_read_time()) {
6171
0
    read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_);
6172
0
  } else {
6173
0
    read_time_ = NULL;
6174
0
  }
6175
0
  ::memcpy(&total_num_rows_read_, &from.total_num_rows_read_,
6176
0
    static_cast<size_t>(reinterpret_cast<char*>(&next_partition_index_) -
6177
0
    reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(next_partition_index_));
6178
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlPagingStatePB)
6179
0
}
6180
6181
292k
void PgsqlPagingStatePB::SharedCtor() {
6182
292k
  _cached_size_ = 0;
6183
292k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6184
292k
  next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6185
292k
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6186
292k
  ::memset(&read_time_, 0, static_cast<size_t>(
6187
292k
      reinterpret_cast<char*>(&next_partition_index_) -
6188
292k
      reinterpret_cast<char*>(&read_time_)) + sizeof(next_partition_index_));
6189
292k
}
6190
6191
275k
PgsqlPagingStatePB::~PgsqlPagingStatePB() {
6192
  // @@protoc_insertion_point(destructor:yb.PgsqlPagingStatePB)
6193
275k
  SharedDtor();
6194
275k
}
6195
6196
275k
void PgsqlPagingStatePB::SharedDtor() {
6197
275k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6198
275k
  next_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6199
275k
  next_row_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6200
275k
  if (this != internal_default_instance()) delete read_time_;
6201
275k
}
6202
6203
0
void PgsqlPagingStatePB::SetCachedSize(int size) const {
6204
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6205
0
  _cached_size_ = size;
6206
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6207
0
}
6208
0
const ::google::protobuf::Descriptor* PgsqlPagingStatePB::descriptor() {
6209
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6210
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6211
0
}
6212
6213
0
const PgsqlPagingStatePB& PgsqlPagingStatePB::default_instance() {
6214
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
6215
0
  return *internal_default_instance();
6216
0
}
6217
6218
0
PgsqlPagingStatePB* PgsqlPagingStatePB::New(::google::protobuf::Arena* arena) const {
6219
0
  PgsqlPagingStatePB* n = new PgsqlPagingStatePB;
6220
0
  if (arena != NULL) {
6221
0
    arena->Own(n);
6222
0
  }
6223
0
  return n;
6224
0
}
6225
6226
0
void PgsqlPagingStatePB::Clear() {
6227
// @@protoc_insertion_point(message_clear_start:yb.PgsqlPagingStatePB)
6228
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6229
  // Prevent compiler warnings about cached_has_bits being unused
6230
0
  (void) cached_has_bits;
6231
6232
0
  cached_has_bits = _has_bits_[0];
6233
0
  if (cached_has_bits & 15u) {
6234
0
    if (cached_has_bits & 0x00000001u) {
6235
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6236
0
      (*table_id_.UnsafeRawStringPointer())->clear();
6237
0
    }
6238
0
    if (cached_has_bits & 0x00000002u) {
6239
0
      GOOGLE_DCHECK(!next_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6240
0
      (*next_partition_key_.UnsafeRawStringPointer())->clear();
6241
0
    }
6242
0
    if (cached_has_bits & 0x00000004u) {
6243
0
      GOOGLE_DCHECK(!next_row_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6244
0
      (*next_row_key_.UnsafeRawStringPointer())->clear();
6245
0
    }
6246
0
    if (cached_has_bits & 0x00000008u) {
6247
0
      GOOGLE_DCHECK(read_time_ != NULL);
6248
0
      read_time_->Clear();
6249
0
    }
6250
0
  }
6251
0
  if (cached_has_bits & 48u) {
6252
0
    ::memset(&total_num_rows_read_, 0, static_cast<size_t>(
6253
0
        reinterpret_cast<char*>(&next_partition_index_) -
6254
0
        reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(next_partition_index_));
6255
0
  }
6256
0
  _has_bits_.Clear();
6257
0
  _internal_metadata_.Clear();
6258
0
}
6259
6260
bool PgsqlPagingStatePB::MergePartialFromCodedStream(
6261
197k
    ::google::protobuf::io::CodedInputStream* input) {
6262
573k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6263
197k
  ::google::protobuf::uint32 tag;
6264
  // @@protoc_insertion_point(parse_start:yb.PgsqlPagingStatePB)
6265
771k
  for (;;) {
6266
771k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6267
771k
    tag = p.first;
6268
771k
    if (!p.second) goto handle_unusual;
6269
573k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6270
      // optional bytes table_id = 1;
6271
0
      case 1: {
6272
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6273
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6274
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6275
0
                input, this->mutable_table_id()));
6276
0
        } else {
6277
0
          goto handle_unusual;
6278
0
        }
6279
0
        break;
6280
0
      }
6281
6282
      // optional bytes next_partition_key = 2;
6283
197k
      case 2: {
6284
197k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6285
197k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6286
197k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6287
197k
                input, this->mutable_next_partition_key()));
6288
0
        } else {
6289
0
          goto handle_unusual;
6290
0
        }
6291
197k
        break;
6292
197k
      }
6293
6294
      // optional bytes next_row_key = 3;
6295
89.0k
      case 3: {
6296
89.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6297
89.0k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6298
89.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6299
89.0k
                input, this->mutable_next_row_key()));
6300
0
        } else {
6301
0
          goto handle_unusual;
6302
0
        }
6303
89.0k
        break;
6304
89.0k
      }
6305
6306
      // optional uint64 total_num_rows_read = 4;
6307
197k
      case 4: {
6308
197k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6309
197k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6310
197k
          set_has_total_num_rows_read();
6311
197k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6312
197k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6313
197k
                 input, &total_num_rows_read_)));
6314
0
        } else {
6315
0
          goto handle_unusual;
6316
0
        }
6317
197k
        break;
6318
197k
      }
6319
6320
      // optional uint64 next_partition_index = 5;
6321
0
      case 5: {
6322
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6323
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
6324
0
          set_has_next_partition_index();
6325
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6326
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6327
0
                 input, &next_partition_index_)));
6328
0
        } else {
6329
0
          goto handle_unusual;
6330
0
        }
6331
0
        break;
6332
0
      }
6333
6334
      // optional .yb.ReadHybridTimePB read_time = 6;
6335
89.0k
      case 6: {
6336
89.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6337
89.0k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6338
89.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6339
89.0k
               input, mutable_read_time()));
6340
0
        } else {
6341
0
          goto handle_unusual;
6342
0
        }
6343
89.0k
        break;
6344
197k
      }
6345
6346
0
      default: {
6347
197k
      handle_unusual:
6348
197k
        if (tag == 0) {
6349
197k
          goto success;
6350
197k
        }
6351
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6352
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6353
18.4E
        break;
6354
18.4E
      }
6355
573k
    }
6356
573k
  }
6357
197k
success:
6358
  // @@protoc_insertion_point(parse_success:yb.PgsqlPagingStatePB)
6359
197k
  return true;
6360
0
failure:
6361
  // @@protoc_insertion_point(parse_failure:yb.PgsqlPagingStatePB)
6362
0
  return false;
6363
197k
#undef DO_
6364
197k
}
6365
6366
void PgsqlPagingStatePB::SerializeWithCachedSizes(
6367
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6368
  // @@protoc_insertion_point(serialize_start:yb.PgsqlPagingStatePB)
6369
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6370
0
  (void) cached_has_bits;
6371
6372
0
  cached_has_bits = _has_bits_[0];
6373
  // optional bytes table_id = 1;
6374
0
  if (cached_has_bits & 0x00000001u) {
6375
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6376
0
      1, this->table_id(), output);
6377
0
  }
6378
6379
  // optional bytes next_partition_key = 2;
6380
0
  if (cached_has_bits & 0x00000002u) {
6381
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6382
0
      2, this->next_partition_key(), output);
6383
0
  }
6384
6385
  // optional bytes next_row_key = 3;
6386
0
  if (cached_has_bits & 0x00000004u) {
6387
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6388
0
      3, this->next_row_key(), output);
6389
0
  }
6390
6391
  // optional uint64 total_num_rows_read = 4;
6392
0
  if (cached_has_bits & 0x00000010u) {
6393
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->total_num_rows_read(), output);
6394
0
  }
6395
6396
  // optional uint64 next_partition_index = 5;
6397
0
  if (cached_has_bits & 0x00000020u) {
6398
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->next_partition_index(), output);
6399
0
  }
6400
6401
  // optional .yb.ReadHybridTimePB read_time = 6;
6402
0
  if (cached_has_bits & 0x00000008u) {
6403
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6404
0
      6, *this->read_time_, output);
6405
0
  }
6406
6407
0
  if (_internal_metadata_.have_unknown_fields()) {
6408
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6409
0
        _internal_metadata_.unknown_fields(), output);
6410
0
  }
6411
  // @@protoc_insertion_point(serialize_end:yb.PgsqlPagingStatePB)
6412
0
}
6413
6414
::google::protobuf::uint8* PgsqlPagingStatePB::InternalSerializeWithCachedSizesToArray(
6415
197k
    bool deterministic, ::google::protobuf::uint8* target) const {
6416
197k
  (void)deterministic; // Unused
6417
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlPagingStatePB)
6418
197k
  ::google::protobuf::uint32 cached_has_bits = 0;
6419
197k
  (void) cached_has_bits;
6420
6421
197k
  cached_has_bits = _has_bits_[0];
6422
  // optional bytes table_id = 1;
6423
197k
  if (cached_has_bits & 0x00000001u) {
6424
0
    target =
6425
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6426
0
        1, this->table_id(), target);
6427
0
  }
6428
6429
  // optional bytes next_partition_key = 2;
6430
197k
  if (cached_has_bits & 0x00000002u) {
6431
197k
    target =
6432
197k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6433
197k
        2, this->next_partition_key(), target);
6434
197k
  }
6435
6436
  // optional bytes next_row_key = 3;
6437
197k
  if (cached_has_bits & 0x00000004u) {
6438
89.0k
    target =
6439
89.0k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6440
89.0k
        3, this->next_row_key(), target);
6441
89.0k
  }
6442
6443
  // optional uint64 total_num_rows_read = 4;
6444
197k
  if (cached_has_bits & 0x00000010u) {
6445
197k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->total_num_rows_read(), target);
6446
197k
  }
6447
6448
  // optional uint64 next_partition_index = 5;
6449
197k
  if (cached_has_bits & 0x00000020u) {
6450
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->next_partition_index(), target);
6451
0
  }
6452
6453
  // optional .yb.ReadHybridTimePB read_time = 6;
6454
197k
  if (cached_has_bits & 0x00000008u) {
6455
89.0k
    target = ::google::protobuf::internal::WireFormatLite::
6456
89.0k
      InternalWriteMessageToArray(
6457
89.0k
        6, *this->read_time_, deterministic, target);
6458
89.0k
  }
6459
6460
197k
  if (_internal_metadata_.have_unknown_fields()) {
6461
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6462
0
        _internal_metadata_.unknown_fields(), target);
6463
0
  }
6464
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlPagingStatePB)
6465
197k
  return target;
6466
197k
}
6467
6468
395k
size_t PgsqlPagingStatePB::ByteSizeLong() const {
6469
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlPagingStatePB)
6470
395k
  size_t total_size = 0;
6471
6472
395k
  if (_internal_metadata_.have_unknown_fields()) {
6473
0
    total_size +=
6474
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6475
0
        _internal_metadata_.unknown_fields());
6476
0
  }
6477
395k
  if (_has_bits_[0 / 32] & 63u) {
6478
    // optional bytes table_id = 1;
6479
395k
    if (has_table_id()) {
6480
0
      total_size += 1 +
6481
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6482
0
          this->table_id());
6483
0
    }
6484
6485
    // optional bytes next_partition_key = 2;
6486
395k
    if (has_next_partition_key()) {
6487
395k
      total_size += 1 +
6488
395k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6489
395k
          this->next_partition_key());
6490
395k
    }
6491
6492
    // optional bytes next_row_key = 3;
6493
395k
    if (has_next_row_key()) {
6494
178k
      total_size += 1 +
6495
178k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6496
178k
          this->next_row_key());
6497
178k
    }
6498
6499
    // optional .yb.ReadHybridTimePB read_time = 6;
6500
395k
    if (has_read_time()) {
6501
178k
      total_size += 1 +
6502
178k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6503
178k
          *this->read_time_);
6504
178k
    }
6505
6506
    // optional uint64 total_num_rows_read = 4;
6507
395k
    if (has_total_num_rows_read()) {
6508
395k
      total_size += 1 +
6509
395k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6510
395k
          this->total_num_rows_read());
6511
395k
    }
6512
6513
    // optional uint64 next_partition_index = 5;
6514
395k
    if (has_next_partition_index()) {
6515
0
      total_size += 1 +
6516
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6517
0
          this->next_partition_index());
6518
0
    }
6519
6520
395k
  }
6521
395k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6522
395k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6523
395k
  _cached_size_ = cached_size;
6524
395k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6525
395k
  return total_size;
6526
395k
}
6527
6528
0
void PgsqlPagingStatePB::MergeFrom(const ::google::protobuf::Message& from) {
6529
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlPagingStatePB)
6530
0
  GOOGLE_DCHECK_NE(&from, this);
6531
0
  const PgsqlPagingStatePB* source =
6532
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlPagingStatePB>(
6533
0
          &from);
6534
0
  if (source == NULL) {
6535
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlPagingStatePB)
6536
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6537
0
  } else {
6538
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlPagingStatePB)
6539
0
    MergeFrom(*source);
6540
0
  }
6541
0
}
6542
6543
0
void PgsqlPagingStatePB::MergeFrom(const PgsqlPagingStatePB& from) {
6544
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlPagingStatePB)
6545
0
  GOOGLE_DCHECK_NE(&from, this);
6546
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6547
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6548
0
  (void) cached_has_bits;
6549
6550
0
  cached_has_bits = from._has_bits_[0];
6551
0
  if (cached_has_bits & 63u) {
6552
0
    if (cached_has_bits & 0x00000001u) {
6553
0
      set_has_table_id();
6554
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6555
0
    }
6556
0
    if (cached_has_bits & 0x00000002u) {
6557
0
      set_has_next_partition_key();
6558
0
      next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_);
6559
0
    }
6560
0
    if (cached_has_bits & 0x00000004u) {
6561
0
      set_has_next_row_key();
6562
0
      next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6563
0
    }
6564
0
    if (cached_has_bits & 0x00000008u) {
6565
0
      mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time());
6566
0
    }
6567
0
    if (cached_has_bits & 0x00000010u) {
6568
0
      total_num_rows_read_ = from.total_num_rows_read_;
6569
0
    }
6570
0
    if (cached_has_bits & 0x00000020u) {
6571
0
      next_partition_index_ = from.next_partition_index_;
6572
0
    }
6573
0
    _has_bits_[0] |= cached_has_bits;
6574
0
  }
6575
0
}
6576
6577
0
void PgsqlPagingStatePB::CopyFrom(const ::google::protobuf::Message& from) {
6578
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlPagingStatePB)
6579
0
  if (&from == this) return;
6580
0
  Clear();
6581
0
  MergeFrom(from);
6582
0
}
6583
6584
0
void PgsqlPagingStatePB::CopyFrom(const PgsqlPagingStatePB& from) {
6585
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlPagingStatePB)
6586
0
  if (&from == this) return;
6587
0
  Clear();
6588
0
  MergeFrom(from);
6589
0
}
6590
6591
0
bool PgsqlPagingStatePB::IsInitialized() const {
6592
0
  return true;
6593
0
}
6594
6595
0
void PgsqlPagingStatePB::Swap(PgsqlPagingStatePB* other) {
6596
0
  if (other == this) return;
6597
0
  InternalSwap(other);
6598
0
}
6599
56.0k
void PgsqlPagingStatePB::InternalSwap(PgsqlPagingStatePB* other) {
6600
56.0k
  using std::swap;
6601
56.0k
  table_id_.Swap(&other->table_id_);
6602
56.0k
  next_partition_key_.Swap(&other->next_partition_key_);
6603
56.0k
  next_row_key_.Swap(&other->next_row_key_);
6604
56.0k
  swap(read_time_, other->read_time_);
6605
56.0k
  swap(total_num_rows_read_, other->total_num_rows_read_);
6606
56.0k
  swap(next_partition_index_, other->next_partition_index_);
6607
56.0k
  swap(_has_bits_[0], other->_has_bits_[0]);
6608
56.0k
  _internal_metadata_.Swap(&other->_internal_metadata_);
6609
56.0k
  swap(_cached_size_, other->_cached_size_);
6610
56.0k
}
6611
6612
96.5k
::google::protobuf::Metadata PgsqlPagingStatePB::GetMetadata() const {
6613
96.5k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6614
96.5k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6615
96.5k
}
6616
6617
6618
// ===================================================================
6619
6620
17.1k
void PgsqlBackfillSpecPB::InitAsDefaultInstance() {
6621
17.1k
}
6622
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6623
const int PgsqlBackfillSpecPB::kLimitFieldNumber;
6624
const int PgsqlBackfillSpecPB::kCountFieldNumber;
6625
const int PgsqlBackfillSpecPB::kNextRowKeyFieldNumber;
6626
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6627
6628
PgsqlBackfillSpecPB::PgsqlBackfillSpecPB()
6629
18.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6630
1.86k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6631
1.86k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBackfillSpecPB();
6632
1.86k
  }
6633
18.9k
  SharedCtor();
6634
  // @@protoc_insertion_point(constructor:yb.PgsqlBackfillSpecPB)
6635
18.9k
}
6636
PgsqlBackfillSpecPB::PgsqlBackfillSpecPB(const PgsqlBackfillSpecPB& from)
6637
  : ::google::protobuf::Message(),
6638
      _internal_metadata_(NULL),
6639
      _has_bits_(from._has_bits_),
6640
0
      _cached_size_(0) {
6641
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6642
0
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6643
0
  if (from.has_next_row_key()) {
6644
0
    next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6645
0
  }
6646
0
  ::memcpy(&count_, &from.count_,
6647
0
    static_cast<size_t>(reinterpret_cast<char*>(&limit_) -
6648
0
    reinterpret_cast<char*>(&count_)) + sizeof(limit_));
6649
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlBackfillSpecPB)
6650
0
}
6651
6652
18.9k
void PgsqlBackfillSpecPB::SharedCtor() {
6653
18.9k
  _cached_size_ = 0;
6654
18.9k
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6655
18.9k
  count_ = GOOGLE_LONGLONG(0);
6656
18.9k
  limit_ = GOOGLE_LONGLONG(-1);
6657
18.9k
}
6658
6659
1.86k
PgsqlBackfillSpecPB::~PgsqlBackfillSpecPB() {
6660
  // @@protoc_insertion_point(destructor:yb.PgsqlBackfillSpecPB)
6661
1.86k
  SharedDtor();
6662
1.86k
}
6663
6664
1.86k
void PgsqlBackfillSpecPB::SharedDtor() {
6665
1.86k
  next_row_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6666
1.86k
}
6667
6668
0
void PgsqlBackfillSpecPB::SetCachedSize(int size) const {
6669
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6670
0
  _cached_size_ = size;
6671
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6672
0
}
6673
0
const ::google::protobuf::Descriptor* PgsqlBackfillSpecPB::descriptor() {
6674
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6675
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6676
0
}
6677
6678
0
const PgsqlBackfillSpecPB& PgsqlBackfillSpecPB::default_instance() {
6679
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBackfillSpecPB();
6680
0
  return *internal_default_instance();
6681
0
}
6682
6683
0
PgsqlBackfillSpecPB* PgsqlBackfillSpecPB::New(::google::protobuf::Arena* arena) const {
6684
0
  PgsqlBackfillSpecPB* n = new PgsqlBackfillSpecPB;
6685
0
  if (arena != NULL) {
6686
0
    arena->Own(n);
6687
0
  }
6688
0
  return n;
6689
0
}
6690
6691
802
void PgsqlBackfillSpecPB::Clear() {
6692
// @@protoc_insertion_point(message_clear_start:yb.PgsqlBackfillSpecPB)
6693
802
  ::google::protobuf::uint32 cached_has_bits = 0;
6694
  // Prevent compiler warnings about cached_has_bits being unused
6695
802
  (void) cached_has_bits;
6696
6697
802
  cached_has_bits = _has_bits_[0];
6698
802
  if (cached_has_bits & 0x00000001u) {
6699
0
    GOOGLE_DCHECK(!next_row_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6700
0
    (*next_row_key_.UnsafeRawStringPointer())->clear();
6701
0
  }
6702
802
  if (cached_has_bits & 6u) {
6703
0
    count_ = GOOGLE_LONGLONG(0);
6704
0
    limit_ = GOOGLE_LONGLONG(-1);
6705
0
  }
6706
802
  _has_bits_.Clear();
6707
802
  _internal_metadata_.Clear();
6708
802
}
6709
6710
bool PgsqlBackfillSpecPB::MergePartialFromCodedStream(
6711
802
    ::google::protobuf::io::CodedInputStream* input) {
6712
1.62k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6713
802
  ::google::protobuf::uint32 tag;
6714
  // @@protoc_insertion_point(parse_start:yb.PgsqlBackfillSpecPB)
6715
2.42k
  for (;;) {
6716
2.42k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6717
2.42k
    tag = p.first;
6718
2.42k
    if (!p.second) goto handle_unusual;
6719
1.62k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6720
      // optional int64 limit = 1 [default = -1];
6721
802
      case 1: {
6722
802
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6723
802
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6724
802
          set_has_limit();
6725
802
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6726
802
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6727
802
                 input, &limit_)));
6728
0
        } else {
6729
0
          goto handle_unusual;
6730
0
        }
6731
802
        break;
6732
802
      }
6733
6734
      // optional int64 count = 2 [default = 0];
6735
288
      case 2: {
6736
288
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6737
288
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6738
288
          set_has_count();
6739
288
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6740
288
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6741
288
                 input, &count_)));
6742
0
        } else {
6743
0
          goto handle_unusual;
6744
0
        }
6745
288
        break;
6746
288
      }
6747
6748
      // optional bytes next_row_key = 3;
6749
536
      case 3: {
6750
536
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6751
536
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6752
536
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6753
536
                input, this->mutable_next_row_key()));
6754
0
        } else {
6755
0
          goto handle_unusual;
6756
0
        }
6757
536
        break;
6758
802
      }
6759
6760
0
      default: {
6761
802
      handle_unusual:
6762
802
        if (tag == 0) {
6763
802
          goto success;
6764
802
        }
6765
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6766
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6767
0
        break;
6768
0
      }
6769
1.62k
    }
6770
1.62k
  }
6771
802
success:
6772
  // @@protoc_insertion_point(parse_success:yb.PgsqlBackfillSpecPB)
6773
802
  return true;
6774
0
failure:
6775
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBackfillSpecPB)
6776
0
  return false;
6777
802
#undef DO_
6778
802
}
6779
6780
void PgsqlBackfillSpecPB::SerializeWithCachedSizes(
6781
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6782
  // @@protoc_insertion_point(serialize_start:yb.PgsqlBackfillSpecPB)
6783
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6784
0
  (void) cached_has_bits;
6785
6786
0
  cached_has_bits = _has_bits_[0];
6787
  // optional int64 limit = 1 [default = -1];
6788
0
  if (cached_has_bits & 0x00000004u) {
6789
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->limit(), output);
6790
0
  }
6791
6792
  // optional int64 count = 2 [default = 0];
6793
0
  if (cached_has_bits & 0x00000002u) {
6794
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->count(), output);
6795
0
  }
6796
6797
  // optional bytes next_row_key = 3;
6798
0
  if (cached_has_bits & 0x00000001u) {
6799
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6800
0
      3, this->next_row_key(), output);
6801
0
  }
6802
6803
0
  if (_internal_metadata_.have_unknown_fields()) {
6804
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6805
0
        _internal_metadata_.unknown_fields(), output);
6806
0
  }
6807
  // @@protoc_insertion_point(serialize_end:yb.PgsqlBackfillSpecPB)
6808
0
}
6809
6810
::google::protobuf::uint8* PgsqlBackfillSpecPB::InternalSerializeWithCachedSizesToArray(
6811
546
    bool deterministic, ::google::protobuf::uint8* target) const {
6812
546
  (void)deterministic; // Unused
6813
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBackfillSpecPB)
6814
546
  ::google::protobuf::uint32 cached_has_bits = 0;
6815
546
  (void) cached_has_bits;
6816
6817
546
  cached_has_bits = _has_bits_[0];
6818
  // optional int64 limit = 1 [default = -1];
6819
546
  if (cached_has_bits & 0x00000004u) {
6820
546
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->limit(), target);
6821
546
  }
6822
6823
  // optional int64 count = 2 [default = 0];
6824
546
  if (cached_has_bits & 0x00000002u) {
6825
289
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->count(), target);
6826
289
  }
6827
6828
  // optional bytes next_row_key = 3;
6829
546
  if (cached_has_bits & 0x00000001u) {
6830
279
    target =
6831
279
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6832
279
        3, this->next_row_key(), target);
6833
279
  }
6834
6835
546
  if (_internal_metadata_.have_unknown_fields()) {
6836
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6837
0
        _internal_metadata_.unknown_fields(), target);
6838
0
  }
6839
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlBackfillSpecPB)
6840
546
  return target;
6841
546
}
6842
6843
546
size_t PgsqlBackfillSpecPB::ByteSizeLong() const {
6844
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBackfillSpecPB)
6845
546
  size_t total_size = 0;
6846
6847
546
  if (_internal_metadata_.have_unknown_fields()) {
6848
0
    total_size +=
6849
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6850
0
        _internal_metadata_.unknown_fields());
6851
0
  }
6852
546
  if (_has_bits_[0 / 32] & 7u) {
6853
    // optional bytes next_row_key = 3;
6854
546
    if (has_next_row_key()) {
6855
279
      total_size += 1 +
6856
279
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6857
279
          this->next_row_key());
6858
279
    }
6859
6860
    // optional int64 count = 2 [default = 0];
6861
546
    if (has_count()) {
6862
289
      total_size += 1 +
6863
289
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6864
289
          this->count());
6865
289
    }
6866
6867
    // optional int64 limit = 1 [default = -1];
6868
546
    if (has_limit()) {
6869
546
      total_size += 1 +
6870
546
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6871
546
          this->limit());
6872
546
    }
6873
6874
546
  }
6875
546
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6876
546
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6877
546
  _cached_size_ = cached_size;
6878
546
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6879
546
  return total_size;
6880
546
}
6881
6882
0
void PgsqlBackfillSpecPB::MergeFrom(const ::google::protobuf::Message& from) {
6883
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlBackfillSpecPB)
6884
0
  GOOGLE_DCHECK_NE(&from, this);
6885
0
  const PgsqlBackfillSpecPB* source =
6886
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlBackfillSpecPB>(
6887
0
          &from);
6888
0
  if (source == NULL) {
6889
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlBackfillSpecPB)
6890
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6891
0
  } else {
6892
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlBackfillSpecPB)
6893
0
    MergeFrom(*source);
6894
0
  }
6895
0
}
6896
6897
0
void PgsqlBackfillSpecPB::MergeFrom(const PgsqlBackfillSpecPB& from) {
6898
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlBackfillSpecPB)
6899
0
  GOOGLE_DCHECK_NE(&from, this);
6900
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6901
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6902
0
  (void) cached_has_bits;
6903
6904
0
  cached_has_bits = from._has_bits_[0];
6905
0
  if (cached_has_bits & 7u) {
6906
0
    if (cached_has_bits & 0x00000001u) {
6907
0
      set_has_next_row_key();
6908
0
      next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6909
0
    }
6910
0
    if (cached_has_bits & 0x00000002u) {
6911
0
      count_ = from.count_;
6912
0
    }
6913
0
    if (cached_has_bits & 0x00000004u) {
6914
0
      limit_ = from.limit_;
6915
0
    }
6916
0
    _has_bits_[0] |= cached_has_bits;
6917
0
  }
6918
0
}
6919
6920
0
void PgsqlBackfillSpecPB::CopyFrom(const ::google::protobuf::Message& from) {
6921
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlBackfillSpecPB)
6922
0
  if (&from == this) return;
6923
0
  Clear();
6924
0
  MergeFrom(from);
6925
0
}
6926
6927
0
void PgsqlBackfillSpecPB::CopyFrom(const PgsqlBackfillSpecPB& from) {
6928
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlBackfillSpecPB)
6929
0
  if (&from == this) return;
6930
0
  Clear();
6931
0
  MergeFrom(from);
6932
0
}
6933
6934
1.34k
bool PgsqlBackfillSpecPB::IsInitialized() const {
6935
1.34k
  return true;
6936
1.34k
}
6937
6938
0
void PgsqlBackfillSpecPB::Swap(PgsqlBackfillSpecPB* other) {
6939
0
  if (other == this) return;
6940
0
  InternalSwap(other);
6941
0
}
6942
512
void PgsqlBackfillSpecPB::InternalSwap(PgsqlBackfillSpecPB* other) {
6943
512
  using std::swap;
6944
512
  next_row_key_.Swap(&other->next_row_key_);
6945
512
  swap(count_, other->count_);
6946
512
  swap(limit_, other->limit_);
6947
512
  swap(_has_bits_[0], other->_has_bits_[0]);
6948
512
  _internal_metadata_.Swap(&other->_internal_metadata_);
6949
512
  swap(_cached_size_, other->_cached_size_);
6950
512
}
6951
6952
0
::google::protobuf::Metadata PgsqlBackfillSpecPB::GetMetadata() const {
6953
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6954
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6955
0
}
6956
6957
6958
// ===================================================================
6959
6960
17.1k
void PgsqlReadRequestPB::InitAsDefaultInstance() {
6961
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->ybctid_column_value_ = const_cast< ::yb::PgsqlExpressionPB*>(
6962
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6963
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->index_request_ = const_cast< ::yb::PgsqlReadRequestPB*>(
6964
17.1k
      ::yb::PgsqlReadRequestPB::internal_default_instance());
6965
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
6966
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6967
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->condition_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
6968
17.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6969
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->rsrow_desc_ = const_cast< ::yb::PgsqlRSRowDescPB*>(
6970
17.1k
      ::yb::PgsqlRSRowDescPB::internal_default_instance());
6971
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::PgsqlColumnRefsPB*>(
6972
17.1k
      ::yb::PgsqlColumnRefsPB::internal_default_instance());
6973
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::PgsqlPagingStatePB*>(
6974
17.1k
      ::yb::PgsqlPagingStatePB::internal_default_instance());
6975
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::PgsqlPartitionBound*>(
6976
17.1k
      ::yb::PgsqlPartitionBound::internal_default_instance());
6977
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::PgsqlPartitionBound*>(
6978
17.1k
      ::yb::PgsqlPartitionBound::internal_default_instance());
6979
17.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->sampling_state_ = const_cast< ::yb::PgsqlSamplingStatePB*>(
6980
17.1k
      ::yb::PgsqlSamplingStatePB::internal_default_instance());
6981
17.1k
}
6982
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6983
const int PgsqlReadRequestPB::kClientFieldNumber;
6984
const int PgsqlReadRequestPB::kStmtIdFieldNumber;
6985
const int PgsqlReadRequestPB::kTableIdFieldNumber;
6986
const int PgsqlReadRequestPB::kSchemaVersionFieldNumber;
6987
const int PgsqlReadRequestPB::kHashCodeFieldNumber;
6988
const int PgsqlReadRequestPB::kYbctidColumnValueFieldNumber;
6989
const int PgsqlReadRequestPB::kPartitionColumnValuesFieldNumber;
6990
const int PgsqlReadRequestPB::kRangeColumnValuesFieldNumber;
6991
const int PgsqlReadRequestPB::kIndexRequestFieldNumber;
6992
const int PgsqlReadRequestPB::kWhereExprFieldNumber;
6993
const int PgsqlReadRequestPB::kConditionExprFieldNumber;
6994
const int PgsqlReadRequestPB::kBatchArgumentsFieldNumber;
6995
const int PgsqlReadRequestPB::kRsrowDescFieldNumber;
6996
const int PgsqlReadRequestPB::kTargetsFieldNumber;
6997
const int PgsqlReadRequestPB::kColumnRefsFieldNumber;
6998
const int PgsqlReadRequestPB::kIsForwardScanFieldNumber;
6999
const int PgsqlReadRequestPB::kDistinctFieldNumber;
7000
const int PgsqlReadRequestPB::kIsAggregateFieldNumber;
7001
const int PgsqlReadRequestPB::kLimitFieldNumber;
7002
const int PgsqlReadRequestPB::kPagingStateFieldNumber;
7003
const int PgsqlReadRequestPB::kReturnPagingStateFieldNumber;
7004
const int PgsqlReadRequestPB::kMaxHashCodeFieldNumber;
7005
const int PgsqlReadRequestPB::kYsqlCatalogVersionFieldNumber;
7006
const int PgsqlReadRequestPB::kRowMarkTypeFieldNumber;
7007
const int PgsqlReadRequestPB::kWaitPolicyFieldNumber;
7008
const int PgsqlReadRequestPB::kLowerBoundFieldNumber;
7009
const int PgsqlReadRequestPB::kUpperBoundFieldNumber;
7010
const int PgsqlReadRequestPB::kDEPRECATEDMaxPartitionKeyFieldNumber;
7011
const int PgsqlReadRequestPB::kIsForBackfillFieldNumber;
7012
const int PgsqlReadRequestPB::kSamplingStateFieldNumber;
7013
const int PgsqlReadRequestPB::kBackfillSpecFieldNumber;
7014
const int PgsqlReadRequestPB::kWhereClausesFieldNumber;
7015
const int PgsqlReadRequestPB::kColRefsFieldNumber;
7016
const int PgsqlReadRequestPB::kPartitionKeyFieldNumber;
7017
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7018
7019
PgsqlReadRequestPB::PgsqlReadRequestPB()
7020
5.77M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7021
5.75M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7022
5.75M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlReadRequestPB();
7023
5.75M
  }
7024
5.77M
  SharedCtor();
7025
  // @@protoc_insertion_point(constructor:yb.PgsqlReadRequestPB)
7026
5.77M
}
7027
PgsqlReadRequestPB::PgsqlReadRequestPB(const PgsqlReadRequestPB& from)
7028
  : ::google::protobuf::Message(),
7029
      _internal_metadata_(NULL),
7030
      _has_bits_(from._has_bits_),
7031
      _cached_size_(0),
7032
      partition_column_values_(from.partition_column_values_),
7033
      targets_(from.targets_),
7034
      range_column_values_(from.range_column_values_),
7035
      batch_arguments_(from.batch_arguments_),
7036
      where_clauses_(from.where_clauses_),
7037
0
      col_refs_(from.col_refs_) {
7038
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7039
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7040
0
  if (from.has_table_id()) {
7041
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
7042
0
  }
7043
0
  deprecated_max_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7044
0
  if (from.has_deprecated_max_partition_key()) {
7045
0
    deprecated_max_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_max_partition_key_);
7046
0
  }
7047
0
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7048
0
  if (from.has_backfill_spec()) {
7049
0
    backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
7050
0
  }
7051
0
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7052
0
  if (from.has_partition_key()) {
7053
0
    partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
7054
0
  }
7055
0
  if (from.has_rsrow_desc()) {
7056
0
    rsrow_desc_ = new ::yb::PgsqlRSRowDescPB(*from.rsrow_desc_);
7057
0
  } else {
7058
0
    rsrow_desc_ = NULL;
7059
0
  }
7060
0
  if (from.has_where_expr()) {
7061
0
    where_expr_ = new ::yb::PgsqlExpressionPB(*from.where_expr_);
7062
0
  } else {
7063
0
    where_expr_ = NULL;
7064
0
  }
7065
0
  if (from.has_column_refs()) {
7066
0
    column_refs_ = new ::yb::PgsqlColumnRefsPB(*from.column_refs_);
7067
0
  } else {
7068
0
    column_refs_ = NULL;
7069
0
  }
7070
0
  if (from.has_paging_state()) {
7071
0
    paging_state_ = new ::yb::PgsqlPagingStatePB(*from.paging_state_);
7072
0
  } else {
7073
0
    paging_state_ = NULL;
7074
0
  }
7075
0
  if (from.has_ybctid_column_value()) {
7076
0
    ybctid_column_value_ = new ::yb::PgsqlExpressionPB(*from.ybctid_column_value_);
7077
0
  } else {
7078
0
    ybctid_column_value_ = NULL;
7079
0
  }
7080
0
  if (from.has_index_request()) {
7081
0
    index_request_ = new ::yb::PgsqlReadRequestPB(*from.index_request_);
7082
0
  } else {
7083
0
    index_request_ = NULL;
7084
0
  }
7085
0
  if (from.has_condition_expr()) {
7086
0
    condition_expr_ = new ::yb::PgsqlExpressionPB(*from.condition_expr_);
7087
0
  } else {
7088
0
    condition_expr_ = NULL;
7089
0
  }
7090
0
  if (from.has_lower_bound()) {
7091
0
    lower_bound_ = new ::yb::PgsqlPartitionBound(*from.lower_bound_);
7092
0
  } else {
7093
0
    lower_bound_ = NULL;
7094
0
  }
7095
0
  if (from.has_upper_bound()) {
7096
0
    upper_bound_ = new ::yb::PgsqlPartitionBound(*from.upper_bound_);
7097
0
  } else {
7098
0
    upper_bound_ = NULL;
7099
0
  }
7100
0
  if (from.has_sampling_state()) {
7101
0
    sampling_state_ = new ::yb::PgsqlSamplingStatePB(*from.sampling_state_);
7102
0
  } else {
7103
0
    sampling_state_ = NULL;
7104
0
  }
7105
0
  ::memcpy(&stmt_id_, &from.stmt_id_,
7106
0
    static_cast<size_t>(reinterpret_cast<char*>(&is_forward_scan_) -
7107
0
    reinterpret_cast<char*>(&stmt_id_)) + sizeof(is_forward_scan_));
7108
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlReadRequestPB)
7109
0
}
7110
7111
5.77M
void PgsqlReadRequestPB::SharedCtor() {
7112
5.77M
  _cached_size_ = 0;
7113
5.77M
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7114
5.77M
  deprecated_max_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7115
5.77M
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7116
5.77M
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7117
5.77M
  ::memset(&rsrow_desc_, 0, static_cast<size_t>(
7118
5.77M
      reinterpret_cast<char*>(&row_mark_type_) -
7119
5.77M
      reinterpret_cast<char*>(&rsrow_desc_)) + sizeof(row_mark_type_));
7120
5.77M
  wait_policy_ = 2;
7121
5.77M
  client_ = 1;
7122
5.77M
  is_forward_scan_ = true;
7123
5.77M
}
7124
7125
5.75M
PgsqlReadRequestPB::~PgsqlReadRequestPB() {
7126
  // @@protoc_insertion_point(destructor:yb.PgsqlReadRequestPB)
7127
5.75M
  SharedDtor();
7128
5.75M
}
7129
7130
5.75M
void PgsqlReadRequestPB::SharedDtor() {
7131
5.75M
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7132
5.75M
  deprecated_max_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7133
5.75M
  backfill_spec_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7134
5.75M
  partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7135
5.75M
  if (this != internal_default_instance()) delete rsrow_desc_;
7136
5.75M
  if (this != internal_default_instance()) delete where_expr_;
7137
5.75M
  if (this != internal_default_instance()) delete column_refs_;
7138
5.75M
  if (this != internal_default_instance()) delete paging_state_;
7139
5.75M
  if (this != internal_default_instance()) delete ybctid_column_value_;
7140
5.75M
  if (this != internal_default_instance()) delete index_request_;
7141
5.75M
  if (this != internal_default_instance()) delete condition_expr_;
7142
5.75M
  if (this != internal_default_instance()) delete lower_bound_;
7143
5.75M
  if (this != internal_default_instance()) delete upper_bound_;
7144
5.75M
  if (this != internal_default_instance()) delete sampling_state_;
7145
5.75M
}
7146
7147
0
void PgsqlReadRequestPB::SetCachedSize(int size) const {
7148
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7149
0
  _cached_size_ = size;
7150
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7151
0
}
7152
0
const ::google::protobuf::Descriptor* PgsqlReadRequestPB::descriptor() {
7153
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7154
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7155
0
}
7156
7157
0
const PgsqlReadRequestPB& PgsqlReadRequestPB::default_instance() {
7158
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlReadRequestPB();
7159
0
  return *internal_default_instance();
7160
0
}
7161
7162
0
PgsqlReadRequestPB* PgsqlReadRequestPB::New(::google::protobuf::Arena* arena) const {
7163
0
  PgsqlReadRequestPB* n = new PgsqlReadRequestPB;
7164
0
  if (arena != NULL) {
7165
0
    arena->Own(n);
7166
0
  }
7167
0
  return n;
7168
0
}
7169
7170
1.45M
void PgsqlReadRequestPB::Clear() {
7171
// @@protoc_insertion_point(message_clear_start:yb.PgsqlReadRequestPB)
7172
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
7173
  // Prevent compiler warnings about cached_has_bits being unused
7174
1.45M
  (void) cached_has_bits;
7175
7176
1.45M
  partition_column_values_.Clear();
7177
1.45M
  targets_.Clear();
7178
1.45M
  range_column_values_.Clear();
7179
1.45M
  batch_arguments_.Clear();
7180
1.45M
  where_clauses_.Clear();
7181
1.45M
  col_refs_.Clear();
7182
1.45M
  cached_has_bits = _has_bits_[0];
7183
1.45M
  if (cached_has_bits & 255u) {
7184
0
    if (cached_has_bits & 0x00000001u) {
7185
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7186
0
      (*table_id_.UnsafeRawStringPointer())->clear();
7187
0
    }
7188
0
    if (cached_has_bits & 0x00000002u) {
7189
0
      GOOGLE_DCHECK(!deprecated_max_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7190
0
      (*deprecated_max_partition_key_.UnsafeRawStringPointer())->clear();
7191
0
    }
7192
0
    if (cached_has_bits & 0x00000004u) {
7193
0
      GOOGLE_DCHECK(!backfill_spec_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7194
0
      (*backfill_spec_.UnsafeRawStringPointer())->clear();
7195
0
    }
7196
0
    if (cached_has_bits & 0x00000008u) {
7197
0
      GOOGLE_DCHECK(!partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7198
0
      (*partition_key_.UnsafeRawStringPointer())->clear();
7199
0
    }
7200
0
    if (cached_has_bits & 0x00000010u) {
7201
0
      GOOGLE_DCHECK(rsrow_desc_ != NULL);
7202
0
      rsrow_desc_->Clear();
7203
0
    }
7204
0
    if (cached_has_bits & 0x00000020u) {
7205
0
      GOOGLE_DCHECK(where_expr_ != NULL);
7206
0
      where_expr_->Clear();
7207
0
    }
7208
0
    if (cached_has_bits & 0x00000040u) {
7209
0
      GOOGLE_DCHECK(column_refs_ != NULL);
7210
0
      column_refs_->Clear();
7211
0
    }
7212
0
    if (cached_has_bits & 0x00000080u) {
7213
0
      GOOGLE_DCHECK(paging_state_ != NULL);
7214
0
      paging_state_->Clear();
7215
0
    }
7216
0
  }
7217
1.45M
  if (cached_has_bits & 16128u) {
7218
0
    if (cached_has_bits & 0x00000100u) {
7219
0
      GOOGLE_DCHECK(ybctid_column_value_ != NULL);
7220
0
      ybctid_column_value_->Clear();
7221
0
    }
7222
0
    if (cached_has_bits & 0x00000200u) {
7223
0
      GOOGLE_DCHECK(index_request_ != NULL);
7224
0
      index_request_->Clear();
7225
0
    }
7226
0
    if (cached_has_bits & 0x00000400u) {
7227
0
      GOOGLE_DCHECK(condition_expr_ != NULL);
7228
0
      condition_expr_->Clear();
7229
0
    }
7230
0
    if (cached_has_bits & 0x00000800u) {
7231
0
      GOOGLE_DCHECK(lower_bound_ != NULL);
7232
0
      lower_bound_->Clear();
7233
0
    }
7234
0
    if (cached_has_bits & 0x00001000u) {
7235
0
      GOOGLE_DCHECK(upper_bound_ != NULL);
7236
0
      upper_bound_->Clear();
7237
0
    }
7238
0
    if (cached_has_bits & 0x00002000u) {
7239
0
      GOOGLE_DCHECK(sampling_state_ != NULL);
7240
0
      sampling_state_->Clear();
7241
0
    }
7242
0
  }
7243
1.45M
  if (cached_has_bits & 49152u) {
7244
0
    ::memset(&stmt_id_, 0, static_cast<size_t>(
7245
0
        reinterpret_cast<char*>(&schema_version_) -
7246
0
        reinterpret_cast<char*>(&stmt_id_)) + sizeof(schema_version_));
7247
0
  }
7248
1.45M
  if (cached_has_bits & 16711680u) {
7249
0
    ::memset(&hash_code_, 0, static_cast<size_t>(
7250
0
        reinterpret_cast<char*>(&max_hash_code_) -
7251
0
        reinterpret_cast<char*>(&hash_code_)) + sizeof(max_hash_code_));
7252
0
  }
7253
1.45M
  if (cached_has_bits & 251658240u) {
7254
0
    row_mark_type_ = 0;
7255
0
    wait_policy_ = 2;
7256
0
    client_ = 1;
7257
0
    is_forward_scan_ = true;
7258
0
  }
7259
1.45M
  _has_bits_.Clear();
7260
1.45M
  _internal_metadata_.Clear();
7261
1.45M
}
7262
7263
bool PgsqlReadRequestPB::MergePartialFromCodedStream(
7264
3.58M
    ::google::protobuf::io::CodedInputStream* input) {
7265
88.5M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7266
3.58M
  ::google::protobuf::uint32 tag;
7267
  // @@protoc_insertion_point(parse_start:yb.PgsqlReadRequestPB)
7268
91.9M
  for (;;) {
7269
91.9M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
7270
91.9M
    tag = p.first;
7271
91.9M
    if (!p.second) goto handle_unusual;
7272
88.3M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7273
      // optional .yb.QLClient client = 1;
7274
3.28M
      case 1: {
7275
3.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7276
3.28M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7277
3.28M
          int value;
7278
3.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7279
3.28M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7280
3.28M
                 input, &value)));
7281
3.28M
          if (::yb::QLClient_IsValid(value)) {
7282
3.28M
            set_client(static_cast< ::yb::QLClient >(value));
7283
50
          } else {
7284
50
            mutable_unknown_fields()->AddVarint(
7285
50
                1, static_cast< ::google::protobuf::uint64>(value));
7286
50
          }
7287
18.4E
        } else {
7288
18.4E
          goto handle_unusual;
7289
18.4E
        }
7290
3.28M
        break;
7291
3.28M
      }
7292
7293
      // optional uint64 stmt_id = 2;
7294
3.28M
      case 2: {
7295
3.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7296
3.28M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7297
3.28M
          set_has_stmt_id();
7298
3.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7299
3.28M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7300
3.28M
                 input, &stmt_id_)));
7301
18.4E
        } else {
7302
18.4E
          goto handle_unusual;
7303
18.4E
        }
7304
3.28M
        break;
7305
3.28M
      }
7306
7307
      // optional uint32 schema_version = 3;
7308
3.28M
      case 3: {
7309
3.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7310
3.28M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7311
3.28M
          set_has_schema_version();
7312
3.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7313
3.28M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7314
3.28M
                 input, &schema_version_)));
7315
2
        } else {
7316
2
          goto handle_unusual;
7317
2
        }
7318
3.28M
        break;
7319
3.28M
      }
7320
7321
      // optional uint32 hash_code = 4;
7322
2.48M
      case 4: {
7323
2.48M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7324
2.48M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
7325
2.48M
          set_has_hash_code();
7326
2.48M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7327
2.48M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7328
2.48M
                 input, &hash_code_)));
7329
18.4E
        } else {
7330
18.4E
          goto handle_unusual;
7331
18.4E
        }
7332
2.48M
        break;
7333
2.48M
      }
7334
7335
      // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7336
2.42M
      case 5: {
7337
2.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7338
2.42M
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
7339
2.42M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_partition_column_values()));
7340
18.4E
        } else {
7341
18.4E
          goto handle_unusual;
7342
18.4E
        }
7343
2.42M
        break;
7344
2.42M
      }
7345
7346
      // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7347
0
      case 6: {
7348
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7349
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
7350
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7351
0
               input, mutable_rsrow_desc()));
7352
0
        } else {
7353
0
          goto handle_unusual;
7354
0
        }
7355
0
        break;
7356
0
      }
7357
7358
      // repeated .yb.PgsqlExpressionPB targets = 7;
7359
21.7M
      case 7: {
7360
21.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7361
21.7M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
7362
21.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_targets()));
7363
18.4E
        } else {
7364
18.4E
          goto handle_unusual;
7365
18.4E
        }
7366
21.7M
        break;
7367
21.7M
      }
7368
7369
      // optional .yb.PgsqlExpressionPB where_expr = 8;
7370
0
      case 8: {
7371
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7372
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
7373
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7374
0
               input, mutable_where_expr()));
7375
0
        } else {
7376
0
          goto handle_unusual;
7377
0
        }
7378
0
        break;
7379
0
      }
7380
7381
      // optional .yb.PgsqlColumnRefsPB column_refs = 9;
7382
3.58M
      case 9: {
7383
3.58M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7384
3.58M
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
7385
3.58M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7386
3.58M
               input, mutable_column_refs()));
7387
16
        } else {
7388
16
          goto handle_unusual;
7389
16
        }
7390
3.58M
        break;
7391
3.58M
      }
7392
7393
      // optional bool is_forward_scan = 10 [default = true];
7394
3.16M
      case 10: {
7395
3.16M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7396
3.16M
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
7397
3.16M
          set_has_is_forward_scan();
7398
3.16M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7399
3.16M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7400
3.16M
                 input, &is_forward_scan_)));
7401
2
        } else {
7402
2
          goto handle_unusual;
7403
2
        }
7404
3.16M
        break;
7405
3.16M
      }
7406
7407
      // optional bool distinct = 11 [default = false];
7408
0
      case 11: {
7409
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7410
0
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
7411
0
          set_has_distinct();
7412
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7413
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7414
0
                 input, &distinct_)));
7415
0
        } else {
7416
0
          goto handle_unusual;
7417
0
        }
7418
0
        break;
7419
0
      }
7420
7421
      // optional bool is_aggregate = 12 [default = false];
7422
3.58M
      case 12: {
7423
3.58M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7424
3.58M
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
7425
3.58M
          set_has_is_aggregate();
7426
3.58M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7427
3.58M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7428
3.58M
                 input, &is_aggregate_)));
7429
18.4E
        } else {
7430
18.4E
          goto handle_unusual;
7431
18.4E
        }
7432
3.58M
        break;
7433
3.58M
      }
7434
7435
      // optional uint64 limit = 13;
7436
3.28M
      case 13: {
7437
3.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7438
3.28M
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
7439
3.28M
          set_has_limit();
7440
3.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7441
3.28M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7442
3.28M
                 input, &limit_)));
7443
18.4E
        } else {
7444
18.4E
          goto handle_unusual;
7445
18.4E
        }
7446
3.28M
        break;
7447
3.28M
      }
7448
7449
      // optional .yb.PgsqlPagingStatePB paging_state = 14;
7450
96.5k
      case 14: {
7451
96.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7452
96.5k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
7453
96.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7454
96.5k
               input, mutable_paging_state()));
7455
0
        } else {
7456
0
          goto handle_unusual;
7457
0
        }
7458
96.5k
        break;
7459
96.5k
      }
7460
7461
      // optional bool return_paging_state = 15 [default = false];
7462
3.28M
      case 15: {
7463
3.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7464
3.28M
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
7465
3.28M
          set_has_return_paging_state();
7466
3.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7467
3.28M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7468
3.28M
                 input, &return_paging_state_)));
7469
18.4E
        } else {
7470
18.4E
          goto handle_unusual;
7471
18.4E
        }
7472
3.28M
        break;
7473
3.28M
      }
7474
7475
      // optional uint64 ysql_catalog_version = 16;
7476
2.45M
      case 16: {
7477
2.45M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7478
2.45M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
7479
2.45M
          set_has_ysql_catalog_version();
7480
2.45M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7481
2.45M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7482
2.45M
                 input, &ysql_catalog_version_)));
7483
18.4E
        } else {
7484
18.4E
          goto handle_unusual;
7485
18.4E
        }
7486
2.45M
        break;
7487
2.45M
      }
7488
7489
      // optional uint32 max_hash_code = 17;
7490
2.41M
      case 17: {
7491
2.41M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7492
2.41M
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
7493
2.41M
          set_has_max_hash_code();
7494
2.41M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7495
2.41M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7496
2.41M
                 input, &max_hash_code_)));
7497
18.4E
        } else {
7498
18.4E
          goto handle_unusual;
7499
18.4E
        }
7500
2.41M
        break;
7501
2.41M
      }
7502
7503
      // repeated .yb.PgsqlExpressionPB range_column_values = 18;
7504
1.10M
      case 18: {
7505
1.10M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7506
1.10M
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
7507
1.10M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values()));
7508
18.4E
        } else {
7509
18.4E
          goto handle_unusual;
7510
18.4E
        }
7511
1.10M
        break;
7512
1.10M
      }
7513
7514
      // optional bytes table_id = 19;
7515
3.58M
      case 19: {
7516
3.58M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7517
3.58M
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
7518
3.58M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7519
3.58M
                input, this->mutable_table_id()));
7520
18.4E
        } else {
7521
18.4E
          goto handle_unusual;
7522
18.4E
        }
7523
3.58M
        break;
7524
3.58M
      }
7525
7526
      // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
7527
17.5k
      case 20: {
7528
17.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7529
17.5k
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
7530
17.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7531
17.5k
               input, mutable_ybctid_column_value()));
7532
0
        } else {
7533
0
          goto handle_unusual;
7534
0
        }
7535
17.5k
        break;
7536
17.5k
      }
7537
7538
      // optional .yb.PgsqlReadRequestPB index_request = 21;
7539
302k
      case 21: {
7540
302k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7541
302k
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
7542
302k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7543
302k
               input, mutable_index_request()));
7544
0
        } else {
7545
0
          goto handle_unusual;
7546
0
        }
7547
302k
        break;
7548
302k
      }
7549
7550
      // optional .yb.PgsqlExpressionPB condition_expr = 22;
7551
5.21k
      case 22: {
7552
5.21k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7553
5.21k
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
7554
5.21k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7555
5.21k
               input, mutable_condition_expr()));
7556
0
        } else {
7557
0
          goto handle_unusual;
7558
0
        }
7559
5.21k
        break;
7560
5.21k
      }
7561
7562
      // optional .yb.RowMarkType row_mark_type = 23;
7563
11.2k
      case 23: {
7564
11.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7565
11.2k
            static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
7566
11.2k
          int value;
7567
11.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7568
11.2k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7569
11.2k
                 input, &value)));
7570
11.2k
          if (::yb::RowMarkType_IsValid(value)) {
7571
11.2k
            set_row_mark_type(static_cast< ::yb::RowMarkType >(value));
7572
0
          } else {
7573
0
            mutable_unknown_fields()->AddVarint(
7574
0
                23, static_cast< ::google::protobuf::uint64>(value));
7575
0
          }
7576
0
        } else {
7577
0
          goto handle_unusual;
7578
0
        }
7579
11.2k
        break;
7580
11.2k
      }
7581
7582
      // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
7583
903k
      case 24: {
7584
903k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7585
903k
            static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
7586
903k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_batch_arguments()));
7587
0
        } else {
7588
0
          goto handle_unusual;
7589
0
        }
7590
903k
        break;
7591
903k
      }
7592
7593
      // optional bytes DEPRECATED_max_partition_key = 25;
7594
0
      case 25: {
7595
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7596
0
            static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
7597
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7598
0
                input, this->mutable_deprecated_max_partition_key()));
7599
0
        } else {
7600
0
          goto handle_unusual;
7601
0
        }
7602
0
        break;
7603
0
      }
7604
7605
      // optional .yb.PgsqlPartitionBound lower_bound = 27;
7606
3.08k
      case 27: {
7607
3.08k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7608
3.08k
            static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
7609
3.08k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7610
3.08k
               input, mutable_lower_bound()));
7611
0
        } else {
7612
0
          goto handle_unusual;
7613
0
        }
7614
3.08k
        break;
7615
3.08k
      }
7616
7617
      // optional .yb.PgsqlPartitionBound upper_bound = 28;
7618
391k
      case 28: {
7619
391k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7620
391k
            static_cast< ::google::protobuf::uint8>(226u /* 226 & 0xFF */)) {
7621
391k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7622
391k
               input, mutable_upper_bound()));
7623
1
        } else {
7624
1
          goto handle_unusual;
7625
1
        }
7626
391k
        break;
7627
391k
      }
7628
7629
      // optional bool is_for_backfill = 29 [default = false];
7630
298
      case 29: {
7631
298
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7632
298
            static_cast< ::google::protobuf::uint8>(232u /* 232 & 0xFF */)) {
7633
298
          set_has_is_for_backfill();
7634
298
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7635
298
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7636
298
                 input, &is_for_backfill_)));
7637
0
        } else {
7638
0
          goto handle_unusual;
7639
0
        }
7640
298
        break;
7641
298
      }
7642
7643
      // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
7644
205
      case 30: {
7645
205
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7646
205
            static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
7647
205
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7648
205
               input, mutable_sampling_state()));
7649
0
        } else {
7650
0
          goto handle_unusual;
7651
0
        }
7652
205
        break;
7653
205
      }
7654
7655
      // optional bytes backfill_spec = 31;
7656
298
      case 31: {
7657
298
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7658
298
            static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
7659
298
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7660
298
                input, this->mutable_backfill_spec()));
7661
0
        } else {
7662
0
          goto handle_unusual;
7663
0
        }
7664
298
        break;
7665
298
      }
7666
7667
      // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
7668
11.2k
      case 32: {
7669
11.2k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7670
11.2k
            static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
7671
11.2k
          int value;
7672
11.2k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7673
11.2k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7674
11.2k
                 input, &value)));
7675
11.2k
          if (::yb::WaitPolicy_IsValid(value)) {
7676
11.2k
            set_wait_policy(static_cast< ::yb::WaitPolicy >(value));
7677
0
          } else {
7678
0
            mutable_unknown_fields()->AddVarint(
7679
0
                32, static_cast< ::google::protobuf::uint64>(value));
7680
0
          }
7681
0
        } else {
7682
0
          goto handle_unusual;
7683
0
        }
7684
11.2k
        break;
7685
11.2k
      }
7686
7687
      // repeated .yb.PgsqlExpressionPB where_clauses = 33;
7688
632
      case 33: {
7689
632
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7690
632
            static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) {
7691
632
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_where_clauses()));
7692
0
        } else {
7693
0
          goto handle_unusual;
7694
0
        }
7695
632
        break;
7696
632
      }
7697
7698
      // repeated .yb.PgsqlColRefPB col_refs = 34;
7699
20.7M
      case 34: {
7700
20.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7701
20.7M
            static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
7702
20.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_col_refs()));
7703
18.4E
        } else {
7704
18.4E
          goto handle_unusual;
7705
18.4E
        }
7706
20.7M
        break;
7707
20.7M
      }
7708
7709
      // optional bytes partition_key = 35;
7710
3.09M
      case 35: {
7711
3.09M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7712
3.09M
            static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) {
7713
3.09M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7714
3.09M
                input, this->mutable_partition_key()));
7715
18.4E
        } else {
7716
18.4E
          goto handle_unusual;
7717
18.4E
        }
7718
3.09M
        break;
7719
3.58M
      }
7720
7721
0
      default: {
7722
3.58M
      handle_unusual:
7723
3.58M
        if (tag == 0) {
7724
3.58M
          goto success;
7725
3.58M
        }
7726
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7727
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7728
18.4E
        break;
7729
18.4E
      }
7730
88.3M
    }
7731
88.3M
  }
7732
3.58M
success:
7733
  // @@protoc_insertion_point(parse_success:yb.PgsqlReadRequestPB)
7734
3.58M
  return true;
7735
0
failure:
7736
  // @@protoc_insertion_point(parse_failure:yb.PgsqlReadRequestPB)
7737
0
  return false;
7738
3.58M
#undef DO_
7739
3.58M
}
7740
7741
void PgsqlReadRequestPB::SerializeWithCachedSizes(
7742
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7743
  // @@protoc_insertion_point(serialize_start:yb.PgsqlReadRequestPB)
7744
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7745
0
  (void) cached_has_bits;
7746
7747
0
  cached_has_bits = _has_bits_[0];
7748
  // optional .yb.QLClient client = 1;
7749
0
  if (cached_has_bits & 0x04000000u) {
7750
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7751
0
      1, this->client(), output);
7752
0
  }
7753
7754
  // optional uint64 stmt_id = 2;
7755
0
  if (cached_has_bits & 0x00004000u) {
7756
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stmt_id(), output);
7757
0
  }
7758
7759
  // optional uint32 schema_version = 3;
7760
0
  if (cached_has_bits & 0x00008000u) {
7761
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->schema_version(), output);
7762
0
  }
7763
7764
  // optional uint32 hash_code = 4;
7765
0
  if (cached_has_bits & 0x00010000u) {
7766
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->hash_code(), output);
7767
0
  }
7768
7769
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7770
0
  for (unsigned int i = 0,
7771
0
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
7772
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7773
0
      5, this->partition_column_values(static_cast<int>(i)), output);
7774
0
  }
7775
7776
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7777
0
  if (cached_has_bits & 0x00000010u) {
7778
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7779
0
      6, *this->rsrow_desc_, output);
7780
0
  }
7781
7782
  // repeated .yb.PgsqlExpressionPB targets = 7;
7783
0
  for (unsigned int i = 0,
7784
0
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
7785
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7786
0
      7, this->targets(static_cast<int>(i)), output);
7787
0
  }
7788
7789
  // optional .yb.PgsqlExpressionPB where_expr = 8;
7790
0
  if (cached_has_bits & 0x00000020u) {
7791
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7792
0
      8, *this->where_expr_, output);
7793
0
  }
7794
7795
  // optional .yb.PgsqlColumnRefsPB column_refs = 9;
7796
0
  if (cached_has_bits & 0x00000040u) {
7797
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7798
0
      9, *this->column_refs_, output);
7799
0
  }
7800
7801
  // optional bool is_forward_scan = 10 [default = true];
7802
0
  if (cached_has_bits & 0x08000000u) {
7803
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->is_forward_scan(), output);
7804
0
  }
7805
7806
  // optional bool distinct = 11 [default = false];
7807
0
  if (cached_has_bits & 0x00080000u) {
7808
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->distinct(), output);
7809
0
  }
7810
7811
  // optional bool is_aggregate = 12 [default = false];
7812
0
  if (cached_has_bits & 0x00100000u) {
7813
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->is_aggregate(), output);
7814
0
  }
7815
7816
  // optional uint64 limit = 13;
7817
0
  if (cached_has_bits & 0x00020000u) {
7818
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->limit(), output);
7819
0
  }
7820
7821
  // optional .yb.PgsqlPagingStatePB paging_state = 14;
7822
0
  if (cached_has_bits & 0x00000080u) {
7823
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7824
0
      14, *this->paging_state_, output);
7825
0
  }
7826
7827
  // optional bool return_paging_state = 15 [default = false];
7828
0
  if (cached_has_bits & 0x00200000u) {
7829
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->return_paging_state(), output);
7830
0
  }
7831
7832
  // optional uint64 ysql_catalog_version = 16;
7833
0
  if (cached_has_bits & 0x00040000u) {
7834
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->ysql_catalog_version(), output);
7835
0
  }
7836
7837
  // optional uint32 max_hash_code = 17;
7838
0
  if (cached_has_bits & 0x00800000u) {
7839
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(17, this->max_hash_code(), output);
7840
0
  }
7841
7842
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
7843
0
  for (unsigned int i = 0,
7844
0
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
7845
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7846
0
      18, this->range_column_values(static_cast<int>(i)), output);
7847
0
  }
7848
7849
  // optional bytes table_id = 19;
7850
0
  if (cached_has_bits & 0x00000001u) {
7851
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7852
0
      19, this->table_id(), output);
7853
0
  }
7854
7855
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
7856
0
  if (cached_has_bits & 0x00000100u) {
7857
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7858
0
      20, *this->ybctid_column_value_, output);
7859
0
  }
7860
7861
  // optional .yb.PgsqlReadRequestPB index_request = 21;
7862
0
  if (cached_has_bits & 0x00000200u) {
7863
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7864
0
      21, *this->index_request_, output);
7865
0
  }
7866
7867
  // optional .yb.PgsqlExpressionPB condition_expr = 22;
7868
0
  if (cached_has_bits & 0x00000400u) {
7869
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7870
0
      22, *this->condition_expr_, output);
7871
0
  }
7872
7873
  // optional .yb.RowMarkType row_mark_type = 23;
7874
0
  if (cached_has_bits & 0x01000000u) {
7875
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7876
0
      23, this->row_mark_type(), output);
7877
0
  }
7878
7879
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
7880
0
  for (unsigned int i = 0,
7881
0
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
7882
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7883
0
      24, this->batch_arguments(static_cast<int>(i)), output);
7884
0
  }
7885
7886
  // optional bytes DEPRECATED_max_partition_key = 25;
7887
0
  if (cached_has_bits & 0x00000002u) {
7888
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7889
0
      25, this->deprecated_max_partition_key(), output);
7890
0
  }
7891
7892
  // optional .yb.PgsqlPartitionBound lower_bound = 27;
7893
0
  if (cached_has_bits & 0x00000800u) {
7894
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7895
0
      27, *this->lower_bound_, output);
7896
0
  }
7897
7898
  // optional .yb.PgsqlPartitionBound upper_bound = 28;
7899
0
  if (cached_has_bits & 0x00001000u) {
7900
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7901
0
      28, *this->upper_bound_, output);
7902
0
  }
7903
7904
  // optional bool is_for_backfill = 29 [default = false];
7905
0
  if (cached_has_bits & 0x00400000u) {
7906
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(29, this->is_for_backfill(), output);
7907
0
  }
7908
7909
  // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
7910
0
  if (cached_has_bits & 0x00002000u) {
7911
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7912
0
      30, *this->sampling_state_, output);
7913
0
  }
7914
7915
  // optional bytes backfill_spec = 31;
7916
0
  if (cached_has_bits & 0x00000004u) {
7917
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7918
0
      31, this->backfill_spec(), output);
7919
0
  }
7920
7921
  // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
7922
0
  if (cached_has_bits & 0x02000000u) {
7923
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7924
0
      32, this->wait_policy(), output);
7925
0
  }
7926
7927
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
7928
0
  for (unsigned int i = 0,
7929
0
      n = static_cast<unsigned int>(this->where_clauses_size()); i < n; i++) {
7930
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7931
0
      33, this->where_clauses(static_cast<int>(i)), output);
7932
0
  }
7933
7934
  // repeated .yb.PgsqlColRefPB col_refs = 34;
7935
0
  for (unsigned int i = 0,
7936
0
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
7937
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7938
0
      34, this->col_refs(static_cast<int>(i)), output);
7939
0
  }
7940
7941
  // optional bytes partition_key = 35;
7942
0
  if (cached_has_bits & 0x00000008u) {
7943
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7944
0
      35, this->partition_key(), output);
7945
0
  }
7946
7947
0
  if (_internal_metadata_.have_unknown_fields()) {
7948
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7949
0
        _internal_metadata_.unknown_fields(), output);
7950
0
  }
7951
  // @@protoc_insertion_point(serialize_end:yb.PgsqlReadRequestPB)
7952
0
}
7953
7954
::google::protobuf::uint8* PgsqlReadRequestPB::InternalSerializeWithCachedSizesToArray(
7955
3.58M
    bool deterministic, ::google::protobuf::uint8* target) const {
7956
3.58M
  (void)deterministic; // Unused
7957
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlReadRequestPB)
7958
3.58M
  ::google::protobuf::uint32 cached_has_bits = 0;
7959
3.58M
  (void) cached_has_bits;
7960
7961
3.58M
  cached_has_bits = _has_bits_[0];
7962
  // optional .yb.QLClient client = 1;
7963
3.58M
  if (cached_has_bits & 0x04000000u) {
7964
3.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7965
3.28M
      1, this->client(), target);
7966
3.28M
  }
7967
7968
  // optional uint64 stmt_id = 2;
7969
3.58M
  if (cached_has_bits & 0x00004000u) {
7970
3.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stmt_id(), target);
7971
3.28M
  }
7972
7973
  // optional uint32 schema_version = 3;
7974
3.58M
  if (cached_has_bits & 0x00008000u) {
7975
3.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->schema_version(), target);
7976
3.28M
  }
7977
7978
  // optional uint32 hash_code = 4;
7979
3.58M
  if (cached_has_bits & 0x00010000u) {
7980
2.48M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->hash_code(), target);
7981
2.48M
  }
7982
7983
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7984
3.58M
  for (unsigned int i = 0,
7985
6.01M
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
7986
2.42M
    target = ::google::protobuf::internal::WireFormatLite::
7987
2.42M
      InternalWriteMessageToArray(
7988
2.42M
        5, this->partition_column_values(static_cast<int>(i)), deterministic, target);
7989
2.42M
  }
7990
7991
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7992
3.58M
  if (cached_has_bits & 0x00000010u) {
7993
0
    target = ::google::protobuf::internal::WireFormatLite::
7994
0
      InternalWriteMessageToArray(
7995
0
        6, *this->rsrow_desc_, deterministic, target);
7996
0
  }
7997
7998
  // repeated .yb.PgsqlExpressionPB targets = 7;
7999
3.58M
  for (unsigned int i = 0,
8000
25.3M
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
8001
21.7M
    target = ::google::protobuf::internal::WireFormatLite::
8002
21.7M
      InternalWriteMessageToArray(
8003
21.7M
        7, this->targets(static_cast<int>(i)), deterministic, target);
8004
21.7M
  }
8005
8006
  // optional .yb.PgsqlExpressionPB where_expr = 8;
8007
3.58M
  if (cached_has_bits & 0x00000020u) {
8008
0
    target = ::google::protobuf::internal::WireFormatLite::
8009
0
      InternalWriteMessageToArray(
8010
0
        8, *this->where_expr_, deterministic, target);
8011
0
  }
8012
8013
  // optional .yb.PgsqlColumnRefsPB column_refs = 9;
8014
3.58M
  if (cached_has_bits & 0x00000040u) {
8015
3.58M
    target = ::google::protobuf::internal::WireFormatLite::
8016
3.58M
      InternalWriteMessageToArray(
8017
3.58M
        9, *this->column_refs_, deterministic, target);
8018
3.58M
  }
8019
8020
  // optional bool is_forward_scan = 10 [default = true];
8021
3.58M
  if (cached_has_bits & 0x08000000u) {
8022
3.16M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->is_forward_scan(), target);
8023
3.16M
  }
8024
8025
  // optional bool distinct = 11 [default = false];
8026
3.58M
  if (cached_has_bits & 0x00080000u) {
8027
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->distinct(), target);
8028
0
  }
8029
8030
  // optional bool is_aggregate = 12 [default = false];
8031
3.58M
  if (cached_has_bits & 0x00100000u) {
8032
3.58M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->is_aggregate(), target);
8033
3.58M
  }
8034
8035
  // optional uint64 limit = 13;
8036
3.58M
  if (cached_has_bits & 0x00020000u) {
8037
3.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->limit(), target);
8038
3.28M
  }
8039
8040
  // optional .yb.PgsqlPagingStatePB paging_state = 14;
8041
3.58M
  if (cached_has_bits & 0x00000080u) {
8042
96.5k
    target = ::google::protobuf::internal::WireFormatLite::
8043
96.5k
      InternalWriteMessageToArray(
8044
96.5k
        14, *this->paging_state_, deterministic, target);
8045
96.5k
  }
8046
8047
  // optional bool return_paging_state = 15 [default = false];
8048
3.58M
  if (cached_has_bits & 0x00200000u) {
8049
3.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->return_paging_state(), target);
8050
3.28M
  }
8051
8052
  // optional uint64 ysql_catalog_version = 16;
8053
3.58M
  if (cached_has_bits & 0x00040000u) {
8054
2.45M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->ysql_catalog_version(), target);
8055
2.45M
  }
8056
8057
  // optional uint32 max_hash_code = 17;
8058
3.58M
  if (cached_has_bits & 0x00800000u) {
8059
2.41M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(17, this->max_hash_code(), target);
8060
2.41M
  }
8061
8062
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
8063
3.58M
  for (unsigned int i = 0,
8064
4.69M
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
8065
1.10M
    target = ::google::protobuf::internal::WireFormatLite::
8066
1.10M
      InternalWriteMessageToArray(
8067
1.10M
        18, this->range_column_values(static_cast<int>(i)), deterministic, target);
8068
1.10M
  }
8069
8070
  // optional bytes table_id = 19;
8071
3.58M
  if (cached_has_bits & 0x00000001u) {
8072
3.58M
    target =
8073
3.58M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8074
3.58M
        19, this->table_id(), target);
8075
3.58M
  }
8076
8077
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
8078
3.58M
  if (cached_has_bits & 0x00000100u) {
8079
17.5k
    target = ::google::protobuf::internal::WireFormatLite::
8080
17.5k
      InternalWriteMessageToArray(
8081
17.5k
        20, *this->ybctid_column_value_, deterministic, target);
8082
17.5k
  }
8083
8084
  // optional .yb.PgsqlReadRequestPB index_request = 21;
8085
3.58M
  if (cached_has_bits & 0x00000200u) {
8086
302k
    target = ::google::protobuf::internal::WireFormatLite::
8087
302k
      InternalWriteMessageToArray(
8088
302k
        21, *this->index_request_, deterministic, target);
8089
302k
  }
8090
8091
  // optional .yb.PgsqlExpressionPB condition_expr = 22;
8092
3.58M
  if (cached_has_bits & 0x00000400u) {
8093
5.21k
    target = ::google::protobuf::internal::WireFormatLite::
8094
5.21k
      InternalWriteMessageToArray(
8095
5.21k
        22, *this->condition_expr_, deterministic, target);
8096
5.21k
  }
8097
8098
  // optional .yb.RowMarkType row_mark_type = 23;
8099
3.58M
  if (cached_has_bits & 0x01000000u) {
8100
11.2k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8101
11.2k
      23, this->row_mark_type(), target);
8102
11.2k
  }
8103
8104
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
8105
3.58M
  for (unsigned int i = 0,
8106
4.49M
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
8107
903k
    target = ::google::protobuf::internal::WireFormatLite::
8108
903k
      InternalWriteMessageToArray(
8109
903k
        24, this->batch_arguments(static_cast<int>(i)), deterministic, target);
8110
903k
  }
8111
8112
  // optional bytes DEPRECATED_max_partition_key = 25;
8113
3.58M
  if (cached_has_bits & 0x00000002u) {
8114
0
    target =
8115
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8116
0
        25, this->deprecated_max_partition_key(), target);
8117
0
  }
8118
8119
  // optional .yb.PgsqlPartitionBound lower_bound = 27;
8120
3.58M
  if (cached_has_bits & 0x00000800u) {
8121
3.08k
    target = ::google::protobuf::internal::WireFormatLite::
8122
3.08k
      InternalWriteMessageToArray(
8123
3.08k
        27, *this->lower_bound_, deterministic, target);
8124
3.08k
  }
8125
8126
  // optional .yb.PgsqlPartitionBound upper_bound = 28;
8127
3.58M
  if (cached_has_bits & 0x00001000u) {
8128
391k
    target = ::google::protobuf::internal::WireFormatLite::
8129
391k
      InternalWriteMessageToArray(
8130
391k
        28, *this->upper_bound_, deterministic, target);
8131
391k
  }
8132
8133
  // optional bool is_for_backfill = 29 [default = false];
8134
3.58M
  if (cached_has_bits & 0x00400000u) {
8135
298
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(29, this->is_for_backfill(), target);
8136
298
  }
8137
8138
  // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
8139
3.58M
  if (cached_has_bits & 0x00002000u) {
8140
205
    target = ::google::protobuf::internal::WireFormatLite::
8141
205
      InternalWriteMessageToArray(
8142
205
        30, *this->sampling_state_, deterministic, target);
8143
205
  }
8144
8145
  // optional bytes backfill_spec = 31;
8146
3.58M
  if (cached_has_bits & 0x00000004u) {
8147
298
    target =
8148
298
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8149
298
        31, this->backfill_spec(), target);
8150
298
  }
8151
8152
  // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
8153
3.58M
  if (cached_has_bits & 0x02000000u) {
8154
11.2k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8155
11.2k
      32, this->wait_policy(), target);
8156
11.2k
  }
8157
8158
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
8159
3.58M
  for (unsigned int i = 0,
8160
3.58M
      n = static_cast<unsigned int>(this->where_clauses_size()); i < n; i++) {
8161
632
    target = ::google::protobuf::internal::WireFormatLite::
8162
632
      InternalWriteMessageToArray(
8163
632
        33, this->where_clauses(static_cast<int>(i)), deterministic, target);
8164
632
  }
8165
8166
  // repeated .yb.PgsqlColRefPB col_refs = 34;
8167
3.58M
  for (unsigned int i = 0,
8168
24.3M
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
8169
20.7M
    target = ::google::protobuf::internal::WireFormatLite::
8170
20.7M
      InternalWriteMessageToArray(
8171
20.7M
        34, this->col_refs(static_cast<int>(i)), deterministic, target);
8172
20.7M
  }
8173
8174
  // optional bytes partition_key = 35;
8175
3.58M
  if (cached_has_bits & 0x00000008u) {
8176
3.09M
    target =
8177
3.09M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8178
3.09M
        35, this->partition_key(), target);
8179
3.09M
  }
8180
8181
3.58M
  if (_internal_metadata_.have_unknown_fields()) {
8182
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8183
0
        _internal_metadata_.unknown_fields(), target);
8184
0
  }
8185
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlReadRequestPB)
8186
3.58M
  return target;
8187
3.58M
}
8188
8189
7.17M
size_t PgsqlReadRequestPB::ByteSizeLong() const {
8190
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlReadRequestPB)
8191
7.17M
  size_t total_size = 0;
8192
8193
7.17M
  if (_internal_metadata_.have_unknown_fields()) {
8194
0
    total_size +=
8195
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8196
0
        _internal_metadata_.unknown_fields());
8197
0
  }
8198
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
8199
7.17M
  {
8200
7.17M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
8201
7.17M
    total_size += 1UL * count;
8202
12.0M
    for (unsigned int i = 0; i < count; i++) {
8203
4.84M
      total_size +=
8204
4.84M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8205
4.84M
          this->partition_column_values(static_cast<int>(i)));
8206
4.84M
    }
8207
7.17M
  }
8208
8209
  // repeated .yb.PgsqlExpressionPB targets = 7;
8210
7.17M
  {
8211
7.17M
    unsigned int count = static_cast<unsigned int>(this->targets_size());
8212
7.17M
    total_size += 1UL * count;
8213
50.6M
    for (unsigned int i = 0; i < count; i++) {
8214
43.4M
      total_size +=
8215
43.4M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8216
43.4M
          this->targets(static_cast<int>(i)));
8217
43.4M
    }
8218
7.17M
  }
8219
8220
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
8221
7.17M
  {
8222
7.17M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
8223
7.17M
    total_size += 2UL * count;
8224
9.38M
    for (unsigned int i = 0; i < count; i++) {
8225
2.20M
      total_size +=
8226
2.20M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8227
2.20M
          this->range_column_values(static_cast<int>(i)));
8228
2.20M
    }
8229
7.17M
  }
8230
8231
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
8232
7.17M
  {
8233
7.17M
    unsigned int count = static_cast<unsigned int>(this->batch_arguments_size());
8234
7.17M
    total_size += 2UL * count;
8235
8.98M
    for (unsigned int i = 0; i < count; i++) {
8236
1.80M
      total_size +=
8237
1.80M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8238
1.80M
          this->batch_arguments(static_cast<int>(i)));
8239
1.80M
    }
8240
7.17M
  }
8241
8242
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
8243
7.17M
  {
8244
7.17M
    unsigned int count = static_cast<unsigned int>(this->where_clauses_size());
8245
7.17M
    total_size += 2UL * count;
8246
7.17M
    for (unsigned int i = 0; i < count; i++) {
8247
1.26k
      total_size +=
8248
1.26k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8249
1.26k
          this->where_clauses(static_cast<int>(i)));
8250
1.26k
    }
8251
7.17M
  }
8252
8253
  // repeated .yb.PgsqlColRefPB col_refs = 34;
8254
7.17M
  {
8255
7.17M
    unsigned int count = static_cast<unsigned int>(this->col_refs_size());
8256
7.17M
    total_size += 2UL * count;
8257
48.5M
    for (unsigned int i = 0; i < count; i++) {
8258
41.4M
      total_size +=
8259
41.4M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8260
41.4M
          this->col_refs(static_cast<int>(i)));
8261
41.4M
    }
8262
7.17M
  }
8263
8264
7.17M
  if (_has_bits_[0 / 32] & 255u) {
8265
    // optional bytes table_id = 19;
8266
7.17M
    if (has_table_id()) {
8267
7.17M
      total_size += 2 +
8268
7.17M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8269
7.17M
          this->table_id());
8270
7.17M
    }
8271
8272
    // optional bytes DEPRECATED_max_partition_key = 25;
8273
7.17M
    if (has_deprecated_max_partition_key()) {
8274
0
      total_size += 2 +
8275
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8276
0
          this->deprecated_max_partition_key());
8277
0
    }
8278
8279
    // optional bytes backfill_spec = 31;
8280
7.17M
    if (has_backfill_spec()) {
8281
596
      total_size += 2 +
8282
596
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8283
596
          this->backfill_spec());
8284
596
    }
8285
8286
    // optional bytes partition_key = 35;
8287
7.17M
    if (has_partition_key()) {
8288
6.19M
      total_size += 2 +
8289
6.19M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8290
6.19M
          this->partition_key());
8291
6.19M
    }
8292
8293
    // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
8294
7.17M
    if (has_rsrow_desc()) {
8295
0
      total_size += 1 +
8296
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8297
0
          *this->rsrow_desc_);
8298
0
    }
8299
8300
    // optional .yb.PgsqlExpressionPB where_expr = 8;
8301
7.17M
    if (has_where_expr()) {
8302
0
      total_size += 1 +
8303
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8304
0
          *this->where_expr_);
8305
0
    }
8306
8307
    // optional .yb.PgsqlColumnRefsPB column_refs = 9;
8308
7.17M
    if (has_column_refs()) {
8309
7.17M
      total_size += 1 +
8310
7.17M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8311
7.17M
          *this->column_refs_);
8312
7.17M
    }
8313
8314
    // optional .yb.PgsqlPagingStatePB paging_state = 14;
8315
7.17M
    if (has_paging_state()) {
8316
193k
      total_size += 1 +
8317
193k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8318
193k
          *this->paging_state_);
8319
193k
    }
8320
8321
7.17M
  }
8322
7.17M
  if (_has_bits_[8 / 32] & 65280u) {
8323
    // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
8324
6.57M
    if (has_ybctid_column_value()) {
8325
35.1k
      total_size += 2 +
8326
35.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8327
35.1k
          *this->ybctid_column_value_);
8328
35.1k
    }
8329
8330
    // optional .yb.PgsqlReadRequestPB index_request = 21;
8331
6.57M
    if (has_index_request()) {
8332
605k
      total_size += 2 +
8333
605k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8334
605k
          *this->index_request_);
8335
605k
    }
8336
8337
    // optional .yb.PgsqlExpressionPB condition_expr = 22;
8338
6.57M
    if (has_condition_expr()) {
8339
10.4k
      total_size += 2 +
8340
10.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8341
10.4k
          *this->condition_expr_);
8342
10.4k
    }
8343
8344
    // optional .yb.PgsqlPartitionBound lower_bound = 27;
8345
6.57M
    if (has_lower_bound()) {
8346
6.16k
      total_size += 2 +
8347
6.16k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8348
6.16k
          *this->lower_bound_);
8349
6.16k
    }
8350
8351
    // optional .yb.PgsqlPartitionBound upper_bound = 28;
8352
6.57M
    if (has_upper_bound()) {
8353
783k
      total_size += 2 +
8354
783k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8355
783k
          *this->upper_bound_);
8356
783k
    }
8357
8358
    // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
8359
6.57M
    if (has_sampling_state()) {
8360
410
      total_size += 2 +
8361
410
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8362
410
          *this->sampling_state_);
8363
410
    }
8364
8365
    // optional uint64 stmt_id = 2;
8366
6.57M
    if (has_stmt_id()) {
8367
6.56M
      total_size += 1 +
8368
6.56M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8369
6.56M
          this->stmt_id());
8370
6.56M
    }
8371
8372
    // optional uint32 schema_version = 3;
8373
6.57M
    if (has_schema_version()) {
8374
6.56M
      total_size += 1 +
8375
6.56M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8376
6.56M
          this->schema_version());
8377
6.56M
    }
8378
8379
6.57M
  }
8380
7.17M
  if (_has_bits_[16 / 32] & 16711680u) {
8381
    // optional uint32 hash_code = 4;
8382
7.17M
    if (has_hash_code()) {
8383
4.96M
      total_size += 1 +
8384
4.96M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8385
4.96M
          this->hash_code());
8386
4.96M
    }
8387
8388
    // optional uint64 limit = 13;
8389
7.17M
    if (has_limit()) {
8390
6.56M
      total_size += 1 +
8391
6.56M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8392
6.56M
          this->limit());
8393
6.56M
    }
8394
8395
    // optional uint64 ysql_catalog_version = 16;
8396
7.17M
    if (has_ysql_catalog_version()) {
8397
4.90M
      total_size += 2 +
8398
4.90M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8399
4.90M
          this->ysql_catalog_version());
8400
4.90M
    }
8401
8402
    // optional bool distinct = 11 [default = false];
8403
7.17M
    if (has_distinct()) {
8404
0
      total_size += 1 + 1;
8405
0
    }
8406
8407
    // optional bool is_aggregate = 12 [default = false];
8408
7.17M
    if (has_is_aggregate()) {
8409
7.17M
      total_size += 1 + 1;
8410
7.17M
    }
8411
8412
    // optional bool return_paging_state = 15 [default = false];
8413
7.17M
    if (has_return_paging_state()) {
8414
6.57M
      total_size += 1 + 1;
8415
6.57M
    }
8416
8417
    // optional bool is_for_backfill = 29 [default = false];
8418
7.17M
    if (has_is_for_backfill()) {
8419
596
      total_size += 2 + 1;
8420
596
    }
8421
8422
    // optional uint32 max_hash_code = 17;
8423
7.17M
    if (has_max_hash_code()) {
8424
4.83M
      total_size += 2 +
8425
4.83M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8426
4.83M
          this->max_hash_code());
8427
4.83M
    }
8428
8429
7.17M
  }
8430
7.17M
  if (_has_bits_[24 / 32] & 251658240u) {
8431
    // optional .yb.RowMarkType row_mark_type = 23;
8432
7.17M
    if (has_row_mark_type()) {
8433
22.5k
      total_size += 2 +
8434
22.5k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->row_mark_type());
8435
22.5k
    }
8436
8437
    // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
8438
7.17M
    if (has_wait_policy()) {
8439
22.5k
      total_size += 2 +
8440
22.5k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->wait_policy());
8441
22.5k
    }
8442
8443
    // optional .yb.QLClient client = 1;
8444
7.17M
    if (has_client()) {
8445
6.57M
      total_size += 1 +
8446
6.57M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->client());
8447
6.57M
    }
8448
8449
    // optional bool is_forward_scan = 10 [default = true];
8450
7.17M
    if (has_is_forward_scan()) {
8451
6.32M
      total_size += 1 + 1;
8452
6.32M
    }
8453
8454
7.17M
  }
8455
7.17M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8456
7.17M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8457
7.17M
  _cached_size_ = cached_size;
8458
7.17M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8459
7.17M
  return total_size;
8460
7.17M
}
8461
8462
0
void PgsqlReadRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
8463
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlReadRequestPB)
8464
0
  GOOGLE_DCHECK_NE(&from, this);
8465
0
  const PgsqlReadRequestPB* source =
8466
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlReadRequestPB>(
8467
0
          &from);
8468
0
  if (source == NULL) {
8469
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlReadRequestPB)
8470
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8471
0
  } else {
8472
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlReadRequestPB)
8473
0
    MergeFrom(*source);
8474
0
  }
8475
0
}
8476
8477
1.45M
void PgsqlReadRequestPB::MergeFrom(const PgsqlReadRequestPB& from) {
8478
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlReadRequestPB)
8479
1.45M
  GOOGLE_DCHECK_NE(&from, this);
8480
1.45M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8481
1.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
8482
1.45M
  (void) cached_has_bits;
8483
8484
1.45M
  partition_column_values_.MergeFrom(from.partition_column_values_);
8485
1.45M
  targets_.MergeFrom(from.targets_);
8486
1.45M
  range_column_values_.MergeFrom(from.range_column_values_);
8487
1.45M
  batch_arguments_.MergeFrom(from.batch_arguments_);
8488
1.45M
  where_clauses_.MergeFrom(from.where_clauses_);
8489
1.45M
  col_refs_.MergeFrom(from.col_refs_);
8490
1.45M
  cached_has_bits = from._has_bits_[0];
8491
1.45M
  if (cached_has_bits & 255u) {
8492
1.45M
    if (cached_has_bits & 0x00000001u) {
8493
1.45M
      set_has_table_id();
8494
1.45M
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
8495
1.45M
    }
8496
1.45M
    if (cached_has_bits & 0x00000002u) {
8497
0
      set_has_deprecated_max_partition_key();
8498
0
      deprecated_max_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_max_partition_key_);
8499
0
    }
8500
1.45M
    if (cached_has_bits & 0x00000004u) {
8501
0
      set_has_backfill_spec();
8502
0
      backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
8503
0
    }
8504
1.45M
    if (cached_has_bits & 0x00000008u) {
8505
0
      set_has_partition_key();
8506
0
      partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
8507
0
    }
8508
1.45M
    if (cached_has_bits & 0x00000010u) {
8509
0
      mutable_rsrow_desc()->::yb::PgsqlRSRowDescPB::MergeFrom(from.rsrow_desc());
8510
0
    }
8511
1.45M
    if (cached_has_bits & 0x00000020u) {
8512
0
      mutable_where_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.where_expr());
8513
0
    }
8514
1.45M
    if (cached_has_bits & 0x00000040u) {
8515
1.45M
      mutable_column_refs()->::yb::PgsqlColumnRefsPB::MergeFrom(from.column_refs());
8516
1.45M
    }
8517
1.45M
    if (cached_has_bits & 0x00000080u) {
8518
0
      mutable_paging_state()->::yb::PgsqlPagingStatePB::MergeFrom(from.paging_state());
8519
0
    }
8520
1.45M
  }
8521
1.45M
  if (cached_has_bits & 65280u) {
8522
1.45M
    if (cached_has_bits & 0x00000100u) {
8523
0
      mutable_ybctid_column_value()->::yb::PgsqlExpressionPB::MergeFrom(from.ybctid_column_value());
8524
0
    }
8525
1.45M
    if (cached_has_bits & 0x00000200u) {
8526
0
      mutable_index_request()->::yb::PgsqlReadRequestPB::MergeFrom(from.index_request());
8527
0
    }
8528
1.45M
    if (cached_has_bits & 0x00000400u) {
8529
1.66k
      mutable_condition_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.condition_expr());
8530
1.66k
    }
8531
1.45M
    if (cached_has_bits & 0x00000800u) {
8532
0
      mutable_lower_bound()->::yb::PgsqlPartitionBound::MergeFrom(from.lower_bound());
8533
0
    }
8534
1.45M
    if (cached_has_bits & 0x00001000u) {
8535
0
      mutable_upper_bound()->::yb::PgsqlPartitionBound::MergeFrom(from.upper_bound());
8536
0
    }
8537
1.45M
    if (cached_has_bits & 0x00002000u) {
8538
109
      mutable_sampling_state()->::yb::PgsqlSamplingStatePB::MergeFrom(from.sampling_state());
8539
109
    }
8540
1.45M
    if (cached_has_bits & 0x00004000u) {
8541
1.45M
      stmt_id_ = from.stmt_id_;
8542
1.45M
    }
8543
1.45M
    if (cached_has_bits & 0x00008000u) {
8544
1.45M
      schema_version_ = from.schema_version_;
8545
1.45M
    }
8546
1.45M
    _has_bits_[0] |= cached_has_bits;
8547
1.45M
  }
8548
1.45M
  if (cached_has_bits & 16711680u) {
8549
1.45M
    if (cached_has_bits & 0x00010000u) {
8550
0
      hash_code_ = from.hash_code_;
8551
0
    }
8552
1.45M
    if (cached_has_bits & 0x00020000u) {
8553
1.45M
      limit_ = from.limit_;
8554
1.45M
    }
8555
1.45M
    if (cached_has_bits & 0x00040000u) {
8556
1.45M
      ysql_catalog_version_ = from.ysql_catalog_version_;
8557
1.45M
    }
8558
1.45M
    if (cached_has_bits & 0x00080000u) {
8559
0
      distinct_ = from.distinct_;
8560
0
    }
8561
1.45M
    if (cached_has_bits & 0x00100000u) {
8562
1.45M
      is_aggregate_ = from.is_aggregate_;
8563
1.45M
    }
8564
1.45M
    if (cached_has_bits & 0x00200000u) {
8565
1.45M
      return_paging_state_ = from.return_paging_state_;
8566
1.45M
    }
8567
1.45M
    if (cached_has_bits & 0x00400000u) {
8568
0
      is_for_backfill_ = from.is_for_backfill_;
8569
0
    }
8570
1.45M
    if (cached_has_bits & 0x00800000u) {
8571
0
      max_hash_code_ = from.max_hash_code_;
8572
0
    }
8573
1.45M
    _has_bits_[0] |= cached_has_bits;
8574
1.45M
  }
8575
1.45M
  if (cached_has_bits & 251658240u) {
8576
1.45M
    if (cached_has_bits & 0x01000000u) {
8577
1.44k
      row_mark_type_ = from.row_mark_type_;
8578
1.44k
    }
8579
1.45M
    if (cached_has_bits & 0x02000000u) {
8580
1.44k
      wait_policy_ = from.wait_policy_;
8581
1.44k
    }
8582
1.45M
    if (cached_has_bits & 0x04000000u) {
8583
1.45M
      client_ = from.client_;
8584
1.45M
    }
8585
1.45M
    if (cached_has_bits & 0x08000000u) {
8586
1.45M
      is_forward_scan_ = from.is_forward_scan_;
8587
1.45M
    }
8588
1.45M
    _has_bits_[0] |= cached_has_bits;
8589
1.45M
  }
8590
1.45M
}
8591
8592
0
void PgsqlReadRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
8593
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlReadRequestPB)
8594
0
  if (&from == this) return;
8595
0
  Clear();
8596
0
  MergeFrom(from);
8597
0
}
8598
8599
1.45M
void PgsqlReadRequestPB::CopyFrom(const PgsqlReadRequestPB& from) {
8600
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlReadRequestPB)
8601
1.45M
  if (&from == this) return;
8602
1.45M
  Clear();
8603
1.45M
  MergeFrom(from);
8604
1.45M
}
8605
8606
0
bool PgsqlReadRequestPB::IsInitialized() const {
8607
0
  return true;
8608
0
}
8609
8610
0
void PgsqlReadRequestPB::Swap(PgsqlReadRequestPB* other) {
8611
0
  if (other == this) return;
8612
0
  InternalSwap(other);
8613
0
}
8614
0
void PgsqlReadRequestPB::InternalSwap(PgsqlReadRequestPB* other) {
8615
0
  using std::swap;
8616
0
  partition_column_values_.InternalSwap(&other->partition_column_values_);
8617
0
  targets_.InternalSwap(&other->targets_);
8618
0
  range_column_values_.InternalSwap(&other->range_column_values_);
8619
0
  batch_arguments_.InternalSwap(&other->batch_arguments_);
8620
0
  where_clauses_.InternalSwap(&other->where_clauses_);
8621
0
  col_refs_.InternalSwap(&other->col_refs_);
8622
0
  table_id_.Swap(&other->table_id_);
8623
0
  deprecated_max_partition_key_.Swap(&other->deprecated_max_partition_key_);
8624
0
  backfill_spec_.Swap(&other->backfill_spec_);
8625
0
  partition_key_.Swap(&other->partition_key_);
8626
0
  swap(rsrow_desc_, other->rsrow_desc_);
8627
0
  swap(where_expr_, other->where_expr_);
8628
0
  swap(column_refs_, other->column_refs_);
8629
0
  swap(paging_state_, other->paging_state_);
8630
0
  swap(ybctid_column_value_, other->ybctid_column_value_);
8631
0
  swap(index_request_, other->index_request_);
8632
0
  swap(condition_expr_, other->condition_expr_);
8633
0
  swap(lower_bound_, other->lower_bound_);
8634
0
  swap(upper_bound_, other->upper_bound_);
8635
0
  swap(sampling_state_, other->sampling_state_);
8636
0
  swap(stmt_id_, other->stmt_id_);
8637
0
  swap(schema_version_, other->schema_version_);
8638
0
  swap(hash_code_, other->hash_code_);
8639
0
  swap(limit_, other->limit_);
8640
0
  swap(ysql_catalog_version_, other->ysql_catalog_version_);
8641
0
  swap(distinct_, other->distinct_);
8642
0
  swap(is_aggregate_, other->is_aggregate_);
8643
0
  swap(return_paging_state_, other->return_paging_state_);
8644
0
  swap(is_for_backfill_, other->is_for_backfill_);
8645
0
  swap(max_hash_code_, other->max_hash_code_);
8646
0
  swap(row_mark_type_, other->row_mark_type_);
8647
0
  swap(wait_policy_, other->wait_policy_);
8648
0
  swap(client_, other->client_);
8649
0
  swap(is_forward_scan_, other->is_forward_scan_);
8650
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8651
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8652
0
  swap(_cached_size_, other->_cached_size_);
8653
0
}
8654
8655
3.58M
::google::protobuf::Metadata PgsqlReadRequestPB::GetMetadata() const {
8656
3.58M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8657
3.58M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8658
3.58M
}
8659
8660
8661
// ===================================================================
8662
8663
17.1k
void PgsqlResponsePB::InitAsDefaultInstance() {
8664
17.1k
  ::yb::_PgsqlResponsePB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::PgsqlPagingStatePB*>(
8665
17.1k
      ::yb::PgsqlPagingStatePB::internal_default_instance());
8666
17.1k
  ::yb::_PgsqlResponsePB_default_instance_._instance.get_mutable()->sampling_state_ = const_cast< ::yb::PgsqlSamplingStatePB*>(
8667
17.1k
      ::yb::PgsqlSamplingStatePB::internal_default_instance());
8668
17.1k
}
8669
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8670
const int PgsqlResponsePB::kStatusFieldNumber;
8671
const int PgsqlResponsePB::kSkippedFieldNumber;
8672
const int PgsqlResponsePB::kErrorMessageFieldNumber;
8673
const int PgsqlResponsePB::kRowsDataSidecarFieldNumber;
8674
const int PgsqlResponsePB::kPagingStateFieldNumber;
8675
const int PgsqlResponsePB::kBatchArgCountFieldNumber;
8676
const int PgsqlResponsePB::kBatchOrdersFieldNumber;
8677
const int PgsqlResponsePB::kRowsAffectedCountFieldNumber;
8678
const int PgsqlResponsePB::kPgErrorCodeFieldNumber;
8679
const int PgsqlResponsePB::kTxnErrorCodeFieldNumber;
8680
const int PgsqlResponsePB::kSamplingStateFieldNumber;
8681
const int PgsqlResponsePB::kBackfillSpecFieldNumber;
8682
const int PgsqlResponsePB::kIsBackfillBatchDoneFieldNumber;
8683
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8684
8685
PgsqlResponsePB::PgsqlResponsePB()
8686
26.1M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8687
26.1M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8688
26.1M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB();
8689
26.1M
  }
8690
26.1M
  SharedCtor();
8691
  // @@protoc_insertion_point(constructor:yb.PgsqlResponsePB)
8692
26.1M
}
8693
PgsqlResponsePB::PgsqlResponsePB(const PgsqlResponsePB& from)
8694
  : ::google::protobuf::Message(),
8695
      _internal_metadata_(NULL),
8696
      _has_bits_(from._has_bits_),
8697
      _cached_size_(0),
8698
0
      batch_orders_(from.batch_orders_) {
8699
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8700
0
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8701
0
  if (from.has_error_message()) {
8702
0
    error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
8703
0
  }
8704
0
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8705
0
  if (from.has_backfill_spec()) {
8706
0
    backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
8707
0
  }
8708
0
  if (from.has_paging_state()) {
8709
0
    paging_state_ = new ::yb::PgsqlPagingStatePB(*from.paging_state_);
8710
0
  } else {
8711
0
    paging_state_ = NULL;
8712
0
  }
8713
0
  if (from.has_sampling_state()) {
8714
0
    sampling_state_ = new ::yb::PgsqlSamplingStatePB(*from.sampling_state_);
8715
0
  } else {
8716
0
    sampling_state_ = NULL;
8717
0
  }
8718
0
  ::memcpy(&status_, &from.status_,
8719
0
    static_cast<size_t>(reinterpret_cast<char*>(&batch_arg_count_) -
8720
0
    reinterpret_cast<char*>(&status_)) + sizeof(batch_arg_count_));
8721
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlResponsePB)
8722
0
}
8723
8724
26.1M
void PgsqlResponsePB::SharedCtor() {
8725
26.1M
  _cached_size_ = 0;
8726
26.1M
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8727
26.1M
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8728
26.1M
  ::memset(&paging_state_, 0, static_cast<size_t>(
8729
26.1M
      reinterpret_cast<char*>(&is_backfill_batch_done_) -
8730
26.1M
      reinterpret_cast<char*>(&paging_state_)) + sizeof(is_backfill_batch_done_));
8731
26.1M
  batch_arg_count_ = GOOGLE_LONGLONG(1);
8732
26.1M
}
8733
8734
26.1M
PgsqlResponsePB::~PgsqlResponsePB() {
8735
  // @@protoc_insertion_point(destructor:yb.PgsqlResponsePB)
8736
26.1M
  SharedDtor();
8737
26.1M
}
8738
8739
26.1M
void PgsqlResponsePB::SharedDtor() {
8740
26.1M
  error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8741
26.1M
  backfill_spec_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8742
26.1M
  if (this != internal_default_instance()) delete paging_state_;
8743
26.1M
  if (this != internal_default_instance()) delete sampling_state_;
8744
26.1M
}
8745
8746
0
void PgsqlResponsePB::SetCachedSize(int size) const {
8747
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8748
0
  _cached_size_ = size;
8749
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8750
0
}
8751
0
const ::google::protobuf::Descriptor* PgsqlResponsePB::descriptor() {
8752
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8753
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8754
0
}
8755
8756
0
const PgsqlResponsePB& PgsqlResponsePB::default_instance() {
8757
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB();
8758
0
  return *internal_default_instance();
8759
0
}
8760
8761
0
PgsqlResponsePB* PgsqlResponsePB::New(::google::protobuf::Arena* arena) const {
8762
0
  PgsqlResponsePB* n = new PgsqlResponsePB;
8763
0
  if (arena != NULL) {
8764
0
    arena->Own(n);
8765
0
  }
8766
0
  return n;
8767
0
}
8768
8769
557
void PgsqlResponsePB::Clear() {
8770
// @@protoc_insertion_point(message_clear_start:yb.PgsqlResponsePB)
8771
557
  ::google::protobuf::uint32 cached_has_bits = 0;
8772
  // Prevent compiler warnings about cached_has_bits being unused
8773
557
  (void) cached_has_bits;
8774
8775
557
  batch_orders_.Clear();
8776
557
  cached_has_bits = _has_bits_[0];
8777
557
  if (cached_has_bits & 15u) {
8778
0
    if (cached_has_bits & 0x00000001u) {
8779
0
      GOOGLE_DCHECK(!error_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8780
0
      (*error_message_.UnsafeRawStringPointer())->clear();
8781
0
    }
8782
0
    if (cached_has_bits & 0x00000002u) {
8783
0
      GOOGLE_DCHECK(!backfill_spec_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8784
0
      (*backfill_spec_.UnsafeRawStringPointer())->clear();
8785
0
    }
8786
0
    if (cached_has_bits & 0x00000004u) {
8787
0
      GOOGLE_DCHECK(paging_state_ != NULL);
8788
0
      paging_state_->Clear();
8789
0
    }
8790
0
    if (cached_has_bits & 0x00000008u) {
8791
0
      GOOGLE_DCHECK(sampling_state_ != NULL);
8792
0
      sampling_state_->Clear();
8793
0
    }
8794
0
  }
8795
557
  if (cached_has_bits & 240u) {
8796
557
    ::memset(&status_, 0, static_cast<size_t>(
8797
557
        reinterpret_cast<char*>(&rows_affected_count_) -
8798
557
        reinterpret_cast<char*>(&status_)) + sizeof(rows_affected_count_));
8799
557
  }
8800
557
  if (cached_has_bits & 3840u) {
8801
0
    ::memset(&txn_error_code_, 0, static_cast<size_t>(
8802
0
        reinterpret_cast<char*>(&is_backfill_batch_done_) -
8803
0
        reinterpret_cast<char*>(&txn_error_code_)) + sizeof(is_backfill_batch_done_));
8804
0
    batch_arg_count_ = GOOGLE_LONGLONG(1);
8805
0
  }
8806
557
  _has_bits_.Clear();
8807
557
  _internal_metadata_.Clear();
8808
557
}
8809
8810
bool PgsqlResponsePB::MergePartialFromCodedStream(
8811
5.54M
    ::google::protobuf::io::CodedInputStream* input) {
8812
11.6M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8813
5.54M
  ::google::protobuf::uint32 tag;
8814
  // @@protoc_insertion_point(parse_start:yb.PgsqlResponsePB)
8815
17.1M
  for (;;) {
8816
17.1M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8817
17.1M
    tag = p.first;
8818
17.1M
    if (!p.second) goto handle_unusual;
8819
11.6M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8820
      // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
8821
5.52M
      case 1: {
8822
5.52M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8823
5.52M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8824
5.52M
          int value;
8825
5.52M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8826
5.52M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8827
5.52M
                 input, &value)));
8828
5.52M
          if (::yb::PgsqlResponsePB_RequestStatus_IsValid(value)) {
8829
5.52M
            set_status(static_cast< ::yb::PgsqlResponsePB_RequestStatus >(value));
8830
566
          } else {
8831
566
            mutable_unknown_fields()->AddVarint(
8832
566
                1, static_cast< ::google::protobuf::uint64>(value));
8833
566
          }
8834
18.4E
        } else {
8835
18.4E
          goto handle_unusual;
8836
18.4E
        }
8837
5.52M
        break;
8838
5.52M
      }
8839
8840
      // optional string error_message = 2;
8841
754
      case 2: {
8842
754
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8843
754
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
8844
754
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8845
754
                input, this->mutable_error_message()));
8846
754
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8847
754
            this->error_message().data(), static_cast<int>(this->error_message().length()),
8848
754
            ::google::protobuf::internal::WireFormat::PARSE,
8849
754
            "yb.PgsqlResponsePB.error_message");
8850
0
        } else {
8851
0
          goto handle_unusual;
8852
0
        }
8853
754
        break;
8854
754
      }
8855
8856
      // optional int32 rows_data_sidecar = 4;
8857
5.52M
      case 4: {
8858
5.52M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8859
5.52M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
8860
5.52M
          set_has_rows_data_sidecar();
8861
5.52M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8862
5.52M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8863
5.52M
                 input, &rows_data_sidecar_)));
8864
18.4E
        } else {
8865
18.4E
          goto handle_unusual;
8866
18.4E
        }
8867
5.52M
        break;
8868
5.52M
      }
8869
8870
      // optional .yb.PgsqlPagingStatePB paging_state = 5;
8871
101k
      case 5: {
8872
101k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8873
101k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8874
101k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8875
101k
               input, mutable_paging_state()));
8876
1
        } else {
8877
1
          goto handle_unusual;
8878
1
        }
8879
101k
        break;
8880
101k
      }
8881
8882
      // optional bool skipped = 6;
8883
22
      case 6: {
8884
22
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8885
22
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8886
22
          set_has_skipped();
8887
22
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8888
22
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8889
22
                 input, &skipped_)));
8890
0
        } else {
8891
0
          goto handle_unusual;
8892
0
        }
8893
22
        break;
8894
22
      }
8895
8896
      // optional int32 rows_affected_count = 7;
8897
479k
      case 7: {
8898
479k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8899
479k
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8900
479k
          set_has_rows_affected_count();
8901
479k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8902
479k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8903
479k
                 input, &rows_affected_count_)));
8904
0
        } else {
8905
0
          goto handle_unusual;
8906
0
        }
8907
479k
        break;
8908
479k
      }
8909
8910
      // optional uint64 pg_error_code = 8;
8911
0
      case 8: {
8912
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8913
0
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
8914
0
          set_has_pg_error_code();
8915
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8916
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8917
0
                 input, &pg_error_code_)));
8918
0
        } else {
8919
0
          goto handle_unusual;
8920
0
        }
8921
0
        break;
8922
0
      }
8923
8924
      // optional uint32 txn_error_code = 9;
8925
0
      case 9: {
8926
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8927
0
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
8928
0
          set_has_txn_error_code();
8929
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8930
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8931
0
                 input, &txn_error_code_)));
8932
0
        } else {
8933
0
          goto handle_unusual;
8934
0
        }
8935
0
        break;
8936
0
      }
8937
8938
      // optional int64 batch_arg_count = 10 [default = 1];
8939
2.51k
      case 10: {
8940
2.51k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8941
2.51k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
8942
2.51k
          set_has_batch_arg_count();
8943
2.51k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8944
2.51k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8945
2.51k
                 input, &batch_arg_count_)));
8946
0
        } else {
8947
0
          goto handle_unusual;
8948
0
        }
8949
2.51k
        break;
8950
2.51k
      }
8951
8952
      // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
8953
203
      case 11: {
8954
203
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8955
203
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
8956
203
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8957
203
               input, mutable_sampling_state()));
8958
0
        } else {
8959
0
          goto handle_unusual;
8960
0
        }
8961
203
        break;
8962
203
      }
8963
8964
      // repeated int64 batch_orders = 12;
8965
12.4k
      case 12: {
8966
12.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8967
12.4k
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
8968
12.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8969
12.4k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8970
12.4k
                 1, 96u, input, this->mutable_batch_orders())));
8971
0
        } else if (
8972
0
            static_cast< ::google::protobuf::uint8>(tag) ==
8973
0
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
8974
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8975
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8976
0
                 input, this->mutable_batch_orders())));
8977
0
        } else {
8978
0
          goto handle_unusual;
8979
0
        }
8980
12.4k
        break;
8981
12.4k
      }
8982
8983
      // optional bytes backfill_spec = 13;
8984
289
      case 13: {
8985
289
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8986
289
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
8987
289
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8988
289
                input, this->mutable_backfill_spec()));
8989
0
        } else {
8990
0
          goto handle_unusual;
8991
0
        }
8992
289
        break;
8993
289
      }
8994
8995
      // optional bool is_backfill_batch_done = 14;
8996
289
      case 14: {
8997
289
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8998
289
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
8999
289
          set_has_is_backfill_batch_done();
9000
289
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9001
289
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9002
289
                 input, &is_backfill_batch_done_)));
9003
0
        } else {
9004
0
          goto handle_unusual;
9005
0
        }
9006
289
        break;
9007
5.54M
      }
9008
9009
0
      default: {
9010
5.54M
      handle_unusual:
9011
5.54M
        if (tag == 0) {
9012
5.54M
          goto success;
9013
5.54M
        }
9014
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9015
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9016
18.4E
        break;
9017
18.4E
      }
9018
11.6M
    }
9019
11.6M
  }
9020
5.54M
success:
9021
  // @@protoc_insertion_point(parse_success:yb.PgsqlResponsePB)
9022
5.54M
  return true;
9023
0
failure:
9024
  // @@protoc_insertion_point(parse_failure:yb.PgsqlResponsePB)
9025
0
  return false;
9026
5.54M
#undef DO_
9027
5.54M
}
9028
9029
void PgsqlResponsePB::SerializeWithCachedSizes(
9030
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9031
  // @@protoc_insertion_point(serialize_start:yb.PgsqlResponsePB)
9032
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9033
0
  (void) cached_has_bits;
9034
9035
0
  cached_has_bits = _has_bits_[0];
9036
  // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9037
0
  if (cached_has_bits & 0x00000010u) {
9038
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
9039
0
      1, this->status(), output);
9040
0
  }
9041
9042
  // optional string error_message = 2;
9043
0
  if (cached_has_bits & 0x00000001u) {
9044
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9045
0
      this->error_message().data(), static_cast<int>(this->error_message().length()),
9046
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9047
0
      "yb.PgsqlResponsePB.error_message");
9048
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9049
0
      2, this->error_message(), output);
9050
0
  }
9051
9052
  // optional int32 rows_data_sidecar = 4;
9053
0
  if (cached_has_bits & 0x00000020u) {
9054
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->rows_data_sidecar(), output);
9055
0
  }
9056
9057
  // optional .yb.PgsqlPagingStatePB paging_state = 5;
9058
0
  if (cached_has_bits & 0x00000004u) {
9059
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9060
0
      5, *this->paging_state_, output);
9061
0
  }
9062
9063
  // optional bool skipped = 6;
9064
0
  if (cached_has_bits & 0x00000200u) {
9065
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->skipped(), output);
9066
0
  }
9067
9068
  // optional int32 rows_affected_count = 7;
9069
0
  if (cached_has_bits & 0x00000080u) {
9070
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->rows_affected_count(), output);
9071
0
  }
9072
9073
  // optional uint64 pg_error_code = 8;
9074
0
  if (cached_has_bits & 0x00000040u) {
9075
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->pg_error_code(), output);
9076
0
  }
9077
9078
  // optional uint32 txn_error_code = 9;
9079
0
  if (cached_has_bits & 0x00000100u) {
9080
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->txn_error_code(), output);
9081
0
  }
9082
9083
  // optional int64 batch_arg_count = 10 [default = 1];
9084
0
  if (cached_has_bits & 0x00000800u) {
9085
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->batch_arg_count(), output);
9086
0
  }
9087
9088
  // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9089
0
  if (cached_has_bits & 0x00000008u) {
9090
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9091
0
      11, *this->sampling_state_, output);
9092
0
  }
9093
9094
  // repeated int64 batch_orders = 12;
9095
0
  for (int i = 0, n = this->batch_orders_size(); i < n; i++) {
9096
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(
9097
0
      12, this->batch_orders(i), output);
9098
0
  }
9099
9100
  // optional bytes backfill_spec = 13;
9101
0
  if (cached_has_bits & 0x00000002u) {
9102
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9103
0
      13, this->backfill_spec(), output);
9104
0
  }
9105
9106
  // optional bool is_backfill_batch_done = 14;
9107
0
  if (cached_has_bits & 0x00000400u) {
9108
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->is_backfill_batch_done(), output);
9109
0
  }
9110
9111
0
  if (_internal_metadata_.have_unknown_fields()) {
9112
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9113
0
        _internal_metadata_.unknown_fields(), output);
9114
0
  }
9115
  // @@protoc_insertion_point(serialize_end:yb.PgsqlResponsePB)
9116
0
}
9117
9118
::google::protobuf::uint8* PgsqlResponsePB::InternalSerializeWithCachedSizesToArray(
9119
5.54M
    bool deterministic, ::google::protobuf::uint8* target) const {
9120
5.54M
  (void)deterministic; // Unused
9121
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlResponsePB)
9122
5.54M
  ::google::protobuf::uint32 cached_has_bits = 0;
9123
5.54M
  (void) cached_has_bits;
9124
9125
5.54M
  cached_has_bits = _has_bits_[0];
9126
  // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9127
5.54M
  if (cached_has_bits & 0x00000010u) {
9128
5.52M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9129
5.52M
      1, this->status(), target);
9130
5.52M
  }
9131
9132
  // optional string error_message = 2;
9133
5.54M
  if (cached_has_bits & 0x00000001u) {
9134
754
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9135
754
      this->error_message().data(), static_cast<int>(this->error_message().length()),
9136
754
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9137
754
      "yb.PgsqlResponsePB.error_message");
9138
754
    target =
9139
754
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9140
754
        2, this->error_message(), target);
9141
754
  }
9142
9143
  // optional int32 rows_data_sidecar = 4;
9144
5.54M
  if (cached_has_bits & 0x00000020u) {
9145
5.52M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->rows_data_sidecar(), target);
9146
5.52M
  }
9147
9148
  // optional .yb.PgsqlPagingStatePB paging_state = 5;
9149
5.54M
  if (cached_has_bits & 0x00000004u) {
9150
101k
    target = ::google::protobuf::internal::WireFormatLite::
9151
101k
      InternalWriteMessageToArray(
9152
101k
        5, *this->paging_state_, deterministic, target);
9153
101k
  }
9154
9155
  // optional bool skipped = 6;
9156
5.54M
  if (cached_has_bits & 0x00000200u) {
9157
22
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->skipped(), target);
9158
22
  }
9159
9160
  // optional int32 rows_affected_count = 7;
9161
5.54M
  if (cached_has_bits & 0x00000080u) {
9162
479k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->rows_affected_count(), target);
9163
479k
  }
9164
9165
  // optional uint64 pg_error_code = 8;
9166
5.54M
  if (cached_has_bits & 0x00000040u) {
9167
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->pg_error_code(), target);
9168
0
  }
9169
9170
  // optional uint32 txn_error_code = 9;
9171
5.54M
  if (cached_has_bits & 0x00000100u) {
9172
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->txn_error_code(), target);
9173
0
  }
9174
9175
  // optional int64 batch_arg_count = 10 [default = 1];
9176
5.54M
  if (cached_has_bits & 0x00000800u) {
9177
2.51k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->batch_arg_count(), target);
9178
2.51k
  }
9179
9180
  // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9181
5.54M
  if (cached_has_bits & 0x00000008u) {
9182
203
    target = ::google::protobuf::internal::WireFormatLite::
9183
203
      InternalWriteMessageToArray(
9184
203
        11, *this->sampling_state_, deterministic, target);
9185
203
  }
9186
9187
  // repeated int64 batch_orders = 12;
9188
5.54M
  target = ::google::protobuf::internal::WireFormatLite::
9189
5.54M
    WriteInt64ToArray(12, this->batch_orders_, target);
9190
9191
  // optional bytes backfill_spec = 13;
9192
5.54M
  if (cached_has_bits & 0x00000002u) {
9193
289
    target =
9194
289
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9195
289
        13, this->backfill_spec(), target);
9196
289
  }
9197
9198
  // optional bool is_backfill_batch_done = 14;
9199
5.54M
  if (cached_has_bits & 0x00000400u) {
9200
289
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->is_backfill_batch_done(), target);
9201
289
  }
9202
9203
5.54M
  if (_internal_metadata_.have_unknown_fields()) {
9204
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9205
0
        _internal_metadata_.unknown_fields(), target);
9206
0
  }
9207
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlResponsePB)
9208
5.54M
  return target;
9209
5.54M
}
9210
9211
11.0M
size_t PgsqlResponsePB::ByteSizeLong() const {
9212
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlResponsePB)
9213
11.0M
  size_t total_size = 0;
9214
9215
11.0M
  if (_internal_metadata_.have_unknown_fields()) {
9216
0
    total_size +=
9217
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9218
0
        _internal_metadata_.unknown_fields());
9219
0
  }
9220
  // repeated int64 batch_orders = 12;
9221
11.0M
  {
9222
11.0M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
9223
11.0M
      Int64Size(this->batch_orders_);
9224
11.0M
    total_size += 1 *
9225
11.0M
                  ::google::protobuf::internal::FromIntSize(this->batch_orders_size());
9226
11.0M
    total_size += data_size;
9227
11.0M
  }
9228
9229
11.0M
  if (_has_bits_[0 / 32] & 255u) {
9230
    // optional string error_message = 2;
9231
11.0M
    if (has_error_message()) {
9232
1.50k
      total_size += 1 +
9233
1.50k
        ::google::protobuf::internal::WireFormatLite::StringSize(
9234
1.50k
          this->error_message());
9235
1.50k
    }
9236
9237
    // optional bytes backfill_spec = 13;
9238
11.0M
    if (has_backfill_spec()) {
9239
578
      total_size += 1 +
9240
578
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9241
578
          this->backfill_spec());
9242
578
    }
9243
9244
    // optional .yb.PgsqlPagingStatePB paging_state = 5;
9245
11.0M
    if (has_paging_state()) {
9246
202k
      total_size += 1 +
9247
202k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9248
202k
          *this->paging_state_);
9249
202k
    }
9250
9251
    // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9252
11.0M
    if (has_sampling_state()) {
9253
406
      total_size += 1 +
9254
406
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9255
406
          *this->sampling_state_);
9256
406
    }
9257
9258
    // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9259
11.0M
    if (has_status()) {
9260
11.0M
      total_size += 1 +
9261
11.0M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9262
11.0M
    }
9263
9264
    // optional int32 rows_data_sidecar = 4;
9265
11.0M
    if (has_rows_data_sidecar()) {
9266
11.0M
      total_size += 1 +
9267
11.0M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9268
11.0M
          this->rows_data_sidecar());
9269
11.0M
    }
9270
9271
    // optional uint64 pg_error_code = 8;
9272
11.0M
    if (has_pg_error_code()) {
9273
0
      total_size += 1 +
9274
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9275
0
          this->pg_error_code());
9276
0
    }
9277
9278
    // optional int32 rows_affected_count = 7;
9279
11.0M
    if (has_rows_affected_count()) {
9280
958k
      total_size += 1 +
9281
958k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9282
958k
          this->rows_affected_count());
9283
958k
    }
9284
9285
11.0M
  }
9286
11.0M
  if (_has_bits_[8 / 32] & 3840u) {
9287
    // optional uint32 txn_error_code = 9;
9288
5.66k
    if (has_txn_error_code()) {
9289
0
      total_size += 1 +
9290
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
9291
0
          this->txn_error_code());
9292
0
    }
9293
9294
    // optional bool skipped = 6;
9295
5.66k
    if (has_skipped()) {
9296
44
      total_size += 1 + 1;
9297
44
    }
9298
9299
    // optional bool is_backfill_batch_done = 14;
9300
5.66k
    if (has_is_backfill_batch_done()) {
9301
578
      total_size += 1 + 1;
9302
578
    }
9303
9304
    // optional int64 batch_arg_count = 10 [default = 1];
9305
5.66k
    if (has_batch_arg_count()) {
9306
5.03k
      total_size += 1 +
9307
5.03k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
9308
5.03k
          this->batch_arg_count());
9309
5.03k
    }
9310
9311
5.66k
  }
9312
11.0M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9313
11.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9314
11.0M
  _cached_size_ = cached_size;
9315
11.0M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9316
11.0M
  return total_size;
9317
11.0M
}
9318
9319
0
void PgsqlResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
9320
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlResponsePB)
9321
0
  GOOGLE_DCHECK_NE(&from, this);
9322
0
  const PgsqlResponsePB* source =
9323
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlResponsePB>(
9324
0
          &from);
9325
0
  if (source == NULL) {
9326
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlResponsePB)
9327
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9328
0
  } else {
9329
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlResponsePB)
9330
0
    MergeFrom(*source);
9331
0
  }
9332
0
}
9333
9334
0
void PgsqlResponsePB::MergeFrom(const PgsqlResponsePB& from) {
9335
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlResponsePB)
9336
0
  GOOGLE_DCHECK_NE(&from, this);
9337
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9338
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9339
0
  (void) cached_has_bits;
9340
9341
0
  batch_orders_.MergeFrom(from.batch_orders_);
9342
0
  cached_has_bits = from._has_bits_[0];
9343
0
  if (cached_has_bits & 255u) {
9344
0
    if (cached_has_bits & 0x00000001u) {
9345
0
      set_has_error_message();
9346
0
      error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
9347
0
    }
9348
0
    if (cached_has_bits & 0x00000002u) {
9349
0
      set_has_backfill_spec();
9350
0
      backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
9351
0
    }
9352
0
    if (cached_has_bits & 0x00000004u) {
9353
0
      mutable_paging_state()->::yb::PgsqlPagingStatePB::MergeFrom(from.paging_state());
9354
0
    }
9355
0
    if (cached_has_bits & 0x00000008u) {
9356
0
      mutable_sampling_state()->::yb::PgsqlSamplingStatePB::MergeFrom(from.sampling_state());
9357
0
    }
9358
0
    if (cached_has_bits & 0x00000010u) {
9359
0
      status_ = from.status_;
9360
0
    }
9361
0
    if (cached_has_bits & 0x00000020u) {
9362
0
      rows_data_sidecar_ = from.rows_data_sidecar_;
9363
0
    }
9364
0
    if (cached_has_bits & 0x00000040u) {
9365
0
      pg_error_code_ = from.pg_error_code_;
9366
0
    }
9367
0
    if (cached_has_bits & 0x00000080u) {
9368
0
      rows_affected_count_ = from.rows_affected_count_;
9369
0
    }
9370
0
    _has_bits_[0] |= cached_has_bits;
9371
0
  }
9372
0
  if (cached_has_bits & 3840u) {
9373
0
    if (cached_has_bits & 0x00000100u) {
9374
0
      txn_error_code_ = from.txn_error_code_;
9375
0
    }
9376
0
    if (cached_has_bits & 0x00000200u) {
9377
0
      skipped_ = from.skipped_;
9378
0
    }
9379
0
    if (cached_has_bits & 0x00000400u) {
9380
0
      is_backfill_batch_done_ = from.is_backfill_batch_done_;
9381
0
    }
9382
0
    if (cached_has_bits & 0x00000800u) {
9383
0
      batch_arg_count_ = from.batch_arg_count_;
9384
0
    }
9385
0
    _has_bits_[0] |= cached_has_bits;
9386
0
  }
9387
0
}
9388
9389
0
void PgsqlResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
9390
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlResponsePB)
9391
0
  if (&from == this) return;
9392
0
  Clear();
9393
0
  MergeFrom(from);
9394
0
}
9395
9396
0
void PgsqlResponsePB::CopyFrom(const PgsqlResponsePB& from) {
9397
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlResponsePB)
9398
0
  if (&from == this) return;
9399
0
  Clear();
9400
0
  MergeFrom(from);
9401
0
}
9402
9403
0
bool PgsqlResponsePB::IsInitialized() const {
9404
0
  return true;
9405
0
}
9406
9407
10.0M
void PgsqlResponsePB::Swap(PgsqlResponsePB* other) {
9408
10.0M
  if (other == this) return;
9409
10.0M
  InternalSwap(other);
9410
10.0M
}
9411
13.5M
void PgsqlResponsePB::InternalSwap(PgsqlResponsePB* other) {
9412
13.5M
  using std::swap;
9413
13.5M
  batch_orders_.InternalSwap(&other->batch_orders_);
9414
13.5M
  error_message_.Swap(&other->error_message_);
9415
13.5M
  backfill_spec_.Swap(&other->backfill_spec_);
9416
13.5M
  swap(paging_state_, other->paging_state_);
9417
13.5M
  swap(sampling_state_, other->sampling_state_);
9418
13.5M
  swap(status_, other->status_);
9419
13.5M
  swap(rows_data_sidecar_, other->rows_data_sidecar_);
9420
13.5M
  swap(pg_error_code_, other->pg_error_code_);
9421
13.5M
  swap(rows_affected_count_, other->rows_affected_count_);
9422
13.5M
  swap(txn_error_code_, other->txn_error_code_);
9423
13.5M
  swap(skipped_, other->skipped_);
9424
13.5M
  swap(is_backfill_batch_done_, other->is_backfill_batch_done_);
9425
13.5M
  swap(batch_arg_count_, other->batch_arg_count_);
9426
13.5M
  swap(_has_bits_[0], other->_has_bits_[0]);
9427
13.5M
  _internal_metadata_.Swap(&other->_internal_metadata_);
9428
13.5M
  swap(_cached_size_, other->_cached_size_);
9429
13.5M
}
9430
9431
0
::google::protobuf::Metadata PgsqlResponsePB::GetMetadata() const {
9432
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
9433
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
9434
0
}
9435
9436
9437
// @@protoc_insertion_point(namespace_scope)
9438
}  // namespace yb
9439
9440
// @@protoc_insertion_point(global_scope)