YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/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
28.1k
void InitDefaultsPgsqlBCallPBImpl() {
115
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
116
117
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
118
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
119
#else
120
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
121
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
122
28.1k
  protobuf_yb_2fcommon_2fvalue_2eproto::InitDefaultsQLMapValuePB();
123
28.1k
  {
124
28.1k
    void* ptr = &::yb::_PgsqlBCallPB_default_instance_;
125
28.1k
    new (ptr) ::yb::PgsqlBCallPB();
126
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
127
28.1k
  }
128
28.1k
  {
129
28.1k
    void* ptr = &::yb::_PgsqlConditionPB_default_instance_;
130
28.1k
    new (ptr) ::yb::PgsqlConditionPB();
131
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
132
28.1k
  }
133
28.1k
  {
134
28.1k
    void* ptr = &::yb::_PgsqlExpressionPB_default_instance_;
135
28.1k
    new (ptr) ::yb::PgsqlExpressionPB();
136
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
137
28.1k
  }
138
28.1k
  ::yb::PgsqlBCallPB::InitAsDefaultInstance();
139
28.1k
  ::yb::PgsqlConditionPB::InitAsDefaultInstance();
140
28.1k
  ::yb::PgsqlExpressionPB::InitAsDefaultInstance();
141
28.1k
}
142
143
337M
void InitDefaultsPgsqlBCallPB() {
144
337M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
145
337M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBCallPBImpl);
146
337M
}
147
148
28.1k
void InitDefaultsPgsqlBatchArgumentPBImpl() {
149
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
150
151
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
152
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
153
#else
154
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
155
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
156
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
157
28.1k
  {
158
28.1k
    void* ptr = &::yb::_PgsqlBatchArgumentPB_default_instance_;
159
28.1k
    new (ptr) ::yb::PgsqlBatchArgumentPB();
160
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
161
28.1k
  }
162
28.1k
  ::yb::PgsqlBatchArgumentPB::InitAsDefaultInstance();
163
28.1k
}
164
165
2.85M
void InitDefaultsPgsqlBatchArgumentPB() {
166
2.85M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
167
2.85M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBatchArgumentPBImpl);
168
2.85M
}
169
170
28.1k
void InitDefaultsPgsqlColumnRefsPBImpl() {
171
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
172
173
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
174
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
175
#else
176
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
177
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
178
28.1k
  {
179
28.1k
    void* ptr = &::yb::_PgsqlColumnRefsPB_default_instance_;
180
28.1k
    new (ptr) ::yb::PgsqlColumnRefsPB();
181
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
182
28.1k
  }
183
28.1k
  ::yb::PgsqlColumnRefsPB::InitAsDefaultInstance();
184
28.1k
}
185
186
32.6M
void InitDefaultsPgsqlColumnRefsPB() {
187
32.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
188
32.6M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColumnRefsPBImpl);
189
32.6M
}
190
191
28.1k
void InitDefaultsPgsqlColRefPBImpl() {
192
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
193
194
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
195
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
196
#else
197
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
198
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
199
28.1k
  {
200
28.1k
    void* ptr = &::yb::_PgsqlColRefPB_default_instance_;
201
28.1k
    new (ptr) ::yb::PgsqlColRefPB();
202
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
203
28.1k
  }
204
28.1k
  ::yb::PgsqlColRefPB::InitAsDefaultInstance();
205
28.1k
}
206
207
89.2M
void InitDefaultsPgsqlColRefPB() {
208
89.2M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
209
89.2M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColRefPBImpl);
210
89.2M
}
211
212
28.1k
void InitDefaultsPgsqlColumnValuePBImpl() {
213
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
214
215
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
216
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
217
#else
218
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
219
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
220
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
221
28.1k
  {
222
28.1k
    void* ptr = &::yb::_PgsqlColumnValuePB_default_instance_;
223
28.1k
    new (ptr) ::yb::PgsqlColumnValuePB();
224
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
225
28.1k
  }
226
28.1k
  ::yb::PgsqlColumnValuePB::InitAsDefaultInstance();
227
28.1k
}
228
229
73.9M
void InitDefaultsPgsqlColumnValuePB() {
230
73.9M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
231
73.9M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlColumnValuePBImpl);
232
73.9M
}
233
234
28.1k
void InitDefaultsPgsqlRSColDescPBImpl() {
235
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
236
237
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
238
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
239
#else
240
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
241
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
242
28.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsQLTypePB();
243
28.1k
  {
244
28.1k
    void* ptr = &::yb::_PgsqlRSColDescPB_default_instance_;
245
28.1k
    new (ptr) ::yb::PgsqlRSColDescPB();
246
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
247
28.1k
  }
248
28.1k
  ::yb::PgsqlRSColDescPB::InitAsDefaultInstance();
249
28.1k
}
250
251
56.3k
void InitDefaultsPgsqlRSColDescPB() {
252
56.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
253
56.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlRSColDescPBImpl);
254
56.3k
}
255
256
28.1k
void InitDefaultsPgsqlRSRowDescPBImpl() {
257
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
258
259
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
260
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
261
#else
262
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
263
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
264
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSColDescPB();
265
28.1k
  {
266
28.1k
    void* ptr = &::yb::_PgsqlRSRowDescPB_default_instance_;
267
28.1k
    new (ptr) ::yb::PgsqlRSRowDescPB();
268
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
269
28.1k
  }
270
28.1k
  ::yb::PgsqlRSRowDescPB::InitAsDefaultInstance();
271
28.1k
}
272
273
84.4k
void InitDefaultsPgsqlRSRowDescPB() {
274
84.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
275
84.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlRSRowDescPBImpl);
276
84.4k
}
277
278
28.1k
void InitDefaultsPgsqlPartitionBoundImpl() {
279
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
280
281
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
282
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
283
#else
284
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
285
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
286
28.1k
  {
287
28.1k
    void* ptr = &::yb::_PgsqlPartitionBound_default_instance_;
288
28.1k
    new (ptr) ::yb::PgsqlPartitionBound();
289
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
290
28.1k
  }
291
28.1k
  ::yb::PgsqlPartitionBound::InitAsDefaultInstance();
292
28.1k
}
293
294
2.20M
void InitDefaultsPgsqlPartitionBound() {
295
2.20M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
296
2.20M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlPartitionBoundImpl);
297
2.20M
}
298
299
28.1k
void InitDefaultsPgsqlSamplingStatePBImpl() {
300
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
301
302
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
303
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
304
#else
305
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
306
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
307
28.1k
  {
308
28.1k
    void* ptr = &::yb::_PgsqlSamplingStatePB_default_instance_;
309
28.1k
    new (ptr) ::yb::PgsqlSamplingStatePB();
310
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
311
28.1k
  }
312
28.1k
  ::yb::PgsqlSamplingStatePB::InitAsDefaultInstance();
313
28.1k
}
314
315
86.8k
void InitDefaultsPgsqlSamplingStatePB() {
316
86.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
317
86.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlSamplingStatePBImpl);
318
86.8k
}
319
320
28.1k
void InitDefaultsPgsqlWriteRequestPBImpl() {
321
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
324
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
325
#else
326
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
327
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
328
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
329
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnValuePB();
330
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
331
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
332
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
333
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
334
28.1k
  {
335
28.1k
    void* ptr = &::yb::_PgsqlWriteRequestPB_default_instance_;
336
28.1k
    new (ptr) ::yb::PgsqlWriteRequestPB();
337
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
338
28.1k
  }
339
28.1k
  ::yb::PgsqlWriteRequestPB::InitAsDefaultInstance();
340
28.1k
}
341
342
24.7M
void InitDefaultsPgsqlWriteRequestPB() {
343
24.7M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
344
24.7M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlWriteRequestPBImpl);
345
24.7M
}
346
347
28.1k
void InitDefaultsPgsqlPagingStatePBImpl() {
348
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
349
350
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
351
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
352
#else
353
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
354
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
355
28.1k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsReadHybridTimePB();
356
28.1k
  {
357
28.1k
    void* ptr = &::yb::_PgsqlPagingStatePB_default_instance_;
358
28.1k
    new (ptr) ::yb::PgsqlPagingStatePB();
359
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
360
28.1k
  }
361
28.1k
  ::yb::PgsqlPagingStatePB::InitAsDefaultInstance();
362
28.1k
}
363
364
763k
void InitDefaultsPgsqlPagingStatePB() {
365
763k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
366
763k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlPagingStatePBImpl);
367
763k
}
368
369
28.1k
void InitDefaultsPgsqlBackfillSpecPBImpl() {
370
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
371
372
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
373
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
374
#else
375
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
376
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
377
28.1k
  {
378
28.1k
    void* ptr = &::yb::_PgsqlBackfillSpecPB_default_instance_;
379
28.1k
    new (ptr) ::yb::PgsqlBackfillSpecPB();
380
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
381
28.1k
  }
382
28.1k
  ::yb::PgsqlBackfillSpecPB::InitAsDefaultInstance();
383
28.1k
}
384
385
44.0k
void InitDefaultsPgsqlBackfillSpecPB() {
386
44.0k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
387
44.0k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlBackfillSpecPBImpl);
388
44.0k
}
389
390
28.1k
void InitDefaultsPgsqlReadRequestPBImpl() {
391
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
392
393
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
394
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
395
#else
396
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
397
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
398
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
399
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
400
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
401
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
402
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
403
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPartitionBound();
404
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
405
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
406
28.1k
  {
407
28.1k
    void* ptr = &::yb::_PgsqlReadRequestPB_default_instance_;
408
28.1k
    new (ptr) ::yb::PgsqlReadRequestPB();
409
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
410
28.1k
  }
411
28.1k
  ::yb::PgsqlReadRequestPB::InitAsDefaultInstance();
412
28.1k
}
413
414
13.6M
void InitDefaultsPgsqlReadRequestPB() {
415
13.6M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
416
13.6M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlReadRequestPBImpl);
417
13.6M
}
418
419
28.1k
void InitDefaultsPgsqlResponsePBImpl() {
420
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
421
422
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
423
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
424
#else
425
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
426
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
427
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
428
28.1k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
429
28.1k
  {
430
28.1k
    void* ptr = &::yb::_PgsqlResponsePB_default_instance_;
431
28.1k
    new (ptr) ::yb::PgsqlResponsePB();
432
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
433
28.1k
  }
434
28.1k
  ::yb::PgsqlResponsePB::InitAsDefaultInstance();
435
28.1k
}
436
437
77.3M
void InitDefaultsPgsqlResponsePB() {
438
77.3M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
439
77.3M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPgsqlResponsePBImpl);
440
77.3M
}
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
2.26k
void protobuf_AssignDescriptors() {
797
2.26k
  AddDescriptors();
798
2.26k
  ::google::protobuf::MessageFactory* factory = NULL;
799
2.26k
  AssignDescriptors(
800
2.26k
      "yb/common/pgsql_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory,
801
2.26k
      file_level_metadata, file_level_enum_descriptors, NULL);
802
2.26k
}
803
804
240M
void protobuf_AssignDescriptorsOnce() {
805
240M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
806
240M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
807
240M
}
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
28.1k
void AddDescriptorsImpl() {
816
28.1k
  InitDefaults();
817
28.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
818
28.1k
      "\n\036yb/common/pgsql_protocol.proto\022\002yb\032\026yb"
819
28.1k
      "/common/common.proto\032\034yb/common/common_t"
820
28.1k
      "ypes.proto\032\033yb/common/transaction.proto\032"
821
28.1k
      "\025yb/common/value.proto\"G\n\014PgsqlBCallPB\022\016"
822
28.1k
      "\n\006opcode\030\001 \001(\005\022\'\n\010operands\030\002 \003(\0132\025.yb.Pg"
823
28.1k
      "sqlExpressionPB\"W\n\020PgsqlConditionPB\022\032\n\002o"
824
28.1k
      "p\030\001 \001(\0162\016.yb.QLOperator\022\'\n\010operands\030\002 \003("
825
28.1k
      "\0132\025.yb.PgsqlExpressionPB\"\216\002\n\021PgsqlExpres"
826
28.1k
      "sionPB\022\036\n\005value\030\001 \001(\0132\r.yb.QLValuePBH\000\022\023"
827
28.1k
      "\n\tcolumn_id\030\002 \001(\005H\000\022\021\n\007bind_id\030\003 \001(\005H\000\022\022"
828
28.1k
      "\n\010alias_id\030\004 \001(\005H\000\022\"\n\006bfcall\030\005 \001(\0132\020.yb."
829
28.1k
      "PgsqlBCallPBH\000\022\"\n\006tscall\030\006 \001(\0132\020.yb.Pgsq"
830
28.1k
      "lBCallPBH\000\022\"\n\006bocall\030\007 \001(\0132\020.yb.PgsqlBCa"
831
28.1k
      "llPBH\000\022)\n\tcondition\030\010 \001(\0132\024.yb.PgsqlCond"
832
28.1k
      "itionPBH\000B\006\n\004expr\"\342\001\n\024PgsqlBatchArgument"
833
28.1k
      "PB\022\r\n\005order\030\001 \001(\003\022%\n\006ybctid\030\002 \001(\0132\025.yb.P"
834
28.1k
      "gsqlExpressionPB\022\021\n\thash_code\030\003 \001(\r\022\025\n\rm"
835
28.1k
      "ax_hash_code\030\004 \001(\r\0226\n\027partition_column_v"
836
28.1k
      "alues\030\005 \003(\0132\025.yb.PgsqlExpressionPB\0222\n\023ra"
837
28.1k
      "nge_column_values\030\006 \003(\0132\025.yb.PgsqlExpres"
838
28.1k
      "sionPB\" \n\021PgsqlColumnRefsPB\022\013\n\003ids\030\001 \003(\005"
839
28.1k
      "\"`\n\rPgsqlColRefPB\022\021\n\tcolumn_id\030\001 \001(\005\022\r\n\005"
840
28.1k
      "attno\030\002 \001(\005\022\r\n\005typid\030\003 \001(\005\022\016\n\006typmod\030\004 \001"
841
28.1k
      "(\005\022\016\n\006collid\030\005 \001(\005\"L\n\022PgsqlColumnValuePB"
842
28.1k
      "\022\021\n\tcolumn_id\030\001 \001(\005\022#\n\004expr\030\002 \001(\0132\025.yb.P"
843
28.1k
      "gsqlExpressionPB\"\?\n\020PgsqlRSColDescPB\022\014\n\004"
844
28.1k
      "name\030\001 \001(\t\022\035\n\007ql_type\030\002 \001(\0132\014.yb.QLTypeP"
845
28.1k
      "B\"=\n\020PgsqlRSRowDescPB\022)\n\013rscol_descs\030\001 \003"
846
28.1k
      "(\0132\024.yb.PgsqlRSColDescPB\"8\n\023PgsqlPartiti"
847
28.1k
      "onBound\022\013\n\003key\030\001 \001(\014\022\024\n\014is_inclusive\030\002 \001"
848
28.1k
      "(\010\"\207\001\n\024PgsqlSamplingStatePB\022\020\n\010targrows\030"
849
28.1k
      "\001 \001(\005\022\017\n\007numrows\030\002 \001(\005\022\022\n\nsamplerows\030\003 \001"
850
28.1k
      "(\001\022\022\n\nrowstoskip\030\004 \001(\001\022\020\n\010rstate_w\030\005 \001(\001"
851
28.1k
      "\022\022\n\nrand_state\030\006 \001(\004\"\326\007\n\023PgsqlWriteReque"
852
28.1k
      "stPB\022\034\n\006client\030\001 \001(\0162\014.yb.QLClient\022\017\n\007st"
853
28.1k
      "mt_id\030\002 \001(\004\0228\n\tstmt_type\030\003 \001(\0162%.yb.Pgsq"
854
28.1k
      "lWriteRequestPB.PgsqlStmtType\022\020\n\010table_i"
855
28.1k
      "d\030\004 \001(\014\022\026\n\016schema_version\030\005 \001(\r\022\021\n\thash_"
856
28.1k
      "code\030\006 \001(\r\0226\n\027partition_column_values\030\007 "
857
28.1k
      "\003(\0132\025.yb.PgsqlExpressionPB\0222\n\023range_colu"
858
28.1k
      "mn_values\030\010 \003(\0132\025.yb.PgsqlExpressionPB\0222"
859
28.1k
      "\n\023ybctid_column_value\030\t \001(\0132\025.yb.PgsqlEx"
860
28.1k
      "pressionPB\022-\n\rcolumn_values\030\n \003(\0132\026.yb.P"
861
28.1k
      "gsqlColumnValuePB\0221\n\017batch_arguments\030\022 \003"
862
28.1k
      "(\0132\030.yb.PgsqlBatchArgumentPB\0221\n\021column_n"
863
28.1k
      "ew_values\030\013 \003(\0132\026.yb.PgsqlColumnValuePB\022"
864
28.1k
      "(\n\nrsrow_desc\030\014 \001(\0132\024.yb.PgsqlRSRowDescP"
865
28.1k
      "B\022&\n\007targets\030\r \003(\0132\025.yb.PgsqlExpressionP"
866
28.1k
      "B\022)\n\nwhere_expr\030\016 \001(\0132\025.yb.PgsqlExpressi"
867
28.1k
      "onPB\022*\n\013column_refs\030\017 \001(\0132\025.yb.PgsqlColu"
868
28.1k
      "mnRefsPB\022\034\n\024ysql_catalog_version\030\020 \001(\004\022%"
869
28.1k
      "\n\026is_ysql_catalog_change\030\021 \001(\010:\005false\022\032\n"
870
28.1k
      "\013is_backfill\030\023 \001(\010:\005false\022\'\n\030is_delete_p"
871
28.1k
      "ersist_needed\030\024 \001(\010:\005false\022#\n\010col_refs\030\025"
872
28.1k
      " \003(\0132\021.yb.PgsqlColRefPB\022\025\n\rpartition_key"
873
28.1k
      "\030\026 \001(\014\"u\n\rPgsqlStmtType\022\020\n\014PGSQL_INSERT\020"
874
28.1k
      "\001\022\020\n\014PGSQL_UPDATE\020\002\022\020\n\014PGSQL_DELETE\020\003\022\020\n"
875
28.1k
      "\014PGSQL_UPSERT\020\004\022\034\n\030PGSQL_TRUNCATE_COLOCA"
876
28.1k
      "TED\020\005\"\274\001\n\022PgsqlPagingStatePB\022\020\n\010table_id"
877
28.1k
      "\030\001 \001(\014\022\032\n\022next_partition_key\030\002 \001(\014\022\024\n\014ne"
878
28.1k
      "xt_row_key\030\003 \001(\014\022\033\n\023total_num_rows_read\030"
879
28.1k
      "\004 \001(\004\022\034\n\024next_partition_index\030\005 \001(\004\022\'\n\tr"
880
28.1k
      "ead_time\030\006 \001(\0132\024.yb.ReadHybridTimePB\"P\n\023"
881
28.1k
      "PgsqlBackfillSpecPB\022\021\n\005limit\030\001 \001(\003:\002-1\022\020"
882
28.1k
      "\n\005count\030\002 \001(\003:\0010\022\024\n\014next_row_key\030\003 \001(\014\"\371"
883
28.1k
      "\t\n\022PgsqlReadRequestPB\022\034\n\006client\030\001 \001(\0162\014."
884
28.1k
      "yb.QLClient\022\017\n\007stmt_id\030\002 \001(\004\022\020\n\010table_id"
885
28.1k
      "\030\023 \001(\014\022\026\n\016schema_version\030\003 \001(\r\022\021\n\thash_c"
886
28.1k
      "ode\030\004 \001(\r\0222\n\023ybctid_column_value\030\024 \001(\0132\025"
887
28.1k
      ".yb.PgsqlExpressionPB\0226\n\027partition_colum"
888
28.1k
      "n_values\030\005 \003(\0132\025.yb.PgsqlExpressionPB\0222\n"
889
28.1k
      "\023range_column_values\030\022 \003(\0132\025.yb.PgsqlExp"
890
28.1k
      "ressionPB\022-\n\rindex_request\030\025 \001(\0132\026.yb.Pg"
891
28.1k
      "sqlReadRequestPB\022)\n\nwhere_expr\030\010 \001(\0132\025.y"
892
28.1k
      "b.PgsqlExpressionPB\022-\n\016condition_expr\030\026 "
893
28.1k
      "\001(\0132\025.yb.PgsqlExpressionPB\0221\n\017batch_argu"
894
28.1k
      "ments\030\030 \003(\0132\030.yb.PgsqlBatchArgumentPB\022(\n"
895
28.1k
      "\nrsrow_desc\030\006 \001(\0132\024.yb.PgsqlRSRowDescPB\022"
896
28.1k
      "&\n\007targets\030\007 \003(\0132\025.yb.PgsqlExpressionPB\022"
897
28.1k
      "*\n\013column_refs\030\t \001(\0132\025.yb.PgsqlColumnRef"
898
28.1k
      "sPB\022\035\n\017is_forward_scan\030\n \001(\010:\004true\022\027\n\010di"
899
28.1k
      "stinct\030\013 \001(\010:\005false\022\033\n\014is_aggregate\030\014 \001("
900
28.1k
      "\010:\005false\022\r\n\005limit\030\r \001(\004\022,\n\014paging_state\030"
901
28.1k
      "\016 \001(\0132\026.yb.PgsqlPagingStatePB\022\"\n\023return_"
902
28.1k
      "paging_state\030\017 \001(\010:\005false\022\025\n\rmax_hash_co"
903
28.1k
      "de\030\021 \001(\r\022\034\n\024ysql_catalog_version\030\020 \001(\004\022&"
904
28.1k
      "\n\rrow_mark_type\030\027 \001(\0162\017.yb.RowMarkType\022/"
905
28.1k
      "\n\013wait_policy\030  \001(\0162\016.yb.WaitPolicy:\nWAI"
906
28.1k
      "T_ERROR\022,\n\013lower_bound\030\033 \001(\0132\027.yb.PgsqlP"
907
28.1k
      "artitionBound\022,\n\013upper_bound\030\034 \001(\0132\027.yb."
908
28.1k
      "PgsqlPartitionBound\022$\n\034DEPRECATED_max_pa"
909
28.1k
      "rtition_key\030\031 \001(\014\022\036\n\017is_for_backfill\030\035 \001"
910
28.1k
      "(\010:\005false\0220\n\016sampling_state\030\036 \001(\0132\030.yb.P"
911
28.1k
      "gsqlSamplingStatePB\022\025\n\rbackfill_spec\030\037 \001"
912
28.1k
      "(\014\022,\n\rwhere_clauses\030! \003(\0132\025.yb.PgsqlExpr"
913
28.1k
      "essionPB\022#\n\010col_refs\030\" \003(\0132\021.yb.PgsqlCol"
914
28.1k
      "RefPB\022\025\n\rpartition_key\030# \001(\014J\004\010\032\020\033\"\213\005\n\017P"
915
28.1k
      "gsqlResponsePB\022B\n\006status\030\001 \001(\0162!.yb.Pgsq"
916
28.1k
      "lResponsePB.RequestStatus:\017PGSQL_STATUS_"
917
28.1k
      "OK\022\017\n\007skipped\030\006 \001(\010\022\025\n\rerror_message\030\002 \001"
918
28.1k
      "(\t\022\031\n\021rows_data_sidecar\030\004 \001(\005\022,\n\014paging_"
919
28.1k
      "state\030\005 \001(\0132\026.yb.PgsqlPagingStatePB\022\032\n\017b"
920
28.1k
      "atch_arg_count\030\n \001(\003:\0011\022\024\n\014batch_orders\030"
921
28.1k
      "\014 \003(\003\022\033\n\023rows_affected_count\030\007 \001(\005\022\025\n\rpg"
922
28.1k
      "_error_code\030\010 \001(\004\022\026\n\016txn_error_code\030\t \001("
923
28.1k
      "\r\0220\n\016sampling_state\030\013 \001(\0132\030.yb.PgsqlSamp"
924
28.1k
      "lingStatePB\022\025\n\rbackfill_spec\030\r \001(\014\022\036\n\026is"
925
28.1k
      "_backfill_batch_done\030\016 \001(\010\"\333\001\n\rRequestSt"
926
28.1k
      "atus\022\023\n\017PGSQL_STATUS_OK\020\000\022(\n$PGSQL_STATU"
927
28.1k
      "S_SCHEMA_VERSION_MISMATCH\020\001\022\036\n\032PGSQL_STA"
928
28.1k
      "TUS_RUNTIME_ERROR\020\002\022\034\n\030PGSQL_STATUS_USAG"
929
28.1k
      "E_ERROR\020\003\022\'\n#PGSQL_STATUS_RESTART_REQUIR"
930
28.1k
      "ED_ERROR\020\004\022$\n PGSQL_STATUS_DUPLICATE_KEY"
931
28.1k
      "_ERROR\020\005B\010\n\006org.yb"
932
28.1k
  };
933
28.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
934
28.1k
      descriptor, 4538);
935
28.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
936
28.1k
    "yb/common/pgsql_protocol.proto", &protobuf_RegisterTypes);
937
28.1k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
938
28.1k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
939
28.1k
  ::protobuf_yb_2fcommon_2ftransaction_2eproto::AddDescriptors();
940
28.1k
  ::protobuf_yb_2fcommon_2fvalue_2eproto::AddDescriptors();
941
28.1k
}
942
943
84.1k
void AddDescriptors() {
944
84.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
945
84.1k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
946
84.1k
}
947
// Force AddDescriptors() to be called at dynamic initialization time.
948
struct StaticDescriptorInitializer {
949
28.1k
  StaticDescriptorInitializer() {
950
28.1k
    AddDescriptors();
951
28.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
37.3M
bool PgsqlWriteRequestPB_PgsqlStmtType_IsValid(int value) {
960
37.3M
  switch (value) {
961
20.1M
    case 1:
962
23.1M
    case 2:
963
27.3M
    case 3:
964
37.3M
    case 4:
965
37.3M
    case 5:
966
37.3M
      return true;
967
0
    default:
968
0
      return false;
969
37.3M
  }
970
37.3M
}
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
474
const ::google::protobuf::EnumDescriptor* PgsqlResponsePB_RequestStatus_descriptor() {
983
474
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
984
474
  return protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_enum_descriptors[1];
985
474
}
986
52.3M
bool PgsqlResponsePB_RequestStatus_IsValid(int value) {
987
52.3M
  switch (value) {
988
51.3M
    case 0:
989
51.3M
    case 1:
990
51.3M
    case 2:
991
51.3M
    case 3:
992
52.3M
    case 4:
993
52.3M
    case 5:
994
52.3M
      return true;
995
0
    default:
996
0
      return false;
997
52.3M
  }
998
52.3M
}
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
28.1k
void PgsqlBCallPB::InitAsDefaultInstance() {
1015
28.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
136k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1023
136k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1024
108k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1025
108k
  }
1026
136k
  SharedCtor();
1027
  // @@protoc_insertion_point(constructor:yb.PgsqlBCallPB)
1028
136k
}
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
136k
void PgsqlBCallPB::SharedCtor() {
1041
136k
  _cached_size_ = 0;
1042
136k
  opcode_ = 0;
1043
136k
}
1044
1045
108k
PgsqlBCallPB::~PgsqlBCallPB() {
1046
  // @@protoc_insertion_point(destructor:yb.PgsqlBCallPB)
1047
108k
  SharedDtor();
1048
108k
}
1049
1050
108k
void PgsqlBCallPB::SharedDtor() {
1051
108k
}
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
66.0k
    ::google::protobuf::io::CodedInputStream* input) {
1090
132k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1091
66.0k
  ::google::protobuf::uint32 tag;
1092
  // @@protoc_insertion_point(parse_start:yb.PgsqlBCallPB)
1093
198k
  for (;;) {
1094
198k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1095
198k
    tag = p.first;
1096
198k
    if (!p.second) 
goto handle_unusual66.0k
;
1097
132k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1098
      // optional int32 opcode = 1;
1099
66.0k
      case 1: {
1100
66.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1101
66.0k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1102
66.0k
          set_has_opcode();
1103
66.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1104
66.0k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1105
66.0k
                 input, &opcode_)));
1106
18.4E
        } else {
1107
18.4E
          goto handle_unusual;
1108
18.4E
        }
1109
66.0k
        break;
1110
66.0k
      }
1111
1112
      // repeated .yb.PgsqlExpressionPB operands = 2;
1113
66.0k
      case 2: {
1114
66.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1115
66.0k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1116
66.0k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
1117
18.4E
        } else {
1118
18.4E
          goto handle_unusual;
1119
18.4E
        }
1120
66.0k
        break;
1121
66.0k
      }
1122
1123
66.0k
      default: {
1124
66.0k
      handle_unusual:
1125
66.0k
        if (tag == 0) {
1126
66.0k
          goto success;
1127
66.0k
        }
1128
4
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1129
4
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1130
4
        break;
1131
4
      }
1132
132k
    }
1133
132k
  }
1134
66.0k
success:
1135
  // @@protoc_insertion_point(parse_success:yb.PgsqlBCallPB)
1136
66.0k
  return true;
1137
0
failure:
1138
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBCallPB)
1139
0
  return false;
1140
66.0k
#undef DO_
1141
66.0k
}
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
66.0k
    bool deterministic, ::google::protobuf::uint8* target) const {
1171
66.0k
  (void)deterministic; // Unused
1172
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBCallPB)
1173
66.0k
  ::google::protobuf::uint32 cached_has_bits = 0;
1174
66.0k
  (void) cached_has_bits;
1175
1176
66.0k
  cached_has_bits = _has_bits_[0];
1177
  // optional int32 opcode = 1;
1178
66.0k
  if (
cached_has_bits & 0x00000001u66.0k
) {
1179
66.0k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->opcode(), target);
1180
66.0k
  }
1181
1182
  // repeated .yb.PgsqlExpressionPB operands = 2;
1183
66.0k
  for (unsigned int i = 0,
1184
132k
      n = static_cast<unsigned int>(this->operands_size()); i < n; 
i++66.0k
) {
1185
66.0k
    target = ::google::protobuf::internal::WireFormatLite::
1186
66.0k
      InternalWriteMessageToArray(
1187
66.0k
        2, this->operands(static_cast<int>(i)), deterministic, target);
1188
66.0k
  }
1189
1190
66.0k
  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
66.0k
  return target;
1196
66.0k
}
1197
1198
132k
size_t PgsqlBCallPB::ByteSizeLong() const {
1199
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBCallPB)
1200
132k
  size_t total_size = 0;
1201
1202
132k
  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
132k
  {
1209
132k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
1210
132k
    total_size += 1UL * count;
1211
264k
    for (unsigned int i = 0; i < count; 
i++132k
) {
1212
132k
      total_size +=
1213
132k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1214
132k
          this->operands(static_cast<int>(i)));
1215
132k
    }
1216
132k
  }
1217
1218
  // optional int32 opcode = 1;
1219
132k
  if (
has_opcode()132k
) {
1220
132k
    total_size += 1 +
1221
132k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
1222
132k
        this->opcode());
1223
132k
  }
1224
1225
132k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1226
132k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1227
132k
  _cached_size_ = cached_size;
1228
132k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1229
132k
  return total_size;
1230
132k
}
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
19.5k
void PgsqlBCallPB::MergeFrom(const PgsqlBCallPB& from) {
1248
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlBCallPB)
1249
19.5k
  GOOGLE_DCHECK_NE(&from, this);
1250
19.5k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1251
19.5k
  ::google::protobuf::uint32 cached_has_bits = 0;
1252
19.5k
  (void) cached_has_bits;
1253
1254
19.5k
  operands_.MergeFrom(from.operands_);
1255
19.5k
  if (from.has_opcode()) {
1256
19.4k
    set_opcode(from.opcode());
1257
19.4k
  }
1258
19.5k
}
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
66.0k
::google::protobuf::Metadata PgsqlBCallPB::GetMetadata() const {
1292
66.0k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1293
66.0k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1294
66.0k
}
1295
1296
1297
// ===================================================================
1298
1299
28.1k
void PgsqlConditionPB::InitAsDefaultInstance() {
1300
28.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
5.73M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1308
5.73M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1309
5.70M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1310
5.70M
  }
1311
5.73M
  SharedCtor();
1312
  // @@protoc_insertion_point(constructor:yb.PgsqlConditionPB)
1313
5.73M
}
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
5.73M
void PgsqlConditionPB::SharedCtor() {
1326
5.73M
  _cached_size_ = 0;
1327
5.73M
  op_ = 0;
1328
5.73M
}
1329
1330
5.70M
PgsqlConditionPB::~PgsqlConditionPB() {
1331
  // @@protoc_insertion_point(destructor:yb.PgsqlConditionPB)
1332
5.70M
  SharedDtor();
1333
5.70M
}
1334
1335
5.70M
void PgsqlConditionPB::SharedDtor() {
1336
5.70M
}
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
35.7k
    ::google::protobuf::io::CodedInputStream* input) {
1375
94.2k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1376
35.7k
  ::google::protobuf::uint32 tag;
1377
  // @@protoc_insertion_point(parse_start:yb.PgsqlConditionPB)
1378
129k
  for (;;) {
1379
129k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1380
129k
    tag = p.first;
1381
129k
    if (!p.second) 
goto handle_unusual35.7k
;
1382
94.2k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1383
      // optional .yb.QLOperator op = 1;
1384
35.7k
      case 1: {
1385
35.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1386
35.7k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1387
35.7k
          int value;
1388
35.7k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1389
35.7k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1390
35.7k
                 input, &value)));
1391
35.7k
          if (::yb::QLOperator_IsValid(value)) {
1392
35.7k
            set_op(static_cast< ::yb::QLOperator >(value));
1393
35.7k
          } else {
1394
0
            mutable_unknown_fields()->AddVarint(
1395
0
                1, static_cast< ::google::protobuf::uint64>(value));
1396
0
          }
1397
35.7k
        } else {
1398
0
          goto handle_unusual;
1399
0
        }
1400
35.7k
        break;
1401
35.7k
      }
1402
1403
      // repeated .yb.PgsqlExpressionPB operands = 2;
1404
58.4k
      case 2: {
1405
58.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1406
58.4k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1407
58.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_operands()));
1408
58.4k
        } else {
1409
0
          goto handle_unusual;
1410
0
        }
1411
58.4k
        break;
1412
58.4k
      }
1413
1414
58.4k
      default: {
1415
35.7k
      handle_unusual:
1416
35.7k
        if (tag == 0) {
1417
35.7k
          goto success;
1418
35.7k
        }
1419
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1420
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1421
0
        break;
1422
0
      }
1423
94.2k
    }
1424
94.2k
  }
1425
35.7k
success:
1426
  // @@protoc_insertion_point(parse_success:yb.PgsqlConditionPB)
1427
35.7k
  return true;
1428
0
failure:
1429
  // @@protoc_insertion_point(parse_failure:yb.PgsqlConditionPB)
1430
0
  return false;
1431
35.7k
#undef DO_
1432
35.7k
}
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
35.7k
    bool deterministic, ::google::protobuf::uint8* target) const {
1463
35.7k
  (void)deterministic; // Unused
1464
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlConditionPB)
1465
35.7k
  ::google::protobuf::uint32 cached_has_bits = 0;
1466
35.7k
  (void) cached_has_bits;
1467
1468
35.7k
  cached_has_bits = _has_bits_[0];
1469
  // optional .yb.QLOperator op = 1;
1470
35.7k
  if (cached_has_bits & 0x00000001u) {
1471
35.7k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1472
35.7k
      1, this->op(), target);
1473
35.7k
  }
1474
1475
  // repeated .yb.PgsqlExpressionPB operands = 2;
1476
35.7k
  for (unsigned int i = 0,
1477
94.2k
      n = static_cast<unsigned int>(this->operands_size()); i < n; 
i++58.4k
) {
1478
58.4k
    target = ::google::protobuf::internal::WireFormatLite::
1479
58.4k
      InternalWriteMessageToArray(
1480
58.4k
        2, this->operands(static_cast<int>(i)), deterministic, target);
1481
58.4k
  }
1482
1483
35.7k
  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
35.7k
  return target;
1489
35.7k
}
1490
1491
71.4k
size_t PgsqlConditionPB::ByteSizeLong() const {
1492
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlConditionPB)
1493
71.4k
  size_t total_size = 0;
1494
1495
71.4k
  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
71.4k
  {
1502
71.4k
    unsigned int count = static_cast<unsigned int>(this->operands_size());
1503
71.4k
    total_size += 1UL * count;
1504
188k
    for (unsigned int i = 0; i < count; 
i++116k
) {
1505
116k
      total_size +=
1506
116k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1507
116k
          this->operands(static_cast<int>(i)));
1508
116k
    }
1509
71.4k
  }
1510
1511
  // optional .yb.QLOperator op = 1;
1512
71.4k
  if (has_op()) {
1513
71.4k
    total_size += 1 +
1514
71.4k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->op());
1515
71.4k
  }
1516
1517
71.4k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1518
71.4k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1519
71.4k
  _cached_size_ = cached_size;
1520
71.4k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1521
71.4k
  return total_size;
1522
71.4k
}
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
5.45M
void PgsqlConditionPB::MergeFrom(const PgsqlConditionPB& from) {
1540
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlConditionPB)
1541
5.45M
  GOOGLE_DCHECK_NE(&from, this);
1542
5.45M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1543
5.45M
  ::google::protobuf::uint32 cached_has_bits = 0;
1544
5.45M
  (void) cached_has_bits;
1545
1546
5.45M
  operands_.MergeFrom(from.operands_);
1547
5.45M
  if (
from.has_op()5.45M
) {
1548
5.45M
    set_op(from.op());
1549
5.45M
  }
1550
5.45M
}
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
35.7k
::google::protobuf::Metadata PgsqlConditionPB::GetMetadata() const {
1584
35.7k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1585
35.7k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1586
35.7k
}
1587
1588
1589
// ===================================================================
1590
1591
28.1k
void PgsqlExpressionPB::InitAsDefaultInstance() {
1592
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.value_ = const_cast< ::yb::QLValuePB*>(
1593
28.1k
      ::yb::QLValuePB::internal_default_instance());
1594
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.column_id_ = 0;
1595
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bind_id_ = 0;
1596
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.alias_id_ = 0;
1597
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bfcall_ = const_cast< ::yb::PgsqlBCallPB*>(
1598
28.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1599
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.tscall_ = const_cast< ::yb::PgsqlBCallPB*>(
1600
28.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1601
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.bocall_ = const_cast< ::yb::PgsqlBCallPB*>(
1602
28.1k
      ::yb::PgsqlBCallPB::internal_default_instance());
1603
28.1k
  ::yb::_PgsqlExpressionPB_default_instance_.condition_ = const_cast< ::yb::PgsqlConditionPB*>(
1604
28.1k
      ::yb::PgsqlConditionPB::internal_default_instance());
1605
28.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
331M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1695
331M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1696
331M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBCallPB();
1697
331M
  }
1698
331M
  SharedCtor();
1699
  // @@protoc_insertion_point(constructor:yb.PgsqlExpressionPB)
1700
331M
}
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
331M
void PgsqlExpressionPB::SharedCtor() {
1749
331M
  _cached_size_ = 0;
1750
331M
  clear_has_expr();
1751
331M
}
1752
1753
331M
PgsqlExpressionPB::~PgsqlExpressionPB() {
1754
  // @@protoc_insertion_point(destructor:yb.PgsqlExpressionPB)
1755
331M
  SharedDtor();
1756
331M
}
1757
1758
331M
void PgsqlExpressionPB::SharedDtor() {
1759
331M
  if (has_expr()) {
1760
323M
    clear_expr();
1761
323M
  }
1762
331M
}
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
666M
void PgsqlExpressionPB::clear_expr() {
1788
// @@protoc_insertion_point(one_of_clear_start:yb.PgsqlExpressionPB)
1789
666M
  switch (expr_case()) {
1790
228M
    case kValue: {
1791
228M
      delete expr_.value_;
1792
228M
      break;
1793
0
    }
1794
94.6M
    case kColumnId: {
1795
      // No need to clear
1796
94.6M
      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
108k
    case kTscall: {
1811
108k
      delete expr_.tscall_;
1812
108k
      break;
1813
0
    }
1814
0
    case kBocall: {
1815
0
      delete expr_.bocall_;
1816
0
      break;
1817
0
    }
1818
5.69M
    case kCondition: {
1819
5.69M
      delete expr_.condition_;
1820
5.69M
      break;
1821
0
    }
1822
337M
    case EXPR_NOT_SET: {
1823
337M
      break;
1824
0
    }
1825
666M
  }
1826
666M
  _oneof_case_[0] = EXPR_NOT_SET;
1827
666M
}
1828
1829
1830
14.2M
void PgsqlExpressionPB::Clear() {
1831
// @@protoc_insertion_point(message_clear_start:yb.PgsqlExpressionPB)
1832
14.2M
  ::google::protobuf::uint32 cached_has_bits = 0;
1833
  // Prevent compiler warnings about cached_has_bits being unused
1834
14.2M
  (void) cached_has_bits;
1835
1836
14.2M
  clear_expr();
1837
14.2M
  _has_bits_.Clear();
1838
14.2M
  _internal_metadata_.Clear();
1839
14.2M
}
1840
1841
bool PgsqlExpressionPB::MergePartialFromCodedStream(
1842
112M
    ::google::protobuf::io::CodedInputStream* input) {
1843
112M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1844
112M
  ::google::protobuf::uint32 tag;
1845
  // @@protoc_insertion_point(parse_start:yb.PgsqlExpressionPB)
1846
224M
  for (;;) {
1847
224M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1848
224M
    tag = p.first;
1849
224M
    if (!p.second) 
goto handle_unusual112M
;
1850
112M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1851
      // optional .yb.QLValuePB value = 1;
1852
53.7M
      case 1: {
1853
53.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1854
53.7M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1855
53.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1856
53.7M
               input, mutable_value()));
1857
18.4E
        } else {
1858
18.4E
          goto handle_unusual;
1859
18.4E
        }
1860
53.7M
        break;
1861
53.7M
      }
1862
1863
      // optional int32 column_id = 2;
1864
58.5M
      case 2: {
1865
58.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1866
58.5M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1867
58.5M
          clear_expr();
1868
58.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1869
58.5M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1870
58.5M
                 input, &expr_.column_id_)));
1871
58.5M
          set_has_column_id();
1872
58.5M
        } else {
1873
110
          goto handle_unusual;
1874
110
        }
1875
58.5M
        break;
1876
58.5M
      }
1877
1878
      // optional int32 bind_id = 3;
1879
58.5M
      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
66.1k
      case 6: {
1922
66.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1923
66.1k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1924
66.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1925
66.1k
               input, mutable_tscall()));
1926
66.1k
        } else {
1927
0
          goto handle_unusual;
1928
0
        }
1929
66.1k
        break;
1930
66.1k
      }
1931
1932
      // optional .yb.PgsqlBCallPB bocall = 7;
1933
66.1k
      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
35.7k
      case 8: {
1946
35.7k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1947
35.7k
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
1948
35.7k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1949
35.7k
               input, mutable_condition()));
1950
35.7k
        } else {
1951
0
          goto handle_unusual;
1952
0
        }
1953
35.7k
        break;
1954
35.7k
      }
1955
1956
35.7k
      default: {
1957
112M
      handle_unusual:
1958
112M
        if (tag == 0) {
1959
112M
          goto success;
1960
112M
        }
1961
452
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1962
452
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1963
452
        break;
1964
452
      }
1965
112M
    }
1966
112M
  }
1967
112M
success:
1968
  // @@protoc_insertion_point(parse_success:yb.PgsqlExpressionPB)
1969
112M
  return true;
1970
0
failure:
1971
  // @@protoc_insertion_point(parse_failure:yb.PgsqlExpressionPB)
1972
0
  return false;
1973
112M
#undef DO_
1974
112M
}
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
112M
    bool deterministic, ::google::protobuf::uint8* target) const {
2023
112M
  (void)deterministic; // Unused
2024
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlExpressionPB)
2025
112M
  ::google::protobuf::uint32 cached_has_bits = 0;
2026
112M
  (void) cached_has_bits;
2027
2028
112M
  switch (expr_case()) {
2029
53.7M
    case kValue:
2030
53.7M
      target = ::google::protobuf::internal::WireFormatLite::
2031
53.7M
        InternalWriteMessageToArray(
2032
53.7M
          1, *expr_.value_, deterministic, target);
2033
53.7M
      break;
2034
58.5M
    case kColumnId:
2035
58.5M
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->column_id(), target);
2036
58.5M
      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
66.0k
    case kTscall:
2049
66.0k
      target = ::google::protobuf::internal::WireFormatLite::
2050
66.0k
        InternalWriteMessageToArray(
2051
66.0k
          6, *expr_.tscall_, deterministic, target);
2052
66.0k
      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
35.7k
    case kCondition:
2059
35.7k
      target = ::google::protobuf::internal::WireFormatLite::
2060
35.7k
        InternalWriteMessageToArray(
2061
35.7k
          8, *expr_.condition_, deterministic, target);
2062
35.7k
      break;
2063
0
    default: ;
2064
112M
  }
2065
112M
  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
112M
  return target;
2071
112M
}
2072
2073
864M
size_t PgsqlExpressionPB::ByteSizeLong() const {
2074
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlExpressionPB)
2075
864M
  size_t total_size = 0;
2076
2077
864M
  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
864M
  switch (expr_case()) {
2083
    // optional .yb.QLValuePB value = 1;
2084
747M
    case kValue: {
2085
747M
      total_size += 1 +
2086
747M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2087
747M
          *expr_.value_);
2088
747M
      break;
2089
0
    }
2090
    // optional int32 column_id = 2;
2091
117M
    case kColumnId: {
2092
117M
      total_size += 1 +
2093
117M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2094
117M
          this->column_id());
2095
117M
      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
132k
    case kTscall: {
2120
132k
      total_size += 1 +
2121
132k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2122
132k
          *expr_.tscall_);
2123
132k
      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
71.4k
    case kCondition: {
2134
71.4k
      total_size += 1 +
2135
71.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2136
71.4k
          *expr_.condition_);
2137
71.4k
      break;
2138
0
    }
2139
0
    case EXPR_NOT_SET: {
2140
0
      break;
2141
0
    }
2142
864M
  }
2143
864M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2144
864M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2145
864M
  _cached_size_ = cached_size;
2146
864M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2147
864M
  return total_size;
2148
864M
}
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
102M
void PgsqlExpressionPB::MergeFrom(const PgsqlExpressionPB& from) {
2166
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlExpressionPB)
2167
102M
  GOOGLE_DCHECK_NE(&from, this);
2168
102M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2169
102M
  ::google::protobuf::uint32 cached_has_bits = 0;
2170
102M
  (void) cached_has_bits;
2171
2172
102M
  switch (from.expr_case()) {
2173
84.5M
    case kValue: {
2174
84.5M
      mutable_value()->::yb::QLValuePB::MergeFrom(from.value());
2175
84.5M
      break;
2176
0
    }
2177
12.6M
    case kColumnId: {
2178
12.6M
      set_column_id(from.column_id());
2179
12.6M
      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
19.4k
    case kTscall: {
2194
19.4k
      mutable_tscall()->::yb::PgsqlBCallPB::MergeFrom(from.tscall());
2195
19.4k
      break;
2196
0
    }
2197
0
    case kBocall: {
2198
0
      mutable_bocall()->::yb::PgsqlBCallPB::MergeFrom(from.bocall());
2199
0
      break;
2200
0
    }
2201
5.45M
    case kCondition: {
2202
5.45M
      mutable_condition()->::yb::PgsqlConditionPB::MergeFrom(from.condition());
2203
5.45M
      break;
2204
0
    }
2205
0
    case EXPR_NOT_SET: {
2206
0
      break;
2207
0
    }
2208
102M
  }
2209
102M
}
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
2.92M
void PgsqlExpressionPB::CopyFrom(const PgsqlExpressionPB& from) {
2219
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlExpressionPB)
2220
2.92M
  if (&from == this) 
return0
;
2221
2.92M
  Clear();
2222
2.92M
  MergeFrom(from);
2223
2.92M
}
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
112M
::google::protobuf::Metadata PgsqlExpressionPB::GetMetadata() const {
2243
112M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2244
112M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2245
112M
}
2246
2247
2248
// ===================================================================
2249
2250
28.1k
void PgsqlBatchArgumentPB::InitAsDefaultInstance() {
2251
28.1k
  ::yb::_PgsqlBatchArgumentPB_default_instance_._instance.get_mutable()->ybctid_ = const_cast< ::yb::PgsqlExpressionPB*>(
2252
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
2253
28.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
2.79M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2265
2.79M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2266
2.76M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBatchArgumentPB();
2267
2.76M
  }
2268
2.79M
  SharedCtor();
2269
  // @@protoc_insertion_point(constructor:yb.PgsqlBatchArgumentPB)
2270
2.79M
}
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
2.79M
void PgsqlBatchArgumentPB::SharedCtor() {
2291
2.79M
  _cached_size_ = 0;
2292
2.79M
  ::memset(&ybctid_, 0, static_cast<size_t>(
2293
2.79M
      reinterpret_cast<char*>(&max_hash_code_) -
2294
2.79M
      reinterpret_cast<char*>(&ybctid_)) + sizeof(max_hash_code_));
2295
2.79M
}
2296
2297
2.76M
PgsqlBatchArgumentPB::~PgsqlBatchArgumentPB() {
2298
  // @@protoc_insertion_point(destructor:yb.PgsqlBatchArgumentPB)
2299
2.76M
  SharedDtor();
2300
2.76M
}
2301
2302
2.76M
void PgsqlBatchArgumentPB::SharedDtor() {
2303
2.76M
  if (this != internal_default_instance()) 
delete ybctid_2.76M
;
2304
2.76M
}
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
1.16M
void PgsqlBatchArgumentPB::Clear() {
2330
// @@protoc_insertion_point(message_clear_start:yb.PgsqlBatchArgumentPB)
2331
1.16M
  ::google::protobuf::uint32 cached_has_bits = 0;
2332
  // Prevent compiler warnings about cached_has_bits being unused
2333
1.16M
  (void) cached_has_bits;
2334
2335
1.16M
  partition_column_values_.Clear();
2336
1.16M
  range_column_values_.Clear();
2337
1.16M
  cached_has_bits = _has_bits_[0];
2338
1.16M
  if (cached_has_bits & 0x00000001u) {
2339
1.16M
    GOOGLE_DCHECK(ybctid_ != NULL);
2340
1.16M
    ybctid_->Clear();
2341
1.16M
  }
2342
1.16M
  if (cached_has_bits & 14u) {
2343
1.16M
    ::memset(&order_, 0, static_cast<size_t>(
2344
1.16M
        reinterpret_cast<char*>(&max_hash_code_) -
2345
1.16M
        reinterpret_cast<char*>(&order_)) + sizeof(max_hash_code_));
2346
1.16M
  }
2347
1.16M
  _has_bits_.Clear();
2348
1.16M
  _internal_metadata_.Clear();
2349
1.16M
}
2350
2351
bool PgsqlBatchArgumentPB::MergePartialFromCodedStream(
2352
2.35M
    ::google::protobuf::io::CodedInputStream* input) {
2353
4.70M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
2354
2.35M
  ::google::protobuf::uint32 tag;
2355
  // @@protoc_insertion_point(parse_start:yb.PgsqlBatchArgumentPB)
2356
7.05M
  for (;;) {
2357
7.05M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2358
7.05M
    tag = p.first;
2359
7.05M
    if (!p.second) 
goto handle_unusual2.35M
;
2360
4.70M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2361
      // optional int64 order = 1;
2362
2.35M
      case 1: {
2363
2.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2364
2.35M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2365
2.35M
          set_has_order();
2366
2.35M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2367
2.35M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
2368
2.35M
                 input, &order_)));
2369
2.35M
        } else {
2370
0
          goto handle_unusual;
2371
0
        }
2372
2.35M
        break;
2373
2.35M
      }
2374
2375
      // optional .yb.PgsqlExpressionPB ybctid = 2;
2376
2.35M
      case 2: {
2377
2.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2378
2.35M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2379
2.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2380
2.35M
               input, mutable_ybctid()));
2381
2.35M
        } else {
2382
2
          goto handle_unusual;
2383
2
        }
2384
2.35M
        break;
2385
2.35M
      }
2386
2387
      // optional uint32 hash_code = 3;
2388
2.35M
      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
0
      }
2436
2437
0
      default: {
2438
2.35M
      handle_unusual:
2439
2.35M
        if (tag == 0) {
2440
2.35M
          goto success;
2441
2.35M
        }
2442
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2443
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2444
0
        break;
2445
0
      }
2446
4.70M
    }
2447
4.70M
  }
2448
2.35M
success:
2449
  // @@protoc_insertion_point(parse_success:yb.PgsqlBatchArgumentPB)
2450
2.35M
  return true;
2451
0
failure:
2452
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBatchArgumentPB)
2453
0
  return false;
2454
2.35M
#undef DO_
2455
2.35M
}
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
2.35M
    bool deterministic, ::google::protobuf::uint8* target) const {
2508
2.35M
  (void)deterministic; // Unused
2509
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBatchArgumentPB)
2510
2.35M
  ::google::protobuf::uint32 cached_has_bits = 0;
2511
2.35M
  (void) cached_has_bits;
2512
2513
2.35M
  cached_has_bits = _has_bits_[0];
2514
  // optional int64 order = 1;
2515
2.35M
  if (
cached_has_bits & 0x00000002u2.35M
) {
2516
2.35M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->order(), target);
2517
2.35M
  }
2518
2519
  // optional .yb.PgsqlExpressionPB ybctid = 2;
2520
2.35M
  if (cached_has_bits & 0x00000001u) {
2521
2.35M
    target = ::google::protobuf::internal::WireFormatLite::
2522
2.35M
      InternalWriteMessageToArray(
2523
2.35M
        2, *this->ybctid_, deterministic, target);
2524
2.35M
  }
2525
2526
  // optional uint32 hash_code = 3;
2527
2.35M
  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
2.35M
  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
2.35M
  for (unsigned int i = 0,
2538
2.35M
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; 
i++0
) {
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
2.35M
  for (unsigned int i = 0,
2546
2.35M
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; 
i++0
) {
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
2.35M
  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
2.35M
  return target;
2558
2.35M
}
2559
2560
4.70M
size_t PgsqlBatchArgumentPB::ByteSizeLong() const {
2561
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBatchArgumentPB)
2562
4.70M
  size_t total_size = 0;
2563
2564
4.70M
  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
4.70M
  {
2571
4.70M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
2572
4.70M
    total_size += 1UL * count;
2573
4.70M
    for (unsigned int i = 0; i < count; 
i++0
) {
2574
0
      total_size +=
2575
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2576
0
          this->partition_column_values(static_cast<int>(i)));
2577
0
    }
2578
4.70M
  }
2579
2580
  // repeated .yb.PgsqlExpressionPB range_column_values = 6;
2581
4.70M
  {
2582
4.70M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
2583
4.70M
    total_size += 1UL * count;
2584
4.70M
    for (unsigned int i = 0; i < count; 
i++0
) {
2585
0
      total_size +=
2586
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2587
0
          this->range_column_values(static_cast<int>(i)));
2588
0
    }
2589
4.70M
  }
2590
2591
4.70M
  if (_has_bits_[0 / 32] & 15u) {
2592
    // optional .yb.PgsqlExpressionPB ybctid = 2;
2593
4.70M
    if (has_ybctid()) {
2594
4.70M
      total_size += 1 +
2595
4.70M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2596
4.70M
          *this->ybctid_);
2597
4.70M
    }
2598
2599
    // optional int64 order = 1;
2600
4.70M
    if (has_order()) {
2601
4.70M
      total_size += 1 +
2602
4.70M
        ::google::protobuf::internal::WireFormatLite::Int64Size(
2603
4.70M
          this->order());
2604
4.70M
    }
2605
2606
    // optional uint32 hash_code = 3;
2607
4.70M
    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
4.70M
    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
4.70M
  }
2621
4.70M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2622
4.70M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2623
4.70M
  _cached_size_ = cached_size;
2624
4.70M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2625
4.70M
  return total_size;
2626
4.70M
}
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
2.35M
::google::protobuf::Metadata PgsqlBatchArgumentPB::GetMetadata() const {
2706
2.35M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2707
2.35M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2708
2.35M
}
2709
2710
2711
// ===================================================================
2712
2713
28.1k
void PgsqlColumnRefsPB::InitAsDefaultInstance() {
2714
28.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
32.5M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2721
32.5M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2722
32.5M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnRefsPB();
2723
32.5M
  }
2724
32.5M
  SharedCtor();
2725
  // @@protoc_insertion_point(constructor:yb.PgsqlColumnRefsPB)
2726
32.5M
}
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
32.5M
void PgsqlColumnRefsPB::SharedCtor() {
2738
32.5M
  _cached_size_ = 0;
2739
32.5M
}
2740
2741
32.5M
PgsqlColumnRefsPB::~PgsqlColumnRefsPB() {
2742
  // @@protoc_insertion_point(destructor:yb.PgsqlColumnRefsPB)
2743
32.5M
  SharedDtor();
2744
32.5M
}
2745
2746
32.5M
void PgsqlColumnRefsPB::SharedDtor() {
2747
32.5M
}
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
9.25M
void PgsqlColumnRefsPB::Clear() {
2773
// @@protoc_insertion_point(message_clear_start:yb.PgsqlColumnRefsPB)
2774
9.25M
  ::google::protobuf::uint32 cached_has_bits = 0;
2775
  // Prevent compiler warnings about cached_has_bits being unused
2776
9.25M
  (void) cached_has_bits;
2777
2778
9.25M
  ids_.Clear();
2779
9.25M
  _has_bits_.Clear();
2780
9.25M
  _internal_metadata_.Clear();
2781
9.25M
}
2782
2783
bool PgsqlColumnRefsPB::MergePartialFromCodedStream(
2784
20.3M
    ::google::protobuf::io::CodedInputStream* input) {
2785
20.3M
#define DO_(EXPRESSION) 
if (14.9M
!GOOGLE_PREDICT_TRUE14.9M
(EXPRESSION))
goto failure0
2786
20.3M
  ::google::protobuf::uint32 tag;
2787
  // @@protoc_insertion_point(parse_start:yb.PgsqlColumnRefsPB)
2788
35.2M
  for (;;) {
2789
35.2M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2790
35.2M
    tag = p.first;
2791
35.2M
    if (!p.second) 
goto handle_unusual20.3M
;
2792
14.9M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2793
      // repeated int32 ids = 1;
2794
14.9M
      case 1: {
2795
14.9M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2796
14.9M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2797
14.9M
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
2798
14.9M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2799
14.9M
                 1, 8u, input, this->mutable_ids())));
2800
18.4E
        } else if (
2801
18.4E
            static_cast< ::google::protobuf::uint8>(tag) ==
2802
18.4E
            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
14.9M
        break;
2810
14.9M
      }
2811
2812
14.9M
      default: {
2813
20.3M
      handle_unusual:
2814
20.3M
        if (
tag == 020.3M
) {
2815
20.3M
          goto success;
2816
20.3M
        }
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
14.9M
    }
2822
14.9M
  }
2823
20.3M
success:
2824
  // @@protoc_insertion_point(parse_success:yb.PgsqlColumnRefsPB)
2825
20.3M
  return true;
2826
0
failure:
2827
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColumnRefsPB)
2828
0
  return false;
2829
20.3M
#undef DO_
2830
20.3M
}
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
20.3M
    bool deterministic, ::google::protobuf::uint8* target) const {
2853
20.3M
  (void)deterministic; // Unused
2854
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColumnRefsPB)
2855
20.3M
  ::google::protobuf::uint32 cached_has_bits = 0;
2856
20.3M
  (void) cached_has_bits;
2857
2858
  // repeated int32 ids = 1;
2859
20.3M
  target = ::google::protobuf::internal::WireFormatLite::
2860
20.3M
    WriteInt32ToArray(1, this->ids_, target);
2861
2862
20.3M
  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
20.3M
  return target;
2868
20.3M
}
2869
2870
40.7M
size_t PgsqlColumnRefsPB::ByteSizeLong() const {
2871
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColumnRefsPB)
2872
40.7M
  size_t total_size = 0;
2873
2874
40.7M
  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
40.7M
  {
2881
40.7M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
2882
40.7M
      Int32Size(this->ids_);
2883
40.7M
    total_size += 1 *
2884
40.7M
                  ::google::protobuf::internal::FromIntSize(this->ids_size());
2885
40.7M
    total_size += data_size;
2886
40.7M
  }
2887
2888
40.7M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2889
40.7M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2890
40.7M
  _cached_size_ = cached_size;
2891
40.7M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2892
40.7M
  return total_size;
2893
40.7M
}
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
2.94M
void PgsqlColumnRefsPB::MergeFrom(const PgsqlColumnRefsPB& from) {
2911
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlColumnRefsPB)
2912
2.94M
  GOOGLE_DCHECK_NE(&from, this);
2913
2.94M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2914
2.94M
  ::google::protobuf::uint32 cached_has_bits = 0;
2915
2.94M
  (void) cached_has_bits;
2916
2917
2.94M
  ids_.MergeFrom(from.ids_);
2918
2.94M
}
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
20.3M
::google::protobuf::Metadata PgsqlColumnRefsPB::GetMetadata() const {
2951
20.3M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2952
20.3M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2953
20.3M
}
2954
2955
2956
// ===================================================================
2957
2958
28.1k
void PgsqlColRefPB::InitAsDefaultInstance() {
2959
28.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
89.1M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2970
89.1M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2971
89.1M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColRefPB();
2972
89.1M
  }
2973
89.1M
  SharedCtor();
2974
  // @@protoc_insertion_point(constructor:yb.PgsqlColRefPB)
2975
89.1M
}
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
89.1M
void PgsqlColRefPB::SharedCtor() {
2989
89.1M
  _cached_size_ = 0;
2990
89.1M
  ::memset(&column_id_, 0, static_cast<size_t>(
2991
89.1M
      reinterpret_cast<char*>(&collid_) -
2992
89.1M
      reinterpret_cast<char*>(&column_id_)) + sizeof(collid_));
2993
89.1M
}
2994
2995
89.0M
PgsqlColRefPB::~PgsqlColRefPB() {
2996
  // @@protoc_insertion_point(destructor:yb.PgsqlColRefPB)
2997
89.0M
  SharedDtor();
2998
89.0M
}
2999
3000
89.0M
void PgsqlColRefPB::SharedDtor() {
3001
89.0M
}
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
24
void PgsqlColRefPB::Clear() {
3027
// @@protoc_insertion_point(message_clear_start:yb.PgsqlColRefPB)
3028
24
  ::google::protobuf::uint32 cached_has_bits = 0;
3029
  // Prevent compiler warnings about cached_has_bits being unused
3030
24
  (void) cached_has_bits;
3031
3032
24
  cached_has_bits = _has_bits_[0];
3033
24
  if (cached_has_bits & 31u) {
3034
24
    ::memset(&column_id_, 0, static_cast<size_t>(
3035
24
        reinterpret_cast<char*>(&collid_) -
3036
24
        reinterpret_cast<char*>(&column_id_)) + sizeof(collid_));
3037
24
  }
3038
24
  _has_bits_.Clear();
3039
24
  _internal_metadata_.Clear();
3040
24
}
3041
3042
bool PgsqlColRefPB::MergePartialFromCodedStream(
3043
57.4M
    ::google::protobuf::io::CodedInputStream* input) {
3044
115M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3045
57.4M
  ::google::protobuf::uint32 tag;
3046
  // @@protoc_insertion_point(parse_start:yb.PgsqlColRefPB)
3047
172M
  for (;;) {
3048
172M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3049
172M
    tag = p.first;
3050
172M
    if (!p.second) 
goto handle_unusual57.4M
;
3051
114M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3052
      // optional int32 column_id = 1;
3053
57.4M
      case 1: {
3054
57.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3055
57.4M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3056
57.4M
          set_has_column_id();
3057
57.4M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3058
57.4M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3059
57.4M
                 input, &column_id_)));
3060
18.4E
        } else {
3061
18.4E
          goto handle_unusual;
3062
18.4E
        }
3063
57.4M
        break;
3064
57.4M
      }
3065
3066
      // optional int32 attno = 2;
3067
57.4M
      case 2: {
3068
57.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3069
57.4M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3070
57.4M
          set_has_attno();
3071
57.4M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3072
57.4M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3073
57.4M
                 input, &attno_)));
3074
18.4E
        } else {
3075
18.4E
          goto handle_unusual;
3076
18.4E
        }
3077
57.4M
        break;
3078
57.4M
      }
3079
3080
      // optional int32 typid = 3;
3081
57.4M
      case 3: {
3082
24.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3083
24.4k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
3084
24.4k
          set_has_typid();
3085
24.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3086
24.4k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3087
24.4k
                 input, &typid_)));
3088
24.4k
        } else {
3089
0
          goto handle_unusual;
3090
0
        }
3091
24.4k
        break;
3092
24.4k
      }
3093
3094
      // optional int32 typmod = 4;
3095
24.4k
      case 4: {
3096
24.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3097
24.4k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3098
24.4k
          set_has_typmod();
3099
24.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3100
24.4k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3101
24.4k
                 input, &typmod_)));
3102
24.4k
        } else {
3103
0
          goto handle_unusual;
3104
0
        }
3105
24.4k
        break;
3106
24.4k
      }
3107
3108
      // optional int32 collid = 5;
3109
24.4k
      case 5: {
3110
24.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3111
24.4k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
3112
24.4k
          set_has_collid();
3113
24.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3114
24.4k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3115
24.4k
                 input, &collid_)));
3116
24.4k
        } else {
3117
0
          goto handle_unusual;
3118
0
        }
3119
24.4k
        break;
3120
24.4k
      }
3121
3122
24.4k
      default: {
3123
57.4M
      handle_unusual:
3124
57.4M
        if (
tag == 057.4M
) {
3125
57.4M
          goto success;
3126
57.4M
        }
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
114M
    }
3132
114M
  }
3133
57.4M
success:
3134
  // @@protoc_insertion_point(parse_success:yb.PgsqlColRefPB)
3135
57.4M
  return true;
3136
0
failure:
3137
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColRefPB)
3138
0
  return false;
3139
57.4M
#undef DO_
3140
57.4M
}
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
57.4M
    bool deterministic, ::google::protobuf::uint8* target) const {
3183
57.4M
  (void)deterministic; // Unused
3184
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColRefPB)
3185
57.4M
  ::google::protobuf::uint32 cached_has_bits = 0;
3186
57.4M
  (void) cached_has_bits;
3187
3188
57.4M
  cached_has_bits = _has_bits_[0];
3189
  // optional int32 column_id = 1;
3190
57.4M
  if (
cached_has_bits & 0x00000001u57.4M
) {
3191
57.4M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
3192
57.4M
  }
3193
3194
  // optional int32 attno = 2;
3195
57.4M
  if (cached_has_bits & 0x00000002u) {
3196
57.4M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->attno(), target);
3197
57.4M
  }
3198
3199
  // optional int32 typid = 3;
3200
57.4M
  if (cached_has_bits & 0x00000004u) {
3201
24.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->typid(), target);
3202
24.4k
  }
3203
3204
  // optional int32 typmod = 4;
3205
57.4M
  if (cached_has_bits & 0x00000008u) {
3206
24.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->typmod(), target);
3207
24.4k
  }
3208
3209
  // optional int32 collid = 5;
3210
57.4M
  if (cached_has_bits & 0x00000010u) {
3211
24.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->collid(), target);
3212
24.4k
  }
3213
3214
57.4M
  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
57.4M
  return target;
3220
57.4M
}
3221
3222
114M
size_t PgsqlColRefPB::ByteSizeLong() const {
3223
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColRefPB)
3224
114M
  size_t total_size = 0;
3225
3226
114M
  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
114M
  if (_has_bits_[0 / 32] & 31u) {
3232
    // optional int32 column_id = 1;
3233
114M
    if (has_column_id()) {
3234
114M
      total_size += 1 +
3235
114M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3236
114M
          this->column_id());
3237
114M
    }
3238
3239
    // optional int32 attno = 2;
3240
114M
    if (has_attno()) {
3241
114M
      total_size += 1 +
3242
114M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3243
114M
          this->attno());
3244
114M
    }
3245
3246
    // optional int32 typid = 3;
3247
114M
    if (has_typid()) {
3248
48.8k
      total_size += 1 +
3249
48.8k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3250
48.8k
          this->typid());
3251
48.8k
    }
3252
3253
    // optional int32 typmod = 4;
3254
114M
    if (has_typmod()) {
3255
48.8k
      total_size += 1 +
3256
48.8k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3257
48.8k
          this->typmod());
3258
48.8k
    }
3259
3260
    // optional int32 collid = 5;
3261
114M
    if (has_collid()) {
3262
48.8k
      total_size += 1 +
3263
48.8k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3264
48.8k
          this->collid());
3265
48.8k
    }
3266
3267
114M
  }
3268
114M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3269
114M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3270
114M
  _cached_size_ = cached_size;
3271
114M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3272
114M
  return total_size;
3273
114M
}
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
9.69M
void PgsqlColRefPB::MergeFrom(const PgsqlColRefPB& from) {
3291
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlColRefPB)
3292
9.69M
  GOOGLE_DCHECK_NE(&from, this);
3293
9.69M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3294
9.69M
  ::google::protobuf::uint32 cached_has_bits = 0;
3295
9.69M
  (void) cached_has_bits;
3296
3297
9.69M
  cached_has_bits = from._has_bits_[0];
3298
9.70M
  if (
cached_has_bits & 31u9.69M
) {
3299
9.70M
    if (cached_has_bits & 0x00000001u) {
3300
9.70M
      column_id_ = from.column_id_;
3301
9.70M
    }
3302
9.70M
    if (cached_has_bits & 0x00000002u) {
3303
9.70M
      attno_ = from.attno_;
3304
9.70M
    }
3305
9.70M
    if (cached_has_bits & 0x00000004u) {
3306
364
      typid_ = from.typid_;
3307
364
    }
3308
9.70M
    if (cached_has_bits & 0x00000008u) {
3309
364
      typmod_ = from.typmod_;
3310
364
    }
3311
9.70M
    if (cached_has_bits & 0x00000010u) {
3312
364
      collid_ = from.collid_;
3313
364
    }
3314
9.70M
    _has_bits_[0] |= cached_has_bits;
3315
9.70M
  }
3316
9.69M
}
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
57.4M
::google::protobuf::Metadata PgsqlColRefPB::GetMetadata() const {
3353
57.4M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3354
57.4M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3355
57.4M
}
3356
3357
3358
// ===================================================================
3359
3360
28.1k
void PgsqlColumnValuePB::InitAsDefaultInstance() {
3361
28.1k
  ::yb::_PgsqlColumnValuePB_default_instance_._instance.get_mutable()->expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
3362
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
3363
28.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
73.8M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3371
73.8M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3372
73.8M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlColumnValuePB();
3373
73.8M
  }
3374
73.8M
  SharedCtor();
3375
  // @@protoc_insertion_point(constructor:yb.PgsqlColumnValuePB)
3376
73.8M
}
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
73.8M
void PgsqlColumnValuePB::SharedCtor() {
3393
73.8M
  _cached_size_ = 0;
3394
73.8M
  ::memset(&expr_, 0, static_cast<size_t>(
3395
73.8M
      reinterpret_cast<char*>(&column_id_) -
3396
73.8M
      reinterpret_cast<char*>(&expr_)) + sizeof(column_id_));
3397
73.8M
}
3398
3399
73.8M
PgsqlColumnValuePB::~PgsqlColumnValuePB() {
3400
  // @@protoc_insertion_point(destructor:yb.PgsqlColumnValuePB)
3401
73.8M
  SharedDtor();
3402
73.8M
}
3403
3404
73.8M
void PgsqlColumnValuePB::SharedDtor() {
3405
73.8M
  if (this != internal_default_instance()) 
delete expr_73.8M
;
3406
73.8M
}
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
26.0M
    ::google::protobuf::io::CodedInputStream* input) {
3449
52.0M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
3450
26.0M
  ::google::protobuf::uint32 tag;
3451
  // @@protoc_insertion_point(parse_start:yb.PgsqlColumnValuePB)
3452
78.0M
  for (;;) {
3453
78.0M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3454
78.0M
    tag = p.first;
3455
78.0M
    if (!p.second) 
goto handle_unusual26.0M
;
3456
52.0M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3457
      // optional int32 column_id = 1;
3458
26.0M
      case 1: {
3459
26.0M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3460
26.0M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3461
26.0M
          set_has_column_id();
3462
26.0M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3463
26.0M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3464
26.0M
                 input, &column_id_)));
3465
18.4E
        } else {
3466
18.4E
          goto handle_unusual;
3467
18.4E
        }
3468
26.0M
        break;
3469
26.0M
      }
3470
3471
      // optional .yb.PgsqlExpressionPB expr = 2;
3472
26.0M
      case 2: {
3473
26.0M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3474
26.0M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3475
26.0M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3476
26.0M
               input, mutable_expr()));
3477
18.4E
        } else {
3478
18.4E
          goto handle_unusual;
3479
18.4E
        }
3480
26.0M
        break;
3481
26.0M
      }
3482
3483
26.0M
      default: {
3484
26.0M
      handle_unusual:
3485
26.0M
        if (
tag == 026.0M
) {
3486
26.0M
          goto success;
3487
26.0M
        }
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
52.0M
    }
3493
52.0M
  }
3494
26.0M
success:
3495
  // @@protoc_insertion_point(parse_success:yb.PgsqlColumnValuePB)
3496
26.0M
  return true;
3497
0
failure:
3498
  // @@protoc_insertion_point(parse_failure:yb.PgsqlColumnValuePB)
3499
0
  return false;
3500
26.0M
#undef DO_
3501
26.0M
}
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
26.0M
    bool deterministic, ::google::protobuf::uint8* target) const {
3530
26.0M
  (void)deterministic; // Unused
3531
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlColumnValuePB)
3532
26.0M
  ::google::protobuf::uint32 cached_has_bits = 0;
3533
26.0M
  (void) cached_has_bits;
3534
3535
26.0M
  cached_has_bits = _has_bits_[0];
3536
  // optional int32 column_id = 1;
3537
26.0M
  if (cached_has_bits & 0x00000002u) {
3538
26.0M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->column_id(), target);
3539
26.0M
  }
3540
3541
  // optional .yb.PgsqlExpressionPB expr = 2;
3542
26.0M
  if (cached_has_bits & 0x00000001u) {
3543
26.0M
    target = ::google::protobuf::internal::WireFormatLite::
3544
26.0M
      InternalWriteMessageToArray(
3545
26.0M
        2, *this->expr_, deterministic, target);
3546
26.0M
  }
3547
3548
26.0M
  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
26.0M
  return target;
3554
26.0M
}
3555
3556
401M
size_t PgsqlColumnValuePB::ByteSizeLong() const {
3557
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlColumnValuePB)
3558
401M
  size_t total_size = 0;
3559
3560
401M
  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
401M
  if (_has_bits_[0 / 32] & 3u) {
3566
    // optional .yb.PgsqlExpressionPB expr = 2;
3567
401M
    if (has_expr()) {
3568
401M
      total_size += 1 +
3569
401M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3570
401M
          *this->expr_);
3571
401M
    }
3572
3573
    // optional int32 column_id = 1;
3574
401M
    if (has_column_id()) {
3575
401M
      total_size += 1 +
3576
401M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
3577
401M
          this->column_id());
3578
401M
    }
3579
3580
401M
  }
3581
401M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3582
401M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3583
401M
  _cached_size_ = cached_size;
3584
401M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3585
401M
  return total_size;
3586
401M
}
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
26.0M
::google::protobuf::Metadata PgsqlColumnValuePB::GetMetadata() const {
3654
26.0M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
3655
26.0M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
3656
26.0M
}
3657
3658
3659
// ===================================================================
3660
3661
28.1k
void PgsqlRSColDescPB::InitAsDefaultInstance() {
3662
28.1k
  ::yb::_PgsqlRSColDescPB_default_instance_._instance.get_mutable()->ql_type_ = const_cast< ::yb::QLTypePB*>(
3663
28.1k
      ::yb::QLTypePB::internal_default_instance());
3664
28.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
28.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3676
28.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3677
0
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSColDescPB();
3678
0
  }
3679
28.1k
  SharedCtor();
3680
  // @@protoc_insertion_point(constructor:yb.PgsqlRSColDescPB)
3681
28.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
28.1k
void PgsqlRSColDescPB::SharedCtor() {
3701
28.1k
  _cached_size_ = 0;
3702
28.1k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3703
28.1k
  ql_type_ = NULL;
3704
28.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
28.1k
void PgsqlRSRowDescPB::InitAsDefaultInstance() {
3988
28.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
28.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3995
28.1k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3996
0
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlRSRowDescPB();
3997
0
  }
3998
28.1k
  SharedCtor();
3999
  // @@protoc_insertion_point(constructor:yb.PgsqlRSRowDescPB)
4000
28.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
28.1k
void PgsqlRSRowDescPB::SharedCtor() {
4012
28.1k
  _cached_size_ = 0;
4013
28.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
28.1k
void PgsqlPartitionBound::InitAsDefaultInstance() {
4232
28.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
2.17M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4240
2.17M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4241
2.14M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPartitionBound();
4242
2.14M
  }
4243
2.17M
  SharedCtor();
4244
  // @@protoc_insertion_point(constructor:yb.PgsqlPartitionBound)
4245
2.17M
}
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
2.17M
void PgsqlPartitionBound::SharedCtor() {
4261
2.17M
  _cached_size_ = 0;
4262
2.17M
  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4263
2.17M
  is_inclusive_ = false;
4264
2.17M
}
4265
4266
2.14M
PgsqlPartitionBound::~PgsqlPartitionBound() {
4267
  // @@protoc_insertion_point(destructor:yb.PgsqlPartitionBound)
4268
2.14M
  SharedDtor();
4269
2.14M
}
4270
4271
2.14M
void PgsqlPartitionBound::SharedDtor() {
4272
2.14M
  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4273
2.14M
}
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.90k
void PgsqlPartitionBound::Clear() {
4299
// @@protoc_insertion_point(message_clear_start:yb.PgsqlPartitionBound)
4300
1.90k
  ::google::protobuf::uint32 cached_has_bits = 0;
4301
  // Prevent compiler warnings about cached_has_bits being unused
4302
1.90k
  (void) cached_has_bits;
4303
4304
1.90k
  cached_has_bits = _has_bits_[0];
4305
1.90k
  if (cached_has_bits & 0x00000001u) {
4306
1.64k
    GOOGLE_DCHECK(!key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4307
1.64k
    (*key_.UnsafeRawStringPointer())->clear();
4308
1.64k
  }
4309
1.90k
  is_inclusive_ = false;
4310
1.90k
  _has_bits_.Clear();
4311
1.90k
  _internal_metadata_.Clear();
4312
1.90k
}
4313
4314
bool PgsqlPartitionBound::MergePartialFromCodedStream(
4315
1.42M
    ::google::protobuf::io::CodedInputStream* input) {
4316
2.85M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
4317
1.42M
  ::google::protobuf::uint32 tag;
4318
  // @@protoc_insertion_point(parse_start:yb.PgsqlPartitionBound)
4319
4.28M
  for (;;) {
4320
4.28M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4321
4.28M
    tag = p.first;
4322
4.28M
    if (!p.second) 
goto handle_unusual1.42M
;
4323
2.85M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4324
      // optional bytes key = 1;
4325
1.42M
      case 1: {
4326
1.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4327
1.42M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4328
1.42M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4329
1.42M
                input, this->mutable_key()));
4330
18.4E
        } else {
4331
18.4E
          goto handle_unusual;
4332
18.4E
        }
4333
1.42M
        break;
4334
1.42M
      }
4335
4336
      // optional bool is_inclusive = 2;
4337
1.42M
      case 2: {
4338
1.42M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4339
1.42M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4340
1.42M
          set_has_is_inclusive();
4341
1.42M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4342
1.42M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4343
1.42M
                 input, &is_inclusive_)));
4344
18.4E
        } else {
4345
18.4E
          goto handle_unusual;
4346
18.4E
        }
4347
1.42M
        break;
4348
1.42M
      }
4349
4350
1.42M
      default: {
4351
1.42M
      handle_unusual:
4352
1.42M
        if (
tag == 01.42M
) {
4353
1.42M
          goto success;
4354
1.42M
        }
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
2.85M
    }
4360
2.85M
  }
4361
1.42M
success:
4362
  // @@protoc_insertion_point(parse_success:yb.PgsqlPartitionBound)
4363
1.42M
  return true;
4364
0
failure:
4365
  // @@protoc_insertion_point(parse_failure:yb.PgsqlPartitionBound)
4366
0
  return false;
4367
1.42M
#undef DO_
4368
1.42M
}
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
1.42M
    bool deterministic, ::google::protobuf::uint8* target) const {
4397
1.42M
  (void)deterministic; // Unused
4398
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlPartitionBound)
4399
1.42M
  ::google::protobuf::uint32 cached_has_bits = 0;
4400
1.42M
  (void) cached_has_bits;
4401
4402
1.42M
  cached_has_bits = _has_bits_[0];
4403
  // optional bytes key = 1;
4404
1.42M
  if (cached_has_bits & 0x00000001u) {
4405
1.42M
    target =
4406
1.42M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4407
1.42M
        1, this->key(), target);
4408
1.42M
  }
4409
4410
  // optional bool is_inclusive = 2;
4411
1.42M
  if (cached_has_bits & 0x00000002u) {
4412
1.42M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_inclusive(), target);
4413
1.42M
  }
4414
4415
1.42M
  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
1.42M
  return target;
4421
1.42M
}
4422
4423
2.85M
size_t PgsqlPartitionBound::ByteSizeLong() const {
4424
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlPartitionBound)
4425
2.85M
  size_t total_size = 0;
4426
4427
2.85M
  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
2.85M
  if (_has_bits_[0 / 32] & 3u) {
4433
    // optional bytes key = 1;
4434
2.85M
    if (has_key()) {
4435
2.85M
      total_size += 1 +
4436
2.85M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4437
2.85M
          this->key());
4438
2.85M
    }
4439
4440
    // optional bool is_inclusive = 2;
4441
2.85M
    if (has_is_inclusive()) {
4442
2.85M
      total_size += 1 + 1;
4443
2.85M
    }
4444
4445
2.85M
  }
4446
2.85M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4447
2.85M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4448
2.85M
  _cached_size_ = cached_size;
4449
2.85M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4450
2.85M
  return total_size;
4451
2.85M
}
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
1.42M
::google::protobuf::Metadata PgsqlPartitionBound::GetMetadata() const {
4520
1.42M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4521
1.42M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4522
1.42M
}
4523
4524
4525
// ===================================================================
4526
4527
28.1k
void PgsqlSamplingStatePB::InitAsDefaultInstance() {
4528
28.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
30.5k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4540
30.5k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4541
2.38k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlSamplingStatePB();
4542
2.38k
  }
4543
30.5k
  SharedCtor();
4544
  // @@protoc_insertion_point(constructor:yb.PgsqlSamplingStatePB)
4545
30.5k
}
4546
PgsqlSamplingStatePB::PgsqlSamplingStatePB(const PgsqlSamplingStatePB& from)
4547
  : ::google::protobuf::Message(),
4548
      _internal_metadata_(NULL),
4549
      _has_bits_(from._has_bits_),
4550
406
      _cached_size_(0) {
4551
406
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4552
406
  ::memcpy(&targrows_, &from.targrows_,
4553
406
    static_cast<size_t>(reinterpret_cast<char*>(&rand_state_) -
4554
406
    reinterpret_cast<char*>(&targrows_)) + sizeof(rand_state_));
4555
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlSamplingStatePB)
4556
406
}
4557
4558
30.5k
void PgsqlSamplingStatePB::SharedCtor() {
4559
30.5k
  _cached_size_ = 0;
4560
30.5k
  ::memset(&targrows_, 0, static_cast<size_t>(
4561
30.5k
      reinterpret_cast<char*>(&rand_state_) -
4562
30.5k
      reinterpret_cast<char*>(&targrows_)) + sizeof(rand_state_));
4563
30.5k
}
4564
4565
2.79k
PgsqlSamplingStatePB::~PgsqlSamplingStatePB() {
4566
  // @@protoc_insertion_point(destructor:yb.PgsqlSamplingStatePB)
4567
2.79k
  SharedDtor();
4568
2.79k
}
4569
4570
2.79k
void PgsqlSamplingStatePB::SharedDtor() {
4571
2.79k
}
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
1.39k
    ::google::protobuf::io::CodedInputStream* input) {
4614
8.38k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
4615
1.39k
  ::google::protobuf::uint32 tag;
4616
  // @@protoc_insertion_point(parse_start:yb.PgsqlSamplingStatePB)
4617
9.77k
  for (;;) {
4618
9.77k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4619
9.77k
    tag = p.first;
4620
9.77k
    if (!p.second) 
goto handle_unusual1.39k
;
4621
8.38k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4622
      // optional int32 targrows = 1;
4623
1.39k
      case 1: {
4624
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4625
1.39k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4626
1.39k
          set_has_targrows();
4627
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4628
1.39k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4629
1.39k
                 input, &targrows_)));
4630
1.39k
        } else {
4631
0
          goto handle_unusual;
4632
0
        }
4633
1.39k
        break;
4634
1.39k
      }
4635
4636
      // optional int32 numrows = 2;
4637
1.39k
      case 2: {
4638
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4639
1.39k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4640
1.39k
          set_has_numrows();
4641
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4642
1.39k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4643
1.39k
                 input, &numrows_)));
4644
1.39k
        } else {
4645
0
          goto handle_unusual;
4646
0
        }
4647
1.39k
        break;
4648
1.39k
      }
4649
4650
      // optional double samplerows = 3;
4651
1.39k
      case 3: {
4652
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4653
1.39k
            static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
4654
1.39k
          set_has_samplerows();
4655
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4656
1.39k
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4657
1.39k
                 input, &samplerows_)));
4658
1.39k
        } else {
4659
0
          goto handle_unusual;
4660
0
        }
4661
1.39k
        break;
4662
1.39k
      }
4663
4664
      // optional double rowstoskip = 4;
4665
1.39k
      case 4: {
4666
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4667
1.39k
            static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
4668
1.39k
          set_has_rowstoskip();
4669
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4670
1.39k
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4671
1.39k
                 input, &rowstoskip_)));
4672
1.39k
        } else {
4673
0
          goto handle_unusual;
4674
0
        }
4675
1.39k
        break;
4676
1.39k
      }
4677
4678
      // optional double rstate_w = 5;
4679
1.39k
      case 5: {
4680
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4681
1.39k
            static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
4682
1.39k
          set_has_rstate_w();
4683
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4684
1.39k
                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
4685
1.39k
                 input, &rstate_w_)));
4686
1.39k
        } else {
4687
0
          goto handle_unusual;
4688
0
        }
4689
1.39k
        break;
4690
1.39k
      }
4691
4692
      // optional uint64 rand_state = 6;
4693
1.39k
      case 6: {
4694
1.39k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4695
1.39k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
4696
1.39k
          set_has_rand_state();
4697
1.39k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4698
1.39k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4699
1.39k
                 input, &rand_state_)));
4700
1.39k
        } else {
4701
0
          goto handle_unusual;
4702
0
        }
4703
1.39k
        break;
4704
1.39k
      }
4705
4706
1.39k
      default: {
4707
1.39k
      handle_unusual:
4708
1.39k
        if (tag == 0) {
4709
1.39k
          goto success;
4710
1.39k
        }
4711
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4712
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4713
0
        break;
4714
0
      }
4715
8.38k
    }
4716
8.38k
  }
4717
1.39k
success:
4718
  // @@protoc_insertion_point(parse_success:yb.PgsqlSamplingStatePB)
4719
1.39k
  return true;
4720
0
failure:
4721
  // @@protoc_insertion_point(parse_failure:yb.PgsqlSamplingStatePB)
4722
0
  return false;
4723
1.39k
#undef DO_
4724
1.39k
}
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
1.39k
    bool deterministic, ::google::protobuf::uint8* target) const {
4772
1.39k
  (void)deterministic; // Unused
4773
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlSamplingStatePB)
4774
1.39k
  ::google::protobuf::uint32 cached_has_bits = 0;
4775
1.39k
  (void) cached_has_bits;
4776
4777
1.39k
  cached_has_bits = _has_bits_[0];
4778
  // optional int32 targrows = 1;
4779
1.39k
  if (cached_has_bits & 0x00000001u) {
4780
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->targrows(), target);
4781
1.39k
  }
4782
4783
  // optional int32 numrows = 2;
4784
1.39k
  if (cached_has_bits & 0x00000002u) {
4785
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->numrows(), target);
4786
1.39k
  }
4787
4788
  // optional double samplerows = 3;
4789
1.39k
  if (cached_has_bits & 0x00000004u) {
4790
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->samplerows(), target);
4791
1.39k
  }
4792
4793
  // optional double rowstoskip = 4;
4794
1.39k
  if (cached_has_bits & 0x00000008u) {
4795
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->rowstoskip(), target);
4796
1.39k
  }
4797
4798
  // optional double rstate_w = 5;
4799
1.39k
  if (cached_has_bits & 0x00000010u) {
4800
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->rstate_w(), target);
4801
1.39k
  }
4802
4803
  // optional uint64 rand_state = 6;
4804
1.39k
  if (cached_has_bits & 0x00000020u) {
4805
1.39k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->rand_state(), target);
4806
1.39k
  }
4807
4808
1.39k
  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
1.39k
  return target;
4814
1.39k
}
4815
4816
2.79k
size_t PgsqlSamplingStatePB::ByteSizeLong() const {
4817
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlSamplingStatePB)
4818
2.79k
  size_t total_size = 0;
4819
4820
2.79k
  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
2.79k
  if (_has_bits_[0 / 32] & 63u) {
4826
    // optional int32 targrows = 1;
4827
2.79k
    if (has_targrows()) {
4828
2.79k
      total_size += 1 +
4829
2.79k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
4830
2.79k
          this->targrows());
4831
2.79k
    }
4832
4833
    // optional int32 numrows = 2;
4834
2.79k
    if (has_numrows()) {
4835
2.79k
      total_size += 1 +
4836
2.79k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
4837
2.79k
          this->numrows());
4838
2.79k
    }
4839
4840
    // optional double samplerows = 3;
4841
2.79k
    if (has_samplerows()) {
4842
2.79k
      total_size += 1 + 8;
4843
2.79k
    }
4844
4845
    // optional double rowstoskip = 4;
4846
2.79k
    if (has_rowstoskip()) {
4847
2.79k
      total_size += 1 + 8;
4848
2.79k
    }
4849
4850
    // optional double rstate_w = 5;
4851
2.79k
    if (has_rstate_w()) {
4852
2.79k
      total_size += 1 + 8;
4853
2.79k
    }
4854
4855
    // optional uint64 rand_state = 6;
4856
2.79k
    if (has_rand_state()) {
4857
2.79k
      total_size += 1 +
4858
2.79k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
4859
2.79k
          this->rand_state());
4860
2.79k
    }
4861
4862
2.79k
  }
4863
2.79k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4864
2.79k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4865
2.79k
  _cached_size_ = cached_size;
4866
2.79k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4867
2.79k
  return total_size;
4868
2.79k
}
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
406
void PgsqlSamplingStatePB::MergeFrom(const PgsqlSamplingStatePB& from) {
4886
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlSamplingStatePB)
4887
406
  GOOGLE_DCHECK_NE(&from, this);
4888
406
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4889
406
  ::google::protobuf::uint32 cached_has_bits = 0;
4890
406
  (void) cached_has_bits;
4891
4892
406
  cached_has_bits = from._has_bits_[0];
4893
406
  if (cached_has_bits & 63u) {
4894
406
    if (cached_has_bits & 0x00000001u) {
4895
406
      targrows_ = from.targrows_;
4896
406
    }
4897
406
    if (cached_has_bits & 0x00000002u) {
4898
406
      numrows_ = from.numrows_;
4899
406
    }
4900
406
    if (cached_has_bits & 0x00000004u) {
4901
406
      samplerows_ = from.samplerows_;
4902
406
    }
4903
406
    if (cached_has_bits & 0x00000008u) {
4904
406
      rowstoskip_ = from.rowstoskip_;
4905
406
    }
4906
406
    if (cached_has_bits & 0x00000010u) {
4907
406
      rstate_w_ = from.rstate_w_;
4908
406
    }
4909
406
    if (cached_has_bits & 0x00000020u) {
4910
406
      rand_state_ = from.rand_state_;
4911
406
    }
4912
406
    _has_bits_[0] |= cached_has_bits;
4913
406
  }
4914
406
}
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
705
::google::protobuf::Metadata PgsqlSamplingStatePB::GetMetadata() const {
4952
705
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
4953
705
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
4954
705
}
4955
4956
4957
// ===================================================================
4958
4959
28.1k
void PgsqlWriteRequestPB::InitAsDefaultInstance() {
4960
28.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->ybctid_column_value_ = const_cast< ::yb::PgsqlExpressionPB*>(
4961
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
4962
28.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->rsrow_desc_ = const_cast< ::yb::PgsqlRSRowDescPB*>(
4963
28.1k
      ::yb::PgsqlRSRowDescPB::internal_default_instance());
4964
28.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
4965
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
4966
28.1k
  ::yb::_PgsqlWriteRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::PgsqlColumnRefsPB*>(
4967
28.1k
      ::yb::PgsqlColumnRefsPB::internal_default_instance());
4968
28.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
24.6M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4996
24.6M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4997
24.6M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlWriteRequestPB();
4998
24.6M
  }
4999
24.6M
  SharedCtor();
5000
  // @@protoc_insertion_point(constructor:yb.PgsqlWriteRequestPB)
5001
24.6M
}
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
24.6M
void PgsqlWriteRequestPB::SharedCtor() {
5050
24.6M
  _cached_size_ = 0;
5051
24.6M
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5052
24.6M
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5053
24.6M
  ::memset(&ybctid_column_value_, 0, static_cast<size_t>(
5054
24.6M
      reinterpret_cast<char*>(&is_delete_persist_needed_) -
5055
24.6M
      reinterpret_cast<char*>(&ybctid_column_value_)) + sizeof(is_delete_persist_needed_));
5056
24.6M
  client_ = 1;
5057
24.6M
  stmt_type_ = 1;
5058
24.6M
}
5059
5060
24.6M
PgsqlWriteRequestPB::~PgsqlWriteRequestPB() {
5061
  // @@protoc_insertion_point(destructor:yb.PgsqlWriteRequestPB)
5062
24.6M
  SharedDtor();
5063
24.6M
}
5064
5065
24.6M
void PgsqlWriteRequestPB::SharedDtor() {
5066
24.6M
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5067
24.6M
  partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5068
24.6M
  if (this != internal_default_instance()) 
delete ybctid_column_value_24.6M
;
5069
24.6M
  if (
this != internal_default_instance()24.6M
) delete rsrow_desc_;
5070
24.6M
  if (
this != internal_default_instance()24.6M
) delete where_expr_;
5071
24.6M
  if (
this != internal_default_instance()24.6M
) delete column_refs_;
5072
24.6M
}
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
11.7M
    ::google::protobuf::io::CodedInputStream* input) {
5155
147M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
5156
11.7M
  ::google::protobuf::uint32 tag;
5157
  // @@protoc_insertion_point(parse_start:yb.PgsqlWriteRequestPB)
5158
159M
  for (;;) {
5159
159M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5160
159M
    tag = p.first;
5161
159M
    if (!p.second) 
goto handle_unusual11.7M
;
5162
147M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5163
      // optional .yb.QLClient client = 1;
5164
11.7M
      case 1: {
5165
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5166
11.7M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5167
11.7M
          int value;
5168
11.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5169
11.7M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5170
11.7M
                 input, &value)));
5171
11.7M
          if (::yb::QLClient_IsValid(value)) {
5172
11.7M
            set_client(static_cast< ::yb::QLClient >(value));
5173
11.7M
          } else {
5174
1.85k
            mutable_unknown_fields()->AddVarint(
5175
1.85k
                1, static_cast< ::google::protobuf::uint64>(value));
5176
1.85k
          }
5177
18.4E
        } else {
5178
18.4E
          goto handle_unusual;
5179
18.4E
        }
5180
11.7M
        break;
5181
11.7M
      }
5182
5183
      // optional uint64 stmt_id = 2;
5184
11.7M
      case 2: {
5185
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5186
11.7M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5187
11.7M
          set_has_stmt_id();
5188
11.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5189
11.7M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5190
11.7M
                 input, &stmt_id_)));
5191
11.7M
        } else {
5192
34
          goto handle_unusual;
5193
34
        }
5194
11.7M
        break;
5195
11.7M
      }
5196
5197
      // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5198
11.7M
      case 3: {
5199
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5200
11.7M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5201
11.7M
          int value;
5202
11.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5203
11.7M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5204
11.7M
                 input, &value)));
5205
11.7M
          if (::yb::PgsqlWriteRequestPB_PgsqlStmtType_IsValid(value)) {
5206
11.7M
            set_stmt_type(static_cast< ::yb::PgsqlWriteRequestPB_PgsqlStmtType >(value));
5207
11.7M
          } else {
5208
956
            mutable_unknown_fields()->AddVarint(
5209
956
                3, static_cast< ::google::protobuf::uint64>(value));
5210
956
          }
5211
18.4E
        } else {
5212
18.4E
          goto handle_unusual;
5213
18.4E
        }
5214
11.7M
        break;
5215
11.7M
      }
5216
5217
      // optional bytes table_id = 4;
5218
11.7M
      case 4: {
5219
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5220
11.7M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
5221
11.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5222
11.7M
                input, this->mutable_table_id()));
5223
18.4E
        } else {
5224
18.4E
          goto handle_unusual;
5225
18.4E
        }
5226
11.7M
        break;
5227
11.7M
      }
5228
5229
      // optional uint32 schema_version = 5;
5230
11.7M
      case 5: {
5231
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5232
11.7M
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
5233
11.7M
          set_has_schema_version();
5234
11.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5235
11.7M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5236
11.7M
                 input, &schema_version_)));
5237
11.7M
        } else {
5238
45
          goto handle_unusual;
5239
45
        }
5240
11.7M
        break;
5241
11.7M
      }
5242
5243
      // optional uint32 hash_code = 6;
5244
11.7M
      case 6: {
5245
8.57M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5246
8.57M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
5247
8.57M
          set_has_hash_code();
5248
8.57M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5249
8.57M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5250
8.57M
                 input, &hash_code_)));
5251
18.4E
        } else {
5252
18.4E
          goto handle_unusual;
5253
18.4E
        }
5254
8.57M
        break;
5255
8.57M
      }
5256
5257
      // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5258
8.57M
      case 7: {
5259
1.14M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5260
1.14M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
5261
1.14M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_partition_column_values()));
5262
18.4E
        } else {
5263
18.4E
          goto handle_unusual;
5264
18.4E
        }
5265
1.14M
        break;
5266
1.14M
      }
5267
5268
      // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5269
6.38M
      case 8: {
5270
6.38M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5271
6.38M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
5272
6.38M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values()));
5273
18.4E
        } else {
5274
18.4E
          goto handle_unusual;
5275
18.4E
        }
5276
6.38M
        break;
5277
6.38M
      }
5278
5279
      // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5280
9.31M
      case 9: {
5281
9.31M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5282
9.31M
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
5283
9.31M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5284
9.31M
               input, mutable_ybctid_column_value()));
5285
18.4E
        } else {
5286
18.4E
          goto handle_unusual;
5287
18.4E
        }
5288
9.31M
        break;
5289
9.31M
      }
5290
5291
      // repeated .yb.PgsqlColumnValuePB column_values = 10;
5292
24.2M
      case 10: {
5293
24.2M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5294
24.2M
            static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
5295
24.2M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_values()));
5296
18.4E
        } else {
5297
18.4E
          goto handle_unusual;
5298
18.4E
        }
5299
24.2M
        break;
5300
24.2M
      }
5301
5302
      // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5303
24.2M
      case 11: {
5304
1.75M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5305
1.75M
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
5306
1.75M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_column_new_values()));
5307
18.4E
        } else {
5308
18.4E
          goto handle_unusual;
5309
18.4E
        }
5310
1.75M
        break;
5311
1.75M
      }
5312
5313
      // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5314
1.75M
      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
37
      case 13: {
5327
37
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5328
37
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
5329
37
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_targets()));
5330
37
        } else {
5331
0
          goto handle_unusual;
5332
0
        }
5333
37
        break;
5334
37
      }
5335
5336
      // optional .yb.PgsqlExpressionPB where_expr = 14;
5337
2.77k
      case 14: {
5338
2.77k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5339
2.77k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
5340
2.77k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5341
2.77k
               input, mutable_where_expr()));
5342
2.77k
        } else {
5343
0
          goto handle_unusual;
5344
0
        }
5345
2.77k
        break;
5346
2.77k
      }
5347
5348
      // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5349
11.7M
      case 15: {
5350
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5351
11.7M
            static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
5352
11.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5353
11.7M
               input, mutable_column_refs()));
5354
18.4E
        } else {
5355
18.4E
          goto handle_unusual;
5356
18.4E
        }
5357
11.7M
        break;
5358
11.7M
      }
5359
5360
      // optional uint64 ysql_catalog_version = 16;
5361
11.7M
      case 16: {
5362
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5363
11.7M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
5364
11.7M
          set_has_ysql_catalog_version();
5365
11.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5366
11.7M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5367
11.7M
                 input, &ysql_catalog_version_)));
5368
18.4E
        } else {
5369
18.4E
          goto handle_unusual;
5370
18.4E
        }
5371
11.7M
        break;
5372
11.7M
      }
5373
5374
      // optional bool is_ysql_catalog_change = 17 [default = false];
5375
11.7M
      case 17: {
5376
28
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5377
28
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
5378
28
          set_has_is_ysql_catalog_change();
5379
28
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5380
28
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5381
28
                 input, &is_ysql_catalog_change_)));
5382
28
        } else {
5383
0
          goto handle_unusual;
5384
0
        }
5385
28
        break;
5386
28
      }
5387
5388
      // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5389
28
      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
609k
      case 19: {
5401
609k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5402
609k
            static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
5403
609k
          set_has_is_backfill();
5404
609k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5405
609k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5406
609k
                 input, &is_backfill_)));
5407
609k
        } else {
5408
0
          goto handle_unusual;
5409
0
        }
5410
609k
        break;
5411
609k
      }
5412
5413
      // optional bool is_delete_persist_needed = 20 [default = false];
5414
609k
      case 20: {
5415
9
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5416
9
            static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
5417
9
          set_has_is_delete_persist_needed();
5418
9
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5419
9
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5420
9
                 input, &is_delete_persist_needed_)));
5421
9
        } else {
5422
0
          goto handle_unusual;
5423
0
        }
5424
9
        break;
5425
9
      }
5426
5427
      // repeated .yb.PgsqlColRefPB col_refs = 21;
5428
1.75M
      case 21: {
5429
1.75M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5430
1.75M
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
5431
1.75M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_col_refs()));
5432
1.75M
        } else {
5433
2
          goto handle_unusual;
5434
2
        }
5435
1.75M
        break;
5436
1.75M
      }
5437
5438
      // optional bytes partition_key = 22;
5439
11.7M
      case 22: {
5440
11.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5441
11.7M
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
5442
11.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5443
11.7M
                input, this->mutable_partition_key()));
5444
18.4E
        } else {
5445
18.4E
          goto handle_unusual;
5446
18.4E
        }
5447
11.7M
        break;
5448
11.7M
      }
5449
5450
11.7M
      default: {
5451
11.7M
      handle_unusual:
5452
11.7M
        if (
tag == 011.7M
) {
5453
11.7M
          goto success;
5454
11.7M
        }
5455
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5456
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5457
18.4E
        break;
5458
18.4E
      }
5459
147M
    }
5460
147M
  }
5461
11.7M
success:
5462
  // @@protoc_insertion_point(parse_success:yb.PgsqlWriteRequestPB)
5463
11.7M
  return true;
5464
0
failure:
5465
  // @@protoc_insertion_point(parse_failure:yb.PgsqlWriteRequestPB)
5466
0
  return false;
5467
11.7M
#undef DO_
5468
11.7M
}
5469
5470
void PgsqlWriteRequestPB::SerializeWithCachedSizes(
5471
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5472
  // @@protoc_insertion_point(serialize_start:yb.PgsqlWriteRequestPB)
5473
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5474
0
  (void) cached_has_bits;
5475
5476
0
  cached_has_bits = _has_bits_[0];
5477
  // optional .yb.QLClient client = 1;
5478
0
  if (cached_has_bits & 0x00002000u) {
5479
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5480
0
      1, this->client(), output);
5481
0
  }
5482
5483
  // optional uint64 stmt_id = 2;
5484
0
  if (cached_has_bits & 0x00000040u) {
5485
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stmt_id(), output);
5486
0
  }
5487
5488
  // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5489
0
  if (cached_has_bits & 0x00004000u) {
5490
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5491
0
      3, this->stmt_type(), output);
5492
0
  }
5493
5494
  // optional bytes table_id = 4;
5495
0
  if (cached_has_bits & 0x00000001u) {
5496
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5497
0
      4, this->table_id(), output);
5498
0
  }
5499
5500
  // optional uint32 schema_version = 5;
5501
0
  if (cached_has_bits & 0x00000080u) {
5502
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->schema_version(), output);
5503
0
  }
5504
5505
  // optional uint32 hash_code = 6;
5506
0
  if (cached_has_bits & 0x00000100u) {
5507
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->hash_code(), output);
5508
0
  }
5509
5510
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5511
0
  for (unsigned int i = 0,
5512
0
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
5513
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5514
0
      7, this->partition_column_values(static_cast<int>(i)), output);
5515
0
  }
5516
5517
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5518
0
  for (unsigned int i = 0,
5519
0
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
5520
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5521
0
      8, this->range_column_values(static_cast<int>(i)), output);
5522
0
  }
5523
5524
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5525
0
  if (cached_has_bits & 0x00000004u) {
5526
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5527
0
      9, *this->ybctid_column_value_, output);
5528
0
  }
5529
5530
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5531
0
  for (unsigned int i = 0,
5532
0
      n = static_cast<unsigned int>(this->column_values_size()); i < n; i++) {
5533
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5534
0
      10, this->column_values(static_cast<int>(i)), output);
5535
0
  }
5536
5537
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5538
0
  for (unsigned int i = 0,
5539
0
      n = static_cast<unsigned int>(this->column_new_values_size()); i < n; i++) {
5540
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5541
0
      11, this->column_new_values(static_cast<int>(i)), output);
5542
0
  }
5543
5544
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5545
0
  if (cached_has_bits & 0x00000008u) {
5546
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5547
0
      12, *this->rsrow_desc_, output);
5548
0
  }
5549
5550
  // repeated .yb.PgsqlExpressionPB targets = 13;
5551
0
  for (unsigned int i = 0,
5552
0
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
5553
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5554
0
      13, this->targets(static_cast<int>(i)), output);
5555
0
  }
5556
5557
  // optional .yb.PgsqlExpressionPB where_expr = 14;
5558
0
  if (cached_has_bits & 0x00000010u) {
5559
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5560
0
      14, *this->where_expr_, output);
5561
0
  }
5562
5563
  // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5564
0
  if (cached_has_bits & 0x00000020u) {
5565
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5566
0
      15, *this->column_refs_, output);
5567
0
  }
5568
5569
  // optional uint64 ysql_catalog_version = 16;
5570
0
  if (cached_has_bits & 0x00000200u) {
5571
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->ysql_catalog_version(), output);
5572
0
  }
5573
5574
  // optional bool is_ysql_catalog_change = 17 [default = false];
5575
0
  if (cached_has_bits & 0x00000400u) {
5576
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_ysql_catalog_change(), output);
5577
0
  }
5578
5579
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5580
0
  for (unsigned int i = 0,
5581
0
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
5582
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5583
0
      18, this->batch_arguments(static_cast<int>(i)), output);
5584
0
  }
5585
5586
  // optional bool is_backfill = 19 [default = false];
5587
0
  if (cached_has_bits & 0x00000800u) {
5588
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(19, this->is_backfill(), output);
5589
0
  }
5590
5591
  // optional bool is_delete_persist_needed = 20 [default = false];
5592
0
  if (cached_has_bits & 0x00001000u) {
5593
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->is_delete_persist_needed(), output);
5594
0
  }
5595
5596
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5597
0
  for (unsigned int i = 0,
5598
0
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
5599
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5600
0
      21, this->col_refs(static_cast<int>(i)), output);
5601
0
  }
5602
5603
  // optional bytes partition_key = 22;
5604
0
  if (cached_has_bits & 0x00000002u) {
5605
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5606
0
      22, this->partition_key(), output);
5607
0
  }
5608
5609
0
  if (_internal_metadata_.have_unknown_fields()) {
5610
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5611
0
        _internal_metadata_.unknown_fields(), output);
5612
0
  }
5613
  // @@protoc_insertion_point(serialize_end:yb.PgsqlWriteRequestPB)
5614
0
}
5615
5616
::google::protobuf::uint8* PgsqlWriteRequestPB::InternalSerializeWithCachedSizesToArray(
5617
11.7M
    bool deterministic, ::google::protobuf::uint8* target) const {
5618
11.7M
  (void)deterministic; // Unused
5619
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlWriteRequestPB)
5620
11.7M
  ::google::protobuf::uint32 cached_has_bits = 0;
5621
11.7M
  (void) cached_has_bits;
5622
5623
11.7M
  cached_has_bits = _has_bits_[0];
5624
  // optional .yb.QLClient client = 1;
5625
11.7M
  if (
cached_has_bits & 0x00002000u11.7M
) {
5626
11.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5627
11.7M
      1, this->client(), target);
5628
11.7M
  }
5629
5630
  // optional uint64 stmt_id = 2;
5631
11.7M
  if (
cached_has_bits & 0x00000040u11.7M
) {
5632
11.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stmt_id(), target);
5633
11.7M
  }
5634
5635
  // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5636
11.7M
  if (
cached_has_bits & 0x00004000u11.7M
) {
5637
11.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5638
11.7M
      3, this->stmt_type(), target);
5639
11.7M
  }
5640
5641
  // optional bytes table_id = 4;
5642
11.7M
  if (
cached_has_bits & 0x00000001u11.7M
) {
5643
11.7M
    target =
5644
11.7M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5645
11.7M
        4, this->table_id(), target);
5646
11.7M
  }
5647
5648
  // optional uint32 schema_version = 5;
5649
11.7M
  if (
cached_has_bits & 0x00000080u11.7M
) {
5650
11.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->schema_version(), target);
5651
11.7M
  }
5652
5653
  // optional uint32 hash_code = 6;
5654
11.7M
  if (cached_has_bits & 0x00000100u) {
5655
8.57M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->hash_code(), target);
5656
8.57M
  }
5657
5658
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5659
11.7M
  for (unsigned int i = 0,
5660
12.9M
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; 
i++1.14M
) {
5661
1.14M
    target = ::google::protobuf::internal::WireFormatLite::
5662
1.14M
      InternalWriteMessageToArray(
5663
1.14M
        7, this->partition_column_values(static_cast<int>(i)), deterministic, target);
5664
1.14M
  }
5665
5666
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5667
11.7M
  for (unsigned int i = 0,
5668
18.1M
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; 
i++6.38M
) {
5669
6.38M
    target = ::google::protobuf::internal::WireFormatLite::
5670
6.38M
      InternalWriteMessageToArray(
5671
6.38M
        8, this->range_column_values(static_cast<int>(i)), deterministic, target);
5672
6.38M
  }
5673
5674
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5675
11.7M
  if (cached_has_bits & 0x00000004u) {
5676
9.31M
    target = ::google::protobuf::internal::WireFormatLite::
5677
9.31M
      InternalWriteMessageToArray(
5678
9.31M
        9, *this->ybctid_column_value_, deterministic, target);
5679
9.31M
  }
5680
5681
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5682
11.7M
  for (unsigned int i = 0,
5683
36.0M
      n = static_cast<unsigned int>(this->column_values_size()); i < n; 
i++24.2M
) {
5684
24.2M
    target = ::google::protobuf::internal::WireFormatLite::
5685
24.2M
      InternalWriteMessageToArray(
5686
24.2M
        10, this->column_values(static_cast<int>(i)), deterministic, target);
5687
24.2M
  }
5688
5689
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5690
11.7M
  for (unsigned int i = 0,
5691
13.5M
      n = static_cast<unsigned int>(this->column_new_values_size()); i < n; 
i++1.75M
) {
5692
1.75M
    target = ::google::protobuf::internal::WireFormatLite::
5693
1.75M
      InternalWriteMessageToArray(
5694
1.75M
        11, this->column_new_values(static_cast<int>(i)), deterministic, target);
5695
1.75M
  }
5696
5697
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5698
11.7M
  if (cached_has_bits & 0x00000008u) {
5699
0
    target = ::google::protobuf::internal::WireFormatLite::
5700
0
      InternalWriteMessageToArray(
5701
0
        12, *this->rsrow_desc_, deterministic, target);
5702
0
  }
5703
5704
  // repeated .yb.PgsqlExpressionPB targets = 13;
5705
11.7M
  for (unsigned int i = 0,
5706
11.7M
      n = static_cast<unsigned int>(this->targets_size()); i < n; 
i++37
) {
5707
37
    target = ::google::protobuf::internal::WireFormatLite::
5708
37
      InternalWriteMessageToArray(
5709
37
        13, this->targets(static_cast<int>(i)), deterministic, target);
5710
37
  }
5711
5712
  // optional .yb.PgsqlExpressionPB where_expr = 14;
5713
11.7M
  if (cached_has_bits & 0x00000010u) {
5714
2.77k
    target = ::google::protobuf::internal::WireFormatLite::
5715
2.77k
      InternalWriteMessageToArray(
5716
2.77k
        14, *this->where_expr_, deterministic, target);
5717
2.77k
  }
5718
5719
  // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5720
11.7M
  if (
cached_has_bits & 0x00000020u11.7M
) {
5721
11.7M
    target = ::google::protobuf::internal::WireFormatLite::
5722
11.7M
      InternalWriteMessageToArray(
5723
11.7M
        15, *this->column_refs_, deterministic, target);
5724
11.7M
  }
5725
5726
  // optional uint64 ysql_catalog_version = 16;
5727
11.7M
  if (cached_has_bits & 0x00000200u) {
5728
11.7M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->ysql_catalog_version(), target);
5729
11.7M
  }
5730
5731
  // optional bool is_ysql_catalog_change = 17 [default = false];
5732
11.7M
  if (cached_has_bits & 0x00000400u) {
5733
28
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_ysql_catalog_change(), target);
5734
28
  }
5735
5736
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5737
11.7M
  for (unsigned int i = 0,
5738
11.7M
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; 
i++0
) {
5739
0
    target = ::google::protobuf::internal::WireFormatLite::
5740
0
      InternalWriteMessageToArray(
5741
0
        18, this->batch_arguments(static_cast<int>(i)), deterministic, target);
5742
0
  }
5743
5744
  // optional bool is_backfill = 19 [default = false];
5745
11.7M
  if (cached_has_bits & 0x00000800u) {
5746
609k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(19, this->is_backfill(), target);
5747
609k
  }
5748
5749
  // optional bool is_delete_persist_needed = 20 [default = false];
5750
11.7M
  if (cached_has_bits & 0x00001000u) {
5751
9
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->is_delete_persist_needed(), target);
5752
9
  }
5753
5754
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5755
11.7M
  for (unsigned int i = 0,
5756
13.5M
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; 
i++1.75M
) {
5757
1.75M
    target = ::google::protobuf::internal::WireFormatLite::
5758
1.75M
      InternalWriteMessageToArray(
5759
1.75M
        21, this->col_refs(static_cast<int>(i)), deterministic, target);
5760
1.75M
  }
5761
5762
  // optional bytes partition_key = 22;
5763
11.7M
  if (
cached_has_bits & 0x00000002u11.7M
) {
5764
11.7M
    target =
5765
11.7M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5766
11.7M
        22, this->partition_key(), target);
5767
11.7M
  }
5768
5769
11.7M
  if (_internal_metadata_.have_unknown_fields()) {
5770
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5771
0
        _internal_metadata_.unknown_fields(), target);
5772
0
  }
5773
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlWriteRequestPB)
5774
11.7M
  return target;
5775
11.7M
}
5776
5777
117M
size_t PgsqlWriteRequestPB::ByteSizeLong() const {
5778
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlWriteRequestPB)
5779
117M
  size_t total_size = 0;
5780
5781
117M
  if (_internal_metadata_.have_unknown_fields()) {
5782
0
    total_size +=
5783
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5784
0
        _internal_metadata_.unknown_fields());
5785
0
  }
5786
  // repeated .yb.PgsqlExpressionPB partition_column_values = 7;
5787
117M
  {
5788
117M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
5789
117M
    total_size += 1UL * count;
5790
120M
    for (unsigned int i = 0; i < count; 
i++2.28M
) {
5791
2.28M
      total_size +=
5792
2.28M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5793
2.28M
          this->partition_column_values(static_cast<int>(i)));
5794
2.28M
    }
5795
117M
  }
5796
5797
  // repeated .yb.PgsqlExpressionPB range_column_values = 8;
5798
117M
  {
5799
117M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
5800
117M
    total_size += 1UL * count;
5801
421M
    for (unsigned int i = 0; i < count; 
i++303M
) {
5802
303M
      total_size +=
5803
303M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5804
303M
          this->range_column_values(static_cast<int>(i)));
5805
303M
    }
5806
117M
  }
5807
5808
  // repeated .yb.PgsqlColumnValuePB column_values = 10;
5809
117M
  {
5810
117M
    unsigned int count = static_cast<unsigned int>(this->column_values_size());
5811
117M
    total_size += 1UL * count;
5812
515M
    for (unsigned int i = 0; i < count; 
i++397M
) {
5813
397M
      total_size +=
5814
397M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5815
397M
          this->column_values(static_cast<int>(i)));
5816
397M
    }
5817
117M
  }
5818
5819
  // repeated .yb.PgsqlColumnValuePB column_new_values = 11;
5820
117M
  {
5821
117M
    unsigned int count = static_cast<unsigned int>(this->column_new_values_size());
5822
117M
    total_size += 1UL * count;
5823
121M
    for (unsigned int i = 0; i < count; 
i++3.50M
) {
5824
3.50M
      total_size +=
5825
3.50M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5826
3.50M
          this->column_new_values(static_cast<int>(i)));
5827
3.50M
    }
5828
117M
  }
5829
5830
  // repeated .yb.PgsqlExpressionPB targets = 13;
5831
117M
  {
5832
117M
    unsigned int count = static_cast<unsigned int>(this->targets_size());
5833
117M
    total_size += 1UL * count;
5834
117M
    for (unsigned int i = 0; i < count; 
i++74
) {
5835
74
      total_size +=
5836
74
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5837
74
          this->targets(static_cast<int>(i)));
5838
74
    }
5839
117M
  }
5840
5841
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 18;
5842
117M
  {
5843
117M
    unsigned int count = static_cast<unsigned int>(this->batch_arguments_size());
5844
117M
    total_size += 2UL * count;
5845
117M
    for (unsigned int i = 0; i < count; 
i++0
) {
5846
0
      total_size +=
5847
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5848
0
          this->batch_arguments(static_cast<int>(i)));
5849
0
    }
5850
117M
  }
5851
5852
  // repeated .yb.PgsqlColRefPB col_refs = 21;
5853
117M
  {
5854
117M
    unsigned int count = static_cast<unsigned int>(this->col_refs_size());
5855
117M
    total_size += 2UL * count;
5856
121M
    for (unsigned int i = 0; i < count; 
i++3.50M
) {
5857
3.50M
      total_size +=
5858
3.50M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5859
3.50M
          this->col_refs(static_cast<int>(i)));
5860
3.50M
    }
5861
117M
  }
5862
5863
117M
  if (_has_bits_[0 / 32] & 255u) {
5864
    // optional bytes table_id = 4;
5865
117M
    if (has_table_id()) {
5866
117M
      total_size += 1 +
5867
117M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5868
117M
          this->table_id());
5869
117M
    }
5870
5871
    // optional bytes partition_key = 22;
5872
117M
    if (has_partition_key()) {
5873
23.5M
      total_size += 2 +
5874
23.5M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5875
23.5M
          this->partition_key());
5876
23.5M
    }
5877
5878
    // optional .yb.PgsqlExpressionPB ybctid_column_value = 9;
5879
117M
    if (has_ybctid_column_value()) {
5880
18.6M
      total_size += 1 +
5881
18.6M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5882
18.6M
          *this->ybctid_column_value_);
5883
18.6M
    }
5884
5885
    // optional .yb.PgsqlRSRowDescPB rsrow_desc = 12;
5886
117M
    if (has_rsrow_desc()) {
5887
0
      total_size += 1 +
5888
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5889
0
          *this->rsrow_desc_);
5890
0
    }
5891
5892
    // optional .yb.PgsqlExpressionPB where_expr = 14;
5893
117M
    if (has_where_expr()) {
5894
5.54k
      total_size += 1 +
5895
5.54k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5896
5.54k
          *this->where_expr_);
5897
5.54k
    }
5898
5899
    // optional .yb.PgsqlColumnRefsPB column_refs = 15;
5900
117M
    if (has_column_refs()) {
5901
23.5M
      total_size += 1 +
5902
23.5M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5903
23.5M
          *this->column_refs_);
5904
23.5M
    }
5905
5906
    // optional uint64 stmt_id = 2;
5907
117M
    if (has_stmt_id()) {
5908
23.5M
      total_size += 1 +
5909
23.5M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5910
23.5M
          this->stmt_id());
5911
23.5M
    }
5912
5913
    // optional uint32 schema_version = 5;
5914
117M
    if (has_schema_version()) {
5915
117M
      total_size += 1 +
5916
117M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5917
117M
          this->schema_version());
5918
117M
    }
5919
5920
117M
  }
5921
117M
  if (_has_bits_[8 / 32] & 32512u) {
5922
    // optional uint32 hash_code = 6;
5923
117M
    if (has_hash_code()) {
5924
17.1M
      total_size += 1 +
5925
17.1M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5926
17.1M
          this->hash_code());
5927
17.1M
    }
5928
5929
    // optional uint64 ysql_catalog_version = 16;
5930
117M
    if (has_ysql_catalog_version()) {
5931
23.4M
      total_size += 2 +
5932
23.4M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5933
23.4M
          this->ysql_catalog_version());
5934
23.4M
    }
5935
5936
    // optional bool is_ysql_catalog_change = 17 [default = false];
5937
117M
    if (has_is_ysql_catalog_change()) {
5938
56
      total_size += 2 + 1;
5939
56
    }
5940
5941
    // optional bool is_backfill = 19 [default = false];
5942
117M
    if (has_is_backfill()) {
5943
1.21M
      total_size += 2 + 1;
5944
1.21M
    }
5945
5946
    // optional bool is_delete_persist_needed = 20 [default = false];
5947
117M
    if (has_is_delete_persist_needed()) {
5948
18
      total_size += 2 + 1;
5949
18
    }
5950
5951
    // optional .yb.QLClient client = 1;
5952
117M
    if (
has_client()117M
) {
5953
117M
      total_size += 1 +
5954
117M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->client());
5955
117M
    }
5956
5957
    // optional .yb.PgsqlWriteRequestPB.PgsqlStmtType stmt_type = 3;
5958
117M
    if (
has_stmt_type()117M
) {
5959
117M
      total_size += 1 +
5960
117M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->stmt_type());
5961
117M
    }
5962
5963
117M
  }
5964
117M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5965
117M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5966
117M
  _cached_size_ = cached_size;
5967
117M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5968
117M
  return total_size;
5969
117M
}
5970
5971
0
void PgsqlWriteRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5972
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlWriteRequestPB)
5973
0
  GOOGLE_DCHECK_NE(&from, this);
5974
0
  const PgsqlWriteRequestPB* source =
5975
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlWriteRequestPB>(
5976
0
          &from);
5977
0
  if (source == NULL) {
5978
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlWriteRequestPB)
5979
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5980
0
  } else {
5981
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlWriteRequestPB)
5982
0
    MergeFrom(*source);
5983
0
  }
5984
0
}
5985
5986
0
void PgsqlWriteRequestPB::MergeFrom(const PgsqlWriteRequestPB& from) {
5987
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlWriteRequestPB)
5988
0
  GOOGLE_DCHECK_NE(&from, this);
5989
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5990
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5991
0
  (void) cached_has_bits;
5992
5993
0
  partition_column_values_.MergeFrom(from.partition_column_values_);
5994
0
  range_column_values_.MergeFrom(from.range_column_values_);
5995
0
  column_values_.MergeFrom(from.column_values_);
5996
0
  column_new_values_.MergeFrom(from.column_new_values_);
5997
0
  targets_.MergeFrom(from.targets_);
5998
0
  batch_arguments_.MergeFrom(from.batch_arguments_);
5999
0
  col_refs_.MergeFrom(from.col_refs_);
6000
0
  cached_has_bits = from._has_bits_[0];
6001
0
  if (cached_has_bits & 255u) {
6002
0
    if (cached_has_bits & 0x00000001u) {
6003
0
      set_has_table_id();
6004
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6005
0
    }
6006
0
    if (cached_has_bits & 0x00000002u) {
6007
0
      set_has_partition_key();
6008
0
      partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
6009
0
    }
6010
0
    if (cached_has_bits & 0x00000004u) {
6011
0
      mutable_ybctid_column_value()->::yb::PgsqlExpressionPB::MergeFrom(from.ybctid_column_value());
6012
0
    }
6013
0
    if (cached_has_bits & 0x00000008u) {
6014
0
      mutable_rsrow_desc()->::yb::PgsqlRSRowDescPB::MergeFrom(from.rsrow_desc());
6015
0
    }
6016
0
    if (cached_has_bits & 0x00000010u) {
6017
0
      mutable_where_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.where_expr());
6018
0
    }
6019
0
    if (cached_has_bits & 0x00000020u) {
6020
0
      mutable_column_refs()->::yb::PgsqlColumnRefsPB::MergeFrom(from.column_refs());
6021
0
    }
6022
0
    if (cached_has_bits & 0x00000040u) {
6023
0
      stmt_id_ = from.stmt_id_;
6024
0
    }
6025
0
    if (cached_has_bits & 0x00000080u) {
6026
0
      schema_version_ = from.schema_version_;
6027
0
    }
6028
0
    _has_bits_[0] |= cached_has_bits;
6029
0
  }
6030
0
  if (cached_has_bits & 32512u) {
6031
0
    if (cached_has_bits & 0x00000100u) {
6032
0
      hash_code_ = from.hash_code_;
6033
0
    }
6034
0
    if (cached_has_bits & 0x00000200u) {
6035
0
      ysql_catalog_version_ = from.ysql_catalog_version_;
6036
0
    }
6037
0
    if (cached_has_bits & 0x00000400u) {
6038
0
      is_ysql_catalog_change_ = from.is_ysql_catalog_change_;
6039
0
    }
6040
0
    if (cached_has_bits & 0x00000800u) {
6041
0
      is_backfill_ = from.is_backfill_;
6042
0
    }
6043
0
    if (cached_has_bits & 0x00001000u) {
6044
0
      is_delete_persist_needed_ = from.is_delete_persist_needed_;
6045
0
    }
6046
0
    if (cached_has_bits & 0x00002000u) {
6047
0
      client_ = from.client_;
6048
0
    }
6049
0
    if (cached_has_bits & 0x00004000u) {
6050
0
      stmt_type_ = from.stmt_type_;
6051
0
    }
6052
0
    _has_bits_[0] |= cached_has_bits;
6053
0
  }
6054
0
}
6055
6056
0
void PgsqlWriteRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6057
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlWriteRequestPB)
6058
0
  if (&from == this) return;
6059
0
  Clear();
6060
0
  MergeFrom(from);
6061
0
}
6062
6063
0
void PgsqlWriteRequestPB::CopyFrom(const PgsqlWriteRequestPB& from) {
6064
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlWriteRequestPB)
6065
0
  if (&from == this) return;
6066
0
  Clear();
6067
0
  MergeFrom(from);
6068
0
}
6069
6070
0
bool PgsqlWriteRequestPB::IsInitialized() const {
6071
0
  return true;
6072
0
}
6073
6074
0
void PgsqlWriteRequestPB::Swap(PgsqlWriteRequestPB* other) {
6075
0
  if (other == this) return;
6076
0
  InternalSwap(other);
6077
0
}
6078
0
void PgsqlWriteRequestPB::InternalSwap(PgsqlWriteRequestPB* other) {
6079
0
  using std::swap;
6080
0
  partition_column_values_.InternalSwap(&other->partition_column_values_);
6081
0
  range_column_values_.InternalSwap(&other->range_column_values_);
6082
0
  column_values_.InternalSwap(&other->column_values_);
6083
0
  column_new_values_.InternalSwap(&other->column_new_values_);
6084
0
  targets_.InternalSwap(&other->targets_);
6085
0
  batch_arguments_.InternalSwap(&other->batch_arguments_);
6086
0
  col_refs_.InternalSwap(&other->col_refs_);
6087
0
  table_id_.Swap(&other->table_id_);
6088
0
  partition_key_.Swap(&other->partition_key_);
6089
0
  swap(ybctid_column_value_, other->ybctid_column_value_);
6090
0
  swap(rsrow_desc_, other->rsrow_desc_);
6091
0
  swap(where_expr_, other->where_expr_);
6092
0
  swap(column_refs_, other->column_refs_);
6093
0
  swap(stmt_id_, other->stmt_id_);
6094
0
  swap(schema_version_, other->schema_version_);
6095
0
  swap(hash_code_, other->hash_code_);
6096
0
  swap(ysql_catalog_version_, other->ysql_catalog_version_);
6097
0
  swap(is_ysql_catalog_change_, other->is_ysql_catalog_change_);
6098
0
  swap(is_backfill_, other->is_backfill_);
6099
0
  swap(is_delete_persist_needed_, other->is_delete_persist_needed_);
6100
0
  swap(client_, other->client_);
6101
0
  swap(stmt_type_, other->stmt_type_);
6102
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6103
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6104
0
  swap(_cached_size_, other->_cached_size_);
6105
0
}
6106
6107
11.7M
::google::protobuf::Metadata PgsqlWriteRequestPB::GetMetadata() const {
6108
11.7M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6109
11.7M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6110
11.7M
}
6111
6112
6113
// ===================================================================
6114
6115
28.1k
void PgsqlPagingStatePB::InitAsDefaultInstance() {
6116
28.1k
  ::yb::_PgsqlPagingStatePB_default_instance_._instance.get_mutable()->read_time_ = const_cast< ::yb::ReadHybridTimePB*>(
6117
28.1k
      ::yb::ReadHybridTimePB::internal_default_instance());
6118
28.1k
}
6119
0
void PgsqlPagingStatePB::clear_read_time() {
6120
0
  if (read_time_ != NULL) read_time_->Clear();
6121
0
  clear_has_read_time();
6122
0
}
6123
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6124
const int PgsqlPagingStatePB::kTableIdFieldNumber;
6125
const int PgsqlPagingStatePB::kNextPartitionKeyFieldNumber;
6126
const int PgsqlPagingStatePB::kNextRowKeyFieldNumber;
6127
const int PgsqlPagingStatePB::kTotalNumRowsReadFieldNumber;
6128
const int PgsqlPagingStatePB::kNextPartitionIndexFieldNumber;
6129
const int PgsqlPagingStatePB::kReadTimeFieldNumber;
6130
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6131
6132
PgsqlPagingStatePB::PgsqlPagingStatePB()
6133
707k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6134
707k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6135
678k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
6136
678k
  }
6137
707k
  SharedCtor();
6138
  // @@protoc_insertion_point(constructor:yb.PgsqlPagingStatePB)
6139
707k
}
6140
PgsqlPagingStatePB::PgsqlPagingStatePB(const PgsqlPagingStatePB& from)
6141
  : ::google::protobuf::Message(),
6142
      _internal_metadata_(NULL),
6143
      _has_bits_(from._has_bits_),
6144
0
      _cached_size_(0) {
6145
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6146
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6147
0
  if (from.has_table_id()) {
6148
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6149
0
  }
6150
0
  next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6151
0
  if (from.has_next_partition_key()) {
6152
0
    next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_);
6153
0
  }
6154
0
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6155
0
  if (from.has_next_row_key()) {
6156
0
    next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6157
0
  }
6158
0
  if (from.has_read_time()) {
6159
0
    read_time_ = new ::yb::ReadHybridTimePB(*from.read_time_);
6160
0
  } else {
6161
0
    read_time_ = NULL;
6162
0
  }
6163
0
  ::memcpy(&total_num_rows_read_, &from.total_num_rows_read_,
6164
0
    static_cast<size_t>(reinterpret_cast<char*>(&next_partition_index_) -
6165
0
    reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(next_partition_index_));
6166
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlPagingStatePB)
6167
0
}
6168
6169
706k
void PgsqlPagingStatePB::SharedCtor() {
6170
706k
  _cached_size_ = 0;
6171
706k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6172
706k
  next_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6173
706k
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6174
706k
  ::memset(&read_time_, 0, static_cast<size_t>(
6175
706k
      reinterpret_cast<char*>(&next_partition_index_) -
6176
706k
      reinterpret_cast<char*>(&read_time_)) + sizeof(next_partition_index_));
6177
706k
}
6178
6179
679k
PgsqlPagingStatePB::~PgsqlPagingStatePB() {
6180
  // @@protoc_insertion_point(destructor:yb.PgsqlPagingStatePB)
6181
679k
  SharedDtor();
6182
679k
}
6183
6184
679k
void PgsqlPagingStatePB::SharedDtor() {
6185
679k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6186
679k
  next_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6187
679k
  next_row_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6188
679k
  if (this != internal_default_instance()) 
delete read_time_678k
;
6189
679k
}
6190
6191
0
void PgsqlPagingStatePB::SetCachedSize(int size) const {
6192
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6193
0
  _cached_size_ = size;
6194
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6195
0
}
6196
0
const ::google::protobuf::Descriptor* PgsqlPagingStatePB::descriptor() {
6197
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6198
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6199
0
}
6200
6201
0
const PgsqlPagingStatePB& PgsqlPagingStatePB::default_instance() {
6202
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlPagingStatePB();
6203
0
  return *internal_default_instance();
6204
0
}
6205
6206
0
PgsqlPagingStatePB* PgsqlPagingStatePB::New(::google::protobuf::Arena* arena) const {
6207
0
  PgsqlPagingStatePB* n = new PgsqlPagingStatePB;
6208
0
  if (arena != NULL) {
6209
0
    arena->Own(n);
6210
0
  }
6211
0
  return n;
6212
0
}
6213
6214
2
void PgsqlPagingStatePB::Clear() {
6215
// @@protoc_insertion_point(message_clear_start:yb.PgsqlPagingStatePB)
6216
2
  ::google::protobuf::uint32 cached_has_bits = 0;
6217
  // Prevent compiler warnings about cached_has_bits being unused
6218
2
  (void) cached_has_bits;
6219
6220
2
  cached_has_bits = _has_bits_[0];
6221
2
  if (cached_has_bits & 15u) {
6222
2
    if (cached_has_bits & 0x00000001u) {
6223
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6224
0
      (*table_id_.UnsafeRawStringPointer())->clear();
6225
0
    }
6226
2
    if (cached_has_bits & 0x00000002u) {
6227
2
      GOOGLE_DCHECK(!next_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6228
2
      (*next_partition_key_.UnsafeRawStringPointer())->clear();
6229
2
    }
6230
2
    if (cached_has_bits & 0x00000004u) {
6231
0
      GOOGLE_DCHECK(!next_row_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6232
0
      (*next_row_key_.UnsafeRawStringPointer())->clear();
6233
0
    }
6234
2
    if (cached_has_bits & 0x00000008u) {
6235
0
      GOOGLE_DCHECK(read_time_ != NULL);
6236
0
      read_time_->Clear();
6237
0
    }
6238
2
  }
6239
2
  if (cached_has_bits & 48u) {
6240
2
    ::memset(&total_num_rows_read_, 0, static_cast<size_t>(
6241
2
        reinterpret_cast<char*>(&next_partition_index_) -
6242
2
        reinterpret_cast<char*>(&total_num_rows_read_)) + sizeof(next_partition_index_));
6243
2
  }
6244
2
  _has_bits_.Clear();
6245
2
  _internal_metadata_.Clear();
6246
2
}
6247
6248
bool PgsqlPagingStatePB::MergePartialFromCodedStream(
6249
461k
    ::google::protobuf::io::CodedInputStream* input) {
6250
1.32M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6251
461k
  ::google::protobuf::uint32 tag;
6252
  // @@protoc_insertion_point(parse_start:yb.PgsqlPagingStatePB)
6253
1.78M
  for (;;) {
6254
1.78M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6255
1.78M
    tag = p.first;
6256
1.78M
    if (!p.second) 
goto handle_unusual461k
;
6257
1.32M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6258
      // optional bytes table_id = 1;
6259
0
      case 1: {
6260
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6261
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6262
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6263
0
                input, this->mutable_table_id()));
6264
0
        } else {
6265
0
          goto handle_unusual;
6266
0
        }
6267
0
        break;
6268
0
      }
6269
6270
      // optional bytes next_partition_key = 2;
6271
461k
      case 2: {
6272
461k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6273
461k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6274
461k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6275
461k
                input, this->mutable_next_partition_key()));
6276
461k
        } else {
6277
4
          goto handle_unusual;
6278
4
        }
6279
461k
        break;
6280
461k
      }
6281
6282
      // optional bytes next_row_key = 3;
6283
461k
      case 3: {
6284
200k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6285
200k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6286
200k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6287
200k
                input, this->mutable_next_row_key()));
6288
200k
        } else {
6289
7
          goto handle_unusual;
6290
7
        }
6291
200k
        break;
6292
200k
      }
6293
6294
      // optional uint64 total_num_rows_read = 4;
6295
461k
      case 4: {
6296
461k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6297
461k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
6298
461k
          set_has_total_num_rows_read();
6299
461k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6300
461k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6301
461k
                 input, &total_num_rows_read_)));
6302
18.4E
        } else {
6303
18.4E
          goto handle_unusual;
6304
18.4E
        }
6305
461k
        break;
6306
461k
      }
6307
6308
      // optional uint64 next_partition_index = 5;
6309
461k
      case 5: {
6310
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6311
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
6312
0
          set_has_next_partition_index();
6313
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6314
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6315
0
                 input, &next_partition_index_)));
6316
0
        } else {
6317
0
          goto handle_unusual;
6318
0
        }
6319
0
        break;
6320
0
      }
6321
6322
      // optional .yb.ReadHybridTimePB read_time = 6;
6323
200k
      case 6: {
6324
200k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6325
200k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
6326
200k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6327
200k
               input, mutable_read_time()));
6328
18.4E
        } else {
6329
18.4E
          goto handle_unusual;
6330
18.4E
        }
6331
200k
        break;
6332
200k
      }
6333
6334
200k
      default: {
6335
461k
      handle_unusual:
6336
461k
        if (
tag == 0461k
) {
6337
461k
          goto success;
6338
461k
        }
6339
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6340
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6341
18.4E
        break;
6342
18.4E
      }
6343
1.32M
    }
6344
1.32M
  }
6345
18.4E
success:
6346
  // @@protoc_insertion_point(parse_success:yb.PgsqlPagingStatePB)
6347
461k
  return true;
6348
0
failure:
6349
  // @@protoc_insertion_point(parse_failure:yb.PgsqlPagingStatePB)
6350
0
  return false;
6351
461k
#undef DO_
6352
461k
}
6353
6354
void PgsqlPagingStatePB::SerializeWithCachedSizes(
6355
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6356
  // @@protoc_insertion_point(serialize_start:yb.PgsqlPagingStatePB)
6357
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6358
0
  (void) cached_has_bits;
6359
6360
0
  cached_has_bits = _has_bits_[0];
6361
  // optional bytes table_id = 1;
6362
0
  if (cached_has_bits & 0x00000001u) {
6363
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6364
0
      1, this->table_id(), output);
6365
0
  }
6366
6367
  // optional bytes next_partition_key = 2;
6368
0
  if (cached_has_bits & 0x00000002u) {
6369
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6370
0
      2, this->next_partition_key(), output);
6371
0
  }
6372
6373
  // optional bytes next_row_key = 3;
6374
0
  if (cached_has_bits & 0x00000004u) {
6375
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6376
0
      3, this->next_row_key(), output);
6377
0
  }
6378
6379
  // optional uint64 total_num_rows_read = 4;
6380
0
  if (cached_has_bits & 0x00000010u) {
6381
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->total_num_rows_read(), output);
6382
0
  }
6383
6384
  // optional uint64 next_partition_index = 5;
6385
0
  if (cached_has_bits & 0x00000020u) {
6386
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->next_partition_index(), output);
6387
0
  }
6388
6389
  // optional .yb.ReadHybridTimePB read_time = 6;
6390
0
  if (cached_has_bits & 0x00000008u) {
6391
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6392
0
      6, *this->read_time_, output);
6393
0
  }
6394
6395
0
  if (_internal_metadata_.have_unknown_fields()) {
6396
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6397
0
        _internal_metadata_.unknown_fields(), output);
6398
0
  }
6399
  // @@protoc_insertion_point(serialize_end:yb.PgsqlPagingStatePB)
6400
0
}
6401
6402
::google::protobuf::uint8* PgsqlPagingStatePB::InternalSerializeWithCachedSizesToArray(
6403
461k
    bool deterministic, ::google::protobuf::uint8* target) const {
6404
461k
  (void)deterministic; // Unused
6405
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlPagingStatePB)
6406
461k
  ::google::protobuf::uint32 cached_has_bits = 0;
6407
461k
  (void) cached_has_bits;
6408
6409
461k
  cached_has_bits = _has_bits_[0];
6410
  // optional bytes table_id = 1;
6411
461k
  if (cached_has_bits & 0x00000001u) {
6412
0
    target =
6413
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6414
0
        1, this->table_id(), target);
6415
0
  }
6416
6417
  // optional bytes next_partition_key = 2;
6418
461k
  if (
cached_has_bits & 0x00000002u461k
) {
6419
461k
    target =
6420
461k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6421
461k
        2, this->next_partition_key(), target);
6422
461k
  }
6423
6424
  // optional bytes next_row_key = 3;
6425
461k
  if (cached_has_bits & 0x00000004u) {
6426
200k
    target =
6427
200k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6428
200k
        3, this->next_row_key(), target);
6429
200k
  }
6430
6431
  // optional uint64 total_num_rows_read = 4;
6432
461k
  if (cached_has_bits & 0x00000010u) {
6433
461k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->total_num_rows_read(), target);
6434
461k
  }
6435
6436
  // optional uint64 next_partition_index = 5;
6437
461k
  if (cached_has_bits & 0x00000020u) {
6438
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->next_partition_index(), target);
6439
0
  }
6440
6441
  // optional .yb.ReadHybridTimePB read_time = 6;
6442
461k
  if (cached_has_bits & 0x00000008u) {
6443
200k
    target = ::google::protobuf::internal::WireFormatLite::
6444
200k
      InternalWriteMessageToArray(
6445
200k
        6, *this->read_time_, deterministic, target);
6446
200k
  }
6447
6448
461k
  if (_internal_metadata_.have_unknown_fields()) {
6449
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6450
0
        _internal_metadata_.unknown_fields(), target);
6451
0
  }
6452
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlPagingStatePB)
6453
461k
  return target;
6454
461k
}
6455
6456
922k
size_t PgsqlPagingStatePB::ByteSizeLong() const {
6457
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlPagingStatePB)
6458
922k
  size_t total_size = 0;
6459
6460
922k
  if (_internal_metadata_.have_unknown_fields()) {
6461
0
    total_size +=
6462
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6463
0
        _internal_metadata_.unknown_fields());
6464
0
  }
6465
922k
  if (_has_bits_[0 / 32] & 63u) {
6466
    // optional bytes table_id = 1;
6467
921k
    if (has_table_id()) {
6468
0
      total_size += 1 +
6469
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6470
0
          this->table_id());
6471
0
    }
6472
6473
    // optional bytes next_partition_key = 2;
6474
921k
    if (has_next_partition_key()) {
6475
921k
      total_size += 1 +
6476
921k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6477
921k
          this->next_partition_key());
6478
921k
    }
6479
6480
    // optional bytes next_row_key = 3;
6481
921k
    if (has_next_row_key()) {
6482
399k
      total_size += 1 +
6483
399k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6484
399k
          this->next_row_key());
6485
399k
    }
6486
6487
    // optional .yb.ReadHybridTimePB read_time = 6;
6488
921k
    if (has_read_time()) {
6489
400k
      total_size += 1 +
6490
400k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6491
400k
          *this->read_time_);
6492
400k
    }
6493
6494
    // optional uint64 total_num_rows_read = 4;
6495
921k
    if (has_total_num_rows_read()) {
6496
921k
      total_size += 1 +
6497
921k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6498
921k
          this->total_num_rows_read());
6499
921k
    }
6500
6501
    // optional uint64 next_partition_index = 5;
6502
921k
    if (has_next_partition_index()) {
6503
0
      total_size += 1 +
6504
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6505
0
          this->next_partition_index());
6506
0
    }
6507
6508
921k
  }
6509
922k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6510
922k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6511
922k
  _cached_size_ = cached_size;
6512
922k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6513
922k
  return total_size;
6514
922k
}
6515
6516
0
void PgsqlPagingStatePB::MergeFrom(const ::google::protobuf::Message& from) {
6517
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlPagingStatePB)
6518
0
  GOOGLE_DCHECK_NE(&from, this);
6519
0
  const PgsqlPagingStatePB* source =
6520
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlPagingStatePB>(
6521
0
          &from);
6522
0
  if (source == NULL) {
6523
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlPagingStatePB)
6524
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6525
0
  } else {
6526
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlPagingStatePB)
6527
0
    MergeFrom(*source);
6528
0
  }
6529
0
}
6530
6531
0
void PgsqlPagingStatePB::MergeFrom(const PgsqlPagingStatePB& from) {
6532
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlPagingStatePB)
6533
0
  GOOGLE_DCHECK_NE(&from, this);
6534
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6535
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6536
0
  (void) cached_has_bits;
6537
6538
0
  cached_has_bits = from._has_bits_[0];
6539
0
  if (cached_has_bits & 63u) {
6540
0
    if (cached_has_bits & 0x00000001u) {
6541
0
      set_has_table_id();
6542
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
6543
0
    }
6544
0
    if (cached_has_bits & 0x00000002u) {
6545
0
      set_has_next_partition_key();
6546
0
      next_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_partition_key_);
6547
0
    }
6548
0
    if (cached_has_bits & 0x00000004u) {
6549
0
      set_has_next_row_key();
6550
0
      next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6551
0
    }
6552
0
    if (cached_has_bits & 0x00000008u) {
6553
0
      mutable_read_time()->::yb::ReadHybridTimePB::MergeFrom(from.read_time());
6554
0
    }
6555
0
    if (cached_has_bits & 0x00000010u) {
6556
0
      total_num_rows_read_ = from.total_num_rows_read_;
6557
0
    }
6558
0
    if (cached_has_bits & 0x00000020u) {
6559
0
      next_partition_index_ = from.next_partition_index_;
6560
0
    }
6561
0
    _has_bits_[0] |= cached_has_bits;
6562
0
  }
6563
0
}
6564
6565
0
void PgsqlPagingStatePB::CopyFrom(const ::google::protobuf::Message& from) {
6566
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlPagingStatePB)
6567
0
  if (&from == this) return;
6568
0
  Clear();
6569
0
  MergeFrom(from);
6570
0
}
6571
6572
0
void PgsqlPagingStatePB::CopyFrom(const PgsqlPagingStatePB& from) {
6573
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlPagingStatePB)
6574
0
  if (&from == this) return;
6575
0
  Clear();
6576
0
  MergeFrom(from);
6577
0
}
6578
6579
0
bool PgsqlPagingStatePB::IsInitialized() const {
6580
0
  return true;
6581
0
}
6582
6583
0
void PgsqlPagingStatePB::Swap(PgsqlPagingStatePB* other) {
6584
0
  if (other == this) return;
6585
0
  InternalSwap(other);
6586
0
}
6587
142k
void PgsqlPagingStatePB::InternalSwap(PgsqlPagingStatePB* other) {
6588
142k
  using std::swap;
6589
142k
  table_id_.Swap(&other->table_id_);
6590
142k
  next_partition_key_.Swap(&other->next_partition_key_);
6591
142k
  next_row_key_.Swap(&other->next_row_key_);
6592
142k
  swap(read_time_, other->read_time_);
6593
142k
  swap(total_num_rows_read_, other->total_num_rows_read_);
6594
142k
  swap(next_partition_index_, other->next_partition_index_);
6595
142k
  swap(_has_bits_[0], other->_has_bits_[0]);
6596
142k
  _internal_metadata_.Swap(&other->_internal_metadata_);
6597
142k
  swap(_cached_size_, other->_cached_size_);
6598
142k
}
6599
6600
206k
::google::protobuf::Metadata PgsqlPagingStatePB::GetMetadata() const {
6601
206k
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6602
206k
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6603
206k
}
6604
6605
6606
// ===================================================================
6607
6608
28.1k
void PgsqlBackfillSpecPB::InitAsDefaultInstance() {
6609
28.1k
}
6610
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6611
const int PgsqlBackfillSpecPB::kLimitFieldNumber;
6612
const int PgsqlBackfillSpecPB::kCountFieldNumber;
6613
const int PgsqlBackfillSpecPB::kNextRowKeyFieldNumber;
6614
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6615
6616
PgsqlBackfillSpecPB::PgsqlBackfillSpecPB()
6617
44.0k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6618
44.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6619
15.9k
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBackfillSpecPB();
6620
15.9k
  }
6621
44.0k
  SharedCtor();
6622
  // @@protoc_insertion_point(constructor:yb.PgsqlBackfillSpecPB)
6623
44.0k
}
6624
PgsqlBackfillSpecPB::PgsqlBackfillSpecPB(const PgsqlBackfillSpecPB& from)
6625
  : ::google::protobuf::Message(),
6626
      _internal_metadata_(NULL),
6627
      _has_bits_(from._has_bits_),
6628
0
      _cached_size_(0) {
6629
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6630
0
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6631
0
  if (from.has_next_row_key()) {
6632
0
    next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6633
0
  }
6634
0
  ::memcpy(&count_, &from.count_,
6635
0
    static_cast<size_t>(reinterpret_cast<char*>(&limit_) -
6636
0
    reinterpret_cast<char*>(&count_)) + sizeof(limit_));
6637
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlBackfillSpecPB)
6638
0
}
6639
6640
44.0k
void PgsqlBackfillSpecPB::SharedCtor() {
6641
44.0k
  _cached_size_ = 0;
6642
44.0k
  next_row_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6643
44.0k
  count_ = GOOGLE_LONGLONG(0);
6644
44.0k
  limit_ = GOOGLE_LONGLONG(-1);
6645
44.0k
}
6646
6647
15.9k
PgsqlBackfillSpecPB::~PgsqlBackfillSpecPB() {
6648
  // @@protoc_insertion_point(destructor:yb.PgsqlBackfillSpecPB)
6649
15.9k
  SharedDtor();
6650
15.9k
}
6651
6652
15.9k
void PgsqlBackfillSpecPB::SharedDtor() {
6653
15.9k
  next_row_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6654
15.9k
}
6655
6656
0
void PgsqlBackfillSpecPB::SetCachedSize(int size) const {
6657
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6658
0
  _cached_size_ = size;
6659
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6660
0
}
6661
0
const ::google::protobuf::Descriptor* PgsqlBackfillSpecPB::descriptor() {
6662
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6663
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6664
0
}
6665
6666
0
const PgsqlBackfillSpecPB& PgsqlBackfillSpecPB::default_instance() {
6667
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlBackfillSpecPB();
6668
0
  return *internal_default_instance();
6669
0
}
6670
6671
0
PgsqlBackfillSpecPB* PgsqlBackfillSpecPB::New(::google::protobuf::Arena* arena) const {
6672
0
  PgsqlBackfillSpecPB* n = new PgsqlBackfillSpecPB;
6673
0
  if (arena != NULL) {
6674
0
    arena->Own(n);
6675
0
  }
6676
0
  return n;
6677
0
}
6678
6679
6.83k
void PgsqlBackfillSpecPB::Clear() {
6680
// @@protoc_insertion_point(message_clear_start:yb.PgsqlBackfillSpecPB)
6681
6.83k
  ::google::protobuf::uint32 cached_has_bits = 0;
6682
  // Prevent compiler warnings about cached_has_bits being unused
6683
6.83k
  (void) cached_has_bits;
6684
6685
6.83k
  cached_has_bits = _has_bits_[0];
6686
6.83k
  if (cached_has_bits & 0x00000001u) {
6687
0
    GOOGLE_DCHECK(!next_row_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6688
0
    (*next_row_key_.UnsafeRawStringPointer())->clear();
6689
0
  }
6690
6.83k
  if (cached_has_bits & 6u) {
6691
0
    count_ = GOOGLE_LONGLONG(0);
6692
0
    limit_ = GOOGLE_LONGLONG(-1);
6693
0
  }
6694
6.83k
  _has_bits_.Clear();
6695
6.83k
  _internal_metadata_.Clear();
6696
6.83k
}
6697
6698
bool PgsqlBackfillSpecPB::MergePartialFromCodedStream(
6699
6.83k
    ::google::protobuf::io::CodedInputStream* input) {
6700
14.0k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
6701
6.83k
  ::google::protobuf::uint32 tag;
6702
  // @@protoc_insertion_point(parse_start:yb.PgsqlBackfillSpecPB)
6703
20.8k
  for (;;) {
6704
20.8k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6705
20.8k
    tag = p.first;
6706
20.8k
    if (!p.second) 
goto handle_unusual6.83k
;
6707
14.0k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6708
      // optional int64 limit = 1 [default = -1];
6709
6.83k
      case 1: {
6710
6.83k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6711
6.83k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
6712
6.83k
          set_has_limit();
6713
6.83k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6714
6.83k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6715
6.83k
                 input, &limit_)));
6716
6.83k
        } else {
6717
0
          goto handle_unusual;
6718
0
        }
6719
6.83k
        break;
6720
6.83k
      }
6721
6722
      // optional int64 count = 2 [default = 0];
6723
6.83k
      case 2: {
6724
2.32k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6725
2.32k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6726
2.32k
          set_has_count();
6727
2.32k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6728
2.32k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6729
2.32k
                 input, &count_)));
6730
2.32k
        } else {
6731
0
          goto handle_unusual;
6732
0
        }
6733
2.32k
        break;
6734
2.32k
      }
6735
6736
      // optional bytes next_row_key = 3;
6737
4.90k
      case 3: {
6738
4.90k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6739
4.90k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
6740
4.90k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6741
4.90k
                input, this->mutable_next_row_key()));
6742
18.4E
        } else {
6743
18.4E
          goto handle_unusual;
6744
18.4E
        }
6745
4.90k
        break;
6746
4.90k
      }
6747
6748
4.90k
      default: {
6749
6.83k
      handle_unusual:
6750
6.83k
        if (tag == 0) {
6751
6.83k
          goto success;
6752
6.83k
        }
6753
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6754
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6755
0
        break;
6756
0
      }
6757
14.0k
    }
6758
14.0k
  }
6759
6.83k
success:
6760
  // @@protoc_insertion_point(parse_success:yb.PgsqlBackfillSpecPB)
6761
6.83k
  return true;
6762
0
failure:
6763
  // @@protoc_insertion_point(parse_failure:yb.PgsqlBackfillSpecPB)
6764
0
  return false;
6765
6.83k
#undef DO_
6766
6.83k
}
6767
6768
void PgsqlBackfillSpecPB::SerializeWithCachedSizes(
6769
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6770
  // @@protoc_insertion_point(serialize_start:yb.PgsqlBackfillSpecPB)
6771
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6772
0
  (void) cached_has_bits;
6773
6774
0
  cached_has_bits = _has_bits_[0];
6775
  // optional int64 limit = 1 [default = -1];
6776
0
  if (cached_has_bits & 0x00000004u) {
6777
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->limit(), output);
6778
0
  }
6779
6780
  // optional int64 count = 2 [default = 0];
6781
0
  if (cached_has_bits & 0x00000002u) {
6782
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->count(), output);
6783
0
  }
6784
6785
  // optional bytes next_row_key = 3;
6786
0
  if (cached_has_bits & 0x00000001u) {
6787
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6788
0
      3, this->next_row_key(), output);
6789
0
  }
6790
6791
0
  if (_internal_metadata_.have_unknown_fields()) {
6792
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6793
0
        _internal_metadata_.unknown_fields(), output);
6794
0
  }
6795
  // @@protoc_insertion_point(serialize_end:yb.PgsqlBackfillSpecPB)
6796
0
}
6797
6798
::google::protobuf::uint8* PgsqlBackfillSpecPB::InternalSerializeWithCachedSizesToArray(
6799
4.60k
    bool deterministic, ::google::protobuf::uint8* target) const {
6800
4.60k
  (void)deterministic; // Unused
6801
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlBackfillSpecPB)
6802
4.60k
  ::google::protobuf::uint32 cached_has_bits = 0;
6803
4.60k
  (void) cached_has_bits;
6804
6805
4.60k
  cached_has_bits = _has_bits_[0];
6806
  // optional int64 limit = 1 [default = -1];
6807
4.60k
  if (cached_has_bits & 0x00000004u) {
6808
4.60k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->limit(), target);
6809
4.60k
  }
6810
6811
  // optional int64 count = 2 [default = 0];
6812
4.60k
  if (cached_has_bits & 0x00000002u) {
6813
2.33k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->count(), target);
6814
2.33k
  }
6815
6816
  // optional bytes next_row_key = 3;
6817
4.60k
  if (cached_has_bits & 0x00000001u) {
6818
2.66k
    target =
6819
2.66k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6820
2.66k
        3, this->next_row_key(), target);
6821
2.66k
  }
6822
6823
4.60k
  if (_internal_metadata_.have_unknown_fields()) {
6824
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6825
0
        _internal_metadata_.unknown_fields(), target);
6826
0
  }
6827
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlBackfillSpecPB)
6828
4.60k
  return target;
6829
4.60k
}
6830
6831
4.60k
size_t PgsqlBackfillSpecPB::ByteSizeLong() const {
6832
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlBackfillSpecPB)
6833
4.60k
  size_t total_size = 0;
6834
6835
4.60k
  if (_internal_metadata_.have_unknown_fields()) {
6836
0
    total_size +=
6837
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6838
0
        _internal_metadata_.unknown_fields());
6839
0
  }
6840
4.60k
  if (
_has_bits_[0 / 32] & 7u4.60k
) {
6841
    // optional bytes next_row_key = 3;
6842
4.60k
    if (has_next_row_key()) {
6843
2.66k
      total_size += 1 +
6844
2.66k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
6845
2.66k
          this->next_row_key());
6846
2.66k
    }
6847
6848
    // optional int64 count = 2 [default = 0];
6849
4.60k
    if (has_count()) {
6850
2.33k
      total_size += 1 +
6851
2.33k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6852
2.33k
          this->count());
6853
2.33k
    }
6854
6855
    // optional int64 limit = 1 [default = -1];
6856
4.60k
    if (has_limit()) {
6857
4.60k
      total_size += 1 +
6858
4.60k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
6859
4.60k
          this->limit());
6860
4.60k
    }
6861
6862
4.60k
  }
6863
4.60k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6864
4.60k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6865
4.60k
  _cached_size_ = cached_size;
6866
4.60k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6867
4.60k
  return total_size;
6868
4.60k
}
6869
6870
0
void PgsqlBackfillSpecPB::MergeFrom(const ::google::protobuf::Message& from) {
6871
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlBackfillSpecPB)
6872
0
  GOOGLE_DCHECK_NE(&from, this);
6873
0
  const PgsqlBackfillSpecPB* source =
6874
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlBackfillSpecPB>(
6875
0
          &from);
6876
0
  if (source == NULL) {
6877
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlBackfillSpecPB)
6878
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6879
0
  } else {
6880
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlBackfillSpecPB)
6881
0
    MergeFrom(*source);
6882
0
  }
6883
0
}
6884
6885
0
void PgsqlBackfillSpecPB::MergeFrom(const PgsqlBackfillSpecPB& from) {
6886
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlBackfillSpecPB)
6887
0
  GOOGLE_DCHECK_NE(&from, this);
6888
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6889
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6890
0
  (void) cached_has_bits;
6891
6892
0
  cached_has_bits = from._has_bits_[0];
6893
0
  if (cached_has_bits & 7u) {
6894
0
    if (cached_has_bits & 0x00000001u) {
6895
0
      set_has_next_row_key();
6896
0
      next_row_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_row_key_);
6897
0
    }
6898
0
    if (cached_has_bits & 0x00000002u) {
6899
0
      count_ = from.count_;
6900
0
    }
6901
0
    if (cached_has_bits & 0x00000004u) {
6902
0
      limit_ = from.limit_;
6903
0
    }
6904
0
    _has_bits_[0] |= cached_has_bits;
6905
0
  }
6906
0
}
6907
6908
0
void PgsqlBackfillSpecPB::CopyFrom(const ::google::protobuf::Message& from) {
6909
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlBackfillSpecPB)
6910
0
  if (&from == this) return;
6911
0
  Clear();
6912
0
  MergeFrom(from);
6913
0
}
6914
6915
0
void PgsqlBackfillSpecPB::CopyFrom(const PgsqlBackfillSpecPB& from) {
6916
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlBackfillSpecPB)
6917
0
  if (&from == this) return;
6918
0
  Clear();
6919
0
  MergeFrom(from);
6920
0
}
6921
6922
11.4k
bool PgsqlBackfillSpecPB::IsInitialized() const {
6923
11.4k
  return true;
6924
11.4k
}
6925
6926
0
void PgsqlBackfillSpecPB::Swap(PgsqlBackfillSpecPB* other) {
6927
0
  if (other == this) return;
6928
0
  InternalSwap(other);
6929
0
}
6930
4.49k
void PgsqlBackfillSpecPB::InternalSwap(PgsqlBackfillSpecPB* other) {
6931
4.49k
  using std::swap;
6932
4.49k
  next_row_key_.Swap(&other->next_row_key_);
6933
4.49k
  swap(count_, other->count_);
6934
4.49k
  swap(limit_, other->limit_);
6935
4.49k
  swap(_has_bits_[0], other->_has_bits_[0]);
6936
4.49k
  _internal_metadata_.Swap(&other->_internal_metadata_);
6937
4.49k
  swap(_cached_size_, other->_cached_size_);
6938
4.49k
}
6939
6940
0
::google::protobuf::Metadata PgsqlBackfillSpecPB::GetMetadata() const {
6941
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
6942
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
6943
0
}
6944
6945
6946
// ===================================================================
6947
6948
28.1k
void PgsqlReadRequestPB::InitAsDefaultInstance() {
6949
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->ybctid_column_value_ = const_cast< ::yb::PgsqlExpressionPB*>(
6950
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6951
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->index_request_ = const_cast< ::yb::PgsqlReadRequestPB*>(
6952
28.1k
      ::yb::PgsqlReadRequestPB::internal_default_instance());
6953
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->where_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
6954
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6955
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->condition_expr_ = const_cast< ::yb::PgsqlExpressionPB*>(
6956
28.1k
      ::yb::PgsqlExpressionPB::internal_default_instance());
6957
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->rsrow_desc_ = const_cast< ::yb::PgsqlRSRowDescPB*>(
6958
28.1k
      ::yb::PgsqlRSRowDescPB::internal_default_instance());
6959
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->column_refs_ = const_cast< ::yb::PgsqlColumnRefsPB*>(
6960
28.1k
      ::yb::PgsqlColumnRefsPB::internal_default_instance());
6961
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::PgsqlPagingStatePB*>(
6962
28.1k
      ::yb::PgsqlPagingStatePB::internal_default_instance());
6963
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->lower_bound_ = const_cast< ::yb::PgsqlPartitionBound*>(
6964
28.1k
      ::yb::PgsqlPartitionBound::internal_default_instance());
6965
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->upper_bound_ = const_cast< ::yb::PgsqlPartitionBound*>(
6966
28.1k
      ::yb::PgsqlPartitionBound::internal_default_instance());
6967
28.1k
  ::yb::_PgsqlReadRequestPB_default_instance_._instance.get_mutable()->sampling_state_ = const_cast< ::yb::PgsqlSamplingStatePB*>(
6968
28.1k
      ::yb::PgsqlSamplingStatePB::internal_default_instance());
6969
28.1k
}
6970
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6971
const int PgsqlReadRequestPB::kClientFieldNumber;
6972
const int PgsqlReadRequestPB::kStmtIdFieldNumber;
6973
const int PgsqlReadRequestPB::kTableIdFieldNumber;
6974
const int PgsqlReadRequestPB::kSchemaVersionFieldNumber;
6975
const int PgsqlReadRequestPB::kHashCodeFieldNumber;
6976
const int PgsqlReadRequestPB::kYbctidColumnValueFieldNumber;
6977
const int PgsqlReadRequestPB::kPartitionColumnValuesFieldNumber;
6978
const int PgsqlReadRequestPB::kRangeColumnValuesFieldNumber;
6979
const int PgsqlReadRequestPB::kIndexRequestFieldNumber;
6980
const int PgsqlReadRequestPB::kWhereExprFieldNumber;
6981
const int PgsqlReadRequestPB::kConditionExprFieldNumber;
6982
const int PgsqlReadRequestPB::kBatchArgumentsFieldNumber;
6983
const int PgsqlReadRequestPB::kRsrowDescFieldNumber;
6984
const int PgsqlReadRequestPB::kTargetsFieldNumber;
6985
const int PgsqlReadRequestPB::kColumnRefsFieldNumber;
6986
const int PgsqlReadRequestPB::kIsForwardScanFieldNumber;
6987
const int PgsqlReadRequestPB::kDistinctFieldNumber;
6988
const int PgsqlReadRequestPB::kIsAggregateFieldNumber;
6989
const int PgsqlReadRequestPB::kLimitFieldNumber;
6990
const int PgsqlReadRequestPB::kPagingStateFieldNumber;
6991
const int PgsqlReadRequestPB::kReturnPagingStateFieldNumber;
6992
const int PgsqlReadRequestPB::kMaxHashCodeFieldNumber;
6993
const int PgsqlReadRequestPB::kYsqlCatalogVersionFieldNumber;
6994
const int PgsqlReadRequestPB::kRowMarkTypeFieldNumber;
6995
const int PgsqlReadRequestPB::kWaitPolicyFieldNumber;
6996
const int PgsqlReadRequestPB::kLowerBoundFieldNumber;
6997
const int PgsqlReadRequestPB::kUpperBoundFieldNumber;
6998
const int PgsqlReadRequestPB::kDEPRECATEDMaxPartitionKeyFieldNumber;
6999
const int PgsqlReadRequestPB::kIsForBackfillFieldNumber;
7000
const int PgsqlReadRequestPB::kSamplingStateFieldNumber;
7001
const int PgsqlReadRequestPB::kBackfillSpecFieldNumber;
7002
const int PgsqlReadRequestPB::kWhereClausesFieldNumber;
7003
const int PgsqlReadRequestPB::kColRefsFieldNumber;
7004
const int PgsqlReadRequestPB::kPartitionKeyFieldNumber;
7005
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7006
7007
PgsqlReadRequestPB::PgsqlReadRequestPB()
7008
13.6M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7009
13.6M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7010
13.6M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlReadRequestPB();
7011
13.6M
  }
7012
13.6M
  SharedCtor();
7013
  // @@protoc_insertion_point(constructor:yb.PgsqlReadRequestPB)
7014
13.6M
}
7015
PgsqlReadRequestPB::PgsqlReadRequestPB(const PgsqlReadRequestPB& from)
7016
  : ::google::protobuf::Message(),
7017
      _internal_metadata_(NULL),
7018
      _has_bits_(from._has_bits_),
7019
      _cached_size_(0),
7020
      partition_column_values_(from.partition_column_values_),
7021
      targets_(from.targets_),
7022
      range_column_values_(from.range_column_values_),
7023
      batch_arguments_(from.batch_arguments_),
7024
      where_clauses_(from.where_clauses_),
7025
0
      col_refs_(from.col_refs_) {
7026
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7027
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7028
0
  if (from.has_table_id()) {
7029
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
7030
0
  }
7031
0
  deprecated_max_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7032
0
  if (from.has_deprecated_max_partition_key()) {
7033
0
    deprecated_max_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_max_partition_key_);
7034
0
  }
7035
0
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7036
0
  if (from.has_backfill_spec()) {
7037
0
    backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
7038
0
  }
7039
0
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7040
0
  if (from.has_partition_key()) {
7041
0
    partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
7042
0
  }
7043
0
  if (from.has_rsrow_desc()) {
7044
0
    rsrow_desc_ = new ::yb::PgsqlRSRowDescPB(*from.rsrow_desc_);
7045
0
  } else {
7046
0
    rsrow_desc_ = NULL;
7047
0
  }
7048
0
  if (from.has_where_expr()) {
7049
0
    where_expr_ = new ::yb::PgsqlExpressionPB(*from.where_expr_);
7050
0
  } else {
7051
0
    where_expr_ = NULL;
7052
0
  }
7053
0
  if (from.has_column_refs()) {
7054
0
    column_refs_ = new ::yb::PgsqlColumnRefsPB(*from.column_refs_);
7055
0
  } else {
7056
0
    column_refs_ = NULL;
7057
0
  }
7058
0
  if (from.has_paging_state()) {
7059
0
    paging_state_ = new ::yb::PgsqlPagingStatePB(*from.paging_state_);
7060
0
  } else {
7061
0
    paging_state_ = NULL;
7062
0
  }
7063
0
  if (from.has_ybctid_column_value()) {
7064
0
    ybctid_column_value_ = new ::yb::PgsqlExpressionPB(*from.ybctid_column_value_);
7065
0
  } else {
7066
0
    ybctid_column_value_ = NULL;
7067
0
  }
7068
0
  if (from.has_index_request()) {
7069
0
    index_request_ = new ::yb::PgsqlReadRequestPB(*from.index_request_);
7070
0
  } else {
7071
0
    index_request_ = NULL;
7072
0
  }
7073
0
  if (from.has_condition_expr()) {
7074
0
    condition_expr_ = new ::yb::PgsqlExpressionPB(*from.condition_expr_);
7075
0
  } else {
7076
0
    condition_expr_ = NULL;
7077
0
  }
7078
0
  if (from.has_lower_bound()) {
7079
0
    lower_bound_ = new ::yb::PgsqlPartitionBound(*from.lower_bound_);
7080
0
  } else {
7081
0
    lower_bound_ = NULL;
7082
0
  }
7083
0
  if (from.has_upper_bound()) {
7084
0
    upper_bound_ = new ::yb::PgsqlPartitionBound(*from.upper_bound_);
7085
0
  } else {
7086
0
    upper_bound_ = NULL;
7087
0
  }
7088
0
  if (from.has_sampling_state()) {
7089
0
    sampling_state_ = new ::yb::PgsqlSamplingStatePB(*from.sampling_state_);
7090
0
  } else {
7091
0
    sampling_state_ = NULL;
7092
0
  }
7093
0
  ::memcpy(&stmt_id_, &from.stmt_id_,
7094
0
    static_cast<size_t>(reinterpret_cast<char*>(&is_forward_scan_) -
7095
0
    reinterpret_cast<char*>(&stmt_id_)) + sizeof(is_forward_scan_));
7096
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlReadRequestPB)
7097
0
}
7098
7099
13.6M
void PgsqlReadRequestPB::SharedCtor() {
7100
13.6M
  _cached_size_ = 0;
7101
13.6M
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7102
13.6M
  deprecated_max_partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7103
13.6M
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7104
13.6M
  partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7105
13.6M
  ::memset(&rsrow_desc_, 0, static_cast<size_t>(
7106
13.6M
      reinterpret_cast<char*>(&row_mark_type_) -
7107
13.6M
      reinterpret_cast<char*>(&rsrow_desc_)) + sizeof(row_mark_type_));
7108
13.6M
  wait_policy_ = 2;
7109
13.6M
  client_ = 1;
7110
13.6M
  is_forward_scan_ = true;
7111
13.6M
}
7112
7113
13.6M
PgsqlReadRequestPB::~PgsqlReadRequestPB() {
7114
  // @@protoc_insertion_point(destructor:yb.PgsqlReadRequestPB)
7115
13.6M
  SharedDtor();
7116
13.6M
}
7117
7118
13.6M
void PgsqlReadRequestPB::SharedDtor() {
7119
13.6M
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7120
13.6M
  deprecated_max_partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7121
13.6M
  backfill_spec_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7122
13.6M
  partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7123
13.6M
  if (this != internal_default_instance()) 
delete rsrow_desc_13.6M
;
7124
13.6M
  if (this != internal_default_instance()) 
delete where_expr_13.6M
;
7125
13.6M
  if (this != internal_default_instance()) 
delete column_refs_13.6M
;
7126
13.6M
  if (this != internal_default_instance()) 
delete paging_state_13.6M
;
7127
13.6M
  if (this != internal_default_instance()) 
delete ybctid_column_value_13.6M
;
7128
13.6M
  if (this != internal_default_instance()) 
delete index_request_13.6M
;
7129
13.6M
  if (this != internal_default_instance()) 
delete condition_expr_13.6M
;
7130
13.6M
  if (this != internal_default_instance()) 
delete lower_bound_13.6M
;
7131
13.6M
  if (this != internal_default_instance()) 
delete upper_bound_13.6M
;
7132
13.6M
  if (this != internal_default_instance()) 
delete sampling_state_13.6M
;
7133
13.6M
}
7134
7135
0
void PgsqlReadRequestPB::SetCachedSize(int size) const {
7136
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7137
0
  _cached_size_ = size;
7138
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7139
0
}
7140
0
const ::google::protobuf::Descriptor* PgsqlReadRequestPB::descriptor() {
7141
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
7142
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7143
0
}
7144
7145
0
const PgsqlReadRequestPB& PgsqlReadRequestPB::default_instance() {
7146
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlReadRequestPB();
7147
0
  return *internal_default_instance();
7148
0
}
7149
7150
0
PgsqlReadRequestPB* PgsqlReadRequestPB::New(::google::protobuf::Arena* arena) const {
7151
0
  PgsqlReadRequestPB* n = new PgsqlReadRequestPB;
7152
0
  if (arena != NULL) {
7153
0
    arena->Own(n);
7154
0
  }
7155
0
  return n;
7156
0
}
7157
7158
2.95M
void PgsqlReadRequestPB::Clear() {
7159
// @@protoc_insertion_point(message_clear_start:yb.PgsqlReadRequestPB)
7160
2.95M
  ::google::protobuf::uint32 cached_has_bits = 0;
7161
  // Prevent compiler warnings about cached_has_bits being unused
7162
2.95M
  (void) cached_has_bits;
7163
7164
2.95M
  partition_column_values_.Clear();
7165
2.95M
  targets_.Clear();
7166
2.95M
  range_column_values_.Clear();
7167
2.95M
  batch_arguments_.Clear();
7168
2.95M
  where_clauses_.Clear();
7169
2.95M
  col_refs_.Clear();
7170
2.95M
  cached_has_bits = _has_bits_[0];
7171
2.95M
  if (cached_has_bits & 255u) {
7172
0
    if (cached_has_bits & 0x00000001u) {
7173
0
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7174
0
      (*table_id_.UnsafeRawStringPointer())->clear();
7175
0
    }
7176
0
    if (cached_has_bits & 0x00000002u) {
7177
0
      GOOGLE_DCHECK(!deprecated_max_partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7178
0
      (*deprecated_max_partition_key_.UnsafeRawStringPointer())->clear();
7179
0
    }
7180
0
    if (cached_has_bits & 0x00000004u) {
7181
0
      GOOGLE_DCHECK(!backfill_spec_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7182
0
      (*backfill_spec_.UnsafeRawStringPointer())->clear();
7183
0
    }
7184
0
    if (cached_has_bits & 0x00000008u) {
7185
0
      GOOGLE_DCHECK(!partition_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7186
0
      (*partition_key_.UnsafeRawStringPointer())->clear();
7187
0
    }
7188
0
    if (cached_has_bits & 0x00000010u) {
7189
0
      GOOGLE_DCHECK(rsrow_desc_ != NULL);
7190
0
      rsrow_desc_->Clear();
7191
0
    }
7192
0
    if (cached_has_bits & 0x00000020u) {
7193
0
      GOOGLE_DCHECK(where_expr_ != NULL);
7194
0
      where_expr_->Clear();
7195
0
    }
7196
0
    if (cached_has_bits & 0x00000040u) {
7197
0
      GOOGLE_DCHECK(column_refs_ != NULL);
7198
0
      column_refs_->Clear();
7199
0
    }
7200
0
    if (cached_has_bits & 0x00000080u) {
7201
0
      GOOGLE_DCHECK(paging_state_ != NULL);
7202
0
      paging_state_->Clear();
7203
0
    }
7204
0
  }
7205
2.95M
  if (cached_has_bits & 16128u) {
7206
0
    if (cached_has_bits & 0x00000100u) {
7207
0
      GOOGLE_DCHECK(ybctid_column_value_ != NULL);
7208
0
      ybctid_column_value_->Clear();
7209
0
    }
7210
0
    if (cached_has_bits & 0x00000200u) {
7211
0
      GOOGLE_DCHECK(index_request_ != NULL);
7212
0
      index_request_->Clear();
7213
0
    }
7214
0
    if (cached_has_bits & 0x00000400u) {
7215
0
      GOOGLE_DCHECK(condition_expr_ != NULL);
7216
0
      condition_expr_->Clear();
7217
0
    }
7218
0
    if (cached_has_bits & 0x00000800u) {
7219
0
      GOOGLE_DCHECK(lower_bound_ != NULL);
7220
0
      lower_bound_->Clear();
7221
0
    }
7222
0
    if (cached_has_bits & 0x00001000u) {
7223
0
      GOOGLE_DCHECK(upper_bound_ != NULL);
7224
0
      upper_bound_->Clear();
7225
0
    }
7226
0
    if (cached_has_bits & 0x00002000u) {
7227
0
      GOOGLE_DCHECK(sampling_state_ != NULL);
7228
0
      sampling_state_->Clear();
7229
0
    }
7230
0
  }
7231
2.95M
  if (cached_has_bits & 49152u) {
7232
0
    ::memset(&stmt_id_, 0, static_cast<size_t>(
7233
0
        reinterpret_cast<char*>(&schema_version_) -
7234
0
        reinterpret_cast<char*>(&stmt_id_)) + sizeof(schema_version_));
7235
0
  }
7236
2.95M
  if (cached_has_bits & 16711680u) {
7237
0
    ::memset(&hash_code_, 0, static_cast<size_t>(
7238
0
        reinterpret_cast<char*>(&max_hash_code_) -
7239
0
        reinterpret_cast<char*>(&hash_code_)) + sizeof(max_hash_code_));
7240
0
  }
7241
2.95M
  if (cached_has_bits & 251658240u) {
7242
0
    row_mark_type_ = 0;
7243
0
    wait_policy_ = 2;
7244
0
    client_ = 1;
7245
0
    is_forward_scan_ = true;
7246
0
  }
7247
2.95M
  _has_bits_.Clear();
7248
2.95M
  _internal_metadata_.Clear();
7249
2.95M
}
7250
7251
bool PgsqlReadRequestPB::MergePartialFromCodedStream(
7252
8.59M
    ::google::protobuf::io::CodedInputStream* input) {
7253
221M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
7254
8.59M
  ::google::protobuf::uint32 tag;
7255
  // @@protoc_insertion_point(parse_start:yb.PgsqlReadRequestPB)
7256
229M
  for (;;) {
7257
229M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
7258
229M
    tag = p.first;
7259
229M
    if (!p.second) 
goto handle_unusual8.59M
;
7260
220M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7261
      // optional .yb.QLClient client = 1;
7262
7.68M
      case 1: {
7263
7.68M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7264
7.68M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7265
7.68M
          int value;
7266
7.68M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7267
7.68M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7268
7.68M
                 input, &value)));
7269
7.68M
          if (::yb::QLClient_IsValid(value)) {
7270
7.68M
            set_client(static_cast< ::yb::QLClient >(value));
7271
7.68M
          } else {
7272
1.13k
            mutable_unknown_fields()->AddVarint(
7273
1.13k
                1, static_cast< ::google::protobuf::uint64>(value));
7274
1.13k
          }
7275
18.4E
        } else {
7276
18.4E
          goto handle_unusual;
7277
18.4E
        }
7278
7.68M
        break;
7279
7.68M
      }
7280
7281
      // optional uint64 stmt_id = 2;
7282
7.68M
      case 2: {
7283
7.68M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7284
7.68M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
7285
7.68M
          set_has_stmt_id();
7286
7.68M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7287
7.68M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7288
7.68M
                 input, &stmt_id_)));
7289
18.4E
        } else {
7290
18.4E
          goto handle_unusual;
7291
18.4E
        }
7292
7.68M
        break;
7293
7.68M
      }
7294
7295
      // optional uint32 schema_version = 3;
7296
7.68M
      case 3: {
7297
7.68M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7298
7.68M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
7299
7.68M
          set_has_schema_version();
7300
7.68M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7301
7.68M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7302
7.68M
                 input, &schema_version_)));
7303
18.4E
        } else {
7304
18.4E
          goto handle_unusual;
7305
18.4E
        }
7306
7.68M
        break;
7307
7.68M
      }
7308
7309
      // optional uint32 hash_code = 4;
7310
7.68M
      case 4: {
7311
5.04M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7312
5.04M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
7313
5.04M
          set_has_hash_code();
7314
5.04M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7315
5.04M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7316
5.04M
                 input, &hash_code_)));
7317
18.4E
        } else {
7318
18.4E
          goto handle_unusual;
7319
18.4E
        }
7320
5.04M
        break;
7321
5.04M
      }
7322
7323
      // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7324
5.04M
      case 5: {
7325
4.88M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7326
4.88M
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
7327
4.88M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_partition_column_values()));
7328
18.4E
        } else {
7329
18.4E
          goto handle_unusual;
7330
18.4E
        }
7331
4.88M
        break;
7332
4.88M
      }
7333
7334
      // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7335
4.88M
      case 6: {
7336
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7337
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
7338
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7339
0
               input, mutable_rsrow_desc()));
7340
0
        } else {
7341
0
          goto handle_unusual;
7342
0
        }
7343
0
        break;
7344
0
      }
7345
7346
      // repeated .yb.PgsqlExpressionPB targets = 7;
7347
58.5M
      case 7: {
7348
58.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7349
58.5M
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
7350
58.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_targets()));
7351
18.4E
        } else {
7352
18.4E
          goto handle_unusual;
7353
18.4E
        }
7354
58.5M
        break;
7355
58.5M
      }
7356
7357
      // optional .yb.PgsqlExpressionPB where_expr = 8;
7358
58.5M
      case 8: {
7359
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7360
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
7361
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7362
0
               input, mutable_where_expr()));
7363
0
        } else {
7364
0
          goto handle_unusual;
7365
0
        }
7366
0
        break;
7367
0
      }
7368
7369
      // optional .yb.PgsqlColumnRefsPB column_refs = 9;
7370
8.59M
      case 9: {
7371
8.59M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7372
8.59M
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
7373
8.59M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7374
8.59M
               input, mutable_column_refs()));
7375
18.4E
        } else {
7376
18.4E
          goto handle_unusual;
7377
18.4E
        }
7378
8.59M
        break;
7379
8.59M
      }
7380
7381
      // optional bool is_forward_scan = 10 [default = true];
7382
8.59M
      case 10: {
7383
7.28M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7384
7.28M
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
7385
7.28M
          set_has_is_forward_scan();
7386
7.28M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7387
7.28M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7388
7.28M
                 input, &is_forward_scan_)));
7389
18.4E
        } else {
7390
18.4E
          goto handle_unusual;
7391
18.4E
        }
7392
7.28M
        break;
7393
7.28M
      }
7394
7395
      // optional bool distinct = 11 [default = false];
7396
7.28M
      case 11: {
7397
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7398
0
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
7399
0
          set_has_distinct();
7400
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7401
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7402
0
                 input, &distinct_)));
7403
0
        } else {
7404
0
          goto handle_unusual;
7405
0
        }
7406
0
        break;
7407
0
      }
7408
7409
      // optional bool is_aggregate = 12 [default = false];
7410
8.59M
      case 12: {
7411
8.59M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7412
8.59M
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
7413
8.59M
          set_has_is_aggregate();
7414
8.59M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7415
8.59M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7416
8.59M
                 input, &is_aggregate_)));
7417
18.4E
        } else {
7418
18.4E
          goto handle_unusual;
7419
18.4E
        }
7420
8.59M
        break;
7421
8.59M
      }
7422
7423
      // optional uint64 limit = 13;
7424
8.59M
      case 13: {
7425
7.67M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7426
7.67M
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
7427
7.67M
          set_has_limit();
7428
7.67M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7429
7.67M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7430
7.67M
                 input, &limit_)));
7431
18.4E
        } else {
7432
18.4E
          goto handle_unusual;
7433
18.4E
        }
7434
7.67M
        break;
7435
7.67M
      }
7436
7437
      // optional .yb.PgsqlPagingStatePB paging_state = 14;
7438
7.67M
      case 14: {
7439
206k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7440
206k
            static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
7441
206k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7442
206k
               input, mutable_paging_state()));
7443
206k
        } else {
7444
9
          goto handle_unusual;
7445
9
        }
7446
206k
        break;
7447
206k
      }
7448
7449
      // optional bool return_paging_state = 15 [default = false];
7450
7.67M
      case 15: {
7451
7.67M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7452
7.67M
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
7453
7.67M
          set_has_return_paging_state();
7454
7.67M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7455
7.67M
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7456
7.67M
                 input, &return_paging_state_)));
7457
7.67M
        } else {
7458
18
          goto handle_unusual;
7459
18
        }
7460
7.67M
        break;
7461
7.67M
      }
7462
7463
      // optional uint64 ysql_catalog_version = 16;
7464
7.67M
      case 16: {
7465
5.02M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7466
5.02M
            static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
7467
5.02M
          set_has_ysql_catalog_version();
7468
5.02M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7469
5.02M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
7470
5.02M
                 input, &ysql_catalog_version_)));
7471
18.4E
        } else {
7472
18.4E
          goto handle_unusual;
7473
18.4E
        }
7474
5.02M
        break;
7475
5.02M
      }
7476
7477
      // optional uint32 max_hash_code = 17;
7478
5.02M
      case 17: {
7479
4.90M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7480
4.90M
            static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
7481
4.90M
          set_has_max_hash_code();
7482
4.90M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7483
4.90M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
7484
4.90M
                 input, &max_hash_code_)));
7485
18.4E
        } else {
7486
18.4E
          goto handle_unusual;
7487
18.4E
        }
7488
4.90M
        break;
7489
4.90M
      }
7490
7491
      // repeated .yb.PgsqlExpressionPB range_column_values = 18;
7492
4.90M
      case 18: {
7493
3.58M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7494
3.58M
            static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
7495
3.58M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_range_column_values()));
7496
18.4E
        } else {
7497
18.4E
          goto handle_unusual;
7498
18.4E
        }
7499
3.58M
        break;
7500
3.58M
      }
7501
7502
      // optional bytes table_id = 19;
7503
8.59M
      case 19: {
7504
8.59M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7505
8.59M
            static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
7506
8.59M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7507
8.59M
                input, this->mutable_table_id()));
7508
18.4E
        } else {
7509
18.4E
          goto handle_unusual;
7510
18.4E
        }
7511
8.59M
        break;
7512
8.59M
      }
7513
7514
      // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
7515
8.59M
      case 20: {
7516
33.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7517
33.5k
            static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
7518
33.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7519
33.5k
               input, mutable_ybctid_column_value()));
7520
33.5k
        } else {
7521
0
          goto handle_unusual;
7522
0
        }
7523
33.5k
        break;
7524
33.5k
      }
7525
7526
      // optional .yb.PgsqlReadRequestPB index_request = 21;
7527
917k
      case 21: {
7528
917k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7529
917k
            static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
7530
917k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7531
917k
               input, mutable_index_request()));
7532
18.4E
        } else {
7533
18.4E
          goto handle_unusual;
7534
18.4E
        }
7535
917k
        break;
7536
917k
      }
7537
7538
      // optional .yb.PgsqlExpressionPB condition_expr = 22;
7539
917k
      case 22: {
7540
13.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7541
13.5k
            static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
7542
13.5k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7543
13.5k
               input, mutable_condition_expr()));
7544
13.5k
        } else {
7545
0
          goto handle_unusual;
7546
0
        }
7547
13.5k
        break;
7548
13.5k
      }
7549
7550
      // optional .yb.RowMarkType row_mark_type = 23;
7551
17.6k
      case 23: {
7552
17.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7553
17.6k
            static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
7554
17.6k
          int value;
7555
17.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7556
17.6k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7557
17.6k
                 input, &value)));
7558
17.6k
          if (::yb::RowMarkType_IsValid(value)) {
7559
17.6k
            set_row_mark_type(static_cast< ::yb::RowMarkType >(value));
7560
17.6k
          } else {
7561
30
            mutable_unknown_fields()->AddVarint(
7562
30
                23, static_cast< ::google::protobuf::uint64>(value));
7563
30
          }
7564
18.4E
        } else {
7565
18.4E
          goto handle_unusual;
7566
18.4E
        }
7567
17.6k
        break;
7568
17.6k
      }
7569
7570
      // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
7571
2.35M
      case 24: {
7572
2.35M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7573
2.35M
            static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
7574
2.35M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_batch_arguments()));
7575
2.35M
        } else {
7576
0
          goto handle_unusual;
7577
0
        }
7578
2.35M
        break;
7579
2.35M
      }
7580
7581
      // optional bytes DEPRECATED_max_partition_key = 25;
7582
2.35M
      case 25: {
7583
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7584
0
            static_cast< ::google::protobuf::uint8>(202u /* 202 & 0xFF */)) {
7585
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7586
0
                input, this->mutable_deprecated_max_partition_key()));
7587
0
        } else {
7588
0
          goto handle_unusual;
7589
0
        }
7590
0
        break;
7591
0
      }
7592
7593
      // optional .yb.PgsqlPartitionBound lower_bound = 27;
7594
26.3k
      case 27: {
7595
26.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7596
26.3k
            static_cast< ::google::protobuf::uint8>(218u /* 218 & 0xFF */)) {
7597
26.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7598
26.3k
               input, mutable_lower_bound()));
7599
26.3k
        } else {
7600
1
          goto handle_unusual;
7601
1
        }
7602
26.3k
        break;
7603
26.3k
      }
7604
7605
      // optional .yb.PgsqlPartitionBound upper_bound = 28;
7606
1.40M
      case 28: {
7607
1.40M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7608
1.40M
            static_cast< ::google::protobuf::uint8>(226u /* 226 & 0xFF */)) {
7609
1.40M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7610
1.40M
               input, mutable_upper_bound()));
7611
18.4E
        } else {
7612
18.4E
          goto handle_unusual;
7613
18.4E
        }
7614
1.40M
        break;
7615
1.40M
      }
7616
7617
      // optional bool is_for_backfill = 29 [default = false];
7618
1.40M
      case 29: {
7619
2.38k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7620
2.38k
            static_cast< ::google::protobuf::uint8>(232u /* 232 & 0xFF */)) {
7621
2.38k
          set_has_is_for_backfill();
7622
2.38k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7623
2.38k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7624
2.38k
                 input, &is_for_backfill_)));
7625
2.38k
        } else {
7626
0
          goto handle_unusual;
7627
0
        }
7628
2.38k
        break;
7629
2.38k
      }
7630
7631
      // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
7632
2.38k
      case 30: {
7633
705
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7634
705
            static_cast< ::google::protobuf::uint8>(242u /* 242 & 0xFF */)) {
7635
705
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7636
705
               input, mutable_sampling_state()));
7637
705
        } else {
7638
0
          goto handle_unusual;
7639
0
        }
7640
705
        break;
7641
705
      }
7642
7643
      // optional bytes backfill_spec = 31;
7644
2.38k
      case 31: {
7645
2.38k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7646
2.38k
            static_cast< ::google::protobuf::uint8>(250u /* 250 & 0xFF */)) {
7647
2.38k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7648
2.38k
                input, this->mutable_backfill_spec()));
7649
2.38k
        } else {
7650
0
          goto handle_unusual;
7651
0
        }
7652
2.38k
        break;
7653
2.38k
      }
7654
7655
      // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
7656
17.6k
      case 32: {
7657
17.6k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7658
17.6k
            static_cast< ::google::protobuf::uint8>(0u /* 256 & 0xFF */)) {
7659
17.6k
          int value;
7660
17.6k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7661
17.6k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7662
17.6k
                 input, &value)));
7663
17.6k
          if (::yb::WaitPolicy_IsValid(value)) {
7664
17.6k
            set_wait_policy(static_cast< ::yb::WaitPolicy >(value));
7665
17.6k
          } else {
7666
21
            mutable_unknown_fields()->AddVarint(
7667
21
                32, static_cast< ::google::protobuf::uint64>(value));
7668
21
          }
7669
17.6k
        } else {
7670
0
          goto handle_unusual;
7671
0
        }
7672
17.6k
        break;
7673
17.6k
      }
7674
7675
      // repeated .yb.PgsqlExpressionPB where_clauses = 33;
7676
17.6k
      case 33: {
7677
632
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7678
632
            static_cast< ::google::protobuf::uint8>(10u /* 266 & 0xFF */)) {
7679
632
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_where_clauses()));
7680
632
        } else {
7681
0
          goto handle_unusual;
7682
0
        }
7683
632
        break;
7684
632
      }
7685
7686
      // repeated .yb.PgsqlColRefPB col_refs = 34;
7687
55.7M
      case 34: {
7688
55.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7689
55.7M
            static_cast< ::google::protobuf::uint8>(18u /* 274 & 0xFF */)) {
7690
55.7M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_col_refs()));
7691
18.4E
        } else {
7692
18.4E
          goto handle_unusual;
7693
18.4E
        }
7694
55.7M
        break;
7695
55.7M
      }
7696
7697
      // optional bytes partition_key = 35;
7698
55.7M
      case 35: {
7699
7.08M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7700
7.08M
            static_cast< ::google::protobuf::uint8>(26u /* 282 & 0xFF */)) {
7701
7.08M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7702
7.08M
                input, this->mutable_partition_key()));
7703
18.4E
        } else {
7704
18.4E
          goto handle_unusual;
7705
18.4E
        }
7706
7.08M
        break;
7707
7.08M
      }
7708
7709
7.08M
      default: {
7710
8.59M
      handle_unusual:
7711
8.59M
        if (
tag == 08.59M
) {
7712
8.59M
          goto success;
7713
8.59M
        }
7714
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7715
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7716
18.4E
        break;
7717
18.4E
      }
7718
220M
    }
7719
220M
  }
7720
8.59M
success:
7721
  // @@protoc_insertion_point(parse_success:yb.PgsqlReadRequestPB)
7722
8.59M
  return true;
7723
0
failure:
7724
  // @@protoc_insertion_point(parse_failure:yb.PgsqlReadRequestPB)
7725
0
  return false;
7726
8.59M
#undef DO_
7727
8.59M
}
7728
7729
void PgsqlReadRequestPB::SerializeWithCachedSizes(
7730
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7731
  // @@protoc_insertion_point(serialize_start:yb.PgsqlReadRequestPB)
7732
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7733
0
  (void) cached_has_bits;
7734
7735
0
  cached_has_bits = _has_bits_[0];
7736
  // optional .yb.QLClient client = 1;
7737
0
  if (cached_has_bits & 0x04000000u) {
7738
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7739
0
      1, this->client(), output);
7740
0
  }
7741
7742
  // optional uint64 stmt_id = 2;
7743
0
  if (cached_has_bits & 0x00004000u) {
7744
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->stmt_id(), output);
7745
0
  }
7746
7747
  // optional uint32 schema_version = 3;
7748
0
  if (cached_has_bits & 0x00008000u) {
7749
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->schema_version(), output);
7750
0
  }
7751
7752
  // optional uint32 hash_code = 4;
7753
0
  if (cached_has_bits & 0x00010000u) {
7754
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->hash_code(), output);
7755
0
  }
7756
7757
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7758
0
  for (unsigned int i = 0,
7759
0
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; i++) {
7760
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7761
0
      5, this->partition_column_values(static_cast<int>(i)), output);
7762
0
  }
7763
7764
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7765
0
  if (cached_has_bits & 0x00000010u) {
7766
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7767
0
      6, *this->rsrow_desc_, output);
7768
0
  }
7769
7770
  // repeated .yb.PgsqlExpressionPB targets = 7;
7771
0
  for (unsigned int i = 0,
7772
0
      n = static_cast<unsigned int>(this->targets_size()); i < n; i++) {
7773
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7774
0
      7, this->targets(static_cast<int>(i)), output);
7775
0
  }
7776
7777
  // optional .yb.PgsqlExpressionPB where_expr = 8;
7778
0
  if (cached_has_bits & 0x00000020u) {
7779
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7780
0
      8, *this->where_expr_, output);
7781
0
  }
7782
7783
  // optional .yb.PgsqlColumnRefsPB column_refs = 9;
7784
0
  if (cached_has_bits & 0x00000040u) {
7785
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7786
0
      9, *this->column_refs_, output);
7787
0
  }
7788
7789
  // optional bool is_forward_scan = 10 [default = true];
7790
0
  if (cached_has_bits & 0x08000000u) {
7791
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->is_forward_scan(), output);
7792
0
  }
7793
7794
  // optional bool distinct = 11 [default = false];
7795
0
  if (cached_has_bits & 0x00080000u) {
7796
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->distinct(), output);
7797
0
  }
7798
7799
  // optional bool is_aggregate = 12 [default = false];
7800
0
  if (cached_has_bits & 0x00100000u) {
7801
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(12, this->is_aggregate(), output);
7802
0
  }
7803
7804
  // optional uint64 limit = 13;
7805
0
  if (cached_has_bits & 0x00020000u) {
7806
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(13, this->limit(), output);
7807
0
  }
7808
7809
  // optional .yb.PgsqlPagingStatePB paging_state = 14;
7810
0
  if (cached_has_bits & 0x00000080u) {
7811
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7812
0
      14, *this->paging_state_, output);
7813
0
  }
7814
7815
  // optional bool return_paging_state = 15 [default = false];
7816
0
  if (cached_has_bits & 0x00200000u) {
7817
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->return_paging_state(), output);
7818
0
  }
7819
7820
  // optional uint64 ysql_catalog_version = 16;
7821
0
  if (cached_has_bits & 0x00040000u) {
7822
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(16, this->ysql_catalog_version(), output);
7823
0
  }
7824
7825
  // optional uint32 max_hash_code = 17;
7826
0
  if (cached_has_bits & 0x00800000u) {
7827
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(17, this->max_hash_code(), output);
7828
0
  }
7829
7830
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
7831
0
  for (unsigned int i = 0,
7832
0
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; i++) {
7833
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7834
0
      18, this->range_column_values(static_cast<int>(i)), output);
7835
0
  }
7836
7837
  // optional bytes table_id = 19;
7838
0
  if (cached_has_bits & 0x00000001u) {
7839
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7840
0
      19, this->table_id(), output);
7841
0
  }
7842
7843
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
7844
0
  if (cached_has_bits & 0x00000100u) {
7845
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7846
0
      20, *this->ybctid_column_value_, output);
7847
0
  }
7848
7849
  // optional .yb.PgsqlReadRequestPB index_request = 21;
7850
0
  if (cached_has_bits & 0x00000200u) {
7851
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7852
0
      21, *this->index_request_, output);
7853
0
  }
7854
7855
  // optional .yb.PgsqlExpressionPB condition_expr = 22;
7856
0
  if (cached_has_bits & 0x00000400u) {
7857
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7858
0
      22, *this->condition_expr_, output);
7859
0
  }
7860
7861
  // optional .yb.RowMarkType row_mark_type = 23;
7862
0
  if (cached_has_bits & 0x01000000u) {
7863
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7864
0
      23, this->row_mark_type(), output);
7865
0
  }
7866
7867
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
7868
0
  for (unsigned int i = 0,
7869
0
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; i++) {
7870
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7871
0
      24, this->batch_arguments(static_cast<int>(i)), output);
7872
0
  }
7873
7874
  // optional bytes DEPRECATED_max_partition_key = 25;
7875
0
  if (cached_has_bits & 0x00000002u) {
7876
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7877
0
      25, this->deprecated_max_partition_key(), output);
7878
0
  }
7879
7880
  // optional .yb.PgsqlPartitionBound lower_bound = 27;
7881
0
  if (cached_has_bits & 0x00000800u) {
7882
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7883
0
      27, *this->lower_bound_, output);
7884
0
  }
7885
7886
  // optional .yb.PgsqlPartitionBound upper_bound = 28;
7887
0
  if (cached_has_bits & 0x00001000u) {
7888
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7889
0
      28, *this->upper_bound_, output);
7890
0
  }
7891
7892
  // optional bool is_for_backfill = 29 [default = false];
7893
0
  if (cached_has_bits & 0x00400000u) {
7894
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(29, this->is_for_backfill(), output);
7895
0
  }
7896
7897
  // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
7898
0
  if (cached_has_bits & 0x00002000u) {
7899
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7900
0
      30, *this->sampling_state_, output);
7901
0
  }
7902
7903
  // optional bytes backfill_spec = 31;
7904
0
  if (cached_has_bits & 0x00000004u) {
7905
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7906
0
      31, this->backfill_spec(), output);
7907
0
  }
7908
7909
  // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
7910
0
  if (cached_has_bits & 0x02000000u) {
7911
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
7912
0
      32, this->wait_policy(), output);
7913
0
  }
7914
7915
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
7916
0
  for (unsigned int i = 0,
7917
0
      n = static_cast<unsigned int>(this->where_clauses_size()); i < n; i++) {
7918
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7919
0
      33, this->where_clauses(static_cast<int>(i)), output);
7920
0
  }
7921
7922
  // repeated .yb.PgsqlColRefPB col_refs = 34;
7923
0
  for (unsigned int i = 0,
7924
0
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; i++) {
7925
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7926
0
      34, this->col_refs(static_cast<int>(i)), output);
7927
0
  }
7928
7929
  // optional bytes partition_key = 35;
7930
0
  if (cached_has_bits & 0x00000008u) {
7931
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7932
0
      35, this->partition_key(), output);
7933
0
  }
7934
7935
0
  if (_internal_metadata_.have_unknown_fields()) {
7936
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7937
0
        _internal_metadata_.unknown_fields(), output);
7938
0
  }
7939
  // @@protoc_insertion_point(serialize_end:yb.PgsqlReadRequestPB)
7940
0
}
7941
7942
::google::protobuf::uint8* PgsqlReadRequestPB::InternalSerializeWithCachedSizesToArray(
7943
8.59M
    bool deterministic, ::google::protobuf::uint8* target) const {
7944
8.59M
  (void)deterministic; // Unused
7945
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlReadRequestPB)
7946
8.59M
  ::google::protobuf::uint32 cached_has_bits = 0;
7947
8.59M
  (void) cached_has_bits;
7948
7949
8.59M
  cached_has_bits = _has_bits_[0];
7950
  // optional .yb.QLClient client = 1;
7951
8.59M
  if (cached_has_bits & 0x04000000u) {
7952
7.67M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7953
7.67M
      1, this->client(), target);
7954
7.67M
  }
7955
7956
  // optional uint64 stmt_id = 2;
7957
8.59M
  if (cached_has_bits & 0x00004000u) {
7958
7.67M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->stmt_id(), target);
7959
7.67M
  }
7960
7961
  // optional uint32 schema_version = 3;
7962
8.59M
  if (cached_has_bits & 0x00008000u) {
7963
7.67M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->schema_version(), target);
7964
7.67M
  }
7965
7966
  // optional uint32 hash_code = 4;
7967
8.59M
  if (cached_has_bits & 0x00010000u) {
7968
5.03M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->hash_code(), target);
7969
5.03M
  }
7970
7971
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
7972
8.59M
  for (unsigned int i = 0,
7973
13.4M
      n = static_cast<unsigned int>(this->partition_column_values_size()); i < n; 
i++4.88M
) {
7974
4.88M
    target = ::google::protobuf::internal::WireFormatLite::
7975
4.88M
      InternalWriteMessageToArray(
7976
4.88M
        5, this->partition_column_values(static_cast<int>(i)), deterministic, target);
7977
4.88M
  }
7978
7979
  // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
7980
8.59M
  if (cached_has_bits & 0x00000010u) {
7981
0
    target = ::google::protobuf::internal::WireFormatLite::
7982
0
      InternalWriteMessageToArray(
7983
0
        6, *this->rsrow_desc_, deterministic, target);
7984
0
  }
7985
7986
  // repeated .yb.PgsqlExpressionPB targets = 7;
7987
8.59M
  for (unsigned int i = 0,
7988
67.1M
      n = static_cast<unsigned int>(this->targets_size()); i < n; 
i++58.5M
) {
7989
58.5M
    target = ::google::protobuf::internal::WireFormatLite::
7990
58.5M
      InternalWriteMessageToArray(
7991
58.5M
        7, this->targets(static_cast<int>(i)), deterministic, target);
7992
58.5M
  }
7993
7994
  // optional .yb.PgsqlExpressionPB where_expr = 8;
7995
8.59M
  if (cached_has_bits & 0x00000020u) {
7996
0
    target = ::google::protobuf::internal::WireFormatLite::
7997
0
      InternalWriteMessageToArray(
7998
0
        8, *this->where_expr_, deterministic, target);
7999
0
  }
8000
8001
  // optional .yb.PgsqlColumnRefsPB column_refs = 9;
8002
8.59M
  if (cached_has_bits & 0x00000040u) {
8003
8.59M
    target = ::google::protobuf::internal::WireFormatLite::
8004
8.59M
      InternalWriteMessageToArray(
8005
8.59M
        9, *this->column_refs_, deterministic, target);
8006
8.59M
  }
8007
8008
  // optional bool is_forward_scan = 10 [default = true];
8009
8.59M
  if (cached_has_bits & 0x08000000u) {
8010
7.28M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->is_forward_scan(), target);
8011
7.28M
  }
8012
8013
  // optional bool distinct = 11 [default = false];
8014
8.59M
  if (cached_has_bits & 0x00080000u) {
8015
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->distinct(), target);
8016
0
  }
8017
8018
  // optional bool is_aggregate = 12 [default = false];
8019
8.59M
  if (cached_has_bits & 0x00100000u) {
8020
8.58M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->is_aggregate(), target);
8021
8.58M
  }
8022
8023
  // optional uint64 limit = 13;
8024
8.59M
  if (cached_has_bits & 0x00020000u) {
8025
7.67M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(13, this->limit(), target);
8026
7.67M
  }
8027
8028
  // optional .yb.PgsqlPagingStatePB paging_state = 14;
8029
8.59M
  if (cached_has_bits & 0x00000080u) {
8030
206k
    target = ::google::protobuf::internal::WireFormatLite::
8031
206k
      InternalWriteMessageToArray(
8032
206k
        14, *this->paging_state_, deterministic, target);
8033
206k
  }
8034
8035
  // optional bool return_paging_state = 15 [default = false];
8036
8.59M
  if (cached_has_bits & 0x00200000u) {
8037
7.67M
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->return_paging_state(), target);
8038
7.67M
  }
8039
8040
  // optional uint64 ysql_catalog_version = 16;
8041
8.59M
  if (cached_has_bits & 0x00040000u) {
8042
5.02M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(16, this->ysql_catalog_version(), target);
8043
5.02M
  }
8044
8045
  // optional uint32 max_hash_code = 17;
8046
8.59M
  if (cached_has_bits & 0x00800000u) {
8047
4.89M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(17, this->max_hash_code(), target);
8048
4.89M
  }
8049
8050
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
8051
8.59M
  for (unsigned int i = 0,
8052
12.1M
      n = static_cast<unsigned int>(this->range_column_values_size()); i < n; 
i++3.58M
) {
8053
3.58M
    target = ::google::protobuf::internal::WireFormatLite::
8054
3.58M
      InternalWriteMessageToArray(
8055
3.58M
        18, this->range_column_values(static_cast<int>(i)), deterministic, target);
8056
3.58M
  }
8057
8058
  // optional bytes table_id = 19;
8059
8.59M
  if (
cached_has_bits & 0x00000001u8.59M
) {
8060
8.59M
    target =
8061
8.59M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8062
8.59M
        19, this->table_id(), target);
8063
8.59M
  }
8064
8065
  // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
8066
8.59M
  if (cached_has_bits & 0x00000100u) {
8067
33.5k
    target = ::google::protobuf::internal::WireFormatLite::
8068
33.5k
      InternalWriteMessageToArray(
8069
33.5k
        20, *this->ybctid_column_value_, deterministic, target);
8070
33.5k
  }
8071
8072
  // optional .yb.PgsqlReadRequestPB index_request = 21;
8073
8.59M
  if (cached_has_bits & 0x00000200u) {
8074
917k
    target = ::google::protobuf::internal::WireFormatLite::
8075
917k
      InternalWriteMessageToArray(
8076
917k
        21, *this->index_request_, deterministic, target);
8077
917k
  }
8078
8079
  // optional .yb.PgsqlExpressionPB condition_expr = 22;
8080
8.59M
  if (cached_has_bits & 0x00000400u) {
8081
13.5k
    target = ::google::protobuf::internal::WireFormatLite::
8082
13.5k
      InternalWriteMessageToArray(
8083
13.5k
        22, *this->condition_expr_, deterministic, target);
8084
13.5k
  }
8085
8086
  // optional .yb.RowMarkType row_mark_type = 23;
8087
8.59M
  if (cached_has_bits & 0x01000000u) {
8088
17.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8089
17.5k
      23, this->row_mark_type(), target);
8090
17.5k
  }
8091
8092
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
8093
8.59M
  for (unsigned int i = 0,
8094
10.9M
      n = static_cast<unsigned int>(this->batch_arguments_size()); i < n; 
i++2.35M
) {
8095
2.35M
    target = ::google::protobuf::internal::WireFormatLite::
8096
2.35M
      InternalWriteMessageToArray(
8097
2.35M
        24, this->batch_arguments(static_cast<int>(i)), deterministic, target);
8098
2.35M
  }
8099
8100
  // optional bytes DEPRECATED_max_partition_key = 25;
8101
8.59M
  if (cached_has_bits & 0x00000002u) {
8102
0
    target =
8103
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8104
0
        25, this->deprecated_max_partition_key(), target);
8105
0
  }
8106
8107
  // optional .yb.PgsqlPartitionBound lower_bound = 27;
8108
8.59M
  if (cached_has_bits & 0x00000800u) {
8109
26.3k
    target = ::google::protobuf::internal::WireFormatLite::
8110
26.3k
      InternalWriteMessageToArray(
8111
26.3k
        27, *this->lower_bound_, deterministic, target);
8112
26.3k
  }
8113
8114
  // optional .yb.PgsqlPartitionBound upper_bound = 28;
8115
8.59M
  if (cached_has_bits & 0x00001000u) {
8116
1.40M
    target = ::google::protobuf::internal::WireFormatLite::
8117
1.40M
      InternalWriteMessageToArray(
8118
1.40M
        28, *this->upper_bound_, deterministic, target);
8119
1.40M
  }
8120
8121
  // optional bool is_for_backfill = 29 [default = false];
8122
8.59M
  if (cached_has_bits & 0x00400000u) {
8123
2.38k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(29, this->is_for_backfill(), target);
8124
2.38k
  }
8125
8126
  // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
8127
8.59M
  if (cached_has_bits & 0x00002000u) {
8128
705
    target = ::google::protobuf::internal::WireFormatLite::
8129
705
      InternalWriteMessageToArray(
8130
705
        30, *this->sampling_state_, deterministic, target);
8131
705
  }
8132
8133
  // optional bytes backfill_spec = 31;
8134
8.59M
  if (cached_has_bits & 0x00000004u) {
8135
2.38k
    target =
8136
2.38k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8137
2.38k
        31, this->backfill_spec(), target);
8138
2.38k
  }
8139
8140
  // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
8141
8.59M
  if (cached_has_bits & 0x02000000u) {
8142
17.5k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
8143
17.5k
      32, this->wait_policy(), target);
8144
17.5k
  }
8145
8146
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
8147
8.59M
  for (unsigned int i = 0,
8148
8.59M
      n = static_cast<unsigned int>(this->where_clauses_size()); i < n; 
i++632
) {
8149
632
    target = ::google::protobuf::internal::WireFormatLite::
8150
632
      InternalWriteMessageToArray(
8151
632
        33, this->where_clauses(static_cast<int>(i)), deterministic, target);
8152
632
  }
8153
8154
  // repeated .yb.PgsqlColRefPB col_refs = 34;
8155
8.59M
  for (unsigned int i = 0,
8156
64.2M
      n = static_cast<unsigned int>(this->col_refs_size()); i < n; 
i++55.7M
) {
8157
55.7M
    target = ::google::protobuf::internal::WireFormatLite::
8158
55.7M
      InternalWriteMessageToArray(
8159
55.7M
        34, this->col_refs(static_cast<int>(i)), deterministic, target);
8160
55.7M
  }
8161
8162
  // optional bytes partition_key = 35;
8163
8.59M
  if (cached_has_bits & 0x00000008u) {
8164
7.08M
    target =
8165
7.08M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8166
7.08M
        35, this->partition_key(), target);
8167
7.08M
  }
8168
8169
8.59M
  if (_internal_metadata_.have_unknown_fields()) {
8170
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8171
0
        _internal_metadata_.unknown_fields(), target);
8172
0
  }
8173
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlReadRequestPB)
8174
8.59M
  return target;
8175
8.59M
}
8176
8177
17.1M
size_t PgsqlReadRequestPB::ByteSizeLong() const {
8178
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlReadRequestPB)
8179
17.1M
  size_t total_size = 0;
8180
8181
17.1M
  if (_internal_metadata_.have_unknown_fields()) {
8182
0
    total_size +=
8183
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8184
0
        _internal_metadata_.unknown_fields());
8185
0
  }
8186
  // repeated .yb.PgsqlExpressionPB partition_column_values = 5;
8187
17.1M
  {
8188
17.1M
    unsigned int count = static_cast<unsigned int>(this->partition_column_values_size());
8189
17.1M
    total_size += 1UL * count;
8190
26.9M
    for (unsigned int i = 0; i < count; 
i++9.76M
) {
8191
9.76M
      total_size +=
8192
9.76M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8193
9.76M
          this->partition_column_values(static_cast<int>(i)));
8194
9.76M
    }
8195
17.1M
  }
8196
8197
  // repeated .yb.PgsqlExpressionPB targets = 7;
8198
17.1M
  {
8199
17.1M
    unsigned int count = static_cast<unsigned int>(this->targets_size());
8200
17.1M
    total_size += 1UL * count;
8201
134M
    for (unsigned int i = 0; i < count; 
i++117M
) {
8202
117M
      total_size +=
8203
117M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8204
117M
          this->targets(static_cast<int>(i)));
8205
117M
    }
8206
17.1M
  }
8207
8208
  // repeated .yb.PgsqlExpressionPB range_column_values = 18;
8209
17.1M
  {
8210
17.1M
    unsigned int count = static_cast<unsigned int>(this->range_column_values_size());
8211
17.1M
    total_size += 2UL * count;
8212
24.3M
    for (unsigned int i = 0; i < count; 
i++7.17M
) {
8213
7.17M
      total_size +=
8214
7.17M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8215
7.17M
          this->range_column_values(static_cast<int>(i)));
8216
7.17M
    }
8217
17.1M
  }
8218
8219
  // repeated .yb.PgsqlBatchArgumentPB batch_arguments = 24;
8220
17.1M
  {
8221
17.1M
    unsigned int count = static_cast<unsigned int>(this->batch_arguments_size());
8222
17.1M
    total_size += 2UL * count;
8223
21.8M
    for (unsigned int i = 0; i < count; 
i++4.70M
) {
8224
4.70M
      total_size +=
8225
4.70M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8226
4.70M
          this->batch_arguments(static_cast<int>(i)));
8227
4.70M
    }
8228
17.1M
  }
8229
8230
  // repeated .yb.PgsqlExpressionPB where_clauses = 33;
8231
17.1M
  {
8232
17.1M
    unsigned int count = static_cast<unsigned int>(this->where_clauses_size());
8233
17.1M
    total_size += 2UL * count;
8234
17.1M
    for (unsigned int i = 0; i < count; 
i++1.26k
) {
8235
1.26k
      total_size +=
8236
1.26k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8237
1.26k
          this->where_clauses(static_cast<int>(i)));
8238
1.26k
    }
8239
17.1M
  }
8240
8241
  // repeated .yb.PgsqlColRefPB col_refs = 34;
8242
17.1M
  {
8243
17.1M
    unsigned int count = static_cast<unsigned int>(this->col_refs_size());
8244
17.1M
    total_size += 2UL * count;
8245
128M
    for (unsigned int i = 0; i < count; 
i++111M
) {
8246
111M
      total_size +=
8247
111M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8248
111M
          this->col_refs(static_cast<int>(i)));
8249
111M
    }
8250
17.1M
  }
8251
8252
17.1M
  if (_has_bits_[0 / 32] & 255u) {
8253
    // optional bytes table_id = 19;
8254
17.1M
    if (
has_table_id()17.1M
) {
8255
17.1M
      total_size += 2 +
8256
17.1M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8257
17.1M
          this->table_id());
8258
17.1M
    }
8259
8260
    // optional bytes DEPRECATED_max_partition_key = 25;
8261
17.1M
    if (has_deprecated_max_partition_key()) {
8262
0
      total_size += 2 +
8263
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8264
0
          this->deprecated_max_partition_key());
8265
0
    }
8266
8267
    // optional bytes backfill_spec = 31;
8268
17.1M
    if (has_backfill_spec()) {
8269
4.77k
      total_size += 2 +
8270
4.77k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8271
4.77k
          this->backfill_spec());
8272
4.77k
    }
8273
8274
    // optional bytes partition_key = 35;
8275
17.1M
    if (has_partition_key()) {
8276
14.1M
      total_size += 2 +
8277
14.1M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
8278
14.1M
          this->partition_key());
8279
14.1M
    }
8280
8281
    // optional .yb.PgsqlRSRowDescPB rsrow_desc = 6;
8282
17.1M
    if (has_rsrow_desc()) {
8283
0
      total_size += 1 +
8284
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8285
0
          *this->rsrow_desc_);
8286
0
    }
8287
8288
    // optional .yb.PgsqlExpressionPB where_expr = 8;
8289
17.1M
    if (has_where_expr()) {
8290
0
      total_size += 1 +
8291
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8292
0
          *this->where_expr_);
8293
0
    }
8294
8295
    // optional .yb.PgsqlColumnRefsPB column_refs = 9;
8296
17.1M
    if (has_column_refs()) {
8297
17.1M
      total_size += 1 +
8298
17.1M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8299
17.1M
          *this->column_refs_);
8300
17.1M
    }
8301
8302
    // optional .yb.PgsqlPagingStatePB paging_state = 14;
8303
17.1M
    if (has_paging_state()) {
8304
412k
      total_size += 1 +
8305
412k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8306
412k
          *this->paging_state_);
8307
412k
    }
8308
8309
17.1M
  }
8310
17.1M
  if (_has_bits_[8 / 32] & 65280u) {
8311
    // optional .yb.PgsqlExpressionPB ybctid_column_value = 20;
8312
15.3M
    if (has_ybctid_column_value()) {
8313
67.0k
      total_size += 2 +
8314
67.0k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8315
67.0k
          *this->ybctid_column_value_);
8316
67.0k
    }
8317
8318
    // optional .yb.PgsqlReadRequestPB index_request = 21;
8319
15.3M
    if (has_index_request()) {
8320
1.83M
      total_size += 2 +
8321
1.83M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8322
1.83M
          *this->index_request_);
8323
1.83M
    }
8324
8325
    // optional .yb.PgsqlExpressionPB condition_expr = 22;
8326
15.3M
    if (has_condition_expr()) {
8327
27.1k
      total_size += 2 +
8328
27.1k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8329
27.1k
          *this->condition_expr_);
8330
27.1k
    }
8331
8332
    // optional .yb.PgsqlPartitionBound lower_bound = 27;
8333
15.3M
    if (has_lower_bound()) {
8334
52.5k
      total_size += 2 +
8335
52.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8336
52.5k
          *this->lower_bound_);
8337
52.5k
    }
8338
8339
    // optional .yb.PgsqlPartitionBound upper_bound = 28;
8340
15.3M
    if (has_upper_bound()) {
8341
2.80M
      total_size += 2 +
8342
2.80M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8343
2.80M
          *this->upper_bound_);
8344
2.80M
    }
8345
8346
    // optional .yb.PgsqlSamplingStatePB sampling_state = 30;
8347
15.3M
    if (has_sampling_state()) {
8348
1.41k
      total_size += 2 +
8349
1.41k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
8350
1.41k
          *this->sampling_state_);
8351
1.41k
    }
8352
8353
    // optional uint64 stmt_id = 2;
8354
15.3M
    if (has_stmt_id()) {
8355
15.3M
      total_size += 1 +
8356
15.3M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8357
15.3M
          this->stmt_id());
8358
15.3M
    }
8359
8360
    // optional uint32 schema_version = 3;
8361
15.3M
    if (has_schema_version()) {
8362
15.3M
      total_size += 1 +
8363
15.3M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8364
15.3M
          this->schema_version());
8365
15.3M
    }
8366
8367
15.3M
  }
8368
17.1M
  if (_has_bits_[16 / 32] & 16711680u) {
8369
    // optional uint32 hash_code = 4;
8370
17.1M
    if (has_hash_code()) {
8371
10.0M
      total_size += 1 +
8372
10.0M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8373
10.0M
          this->hash_code());
8374
10.0M
    }
8375
8376
    // optional uint64 limit = 13;
8377
17.1M
    if (has_limit()) {
8378
15.3M
      total_size += 1 +
8379
15.3M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8380
15.3M
          this->limit());
8381
15.3M
    }
8382
8383
    // optional uint64 ysql_catalog_version = 16;
8384
17.1M
    if (has_ysql_catalog_version()) {
8385
10.0M
      total_size += 2 +
8386
10.0M
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
8387
10.0M
          this->ysql_catalog_version());
8388
10.0M
    }
8389
8390
    // optional bool distinct = 11 [default = false];
8391
17.1M
    if (has_distinct()) {
8392
0
      total_size += 1 + 1;
8393
0
    }
8394
8395
    // optional bool is_aggregate = 12 [default = false];
8396
17.1M
    if (has_is_aggregate()) {
8397
17.1M
      total_size += 1 + 1;
8398
17.1M
    }
8399
8400
    // optional bool return_paging_state = 15 [default = false];
8401
17.1M
    if (has_return_paging_state()) {
8402
15.3M
      total_size += 1 + 1;
8403
15.3M
    }
8404
8405
    // optional bool is_for_backfill = 29 [default = false];
8406
17.1M
    if (has_is_for_backfill()) {
8407
4.77k
      total_size += 2 + 1;
8408
4.77k
    }
8409
8410
    // optional uint32 max_hash_code = 17;
8411
17.1M
    if (has_max_hash_code()) {
8412
9.79M
      total_size += 2 +
8413
9.79M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
8414
9.79M
          this->max_hash_code());
8415
9.79M
    }
8416
8417
17.1M
  }
8418
17.1M
  if (_has_bits_[24 / 32] & 251658240u) {
8419
    // optional .yb.RowMarkType row_mark_type = 23;
8420
17.1M
    if (has_row_mark_type()) {
8421
35.0k
      total_size += 2 +
8422
35.0k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->row_mark_type());
8423
35.0k
    }
8424
8425
    // optional .yb.WaitPolicy wait_policy = 32 [default = WAIT_ERROR];
8426
17.1M
    if (has_wait_policy()) {
8427
35.0k
      total_size += 2 +
8428
35.0k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->wait_policy());
8429
35.0k
    }
8430
8431
    // optional .yb.QLClient client = 1;
8432
17.1M
    if (has_client()) {
8433
15.3M
      total_size += 1 +
8434
15.3M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->client());
8435
15.3M
    }
8436
8437
    // optional bool is_forward_scan = 10 [default = true];
8438
17.1M
    if (has_is_forward_scan()) {
8439
14.5M
      total_size += 1 + 1;
8440
14.5M
    }
8441
8442
17.1M
  }
8443
17.1M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8444
17.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8445
17.1M
  _cached_size_ = cached_size;
8446
17.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8447
17.1M
  return total_size;
8448
17.1M
}
8449
8450
0
void PgsqlReadRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
8451
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlReadRequestPB)
8452
0
  GOOGLE_DCHECK_NE(&from, this);
8453
0
  const PgsqlReadRequestPB* source =
8454
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlReadRequestPB>(
8455
0
          &from);
8456
0
  if (source == NULL) {
8457
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlReadRequestPB)
8458
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8459
0
  } else {
8460
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlReadRequestPB)
8461
0
    MergeFrom(*source);
8462
0
  }
8463
0
}
8464
8465
2.95M
void PgsqlReadRequestPB::MergeFrom(const PgsqlReadRequestPB& from) {
8466
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlReadRequestPB)
8467
2.95M
  GOOGLE_DCHECK_NE(&from, this);
8468
2.95M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8469
2.95M
  ::google::protobuf::uint32 cached_has_bits = 0;
8470
2.95M
  (void) cached_has_bits;
8471
8472
2.95M
  partition_column_values_.MergeFrom(from.partition_column_values_);
8473
2.95M
  targets_.MergeFrom(from.targets_);
8474
2.95M
  range_column_values_.MergeFrom(from.range_column_values_);
8475
2.95M
  batch_arguments_.MergeFrom(from.batch_arguments_);
8476
2.95M
  where_clauses_.MergeFrom(from.where_clauses_);
8477
2.95M
  col_refs_.MergeFrom(from.col_refs_);
8478
2.95M
  cached_has_bits = from._has_bits_[0];
8479
2.95M
  if (cached_has_bits & 255u) {
8480
2.95M
    if (
cached_has_bits & 0x00000001u2.95M
) {
8481
2.95M
      set_has_table_id();
8482
2.95M
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
8483
2.95M
    }
8484
2.95M
    if (cached_has_bits & 0x00000002u) {
8485
0
      set_has_deprecated_max_partition_key();
8486
0
      deprecated_max_partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_max_partition_key_);
8487
0
    }
8488
2.95M
    if (cached_has_bits & 0x00000004u) {
8489
0
      set_has_backfill_spec();
8490
0
      backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
8491
0
    }
8492
2.95M
    if (cached_has_bits & 0x00000008u) {
8493
0
      set_has_partition_key();
8494
0
      partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_);
8495
0
    }
8496
2.95M
    if (cached_has_bits & 0x00000010u) {
8497
0
      mutable_rsrow_desc()->::yb::PgsqlRSRowDescPB::MergeFrom(from.rsrow_desc());
8498
0
    }
8499
2.95M
    if (cached_has_bits & 0x00000020u) {
8500
0
      mutable_where_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.where_expr());
8501
0
    }
8502
2.95M
    if (cached_has_bits & 0x00000040u) {
8503
2.94M
      mutable_column_refs()->::yb::PgsqlColumnRefsPB::MergeFrom(from.column_refs());
8504
2.94M
    }
8505
2.95M
    if (cached_has_bits & 0x00000080u) {
8506
0
      mutable_paging_state()->::yb::PgsqlPagingStatePB::MergeFrom(from.paging_state());
8507
0
    }
8508
2.95M
  }
8509
2.95M
  if (cached_has_bits & 65280u) {
8510
2.95M
    if (cached_has_bits & 0x00000100u) {
8511
0
      mutable_ybctid_column_value()->::yb::PgsqlExpressionPB::MergeFrom(from.ybctid_column_value());
8512
0
    }
8513
2.95M
    if (cached_has_bits & 0x00000200u) {
8514
0
      mutable_index_request()->::yb::PgsqlReadRequestPB::MergeFrom(from.index_request());
8515
0
    }
8516
2.95M
    if (cached_has_bits & 0x00000400u) {
8517
1.73k
      mutable_condition_expr()->::yb::PgsqlExpressionPB::MergeFrom(from.condition_expr());
8518
1.73k
    }
8519
2.95M
    if (cached_has_bits & 0x00000800u) {
8520
0
      mutable_lower_bound()->::yb::PgsqlPartitionBound::MergeFrom(from.lower_bound());
8521
0
    }
8522
2.95M
    if (cached_has_bits & 0x00001000u) {
8523
0
      mutable_upper_bound()->::yb::PgsqlPartitionBound::MergeFrom(from.upper_bound());
8524
0
    }
8525
2.95M
    if (cached_has_bits & 0x00002000u) {
8526
406
      mutable_sampling_state()->::yb::PgsqlSamplingStatePB::MergeFrom(from.sampling_state());
8527
406
    }
8528
2.95M
    if (
cached_has_bits & 0x00004000u2.95M
) {
8529
2.95M
      stmt_id_ = from.stmt_id_;
8530
2.95M
    }
8531
2.95M
    if (
cached_has_bits & 0x00008000u2.95M
) {
8532
2.95M
      schema_version_ = from.schema_version_;
8533
2.95M
    }
8534
2.95M
    _has_bits_[0] |= cached_has_bits;
8535
2.95M
  }
8536
2.95M
  if (cached_has_bits & 16711680u) {
8537
2.95M
    if (cached_has_bits & 0x00010000u) {
8538
0
      hash_code_ = from.hash_code_;
8539
0
    }
8540
2.95M
    if (cached_has_bits & 0x00020000u) {
8541
2.95M
      limit_ = from.limit_;
8542
2.95M
    }
8543
2.95M
    if (cached_has_bits & 0x00040000u) {
8544
2.94M
      ysql_catalog_version_ = from.ysql_catalog_version_;
8545
2.94M
    }
8546
2.95M
    if (cached_has_bits & 0x00080000u) {
8547
0
      distinct_ = from.distinct_;
8548
0
    }
8549
2.95M
    if (cached_has_bits & 0x00100000u) {
8550
2.94M
      is_aggregate_ = from.is_aggregate_;
8551
2.94M
    }
8552
2.95M
    if (
cached_has_bits & 0x00200000u2.95M
) {
8553
2.95M
      return_paging_state_ = from.return_paging_state_;
8554
2.95M
    }
8555
2.95M
    if (cached_has_bits & 0x00400000u) {
8556
0
      is_for_backfill_ = from.is_for_backfill_;
8557
0
    }
8558
2.95M
    if (cached_has_bits & 0x00800000u) {
8559
0
      max_hash_code_ = from.max_hash_code_;
8560
0
    }
8561
2.95M
    _has_bits_[0] |= cached_has_bits;
8562
2.95M
  }
8563
2.95M
  if (cached_has_bits & 251658240u) {
8564
2.95M
    if (cached_has_bits & 0x01000000u) {
8565
5.82k
      row_mark_type_ = from.row_mark_type_;
8566
5.82k
    }
8567
2.95M
    if (cached_has_bits & 0x02000000u) {
8568
5.81k
      wait_policy_ = from.wait_policy_;
8569
5.81k
    }
8570
2.95M
    if (
cached_has_bits & 0x04000000u2.95M
) {
8571
2.95M
      client_ = from.client_;
8572
2.95M
    }
8573
2.95M
    if (cached_has_bits & 0x08000000u) {
8574
2.92M
      is_forward_scan_ = from.is_forward_scan_;
8575
2.92M
    }
8576
2.95M
    _has_bits_[0] |= cached_has_bits;
8577
2.95M
  }
8578
2.95M
}
8579
8580
0
void PgsqlReadRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
8581
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlReadRequestPB)
8582
0
  if (&from == this) return;
8583
0
  Clear();
8584
0
  MergeFrom(from);
8585
0
}
8586
8587
2.95M
void PgsqlReadRequestPB::CopyFrom(const PgsqlReadRequestPB& from) {
8588
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlReadRequestPB)
8589
2.95M
  if (&from == this) 
return0
;
8590
2.95M
  Clear();
8591
2.95M
  MergeFrom(from);
8592
2.95M
}
8593
8594
0
bool PgsqlReadRequestPB::IsInitialized() const {
8595
0
  return true;
8596
0
}
8597
8598
0
void PgsqlReadRequestPB::Swap(PgsqlReadRequestPB* other) {
8599
0
  if (other == this) return;
8600
0
  InternalSwap(other);
8601
0
}
8602
0
void PgsqlReadRequestPB::InternalSwap(PgsqlReadRequestPB* other) {
8603
0
  using std::swap;
8604
0
  partition_column_values_.InternalSwap(&other->partition_column_values_);
8605
0
  targets_.InternalSwap(&other->targets_);
8606
0
  range_column_values_.InternalSwap(&other->range_column_values_);
8607
0
  batch_arguments_.InternalSwap(&other->batch_arguments_);
8608
0
  where_clauses_.InternalSwap(&other->where_clauses_);
8609
0
  col_refs_.InternalSwap(&other->col_refs_);
8610
0
  table_id_.Swap(&other->table_id_);
8611
0
  deprecated_max_partition_key_.Swap(&other->deprecated_max_partition_key_);
8612
0
  backfill_spec_.Swap(&other->backfill_spec_);
8613
0
  partition_key_.Swap(&other->partition_key_);
8614
0
  swap(rsrow_desc_, other->rsrow_desc_);
8615
0
  swap(where_expr_, other->where_expr_);
8616
0
  swap(column_refs_, other->column_refs_);
8617
0
  swap(paging_state_, other->paging_state_);
8618
0
  swap(ybctid_column_value_, other->ybctid_column_value_);
8619
0
  swap(index_request_, other->index_request_);
8620
0
  swap(condition_expr_, other->condition_expr_);
8621
0
  swap(lower_bound_, other->lower_bound_);
8622
0
  swap(upper_bound_, other->upper_bound_);
8623
0
  swap(sampling_state_, other->sampling_state_);
8624
0
  swap(stmt_id_, other->stmt_id_);
8625
0
  swap(schema_version_, other->schema_version_);
8626
0
  swap(hash_code_, other->hash_code_);
8627
0
  swap(limit_, other->limit_);
8628
0
  swap(ysql_catalog_version_, other->ysql_catalog_version_);
8629
0
  swap(distinct_, other->distinct_);
8630
0
  swap(is_aggregate_, other->is_aggregate_);
8631
0
  swap(return_paging_state_, other->return_paging_state_);
8632
0
  swap(is_for_backfill_, other->is_for_backfill_);
8633
0
  swap(max_hash_code_, other->max_hash_code_);
8634
0
  swap(row_mark_type_, other->row_mark_type_);
8635
0
  swap(wait_policy_, other->wait_policy_);
8636
0
  swap(client_, other->client_);
8637
0
  swap(is_forward_scan_, other->is_forward_scan_);
8638
0
  swap(_has_bits_[0], other->_has_bits_[0]);
8639
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
8640
0
  swap(_cached_size_, other->_cached_size_);
8641
0
}
8642
8643
8.59M
::google::protobuf::Metadata PgsqlReadRequestPB::GetMetadata() const {
8644
8.59M
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8645
8.59M
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
8646
8.59M
}
8647
8648
8649
// ===================================================================
8650
8651
28.1k
void PgsqlResponsePB::InitAsDefaultInstance() {
8652
28.1k
  ::yb::_PgsqlResponsePB_default_instance_._instance.get_mutable()->paging_state_ = const_cast< ::yb::PgsqlPagingStatePB*>(
8653
28.1k
      ::yb::PgsqlPagingStatePB::internal_default_instance());
8654
28.1k
  ::yb::_PgsqlResponsePB_default_instance_._instance.get_mutable()->sampling_state_ = const_cast< ::yb::PgsqlSamplingStatePB*>(
8655
28.1k
      ::yb::PgsqlSamplingStatePB::internal_default_instance());
8656
28.1k
}
8657
#if !defined(_MSC_VER) || _MSC_VER >= 1900
8658
const int PgsqlResponsePB::kStatusFieldNumber;
8659
const int PgsqlResponsePB::kSkippedFieldNumber;
8660
const int PgsqlResponsePB::kErrorMessageFieldNumber;
8661
const int PgsqlResponsePB::kRowsDataSidecarFieldNumber;
8662
const int PgsqlResponsePB::kPagingStateFieldNumber;
8663
const int PgsqlResponsePB::kBatchArgCountFieldNumber;
8664
const int PgsqlResponsePB::kBatchOrdersFieldNumber;
8665
const int PgsqlResponsePB::kRowsAffectedCountFieldNumber;
8666
const int PgsqlResponsePB::kPgErrorCodeFieldNumber;
8667
const int PgsqlResponsePB::kTxnErrorCodeFieldNumber;
8668
const int PgsqlResponsePB::kSamplingStateFieldNumber;
8669
const int PgsqlResponsePB::kBackfillSpecFieldNumber;
8670
const int PgsqlResponsePB::kIsBackfillBatchDoneFieldNumber;
8671
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8672
8673
PgsqlResponsePB::PgsqlResponsePB()
8674
77.2M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
8675
77.2M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8676
77.2M
    ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB();
8677
77.2M
  }
8678
77.2M
  SharedCtor();
8679
  // @@protoc_insertion_point(constructor:yb.PgsqlResponsePB)
8680
77.2M
}
8681
PgsqlResponsePB::PgsqlResponsePB(const PgsqlResponsePB& from)
8682
  : ::google::protobuf::Message(),
8683
      _internal_metadata_(NULL),
8684
      _has_bits_(from._has_bits_),
8685
      _cached_size_(0),
8686
0
      batch_orders_(from.batch_orders_) {
8687
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
8688
0
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8689
0
  if (from.has_error_message()) {
8690
0
    error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
8691
0
  }
8692
0
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8693
0
  if (from.has_backfill_spec()) {
8694
0
    backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
8695
0
  }
8696
0
  if (from.has_paging_state()) {
8697
0
    paging_state_ = new ::yb::PgsqlPagingStatePB(*from.paging_state_);
8698
0
  } else {
8699
0
    paging_state_ = NULL;
8700
0
  }
8701
0
  if (from.has_sampling_state()) {
8702
0
    sampling_state_ = new ::yb::PgsqlSamplingStatePB(*from.sampling_state_);
8703
0
  } else {
8704
0
    sampling_state_ = NULL;
8705
0
  }
8706
0
  ::memcpy(&status_, &from.status_,
8707
0
    static_cast<size_t>(reinterpret_cast<char*>(&batch_arg_count_) -
8708
0
    reinterpret_cast<char*>(&status_)) + sizeof(batch_arg_count_));
8709
  // @@protoc_insertion_point(copy_constructor:yb.PgsqlResponsePB)
8710
0
}
8711
8712
77.2M
void PgsqlResponsePB::SharedCtor() {
8713
77.2M
  _cached_size_ = 0;
8714
77.2M
  error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8715
77.2M
  backfill_spec_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8716
77.2M
  ::memset(&paging_state_, 0, static_cast<size_t>(
8717
77.2M
      reinterpret_cast<char*>(&is_backfill_batch_done_) -
8718
77.2M
      reinterpret_cast<char*>(&paging_state_)) + sizeof(is_backfill_batch_done_));
8719
77.2M
  batch_arg_count_ = GOOGLE_LONGLONG(1);
8720
77.2M
}
8721
8722
77.2M
PgsqlResponsePB::~PgsqlResponsePB() {
8723
  // @@protoc_insertion_point(destructor:yb.PgsqlResponsePB)
8724
77.2M
  SharedDtor();
8725
77.2M
}
8726
8727
77.2M
void PgsqlResponsePB::SharedDtor() {
8728
77.2M
  error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8729
77.2M
  backfill_spec_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8730
77.2M
  if (
this != internal_default_instance()77.2M
) delete paging_state_;
8731
77.2M
  if (this != internal_default_instance()) 
delete sampling_state_77.2M
;
8732
77.2M
}
8733
8734
0
void PgsqlResponsePB::SetCachedSize(int size) const {
8735
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8736
0
  _cached_size_ = size;
8737
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
8738
0
}
8739
0
const ::google::protobuf::Descriptor* PgsqlResponsePB::descriptor() {
8740
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
8741
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
8742
0
}
8743
8744
0
const PgsqlResponsePB& PgsqlResponsePB::default_instance() {
8745
0
  ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::InitDefaultsPgsqlResponsePB();
8746
0
  return *internal_default_instance();
8747
0
}
8748
8749
0
PgsqlResponsePB* PgsqlResponsePB::New(::google::protobuf::Arena* arena) const {
8750
0
  PgsqlResponsePB* n = new PgsqlResponsePB;
8751
0
  if (arena != NULL) {
8752
0
    arena->Own(n);
8753
0
  }
8754
0
  return n;
8755
0
}
8756
8757
1.57k
void PgsqlResponsePB::Clear() {
8758
// @@protoc_insertion_point(message_clear_start:yb.PgsqlResponsePB)
8759
1.57k
  ::google::protobuf::uint32 cached_has_bits = 0;
8760
  // Prevent compiler warnings about cached_has_bits being unused
8761
1.57k
  (void) cached_has_bits;
8762
8763
1.57k
  batch_orders_.Clear();
8764
1.57k
  cached_has_bits = _has_bits_[0];
8765
1.57k
  if (cached_has_bits & 15u) {
8766
0
    if (cached_has_bits & 0x00000001u) {
8767
0
      GOOGLE_DCHECK(!error_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8768
0
      (*error_message_.UnsafeRawStringPointer())->clear();
8769
0
    }
8770
0
    if (cached_has_bits & 0x00000002u) {
8771
0
      GOOGLE_DCHECK(!backfill_spec_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
8772
0
      (*backfill_spec_.UnsafeRawStringPointer())->clear();
8773
0
    }
8774
0
    if (cached_has_bits & 0x00000004u) {
8775
0
      GOOGLE_DCHECK(paging_state_ != NULL);
8776
0
      paging_state_->Clear();
8777
0
    }
8778
0
    if (cached_has_bits & 0x00000008u) {
8779
0
      GOOGLE_DCHECK(sampling_state_ != NULL);
8780
0
      sampling_state_->Clear();
8781
0
    }
8782
0
  }
8783
1.57k
  if (cached_has_bits & 240u) {
8784
1.57k
    ::memset(&status_, 0, static_cast<size_t>(
8785
1.57k
        reinterpret_cast<char*>(&rows_affected_count_) -
8786
1.57k
        reinterpret_cast<char*>(&status_)) + sizeof(rows_affected_count_));
8787
1.57k
  }
8788
1.57k
  if (cached_has_bits & 3840u) {
8789
0
    ::memset(&txn_error_code_, 0, static_cast<size_t>(
8790
0
        reinterpret_cast<char*>(&is_backfill_batch_done_) -
8791
0
        reinterpret_cast<char*>(&txn_error_code_)) + sizeof(is_backfill_batch_done_));
8792
0
    batch_arg_count_ = GOOGLE_LONGLONG(1);
8793
0
  }
8794
1.57k
  _has_bits_.Clear();
8795
1.57k
  _internal_metadata_.Clear();
8796
1.57k
}
8797
8798
bool PgsqlResponsePB::MergePartialFromCodedStream(
8799
17.5M
    ::google::protobuf::io::CodedInputStream* input) {
8800
38.1M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
8801
17.5M
  ::google::protobuf::uint32 tag;
8802
  // @@protoc_insertion_point(parse_start:yb.PgsqlResponsePB)
8803
55.7M
  for (;;) {
8804
55.7M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8805
55.7M
    tag = p.first;
8806
55.7M
    if (!p.second) 
goto handle_unusual17.5M
;
8807
38.1M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8808
      // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
8809
17.5M
      case 1: {
8810
17.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8811
17.5M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
8812
17.5M
          int value;
8813
17.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8814
17.5M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
8815
17.5M
                 input, &value)));
8816
17.5M
          if (::yb::PgsqlResponsePB_RequestStatus_IsValid(value)) {
8817
17.5M
            set_status(static_cast< ::yb::PgsqlResponsePB_RequestStatus >(value));
8818
17.5M
          } else {
8819
1.86k
            mutable_unknown_fields()->AddVarint(
8820
1.86k
                1, static_cast< ::google::protobuf::uint64>(value));
8821
1.86k
          }
8822
17.5M
        } else {
8823
19
          goto handle_unusual;
8824
19
        }
8825
17.5M
        break;
8826
17.5M
      }
8827
8828
      // optional string error_message = 2;
8829
17.5M
      case 2: {
8830
8.90k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8831
8.90k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
8832
8.90k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
8833
8.90k
                input, this->mutable_error_message()));
8834
8.90k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
8835
8.90k
            this->error_message().data(), static_cast<int>(this->error_message().length()),
8836
8.90k
            ::google::protobuf::internal::WireFormat::PARSE,
8837
8.90k
            "yb.PgsqlResponsePB.error_message");
8838
8.90k
        } else {
8839
0
          goto handle_unusual;
8840
0
        }
8841
8.90k
        break;
8842
8.90k
      }
8843
8844
      // optional int32 rows_data_sidecar = 4;
8845
17.5M
      case 4: {
8846
17.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8847
17.5M
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
8848
17.5M
          set_has_rows_data_sidecar();
8849
17.5M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8850
17.5M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8851
17.5M
                 input, &rows_data_sidecar_)));
8852
18.4E
        } else {
8853
18.4E
          goto handle_unusual;
8854
18.4E
        }
8855
17.5M
        break;
8856
17.5M
      }
8857
8858
      // optional .yb.PgsqlPagingStatePB paging_state = 5;
8859
17.5M
      case 5: {
8860
255k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8861
255k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8862
255k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8863
255k
               input, mutable_paging_state()));
8864
18.4E
        } else {
8865
18.4E
          goto handle_unusual;
8866
18.4E
        }
8867
255k
        break;
8868
255k
      }
8869
8870
      // optional bool skipped = 6;
8871
255k
      case 6: {
8872
68
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8873
68
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8874
68
          set_has_skipped();
8875
68
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8876
68
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8877
68
                 input, &skipped_)));
8878
68
        } else {
8879
0
          goto handle_unusual;
8880
0
        }
8881
68
        break;
8882
68
      }
8883
8884
      // optional int32 rows_affected_count = 7;
8885
2.78M
      case 7: {
8886
2.78M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8887
2.78M
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8888
2.78M
          set_has_rows_affected_count();
8889
2.78M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8890
2.78M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
8891
2.78M
                 input, &rows_affected_count_)));
8892
18.4E
        } else {
8893
18.4E
          goto handle_unusual;
8894
18.4E
        }
8895
2.78M
        break;
8896
2.78M
      }
8897
8898
      // optional uint64 pg_error_code = 8;
8899
2.78M
      case 8: {
8900
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8901
0
            static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
8902
0
          set_has_pg_error_code();
8903
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8904
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8905
0
                 input, &pg_error_code_)));
8906
0
        } else {
8907
0
          goto handle_unusual;
8908
0
        }
8909
0
        break;
8910
0
      }
8911
8912
      // optional uint32 txn_error_code = 9;
8913
0
      case 9: {
8914
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8915
0
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
8916
0
          set_has_txn_error_code();
8917
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8918
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8919
0
                 input, &txn_error_code_)));
8920
0
        } else {
8921
0
          goto handle_unusual;
8922
0
        }
8923
0
        break;
8924
0
      }
8925
8926
      // optional int64 batch_arg_count = 10 [default = 1];
8927
10.0k
      case 10: {
8928
10.0k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8929
10.0k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
8930
10.0k
          set_has_batch_arg_count();
8931
10.0k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8932
10.0k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8933
10.0k
                 input, &batch_arg_count_)));
8934
18.4E
        } else {
8935
18.4E
          goto handle_unusual;
8936
18.4E
        }
8937
10.0k
        break;
8938
10.0k
      }
8939
8940
      // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
8941
10.0k
      case 11: {
8942
692
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8943
692
            static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
8944
692
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8945
692
               input, mutable_sampling_state()));
8946
692
        } else {
8947
0
          goto handle_unusual;
8948
0
        }
8949
692
        break;
8950
692
      }
8951
8952
      // repeated int64 batch_orders = 12;
8953
33.4k
      case 12: {
8954
33.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8955
33.4k
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
8956
33.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8957
33.4k
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8958
33.4k
                 1, 96u, input, this->mutable_batch_orders())));
8959
33.4k
        } else if (
8960
1
            static_cast< ::google::protobuf::uint8>(tag) ==
8961
1
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
8962
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8963
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
8964
0
                 input, this->mutable_batch_orders())));
8965
1
        } else {
8966
1
          goto handle_unusual;
8967
1
        }
8968
33.4k
        break;
8969
33.4k
      }
8970
8971
      // optional bytes backfill_spec = 13;
8972
33.4k
      case 13: {
8973
2.35k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8974
2.35k
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
8975
2.35k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
8976
2.35k
                input, this->mutable_backfill_spec()));
8977
2.35k
        } else {
8978
0
          goto handle_unusual;
8979
0
        }
8980
2.35k
        break;
8981
2.35k
      }
8982
8983
      // optional bool is_backfill_batch_done = 14;
8984
2.35k
      case 14: {
8985
2.35k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
8986
2.35k
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
8987
2.35k
          set_has_is_backfill_batch_done();
8988
2.35k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8989
2.35k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
8990
2.35k
                 input, &is_backfill_batch_done_)));
8991
2.35k
        } else {
8992
0
          goto handle_unusual;
8993
0
        }
8994
2.35k
        break;
8995
2.35k
      }
8996
8997
2.35k
      default: {
8998
17.5M
      handle_unusual:
8999
17.5M
        if (
tag == 017.5M
) {
9000
17.5M
          goto success;
9001
17.5M
        }
9002
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
9003
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
9004
18.4E
        break;
9005
18.4E
      }
9006
38.1M
    }
9007
38.1M
  }
9008
17.5M
success:
9009
  // @@protoc_insertion_point(parse_success:yb.PgsqlResponsePB)
9010
17.5M
  return true;
9011
0
failure:
9012
  // @@protoc_insertion_point(parse_failure:yb.PgsqlResponsePB)
9013
0
  return false;
9014
17.5M
#undef DO_
9015
17.5M
}
9016
9017
void PgsqlResponsePB::SerializeWithCachedSizes(
9018
0
    ::google::protobuf::io::CodedOutputStream* output) const {
9019
  // @@protoc_insertion_point(serialize_start:yb.PgsqlResponsePB)
9020
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9021
0
  (void) cached_has_bits;
9022
9023
0
  cached_has_bits = _has_bits_[0];
9024
  // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9025
0
  if (cached_has_bits & 0x00000010u) {
9026
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
9027
0
      1, this->status(), output);
9028
0
  }
9029
9030
  // optional string error_message = 2;
9031
0
  if (cached_has_bits & 0x00000001u) {
9032
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9033
0
      this->error_message().data(), static_cast<int>(this->error_message().length()),
9034
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9035
0
      "yb.PgsqlResponsePB.error_message");
9036
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9037
0
      2, this->error_message(), output);
9038
0
  }
9039
9040
  // optional int32 rows_data_sidecar = 4;
9041
0
  if (cached_has_bits & 0x00000020u) {
9042
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->rows_data_sidecar(), output);
9043
0
  }
9044
9045
  // optional .yb.PgsqlPagingStatePB paging_state = 5;
9046
0
  if (cached_has_bits & 0x00000004u) {
9047
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9048
0
      5, *this->paging_state_, output);
9049
0
  }
9050
9051
  // optional bool skipped = 6;
9052
0
  if (cached_has_bits & 0x00000200u) {
9053
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->skipped(), output);
9054
0
  }
9055
9056
  // optional int32 rows_affected_count = 7;
9057
0
  if (cached_has_bits & 0x00000080u) {
9058
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->rows_affected_count(), output);
9059
0
  }
9060
9061
  // optional uint64 pg_error_code = 8;
9062
0
  if (cached_has_bits & 0x00000040u) {
9063
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->pg_error_code(), output);
9064
0
  }
9065
9066
  // optional uint32 txn_error_code = 9;
9067
0
  if (cached_has_bits & 0x00000100u) {
9068
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->txn_error_code(), output);
9069
0
  }
9070
9071
  // optional int64 batch_arg_count = 10 [default = 1];
9072
0
  if (cached_has_bits & 0x00000800u) {
9073
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->batch_arg_count(), output);
9074
0
  }
9075
9076
  // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9077
0
  if (cached_has_bits & 0x00000008u) {
9078
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9079
0
      11, *this->sampling_state_, output);
9080
0
  }
9081
9082
  // repeated int64 batch_orders = 12;
9083
0
  for (int i = 0, n = this->batch_orders_size(); i < n; i++) {
9084
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(
9085
0
      12, this->batch_orders(i), output);
9086
0
  }
9087
9088
  // optional bytes backfill_spec = 13;
9089
0
  if (cached_has_bits & 0x00000002u) {
9090
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9091
0
      13, this->backfill_spec(), output);
9092
0
  }
9093
9094
  // optional bool is_backfill_batch_done = 14;
9095
0
  if (cached_has_bits & 0x00000400u) {
9096
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(14, this->is_backfill_batch_done(), output);
9097
0
  }
9098
9099
0
  if (_internal_metadata_.have_unknown_fields()) {
9100
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9101
0
        _internal_metadata_.unknown_fields(), output);
9102
0
  }
9103
  // @@protoc_insertion_point(serialize_end:yb.PgsqlResponsePB)
9104
0
}
9105
9106
::google::protobuf::uint8* PgsqlResponsePB::InternalSerializeWithCachedSizesToArray(
9107
17.5M
    bool deterministic, ::google::protobuf::uint8* target) const {
9108
17.5M
  (void)deterministic; // Unused
9109
  // @@protoc_insertion_point(serialize_to_array_start:yb.PgsqlResponsePB)
9110
17.5M
  ::google::protobuf::uint32 cached_has_bits = 0;
9111
17.5M
  (void) cached_has_bits;
9112
9113
17.5M
  cached_has_bits = _has_bits_[0];
9114
  // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9115
17.5M
  if (cached_has_bits & 0x00000010u) {
9116
17.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9117
17.5M
      1, this->status(), target);
9118
17.5M
  }
9119
9120
  // optional string error_message = 2;
9121
17.5M
  if (cached_has_bits & 0x00000001u) {
9122
8.90k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
9123
8.90k
      this->error_message().data(), static_cast<int>(this->error_message().length()),
9124
8.90k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
9125
8.90k
      "yb.PgsqlResponsePB.error_message");
9126
8.90k
    target =
9127
8.90k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9128
8.90k
        2, this->error_message(), target);
9129
8.90k
  }
9130
9131
  // optional int32 rows_data_sidecar = 4;
9132
17.5M
  if (cached_has_bits & 0x00000020u) {
9133
17.5M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->rows_data_sidecar(), target);
9134
17.5M
  }
9135
9136
  // optional .yb.PgsqlPagingStatePB paging_state = 5;
9137
17.5M
  if (cached_has_bits & 0x00000004u) {
9138
254k
    target = ::google::protobuf::internal::WireFormatLite::
9139
254k
      InternalWriteMessageToArray(
9140
254k
        5, *this->paging_state_, deterministic, target);
9141
254k
  }
9142
9143
  // optional bool skipped = 6;
9144
17.5M
  if (cached_has_bits & 0x00000200u) {
9145
68
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->skipped(), target);
9146
68
  }
9147
9148
  // optional int32 rows_affected_count = 7;
9149
17.5M
  if (cached_has_bits & 0x00000080u) {
9150
2.78M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->rows_affected_count(), target);
9151
2.78M
  }
9152
9153
  // optional uint64 pg_error_code = 8;
9154
17.5M
  if (cached_has_bits & 0x00000040u) {
9155
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->pg_error_code(), target);
9156
0
  }
9157
9158
  // optional uint32 txn_error_code = 9;
9159
17.5M
  if (cached_has_bits & 0x00000100u) {
9160
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->txn_error_code(), target);
9161
0
  }
9162
9163
  // optional int64 batch_arg_count = 10 [default = 1];
9164
17.5M
  if (cached_has_bits & 0x00000800u) {
9165
10.0k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->batch_arg_count(), target);
9166
10.0k
  }
9167
9168
  // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9169
17.5M
  if (cached_has_bits & 0x00000008u) {
9170
692
    target = ::google::protobuf::internal::WireFormatLite::
9171
692
      InternalWriteMessageToArray(
9172
692
        11, *this->sampling_state_, deterministic, target);
9173
692
  }
9174
9175
  // repeated int64 batch_orders = 12;
9176
17.5M
  target = ::google::protobuf::internal::WireFormatLite::
9177
17.5M
    WriteInt64ToArray(12, this->batch_orders_, target);
9178
9179
  // optional bytes backfill_spec = 13;
9180
17.5M
  if (cached_has_bits & 0x00000002u) {
9181
2.35k
    target =
9182
2.35k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9183
2.35k
        13, this->backfill_spec(), target);
9184
2.35k
  }
9185
9186
  // optional bool is_backfill_batch_done = 14;
9187
17.5M
  if (cached_has_bits & 0x00000400u) {
9188
2.35k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->is_backfill_batch_done(), target);
9189
2.35k
  }
9190
9191
17.5M
  if (_internal_metadata_.have_unknown_fields()) {
9192
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9193
0
        _internal_metadata_.unknown_fields(), target);
9194
0
  }
9195
  // @@protoc_insertion_point(serialize_to_array_end:yb.PgsqlResponsePB)
9196
17.5M
  return target;
9197
17.5M
}
9198
9199
35.1M
size_t PgsqlResponsePB::ByteSizeLong() const {
9200
// @@protoc_insertion_point(message_byte_size_start:yb.PgsqlResponsePB)
9201
35.1M
  size_t total_size = 0;
9202
9203
35.1M
  if (_internal_metadata_.have_unknown_fields()) {
9204
0
    total_size +=
9205
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9206
0
        _internal_metadata_.unknown_fields());
9207
0
  }
9208
  // repeated int64 batch_orders = 12;
9209
35.1M
  {
9210
35.1M
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
9211
35.1M
      Int64Size(this->batch_orders_);
9212
35.1M
    total_size += 1 *
9213
35.1M
                  ::google::protobuf::internal::FromIntSize(this->batch_orders_size());
9214
35.1M
    total_size += data_size;
9215
35.1M
  }
9216
9217
35.1M
  if (_has_bits_[0 / 32] & 255u) {
9218
    // optional string error_message = 2;
9219
35.0M
    if (has_error_message()) {
9220
17.8k
      total_size += 1 +
9221
17.8k
        ::google::protobuf::internal::WireFormatLite::StringSize(
9222
17.8k
          this->error_message());
9223
17.8k
    }
9224
9225
    // optional bytes backfill_spec = 13;
9226
35.0M
    if (has_backfill_spec()) {
9227
4.71k
      total_size += 1 +
9228
4.71k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
9229
4.71k
          this->backfill_spec());
9230
4.71k
    }
9231
9232
    // optional .yb.PgsqlPagingStatePB paging_state = 5;
9233
35.0M
    if (has_paging_state()) {
9234
508k
      total_size += 1 +
9235
508k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9236
508k
          *this->paging_state_);
9237
508k
    }
9238
9239
    // optional .yb.PgsqlSamplingStatePB sampling_state = 11;
9240
35.0M
    if (has_sampling_state()) {
9241
1.38k
      total_size += 1 +
9242
1.38k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
9243
1.38k
          *this->sampling_state_);
9244
1.38k
    }
9245
9246
    // optional .yb.PgsqlResponsePB.RequestStatus status = 1 [default = PGSQL_STATUS_OK];
9247
35.0M
    if (
has_status()35.0M
) {
9248
35.0M
      total_size += 1 +
9249
35.0M
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
9250
35.0M
    }
9251
9252
    // optional int32 rows_data_sidecar = 4;
9253
35.0M
    if (has_rows_data_sidecar()) {
9254
35.0M
      total_size += 1 +
9255
35.0M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9256
35.0M
          this->rows_data_sidecar());
9257
35.0M
    }
9258
9259
    // optional uint64 pg_error_code = 8;
9260
35.0M
    if (has_pg_error_code()) {
9261
0
      total_size += 1 +
9262
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
9263
0
          this->pg_error_code());
9264
0
    }
9265
9266
    // optional int32 rows_affected_count = 7;
9267
35.0M
    if (has_rows_affected_count()) {
9268
5.56M
      total_size += 1 +
9269
5.56M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
9270
5.56M
          this->rows_affected_count());
9271
5.56M
    }
9272
9273
35.0M
  }
9274
35.1M
  if (_has_bits_[8 / 32] & 3840u) {
9275
    // optional uint32 txn_error_code = 9;
9276
25.0k
    if (has_txn_error_code()) {
9277
0
      total_size += 1 +
9278
0
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
9279
0
          this->txn_error_code());
9280
0
    }
9281
9282
    // optional bool skipped = 6;
9283
25.0k
    if (has_skipped()) {
9284
136
      total_size += 1 + 1;
9285
136
    }
9286
9287
    // optional bool is_backfill_batch_done = 14;
9288
25.0k
    if (has_is_backfill_batch_done()) {
9289
4.71k
      total_size += 1 + 1;
9290
4.71k
    }
9291
9292
    // optional int64 batch_arg_count = 10 [default = 1];
9293
25.0k
    if (has_batch_arg_count()) {
9294
20.1k
      total_size += 1 +
9295
20.1k
        ::google::protobuf::internal::WireFormatLite::Int64Size(
9296
20.1k
          this->batch_arg_count());
9297
20.1k
    }
9298
9299
25.0k
  }
9300
35.1M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9301
35.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9302
35.1M
  _cached_size_ = cached_size;
9303
35.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
9304
35.1M
  return total_size;
9305
35.1M
}
9306
9307
0
void PgsqlResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
9308
// @@protoc_insertion_point(generalized_merge_from_start:yb.PgsqlResponsePB)
9309
0
  GOOGLE_DCHECK_NE(&from, this);
9310
0
  const PgsqlResponsePB* source =
9311
0
      ::google::protobuf::internal::DynamicCastToGenerated<const PgsqlResponsePB>(
9312
0
          &from);
9313
0
  if (source == NULL) {
9314
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.PgsqlResponsePB)
9315
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9316
0
  } else {
9317
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.PgsqlResponsePB)
9318
0
    MergeFrom(*source);
9319
0
  }
9320
0
}
9321
9322
0
void PgsqlResponsePB::MergeFrom(const PgsqlResponsePB& from) {
9323
// @@protoc_insertion_point(class_specific_merge_from_start:yb.PgsqlResponsePB)
9324
0
  GOOGLE_DCHECK_NE(&from, this);
9325
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
9326
0
  ::google::protobuf::uint32 cached_has_bits = 0;
9327
0
  (void) cached_has_bits;
9328
9329
0
  batch_orders_.MergeFrom(from.batch_orders_);
9330
0
  cached_has_bits = from._has_bits_[0];
9331
0
  if (cached_has_bits & 255u) {
9332
0
    if (cached_has_bits & 0x00000001u) {
9333
0
      set_has_error_message();
9334
0
      error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_message_);
9335
0
    }
9336
0
    if (cached_has_bits & 0x00000002u) {
9337
0
      set_has_backfill_spec();
9338
0
      backfill_spec_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.backfill_spec_);
9339
0
    }
9340
0
    if (cached_has_bits & 0x00000004u) {
9341
0
      mutable_paging_state()->::yb::PgsqlPagingStatePB::MergeFrom(from.paging_state());
9342
0
    }
9343
0
    if (cached_has_bits & 0x00000008u) {
9344
0
      mutable_sampling_state()->::yb::PgsqlSamplingStatePB::MergeFrom(from.sampling_state());
9345
0
    }
9346
0
    if (cached_has_bits & 0x00000010u) {
9347
0
      status_ = from.status_;
9348
0
    }
9349
0
    if (cached_has_bits & 0x00000020u) {
9350
0
      rows_data_sidecar_ = from.rows_data_sidecar_;
9351
0
    }
9352
0
    if (cached_has_bits & 0x00000040u) {
9353
0
      pg_error_code_ = from.pg_error_code_;
9354
0
    }
9355
0
    if (cached_has_bits & 0x00000080u) {
9356
0
      rows_affected_count_ = from.rows_affected_count_;
9357
0
    }
9358
0
    _has_bits_[0] |= cached_has_bits;
9359
0
  }
9360
0
  if (cached_has_bits & 3840u) {
9361
0
    if (cached_has_bits & 0x00000100u) {
9362
0
      txn_error_code_ = from.txn_error_code_;
9363
0
    }
9364
0
    if (cached_has_bits & 0x00000200u) {
9365
0
      skipped_ = from.skipped_;
9366
0
    }
9367
0
    if (cached_has_bits & 0x00000400u) {
9368
0
      is_backfill_batch_done_ = from.is_backfill_batch_done_;
9369
0
    }
9370
0
    if (cached_has_bits & 0x00000800u) {
9371
0
      batch_arg_count_ = from.batch_arg_count_;
9372
0
    }
9373
0
    _has_bits_[0] |= cached_has_bits;
9374
0
  }
9375
0
}
9376
9377
0
void PgsqlResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
9378
// @@protoc_insertion_point(generalized_copy_from_start:yb.PgsqlResponsePB)
9379
0
  if (&from == this) return;
9380
0
  Clear();
9381
0
  MergeFrom(from);
9382
0
}
9383
9384
0
void PgsqlResponsePB::CopyFrom(const PgsqlResponsePB& from) {
9385
// @@protoc_insertion_point(class_specific_copy_from_start:yb.PgsqlResponsePB)
9386
0
  if (&from == this) return;
9387
0
  Clear();
9388
0
  MergeFrom(from);
9389
0
}
9390
9391
0
bool PgsqlResponsePB::IsInitialized() const {
9392
0
  return true;
9393
0
}
9394
9395
27.8M
void PgsqlResponsePB::Swap(PgsqlResponsePB* other) {
9396
27.8M
  if (other == this) 
return0
;
9397
27.8M
  InternalSwap(other);
9398
27.8M
}
9399
38.2M
void PgsqlResponsePB::InternalSwap(PgsqlResponsePB* other) {
9400
38.2M
  using std::swap;
9401
38.2M
  batch_orders_.InternalSwap(&other->batch_orders_);
9402
38.2M
  error_message_.Swap(&other->error_message_);
9403
38.2M
  backfill_spec_.Swap(&other->backfill_spec_);
9404
38.2M
  swap(paging_state_, other->paging_state_);
9405
38.2M
  swap(sampling_state_, other->sampling_state_);
9406
38.2M
  swap(status_, other->status_);
9407
38.2M
  swap(rows_data_sidecar_, other->rows_data_sidecar_);
9408
38.2M
  swap(pg_error_code_, other->pg_error_code_);
9409
38.2M
  swap(rows_affected_count_, other->rows_affected_count_);
9410
38.2M
  swap(txn_error_code_, other->txn_error_code_);
9411
38.2M
  swap(skipped_, other->skipped_);
9412
38.2M
  swap(is_backfill_batch_done_, other->is_backfill_batch_done_);
9413
38.2M
  swap(batch_arg_count_, other->batch_arg_count_);
9414
38.2M
  swap(_has_bits_[0], other->_has_bits_[0]);
9415
38.2M
  _internal_metadata_.Swap(&other->_internal_metadata_);
9416
38.2M
  swap(_cached_size_, other->_cached_size_);
9417
38.2M
}
9418
9419
0
::google::protobuf::Metadata PgsqlResponsePB::GetMetadata() const {
9420
0
  protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
9421
0
  return ::protobuf_yb_2fcommon_2fpgsql_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
9422
0
}
9423
9424
9425
// @@protoc_insertion_point(namespace_scope)
9426
}  // namespace yb
9427
9428
// @@protoc_insertion_point(global_scope)